@leitwerk-dev/protocol 0.1.9 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-token-contracts.d.ts +45 -0
- package/dist/api-token-contracts.d.ts.map +1 -0
- package/dist/{chunk-SKQG5SE3.js → chunk-4AKWRRFS.js} +113 -28
- package/dist/chunk-4AKWRRFS.js.map +1 -0
- package/dist/{chunk-J7LXDQAN.js → chunk-LTIDCJFK.js} +185 -6
- package/dist/chunk-LTIDCJFK.js.map +1 -0
- package/dist/{chunk-IWVU76M5.js → chunk-RUPDB3WZ.js} +1 -1
- package/dist/chunk-RUPDB3WZ.js.map +1 -0
- package/dist/compact-turn-summary.d.ts +49 -0
- package/dist/compact-turn-summary.d.ts.map +1 -0
- package/dist/config-snapshot-public.d.ts +2 -0
- package/dist/config-snapshot-public.d.ts.map +1 -0
- package/dist/config-snapshot-public.js +1 -0
- package/dist/config-snapshot.d.ts +110 -15
- package/dist/config-snapshot.d.ts.map +1 -1
- package/dist/config-snapshot.js +0 -1
- package/dist/config-snapshot.js.map +1 -1
- package/dist/extension-ui-contracts.d.ts +49 -0
- package/dist/extension-ui-contracts.d.ts.map +1 -0
- package/dist/external-review.d.ts +5 -1
- package/dist/external-review.d.ts.map +1 -1
- package/dist/form-contract-public.d.ts +2 -0
- package/dist/form-contract-public.d.ts.map +1 -0
- package/dist/form-contract-public.js +1 -0
- package/dist/form-contract.d.ts +29 -5
- package/dist/form-contract.d.ts.map +1 -1
- package/dist/form-contract.js +0 -1
- package/dist/form-contract.js.map +1 -1
- package/dist/{http-contracts-DP9P_2YM.d.ts → http-contracts-public-rL4HFcxz.d.ts} +1099 -47
- package/dist/http-contracts-public.d.ts +4 -0
- package/dist/http-contracts-public.d.ts.map +1 -0
- package/dist/http-contracts-public.js +10 -0
- package/dist/http-contracts.d.ts +923 -45
- package/dist/http-contracts.d.ts.map +1 -1
- package/dist/http-contracts.js +32 -432
- package/dist/http-contracts.js.map +1 -1
- package/dist/index.d.ts +30 -20
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1146 -20
- package/dist/index.js.map +1 -1
- package/dist/initial-prompt.d.ts +6 -0
- package/dist/initial-prompt.d.ts.map +1 -1
- package/dist/launcher-contract-public.d.ts +2 -0
- package/dist/launcher-contract-public.d.ts.map +1 -0
- package/dist/launcher-contract-public.js +1 -0
- package/dist/launcher-contract-public.js.map +1 -0
- package/dist/launcher-contract.d.ts +26 -1
- package/dist/launcher-contract.d.ts.map +1 -1
- package/dist/launcher-contract.js +0 -1
- package/dist/launcher-contract.js.map +1 -1
- package/dist/live-turn-projection.d.ts +30 -1
- package/dist/live-turn-projection.d.ts.map +1 -1
- package/dist/pi-session-message.d.ts +16 -0
- package/dist/pi-session-message.d.ts.map +1 -1
- package/dist/primary-path-snapshot.d.ts +64 -0
- package/dist/primary-path-snapshot.d.ts.map +1 -1
- package/dist/protocol.d.ts +450 -17
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +37 -259
- package/dist/protocol.js.map +1 -1
- package/dist/session-entry-tree.d.ts +12 -0
- package/dist/session-entry-tree.d.ts.map +1 -1
- package/dist/streamable-events.d.ts +4 -1
- package/dist/streamable-events.d.ts.map +1 -1
- package/dist/text-preview.d.ts +5 -0
- package/dist/text-preview.d.ts.map +1 -1
- package/dist/ticket-creation-contracts.d.ts +55 -0
- package/dist/ticket-creation-contracts.d.ts.map +1 -0
- package/dist/timeline-projection.d.ts +6 -1
- package/dist/timeline-projection.d.ts.map +1 -1
- package/dist/timestamp-ordering.d.ts +2 -0
- package/dist/timestamp-ordering.d.ts.map +1 -1
- package/dist/tool-renderer-contract-public.d.ts +3 -0
- package/dist/tool-renderer-contract-public.d.ts.map +1 -0
- package/dist/tool-renderer-contract-public.js +9 -0
- package/dist/tool-renderer-contract-public.js.map +1 -0
- package/dist/tool-renderer-contract.d.ts +15 -0
- package/dist/tool-renderer-contract.d.ts.map +1 -1
- package/dist/tool-renderer-contract.js +10 -21
- package/dist/tool-renderer-contract.js.map +1 -1
- package/dist/tool-result-truncation.d.ts +10 -0
- package/dist/tool-result-truncation.d.ts.map +1 -0
- package/dist/turn-continuation.d.ts +29 -1
- package/dist/turn-continuation.d.ts.map +1 -1
- package/dist/turn-trace-projection.d.ts +5 -0
- package/dist/turn-trace-projection.d.ts.map +1 -0
- package/dist/usage-by-turn-record.d.ts +2 -0
- package/dist/usage-by-turn-record.d.ts.map +1 -1
- package/dist/usage-snapshot.d.ts +23 -4
- package/dist/usage-snapshot.d.ts.map +1 -1
- package/dist/ws-event-payloads.d.ts +16 -1
- package/dist/ws-event-payloads.d.ts.map +1 -1
- package/package.json +18 -18
- package/src/api-token-contracts.ts +44 -0
- package/src/compact-turn-summary.ts +141 -0
- package/src/config-snapshot-public.ts +12 -0
- package/src/config-snapshot.ts +110 -15
- package/src/extension-ui-contracts.ts +67 -0
- package/src/external-review.ts +5 -1
- package/src/form-contract-public.ts +6 -0
- package/src/form-contract.ts +29 -5
- package/src/http-contracts-public.ts +86 -0
- package/src/http-contracts.ts +1059 -102
- package/src/index.ts +184 -20
- package/src/initial-prompt.ts +9 -6
- package/src/launcher-contract-public.ts +8 -0
- package/src/launcher-contract.ts +26 -1
- package/src/live-turn-projection.ts +70 -113
- package/src/pi-session-message.ts +21 -3
- package/src/primary-path-snapshot.ts +64 -0
- package/src/protocol.ts +461 -26
- package/src/session-entry-tree.ts +12 -0
- package/src/streamable-events.ts +5 -0
- package/src/text-preview.ts +5 -0
- package/src/ticket-creation-contracts.ts +62 -0
- package/src/timeline-projection.ts +10 -4
- package/src/timestamp-ordering.ts +2 -0
- package/src/tool-renderer-contract-public.ts +10 -0
- package/src/tool-renderer-contract.ts +15 -0
- package/src/tool-result-truncation.ts +98 -0
- package/src/turn-continuation.ts +50 -46
- package/src/turn-trace-projection.ts +42 -0
- package/src/usage-by-turn-record.ts +2 -0
- package/src/usage-snapshot.ts +45 -62
- package/src/ws-event-payloads.ts +19 -14
- package/dist/chunk-6L4W7WPV.js +0 -1
- package/dist/chunk-AAV3AAOF.js +0 -1
- package/dist/chunk-IEMT3JG4.js +0 -1
- package/dist/chunk-IWVU76M5.js.map +0 -1
- package/dist/chunk-J7LXDQAN.js.map +0 -1
- package/dist/chunk-SKQG5SE3.js.map +0 -1
- package/dist/external-review.js +0 -2
- package/dist/external-review.js.map +0 -1
- package/dist/initial-prompt.js +0 -103
- package/dist/initial-prompt.js.map +0 -1
- package/dist/live-turn-projection.js +0 -395
- package/dist/live-turn-projection.js.map +0 -1
- package/dist/pi-session-message.js +0 -27
- package/dist/pi-session-message.js.map +0 -1
- package/dist/primary-path-snapshot.js +0 -2
- package/dist/primary-path-snapshot.js.map +0 -1
- package/dist/session-entry-tree.js +0 -42
- package/dist/session-entry-tree.js.map +0 -1
- package/dist/streamable-events.js +0 -17
- package/dist/streamable-events.js.map +0 -1
- package/dist/text-preview.js +0 -23
- package/dist/text-preview.js.map +0 -1
- package/dist/timeline-projection.js +0 -33
- package/dist/timeline-projection.js.map +0 -1
- package/dist/timestamp-ordering.js +0 -15
- package/dist/timestamp-ordering.js.map +0 -1
- package/dist/turn-continuation.js +0 -179
- package/dist/turn-continuation.js.map +0 -1
- package/dist/usage-by-turn-record.js +0 -25
- package/dist/usage-by-turn-record.js.map +0 -1
- package/dist/usage-snapshot.js +0 -120
- package/dist/usage-snapshot.js.map +0 -1
- package/dist/ws-event-payloads.js +0 -47
- package/dist/ws-event-payloads.js.map +0 -1
- /package/dist/{chunk-6L4W7WPV.js.map → config-snapshot-public.js.map} +0 -0
- /package/dist/{chunk-AAV3AAOF.js.map → form-contract-public.js.map} +0 -0
- /package/dist/{chunk-IEMT3JG4.js.map → http-contracts-public.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @internal */
|
|
2
|
+
export declare function isToolResultTruncated(input: {
|
|
3
|
+
/** @internal */
|
|
4
|
+
resultText: string | null;
|
|
5
|
+
/** @internal */
|
|
6
|
+
resultDetails: unknown;
|
|
7
|
+
/** @internal */
|
|
8
|
+
resultValue: unknown;
|
|
9
|
+
}): boolean;
|
|
10
|
+
//# sourceMappingURL=tool-result-truncation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-result-truncation.d.ts","sourceRoot":"","sources":["../src/tool-result-truncation.ts"],"names":[],"mappings":"AAkFA,gBAAgB;AAChB,wBAAgB,qBAAqB,CAAC,KAAK,EAAE;IAC5C,gBAAgB;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,gBAAgB;IAChB,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB;IAChB,WAAW,EAAE,OAAO,CAAC;CACrB,GAAG,OAAO,CAOV"}
|
|
@@ -1,36 +1,64 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ReadonlyEntryTree } from "./session-entry-tree.js";
|
|
2
|
+
/** @internal */
|
|
2
3
|
export interface ContinuationTreeEntry {
|
|
4
|
+
/** @internal */
|
|
3
5
|
id: string;
|
|
6
|
+
/** @internal */
|
|
4
7
|
parentId: string | null;
|
|
8
|
+
/** @internal */
|
|
5
9
|
timestamp: string;
|
|
10
|
+
/** @internal */
|
|
6
11
|
type: string;
|
|
12
|
+
/** @internal */
|
|
7
13
|
message?: {
|
|
14
|
+
/** @internal */
|
|
8
15
|
role?: string;
|
|
16
|
+
/** @internal */
|
|
9
17
|
content?: unknown;
|
|
10
18
|
};
|
|
11
19
|
}
|
|
20
|
+
/** @internal */
|
|
12
21
|
export interface ContinuationTurnRecordLike {
|
|
22
|
+
/** @internal */
|
|
13
23
|
forkPiEntryId?: string | null;
|
|
24
|
+
/** @internal */
|
|
14
25
|
resultPiEntryId?: string | null;
|
|
26
|
+
/** @internal */
|
|
15
27
|
startedAt?: string | null;
|
|
28
|
+
/** @internal */
|
|
16
29
|
status?: string | null;
|
|
17
30
|
}
|
|
31
|
+
/** @internal */
|
|
18
32
|
export interface ContinuationSliceBounds {
|
|
33
|
+
/** @internal */
|
|
19
34
|
endedAt?: string | null;
|
|
20
35
|
}
|
|
36
|
+
/** @internal */
|
|
21
37
|
export interface TurnContinuationIndex<TEntry extends ContinuationTreeEntry> {
|
|
38
|
+
/** @internal */
|
|
22
39
|
resolveLeafEntryId(turnRecord: ContinuationTurnRecordLike, bounds?: ContinuationSliceBounds): string | null;
|
|
40
|
+
/** @internal */
|
|
23
41
|
buildSlice(turnRecord: ContinuationTurnRecordLike, bounds?: ContinuationSliceBounds): TEntry[];
|
|
24
42
|
}
|
|
43
|
+
/** @internal */
|
|
25
44
|
export declare function createTurnContinuationIndex<TEntry extends ContinuationTreeEntry>(entries: readonly TEntry[]): TurnContinuationIndex<TEntry>;
|
|
45
|
+
/** @internal */
|
|
26
46
|
export declare function resolveTurnContinuationLeafEntryId(entries: readonly ContinuationTreeEntry[], turnRecord: ContinuationTurnRecordLike, bounds?: ContinuationSliceBounds): string | null;
|
|
47
|
+
/** @internal */
|
|
27
48
|
export declare function buildTurnContinuationSliceFromTree<TEntry extends ContinuationTreeEntry>(tree: ReadonlyEntryTree<TEntry>, turnRecord: ContinuationTurnRecordLike, bounds?: ContinuationSliceBounds): TEntry[];
|
|
49
|
+
/** @internal */
|
|
28
50
|
export declare function buildTurnContinuationSlice<TEntry extends ContinuationTreeEntry>(entries: readonly TEntry[], turnRecord: ContinuationTurnRecordLike, bounds?: ContinuationSliceBounds): TEntry[];
|
|
51
|
+
/** @internal */
|
|
29
52
|
export interface BranchUserPromptSnapshot {
|
|
53
|
+
/** @internal */
|
|
30
54
|
text: string | null;
|
|
55
|
+
/** @internal */
|
|
31
56
|
createdAt: string | null;
|
|
32
57
|
}
|
|
58
|
+
/** @internal */
|
|
33
59
|
export declare function extractFirstUserPromptOnBranch<TEntry extends ContinuationTreeEntry>(tree: ReadonlyEntryTree<TEntry>, leafId: string | null | undefined): BranchUserPromptSnapshot;
|
|
60
|
+
/** @internal */
|
|
34
61
|
export declare function resolveTurnContinuationUserPrompt(entries: readonly ContinuationTreeEntry[], turnRecord: ContinuationTurnRecordLike, bounds?: ContinuationSliceBounds): string | null;
|
|
62
|
+
/** @internal */
|
|
35
63
|
export declare function hasTurnContinuationProgress(entries: readonly ContinuationTreeEntry[], turnRecord: ContinuationTurnRecordLike, bounds?: ContinuationSliceBounds): boolean;
|
|
36
64
|
//# sourceMappingURL=turn-continuation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"turn-continuation.d.ts","sourceRoot":"","sources":["../src/turn-continuation.ts"],"names":[],"mappings":"AAMA,OAAO,
|
|
1
|
+
{"version":3,"file":"turn-continuation.d.ts","sourceRoot":"","sources":["../src/turn-continuation.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TurnTraceSnapshot } from "./http-contracts.js";
|
|
2
|
+
import { type MutableLiveTurnProjection } from "./live-turn-projection.js";
|
|
3
|
+
/** Share the recorded tool content presentation between live HTTP history and live frames. @internal */
|
|
4
|
+
export declare function snapshotTurnTrace(projection: MutableLiveTurnProjection, piInput?: TurnTraceSnapshot["piInput"]): TurnTraceSnapshot;
|
|
5
|
+
//# sourceMappingURL=turn-trace-projection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"turn-trace-projection.d.ts","sourceRoot":"","sources":["../src/turn-trace-projection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EACN,KAAK,yBAAyB,EAE9B,MAAM,2BAA2B,CAAC;AAInC,wGAAwG;AACxG,wBAAgB,iBAAiB,CAChC,UAAU,EAAE,yBAAyB,EACrC,OAAO,GAAE,iBAAiB,CAAC,SAAS,CAAQ,GAC1C,iBAAiB,CA6BnB"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { ProcessEvent } from "@leitwerk-dev/domain";
|
|
2
2
|
import { type UsageSnapshot } from "./usage-snapshot.js";
|
|
3
|
+
/** @internal */
|
|
3
4
|
export type UsageSnapshotByTurnRecordId = Record<string, UsageSnapshot>;
|
|
5
|
+
/** @internal */
|
|
4
6
|
export declare function buildUsageSnapshotsByTurnRecordId(events: readonly ProcessEvent[]): UsageSnapshotByTurnRecordId;
|
|
5
7
|
//# sourceMappingURL=usage-by-turn-record.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage-by-turn-record.d.ts","sourceRoot":"","sources":["../src/usage-by-turn-record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAGN,KAAK,aAAa,EAClB,MAAM,qBAAqB,CAAC;AAG7B,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAExE,wBAAgB,iCAAiC,CAChD,MAAM,EAAE,SAAS,YAAY,EAAE,GAC7B,2BAA2B,CAqB7B"}
|
|
1
|
+
{"version":3,"file":"usage-by-turn-record.d.ts","sourceRoot":"","sources":["../src/usage-by-turn-record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAGN,KAAK,aAAa,EAClB,MAAM,qBAAqB,CAAC;AAG7B,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAExE,gBAAgB;AAChB,wBAAgB,iCAAiC,CAChD,MAAM,EAAE,SAAS,YAAY,EAAE,GAC7B,2BAA2B,CAqB7B"}
|
package/dist/usage-snapshot.d.ts
CHANGED
|
@@ -1,25 +1,44 @@
|
|
|
1
|
+
/** @internal */
|
|
1
2
|
export interface UsageCostSnapshot {
|
|
3
|
+
/** @internal */
|
|
2
4
|
input: number;
|
|
5
|
+
/** @internal */
|
|
3
6
|
output: number;
|
|
7
|
+
/** @internal */
|
|
4
8
|
cacheRead: number;
|
|
9
|
+
/** @internal */
|
|
5
10
|
cacheWrite: number;
|
|
11
|
+
/** @internal */
|
|
6
12
|
total: number;
|
|
7
13
|
}
|
|
8
|
-
|
|
14
|
+
/** @internal */
|
|
15
|
+
export interface UsageTokenCounts {
|
|
16
|
+
/** @internal */
|
|
9
17
|
input: number;
|
|
18
|
+
/** @internal */
|
|
10
19
|
output: number;
|
|
11
|
-
/** Provider-reported reasoning/thinking tokens. This is a subset of output tokens. */
|
|
20
|
+
/** Provider-reported reasoning/thinking tokens. This is a subset of output tokens. @internal */
|
|
12
21
|
reasoning?: number;
|
|
22
|
+
/** @internal */
|
|
13
23
|
cacheRead: number;
|
|
24
|
+
/** @internal */
|
|
14
25
|
cacheWrite: number;
|
|
26
|
+
/** @internal */
|
|
15
27
|
totalTokens: number;
|
|
28
|
+
}
|
|
29
|
+
/** @internal */
|
|
30
|
+
export interface UsageSnapshot extends UsageTokenCounts {
|
|
31
|
+
/** @internal */
|
|
16
32
|
cost: UsageCostSnapshot | null;
|
|
17
|
-
/** Number of model requests represented by this aggregate, when known. */
|
|
33
|
+
/** Number of model requests represented by this aggregate, when known. @internal */
|
|
18
34
|
requestCount?: number;
|
|
19
|
-
/** Largest input-token count for a single represented model request, when known. */
|
|
35
|
+
/** Largest input-token count for a single represented model request, when known. @internal */
|
|
20
36
|
maxInputTokens?: number;
|
|
21
37
|
}
|
|
38
|
+
/** @internal */
|
|
22
39
|
export declare function cloneUsageSnapshot(usage: UsageSnapshot | null | undefined): UsageSnapshot | null;
|
|
40
|
+
/** @internal */
|
|
23
41
|
export declare function normalizeUsageSnapshot(value: unknown): UsageSnapshot | null;
|
|
42
|
+
/** @internal */
|
|
24
43
|
export declare function mergeUsageSnapshots(total: UsageSnapshot | null, usage: UsageSnapshot | null): UsageSnapshot | null;
|
|
25
44
|
//# sourceMappingURL=usage-snapshot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage-snapshot.d.ts","sourceRoot":"","sources":["../src/usage-snapshot.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"usage-snapshot.d.ts","sourceRoot":"","sources":["../src/usage-snapshot.ts"],"names":[],"mappings":"AAGA,gBAAgB;AAChB,MAAM,WAAW,iBAAiB;IACjC,gBAAgB;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB;IAChB,KAAK,EAAE,MAAM,CAAC;CACd;AAED,gBAAgB;AAChB,MAAM,WAAW,gBAAgB;IAChC,gBAAgB;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,gGAAgG;IAChG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB;IAChB,WAAW,EAAE,MAAM,CAAC;CACpB;AAED,gBAAgB;AAChB,MAAM,WAAW,aAAc,SAAQ,gBAAgB;IACtD,gBAAgB;IAChB,IAAI,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC/B,oFAAoF;IACpF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8FAA8F;IAC9F,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB;AAyBD,gBAAgB;AAChB,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,GAAG,aAAa,GAAG,IAAI,CAQhG;AAED,gBAAgB;AAChB,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,GAAG,IAAI,CA+B3E;AAED,gBAAgB;AAChB,wBAAgB,mBAAmB,CAClC,KAAK,EAAE,aAAa,GAAG,IAAI,EAC3B,KAAK,EAAE,aAAa,GAAG,IAAI,GACzB,aAAa,GAAG,IAAI,CAyCtB"}
|
|
@@ -1,18 +1,33 @@
|
|
|
1
|
+
import { trimToNull as readWsEventNonEmptyString } from "@leitwerk-dev/domain";
|
|
2
|
+
/** @internal */
|
|
1
3
|
export interface WsEventPayloadRecord extends Record<string, unknown> {
|
|
2
4
|
}
|
|
5
|
+
/** @internal */
|
|
3
6
|
export interface ResolveWsEventToolCallIdOptions {
|
|
7
|
+
/** @internal */
|
|
4
8
|
timestamp: string;
|
|
9
|
+
/** @internal */
|
|
5
10
|
toolName?: string;
|
|
11
|
+
/** @internal */
|
|
6
12
|
ordinal?: number;
|
|
7
13
|
}
|
|
14
|
+
/** @internal */
|
|
8
15
|
export declare function asWsEventPayloadRecord(value: unknown): WsEventPayloadRecord;
|
|
9
|
-
export
|
|
16
|
+
export { readWsEventNonEmptyString };
|
|
17
|
+
/** @internal */
|
|
10
18
|
export declare function readWsEventTimestamp(data: WsEventPayloadRecord, fallbackTimestamp: string): string;
|
|
19
|
+
/** @internal */
|
|
11
20
|
export declare function readWsEventTurnRecordId(data: WsEventPayloadRecord): string | null;
|
|
21
|
+
/** @internal */
|
|
12
22
|
export declare function readWsEventPiTurnId(data: WsEventPayloadRecord): string | null;
|
|
23
|
+
/** @internal */
|
|
13
24
|
export declare function readWsEventStreamText(data: WsEventPayloadRecord): string | null;
|
|
25
|
+
/** @internal */
|
|
14
26
|
export declare function readWsEventToolName(data: WsEventPayloadRecord): string;
|
|
27
|
+
/** @internal */
|
|
15
28
|
export declare function readWsEventToolArguments(data: WsEventPayloadRecord): Record<string, unknown> | null;
|
|
29
|
+
/** @internal */
|
|
16
30
|
export declare function readWsEventToolCallId(data: WsEventPayloadRecord): string | null;
|
|
31
|
+
/** @internal */
|
|
17
32
|
export declare function resolveWsEventToolCallId(data: WsEventPayloadRecord, options: ResolveWsEventToolCallIdOptions): string;
|
|
18
33
|
//# sourceMappingURL=ws-event-payloads.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ws-event-payloads.d.ts","sourceRoot":"","sources":["../src/ws-event-payloads.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAqB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAAG;AAExE,MAAM,WAAW,+BAA+B;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ws-event-payloads.d.ts","sourceRoot":"","sources":["../src/ws-event-payloads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,IAAI,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEhG,gBAAgB;AAChB,MAAM,WAAW,oBAAqB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAAG;AAExE,gBAAgB;AAChB,MAAM,WAAW,+BAA+B;IAC/C,gBAAgB;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,gBAAgB;AAChB,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,oBAAoB,CAE3E;AAED,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC,gBAAgB;AAChB,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,oBAAoB,EAC1B,iBAAiB,EAAE,MAAM,GACvB,MAAM,CAER;AAED,gBAAgB;AAChB,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,oBAAoB,GAAG,MAAM,GAAG,IAAI,CAEjF;AAED,gBAAgB;AAChB,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,oBAAoB,GAAG,MAAM,GAAG,IAAI,CAE7E;AAED,gBAAgB;AAChB,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,oBAAoB,GAAG,MAAM,GAAG,IAAI,CAQ/E;AAED,gBAAgB;AAChB,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,oBAAoB,GAAG,MAAM,CAEtE;AAED,gBAAgB;AAChB,wBAAgB,wBAAwB,CACvC,IAAI,EAAE,oBAAoB,GACxB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAEhC;AAED,gBAAgB;AAChB,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,oBAAoB,GAAG,MAAM,GAAG,IAAI,CAE/E;AAED,gBAAgB;AAChB,wBAAgB,wBAAwB,CACvC,IAAI,EAAE,oBAAoB,EAC1B,OAAO,EAAE,+BAA+B,GACtC,MAAM,CAKR"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leitwerk-dev/protocol",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/leitwerk-dev/leitwerk.git",
|
|
@@ -14,36 +14,36 @@
|
|
|
14
14
|
"types": "./dist/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"./config-snapshot": {
|
|
17
|
-
"source": "./src/config-snapshot.ts",
|
|
18
|
-
"import": "./dist/config-snapshot.js",
|
|
19
|
-
"types": "./dist/config-snapshot.d.ts"
|
|
17
|
+
"source": "./src/config-snapshot-public.ts",
|
|
18
|
+
"import": "./dist/config-snapshot-public.js",
|
|
19
|
+
"types": "./dist/config-snapshot-public.d.ts"
|
|
20
20
|
},
|
|
21
21
|
"./http-contracts": {
|
|
22
|
-
"source": "./src/http-contracts.ts",
|
|
23
|
-
"import": "./dist/http-contracts.js",
|
|
24
|
-
"types": "./dist/http-contracts.d.ts"
|
|
22
|
+
"source": "./src/http-contracts-public.ts",
|
|
23
|
+
"import": "./dist/http-contracts-public.js",
|
|
24
|
+
"types": "./dist/http-contracts-public.d.ts"
|
|
25
25
|
},
|
|
26
26
|
"./form-contract": {
|
|
27
|
-
"source": "./src/form-contract.ts",
|
|
28
|
-
"import": "./dist/form-contract.js",
|
|
29
|
-
"types": "./dist/form-contract.d.ts"
|
|
27
|
+
"source": "./src/form-contract-public.ts",
|
|
28
|
+
"import": "./dist/form-contract-public.js",
|
|
29
|
+
"types": "./dist/form-contract-public.d.ts"
|
|
30
30
|
},
|
|
31
31
|
"./launcher-contract": {
|
|
32
|
-
"source": "./src/launcher-contract.ts",
|
|
33
|
-
"import": "./dist/launcher-contract.js",
|
|
34
|
-
"types": "./dist/launcher-contract.d.ts"
|
|
32
|
+
"source": "./src/launcher-contract-public.ts",
|
|
33
|
+
"import": "./dist/launcher-contract-public.js",
|
|
34
|
+
"types": "./dist/launcher-contract-public.d.ts"
|
|
35
35
|
},
|
|
36
36
|
"./tool-renderer-contract": {
|
|
37
|
-
"source": "./src/tool-renderer-contract.ts",
|
|
38
|
-
"import": "./dist/tool-renderer-contract.js",
|
|
39
|
-
"types": "./dist/tool-renderer-contract.d.ts"
|
|
37
|
+
"source": "./src/tool-renderer-contract-public.ts",
|
|
38
|
+
"import": "./dist/tool-renderer-contract-public.js",
|
|
39
|
+
"types": "./dist/tool-renderer-contract-public.d.ts"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "tsup --silent"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@leitwerk-dev/domain": "0.1
|
|
46
|
+
"@leitwerk-dev/domain": "0.2.1",
|
|
47
47
|
"valibot": "^1.3.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
|
-
"node": ">=
|
|
57
|
+
"node": ">=26 <27"
|
|
58
58
|
},
|
|
59
59
|
"files": [
|
|
60
60
|
"dist/**",
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/** @internal */
|
|
2
|
+
export interface ApiTokenMetadata {
|
|
3
|
+
/** @internal */
|
|
4
|
+
id: string;
|
|
5
|
+
/** @internal */
|
|
6
|
+
prefix: string;
|
|
7
|
+
/** @internal */
|
|
8
|
+
name: string;
|
|
9
|
+
/** @internal */
|
|
10
|
+
createdAt: string;
|
|
11
|
+
/** @internal */
|
|
12
|
+
expiresAt: string | null;
|
|
13
|
+
/** @internal */
|
|
14
|
+
revokedAt: string | null;
|
|
15
|
+
/** @internal */
|
|
16
|
+
lastUsedAt: string | null;
|
|
17
|
+
}
|
|
18
|
+
/** @internal */
|
|
19
|
+
export interface ApiTokenPolicy {
|
|
20
|
+
/** @internal */
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
/** @internal */
|
|
23
|
+
defaultTtlMs: number;
|
|
24
|
+
/** @internal */
|
|
25
|
+
maxTtlMs: number;
|
|
26
|
+
/** @internal */
|
|
27
|
+
allowNoExpiry: boolean;
|
|
28
|
+
}
|
|
29
|
+
/** @internal */
|
|
30
|
+
export interface ApiTokensResponseBody {
|
|
31
|
+
/** @internal */
|
|
32
|
+
tokens: ApiTokenMetadata[];
|
|
33
|
+
/** @internal */
|
|
34
|
+
policy: ApiTokenPolicy;
|
|
35
|
+
/** @internal */
|
|
36
|
+
csrfToken: string;
|
|
37
|
+
}
|
|
38
|
+
/** @internal */
|
|
39
|
+
export interface CreateApiTokenResponseBody {
|
|
40
|
+
/** @internal */
|
|
41
|
+
token: ApiTokenMetadata;
|
|
42
|
+
/** @internal */
|
|
43
|
+
secret: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
PrimaryPathActiveTurnSnapshot,
|
|
3
|
+
PrimaryPathToolCallSnapshot,
|
|
4
|
+
} from "./primary-path-snapshot.js";
|
|
5
|
+
import {
|
|
6
|
+
mergeUsageSnapshots,
|
|
7
|
+
normalizeUsageSnapshot,
|
|
8
|
+
type UsageSnapshot,
|
|
9
|
+
} from "./usage-snapshot.js";
|
|
10
|
+
import {
|
|
11
|
+
readWsEventStreamText,
|
|
12
|
+
readWsEventTimestamp,
|
|
13
|
+
readWsEventToolCallId,
|
|
14
|
+
readWsEventToolName,
|
|
15
|
+
} from "./ws-event-payloads.js";
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const REASONING_PREVIEW_MAX_CHARS = 1_024;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export interface CompactTurnSummary {
|
|
22
|
+
/** @internal */
|
|
23
|
+
assistant: {
|
|
24
|
+
/** @internal */
|
|
25
|
+
text: string;
|
|
26
|
+
/** @internal */
|
|
27
|
+
thinking: string;
|
|
28
|
+
/** @internal */
|
|
29
|
+
lastUpdatedAt: string | null;
|
|
30
|
+
};
|
|
31
|
+
/** @internal */
|
|
32
|
+
currentTool: Pick<
|
|
33
|
+
PrimaryPathToolCallSnapshot,
|
|
34
|
+
"toolCallId" | "toolName" | "status" | "isError"
|
|
35
|
+
> | null;
|
|
36
|
+
/** @internal */
|
|
37
|
+
usage: UsageSnapshot | null;
|
|
38
|
+
/** @internal */
|
|
39
|
+
toolCallCount: number;
|
|
40
|
+
/** @internal */
|
|
41
|
+
traceItemCount: number;
|
|
42
|
+
/** The last persisted event incorporated into this projection. @internal */
|
|
43
|
+
throughEventSequence: number;
|
|
44
|
+
/** @internal */
|
|
45
|
+
lastTraceKind: "thinking" | "tool_call" | "operational_event" | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** Initial-page state. It never contains trace items, tool arguments or results. @internal */
|
|
49
|
+
export interface CompactActiveTurnSnapshot
|
|
50
|
+
extends CompactTurnSummary,
|
|
51
|
+
Pick<
|
|
52
|
+
PrimaryPathActiveTurnSnapshot,
|
|
53
|
+
"turnRecordId" | "turnId" | "turnType" | "pathType" | "startedAt"
|
|
54
|
+
> {
|
|
55
|
+
/** @internal */
|
|
56
|
+
summaryPending: boolean;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export function emptyCompactTurnSummary(): CompactTurnSummary {
|
|
61
|
+
return {
|
|
62
|
+
assistant: { text: "", thinking: "", lastUpdatedAt: null },
|
|
63
|
+
currentTool: null,
|
|
64
|
+
usage: null,
|
|
65
|
+
toolCallCount: 0,
|
|
66
|
+
traceItemCount: 0,
|
|
67
|
+
throughEventSequence: 0,
|
|
68
|
+
lastTraceKind: null,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** Retain paragraph context; wrapping and blank-line removal belong to the preview viewport. @internal */
|
|
73
|
+
export function reasoningPreviewTail(text: string): string {
|
|
74
|
+
const normalized = text.replace(/\r\n?/g, "\n");
|
|
75
|
+
const lines = normalized.split("\n").filter((line) => line.trim() !== "");
|
|
76
|
+
const separator = /\n[^\S\n]*$/.test(normalized) ? "\n" : "";
|
|
77
|
+
return (lines.join("\n") + separator).slice(-REASONING_PREVIEW_MAX_CHARS);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export function applyEventToCompactTurnSummary(
|
|
82
|
+
previous: CompactTurnSummary,
|
|
83
|
+
event: {
|
|
84
|
+
/** @internal */
|
|
85
|
+
eventType: string;
|
|
86
|
+
/** @internal */
|
|
87
|
+
data: Record<string, unknown>;
|
|
88
|
+
/** @internal */
|
|
89
|
+
createdAt: string;
|
|
90
|
+
/** @internal */
|
|
91
|
+
eventSequence: number;
|
|
92
|
+
},
|
|
93
|
+
): CompactTurnSummary {
|
|
94
|
+
if (event.eventSequence <= previous.throughEventSequence) return previous;
|
|
95
|
+
const next = {
|
|
96
|
+
...previous,
|
|
97
|
+
assistant: { ...previous.assistant },
|
|
98
|
+
throughEventSequence: event.eventSequence,
|
|
99
|
+
};
|
|
100
|
+
const { eventType, data } = event;
|
|
101
|
+
if (eventType === "pi.stream.delta") {
|
|
102
|
+
const text = readWsEventStreamText(data);
|
|
103
|
+
const key = data.streamType === "thinking" ? "thinking" : "text";
|
|
104
|
+
next.assistant[key] = reasoningPreviewTail(next.assistant[key] + text);
|
|
105
|
+
if (text) next.assistant.lastUpdatedAt = readWsEventTimestamp(data, event.createdAt);
|
|
106
|
+
if (key === "thinking" && text) {
|
|
107
|
+
if (next.lastTraceKind !== "thinking") next.traceItemCount++;
|
|
108
|
+
next.lastTraceKind = "thinking";
|
|
109
|
+
}
|
|
110
|
+
} else if (eventType === "pi.tool.call" || eventType === "pi.tool.result") {
|
|
111
|
+
const isResult = eventType === "pi.tool.result";
|
|
112
|
+
const toolCallId = (readWsEventToolCallId(data) ?? `tool-${event.eventSequence}`).slice(0, 256);
|
|
113
|
+
if (!isResult) {
|
|
114
|
+
next.toolCallCount++;
|
|
115
|
+
next.traceItemCount++;
|
|
116
|
+
next.lastTraceKind = "tool_call";
|
|
117
|
+
}
|
|
118
|
+
if (!isResult || !next.currentTool || next.currentTool.toolCallId === toolCallId) {
|
|
119
|
+
next.currentTool = {
|
|
120
|
+
toolCallId: toolCallId.slice(0, 256),
|
|
121
|
+
toolName: readWsEventToolName(data).slice(0, 256),
|
|
122
|
+
status: isResult ? "completed" : "running",
|
|
123
|
+
isError: data.isError === true,
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
} else if (eventType === "pi.usage") {
|
|
127
|
+
next.usage = mergeUsageSnapshots(next.usage, normalizeUsageSnapshot(data));
|
|
128
|
+
} else if (
|
|
129
|
+
[
|
|
130
|
+
"pi.error",
|
|
131
|
+
"pi.retry.start",
|
|
132
|
+
"pi.retry.end",
|
|
133
|
+
"pi.compaction.start",
|
|
134
|
+
"pi.compaction.end",
|
|
135
|
+
].includes(eventType)
|
|
136
|
+
) {
|
|
137
|
+
next.traceItemCount++;
|
|
138
|
+
next.lastTraceKind = "operational_event";
|
|
139
|
+
}
|
|
140
|
+
return next;
|
|
141
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type {
|
|
2
|
+
ComponentConfigSnapshot,
|
|
3
|
+
ConfigSnapshot,
|
|
4
|
+
ExtensionLoadingConfigSnapshot,
|
|
5
|
+
ModelProfileSnapshot,
|
|
6
|
+
NotificationsConfigSnapshot,
|
|
7
|
+
ProcessConfigSnapshot,
|
|
8
|
+
SandboxConfigSnapshot,
|
|
9
|
+
ServerConfigSnapshot,
|
|
10
|
+
StorageConfigSnapshot,
|
|
11
|
+
WorkersConfigSnapshot,
|
|
12
|
+
} from "./config-snapshot.js";
|