@roll-agent/runtime 0.26.0 → 1.0.0

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.
Files changed (89) hide show
  1. package/dist/engine/agent-session.d.ts +14 -5
  2. package/dist/engine/agent-session.js +1 -1
  3. package/dist/engine/cancelled-turn-recovery.d.ts +1 -11
  4. package/dist/engine/capability-manifest.d.ts +3 -3
  5. package/dist/engine/compaction-checkpoint.d.ts +486 -3903
  6. package/dist/engine/compaction-checkpoint.js +1 -1
  7. package/dist/engine/compaction-semantic-state.d.ts +210 -1804
  8. package/dist/engine/conversation-engine.d.ts +26 -42
  9. package/dist/engine/conversation-engine.js +1 -1
  10. package/dist/engine/explicit-skill-context.d.ts +6 -62
  11. package/dist/engine/explicit-skill-context.js +1 -1
  12. package/dist/engine/model-catalog.d.ts +3 -27
  13. package/dist/engine/model-recovery.d.ts +21 -0
  14. package/dist/engine/model-recovery.js +1 -0
  15. package/dist/engine/request-budget.d.ts +9 -50
  16. package/dist/host-contracts/agent-host.d.ts +39 -0
  17. package/dist/host-contracts/agent-host.js +1 -0
  18. package/dist/host-contracts/index.d.ts +7 -0
  19. package/dist/host-contracts/index.js +1 -0
  20. package/dist/host-contracts/runtime-settings.d.ts +68 -0
  21. package/dist/host-contracts/runtime-settings.js +1 -0
  22. package/dist/host-contracts/schedule-tools.d.ts +138 -0
  23. package/dist/host-contracts/schedule-tools.js +1 -0
  24. package/dist/index.d.ts +7 -1
  25. package/dist/index.js +1 -1
  26. package/dist/interaction/user-input-interaction-manager.d.ts +1 -1
  27. package/dist/scheduler/calendar.d.ts +13 -51
  28. package/dist/scheduler/trigger.d.ts +20 -156
  29. package/dist/server/protocol.d.ts +11 -73
  30. package/dist/server/runtime-client-interaction-lifecycle.d.ts +2 -2
  31. package/dist/skills/contracts.d.ts +24 -0
  32. package/dist/skills/contracts.js +1 -0
  33. package/dist/skills/index.d.ts +2 -0
  34. package/dist/skills/index.js +1 -0
  35. package/dist/skills/invocation.d.ts +29 -0
  36. package/dist/skills/invocation.js +1 -0
  37. package/dist/store/semantic-ledger.d.ts +27 -72
  38. package/dist/store/thread-origin.d.ts +8 -100
  39. package/dist/store/thread-store.d.ts +3 -3
  40. package/dist/store/turn-input.d.ts +11 -135
  41. package/dist/store/turn-input.js +1 -1
  42. package/dist/tool-bridge/bash-tool.d.ts +1 -13
  43. package/dist/tool-bridge/build-tools.d.ts +5 -5
  44. package/dist/tool-bridge/build-tools.js +1 -1
  45. package/dist/tool-bridge/file-tools/edit-file-tool.d.ts +2 -24
  46. package/dist/tool-bridge/file-tools/glob-tool.d.ts +1 -7
  47. package/dist/tool-bridge/file-tools/grep-tool.d.ts +1 -15
  48. package/dist/tool-bridge/file-tools/list-dir-tool.d.ts +1 -5
  49. package/dist/tool-bridge/file-tools/read-file-tool.d.ts +1 -9
  50. package/dist/tool-bridge/file-tools/verify-file-tool.d.ts +5 -8
  51. package/dist/tool-bridge/file-tools/write-file-tool.d.ts +1 -7
  52. package/dist/tool-bridge/model-input-schema.d.ts +3 -0
  53. package/dist/tool-bridge/model-input-schema.js +1 -0
  54. package/dist/tool-bridge/naming.d.ts +2 -2
  55. package/dist/tool-bridge/normalize-result.js +1 -1
  56. package/dist/tool-bridge/observation-recall-tool.d.ts +1 -9
  57. package/dist/tool-bridge/schedule-create-input.d.ts +9 -75
  58. package/dist/tool-bridge/schedule-tool.d.ts +1 -1
  59. package/dist/tool-bridge/schedule-tool.js +1 -1
  60. package/dist/tool-bridge/session-exec-tool.d.ts +3 -23
  61. package/dist/tool-bridge/skill-tool.d.ts +2 -8
  62. package/dist/tool-bridge/skill-tool.js +1 -1
  63. package/dist/tool-bridge/tool-approval-continuation.d.ts +1 -1
  64. package/dist/tool-bridge/tool-approval-continuation.js +1 -1
  65. package/dist/tool-bridge/tool-execution-coordinator.d.ts +3 -26
  66. package/dist/tool-bridge/tool-execution-coordinator.js +1 -1
  67. package/dist/tool-bridge/transcript-tool.d.ts +7 -35
  68. package/dist/tool-bridge/user-input-tool.js +1 -1
  69. package/dist/tool-contracts/agent-types.d.ts +32 -0
  70. package/dist/tool-contracts/agent-types.js +1 -0
  71. package/dist/tool-contracts/execution-timeout.d.ts +2 -0
  72. package/dist/tool-contracts/execution-timeout.js +1 -0
  73. package/dist/tool-contracts/index.d.ts +8 -0
  74. package/dist/tool-contracts/index.js +1 -0
  75. package/dist/tool-contracts/issues.d.ts +22 -0
  76. package/dist/tool-contracts/issues.js +1 -0
  77. package/dist/tool-contracts/json-schema-refs.d.ts +19 -0
  78. package/dist/tool-contracts/json-schema-refs.js +1 -0
  79. package/dist/tool-contracts/preflight.d.ts +16 -0
  80. package/dist/tool-contracts/preflight.js +1 -0
  81. package/dist/tool-contracts/resource-hints.d.ts +26 -0
  82. package/dist/tool-contracts/resource-hints.js +1 -0
  83. package/dist/tool-contracts/results.d.ts +7 -0
  84. package/dist/tool-contracts/results.js +1 -0
  85. package/dist/tool-contracts/schema.d.ts +13 -0
  86. package/dist/tool-contracts/schema.js +1 -0
  87. package/dist/types/cancellation.d.ts +6 -10
  88. package/dist/types/events.d.ts +7 -0
  89. package/package.json +18 -7
@@ -2,15 +2,21 @@ import { z } from "zod";
2
2
  export declare const COMPACTION_SEMANTIC_STATE_VERSION: 1;
3
3
  export declare const COMPACTION_PROVENANCE_KINDS: readonly ["message", "tool_execution", "resource", "running_session", "legacy_snapshot"];
4
4
  export declare const COMPACTION_SEMANTIC_ITEM_KINDS: readonly ["goal", "constraint", "decision", "completed_work", "pending_work", "resource", "running_session", "uncertainty"];
5
- export declare const compactionSemanticItemIdSchema: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
5
+ export declare const compactionSemanticItemIdSchema: z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">;
6
6
  export type CompactionSemanticItemId = z.infer<typeof compactionSemanticItemIdSchema>;
7
7
  /**
8
8
  * A single-object representation is deliberate: some structured-output providers
9
9
  * cannot reliably emit discriminated unions. Every property is required and the
10
10
  * kind-specific nullability invariant is checked after decoding.
11
11
  */
12
- export declare const compactionProvenanceRefSchema: z.ZodReadonly<z.ZodEffects<z.ZodObject<{
13
- kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
12
+ export declare const compactionProvenanceRefSchema: z.ZodReadonly<z.ZodObject<{
13
+ kind: z.ZodEnum<{
14
+ message: "message";
15
+ legacy_snapshot: "legacy_snapshot";
16
+ resource: "resource";
17
+ tool_execution: "tool_execution";
18
+ running_session: "running_session";
19
+ }>;
14
20
  messageSequence: z.ZodNullable<z.ZodNumber>;
15
21
  toolExecutionId: z.ZodNullable<z.ZodString>;
16
22
  resourceKey: z.ZodNullable<z.ZodString>;
@@ -18,51 +24,21 @@ export declare const compactionProvenanceRefSchema: z.ZodReadonly<z.ZodEffects<z
18
24
  sessionId: z.ZodNullable<z.ZodNumber>;
19
25
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20
26
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
21
- }, "strict", z.ZodTypeAny, {
22
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
23
- sessionId: number | null;
24
- checkpointId: string | null;
25
- messageSequence: number | null;
26
- toolExecutionId: string | null;
27
- resourceKey: string | null;
28
- managerInstanceId: string | null;
29
- snapshotIndex: number | null;
30
- }, {
31
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
32
- sessionId: number | null;
33
- messageSequence: number | null;
34
- toolExecutionId: string | null;
35
- resourceKey: string | null;
36
- managerInstanceId: string | null;
37
- checkpointId?: string | null | undefined;
38
- snapshotIndex?: number | null | undefined;
39
- }>, {
40
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
41
- sessionId: number | null;
42
- checkpointId: string | null;
43
- messageSequence: number | null;
44
- toolExecutionId: string | null;
45
- resourceKey: string | null;
46
- managerInstanceId: string | null;
47
- snapshotIndex: number | null;
48
- }, {
49
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
50
- sessionId: number | null;
51
- messageSequence: number | null;
52
- toolExecutionId: string | null;
53
- resourceKey: string | null;
54
- managerInstanceId: string | null;
55
- checkpointId?: string | null | undefined;
56
- snapshotIndex?: number | null | undefined;
57
- }>>;
27
+ }, z.core.$strict>>;
58
28
  export type CompactionProvenanceRef = z.infer<typeof compactionProvenanceRefSchema>;
59
29
  export declare const semanticTextItemSchema: z.ZodReadonly<z.ZodObject<{
60
- id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
30
+ id: z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">;
61
31
  harnessKey: z.ZodOptional<z.ZodString>;
62
- relatedItemId: z.ZodOptional<z.ZodBranded<z.ZodString, "CompactionSemanticItemId">>;
32
+ relatedItemId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">>;
63
33
  text: z.ZodString;
64
- provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
65
- kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
34
+ provenance: z.ZodArray<z.ZodReadonly<z.ZodObject<{
35
+ kind: z.ZodEnum<{
36
+ message: "message";
37
+ legacy_snapshot: "legacy_snapshot";
38
+ resource: "resource";
39
+ tool_execution: "tool_execution";
40
+ running_session: "running_session";
41
+ }>;
66
42
  messageSequence: z.ZodNullable<z.ZodNumber>;
67
43
  toolExecutionId: z.ZodNullable<z.ZodString>;
68
44
  resourceKey: z.ZodNullable<z.ZodString>;
@@ -70,82 +46,20 @@ export declare const semanticTextItemSchema: z.ZodReadonly<z.ZodObject<{
70
46
  sessionId: z.ZodNullable<z.ZodNumber>;
71
47
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
72
48
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
73
- }, "strict", z.ZodTypeAny, {
74
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
75
- sessionId: number | null;
76
- checkpointId: string | null;
77
- messageSequence: number | null;
78
- toolExecutionId: string | null;
79
- resourceKey: string | null;
80
- managerInstanceId: string | null;
81
- snapshotIndex: number | null;
82
- }, {
83
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
84
- sessionId: number | null;
85
- messageSequence: number | null;
86
- toolExecutionId: string | null;
87
- resourceKey: string | null;
88
- managerInstanceId: string | null;
89
- checkpointId?: string | null | undefined;
90
- snapshotIndex?: number | null | undefined;
91
- }>, {
92
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
93
- sessionId: number | null;
94
- checkpointId: string | null;
95
- messageSequence: number | null;
96
- toolExecutionId: string | null;
97
- resourceKey: string | null;
98
- managerInstanceId: string | null;
99
- snapshotIndex: number | null;
100
- }, {
101
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
102
- sessionId: number | null;
103
- messageSequence: number | null;
104
- toolExecutionId: string | null;
105
- resourceKey: string | null;
106
- managerInstanceId: string | null;
107
- checkpointId?: string | null | undefined;
108
- snapshotIndex?: number | null | undefined;
109
- }>>, "many">;
110
- sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
111
- }, "strict", z.ZodTypeAny, {
112
- id: string & z.BRAND<"CompactionSemanticItemId">;
113
- text: string;
114
- provenance: Readonly<{
115
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
116
- sessionId: number | null;
117
- checkpointId: string | null;
118
- messageSequence: number | null;
119
- toolExecutionId: string | null;
120
- resourceKey: string | null;
121
- managerInstanceId: string | null;
122
- snapshotIndex: number | null;
123
- }>[];
124
- sourceQuotes: string[];
125
- harnessKey?: string | undefined;
126
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
127
- }, {
128
- id: string;
129
- text: string;
130
- provenance: Readonly<{
131
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
132
- sessionId: number | null;
133
- messageSequence: number | null;
134
- toolExecutionId: string | null;
135
- resourceKey: string | null;
136
- managerInstanceId: string | null;
137
- checkpointId?: string | null | undefined;
138
- snapshotIndex?: number | null | undefined;
139
- }>[];
140
- harnessKey?: string | undefined;
141
- relatedItemId?: string | undefined;
142
- sourceQuotes?: string[] | undefined;
143
- }>>;
49
+ }, z.core.$strict>>>;
50
+ sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString>>;
51
+ }, z.core.$strict>>;
144
52
  export declare const semanticResourceSchema: z.ZodReadonly<z.ZodObject<{
145
- id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
53
+ id: z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">;
146
54
  resourceKey: z.ZodString;
147
- provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
148
- kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
55
+ provenance: z.ZodArray<z.ZodReadonly<z.ZodObject<{
56
+ kind: z.ZodEnum<{
57
+ message: "message";
58
+ legacy_snapshot: "legacy_snapshot";
59
+ resource: "resource";
60
+ tool_execution: "tool_execution";
61
+ running_session: "running_session";
62
+ }>;
149
63
  messageSequence: z.ZodNullable<z.ZodNumber>;
150
64
  toolExecutionId: z.ZodNullable<z.ZodString>;
151
65
  resourceKey: z.ZodNullable<z.ZodString>;
@@ -153,76 +67,20 @@ export declare const semanticResourceSchema: z.ZodReadonly<z.ZodObject<{
153
67
  sessionId: z.ZodNullable<z.ZodNumber>;
154
68
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
155
69
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
156
- }, "strict", z.ZodTypeAny, {
157
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
158
- sessionId: number | null;
159
- checkpointId: string | null;
160
- messageSequence: number | null;
161
- toolExecutionId: string | null;
162
- resourceKey: string | null;
163
- managerInstanceId: string | null;
164
- snapshotIndex: number | null;
165
- }, {
166
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
167
- sessionId: number | null;
168
- messageSequence: number | null;
169
- toolExecutionId: string | null;
170
- resourceKey: string | null;
171
- managerInstanceId: string | null;
172
- checkpointId?: string | null | undefined;
173
- snapshotIndex?: number | null | undefined;
174
- }>, {
175
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
176
- sessionId: number | null;
177
- checkpointId: string | null;
178
- messageSequence: number | null;
179
- toolExecutionId: string | null;
180
- resourceKey: string | null;
181
- managerInstanceId: string | null;
182
- snapshotIndex: number | null;
183
- }, {
184
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
185
- sessionId: number | null;
186
- messageSequence: number | null;
187
- toolExecutionId: string | null;
188
- resourceKey: string | null;
189
- managerInstanceId: string | null;
190
- checkpointId?: string | null | undefined;
191
- snapshotIndex?: number | null | undefined;
192
- }>>, "many">;
193
- }, "strict", z.ZodTypeAny, {
194
- id: string & z.BRAND<"CompactionSemanticItemId">;
195
- resourceKey: string;
196
- provenance: Readonly<{
197
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
198
- sessionId: number | null;
199
- checkpointId: string | null;
200
- messageSequence: number | null;
201
- toolExecutionId: string | null;
202
- resourceKey: string | null;
203
- managerInstanceId: string | null;
204
- snapshotIndex: number | null;
205
- }>[];
206
- }, {
207
- id: string;
208
- resourceKey: string;
209
- provenance: Readonly<{
210
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
211
- sessionId: number | null;
212
- messageSequence: number | null;
213
- toolExecutionId: string | null;
214
- resourceKey: string | null;
215
- managerInstanceId: string | null;
216
- checkpointId?: string | null | undefined;
217
- snapshotIndex?: number | null | undefined;
218
- }>[];
219
- }>>;
70
+ }, z.core.$strict>>>;
71
+ }, z.core.$strict>>;
220
72
  export declare const semanticRunningSessionSchema: z.ZodReadonly<z.ZodObject<{
221
- id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
73
+ id: z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">;
222
74
  managerInstanceId: z.ZodString;
223
75
  sessionId: z.ZodNumber;
224
- provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
225
- kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
76
+ provenance: z.ZodArray<z.ZodReadonly<z.ZodObject<{
77
+ kind: z.ZodEnum<{
78
+ message: "message";
79
+ legacy_snapshot: "legacy_snapshot";
80
+ resource: "resource";
81
+ tool_execution: "tool_execution";
82
+ running_session: "running_session";
83
+ }>;
226
84
  messageSequence: z.ZodNullable<z.ZodNumber>;
227
85
  toolExecutionId: z.ZodNullable<z.ZodString>;
228
86
  resourceKey: z.ZodNullable<z.ZodString>;
@@ -230,82 +88,24 @@ export declare const semanticRunningSessionSchema: z.ZodReadonly<z.ZodObject<{
230
88
  sessionId: z.ZodNullable<z.ZodNumber>;
231
89
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
232
90
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
233
- }, "strict", z.ZodTypeAny, {
234
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
235
- sessionId: number | null;
236
- checkpointId: string | null;
237
- messageSequence: number | null;
238
- toolExecutionId: string | null;
239
- resourceKey: string | null;
240
- managerInstanceId: string | null;
241
- snapshotIndex: number | null;
242
- }, {
243
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
244
- sessionId: number | null;
245
- messageSequence: number | null;
246
- toolExecutionId: string | null;
247
- resourceKey: string | null;
248
- managerInstanceId: string | null;
249
- checkpointId?: string | null | undefined;
250
- snapshotIndex?: number | null | undefined;
251
- }>, {
252
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
253
- sessionId: number | null;
254
- checkpointId: string | null;
255
- messageSequence: number | null;
256
- toolExecutionId: string | null;
257
- resourceKey: string | null;
258
- managerInstanceId: string | null;
259
- snapshotIndex: number | null;
260
- }, {
261
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
262
- sessionId: number | null;
263
- messageSequence: number | null;
264
- toolExecutionId: string | null;
265
- resourceKey: string | null;
266
- managerInstanceId: string | null;
267
- checkpointId?: string | null | undefined;
268
- snapshotIndex?: number | null | undefined;
269
- }>>, "many">;
270
- }, "strict", z.ZodTypeAny, {
271
- id: string & z.BRAND<"CompactionSemanticItemId">;
272
- sessionId: number;
273
- managerInstanceId: string;
274
- provenance: Readonly<{
275
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
276
- sessionId: number | null;
277
- checkpointId: string | null;
278
- messageSequence: number | null;
279
- toolExecutionId: string | null;
280
- resourceKey: string | null;
281
- managerInstanceId: string | null;
282
- snapshotIndex: number | null;
283
- }>[];
284
- }, {
285
- id: string;
286
- sessionId: number;
287
- managerInstanceId: string;
288
- provenance: Readonly<{
289
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
290
- sessionId: number | null;
291
- messageSequence: number | null;
292
- toolExecutionId: string | null;
293
- resourceKey: string | null;
294
- managerInstanceId: string | null;
295
- checkpointId?: string | null | undefined;
296
- snapshotIndex?: number | null | undefined;
297
- }>[];
298
- }>>;
299
- export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z.ZodObject<{
91
+ }, z.core.$strict>>>;
92
+ }, z.core.$strict>>;
93
+ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodObject<{
300
94
  version: z.ZodLiteral<1>;
301
95
  scopeId: z.ZodOptional<z.ZodString>;
302
96
  goal: z.ZodNullable<z.ZodReadonly<z.ZodObject<{
303
- id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
97
+ id: z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">;
304
98
  harnessKey: z.ZodOptional<z.ZodString>;
305
- relatedItemId: z.ZodOptional<z.ZodBranded<z.ZodString, "CompactionSemanticItemId">>;
99
+ relatedItemId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">>;
306
100
  text: z.ZodString;
307
- provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
308
- kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
101
+ provenance: z.ZodArray<z.ZodReadonly<z.ZodObject<{
102
+ kind: z.ZodEnum<{
103
+ message: "message";
104
+ legacy_snapshot: "legacy_snapshot";
105
+ resource: "resource";
106
+ tool_execution: "tool_execution";
107
+ running_session: "running_session";
108
+ }>;
309
109
  messageSequence: z.ZodNullable<z.ZodNumber>;
310
110
  toolExecutionId: z.ZodNullable<z.ZodString>;
311
111
  resourceKey: z.ZodNullable<z.ZodString>;
@@ -313,84 +113,22 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
313
113
  sessionId: z.ZodNullable<z.ZodNumber>;
314
114
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
315
115
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
316
- }, "strict", z.ZodTypeAny, {
317
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
318
- sessionId: number | null;
319
- checkpointId: string | null;
320
- messageSequence: number | null;
321
- toolExecutionId: string | null;
322
- resourceKey: string | null;
323
- managerInstanceId: string | null;
324
- snapshotIndex: number | null;
325
- }, {
326
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
327
- sessionId: number | null;
328
- messageSequence: number | null;
329
- toolExecutionId: string | null;
330
- resourceKey: string | null;
331
- managerInstanceId: string | null;
332
- checkpointId?: string | null | undefined;
333
- snapshotIndex?: number | null | undefined;
334
- }>, {
335
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
336
- sessionId: number | null;
337
- checkpointId: string | null;
338
- messageSequence: number | null;
339
- toolExecutionId: string | null;
340
- resourceKey: string | null;
341
- managerInstanceId: string | null;
342
- snapshotIndex: number | null;
343
- }, {
344
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
345
- sessionId: number | null;
346
- messageSequence: number | null;
347
- toolExecutionId: string | null;
348
- resourceKey: string | null;
349
- managerInstanceId: string | null;
350
- checkpointId?: string | null | undefined;
351
- snapshotIndex?: number | null | undefined;
352
- }>>, "many">;
353
- sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
354
- }, "strict", z.ZodTypeAny, {
355
- id: string & z.BRAND<"CompactionSemanticItemId">;
356
- text: string;
357
- provenance: Readonly<{
358
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
359
- sessionId: number | null;
360
- checkpointId: string | null;
361
- messageSequence: number | null;
362
- toolExecutionId: string | null;
363
- resourceKey: string | null;
364
- managerInstanceId: string | null;
365
- snapshotIndex: number | null;
366
- }>[];
367
- sourceQuotes: string[];
368
- harnessKey?: string | undefined;
369
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
370
- }, {
371
- id: string;
372
- text: string;
373
- provenance: Readonly<{
374
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
375
- sessionId: number | null;
376
- messageSequence: number | null;
377
- toolExecutionId: string | null;
378
- resourceKey: string | null;
379
- managerInstanceId: string | null;
380
- checkpointId?: string | null | undefined;
381
- snapshotIndex?: number | null | undefined;
382
- }>[];
383
- harnessKey?: string | undefined;
384
- relatedItemId?: string | undefined;
385
- sourceQuotes?: string[] | undefined;
386
- }>>>;
116
+ }, z.core.$strict>>>;
117
+ sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString>>;
118
+ }, z.core.$strict>>>;
387
119
  constraints: z.ZodDefault<z.ZodArray<z.ZodReadonly<z.ZodObject<{
388
- id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
120
+ id: z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">;
389
121
  harnessKey: z.ZodOptional<z.ZodString>;
390
- relatedItemId: z.ZodOptional<z.ZodBranded<z.ZodString, "CompactionSemanticItemId">>;
122
+ relatedItemId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">>;
391
123
  text: z.ZodString;
392
- provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
393
- kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
124
+ provenance: z.ZodArray<z.ZodReadonly<z.ZodObject<{
125
+ kind: z.ZodEnum<{
126
+ message: "message";
127
+ legacy_snapshot: "legacy_snapshot";
128
+ resource: "resource";
129
+ tool_execution: "tool_execution";
130
+ running_session: "running_session";
131
+ }>;
394
132
  messageSequence: z.ZodNullable<z.ZodNumber>;
395
133
  toolExecutionId: z.ZodNullable<z.ZodString>;
396
134
  resourceKey: z.ZodNullable<z.ZodString>;
@@ -398,84 +136,22 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
398
136
  sessionId: z.ZodNullable<z.ZodNumber>;
399
137
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
400
138
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
401
- }, "strict", z.ZodTypeAny, {
402
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
403
- sessionId: number | null;
404
- checkpointId: string | null;
405
- messageSequence: number | null;
406
- toolExecutionId: string | null;
407
- resourceKey: string | null;
408
- managerInstanceId: string | null;
409
- snapshotIndex: number | null;
410
- }, {
411
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
412
- sessionId: number | null;
413
- messageSequence: number | null;
414
- toolExecutionId: string | null;
415
- resourceKey: string | null;
416
- managerInstanceId: string | null;
417
- checkpointId?: string | null | undefined;
418
- snapshotIndex?: number | null | undefined;
419
- }>, {
420
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
421
- sessionId: number | null;
422
- checkpointId: string | null;
423
- messageSequence: number | null;
424
- toolExecutionId: string | null;
425
- resourceKey: string | null;
426
- managerInstanceId: string | null;
427
- snapshotIndex: number | null;
428
- }, {
429
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
430
- sessionId: number | null;
431
- messageSequence: number | null;
432
- toolExecutionId: string | null;
433
- resourceKey: string | null;
434
- managerInstanceId: string | null;
435
- checkpointId?: string | null | undefined;
436
- snapshotIndex?: number | null | undefined;
437
- }>>, "many">;
438
- sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
439
- }, "strict", z.ZodTypeAny, {
440
- id: string & z.BRAND<"CompactionSemanticItemId">;
441
- text: string;
442
- provenance: Readonly<{
443
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
444
- sessionId: number | null;
445
- checkpointId: string | null;
446
- messageSequence: number | null;
447
- toolExecutionId: string | null;
448
- resourceKey: string | null;
449
- managerInstanceId: string | null;
450
- snapshotIndex: number | null;
451
- }>[];
452
- sourceQuotes: string[];
453
- harnessKey?: string | undefined;
454
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
455
- }, {
456
- id: string;
457
- text: string;
458
- provenance: Readonly<{
459
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
460
- sessionId: number | null;
461
- messageSequence: number | null;
462
- toolExecutionId: string | null;
463
- resourceKey: string | null;
464
- managerInstanceId: string | null;
465
- checkpointId?: string | null | undefined;
466
- snapshotIndex?: number | null | undefined;
467
- }>[];
468
- harnessKey?: string | undefined;
469
- relatedItemId?: string | undefined;
470
- sourceQuotes?: string[] | undefined;
471
- }>>, "many">>;
139
+ }, z.core.$strict>>>;
140
+ sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString>>;
141
+ }, z.core.$strict>>>>;
472
142
  decisions: z.ZodArray<z.ZodReadonly<z.ZodObject<{
473
- id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
143
+ id: z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">;
474
144
  harnessKey: z.ZodOptional<z.ZodString>;
475
- relatedItemId: z.ZodOptional<z.ZodBranded<z.ZodString, "CompactionSemanticItemId">>;
145
+ relatedItemId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">>;
476
146
  text: z.ZodString;
477
- provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
478
- kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
147
+ provenance: z.ZodArray<z.ZodReadonly<z.ZodObject<{
148
+ kind: z.ZodEnum<{
149
+ message: "message";
150
+ legacy_snapshot: "legacy_snapshot";
151
+ resource: "resource";
152
+ tool_execution: "tool_execution";
153
+ running_session: "running_session";
154
+ }>;
479
155
  messageSequence: z.ZodNullable<z.ZodNumber>;
480
156
  toolExecutionId: z.ZodNullable<z.ZodString>;
481
157
  resourceKey: z.ZodNullable<z.ZodString>;
@@ -483,84 +159,22 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
483
159
  sessionId: z.ZodNullable<z.ZodNumber>;
484
160
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
485
161
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
486
- }, "strict", z.ZodTypeAny, {
487
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
488
- sessionId: number | null;
489
- checkpointId: string | null;
490
- messageSequence: number | null;
491
- toolExecutionId: string | null;
492
- resourceKey: string | null;
493
- managerInstanceId: string | null;
494
- snapshotIndex: number | null;
495
- }, {
496
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
497
- sessionId: number | null;
498
- messageSequence: number | null;
499
- toolExecutionId: string | null;
500
- resourceKey: string | null;
501
- managerInstanceId: string | null;
502
- checkpointId?: string | null | undefined;
503
- snapshotIndex?: number | null | undefined;
504
- }>, {
505
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
506
- sessionId: number | null;
507
- checkpointId: string | null;
508
- messageSequence: number | null;
509
- toolExecutionId: string | null;
510
- resourceKey: string | null;
511
- managerInstanceId: string | null;
512
- snapshotIndex: number | null;
513
- }, {
514
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
515
- sessionId: number | null;
516
- messageSequence: number | null;
517
- toolExecutionId: string | null;
518
- resourceKey: string | null;
519
- managerInstanceId: string | null;
520
- checkpointId?: string | null | undefined;
521
- snapshotIndex?: number | null | undefined;
522
- }>>, "many">;
523
- sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
524
- }, "strict", z.ZodTypeAny, {
525
- id: string & z.BRAND<"CompactionSemanticItemId">;
526
- text: string;
527
- provenance: Readonly<{
528
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
529
- sessionId: number | null;
530
- checkpointId: string | null;
531
- messageSequence: number | null;
532
- toolExecutionId: string | null;
533
- resourceKey: string | null;
534
- managerInstanceId: string | null;
535
- snapshotIndex: number | null;
536
- }>[];
537
- sourceQuotes: string[];
538
- harnessKey?: string | undefined;
539
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
540
- }, {
541
- id: string;
542
- text: string;
543
- provenance: Readonly<{
544
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
545
- sessionId: number | null;
546
- messageSequence: number | null;
547
- toolExecutionId: string | null;
548
- resourceKey: string | null;
549
- managerInstanceId: string | null;
550
- checkpointId?: string | null | undefined;
551
- snapshotIndex?: number | null | undefined;
552
- }>[];
553
- harnessKey?: string | undefined;
554
- relatedItemId?: string | undefined;
555
- sourceQuotes?: string[] | undefined;
556
- }>>, "many">;
162
+ }, z.core.$strict>>>;
163
+ sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString>>;
164
+ }, z.core.$strict>>>;
557
165
  completedWork: z.ZodArray<z.ZodReadonly<z.ZodObject<{
558
- id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
166
+ id: z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">;
559
167
  harnessKey: z.ZodOptional<z.ZodString>;
560
- relatedItemId: z.ZodOptional<z.ZodBranded<z.ZodString, "CompactionSemanticItemId">>;
168
+ relatedItemId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">>;
561
169
  text: z.ZodString;
562
- provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
563
- kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
170
+ provenance: z.ZodArray<z.ZodReadonly<z.ZodObject<{
171
+ kind: z.ZodEnum<{
172
+ message: "message";
173
+ legacy_snapshot: "legacy_snapshot";
174
+ resource: "resource";
175
+ tool_execution: "tool_execution";
176
+ running_session: "running_session";
177
+ }>;
564
178
  messageSequence: z.ZodNullable<z.ZodNumber>;
565
179
  toolExecutionId: z.ZodNullable<z.ZodString>;
566
180
  resourceKey: z.ZodNullable<z.ZodString>;
@@ -568,84 +182,22 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
568
182
  sessionId: z.ZodNullable<z.ZodNumber>;
569
183
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
570
184
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
571
- }, "strict", z.ZodTypeAny, {
572
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
573
- sessionId: number | null;
574
- checkpointId: string | null;
575
- messageSequence: number | null;
576
- toolExecutionId: string | null;
577
- resourceKey: string | null;
578
- managerInstanceId: string | null;
579
- snapshotIndex: number | null;
580
- }, {
581
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
582
- sessionId: number | null;
583
- messageSequence: number | null;
584
- toolExecutionId: string | null;
585
- resourceKey: string | null;
586
- managerInstanceId: string | null;
587
- checkpointId?: string | null | undefined;
588
- snapshotIndex?: number | null | undefined;
589
- }>, {
590
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
591
- sessionId: number | null;
592
- checkpointId: string | null;
593
- messageSequence: number | null;
594
- toolExecutionId: string | null;
595
- resourceKey: string | null;
596
- managerInstanceId: string | null;
597
- snapshotIndex: number | null;
598
- }, {
599
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
600
- sessionId: number | null;
601
- messageSequence: number | null;
602
- toolExecutionId: string | null;
603
- resourceKey: string | null;
604
- managerInstanceId: string | null;
605
- checkpointId?: string | null | undefined;
606
- snapshotIndex?: number | null | undefined;
607
- }>>, "many">;
608
- sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
609
- }, "strict", z.ZodTypeAny, {
610
- id: string & z.BRAND<"CompactionSemanticItemId">;
611
- text: string;
612
- provenance: Readonly<{
613
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
614
- sessionId: number | null;
615
- checkpointId: string | null;
616
- messageSequence: number | null;
617
- toolExecutionId: string | null;
618
- resourceKey: string | null;
619
- managerInstanceId: string | null;
620
- snapshotIndex: number | null;
621
- }>[];
622
- sourceQuotes: string[];
623
- harnessKey?: string | undefined;
624
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
625
- }, {
626
- id: string;
627
- text: string;
628
- provenance: Readonly<{
629
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
630
- sessionId: number | null;
631
- messageSequence: number | null;
632
- toolExecutionId: string | null;
633
- resourceKey: string | null;
634
- managerInstanceId: string | null;
635
- checkpointId?: string | null | undefined;
636
- snapshotIndex?: number | null | undefined;
637
- }>[];
638
- harnessKey?: string | undefined;
639
- relatedItemId?: string | undefined;
640
- sourceQuotes?: string[] | undefined;
641
- }>>, "many">;
185
+ }, z.core.$strict>>>;
186
+ sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString>>;
187
+ }, z.core.$strict>>>;
642
188
  pendingWork: z.ZodArray<z.ZodReadonly<z.ZodObject<{
643
- id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
189
+ id: z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">;
644
190
  harnessKey: z.ZodOptional<z.ZodString>;
645
- relatedItemId: z.ZodOptional<z.ZodBranded<z.ZodString, "CompactionSemanticItemId">>;
191
+ relatedItemId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">>;
646
192
  text: z.ZodString;
647
- provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
648
- kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
193
+ provenance: z.ZodArray<z.ZodReadonly<z.ZodObject<{
194
+ kind: z.ZodEnum<{
195
+ message: "message";
196
+ legacy_snapshot: "legacy_snapshot";
197
+ resource: "resource";
198
+ tool_execution: "tool_execution";
199
+ running_session: "running_session";
200
+ }>;
649
201
  messageSequence: z.ZodNullable<z.ZodNumber>;
650
202
  toolExecutionId: z.ZodNullable<z.ZodString>;
651
203
  resourceKey: z.ZodNullable<z.ZodString>;
@@ -653,82 +205,20 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
653
205
  sessionId: z.ZodNullable<z.ZodNumber>;
654
206
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
655
207
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
656
- }, "strict", z.ZodTypeAny, {
657
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
658
- sessionId: number | null;
659
- checkpointId: string | null;
660
- messageSequence: number | null;
661
- toolExecutionId: string | null;
662
- resourceKey: string | null;
663
- managerInstanceId: string | null;
664
- snapshotIndex: number | null;
665
- }, {
666
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
667
- sessionId: number | null;
668
- messageSequence: number | null;
669
- toolExecutionId: string | null;
670
- resourceKey: string | null;
671
- managerInstanceId: string | null;
672
- checkpointId?: string | null | undefined;
673
- snapshotIndex?: number | null | undefined;
674
- }>, {
675
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
676
- sessionId: number | null;
677
- checkpointId: string | null;
678
- messageSequence: number | null;
679
- toolExecutionId: string | null;
680
- resourceKey: string | null;
681
- managerInstanceId: string | null;
682
- snapshotIndex: number | null;
683
- }, {
684
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
685
- sessionId: number | null;
686
- messageSequence: number | null;
687
- toolExecutionId: string | null;
688
- resourceKey: string | null;
689
- managerInstanceId: string | null;
690
- checkpointId?: string | null | undefined;
691
- snapshotIndex?: number | null | undefined;
692
- }>>, "many">;
693
- sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
694
- }, "strict", z.ZodTypeAny, {
695
- id: string & z.BRAND<"CompactionSemanticItemId">;
696
- text: string;
697
- provenance: Readonly<{
698
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
699
- sessionId: number | null;
700
- checkpointId: string | null;
701
- messageSequence: number | null;
702
- toolExecutionId: string | null;
703
- resourceKey: string | null;
704
- managerInstanceId: string | null;
705
- snapshotIndex: number | null;
706
- }>[];
707
- sourceQuotes: string[];
708
- harnessKey?: string | undefined;
709
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
710
- }, {
711
- id: string;
712
- text: string;
713
- provenance: Readonly<{
714
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
715
- sessionId: number | null;
716
- messageSequence: number | null;
717
- toolExecutionId: string | null;
718
- resourceKey: string | null;
719
- managerInstanceId: string | null;
720
- checkpointId?: string | null | undefined;
721
- snapshotIndex?: number | null | undefined;
722
- }>[];
723
- harnessKey?: string | undefined;
724
- relatedItemId?: string | undefined;
725
- sourceQuotes?: string[] | undefined;
726
- }>>, "many">;
208
+ }, z.core.$strict>>>;
209
+ sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString>>;
210
+ }, z.core.$strict>>>;
727
211
  resources: z.ZodArray<z.ZodReadonly<z.ZodObject<{
728
- id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
212
+ id: z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">;
729
213
  resourceKey: z.ZodString;
730
- provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
731
- kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
214
+ provenance: z.ZodArray<z.ZodReadonly<z.ZodObject<{
215
+ kind: z.ZodEnum<{
216
+ message: "message";
217
+ legacy_snapshot: "legacy_snapshot";
218
+ resource: "resource";
219
+ tool_execution: "tool_execution";
220
+ running_session: "running_session";
221
+ }>;
732
222
  messageSequence: z.ZodNullable<z.ZodNumber>;
733
223
  toolExecutionId: z.ZodNullable<z.ZodString>;
734
224
  resourceKey: z.ZodNullable<z.ZodString>;
@@ -736,76 +226,20 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
736
226
  sessionId: z.ZodNullable<z.ZodNumber>;
737
227
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
738
228
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
739
- }, "strict", z.ZodTypeAny, {
740
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
741
- sessionId: number | null;
742
- checkpointId: string | null;
743
- messageSequence: number | null;
744
- toolExecutionId: string | null;
745
- resourceKey: string | null;
746
- managerInstanceId: string | null;
747
- snapshotIndex: number | null;
748
- }, {
749
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
750
- sessionId: number | null;
751
- messageSequence: number | null;
752
- toolExecutionId: string | null;
753
- resourceKey: string | null;
754
- managerInstanceId: string | null;
755
- checkpointId?: string | null | undefined;
756
- snapshotIndex?: number | null | undefined;
757
- }>, {
758
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
759
- sessionId: number | null;
760
- checkpointId: string | null;
761
- messageSequence: number | null;
762
- toolExecutionId: string | null;
763
- resourceKey: string | null;
764
- managerInstanceId: string | null;
765
- snapshotIndex: number | null;
766
- }, {
767
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
768
- sessionId: number | null;
769
- messageSequence: number | null;
770
- toolExecutionId: string | null;
771
- resourceKey: string | null;
772
- managerInstanceId: string | null;
773
- checkpointId?: string | null | undefined;
774
- snapshotIndex?: number | null | undefined;
775
- }>>, "many">;
776
- }, "strict", z.ZodTypeAny, {
777
- id: string & z.BRAND<"CompactionSemanticItemId">;
778
- resourceKey: string;
779
- provenance: Readonly<{
780
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
781
- sessionId: number | null;
782
- checkpointId: string | null;
783
- messageSequence: number | null;
784
- toolExecutionId: string | null;
785
- resourceKey: string | null;
786
- managerInstanceId: string | null;
787
- snapshotIndex: number | null;
788
- }>[];
789
- }, {
790
- id: string;
791
- resourceKey: string;
792
- provenance: Readonly<{
793
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
794
- sessionId: number | null;
795
- messageSequence: number | null;
796
- toolExecutionId: string | null;
797
- resourceKey: string | null;
798
- managerInstanceId: string | null;
799
- checkpointId?: string | null | undefined;
800
- snapshotIndex?: number | null | undefined;
801
- }>[];
802
- }>>, "many">;
229
+ }, z.core.$strict>>>;
230
+ }, z.core.$strict>>>;
803
231
  runningSessions: z.ZodArray<z.ZodReadonly<z.ZodObject<{
804
- id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
232
+ id: z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">;
805
233
  managerInstanceId: z.ZodString;
806
234
  sessionId: z.ZodNumber;
807
- provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
808
- kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
235
+ provenance: z.ZodArray<z.ZodReadonly<z.ZodObject<{
236
+ kind: z.ZodEnum<{
237
+ message: "message";
238
+ legacy_snapshot: "legacy_snapshot";
239
+ resource: "resource";
240
+ tool_execution: "tool_execution";
241
+ running_session: "running_session";
242
+ }>;
809
243
  messageSequence: z.ZodNullable<z.ZodNumber>;
810
244
  toolExecutionId: z.ZodNullable<z.ZodString>;
811
245
  resourceKey: z.ZodNullable<z.ZodString>;
@@ -813,79 +247,21 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
813
247
  sessionId: z.ZodNullable<z.ZodNumber>;
814
248
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
815
249
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
816
- }, "strict", z.ZodTypeAny, {
817
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
818
- sessionId: number | null;
819
- checkpointId: string | null;
820
- messageSequence: number | null;
821
- toolExecutionId: string | null;
822
- resourceKey: string | null;
823
- managerInstanceId: string | null;
824
- snapshotIndex: number | null;
825
- }, {
826
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
827
- sessionId: number | null;
828
- messageSequence: number | null;
829
- toolExecutionId: string | null;
830
- resourceKey: string | null;
831
- managerInstanceId: string | null;
832
- checkpointId?: string | null | undefined;
833
- snapshotIndex?: number | null | undefined;
834
- }>, {
835
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
836
- sessionId: number | null;
837
- checkpointId: string | null;
838
- messageSequence: number | null;
839
- toolExecutionId: string | null;
840
- resourceKey: string | null;
841
- managerInstanceId: string | null;
842
- snapshotIndex: number | null;
843
- }, {
844
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
845
- sessionId: number | null;
846
- messageSequence: number | null;
847
- toolExecutionId: string | null;
848
- resourceKey: string | null;
849
- managerInstanceId: string | null;
850
- checkpointId?: string | null | undefined;
851
- snapshotIndex?: number | null | undefined;
852
- }>>, "many">;
853
- }, "strict", z.ZodTypeAny, {
854
- id: string & z.BRAND<"CompactionSemanticItemId">;
855
- sessionId: number;
856
- managerInstanceId: string;
857
- provenance: Readonly<{
858
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
859
- sessionId: number | null;
860
- checkpointId: string | null;
861
- messageSequence: number | null;
862
- toolExecutionId: string | null;
863
- resourceKey: string | null;
864
- managerInstanceId: string | null;
865
- snapshotIndex: number | null;
866
- }>[];
867
- }, {
868
- id: string;
869
- sessionId: number;
870
- managerInstanceId: string;
871
- provenance: Readonly<{
872
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
873
- sessionId: number | null;
874
- messageSequence: number | null;
875
- toolExecutionId: string | null;
876
- resourceKey: string | null;
877
- managerInstanceId: string | null;
878
- checkpointId?: string | null | undefined;
879
- snapshotIndex?: number | null | undefined;
880
- }>[];
881
- }>>, "many">;
250
+ }, z.core.$strict>>>;
251
+ }, z.core.$strict>>>;
882
252
  uncertainties: z.ZodArray<z.ZodReadonly<z.ZodObject<{
883
- id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
253
+ id: z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">;
884
254
  harnessKey: z.ZodOptional<z.ZodString>;
885
- relatedItemId: z.ZodOptional<z.ZodBranded<z.ZodString, "CompactionSemanticItemId">>;
255
+ relatedItemId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">>;
886
256
  text: z.ZodString;
887
- provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
888
- kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
257
+ provenance: z.ZodArray<z.ZodReadonly<z.ZodObject<{
258
+ kind: z.ZodEnum<{
259
+ message: "message";
260
+ legacy_snapshot: "legacy_snapshot";
261
+ resource: "resource";
262
+ tool_execution: "tool_execution";
263
+ running_session: "running_session";
264
+ }>;
889
265
  messageSequence: z.ZodNullable<z.ZodNumber>;
890
266
  toolExecutionId: z.ZodNullable<z.ZodString>;
891
267
  resourceKey: z.ZodNullable<z.ZodString>;
@@ -893,77 +269,9 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
893
269
  sessionId: z.ZodNullable<z.ZodNumber>;
894
270
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
895
271
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
896
- }, "strict", z.ZodTypeAny, {
897
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
898
- sessionId: number | null;
899
- checkpointId: string | null;
900
- messageSequence: number | null;
901
- toolExecutionId: string | null;
902
- resourceKey: string | null;
903
- managerInstanceId: string | null;
904
- snapshotIndex: number | null;
905
- }, {
906
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
907
- sessionId: number | null;
908
- messageSequence: number | null;
909
- toolExecutionId: string | null;
910
- resourceKey: string | null;
911
- managerInstanceId: string | null;
912
- checkpointId?: string | null | undefined;
913
- snapshotIndex?: number | null | undefined;
914
- }>, {
915
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
916
- sessionId: number | null;
917
- checkpointId: string | null;
918
- messageSequence: number | null;
919
- toolExecutionId: string | null;
920
- resourceKey: string | null;
921
- managerInstanceId: string | null;
922
- snapshotIndex: number | null;
923
- }, {
924
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
925
- sessionId: number | null;
926
- messageSequence: number | null;
927
- toolExecutionId: string | null;
928
- resourceKey: string | null;
929
- managerInstanceId: string | null;
930
- checkpointId?: string | null | undefined;
931
- snapshotIndex?: number | null | undefined;
932
- }>>, "many">;
933
- sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
934
- }, "strict", z.ZodTypeAny, {
935
- id: string & z.BRAND<"CompactionSemanticItemId">;
936
- text: string;
937
- provenance: Readonly<{
938
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
939
- sessionId: number | null;
940
- checkpointId: string | null;
941
- messageSequence: number | null;
942
- toolExecutionId: string | null;
943
- resourceKey: string | null;
944
- managerInstanceId: string | null;
945
- snapshotIndex: number | null;
946
- }>[];
947
- sourceQuotes: string[];
948
- harnessKey?: string | undefined;
949
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
950
- }, {
951
- id: string;
952
- text: string;
953
- provenance: Readonly<{
954
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
955
- sessionId: number | null;
956
- messageSequence: number | null;
957
- toolExecutionId: string | null;
958
- resourceKey: string | null;
959
- managerInstanceId: string | null;
960
- checkpointId?: string | null | undefined;
961
- snapshotIndex?: number | null | undefined;
962
- }>[];
963
- harnessKey?: string | undefined;
964
- relatedItemId?: string | undefined;
965
- sourceQuotes?: string[] | undefined;
966
- }>>, "many">;
272
+ }, z.core.$strict>>>;
273
+ sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString>>;
274
+ }, z.core.$strict>>>;
967
275
  prunedItemCounts: z.ZodDefault<z.ZodReadonly<z.ZodObject<{
968
276
  constraint: z.ZodDefault<z.ZodNumber>;
969
277
  decision: z.ZodNumber;
@@ -972,616 +280,27 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
972
280
  resource: z.ZodNumber;
973
281
  running_session: z.ZodNumber;
974
282
  uncertainty: z.ZodNumber;
975
- }, "strict", z.ZodTypeAny, {
976
- resource: number;
977
- decision: number;
978
- running_session: number;
979
- constraint: number;
980
- completed_work: number;
981
- pending_work: number;
982
- uncertainty: number;
983
- }, {
984
- resource: number;
985
- decision: number;
986
- running_session: number;
987
- completed_work: number;
988
- pending_work: number;
989
- uncertainty: number;
990
- constraint?: number | undefined;
991
- }>>>;
992
- }, "strict", z.ZodTypeAny, {
993
- version: 1;
994
- resources: Readonly<{
995
- id: string & z.BRAND<"CompactionSemanticItemId">;
996
- resourceKey: string;
997
- provenance: Readonly<{
998
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
999
- sessionId: number | null;
1000
- checkpointId: string | null;
1001
- messageSequence: number | null;
1002
- toolExecutionId: string | null;
1003
- resourceKey: string | null;
1004
- managerInstanceId: string | null;
1005
- snapshotIndex: number | null;
1006
- }>[];
1007
- }>[];
1008
- goal: Readonly<{
1009
- id: string & z.BRAND<"CompactionSemanticItemId">;
1010
- text: string;
1011
- provenance: Readonly<{
1012
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1013
- sessionId: number | null;
1014
- checkpointId: string | null;
1015
- messageSequence: number | null;
1016
- toolExecutionId: string | null;
1017
- resourceKey: string | null;
1018
- managerInstanceId: string | null;
1019
- snapshotIndex: number | null;
1020
- }>[];
1021
- sourceQuotes: string[];
1022
- harnessKey?: string | undefined;
1023
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
1024
- }> | null;
1025
- constraints: Readonly<{
1026
- id: string & z.BRAND<"CompactionSemanticItemId">;
1027
- text: string;
1028
- provenance: Readonly<{
1029
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1030
- sessionId: number | null;
1031
- checkpointId: string | null;
1032
- messageSequence: number | null;
1033
- toolExecutionId: string | null;
1034
- resourceKey: string | null;
1035
- managerInstanceId: string | null;
1036
- snapshotIndex: number | null;
1037
- }>[];
1038
- sourceQuotes: string[];
1039
- harnessKey?: string | undefined;
1040
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
1041
- }>[];
1042
- decisions: Readonly<{
1043
- id: string & z.BRAND<"CompactionSemanticItemId">;
1044
- text: string;
1045
- provenance: Readonly<{
1046
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1047
- sessionId: number | null;
1048
- checkpointId: string | null;
1049
- messageSequence: number | null;
1050
- toolExecutionId: string | null;
1051
- resourceKey: string | null;
1052
- managerInstanceId: string | null;
1053
- snapshotIndex: number | null;
1054
- }>[];
1055
- sourceQuotes: string[];
1056
- harnessKey?: string | undefined;
1057
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
1058
- }>[];
1059
- completedWork: Readonly<{
1060
- id: string & z.BRAND<"CompactionSemanticItemId">;
1061
- text: string;
1062
- provenance: Readonly<{
1063
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1064
- sessionId: number | null;
1065
- checkpointId: string | null;
1066
- messageSequence: number | null;
1067
- toolExecutionId: string | null;
1068
- resourceKey: string | null;
1069
- managerInstanceId: string | null;
1070
- snapshotIndex: number | null;
1071
- }>[];
1072
- sourceQuotes: string[];
1073
- harnessKey?: string | undefined;
1074
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
1075
- }>[];
1076
- pendingWork: Readonly<{
1077
- id: string & z.BRAND<"CompactionSemanticItemId">;
1078
- text: string;
1079
- provenance: Readonly<{
1080
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1081
- sessionId: number | null;
1082
- checkpointId: string | null;
1083
- messageSequence: number | null;
1084
- toolExecutionId: string | null;
1085
- resourceKey: string | null;
1086
- managerInstanceId: string | null;
1087
- snapshotIndex: number | null;
1088
- }>[];
1089
- sourceQuotes: string[];
1090
- harnessKey?: string | undefined;
1091
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
1092
- }>[];
1093
- runningSessions: Readonly<{
1094
- id: string & z.BRAND<"CompactionSemanticItemId">;
1095
- sessionId: number;
1096
- managerInstanceId: string;
1097
- provenance: Readonly<{
1098
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1099
- sessionId: number | null;
1100
- checkpointId: string | null;
1101
- messageSequence: number | null;
1102
- toolExecutionId: string | null;
1103
- resourceKey: string | null;
1104
- managerInstanceId: string | null;
1105
- snapshotIndex: number | null;
1106
- }>[];
1107
- }>[];
1108
- uncertainties: Readonly<{
1109
- id: string & z.BRAND<"CompactionSemanticItemId">;
1110
- text: string;
1111
- provenance: Readonly<{
1112
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1113
- sessionId: number | null;
1114
- checkpointId: string | null;
1115
- messageSequence: number | null;
1116
- toolExecutionId: string | null;
1117
- resourceKey: string | null;
1118
- managerInstanceId: string | null;
1119
- snapshotIndex: number | null;
1120
- }>[];
1121
- sourceQuotes: string[];
1122
- harnessKey?: string | undefined;
1123
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
1124
- }>[];
1125
- prunedItemCounts: Readonly<{
1126
- resource: number;
1127
- decision: number;
1128
- running_session: number;
1129
- constraint: number;
1130
- completed_work: number;
1131
- pending_work: number;
1132
- uncertainty: number;
1133
- }>;
1134
- scopeId?: string | undefined;
1135
- }, {
1136
- version: 1;
1137
- resources: Readonly<{
1138
- id: string;
1139
- resourceKey: string;
1140
- provenance: Readonly<{
1141
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1142
- sessionId: number | null;
1143
- messageSequence: number | null;
1144
- toolExecutionId: string | null;
1145
- resourceKey: string | null;
1146
- managerInstanceId: string | null;
1147
- checkpointId?: string | null | undefined;
1148
- snapshotIndex?: number | null | undefined;
1149
- }>[];
1150
- }>[];
1151
- goal: Readonly<{
1152
- id: string;
1153
- text: string;
1154
- provenance: Readonly<{
1155
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1156
- sessionId: number | null;
1157
- messageSequence: number | null;
1158
- toolExecutionId: string | null;
1159
- resourceKey: string | null;
1160
- managerInstanceId: string | null;
1161
- checkpointId?: string | null | undefined;
1162
- snapshotIndex?: number | null | undefined;
1163
- }>[];
1164
- harnessKey?: string | undefined;
1165
- relatedItemId?: string | undefined;
1166
- sourceQuotes?: string[] | undefined;
1167
- }> | null;
1168
- decisions: Readonly<{
1169
- id: string;
1170
- text: string;
1171
- provenance: Readonly<{
1172
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1173
- sessionId: number | null;
1174
- messageSequence: number | null;
1175
- toolExecutionId: string | null;
1176
- resourceKey: string | null;
1177
- managerInstanceId: string | null;
1178
- checkpointId?: string | null | undefined;
1179
- snapshotIndex?: number | null | undefined;
1180
- }>[];
1181
- harnessKey?: string | undefined;
1182
- relatedItemId?: string | undefined;
1183
- sourceQuotes?: string[] | undefined;
1184
- }>[];
1185
- completedWork: Readonly<{
1186
- id: string;
1187
- text: string;
1188
- provenance: Readonly<{
1189
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1190
- sessionId: number | null;
1191
- messageSequence: number | null;
1192
- toolExecutionId: string | null;
1193
- resourceKey: string | null;
1194
- managerInstanceId: string | null;
1195
- checkpointId?: string | null | undefined;
1196
- snapshotIndex?: number | null | undefined;
1197
- }>[];
1198
- harnessKey?: string | undefined;
1199
- relatedItemId?: string | undefined;
1200
- sourceQuotes?: string[] | undefined;
1201
- }>[];
1202
- pendingWork: Readonly<{
1203
- id: string;
1204
- text: string;
1205
- provenance: Readonly<{
1206
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1207
- sessionId: number | null;
1208
- messageSequence: number | null;
1209
- toolExecutionId: string | null;
1210
- resourceKey: string | null;
1211
- managerInstanceId: string | null;
1212
- checkpointId?: string | null | undefined;
1213
- snapshotIndex?: number | null | undefined;
1214
- }>[];
1215
- harnessKey?: string | undefined;
1216
- relatedItemId?: string | undefined;
1217
- sourceQuotes?: string[] | undefined;
1218
- }>[];
1219
- runningSessions: Readonly<{
1220
- id: string;
1221
- sessionId: number;
1222
- managerInstanceId: string;
1223
- provenance: Readonly<{
1224
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1225
- sessionId: number | null;
1226
- messageSequence: number | null;
1227
- toolExecutionId: string | null;
1228
- resourceKey: string | null;
1229
- managerInstanceId: string | null;
1230
- checkpointId?: string | null | undefined;
1231
- snapshotIndex?: number | null | undefined;
1232
- }>[];
1233
- }>[];
1234
- uncertainties: Readonly<{
1235
- id: string;
1236
- text: string;
1237
- provenance: Readonly<{
1238
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1239
- sessionId: number | null;
1240
- messageSequence: number | null;
1241
- toolExecutionId: string | null;
1242
- resourceKey: string | null;
1243
- managerInstanceId: string | null;
1244
- checkpointId?: string | null | undefined;
1245
- snapshotIndex?: number | null | undefined;
1246
- }>[];
1247
- harnessKey?: string | undefined;
1248
- relatedItemId?: string | undefined;
1249
- sourceQuotes?: string[] | undefined;
1250
- }>[];
1251
- scopeId?: string | undefined;
1252
- constraints?: Readonly<{
1253
- id: string;
1254
- text: string;
1255
- provenance: Readonly<{
1256
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1257
- sessionId: number | null;
1258
- messageSequence: number | null;
1259
- toolExecutionId: string | null;
1260
- resourceKey: string | null;
1261
- managerInstanceId: string | null;
1262
- checkpointId?: string | null | undefined;
1263
- snapshotIndex?: number | null | undefined;
1264
- }>[];
1265
- harnessKey?: string | undefined;
1266
- relatedItemId?: string | undefined;
1267
- sourceQuotes?: string[] | undefined;
1268
- }>[] | undefined;
1269
- prunedItemCounts?: Readonly<{
1270
- resource: number;
1271
- decision: number;
1272
- running_session: number;
1273
- completed_work: number;
1274
- pending_work: number;
1275
- uncertainty: number;
1276
- constraint?: number | undefined;
1277
- }> | undefined;
1278
- }>, {
1279
- version: 1;
1280
- resources: Readonly<{
1281
- id: string & z.BRAND<"CompactionSemanticItemId">;
1282
- resourceKey: string;
1283
- provenance: Readonly<{
1284
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1285
- sessionId: number | null;
1286
- checkpointId: string | null;
1287
- messageSequence: number | null;
1288
- toolExecutionId: string | null;
1289
- resourceKey: string | null;
1290
- managerInstanceId: string | null;
1291
- snapshotIndex: number | null;
1292
- }>[];
1293
- }>[];
1294
- goal: Readonly<{
1295
- id: string & z.BRAND<"CompactionSemanticItemId">;
1296
- text: string;
1297
- provenance: Readonly<{
1298
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1299
- sessionId: number | null;
1300
- checkpointId: string | null;
1301
- messageSequence: number | null;
1302
- toolExecutionId: string | null;
1303
- resourceKey: string | null;
1304
- managerInstanceId: string | null;
1305
- snapshotIndex: number | null;
1306
- }>[];
1307
- sourceQuotes: string[];
1308
- harnessKey?: string | undefined;
1309
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
1310
- }> | null;
1311
- constraints: Readonly<{
1312
- id: string & z.BRAND<"CompactionSemanticItemId">;
1313
- text: string;
1314
- provenance: Readonly<{
1315
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1316
- sessionId: number | null;
1317
- checkpointId: string | null;
1318
- messageSequence: number | null;
1319
- toolExecutionId: string | null;
1320
- resourceKey: string | null;
1321
- managerInstanceId: string | null;
1322
- snapshotIndex: number | null;
1323
- }>[];
1324
- sourceQuotes: string[];
1325
- harnessKey?: string | undefined;
1326
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
1327
- }>[];
1328
- decisions: Readonly<{
1329
- id: string & z.BRAND<"CompactionSemanticItemId">;
1330
- text: string;
1331
- provenance: Readonly<{
1332
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1333
- sessionId: number | null;
1334
- checkpointId: string | null;
1335
- messageSequence: number | null;
1336
- toolExecutionId: string | null;
1337
- resourceKey: string | null;
1338
- managerInstanceId: string | null;
1339
- snapshotIndex: number | null;
1340
- }>[];
1341
- sourceQuotes: string[];
1342
- harnessKey?: string | undefined;
1343
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
1344
- }>[];
1345
- completedWork: Readonly<{
1346
- id: string & z.BRAND<"CompactionSemanticItemId">;
1347
- text: string;
1348
- provenance: Readonly<{
1349
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1350
- sessionId: number | null;
1351
- checkpointId: string | null;
1352
- messageSequence: number | null;
1353
- toolExecutionId: string | null;
1354
- resourceKey: string | null;
1355
- managerInstanceId: string | null;
1356
- snapshotIndex: number | null;
1357
- }>[];
1358
- sourceQuotes: string[];
1359
- harnessKey?: string | undefined;
1360
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
1361
- }>[];
1362
- pendingWork: Readonly<{
1363
- id: string & z.BRAND<"CompactionSemanticItemId">;
1364
- text: string;
1365
- provenance: Readonly<{
1366
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1367
- sessionId: number | null;
1368
- checkpointId: string | null;
1369
- messageSequence: number | null;
1370
- toolExecutionId: string | null;
1371
- resourceKey: string | null;
1372
- managerInstanceId: string | null;
1373
- snapshotIndex: number | null;
1374
- }>[];
1375
- sourceQuotes: string[];
1376
- harnessKey?: string | undefined;
1377
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
1378
- }>[];
1379
- runningSessions: Readonly<{
1380
- id: string & z.BRAND<"CompactionSemanticItemId">;
1381
- sessionId: number;
1382
- managerInstanceId: string;
1383
- provenance: Readonly<{
1384
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1385
- sessionId: number | null;
1386
- checkpointId: string | null;
1387
- messageSequence: number | null;
1388
- toolExecutionId: string | null;
1389
- resourceKey: string | null;
1390
- managerInstanceId: string | null;
1391
- snapshotIndex: number | null;
1392
- }>[];
1393
- }>[];
1394
- uncertainties: Readonly<{
1395
- id: string & z.BRAND<"CompactionSemanticItemId">;
1396
- text: string;
1397
- provenance: Readonly<{
1398
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1399
- sessionId: number | null;
1400
- checkpointId: string | null;
1401
- messageSequence: number | null;
1402
- toolExecutionId: string | null;
1403
- resourceKey: string | null;
1404
- managerInstanceId: string | null;
1405
- snapshotIndex: number | null;
1406
- }>[];
1407
- sourceQuotes: string[];
1408
- harnessKey?: string | undefined;
1409
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
1410
- }>[];
1411
- prunedItemCounts: Readonly<{
1412
- resource: number;
1413
- decision: number;
1414
- running_session: number;
1415
- constraint: number;
1416
- completed_work: number;
1417
- pending_work: number;
1418
- uncertainty: number;
1419
- }>;
1420
- scopeId?: string | undefined;
1421
- }, {
1422
- version: 1;
1423
- resources: Readonly<{
1424
- id: string;
1425
- resourceKey: string;
1426
- provenance: Readonly<{
1427
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1428
- sessionId: number | null;
1429
- messageSequence: number | null;
1430
- toolExecutionId: string | null;
1431
- resourceKey: string | null;
1432
- managerInstanceId: string | null;
1433
- checkpointId?: string | null | undefined;
1434
- snapshotIndex?: number | null | undefined;
1435
- }>[];
1436
- }>[];
1437
- goal: Readonly<{
1438
- id: string;
1439
- text: string;
1440
- provenance: Readonly<{
1441
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1442
- sessionId: number | null;
1443
- messageSequence: number | null;
1444
- toolExecutionId: string | null;
1445
- resourceKey: string | null;
1446
- managerInstanceId: string | null;
1447
- checkpointId?: string | null | undefined;
1448
- snapshotIndex?: number | null | undefined;
1449
- }>[];
1450
- harnessKey?: string | undefined;
1451
- relatedItemId?: string | undefined;
1452
- sourceQuotes?: string[] | undefined;
1453
- }> | null;
1454
- decisions: Readonly<{
1455
- id: string;
1456
- text: string;
1457
- provenance: Readonly<{
1458
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1459
- sessionId: number | null;
1460
- messageSequence: number | null;
1461
- toolExecutionId: string | null;
1462
- resourceKey: string | null;
1463
- managerInstanceId: string | null;
1464
- checkpointId?: string | null | undefined;
1465
- snapshotIndex?: number | null | undefined;
1466
- }>[];
1467
- harnessKey?: string | undefined;
1468
- relatedItemId?: string | undefined;
1469
- sourceQuotes?: string[] | undefined;
1470
- }>[];
1471
- completedWork: Readonly<{
1472
- id: string;
1473
- text: string;
1474
- provenance: Readonly<{
1475
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1476
- sessionId: number | null;
1477
- messageSequence: number | null;
1478
- toolExecutionId: string | null;
1479
- resourceKey: string | null;
1480
- managerInstanceId: string | null;
1481
- checkpointId?: string | null | undefined;
1482
- snapshotIndex?: number | null | undefined;
1483
- }>[];
1484
- harnessKey?: string | undefined;
1485
- relatedItemId?: string | undefined;
1486
- sourceQuotes?: string[] | undefined;
1487
- }>[];
1488
- pendingWork: Readonly<{
1489
- id: string;
1490
- text: string;
1491
- provenance: Readonly<{
1492
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1493
- sessionId: number | null;
1494
- messageSequence: number | null;
1495
- toolExecutionId: string | null;
1496
- resourceKey: string | null;
1497
- managerInstanceId: string | null;
1498
- checkpointId?: string | null | undefined;
1499
- snapshotIndex?: number | null | undefined;
1500
- }>[];
1501
- harnessKey?: string | undefined;
1502
- relatedItemId?: string | undefined;
1503
- sourceQuotes?: string[] | undefined;
1504
- }>[];
1505
- runningSessions: Readonly<{
1506
- id: string;
1507
- sessionId: number;
1508
- managerInstanceId: string;
1509
- provenance: Readonly<{
1510
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1511
- sessionId: number | null;
1512
- messageSequence: number | null;
1513
- toolExecutionId: string | null;
1514
- resourceKey: string | null;
1515
- managerInstanceId: string | null;
1516
- checkpointId?: string | null | undefined;
1517
- snapshotIndex?: number | null | undefined;
1518
- }>[];
1519
- }>[];
1520
- uncertainties: Readonly<{
1521
- id: string;
1522
- text: string;
1523
- provenance: Readonly<{
1524
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1525
- sessionId: number | null;
1526
- messageSequence: number | null;
1527
- toolExecutionId: string | null;
1528
- resourceKey: string | null;
1529
- managerInstanceId: string | null;
1530
- checkpointId?: string | null | undefined;
1531
- snapshotIndex?: number | null | undefined;
1532
- }>[];
1533
- harnessKey?: string | undefined;
1534
- relatedItemId?: string | undefined;
1535
- sourceQuotes?: string[] | undefined;
1536
- }>[];
1537
- scopeId?: string | undefined;
1538
- constraints?: Readonly<{
1539
- id: string;
1540
- text: string;
1541
- provenance: Readonly<{
1542
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1543
- sessionId: number | null;
1544
- messageSequence: number | null;
1545
- toolExecutionId: string | null;
1546
- resourceKey: string | null;
1547
- managerInstanceId: string | null;
1548
- checkpointId?: string | null | undefined;
1549
- snapshotIndex?: number | null | undefined;
1550
- }>[];
1551
- harnessKey?: string | undefined;
1552
- relatedItemId?: string | undefined;
1553
- sourceQuotes?: string[] | undefined;
1554
- }>[] | undefined;
1555
- prunedItemCounts?: Readonly<{
1556
- resource: number;
1557
- decision: number;
1558
- running_session: number;
1559
- completed_work: number;
1560
- pending_work: number;
1561
- uncertainty: number;
1562
- constraint?: number | undefined;
1563
- }> | undefined;
1564
- }>>;
283
+ }, z.core.$strict>>>;
284
+ }, z.core.$strict>>;
1565
285
  export type CompactionSemanticState = z.infer<typeof compactionSemanticStateSchema>;
1566
286
  export type CompactionSemanticTextItem = CompactionSemanticState["decisions"][number];
1567
287
  export declare const compactionSemanticReminderProjectionSchema: z.ZodReadonly<z.ZodObject<{
1568
288
  version: z.ZodLiteral<1>;
1569
289
  items: z.ZodArray<z.ZodReadonly<z.ZodObject<{
1570
- itemId: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
1571
- category: z.ZodEnum<["goal", "constraint", "decision", "completed_work", "pending_work", "resource", "running_session", "uncertainty"]>;
290
+ itemId: z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">;
291
+ category: z.ZodEnum<{
292
+ decision: "decision";
293
+ resource: "resource";
294
+ running_session: "running_session";
295
+ goal: "goal";
296
+ constraint: "constraint";
297
+ completed_work: "completed_work";
298
+ pending_work: "pending_work";
299
+ uncertainty: "uncertainty";
300
+ }>;
1572
301
  text: z.ZodString;
1573
- sourceQuotes: z.ZodArray<z.ZodString, "many">;
1574
- }, "strict", z.ZodTypeAny, {
1575
- text: string;
1576
- sourceQuotes: string[];
1577
- itemId: string & z.BRAND<"CompactionSemanticItemId">;
1578
- category: "resource" | "decision" | "running_session" | "goal" | "constraint" | "completed_work" | "pending_work" | "uncertainty";
1579
- }, {
1580
- text: string;
1581
- sourceQuotes: string[];
1582
- itemId: string;
1583
- category: "resource" | "decision" | "running_session" | "goal" | "constraint" | "completed_work" | "pending_work" | "uncertainty";
1584
- }>>, "many">;
302
+ sourceQuotes: z.ZodArray<z.ZodString>;
303
+ }, z.core.$strict>>>;
1585
304
  omittedCounts: z.ZodReadonly<z.ZodObject<{
1586
305
  goal: z.ZodNumber;
1587
306
  constraint: z.ZodNumber;
@@ -1591,72 +310,33 @@ export declare const compactionSemanticReminderProjectionSchema: z.ZodReadonly<z
1591
310
  resource: z.ZodNumber;
1592
311
  running_session: z.ZodNumber;
1593
312
  uncertainty: z.ZodNumber;
1594
- }, "strict", z.ZodTypeAny, {
1595
- resource: number;
1596
- decision: number;
1597
- running_session: number;
1598
- goal: number;
1599
- constraint: number;
1600
- completed_work: number;
1601
- pending_work: number;
1602
- uncertainty: number;
1603
- }, {
1604
- resource: number;
1605
- decision: number;
1606
- running_session: number;
1607
- goal: number;
1608
- constraint: number;
1609
- completed_work: number;
1610
- pending_work: number;
1611
- uncertainty: number;
1612
- }>>;
1613
- }, "strict", z.ZodTypeAny, {
1614
- version: 1;
1615
- items: Readonly<{
1616
- text: string;
1617
- sourceQuotes: string[];
1618
- itemId: string & z.BRAND<"CompactionSemanticItemId">;
1619
- category: "resource" | "decision" | "running_session" | "goal" | "constraint" | "completed_work" | "pending_work" | "uncertainty";
1620
- }>[];
1621
- omittedCounts: Readonly<{
1622
- resource: number;
1623
- decision: number;
1624
- running_session: number;
1625
- goal: number;
1626
- constraint: number;
1627
- completed_work: number;
1628
- pending_work: number;
1629
- uncertainty: number;
1630
- }>;
1631
- }, {
1632
- version: 1;
1633
- items: Readonly<{
1634
- text: string;
1635
- sourceQuotes: string[];
1636
- itemId: string;
1637
- category: "resource" | "decision" | "running_session" | "goal" | "constraint" | "completed_work" | "pending_work" | "uncertainty";
1638
- }>[];
1639
- omittedCounts: Readonly<{
1640
- resource: number;
1641
- decision: number;
1642
- running_session: number;
1643
- goal: number;
1644
- constraint: number;
1645
- completed_work: number;
1646
- pending_work: number;
1647
- uncertainty: number;
1648
- }>;
1649
- }>>;
313
+ }, z.core.$strict>>;
314
+ }, z.core.$strict>>;
1650
315
  export type CompactionSemanticReminderProjection = z.infer<typeof compactionSemanticReminderProjectionSchema>;
1651
316
  export declare const semanticArchiveItemSchema: z.ZodObject<{
1652
- category: z.ZodEnum<["goal", "constraint", "decision", "completed_work", "pending_work", "resource", "running_session", "uncertainty"]>;
1653
- item: z.ZodUnion<[z.ZodReadonly<z.ZodObject<{
1654
- id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
317
+ category: z.ZodEnum<{
318
+ decision: "decision";
319
+ resource: "resource";
320
+ running_session: "running_session";
321
+ goal: "goal";
322
+ constraint: "constraint";
323
+ completed_work: "completed_work";
324
+ pending_work: "pending_work";
325
+ uncertainty: "uncertainty";
326
+ }>;
327
+ item: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
328
+ id: z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">;
1655
329
  harnessKey: z.ZodOptional<z.ZodString>;
1656
- relatedItemId: z.ZodOptional<z.ZodBranded<z.ZodString, "CompactionSemanticItemId">>;
330
+ relatedItemId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">>;
1657
331
  text: z.ZodString;
1658
- provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
1659
- kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
332
+ provenance: z.ZodArray<z.ZodReadonly<z.ZodObject<{
333
+ kind: z.ZodEnum<{
334
+ message: "message";
335
+ legacy_snapshot: "legacy_snapshot";
336
+ resource: "resource";
337
+ tool_execution: "tool_execution";
338
+ running_session: "running_session";
339
+ }>;
1660
340
  messageSequence: z.ZodNullable<z.ZodNumber>;
1661
341
  toolExecutionId: z.ZodNullable<z.ZodString>;
1662
342
  resourceKey: z.ZodNullable<z.ZodString>;
@@ -1664,81 +344,19 @@ export declare const semanticArchiveItemSchema: z.ZodObject<{
1664
344
  sessionId: z.ZodNullable<z.ZodNumber>;
1665
345
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1666
346
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1667
- }, "strict", z.ZodTypeAny, {
1668
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1669
- sessionId: number | null;
1670
- checkpointId: string | null;
1671
- messageSequence: number | null;
1672
- toolExecutionId: string | null;
1673
- resourceKey: string | null;
1674
- managerInstanceId: string | null;
1675
- snapshotIndex: number | null;
1676
- }, {
1677
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1678
- sessionId: number | null;
1679
- messageSequence: number | null;
1680
- toolExecutionId: string | null;
1681
- resourceKey: string | null;
1682
- managerInstanceId: string | null;
1683
- checkpointId?: string | null | undefined;
1684
- snapshotIndex?: number | null | undefined;
1685
- }>, {
1686
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1687
- sessionId: number | null;
1688
- checkpointId: string | null;
1689
- messageSequence: number | null;
1690
- toolExecutionId: string | null;
1691
- resourceKey: string | null;
1692
- managerInstanceId: string | null;
1693
- snapshotIndex: number | null;
1694
- }, {
1695
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1696
- sessionId: number | null;
1697
- messageSequence: number | null;
1698
- toolExecutionId: string | null;
1699
- resourceKey: string | null;
1700
- managerInstanceId: string | null;
1701
- checkpointId?: string | null | undefined;
1702
- snapshotIndex?: number | null | undefined;
1703
- }>>, "many">;
1704
- sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1705
- }, "strict", z.ZodTypeAny, {
1706
- id: string & z.BRAND<"CompactionSemanticItemId">;
1707
- text: string;
1708
- provenance: Readonly<{
1709
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1710
- sessionId: number | null;
1711
- checkpointId: string | null;
1712
- messageSequence: number | null;
1713
- toolExecutionId: string | null;
1714
- resourceKey: string | null;
1715
- managerInstanceId: string | null;
1716
- snapshotIndex: number | null;
1717
- }>[];
1718
- sourceQuotes: string[];
1719
- harnessKey?: string | undefined;
1720
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
1721
- }, {
1722
- id: string;
1723
- text: string;
1724
- provenance: Readonly<{
1725
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1726
- sessionId: number | null;
1727
- messageSequence: number | null;
1728
- toolExecutionId: string | null;
1729
- resourceKey: string | null;
1730
- managerInstanceId: string | null;
1731
- checkpointId?: string | null | undefined;
1732
- snapshotIndex?: number | null | undefined;
1733
- }>[];
1734
- harnessKey?: string | undefined;
1735
- relatedItemId?: string | undefined;
1736
- sourceQuotes?: string[] | undefined;
1737
- }>>, z.ZodReadonly<z.ZodObject<{
1738
- id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
347
+ }, z.core.$strict>>>;
348
+ sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString>>;
349
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
350
+ id: z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">;
1739
351
  resourceKey: z.ZodString;
1740
- provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
1741
- kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
352
+ provenance: z.ZodArray<z.ZodReadonly<z.ZodObject<{
353
+ kind: z.ZodEnum<{
354
+ message: "message";
355
+ legacy_snapshot: "legacy_snapshot";
356
+ resource: "resource";
357
+ tool_execution: "tool_execution";
358
+ running_session: "running_session";
359
+ }>;
1742
360
  messageSequence: z.ZodNullable<z.ZodNumber>;
1743
361
  toolExecutionId: z.ZodNullable<z.ZodString>;
1744
362
  resourceKey: z.ZodNullable<z.ZodString>;
@@ -1746,75 +364,19 @@ export declare const semanticArchiveItemSchema: z.ZodObject<{
1746
364
  sessionId: z.ZodNullable<z.ZodNumber>;
1747
365
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1748
366
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1749
- }, "strict", z.ZodTypeAny, {
1750
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1751
- sessionId: number | null;
1752
- checkpointId: string | null;
1753
- messageSequence: number | null;
1754
- toolExecutionId: string | null;
1755
- resourceKey: string | null;
1756
- managerInstanceId: string | null;
1757
- snapshotIndex: number | null;
1758
- }, {
1759
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1760
- sessionId: number | null;
1761
- messageSequence: number | null;
1762
- toolExecutionId: string | null;
1763
- resourceKey: string | null;
1764
- managerInstanceId: string | null;
1765
- checkpointId?: string | null | undefined;
1766
- snapshotIndex?: number | null | undefined;
1767
- }>, {
1768
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1769
- sessionId: number | null;
1770
- checkpointId: string | null;
1771
- messageSequence: number | null;
1772
- toolExecutionId: string | null;
1773
- resourceKey: string | null;
1774
- managerInstanceId: string | null;
1775
- snapshotIndex: number | null;
1776
- }, {
1777
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1778
- sessionId: number | null;
1779
- messageSequence: number | null;
1780
- toolExecutionId: string | null;
1781
- resourceKey: string | null;
1782
- managerInstanceId: string | null;
1783
- checkpointId?: string | null | undefined;
1784
- snapshotIndex?: number | null | undefined;
1785
- }>>, "many">;
1786
- }, "strict", z.ZodTypeAny, {
1787
- id: string & z.BRAND<"CompactionSemanticItemId">;
1788
- resourceKey: string;
1789
- provenance: Readonly<{
1790
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1791
- sessionId: number | null;
1792
- checkpointId: string | null;
1793
- messageSequence: number | null;
1794
- toolExecutionId: string | null;
1795
- resourceKey: string | null;
1796
- managerInstanceId: string | null;
1797
- snapshotIndex: number | null;
1798
- }>[];
1799
- }, {
1800
- id: string;
1801
- resourceKey: string;
1802
- provenance: Readonly<{
1803
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1804
- sessionId: number | null;
1805
- messageSequence: number | null;
1806
- toolExecutionId: string | null;
1807
- resourceKey: string | null;
1808
- managerInstanceId: string | null;
1809
- checkpointId?: string | null | undefined;
1810
- snapshotIndex?: number | null | undefined;
1811
- }>[];
1812
- }>>, z.ZodReadonly<z.ZodObject<{
1813
- id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
367
+ }, z.core.$strict>>>;
368
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
369
+ id: z.core.$ZodBranded<z.ZodString, "CompactionSemanticItemId", "out">;
1814
370
  managerInstanceId: z.ZodString;
1815
371
  sessionId: z.ZodNumber;
1816
- provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
1817
- kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
372
+ provenance: z.ZodArray<z.ZodReadonly<z.ZodObject<{
373
+ kind: z.ZodEnum<{
374
+ message: "message";
375
+ legacy_snapshot: "legacy_snapshot";
376
+ resource: "resource";
377
+ tool_execution: "tool_execution";
378
+ running_session: "running_session";
379
+ }>;
1818
380
  messageSequence: z.ZodNullable<z.ZodNumber>;
1819
381
  toolExecutionId: z.ZodNullable<z.ZodString>;
1820
382
  resourceKey: z.ZodNullable<z.ZodString>;
@@ -1822,165 +384,9 @@ export declare const semanticArchiveItemSchema: z.ZodObject<{
1822
384
  sessionId: z.ZodNullable<z.ZodNumber>;
1823
385
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1824
386
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1825
- }, "strict", z.ZodTypeAny, {
1826
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1827
- sessionId: number | null;
1828
- checkpointId: string | null;
1829
- messageSequence: number | null;
1830
- toolExecutionId: string | null;
1831
- resourceKey: string | null;
1832
- managerInstanceId: string | null;
1833
- snapshotIndex: number | null;
1834
- }, {
1835
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1836
- sessionId: number | null;
1837
- messageSequence: number | null;
1838
- toolExecutionId: string | null;
1839
- resourceKey: string | null;
1840
- managerInstanceId: string | null;
1841
- checkpointId?: string | null | undefined;
1842
- snapshotIndex?: number | null | undefined;
1843
- }>, {
1844
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1845
- sessionId: number | null;
1846
- checkpointId: string | null;
1847
- messageSequence: number | null;
1848
- toolExecutionId: string | null;
1849
- resourceKey: string | null;
1850
- managerInstanceId: string | null;
1851
- snapshotIndex: number | null;
1852
- }, {
1853
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1854
- sessionId: number | null;
1855
- messageSequence: number | null;
1856
- toolExecutionId: string | null;
1857
- resourceKey: string | null;
1858
- managerInstanceId: string | null;
1859
- checkpointId?: string | null | undefined;
1860
- snapshotIndex?: number | null | undefined;
1861
- }>>, "many">;
1862
- }, "strict", z.ZodTypeAny, {
1863
- id: string & z.BRAND<"CompactionSemanticItemId">;
1864
- sessionId: number;
1865
- managerInstanceId: string;
1866
- provenance: Readonly<{
1867
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1868
- sessionId: number | null;
1869
- checkpointId: string | null;
1870
- messageSequence: number | null;
1871
- toolExecutionId: string | null;
1872
- resourceKey: string | null;
1873
- managerInstanceId: string | null;
1874
- snapshotIndex: number | null;
1875
- }>[];
1876
- }, {
1877
- id: string;
1878
- sessionId: number;
1879
- managerInstanceId: string;
1880
- provenance: Readonly<{
1881
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1882
- sessionId: number | null;
1883
- messageSequence: number | null;
1884
- toolExecutionId: string | null;
1885
- resourceKey: string | null;
1886
- managerInstanceId: string | null;
1887
- checkpointId?: string | null | undefined;
1888
- snapshotIndex?: number | null | undefined;
1889
- }>[];
1890
- }>>]>;
1891
- }, "strict", z.ZodTypeAny, {
1892
- item: Readonly<{
1893
- id: string & z.BRAND<"CompactionSemanticItemId">;
1894
- text: string;
1895
- provenance: Readonly<{
1896
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1897
- sessionId: number | null;
1898
- checkpointId: string | null;
1899
- messageSequence: number | null;
1900
- toolExecutionId: string | null;
1901
- resourceKey: string | null;
1902
- managerInstanceId: string | null;
1903
- snapshotIndex: number | null;
1904
- }>[];
1905
- sourceQuotes: string[];
1906
- harnessKey?: string | undefined;
1907
- relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
1908
- }> | Readonly<{
1909
- id: string & z.BRAND<"CompactionSemanticItemId">;
1910
- resourceKey: string;
1911
- provenance: Readonly<{
1912
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1913
- sessionId: number | null;
1914
- checkpointId: string | null;
1915
- messageSequence: number | null;
1916
- toolExecutionId: string | null;
1917
- resourceKey: string | null;
1918
- managerInstanceId: string | null;
1919
- snapshotIndex: number | null;
1920
- }>[];
1921
- }> | Readonly<{
1922
- id: string & z.BRAND<"CompactionSemanticItemId">;
1923
- sessionId: number;
1924
- managerInstanceId: string;
1925
- provenance: Readonly<{
1926
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1927
- sessionId: number | null;
1928
- checkpointId: string | null;
1929
- messageSequence: number | null;
1930
- toolExecutionId: string | null;
1931
- resourceKey: string | null;
1932
- managerInstanceId: string | null;
1933
- snapshotIndex: number | null;
1934
- }>[];
1935
- }>;
1936
- category: "resource" | "decision" | "running_session" | "goal" | "constraint" | "completed_work" | "pending_work" | "uncertainty";
1937
- }, {
1938
- item: Readonly<{
1939
- id: string;
1940
- text: string;
1941
- provenance: Readonly<{
1942
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1943
- sessionId: number | null;
1944
- messageSequence: number | null;
1945
- toolExecutionId: string | null;
1946
- resourceKey: string | null;
1947
- managerInstanceId: string | null;
1948
- checkpointId?: string | null | undefined;
1949
- snapshotIndex?: number | null | undefined;
1950
- }>[];
1951
- harnessKey?: string | undefined;
1952
- relatedItemId?: string | undefined;
1953
- sourceQuotes?: string[] | undefined;
1954
- }> | Readonly<{
1955
- id: string;
1956
- resourceKey: string;
1957
- provenance: Readonly<{
1958
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1959
- sessionId: number | null;
1960
- messageSequence: number | null;
1961
- toolExecutionId: string | null;
1962
- resourceKey: string | null;
1963
- managerInstanceId: string | null;
1964
- checkpointId?: string | null | undefined;
1965
- snapshotIndex?: number | null | undefined;
1966
- }>[];
1967
- }> | Readonly<{
1968
- id: string;
1969
- sessionId: number;
1970
- managerInstanceId: string;
1971
- provenance: Readonly<{
1972
- kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1973
- sessionId: number | null;
1974
- messageSequence: number | null;
1975
- toolExecutionId: string | null;
1976
- resourceKey: string | null;
1977
- managerInstanceId: string | null;
1978
- checkpointId?: string | null | undefined;
1979
- snapshotIndex?: number | null | undefined;
1980
- }>[];
1981
- }>;
1982
- category: "resource" | "decision" | "running_session" | "goal" | "constraint" | "completed_work" | "pending_work" | "uncertainty";
1983
- }>;
387
+ }, z.core.$strict>>>;
388
+ }, z.core.$strict>>]>;
389
+ }, z.core.$strict>;
1984
390
  export type SemanticArchiveItem = z.infer<typeof semanticArchiveItemSchema>;
1985
391
  export declare function listSemanticArchiveItems(state: CompactionSemanticState): SemanticArchiveItem[];
1986
392
  export declare function createEmptyCompactionSemanticState(): CompactionSemanticState;