sessionpipe-core 0.6.1 → 0.9.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.
- package/README.md +1 -1
- package/dist/control.js +54 -4
- package/dist/control.js.map +2 -2
- package/dist/index.js +1690 -831
- package/dist/index.js.map +4 -4
- package/dist/schema/v1.d.ts +139 -71
- package/dist/schema/v1.d.ts.map +1 -1
- package/dist/schema.js +56 -5
- package/dist/schema.js.map +2 -2
- package/dist/src/adapters/antigravity-control.d.ts +58 -0
- package/dist/src/adapters/antigravity-control.d.ts.map +1 -0
- package/dist/src/adapters/antigravity.d.ts +1 -2
- package/dist/src/adapters/antigravity.d.ts.map +1 -1
- package/dist/src/adapters/claude-code-control.d.ts +7 -26
- package/dist/src/adapters/claude-code-control.d.ts.map +1 -1
- package/dist/src/adapters/claude-code.d.ts +10 -0
- package/dist/src/adapters/claude-code.d.ts.map +1 -1
- package/dist/src/adapters/claude-shaped.d.ts.map +1 -1
- package/dist/src/adapters/codex-config.d.ts +2 -2
- package/dist/src/adapters/codex-config.d.ts.map +1 -1
- package/dist/src/adapters/codex-control.d.ts +62 -0
- package/dist/src/adapters/codex-control.d.ts.map +1 -0
- package/dist/src/adapters/codex-rollout.d.ts +8 -0
- package/dist/src/adapters/codex-rollout.d.ts.map +1 -0
- package/dist/src/adapters/codex.d.ts +5 -1
- package/dist/src/adapters/codex.d.ts.map +1 -1
- package/dist/src/adapters/devin.d.ts +32 -0
- package/dist/src/adapters/devin.d.ts.map +1 -0
- package/dist/src/adapters/gemini-cli.d.ts.map +1 -1
- package/dist/src/adapters/headless.d.ts +70 -0
- package/dist/src/adapters/headless.d.ts.map +1 -0
- package/dist/src/adapters/index.d.ts +10 -2
- package/dist/src/adapters/index.d.ts.map +1 -1
- package/dist/src/adapters/types.d.ts +9 -1
- package/dist/src/adapters/types.d.ts.map +1 -1
- package/dist/src/control/verify.d.ts +27 -0
- package/dist/src/control/verify.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/outbox.d.ts +13 -2
- package/dist/src/outbox.d.ts.map +1 -1
- package/dist/src/paths.d.ts +3 -1
- package/dist/src/paths.d.ts.map +1 -1
- package/dist/src/privacy/filter.d.ts +2 -0
- package/dist/src/privacy/filter.d.ts.map +1 -1
- package/dist/src/privacy/index.d.ts +1 -1
- package/dist/src/privacy/index.d.ts.map +1 -1
- package/dist/src/readers/files.d.ts.map +1 -1
- package/dist/src/readers/git.d.ts.map +1 -1
- package/dist/src/readers/sqlite.d.ts +23 -0
- package/dist/src/readers/sqlite.d.ts.map +1 -0
- package/dist/src/readers/transcripts.d.ts +9 -2
- package/dist/src/readers/transcripts.d.ts.map +1 -1
- package/dist/src/short-id.d.ts +2 -0
- package/dist/src/short-id.d.ts.map +1 -0
- package/dist/src/sinks/file.d.ts.map +1 -1
- package/dist/src/sinks/stdout.d.ts.map +1 -1
- package/dist/src/types.d.ts +1 -0
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/ulid.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/schema/v1.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const PROTOCOL = 1;
|
|
3
3
|
/** Dotted, lowercase. Unknown types MUST be accepted and stored. */
|
|
4
4
|
export declare const EventType: z.ZodString;
|
|
5
|
-
export declare const KNOWN_TYPES: readonly ["session.started", "session.heartbeat", "session.ended", "session.backfill", "session.forgotten", "turn.started", "turn.ended", "turn.transcript", "tool.started", "tool.ended", "files.changed", "attention.needed", "attention.cleared", "subagent.started", "subagent.ended", "context.compacted", "native"];
|
|
5
|
+
export declare const KNOWN_TYPES: readonly ["session.started", "session.heartbeat", "session.ended", "session.backfill", "session.forgotten", "turn.started", "turn.ended", "turn.transcript", "turn.progress", "tool.started", "tool.ended", "files.changed", "attention.needed", "attention.cleared", "subagent.started", "subagent.ended", "context.compacted", "native"];
|
|
6
6
|
/** The lowest tier that carries each known type. */
|
|
7
7
|
export declare const TYPE_TIER: Record<(typeof KNOWN_TYPES)[number], 0 | 1 | 2 | 3>;
|
|
8
|
-
export declare const HARNESS_NAMES: readonly ["claude-code", "codex", "gemini-cli", "antigravity", "cursor", "copilot-cli", "droid", "kiro", "opencode"];
|
|
8
|
+
export declare const HARNESS_NAMES: readonly ["claude-code", "codex", "gemini-cli", "antigravity", "devin", "cursor", "copilot-cli", "droid", "kiro", "opencode"];
|
|
9
9
|
export declare const Tier: z.ZodInt;
|
|
10
10
|
export declare const Ulid: z.ZodString;
|
|
11
11
|
export declare const Rfc3339: z.ZodISODateTime;
|
|
@@ -27,8 +27,8 @@ export declare const Session: z.ZodObject<{
|
|
|
27
27
|
title: z.ZodOptional<z.ZodString>;
|
|
28
28
|
title_source: z.ZodOptional<z.ZodEnum<{
|
|
29
29
|
custom: "custom";
|
|
30
|
-
harness: "harness";
|
|
31
30
|
"first-ask": "first-ask";
|
|
31
|
+
harness: "harness";
|
|
32
32
|
}>>;
|
|
33
33
|
url: z.ZodOptional<z.ZodURL>;
|
|
34
34
|
account_id: z.ZodOptional<z.ZodString>;
|
|
@@ -60,8 +60,8 @@ export declare const Event: z.ZodObject<{
|
|
|
60
60
|
title: z.ZodOptional<z.ZodString>;
|
|
61
61
|
title_source: z.ZodOptional<z.ZodEnum<{
|
|
62
62
|
custom: "custom";
|
|
63
|
-
harness: "harness";
|
|
64
63
|
"first-ask": "first-ask";
|
|
64
|
+
harness: "harness";
|
|
65
65
|
}>>;
|
|
66
66
|
url: z.ZodOptional<z.ZodURL>;
|
|
67
67
|
account_id: z.ZodOptional<z.ZodString>;
|
|
@@ -74,29 +74,29 @@ export declare const Event: z.ZodObject<{
|
|
|
74
74
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
75
75
|
}, z.core.$strip>;
|
|
76
76
|
export declare const AttentionKind: z.ZodEnum<{
|
|
77
|
+
elicitation: "elicitation";
|
|
77
78
|
error: "error";
|
|
79
|
+
idle: "idle";
|
|
78
80
|
permission: "permission";
|
|
79
81
|
question: "question";
|
|
80
|
-
elicitation: "elicitation";
|
|
81
|
-
idle: "idle";
|
|
82
82
|
}>;
|
|
83
83
|
export declare const EventData: z.ZodObject<{
|
|
84
84
|
"session.started": z.ZodObject<{
|
|
85
85
|
source: z.ZodEnum<{
|
|
86
|
-
unknown: "unknown";
|
|
87
|
-
startup: "startup";
|
|
88
|
-
resume: "resume";
|
|
89
86
|
clear: "clear";
|
|
90
87
|
compact: "compact";
|
|
91
88
|
fork: "fork";
|
|
89
|
+
resume: "resume";
|
|
90
|
+
startup: "startup";
|
|
91
|
+
unknown: "unknown";
|
|
92
92
|
}>;
|
|
93
93
|
}, z.core.$loose>;
|
|
94
94
|
"session.heartbeat": z.ZodObject<{}, z.core.$loose>;
|
|
95
95
|
"session.ended": z.ZodObject<{
|
|
96
96
|
reason: z.ZodEnum<{
|
|
97
97
|
clear: "clear";
|
|
98
|
-
logout: "logout";
|
|
99
98
|
exit: "exit";
|
|
99
|
+
logout: "logout";
|
|
100
100
|
other: "other";
|
|
101
101
|
}>;
|
|
102
102
|
}, z.core.$loose>;
|
|
@@ -114,8 +114,8 @@ export declare const EventData: z.ZodObject<{
|
|
|
114
114
|
turn_id: z.ZodOptional<z.ZodString>;
|
|
115
115
|
reason: z.ZodEnum<{
|
|
116
116
|
error: "error";
|
|
117
|
-
stop: "stop";
|
|
118
117
|
interrupt: "interrupt";
|
|
118
|
+
stop: "stop";
|
|
119
119
|
}>;
|
|
120
120
|
error: z.ZodOptional<z.ZodString>;
|
|
121
121
|
ms: z.ZodOptional<z.ZodInt>;
|
|
@@ -126,6 +126,12 @@ export declare const EventData: z.ZodObject<{
|
|
|
126
126
|
assistant: z.ZodString;
|
|
127
127
|
at: z.ZodISODateTime;
|
|
128
128
|
}, z.core.$loose>;
|
|
129
|
+
"turn.progress": z.ZodObject<{
|
|
130
|
+
turn: z.ZodInt;
|
|
131
|
+
user: z.ZodString;
|
|
132
|
+
assistant: z.ZodString;
|
|
133
|
+
at: z.ZodISODateTime;
|
|
134
|
+
}, z.core.$loose>;
|
|
129
135
|
"tool.started": z.ZodObject<{
|
|
130
136
|
tool: z.ZodString;
|
|
131
137
|
call_id: z.ZodOptional<z.ZodString>;
|
|
@@ -150,11 +156,11 @@ export declare const EventData: z.ZodObject<{
|
|
|
150
156
|
"attention.needed": z.ZodObject<{
|
|
151
157
|
attention_id: z.ZodString;
|
|
152
158
|
kind: z.ZodEnum<{
|
|
159
|
+
elicitation: "elicitation";
|
|
153
160
|
error: "error";
|
|
161
|
+
idle: "idle";
|
|
154
162
|
permission: "permission";
|
|
155
163
|
question: "question";
|
|
156
|
-
elicitation: "elicitation";
|
|
157
|
-
idle: "idle";
|
|
158
164
|
}>;
|
|
159
165
|
tool: z.ZodOptional<z.ZodString>;
|
|
160
166
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -162,10 +168,10 @@ export declare const EventData: z.ZodObject<{
|
|
|
162
168
|
"attention.cleared": z.ZodObject<{
|
|
163
169
|
attention_id: z.ZodString;
|
|
164
170
|
how: z.ZodEnum<{
|
|
165
|
-
unknown: "unknown";
|
|
166
171
|
answered: "answered";
|
|
167
172
|
cancelled: "cancelled";
|
|
168
173
|
timeout: "timeout";
|
|
174
|
+
unknown: "unknown";
|
|
169
175
|
}>;
|
|
170
176
|
}, z.core.$loose>;
|
|
171
177
|
"subagent.started": z.ZodObject<{
|
|
@@ -178,8 +184,8 @@ export declare const EventData: z.ZodObject<{
|
|
|
178
184
|
}, z.core.$loose>;
|
|
179
185
|
"context.compacted": z.ZodObject<{
|
|
180
186
|
trigger: z.ZodEnum<{
|
|
181
|
-
manual: "manual";
|
|
182
187
|
auto: "auto";
|
|
188
|
+
manual: "manual";
|
|
183
189
|
}>;
|
|
184
190
|
}, z.core.$loose>;
|
|
185
191
|
native: z.ZodObject<{}, z.core.$loose>;
|
|
@@ -207,8 +213,8 @@ export declare const Batch: z.ZodObject<{
|
|
|
207
213
|
title: z.ZodOptional<z.ZodString>;
|
|
208
214
|
title_source: z.ZodOptional<z.ZodEnum<{
|
|
209
215
|
custom: "custom";
|
|
210
|
-
harness: "harness";
|
|
211
216
|
"first-ask": "first-ask";
|
|
217
|
+
harness: "harness";
|
|
212
218
|
}>>;
|
|
213
219
|
url: z.ZodOptional<z.ZodURL>;
|
|
214
220
|
account_id: z.ZodOptional<z.ZodString>;
|
|
@@ -236,30 +242,40 @@ export declare const ErrorResponse: z.ZodObject<{
|
|
|
236
242
|
max_tier: z.ZodOptional<z.ZodInt>;
|
|
237
243
|
}, z.core.$strip>;
|
|
238
244
|
export declare const Capability: z.ZodEnum<{
|
|
239
|
-
native: "native";
|
|
240
|
-
events: "events";
|
|
241
245
|
backfill: "backfill";
|
|
242
|
-
forget: "forget";
|
|
243
246
|
control: "control";
|
|
247
|
+
events: "events";
|
|
248
|
+
forget: "forget";
|
|
249
|
+
native: "native";
|
|
244
250
|
}>;
|
|
245
251
|
export declare const MachineId: z.ZodString;
|
|
246
252
|
/** `<harness>:<id>`; the id follows its adapter's rule (Claude Code: a UUID). */
|
|
247
253
|
export declare const SessionRef: z.ZodString;
|
|
248
254
|
export declare const ControlKind: z.ZodEnum<{
|
|
249
|
-
prompt: "prompt";
|
|
250
|
-
"permission.answer": "permission.answer";
|
|
251
255
|
cancel: "cancel";
|
|
252
|
-
start: "start";
|
|
253
256
|
"key.add": "key.add";
|
|
257
|
+
"permission.answer": "permission.answer";
|
|
258
|
+
prompt: "prompt";
|
|
259
|
+
start: "start";
|
|
254
260
|
}>;
|
|
255
261
|
export declare const DeliveryMode: z.ZodEnum<{
|
|
256
|
-
|
|
262
|
+
api: "api";
|
|
257
263
|
fork: "fork";
|
|
258
|
-
|
|
264
|
+
resume: "resume";
|
|
259
265
|
sdk: "sdk";
|
|
266
|
+
turn: "turn";
|
|
260
267
|
waiter: "waiter";
|
|
261
|
-
api: "api";
|
|
262
268
|
}>;
|
|
269
|
+
/** A file attached to a `start` (CONTROL.md §3.1). The bytes wait on the receiver
|
|
270
|
+
* (`GET {control}/files/{sha256}`); the signed hash is what the machine checks.
|
|
271
|
+
* Beyond this shape the verifier also checks: the name's length after NFC, names
|
|
272
|
+
* unique case-insensitively, and the sizes adding up to at most 50 MiB. */
|
|
273
|
+
export declare const ControlFile: z.ZodObject<{
|
|
274
|
+
name: z.ZodString;
|
|
275
|
+
type: z.ZodString;
|
|
276
|
+
size: z.ZodInt;
|
|
277
|
+
sha256: z.ZodString;
|
|
278
|
+
}, z.core.$strip>;
|
|
263
279
|
/** The signed command, as the device writes it. The machine verifies the EXACT string
|
|
264
280
|
* it received (control.json `cmd`) and never re-serializes it. */
|
|
265
281
|
export declare const ControlCommand: z.ZodObject<{
|
|
@@ -267,11 +283,11 @@ export declare const ControlCommand: z.ZodObject<{
|
|
|
267
283
|
t: z.ZodLiteral<"sessionpipe.control">;
|
|
268
284
|
machine: z.ZodString;
|
|
269
285
|
kind: z.ZodEnum<{
|
|
270
|
-
prompt: "prompt";
|
|
271
|
-
"permission.answer": "permission.answer";
|
|
272
286
|
cancel: "cancel";
|
|
273
|
-
start: "start";
|
|
274
287
|
"key.add": "key.add";
|
|
288
|
+
"permission.answer": "permission.answer";
|
|
289
|
+
prompt: "prompt";
|
|
290
|
+
start: "start";
|
|
275
291
|
}>;
|
|
276
292
|
session: z.ZodString;
|
|
277
293
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -288,6 +304,12 @@ export declare const ControlCommand: z.ZodObject<{
|
|
|
288
304
|
spki: z.ZodString;
|
|
289
305
|
}, z.core.$strip>>;
|
|
290
306
|
name: z.ZodOptional<z.ZodString>;
|
|
307
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
308
|
+
name: z.ZodString;
|
|
309
|
+
type: z.ZodString;
|
|
310
|
+
size: z.ZodInt;
|
|
311
|
+
sha256: z.ZodString;
|
|
312
|
+
}, z.core.$strip>>>;
|
|
291
313
|
nonce: z.ZodString;
|
|
292
314
|
iat: z.ZodInt;
|
|
293
315
|
}, z.core.$strip>;
|
|
@@ -361,34 +383,34 @@ export declare const ControlPoll: z.ZodObject<{
|
|
|
361
383
|
/** `progress` (not final): the answer so far, whole, in `reply`, with a rising `seq`.
|
|
362
384
|
* `taken` (not final): verified and being delivered. Every other outcome is final. */
|
|
363
385
|
export declare const ControlOutcome: z.ZodEnum<{
|
|
364
|
-
progress: "progress";
|
|
365
|
-
taken: "taken";
|
|
366
386
|
delivered: "delivered";
|
|
367
387
|
expired: "expired";
|
|
368
|
-
unsupported: "unsupported";
|
|
369
388
|
failed: "failed";
|
|
389
|
+
progress: "progress";
|
|
370
390
|
refused: "refused";
|
|
391
|
+
taken: "taken";
|
|
392
|
+
unsupported: "unsupported";
|
|
371
393
|
}>;
|
|
372
394
|
export declare const ControlAck: z.ZodObject<{
|
|
373
395
|
acks: z.ZodArray<z.ZodObject<{
|
|
374
396
|
id: z.ZodString;
|
|
375
397
|
outcome: z.ZodEnum<{
|
|
376
|
-
progress: "progress";
|
|
377
|
-
taken: "taken";
|
|
378
398
|
delivered: "delivered";
|
|
379
399
|
expired: "expired";
|
|
380
|
-
unsupported: "unsupported";
|
|
381
400
|
failed: "failed";
|
|
401
|
+
progress: "progress";
|
|
382
402
|
refused: "refused";
|
|
403
|
+
taken: "taken";
|
|
404
|
+
unsupported: "unsupported";
|
|
383
405
|
}>;
|
|
384
406
|
at: z.ZodISODateTime;
|
|
385
407
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
386
|
-
|
|
408
|
+
api: "api";
|
|
387
409
|
fork: "fork";
|
|
388
|
-
|
|
410
|
+
resume: "resume";
|
|
389
411
|
sdk: "sdk";
|
|
412
|
+
turn: "turn";
|
|
390
413
|
waiter: "waiter";
|
|
391
|
-
api: "api";
|
|
392
414
|
}>>;
|
|
393
415
|
session: z.ZodOptional<z.ZodString>;
|
|
394
416
|
code: z.ZodOptional<z.ZodString>;
|
|
@@ -397,6 +419,14 @@ export declare const ControlAck: z.ZodObject<{
|
|
|
397
419
|
seq: z.ZodOptional<z.ZodInt>;
|
|
398
420
|
}, z.core.$strip>>;
|
|
399
421
|
}, z.core.$strip>;
|
|
422
|
+
/** A harness account signed in on the machine: the id `session.account_id` carries,
|
|
423
|
+
* and the email it signs in with, so a receiver the person paired with can name the
|
|
424
|
+
* account rather than show an id. Only pair and hello carry it, never an event. */
|
|
425
|
+
export declare const HarnessAccount: z.ZodObject<{
|
|
426
|
+
harness: z.ZodString;
|
|
427
|
+
id: z.ZodString;
|
|
428
|
+
email: z.ZodOptional<z.ZodString>;
|
|
429
|
+
}, z.core.$strip>;
|
|
400
430
|
/** `POST {control}/pair`, sent with the person's sink token from their own terminal —
|
|
401
431
|
* or, where the receiver declares `control.open_pairing`, with no token and a
|
|
402
432
|
* `poll_key` (CONTROL.md §2). */
|
|
@@ -406,12 +436,12 @@ export declare const ControlPairStart: z.ZodObject<{
|
|
|
406
436
|
name: z.ZodString;
|
|
407
437
|
harnesses: z.ZodArray<z.ZodString>;
|
|
408
438
|
modes: z.ZodArray<z.ZodEnum<{
|
|
409
|
-
|
|
439
|
+
api: "api";
|
|
410
440
|
fork: "fork";
|
|
411
|
-
|
|
441
|
+
resume: "resume";
|
|
412
442
|
sdk: "sdk";
|
|
443
|
+
turn: "turn";
|
|
413
444
|
waiter: "waiter";
|
|
414
|
-
api: "api";
|
|
415
445
|
}>>;
|
|
416
446
|
version: z.ZodString;
|
|
417
447
|
folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -419,6 +449,12 @@ export declare const ControlPairStart: z.ZodObject<{
|
|
|
419
449
|
auto: "auto";
|
|
420
450
|
safe: "safe";
|
|
421
451
|
}>>;
|
|
452
|
+
accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
453
|
+
harness: z.ZodString;
|
|
454
|
+
id: z.ZodString;
|
|
455
|
+
email: z.ZodOptional<z.ZodString>;
|
|
456
|
+
}, z.core.$strip>>>;
|
|
457
|
+
files: z.ZodOptional<z.ZodBoolean>;
|
|
422
458
|
}, z.core.$strip>;
|
|
423
459
|
/** The receiver's answer: where the person confirms, and the digits both screens show. */
|
|
424
460
|
export declare const ControlPairStarted: z.ZodObject<{
|
|
@@ -433,8 +469,8 @@ export declare const ControlPairStarted: z.ZodObject<{
|
|
|
433
469
|
export declare const ControlPaired: z.ZodObject<{
|
|
434
470
|
status: z.ZodEnum<{
|
|
435
471
|
expired: "expired";
|
|
436
|
-
pending: "pending";
|
|
437
472
|
paired: "paired";
|
|
473
|
+
pending: "pending";
|
|
438
474
|
}>;
|
|
439
475
|
key: z.ZodOptional<z.ZodObject<{
|
|
440
476
|
id: z.ZodString;
|
|
@@ -456,12 +492,12 @@ export declare const ControlHello: z.ZodObject<{
|
|
|
456
492
|
name: z.ZodString;
|
|
457
493
|
harnesses: z.ZodArray<z.ZodString>;
|
|
458
494
|
modes: z.ZodArray<z.ZodEnum<{
|
|
459
|
-
|
|
495
|
+
api: "api";
|
|
460
496
|
fork: "fork";
|
|
461
|
-
|
|
497
|
+
resume: "resume";
|
|
462
498
|
sdk: "sdk";
|
|
499
|
+
turn: "turn";
|
|
463
500
|
waiter: "waiter";
|
|
464
|
-
api: "api";
|
|
465
501
|
}>>;
|
|
466
502
|
keys: z.ZodArray<z.ZodString>;
|
|
467
503
|
version: z.ZodString;
|
|
@@ -471,6 +507,12 @@ export declare const ControlHello: z.ZodObject<{
|
|
|
471
507
|
auto: "auto";
|
|
472
508
|
safe: "safe";
|
|
473
509
|
}>>;
|
|
510
|
+
accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
511
|
+
harness: z.ZodString;
|
|
512
|
+
id: z.ZodString;
|
|
513
|
+
email: z.ZodOptional<z.ZodString>;
|
|
514
|
+
}, z.core.$strip>>>;
|
|
515
|
+
files: z.ZodOptional<z.ZodBoolean>;
|
|
474
516
|
}, z.core.$strip>;
|
|
475
517
|
export declare const WellKnown: z.ZodObject<{
|
|
476
518
|
protocol: z.ZodArray<z.ZodInt>;
|
|
@@ -496,6 +538,7 @@ export declare const WellKnown: z.ZodObject<{
|
|
|
496
538
|
rp_id: z.ZodString;
|
|
497
539
|
algs: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>>;
|
|
498
540
|
}, z.core.$strip>;
|
|
541
|
+
files: z.ZodOptional<z.ZodBoolean>;
|
|
499
542
|
}, z.core.$strip>>;
|
|
500
543
|
}, z.core.$strip>;
|
|
501
544
|
/** What `npm run schemas` writes to schemas/v1/<name>.json. */
|
|
@@ -522,8 +565,8 @@ export declare const SCHEMAS: {
|
|
|
522
565
|
title: z.ZodOptional<z.ZodString>;
|
|
523
566
|
title_source: z.ZodOptional<z.ZodEnum<{
|
|
524
567
|
custom: "custom";
|
|
525
|
-
harness: "harness";
|
|
526
568
|
"first-ask": "first-ask";
|
|
569
|
+
harness: "harness";
|
|
527
570
|
}>>;
|
|
528
571
|
url: z.ZodOptional<z.ZodURL>;
|
|
529
572
|
account_id: z.ZodOptional<z.ZodString>;
|
|
@@ -538,20 +581,20 @@ export declare const SCHEMAS: {
|
|
|
538
581
|
readonly "event-data": z.ZodObject<{
|
|
539
582
|
"session.started": z.ZodObject<{
|
|
540
583
|
source: z.ZodEnum<{
|
|
541
|
-
unknown: "unknown";
|
|
542
|
-
startup: "startup";
|
|
543
|
-
resume: "resume";
|
|
544
584
|
clear: "clear";
|
|
545
585
|
compact: "compact";
|
|
546
586
|
fork: "fork";
|
|
587
|
+
resume: "resume";
|
|
588
|
+
startup: "startup";
|
|
589
|
+
unknown: "unknown";
|
|
547
590
|
}>;
|
|
548
591
|
}, z.core.$loose>;
|
|
549
592
|
"session.heartbeat": z.ZodObject<{}, z.core.$loose>;
|
|
550
593
|
"session.ended": z.ZodObject<{
|
|
551
594
|
reason: z.ZodEnum<{
|
|
552
595
|
clear: "clear";
|
|
553
|
-
logout: "logout";
|
|
554
596
|
exit: "exit";
|
|
597
|
+
logout: "logout";
|
|
555
598
|
other: "other";
|
|
556
599
|
}>;
|
|
557
600
|
}, z.core.$loose>;
|
|
@@ -569,8 +612,8 @@ export declare const SCHEMAS: {
|
|
|
569
612
|
turn_id: z.ZodOptional<z.ZodString>;
|
|
570
613
|
reason: z.ZodEnum<{
|
|
571
614
|
error: "error";
|
|
572
|
-
stop: "stop";
|
|
573
615
|
interrupt: "interrupt";
|
|
616
|
+
stop: "stop";
|
|
574
617
|
}>;
|
|
575
618
|
error: z.ZodOptional<z.ZodString>;
|
|
576
619
|
ms: z.ZodOptional<z.ZodInt>;
|
|
@@ -581,6 +624,12 @@ export declare const SCHEMAS: {
|
|
|
581
624
|
assistant: z.ZodString;
|
|
582
625
|
at: z.ZodISODateTime;
|
|
583
626
|
}, z.core.$loose>;
|
|
627
|
+
"turn.progress": z.ZodObject<{
|
|
628
|
+
turn: z.ZodInt;
|
|
629
|
+
user: z.ZodString;
|
|
630
|
+
assistant: z.ZodString;
|
|
631
|
+
at: z.ZodISODateTime;
|
|
632
|
+
}, z.core.$loose>;
|
|
584
633
|
"tool.started": z.ZodObject<{
|
|
585
634
|
tool: z.ZodString;
|
|
586
635
|
call_id: z.ZodOptional<z.ZodString>;
|
|
@@ -605,11 +654,11 @@ export declare const SCHEMAS: {
|
|
|
605
654
|
"attention.needed": z.ZodObject<{
|
|
606
655
|
attention_id: z.ZodString;
|
|
607
656
|
kind: z.ZodEnum<{
|
|
657
|
+
elicitation: "elicitation";
|
|
608
658
|
error: "error";
|
|
659
|
+
idle: "idle";
|
|
609
660
|
permission: "permission";
|
|
610
661
|
question: "question";
|
|
611
|
-
elicitation: "elicitation";
|
|
612
|
-
idle: "idle";
|
|
613
662
|
}>;
|
|
614
663
|
tool: z.ZodOptional<z.ZodString>;
|
|
615
664
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -617,10 +666,10 @@ export declare const SCHEMAS: {
|
|
|
617
666
|
"attention.cleared": z.ZodObject<{
|
|
618
667
|
attention_id: z.ZodString;
|
|
619
668
|
how: z.ZodEnum<{
|
|
620
|
-
unknown: "unknown";
|
|
621
669
|
answered: "answered";
|
|
622
670
|
cancelled: "cancelled";
|
|
623
671
|
timeout: "timeout";
|
|
672
|
+
unknown: "unknown";
|
|
624
673
|
}>;
|
|
625
674
|
}, z.core.$loose>;
|
|
626
675
|
"subagent.started": z.ZodObject<{
|
|
@@ -633,8 +682,8 @@ export declare const SCHEMAS: {
|
|
|
633
682
|
}, z.core.$loose>;
|
|
634
683
|
"context.compacted": z.ZodObject<{
|
|
635
684
|
trigger: z.ZodEnum<{
|
|
636
|
-
manual: "manual";
|
|
637
685
|
auto: "auto";
|
|
686
|
+
manual: "manual";
|
|
638
687
|
}>;
|
|
639
688
|
}, z.core.$loose>;
|
|
640
689
|
native: z.ZodObject<{}, z.core.$loose>;
|
|
@@ -662,8 +711,8 @@ export declare const SCHEMAS: {
|
|
|
662
711
|
title: z.ZodOptional<z.ZodString>;
|
|
663
712
|
title_source: z.ZodOptional<z.ZodEnum<{
|
|
664
713
|
custom: "custom";
|
|
665
|
-
harness: "harness";
|
|
666
714
|
"first-ask": "first-ask";
|
|
715
|
+
harness: "harness";
|
|
667
716
|
}>>;
|
|
668
717
|
url: z.ZodOptional<z.ZodURL>;
|
|
669
718
|
account_id: z.ZodOptional<z.ZodString>;
|
|
@@ -714,6 +763,7 @@ export declare const SCHEMAS: {
|
|
|
714
763
|
rp_id: z.ZodString;
|
|
715
764
|
algs: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<-7>, z.ZodLiteral<-257>]>>;
|
|
716
765
|
}, z.core.$strip>;
|
|
766
|
+
files: z.ZodOptional<z.ZodBoolean>;
|
|
717
767
|
}, z.core.$strip>>;
|
|
718
768
|
}, z.core.$strip>;
|
|
719
769
|
readonly control: z.ZodObject<{
|
|
@@ -741,11 +791,11 @@ export declare const SCHEMAS: {
|
|
|
741
791
|
t: z.ZodLiteral<"sessionpipe.control">;
|
|
742
792
|
machine: z.ZodString;
|
|
743
793
|
kind: z.ZodEnum<{
|
|
744
|
-
prompt: "prompt";
|
|
745
|
-
"permission.answer": "permission.answer";
|
|
746
794
|
cancel: "cancel";
|
|
747
|
-
start: "start";
|
|
748
795
|
"key.add": "key.add";
|
|
796
|
+
"permission.answer": "permission.answer";
|
|
797
|
+
prompt: "prompt";
|
|
798
|
+
start: "start";
|
|
749
799
|
}>;
|
|
750
800
|
session: z.ZodString;
|
|
751
801
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -762,6 +812,12 @@ export declare const SCHEMAS: {
|
|
|
762
812
|
spki: z.ZodString;
|
|
763
813
|
}, z.core.$strip>>;
|
|
764
814
|
name: z.ZodOptional<z.ZodString>;
|
|
815
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
816
|
+
name: z.ZodString;
|
|
817
|
+
type: z.ZodString;
|
|
818
|
+
size: z.ZodInt;
|
|
819
|
+
sha256: z.ZodString;
|
|
820
|
+
}, z.core.$strip>>>;
|
|
765
821
|
nonce: z.ZodString;
|
|
766
822
|
iat: z.ZodInt;
|
|
767
823
|
}, z.core.$strip>;
|
|
@@ -804,22 +860,22 @@ export declare const SCHEMAS: {
|
|
|
804
860
|
acks: z.ZodArray<z.ZodObject<{
|
|
805
861
|
id: z.ZodString;
|
|
806
862
|
outcome: z.ZodEnum<{
|
|
807
|
-
progress: "progress";
|
|
808
|
-
taken: "taken";
|
|
809
863
|
delivered: "delivered";
|
|
810
864
|
expired: "expired";
|
|
811
|
-
unsupported: "unsupported";
|
|
812
865
|
failed: "failed";
|
|
866
|
+
progress: "progress";
|
|
813
867
|
refused: "refused";
|
|
868
|
+
taken: "taken";
|
|
869
|
+
unsupported: "unsupported";
|
|
814
870
|
}>;
|
|
815
871
|
at: z.ZodISODateTime;
|
|
816
872
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
817
|
-
|
|
873
|
+
api: "api";
|
|
818
874
|
fork: "fork";
|
|
819
|
-
|
|
875
|
+
resume: "resume";
|
|
820
876
|
sdk: "sdk";
|
|
877
|
+
turn: "turn";
|
|
821
878
|
waiter: "waiter";
|
|
822
|
-
api: "api";
|
|
823
879
|
}>>;
|
|
824
880
|
session: z.ZodOptional<z.ZodString>;
|
|
825
881
|
code: z.ZodOptional<z.ZodString>;
|
|
@@ -834,12 +890,12 @@ export declare const SCHEMAS: {
|
|
|
834
890
|
name: z.ZodString;
|
|
835
891
|
harnesses: z.ZodArray<z.ZodString>;
|
|
836
892
|
modes: z.ZodArray<z.ZodEnum<{
|
|
837
|
-
|
|
893
|
+
api: "api";
|
|
838
894
|
fork: "fork";
|
|
839
|
-
|
|
895
|
+
resume: "resume";
|
|
840
896
|
sdk: "sdk";
|
|
897
|
+
turn: "turn";
|
|
841
898
|
waiter: "waiter";
|
|
842
|
-
api: "api";
|
|
843
899
|
}>>;
|
|
844
900
|
version: z.ZodString;
|
|
845
901
|
folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -847,6 +903,12 @@ export declare const SCHEMAS: {
|
|
|
847
903
|
auto: "auto";
|
|
848
904
|
safe: "safe";
|
|
849
905
|
}>>;
|
|
906
|
+
accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
907
|
+
harness: z.ZodString;
|
|
908
|
+
id: z.ZodString;
|
|
909
|
+
email: z.ZodOptional<z.ZodString>;
|
|
910
|
+
}, z.core.$strip>>>;
|
|
911
|
+
files: z.ZodOptional<z.ZodBoolean>;
|
|
850
912
|
}, z.core.$strip>;
|
|
851
913
|
readonly "control-pair-started": z.ZodObject<{
|
|
852
914
|
machine: z.ZodString;
|
|
@@ -858,8 +920,8 @@ export declare const SCHEMAS: {
|
|
|
858
920
|
readonly "control-paired": z.ZodObject<{
|
|
859
921
|
status: z.ZodEnum<{
|
|
860
922
|
expired: "expired";
|
|
861
|
-
pending: "pending";
|
|
862
923
|
paired: "paired";
|
|
924
|
+
pending: "pending";
|
|
863
925
|
}>;
|
|
864
926
|
key: z.ZodOptional<z.ZodObject<{
|
|
865
927
|
id: z.ZodString;
|
|
@@ -880,12 +942,12 @@ export declare const SCHEMAS: {
|
|
|
880
942
|
name: z.ZodString;
|
|
881
943
|
harnesses: z.ZodArray<z.ZodString>;
|
|
882
944
|
modes: z.ZodArray<z.ZodEnum<{
|
|
883
|
-
|
|
945
|
+
api: "api";
|
|
884
946
|
fork: "fork";
|
|
885
|
-
|
|
947
|
+
resume: "resume";
|
|
886
948
|
sdk: "sdk";
|
|
949
|
+
turn: "turn";
|
|
887
950
|
waiter: "waiter";
|
|
888
|
-
api: "api";
|
|
889
951
|
}>>;
|
|
890
952
|
keys: z.ZodArray<z.ZodString>;
|
|
891
953
|
version: z.ZodString;
|
|
@@ -895,6 +957,12 @@ export declare const SCHEMAS: {
|
|
|
895
957
|
auto: "auto";
|
|
896
958
|
safe: "safe";
|
|
897
959
|
}>>;
|
|
960
|
+
accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
961
|
+
harness: z.ZodString;
|
|
962
|
+
id: z.ZodString;
|
|
963
|
+
email: z.ZodOptional<z.ZodString>;
|
|
964
|
+
}, z.core.$strip>>>;
|
|
965
|
+
files: z.ZodOptional<z.ZodBoolean>;
|
|
898
966
|
}, z.core.$strip>;
|
|
899
967
|
};
|
|
900
968
|
//# sourceMappingURL=v1.d.ts.map
|
package/dist/schema/v1.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../schema/v1.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,QAAQ,IAAI,CAAC;AAE1B,oEAAoE;AACpE,eAAO,MAAM,SAAS,aAE2E,CAAC;AAElG,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../schema/v1.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,QAAQ,IAAI,CAAC;AAE1B,oEAAoE;AACpE,eAAO,MAAM,SAAS,aAE2E,C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