refactor(sessions): hide internal helper types · openclaw/openclaw@3b48081
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -15,7 +15,7 @@ type NormalizedSessionIdMatch = {
|
15 | 15 | isStructural: boolean; |
16 | 16 | }; |
17 | 17 | |
18 | | -export type SessionIdMatchSelection = |
| 18 | +type SessionIdMatchSelection = |
19 | 19 | | { kind: "none" } |
20 | 20 | | { kind: "ambiguous"; sessionKeys: string[] } |
21 | 21 | | { kind: "selected"; sessionKey: string }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@
|
2 | 2 | // metadata; parser returns structured errors for CLI/API callers. |
3 | 3 | export const SESSION_LABEL_MAX_LENGTH = 512; |
4 | 4 | |
5 | | -export type ParsedSessionLabel = { ok: true; label: string } | { ok: false; error: string }; |
| 5 | +type ParsedSessionLabel = { ok: true; label: string } | { ok: false; error: string }; |
6 | 6 | |
7 | 7 | export function parseSessionLabel(raw: unknown): ParsedSessionLabel { |
8 | 8 | if (typeof raw !== "string") { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -35,7 +35,7 @@ export type UserTurnBeforeMessageWrite = (params: {
|
35 | 35 | sessionKey?: string; |
36 | 36 | }) => AgentMessage | null; |
37 | 37 | |
38 | | -export type UserTurnTranscriptPersistenceTarget = { |
| 38 | +type UserTurnTranscriptPersistenceTarget = { |
39 | 39 | sessionId: string; |
40 | 40 | sessionKey: string; |
41 | 41 | sessionEntry: UserTurnSessionEntry | undefined; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。