@cleocode/contracts 2026.6.12 → 2026.6.13

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 (136) hide show
  1. package/dist/__tests__/operation-def.test.js +2 -1
  2. package/dist/__tests__/operation-def.test.js.map +1 -1
  3. package/dist/__tests__/sealed-credential.test.d.ts +19 -0
  4. package/dist/__tests__/sealed-credential.test.d.ts.map +1 -0
  5. package/dist/__tests__/sealed-credential.test.js +74 -0
  6. package/dist/__tests__/sealed-credential.test.js.map +1 -0
  7. package/dist/__tests__/skill-executor-contract.test.js +3 -0
  8. package/dist/__tests__/skill-executor-contract.test.js.map +1 -1
  9. package/dist/acceptance-gate.d.ts +2 -3
  10. package/dist/acceptance-gate.d.ts.map +1 -1
  11. package/dist/boundary.d.ts.map +1 -1
  12. package/dist/boundary.js +1 -19
  13. package/dist/boundary.js.map +1 -1
  14. package/dist/config.d.ts +102 -0
  15. package/dist/config.d.ts.map +1 -1
  16. package/dist/data-accessor.d.ts +21 -1
  17. package/dist/data-accessor.d.ts.map +1 -1
  18. package/dist/data-accessor.js.map +1 -1
  19. package/dist/dispatch/identity.d.ts +1 -1
  20. package/dist/dispatch/identity.d.ts.map +1 -1
  21. package/dist/dispatch/identity.js +5 -0
  22. package/dist/dispatch/identity.js.map +1 -1
  23. package/dist/dispatch/operations-registry.d.ts.map +1 -1
  24. package/dist/dispatch/operations-registry.js +46 -168
  25. package/dist/dispatch/operations-registry.js.map +1 -1
  26. package/dist/docs/read.d.ts +2 -2
  27. package/dist/index.d.ts +12 -7
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +3 -0
  30. package/dist/index.js.map +1 -1
  31. package/dist/lease-ipc/__tests__/freeze.test.d.ts +15 -0
  32. package/dist/lease-ipc/__tests__/freeze.test.d.ts.map +1 -0
  33. package/dist/lease-ipc/__tests__/freeze.test.js +221 -0
  34. package/dist/lease-ipc/__tests__/freeze.test.js.map +1 -0
  35. package/dist/lease-ipc/index.d.ts +17 -0
  36. package/dist/lease-ipc/index.d.ts.map +1 -0
  37. package/dist/lease-ipc/index.js +16 -0
  38. package/dist/lease-ipc/index.js.map +1 -0
  39. package/dist/lease-ipc/messages.d.ts +754 -0
  40. package/dist/lease-ipc/messages.d.ts.map +1 -0
  41. package/dist/lease-ipc/messages.js +383 -0
  42. package/dist/lease-ipc/messages.js.map +1 -0
  43. package/dist/lease-ipc/version.d.ts +41 -0
  44. package/dist/lease-ipc/version.d.ts.map +1 -0
  45. package/dist/lease-ipc/version.js +43 -0
  46. package/dist/lease-ipc/version.js.map +1 -0
  47. package/dist/llm/interfaces.d.ts +23 -0
  48. package/dist/llm/interfaces.d.ts.map +1 -1
  49. package/dist/llm/sealed-credential.d.ts +164 -0
  50. package/dist/llm/sealed-credential.d.ts.map +1 -0
  51. package/dist/llm/sealed-credential.js +43 -0
  52. package/dist/llm/sealed-credential.js.map +1 -0
  53. package/dist/llm/system-of-use.d.ts +383 -0
  54. package/dist/llm/system-of-use.d.ts.map +1 -0
  55. package/dist/llm/system-of-use.js +238 -0
  56. package/dist/llm/system-of-use.js.map +1 -0
  57. package/dist/llm/system-resolver.d.ts +45 -11
  58. package/dist/llm/system-resolver.d.ts.map +1 -1
  59. package/dist/llm/system-resolver.js +14 -7
  60. package/dist/llm/system-resolver.js.map +1 -1
  61. package/dist/operations/__tests__/ensures-schema-registry.test.d.ts +17 -0
  62. package/dist/operations/__tests__/ensures-schema-registry.test.d.ts.map +1 -0
  63. package/dist/operations/__tests__/ensures-schema-registry.test.js +113 -0
  64. package/dist/operations/__tests__/ensures-schema-registry.test.js.map +1 -0
  65. package/dist/operations/ensures-schema-registry.d.ts +172 -0
  66. package/dist/operations/ensures-schema-registry.d.ts.map +1 -0
  67. package/dist/operations/ensures-schema-registry.js +226 -0
  68. package/dist/operations/ensures-schema-registry.js.map +1 -0
  69. package/dist/operations/llm.d.ts +101 -9
  70. package/dist/operations/llm.d.ts.map +1 -1
  71. package/dist/operations/validate.d.ts +1 -12
  72. package/dist/operations/validate.d.ts.map +1 -1
  73. package/dist/operations/validate.js +1 -1
  74. package/dist/playbook.d.ts +60 -0
  75. package/dist/playbook.d.ts.map +1 -1
  76. package/dist/session.d.ts +11 -0
  77. package/dist/session.d.ts.map +1 -1
  78. package/dist/session.js.map +1 -1
  79. package/dist/templates/manifest.d.ts +1 -1
  80. package/dist/tools/agent-tools.d.ts +231 -0
  81. package/dist/tools/agent-tools.d.ts.map +1 -0
  82. package/dist/tools/agent-tools.js +25 -0
  83. package/dist/tools/agent-tools.js.map +1 -0
  84. package/dist/tools/atomic.d.ts +19 -0
  85. package/dist/tools/atomic.d.ts.map +1 -1
  86. package/dist/tools/atomic.js +17 -0
  87. package/dist/tools/atomic.js.map +1 -1
  88. package/dist/tools/index.d.ts +2 -0
  89. package/dist/tools/index.d.ts.map +1 -1
  90. package/dist/tools/skill-executor.d.ts +7 -0
  91. package/dist/tools/skill-executor.d.ts.map +1 -1
  92. package/dist/tools/web-tools.d.ts +217 -0
  93. package/dist/tools/web-tools.d.ts.map +1 -0
  94. package/dist/tools/web-tools.js +31 -0
  95. package/dist/tools/web-tools.js.map +1 -0
  96. package/package.json +6 -2
  97. package/src/__tests__/__snapshots__/operations-registry.test.ts.snap +1 -1
  98. package/src/__tests__/operation-def.test.ts +2 -1
  99. package/src/__tests__/sealed-credential.test.ts +100 -0
  100. package/src/__tests__/skill-executor-contract.test.ts +3 -0
  101. package/src/acceptance-gate.ts +2 -3
  102. package/src/boundary.ts +1 -20
  103. package/src/config.ts +104 -0
  104. package/src/data-accessor.ts +22 -1
  105. package/src/dispatch/identity.ts +5 -0
  106. package/src/dispatch/operations-registry.ts +51 -170
  107. package/src/index.ts +103 -24
  108. package/src/lease-ipc/__tests__/freeze.test.ts +246 -0
  109. package/src/lease-ipc/index.ts +63 -0
  110. package/src/lease-ipc/messages.ts +471 -0
  111. package/src/lease-ipc/version.ts +46 -0
  112. package/src/llm/interfaces.ts +23 -0
  113. package/src/llm/sealed-credential.ts +166 -0
  114. package/src/llm/system-of-use.ts +503 -0
  115. package/src/llm/system-resolver.ts +46 -11
  116. package/src/operations/__tests__/ensures-schema-registry.test.ts +169 -0
  117. package/src/operations/ensures-schema-registry.ts +260 -0
  118. package/src/operations/llm.ts +105 -8
  119. package/src/operations/validate.ts +1 -14
  120. package/src/playbook.ts +61 -0
  121. package/src/session.ts +11 -0
  122. package/src/tools/agent-tools.ts +270 -0
  123. package/src/tools/atomic.ts +21 -0
  124. package/src/tools/index.ts +46 -0
  125. package/src/tools/skill-executor.ts +7 -0
  126. package/src/tools/web-tools.ts +247 -0
  127. package/dist/tessera.d.ts +0 -32
  128. package/dist/tessera.d.ts.map +0 -1
  129. package/dist/tessera.js +0 -11
  130. package/dist/tessera.js.map +0 -1
  131. package/dist/warp-chain.d.ts +0 -129
  132. package/dist/warp-chain.d.ts.map +0 -1
  133. package/dist/warp-chain.js +0 -13
  134. package/dist/warp-chain.js.map +0 -1
  135. package/src/tessera.ts +0 -35
  136. package/src/warp-chain.ts +0 -185
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/lease-ipc/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;EAAgC,CAAC;AAE9D,iEAAiE;AACjE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe;;;;EAAqC,CAAC;AAElE,mEAAmE;AACnE,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAIxD;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;kBAiB3B,CAAC;AAEZ,iFA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,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAItE;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAW/B,CAAC;AAEZ,oFAAoF;AACpF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAWhC,CAAC;AAEZ,sFAAsF;AACtF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAGjC,CAAC;AAEH,6EAA6E;AAC7E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAItE;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,wFAM1B,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,wBAAwB,kJAS3B,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,uBAAuB,+NAG1B,CAAC"}
@@ -0,0 +1,383 @@
1
+ /**
2
+ * `lease-ipc` v1.1 — PARALLEL message contract (Zod schemas) for the
3
+ * DbWriterLease IPC surface (T11627 ST-1).
4
+ *
5
+ * This is the byte-for-byte TypeScript mirror of the Rust serde types in
6
+ * `crates/cleo-supervisor/src/lease_ipc.rs`. The wire format is newline-delimited
7
+ * JSON (NDJSON): one {@link LeaseIpcEnvelope} per line — identical framing to the
8
+ * frozen `supervisor-ipc` v1.0 envelope, only the version string
9
+ * ({@link LEASE_IPC_PROTOCOL_VERSION}) and the inner union differ.
10
+ *
11
+ * Wire-shape contract (snake_case keys — matches serde defaults):
12
+ *
13
+ * ```jsonc
14
+ * // request
15
+ * { "protocol_version": "1.1.0", "id": "abc", "direction": "request",
16
+ * "request": { "kind": "lease_acquire", "scope": "project", "lane": "tasks",
17
+ * "holder_id": "pid-42:tasks", "priority": 0, "ttl_ms": 30000,
18
+ * "reentrant": true } }
19
+ * // response
20
+ * { "protocol_version": "1.1.0", "id": "abc", "direction": "response",
21
+ * "response": { "kind": "lease_granted", "scope": "project", "lane": "tasks",
22
+ * "holder_id": "pid-42:tasks", "epoch": 7, "ttl_ms": 30000,
23
+ * "expires_at_ms": 1000030000 } }
24
+ * ```
25
+ *
26
+ * Staged delivery: every kind is *declared* so the protocol freeze is stable,
27
+ * but `rate_check` / `tool_grant` handlers are deferred (return
28
+ * `E_LEASE_UNIMPLEMENTED`) until a follow-up task. This module (ST-1) ships the
29
+ * protocol surface with **no consumer** — zero behavior change.
30
+ *
31
+ * @task T11627
32
+ * @packageDocumentation
33
+ */
34
+ import { z } from 'zod';
35
+ // ─── Shared value types ───────────────────────────────────────────────────────
36
+ /**
37
+ * The cleo.db scope a lease is arbitrated within. Mirrors `DbScope` in Rust.
38
+ *
39
+ * Under the dual-cleo.db split, a `project` lease lives inside the project's
40
+ * `cleo.db` and a `global` lease inside the global `cleo.db` — different files,
41
+ * so they never serialize against each other (AC2).
42
+ */
43
+ export const LeaseScopeSchema = z.enum(['project', 'global']);
44
+ /**
45
+ * The write lane a lease arbitrates within a single scope file. Mirrors
46
+ * `LeaseLane` in Rust.
47
+ *
48
+ * - `tasks` — the primary task-chokepoint write lane.
49
+ * - `brain` — the BRAIN memory write lane (gated separately — AC4).
50
+ * - `bulk` — the bulk / bypass-writer lane (conduit, telemetry, nexus graph).
51
+ */
52
+ export const LeaseLaneSchema = z.enum(['tasks', 'brain', 'bulk']);
53
+ // ─── Requests (client → arbiter) ──────────────────────────────────────────────
54
+ /**
55
+ * Acquire (or re-enter) the writer lease for a (scope, lane). Mirrors
56
+ * `LeaseAcquireReq`. `[v1 core]`
57
+ */
58
+ export const LeaseAcquireRequestSchema = z
59
+ .object({
60
+ /** Tag discriminating this request variant. */
61
+ kind: z.literal('lease_acquire'),
62
+ /** The cleo.db scope being arbitrated. */
63
+ scope: LeaseScopeSchema,
64
+ /** The write lane within the scope. */
65
+ lane: LeaseLaneSchema,
66
+ /** Process+lane holder identity. */
67
+ holder_id: z.string().min(1),
68
+ /** Advisory priority — lower acquires sooner. `0` = highest. */
69
+ priority: z.number().int().min(0).max(255),
70
+ /** Lease time-to-live in milliseconds. */
71
+ ttl_ms: z.number().int().nonnegative(),
72
+ /** When true, a same-holder acquire re-enters (refcount++) rather than queuing. */
73
+ reentrant: z.boolean(),
74
+ })
75
+ .strict();
76
+ /**
77
+ * Release the held writer lease. Mirrors `LeaseReleaseReq`. `[v1 core]`
78
+ */
79
+ export const LeaseReleaseRequestSchema = z
80
+ .object({
81
+ /** Tag discriminating this request variant. */
82
+ kind: z.literal('lease_release'),
83
+ /** The cleo.db scope being arbitrated. */
84
+ scope: LeaseScopeSchema,
85
+ /** The write lane within the scope. */
86
+ lane: LeaseLaneSchema,
87
+ /** Process+lane holder identity. */
88
+ holder_id: z.string().min(1),
89
+ /** The epoch fence the holder acquired — a stale epoch no-ops. */
90
+ epoch: z.number().int().nonnegative(),
91
+ })
92
+ .strict();
93
+ /**
94
+ * Heartbeat / renew the held lease's TTL. Mirrors `LeaseRenewReq`. `[v1 core]`
95
+ */
96
+ export const LeaseRenewRequestSchema = z
97
+ .object({
98
+ /** Tag discriminating this request variant. */
99
+ kind: z.literal('lease_renew'),
100
+ /** The cleo.db scope being arbitrated. */
101
+ scope: LeaseScopeSchema,
102
+ /** The write lane within the scope. */
103
+ lane: LeaseLaneSchema,
104
+ /** Process+lane holder identity. */
105
+ holder_id: z.string().min(1),
106
+ /** The epoch fence the holder acquired (epoch-guarded renew). */
107
+ epoch: z.number().int().nonnegative(),
108
+ })
109
+ .strict();
110
+ /**
111
+ * Check the per-scope write rate budget. Mirrors `RateCheckReq`.
112
+ * `[declared; handler deferred — returns E_LEASE_UNIMPLEMENTED]`
113
+ */
114
+ export const RateCheckRequestSchema = z
115
+ .object({
116
+ /** Tag discriminating this request variant. */
117
+ kind: z.literal('rate_check'),
118
+ /** The cleo.db scope being checked. */
119
+ scope: LeaseScopeSchema,
120
+ /** The write lane within the scope. */
121
+ lane: LeaseLaneSchema,
122
+ /** Estimated bytes the caller intends to write. */
123
+ est_bytes: z.number().int().nonnegative(),
124
+ })
125
+ .strict();
126
+ /**
127
+ * Request a tool-use grant. Mirrors `ToolGrantReq`.
128
+ * `[declared; handler deferred — returns E_LEASE_UNIMPLEMENTED]`
129
+ */
130
+ export const ToolGrantRequestSchema = z
131
+ .object({
132
+ /** Tag discriminating this request variant. */
133
+ kind: z.literal('tool_grant'),
134
+ /** The tool name being requested. */
135
+ tool: z.string().min(1),
136
+ /** The requesting holder identity. */
137
+ holder_id: z.string().min(1),
138
+ })
139
+ .strict();
140
+ /**
141
+ * The discriminated union of all client → arbiter lease requests. The `kind`
142
+ * field selects the variant, matching the serde `#[serde(tag = "kind")]`
143
+ * tagging on the Rust `LeaseRequest` enum.
144
+ */
145
+ export const LeaseIpcRequestSchema = z.discriminatedUnion('kind', [
146
+ LeaseAcquireRequestSchema,
147
+ LeaseReleaseRequestSchema,
148
+ LeaseRenewRequestSchema,
149
+ RateCheckRequestSchema,
150
+ ToolGrantRequestSchema,
151
+ ]);
152
+ // ─── Responses (arbiter → client) ─────────────────────────────────────────────
153
+ /**
154
+ * The lease was granted to the caller. Mirrors `LeaseGranted`.
155
+ */
156
+ export const LeaseGrantedResponseSchema = z
157
+ .object({
158
+ /** Tag discriminating this response variant. */
159
+ kind: z.literal('lease_granted'),
160
+ /** The granted cleo.db scope. */
161
+ scope: LeaseScopeSchema,
162
+ /** The granted write lane. */
163
+ lane: LeaseLaneSchema,
164
+ /** The holder the lease was granted to. */
165
+ holder_id: z.string().min(1),
166
+ /** The monotonic epoch fence assigned to this grant. */
167
+ epoch: z.number().int().nonnegative(),
168
+ /** The lease TTL in milliseconds. */
169
+ ttl_ms: z.number().int().nonnegative(),
170
+ /** Absolute expiry timestamp (epoch ms) for this grant. */
171
+ expires_at_ms: z.number().int().nonnegative(),
172
+ })
173
+ .strict();
174
+ /**
175
+ * The caller was placed in the per-scope FIFO+priority queue. Mirrors
176
+ * `LeaseQueued`.
177
+ */
178
+ export const LeaseQueuedResponseSchema = z
179
+ .object({
180
+ /** Tag discriminating this response variant. */
181
+ kind: z.literal('lease_queued'),
182
+ /** The queued cleo.db scope. */
183
+ scope: LeaseScopeSchema,
184
+ /** The queued write lane. */
185
+ lane: LeaseLaneSchema,
186
+ /** The monotonic ticket assigned for FIFO tiebreak. */
187
+ ticket: z.number().int().nonnegative(),
188
+ /** Number of waiters ahead of this one. */
189
+ ahead: z.number().int().nonnegative(),
190
+ })
191
+ .strict();
192
+ /**
193
+ * The acquire was denied. Mirrors `LeaseDenied`.
194
+ */
195
+ export const LeaseDeniedResponseSchema = z
196
+ .object({
197
+ /** Tag discriminating this response variant. */
198
+ kind: z.literal('lease_denied'),
199
+ /** The denied cleo.db scope. */
200
+ scope: LeaseScopeSchema,
201
+ /** Machine-readable denial code (e.g. `E_LEASE_UNAVAILABLE`). */
202
+ code: z.string().min(1),
203
+ /** Human-readable denial message. */
204
+ message: z.string(),
205
+ })
206
+ .strict();
207
+ /**
208
+ * Reply to a deferred `rate_check`. Mirrors `RateResult`.
209
+ */
210
+ export const RateResultResponseSchema = z
211
+ .object({
212
+ /** Tag discriminating this response variant. */
213
+ kind: z.literal('rate_result'),
214
+ /** The checked cleo.db scope. */
215
+ scope: LeaseScopeSchema,
216
+ /** Whether the write is within budget. */
217
+ ok: z.boolean(),
218
+ /** Suggested back-off in milliseconds when `ok` is false. */
219
+ retry_after_ms: z.number().int().nonnegative(),
220
+ /** Remaining token budget for the scope. */
221
+ tokens_remaining: z.number().int().nonnegative(),
222
+ })
223
+ .strict();
224
+ /**
225
+ * Reply to a deferred `tool_grant`. Mirrors `ToolGranted`.
226
+ */
227
+ export const ToolGrantedResponseSchema = z
228
+ .object({
229
+ /** Tag discriminating this response variant. */
230
+ kind: z.literal('tool_granted'),
231
+ /** The granted tool name. */
232
+ tool: z.string().min(1),
233
+ /** The holder the tool grant was issued to. */
234
+ holder_id: z.string().min(1),
235
+ })
236
+ .strict();
237
+ /**
238
+ * Unsolicited event: a held lease was revoked. Mirrors `LeaseRevoked`.
239
+ */
240
+ export const LeaseRevokedResponseSchema = z
241
+ .object({
242
+ /** Tag discriminating this response variant. */
243
+ kind: z.literal('lease_revoked'),
244
+ /** The revoked cleo.db scope. */
245
+ scope: LeaseScopeSchema,
246
+ /** The revoked write lane. */
247
+ lane: LeaseLaneSchema,
248
+ /** The holder whose lease was revoked. */
249
+ holder_id: z.string().min(1),
250
+ /** Human-readable reason for the revocation. */
251
+ reason: z.string(),
252
+ })
253
+ .strict();
254
+ /**
255
+ * Unsolicited event: a lease holder was killed for being unresponsive. Mirrors
256
+ * `ChildKilled` carried by the `child_killed_unresponsive` response variant.
257
+ */
258
+ export const ChildKilledUnresponsiveResponseSchema = z
259
+ .object({
260
+ /** Tag discriminating this response variant. */
261
+ kind: z.literal('child_killed_unresponsive'),
262
+ /** Logical id of the killed child. */
263
+ child_id: z.string().min(1),
264
+ /** The holder identity the killed child held the lease as. */
265
+ holder_id: z.string().min(1),
266
+ /** The cleo.db scope the killed child held the lease in. */
267
+ scope: LeaseScopeSchema,
268
+ /** Human-readable reason for the kill. */
269
+ reason: z.string(),
270
+ })
271
+ .strict();
272
+ /**
273
+ * An error response correlated to a request. Mirrors the v1.0
274
+ * `crate::ipc::ErrorResult` shape reused by the Rust `LeaseResponse::Error`
275
+ * variant — error framing is shared across protocol versions.
276
+ */
277
+ export const LeaseErrorResponseSchema = z
278
+ .object({
279
+ /** Tag discriminating this response variant. */
280
+ kind: z.literal('error'),
281
+ /** Machine-readable error code (e.g. `E_LEASE_BAD_VERSION`, `E_LEASE_UNIMPLEMENTED`). */
282
+ code: z.string().min(1),
283
+ /** Human-readable error message. */
284
+ message: z.string(),
285
+ })
286
+ .strict();
287
+ /**
288
+ * The discriminated union of all arbiter → client lease responses and events.
289
+ * The `kind` field selects the variant, matching the serde
290
+ * `#[serde(tag = "kind")]` tagging on the Rust `LeaseResponse` enum.
291
+ */
292
+ export const LeaseIpcResponseSchema = z.discriminatedUnion('kind', [
293
+ LeaseGrantedResponseSchema,
294
+ LeaseQueuedResponseSchema,
295
+ LeaseDeniedResponseSchema,
296
+ RateResultResponseSchema,
297
+ ToolGrantedResponseSchema,
298
+ LeaseRevokedResponseSchema,
299
+ ChildKilledUnresponsiveResponseSchema,
300
+ LeaseErrorResponseSchema,
301
+ ]);
302
+ // ─── Envelope ──────────────────────────────────────────────────────────────────
303
+ /**
304
+ * A client → arbiter lease request envelope.
305
+ *
306
+ * The `direction` discriminator + flattened `request` payload mirror the serde
307
+ * `#[serde(tag = "direction")]` `LeasePayload::Request { request }` variant.
308
+ */
309
+ export const LeaseIpcRequestEnvelopeSchema = z
310
+ .object({
311
+ /** Parallel protocol version. */
312
+ protocol_version: z.string(),
313
+ /** Correlation id echoed back on the matching response. */
314
+ id: z.string().min(1),
315
+ /** Direction discriminator. */
316
+ direction: z.literal('request'),
317
+ /** The request body. */
318
+ request: LeaseIpcRequestSchema,
319
+ })
320
+ .strict();
321
+ /**
322
+ * An arbiter → client lease response/event envelope.
323
+ *
324
+ * The `direction` discriminator + flattened `response` payload mirror the serde
325
+ * `LeasePayload::Response { response }` variant.
326
+ */
327
+ export const LeaseIpcResponseEnvelopeSchema = z
328
+ .object({
329
+ /** Parallel protocol version. */
330
+ protocol_version: z.string(),
331
+ /** Correlation id echoed from the originating request (or a fresh id for events). */
332
+ id: z.string().min(1),
333
+ /** Direction discriminator. */
334
+ direction: z.literal('response'),
335
+ /** The response body. */
336
+ response: LeaseIpcResponseSchema,
337
+ })
338
+ .strict();
339
+ /**
340
+ * The top-level lease IPC envelope: a versioned, correlated wrapper that is
341
+ * either a request or a response, discriminated by `direction`. One envelope per
342
+ * NDJSON line. Mirrors the Rust `LeaseEnvelope`.
343
+ */
344
+ export const LeaseIpcEnvelopeSchema = z.discriminatedUnion('direction', [
345
+ LeaseIpcRequestEnvelopeSchema,
346
+ LeaseIpcResponseEnvelopeSchema,
347
+ ]);
348
+ // ─── Frozen message-set guard ──────────────────────────────────────────────────
349
+ /**
350
+ * The v1.1 request `kind` values, in declaration order. The schema-drift guard
351
+ * test pins this tuple; any addition/removal is a contract-breaking change
352
+ * requiring a coordinated dual (Rust + TS) edit.
353
+ */
354
+ export const LEASE_IPC_REQUEST_KINDS = [
355
+ 'lease_acquire',
356
+ 'lease_release',
357
+ 'lease_renew',
358
+ 'rate_check',
359
+ 'tool_grant',
360
+ ];
361
+ /**
362
+ * The v1.1 response `kind` values, in declaration order. The schema-drift guard
363
+ * test pins this tuple.
364
+ */
365
+ export const LEASE_IPC_RESPONSE_KINDS = [
366
+ 'lease_granted',
367
+ 'lease_queued',
368
+ 'lease_denied',
369
+ 'rate_result',
370
+ 'tool_granted',
371
+ 'lease_revoked',
372
+ 'child_killed_unresponsive',
373
+ 'error',
374
+ ];
375
+ /**
376
+ * The complete v1.1 message kind set (requests + responses), used by the drift
377
+ * guard on both the TS and Rust sides.
378
+ */
379
+ export const LEASE_IPC_MESSAGE_KINDS = [
380
+ ...LEASE_IPC_REQUEST_KINDS,
381
+ ...LEASE_IPC_RESPONSE_KINDS,
382
+ ];
383
+ //# sourceMappingURL=messages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/lease-ipc/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;A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MAAM,uBAAuB,GAAG;IACrC,eAAe;IACf,eAAe;IACf,aAAa;IACb,YAAY;IACZ,YAAY;CACJ,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,eAAe;IACf,cAAc;IACd,cAAc;IACd,aAAa;IACb,cAAc;IACd,eAAe;IACf,2BAA2B;IAC3B,OAAO;CACC,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,GAAG,uBAAuB;IAC1B,GAAG,wBAAwB;CACnB,CAAC"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * PARALLEL protocol version for the `lease-ipc` v1.1 contract (T11627 ST-1).
3
+ *
4
+ * The Rust arbiter (`crates/cleo-supervisor/src/lease_ipc.rs`) and this
5
+ * TypeScript contract MUST agree on this value. It runs **in parallel** to the
6
+ * byte-frozen `supervisor-ipc` v1.0 contract: the two are distinguished on the
7
+ * wire purely by this version string, so a single accept loop can route
8
+ * `'1.0.0'` → the v1.0 union and `'1.1.0'` → the lease union. Bump only via a
9
+ * coordinated dual (Rust + TS) edit, never edit this value in place.
10
+ *
11
+ * @see {@link LEASE_IPC_MESSAGE_KINDS} for the v1.1 message set.
12
+ * @task T11627
13
+ * @packageDocumentation
14
+ */
15
+ /**
16
+ * The `lease-ipc` v1.1 protocol version string.
17
+ *
18
+ * Mirrors `cleo_supervisor::lease_ipc::LEASE_IPC_PROTOCOL_VERSION` on the Rust
19
+ * side. Both the Rust schema-drift guard (`lease_ipc::tests`) and the TS drift
20
+ * test (`__tests__/freeze.test.ts`) pin this exact value.
21
+ */
22
+ export declare const LEASE_IPC_PROTOCOL_VERSION: "1.1.0";
23
+ /**
24
+ * Whether the given version string is the frozen `lease-ipc` v1.1 wire version.
25
+ *
26
+ * Used by an accept-loop version router to confirm a frame is a lease-protocol
27
+ * frame before dispatching it through the {@link LEASE_IPC_PROTOCOL_VERSION}
28
+ * union (rather than the v1.0 supervisor-ipc union).
29
+ *
30
+ * @param version - The `protocol_version` field read off an inbound envelope.
31
+ * @returns `true` iff `version` equals {@link LEASE_IPC_PROTOCOL_VERSION}.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * if (isFrozenLeaseIpcVersion(env.protocol_version)) {
36
+ * // dispatch through LeaseIpcEnvelopeSchema
37
+ * }
38
+ * ```
39
+ */
40
+ export declare function isFrozenLeaseIpcVersion(version: string): version is typeof LEASE_IPC_PROTOCOL_VERSION;
41
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/lease-ipc/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,EAAG,OAAgB,CAAC;AAE3D;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,GACd,OAAO,IAAI,OAAO,0BAA0B,CAE9C"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * PARALLEL protocol version for the `lease-ipc` v1.1 contract (T11627 ST-1).
3
+ *
4
+ * The Rust arbiter (`crates/cleo-supervisor/src/lease_ipc.rs`) and this
5
+ * TypeScript contract MUST agree on this value. It runs **in parallel** to the
6
+ * byte-frozen `supervisor-ipc` v1.0 contract: the two are distinguished on the
7
+ * wire purely by this version string, so a single accept loop can route
8
+ * `'1.0.0'` → the v1.0 union and `'1.1.0'` → the lease union. Bump only via a
9
+ * coordinated dual (Rust + TS) edit, never edit this value in place.
10
+ *
11
+ * @see {@link LEASE_IPC_MESSAGE_KINDS} for the v1.1 message set.
12
+ * @task T11627
13
+ * @packageDocumentation
14
+ */
15
+ /**
16
+ * The `lease-ipc` v1.1 protocol version string.
17
+ *
18
+ * Mirrors `cleo_supervisor::lease_ipc::LEASE_IPC_PROTOCOL_VERSION` on the Rust
19
+ * side. Both the Rust schema-drift guard (`lease_ipc::tests`) and the TS drift
20
+ * test (`__tests__/freeze.test.ts`) pin this exact value.
21
+ */
22
+ export const LEASE_IPC_PROTOCOL_VERSION = '1.1.0';
23
+ /**
24
+ * Whether the given version string is the frozen `lease-ipc` v1.1 wire version.
25
+ *
26
+ * Used by an accept-loop version router to confirm a frame is a lease-protocol
27
+ * frame before dispatching it through the {@link LEASE_IPC_PROTOCOL_VERSION}
28
+ * union (rather than the v1.0 supervisor-ipc union).
29
+ *
30
+ * @param version - The `protocol_version` field read off an inbound envelope.
31
+ * @returns `true` iff `version` equals {@link LEASE_IPC_PROTOCOL_VERSION}.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * if (isFrozenLeaseIpcVersion(env.protocol_version)) {
36
+ * // dispatch through LeaseIpcEnvelopeSchema
37
+ * }
38
+ * ```
39
+ */
40
+ export function isFrozenLeaseIpcVersion(version) {
41
+ return version === LEASE_IPC_PROTOCOL_VERSION;
42
+ }
43
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/lease-ipc/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,OAAgB,CAAC;AAE3D;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,uBAAuB,CACrC,OAAe;IAEf,OAAO,OAAO,KAAK,0BAA0B,CAAC;AAChD,CAAC"}
@@ -137,6 +137,29 @@ export interface SendOptions {
137
137
  * Transports MUST ignore flags they do not recognise.
138
138
  */
139
139
  readonly providerFlags?: Readonly<Record<string, unknown>>;
140
+ /**
141
+ * Tools the model may call on this call (OpenAI-format {@link TransportTool}[]).
142
+ *
143
+ * When supplied, the session forwards them onto the {@link TransportRequest.tools}
144
+ * surface so the wire-level transport advertises them to the model. This is the
145
+ * per-call hook the in-process Pi embed threads its `Context.tools` through — the
146
+ * registry's `toOpenAITools()` output reaches the model via `streamFn` →
147
+ * `SendOptions.tools` → `TransportRequest.tools`. Omit (or pass empty) for a
148
+ * tool-free call. Transports that do not support tools MUST ignore it.
149
+ */
150
+ readonly tools?: readonly TransportTool[];
151
+ /**
152
+ * Cancellation signal for this call.
153
+ *
154
+ * When supplied, a streaming consumer MUST stop iterating and tear the
155
+ * underlying iterator down once the signal aborts — even when the wire-level
156
+ * transport does not itself observe the signal. This is the per-call hook the
157
+ * in-process Pi embed threads its loop-abort through so a detached stream
158
+ * producer cannot outlive the call that started it (T11898). Transports that
159
+ * do not consume it MUST ignore it (matching the {@link providerFlags}
160
+ * "ignore-unknown" contract).
161
+ */
162
+ readonly signal?: AbortSignal;
140
163
  }
141
164
  /**
142
165
  * Stateful per-conversation LLM session.
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/llm/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAEhB,aAAa,EACd,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAOnD,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAGpF,YAAY,EAAE,YAAY,EAAE,CAAC;AAM7B;;;;;;;;;;GAUG;AACH,MAAM,WAAW,eAAe;IAC9B,mFAAmF;IACnF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,8EAA8E;IAC9E,QAAQ,CAAC,aAAa,CAAC,EAAE;QACvB,6EAA6E;QAC7E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,kEAAkE;QAClE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,uCAAuC;QAC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