@stitchmux/client 0.0.0-stage → 0.96.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +45 -2
- package/dist/chunk-wddwdvbj.js +714 -0
- package/dist/index.js +4070 -0
- package/dist/monitoring.js +279 -0
- package/native-stream.json +8 -0
- package/package.json +36 -4
- package/types/src/agent/claude/native/commandSchema.d.ts +14 -0
- package/types/src/agent/custom/config.d.ts +159 -0
- package/types/src/agent/custom/endpoint.d.ts +26 -0
- package/types/src/agent/transcript/messageSchema.d.ts +153 -0
- package/types/src/attachments/reference.d.ts +56 -0
- package/types/src/attachments/schema.d.ts +512 -0
- package/types/src/chat/communicationAuthorizationSchema.d.ts +77 -0
- package/types/src/chat/communicationReceiptSchema.d.ts +82 -0
- package/types/src/chat/feedSchema.d.ts +641 -0
- package/types/src/chat/holdKind.d.ts +26 -0
- package/types/src/chat/identity.d.ts +55 -0
- package/types/src/chat/identitySchema.d.ts +121 -0
- package/types/src/chat/letterRequestSchema.d.ts +35 -0
- package/types/src/chat/messageOperationSchema.d.ts +277 -0
- package/types/src/chat/messageSchema.d.ts +284 -0
- package/types/src/chat/originSchema.d.ts +67 -0
- package/types/src/chat/sentLetterSchema.d.ts +79 -0
- package/types/src/client.d.ts +16 -0
- package/types/src/config/claudeProfileSchema.d.ts +22 -0
- package/types/src/config/launchSchema.d.ts +136 -0
- package/types/src/config/location.d.ts +6 -0
- package/types/src/config/machineSchema.d.ts +320 -0
- package/types/src/config/modelSelectionFlags.d.ts +4 -0
- package/types/src/config/paths.d.ts +87 -0
- package/types/src/config/remoteTransport.d.ts +12 -0
- package/types/src/content/schema.d.ts +312 -0
- package/types/src/content/toolSchema.d.ts +36 -0
- package/types/src/context/corpusSearchSchema.d.ts +578 -0
- package/types/src/context/exactMessageSchema.d.ts +54 -0
- package/types/src/context/messageSenderSchema.d.ts +14 -0
- package/types/src/context/schema.d.ts +176 -0
- package/types/src/context/searchFrames.d.ts +225 -0
- package/types/src/context/searchRequestSchema.d.ts +47 -0
- package/types/src/context/transcriptJsonSchema.d.ts +210 -0
- package/types/src/control/schema/context.d.ts +188 -0
- package/types/src/control/schema/contract.d.ts +7142 -0
- package/types/src/control/schema/core.d.ts +722 -0
- package/types/src/control/schema/directory.d.ts +34 -0
- package/types/src/control/schema/eventsContract.d.ts +1423 -0
- package/types/src/control/schema/externalList.d.ts +96 -0
- package/types/src/control/schema/message.d.ts +280 -0
- package/types/src/control/schema/model.d.ts +128 -0
- package/types/src/control/schema/native.d.ts +664 -0
- package/types/src/control/schema/nativeStreamContract.d.ts +155 -0
- package/types/src/control/schema/performance.d.ts +85 -0
- package/types/src/control/schema/public.d.ts +48 -0
- package/types/src/control/schema/reading.d.ts +24 -0
- package/types/src/control/schema/refusals.d.ts +433 -0
- package/types/src/control/schema/runtimeOps.d.ts +724 -0
- package/types/src/control/schema/searchContract.d.ts +258 -0
- package/types/src/control/schema/selection.d.ts +124 -0
- package/types/src/control/schema/session.d.ts +272 -0
- package/types/src/control/schema/terminalPrompt.d.ts +102 -0
- package/types/src/control/transport/boundary.d.ts +7137 -0
- package/types/src/control/transport/client.d.ts +10838 -0
- package/types/src/control/transport/connection.d.ts +13 -0
- package/types/src/control/transport/socketPath.d.ts +3 -0
- package/types/src/control-client.d.ts +9 -0
- package/types/src/delegation/applicationSchema.d.ts +132 -0
- package/types/src/delegation/schema.d.ts +267 -0
- package/types/src/events/schema.d.ts +155 -0
- package/types/src/external/contentSchema.d.ts +145 -0
- package/types/src/external/messageSchema.d.ts +131 -0
- package/types/src/external/residentFrames.d.ts +130 -0
- package/types/src/external/residentSchema.d.ts +144 -0
- package/types/src/external/sessionSchema.d.ts +427 -0
- package/types/src/external/turnSchema.d.ts +55 -0
- package/types/src/fleet/fleetSchema.d.ts +937 -0
- package/types/src/inventory/listSchema.d.ts +442 -0
- package/types/src/monitoring/nativeFile.d.ts +7 -0
- package/types/src/monitoring/nativeRead.d.ts +14 -0
- package/types/src/monitoring/performanceSchema.d.ts +28 -0
- package/types/src/monitoring/schema.d.ts +410 -0
- package/types/src/monitoring/validate.d.ts +5 -0
- package/types/src/monitoring-reader.d.ts +4 -0
- package/types/src/policy/reference.d.ts +93 -0
- package/types/src/policy/runtimeProfile.d.ts +24 -0
- package/types/src/policy/schema.d.ts +177 -0
- package/types/src/runtime/capabilities.d.ts +124 -0
- package/types/src/runtime/modes.d.ts +47 -0
- package/types/src/runtime/permissionScope.d.ts +22 -0
- package/types/src/runtime/planLimitsSchema.d.ts +55 -0
- package/types/src/runtime/projectionSchema.d.ts +539 -0
- package/types/src/runtime/rewindSchema.d.ts +16 -0
- package/types/src/runtime/selectionSchema.d.ts +158 -0
- package/types/src/runtime/workloadContract.d.ts +55 -0
- package/types/src/session/boundary.d.ts +43 -0
- package/types/src/session/identitySchema.d.ts +353 -0
- package/types/src/session/schema.d.ts +341 -0
- package/types/src/session/sleep/schema.d.ts +283 -0
- package/types/src/steering/schema.d.ts +197 -0
- package/types/src/types.d.ts +48 -0
- package/types/src/usage/schema.d.ts +978 -0
- package/types/src/util/home.d.ts +9 -0
- package/types/src/util/preview.d.ts +13 -0
- package/types/src/util/version.d.ts +3 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ManagedPeerSchema } from "../../chat/identitySchema.js";
|
|
3
|
+
import { ControlNativeCursorSchema } from "./native.js";
|
|
4
|
+
export declare const STITCHMUX_NATIVE_STREAM_PROFILE = "stitchmux-native";
|
|
5
|
+
export declare const STITCHMUX_NATIVE_STREAM_COMMAND = "control-native-stream";
|
|
6
|
+
export declare const STITCHMUX_NATIVE_STREAM_MAX_INPUT_BYTES = 4096;
|
|
7
|
+
/**
|
|
8
|
+
* What the remote transport under this stream actually allows, and it is TWO ceilings on two quantities.
|
|
9
|
+
*
|
|
10
|
+
* The transport reads the producer's NDJSON with a parser bounded at `maxChunkBytes * 2`, and
|
|
11
|
+
* separately refuses any framed chunk whose `data` exceeds `maxChunkBytes`. That knob is the
|
|
12
|
+
* broker's, its schema maximum is 32 KiB, and its default is the same 32 KiB — so no deployment can
|
|
13
|
+
* raise it. Read from the transport's source, not inferred from its behaviour.
|
|
14
|
+
*
|
|
15
|
+
* The budget here used to be derived from this project's own `CONTROL_MAX_BYTES` — 513 KiB, eight
|
|
16
|
+
* times what the remote transport carries. Sizing the frame against it produced frames that satisfied our
|
|
17
|
+
* contract and died on the remote transport, and the earlier fix made that worse in an instructive way: it
|
|
18
|
+
* corrected the QUANTITY being measured (the line, not the payload) while keeping the wrong LIMIT,
|
|
19
|
+
* which is the same defect one level up. A number has to come from whoever enforces it.
|
|
20
|
+
*
|
|
21
|
+
* A broker configured BELOW the default would still refuse us, and nothing on this side can see
|
|
22
|
+
* that value. Then the refusal is the transport's and names its own ceiling; there is no honest way
|
|
23
|
+
* to pre-empt a limit we cannot read.
|
|
24
|
+
*/
|
|
25
|
+
export declare const STITCHMUX_NATIVE_STREAM_MAX_CHUNK_BYTES: number;
|
|
26
|
+
export declare const STITCHMUX_NATIVE_STREAM_MAX_FRAME_BYTES: number;
|
|
27
|
+
export declare const STITCHMUX_NATIVE_STREAM_HEARTBEAT_MS = 2000;
|
|
28
|
+
export declare const ControlNativeStreamRequestSchema: z.ZodObject<{
|
|
29
|
+
target: z.ZodObject<{
|
|
30
|
+
kind: z.ZodLiteral<"managed">;
|
|
31
|
+
source: z.ZodLiteral<"stitchmux">;
|
|
32
|
+
machine: z.ZodString;
|
|
33
|
+
agent: z.ZodEnum<{
|
|
34
|
+
antigravity: "antigravity";
|
|
35
|
+
claude: "claude";
|
|
36
|
+
codex: "codex";
|
|
37
|
+
custom: "custom";
|
|
38
|
+
opencode: "opencode";
|
|
39
|
+
}>;
|
|
40
|
+
session: z.ZodString;
|
|
41
|
+
threadId: z.ZodUUID;
|
|
42
|
+
}, z.core.$strict>;
|
|
43
|
+
cursor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
export type ControlNativeStreamRequest = z.output<typeof ControlNativeStreamRequestSchema>;
|
|
46
|
+
export declare const ControlNativeStreamCursorSchema: z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
47
|
+
v: 2;
|
|
48
|
+
target: {
|
|
49
|
+
kind: "managed";
|
|
50
|
+
source: "stitchmux";
|
|
51
|
+
machine: string;
|
|
52
|
+
agent: "antigravity" | "claude" | "codex" | "custom" | "opencode";
|
|
53
|
+
session: string;
|
|
54
|
+
threadId: string;
|
|
55
|
+
};
|
|
56
|
+
cursor: {
|
|
57
|
+
generation: string;
|
|
58
|
+
sequence: number;
|
|
59
|
+
};
|
|
60
|
+
}, string>>;
|
|
61
|
+
/**
|
|
62
|
+
* The bytes a consumer actually reads: the serialized frame plus the newline that delimits it.
|
|
63
|
+
*
|
|
64
|
+
* This is the quantity the budget was always about, and it is NOT the size of `data`. `data` is
|
|
65
|
+
* itself JSON, so serializing the frame escapes it a second time — every quote and backslash inside
|
|
66
|
+
* grows again — and content carrying code or JSON is escaped twice over. Measured on a payload
|
|
67
|
+
* exactly at the budget: 525_312 bytes of `data` became a 605_332-byte line, 80_020 over.
|
|
68
|
+
*/
|
|
69
|
+
export declare function controlNativeStreamFrameBytes(frame: unknown): number;
|
|
70
|
+
export declare const ControlNativeStreamFrameSchema: z.ZodObject<{
|
|
71
|
+
channel: z.ZodLiteral<"data">;
|
|
72
|
+
data: z.ZodString;
|
|
73
|
+
cursor: z.ZodString;
|
|
74
|
+
}, z.core.$strict>;
|
|
75
|
+
export declare function encodeControlNativeStreamCursor(target: z.output<typeof ManagedPeerSchema>, cursor: z.output<typeof ControlNativeCursorSchema>): string;
|
|
76
|
+
export declare function readControlNativeStreamCursor(token: string | null, target: z.output<typeof ManagedPeerSchema>): z.output<typeof ControlNativeCursorSchema> | null;
|
|
77
|
+
/**
|
|
78
|
+
* Nothing left to shed and still over the budget: there is no honest smaller frame to send.
|
|
79
|
+
*
|
|
80
|
+
* Named on its own because the two ways a producer can fail want opposite answers from a consumer.
|
|
81
|
+
* A stream that could not be opened is worth another attempt; a frame whose fixed fields alone
|
|
82
|
+
* exceed the remote transport is not, and a retry returns to exactly the same line. Carries sizes only — no
|
|
83
|
+
* thread content ever leaves through an error path.
|
|
84
|
+
*/
|
|
85
|
+
export declare class NativeStreamFrameUnrepresentable extends Error {
|
|
86
|
+
readonly bytes: number;
|
|
87
|
+
constructor(bytes: number);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* A frame that fits the budget the consumer enforces, shedding observation until it does.
|
|
91
|
+
*
|
|
92
|
+
* The snapshot is an observation cache, and `omittedRecords` is how it already says "there was more
|
|
93
|
+
* than this". So an oversized frame has an honest smaller form, and sending it is strictly better
|
|
94
|
+
* than sending one that cannot be read: a frame over the bound does not degrade the consumer, it
|
|
95
|
+
* kills the stream, and the reconnect that follows fetches the same line again.
|
|
96
|
+
*
|
|
97
|
+
* Oldest records go first, then baseline entries, each counted into `omittedRecords` — the same
|
|
98
|
+
* order and the same accounting the buffer uses when it sheds under its own bounds. Pending
|
|
99
|
+
* requests are shed last and only when nothing observational is left, because they are the one part
|
|
100
|
+
* of the frame a human can act on. Sizes are measured rather than predicted: how much a record
|
|
101
|
+
* costs on the remote transport depends on what its text contains, and the escaping ratio is not a constant to
|
|
102
|
+
* multiply by.
|
|
103
|
+
*/
|
|
104
|
+
export declare function controlNativeStreamFrame(snapshot: unknown): {
|
|
105
|
+
channel: "data";
|
|
106
|
+
data: string;
|
|
107
|
+
cursor: string;
|
|
108
|
+
};
|
|
109
|
+
export declare const StitchmuxNativeStreamProfileSchema: z.ZodObject<{
|
|
110
|
+
bin: z.ZodString;
|
|
111
|
+
argv: z.ZodTuple<[z.ZodLiteral<"control-native-stream">], null>;
|
|
112
|
+
callerArgs: z.ZodObject<{
|
|
113
|
+
mode: z.ZodLiteral<"none">;
|
|
114
|
+
}, z.core.$strict>;
|
|
115
|
+
stdin: z.ZodObject<{
|
|
116
|
+
mode: z.ZodLiteral<"text">;
|
|
117
|
+
maxBytes: z.ZodLiteral<4096>;
|
|
118
|
+
}, z.core.$strict>;
|
|
119
|
+
env: z.ZodObject<{
|
|
120
|
+
inherit: z.ZodTuple<[], null>;
|
|
121
|
+
set: z.ZodObject<{}, z.core.$strict>;
|
|
122
|
+
}, z.core.$strict>;
|
|
123
|
+
timeoutMs: z.ZodLiteral<900000>;
|
|
124
|
+
maxBytes: z.ZodLiteral<number>;
|
|
125
|
+
concurrency: z.ZodLiteral<4>;
|
|
126
|
+
format: z.ZodObject<{
|
|
127
|
+
mode: z.ZodLiteral<"ndjson">;
|
|
128
|
+
stableCursor: z.ZodLiteral<true>;
|
|
129
|
+
}, z.core.$strict>;
|
|
130
|
+
}, z.core.$strict>;
|
|
131
|
+
/** Operator supplies only the standard installed `stitchmux` executable path. The installer publishes
|
|
132
|
+
* a PATH-independent POSIX shim with absolute runtime and bundle paths, so the fixed empty
|
|
133
|
+
* environment is executable without weakening the profile. argv and framing remain owner-fixed. */
|
|
134
|
+
export declare function createStitchmuxNativeStreamProfile(bin: string): {
|
|
135
|
+
bin: string;
|
|
136
|
+
argv: ["control-native-stream"];
|
|
137
|
+
callerArgs: {
|
|
138
|
+
mode: "none";
|
|
139
|
+
};
|
|
140
|
+
stdin: {
|
|
141
|
+
mode: "text";
|
|
142
|
+
maxBytes: 4096;
|
|
143
|
+
};
|
|
144
|
+
env: {
|
|
145
|
+
inherit: [];
|
|
146
|
+
set: Record<string, never>;
|
|
147
|
+
};
|
|
148
|
+
timeoutMs: 900000;
|
|
149
|
+
maxBytes: number;
|
|
150
|
+
concurrency: 4;
|
|
151
|
+
format: {
|
|
152
|
+
mode: "ndjson";
|
|
153
|
+
stableCursor: true;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PerformanceReadSchema: z.ZodObject<{}, z.core.$strict>;
|
|
3
|
+
export declare const PerformanceConfigureSchema: z.ZodObject<{
|
|
4
|
+
enabled: z.ZodBoolean;
|
|
5
|
+
reset: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
export declare const performanceContract: import("stitchkit").ContractDef<{
|
|
8
|
+
readonly 'daemon.performance': {
|
|
9
|
+
readonly method: "POST";
|
|
10
|
+
readonly path: "/daemon/performance";
|
|
11
|
+
readonly effect: "read";
|
|
12
|
+
readonly desc: "Read daemon CPU windows without changing collection";
|
|
13
|
+
readonly input: z.ZodObject<{}, z.core.$strict>;
|
|
14
|
+
readonly output: z.ZodObject<{
|
|
15
|
+
basis: z.ZodLiteral<"exclusive-operation-windows-and-sync-spans">;
|
|
16
|
+
enabled: z.ZodBoolean;
|
|
17
|
+
since: z.ZodISODateTime;
|
|
18
|
+
elapsedMs: z.ZodNumber;
|
|
19
|
+
cpu: z.ZodObject<{
|
|
20
|
+
userUs: z.ZodNumber;
|
|
21
|
+
systemUs: z.ZodNumber;
|
|
22
|
+
}, z.core.$strict>;
|
|
23
|
+
unattributed: z.ZodObject<{
|
|
24
|
+
userUs: z.ZodNumber;
|
|
25
|
+
systemUs: z.ZodNumber;
|
|
26
|
+
}, z.core.$strict>;
|
|
27
|
+
producers: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
28
|
+
scopes: z.ZodArray<z.ZodObject<{
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
runs: z.ZodNumber;
|
|
31
|
+
failures: z.ZodNumber;
|
|
32
|
+
active: z.ZodNumber;
|
|
33
|
+
durationMs: z.ZodNumber;
|
|
34
|
+
cpu: z.ZodNullable<z.ZodObject<{
|
|
35
|
+
userUs: z.ZodNumber;
|
|
36
|
+
systemUs: z.ZodNumber;
|
|
37
|
+
}, z.core.$strict>>;
|
|
38
|
+
}, z.core.$strict>>;
|
|
39
|
+
}, z.core.$strict>;
|
|
40
|
+
readonly expose: readonly ["HTTP", "CLI", "MCP"];
|
|
41
|
+
readonly tool: {
|
|
42
|
+
readonly name: "performance";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
readonly 'daemon.performance.configure': {
|
|
46
|
+
readonly method: "POST";
|
|
47
|
+
readonly path: "/daemon/performance/configure";
|
|
48
|
+
readonly effect: "write";
|
|
49
|
+
readonly desc: "Enable or disable daemon CPU collection; reset only on transition or explicit reset";
|
|
50
|
+
readonly input: z.ZodObject<{
|
|
51
|
+
enabled: z.ZodBoolean;
|
|
52
|
+
reset: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
readonly output: z.ZodObject<{
|
|
55
|
+
basis: z.ZodLiteral<"exclusive-operation-windows-and-sync-spans">;
|
|
56
|
+
enabled: z.ZodBoolean;
|
|
57
|
+
since: z.ZodISODateTime;
|
|
58
|
+
elapsedMs: z.ZodNumber;
|
|
59
|
+
cpu: z.ZodObject<{
|
|
60
|
+
userUs: z.ZodNumber;
|
|
61
|
+
systemUs: z.ZodNumber;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
unattributed: z.ZodObject<{
|
|
64
|
+
userUs: z.ZodNumber;
|
|
65
|
+
systemUs: z.ZodNumber;
|
|
66
|
+
}, z.core.$strict>;
|
|
67
|
+
producers: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
68
|
+
scopes: z.ZodArray<z.ZodObject<{
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
runs: z.ZodNumber;
|
|
71
|
+
failures: z.ZodNumber;
|
|
72
|
+
active: z.ZodNumber;
|
|
73
|
+
durationMs: z.ZodNumber;
|
|
74
|
+
cpu: z.ZodNullable<z.ZodObject<{
|
|
75
|
+
userUs: z.ZodNumber;
|
|
76
|
+
systemUs: z.ZodNumber;
|
|
77
|
+
}, z.core.$strict>>;
|
|
78
|
+
}, z.core.$strict>>;
|
|
79
|
+
}, z.core.$strict>;
|
|
80
|
+
readonly expose: readonly ["HTTP", "CLI", "MCP"];
|
|
81
|
+
readonly tool: {
|
|
82
|
+
readonly name: "performance_configure";
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
}, "public">;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The contract both published control clients carry: the local socket client and the declared-service
|
|
3
|
+
* client read the same sessions, messages, attachments and receipts, so they export the same schemas.
|
|
4
|
+
* Each client adds only what is its own — its transport and the profile it speaks.
|
|
5
|
+
*/
|
|
6
|
+
export { ATTACHMENT_LIMITS, type AttachmentMediaType, AttachmentMediaTypeSchema, type AttachmentReference, AttachmentReferenceSchema, AttachmentReferencesSchema, } from "../../attachments/reference.js";
|
|
7
|
+
export { type AttachmentBegin, AttachmentBeginSchema, type AttachmentCancelReceipt, AttachmentCancelReceiptSchema, type AttachmentChunk, AttachmentChunkSchema, type AttachmentRead, type AttachmentReadReceipt, AttachmentReadReceiptSchema, AttachmentReadSchema, type AttachmentUploadReceipt, AttachmentUploadReceiptSchema, type AttachmentUploadSelector, AttachmentUploadSelectorSchema, } from "../../attachments/schema.js";
|
|
8
|
+
export { type CommunicationAuthorization, type CommunicationAuthorizationInput, CommunicationAuthorizationInputSchema, CommunicationAuthorizationSchema, } from "../../chat/communicationAuthorizationSchema.js";
|
|
9
|
+
export { type CommunicationReceipt, CommunicationReceiptSchema, } from "../../chat/communicationReceiptSchema.js";
|
|
10
|
+
export { type LogFrame, LogFrameSchema, type LogMachine, LogMachineSchema, type LogPayload, LogPayloadSchema, type LogRow, LogRowSchema, } from "../../chat/feedSchema.js";
|
|
11
|
+
export { type ChatPrincipal, ChatPrincipalSchema, type ChatTarget, ChatTargetSchema, } from "../../chat/identitySchema.js";
|
|
12
|
+
export { MESSAGE_OPERATION_LIMITS, type MessageOperationEvidence, MessageOperationEvidenceSchema, type MessageOperationRead, MessageOperationReadSchema, type MessageOperationResult, MessageOperationResultSchema, MessageOperationStateSchema, } from "../../chat/messageOperationSchema.js";
|
|
13
|
+
export { type MessageAttribution, MessageAttributionSchema, type MessageOrigin, MessageOriginSchema, type NotificationAudience, NotificationAudienceSchema, } from "../../chat/originSchema.js";
|
|
14
|
+
export { type SendReceipt, SendReceiptSchema, type SentLetter, SentLetterSchema, type SentLetterState, SentLetterStateSchema, SentListSchema, } from "../../chat/sentLetterSchema.js";
|
|
15
|
+
export { LaunchRecipeMetadataSchema, LaunchRecipeReferenceSchema, ModelSelectionSchema, } from "../../config/launchSchema.js";
|
|
16
|
+
export type { ModelSelection } from "../../config/modelSelectionFlags.js";
|
|
17
|
+
export { ContentCursorSchema, ContentReadSchema, ContentRecordSchema, } from "../../content/schema.js";
|
|
18
|
+
export { ToolLifecycleSchema, ToolNameSchema, type ToolObservation, ToolObservationSchema, ToolOutcomeSchema, } from "../../content/toolSchema.js";
|
|
19
|
+
export { type ConversationHits, ConversationHitsSchema, type ConversationRef, ConversationRefSchema, type CorpusMatch, CorpusMatchSchema, type CorpusSearchJson, CorpusSearchJsonSchema, type Delivery, DeliverySchema, FleetConversationHitsSchema, FleetDeliverySchema, FleetMatchSchema, type MachineCoverage, MachineCoverageSchema, MachineUnavailableSchema, RECEIPT_MARKS_MAX, type Receipts, ReceiptsSchema, } from "../../context/corpusSearchSchema.js";
|
|
20
|
+
export { EXACT_MESSAGE_LIMITS, ExactMessageOutcomeSchema, type ExactMessageResult, ExactMessageResultSchema, } from "../../context/exactMessageSchema.js";
|
|
21
|
+
export { type MessageSender, MessageSenderSchema } from "../../context/messageSenderSchema.js";
|
|
22
|
+
export { type NativeForkRequest, NativeForkRequestSchema, type NativeHistoryEntry, NativeHistoryEntrySchema, type NativeHistoryPage, NativeHistoryPageSchema, NativeHistoryQuerySchema, } from "../../context/schema.js";
|
|
23
|
+
export { collectSearch, SEARCH_FRAME_MAX_BYTES, type SearchFrame, SearchFrameSchema, SearchStreamCutError, } from "../../context/searchFrames.js";
|
|
24
|
+
export { DEFAULT_MATCHES, SEARCH_LIMIT_MAX, SEARCH_PROVIDERS, type SearchRequest, SearchRequestSchema, } from "../../context/searchRequestSchema.js";
|
|
25
|
+
export { ApplicationAuthorityCapabilitiesSchema, ApplicationAuthorityOpenSchema, ApplicationAuthoritySchema, ApplicationAuthoritySelectorSchema, ApplicationAuthorityUpdateSchema, ApplicationBindingSchema, ApplicationDelegationGrantSchema, ApplicationParentSchema, } from "../../delegation/applicationSchema.js";
|
|
26
|
+
export { DelegatedPolicySchema, DelegationEvidenceSchema, DelegationRequestSchema, DelegationSchema, } from "../../delegation/schema.js";
|
|
27
|
+
export { type AccountProfile, AccountProfileSchema, type FleetAccount, FleetAccountSchema, type FleetAnswer, FleetAnswerSchema, type FleetMachine, FleetMachineSchema, type FleetView, FleetViewSchema, type ProjectedPlanLimits, ProjectedPlanLimitsSchema, RemoteSessionSchema, } from "../../fleet/fleetSchema.js";
|
|
28
|
+
export { ApplicationPolicyEvidenceSchema, ApplicationPolicyMetadataSchema, ApplicationPolicyReferenceSchema, } from "../../policy/reference.js";
|
|
29
|
+
export { type RuntimeCapabilities, RuntimeCapabilitiesSchema, RuntimeCatalogInputSchema, RuntimeCatalogSchema, } from "../../runtime/capabilities.js";
|
|
30
|
+
export { type PermissionScope, PermissionScopeSchema, } from "../../runtime/permissionScope.js";
|
|
31
|
+
export { type AcceptedTurnOptions, AcceptedTurnOptionsSchema, type NativeSelectionEvidence, NativeSelectionEvidenceSchema, type NativeTurnOptions, NativeTurnOptionsSchema, } from "../../runtime/selectionSchema.js";
|
|
32
|
+
export { DeclaredProjectSchema, type SessionIdentity, SessionIdentitySchema, type SessionLife, SessionLifeSchema, type StrayConversation, StrayConversationSchema, type WhoisAnswer, WhoisAnswerSchema, type WhoisBy, WhoisBySchema, type WhoisCandidate, WhoisCandidateSchema, type WhoisEvent, WhoisEventSchema, type WhoisList, WhoisListSchema, type WhoisMachine, WhoisMachineSchema, } from "../../session/identitySchema.js";
|
|
33
|
+
export { IdleProofSchema, PinReceiptSchema, PinRequestSchema, SleepReceiptSchema, SleepRequestSchema, SleepTargetSchema, WakeRequestSchema, } from "../../session/sleep/schema.js";
|
|
34
|
+
export { type SteeringInput, SteeringInputSchema, SteeringReadResultSchema, type SteeringReceipt, SteeringReceiptSchema, type SteeringSelector, SteeringSelectorSchema, } from "../../steering/schema.js";
|
|
35
|
+
export type { LaunchRecipeMetadata, LaunchRecipeReference, } from "../../types.js";
|
|
36
|
+
export { UsageListResultSchema, UsageListSchema, type UsageQuery, UsageQuerySchema, UsageReadSchema, type UsageSummary, UsageSummarySchema, } from "../../usage/schema.js";
|
|
37
|
+
export { ControlTransportCallerSchema } from "../transport/boundary.js";
|
|
38
|
+
export { ControlCompactSchema, ControlContextOperationReadSchema, ControlContextOperationResultSchema, ControlHistoryReadSchema, ControlHistoryResultSchema, PublicContextOperationSchema, } from "./context.js";
|
|
39
|
+
export { controlContract } from "./contract.js";
|
|
40
|
+
export { type ControlRow, ControlRowSchema, } from "./core.js";
|
|
41
|
+
export { type ControlDirectoryRead, ControlDirectoryReadSchema, type ControlDirectoryResult, ControlDirectoryResultSchema, } from "./directory.js";
|
|
42
|
+
export { type ControlModel, type ControlModelCatalog, ControlModelCatalogSchema, ControlModelSchema, type ControlModelsRead, ControlModelsReadSchema, } from "./model.js";
|
|
43
|
+
export { ControlNativeCursorSchema, ControlNativeReadSchema, type ControlNativeResponse, type ControlNativeResponseReceipt, ControlNativeResponseReceiptSchema, ControlNativeResponseSchema, type ControlNativeSnapshot, ControlNativeSnapshotSchema, } from "./native.js";
|
|
44
|
+
export { ChatLogReadSchema, ExactMessageReadSchema, IdentityListReadSchema, IdentityWhoisReadSchema, SentLettersReadSchema, } from "./reading.js";
|
|
45
|
+
export { type RefusalCode, refusals } from "./refusals.js";
|
|
46
|
+
export { SelectionReadSchema, SelectionResultSchema, SelectionUpdateSchema, } from "./selection.js";
|
|
47
|
+
export { ControlArchiveReceiptSchema, type ControlCreate, type ControlCreateReceipt, ControlCreateReceiptSchema, ControlCreateSchema, } from "./session.js";
|
|
48
|
+
export * from "./terminalPrompt.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** What a caller asks the reads of identity, messages and letters with. */
|
|
3
|
+
export declare const IdentityWhoisReadSchema: z.ZodObject<{
|
|
4
|
+
query: z.ZodString;
|
|
5
|
+
local: z.ZodDefault<z.ZodBoolean>;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
export declare const IdentityListReadSchema: z.ZodObject<{
|
|
8
|
+
local: z.ZodDefault<z.ZodBoolean>;
|
|
9
|
+
}, z.core.$strict>;
|
|
10
|
+
export declare const ExactMessageReadSchema: z.ZodObject<{
|
|
11
|
+
address: z.ZodString;
|
|
12
|
+
messageId: z.ZodString;
|
|
13
|
+
}, z.core.$strict>;
|
|
14
|
+
export declare const ChatLogReadSchema: z.ZodObject<{
|
|
15
|
+
limit: z.ZodDefault<z.ZodInt>;
|
|
16
|
+
fleet: z.ZodDefault<z.ZodBoolean>;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
/** Where a follower of the chat log starts: a cursor this log gave, or its beginning. */
|
|
19
|
+
export declare const ChatFollowReadSchema: z.ZodObject<{
|
|
20
|
+
since: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
export declare const SentLettersReadSchema: z.ZodObject<{
|
|
23
|
+
task: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
}, z.core.$strict>;
|