@maudecode/talaria-web-contracts 1.19.0 → 1.20.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/dist/context-detail.d.ts +75 -0
- package/dist/context-detail.js +18 -0
- package/dist/context-detail.js.map +1 -0
- package/dist/gateway-session.d.ts +253 -7
- package/dist/gateway-session.js +63 -3
- package/dist/gateway-session.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/router.d.ts +1398 -191
- package/dist/routes/automation.d.ts +9 -7
- package/dist/routes/automation.js +1 -1
- package/dist/routes/automation.js.map +1 -1
- package/dist/routes/chat.d.ts +303 -40
- package/dist/routes/chat.js +4 -3
- package/dist/routes/chat.js.map +1 -1
- package/dist/routes/core.d.ts +4 -4
- package/dist/routes/git.d.ts +9 -0
- package/dist/routes/git.js +6 -1
- package/dist/routes/git.js.map +1 -1
- package/dist/routes/raw.js +9 -5
- package/dist/routes/raw.js.map +1 -1
- package/dist/routes/sessions.d.ts +921 -124
- package/dist/routes/sessions.js +6 -0
- package/dist/routes/sessions.js.map +1 -1
- package/dist/routes/settings.d.ts +29 -13
- package/dist/routes/settings.js +3 -2
- package/dist/routes/settings.js.map +1 -1
- package/dist/routes/tools.d.ts +314 -30
- package/dist/routes/tools.js +14 -4
- package/dist/routes/tools.js.map +1 -1
- package/dist/routes/workspaces.d.ts +4 -4
- package/dist/sidecar/methods.d.ts +816 -19
- package/dist/sidecar/methods.js +2 -2
- package/dist/sidecar/methods.js.map +1 -1
- package/dist/sidecar/namespaces.d.ts +959 -28
- package/dist/sidecar/namespaces.js +101 -14
- package/dist/sidecar/namespaces.js.map +1 -1
- package/dist/sidecar/rpc.d.ts +1 -0
- package/dist/sidecar/rpc.js +2 -0
- package/dist/sidecar/rpc.js.map +1 -1
- package/dist/sidecar/runtime.d.ts +13 -0
- package/dist/sidecar/runtime.js +9 -0
- package/dist/sidecar/runtime.js.map +1 -1
- package/dist/sidecar/version.d.ts +1 -1
- package/dist/sidecar/version.js +1 -1
- package/dist/sse.d.ts +83 -12
- package/dist/sse.js +8 -2
- package/dist/sse.js.map +1 -1
- package/dist/views.d.ts +584 -103
- package/dist/views.js +54 -11
- package/dist/views.js.map +1 -1
- package/fixtures/sidecar/aux.json +8 -0
- package/fixtures/sidecar/chat.json +14 -0
- package/fixtures/sidecar/checkpoints.json +7 -2
- package/fixtures/sidecar/context-detail.json +77 -0
- package/fixtures/sidecar/cron.json +3 -1
- package/fixtures/sidecar/dashboard_plugins.json +59 -0
- package/fixtures/sidecar/gateway.json +163 -0
- package/fixtures/sidecar/plugin-catalog.json +4 -0
- package/fixtures/sidecar/plugins.json +56 -1
- package/fixtures/sidecar/process.json +32 -0
- package/fixtures/sidecar/rpc.json +4 -0
- package/fixtures/sidecar/runtime.json +3 -3
- package/fixtures/sidecar/state_db.json +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ContextCategoryIdSchema: z.ZodEnum<{
|
|
3
|
+
system_prompt: "system_prompt";
|
|
4
|
+
tool_definitions: "tool_definitions";
|
|
5
|
+
rules: "rules";
|
|
6
|
+
skills: "skills";
|
|
7
|
+
mcp: "mcp";
|
|
8
|
+
subagent_definitions: "subagent_definitions";
|
|
9
|
+
memory: "memory";
|
|
10
|
+
conversation: "conversation";
|
|
11
|
+
}>;
|
|
12
|
+
/** A read of the existing owner only. Category estimates are independent of measured occupancy. */
|
|
13
|
+
export declare const ContextDetailSchema: z.ZodObject<{
|
|
14
|
+
available: z.ZodBoolean;
|
|
15
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
16
|
+
not_built: "not_built";
|
|
17
|
+
unsupported: "unsupported";
|
|
18
|
+
changed: "changed";
|
|
19
|
+
unavailable: "unavailable";
|
|
20
|
+
}>>;
|
|
21
|
+
used_tokens: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
window_tokens: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
estimated_total: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
source: z.ZodNullable<z.ZodEnum<{
|
|
25
|
+
local_estimate: "local_estimate";
|
|
26
|
+
provider_usage: "provider_usage";
|
|
27
|
+
provider_usage_plus_estimate: "provider_usage_plus_estimate";
|
|
28
|
+
}>>;
|
|
29
|
+
estimated: z.ZodNullable<z.ZodBoolean>;
|
|
30
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
31
|
+
id: z.ZodEnum<{
|
|
32
|
+
system_prompt: "system_prompt";
|
|
33
|
+
tool_definitions: "tool_definitions";
|
|
34
|
+
rules: "rules";
|
|
35
|
+
skills: "skills";
|
|
36
|
+
mcp: "mcp";
|
|
37
|
+
subagent_definitions: "subagent_definitions";
|
|
38
|
+
memory: "memory";
|
|
39
|
+
conversation: "conversation";
|
|
40
|
+
}>;
|
|
41
|
+
tokens: z.ZodNumber;
|
|
42
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
43
|
+
estimated: z.ZodLiteral<true>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
files: z.ZodArray<z.ZodObject<{
|
|
46
|
+
label: z.ZodEnum<{
|
|
47
|
+
"AGENTS.md": "AGENTS.md";
|
|
48
|
+
"SOUL.md": "SOUL.md";
|
|
49
|
+
".hermes.md": ".hermes.md";
|
|
50
|
+
"CLAUDE.md": "CLAUDE.md";
|
|
51
|
+
"GEMINI.md": "GEMINI.md";
|
|
52
|
+
"CONTEXT.md": "CONTEXT.md";
|
|
53
|
+
"Context file": "Context file";
|
|
54
|
+
}>;
|
|
55
|
+
characters: z.ZodNullable<z.ZodNumber>;
|
|
56
|
+
tokens: z.ZodNullable<z.ZodNumber>;
|
|
57
|
+
status: z.ZodEnum<{
|
|
58
|
+
unknown: "unknown";
|
|
59
|
+
loaded: "loaded";
|
|
60
|
+
truncated: "truncated";
|
|
61
|
+
flagged: "flagged";
|
|
62
|
+
shadowed: "shadowed";
|
|
63
|
+
blocked: "blocked";
|
|
64
|
+
empty: "empty";
|
|
65
|
+
unreadable: "unreadable";
|
|
66
|
+
suppressed: "suppressed";
|
|
67
|
+
}>;
|
|
68
|
+
loaded: z.ZodNullable<z.ZodBoolean>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
truncated: z.ZodBoolean;
|
|
71
|
+
current_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
|
|
72
|
+
last_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
export type ContextDetail = z.infer<typeof ContextDetailSchema>;
|
|
75
|
+
export declare const unavailableContextDetail: (reason?: NonNullable<ContextDetail["reason"]>) => ContextDetail;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
const Tokens = z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER).nullable();
|
|
3
|
+
export const ContextCategoryIdSchema = z.enum(['system_prompt', 'tool_definitions', 'rules', 'skills', 'mcp', 'subagent_definitions', 'memory', 'conversation']);
|
|
4
|
+
/** A read of the existing owner only. Category estimates are independent of measured occupancy. */
|
|
5
|
+
export const ContextDetailSchema = z.object({
|
|
6
|
+
available: z.boolean(), reason: z.enum(['not_built', 'unsupported', 'changed', 'unavailable']).nullable(),
|
|
7
|
+
used_tokens: Tokens, window_tokens: Tokens, estimated_total: Tokens,
|
|
8
|
+
source: z.enum(['local_estimate', 'provider_usage', 'provider_usage_plus_estimate']).nullable(), estimated: z.boolean().nullable(),
|
|
9
|
+
categories: z.array(z.object({ id: ContextCategoryIdSchema, tokens: Tokens.unwrap(), percent: z.number().min(0).max(100).nullable(), estimated: z.literal(true) })).max(8),
|
|
10
|
+
files: z.array(z.object({ label: z.enum(['AGENTS.md', 'SOUL.md', '.hermes.md', 'CLAUDE.md', 'GEMINI.md', 'CONTEXT.md', 'Context file']), characters: Tokens, tokens: Tokens,
|
|
11
|
+
status: z.enum(['loaded', 'truncated', 'flagged', 'shadowed', 'blocked', 'empty', 'unreadable', 'suppressed', 'unknown']), loaded: z.boolean().nullable() })).max(64),
|
|
12
|
+
truncated: z.boolean(), current_turn_output_tokens: Tokens, last_turn_output_tokens: Tokens,
|
|
13
|
+
});
|
|
14
|
+
export const unavailableContextDetail = (reason = 'unavailable') => ({
|
|
15
|
+
available: false, reason, used_tokens: null, window_tokens: null, estimated_total: null, source: null, estimated: null,
|
|
16
|
+
categories: [], files: [], truncated: false, current_turn_output_tokens: null, last_turn_output_tokens: null,
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=context-detail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-detail.js","sourceRoot":"","sources":["../src/context-detail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE,CAAA;AACrF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,kBAAkB,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,sBAAsB,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAA;AAChK,mGAAmG;AACnG,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzG,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM;IACnE,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,C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AE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI;IACtH,UAAU,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,0BAA0B,EAAE,IAAI,EAAE,uBAAuB,EAAE,IAAI;CAC7G,CAAC,CAAA"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const OWNER_EXPORT_MAX_BYTES: number;
|
|
3
|
+
export declare const OwnerExportFormatSchema: z.ZodEnum<{
|
|
4
|
+
json: "json";
|
|
5
|
+
markdown: "markdown";
|
|
6
|
+
html: "html";
|
|
7
|
+
}>;
|
|
8
|
+
export declare const OwnerExportSchema: z.ZodObject<{
|
|
9
|
+
format: z.ZodEnum<{
|
|
10
|
+
json: "json";
|
|
11
|
+
markdown: "markdown";
|
|
12
|
+
html: "html";
|
|
13
|
+
}>;
|
|
14
|
+
filename: z.ZodString;
|
|
15
|
+
content: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
2
17
|
export declare const GatewayAdmissionSchema: z.ZodObject<{
|
|
3
18
|
admission_id: z.ZodString;
|
|
4
19
|
sequence: z.ZodNumber;
|
|
@@ -11,6 +26,8 @@ export declare const GatewayAdmissionSchema: z.ZodObject<{
|
|
|
11
26
|
outcome: z.ZodNullable<z.ZodString>;
|
|
12
27
|
authority_epoch: z.ZodNumber;
|
|
13
28
|
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
29
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
14
31
|
text: z.ZodOptional<z.ZodString>;
|
|
15
32
|
input_id: z.ZodOptional<z.ZodString>;
|
|
16
33
|
}, z.core.$strip>;
|
|
@@ -38,19 +55,40 @@ export declare const GatewaySnapshotSchema: z.ZodObject<{
|
|
|
38
55
|
outcome: z.ZodNullable<z.ZodString>;
|
|
39
56
|
authority_epoch: z.ZodNumber;
|
|
40
57
|
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
58
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
59
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
41
60
|
text: z.ZodOptional<z.ZodString>;
|
|
42
61
|
input_id: z.ZodOptional<z.ZodString>;
|
|
43
62
|
}, z.core.$strip>>;
|
|
44
63
|
prompts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
45
64
|
info: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
46
65
|
}, z.core.$strip>;
|
|
66
|
+
/** Owner mutation receipts are distinct from prompt admissions. Applied mutations have no status. */
|
|
67
|
+
export declare const GatewayMutationReceiptSchema: z.ZodObject<{
|
|
68
|
+
operation: z.ZodString;
|
|
69
|
+
status: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$loose>;
|
|
71
|
+
/** The server's model decision, shared by mutation responses and owner-session views. */
|
|
72
|
+
export declare const ModelChangeSchema: z.ZodObject<{
|
|
73
|
+
state: z.ZodEnum<{
|
|
74
|
+
applied: "applied";
|
|
75
|
+
deferred: "deferred";
|
|
76
|
+
confirmation_required: "confirmation_required";
|
|
77
|
+
refused: "refused";
|
|
78
|
+
}>;
|
|
79
|
+
message: z.ZodOptional<z.ZodString>;
|
|
80
|
+
confirm: z.ZodOptional<z.ZodString>;
|
|
81
|
+
model: z.ZodOptional<z.ZodString>;
|
|
82
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
export type ModelChange = z.infer<typeof ModelChangeSchema>;
|
|
47
85
|
export declare const GatewaySessionResultSchema: z.ZodObject<{
|
|
48
86
|
state: z.ZodEnum<{
|
|
87
|
+
unavailable: "unavailable";
|
|
88
|
+
refused: "refused";
|
|
49
89
|
attached: "attached";
|
|
50
90
|
stopped: "stopped";
|
|
51
|
-
unavailable: "unavailable";
|
|
52
91
|
incompatible: "incompatible";
|
|
53
|
-
refused: "refused";
|
|
54
92
|
}>;
|
|
55
93
|
reason: z.ZodNullable<z.ZodString>;
|
|
56
94
|
replay_gap: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -78,13 +116,15 @@ export declare const GatewaySessionResultSchema: z.ZodObject<{
|
|
|
78
116
|
outcome: z.ZodNullable<z.ZodString>;
|
|
79
117
|
authority_epoch: z.ZodNumber;
|
|
80
118
|
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
119
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
120
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
81
121
|
text: z.ZodOptional<z.ZodString>;
|
|
82
122
|
input_id: z.ZodOptional<z.ZodString>;
|
|
83
123
|
}, z.core.$strip>>;
|
|
84
124
|
prompts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
85
125
|
info: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
86
126
|
}, z.core.$strip>>;
|
|
87
|
-
receipt: z.ZodNullable<z.ZodObject<{
|
|
127
|
+
receipt: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
88
128
|
admission_id: z.ZodString;
|
|
89
129
|
sequence: z.ZodNumber;
|
|
90
130
|
status: z.ZodEnum<{
|
|
@@ -96,27 +136,150 @@ export declare const GatewaySessionResultSchema: z.ZodObject<{
|
|
|
96
136
|
outcome: z.ZodNullable<z.ZodString>;
|
|
97
137
|
authority_epoch: z.ZodNumber;
|
|
98
138
|
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
139
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
140
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
99
141
|
text: z.ZodOptional<z.ZodString>;
|
|
100
142
|
input_id: z.ZodOptional<z.ZodString>;
|
|
143
|
+
voice_stopped: z.ZodOptional<z.ZodNever>;
|
|
144
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
145
|
+
operation: z.ZodString;
|
|
146
|
+
status: z.ZodOptional<z.ZodString>;
|
|
147
|
+
voice_stopped: z.ZodOptional<z.ZodNever>;
|
|
148
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
149
|
+
voice_stopped: z.ZodLiteral<true>;
|
|
150
|
+
}, z.core.$strict>]>>;
|
|
151
|
+
model_change: z.ZodOptional<z.ZodObject<{
|
|
152
|
+
state: z.ZodEnum<{
|
|
153
|
+
applied: "applied";
|
|
154
|
+
deferred: "deferred";
|
|
155
|
+
confirmation_required: "confirmation_required";
|
|
156
|
+
refused: "refused";
|
|
157
|
+
}>;
|
|
158
|
+
message: z.ZodOptional<z.ZodString>;
|
|
159
|
+
confirm: z.ZodOptional<z.ZodString>;
|
|
160
|
+
model: z.ZodOptional<z.ZodString>;
|
|
161
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
context_detail: z.ZodOptional<z.ZodObject<{
|
|
164
|
+
available: z.ZodBoolean;
|
|
165
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
166
|
+
not_built: "not_built";
|
|
167
|
+
unsupported: "unsupported";
|
|
168
|
+
changed: "changed";
|
|
169
|
+
unavailable: "unavailable";
|
|
170
|
+
}>>;
|
|
171
|
+
used_tokens: z.ZodNullable<z.ZodNumber>;
|
|
172
|
+
window_tokens: z.ZodNullable<z.ZodNumber>;
|
|
173
|
+
estimated_total: z.ZodNullable<z.ZodNumber>;
|
|
174
|
+
source: z.ZodNullable<z.ZodEnum<{
|
|
175
|
+
local_estimate: "local_estimate";
|
|
176
|
+
provider_usage: "provider_usage";
|
|
177
|
+
provider_usage_plus_estimate: "provider_usage_plus_estimate";
|
|
178
|
+
}>>;
|
|
179
|
+
estimated: z.ZodNullable<z.ZodBoolean>;
|
|
180
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
181
|
+
id: z.ZodEnum<{
|
|
182
|
+
system_prompt: "system_prompt";
|
|
183
|
+
tool_definitions: "tool_definitions";
|
|
184
|
+
rules: "rules";
|
|
185
|
+
skills: "skills";
|
|
186
|
+
mcp: "mcp";
|
|
187
|
+
subagent_definitions: "subagent_definitions";
|
|
188
|
+
memory: "memory";
|
|
189
|
+
conversation: "conversation";
|
|
190
|
+
}>;
|
|
191
|
+
tokens: z.ZodNumber;
|
|
192
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
193
|
+
estimated: z.ZodLiteral<true>;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
files: z.ZodArray<z.ZodObject<{
|
|
196
|
+
label: z.ZodEnum<{
|
|
197
|
+
"AGENTS.md": "AGENTS.md";
|
|
198
|
+
"SOUL.md": "SOUL.md";
|
|
199
|
+
".hermes.md": ".hermes.md";
|
|
200
|
+
"CLAUDE.md": "CLAUDE.md";
|
|
201
|
+
"GEMINI.md": "GEMINI.md";
|
|
202
|
+
"CONTEXT.md": "CONTEXT.md";
|
|
203
|
+
"Context file": "Context file";
|
|
204
|
+
}>;
|
|
205
|
+
characters: z.ZodNullable<z.ZodNumber>;
|
|
206
|
+
tokens: z.ZodNullable<z.ZodNumber>;
|
|
207
|
+
status: z.ZodEnum<{
|
|
208
|
+
unknown: "unknown";
|
|
209
|
+
loaded: "loaded";
|
|
210
|
+
truncated: "truncated";
|
|
211
|
+
flagged: "flagged";
|
|
212
|
+
shadowed: "shadowed";
|
|
213
|
+
blocked: "blocked";
|
|
214
|
+
empty: "empty";
|
|
215
|
+
unreadable: "unreadable";
|
|
216
|
+
suppressed: "suppressed";
|
|
217
|
+
}>;
|
|
218
|
+
loaded: z.ZodNullable<z.ZodBoolean>;
|
|
219
|
+
}, z.core.$strip>>;
|
|
220
|
+
truncated: z.ZodBoolean;
|
|
221
|
+
current_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
|
|
222
|
+
last_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
|
|
223
|
+
}, z.core.$strip>>;
|
|
224
|
+
export: z.ZodOptional<z.ZodObject<{
|
|
225
|
+
format: z.ZodEnum<{
|
|
226
|
+
json: "json";
|
|
227
|
+
markdown: "markdown";
|
|
228
|
+
html: "html";
|
|
229
|
+
}>;
|
|
230
|
+
filename: z.ZodString;
|
|
231
|
+
content: z.ZodString;
|
|
232
|
+
}, z.core.$strip>>;
|
|
233
|
+
restarting: z.ZodOptional<z.ZodBoolean>;
|
|
234
|
+
lock: z.ZodOptional<z.ZodObject<{
|
|
235
|
+
status: z.ZodEnum<{
|
|
236
|
+
ok: "ok";
|
|
237
|
+
expired: "expired";
|
|
238
|
+
}>;
|
|
239
|
+
remaining: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
240
|
+
}, z.core.$strip>>;
|
|
241
|
+
}, z.core.$strip>;
|
|
242
|
+
/** TAL-1271: the owner's multi-question clarify, asked once of the viewers attached when it parks (watch stream `clarify_batch`). */
|
|
243
|
+
export declare const GatewayClarifyBatchSchema: z.ZodObject<{
|
|
244
|
+
request_id: z.ZodString;
|
|
245
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
246
|
+
qid: z.ZodString;
|
|
247
|
+
question: z.ZodString;
|
|
248
|
+
choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
249
|
+
multi_select: z.ZodOptional<z.ZodBoolean>;
|
|
101
250
|
}, z.core.$strip>>;
|
|
102
251
|
}, z.core.$strip>;
|
|
252
|
+
export type GatewayClarifyBatch = z.infer<typeof GatewayClarifyBatchSchema>;
|
|
103
253
|
export declare const GatewaySessionParamsSchema: z.ZodObject<{
|
|
104
254
|
profile_home: z.ZodString;
|
|
105
255
|
session_id: z.ZodString;
|
|
106
256
|
action: z.ZodEnum<{
|
|
107
257
|
snapshot: "snapshot";
|
|
108
258
|
receipt: "receipt";
|
|
259
|
+
context_detail: "context_detail";
|
|
260
|
+
export: "export";
|
|
109
261
|
watch: "watch";
|
|
110
262
|
submit: "submit";
|
|
111
263
|
cancel: "cancel";
|
|
264
|
+
steer_queued: "steer_queued";
|
|
265
|
+
replace_queued: "replace_queued";
|
|
112
266
|
interrupt: "interrupt";
|
|
113
267
|
approval: "approval";
|
|
114
268
|
clarify: "clarify";
|
|
269
|
+
clarify_lock: "clarify_lock";
|
|
115
270
|
discard: "discard";
|
|
116
271
|
mutate: "mutate";
|
|
117
272
|
}>;
|
|
273
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
274
|
+
json: "json";
|
|
275
|
+
markdown: "markdown";
|
|
276
|
+
html: "html";
|
|
277
|
+
}>>;
|
|
278
|
+
redact: z.ZodOptional<z.ZodBoolean>;
|
|
118
279
|
request_id: z.ZodOptional<z.ZodString>;
|
|
119
280
|
text: z.ZodOptional<z.ZodString>;
|
|
281
|
+
submission_id: z.ZodOptional<z.ZodString>;
|
|
282
|
+
show_reasoning: z.ZodOptional<z.ZodBoolean>;
|
|
120
283
|
admission_id: z.ZodOptional<z.ZodString>;
|
|
121
284
|
execution_generation: z.ZodOptional<z.ZodNumber>;
|
|
122
285
|
prompt_id: z.ZodOptional<z.ZodString>;
|
|
@@ -126,8 +289,11 @@ export declare const GatewaySessionParamsSchema: z.ZodObject<{
|
|
|
126
289
|
always: "always";
|
|
127
290
|
deny: "deny";
|
|
128
291
|
}>>;
|
|
292
|
+
question_id: z.ZodOptional<z.ZodString>;
|
|
293
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
129
294
|
expected_revision: z.ZodOptional<z.ZodNumber>;
|
|
130
295
|
operation: z.ZodOptional<z.ZodEnum<{
|
|
296
|
+
model: "model";
|
|
131
297
|
rename: "rename";
|
|
132
298
|
archive: "archive";
|
|
133
299
|
sidebar: "sidebar";
|
|
@@ -135,16 +301,77 @@ export declare const GatewaySessionParamsSchema: z.ZodObject<{
|
|
|
135
301
|
delete: "delete";
|
|
136
302
|
rewind: "rewind";
|
|
137
303
|
reset: "reset";
|
|
138
|
-
model: "model";
|
|
139
304
|
workspace: "workspace";
|
|
140
305
|
compress: "compress";
|
|
141
306
|
}>>;
|
|
142
307
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
143
308
|
}, z.core.$strip>;
|
|
309
|
+
/**
|
|
310
|
+
* TAL-1040: how a fresh chat's Agent runs, frozen at creation. `ignore_config` runs explicit settings without the profile's
|
|
311
|
+
* config.yaml/.env; `safe` also leaves out plugins, MCP, hooks, rules, soul, skills and memory. Troubleshooting isolation,
|
|
312
|
+
* not a security sandbox.
|
|
313
|
+
*/
|
|
314
|
+
export declare const ExecutionModeSchema: z.ZodEnum<{
|
|
315
|
+
normal: "normal";
|
|
316
|
+
ignore_config: "ignore_config";
|
|
317
|
+
safe: "safe";
|
|
318
|
+
}>;
|
|
319
|
+
export type ExecutionMode = z.infer<typeof ExecutionModeSchema>;
|
|
320
|
+
/** `probe` asks whether the owner can create diagnostic sessions and creates nothing. Never carries a credential. */
|
|
321
|
+
export declare const GatewayCreateParamsSchema: z.ZodObject<{
|
|
322
|
+
profile_home: z.ZodString;
|
|
323
|
+
probe: z.ZodOptional<z.ZodBoolean>;
|
|
324
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
325
|
+
execution_mode: z.ZodOptional<z.ZodEnum<{
|
|
326
|
+
ignore_config: "ignore_config";
|
|
327
|
+
safe: "safe";
|
|
328
|
+
}>>;
|
|
329
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
330
|
+
model: z.ZodOptional<z.ZodString>;
|
|
331
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
332
|
+
base_url: z.ZodOptional<z.ZodString>;
|
|
333
|
+
toolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
334
|
+
}, z.core.$strip>;
|
|
335
|
+
export type GatewayCreateParams = z.infer<typeof GatewayCreateParamsSchema>;
|
|
336
|
+
/** Why the server cannot start a fresh chat in a mode; clients word each code. */
|
|
337
|
+
export declare const ExecutionModeUnavailableSchema: z.ZodEnum<{
|
|
338
|
+
agent_unsupported: "agent_unsupported";
|
|
339
|
+
served_profile: "served_profile";
|
|
340
|
+
gateway_stopped: "gateway_stopped";
|
|
341
|
+
gateway_unavailable: "gateway_unavailable";
|
|
342
|
+
}>;
|
|
343
|
+
export declare const ExecutionModesSchema: z.ZodObject<{
|
|
344
|
+
modes: z.ZodArray<z.ZodObject<{
|
|
345
|
+
mode: z.ZodEnum<{
|
|
346
|
+
normal: "normal";
|
|
347
|
+
ignore_config: "ignore_config";
|
|
348
|
+
safe: "safe";
|
|
349
|
+
}>;
|
|
350
|
+
available: z.ZodBoolean;
|
|
351
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
352
|
+
agent_unsupported: "agent_unsupported";
|
|
353
|
+
served_profile: "served_profile";
|
|
354
|
+
gateway_stopped: "gateway_stopped";
|
|
355
|
+
gateway_unavailable: "gateway_unavailable";
|
|
356
|
+
}>>;
|
|
357
|
+
can_attach: z.ZodBoolean;
|
|
358
|
+
}, z.core.$strip>>;
|
|
359
|
+
}, z.core.$strip>;
|
|
360
|
+
export type ExecutionModes = z.infer<typeof ExecutionModesSchema>;
|
|
144
361
|
export declare const OwnerActionRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
145
362
|
session_id: z.ZodString;
|
|
146
363
|
action: z.ZodLiteral<"cancel">;
|
|
147
364
|
admission_id: z.ZodString;
|
|
365
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
366
|
+
session_id: z.ZodString;
|
|
367
|
+
action: z.ZodLiteral<"steer_queued">;
|
|
368
|
+
admission_id: z.ZodString;
|
|
369
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
370
|
+
session_id: z.ZodString;
|
|
371
|
+
action: z.ZodLiteral<"replace_queued">;
|
|
372
|
+
admission_id: z.ZodString;
|
|
373
|
+
submission_id: z.ZodString;
|
|
374
|
+
text: z.ZodString;
|
|
148
375
|
}, z.core.$strip>, z.ZodObject<{
|
|
149
376
|
session_id: z.ZodString;
|
|
150
377
|
admission_id: z.ZodString;
|
|
@@ -162,10 +389,10 @@ export declare const OwnerActionRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
162
389
|
expected_revision: z.ZodNumber;
|
|
163
390
|
execution_generation: z.ZodNumber;
|
|
164
391
|
operation: z.ZodEnum<{
|
|
392
|
+
model: "model";
|
|
165
393
|
rename: "rename";
|
|
166
394
|
rewind: "rewind";
|
|
167
395
|
reset: "reset";
|
|
168
|
-
model: "model";
|
|
169
396
|
workspace: "workspace";
|
|
170
397
|
compress: "compress";
|
|
171
398
|
}>;
|
|
@@ -175,18 +402,31 @@ export type OwnerActionRequest = z.infer<typeof OwnerActionRequestSchema>;
|
|
|
175
402
|
/** The server decides every action. Native paths, principal bindings and transport tickets stay private. */
|
|
176
403
|
export declare const OwnerAttachmentSchema: z.ZodObject<{
|
|
177
404
|
state: z.ZodEnum<{
|
|
405
|
+
unavailable: "unavailable";
|
|
406
|
+
refused: "refused";
|
|
178
407
|
attached: "attached";
|
|
179
408
|
stopped: "stopped";
|
|
180
|
-
unavailable: "unavailable";
|
|
181
409
|
incompatible: "incompatible";
|
|
182
|
-
refused: "refused";
|
|
183
410
|
}>;
|
|
184
411
|
reason: z.ZodNullable<z.ZodString>;
|
|
185
412
|
can_submit: z.ZodBoolean;
|
|
186
413
|
can_interrupt: z.ZodBoolean;
|
|
187
414
|
can_attach: z.ZodBoolean;
|
|
415
|
+
restarting: z.ZodBoolean;
|
|
188
416
|
revision: z.ZodNullable<z.ZodNumber>;
|
|
189
417
|
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
418
|
+
model_change: z.ZodOptional<z.ZodObject<{
|
|
419
|
+
state: z.ZodEnum<{
|
|
420
|
+
applied: "applied";
|
|
421
|
+
deferred: "deferred";
|
|
422
|
+
confirmation_required: "confirmation_required";
|
|
423
|
+
refused: "refused";
|
|
424
|
+
}>;
|
|
425
|
+
message: z.ZodOptional<z.ZodString>;
|
|
426
|
+
confirm: z.ZodOptional<z.ZodString>;
|
|
427
|
+
model: z.ZodOptional<z.ZodString>;
|
|
428
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
429
|
+
}, z.core.$strip>>;
|
|
190
430
|
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
191
431
|
admission_id: z.ZodString;
|
|
192
432
|
sequence: z.ZodNumber;
|
|
@@ -199,6 +439,8 @@ export declare const OwnerAttachmentSchema: z.ZodObject<{
|
|
|
199
439
|
outcome: z.ZodNullable<z.ZodString>;
|
|
200
440
|
authority_epoch: z.ZodNumber;
|
|
201
441
|
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
442
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
443
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
202
444
|
text: z.ZodOptional<z.ZodString>;
|
|
203
445
|
input_id: z.ZodOptional<z.ZodString>;
|
|
204
446
|
}, z.core.$strip>>>;
|
|
@@ -214,12 +456,16 @@ export declare const OwnerAttachmentSchema: z.ZodObject<{
|
|
|
214
456
|
outcome: z.ZodNullable<z.ZodString>;
|
|
215
457
|
authority_epoch: z.ZodNumber;
|
|
216
458
|
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
459
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
460
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
217
461
|
text: z.ZodOptional<z.ZodString>;
|
|
218
462
|
input_id: z.ZodOptional<z.ZodString>;
|
|
219
463
|
actions: z.ZodArray<z.ZodEnum<{
|
|
220
464
|
cancel: "cancel";
|
|
221
465
|
discard: "discard";
|
|
222
466
|
retry: "retry";
|
|
467
|
+
steer: "steer";
|
|
468
|
+
edit: "edit";
|
|
223
469
|
}>>;
|
|
224
470
|
}, z.core.$strip>>;
|
|
225
471
|
}, z.core.$strip>;
|
package/dist/gateway-session.js
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
import { ContextDetailSchema } from './context-detail.js';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
const ObjectSchema = z.record(z.string(), z.unknown());
|
|
4
|
+
export const OWNER_EXPORT_MAX_BYTES = 4 * 1024 * 1024;
|
|
5
|
+
export const OwnerExportFormatSchema = z.enum(['json', 'markdown', 'html']);
|
|
6
|
+
export const OwnerExportSchema = z.object({
|
|
7
|
+
format: OwnerExportFormatSchema, filename: z.string().min(1).max(255), content: z.string().max(OWNER_EXPORT_MAX_BYTES),
|
|
8
|
+
});
|
|
3
9
|
export const GatewayAdmissionSchema = z.object({
|
|
4
10
|
admission_id: z.string(), sequence: z.number().int(), status: z.enum(['queued', 'started', 'unknown', 'terminal']),
|
|
5
11
|
outcome: z.string().nullable(), authority_epoch: z.number().int(), execution_generation: z.number().int().nullable(),
|
|
12
|
+
controls: z.array(z.string()).optional(), steering: z.boolean().optional(),
|
|
6
13
|
text: z.string().optional(), input_id: z.string().optional(),
|
|
7
14
|
});
|
|
8
15
|
export const GatewaySnapshotSchema = z.object({
|
|
@@ -11,24 +18,75 @@ export const GatewaySnapshotSchema = z.object({
|
|
|
11
18
|
subscription_id: z.string(), revision: z.number().int(), execution_generation: z.number().int(),
|
|
12
19
|
pending: z.array(GatewayAdmissionSchema), prompts: z.array(ObjectSchema), info: ObjectSchema,
|
|
13
20
|
});
|
|
21
|
+
/** Owner mutation receipts are distinct from prompt admissions. Applied mutations have no status. */
|
|
22
|
+
export const GatewayMutationReceiptSchema = z.looseObject({
|
|
23
|
+
operation: z.string(), status: z.string().optional(),
|
|
24
|
+
});
|
|
25
|
+
/** The server's model decision, shared by mutation responses and owner-session views. */
|
|
26
|
+
export const ModelChangeSchema = z.object({
|
|
27
|
+
state: z.enum(['applied', 'deferred', 'confirmation_required', 'refused']),
|
|
28
|
+
message: z.string().optional(), confirm: z.string().optional(),
|
|
29
|
+
model: z.string().optional(), provider: z.string().nullable().optional(),
|
|
30
|
+
});
|
|
14
31
|
export const GatewaySessionResultSchema = z.object({
|
|
15
32
|
state: z.enum(['attached', 'stopped', 'unavailable', 'incompatible', 'refused']), reason: z.string().nullable(),
|
|
16
|
-
replay_gap: z.boolean().optional(), snapshot: GatewaySnapshotSchema.nullable(), receipt:
|
|
33
|
+
replay_gap: z.boolean().optional(), snapshot: GatewaySnapshotSchema.nullable(), receipt: z.union([
|
|
34
|
+
GatewayAdmissionSchema.extend({ voice_stopped: z.never().optional() }),
|
|
35
|
+
GatewayMutationReceiptSchema.extend({ voice_stopped: z.never().optional() }),
|
|
36
|
+
z.strictObject({ voice_stopped: z.literal(true) }),
|
|
37
|
+
]).nullable(),
|
|
38
|
+
model_change: ModelChangeSchema.optional(),
|
|
39
|
+
context_detail: ContextDetailSchema.optional(),
|
|
40
|
+
export: OwnerExportSchema.optional(),
|
|
41
|
+
restarting: z.boolean().optional().describe("The owner is in a restart's after-turn wait: parked prompts stay answerable, new work is refused."),
|
|
42
|
+
lock: z.object({ status: z.enum(['ok', 'expired']), remaining: z.array(z.string()).optional() }).optional()
|
|
43
|
+
.describe('`clarify_lock`: the batch question ids the owner still waits on; `expired` when the batch already ended.'),
|
|
44
|
+
});
|
|
45
|
+
/** TAL-1271: the owner's multi-question clarify, asked once of the viewers attached when it parks (watch stream `clarify_batch`). */
|
|
46
|
+
export const GatewayClarifyBatchSchema = z.object({
|
|
47
|
+
request_id: z.string().min(1),
|
|
48
|
+
questions: z.array(z.object({ qid: z.string().min(1), question: z.string(), choices: z.array(z.string()).optional(), multi_select: z.boolean().optional() })).min(1),
|
|
17
49
|
});
|
|
18
50
|
export const GatewaySessionParamsSchema = z.object({
|
|
19
51
|
profile_home: z.string().min(1), session_id: z.string().min(1),
|
|
20
|
-
action: z.enum(['snapshot', 'watch', 'submit', 'receipt', 'cancel', 'interrupt', 'approval', 'clarify', 'discard', 'mutate']),
|
|
52
|
+
action: z.enum(['snapshot', 'watch', 'context_detail', 'submit', 'receipt', 'cancel', 'steer_queued', 'replace_queued', 'interrupt', 'approval', 'clarify', 'clarify_lock', 'discard', 'mutate', 'export']),
|
|
53
|
+
format: OwnerExportFormatSchema.optional(), redact: z.boolean().optional(),
|
|
21
54
|
request_id: z.string().min(1).max(128).optional(), text: z.string().optional(),
|
|
55
|
+
submission_id: z.string().min(1).max(128).optional(),
|
|
56
|
+
show_reasoning: z.boolean().optional().describe('The profile display preference negotiated for an owner watch.'),
|
|
22
57
|
admission_id: z.string().optional(), execution_generation: z.number().int().nonnegative().optional(),
|
|
23
58
|
prompt_id: z.string().optional(), choice: z.enum(['once', 'session', 'always', 'deny']).optional(),
|
|
59
|
+
question_id: z.string().min(1).optional(), answer: z.string().optional(),
|
|
24
60
|
expected_revision: z.number().int().nonnegative().optional(),
|
|
25
61
|
operation: z.enum(['rename', 'archive', 'sidebar', 'branch', 'delete', 'rewind', 'reset', 'model', 'workspace', 'compress']).optional(),
|
|
26
62
|
payload: ObjectSchema.optional(),
|
|
27
63
|
});
|
|
64
|
+
/**
|
|
65
|
+
* TAL-1040: how a fresh chat's Agent runs, frozen at creation. `ignore_config` runs explicit settings without the profile's
|
|
66
|
+
* config.yaml/.env; `safe` also leaves out plugins, MCP, hooks, rules, soul, skills and memory. Troubleshooting isolation,
|
|
67
|
+
* not a security sandbox.
|
|
68
|
+
*/
|
|
69
|
+
export const ExecutionModeSchema = z.enum(['normal', 'ignore_config', 'safe']);
|
|
70
|
+
/** `probe` asks whether the owner can create diagnostic sessions and creates nothing. Never carries a credential. */
|
|
71
|
+
export const GatewayCreateParamsSchema = z.object({
|
|
72
|
+
profile_home: z.string().min(1), probe: z.boolean().optional(),
|
|
73
|
+
request_id: z.string().min(1).max(128).optional(), execution_mode: ExecutionModeSchema.exclude(['normal']).optional(),
|
|
74
|
+
cwd: z.string().min(1).optional(), model: z.string().min(1).optional(), provider: z.string().min(1).optional(), base_url: z.string().min(1).optional(),
|
|
75
|
+
toolsets: z.array(z.string().min(1)).optional(),
|
|
76
|
+
});
|
|
77
|
+
/** Why the server cannot start a fresh chat in a mode; clients word each code. */
|
|
78
|
+
export const ExecutionModeUnavailableSchema = z.enum(['agent_unsupported', 'served_profile', 'gateway_stopped', 'gateway_unavailable']);
|
|
79
|
+
export const ExecutionModesSchema = z.object({
|
|
80
|
+
modes: z.array(z.object({ mode: ExecutionModeSchema, available: z.boolean(), reason: ExecutionModeUnavailableSchema.nullable(),
|
|
81
|
+
can_attach: z.boolean().describe('A fresh chat in this mode accepts file attachments.') })),
|
|
82
|
+
});
|
|
28
83
|
const OwnerActionBase = z.object({ session_id: z.string().min(1) });
|
|
29
84
|
const RecoveryAction = OwnerActionBase.extend({ admission_id: z.string().min(1), execution_generation: z.number().int().positive() });
|
|
30
85
|
export const OwnerActionRequestSchema = z.discriminatedUnion('action', [
|
|
31
86
|
OwnerActionBase.extend({ action: z.literal('cancel'), admission_id: z.string().min(1) }),
|
|
87
|
+
OwnerActionBase.extend({ action: z.literal('steer_queued'), admission_id: z.string().min(1) }),
|
|
88
|
+
OwnerActionBase.extend({ action: z.literal('replace_queued'), admission_id: z.string().min(1),
|
|
89
|
+
submission_id: z.string().min(1).max(128), text: z.string().trim().min(1) }),
|
|
32
90
|
RecoveryAction.extend({ action: z.literal('discard') }),
|
|
33
91
|
RecoveryAction.extend({ action: z.literal('retry') }),
|
|
34
92
|
OwnerActionBase.extend({ action: z.literal('mutate'), request_id: GatewaySessionParamsSchema.shape.request_id.unwrap(),
|
|
@@ -39,8 +97,10 @@ export const OwnerActionRequestSchema = z.discriminatedUnion('action', [
|
|
|
39
97
|
export const OwnerAttachmentSchema = z.object({
|
|
40
98
|
state: GatewaySessionResultSchema.shape.state, reason: z.string().nullable(),
|
|
41
99
|
can_submit: z.boolean(), can_interrupt: z.boolean(), can_attach: z.boolean(),
|
|
100
|
+
restarting: z.boolean().describe('The owning gateway is restarting once this turn ends; sending waits until it is back.'),
|
|
42
101
|
revision: z.number().int().nullable(), execution_generation: z.number().int().nullable(),
|
|
102
|
+
model_change: ModelChangeSchema.optional(),
|
|
43
103
|
active_admission: GatewayAdmissionSchema.nullable().optional(),
|
|
44
|
-
admissions: z.array(GatewayAdmissionSchema.extend({ actions: z.array(z.enum(['cancel', 'retry', 'discard'])) })),
|
|
104
|
+
admissions: z.array(GatewayAdmissionSchema.extend({ actions: z.array(z.enum(['cancel', 'steer', 'edit', 'retry', 'discard'])) })),
|
|
45
105
|
});
|
|
46
106
|
//# sourceMappingURL=gateway-session.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateway-session.js","sourceRoot":"","sources":["../src/gateway-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAA;AACtD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;IAClH,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACpH,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7D,CAAC,CAAA;AACF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,i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CAAC;CAC/G,CAAC,CAAA;AAEF,4GAA4G;AAC5G,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,0BAA0B,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5E,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IAC5E,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,uFAAuF,CAAC;IACzH,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACxF,YAAY,EAAE,iBAAiB,CAAC,QAAQ,EAAE;IAC1C,gBAAgB,EAAE,sBAAsB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC9D,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;CAClI,CAAC,CAAA"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -16,4 +16,5 @@ export * from './transcribe-stream.js';
|
|
|
16
16
|
export * from './theme.js';
|
|
17
17
|
export { routeContract } from './router.js';
|
|
18
18
|
export { generateOpenApiDocument, OPENAPI_INFO } from './openapi.js';
|
|
19
|
+
export * from './context-detail.js';
|
|
19
20
|
//# sourceMappingURL=index.js.map
|