@maudecode/talaria-web-contracts 1.18.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 +475 -0
- package/dist/gateway-session.js +106 -0
- package/dist/gateway-session.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/openapi.js +4 -0
- package/dist/openapi.js.map +1 -1
- package/dist/router.d.ts +5503 -251
- package/dist/routes/automation.d.ts +100 -18
- package/dist/routes/automation.js +7 -4
- package/dist/routes/automation.js.map +1 -1
- package/dist/routes/chat.d.ts +1605 -47
- package/dist/routes/chat.js +7 -2
- package/dist/routes/chat.js.map +1 -1
- package/dist/routes/core.d.ts +15 -4
- package/dist/routes/core.js +2 -2
- package/dist/routes/core.js.map +1 -1
- 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 +10 -6
- package/dist/routes/raw.js.map +1 -1
- package/dist/routes/sessions.d.ts +3189 -181
- package/dist/routes/sessions.js +24 -7
- package/dist/routes/sessions.js.map +1 -1
- package/dist/routes/settings.d.ts +445 -11
- package/dist/routes/settings.js +5 -4
- package/dist/routes/settings.js.map +1 -1
- package/dist/routes/tools.d.ts +945 -34
- package/dist/routes/tools.js +75 -8
- package/dist/routes/tools.js.map +1 -1
- package/dist/routes/workspaces.d.ts +4 -4
- package/dist/run-status.d.ts +39 -0
- package/dist/run-status.js +13 -0
- package/dist/run-status.js.map +1 -0
- package/dist/sidecar/methods.d.ts +1906 -52
- package/dist/sidecar/methods.js +9 -2
- package/dist/sidecar/methods.js.map +1 -1
- package/dist/sidecar/namespaces.d.ts +2421 -54
- package/dist/sidecar/namespaces.js +390 -36
- 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 +74 -0
- package/dist/sidecar/runtime.js +29 -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/speed.d.ts +14 -0
- package/dist/speed.js +6 -0
- package/dist/speed.js.map +1 -0
- package/dist/sse.d.ts +868 -5
- package/dist/sse.js +30 -7
- package/dist/sse.js.map +1 -1
- package/dist/transcribe-stream.d.ts +34 -0
- package/dist/transcribe-stream.js +23 -0
- package/dist/transcribe-stream.js.map +1 -0
- package/dist/views.d.ts +2627 -176
- package/dist/views.js +321 -52
- package/dist/views.js.map +1 -1
- package/fixtures/sidecar/aux.json +142 -0
- package/fixtures/sidecar/chat.json +28 -0
- package/fixtures/sidecar/checkpoints.json +12 -7
- package/fixtures/sidecar/commands.json +216 -108
- package/fixtures/sidecar/config.json +15 -0
- package/fixtures/sidecar/connectors.json +218 -0
- package/fixtures/sidecar/context-detail.json +77 -0
- package/fixtures/sidecar/cron.json +1004 -32
- package/fixtures/sidecar/dashboard_plugins.json +59 -0
- package/fixtures/sidecar/gateway.json +202 -0
- package/fixtures/sidecar/goals.json +5 -3
- package/fixtures/sidecar/kanban.json +139 -49
- package/fixtures/sidecar/memory.json +50 -0
- package/fixtures/sidecar/models.json +122 -0
- package/fixtures/sidecar/personalities.json +92 -0
- package/fixtures/sidecar/plugin-catalog.json +4 -0
- package/fixtures/sidecar/plugins.json +171 -27
- package/fixtures/sidecar/process.json +63 -0
- package/fixtures/sidecar/profiles.json +2 -0
- package/fixtures/sidecar/providers.json +14 -1
- package/fixtures/sidecar/rpc.json +39 -1
- package/fixtures/sidecar/runtime.json +130 -14
- package/fixtures/sidecar/skills.json +256 -13
- package/fixtures/sidecar/state_db.json +29 -2
- package/fixtures/sidecar/stt.json +62 -1
- package/fixtures/sidecar/text.json +20 -2
- package/fixtures/sidecar/toolsets.json +468 -0
- package/fixtures/sidecar/usage.json +22 -2
- package/fixtures/sidecar/write_approval.json +98 -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"],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|
|
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>;
|
|
17
|
+
export declare const GatewayAdmissionSchema: z.ZodObject<{
|
|
18
|
+
admission_id: z.ZodString;
|
|
19
|
+
sequence: z.ZodNumber;
|
|
20
|
+
status: z.ZodEnum<{
|
|
21
|
+
unknown: "unknown";
|
|
22
|
+
queued: "queued";
|
|
23
|
+
started: "started";
|
|
24
|
+
terminal: "terminal";
|
|
25
|
+
}>;
|
|
26
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
27
|
+
authority_epoch: z.ZodNumber;
|
|
28
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
29
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
text: z.ZodOptional<z.ZodString>;
|
|
32
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export declare const GatewaySnapshotSchema: z.ZodObject<{
|
|
35
|
+
session_id: z.ZodString;
|
|
36
|
+
stored_session_id: z.ZodString;
|
|
37
|
+
messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
38
|
+
message_count: z.ZodNumber;
|
|
39
|
+
running: z.ZodBoolean;
|
|
40
|
+
authority_epoch: z.ZodNumber;
|
|
41
|
+
replay_epoch: z.ZodString;
|
|
42
|
+
last_sequence: z.ZodNumber;
|
|
43
|
+
subscription_id: z.ZodString;
|
|
44
|
+
revision: z.ZodNumber;
|
|
45
|
+
execution_generation: z.ZodNumber;
|
|
46
|
+
pending: z.ZodArray<z.ZodObject<{
|
|
47
|
+
admission_id: z.ZodString;
|
|
48
|
+
sequence: z.ZodNumber;
|
|
49
|
+
status: z.ZodEnum<{
|
|
50
|
+
unknown: "unknown";
|
|
51
|
+
queued: "queued";
|
|
52
|
+
started: "started";
|
|
53
|
+
terminal: "terminal";
|
|
54
|
+
}>;
|
|
55
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
56
|
+
authority_epoch: z.ZodNumber;
|
|
57
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
58
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
59
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
text: z.ZodOptional<z.ZodString>;
|
|
61
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
prompts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
64
|
+
info: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
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>;
|
|
85
|
+
export declare const GatewaySessionResultSchema: z.ZodObject<{
|
|
86
|
+
state: z.ZodEnum<{
|
|
87
|
+
unavailable: "unavailable";
|
|
88
|
+
refused: "refused";
|
|
89
|
+
attached: "attached";
|
|
90
|
+
stopped: "stopped";
|
|
91
|
+
incompatible: "incompatible";
|
|
92
|
+
}>;
|
|
93
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
94
|
+
replay_gap: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
snapshot: z.ZodNullable<z.ZodObject<{
|
|
96
|
+
session_id: z.ZodString;
|
|
97
|
+
stored_session_id: z.ZodString;
|
|
98
|
+
messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
99
|
+
message_count: z.ZodNumber;
|
|
100
|
+
running: z.ZodBoolean;
|
|
101
|
+
authority_epoch: z.ZodNumber;
|
|
102
|
+
replay_epoch: z.ZodString;
|
|
103
|
+
last_sequence: z.ZodNumber;
|
|
104
|
+
subscription_id: z.ZodString;
|
|
105
|
+
revision: z.ZodNumber;
|
|
106
|
+
execution_generation: z.ZodNumber;
|
|
107
|
+
pending: z.ZodArray<z.ZodObject<{
|
|
108
|
+
admission_id: z.ZodString;
|
|
109
|
+
sequence: z.ZodNumber;
|
|
110
|
+
status: z.ZodEnum<{
|
|
111
|
+
unknown: "unknown";
|
|
112
|
+
queued: "queued";
|
|
113
|
+
started: "started";
|
|
114
|
+
terminal: "terminal";
|
|
115
|
+
}>;
|
|
116
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
117
|
+
authority_epoch: z.ZodNumber;
|
|
118
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
119
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
120
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
+
text: z.ZodOptional<z.ZodString>;
|
|
122
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
123
|
+
}, z.core.$strip>>;
|
|
124
|
+
prompts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
125
|
+
info: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
receipt: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
128
|
+
admission_id: z.ZodString;
|
|
129
|
+
sequence: z.ZodNumber;
|
|
130
|
+
status: z.ZodEnum<{
|
|
131
|
+
unknown: "unknown";
|
|
132
|
+
queued: "queued";
|
|
133
|
+
started: "started";
|
|
134
|
+
terminal: "terminal";
|
|
135
|
+
}>;
|
|
136
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
137
|
+
authority_epoch: z.ZodNumber;
|
|
138
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
139
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
140
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
+
text: z.ZodOptional<z.ZodString>;
|
|
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>;
|
|
250
|
+
}, z.core.$strip>>;
|
|
251
|
+
}, z.core.$strip>;
|
|
252
|
+
export type GatewayClarifyBatch = z.infer<typeof GatewayClarifyBatchSchema>;
|
|
253
|
+
export declare const GatewaySessionParamsSchema: z.ZodObject<{
|
|
254
|
+
profile_home: z.ZodString;
|
|
255
|
+
session_id: z.ZodString;
|
|
256
|
+
action: z.ZodEnum<{
|
|
257
|
+
snapshot: "snapshot";
|
|
258
|
+
receipt: "receipt";
|
|
259
|
+
context_detail: "context_detail";
|
|
260
|
+
export: "export";
|
|
261
|
+
watch: "watch";
|
|
262
|
+
submit: "submit";
|
|
263
|
+
cancel: "cancel";
|
|
264
|
+
steer_queued: "steer_queued";
|
|
265
|
+
replace_queued: "replace_queued";
|
|
266
|
+
interrupt: "interrupt";
|
|
267
|
+
approval: "approval";
|
|
268
|
+
clarify: "clarify";
|
|
269
|
+
clarify_lock: "clarify_lock";
|
|
270
|
+
discard: "discard";
|
|
271
|
+
mutate: "mutate";
|
|
272
|
+
}>;
|
|
273
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
274
|
+
json: "json";
|
|
275
|
+
markdown: "markdown";
|
|
276
|
+
html: "html";
|
|
277
|
+
}>>;
|
|
278
|
+
redact: z.ZodOptional<z.ZodBoolean>;
|
|
279
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
280
|
+
text: z.ZodOptional<z.ZodString>;
|
|
281
|
+
submission_id: z.ZodOptional<z.ZodString>;
|
|
282
|
+
show_reasoning: z.ZodOptional<z.ZodBoolean>;
|
|
283
|
+
admission_id: z.ZodOptional<z.ZodString>;
|
|
284
|
+
execution_generation: z.ZodOptional<z.ZodNumber>;
|
|
285
|
+
prompt_id: z.ZodOptional<z.ZodString>;
|
|
286
|
+
choice: z.ZodOptional<z.ZodEnum<{
|
|
287
|
+
once: "once";
|
|
288
|
+
session: "session";
|
|
289
|
+
always: "always";
|
|
290
|
+
deny: "deny";
|
|
291
|
+
}>>;
|
|
292
|
+
question_id: z.ZodOptional<z.ZodString>;
|
|
293
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
294
|
+
expected_revision: z.ZodOptional<z.ZodNumber>;
|
|
295
|
+
operation: z.ZodOptional<z.ZodEnum<{
|
|
296
|
+
model: "model";
|
|
297
|
+
rename: "rename";
|
|
298
|
+
archive: "archive";
|
|
299
|
+
sidebar: "sidebar";
|
|
300
|
+
branch: "branch";
|
|
301
|
+
delete: "delete";
|
|
302
|
+
rewind: "rewind";
|
|
303
|
+
reset: "reset";
|
|
304
|
+
workspace: "workspace";
|
|
305
|
+
compress: "compress";
|
|
306
|
+
}>>;
|
|
307
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
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>;
|
|
361
|
+
export declare const OwnerActionRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
362
|
+
session_id: z.ZodString;
|
|
363
|
+
action: z.ZodLiteral<"cancel">;
|
|
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;
|
|
375
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
376
|
+
session_id: z.ZodString;
|
|
377
|
+
admission_id: z.ZodString;
|
|
378
|
+
execution_generation: z.ZodNumber;
|
|
379
|
+
action: z.ZodLiteral<"discard">;
|
|
380
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
381
|
+
session_id: z.ZodString;
|
|
382
|
+
admission_id: z.ZodString;
|
|
383
|
+
execution_generation: z.ZodNumber;
|
|
384
|
+
action: z.ZodLiteral<"retry">;
|
|
385
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
386
|
+
session_id: z.ZodString;
|
|
387
|
+
action: z.ZodLiteral<"mutate">;
|
|
388
|
+
request_id: z.ZodString;
|
|
389
|
+
expected_revision: z.ZodNumber;
|
|
390
|
+
execution_generation: z.ZodNumber;
|
|
391
|
+
operation: z.ZodEnum<{
|
|
392
|
+
model: "model";
|
|
393
|
+
rename: "rename";
|
|
394
|
+
rewind: "rewind";
|
|
395
|
+
reset: "reset";
|
|
396
|
+
workspace: "workspace";
|
|
397
|
+
compress: "compress";
|
|
398
|
+
}>;
|
|
399
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
400
|
+
}, z.core.$strip>], "action">;
|
|
401
|
+
export type OwnerActionRequest = z.infer<typeof OwnerActionRequestSchema>;
|
|
402
|
+
/** The server decides every action. Native paths, principal bindings and transport tickets stay private. */
|
|
403
|
+
export declare const OwnerAttachmentSchema: z.ZodObject<{
|
|
404
|
+
state: z.ZodEnum<{
|
|
405
|
+
unavailable: "unavailable";
|
|
406
|
+
refused: "refused";
|
|
407
|
+
attached: "attached";
|
|
408
|
+
stopped: "stopped";
|
|
409
|
+
incompatible: "incompatible";
|
|
410
|
+
}>;
|
|
411
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
412
|
+
can_submit: z.ZodBoolean;
|
|
413
|
+
can_interrupt: z.ZodBoolean;
|
|
414
|
+
can_attach: z.ZodBoolean;
|
|
415
|
+
restarting: z.ZodBoolean;
|
|
416
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
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>>;
|
|
430
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
431
|
+
admission_id: z.ZodString;
|
|
432
|
+
sequence: z.ZodNumber;
|
|
433
|
+
status: z.ZodEnum<{
|
|
434
|
+
unknown: "unknown";
|
|
435
|
+
queued: "queued";
|
|
436
|
+
started: "started";
|
|
437
|
+
terminal: "terminal";
|
|
438
|
+
}>;
|
|
439
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
440
|
+
authority_epoch: z.ZodNumber;
|
|
441
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
442
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
443
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
444
|
+
text: z.ZodOptional<z.ZodString>;
|
|
445
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
446
|
+
}, z.core.$strip>>>;
|
|
447
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
448
|
+
admission_id: z.ZodString;
|
|
449
|
+
sequence: z.ZodNumber;
|
|
450
|
+
status: z.ZodEnum<{
|
|
451
|
+
unknown: "unknown";
|
|
452
|
+
queued: "queued";
|
|
453
|
+
started: "started";
|
|
454
|
+
terminal: "terminal";
|
|
455
|
+
}>;
|
|
456
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
457
|
+
authority_epoch: z.ZodNumber;
|
|
458
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
459
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
460
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
461
|
+
text: z.ZodOptional<z.ZodString>;
|
|
462
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
463
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
464
|
+
cancel: "cancel";
|
|
465
|
+
discard: "discard";
|
|
466
|
+
retry: "retry";
|
|
467
|
+
steer: "steer";
|
|
468
|
+
edit: "edit";
|
|
469
|
+
}>>;
|
|
470
|
+
}, z.core.$strip>>;
|
|
471
|
+
}, z.core.$strip>;
|
|
472
|
+
export type OwnerAttachment = z.infer<typeof OwnerAttachmentSchema>;
|
|
473
|
+
export type GatewaySnapshot = z.infer<typeof GatewaySnapshotSchema>;
|
|
474
|
+
export type GatewaySessionResult = z.infer<typeof GatewaySessionResultSchema>;
|
|
475
|
+
export type GatewaySessionParams = z.infer<typeof GatewaySessionParamsSchema>;
|