@khorsheed/dsh-local-agent 0.2.0-rc.1 → 0.2.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/CHANGELOG.md +31 -0
- package/README.en.md +23 -164
- package/README.i18n.yaml +2 -2
- package/README.md +23 -164
- package/lib/client.js +23707 -4768
- package/lib/index.js +827 -62
- package/lib/member-bridge.js +195 -25
- package/lib/tool-factory.js +52 -19
- package/lib/typert.host.js +1440 -353
- package/lib/typert.remote-client.d.ts +43 -3
- package/lib/typert.remote-client.js +973 -335
- package/lib/types/client/FamilyCard.d.ts +37 -0
- package/lib/types/client/FamilyCard.js +55 -0
- package/lib/types/client/HarnessModelPicker.d.ts +21 -1
- package/lib/types/client/HarnessModelPicker.js +31 -3
- package/lib/types/client/MemberLiveNode.js +38 -4
- package/lib/types/client/ModelListSection.d.ts +49 -0
- package/lib/types/client/ModelListSection.js +132 -0
- package/lib/types/client/ProviderAuthBlock.d.ts +10 -2
- package/lib/types/client/ProviderAuthBlock.js +13 -6
- package/lib/types/client/auth-status.d.ts +6 -0
- package/lib/types/client/auth-status.js +8 -0
- package/lib/types/client/harness-cards.d.ts +72 -0
- package/lib/types/client/harness-cards.js +57 -0
- package/lib/types/client/icons.d.ts +2 -1
- package/lib/types/client/icons.js +1 -0
- package/lib/types/client/index.d.ts +32 -7
- package/lib/types/client/index.js +66 -9
- package/lib/types/client/locales.d.ts +25 -1
- package/lib/types/client/locales.js +50 -2
- package/lib/types/client/model-directory-scope.d.ts +14 -0
- package/lib/types/client/model-directory-scope.js +20 -0
- package/lib/types/gateway.d.ts +49 -1
- package/lib/types/gateway.js +89 -0
- package/lib/types/index.d.ts +91 -38
- package/lib/types/index.js +190 -58
- package/lib/types/live-stream.d.ts +11 -0
- package/lib/types/live-stream.js +26 -0
- package/lib/types/member-bridge.d.ts +11 -1
- package/lib/types/member-bridge.js +81 -13
- package/lib/types/member-channel.d.ts +44 -1
- package/lib/types/member-channel.js +65 -2
- package/lib/types/member-controls.d.ts +8 -0
- package/lib/types/member-controls.js +15 -2
- package/lib/types/mode-skills.d.ts +18 -0
- package/lib/types/mode-skills.js +56 -0
- package/lib/types/model-list.d.ts +55 -0
- package/lib/types/model-list.js +101 -0
- package/lib/types/preset-tool-host.d.ts +70 -0
- package/lib/types/preset-tool-host.js +210 -0
- package/lib/types/tool-factory.d.ts +9 -3
- package/lib/types/tool-factory.js +55 -18
- package/lib/types/types.d.ts +62 -5
- package/package.json +27 -23
- package/lib/invariant.js +0 -85
- package/lib/types/invariant.d.ts +0 -16
- package/lib/types/invariant.js +0 -105
package/lib/typert.host.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
|
|
2
2
|
import { z } from 'zod'
|
|
3
3
|
|
|
4
|
+
import { createTypertRemoteInfo } from '@deepseek-ai/dsh-typert-protocol/remote-info'
|
|
5
|
+
|
|
4
6
|
let _khorsheed_dsh_local_agent_localAgentGateway_activeDelegations_result$schema$value
|
|
5
7
|
const _khorsheed_dsh_local_agent_localAgentGateway_activeDelegations_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_activeDelegations_result$schema$value ??= z.array(z.string()))
|
|
6
8
|
let _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_0$schema$value
|
|
@@ -13,9 +15,33 @@ let _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_resul
|
|
|
13
15
|
const _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_result$schema$value ??= z.object({
|
|
14
16
|
'requestId': z.string(),
|
|
15
17
|
'revision': z.number(),
|
|
16
|
-
'status': z.union([z.literal("
|
|
18
|
+
'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("pending"), z.literal("applied"), z.literal("conflict"), z.literal("unsupported"), z.literal("locked"), z.literal("applying")]),
|
|
17
19
|
'error': z.string().optional(),
|
|
18
20
|
}))
|
|
21
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_checkEndpoint_parameter_0$schema$value
|
|
22
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_checkEndpoint_parameter_0$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_checkEndpoint_parameter_0$schema$value ??= z.string())
|
|
23
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_checkEndpoint_result$schema$value
|
|
24
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_checkEndpoint_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_checkEndpoint_result$schema$value ??= z.union([z.literal(null), z.string()]))
|
|
25
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_0$schema$value
|
|
26
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_0$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_0$schema$value ??= z.string())
|
|
27
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_1$schema$value
|
|
28
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_1$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_1$schema$value ??= z.object({
|
|
29
|
+
'baseUrl': z.union([z.literal(null), z.string()]).readonly().optional(),
|
|
30
|
+
'apiKey': z.union([z.literal(null), z.string()]).readonly().optional(),
|
|
31
|
+
'authToken': z.union([z.literal(null), z.string()]).readonly().optional(),
|
|
32
|
+
}))
|
|
33
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_result$schema$value
|
|
34
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_result$schema$value ??= z.union([z.literal(null), z.object({
|
|
35
|
+
'baseUrl': z.string().readonly().optional(),
|
|
36
|
+
'apiKeySet': z.boolean().readonly(),
|
|
37
|
+
'authTokenSet': z.boolean().readonly(),
|
|
38
|
+
})]))
|
|
39
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_0$schema$value
|
|
40
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_0$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_0$schema$value ??= z.string())
|
|
41
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_1$schema$value
|
|
42
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_1$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_1$schema$value ??= z.array(z.string()))
|
|
43
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_result$schema$value
|
|
44
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_configureModelList_result$schema$value ??= z.union([z.literal(null), z.array(z.string())]))
|
|
19
45
|
let _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_0$schema$value
|
|
20
46
|
const _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_0$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_0$schema$value ??= z.string())
|
|
21
47
|
let _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_1$schema$value
|
|
@@ -34,23 +60,31 @@ const _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_result$sch
|
|
|
34
60
|
'ok': z.literal(false),
|
|
35
61
|
'error': z.string(),
|
|
36
62
|
})]))
|
|
63
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_endpointAuth_parameter_0$schema$value
|
|
64
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_endpointAuth_parameter_0$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_endpointAuth_parameter_0$schema$value ??= z.string())
|
|
65
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_endpointAuth_result$schema$value
|
|
66
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_endpointAuth_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_endpointAuth_result$schema$value ??= z.union([z.literal(null), z.object({
|
|
67
|
+
'baseUrl': z.string().readonly().optional(),
|
|
68
|
+
'apiKeySet': z.boolean().readonly(),
|
|
69
|
+
'authTokenSet': z.boolean().readonly(),
|
|
70
|
+
})]))
|
|
37
71
|
let _khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_parameter_0$schema$value
|
|
38
72
|
const _khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_parameter_0$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_parameter_0$schema$value ??= z.string())
|
|
39
73
|
let _khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_result$schema$value
|
|
40
74
|
const _khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_result$schema$value ??= z.object({
|
|
41
75
|
'memberId': z.string(),
|
|
42
|
-
'revision': z.number(),
|
|
76
|
+
'revision': z.number().describe('Monotonic intent revision, including cancellation.'),
|
|
43
77
|
'current': z.object({
|
|
44
78
|
'revision': z.number(),
|
|
45
79
|
'selection': z.object({
|
|
46
80
|
'model': z.union([z.object({
|
|
47
|
-
'mode': z.union([z.literal("
|
|
81
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
48
82
|
}), z.object({
|
|
49
83
|
'mode': z.literal("value"),
|
|
50
84
|
'value': z.string(),
|
|
51
85
|
})]),
|
|
52
86
|
'effort': z.union([z.object({
|
|
53
|
-
'mode': z.union([z.literal("
|
|
87
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
54
88
|
}), z.object({
|
|
55
89
|
'mode': z.literal("value"),
|
|
56
90
|
'value': z.string(),
|
|
@@ -67,49 +101,48 @@ const _khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_res
|
|
|
67
101
|
'kind': z.union([z.literal("selection"), z.literal("cancel")]),
|
|
68
102
|
'selection': z.object({
|
|
69
103
|
'model': z.union([z.object({
|
|
70
|
-
'mode': z.union([z.literal("
|
|
104
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
71
105
|
}), z.object({
|
|
72
106
|
'mode': z.literal("value"),
|
|
73
107
|
'value': z.string(),
|
|
74
108
|
})]),
|
|
75
109
|
'effort': z.union([z.object({
|
|
76
|
-
'mode': z.union([z.literal("
|
|
110
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
77
111
|
}), z.object({
|
|
78
112
|
'mode': z.literal("value"),
|
|
79
113
|
'value': z.string(),
|
|
80
114
|
})]),
|
|
81
115
|
}),
|
|
82
116
|
}).optional(),
|
|
83
|
-
'operation': z.
|
|
117
|
+
'operation': z.object({
|
|
84
118
|
'revision': z.number(),
|
|
85
119
|
'requestId': z.string(),
|
|
86
120
|
'kind': z.union([z.literal("selection"), z.literal("cancel")]),
|
|
87
121
|
'selection': z.object({
|
|
88
122
|
'model': z.union([z.object({
|
|
89
|
-
'mode': z.union([z.literal("
|
|
123
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
90
124
|
}), z.object({
|
|
91
125
|
'mode': z.literal("value"),
|
|
92
126
|
'value': z.string(),
|
|
93
127
|
})]),
|
|
94
128
|
'effort': z.union([z.object({
|
|
95
|
-
'mode': z.union([z.literal("
|
|
129
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
96
130
|
}), z.object({
|
|
97
131
|
'mode': z.literal("value"),
|
|
98
132
|
'value': z.string(),
|
|
99
133
|
})]),
|
|
100
134
|
}),
|
|
101
|
-
}), z.object({
|
|
102
135
|
'previous': z.object({
|
|
103
136
|
'revision': z.number(),
|
|
104
137
|
'selection': z.object({
|
|
105
138
|
'model': z.union([z.object({
|
|
106
|
-
'mode': z.union([z.literal("
|
|
139
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
107
140
|
}), z.object({
|
|
108
141
|
'mode': z.literal("value"),
|
|
109
142
|
'value': z.string(),
|
|
110
143
|
})]),
|
|
111
144
|
'effort': z.union([z.object({
|
|
112
|
-
'mode': z.union([z.literal("
|
|
145
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
113
146
|
}), z.object({
|
|
114
147
|
'mode': z.literal("value"),
|
|
115
148
|
'value': z.string(),
|
|
@@ -120,21 +153,21 @@ const _khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_res
|
|
|
120
153
|
'effort': z.string().optional(),
|
|
121
154
|
}),
|
|
122
155
|
}),
|
|
123
|
-
})
|
|
124
|
-
'status': z.union([z.literal("
|
|
156
|
+
}).optional(),
|
|
157
|
+
'status': z.union([z.literal("failed"), z.literal("pending"), z.literal("idle"), z.literal("applying"), z.literal("reconciling")]),
|
|
125
158
|
'round': z.object({
|
|
126
159
|
'id': z.string(),
|
|
127
160
|
'configuration': z.object({
|
|
128
161
|
'revision': z.number(),
|
|
129
162
|
'selection': z.object({
|
|
130
163
|
'model': z.union([z.object({
|
|
131
|
-
'mode': z.union([z.literal("
|
|
164
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
132
165
|
}), z.object({
|
|
133
166
|
'mode': z.literal("value"),
|
|
134
167
|
'value': z.string(),
|
|
135
168
|
})]),
|
|
136
169
|
'effort': z.union([z.object({
|
|
137
|
-
'mode': z.union([z.literal("
|
|
170
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
138
171
|
}), z.object({
|
|
139
172
|
'mode': z.literal("value"),
|
|
140
173
|
'value': z.string(),
|
|
@@ -145,19 +178,19 @@ const _khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_res
|
|
|
145
178
|
'effort': z.string().optional(),
|
|
146
179
|
}),
|
|
147
180
|
}),
|
|
148
|
-
}).optional(),
|
|
181
|
+
}).optional().describe('Immutable configuration captured at admission, including tool continuation.'),
|
|
149
182
|
'lockedReason': z.string().optional(),
|
|
150
183
|
'frozen': z.object({
|
|
151
184
|
'revision': z.number(),
|
|
152
185
|
'selection': z.object({
|
|
153
186
|
'model': z.union([z.object({
|
|
154
|
-
'mode': z.union([z.literal("
|
|
187
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
155
188
|
}), z.object({
|
|
156
189
|
'mode': z.literal("value"),
|
|
157
190
|
'value': z.string(),
|
|
158
191
|
})]),
|
|
159
192
|
'effort': z.union([z.object({
|
|
160
|
-
'mode': z.union([z.literal("
|
|
193
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
161
194
|
}), z.object({
|
|
162
195
|
'mode': z.literal("value"),
|
|
163
196
|
'value': z.string(),
|
|
@@ -167,14 +200,14 @@ const _khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_res
|
|
|
167
200
|
'model': z.string().optional(),
|
|
168
201
|
'effort': z.string().optional(),
|
|
169
202
|
}),
|
|
170
|
-
}).optional(),
|
|
203
|
+
}).optional().describe('First admitted configuration of a frozen evaluation; defaults cannot drift on resume.'),
|
|
171
204
|
'error': z.string().optional(),
|
|
172
205
|
}))
|
|
173
206
|
let _khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_parameter_0$schema$value
|
|
174
207
|
const _khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_parameter_0$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_parameter_0$schema$value ??= z.string())
|
|
175
208
|
let _khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_result$schema$value
|
|
176
209
|
const _khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_result$schema$value ??= z.object({
|
|
177
|
-
'status': z.union([z.literal("
|
|
210
|
+
'status': z.union([z.literal("ready"), z.literal("error"), z.literal("loading"), z.literal("stale"), z.literal("unsupported")]),
|
|
178
211
|
'refreshing': z.boolean(),
|
|
179
212
|
'revision': z.number(),
|
|
180
213
|
'refreshedAt': z.number().optional(),
|
|
@@ -183,7 +216,7 @@ const _khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_result$
|
|
|
183
216
|
'label': z.string(),
|
|
184
217
|
'resolvedModel': z.string().optional(),
|
|
185
218
|
'description': z.string().optional(),
|
|
186
|
-
'source': z.union([z.literal("
|
|
219
|
+
'source': z.union([z.literal("history"), z.literal("configuration"), z.literal("native")]),
|
|
187
220
|
'hidden': z.boolean().optional(),
|
|
188
221
|
'reasoning': z.object({
|
|
189
222
|
'options': z.array(z.object({
|
|
@@ -195,7 +228,7 @@ const _khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_result$
|
|
|
195
228
|
}).optional(),
|
|
196
229
|
})),
|
|
197
230
|
'defaultModel': z.string().optional(),
|
|
198
|
-
'complete': z.boolean(),
|
|
231
|
+
'complete': z.boolean().describe('Complete enumeration of this source, not a guarantee of account access.'),
|
|
199
232
|
'customInput': z.boolean(),
|
|
200
233
|
'unsupported': z.boolean().optional(),
|
|
201
234
|
'reason': z.string().optional(),
|
|
@@ -205,23 +238,22 @@ const _khorsheed_dsh_local_agent_localAgentGateway_followMemberOutput_parameter_
|
|
|
205
238
|
let _khorsheed_dsh_local_agent_localAgentGateway_followMemberOutput_result$schema$value
|
|
206
239
|
const _khorsheed_dsh_local_agent_localAgentGateway_followMemberOutput_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_followMemberOutput_result$schema$value ??= z.object({
|
|
207
240
|
'baseline': z.boolean(),
|
|
208
|
-
'updates': z.array(z.
|
|
241
|
+
'updates': z.array(z.object({
|
|
209
242
|
'id': z.string(),
|
|
210
243
|
'turn': z.number(),
|
|
211
244
|
'step': z.number(),
|
|
212
|
-
'kind': z.union([z.literal("
|
|
245
|
+
'kind': z.union([z.literal("text"), z.literal("think")]),
|
|
213
246
|
'text': z.string(),
|
|
214
247
|
'revision': z.number(),
|
|
215
248
|
'receivedAt': z.number(),
|
|
216
|
-
}), z.object({
|
|
217
249
|
'append': z.boolean(),
|
|
218
|
-
}))
|
|
250
|
+
})),
|
|
219
251
|
'removed': z.array(z.string()),
|
|
220
252
|
}))
|
|
221
253
|
let _khorsheed_dsh_local_agent_localAgentGateway_followMembers_parameter_0$schema$value
|
|
222
254
|
const _khorsheed_dsh_local_agent_localAgentGateway_followMembers_parameter_0$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_followMembers_parameter_0$schema$value ??= z.array(z.object({
|
|
223
255
|
'memberId': z.string(),
|
|
224
|
-
'channel': z.union([z.literal("
|
|
256
|
+
'channel': z.union([z.literal("output"), z.literal("directory"), z.literal("configuration")]),
|
|
225
257
|
})))
|
|
226
258
|
let _khorsheed_dsh_local_agent_localAgentGateway_followMembers_result$schema$value
|
|
227
259
|
const _khorsheed_dsh_local_agent_localAgentGateway_followMembers_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_followMembers_result$schema$value ??= z.union([z.object({
|
|
@@ -229,18 +261,18 @@ const _khorsheed_dsh_local_agent_localAgentGateway_followMembers_result$schema =
|
|
|
229
261
|
'channel': z.literal("configuration"),
|
|
230
262
|
'value': z.object({
|
|
231
263
|
'memberId': z.string(),
|
|
232
|
-
'revision': z.number(),
|
|
264
|
+
'revision': z.number().describe('Monotonic intent revision, including cancellation.'),
|
|
233
265
|
'current': z.object({
|
|
234
266
|
'revision': z.number(),
|
|
235
267
|
'selection': z.object({
|
|
236
268
|
'model': z.union([z.object({
|
|
237
|
-
'mode': z.union([z.literal("
|
|
269
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
238
270
|
}), z.object({
|
|
239
271
|
'mode': z.literal("value"),
|
|
240
272
|
'value': z.string(),
|
|
241
273
|
})]),
|
|
242
274
|
'effort': z.union([z.object({
|
|
243
|
-
'mode': z.union([z.literal("
|
|
275
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
244
276
|
}), z.object({
|
|
245
277
|
'mode': z.literal("value"),
|
|
246
278
|
'value': z.string(),
|
|
@@ -257,49 +289,48 @@ const _khorsheed_dsh_local_agent_localAgentGateway_followMembers_result$schema =
|
|
|
257
289
|
'kind': z.union([z.literal("selection"), z.literal("cancel")]),
|
|
258
290
|
'selection': z.object({
|
|
259
291
|
'model': z.union([z.object({
|
|
260
|
-
'mode': z.union([z.literal("
|
|
292
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
261
293
|
}), z.object({
|
|
262
294
|
'mode': z.literal("value"),
|
|
263
295
|
'value': z.string(),
|
|
264
296
|
})]),
|
|
265
297
|
'effort': z.union([z.object({
|
|
266
|
-
'mode': z.union([z.literal("
|
|
298
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
267
299
|
}), z.object({
|
|
268
300
|
'mode': z.literal("value"),
|
|
269
301
|
'value': z.string(),
|
|
270
302
|
})]),
|
|
271
303
|
}),
|
|
272
304
|
}).optional(),
|
|
273
|
-
'operation': z.
|
|
305
|
+
'operation': z.object({
|
|
274
306
|
'revision': z.number(),
|
|
275
307
|
'requestId': z.string(),
|
|
276
308
|
'kind': z.union([z.literal("selection"), z.literal("cancel")]),
|
|
277
309
|
'selection': z.object({
|
|
278
310
|
'model': z.union([z.object({
|
|
279
|
-
'mode': z.union([z.literal("
|
|
311
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
280
312
|
}), z.object({
|
|
281
313
|
'mode': z.literal("value"),
|
|
282
314
|
'value': z.string(),
|
|
283
315
|
})]),
|
|
284
316
|
'effort': z.union([z.object({
|
|
285
|
-
'mode': z.union([z.literal("
|
|
317
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
286
318
|
}), z.object({
|
|
287
319
|
'mode': z.literal("value"),
|
|
288
320
|
'value': z.string(),
|
|
289
321
|
})]),
|
|
290
322
|
}),
|
|
291
|
-
}), z.object({
|
|
292
323
|
'previous': z.object({
|
|
293
324
|
'revision': z.number(),
|
|
294
325
|
'selection': z.object({
|
|
295
326
|
'model': z.union([z.object({
|
|
296
|
-
'mode': z.union([z.literal("
|
|
327
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
297
328
|
}), z.object({
|
|
298
329
|
'mode': z.literal("value"),
|
|
299
330
|
'value': z.string(),
|
|
300
331
|
})]),
|
|
301
332
|
'effort': z.union([z.object({
|
|
302
|
-
'mode': z.union([z.literal("
|
|
333
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
303
334
|
}), z.object({
|
|
304
335
|
'mode': z.literal("value"),
|
|
305
336
|
'value': z.string(),
|
|
@@ -310,21 +341,21 @@ const _khorsheed_dsh_local_agent_localAgentGateway_followMembers_result$schema =
|
|
|
310
341
|
'effort': z.string().optional(),
|
|
311
342
|
}),
|
|
312
343
|
}),
|
|
313
|
-
})
|
|
314
|
-
'status': z.union([z.literal("
|
|
344
|
+
}).optional(),
|
|
345
|
+
'status': z.union([z.literal("failed"), z.literal("pending"), z.literal("idle"), z.literal("applying"), z.literal("reconciling")]),
|
|
315
346
|
'round': z.object({
|
|
316
347
|
'id': z.string(),
|
|
317
348
|
'configuration': z.object({
|
|
318
349
|
'revision': z.number(),
|
|
319
350
|
'selection': z.object({
|
|
320
351
|
'model': z.union([z.object({
|
|
321
|
-
'mode': z.union([z.literal("
|
|
352
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
322
353
|
}), z.object({
|
|
323
354
|
'mode': z.literal("value"),
|
|
324
355
|
'value': z.string(),
|
|
325
356
|
})]),
|
|
326
357
|
'effort': z.union([z.object({
|
|
327
|
-
'mode': z.union([z.literal("
|
|
358
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
328
359
|
}), z.object({
|
|
329
360
|
'mode': z.literal("value"),
|
|
330
361
|
'value': z.string(),
|
|
@@ -335,19 +366,19 @@ const _khorsheed_dsh_local_agent_localAgentGateway_followMembers_result$schema =
|
|
|
335
366
|
'effort': z.string().optional(),
|
|
336
367
|
}),
|
|
337
368
|
}),
|
|
338
|
-
}).optional(),
|
|
369
|
+
}).optional().describe('Immutable configuration captured at admission, including tool continuation.'),
|
|
339
370
|
'lockedReason': z.string().optional(),
|
|
340
371
|
'frozen': z.object({
|
|
341
372
|
'revision': z.number(),
|
|
342
373
|
'selection': z.object({
|
|
343
374
|
'model': z.union([z.object({
|
|
344
|
-
'mode': z.union([z.literal("
|
|
375
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
345
376
|
}), z.object({
|
|
346
377
|
'mode': z.literal("value"),
|
|
347
378
|
'value': z.string(),
|
|
348
379
|
})]),
|
|
349
380
|
'effort': z.union([z.object({
|
|
350
|
-
'mode': z.union([z.literal("
|
|
381
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
351
382
|
}), z.object({
|
|
352
383
|
'mode': z.literal("value"),
|
|
353
384
|
'value': z.string(),
|
|
@@ -357,14 +388,14 @@ const _khorsheed_dsh_local_agent_localAgentGateway_followMembers_result$schema =
|
|
|
357
388
|
'model': z.string().optional(),
|
|
358
389
|
'effort': z.string().optional(),
|
|
359
390
|
}),
|
|
360
|
-
}).optional(),
|
|
391
|
+
}).optional().describe('First admitted configuration of a frozen evaluation; defaults cannot drift on resume.'),
|
|
361
392
|
'error': z.string().optional(),
|
|
362
393
|
}),
|
|
363
394
|
}), z.object({
|
|
364
395
|
'memberId': z.string(),
|
|
365
396
|
'channel': z.literal("directory"),
|
|
366
397
|
'value': z.object({
|
|
367
|
-
'status': z.union([z.literal("
|
|
398
|
+
'status': z.union([z.literal("ready"), z.literal("error"), z.literal("loading"), z.literal("stale"), z.literal("unsupported")]),
|
|
368
399
|
'refreshing': z.boolean(),
|
|
369
400
|
'revision': z.number(),
|
|
370
401
|
'refreshedAt': z.number().optional(),
|
|
@@ -373,7 +404,7 @@ const _khorsheed_dsh_local_agent_localAgentGateway_followMembers_result$schema =
|
|
|
373
404
|
'label': z.string(),
|
|
374
405
|
'resolvedModel': z.string().optional(),
|
|
375
406
|
'description': z.string().optional(),
|
|
376
|
-
'source': z.union([z.literal("
|
|
407
|
+
'source': z.union([z.literal("history"), z.literal("configuration"), z.literal("native")]),
|
|
377
408
|
'hidden': z.boolean().optional(),
|
|
378
409
|
'reasoning': z.object({
|
|
379
410
|
'options': z.array(z.object({
|
|
@@ -385,7 +416,7 @@ const _khorsheed_dsh_local_agent_localAgentGateway_followMembers_result$schema =
|
|
|
385
416
|
}).optional(),
|
|
386
417
|
})),
|
|
387
418
|
'defaultModel': z.string().optional(),
|
|
388
|
-
'complete': z.boolean(),
|
|
419
|
+
'complete': z.boolean().describe('Complete enumeration of this source, not a guarantee of account access.'),
|
|
389
420
|
'customInput': z.boolean(),
|
|
390
421
|
'unsupported': z.boolean().optional(),
|
|
391
422
|
'reason': z.string().optional(),
|
|
@@ -395,23 +426,22 @@ const _khorsheed_dsh_local_agent_localAgentGateway_followMembers_result$schema =
|
|
|
395
426
|
'channel': z.literal("output"),
|
|
396
427
|
'value': z.object({
|
|
397
428
|
'baseline': z.boolean(),
|
|
398
|
-
'updates': z.array(z.
|
|
429
|
+
'updates': z.array(z.object({
|
|
399
430
|
'id': z.string(),
|
|
400
431
|
'turn': z.number(),
|
|
401
432
|
'step': z.number(),
|
|
402
|
-
'kind': z.union([z.literal("
|
|
433
|
+
'kind': z.union([z.literal("text"), z.literal("think")]),
|
|
403
434
|
'text': z.string(),
|
|
404
435
|
'revision': z.number(),
|
|
405
436
|
'receivedAt': z.number(),
|
|
406
|
-
}), z.object({
|
|
407
437
|
'append': z.boolean(),
|
|
408
|
-
}))
|
|
438
|
+
})),
|
|
409
439
|
'removed': z.array(z.string()),
|
|
410
440
|
}),
|
|
411
441
|
}), z.object({
|
|
412
442
|
'memberId': z.string(),
|
|
413
443
|
'channel': z.literal("error"),
|
|
414
|
-
'source': z.union([z.literal("
|
|
444
|
+
'source': z.union([z.literal("output"), z.literal("directory"), z.literal("configuration")]),
|
|
415
445
|
'message': z.string(),
|
|
416
446
|
})]))
|
|
417
447
|
let _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_0$schema$value
|
|
@@ -420,7 +450,7 @@ let _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_
|
|
|
420
450
|
const _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_1$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_1$schema$value ??= z.union([z.undefined(), z.string()]))
|
|
421
451
|
let _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_result$schema$value
|
|
422
452
|
const _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_result$schema$value ??= z.object({
|
|
423
|
-
'status': z.union([z.literal("
|
|
453
|
+
'status': z.union([z.literal("ready"), z.literal("error"), z.literal("loading"), z.literal("stale"), z.literal("unsupported")]),
|
|
424
454
|
'refreshing': z.boolean(),
|
|
425
455
|
'revision': z.number(),
|
|
426
456
|
'refreshedAt': z.number().optional(),
|
|
@@ -429,7 +459,7 @@ const _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_result$s
|
|
|
429
459
|
'label': z.string(),
|
|
430
460
|
'resolvedModel': z.string().optional(),
|
|
431
461
|
'description': z.string().optional(),
|
|
432
|
-
'source': z.union([z.literal("
|
|
462
|
+
'source': z.union([z.literal("history"), z.literal("configuration"), z.literal("native")]),
|
|
433
463
|
'hidden': z.boolean().optional(),
|
|
434
464
|
'reasoning': z.object({
|
|
435
465
|
'options': z.array(z.object({
|
|
@@ -441,7 +471,7 @@ const _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_result$s
|
|
|
441
471
|
}).optional(),
|
|
442
472
|
})),
|
|
443
473
|
'defaultModel': z.string().optional(),
|
|
444
|
-
'complete': z.boolean(),
|
|
474
|
+
'complete': z.boolean().describe('Complete enumeration of this source, not a guarantee of account access.'),
|
|
445
475
|
'customInput': z.boolean(),
|
|
446
476
|
'unsupported': z.boolean().optional(),
|
|
447
477
|
'reason': z.string().optional(),
|
|
@@ -452,18 +482,18 @@ let _khorsheed_dsh_local_agent_localAgentGateway_harnessModel_result$schema$valu
|
|
|
452
482
|
const _khorsheed_dsh_local_agent_localAgentGateway_harnessModel_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_harnessModel_result$schema$value ??= z.union([z.literal(null), z.object({
|
|
453
483
|
'configuration': z.object({
|
|
454
484
|
'memberId': z.string(),
|
|
455
|
-
'revision': z.number(),
|
|
485
|
+
'revision': z.number().describe('Monotonic intent revision, including cancellation.'),
|
|
456
486
|
'current': z.object({
|
|
457
487
|
'revision': z.number(),
|
|
458
488
|
'selection': z.object({
|
|
459
489
|
'model': z.union([z.object({
|
|
460
|
-
'mode': z.union([z.literal("
|
|
490
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
461
491
|
}), z.object({
|
|
462
492
|
'mode': z.literal("value"),
|
|
463
493
|
'value': z.string(),
|
|
464
494
|
})]),
|
|
465
495
|
'effort': z.union([z.object({
|
|
466
|
-
'mode': z.union([z.literal("
|
|
496
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
467
497
|
}), z.object({
|
|
468
498
|
'mode': z.literal("value"),
|
|
469
499
|
'value': z.string(),
|
|
@@ -480,49 +510,48 @@ const _khorsheed_dsh_local_agent_localAgentGateway_harnessModel_result$schema =
|
|
|
480
510
|
'kind': z.union([z.literal("selection"), z.literal("cancel")]),
|
|
481
511
|
'selection': z.object({
|
|
482
512
|
'model': z.union([z.object({
|
|
483
|
-
'mode': z.union([z.literal("
|
|
513
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
484
514
|
}), z.object({
|
|
485
515
|
'mode': z.literal("value"),
|
|
486
516
|
'value': z.string(),
|
|
487
517
|
})]),
|
|
488
518
|
'effort': z.union([z.object({
|
|
489
|
-
'mode': z.union([z.literal("
|
|
519
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
490
520
|
}), z.object({
|
|
491
521
|
'mode': z.literal("value"),
|
|
492
522
|
'value': z.string(),
|
|
493
523
|
})]),
|
|
494
524
|
}),
|
|
495
525
|
}).optional(),
|
|
496
|
-
'operation': z.
|
|
526
|
+
'operation': z.object({
|
|
497
527
|
'revision': z.number(),
|
|
498
528
|
'requestId': z.string(),
|
|
499
529
|
'kind': z.union([z.literal("selection"), z.literal("cancel")]),
|
|
500
530
|
'selection': z.object({
|
|
501
531
|
'model': z.union([z.object({
|
|
502
|
-
'mode': z.union([z.literal("
|
|
532
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
503
533
|
}), z.object({
|
|
504
534
|
'mode': z.literal("value"),
|
|
505
535
|
'value': z.string(),
|
|
506
536
|
})]),
|
|
507
537
|
'effort': z.union([z.object({
|
|
508
|
-
'mode': z.union([z.literal("
|
|
538
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
509
539
|
}), z.object({
|
|
510
540
|
'mode': z.literal("value"),
|
|
511
541
|
'value': z.string(),
|
|
512
542
|
})]),
|
|
513
543
|
}),
|
|
514
|
-
}), z.object({
|
|
515
544
|
'previous': z.object({
|
|
516
545
|
'revision': z.number(),
|
|
517
546
|
'selection': z.object({
|
|
518
547
|
'model': z.union([z.object({
|
|
519
|
-
'mode': z.union([z.literal("
|
|
548
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
520
549
|
}), z.object({
|
|
521
550
|
'mode': z.literal("value"),
|
|
522
551
|
'value': z.string(),
|
|
523
552
|
})]),
|
|
524
553
|
'effort': z.union([z.object({
|
|
525
|
-
'mode': z.union([z.literal("
|
|
554
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
526
555
|
}), z.object({
|
|
527
556
|
'mode': z.literal("value"),
|
|
528
557
|
'value': z.string(),
|
|
@@ -533,21 +562,21 @@ const _khorsheed_dsh_local_agent_localAgentGateway_harnessModel_result$schema =
|
|
|
533
562
|
'effort': z.string().optional(),
|
|
534
563
|
}),
|
|
535
564
|
}),
|
|
536
|
-
})
|
|
537
|
-
'status': z.union([z.literal("
|
|
565
|
+
}).optional(),
|
|
566
|
+
'status': z.union([z.literal("failed"), z.literal("pending"), z.literal("idle"), z.literal("applying"), z.literal("reconciling")]),
|
|
538
567
|
'round': z.object({
|
|
539
568
|
'id': z.string(),
|
|
540
569
|
'configuration': z.object({
|
|
541
570
|
'revision': z.number(),
|
|
542
571
|
'selection': z.object({
|
|
543
572
|
'model': z.union([z.object({
|
|
544
|
-
'mode': z.union([z.literal("
|
|
573
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
545
574
|
}), z.object({
|
|
546
575
|
'mode': z.literal("value"),
|
|
547
576
|
'value': z.string(),
|
|
548
577
|
})]),
|
|
549
578
|
'effort': z.union([z.object({
|
|
550
|
-
'mode': z.union([z.literal("
|
|
579
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
551
580
|
}), z.object({
|
|
552
581
|
'mode': z.literal("value"),
|
|
553
582
|
'value': z.string(),
|
|
@@ -558,19 +587,19 @@ const _khorsheed_dsh_local_agent_localAgentGateway_harnessModel_result$schema =
|
|
|
558
587
|
'effort': z.string().optional(),
|
|
559
588
|
}),
|
|
560
589
|
}),
|
|
561
|
-
}).optional(),
|
|
590
|
+
}).optional().describe('Immutable configuration captured at admission, including tool continuation.'),
|
|
562
591
|
'lockedReason': z.string().optional(),
|
|
563
592
|
'frozen': z.object({
|
|
564
593
|
'revision': z.number(),
|
|
565
594
|
'selection': z.object({
|
|
566
595
|
'model': z.union([z.object({
|
|
567
|
-
'mode': z.union([z.literal("
|
|
596
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
568
597
|
}), z.object({
|
|
569
598
|
'mode': z.literal("value"),
|
|
570
599
|
'value': z.string(),
|
|
571
600
|
})]),
|
|
572
601
|
'effort': z.union([z.object({
|
|
573
|
-
'mode': z.union([z.literal("
|
|
602
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
574
603
|
}), z.object({
|
|
575
604
|
'mode': z.literal("value"),
|
|
576
605
|
'value': z.string(),
|
|
@@ -580,19 +609,19 @@ const _khorsheed_dsh_local_agent_localAgentGateway_harnessModel_result$schema =
|
|
|
580
609
|
'model': z.string().optional(),
|
|
581
610
|
'effort': z.string().optional(),
|
|
582
611
|
}),
|
|
583
|
-
}).optional(),
|
|
612
|
+
}).optional().describe('First admitted configuration of a frozen evaluation; defaults cannot drift on resume.'),
|
|
584
613
|
'error': z.string().optional(),
|
|
585
|
-
}).optional(),
|
|
586
|
-
'effective': z.string().optional(),
|
|
587
|
-
'source': z.union([z.literal("override"), z.literal("delegation"), z.literal("settings"), z.literal("cli-config"), z.literal("cli-builtin")]),
|
|
588
|
-
'override': z.string().optional(),
|
|
589
|
-
'delegation': z.string().optional(),
|
|
590
|
-
'settings': z.string().optional(),
|
|
591
|
-
'cliDefault': z.string().optional(),
|
|
592
|
-
'lastObserved': z.string().optional(),
|
|
593
|
-
'choices': z.array(z.string()),
|
|
614
|
+
}).optional().describe('Durable current/pending selection, shared by every member entry point.'),
|
|
615
|
+
'effective': z.string().optional().describe('The model the next round would actually run with, when any layer names one.'),
|
|
616
|
+
'source': z.union([z.literal("override"), z.literal("delegation"), z.literal("settings"), z.literal("cli-config"), z.literal("cli-builtin")]).describe('Which layer {@link LocalAgentModelInfo.effective} came from.'),
|
|
617
|
+
'override': z.string().optional().describe('The session-level override, when one is active for the member.'),
|
|
618
|
+
'delegation': z.string().optional().describe('The delegation\'s recorded model, when the delegation named one.'),
|
|
619
|
+
'settings': z.string().optional().describe('The harness\'s plugin-config `model`, when the settings layer sets one.'),
|
|
620
|
+
'cliDefault': z.string().optional().describe('The scoped config file\'s own default model, when the file names one.'),
|
|
621
|
+
'lastObserved': z.string().optional().describe('The most recent model the provider was OBSERVED running (the delegation records\' {@link LocalAgentDelegationRecord.observedModel}), filled by the core gateway when the broker itself names none. Display context for the cli-builtin layer: the CLI\'s compiled default names nothing, but "what ran last time" is exactly what a member still on that default would run again — so surfaces show it as the last-observed hint, never as {@link LocalAgentModelInfo.effective} (an observation is not a layer).'),
|
|
622
|
+
'choices': z.array(z.string()).describe('The pickable model identifiers (deduped; empty when nothing names a model). The core gateway appends {@link LocalAgentModelInfo.lastObserved} as the final entry when no broker choice already lists it, so a member that only ever ran its CLI default still has a one-item menu.'),
|
|
594
623
|
'directory': z.object({
|
|
595
|
-
'status': z.union([z.literal("
|
|
624
|
+
'status': z.union([z.literal("ready"), z.literal("error"), z.literal("loading"), z.literal("stale"), z.literal("unsupported")]),
|
|
596
625
|
'refreshing': z.boolean(),
|
|
597
626
|
'revision': z.number(),
|
|
598
627
|
'refreshedAt': z.number().optional(),
|
|
@@ -601,7 +630,7 @@ const _khorsheed_dsh_local_agent_localAgentGateway_harnessModel_result$schema =
|
|
|
601
630
|
'label': z.string(),
|
|
602
631
|
'resolvedModel': z.string().optional(),
|
|
603
632
|
'description': z.string().optional(),
|
|
604
|
-
'source': z.union([z.literal("
|
|
633
|
+
'source': z.union([z.literal("history"), z.literal("configuration"), z.literal("native")]),
|
|
605
634
|
'hidden': z.boolean().optional(),
|
|
606
635
|
'reasoning': z.object({
|
|
607
636
|
'options': z.array(z.object({
|
|
@@ -613,32 +642,32 @@ const _khorsheed_dsh_local_agent_localAgentGateway_harnessModel_result$schema =
|
|
|
613
642
|
}).optional(),
|
|
614
643
|
})),
|
|
615
644
|
'defaultModel': z.string().optional(),
|
|
616
|
-
'complete': z.boolean(),
|
|
645
|
+
'complete': z.boolean().describe('Complete enumeration of this source, not a guarantee of account access.'),
|
|
617
646
|
'customInput': z.boolean(),
|
|
618
647
|
'unsupported': z.boolean().optional(),
|
|
619
648
|
'reason': z.string().optional(),
|
|
620
|
-
}).optional(),
|
|
621
|
-
'live': z.boolean(),
|
|
622
|
-
'switchable': z.boolean(),
|
|
623
|
-
'reason': z.string().optional(),
|
|
649
|
+
}).optional().describe('Rich, source-labelled directory; choices remains the legacy read face.'),
|
|
650
|
+
'live': z.boolean().describe('Whether the harness\'s live driver is on for the member\'s rounds.'),
|
|
651
|
+
'switchable': z.boolean().describe('False while a round is in flight for the member: a model switch retires the member\'s resident runtime so the NEXT round respawns with the new model, and retiring a runtime mid-round would kill the run.'),
|
|
652
|
+
'reason': z.string().optional().describe('Why a switch is currently refused, when {@link LocalAgentModelInfo.switchable} is false.'),
|
|
624
653
|
})]))
|
|
625
654
|
let _khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_parameter_0$schema$value
|
|
626
655
|
const _khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_parameter_0$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_parameter_0$schema$value ??= z.string())
|
|
627
656
|
let _khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_result$schema$value
|
|
628
657
|
const _khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_result$schema$value ??= z.object({
|
|
629
658
|
'memberId': z.string(),
|
|
630
|
-
'revision': z.number(),
|
|
659
|
+
'revision': z.number().describe('Monotonic intent revision, including cancellation.'),
|
|
631
660
|
'current': z.object({
|
|
632
661
|
'revision': z.number(),
|
|
633
662
|
'selection': z.object({
|
|
634
663
|
'model': z.union([z.object({
|
|
635
|
-
'mode': z.union([z.literal("
|
|
664
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
636
665
|
}), z.object({
|
|
637
666
|
'mode': z.literal("value"),
|
|
638
667
|
'value': z.string(),
|
|
639
668
|
})]),
|
|
640
669
|
'effort': z.union([z.object({
|
|
641
|
-
'mode': z.union([z.literal("
|
|
670
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
642
671
|
}), z.object({
|
|
643
672
|
'mode': z.literal("value"),
|
|
644
673
|
'value': z.string(),
|
|
@@ -655,49 +684,48 @@ const _khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_result$sc
|
|
|
655
684
|
'kind': z.union([z.literal("selection"), z.literal("cancel")]),
|
|
656
685
|
'selection': z.object({
|
|
657
686
|
'model': z.union([z.object({
|
|
658
|
-
'mode': z.union([z.literal("
|
|
687
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
659
688
|
}), z.object({
|
|
660
689
|
'mode': z.literal("value"),
|
|
661
690
|
'value': z.string(),
|
|
662
691
|
})]),
|
|
663
692
|
'effort': z.union([z.object({
|
|
664
|
-
'mode': z.union([z.literal("
|
|
693
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
665
694
|
}), z.object({
|
|
666
695
|
'mode': z.literal("value"),
|
|
667
696
|
'value': z.string(),
|
|
668
697
|
})]),
|
|
669
698
|
}),
|
|
670
699
|
}).optional(),
|
|
671
|
-
'operation': z.
|
|
700
|
+
'operation': z.object({
|
|
672
701
|
'revision': z.number(),
|
|
673
702
|
'requestId': z.string(),
|
|
674
703
|
'kind': z.union([z.literal("selection"), z.literal("cancel")]),
|
|
675
704
|
'selection': z.object({
|
|
676
705
|
'model': z.union([z.object({
|
|
677
|
-
'mode': z.union([z.literal("
|
|
706
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
678
707
|
}), z.object({
|
|
679
708
|
'mode': z.literal("value"),
|
|
680
709
|
'value': z.string(),
|
|
681
710
|
})]),
|
|
682
711
|
'effort': z.union([z.object({
|
|
683
|
-
'mode': z.union([z.literal("
|
|
712
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
684
713
|
}), z.object({
|
|
685
714
|
'mode': z.literal("value"),
|
|
686
715
|
'value': z.string(),
|
|
687
716
|
})]),
|
|
688
717
|
}),
|
|
689
|
-
}), z.object({
|
|
690
718
|
'previous': z.object({
|
|
691
719
|
'revision': z.number(),
|
|
692
720
|
'selection': z.object({
|
|
693
721
|
'model': z.union([z.object({
|
|
694
|
-
'mode': z.union([z.literal("
|
|
722
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
695
723
|
}), z.object({
|
|
696
724
|
'mode': z.literal("value"),
|
|
697
725
|
'value': z.string(),
|
|
698
726
|
})]),
|
|
699
727
|
'effort': z.union([z.object({
|
|
700
|
-
'mode': z.union([z.literal("
|
|
728
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
701
729
|
}), z.object({
|
|
702
730
|
'mode': z.literal("value"),
|
|
703
731
|
'value': z.string(),
|
|
@@ -708,21 +736,21 @@ const _khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_result$sc
|
|
|
708
736
|
'effort': z.string().optional(),
|
|
709
737
|
}),
|
|
710
738
|
}),
|
|
711
|
-
})
|
|
712
|
-
'status': z.union([z.literal("
|
|
739
|
+
}).optional(),
|
|
740
|
+
'status': z.union([z.literal("failed"), z.literal("pending"), z.literal("idle"), z.literal("applying"), z.literal("reconciling")]),
|
|
713
741
|
'round': z.object({
|
|
714
742
|
'id': z.string(),
|
|
715
743
|
'configuration': z.object({
|
|
716
744
|
'revision': z.number(),
|
|
717
745
|
'selection': z.object({
|
|
718
746
|
'model': z.union([z.object({
|
|
719
|
-
'mode': z.union([z.literal("
|
|
747
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
720
748
|
}), z.object({
|
|
721
749
|
'mode': z.literal("value"),
|
|
722
750
|
'value': z.string(),
|
|
723
751
|
})]),
|
|
724
752
|
'effort': z.union([z.object({
|
|
725
|
-
'mode': z.union([z.literal("
|
|
753
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
726
754
|
}), z.object({
|
|
727
755
|
'mode': z.literal("value"),
|
|
728
756
|
'value': z.string(),
|
|
@@ -733,19 +761,19 @@ const _khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_result$sc
|
|
|
733
761
|
'effort': z.string().optional(),
|
|
734
762
|
}),
|
|
735
763
|
}),
|
|
736
|
-
}).optional(),
|
|
764
|
+
}).optional().describe('Immutable configuration captured at admission, including tool continuation.'),
|
|
737
765
|
'lockedReason': z.string().optional(),
|
|
738
766
|
'frozen': z.object({
|
|
739
767
|
'revision': z.number(),
|
|
740
768
|
'selection': z.object({
|
|
741
769
|
'model': z.union([z.object({
|
|
742
|
-
'mode': z.union([z.literal("
|
|
770
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
743
771
|
}), z.object({
|
|
744
772
|
'mode': z.literal("value"),
|
|
745
773
|
'value': z.string(),
|
|
746
774
|
})]),
|
|
747
775
|
'effort': z.union([z.object({
|
|
748
|
-
'mode': z.union([z.literal("
|
|
776
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
749
777
|
}), z.object({
|
|
750
778
|
'mode': z.literal("value"),
|
|
751
779
|
'value': z.string(),
|
|
@@ -755,7 +783,7 @@ const _khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_result$sc
|
|
|
755
783
|
'model': z.string().optional(),
|
|
756
784
|
'effort': z.string().optional(),
|
|
757
785
|
}),
|
|
758
|
-
}).optional(),
|
|
786
|
+
}).optional().describe('First admitted configuration of a frozen evaluation; defaults cannot drift on resume.'),
|
|
759
787
|
'error': z.string().optional(),
|
|
760
788
|
}))
|
|
761
789
|
let _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_0$schema$value
|
|
@@ -764,7 +792,7 @@ let _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_1$sch
|
|
|
764
792
|
const _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_1$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_1$schema$value ??= z.boolean())
|
|
765
793
|
let _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_result$schema$value
|
|
766
794
|
const _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_result$schema$value ??= z.union([z.literal(null), z.object({
|
|
767
|
-
'status': z.union([z.literal("
|
|
795
|
+
'status': z.union([z.literal("ready"), z.literal("error"), z.literal("loading"), z.literal("stale"), z.literal("unsupported")]),
|
|
768
796
|
'refreshing': z.boolean(),
|
|
769
797
|
'revision': z.number(),
|
|
770
798
|
'refreshedAt': z.number().optional(),
|
|
@@ -773,7 +801,7 @@ const _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_result$schema
|
|
|
773
801
|
'label': z.string(),
|
|
774
802
|
'resolvedModel': z.string().optional(),
|
|
775
803
|
'description': z.string().optional(),
|
|
776
|
-
'source': z.union([z.literal("
|
|
804
|
+
'source': z.union([z.literal("history"), z.literal("configuration"), z.literal("native")]),
|
|
777
805
|
'hidden': z.boolean().optional(),
|
|
778
806
|
'reasoning': z.object({
|
|
779
807
|
'options': z.array(z.object({
|
|
@@ -785,7 +813,7 @@ const _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_result$schema
|
|
|
785
813
|
}).optional(),
|
|
786
814
|
})),
|
|
787
815
|
'defaultModel': z.string().optional(),
|
|
788
|
-
'complete': z.boolean(),
|
|
816
|
+
'complete': z.boolean().describe('Complete enumeration of this source, not a guarantee of account access.'),
|
|
789
817
|
'customInput': z.boolean(),
|
|
790
818
|
'unsupported': z.boolean().optional(),
|
|
791
819
|
'reason': z.string().optional(),
|
|
@@ -800,7 +828,7 @@ const _khorsheed_dsh_local_agent_localAgentGateway_memberInbox_result$schema = (
|
|
|
800
828
|
'messages': z.array(z.object({
|
|
801
829
|
'id': z.string(),
|
|
802
830
|
'text': z.string(),
|
|
803
|
-
'status': z.union([z.literal("
|
|
831
|
+
'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("done"), z.literal("queued"), z.literal("uncertain")]),
|
|
804
832
|
'createdAt': z.number(),
|
|
805
833
|
'updatedAt': z.number(),
|
|
806
834
|
'error': z.string().optional(),
|
|
@@ -812,18 +840,18 @@ let _khorsheed_dsh_local_agent_localAgentGateway_memberModel_result$schema$value
|
|
|
812
840
|
const _khorsheed_dsh_local_agent_localAgentGateway_memberModel_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_memberModel_result$schema$value ??= z.union([z.literal(null), z.object({
|
|
813
841
|
'configuration': z.object({
|
|
814
842
|
'memberId': z.string(),
|
|
815
|
-
'revision': z.number(),
|
|
843
|
+
'revision': z.number().describe('Monotonic intent revision, including cancellation.'),
|
|
816
844
|
'current': z.object({
|
|
817
845
|
'revision': z.number(),
|
|
818
846
|
'selection': z.object({
|
|
819
847
|
'model': z.union([z.object({
|
|
820
|
-
'mode': z.union([z.literal("
|
|
848
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
821
849
|
}), z.object({
|
|
822
850
|
'mode': z.literal("value"),
|
|
823
851
|
'value': z.string(),
|
|
824
852
|
})]),
|
|
825
853
|
'effort': z.union([z.object({
|
|
826
|
-
'mode': z.union([z.literal("
|
|
854
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
827
855
|
}), z.object({
|
|
828
856
|
'mode': z.literal("value"),
|
|
829
857
|
'value': z.string(),
|
|
@@ -840,49 +868,48 @@ const _khorsheed_dsh_local_agent_localAgentGateway_memberModel_result$schema = (
|
|
|
840
868
|
'kind': z.union([z.literal("selection"), z.literal("cancel")]),
|
|
841
869
|
'selection': z.object({
|
|
842
870
|
'model': z.union([z.object({
|
|
843
|
-
'mode': z.union([z.literal("
|
|
871
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
844
872
|
}), z.object({
|
|
845
873
|
'mode': z.literal("value"),
|
|
846
874
|
'value': z.string(),
|
|
847
875
|
})]),
|
|
848
876
|
'effort': z.union([z.object({
|
|
849
|
-
'mode': z.union([z.literal("
|
|
877
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
850
878
|
}), z.object({
|
|
851
879
|
'mode': z.literal("value"),
|
|
852
880
|
'value': z.string(),
|
|
853
881
|
})]),
|
|
854
882
|
}),
|
|
855
883
|
}).optional(),
|
|
856
|
-
'operation': z.
|
|
884
|
+
'operation': z.object({
|
|
857
885
|
'revision': z.number(),
|
|
858
886
|
'requestId': z.string(),
|
|
859
887
|
'kind': z.union([z.literal("selection"), z.literal("cancel")]),
|
|
860
888
|
'selection': z.object({
|
|
861
889
|
'model': z.union([z.object({
|
|
862
|
-
'mode': z.union([z.literal("
|
|
890
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
863
891
|
}), z.object({
|
|
864
892
|
'mode': z.literal("value"),
|
|
865
893
|
'value': z.string(),
|
|
866
894
|
})]),
|
|
867
895
|
'effort': z.union([z.object({
|
|
868
|
-
'mode': z.union([z.literal("
|
|
896
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
869
897
|
}), z.object({
|
|
870
898
|
'mode': z.literal("value"),
|
|
871
899
|
'value': z.string(),
|
|
872
900
|
})]),
|
|
873
901
|
}),
|
|
874
|
-
}), z.object({
|
|
875
902
|
'previous': z.object({
|
|
876
903
|
'revision': z.number(),
|
|
877
904
|
'selection': z.object({
|
|
878
905
|
'model': z.union([z.object({
|
|
879
|
-
'mode': z.union([z.literal("
|
|
906
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
880
907
|
}), z.object({
|
|
881
908
|
'mode': z.literal("value"),
|
|
882
909
|
'value': z.string(),
|
|
883
910
|
})]),
|
|
884
911
|
'effort': z.union([z.object({
|
|
885
|
-
'mode': z.union([z.literal("
|
|
912
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
886
913
|
}), z.object({
|
|
887
914
|
'mode': z.literal("value"),
|
|
888
915
|
'value': z.string(),
|
|
@@ -893,21 +920,21 @@ const _khorsheed_dsh_local_agent_localAgentGateway_memberModel_result$schema = (
|
|
|
893
920
|
'effort': z.string().optional(),
|
|
894
921
|
}),
|
|
895
922
|
}),
|
|
896
|
-
})
|
|
897
|
-
'status': z.union([z.literal("
|
|
923
|
+
}).optional(),
|
|
924
|
+
'status': z.union([z.literal("failed"), z.literal("pending"), z.literal("idle"), z.literal("applying"), z.literal("reconciling")]),
|
|
898
925
|
'round': z.object({
|
|
899
926
|
'id': z.string(),
|
|
900
927
|
'configuration': z.object({
|
|
901
928
|
'revision': z.number(),
|
|
902
929
|
'selection': z.object({
|
|
903
930
|
'model': z.union([z.object({
|
|
904
|
-
'mode': z.union([z.literal("
|
|
931
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
905
932
|
}), z.object({
|
|
906
933
|
'mode': z.literal("value"),
|
|
907
934
|
'value': z.string(),
|
|
908
935
|
})]),
|
|
909
936
|
'effort': z.union([z.object({
|
|
910
|
-
'mode': z.union([z.literal("
|
|
937
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
911
938
|
}), z.object({
|
|
912
939
|
'mode': z.literal("value"),
|
|
913
940
|
'value': z.string(),
|
|
@@ -918,19 +945,19 @@ const _khorsheed_dsh_local_agent_localAgentGateway_memberModel_result$schema = (
|
|
|
918
945
|
'effort': z.string().optional(),
|
|
919
946
|
}),
|
|
920
947
|
}),
|
|
921
|
-
}).optional(),
|
|
948
|
+
}).optional().describe('Immutable configuration captured at admission, including tool continuation.'),
|
|
922
949
|
'lockedReason': z.string().optional(),
|
|
923
950
|
'frozen': z.object({
|
|
924
951
|
'revision': z.number(),
|
|
925
952
|
'selection': z.object({
|
|
926
953
|
'model': z.union([z.object({
|
|
927
|
-
'mode': z.union([z.literal("
|
|
954
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
928
955
|
}), z.object({
|
|
929
956
|
'mode': z.literal("value"),
|
|
930
957
|
'value': z.string(),
|
|
931
958
|
})]),
|
|
932
959
|
'effort': z.union([z.object({
|
|
933
|
-
'mode': z.union([z.literal("
|
|
960
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
934
961
|
}), z.object({
|
|
935
962
|
'mode': z.literal("value"),
|
|
936
963
|
'value': z.string(),
|
|
@@ -940,19 +967,19 @@ const _khorsheed_dsh_local_agent_localAgentGateway_memberModel_result$schema = (
|
|
|
940
967
|
'model': z.string().optional(),
|
|
941
968
|
'effort': z.string().optional(),
|
|
942
969
|
}),
|
|
943
|
-
}).optional(),
|
|
970
|
+
}).optional().describe('First admitted configuration of a frozen evaluation; defaults cannot drift on resume.'),
|
|
944
971
|
'error': z.string().optional(),
|
|
945
|
-
}).optional(),
|
|
946
|
-
'effective': z.string().optional(),
|
|
947
|
-
'source': z.union([z.literal("override"), z.literal("delegation"), z.literal("settings"), z.literal("cli-config"), z.literal("cli-builtin")]),
|
|
948
|
-
'override': z.string().optional(),
|
|
949
|
-
'delegation': z.string().optional(),
|
|
950
|
-
'settings': z.string().optional(),
|
|
951
|
-
'cliDefault': z.string().optional(),
|
|
952
|
-
'lastObserved': z.string().optional(),
|
|
953
|
-
'choices': z.array(z.string()),
|
|
972
|
+
}).optional().describe('Durable current/pending selection, shared by every member entry point.'),
|
|
973
|
+
'effective': z.string().optional().describe('The model the next round would actually run with, when any layer names one.'),
|
|
974
|
+
'source': z.union([z.literal("override"), z.literal("delegation"), z.literal("settings"), z.literal("cli-config"), z.literal("cli-builtin")]).describe('Which layer {@link LocalAgentModelInfo.effective} came from.'),
|
|
975
|
+
'override': z.string().optional().describe('The session-level override, when one is active for the member.'),
|
|
976
|
+
'delegation': z.string().optional().describe('The delegation\'s recorded model, when the delegation named one.'),
|
|
977
|
+
'settings': z.string().optional().describe('The harness\'s plugin-config `model`, when the settings layer sets one.'),
|
|
978
|
+
'cliDefault': z.string().optional().describe('The scoped config file\'s own default model, when the file names one.'),
|
|
979
|
+
'lastObserved': z.string().optional().describe('The most recent model the provider was OBSERVED running (the delegation records\' {@link LocalAgentDelegationRecord.observedModel}), filled by the core gateway when the broker itself names none. Display context for the cli-builtin layer: the CLI\'s compiled default names nothing, but "what ran last time" is exactly what a member still on that default would run again — so surfaces show it as the last-observed hint, never as {@link LocalAgentModelInfo.effective} (an observation is not a layer).'),
|
|
980
|
+
'choices': z.array(z.string()).describe('The pickable model identifiers (deduped; empty when nothing names a model). The core gateway appends {@link LocalAgentModelInfo.lastObserved} as the final entry when no broker choice already lists it, so a member that only ever ran its CLI default still has a one-item menu.'),
|
|
954
981
|
'directory': z.object({
|
|
955
|
-
'status': z.union([z.literal("
|
|
982
|
+
'status': z.union([z.literal("ready"), z.literal("error"), z.literal("loading"), z.literal("stale"), z.literal("unsupported")]),
|
|
956
983
|
'refreshing': z.boolean(),
|
|
957
984
|
'revision': z.number(),
|
|
958
985
|
'refreshedAt': z.number().optional(),
|
|
@@ -961,7 +988,7 @@ const _khorsheed_dsh_local_agent_localAgentGateway_memberModel_result$schema = (
|
|
|
961
988
|
'label': z.string(),
|
|
962
989
|
'resolvedModel': z.string().optional(),
|
|
963
990
|
'description': z.string().optional(),
|
|
964
|
-
'source': z.union([z.literal("
|
|
991
|
+
'source': z.union([z.literal("history"), z.literal("configuration"), z.literal("native")]),
|
|
965
992
|
'hidden': z.boolean().optional(),
|
|
966
993
|
'reasoning': z.object({
|
|
967
994
|
'options': z.array(z.object({
|
|
@@ -973,23 +1000,23 @@ const _khorsheed_dsh_local_agent_localAgentGateway_memberModel_result$schema = (
|
|
|
973
1000
|
}).optional(),
|
|
974
1001
|
})),
|
|
975
1002
|
'defaultModel': z.string().optional(),
|
|
976
|
-
'complete': z.boolean(),
|
|
1003
|
+
'complete': z.boolean().describe('Complete enumeration of this source, not a guarantee of account access.'),
|
|
977
1004
|
'customInput': z.boolean(),
|
|
978
1005
|
'unsupported': z.boolean().optional(),
|
|
979
1006
|
'reason': z.string().optional(),
|
|
980
|
-
}).optional(),
|
|
981
|
-
'live': z.boolean(),
|
|
982
|
-
'switchable': z.boolean(),
|
|
983
|
-
'reason': z.string().optional(),
|
|
1007
|
+
}).optional().describe('Rich, source-labelled directory; choices remains the legacy read face.'),
|
|
1008
|
+
'live': z.boolean().describe('Whether the harness\'s live driver is on for the member\'s rounds.'),
|
|
1009
|
+
'switchable': z.boolean().describe('False while a round is in flight for the member: a model switch retires the member\'s resident runtime so the NEXT round respawns with the new model, and retiring a runtime mid-round would kill the run.'),
|
|
1010
|
+
'reason': z.string().optional().describe('Why a switch is currently refused, when {@link LocalAgentModelInfo.switchable} is false.'),
|
|
984
1011
|
})]))
|
|
985
1012
|
let _khorsheed_dsh_local_agent_localAgentGateway_memberOf_parameter_0$schema$value
|
|
986
1013
|
const _khorsheed_dsh_local_agent_localAgentGateway_memberOf_parameter_0$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_memberOf_parameter_0$schema$value ??= z.string())
|
|
987
1014
|
let _khorsheed_dsh_local_agent_localAgentGateway_memberOf_result$schema$value
|
|
988
1015
|
const _khorsheed_dsh_local_agent_localAgentGateway_memberOf_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_memberOf_result$schema$value ??= z.union([z.literal(null), z.object({
|
|
989
|
-
'childSessionId': z.string(),
|
|
990
|
-
'provider': z.string(),
|
|
991
|
-
'parentSessionId': z.string(),
|
|
992
|
-
'harnessDisplayName': z.string().optional(),
|
|
1016
|
+
'childSessionId': z.string().describe('The dsh subagent child session id.'),
|
|
1017
|
+
'provider': z.string().describe('The `ctx.subagents` provider name that owns the CLI session.'),
|
|
1018
|
+
'parentSessionId': z.string().describe('The delegating parent session id that created the child.'),
|
|
1019
|
+
'harnessDisplayName': z.string().optional().describe('The owning harness\'s human display name, when a harness claims the provider.'),
|
|
993
1020
|
})]))
|
|
994
1021
|
let _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_0$schema$value
|
|
995
1022
|
const _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_0$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_0$schema$value ??= z.string())
|
|
@@ -999,7 +1026,7 @@ let _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_2$sche
|
|
|
999
1026
|
const _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_2$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_2$schema$value ??= z.boolean())
|
|
1000
1027
|
let _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_result$schema$value
|
|
1001
1028
|
const _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_result$schema$value ??= z.union([z.literal(null), z.object({
|
|
1002
|
-
'status': z.union([z.literal("
|
|
1029
|
+
'status': z.union([z.literal("ready"), z.literal("error"), z.literal("loading"), z.literal("stale"), z.literal("unsupported")]),
|
|
1003
1030
|
'refreshing': z.boolean(),
|
|
1004
1031
|
'revision': z.number(),
|
|
1005
1032
|
'refreshedAt': z.number().optional(),
|
|
@@ -1008,7 +1035,7 @@ const _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_result$schema
|
|
|
1008
1035
|
'label': z.string(),
|
|
1009
1036
|
'resolvedModel': z.string().optional(),
|
|
1010
1037
|
'description': z.string().optional(),
|
|
1011
|
-
'source': z.union([z.literal("
|
|
1038
|
+
'source': z.union([z.literal("history"), z.literal("configuration"), z.literal("native")]),
|
|
1012
1039
|
'hidden': z.boolean().optional(),
|
|
1013
1040
|
'reasoning': z.object({
|
|
1014
1041
|
'options': z.array(z.object({
|
|
@@ -1020,11 +1047,15 @@ const _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_result$schema
|
|
|
1020
1047
|
}).optional(),
|
|
1021
1048
|
})),
|
|
1022
1049
|
'defaultModel': z.string().optional(),
|
|
1023
|
-
'complete': z.boolean(),
|
|
1050
|
+
'complete': z.boolean().describe('Complete enumeration of this source, not a guarantee of account access.'),
|
|
1024
1051
|
'customInput': z.boolean(),
|
|
1025
1052
|
'unsupported': z.boolean().optional(),
|
|
1026
1053
|
'reason': z.string().optional(),
|
|
1027
1054
|
})]))
|
|
1055
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_modelList_parameter_0$schema$value
|
|
1056
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_modelList_parameter_0$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_modelList_parameter_0$schema$value ??= z.string())
|
|
1057
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_modelList_result$schema$value
|
|
1058
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_modelList_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_modelList_result$schema$value ??= z.union([z.literal(null), z.array(z.string())]))
|
|
1028
1059
|
let _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_0$schema$value
|
|
1029
1060
|
const _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_0$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_0$schema$value ??= z.string())
|
|
1030
1061
|
let _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_1$schema$value
|
|
@@ -1047,8 +1078,8 @@ let _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_result
|
|
|
1047
1078
|
const _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_result$schema$value ??= z.void())
|
|
1048
1079
|
let _khorsheed_dsh_local_agent_localAgentGateway_roster_result$schema$value
|
|
1049
1080
|
const _khorsheed_dsh_local_agent_localAgentGateway_roster_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_roster_result$schema$value ??= z.array(z.object({
|
|
1050
|
-
'name': z.string(),
|
|
1051
|
-
'displayName': z.string(),
|
|
1081
|
+
'name': z.string().describe('Harness command prefix.'),
|
|
1082
|
+
'displayName': z.string().describe('Human display name.'),
|
|
1052
1083
|
})))
|
|
1053
1084
|
let _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_0$schema$value
|
|
1054
1085
|
const _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_0$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_0$schema$value ??= z.string())
|
|
@@ -1059,13 +1090,13 @@ const _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_par
|
|
|
1059
1090
|
let _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_3$schema$value
|
|
1060
1091
|
const _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_3$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_3$schema$value ??= z.object({
|
|
1061
1092
|
'model': z.union([z.object({
|
|
1062
|
-
'mode': z.union([z.literal("
|
|
1093
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
1063
1094
|
}), z.object({
|
|
1064
1095
|
'mode': z.literal("value"),
|
|
1065
1096
|
'value': z.string(),
|
|
1066
1097
|
})]),
|
|
1067
1098
|
'effort': z.union([z.object({
|
|
1068
|
-
'mode': z.union([z.literal("
|
|
1099
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
1069
1100
|
}), z.object({
|
|
1070
1101
|
'mode': z.literal("value"),
|
|
1071
1102
|
'value': z.string(),
|
|
@@ -1075,7 +1106,7 @@ let _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_resul
|
|
|
1075
1106
|
const _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_result$schema$value ??= z.object({
|
|
1076
1107
|
'requestId': z.string(),
|
|
1077
1108
|
'revision': z.number(),
|
|
1078
|
-
'status': z.union([z.literal("
|
|
1109
|
+
'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("pending"), z.literal("applied"), z.literal("conflict"), z.literal("unsupported"), z.literal("locked"), z.literal("applying")]),
|
|
1079
1110
|
'error': z.string().optional(),
|
|
1080
1111
|
}))
|
|
1081
1112
|
let _khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_0$schema$value
|
|
@@ -1084,10 +1115,10 @@ let _khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_1$schema$val
|
|
|
1084
1115
|
const _khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_1$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_1$schema$value ??= z.union([z.undefined(), z.string()]))
|
|
1085
1116
|
let _khorsheed_dsh_local_agent_localAgentGateway_sessions_result$schema$value
|
|
1086
1117
|
const _khorsheed_dsh_local_agent_localAgentGateway_sessions_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_sessions_result$schema$value ??= z.array(z.object({
|
|
1087
|
-
'id': z.string(),
|
|
1088
|
-
'workDir': z.string(),
|
|
1089
|
-
'title': z.string().optional(),
|
|
1090
|
-
'startedAt': z.number().optional(),
|
|
1118
|
+
'id': z.string().describe('Harness session id.'),
|
|
1119
|
+
'workDir': z.string().describe('The workspace directory the session ran in.'),
|
|
1120
|
+
'title': z.string().optional().describe('Optional session title when the harness records one.'),
|
|
1121
|
+
'startedAt': z.number().optional().describe('Optional epoch-millis start time when the harness records one.'),
|
|
1091
1122
|
})))
|
|
1092
1123
|
let _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_0$schema$value
|
|
1093
1124
|
const _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_0$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_0$schema$value ??= z.string())
|
|
@@ -1107,45 +1138,154 @@ let _khorsheed_dsh_local_agent_localAgentGateway_status_parameter_1$schema$value
|
|
|
1107
1138
|
const _khorsheed_dsh_local_agent_localAgentGateway_status_parameter_1$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_status_parameter_1$schema$value ??= z.union([z.undefined(), z.string()]))
|
|
1108
1139
|
let _khorsheed_dsh_local_agent_localAgentGateway_status_result$schema$value
|
|
1109
1140
|
const _khorsheed_dsh_local_agent_localAgentGateway_status_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_status_result$schema$value ??= z.object({
|
|
1110
|
-
'name': z.string(),
|
|
1111
|
-
'displayName': z.string(),
|
|
1112
|
-
'authenticated': z.boolean(),
|
|
1113
|
-
'credentialState': z.union([z.literal("
|
|
1114
|
-
'homeDir': z.string(),
|
|
1115
|
-
'scope': z.string().optional(),
|
|
1116
|
-
'delegationProvider': z.string().optional(),
|
|
1117
|
-
'loginable': z.boolean().optional(),
|
|
1118
|
-
'loginAwaitingCode': z.boolean().optional(),
|
|
1119
|
-
'logoutable': z.boolean().optional(),
|
|
1141
|
+
'name': z.string().describe('Harness command prefix.'),
|
|
1142
|
+
'displayName': z.string().describe('Human display name.'),
|
|
1143
|
+
'authenticated': z.boolean().describe('Whether the scoped home holds usable credentials — the SHAPE answer, kept for every surface written before {@link LocalAgentCredentialState} existed. Exactly `credentialState === \'verified\' || \'present-unverified\'`: a record that is present but never exercised still reads true, which is why the finer field exists.'),
|
|
1144
|
+
'credentialState': z.union([z.literal("rejected"), z.literal("absent"), z.literal("present-unverified"), z.literal("verified")]).describe('How much is actually known about the credential — the liveness grade behind {@link LocalAgentStatus.authenticated}. Always present.'),
|
|
1145
|
+
'homeDir': z.string().describe('Absolute scoped home — of the SCOPE this status was asked about (see {@link LocalAgentStatus.scope}), which for the default scope is the directory it always was.'),
|
|
1146
|
+
'scope': z.string().optional().describe('The named scope this status describes, when it describes one. Absent means the default scope — the only one that existed before named scopes, so every surface written before the field keeps reading exactly what it read. A named scope holds its own account: its credential grade, its session records and its delegation mappings are its own.'),
|
|
1147
|
+
'delegationProvider': z.string().optional().describe('Subagent provider name, when the harness delegates.'),
|
|
1148
|
+
'loginable': z.boolean().optional().describe('Whether the harness declares a device-code login flow (`/<name> login`). A harness without one authenticates through the host instance (e.g. by resolving a credential), so surfaces must not offer a login action.'),
|
|
1149
|
+
'loginAwaitingCode': z.boolean().optional().describe('A pty login is waiting for the user to paste the OAuth code (`/<name> code <value>`). Surfaces render the paste box while set.'),
|
|
1150
|
+
'logoutable': z.boolean().optional().describe('Whether the harness declares a sign-out path (`/<name> logout`). A harness without one has no account to switch, so surfaces must not offer a logout action.'),
|
|
1120
1151
|
'effectiveSettings': z.object({
|
|
1121
|
-
'drive': z.union([z.literal("
|
|
1122
|
-
'sandbox': z.string().optional(),
|
|
1123
|
-
'permissionMode': z.string().optional(),
|
|
1124
|
-
'autoApprove': z.boolean().optional(),
|
|
1125
|
-
'reasoningEffort': z.string().optional(),
|
|
1126
|
-
'baseUrlSet': z.boolean(),
|
|
1127
|
-
'baseUrlHost': z.string().optional(),
|
|
1128
|
-
'cliVersion': z.string().optional(),
|
|
1129
|
-
'model': z.string().optional(),
|
|
1130
|
-
'containerNodeOptions': z.string().optional(),
|
|
1131
|
-
}).optional(),
|
|
1152
|
+
'drive': z.union([z.literal("live"), z.literal("exec")]).describe('How delegation rounds run: a one-shot CLI process per round (`exec`) or a resident runtime driven over its wire (`live`). The reported value is the configured driver preference in force; a live round may still fall back to exec when its channel cannot come up.'),
|
|
1153
|
+
'sandbox': z.string().optional().describe('The file-effect boundary in force, in the harness\'s own vocabulary. Codex: the sandbox policy every round passes to `codex exec --sandbox`. dsh: the permission preset provisioning pins into the sub-profile (`read-only` / `workspace-write` / `danger-full-access`), which also decides the sub-dsh\'s approval policy through dsh-base\'s own preset table. Absent when the deployment pins none.'),
|
|
1154
|
+
'permissionMode': z.string().optional().describe('Claude Code: the `claude -p` permission handling (`skip` or `normal`).'),
|
|
1155
|
+
'autoApprove': z.boolean().optional().describe('Kimi: whether the scoped config\'s permission rules auto-approve tool use (the `Bash(*)` allow rule the provisioning gate keys on).'),
|
|
1156
|
+
'reasoningEffort': z.string().optional().describe('The reasoning effort in force, when the harness has one. Kimi reads its scoped config (`[thinking] effort`, falling back to the model\'s `default_effort`); codex reads its scoped config\'s `model_reasoning_effort`. Absent when the harness exposes no effort knob.'),
|
|
1157
|
+
'baseUrlSet': z.boolean().describe('Whether a non-default endpoint is in force (a provider-pinned or env-provided base URL).'),
|
|
1158
|
+
'baseUrlHost': z.string().optional().describe('The endpoint\'s HOSTNAME only, present exactly when `baseUrlSet`. Never the full URL — its path can carry credential-adjacent segments.'),
|
|
1159
|
+
'cliVersion': z.string().optional().describe('The CLI\'s own version, as the CLI itself reports it — the version a delegation round would run with right now. Resolved by the family\'s `<cli> --version` probe, which spawns at most once per executable identity (resolved path + mtime + size) and is therefore cheap enough for a status read while still re-probing across an upgrade. Absent when the CLI cannot be asked (not installed, non-zero exit, timeout, no version-shaped token in its banner) — absence is the honest condition input, never a substituted guess.'),
|
|
1160
|
+
'model': z.string().optional().describe('The configured model identifier a delegation round would run with — read in one fixed order, never guessed: the harness\'s OWN `model` plugin-config key first (codex, claude-code, and kimi each accept one, and a set key rides every round\'s CLI launch), then the harness\'s scoped configuration surface (kimi\'s `default_model`, codex\'s `model`, claude-code\'s `settings.json` `model`, dsh\'s host `agentDefaultModel` selection formatted `provider/model` — the CLI\'s own default stays unnamed), then absent. Absence is the honest answer, never a substituted default. This deliberately does NOT report a delegation-level model ({@link DelegationCallOptions.model}): that one belongs to one delegation, while this field answers "what would a round with no model of its own run" — the harness-wide setting, which is what the evaluation\'s condition snapshot is asking about. This is a LIVE read of what the NEXT such round would run with. A run\'s condition hash freezes it at run setup, so changing the key mid-run does not rewrite the recorded condition — the next round\'s model read-back fails the run as misattributed instead (web-eval frozen decision 5).'),
|
|
1161
|
+
'containerNodeOptions': z.string().optional().describe('Extra `NODE_OPTIONS` the harness injects when a round runs against a container exec target ({@link DelegationExecTarget}). Only the dsh harness declares one: its HTTP client is node\'s `fetch` (undici), which does not read `HTTP(S)_PROXY` by default, so a round inside a unit whose only egress is a whitelist proxy needs `--use-env-proxy` to open undici\'s `EnvHttpProxyAgent` — without it the CLI dials the API directly and the proxy never even sees a `CONNECT`. Reported unconditionally because the injection is unconditional in code; absent means the harness injects none. Never a credential — a node flag.'),
|
|
1162
|
+
}).optional().describe('The harness\'s fairness-relevant effective settings, when the harness declares a snapshot ({@link LocalAgentHarness.effectiveSettings}). Additive: surfaces and clients written before the field simply ignore it.'),
|
|
1132
1163
|
}))
|
|
1133
1164
|
let _khorsheed_dsh_local_agent_localAgentGateway_stopMember_parameter_0$schema$value
|
|
1134
1165
|
const _khorsheed_dsh_local_agent_localAgentGateway_stopMember_parameter_0$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_stopMember_parameter_0$schema$value ??= z.string())
|
|
1135
1166
|
let _khorsheed_dsh_local_agent_localAgentGateway_stopMember_result$schema$value
|
|
1136
1167
|
const _khorsheed_dsh_local_agent_localAgentGateway_stopMember_result$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_stopMember_result$schema$value ??= z.boolean())
|
|
1168
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_0_strict$schema$value
|
|
1169
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_0_strict$schema$value ??= z.string())
|
|
1170
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_1_strict$schema$value
|
|
1171
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_1_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_1_strict$schema$value ??= z.string())
|
|
1172
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_2_strict$schema$value
|
|
1173
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_2_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_2_strict$schema$value ??= z.number())
|
|
1174
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_checkEndpoint_parameter_0_strict$schema$value
|
|
1175
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_checkEndpoint_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_checkEndpoint_parameter_0_strict$schema$value ??= z.string())
|
|
1176
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_0_strict$schema$value
|
|
1177
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_0_strict$schema$value ??= z.string())
|
|
1178
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_1_strict$schema$value
|
|
1179
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_1_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_1_strict$schema$value ??= z.strictObject({
|
|
1180
|
+
'baseUrl': z.union([z.literal(null), z.string()]).readonly().optional(),
|
|
1181
|
+
'apiKey': z.union([z.literal(null), z.string()]).readonly().optional(),
|
|
1182
|
+
'authToken': z.union([z.literal(null), z.string()]).readonly().optional(),
|
|
1183
|
+
}))
|
|
1184
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_0_strict$schema$value
|
|
1185
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_0_strict$schema$value ??= z.string())
|
|
1186
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_1_strict$schema$value
|
|
1187
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_1_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_1_strict$schema$value ??= z.array(z.string()))
|
|
1188
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_0_strict$schema$value
|
|
1189
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_0_strict$schema$value ??= z.string())
|
|
1190
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_1_strict$schema$value
|
|
1191
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_1_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_1_strict$schema$value ??= z.union([z.literal("cancel"), z.literal("pause"), z.literal("resume"), z.literal("reconcile")]))
|
|
1192
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_2_strict$schema$value
|
|
1193
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_2_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_2_strict$schema$value ??= z.union([z.undefined(), z.string()]))
|
|
1194
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_3_strict$schema$value
|
|
1195
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_3_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_3_strict$schema$value ??= z.union([z.undefined(), z.literal("cancelled"), z.literal("done")]))
|
|
1196
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_4_strict$schema$value
|
|
1197
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_4_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_4_strict$schema$value ??= z.union([z.undefined(), z.string()]))
|
|
1198
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_endpointAuth_parameter_0_strict$schema$value
|
|
1199
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_endpointAuth_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_endpointAuth_parameter_0_strict$schema$value ??= z.string())
|
|
1200
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_parameter_0_strict$schema$value
|
|
1201
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_parameter_0_strict$schema$value ??= z.string())
|
|
1202
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_parameter_0_strict$schema$value
|
|
1203
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_parameter_0_strict$schema$value ??= z.string())
|
|
1204
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_followMemberOutput_parameter_0_strict$schema$value
|
|
1205
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_followMemberOutput_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_followMemberOutput_parameter_0_strict$schema$value ??= z.string())
|
|
1206
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_followMembers_parameter_0_strict$schema$value
|
|
1207
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_followMembers_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_followMembers_parameter_0_strict$schema$value ??= z.array(z.strictObject({
|
|
1208
|
+
'memberId': z.string(),
|
|
1209
|
+
'channel': z.union([z.literal("output"), z.literal("directory"), z.literal("configuration")]),
|
|
1210
|
+
})))
|
|
1211
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_0_strict$schema$value
|
|
1212
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_0_strict$schema$value ??= z.string())
|
|
1213
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_1_strict$schema$value
|
|
1214
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_1_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_1_strict$schema$value ??= z.union([z.undefined(), z.string()]))
|
|
1215
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_harnessModel_parameter_0_strict$schema$value
|
|
1216
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_harnessModel_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_harnessModel_parameter_0_strict$schema$value ??= z.string())
|
|
1217
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_parameter_0_strict$schema$value
|
|
1218
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_parameter_0_strict$schema$value ??= z.string())
|
|
1219
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_0_strict$schema$value
|
|
1220
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_0_strict$schema$value ??= z.string())
|
|
1221
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_1_strict$schema$value
|
|
1222
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_1_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_1_strict$schema$value ??= z.boolean())
|
|
1223
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_memberInbox_parameter_0_strict$schema$value
|
|
1224
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_memberInbox_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_memberInbox_parameter_0_strict$schema$value ??= z.string())
|
|
1225
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_memberModel_parameter_0_strict$schema$value
|
|
1226
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_memberModel_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_memberModel_parameter_0_strict$schema$value ??= z.string())
|
|
1227
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_memberOf_parameter_0_strict$schema$value
|
|
1228
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_memberOf_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_memberOf_parameter_0_strict$schema$value ??= z.string())
|
|
1229
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_0_strict$schema$value
|
|
1230
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_0_strict$schema$value ??= z.string())
|
|
1231
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_1_strict$schema$value
|
|
1232
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_1_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_1_strict$schema$value ??= z.union([z.undefined(), z.string()]))
|
|
1233
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_2_strict$schema$value
|
|
1234
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_2_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_2_strict$schema$value ??= z.boolean())
|
|
1235
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_modelList_parameter_0_strict$schema$value
|
|
1236
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_modelList_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_modelList_parameter_0_strict$schema$value ??= z.string())
|
|
1237
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_0_strict$schema$value
|
|
1238
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_0_strict$schema$value ??= z.string())
|
|
1239
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_1_strict$schema$value
|
|
1240
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_1_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_1_strict$schema$value ??= z.string())
|
|
1241
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_2_strict$schema$value
|
|
1242
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_2_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_2_strict$schema$value ??= z.union([z.undefined(), z.string()]))
|
|
1243
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_parameter_0_strict$schema$value
|
|
1244
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_parameter_0_strict$schema$value ??= z.string())
|
|
1245
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_parameter_1_strict$schema$value
|
|
1246
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_parameter_1_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_parameter_1_strict$schema$value ??= z.number())
|
|
1247
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_0_strict$schema$value
|
|
1248
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_0_strict$schema$value ??= z.string())
|
|
1249
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_1_strict$schema$value
|
|
1250
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_1_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_1_strict$schema$value ??= z.string())
|
|
1251
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_2_strict$schema$value
|
|
1252
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_2_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_2_strict$schema$value ??= z.number())
|
|
1253
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_3_strict$schema$value
|
|
1254
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_3_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_3_strict$schema$value ??= z.strictObject({
|
|
1255
|
+
'model': z.union([z.strictObject({
|
|
1256
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
1257
|
+
}), z.strictObject({
|
|
1258
|
+
'mode': z.literal("value"),
|
|
1259
|
+
'value': z.string(),
|
|
1260
|
+
})]),
|
|
1261
|
+
'effort': z.union([z.strictObject({
|
|
1262
|
+
'mode': z.union([z.literal("default"), z.literal("inherit")]),
|
|
1263
|
+
}), z.strictObject({
|
|
1264
|
+
'mode': z.literal("value"),
|
|
1265
|
+
'value': z.string(),
|
|
1266
|
+
})]),
|
|
1267
|
+
}))
|
|
1268
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_0_strict$schema$value
|
|
1269
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_0_strict$schema$value ??= z.string())
|
|
1270
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_1_strict$schema$value
|
|
1271
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_1_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_1_strict$schema$value ??= z.union([z.undefined(), z.string()]))
|
|
1272
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_0_strict$schema$value
|
|
1273
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_0_strict$schema$value ??= z.string())
|
|
1274
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_1_strict$schema$value
|
|
1275
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_1_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_1_strict$schema$value ??= z.union([z.undefined(), z.string()]))
|
|
1276
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_status_parameter_0_strict$schema$value
|
|
1277
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_status_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_status_parameter_0_strict$schema$value ??= z.string())
|
|
1278
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_status_parameter_1_strict$schema$value
|
|
1279
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_status_parameter_1_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_status_parameter_1_strict$schema$value ??= z.union([z.undefined(), z.string()]))
|
|
1280
|
+
let _khorsheed_dsh_local_agent_localAgentGateway_stopMember_parameter_0_strict$schema$value
|
|
1281
|
+
const _khorsheed_dsh_local_agent_localAgentGateway_stopMember_parameter_0_strict$schema = () => (_khorsheed_dsh_local_agent_localAgentGateway_stopMember_parameter_0_strict$schema$value ??= z.string())
|
|
1137
1282
|
|
|
1138
|
-
|
|
1283
|
+
const $remote = createTypertRemoteInfo({
|
|
1139
1284
|
package: '@khorsheed/dsh-local-agent',
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
],
|
|
1143
|
-
invocations: [
|
|
1144
|
-
{
|
|
1145
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/activeDelegations',
|
|
1285
|
+
methods: {
|
|
1286
|
+
'localAgentGateway/activeDelegations': {
|
|
1146
1287
|
service: 'localAgentGateway',
|
|
1147
|
-
|
|
1148
|
-
method: 'activeDelegations',
|
|
1288
|
+
description: 'The child session ids with an in-flight delegation run (the active-delegation registry\'s key set). Surfaces that render one-shot subagent rows poll this to mark a row as actually running — the official session summary\'s `running` flag is agent-based and stays false for external CLI one-shots, which have no live agent — and to offer the stop verb that dispatches `/local-agent stop <childSessionId>`.',
|
|
1149
1289
|
invocation: { kind: 'direct' },
|
|
1150
1290
|
parameters: [
|
|
1151
1291
|
],
|
|
@@ -1154,47 +1294,67 @@ export const TYPERT = {
|
|
|
1154
1294
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/activeDelegations:result',
|
|
1155
1295
|
create: _khorsheed_dsh_local_agent_localAgentGateway_activeDelegations_result$schema,
|
|
1156
1296
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_activeDelegations_result$schema(),
|
|
1297
|
+
description: 'the in-flight child session ids.',
|
|
1298
|
+
jsonSchema: {"type":"array","items":{"type":"string"}},
|
|
1157
1299
|
},
|
|
1158
1300
|
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":173,"column":3},
|
|
1159
1301
|
},
|
|
1160
|
-
{
|
|
1161
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/cancelMemberConfiguration',
|
|
1302
|
+
'localAgentGateway/cancelMemberConfiguration': {
|
|
1162
1303
|
service: 'localAgentGateway',
|
|
1163
|
-
namespace: 'localAgentGateway',
|
|
1164
|
-
method: 'cancelMemberConfiguration',
|
|
1165
1304
|
invocation: { kind: 'direct' },
|
|
1166
1305
|
parameters: [
|
|
1167
1306
|
{
|
|
1168
1307
|
name: 'childSessionId',
|
|
1169
|
-
wire: 'childSessionId',
|
|
1170
1308
|
source: 'json',
|
|
1171
1309
|
codec: {
|
|
1172
1310
|
mode: 'strict',
|
|
1173
1311
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/cancelMemberConfiguration:childSessionId',
|
|
1174
1312
|
create: _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_0$schema,
|
|
1175
1313
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_0$schema(),
|
|
1314
|
+
jsonSchema: {"type":"string"},
|
|
1315
|
+
},
|
|
1316
|
+
strictCodec: {
|
|
1317
|
+
mode: 'strict',
|
|
1318
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/cancelMemberConfiguration:childSessionId',
|
|
1319
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_0_strict$schema,
|
|
1320
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_0_strict$schema(),
|
|
1321
|
+
jsonSchema: {"type":"string"},
|
|
1176
1322
|
},
|
|
1177
1323
|
},
|
|
1178
1324
|
{
|
|
1179
1325
|
name: 'requestId',
|
|
1180
|
-
wire: 'requestId',
|
|
1181
1326
|
source: 'json',
|
|
1182
1327
|
codec: {
|
|
1183
1328
|
mode: 'strict',
|
|
1184
1329
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/cancelMemberConfiguration:requestId',
|
|
1185
1330
|
create: _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_1$schema,
|
|
1186
1331
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_1$schema(),
|
|
1332
|
+
jsonSchema: {"type":"string"},
|
|
1333
|
+
},
|
|
1334
|
+
strictCodec: {
|
|
1335
|
+
mode: 'strict',
|
|
1336
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/cancelMemberConfiguration:requestId',
|
|
1337
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_1_strict$schema,
|
|
1338
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_1_strict$schema(),
|
|
1339
|
+
jsonSchema: {"type":"string"},
|
|
1187
1340
|
},
|
|
1188
1341
|
},
|
|
1189
1342
|
{
|
|
1190
1343
|
name: 'expectedRevision',
|
|
1191
|
-
wire: 'expectedRevision',
|
|
1192
1344
|
source: 'json',
|
|
1193
1345
|
codec: {
|
|
1194
1346
|
mode: 'strict',
|
|
1195
1347
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/cancelMemberConfiguration:expectedRevision',
|
|
1196
1348
|
create: _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_2$schema,
|
|
1197
1349
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_2$schema(),
|
|
1350
|
+
jsonSchema: {"type":"number"},
|
|
1351
|
+
},
|
|
1352
|
+
strictCodec: {
|
|
1353
|
+
mode: 'strict',
|
|
1354
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/cancelMemberConfiguration:expectedRevision',
|
|
1355
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_2_strict$schema,
|
|
1356
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_2_strict$schema(),
|
|
1357
|
+
jsonSchema: {"type":"number"},
|
|
1198
1358
|
},
|
|
1199
1359
|
},
|
|
1200
1360
|
],
|
|
@@ -1203,41 +1363,195 @@ export const TYPERT = {
|
|
|
1203
1363
|
typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentControlReceipt',
|
|
1204
1364
|
create: _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_result$schema,
|
|
1205
1365
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_result$schema(),
|
|
1366
|
+
jsonSchema: {"type":"object","properties":{"requestId":{"type":"string"},"revision":{"type":"number"},"status":{"type":"string","enum":["cancelled","failed","pending","applied","conflict","unsupported","locked","applying"]},"error":{"type":"string"}},"required":["requestId","revision","status"],"additionalProperties":true},
|
|
1367
|
+
},
|
|
1368
|
+
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":414,"column":9},
|
|
1369
|
+
},
|
|
1370
|
+
'localAgentGateway/checkEndpoint': {
|
|
1371
|
+
service: 'localAgentGateway',
|
|
1372
|
+
description: 'Verify one harness\'s saved endpoint from the host — the settings card\'s verify button. The answer is the harness\'s human-readable verdict text. Session-less by design: the commands channel needs a main agent session, which a settings card may not have. Null when the harness is unknown or declares no probe (the card then hides the button — declare-and-degrade).',
|
|
1373
|
+
invocation: { kind: 'direct' },
|
|
1374
|
+
parameters: [
|
|
1375
|
+
{
|
|
1376
|
+
name: 'name',
|
|
1377
|
+
description: 'the harness name.',
|
|
1378
|
+
source: 'json',
|
|
1379
|
+
codec: {
|
|
1380
|
+
mode: 'strict',
|
|
1381
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/checkEndpoint:name',
|
|
1382
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_checkEndpoint_parameter_0$schema,
|
|
1383
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_checkEndpoint_parameter_0$schema(),
|
|
1384
|
+
jsonSchema: {"type":"string"},
|
|
1385
|
+
},
|
|
1386
|
+
strictCodec: {
|
|
1387
|
+
mode: 'strict',
|
|
1388
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/checkEndpoint:name',
|
|
1389
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_checkEndpoint_parameter_0_strict$schema,
|
|
1390
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_checkEndpoint_parameter_0_strict$schema(),
|
|
1391
|
+
jsonSchema: {"type":"string"},
|
|
1392
|
+
},
|
|
1393
|
+
},
|
|
1394
|
+
],
|
|
1395
|
+
result: {
|
|
1396
|
+
mode: 'strict',
|
|
1397
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/checkEndpoint:result',
|
|
1398
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_checkEndpoint_result$schema,
|
|
1399
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_checkEndpoint_result$schema(),
|
|
1400
|
+
description: 'the verdict text, or null.',
|
|
1401
|
+
jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"string"}]},
|
|
1206
1402
|
},
|
|
1207
|
-
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":
|
|
1403
|
+
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":269,"column":9},
|
|
1208
1404
|
},
|
|
1209
|
-
{
|
|
1210
|
-
|
|
1405
|
+
'localAgentGateway/configureEndpoint': {
|
|
1406
|
+
service: 'localAgentGateway',
|
|
1407
|
+
description: 'Apply one endpoint-credential edit into the harness\'s own credential store (a string sets, null clears, absent leaves), answering the post-write resolved state so the card can flip immediately. The write deliberately bypasses the volatile row-config channel — a credential never lands in the profile patch document. Null when the harness is unknown or declares no endpoint face.',
|
|
1408
|
+
invocation: { kind: 'direct' },
|
|
1409
|
+
parameters: [
|
|
1410
|
+
{
|
|
1411
|
+
name: 'name',
|
|
1412
|
+
description: 'the harness name.',
|
|
1413
|
+
source: 'json',
|
|
1414
|
+
codec: {
|
|
1415
|
+
mode: 'strict',
|
|
1416
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/configureEndpoint:name',
|
|
1417
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_0$schema,
|
|
1418
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_0$schema(),
|
|
1419
|
+
jsonSchema: {"type":"string"},
|
|
1420
|
+
},
|
|
1421
|
+
strictCodec: {
|
|
1422
|
+
mode: 'strict',
|
|
1423
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/configureEndpoint:name',
|
|
1424
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_0_strict$schema,
|
|
1425
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_0_strict$schema(),
|
|
1426
|
+
jsonSchema: {"type":"string"},
|
|
1427
|
+
},
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
name: 'fields',
|
|
1431
|
+
description: 'the field edits.',
|
|
1432
|
+
source: 'json',
|
|
1433
|
+
codec: {
|
|
1434
|
+
mode: 'strict',
|
|
1435
|
+
typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentEndpointAuthFields',
|
|
1436
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_1$schema,
|
|
1437
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_1$schema(),
|
|
1438
|
+
jsonSchema: {"type":"object","properties":{"baseUrl":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"apiKey":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"authToken":{"oneOf":[{"type":"null","const":null},{"type":"string"}]}},"required":[],"additionalProperties":true},
|
|
1439
|
+
},
|
|
1440
|
+
strictCodec: {
|
|
1441
|
+
mode: 'strict',
|
|
1442
|
+
typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentEndpointAuthFields',
|
|
1443
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_1_strict$schema,
|
|
1444
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_parameter_1_strict$schema(),
|
|
1445
|
+
jsonSchema: {"type":"object","properties":{"baseUrl":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"apiKey":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"authToken":{"oneOf":[{"type":"null","const":null},{"type":"string"}]}},"required":[],"additionalProperties":false},
|
|
1446
|
+
},
|
|
1447
|
+
},
|
|
1448
|
+
],
|
|
1449
|
+
result: {
|
|
1450
|
+
mode: 'strict',
|
|
1451
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/configureEndpoint:result',
|
|
1452
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_result$schema,
|
|
1453
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_configureEndpoint_result$schema(),
|
|
1454
|
+
description: 'the post-write resolved state, or null.',
|
|
1455
|
+
jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"baseUrl":{"type":"string"},"apiKeySet":{"type":"boolean"},"authTokenSet":{"type":"boolean"}},"required":["apiKeySet","authTokenSet"],"additionalProperties":true}]},
|
|
1456
|
+
},
|
|
1457
|
+
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":302,"column":9},
|
|
1458
|
+
},
|
|
1459
|
+
'localAgentGateway/configureModelList': {
|
|
1460
|
+
service: 'localAgentGateway',
|
|
1461
|
+
description: 'Replace one harness\'s curated model list wholesale (reorders, removals and additions all ride the same write), answering the list as persisted. Null when the harness is unknown or declares no list face.',
|
|
1462
|
+
invocation: { kind: 'direct' },
|
|
1463
|
+
parameters: [
|
|
1464
|
+
{
|
|
1465
|
+
name: 'name',
|
|
1466
|
+
description: 'the harness name.',
|
|
1467
|
+
source: 'json',
|
|
1468
|
+
codec: {
|
|
1469
|
+
mode: 'strict',
|
|
1470
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/configureModelList:name',
|
|
1471
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_0$schema,
|
|
1472
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_0$schema(),
|
|
1473
|
+
jsonSchema: {"type":"string"},
|
|
1474
|
+
},
|
|
1475
|
+
strictCodec: {
|
|
1476
|
+
mode: 'strict',
|
|
1477
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/configureModelList:name',
|
|
1478
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_0_strict$schema,
|
|
1479
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_0_strict$schema(),
|
|
1480
|
+
jsonSchema: {"type":"string"},
|
|
1481
|
+
},
|
|
1482
|
+
},
|
|
1483
|
+
{
|
|
1484
|
+
name: 'models',
|
|
1485
|
+
description: 'the new ordered list.',
|
|
1486
|
+
source: 'json',
|
|
1487
|
+
codec: {
|
|
1488
|
+
mode: 'strict',
|
|
1489
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/configureModelList:models',
|
|
1490
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_1$schema,
|
|
1491
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_1$schema(),
|
|
1492
|
+
jsonSchema: {"type":"array","items":{"type":"string"}},
|
|
1493
|
+
},
|
|
1494
|
+
strictCodec: {
|
|
1495
|
+
mode: 'strict',
|
|
1496
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/configureModelList:models',
|
|
1497
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_1_strict$schema,
|
|
1498
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_parameter_1_strict$schema(),
|
|
1499
|
+
jsonSchema: {"type":"array","items":{"type":"string"}},
|
|
1500
|
+
},
|
|
1501
|
+
},
|
|
1502
|
+
],
|
|
1503
|
+
result: {
|
|
1504
|
+
mode: 'strict',
|
|
1505
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/configureModelList:result',
|
|
1506
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_result$schema,
|
|
1507
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_configureModelList_result$schema(),
|
|
1508
|
+
description: 'the persisted list, or null.',
|
|
1509
|
+
jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"array","items":{"type":"string"}}]},
|
|
1510
|
+
},
|
|
1511
|
+
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":332,"column":9},
|
|
1512
|
+
},
|
|
1513
|
+
'localAgentGateway/controlMemberInbox': {
|
|
1211
1514
|
service: 'localAgentGateway',
|
|
1212
|
-
namespace: 'localAgentGateway',
|
|
1213
|
-
method: 'controlMemberInbox',
|
|
1214
1515
|
invocation: { kind: 'direct' },
|
|
1215
1516
|
parameters: [
|
|
1216
1517
|
{
|
|
1217
1518
|
name: 'childSessionId',
|
|
1218
|
-
wire: 'childSessionId',
|
|
1219
1519
|
source: 'json',
|
|
1220
1520
|
codec: {
|
|
1221
1521
|
mode: 'strict',
|
|
1222
1522
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/controlMemberInbox:childSessionId',
|
|
1223
1523
|
create: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_0$schema,
|
|
1224
1524
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_0$schema(),
|
|
1525
|
+
jsonSchema: {"type":"string"},
|
|
1526
|
+
},
|
|
1527
|
+
strictCodec: {
|
|
1528
|
+
mode: 'strict',
|
|
1529
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/controlMemberInbox:childSessionId',
|
|
1530
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_0_strict$schema,
|
|
1531
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_0_strict$schema(),
|
|
1532
|
+
jsonSchema: {"type":"string"},
|
|
1225
1533
|
},
|
|
1226
1534
|
},
|
|
1227
1535
|
{
|
|
1228
1536
|
name: 'action',
|
|
1229
|
-
wire: 'action',
|
|
1230
1537
|
source: 'json',
|
|
1231
1538
|
codec: {
|
|
1232
1539
|
mode: 'strict',
|
|
1233
1540
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/controlMemberInbox:action',
|
|
1234
1541
|
create: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_1$schema,
|
|
1235
1542
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_1$schema(),
|
|
1543
|
+
jsonSchema: {"type":"string","enum":["cancel","pause","resume","reconcile"]},
|
|
1544
|
+
},
|
|
1545
|
+
strictCodec: {
|
|
1546
|
+
mode: 'strict',
|
|
1547
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/controlMemberInbox:action',
|
|
1548
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_1_strict$schema,
|
|
1549
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_1_strict$schema(),
|
|
1550
|
+
jsonSchema: {"type":"string","enum":["cancel","pause","resume","reconcile"]},
|
|
1236
1551
|
},
|
|
1237
1552
|
},
|
|
1238
1553
|
{
|
|
1239
1554
|
name: 'requestId',
|
|
1240
|
-
wire: 'requestId',
|
|
1241
1555
|
source: 'json',
|
|
1242
1556
|
acceptsUndefined: true,
|
|
1243
1557
|
codec: {
|
|
@@ -1245,11 +1559,18 @@ export const TYPERT = {
|
|
|
1245
1559
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/controlMemberInbox:requestId',
|
|
1246
1560
|
create: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_2$schema,
|
|
1247
1561
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_2$schema(),
|
|
1562
|
+
jsonSchema: {"type":"string"},
|
|
1563
|
+
},
|
|
1564
|
+
strictCodec: {
|
|
1565
|
+
mode: 'strict',
|
|
1566
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/controlMemberInbox:requestId',
|
|
1567
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_2_strict$schema,
|
|
1568
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_2_strict$schema(),
|
|
1569
|
+
jsonSchema: {"type":"string"},
|
|
1248
1570
|
},
|
|
1249
1571
|
},
|
|
1250
1572
|
{
|
|
1251
1573
|
name: 'outcome',
|
|
1252
|
-
wire: 'outcome',
|
|
1253
1574
|
source: 'json',
|
|
1254
1575
|
acceptsUndefined: true,
|
|
1255
1576
|
codec: {
|
|
@@ -1257,11 +1578,18 @@ export const TYPERT = {
|
|
|
1257
1578
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/controlMemberInbox:outcome',
|
|
1258
1579
|
create: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_3$schema,
|
|
1259
1580
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_3$schema(),
|
|
1581
|
+
jsonSchema: {"type":"string","enum":["cancelled","done"]},
|
|
1582
|
+
},
|
|
1583
|
+
strictCodec: {
|
|
1584
|
+
mode: 'strict',
|
|
1585
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/controlMemberInbox:outcome',
|
|
1586
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_3_strict$schema,
|
|
1587
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_3_strict$schema(),
|
|
1588
|
+
jsonSchema: {"type":"string","enum":["cancelled","done"]},
|
|
1260
1589
|
},
|
|
1261
1590
|
},
|
|
1262
1591
|
{
|
|
1263
1592
|
name: 'evidence',
|
|
1264
|
-
wire: 'evidence',
|
|
1265
1593
|
source: 'json',
|
|
1266
1594
|
acceptsUndefined: true,
|
|
1267
1595
|
codec: {
|
|
@@ -1269,6 +1597,14 @@ export const TYPERT = {
|
|
|
1269
1597
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/controlMemberInbox:evidence',
|
|
1270
1598
|
create: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_4$schema,
|
|
1271
1599
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_4$schema(),
|
|
1600
|
+
jsonSchema: {"type":"string"},
|
|
1601
|
+
},
|
|
1602
|
+
strictCodec: {
|
|
1603
|
+
mode: 'strict',
|
|
1604
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/controlMemberInbox:evidence',
|
|
1605
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_4_strict$schema,
|
|
1606
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_4_strict$schema(),
|
|
1607
|
+
jsonSchema: {"type":"string"},
|
|
1272
1608
|
},
|
|
1273
1609
|
},
|
|
1274
1610
|
],
|
|
@@ -1277,26 +1613,66 @@ export const TYPERT = {
|
|
|
1277
1613
|
typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentPromptResult',
|
|
1278
1614
|
create: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_result$schema,
|
|
1279
1615
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_result$schema(),
|
|
1616
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"requestId":{"type":"string"}},"required":["ok"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"type":"string"}},"required":["ok","error"],"additionalProperties":true}]},
|
|
1280
1617
|
},
|
|
1281
|
-
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":
|
|
1618
|
+
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":453,"column":3},
|
|
1282
1619
|
},
|
|
1283
|
-
{
|
|
1284
|
-
|
|
1620
|
+
'localAgentGateway/endpointAuth': {
|
|
1621
|
+
service: 'localAgentGateway',
|
|
1622
|
+
description: 'The settings card\'s read of one harness\'s resolved endpoint state — baseUrl verbatim, credentials as presence booleans (secrets never cross). Session-less like the rest of the gateway. Null when the harness is unknown or declares no endpoint face (the card then hides the form).',
|
|
1623
|
+
invocation: { kind: 'direct' },
|
|
1624
|
+
parameters: [
|
|
1625
|
+
{
|
|
1626
|
+
name: 'name',
|
|
1627
|
+
description: 'the harness name.',
|
|
1628
|
+
source: 'json',
|
|
1629
|
+
codec: {
|
|
1630
|
+
mode: 'strict',
|
|
1631
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/endpointAuth:name',
|
|
1632
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_endpointAuth_parameter_0$schema,
|
|
1633
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_endpointAuth_parameter_0$schema(),
|
|
1634
|
+
jsonSchema: {"type":"string"},
|
|
1635
|
+
},
|
|
1636
|
+
strictCodec: {
|
|
1637
|
+
mode: 'strict',
|
|
1638
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/endpointAuth:name',
|
|
1639
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_endpointAuth_parameter_0_strict$schema,
|
|
1640
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_endpointAuth_parameter_0_strict$schema(),
|
|
1641
|
+
jsonSchema: {"type":"string"},
|
|
1642
|
+
},
|
|
1643
|
+
},
|
|
1644
|
+
],
|
|
1645
|
+
result: {
|
|
1646
|
+
mode: 'strict',
|
|
1647
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/endpointAuth:result',
|
|
1648
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_endpointAuth_result$schema,
|
|
1649
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_endpointAuth_result$schema(),
|
|
1650
|
+
description: 'the resolved per-field state, or null.',
|
|
1651
|
+
jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"baseUrl":{"type":"string"},"apiKeySet":{"type":"boolean"},"authTokenSet":{"type":"boolean"}},"required":["apiKeySet","authTokenSet"],"additionalProperties":true}]},
|
|
1652
|
+
},
|
|
1653
|
+
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":284,"column":9},
|
|
1654
|
+
},
|
|
1655
|
+
'localAgentGateway/followMemberConfiguration': {
|
|
1285
1656
|
service: 'localAgentGateway',
|
|
1286
|
-
namespace: 'localAgentGateway',
|
|
1287
|
-
method: 'followMemberConfiguration',
|
|
1288
1657
|
mode: 'stream',
|
|
1289
1658
|
invocation: { kind: 'direct' },
|
|
1290
1659
|
parameters: [
|
|
1291
1660
|
{
|
|
1292
1661
|
name: 'childSessionId',
|
|
1293
|
-
wire: 'childSessionId',
|
|
1294
1662
|
source: 'json',
|
|
1295
1663
|
codec: {
|
|
1296
1664
|
mode: 'strict',
|
|
1297
1665
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/followMemberConfiguration:childSessionId',
|
|
1298
1666
|
create: _khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_parameter_0$schema,
|
|
1299
1667
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_parameter_0$schema(),
|
|
1668
|
+
jsonSchema: {"type":"string"},
|
|
1669
|
+
},
|
|
1670
|
+
strictCodec: {
|
|
1671
|
+
mode: 'strict',
|
|
1672
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/followMemberConfiguration:childSessionId',
|
|
1673
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_parameter_0_strict$schema,
|
|
1674
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_parameter_0_strict$schema(),
|
|
1675
|
+
jsonSchema: {"type":"string"},
|
|
1300
1676
|
},
|
|
1301
1677
|
},
|
|
1302
1678
|
],
|
|
@@ -1306,26 +1682,31 @@ export const TYPERT = {
|
|
|
1306
1682
|
typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentMemberControlState',
|
|
1307
1683
|
create: _khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_result$schema,
|
|
1308
1684
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_result$schema(),
|
|
1685
|
+
jsonSchema: {"type":"object","properties":{"memberId":{"type":"string"},"revision":{"type":"number","description":"Monotonic intent revision, including cancellation."},"current":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true},"pending":{"type":"object","properties":{"revision":{"type":"number"},"requestId":{"type":"string"},"kind":{"type":"string","enum":["selection","cancel"]},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true}},"required":["revision","requestId","kind","selection"],"additionalProperties":true},"operation":{"type":"object","properties":{"revision":{"type":"number"},"requestId":{"type":"string"},"kind":{"type":"string","enum":["selection","cancel"]},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"previous":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true}},"required":["revision","requestId","kind","selection","previous"],"additionalProperties":true},"status":{"type":"string","enum":["failed","pending","idle","applying","reconciling"]},"round":{"type":"object","properties":{"id":{"type":"string"},"configuration":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true}},"required":["id","configuration"],"additionalProperties":true,"description":"Immutable configuration captured at admission, including tool continuation."},"lockedReason":{"type":"string"},"frozen":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true,"description":"First admitted configuration of a frozen evaluation; defaults cannot drift on resume."},"error":{"type":"string"}},"required":["memberId","revision","current","status"],"additionalProperties":true},
|
|
1309
1686
|
},
|
|
1310
|
-
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":
|
|
1687
|
+
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":424,"column":3},
|
|
1311
1688
|
},
|
|
1312
|
-
{
|
|
1313
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/followMemberDirectory',
|
|
1689
|
+
'localAgentGateway/followMemberDirectory': {
|
|
1314
1690
|
service: 'localAgentGateway',
|
|
1315
|
-
namespace: 'localAgentGateway',
|
|
1316
|
-
method: 'followMemberDirectory',
|
|
1317
1691
|
mode: 'stream',
|
|
1318
1692
|
invocation: { kind: 'direct' },
|
|
1319
1693
|
parameters: [
|
|
1320
1694
|
{
|
|
1321
1695
|
name: 'childSessionId',
|
|
1322
|
-
wire: 'childSessionId',
|
|
1323
1696
|
source: 'json',
|
|
1324
1697
|
codec: {
|
|
1325
1698
|
mode: 'strict',
|
|
1326
1699
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/followMemberDirectory:childSessionId',
|
|
1327
1700
|
create: _khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_parameter_0$schema,
|
|
1328
1701
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_parameter_0$schema(),
|
|
1702
|
+
jsonSchema: {"type":"string"},
|
|
1703
|
+
},
|
|
1704
|
+
strictCodec: {
|
|
1705
|
+
mode: 'strict',
|
|
1706
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/followMemberDirectory:childSessionId',
|
|
1707
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_parameter_0_strict$schema,
|
|
1708
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_parameter_0_strict$schema(),
|
|
1709
|
+
jsonSchema: {"type":"string"},
|
|
1329
1710
|
},
|
|
1330
1711
|
},
|
|
1331
1712
|
],
|
|
@@ -1335,26 +1716,33 @@ export const TYPERT = {
|
|
|
1335
1716
|
typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentModelDirectory',
|
|
1336
1717
|
create: _khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_result$schema,
|
|
1337
1718
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_result$schema(),
|
|
1719
|
+
jsonSchema: {"type":"object","properties":{"status":{"type":"string","enum":["ready","error","loading","stale","unsupported"]},"refreshing":{"type":"boolean"},"revision":{"type":"number"},"refreshedAt":{"type":"number"},"entries":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"resolvedModel":{"type":"string"},"description":{"type":"string"},"source":{"type":"string","enum":["history","configuration","native"]},"hidden":{"type":"boolean"},"reasoning":{"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"}},"required":["value","label"],"additionalProperties":true}},"default":{"type":"string"}},"required":["options"],"additionalProperties":true}},"required":["value","label","source"],"additionalProperties":true}},"defaultModel":{"type":"string"},"complete":{"type":"boolean","description":"Complete enumeration of this source, not a guarantee of account access."},"customInput":{"type":"boolean"},"unsupported":{"type":"boolean"},"reason":{"type":"string"}},"required":["status","refreshing","revision","entries","complete","customInput"],"additionalProperties":true},
|
|
1338
1720
|
},
|
|
1339
1721
|
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":144,"column":10},
|
|
1340
1722
|
},
|
|
1341
|
-
{
|
|
1342
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/followMemberOutput',
|
|
1723
|
+
'localAgentGateway/followMemberOutput': {
|
|
1343
1724
|
service: 'localAgentGateway',
|
|
1344
|
-
|
|
1345
|
-
method: 'followMemberOutput',
|
|
1725
|
+
description: 'Follow one member\'s transient output with a complete reconnect baseline.',
|
|
1346
1726
|
mode: 'stream',
|
|
1347
1727
|
invocation: { kind: 'direct' },
|
|
1348
1728
|
parameters: [
|
|
1349
1729
|
{
|
|
1350
1730
|
name: 'childSessionId',
|
|
1351
|
-
|
|
1731
|
+
description: 'mirrored session identity.',
|
|
1352
1732
|
source: 'json',
|
|
1353
1733
|
codec: {
|
|
1354
1734
|
mode: 'strict',
|
|
1355
1735
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/followMemberOutput:childSessionId',
|
|
1356
1736
|
create: _khorsheed_dsh_local_agent_localAgentGateway_followMemberOutput_parameter_0$schema,
|
|
1357
1737
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_followMemberOutput_parameter_0$schema(),
|
|
1738
|
+
jsonSchema: {"type":"string"},
|
|
1739
|
+
},
|
|
1740
|
+
strictCodec: {
|
|
1741
|
+
mode: 'strict',
|
|
1742
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/followMemberOutput:childSessionId',
|
|
1743
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_followMemberOutput_parameter_0_strict$schema,
|
|
1744
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_followMemberOutput_parameter_0_strict$schema(),
|
|
1745
|
+
jsonSchema: {"type":"string"},
|
|
1358
1746
|
},
|
|
1359
1747
|
},
|
|
1360
1748
|
],
|
|
@@ -1364,26 +1752,33 @@ export const TYPERT = {
|
|
|
1364
1752
|
typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentStreamFrame',
|
|
1365
1753
|
create: _khorsheed_dsh_local_agent_localAgentGateway_followMemberOutput_result$schema,
|
|
1366
1754
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_followMemberOutput_result$schema(),
|
|
1755
|
+
description: 'bounded incremental updates; final content remains in session history.',
|
|
1756
|
+
jsonSchema: {"type":"object","properties":{"baseline":{"type":"boolean"},"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"turn":{"type":"number"},"step":{"type":"number"},"kind":{"type":"string","enum":["text","think"]},"text":{"type":"string"},"revision":{"type":"number"},"receivedAt":{"type":"number"},"append":{"type":"boolean"}},"required":["id","turn","step","kind","text","revision","receivedAt","append"],"additionalProperties":true}},"removed":{"type":"array","items":{"type":"string"}}},"required":["baseline","updates","removed"],"additionalProperties":true},
|
|
1367
1757
|
},
|
|
1368
1758
|
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":71,"column":3},
|
|
1369
1759
|
},
|
|
1370
|
-
{
|
|
1371
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/followMembers',
|
|
1760
|
+
'localAgentGateway/followMembers': {
|
|
1372
1761
|
service: 'localAgentGateway',
|
|
1373
|
-
|
|
1374
|
-
method: 'followMembers',
|
|
1762
|
+
description: 'Shared browser stream: adding visible members does not consume more HTTP connections.',
|
|
1375
1763
|
mode: 'stream',
|
|
1376
1764
|
invocation: { kind: 'direct' },
|
|
1377
1765
|
parameters: [
|
|
1378
1766
|
{
|
|
1379
1767
|
name: 'requests',
|
|
1380
|
-
wire: 'requests',
|
|
1381
1768
|
source: 'json',
|
|
1382
1769
|
codec: {
|
|
1383
1770
|
mode: 'strict',
|
|
1384
1771
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/followMembers:requests',
|
|
1385
1772
|
create: _khorsheed_dsh_local_agent_localAgentGateway_followMembers_parameter_0$schema,
|
|
1386
1773
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_followMembers_parameter_0$schema(),
|
|
1774
|
+
jsonSchema: {"type":"array","items":{"type":"object","properties":{"memberId":{"type":"string"},"channel":{"type":"string","enum":["output","directory","configuration"]}},"required":["memberId","channel"],"additionalProperties":true}},
|
|
1775
|
+
},
|
|
1776
|
+
strictCodec: {
|
|
1777
|
+
mode: 'strict',
|
|
1778
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/followMembers:requests',
|
|
1779
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_followMembers_parameter_0_strict$schema,
|
|
1780
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_followMembers_parameter_0_strict$schema(),
|
|
1781
|
+
jsonSchema: {"type":"array","items":{"type":"object","properties":{"memberId":{"type":"string"},"channel":{"type":"string","enum":["output","directory","configuration"]}},"required":["memberId","channel"],"additionalProperties":false}},
|
|
1387
1782
|
},
|
|
1388
1783
|
},
|
|
1389
1784
|
],
|
|
@@ -1393,31 +1788,38 @@ export const TYPERT = {
|
|
|
1393
1788
|
typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentMemberFeedEvent',
|
|
1394
1789
|
create: _khorsheed_dsh_local_agent_localAgentGateway_followMembers_result$schema,
|
|
1395
1790
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_followMembers_result$schema(),
|
|
1791
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"memberId":{"type":"string"},"channel":{"type":"string","const":"configuration"},"value":{"type":"object","properties":{"memberId":{"type":"string"},"revision":{"type":"number","description":"Monotonic intent revision, including cancellation."},"current":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true},"pending":{"type":"object","properties":{"revision":{"type":"number"},"requestId":{"type":"string"},"kind":{"type":"string","enum":["selection","cancel"]},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true}},"required":["revision","requestId","kind","selection"],"additionalProperties":true},"operation":{"type":"object","properties":{"revision":{"type":"number"},"requestId":{"type":"string"},"kind":{"type":"string","enum":["selection","cancel"]},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"previous":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true}},"required":["revision","requestId","kind","selection","previous"],"additionalProperties":true},"status":{"type":"string","enum":["failed","pending","idle","applying","reconciling"]},"round":{"type":"object","properties":{"id":{"type":"string"},"configuration":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true}},"required":["id","configuration"],"additionalProperties":true,"description":"Immutable configuration captured at admission, including tool continuation."},"lockedReason":{"type":"string"},"frozen":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true,"description":"First admitted configuration of a frozen evaluation; defaults cannot drift on resume."},"error":{"type":"string"}},"required":["memberId","revision","current","status"],"additionalProperties":true}},"required":["memberId","channel","value"],"additionalProperties":true},{"type":"object","properties":{"memberId":{"type":"string"},"channel":{"type":"string","const":"directory"},"value":{"type":"object","properties":{"status":{"type":"string","enum":["ready","error","loading","stale","unsupported"]},"refreshing":{"type":"boolean"},"revision":{"type":"number"},"refreshedAt":{"type":"number"},"entries":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"resolvedModel":{"type":"string"},"description":{"type":"string"},"source":{"type":"string","enum":["history","configuration","native"]},"hidden":{"type":"boolean"},"reasoning":{"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"}},"required":["value","label"],"additionalProperties":true}},"default":{"type":"string"}},"required":["options"],"additionalProperties":true}},"required":["value","label","source"],"additionalProperties":true}},"defaultModel":{"type":"string"},"complete":{"type":"boolean","description":"Complete enumeration of this source, not a guarantee of account access."},"customInput":{"type":"boolean"},"unsupported":{"type":"boolean"},"reason":{"type":"string"}},"required":["status","refreshing","revision","entries","complete","customInput"],"additionalProperties":true}},"required":["memberId","channel","value"],"additionalProperties":true},{"type":"object","properties":{"memberId":{"type":"string"},"channel":{"type":"string","const":"output"},"value":{"type":"object","properties":{"baseline":{"type":"boolean"},"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"turn":{"type":"number"},"step":{"type":"number"},"kind":{"type":"string","enum":["text","think"]},"text":{"type":"string"},"revision":{"type":"number"},"receivedAt":{"type":"number"},"append":{"type":"boolean"}},"required":["id","turn","step","kind","text","revision","receivedAt","append"],"additionalProperties":true}},"removed":{"type":"array","items":{"type":"string"}}},"required":["baseline","updates","removed"],"additionalProperties":true}},"required":["memberId","channel","value"],"additionalProperties":true},{"type":"object","properties":{"memberId":{"type":"string"},"channel":{"type":"string","const":"error"},"source":{"type":"string","enum":["output","directory","configuration"]},"message":{"type":"string"}},"required":["memberId","channel","source","message"],"additionalProperties":true}]},
|
|
1396
1792
|
},
|
|
1397
1793
|
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":77,"column":3},
|
|
1398
1794
|
},
|
|
1399
|
-
{
|
|
1400
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/followModelDirectory',
|
|
1795
|
+
'localAgentGateway/followModelDirectory': {
|
|
1401
1796
|
service: 'localAgentGateway',
|
|
1402
|
-
|
|
1403
|
-
method: 'followModelDirectory',
|
|
1797
|
+
description: 'Keep a currently open model picker synchronized with discovery completion.',
|
|
1404
1798
|
mode: 'stream',
|
|
1405
1799
|
invocation: { kind: 'direct' },
|
|
1406
1800
|
parameters: [
|
|
1407
1801
|
{
|
|
1408
1802
|
name: 'name',
|
|
1409
|
-
|
|
1803
|
+
description: 'owning harness.',
|
|
1410
1804
|
source: 'json',
|
|
1411
1805
|
codec: {
|
|
1412
1806
|
mode: 'strict',
|
|
1413
1807
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/followModelDirectory:name',
|
|
1414
1808
|
create: _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_0$schema,
|
|
1415
1809
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_0$schema(),
|
|
1810
|
+
jsonSchema: {"type":"string"},
|
|
1811
|
+
},
|
|
1812
|
+
strictCodec: {
|
|
1813
|
+
mode: 'strict',
|
|
1814
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/followModelDirectory:name',
|
|
1815
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_0_strict$schema,
|
|
1816
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_0_strict$schema(),
|
|
1817
|
+
jsonSchema: {"type":"string"},
|
|
1416
1818
|
},
|
|
1417
1819
|
},
|
|
1418
1820
|
{
|
|
1419
1821
|
name: 'childSessionId',
|
|
1420
|
-
|
|
1822
|
+
description: 'member context, or undefined for the harness default.',
|
|
1421
1823
|
source: 'json',
|
|
1422
1824
|
acceptsUndefined: true,
|
|
1423
1825
|
codec: {
|
|
@@ -1425,6 +1827,14 @@ export const TYPERT = {
|
|
|
1425
1827
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/followModelDirectory:childSessionId',
|
|
1426
1828
|
create: _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_1$schema,
|
|
1427
1829
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_1$schema(),
|
|
1830
|
+
jsonSchema: {"type":"string"},
|
|
1831
|
+
},
|
|
1832
|
+
strictCodec: {
|
|
1833
|
+
mode: 'strict',
|
|
1834
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/followModelDirectory:childSessionId',
|
|
1835
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_1_strict$schema,
|
|
1836
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_1_strict$schema(),
|
|
1837
|
+
jsonSchema: {"type":"string"},
|
|
1428
1838
|
},
|
|
1429
1839
|
},
|
|
1430
1840
|
],
|
|
@@ -1434,25 +1844,33 @@ export const TYPERT = {
|
|
|
1434
1844
|
typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentModelDirectory',
|
|
1435
1845
|
create: _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_result$schema,
|
|
1436
1846
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_result$schema(),
|
|
1847
|
+
description: 'directory baselines and subsequent snapshots.',
|
|
1848
|
+
jsonSchema: {"type":"object","properties":{"status":{"type":"string","enum":["ready","error","loading","stale","unsupported"]},"refreshing":{"type":"boolean"},"revision":{"type":"number"},"refreshedAt":{"type":"number"},"entries":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"resolvedModel":{"type":"string"},"description":{"type":"string"},"source":{"type":"string","enum":["history","configuration","native"]},"hidden":{"type":"boolean"},"reasoning":{"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"}},"required":["value","label"],"additionalProperties":true}},"default":{"type":"string"}},"required":["options"],"additionalProperties":true}},"required":["value","label","source"],"additionalProperties":true}},"defaultModel":{"type":"string"},"complete":{"type":"boolean","description":"Complete enumeration of this source, not a guarantee of account access."},"customInput":{"type":"boolean"},"unsupported":{"type":"boolean"},"reason":{"type":"string"}},"required":["status","refreshing","revision","entries","complete","customInput"],"additionalProperties":true},
|
|
1437
1849
|
},
|
|
1438
1850
|
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":126,"column":10},
|
|
1439
1851
|
},
|
|
1440
|
-
{
|
|
1441
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/harnessModel',
|
|
1852
|
+
'localAgentGateway/harnessModel': {
|
|
1442
1853
|
service: 'localAgentGateway',
|
|
1443
|
-
|
|
1444
|
-
method: 'harnessModel',
|
|
1854
|
+
description: 'The model surface of one harness without a member — the settings card\'s "what would a round run with" read. Null when the harness is unknown or exposes no model broker: the card then keeps its free-text field exactly as before brokers existed. The core fills `lastObserved` from the delegation records (the harness\'s own provider) when the broker\'s answer carries none — display context for the cli-builtin layer, never a layer — and appends it to `choices` when no broker choice lists it, so the card\'s menu offers what last ran instead of staying empty.',
|
|
1445
1855
|
invocation: { kind: 'direct' },
|
|
1446
1856
|
parameters: [
|
|
1447
1857
|
{
|
|
1448
1858
|
name: 'name',
|
|
1449
|
-
|
|
1859
|
+
description: 'the harness name.',
|
|
1450
1860
|
source: 'json',
|
|
1451
1861
|
codec: {
|
|
1452
1862
|
mode: 'strict',
|
|
1453
1863
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/harnessModel:name',
|
|
1454
1864
|
create: _khorsheed_dsh_local_agent_localAgentGateway_harnessModel_parameter_0$schema,
|
|
1455
1865
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_harnessModel_parameter_0$schema(),
|
|
1866
|
+
jsonSchema: {"type":"string"},
|
|
1867
|
+
},
|
|
1868
|
+
strictCodec: {
|
|
1869
|
+
mode: 'strict',
|
|
1870
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/harnessModel:name',
|
|
1871
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_harnessModel_parameter_0_strict$schema,
|
|
1872
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_harnessModel_parameter_0_strict$schema(),
|
|
1873
|
+
jsonSchema: {"type":"string"},
|
|
1456
1874
|
},
|
|
1457
1875
|
},
|
|
1458
1876
|
],
|
|
@@ -1461,25 +1879,31 @@ export const TYPERT = {
|
|
|
1461
1879
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/harnessModel:result',
|
|
1462
1880
|
create: _khorsheed_dsh_local_agent_localAgentGateway_harnessModel_result$schema,
|
|
1463
1881
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_harnessModel_result$schema(),
|
|
1882
|
+
description: 'the layer-by-layer surface, or null.',
|
|
1883
|
+
jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"configuration":{"type":"object","properties":{"memberId":{"type":"string"},"revision":{"type":"number","description":"Monotonic intent revision, including cancellation."},"current":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true},"pending":{"type":"object","properties":{"revision":{"type":"number"},"requestId":{"type":"string"},"kind":{"type":"string","enum":["selection","cancel"]},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true}},"required":["revision","requestId","kind","selection"],"additionalProperties":true},"operation":{"type":"object","properties":{"revision":{"type":"number"},"requestId":{"type":"string"},"kind":{"type":"string","enum":["selection","cancel"]},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"previous":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true}},"required":["revision","requestId","kind","selection","previous"],"additionalProperties":true},"status":{"type":"string","enum":["failed","pending","idle","applying","reconciling"]},"round":{"type":"object","properties":{"id":{"type":"string"},"configuration":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true}},"required":["id","configuration"],"additionalProperties":true,"description":"Immutable configuration captured at admission, including tool continuation."},"lockedReason":{"type":"string"},"frozen":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true,"description":"First admitted configuration of a frozen evaluation; defaults cannot drift on resume."},"error":{"type":"string"}},"required":["memberId","revision","current","status"],"additionalProperties":true,"description":"Durable current/pending selection, shared by every member entry point."},"effective":{"type":"string","description":"The model the next round would actually run with, when any layer names one."},"source":{"type":"string","enum":["override","delegation","settings","cli-config","cli-builtin"],"description":"Which layer {@link LocalAgentModelInfo.effective} came from."},"override":{"type":"string","description":"The session-level override, when one is active for the member."},"delegation":{"type":"string","description":"The delegation's recorded model, when the delegation named one."},"settings":{"type":"string","description":"The harness's plugin-config `model`, when the settings layer sets one."},"cliDefault":{"type":"string","description":"The scoped config file's own default model, when the file names one."},"lastObserved":{"type":"string","description":"The most recent model the provider was OBSERVED running (the delegation records' {@link LocalAgentDelegationRecord.observedModel}), filled by the core gateway when the broker itself names none. Display context for the cli-builtin layer: the CLI's compiled default names nothing, but \"what ran last time\" is exactly what a member still on that default would run again — so surfaces show it as the last-observed hint, never as {@link LocalAgentModelInfo.effective} (an observation is not a layer)."},"choices":{"type":"array","items":{"type":"string"},"description":"The pickable model identifiers (deduped; empty when nothing names a model). The core gateway appends {@link LocalAgentModelInfo.lastObserved} as the final entry when no broker choice already lists it, so a member that only ever ran its CLI default still has a one-item menu."},"directory":{"type":"object","properties":{"status":{"type":"string","enum":["ready","error","loading","stale","unsupported"]},"refreshing":{"type":"boolean"},"revision":{"type":"number"},"refreshedAt":{"type":"number"},"entries":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"resolvedModel":{"type":"string"},"description":{"type":"string"},"source":{"type":"string","enum":["history","configuration","native"]},"hidden":{"type":"boolean"},"reasoning":{"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"}},"required":["value","label"],"additionalProperties":true}},"default":{"type":"string"}},"required":["options"],"additionalProperties":true}},"required":["value","label","source"],"additionalProperties":true}},"defaultModel":{"type":"string"},"complete":{"type":"boolean","description":"Complete enumeration of this source, not a guarantee of account access."},"customInput":{"type":"boolean"},"unsupported":{"type":"boolean"},"reason":{"type":"string"}},"required":["status","refreshing","revision","entries","complete","customInput"],"additionalProperties":true,"description":"Rich, source-labelled directory; choices remains the legacy read face."},"live":{"type":"boolean","description":"Whether the harness's live driver is on for the member's rounds."},"switchable":{"type":"boolean","description":"False while a round is in flight for the member: a model switch retires the member's resident runtime so the NEXT round respawns with the new model, and retiring a runtime mid-round would kill the run."},"reason":{"type":"string","description":"Why a switch is currently refused, when {@link LocalAgentModelInfo.switchable} is false."}},"required":["source","choices","live","switchable"],"additionalProperties":true}]},
|
|
1464
1884
|
},
|
|
1465
1885
|
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":246,"column":9},
|
|
1466
1886
|
},
|
|
1467
|
-
{
|
|
1468
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/memberConfiguration',
|
|
1887
|
+
'localAgentGateway/memberConfiguration': {
|
|
1469
1888
|
service: 'localAgentGateway',
|
|
1470
|
-
namespace: 'localAgentGateway',
|
|
1471
|
-
method: 'memberConfiguration',
|
|
1472
1889
|
invocation: { kind: 'direct' },
|
|
1473
1890
|
parameters: [
|
|
1474
1891
|
{
|
|
1475
1892
|
name: 'childSessionId',
|
|
1476
|
-
wire: 'childSessionId',
|
|
1477
1893
|
source: 'json',
|
|
1478
1894
|
codec: {
|
|
1479
1895
|
mode: 'strict',
|
|
1480
1896
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberConfiguration:childSessionId',
|
|
1481
1897
|
create: _khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_parameter_0$schema,
|
|
1482
1898
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_parameter_0$schema(),
|
|
1899
|
+
jsonSchema: {"type":"string"},
|
|
1900
|
+
},
|
|
1901
|
+
strictCodec: {
|
|
1902
|
+
mode: 'strict',
|
|
1903
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberConfiguration:childSessionId',
|
|
1904
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_parameter_0_strict$schema,
|
|
1905
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_parameter_0_strict$schema(),
|
|
1906
|
+
jsonSchema: {"type":"string"},
|
|
1483
1907
|
},
|
|
1484
1908
|
},
|
|
1485
1909
|
],
|
|
@@ -1488,36 +1912,49 @@ export const TYPERT = {
|
|
|
1488
1912
|
typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentMemberControlState',
|
|
1489
1913
|
create: _khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_result$schema,
|
|
1490
1914
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_result$schema(),
|
|
1915
|
+
jsonSchema: {"type":"object","properties":{"memberId":{"type":"string"},"revision":{"type":"number","description":"Monotonic intent revision, including cancellation."},"current":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true},"pending":{"type":"object","properties":{"revision":{"type":"number"},"requestId":{"type":"string"},"kind":{"type":"string","enum":["selection","cancel"]},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true}},"required":["revision","requestId","kind","selection"],"additionalProperties":true},"operation":{"type":"object","properties":{"revision":{"type":"number"},"requestId":{"type":"string"},"kind":{"type":"string","enum":["selection","cancel"]},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"previous":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true}},"required":["revision","requestId","kind","selection","previous"],"additionalProperties":true},"status":{"type":"string","enum":["failed","pending","idle","applying","reconciling"]},"round":{"type":"object","properties":{"id":{"type":"string"},"configuration":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true}},"required":["id","configuration"],"additionalProperties":true,"description":"Immutable configuration captured at admission, including tool continuation."},"lockedReason":{"type":"string"},"frozen":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true,"description":"First admitted configuration of a frozen evaluation; defaults cannot drift on resume."},"error":{"type":"string"}},"required":["memberId","revision","current","status"],"additionalProperties":true},
|
|
1491
1916
|
},
|
|
1492
|
-
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":
|
|
1917
|
+
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":404,"column":9},
|
|
1493
1918
|
},
|
|
1494
|
-
{
|
|
1495
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/memberDirectory',
|
|
1919
|
+
'localAgentGateway/memberDirectory': {
|
|
1496
1920
|
service: 'localAgentGateway',
|
|
1497
|
-
|
|
1498
|
-
method: 'memberDirectory',
|
|
1921
|
+
description: 'Resolve directory ownership from the recorded member, never a UI provider guess.',
|
|
1499
1922
|
invocation: { kind: 'direct' },
|
|
1500
1923
|
parameters: [
|
|
1501
1924
|
{
|
|
1502
1925
|
name: 'childSessionId',
|
|
1503
|
-
wire: 'childSessionId',
|
|
1504
1926
|
source: 'json',
|
|
1505
1927
|
codec: {
|
|
1506
1928
|
mode: 'strict',
|
|
1507
1929
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberDirectory:childSessionId',
|
|
1508
1930
|
create: _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_0$schema,
|
|
1509
1931
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_0$schema(),
|
|
1932
|
+
jsonSchema: {"type":"string"},
|
|
1933
|
+
},
|
|
1934
|
+
strictCodec: {
|
|
1935
|
+
mode: 'strict',
|
|
1936
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberDirectory:childSessionId',
|
|
1937
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_0_strict$schema,
|
|
1938
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_0_strict$schema(),
|
|
1939
|
+
jsonSchema: {"type":"string"},
|
|
1510
1940
|
},
|
|
1511
1941
|
},
|
|
1512
1942
|
{
|
|
1513
1943
|
name: 'refresh',
|
|
1514
|
-
wire: 'refresh',
|
|
1515
1944
|
source: 'json',
|
|
1516
1945
|
codec: {
|
|
1517
1946
|
mode: 'strict',
|
|
1518
1947
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberDirectory:refresh',
|
|
1519
1948
|
create: _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_1$schema,
|
|
1520
1949
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_1$schema(),
|
|
1950
|
+
jsonSchema: {"type":"boolean"},
|
|
1951
|
+
},
|
|
1952
|
+
strictCodec: {
|
|
1953
|
+
mode: 'strict',
|
|
1954
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberDirectory:refresh',
|
|
1955
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_1_strict$schema,
|
|
1956
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_1_strict$schema(),
|
|
1957
|
+
jsonSchema: {"type":"boolean"},
|
|
1521
1958
|
},
|
|
1522
1959
|
},
|
|
1523
1960
|
],
|
|
@@ -1526,25 +1963,30 @@ export const TYPERT = {
|
|
|
1526
1963
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberDirectory:result',
|
|
1527
1964
|
create: _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_result$schema,
|
|
1528
1965
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_result$schema(),
|
|
1966
|
+
jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"status":{"type":"string","enum":["ready","error","loading","stale","unsupported"]},"refreshing":{"type":"boolean"},"revision":{"type":"number"},"refreshedAt":{"type":"number"},"entries":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"resolvedModel":{"type":"string"},"description":{"type":"string"},"source":{"type":"string","enum":["history","configuration","native"]},"hidden":{"type":"boolean"},"reasoning":{"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"}},"required":["value","label"],"additionalProperties":true}},"default":{"type":"string"}},"required":["options"],"additionalProperties":true}},"required":["value","label","source"],"additionalProperties":true}},"defaultModel":{"type":"string"},"complete":{"type":"boolean","description":"Complete enumeration of this source, not a guarantee of account access."},"customInput":{"type":"boolean"},"unsupported":{"type":"boolean"},"reason":{"type":"string"}},"required":["status","refreshing","revision","entries","complete","customInput"],"additionalProperties":true}]},
|
|
1529
1967
|
},
|
|
1530
1968
|
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":137,"column":9},
|
|
1531
1969
|
},
|
|
1532
|
-
{
|
|
1533
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/memberInbox',
|
|
1970
|
+
'localAgentGateway/memberInbox': {
|
|
1534
1971
|
service: 'localAgentGateway',
|
|
1535
|
-
namespace: 'localAgentGateway',
|
|
1536
|
-
method: 'memberInbox',
|
|
1537
1972
|
invocation: { kind: 'direct' },
|
|
1538
1973
|
parameters: [
|
|
1539
1974
|
{
|
|
1540
1975
|
name: 'childSessionId',
|
|
1541
|
-
wire: 'childSessionId',
|
|
1542
1976
|
source: 'json',
|
|
1543
1977
|
codec: {
|
|
1544
1978
|
mode: 'strict',
|
|
1545
1979
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberInbox:childSessionId',
|
|
1546
1980
|
create: _khorsheed_dsh_local_agent_localAgentGateway_memberInbox_parameter_0$schema,
|
|
1547
1981
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_memberInbox_parameter_0$schema(),
|
|
1982
|
+
jsonSchema: {"type":"string"},
|
|
1983
|
+
},
|
|
1984
|
+
strictCodec: {
|
|
1985
|
+
mode: 'strict',
|
|
1986
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberInbox:childSessionId',
|
|
1987
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_memberInbox_parameter_0_strict$schema,
|
|
1988
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_memberInbox_parameter_0_strict$schema(),
|
|
1989
|
+
jsonSchema: {"type":"string"},
|
|
1548
1990
|
},
|
|
1549
1991
|
},
|
|
1550
1992
|
],
|
|
@@ -1553,25 +1995,32 @@ export const TYPERT = {
|
|
|
1553
1995
|
typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentMemberInbox',
|
|
1554
1996
|
create: _khorsheed_dsh_local_agent_localAgentGateway_memberInbox_result$schema,
|
|
1555
1997
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_memberInbox_result$schema(),
|
|
1998
|
+
jsonSchema: {"type":"object","properties":{"memberId":{"type":"string"},"paused":{"type":"boolean"},"error":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"status":{"type":"string","enum":["cancelled","failed","running","done","queued","uncertain"]},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"error":{"type":"string"}},"required":["id","text","status","createdAt","updatedAt"],"additionalProperties":true}}},"required":["memberId","paused","messages"],"additionalProperties":true},
|
|
1556
1999
|
},
|
|
1557
|
-
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":
|
|
2000
|
+
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":450,"column":3},
|
|
1558
2001
|
},
|
|
1559
|
-
{
|
|
1560
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/memberModel',
|
|
2002
|
+
'localAgentGateway/memberModel': {
|
|
1561
2003
|
service: 'localAgentGateway',
|
|
1562
|
-
|
|
1563
|
-
method: 'memberModel',
|
|
2004
|
+
description: 'The model surface of one member — the composer\'s picker read. The delegation record\'s requested model rides in from the core so the broker can rank it between the override and the settings layer; the record\'s OBSERVED model fills `lastObserved` when the broker\'s answer carries none (a broker that names one itself always wins — spread order: the broker\'s answer first, the core\'s fill only over an absent field) and joins `choices` as the last entry when no broker choice lists it, so a member that ran once has a one-item pick list instead of an empty menu. Null for a non-member session or a brokerless harness.',
|
|
1564
2005
|
invocation: { kind: 'direct' },
|
|
1565
2006
|
parameters: [
|
|
1566
2007
|
{
|
|
1567
2008
|
name: 'childSessionId',
|
|
1568
|
-
|
|
2009
|
+
description: 'the dsh child session id of the member.',
|
|
1569
2010
|
source: 'json',
|
|
1570
2011
|
codec: {
|
|
1571
2012
|
mode: 'strict',
|
|
1572
2013
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberModel:childSessionId',
|
|
1573
2014
|
create: _khorsheed_dsh_local_agent_localAgentGateway_memberModel_parameter_0$schema,
|
|
1574
2015
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_memberModel_parameter_0$schema(),
|
|
2016
|
+
jsonSchema: {"type":"string"},
|
|
2017
|
+
},
|
|
2018
|
+
strictCodec: {
|
|
2019
|
+
mode: 'strict',
|
|
2020
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberModel:childSessionId',
|
|
2021
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_memberModel_parameter_0_strict$schema,
|
|
2022
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_memberModel_parameter_0_strict$schema(),
|
|
2023
|
+
jsonSchema: {"type":"string"},
|
|
1575
2024
|
},
|
|
1576
2025
|
},
|
|
1577
2026
|
],
|
|
@@ -1580,25 +2029,33 @@ export const TYPERT = {
|
|
|
1580
2029
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberModel:result',
|
|
1581
2030
|
create: _khorsheed_dsh_local_agent_localAgentGateway_memberModel_result$schema,
|
|
1582
2031
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_memberModel_result$schema(),
|
|
2032
|
+
description: 'the layer-by-layer surface, or null.',
|
|
2033
|
+
jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"configuration":{"type":"object","properties":{"memberId":{"type":"string"},"revision":{"type":"number","description":"Monotonic intent revision, including cancellation."},"current":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true},"pending":{"type":"object","properties":{"revision":{"type":"number"},"requestId":{"type":"string"},"kind":{"type":"string","enum":["selection","cancel"]},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true}},"required":["revision","requestId","kind","selection"],"additionalProperties":true},"operation":{"type":"object","properties":{"revision":{"type":"number"},"requestId":{"type":"string"},"kind":{"type":"string","enum":["selection","cancel"]},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"previous":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true}},"required":["revision","requestId","kind","selection","previous"],"additionalProperties":true},"status":{"type":"string","enum":["failed","pending","idle","applying","reconciling"]},"round":{"type":"object","properties":{"id":{"type":"string"},"configuration":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true}},"required":["id","configuration"],"additionalProperties":true,"description":"Immutable configuration captured at admission, including tool continuation."},"lockedReason":{"type":"string"},"frozen":{"type":"object","properties":{"revision":{"type":"number"},"selection":{"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},"resolved":{"type":"object","properties":{"model":{"type":"string"},"effort":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["revision","selection","resolved"],"additionalProperties":true,"description":"First admitted configuration of a frozen evaluation; defaults cannot drift on resume."},"error":{"type":"string"}},"required":["memberId","revision","current","status"],"additionalProperties":true,"description":"Durable current/pending selection, shared by every member entry point."},"effective":{"type":"string","description":"The model the next round would actually run with, when any layer names one."},"source":{"type":"string","enum":["override","delegation","settings","cli-config","cli-builtin"],"description":"Which layer {@link LocalAgentModelInfo.effective} came from."},"override":{"type":"string","description":"The session-level override, when one is active for the member."},"delegation":{"type":"string","description":"The delegation's recorded model, when the delegation named one."},"settings":{"type":"string","description":"The harness's plugin-config `model`, when the settings layer sets one."},"cliDefault":{"type":"string","description":"The scoped config file's own default model, when the file names one."},"lastObserved":{"type":"string","description":"The most recent model the provider was OBSERVED running (the delegation records' {@link LocalAgentDelegationRecord.observedModel}), filled by the core gateway when the broker itself names none. Display context for the cli-builtin layer: the CLI's compiled default names nothing, but \"what ran last time\" is exactly what a member still on that default would run again — so surfaces show it as the last-observed hint, never as {@link LocalAgentModelInfo.effective} (an observation is not a layer)."},"choices":{"type":"array","items":{"type":"string"},"description":"The pickable model identifiers (deduped; empty when nothing names a model). The core gateway appends {@link LocalAgentModelInfo.lastObserved} as the final entry when no broker choice already lists it, so a member that only ever ran its CLI default still has a one-item menu."},"directory":{"type":"object","properties":{"status":{"type":"string","enum":["ready","error","loading","stale","unsupported"]},"refreshing":{"type":"boolean"},"revision":{"type":"number"},"refreshedAt":{"type":"number"},"entries":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"resolvedModel":{"type":"string"},"description":{"type":"string"},"source":{"type":"string","enum":["history","configuration","native"]},"hidden":{"type":"boolean"},"reasoning":{"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"}},"required":["value","label"],"additionalProperties":true}},"default":{"type":"string"}},"required":["options"],"additionalProperties":true}},"required":["value","label","source"],"additionalProperties":true}},"defaultModel":{"type":"string"},"complete":{"type":"boolean","description":"Complete enumeration of this source, not a guarantee of account access."},"customInput":{"type":"boolean"},"unsupported":{"type":"boolean"},"reason":{"type":"string"}},"required":["status","refreshing","revision","entries","complete","customInput"],"additionalProperties":true,"description":"Rich, source-labelled directory; choices remains the legacy read face."},"live":{"type":"boolean","description":"Whether the harness's live driver is on for the member's rounds."},"switchable":{"type":"boolean","description":"False while a round is in flight for the member: a model switch retires the member's resident runtime so the NEXT round respawns with the new model, and retiring a runtime mid-round would kill the run."},"reason":{"type":"string","description":"Why a switch is currently refused, when {@link LocalAgentModelInfo.switchable} is false."}},"required":["source","choices","live","switchable"],"additionalProperties":true}]},
|
|
1583
2034
|
},
|
|
1584
|
-
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":
|
|
2035
|
+
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":352,"column":9},
|
|
1585
2036
|
},
|
|
1586
|
-
{
|
|
1587
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/memberOf',
|
|
2037
|
+
'localAgentGateway/memberOf': {
|
|
1588
2038
|
service: 'localAgentGateway',
|
|
1589
|
-
|
|
1590
|
-
method: 'memberOf',
|
|
2039
|
+
description: 'The member channel\'s membership check: the delegation view for one dsh child session, or null when the family never delegated it. The composer chain elects on the session snapshot alone (one-shot subagent), then confirms membership through this Remote — a null answer renders the same read-only panel the official composer shows, never a writable box. The CLI-session resume handle (`cliSessionId`) deliberately stays off the wire: the resume facade resolves it host-side from the record.',
|
|
1591
2040
|
invocation: { kind: 'direct' },
|
|
1592
2041
|
parameters: [
|
|
1593
2042
|
{
|
|
1594
2043
|
name: 'childSessionId',
|
|
1595
|
-
|
|
2044
|
+
description: 'the dsh child session id being viewed.',
|
|
1596
2045
|
source: 'json',
|
|
1597
2046
|
codec: {
|
|
1598
2047
|
mode: 'strict',
|
|
1599
2048
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberOf:childSessionId',
|
|
1600
2049
|
create: _khorsheed_dsh_local_agent_localAgentGateway_memberOf_parameter_0$schema,
|
|
1601
2050
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_memberOf_parameter_0$schema(),
|
|
2051
|
+
jsonSchema: {"type":"string"},
|
|
2052
|
+
},
|
|
2053
|
+
strictCodec: {
|
|
2054
|
+
mode: 'strict',
|
|
2055
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberOf:childSessionId',
|
|
2056
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_memberOf_parameter_0_strict$schema,
|
|
2057
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_memberOf_parameter_0_strict$schema(),
|
|
2058
|
+
jsonSchema: {"type":"string"},
|
|
1602
2059
|
},
|
|
1603
2060
|
},
|
|
1604
2061
|
],
|
|
@@ -1607,30 +2064,38 @@ export const TYPERT = {
|
|
|
1607
2064
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberOf:result',
|
|
1608
2065
|
create: _khorsheed_dsh_local_agent_localAgentGateway_memberOf_result$schema,
|
|
1609
2066
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_memberOf_result$schema(),
|
|
2067
|
+
description: 'the delegation view, or null for a non-member session.',
|
|
2068
|
+
jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"childSessionId":{"type":"string","description":"The dsh subagent child session id."},"provider":{"type":"string","description":"The `ctx.subagents` provider name that owns the CLI session."},"parentSessionId":{"type":"string","description":"The delegating parent session id that created the child."},"harnessDisplayName":{"type":"string","description":"The owning harness's human display name, when a harness claims the provider."}},"required":["childSessionId","provider","parentSessionId"],"additionalProperties":true}]},
|
|
1610
2069
|
},
|
|
1611
2070
|
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":220,"column":3},
|
|
1612
2071
|
},
|
|
1613
|
-
{
|
|
1614
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/modelDirectory',
|
|
2072
|
+
'localAgentGateway/modelDirectory': {
|
|
1615
2073
|
service: 'localAgentGateway',
|
|
1616
|
-
|
|
1617
|
-
method: 'modelDirectory',
|
|
2074
|
+
description: 'Read or explicitly refresh native model discovery, without changing a member.',
|
|
1618
2075
|
invocation: { kind: 'direct' },
|
|
1619
2076
|
parameters: [
|
|
1620
2077
|
{
|
|
1621
2078
|
name: 'name',
|
|
1622
|
-
|
|
2079
|
+
description: 'owning harness.',
|
|
1623
2080
|
source: 'json',
|
|
1624
2081
|
codec: {
|
|
1625
2082
|
mode: 'strict',
|
|
1626
2083
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/modelDirectory:name',
|
|
1627
2084
|
create: _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_0$schema,
|
|
1628
2085
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_0$schema(),
|
|
2086
|
+
jsonSchema: {"type":"string"},
|
|
2087
|
+
},
|
|
2088
|
+
strictCodec: {
|
|
2089
|
+
mode: 'strict',
|
|
2090
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/modelDirectory:name',
|
|
2091
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_0_strict$schema,
|
|
2092
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_0_strict$schema(),
|
|
2093
|
+
jsonSchema: {"type":"string"},
|
|
1629
2094
|
},
|
|
1630
2095
|
},
|
|
1631
2096
|
{
|
|
1632
2097
|
name: 'childSessionId',
|
|
1633
|
-
|
|
2098
|
+
description: 'member context, or undefined for the harness default.',
|
|
1634
2099
|
source: 'json',
|
|
1635
2100
|
acceptsUndefined: true,
|
|
1636
2101
|
codec: {
|
|
@@ -1638,17 +2103,33 @@ export const TYPERT = {
|
|
|
1638
2103
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/modelDirectory:childSessionId',
|
|
1639
2104
|
create: _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_1$schema,
|
|
1640
2105
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_1$schema(),
|
|
2106
|
+
jsonSchema: {"type":"string"},
|
|
2107
|
+
},
|
|
2108
|
+
strictCodec: {
|
|
2109
|
+
mode: 'strict',
|
|
2110
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/modelDirectory:childSessionId',
|
|
2111
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_1_strict$schema,
|
|
2112
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_1_strict$schema(),
|
|
2113
|
+
jsonSchema: {"type":"string"},
|
|
1641
2114
|
},
|
|
1642
2115
|
},
|
|
1643
2116
|
{
|
|
1644
2117
|
name: 'refresh',
|
|
1645
|
-
|
|
2118
|
+
description: 'bypass the discovery TTL.',
|
|
1646
2119
|
source: 'json',
|
|
1647
2120
|
codec: {
|
|
1648
2121
|
mode: 'strict',
|
|
1649
2122
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/modelDirectory:refresh',
|
|
1650
2123
|
create: _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_2$schema,
|
|
1651
2124
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_2$schema(),
|
|
2125
|
+
jsonSchema: {"type":"boolean"},
|
|
2126
|
+
},
|
|
2127
|
+
strictCodec: {
|
|
2128
|
+
mode: 'strict',
|
|
2129
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/modelDirectory:refresh',
|
|
2130
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_2_strict$schema,
|
|
2131
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_2_strict$schema(),
|
|
2132
|
+
jsonSchema: {"type":"boolean"},
|
|
1652
2133
|
},
|
|
1653
2134
|
},
|
|
1654
2135
|
],
|
|
@@ -1657,41 +2138,91 @@ export const TYPERT = {
|
|
|
1657
2138
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/modelDirectory:result',
|
|
1658
2139
|
create: _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_result$schema,
|
|
1659
2140
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_result$schema(),
|
|
2141
|
+
description: 'source-labelled discovery state, or null for an unavailable broker.',
|
|
2142
|
+
jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"object","properties":{"status":{"type":"string","enum":["ready","error","loading","stale","unsupported"]},"refreshing":{"type":"boolean"},"revision":{"type":"number"},"refreshedAt":{"type":"number"},"entries":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"resolvedModel":{"type":"string"},"description":{"type":"string"},"source":{"type":"string","enum":["history","configuration","native"]},"hidden":{"type":"boolean"},"reasoning":{"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"}},"required":["value","label"],"additionalProperties":true}},"default":{"type":"string"}},"required":["options"],"additionalProperties":true}},"required":["value","label","source"],"additionalProperties":true}},"defaultModel":{"type":"string"},"complete":{"type":"boolean","description":"Complete enumeration of this source, not a guarantee of account access."},"customInput":{"type":"boolean"},"unsupported":{"type":"boolean"},"reason":{"type":"string"}},"required":["status","refreshing","revision","entries","complete","customInput"],"additionalProperties":true}]},
|
|
1660
2143
|
},
|
|
1661
2144
|
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":113,"column":9},
|
|
1662
2145
|
},
|
|
1663
|
-
{
|
|
1664
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/promptMember',
|
|
2146
|
+
'localAgentGateway/modelList': {
|
|
1665
2147
|
service: 'localAgentGateway',
|
|
1666
|
-
|
|
1667
|
-
|
|
2148
|
+
description: 'The settings card\'s read of one harness\'s curated model list — ordered identifiers, first is the default. Null when the harness is unknown or declares no list face (the card then hides the editor).',
|
|
2149
|
+
invocation: { kind: 'direct' },
|
|
2150
|
+
parameters: [
|
|
2151
|
+
{
|
|
2152
|
+
name: 'name',
|
|
2153
|
+
description: 'the harness name.',
|
|
2154
|
+
source: 'json',
|
|
2155
|
+
codec: {
|
|
2156
|
+
mode: 'strict',
|
|
2157
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/modelList:name',
|
|
2158
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_modelList_parameter_0$schema,
|
|
2159
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_modelList_parameter_0$schema(),
|
|
2160
|
+
jsonSchema: {"type":"string"},
|
|
2161
|
+
},
|
|
2162
|
+
strictCodec: {
|
|
2163
|
+
mode: 'strict',
|
|
2164
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/modelList:name',
|
|
2165
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_modelList_parameter_0_strict$schema,
|
|
2166
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_modelList_parameter_0_strict$schema(),
|
|
2167
|
+
jsonSchema: {"type":"string"},
|
|
2168
|
+
},
|
|
2169
|
+
},
|
|
2170
|
+
],
|
|
2171
|
+
result: {
|
|
2172
|
+
mode: 'strict',
|
|
2173
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/modelList:result',
|
|
2174
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_modelList_result$schema,
|
|
2175
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_modelList_result$schema(),
|
|
2176
|
+
description: 'the ordered list, or null.',
|
|
2177
|
+
jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"array","items":{"type":"string"}}]},
|
|
2178
|
+
},
|
|
2179
|
+
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":317,"column":9},
|
|
2180
|
+
},
|
|
2181
|
+
'localAgentGateway/promptMember': {
|
|
2182
|
+
service: 'localAgentGateway',
|
|
2183
|
+
description: 'Send one human-authored follow-up to a family member: continue the member\'s SAME CLI session inside the SAME dsh child session. The child session id is the membership proof — the user opened the real child session, and the recorded delegation is the authorization source — so there is no model-forged handle surface; the resume handle never enters the prompt text. The prompt goes through the facade ({@link LocalAgentRegistry.resume}) unchanged: ownership check, resume lock, reattach, and run tracking all apply.',
|
|
1668
2184
|
invocation: { kind: 'direct' },
|
|
1669
2185
|
parameters: [
|
|
1670
2186
|
{
|
|
1671
2187
|
name: 'childSessionId',
|
|
1672
|
-
|
|
2188
|
+
description: 'the dsh child session id of the member.',
|
|
1673
2189
|
source: 'json',
|
|
1674
2190
|
codec: {
|
|
1675
2191
|
mode: 'strict',
|
|
1676
2192
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/promptMember:childSessionId',
|
|
1677
2193
|
create: _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_0$schema,
|
|
1678
2194
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_0$schema(),
|
|
2195
|
+
jsonSchema: {"type":"string"},
|
|
2196
|
+
},
|
|
2197
|
+
strictCodec: {
|
|
2198
|
+
mode: 'strict',
|
|
2199
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/promptMember:childSessionId',
|
|
2200
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_0_strict$schema,
|
|
2201
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_0_strict$schema(),
|
|
2202
|
+
jsonSchema: {"type":"string"},
|
|
1679
2203
|
},
|
|
1680
2204
|
},
|
|
1681
2205
|
{
|
|
1682
2206
|
name: 'text',
|
|
1683
|
-
|
|
2207
|
+
description: 'the human\'s follow-up message.',
|
|
1684
2208
|
source: 'json',
|
|
1685
2209
|
codec: {
|
|
1686
2210
|
mode: 'strict',
|
|
1687
2211
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/promptMember:text',
|
|
1688
2212
|
create: _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_1$schema,
|
|
1689
2213
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_1$schema(),
|
|
2214
|
+
jsonSchema: {"type":"string"},
|
|
2215
|
+
},
|
|
2216
|
+
strictCodec: {
|
|
2217
|
+
mode: 'strict',
|
|
2218
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/promptMember:text',
|
|
2219
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_1_strict$schema,
|
|
2220
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_1_strict$schema(),
|
|
2221
|
+
jsonSchema: {"type":"string"},
|
|
1690
2222
|
},
|
|
1691
2223
|
},
|
|
1692
2224
|
{
|
|
1693
2225
|
name: 'requestId',
|
|
1694
|
-
wire: 'requestId',
|
|
1695
2226
|
source: 'json',
|
|
1696
2227
|
acceptsUndefined: true,
|
|
1697
2228
|
codec: {
|
|
@@ -1699,6 +2230,14 @@ export const TYPERT = {
|
|
|
1699
2230
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/promptMember:requestId',
|
|
1700
2231
|
create: _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_2$schema,
|
|
1701
2232
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_2$schema(),
|
|
2233
|
+
jsonSchema: {"type":"string"},
|
|
2234
|
+
},
|
|
2235
|
+
strictCodec: {
|
|
2236
|
+
mode: 'strict',
|
|
2237
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/promptMember:requestId',
|
|
2238
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_2_strict$schema,
|
|
2239
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_2_strict$schema(),
|
|
2240
|
+
jsonSchema: {"type":"string"},
|
|
1702
2241
|
},
|
|
1703
2242
|
},
|
|
1704
2243
|
],
|
|
@@ -1707,36 +2246,49 @@ export const TYPERT = {
|
|
|
1707
2246
|
typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentPromptResult',
|
|
1708
2247
|
create: _khorsheed_dsh_local_agent_localAgentGateway_promptMember_result$schema,
|
|
1709
2248
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_promptMember_result$schema(),
|
|
2249
|
+
description: '`{ ok: true }` once the run started, or a structured error (unknown member, parent not live, resume in flight) for the composer to render inline — raw exceptions never cross the wire.',
|
|
2250
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"requestId":{"type":"string"}},"required":["ok"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"type":"string"}},"required":["ok","error"],"additionalProperties":true}]},
|
|
1710
2251
|
},
|
|
1711
|
-
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":
|
|
2252
|
+
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":444,"column":9},
|
|
1712
2253
|
},
|
|
1713
|
-
{
|
|
1714
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/retryMemberConfiguration',
|
|
2254
|
+
'localAgentGateway/retryMemberConfiguration': {
|
|
1715
2255
|
service: 'localAgentGateway',
|
|
1716
|
-
namespace: 'localAgentGateway',
|
|
1717
|
-
method: 'retryMemberConfiguration',
|
|
1718
2256
|
invocation: { kind: 'direct' },
|
|
1719
2257
|
parameters: [
|
|
1720
2258
|
{
|
|
1721
2259
|
name: 'childSessionId',
|
|
1722
|
-
wire: 'childSessionId',
|
|
1723
2260
|
source: 'json',
|
|
1724
2261
|
codec: {
|
|
1725
2262
|
mode: 'strict',
|
|
1726
2263
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/retryMemberConfiguration:childSessionId',
|
|
1727
2264
|
create: _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_parameter_0$schema,
|
|
1728
2265
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_parameter_0$schema(),
|
|
2266
|
+
jsonSchema: {"type":"string"},
|
|
2267
|
+
},
|
|
2268
|
+
strictCodec: {
|
|
2269
|
+
mode: 'strict',
|
|
2270
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/retryMemberConfiguration:childSessionId',
|
|
2271
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_parameter_0_strict$schema,
|
|
2272
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_parameter_0_strict$schema(),
|
|
2273
|
+
jsonSchema: {"type":"string"},
|
|
1729
2274
|
},
|
|
1730
2275
|
},
|
|
1731
2276
|
{
|
|
1732
2277
|
name: 'expectedRevision',
|
|
1733
|
-
wire: 'expectedRevision',
|
|
1734
2278
|
source: 'json',
|
|
1735
2279
|
codec: {
|
|
1736
2280
|
mode: 'strict',
|
|
1737
2281
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/retryMemberConfiguration:expectedRevision',
|
|
1738
2282
|
create: _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_parameter_1$schema,
|
|
1739
2283
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_parameter_1$schema(),
|
|
2284
|
+
jsonSchema: {"type":"number"},
|
|
2285
|
+
},
|
|
2286
|
+
strictCodec: {
|
|
2287
|
+
mode: 'strict',
|
|
2288
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/retryMemberConfiguration:expectedRevision',
|
|
2289
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_parameter_1_strict$schema,
|
|
2290
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_parameter_1_strict$schema(),
|
|
2291
|
+
jsonSchema: {"type":"number"},
|
|
1740
2292
|
},
|
|
1741
2293
|
},
|
|
1742
2294
|
],
|
|
@@ -1745,14 +2297,13 @@ export const TYPERT = {
|
|
|
1745
2297
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/retryMemberConfiguration:result',
|
|
1746
2298
|
create: _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_result$schema,
|
|
1747
2299
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_result$schema(),
|
|
2300
|
+
jsonSchemaError: 'typert tool schema: unsupported void value',
|
|
1748
2301
|
},
|
|
1749
|
-
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":
|
|
2302
|
+
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":419,"column":9},
|
|
1750
2303
|
},
|
|
1751
|
-
{
|
|
1752
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/roster',
|
|
2304
|
+
'localAgentGateway/roster': {
|
|
1753
2305
|
service: 'localAgentGateway',
|
|
1754
|
-
|
|
1755
|
-
method: 'roster',
|
|
2306
|
+
description: 'Registered harnesses in registration order.',
|
|
1756
2307
|
invocation: { kind: 'direct' },
|
|
1757
2308
|
parameters: [
|
|
1758
2309
|
],
|
|
@@ -1761,58 +2312,85 @@ export const TYPERT = {
|
|
|
1761
2312
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/roster:result',
|
|
1762
2313
|
create: _khorsheed_dsh_local_agent_localAgentGateway_roster_result$schema,
|
|
1763
2314
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_roster_result$schema(),
|
|
2315
|
+
description: 'the roster rows.',
|
|
2316
|
+
jsonSchema: {"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Harness command prefix."},"displayName":{"type":"string","description":"Human display name."}},"required":["name","displayName"],"additionalProperties":true}},
|
|
1764
2317
|
},
|
|
1765
2318
|
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":159,"column":3},
|
|
1766
2319
|
},
|
|
1767
|
-
{
|
|
1768
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/selectMemberConfiguration',
|
|
2320
|
+
'localAgentGateway/selectMemberConfiguration': {
|
|
1769
2321
|
service: 'localAgentGateway',
|
|
1770
|
-
namespace: 'localAgentGateway',
|
|
1771
|
-
method: 'selectMemberConfiguration',
|
|
1772
2322
|
invocation: { kind: 'direct' },
|
|
1773
2323
|
parameters: [
|
|
1774
2324
|
{
|
|
1775
2325
|
name: 'childSessionId',
|
|
1776
|
-
wire: 'childSessionId',
|
|
1777
2326
|
source: 'json',
|
|
1778
2327
|
codec: {
|
|
1779
2328
|
mode: 'strict',
|
|
1780
2329
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/selectMemberConfiguration:childSessionId',
|
|
1781
2330
|
create: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_0$schema,
|
|
1782
2331
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_0$schema(),
|
|
2332
|
+
jsonSchema: {"type":"string"},
|
|
2333
|
+
},
|
|
2334
|
+
strictCodec: {
|
|
2335
|
+
mode: 'strict',
|
|
2336
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/selectMemberConfiguration:childSessionId',
|
|
2337
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_0_strict$schema,
|
|
2338
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_0_strict$schema(),
|
|
2339
|
+
jsonSchema: {"type":"string"},
|
|
1783
2340
|
},
|
|
1784
2341
|
},
|
|
1785
2342
|
{
|
|
1786
2343
|
name: 'requestId',
|
|
1787
|
-
wire: 'requestId',
|
|
1788
2344
|
source: 'json',
|
|
1789
2345
|
codec: {
|
|
1790
2346
|
mode: 'strict',
|
|
1791
2347
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/selectMemberConfiguration:requestId',
|
|
1792
2348
|
create: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_1$schema,
|
|
1793
2349
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_1$schema(),
|
|
2350
|
+
jsonSchema: {"type":"string"},
|
|
2351
|
+
},
|
|
2352
|
+
strictCodec: {
|
|
2353
|
+
mode: 'strict',
|
|
2354
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/selectMemberConfiguration:requestId',
|
|
2355
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_1_strict$schema,
|
|
2356
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_1_strict$schema(),
|
|
2357
|
+
jsonSchema: {"type":"string"},
|
|
1794
2358
|
},
|
|
1795
2359
|
},
|
|
1796
2360
|
{
|
|
1797
2361
|
name: 'expectedRevision',
|
|
1798
|
-
wire: 'expectedRevision',
|
|
1799
2362
|
source: 'json',
|
|
1800
2363
|
codec: {
|
|
1801
2364
|
mode: 'strict',
|
|
1802
2365
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/selectMemberConfiguration:expectedRevision',
|
|
1803
2366
|
create: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_2$schema,
|
|
1804
2367
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_2$schema(),
|
|
2368
|
+
jsonSchema: {"type":"number"},
|
|
2369
|
+
},
|
|
2370
|
+
strictCodec: {
|
|
2371
|
+
mode: 'strict',
|
|
2372
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/selectMemberConfiguration:expectedRevision',
|
|
2373
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_2_strict$schema,
|
|
2374
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_2_strict$schema(),
|
|
2375
|
+
jsonSchema: {"type":"number"},
|
|
1805
2376
|
},
|
|
1806
2377
|
},
|
|
1807
2378
|
{
|
|
1808
2379
|
name: 'selection',
|
|
1809
|
-
wire: 'selection',
|
|
1810
2380
|
source: 'json',
|
|
1811
2381
|
codec: {
|
|
1812
2382
|
mode: 'strict',
|
|
1813
2383
|
typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentMemberConfiguration',
|
|
1814
2384
|
create: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_3$schema,
|
|
1815
2385
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_3$schema(),
|
|
2386
|
+
jsonSchema: {"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":true},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":true}]}},"required":["model","effort"],"additionalProperties":true},
|
|
2387
|
+
},
|
|
2388
|
+
strictCodec: {
|
|
2389
|
+
mode: 'strict',
|
|
2390
|
+
typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentMemberConfiguration',
|
|
2391
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_3_strict$schema,
|
|
2392
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_3_strict$schema(),
|
|
2393
|
+
jsonSchema: {"type":"object","properties":{"model":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":false}]},"effort":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","inherit"]}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"value"},"value":{"type":"string"}},"required":["mode","value"],"additionalProperties":false}]}},"required":["model","effort"],"additionalProperties":false},
|
|
1816
2394
|
},
|
|
1817
2395
|
},
|
|
1818
2396
|
],
|
|
@@ -1821,30 +2399,37 @@ export const TYPERT = {
|
|
|
1821
2399
|
typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentControlReceipt',
|
|
1822
2400
|
create: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_result$schema,
|
|
1823
2401
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_result$schema(),
|
|
2402
|
+
jsonSchema: {"type":"object","properties":{"requestId":{"type":"string"},"revision":{"type":"number"},"status":{"type":"string","enum":["cancelled","failed","pending","applied","conflict","unsupported","locked","applying"]},"error":{"type":"string"}},"required":["requestId","revision","status"],"additionalProperties":true},
|
|
1824
2403
|
},
|
|
1825
|
-
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":
|
|
2404
|
+
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":409,"column":9},
|
|
1826
2405
|
},
|
|
1827
|
-
{
|
|
1828
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/sessions',
|
|
2406
|
+
'localAgentGateway/sessions': {
|
|
1829
2407
|
service: 'localAgentGateway',
|
|
1830
|
-
|
|
1831
|
-
method: 'sessions',
|
|
2408
|
+
description: 'One harness\'s scoped session records, optionally narrowed to the sessions whose working directory is a given dsh session\'s cwd — the delegations a session\'s workspace actually produced, so one project\'s kimi sessions do not surface in another project\'s session.',
|
|
1832
2409
|
invocation: { kind: 'direct' },
|
|
1833
2410
|
parameters: [
|
|
1834
2411
|
{
|
|
1835
2412
|
name: 'name',
|
|
1836
|
-
|
|
2413
|
+
description: 'the harness name.',
|
|
1837
2414
|
source: 'json',
|
|
1838
2415
|
codec: {
|
|
1839
2416
|
mode: 'strict',
|
|
1840
2417
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/sessions:name',
|
|
1841
2418
|
create: _khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_0$schema,
|
|
1842
2419
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_0$schema(),
|
|
2420
|
+
jsonSchema: {"type":"string"},
|
|
2421
|
+
},
|
|
2422
|
+
strictCodec: {
|
|
2423
|
+
mode: 'strict',
|
|
2424
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/sessions:name',
|
|
2425
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_0_strict$schema,
|
|
2426
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_0_strict$schema(),
|
|
2427
|
+
jsonSchema: {"type":"string"},
|
|
1843
2428
|
},
|
|
1844
2429
|
},
|
|
1845
2430
|
{
|
|
1846
2431
|
name: 'sessionId',
|
|
1847
|
-
|
|
2432
|
+
description: 'optional dsh session whose cwd filters the records.',
|
|
1848
2433
|
source: 'json',
|
|
1849
2434
|
acceptsUndefined: true,
|
|
1850
2435
|
codec: {
|
|
@@ -1852,6 +2437,14 @@ export const TYPERT = {
|
|
|
1852
2437
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/sessions:sessionId',
|
|
1853
2438
|
create: _khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_1$schema,
|
|
1854
2439
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_1$schema(),
|
|
2440
|
+
jsonSchema: {"type":"string"},
|
|
2441
|
+
},
|
|
2442
|
+
strictCodec: {
|
|
2443
|
+
mode: 'strict',
|
|
2444
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/sessions:sessionId',
|
|
2445
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_1_strict$schema,
|
|
2446
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_1_strict$schema(),
|
|
2447
|
+
jsonSchema: {"type":"string"},
|
|
1855
2448
|
},
|
|
1856
2449
|
},
|
|
1857
2450
|
],
|
|
@@ -1860,30 +2453,38 @@ export const TYPERT = {
|
|
|
1860
2453
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/sessions:result',
|
|
1861
2454
|
create: _khorsheed_dsh_local_agent_localAgentGateway_sessions_result$schema,
|
|
1862
2455
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_sessions_result$schema(),
|
|
2456
|
+
description: 'the matching session records.',
|
|
2457
|
+
jsonSchema: {"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Harness session id."},"workDir":{"type":"string","description":"The workspace directory the session ran in."},"title":{"type":"string","description":"Optional session title when the harness records one."},"startedAt":{"type":"number","description":"Optional epoch-millis start time when the harness records one."}},"required":["id","workDir"],"additionalProperties":true}},
|
|
1863
2458
|
},
|
|
1864
2459
|
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":200,"column":9},
|
|
1865
2460
|
},
|
|
1866
|
-
{
|
|
1867
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/setMemberModel',
|
|
2461
|
+
'localAgentGateway/setMemberModel': {
|
|
1868
2462
|
service: 'localAgentGateway',
|
|
1869
|
-
|
|
1870
|
-
method: 'setMemberModel',
|
|
2463
|
+
description: 'Switch a member\'s session-level model (the composer\'s picker write). The override outranks the delegation\'s recorded model and the settings layer; with the live driver on it retires the member\'s resident runtime so the NEXT round respawns onto the new model — the CLI session itself (its rollout) carries over. Failures arrive structured, never raw.',
|
|
1871
2464
|
invocation: { kind: 'direct' },
|
|
1872
2465
|
parameters: [
|
|
1873
2466
|
{
|
|
1874
2467
|
name: 'childSessionId',
|
|
1875
|
-
|
|
2468
|
+
description: 'the dsh child session id of the member.',
|
|
1876
2469
|
source: 'json',
|
|
1877
2470
|
codec: {
|
|
1878
2471
|
mode: 'strict',
|
|
1879
2472
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/setMemberModel:childSessionId',
|
|
1880
2473
|
create: _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_0$schema,
|
|
1881
2474
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_0$schema(),
|
|
2475
|
+
jsonSchema: {"type":"string"},
|
|
2476
|
+
},
|
|
2477
|
+
strictCodec: {
|
|
2478
|
+
mode: 'strict',
|
|
2479
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/setMemberModel:childSessionId',
|
|
2480
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_0_strict$schema,
|
|
2481
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_0_strict$schema(),
|
|
2482
|
+
jsonSchema: {"type":"string"},
|
|
1882
2483
|
},
|
|
1883
2484
|
},
|
|
1884
2485
|
{
|
|
1885
2486
|
name: 'model',
|
|
1886
|
-
|
|
2487
|
+
description: 'the model identifier, or undefined to clear the override (the member then follows the settings layer again).',
|
|
1887
2488
|
source: 'json',
|
|
1888
2489
|
acceptsUndefined: true,
|
|
1889
2490
|
codec: {
|
|
@@ -1891,6 +2492,14 @@ export const TYPERT = {
|
|
|
1891
2492
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/setMemberModel:model',
|
|
1892
2493
|
create: _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_1$schema,
|
|
1893
2494
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_1$schema(),
|
|
2495
|
+
jsonSchema: {"type":"string"},
|
|
2496
|
+
},
|
|
2497
|
+
strictCodec: {
|
|
2498
|
+
mode: 'strict',
|
|
2499
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/setMemberModel:model',
|
|
2500
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_1_strict$schema,
|
|
2501
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_1_strict$schema(),
|
|
2502
|
+
jsonSchema: {"type":"string"},
|
|
1894
2503
|
},
|
|
1895
2504
|
},
|
|
1896
2505
|
],
|
|
@@ -1899,30 +2508,38 @@ export const TYPERT = {
|
|
|
1899
2508
|
typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentPromptResult',
|
|
1900
2509
|
create: _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_result$schema,
|
|
1901
2510
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_result$schema(),
|
|
2511
|
+
description: '`{ ok: true }` once applied, or a structured error.',
|
|
2512
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"requestId":{"type":"string"}},"required":["ok"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"type":"string"}},"required":["ok","error"],"additionalProperties":true}]},
|
|
1902
2513
|
},
|
|
1903
|
-
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":
|
|
2514
|
+
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":384,"column":9},
|
|
1904
2515
|
},
|
|
1905
|
-
{
|
|
1906
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/status',
|
|
2516
|
+
'localAgentGateway/status': {
|
|
1907
2517
|
service: 'localAgentGateway',
|
|
1908
|
-
|
|
1909
|
-
method: 'status',
|
|
2518
|
+
description: 'One harness\'s auth status, in the default scope or in a named one.',
|
|
1910
2519
|
invocation: { kind: 'direct' },
|
|
1911
2520
|
parameters: [
|
|
1912
2521
|
{
|
|
1913
2522
|
name: 'name',
|
|
1914
|
-
|
|
2523
|
+
description: 'the harness name.',
|
|
1915
2524
|
source: 'json',
|
|
1916
2525
|
codec: {
|
|
1917
2526
|
mode: 'strict',
|
|
1918
2527
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/status:name',
|
|
1919
2528
|
create: _khorsheed_dsh_local_agent_localAgentGateway_status_parameter_0$schema,
|
|
1920
2529
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_status_parameter_0$schema(),
|
|
2530
|
+
jsonSchema: {"type":"string"},
|
|
2531
|
+
},
|
|
2532
|
+
strictCodec: {
|
|
2533
|
+
mode: 'strict',
|
|
2534
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/status:name',
|
|
2535
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_status_parameter_0_strict$schema,
|
|
2536
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_status_parameter_0_strict$schema(),
|
|
2537
|
+
jsonSchema: {"type":"string"},
|
|
1921
2538
|
},
|
|
1922
2539
|
},
|
|
1923
2540
|
{
|
|
1924
2541
|
name: 'scope',
|
|
1925
|
-
|
|
2542
|
+
description: 'the named scope to report on; absent means the default scope, so a client written before scopes existed gets exactly the snapshot it always got.',
|
|
1926
2543
|
source: 'json',
|
|
1927
2544
|
acceptsUndefined: true,
|
|
1928
2545
|
codec: {
|
|
@@ -1930,6 +2547,14 @@ export const TYPERT = {
|
|
|
1930
2547
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/status:scope',
|
|
1931
2548
|
create: _khorsheed_dsh_local_agent_localAgentGateway_status_parameter_1$schema,
|
|
1932
2549
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_status_parameter_1$schema(),
|
|
2550
|
+
jsonSchema: {"type":"string"},
|
|
2551
|
+
},
|
|
2552
|
+
strictCodec: {
|
|
2553
|
+
mode: 'strict',
|
|
2554
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/status:scope',
|
|
2555
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_status_parameter_1_strict$schema,
|
|
2556
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_status_parameter_1_strict$schema(),
|
|
2557
|
+
jsonSchema: {"type":"string"},
|
|
1933
2558
|
},
|
|
1934
2559
|
},
|
|
1935
2560
|
],
|
|
@@ -1938,25 +2563,33 @@ export const TYPERT = {
|
|
|
1938
2563
|
typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentStatus',
|
|
1939
2564
|
create: _khorsheed_dsh_local_agent_localAgentGateway_status_result$schema,
|
|
1940
2565
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_status_result$schema(),
|
|
2566
|
+
description: 'the status snapshot.',
|
|
2567
|
+
jsonSchema: {"type":"object","properties":{"name":{"type":"string","description":"Harness command prefix."},"displayName":{"type":"string","description":"Human display name."},"authenticated":{"type":"boolean","description":"Whether the scoped home holds usable credentials — the SHAPE answer, kept for every surface written before {@link LocalAgentCredentialState} existed. Exactly `credentialState === 'verified' || 'present-unverified'`: a record that is present but never exercised still reads true, which is why the finer field exists."},"credentialState":{"type":"string","enum":["rejected","absent","present-unverified","verified"],"description":"How much is actually known about the credential — the liveness grade behind {@link LocalAgentStatus.authenticated}. Always present."},"homeDir":{"type":"string","description":"Absolute scoped home — of the SCOPE this status was asked about (see {@link LocalAgentStatus.scope}), which for the default scope is the directory it always was."},"scope":{"type":"string","description":"The named scope this status describes, when it describes one. Absent means the default scope — the only one that existed before named scopes, so every surface written before the field keeps reading exactly what it read. A named scope holds its own account: its credential grade, its session records and its delegation mappings are its own."},"delegationProvider":{"type":"string","description":"Subagent provider name, when the harness delegates."},"loginable":{"type":"boolean","description":"Whether the harness declares a device-code login flow (`/<name> login`). A harness without one authenticates through the host instance (e.g. by resolving a credential), so surfaces must not offer a login action."},"loginAwaitingCode":{"type":"boolean","description":"A pty login is waiting for the user to paste the OAuth code (`/<name> code <value>`). Surfaces render the paste box while set."},"logoutable":{"type":"boolean","description":"Whether the harness declares a sign-out path (`/<name> logout`). A harness without one has no account to switch, so surfaces must not offer a logout action."},"effectiveSettings":{"type":"object","properties":{"drive":{"type":"string","enum":["live","exec"],"description":"How delegation rounds run: a one-shot CLI process per round (`exec`) or a resident runtime driven over its wire (`live`). The reported value is the configured driver preference in force; a live round may still fall back to exec when its channel cannot come up."},"sandbox":{"type":"string","description":"The file-effect boundary in force, in the harness's own vocabulary. Codex: the sandbox policy every round passes to `codex exec --sandbox`. dsh: the permission preset provisioning pins into the sub-profile (`read-only` / `workspace-write` / `danger-full-access`), which also decides the sub-dsh's approval policy through dsh-base's own preset table. Absent when the deployment pins none."},"permissionMode":{"type":"string","description":"Claude Code: the `claude -p` permission handling (`skip` or `normal`)."},"autoApprove":{"type":"boolean","description":"Kimi: whether the scoped config's permission rules auto-approve tool use (the `Bash(*)` allow rule the provisioning gate keys on)."},"reasoningEffort":{"type":"string","description":"The reasoning effort in force, when the harness has one. Kimi reads its scoped config (`[thinking] effort`, falling back to the model's `default_effort`); codex reads its scoped config's `model_reasoning_effort`. Absent when the harness exposes no effort knob."},"baseUrlSet":{"type":"boolean","description":"Whether a non-default endpoint is in force (a provider-pinned or env-provided base URL)."},"baseUrlHost":{"type":"string","description":"The endpoint's HOSTNAME only, present exactly when `baseUrlSet`. Never the full URL — its path can carry credential-adjacent segments."},"cliVersion":{"type":"string","description":"The CLI's own version, as the CLI itself reports it — the version a delegation round would run with right now. Resolved by the family's `<cli> --version` probe, which spawns at most once per executable identity (resolved path + mtime + size) and is therefore cheap enough for a status read while still re-probing across an upgrade. Absent when the CLI cannot be asked (not installed, non-zero exit, timeout, no version-shaped token in its banner) — absence is the honest condition input, never a substituted guess."},"model":{"type":"string","description":"The configured model identifier a delegation round would run with — read in one fixed order, never guessed: the harness's OWN `model` plugin-config key first (codex, claude-code, and kimi each accept one, and a set key rides every round's CLI launch), then the harness's scoped configuration surface (kimi's `default_model`, codex's `model`, claude-code's `settings.json` `model`, dsh's host `agentDefaultModel` selection formatted `provider/model` — the CLI's own default stays unnamed), then absent. Absence is the honest answer, never a substituted default. This deliberately does NOT report a delegation-level model ({@link DelegationCallOptions.model}): that one belongs to one delegation, while this field answers \"what would a round with no model of its own run\" — the harness-wide setting, which is what the evaluation's condition snapshot is asking about. This is a LIVE read of what the NEXT such round would run with. A run's condition hash freezes it at run setup, so changing the key mid-run does not rewrite the recorded condition — the next round's model read-back fails the run as misattributed instead (web-eval frozen decision 5)."},"containerNodeOptions":{"type":"string","description":"Extra `NODE_OPTIONS` the harness injects when a round runs against a container exec target ({@link DelegationExecTarget}). Only the dsh harness declares one: its HTTP client is node's `fetch` (undici), which does not read `HTTP(S)_PROXY` by default, so a round inside a unit whose only egress is a whitelist proxy needs `--use-env-proxy` to open undici's `EnvHttpProxyAgent` — without it the CLI dials the API directly and the proxy never even sees a `CONNECT`. Reported unconditionally because the injection is unconditional in code; absent means the harness injects none. Never a credential — a node flag."}},"required":["drive","baseUrlSet"],"additionalProperties":true,"description":"The harness's fairness-relevant effective settings, when the harness declares a snapshot ({@link LocalAgentHarness.effectiveSettings}). Additive: surfaces and clients written before the field simply ignore it."}},"required":["name","displayName","authenticated","credentialState","homeDir"],"additionalProperties":true},
|
|
1941
2568
|
},
|
|
1942
2569
|
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":186,"column":3},
|
|
1943
2570
|
},
|
|
1944
|
-
{
|
|
1945
|
-
id: '@khorsheed/dsh-local-agent#localAgentGateway/stopMember',
|
|
2571
|
+
'localAgentGateway/stopMember': {
|
|
1946
2572
|
service: 'localAgentGateway',
|
|
1947
|
-
|
|
1948
|
-
method: 'stopMember',
|
|
2573
|
+
description: 'Interrupt a member\'s in-flight run (the composer\'s Stop).',
|
|
1949
2574
|
invocation: { kind: 'direct' },
|
|
1950
2575
|
parameters: [
|
|
1951
2576
|
{
|
|
1952
2577
|
name: 'childSessionId',
|
|
1953
|
-
|
|
2578
|
+
description: 'the dsh child session id of the member.',
|
|
1954
2579
|
source: 'json',
|
|
1955
2580
|
codec: {
|
|
1956
2581
|
mode: 'strict',
|
|
1957
2582
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/stopMember:childSessionId',
|
|
1958
2583
|
create: _khorsheed_dsh_local_agent_localAgentGateway_stopMember_parameter_0$schema,
|
|
1959
2584
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_stopMember_parameter_0$schema(),
|
|
2585
|
+
jsonSchema: {"type":"string"},
|
|
2586
|
+
},
|
|
2587
|
+
strictCodec: {
|
|
2588
|
+
mode: 'strict',
|
|
2589
|
+
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/stopMember:childSessionId',
|
|
2590
|
+
create: _khorsheed_dsh_local_agent_localAgentGateway_stopMember_parameter_0_strict$schema,
|
|
2591
|
+
schema: _khorsheed_dsh_local_agent_localAgentGateway_stopMember_parameter_0_strict$schema(),
|
|
2592
|
+
jsonSchema: {"type":"string"},
|
|
1960
2593
|
},
|
|
1961
2594
|
},
|
|
1962
2595
|
],
|
|
@@ -1965,10 +2598,20 @@ export const TYPERT = {
|
|
|
1965
2598
|
typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/stopMember:result',
|
|
1966
2599
|
create: _khorsheed_dsh_local_agent_localAgentGateway_stopMember_result$schema,
|
|
1967
2600
|
schema: _khorsheed_dsh_local_agent_localAgentGateway_stopMember_result$schema(),
|
|
2601
|
+
description: 'whether an in-flight run was found and signalled.',
|
|
2602
|
+
jsonSchema: {"type":"boolean"},
|
|
1968
2603
|
},
|
|
1969
|
-
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":
|
|
2604
|
+
sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":472,"column":3},
|
|
1970
2605
|
},
|
|
2606
|
+
},
|
|
2607
|
+
}, z)
|
|
2608
|
+
|
|
2609
|
+
export const TYPERT = {
|
|
2610
|
+
package: '@khorsheed/dsh-local-agent',
|
|
2611
|
+
face: 'host',
|
|
2612
|
+
schemas: [
|
|
1971
2613
|
],
|
|
2614
|
+
get invocations() { return $remote.descriptors },
|
|
1972
2615
|
model: {
|
|
1973
2616
|
"services": [
|
|
1974
2617
|
{
|
|
@@ -2182,7 +2825,7 @@ export const TYPERT = {
|
|
|
2182
2825
|
"name": "stageDelegationIntent",
|
|
2183
2826
|
"signature": "stageDelegationIntent( parentSessionId: string, provider: string, intent: LocalAgentDelegationIntent, ): void",
|
|
2184
2827
|
"summary": "Stage one delegation intent for a provider's next `start()`.",
|
|
2185
|
-
"jsDoc": "/**\n * Stage one delegation intent for a provider's next `start()`. The family\n * resume tool stages exactly one intent per call before awaiting\n * `ctx.subagents.
|
|
2828
|
+
"jsDoc": "/**\n * Stage one delegation intent for a provider's next `start()`. The family\n * resume tool stages exactly one intent per call before awaiting\n * `ctx.subagents.startActivation()`; the provider consumes exactly one per\n * start via {@link takeDelegationIntent}, so the per-(parent, provider)\n * FIFO pairs fresh and resume rounds even under parallel delegations from\n * one parent.\n * @param parentSessionId - the delegating parent session id.\n * @param provider - the `ctx.subagents` provider name.\n * @param intent - the fresh or resume intent for the next start.\n */"
|
|
2186
2829
|
},
|
|
2187
2830
|
{
|
|
2188
2831
|
"kind": "method",
|
|
@@ -2196,14 +2839,14 @@ export const TYPERT = {
|
|
|
2196
2839
|
"name": "unstageDelegationIntent",
|
|
2197
2840
|
"signature": "unstageDelegationIntent( parentSessionId: string, provider: string, intent: LocalAgentDelegationIntent, ): boolean",
|
|
2198
2841
|
"summary": "Remove one previously staged intent by reference, returning whether it was still queued.",
|
|
2199
|
-
"jsDoc": "/**\n * Remove one previously staged intent by reference, returning whether it was\n * still queued. The delegation facade calls this when `ctx.subagents.
|
|
2842
|
+
"jsDoc": "/**\n * Remove one previously staged intent by reference, returning whether it was\n * still queued. The delegation facade calls this when `ctx.subagents.startActivation()`\n * throws: an intent the provider never consumed must not linger in the FIFO,\n * where the NEXT same-(parent, provider) start would misconsume it as its own\n * (orphan-intent crosstalk). When the provider already consumed the intent\n * before throwing, the removal is a no-op and the pairing stays intact.\n * @param parentSessionId - the delegating parent session id.\n * @param provider - the `ctx.subagents` provider name.\n * @param intent - the exact intent object passed to\n * {@link stageDelegationIntent}.\n * @returns whether the intent was removed (false when already consumed or\n * never staged).\n */"
|
|
2200
2843
|
},
|
|
2201
2844
|
{
|
|
2202
2845
|
"kind": "method",
|
|
2203
2846
|
"name": "listDelegations",
|
|
2204
2847
|
"signature": "listDelegations(): readonly LocalAgentDelegationRecord[]",
|
|
2205
2848
|
"summary": "Every recorded delegation, in recording order.",
|
|
2206
|
-
"jsDoc": "/**\n * Every recorded delegation, in recording order
|
|
2849
|
+
"jsDoc": "/**\n * Every recorded delegation, in recording order.\n * @returns the recorded delegations.\n */"
|
|
2207
2850
|
},
|
|
2208
2851
|
{
|
|
2209
2852
|
"kind": "method",
|
|
@@ -2320,28 +2963,28 @@ export const TYPERT = {
|
|
|
2320
2963
|
"name": "start",
|
|
2321
2964
|
"signature": "async start( parentSessionId: string, provider: string, prompt: ContentBlock[], options?: DelegationCallOptions, ): Promise<SubagentRun>",
|
|
2322
2965
|
"summary": "Start a FRESH delegation on one subagent provider — the programmatic equivalent of the family tool's fresh call, for plugins acting on the user's behalf (room, orchestrators).",
|
|
2323
|
-
"jsDoc": "/**\n * Start a FRESH delegation on one subagent provider — the programmatic\n * equivalent of the family tool's fresh call, for plugins acting on the\n * user's behalf (room, orchestrators). One call performs the provider\n * pre-check, resolves the live parent agent, stages exactly one\n * `{ kind: 'fresh' }` intent, and starts the provider in the same\n * synchronous flow, so the per-(parent, provider) FIFO pairing holds. When\n * the start throws, the staged intent is rolled back via\n * {@link unstageDelegationIntent} (a no-op once the provider consumed it).\n *\n * The returned run is tracked under its `run.id` (== the new dsh child\n * session id) until `run.result` settles; {@link cancel} aborts it by that\n * id. Note on trust: cordis plugins share one process, so the ownership\n * checks here and in {@link resume} guard against caller MISTAKES, not\n * against a malicious plugin — their real protection target is untrusted\n * model text, which never carries the resume handle (first-class parameter\n * + intent channel only).\n * @param parentSessionId - the delegating parent session id; must have a\n * live agent (`ctx.agents.get`, a harness hard constraint).\n * @param provider - the `ctx.subagents` provider name.\n * @param prompt - the child user message content blocks.\n * @param options - optional label and caller-owned abort signal.\n * @returns the published subagent run.\n * @throws when the subagents/agents service is not mounted, the provider is\n * not registered, or the parent session has no live agent — in every case\n * BEFORE anything is staged.\n */"
|
|
2966
|
+
"jsDoc": "/**\n * Start a FRESH delegation on one subagent provider — the programmatic\n * equivalent of the family tool's fresh call, for plugins acting on the\n * user's behalf (room, orchestrators). One call performs the provider\n * pre-check, resolves the live parent agent, stages exactly one\n * `{ kind: 'fresh' }` intent, and starts the provider in the same\n * synchronous flow, so the per-(parent, provider) FIFO pairing holds. When\n * the start throws, the staged intent is rolled back via\n * {@link unstageDelegationIntent} (a no-op once the provider consumed it).\n *\n * The returned run is tracked under its `run.id` (== the new dsh child\n * session id, minted here and carried to the provider through the staged\n * intent — host 0.2.1's `startActivation` never surfaces it on the\n * activation) until `run.result` settles; {@link cancel} aborts it by that\n * id. Note on trust: cordis plugins share one process, so the ownership\n * checks here and in {@link resume} guard against caller MISTAKES, not\n * against a malicious plugin — their real protection target is untrusted\n * model text, which never carries the resume handle (first-class parameter\n * + intent channel only).\n * @param parentSessionId - the delegating parent session id; must have a\n * live agent (`ctx.agents.get`, a harness hard constraint).\n * @param provider - the `ctx.subagents` provider name.\n * @param prompt - the child user message content blocks.\n * @param options - optional label and caller-owned abort signal.\n * @returns the published subagent run.\n * @throws when the subagents/agents service is not mounted, the provider is\n * not registered, or the parent session has no live agent — in every case\n * BEFORE anything is staged.\n */"
|
|
2324
2967
|
},
|
|
2325
2968
|
{
|
|
2326
2969
|
"kind": "method",
|
|
2327
2970
|
"name": "resume",
|
|
2328
2971
|
"signature": "async resume( parentSessionId: string, provider: string, childSessionId: string, prompt: ContentBlock[], options?: DelegationCallOptions, ): Promise<SubagentRun>",
|
|
2329
2972
|
"summary": "Resume a recorded delegation: continue the SAME CLI session inside the SAME dsh child session.",
|
|
2330
|
-
"jsDoc": "/**\n * Resume a recorded delegation: continue the SAME CLI session inside the\n * SAME dsh child session. One call performs, in order:\n *\n * 1. provider pre-check (`ctx.subagents.getProvider`) — fails loud WITHOUT\n * staging, so an unknown provider never leaves an orphan intent;\n * 2. `resolveDelegation` ownership check (unchanged semantics): the handle\n * must name a delegation THIS parent session recorded through THIS\n * provider;\n * 3. read-only resume-lock probe ({@link isResumeLocked}) — fails fast\n * without staging; the provider still takes the authoritative lock inside\n * its `start()`;\n * 4. live parent agent resolution (`ctx.agents.get`) — a harness hard\n * constraint, since `ctx.subagents.
|
|
2973
|
+
"jsDoc": "/**\n * Resume a recorded delegation: continue the SAME CLI session inside the\n * SAME dsh child session. One call performs, in order:\n *\n * 1. provider pre-check (`ctx.subagents.getProvider`) — fails loud WITHOUT\n * staging, so an unknown provider never leaves an orphan intent;\n * 2. `resolveDelegation` ownership check (unchanged semantics): the handle\n * must name a delegation THIS parent session recorded through THIS\n * provider;\n * 3. read-only resume-lock probe ({@link isResumeLocked}) — fails fast\n * without staging; the provider still takes the authoritative lock inside\n * its `start()`;\n * 4. live parent agent resolution (`ctx.agents.get`) — a harness hard\n * constraint, since `ctx.subagents.startActivation` requires a live parent;\n * 5. child-session REATTACH when `ctx.sessions.get(childSessionId)` is\n * undefined (recipe below; `opts.reattach === false` disables this step\n * and fails loud on a non-live child instead);\n * 6. stage `{ kind: 'resume', childSessionId, cliSessionId }` and, in the\n * same synchronous flow, `await ctx.subagents.startActivation({…})`;\n * 7. on start failure, roll the intent back via\n * {@link unstageDelegationIntent} (no-op once consumed);\n * 8. on success, track the run under `childSessionId` for {@link cancel}\n * until `run.result` settles.\n *\n * **Reattach recipe** (callers replicating this flow — e.g. room — copy\n * exactly this sequence):\n *\n * ```ts\n * const handle = await ctx.sessionPersistence.open(SessionId(childSessionId), 'write')\n * try {\n * const cold = await handle.read(0)\n * // Close a turn a restart interrupted, or the next round's turn/start\n * // makes the stored log unreadable.\n * const closers = interruptedTurnClosers(cold.events)\n * if (closers.length > 0) await handle.append(closers)\n * const session = ctx.sessions.prepare(SessionId(childSessionId), {\n * seed: [...cold.events, ...closers],\n * meta: structuredClone(handle.header),\n * inheritedEventCount: handle.inheritedEventCount,\n * eventState: cold.eventState,\n * })\n * // The seeded constructor's session/end-seed marker lands before enter()\n * // installs publication hooks — push the unstored suffix through the\n * // handle directly, or the writer's contiguous cursor diverges.\n * const unstored = session.snapshotEvents().slice(cold.events.length + closers.length)\n * if (unstored.length > 0) await handle.append(unstored)\n * const detach = ctx.sessions.enter(session)\n * try { ctx.sessions.announce(session) }\n * catch (error) { detach(); throw error }\n * // Hold BOTH for the reattached lifetime: the backend routes live\n * // session/event appends into the per-id writer only while the write\n * // handle is open; closing it ends persistence for the session.\n * } catch (error) {\n * await handle.close().catch(() => {})\n * throw error\n * }\n * ```\n *\n * Hold `detach` and `handle` for the plugin lifetime. Announce the restored\n * live session after entering it, rolling back detach if announcement fails.\n * History followers need this lifecycle edge to replay the constructor's\n * end-seed suffix before the provider publishes subsequent events.\n * @param parentSessionId - the delegating parent session id; must match the\n * recorded one and have a live agent.\n * @param provider - the `ctx.subagents` provider that owns the CLI session.\n * @param childSessionId - the dsh child session id from the first round (the\n * resume handle).\n * @param prompt - the follow-up user message content blocks.\n * @param options - optional label and caller-owned abort signal.\n * @returns the published subagent run.\n * @throws on unknown provider, unknown/foreign-parent/wrong-provider handle,\n * an in-flight resume of the same child, or a missing live parent agent —\n * all BEFORE anything is staged.\n */"
|
|
2331
2974
|
},
|
|
2332
2975
|
{
|
|
2333
2976
|
"kind": "method",
|
|
2334
2977
|
"name": "cancel",
|
|
2335
2978
|
"signature": "cancel(childSessionId: string): boolean",
|
|
2336
|
-
"summary": "Cancel an in-flight facade-started run by its dsh child session id: aborts the internal controller
|
|
2337
|
-
"jsDoc": "/**\n * Cancel an in-flight facade-started run by its dsh child session id
|
|
2979
|
+
"summary": "Cancel an in-flight facade-started run by its dsh child session id: aborts the internal controller (the pre-publication channel fused into the activation's start signal) and disposes the activation — host 0.2.1's canonical POST-publication cancellation, which settles the run with an `aborted`-class stop reason.",
|
|
2980
|
+
"jsDoc": "/**\n * Cancel an in-flight facade-started run by its dsh child session id:\n * aborts the internal controller (the pre-publication channel fused into\n * the activation's start signal) and disposes the activation — host 0.2.1's\n * canonical POST-publication cancellation, which settles the run with an\n * `aborted`-class stop reason. A caller holding the `SubagentRun` may also\n * `run.dispose()`.\n * @param childSessionId - the dsh child session id of the run to cancel.\n * @returns whether an in-flight run was found and signalled (false on a\n * miss — never a silent success, never a throw).\n */"
|
|
2338
2981
|
},
|
|
2339
2982
|
{
|
|
2340
2983
|
"kind": "method",
|
|
2341
2984
|
"name": "trackDelegationRun",
|
|
2342
2985
|
"signature": "trackDelegationRun(childSessionId: string, run: SubagentRun, cancel: () => void): void",
|
|
2343
2986
|
"summary": "Register a NON-facade in-flight delegation run with the active-delegation registry, keyed by the dsh child session id, so the `/local-agent stop` command and {@link cancel} can reach it.",
|
|
2344
|
-
"jsDoc": "/**\n * Register a NON-facade in-flight delegation run with the active-delegation\n * registry, keyed by the dsh child session id, so the `/local-agent stop`\n * command and {@link cancel} can reach it. This is the family TOOL's entry\n * point: the tool starts its runs through `ctx.subagents.
|
|
2987
|
+
"jsDoc": "/**\n * Register a NON-facade in-flight delegation run with the active-delegation\n * registry, keyed by the dsh child session id, so the `/local-agent stop`\n * command and {@link cancel} can reach it. This is the family TOOL's entry\n * point: the tool starts its runs through `ctx.subagents.startActivation`\n * directly (not the facade), so without this registration its in-flight\n * runs would be invisible to the stop command. The caller owns the cancel\n * lever — aborting the fused controller (pre-publication) and disposing the\n * activation (post-publication), the same channels the facade drives. The\n * entry clears itself when the run's result settles (any stop reason); an\n * existing facade entry for the same child session wins (it already owns\n * cancellation and progress).\n * @param childSessionId - the dsh child session id.\n * @param run - the published subagent run (the tool's activation adapter).\n * @param cancel - the lever that cancels the run.\n */"
|
|
2345
2988
|
},
|
|
2346
2989
|
{
|
|
2347
2990
|
"kind": "method",
|
|
@@ -2376,7 +3019,7 @@ export const TYPERT = {
|
|
|
2376
3019
|
"name": "ensureChildLive",
|
|
2377
3020
|
"signature": "async ensureChildLive(childSessionId: string): Promise<void>",
|
|
2378
3021
|
"summary": "Ensure a delegated child session is live in this process, reattaching it from persistence when it is not — a host restart evicts every child from the live store.",
|
|
2379
|
-
"jsDoc": "/**\n * Ensure a delegated child session is live in this process, reattaching it\n * from persistence when it is not — a host restart evicts every child from\n * the live store. This is the public entry of the facade resume's reattach\n * recipe for callers that start resume rounds WITHOUT the facade (the\n * family subagent tool starts runs directly through `ctx.subagents.
|
|
3022
|
+
"jsDoc": "/**\n * Ensure a delegated child session is live in this process, reattaching it\n * from persistence when it is not — a host restart evicts every child from\n * the live store. This is the public entry of the facade resume's reattach\n * recipe for callers that start resume rounds WITHOUT the facade (the\n * family subagent tool starts runs directly through `ctx.subagents.startActivation`;\n * without this call the provider refuses the resume as \"not live\").\n * Idempotent; a child that was never persisted fails through the\n * persistence layer's own not-found error.\n * @param childSessionId - the dsh child session id (the resume handle).\n */"
|
|
2380
3023
|
},
|
|
2381
3024
|
{
|
|
2382
3025
|
"kind": "method",
|
|
@@ -2394,6 +3037,10 @@ export const TYPERT = {
|
|
|
2394
3037
|
}
|
|
2395
3038
|
],
|
|
2396
3039
|
"types": [
|
|
3040
|
+
{
|
|
3041
|
+
"name": "AfterScheduleRecord",
|
|
3042
|
+
"declaration": "export interface AfterScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'after';\n readonly title: string;\n readonly prompt: string;\n readonly afterSeconds: number;\n readonly scheduledAt: string;\n}"
|
|
3043
|
+
},
|
|
2397
3044
|
{
|
|
2398
3045
|
"name": "Agent",
|
|
2399
3046
|
"declaration": "export interface Agent {\n readonly id: SessionId;\n readonly options: AgentOptions;\n readonly session: Session;\n readonly inbox: Inbox;\n readonly status: AgentStatus;\n readonly ctx: Context;\n cancel(cause: AgentCancelCause, options?: CancelOptions): void;\n whenIdle(): Promise<void>;\n runMaintenance<T>(task: (signal: AbortSignal) => Promise<T>): Promise<T>;\n send(message: UserMessage, target: InboxTarget, wakeup: boolean): void;\n followup(message: UserMessage): void;\n steer(message: UserMessage): void;\n inject(message: UserMessage): void;\n}"
|
|
@@ -2414,6 +3061,10 @@ export const TYPERT = {
|
|
|
2414
3061
|
"name": "AgentStatus",
|
|
2415
3062
|
"declaration": "export type AgentStatus = 'idle' | 'running';"
|
|
2416
3063
|
},
|
|
3064
|
+
{
|
|
3065
|
+
"name": "AllowedModelRoute",
|
|
3066
|
+
"declaration": "export interface AllowedModelRoute {\n readonly provider: string;\n readonly model: string;\n}"
|
|
3067
|
+
},
|
|
2417
3068
|
{
|
|
2418
3069
|
"name": "ApprovalOutcome",
|
|
2419
3070
|
"declaration": "export type ApprovalOutcome = 'allowed-once' | 'rejected' | 'cancelled' | 'unavailable';"
|
|
@@ -2438,6 +3089,10 @@ export const TYPERT = {
|
|
|
2438
3089
|
"name": "AssistantStreamRecord",
|
|
2439
3090
|
"declaration": "export type AssistantStreamRecord = { readonly type: 'text-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'reasoning-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'tool-call-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly id: ToolCallId; readonly name?: string; readonly args: readonly string[]; } | { readonly type: 'chunk'; readonly time: number; readonly chunk: StreamChunk; };"
|
|
2440
3091
|
},
|
|
3092
|
+
{
|
|
3093
|
+
"name": "AtScheduleRecord",
|
|
3094
|
+
"declaration": "export interface AtScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'at';\n readonly title: string;\n readonly prompt: string;\n readonly scheduledAt: string;\n}"
|
|
3095
|
+
},
|
|
2441
3096
|
{
|
|
2442
3097
|
"name": "AttachmentId",
|
|
2443
3098
|
"declaration": "export type AttachmentId = Branded<'AttachmentId'>;"
|
|
@@ -2474,6 +3129,14 @@ export const TYPERT = {
|
|
|
2474
3129
|
"name": "CommandSourceMap",
|
|
2475
3130
|
"declaration": "export interface CommandSourceMap {\n user: { kind: 'user'; };\n}"
|
|
2476
3131
|
},
|
|
3132
|
+
{
|
|
3133
|
+
"name": "CompactionCheckpointSource",
|
|
3134
|
+
"declaration": "export type CompactionCheckpointSource = typeof COMPACT_CHECKPOINT_MARKER & { readonly compactionId: CompactionId; readonly sourceCommandId?: CommandId; };"
|
|
3135
|
+
},
|
|
3136
|
+
{
|
|
3137
|
+
"name": "CompactionId",
|
|
3138
|
+
"declaration": "export type CompactionId = Branded<'CompactionId'>;"
|
|
3139
|
+
},
|
|
2477
3140
|
{
|
|
2478
3141
|
"name": "ContentBlock",
|
|
2479
3142
|
"declaration": "export type ContentBlock = ContentBlockMap[ContentBlockType];"
|
|
@@ -2514,6 +3177,22 @@ export const TYPERT = {
|
|
|
2514
3177
|
"name": "EpochHeader",
|
|
2515
3178
|
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n system?: never;\n}"
|
|
2516
3179
|
},
|
|
3180
|
+
{
|
|
3181
|
+
"name": "EveryScheduleDispatchChange",
|
|
3182
|
+
"declaration": "export interface EveryScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n readonly acceptedAt: string;\n}"
|
|
3183
|
+
},
|
|
3184
|
+
{
|
|
3185
|
+
"name": "EveryScheduleRecord",
|
|
3186
|
+
"declaration": "export interface EveryScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'every';\n readonly title: string;\n readonly prompt: string;\n readonly everySeconds: number;\n readonly scheduledAt: string;\n}"
|
|
3187
|
+
},
|
|
3188
|
+
{
|
|
3189
|
+
"name": "FeedbackCategory",
|
|
3190
|
+
"declaration": "export type FeedbackCategory = 'task-result' | 'instruction-following' | 'product-interaction' | 'service-stability' | 'resource-cost' | 'security-privacy-permission' | 'other';"
|
|
3191
|
+
},
|
|
3192
|
+
{
|
|
3193
|
+
"name": "FeedbackRecord",
|
|
3194
|
+
"declaration": "export interface FeedbackRecord {\n readonly text?: string;\n readonly category?: FeedbackCategory;\n}"
|
|
3195
|
+
},
|
|
2517
3196
|
{
|
|
2518
3197
|
"name": "FileAttachmentRef",
|
|
2519
3198
|
"declaration": "export interface FileAttachmentRef {\n attachmentId: AttachmentId;\n name: string;\n bytes: number;\n}"
|
|
@@ -2530,6 +3209,50 @@ export const TYPERT = {
|
|
|
2530
3209
|
"name": "FinishReasonMap",
|
|
2531
3210
|
"declaration": "export interface FinishReasonMap {\n stop: { kind: 'stop'; };\n 'tool-calls': { kind: 'tool-calls'; };\n 'max-tokens': { kind: 'max-tokens'; };\n aborted: { kind: 'aborted'; failure: LlmFailure; };\n error: { kind: 'error'; failure: LlmFailure; };\n}"
|
|
2532
3211
|
},
|
|
3212
|
+
{
|
|
3213
|
+
"name": "GameMessageOp",
|
|
3214
|
+
"declaration": "export type GameMessageOp = { readonly op: 'check-failed'; readonly attempt: number; readonly cap: number; readonly failures: readonly { where: string; message: string; }[]; } | { readonly op: 'attached'; readonly items: readonly string[]; };"
|
|
3215
|
+
},
|
|
3216
|
+
{
|
|
3217
|
+
"name": "GoalBlockReason",
|
|
3218
|
+
"declaration": "export interface GoalBlockReason {\n readonly code: string;\n readonly message: string;\n}"
|
|
3219
|
+
},
|
|
3220
|
+
{
|
|
3221
|
+
"name": "GoalChangeMeta",
|
|
3222
|
+
"declaration": "export type GoalChangeMeta = GoalSnapshotChangeMeta | GoalClearChangeMeta;"
|
|
3223
|
+
},
|
|
3224
|
+
{
|
|
3225
|
+
"name": "GoalClearChangeMeta",
|
|
3226
|
+
"declaration": "export interface GoalClearChangeMeta {\n readonly kind: 'goal/change';\n readonly version: 1;\n readonly operation: 'clear';\n readonly cleared: GoalRef;\n readonly clearedAt: number;\n}"
|
|
3227
|
+
},
|
|
3228
|
+
{
|
|
3229
|
+
"name": "GoalId",
|
|
3230
|
+
"declaration": "export type GoalId = Branded<'GoalId'>;"
|
|
3231
|
+
},
|
|
3232
|
+
{
|
|
3233
|
+
"name": "GoalMessageSource",
|
|
3234
|
+
"declaration": "export interface GoalMessageSource {\n readonly kind: 'goal';\n readonly goalId: GoalId;\n readonly revision: number;\n readonly round: number;\n}"
|
|
3235
|
+
},
|
|
3236
|
+
{
|
|
3237
|
+
"name": "GoalOperation",
|
|
3238
|
+
"declaration": "export type GoalOperation = 'create' | 'edit' | 'pause' | 'resume' | 'complete' | 'block' | 'clear';"
|
|
3239
|
+
},
|
|
3240
|
+
{
|
|
3241
|
+
"name": "GoalPhase",
|
|
3242
|
+
"declaration": "export type GoalPhase = 'active' | 'paused' | 'blocked' | 'complete';"
|
|
3243
|
+
},
|
|
3244
|
+
{
|
|
3245
|
+
"name": "GoalRef",
|
|
3246
|
+
"declaration": "export interface GoalRef {\n readonly id: GoalId;\n readonly revision: number;\n}"
|
|
3247
|
+
},
|
|
3248
|
+
{
|
|
3249
|
+
"name": "GoalSnapshot",
|
|
3250
|
+
"declaration": "export interface GoalSnapshot extends GoalRef {\n readonly objective: string;\n readonly phase: GoalPhase;\n readonly blockedReason?: GoalBlockReason;\n readonly maxGoalRounds: number;\n}"
|
|
3251
|
+
},
|
|
3252
|
+
{
|
|
3253
|
+
"name": "GoalSnapshotChangeMeta",
|
|
3254
|
+
"declaration": "export interface GoalSnapshotChangeMeta {\n readonly kind: 'goal/change';\n readonly version: 1;\n readonly operation: Exclude<GoalOperation, 'clear'>;\n readonly goal: GoalSnapshot;\n readonly roundsStarted: number;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
3255
|
+
},
|
|
2533
3256
|
{
|
|
2534
3257
|
"name": "ImageAttachmentRef",
|
|
2535
3258
|
"declaration": "export interface ImageAttachmentRef {\n attachmentId: AttachmentId;\n mediaType: ImageMediaType;\n bytes: number;\n width: number;\n height: number;\n name?: string;\n originalDimensions?: { width: number; height: number; };\n}"
|
|
@@ -2554,6 +3277,30 @@ export const TYPERT = {
|
|
|
2554
3277
|
"name": "InboxTarget",
|
|
2555
3278
|
"declaration": "export type InboxTarget = 'next-turn' | 'next-step';"
|
|
2556
3279
|
},
|
|
3280
|
+
{
|
|
3281
|
+
"name": "JobId",
|
|
3282
|
+
"declaration": "export type JobId = Branded<'JobId'>;"
|
|
3283
|
+
},
|
|
3284
|
+
{
|
|
3285
|
+
"name": "JobOutcome",
|
|
3286
|
+
"declaration": "export interface JobOutcome {\n status: 'completed' | 'killed' | 'failed';\n detail?: string;\n result?: string;\n}"
|
|
3287
|
+
},
|
|
3288
|
+
{
|
|
3289
|
+
"name": "JobRegisteredData",
|
|
3290
|
+
"declaration": "export interface JobRegisteredData {\n readonly jobId: JobId;\n readonly owner: SessionId;\n readonly kind: string;\n readonly label: string;\n readonly startedAt: number;\n readonly toolCall?: JobToolCall;\n}"
|
|
3291
|
+
},
|
|
3292
|
+
{
|
|
3293
|
+
"name": "JobSettleCause",
|
|
3294
|
+
"declaration": "export type JobSettleCause = 'producer' | 'kill' | 'teardown';"
|
|
3295
|
+
},
|
|
3296
|
+
{
|
|
3297
|
+
"name": "JobSettledData",
|
|
3298
|
+
"declaration": "export interface JobSettledData extends JobRegisteredData {\n readonly finishedAt: number;\n readonly status: JobOutcome['status'];\n readonly cause: JobSettleCause;\n readonly producerReported: boolean;\n readonly detail?: string;\n}"
|
|
3299
|
+
},
|
|
3300
|
+
{
|
|
3301
|
+
"name": "JobToolCall",
|
|
3302
|
+
"declaration": "export interface JobToolCall {\n readonly callId: SessionEventMap['tool/call']['callId'];\n readonly rootCallId: SessionEventMap['tool/call']['callId'];\n}"
|
|
3303
|
+
},
|
|
2557
3304
|
{
|
|
2558
3305
|
"name": "JsonValue",
|
|
2559
3306
|
"declaration": "export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; };"
|
|
@@ -2562,18 +3309,46 @@ export const TYPERT = {
|
|
|
2562
3309
|
"name": "KnownCatalogMode",
|
|
2563
3310
|
"declaration": "export type KnownCatalogMode = { readonly mode: 'one-shot'; readonly label?: string; } | { readonly mode: 'continuable'; readonly label: string; };"
|
|
2564
3311
|
},
|
|
3312
|
+
{
|
|
3313
|
+
"name": "LegacyAfterScheduleRecord",
|
|
3314
|
+
"declaration": "export interface LegacyAfterScheduleRecord extends Omit<AfterScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
3315
|
+
},
|
|
3316
|
+
{
|
|
3317
|
+
"name": "LegacyAtScheduleRecord",
|
|
3318
|
+
"declaration": "export interface LegacyAtScheduleRecord extends Omit<AtScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
3319
|
+
},
|
|
3320
|
+
{
|
|
3321
|
+
"name": "LegacyEveryScheduleRecord",
|
|
3322
|
+
"declaration": "export interface LegacyEveryScheduleRecord extends Omit<EveryScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
3323
|
+
},
|
|
3324
|
+
{
|
|
3325
|
+
"name": "LegacyScheduleRecord",
|
|
3326
|
+
"declaration": "export type LegacyScheduleRecord = LegacyAfterScheduleRecord | LegacyAtScheduleRecord | LegacyEveryScheduleRecord;"
|
|
3327
|
+
},
|
|
2565
3328
|
{
|
|
2566
3329
|
"name": "LlmCallConfig",
|
|
2567
|
-
"declaration": "export interface LlmCallConfig {\n provider: string;\n model: string;\n
|
|
3330
|
+
"declaration": "export interface LlmCallConfig extends LlmCallControls {\n provider: string;\n model: string;\n}"
|
|
2568
3331
|
},
|
|
2569
3332
|
{
|
|
2570
3333
|
"name": "LlmCallConfigAdapterDefaults",
|
|
2571
3334
|
"declaration": "export interface LlmCallConfigAdapterDefaults {\n reasoningEffort?: true;\n maxTokens?: true;\n}"
|
|
2572
3335
|
},
|
|
3336
|
+
{
|
|
3337
|
+
"name": "LlmCallControls",
|
|
3338
|
+
"declaration": "export interface LlmCallControls {\n reasoningEffort?: ReasoningEffortId;\n temperature?: number;\n maxTokens?: number;\n stop?: string[];\n}"
|
|
3339
|
+
},
|
|
2573
3340
|
{
|
|
2574
3341
|
"name": "LlmFailure",
|
|
2575
3342
|
"declaration": "export interface LlmFailure {\n readonly message: string;\n readonly code: string;\n readonly status?: number;\n readonly providerRetryAfterMs?: number;\n readonly requestId?: ProviderRequestId;\n readonly offloadImages?: number;\n}"
|
|
2576
3343
|
},
|
|
3344
|
+
{
|
|
3345
|
+
"name": "LlmRetryEventData",
|
|
3346
|
+
"declaration": "export type LlmRetryEventData = { retryId: RetryId; turn: number; step: number; provider: string; mode: 'normal'; policyKey: string; retry: number; maxRetries: number; delayMs: number; failure: LlmFailure; } | { retryId: RetryId; turn: number; step: number; provider: string; mode: 'always'; policyKey: string; retry: number; delayMs: number; failure: LlmFailure; };"
|
|
3347
|
+
},
|
|
3348
|
+
{
|
|
3349
|
+
"name": "LlmRetryStartedEventData",
|
|
3350
|
+
"declaration": "export interface LlmRetryStartedEventData {\n retryId: RetryId;\n turn: number;\n step: number;\n retry: number;\n}"
|
|
3351
|
+
},
|
|
2577
3352
|
{
|
|
2578
3353
|
"name": "LocalAgentAppliedConfiguration",
|
|
2579
3354
|
"declaration": "export interface LocalAgentAppliedConfiguration {\n revision: number;\n selection: LocalAgentMemberConfiguration;\n resolved: LocalAgentResolvedConfiguration;\n}"
|
|
@@ -2596,7 +3371,7 @@ export const TYPERT = {
|
|
|
2596
3371
|
},
|
|
2597
3372
|
{
|
|
2598
3373
|
"name": "LocalAgentDelegationIntent",
|
|
2599
|
-
"declaration": "export type LocalAgentDelegationIntent = { readonly kind: 'fresh'; readonly onAdmitted?: () => void | Promise<void>; readonly preparedMemberId?: string; readonly effort?: string; readonly configurationLock?: string; readonly cwd?: string; readonly exec?: DelegationExecTarget; readonly scope?: string; readonly model?: string; } | { readonly kind: 'resume'; readonly onAdmitted?: () => void | Promise<void>; readonly childSessionId: string; readonly cliSessionId: string; readonly cwd?: string; readonly exec?: DelegationExecTarget; readonly scope?: string; };"
|
|
3374
|
+
"declaration": "export type LocalAgentDelegationIntent = { readonly kind: 'fresh'; readonly onAdmitted?: () => void | Promise<void>; readonly preparedMemberId?: string; readonly childSessionId?: string; readonly effort?: string; readonly configurationLock?: string; readonly cwd?: string; readonly exec?: DelegationExecTarget; readonly scope?: string; readonly model?: string; } | { readonly kind: 'resume'; readonly onAdmitted?: () => void | Promise<void>; readonly childSessionId: string; readonly cliSessionId: string; readonly cwd?: string; readonly exec?: DelegationExecTarget; readonly scope?: string; };"
|
|
2600
3375
|
},
|
|
2601
3376
|
{
|
|
2602
3377
|
"name": "LocalAgentDelegationRecord",
|
|
@@ -2606,9 +3381,17 @@ export const TYPERT = {
|
|
|
2606
3381
|
"name": "LocalAgentEffectiveSettings",
|
|
2607
3382
|
"declaration": "export interface LocalAgentEffectiveSettings {\n drive: 'exec' | 'live';\n sandbox?: string;\n permissionMode?: string;\n autoApprove?: boolean;\n reasoningEffort?: string;\n baseUrlSet: boolean;\n baseUrlHost?: string;\n cliVersion?: string;\n model?: string;\n containerNodeOptions?: string;\n}"
|
|
2608
3383
|
},
|
|
3384
|
+
{
|
|
3385
|
+
"name": "LocalAgentEndpointAuthFields",
|
|
3386
|
+
"declaration": "export interface LocalAgentEndpointAuthFields {\n readonly baseUrl?: string | null;\n readonly apiKey?: string | null;\n readonly authToken?: string | null;\n}"
|
|
3387
|
+
},
|
|
3388
|
+
{
|
|
3389
|
+
"name": "LocalAgentEndpointAuthState",
|
|
3390
|
+
"declaration": "export interface LocalAgentEndpointAuthState {\n readonly baseUrl?: string;\n readonly apiKeySet: boolean;\n readonly authTokenSet: boolean;\n}"
|
|
3391
|
+
},
|
|
2609
3392
|
{
|
|
2610
3393
|
"name": "LocalAgentHarness",
|
|
2611
|
-
"declaration": "export interface LocalAgentHarness {\n prepareMember?: (request: LocalAgentPreparation) => Promise<void>;\n name: string;\n displayName: string;\n homeEnvVar: string;\n delegationProvider?: string;\n login?: LocalAgentLogin;\n records: LocalAgentRecordsAdapter;\n provision?: (homeDir: string, options?: LocalAgentScopeProvisionOptions) => LocalAgentScopeProvisionResult | void | Promise<LocalAgentScopeProvisionResult | void>;\n isAuthenticated?: (homeDir: string) => Promise<boolean>;\n credentialStamp?: (homeDir: string) => Promise<number | undefined>;\n logout?: (homeDir: string) => Promise<void>;\n subcommand?: (input: string, invocation: CommandInvocation) => Promise<CommandResult> | CommandResult | undefined;\n effectiveSettings?: (homeDir: string) => LocalAgentEffectiveSettings | Promise<LocalAgentEffectiveSettings>;\n modelBroker?: LocalAgentModelBroker;\n}"
|
|
3394
|
+
"declaration": "export interface LocalAgentHarness {\n prepareMember?: (request: LocalAgentPreparation) => Promise<void>;\n name: string;\n displayName: string;\n homeEnvVar: string;\n delegationProvider?: string;\n login?: LocalAgentLogin;\n records: LocalAgentRecordsAdapter;\n provision?: (homeDir: string, options?: LocalAgentScopeProvisionOptions) => LocalAgentScopeProvisionResult | void | Promise<LocalAgentScopeProvisionResult | void>;\n isAuthenticated?: (homeDir: string) => Promise<boolean>;\n checkEndpoint?: (homeDir: string) => Promise<string>;\n endpointAuth?: { read(homeDir: string): Promise<LocalAgentEndpointAuthState>; write(homeDir: string, fields: LocalAgentEndpointAuthFields): Promise<void>; };\n modelList?: { read(homeDir: string): Promise<readonly string[]>; write(homeDir: string, models: readonly string[]): Promise<readonly string[]>; };\n credentialStamp?: (homeDir: string) => Promise<number | undefined>;\n logout?: (homeDir: string) => Promise<void>;\n subcommand?: (input: string, invocation: CommandInvocation) => Promise<CommandResult> | CommandResult | undefined;\n effectiveSettings?: (homeDir: string) => LocalAgentEffectiveSettings | Promise<LocalAgentEffectiveSettings>;\n modelBroker?: LocalAgentModelBroker;\n}"
|
|
2612
3395
|
},
|
|
2613
3396
|
{
|
|
2614
3397
|
"name": "LocalAgentLogin",
|
|
@@ -2742,6 +3525,26 @@ export const TYPERT = {
|
|
|
2742
3525
|
"name": "MessageBase",
|
|
2743
3526
|
"declaration": "export interface MessageBase {\n readonly id: MessageId;\n readonly content: readonly ContentBlock[];\n readonly source: MessageSource;\n}"
|
|
2744
3527
|
},
|
|
3528
|
+
{
|
|
3529
|
+
"name": "MessageFeedbackDelete",
|
|
3530
|
+
"declaration": "export interface MessageFeedbackDelete {\n readonly sessionId: SessionId;\n readonly messageId: MessageId;\n}"
|
|
3531
|
+
},
|
|
3532
|
+
{
|
|
3533
|
+
"name": "MessageFeedbackItem",
|
|
3534
|
+
"declaration": "export interface MessageFeedbackItem {\n readonly messageId: MessageId;\n readonly rating: MessageFeedbackRating;\n readonly note?: string;\n readonly category?: FeedbackCategory;\n readonly version: MessageFeedbackVersion;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
3535
|
+
},
|
|
3536
|
+
{
|
|
3537
|
+
"name": "MessageFeedbackPut",
|
|
3538
|
+
"declaration": "export interface MessageFeedbackPut {\n readonly sessionId: SessionId;\n readonly item: MessageFeedbackItem;\n}"
|
|
3539
|
+
},
|
|
3540
|
+
{
|
|
3541
|
+
"name": "MessageFeedbackRating",
|
|
3542
|
+
"declaration": "export type MessageFeedbackRating = 'positive' | 'negative';"
|
|
3543
|
+
},
|
|
3544
|
+
{
|
|
3545
|
+
"name": "MessageFeedbackVersion",
|
|
3546
|
+
"declaration": "export type MessageFeedbackVersion = Branded<'MessageFeedbackVersion'>;"
|
|
3547
|
+
},
|
|
2745
3548
|
{
|
|
2746
3549
|
"name": "MessageId",
|
|
2747
3550
|
"declaration": "export type MessageId = Branded<'MessageId'>;"
|
|
@@ -2756,23 +3559,63 @@ export const TYPERT = {
|
|
|
2756
3559
|
},
|
|
2757
3560
|
{
|
|
2758
3561
|
"name": "MessageSourceMap",
|
|
2759
|
-
"declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n '
|
|
3562
|
+
"declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'runtime-context': { kind: 'runtime-context'; } & ContextFormed;\n 'working-directory': { kind: 'working-directory'; };\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; principal?: Principal; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'compact-checkpoint': CompactionCheckpointSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n 'team-message': TeamMessageSource;\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n goal: GoalMessageSource;\n 'plan-mode': { kind: 'plan-mode'; } & ContextFormed;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'session-reference': SessionReferenceSource;\n webhook: { readonly kind: 'webhook'; readonly provider: string; readonly source: WebhookSourceId; readonly deliveryId: WebhookDeliveryId; readonly ruleId: WebhookRuleId; readonly form: 'notice'; readonly summary: string; };\n 'message-tools': { kind: 'message-tools'; readonly op?: MessageToolsOp; } & ContextFormed;\n 'dsh-game': { kind: 'dsh-game'; plugin: '@khorsheed/dsh-game'; } & ContextFormed & Partial<GameMessageOp>;\n room: { kind: 'room'; } & ContextFormed;\n 'room-help': { kind: 'room-help'; plugin: '@khorsheed/dsh-room'; help: string; room: string; roomTitle: string; from: string; op: 'request' | 'message'; text: string; } & ContextFormed;\n sidechat: { kind: 'sidechat'; } & ContextFormed;\n worktrees: { kind: 'worktrees'; } & ContextFormed;\n}"
|
|
3563
|
+
},
|
|
3564
|
+
{
|
|
3565
|
+
"name": "MessageToolsOp",
|
|
3566
|
+
"declaration": "export type MessageToolsOp = 'edit' | 'edit-trigger' | 'restore-assistant';"
|
|
2760
3567
|
},
|
|
2761
3568
|
{
|
|
2762
3569
|
"name": "ModelMessageSource",
|
|
2763
3570
|
"declaration": "export interface ModelMessageSource extends AssistantProviderMetadata {\n kind: 'model';\n}"
|
|
2764
3571
|
},
|
|
3572
|
+
{
|
|
3573
|
+
"name": "ModelSelection",
|
|
3574
|
+
"declaration": "export interface ModelSelection {\n readonly provider: string;\n readonly model: string;\n readonly reasoningEffort?: string;\n}"
|
|
3575
|
+
},
|
|
3576
|
+
{
|
|
3577
|
+
"name": "OneShotScheduleDispatchChange",
|
|
3578
|
+
"declaration": "export interface OneShotScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n}"
|
|
3579
|
+
},
|
|
2765
3580
|
{
|
|
2766
3581
|
"name": "OneShotSubagentDescriptorData",
|
|
2767
3582
|
"declaration": "export interface OneShotSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: 'one-shot';\n readonly label?: string;\n}"
|
|
2768
3583
|
},
|
|
3584
|
+
{
|
|
3585
|
+
"name": "OptionalSessionSeq",
|
|
3586
|
+
"declaration": "export type OptionalSessionSeq = SessionSeq | null;"
|
|
3587
|
+
},
|
|
3588
|
+
{
|
|
3589
|
+
"name": "PlanAttempt",
|
|
3590
|
+
"declaration": "export interface PlanAttempt {\n id: string;\n deliveryId: string;\n number: number;\n status: 'queued' | 'running' | 'submitted' | 'accepted' | 'rejected' | 'failed' | 'cancelled' | 'uncertain';\n createdAt: number;\n startedAt?: number;\n settledAt?: number;\n submission?: PlanEvidence;\n review?: { decision: 'accepted' | 'rework'; by: string; reason: string; references: string[]; time: number; };\n error?: string;\n retry?: { by: string; reason: string; time: number; };\n}"
|
|
3591
|
+
},
|
|
3592
|
+
{
|
|
3593
|
+
"name": "PlanBudget",
|
|
3594
|
+
"declaration": "export interface PlanBudget {\n maxParallel: number;\n maxAttempts: number;\n maxAttemptsPerTask: number;\n maxActiveMs: number;\n}"
|
|
3595
|
+
},
|
|
3596
|
+
{
|
|
3597
|
+
"name": "PlanEvidence",
|
|
3598
|
+
"declaration": "export interface PlanEvidence {\n summary: string;\n references: string[];\n artifacts: string[];\n}"
|
|
3599
|
+
},
|
|
3600
|
+
{
|
|
3601
|
+
"name": "PlanTask",
|
|
3602
|
+
"declaration": "export interface PlanTask {\n id: string;\n title: string;\n stageId: string;\n parentId?: string;\n kind: 'group' | 'task';\n ownerMemberId?: string;\n instruction: string;\n criteria: string[];\n inputRefs: string[];\n artifactPaths: string[];\n dependsOn: string[];\n status: 'pending' | 'running' | 'submitted' | 'accepted' | 'failed' | 'cancelled';\n attempts: PlanAttempt[];\n}"
|
|
3603
|
+
},
|
|
3604
|
+
{
|
|
3605
|
+
"name": "Principal",
|
|
3606
|
+
"declaration": "export type Principal = PrincipalMap[keyof PrincipalMap];"
|
|
3607
|
+
},
|
|
3608
|
+
{
|
|
3609
|
+
"name": "PrincipalMap",
|
|
3610
|
+
"declaration": "export interface PrincipalMap {\n owner: { readonly kind: 'owner'; };\n}"
|
|
3611
|
+
},
|
|
2769
3612
|
{
|
|
2770
3613
|
"name": "ProviderRequestId",
|
|
2771
3614
|
"declaration": "export type ProviderRequestId = Branded<'ProviderRequestId'>;"
|
|
2772
3615
|
},
|
|
2773
3616
|
{
|
|
2774
3617
|
"name": "PtcDispatchEventData",
|
|
2775
|
-
"declaration": "export interface PtcDispatchEventData extends PtcDispatchStartEventData {\n isError: boolean;\n content: ContentBlock[];\n error?: { name: string; code: string; reason?: string; };\n}"
|
|
3618
|
+
"declaration": "export interface PtcDispatchEventData extends PtcDispatchStartEventData {\n isError: boolean;\n content: ContentBlock[];\n meta?: JsonValue;\n error?: { name: string; code: string; reason?: string; };\n}"
|
|
2776
3619
|
},
|
|
2777
3620
|
{
|
|
2778
3621
|
"name": "PtcDispatchStartEventData",
|
|
@@ -2798,10 +3641,198 @@ export const TYPERT = {
|
|
|
2798
3641
|
"name": "RequestHeaderReason",
|
|
2799
3642
|
"declaration": "export type RequestHeaderReason = 'initial' | 'resume' | 'change' | 'series';"
|
|
2800
3643
|
},
|
|
3644
|
+
{
|
|
3645
|
+
"name": "RetryId",
|
|
3646
|
+
"declaration": "export type RetryId = Branded<'RetryId'>;"
|
|
3647
|
+
},
|
|
3648
|
+
{
|
|
3649
|
+
"name": "RoomApprovalEvent",
|
|
3650
|
+
"declaration": "export interface RoomApprovalEvent {\n readonly id: string;\n readonly member: string;\n readonly memberId: string;\n readonly tool: string;\n readonly reason?: string;\n}"
|
|
3651
|
+
},
|
|
3652
|
+
{
|
|
3653
|
+
"name": "RoomApprovalResolvedEvent",
|
|
3654
|
+
"declaration": "export interface RoomApprovalResolvedEvent {\n readonly id: string;\n readonly outcome: 'allowed-once' | 'rejected' | 'cancelled';\n}"
|
|
3655
|
+
},
|
|
3656
|
+
{
|
|
3657
|
+
"name": "RoomCoordinatorEvent",
|
|
3658
|
+
"declaration": "export interface RoomCoordinatorEvent {\n readonly version: 1;\n readonly memberId: string;\n readonly revision: number;\n readonly previousMemberId: string;\n readonly handoff: string;\n}"
|
|
3659
|
+
},
|
|
3660
|
+
{
|
|
3661
|
+
"name": "RoomCreatedEvent",
|
|
3662
|
+
"declaration": "export interface RoomCreatedEvent {\n readonly version: 1;\n}"
|
|
3663
|
+
},
|
|
3664
|
+
{
|
|
3665
|
+
"name": "RoomDecisionCall",
|
|
3666
|
+
"declaration": "export interface RoomDecisionCall {\n readonly model: string;\n readonly latencyMs?: number;\n readonly cached?: boolean;\n readonly inputTokens?: number;\n readonly outputTokens?: number;\n readonly request: { readonly state: RoomJsonValue; readonly questions: RoomJsonValue; };\n readonly response?: RoomJsonValue;\n readonly failure?: { readonly reason: string; readonly detail?: string; };\n}"
|
|
3667
|
+
},
|
|
3668
|
+
{
|
|
3669
|
+
"name": "RoomDecisionEvent",
|
|
3670
|
+
"declaration": "export interface RoomDecisionEvent {\n readonly id: string;\n readonly scenario: RoomDecisionScenario;\n readonly outcome: string;\n readonly rule?: string;\n readonly probability?: number;\n readonly call?: RoomDecisionCall;\n readonly about: { readonly message?: string; readonly task?: { readonly number: number; readonly title: string; }; readonly from?: string; readonly to?: string; };\n}"
|
|
3671
|
+
},
|
|
3672
|
+
{
|
|
3673
|
+
"name": "RoomDecisionScenario",
|
|
3674
|
+
"declaration": "export type RoomDecisionScenario = 'task-filing' | 'report-timing';"
|
|
3675
|
+
},
|
|
3676
|
+
{
|
|
3677
|
+
"name": "RoomDeliveryStateEvent",
|
|
3678
|
+
"declaration": "export interface RoomDeliveryStateEvent {\n readonly id: string;\n readonly dispatchSeq: number;\n readonly memberId: string;\n readonly state: 'running' | 'done' | 'cancelled' | 'failed' | 'uncertain';\n readonly text?: string;\n readonly error?: string;\n}"
|
|
3679
|
+
},
|
|
3680
|
+
{
|
|
3681
|
+
"name": "RoomDispatchEvent",
|
|
3682
|
+
"declaration": "export interface RoomDispatchEvent {\n readonly plan?: { readonly goalId: string; readonly taskId?: string; readonly attemptId?: string; };\n readonly requestSignature?: string;\n readonly id?: string;\n readonly targetIds?: readonly string[];\n readonly origin?: 'human' | 'coordinator' | 'member' | 'report' | 'relay' | 'help';\n readonly help?: RoomHelpOrigin;\n readonly from?: string;\n readonly kind?: 'task' | 'notify';\n readonly hop?: number;\n readonly inReplyTo?: number;\n readonly note?: string;\n readonly held?: true;\n readonly releases?: readonly number[];\n readonly task?: string;\n readonly parent?: string;\n readonly replyTo?: string;\n readonly reportFor?: string;\n readonly targets: readonly string[];\n readonly text: string;\n}"
|
|
3683
|
+
},
|
|
3684
|
+
{
|
|
3685
|
+
"name": "RoomExecutionMetadataEvent",
|
|
3686
|
+
"declaration": "export interface RoomExecutionMetadataEvent {\n readonly runId: string;\n readonly model?: string;\n readonly effort?: string;\n readonly tokens?: number;\n readonly usage?: RoomRunUsage;\n}"
|
|
3687
|
+
},
|
|
3688
|
+
{
|
|
3689
|
+
"name": "RoomGoalEvent",
|
|
3690
|
+
"declaration": "export interface RoomGoalEvent {\n readonly text: string;\n}"
|
|
3691
|
+
},
|
|
3692
|
+
{
|
|
3693
|
+
"name": "RoomHeldDispatch",
|
|
3694
|
+
"declaration": "export interface RoomHeldDispatch {\n readonly origin: 'coordinator' | 'member' | 'report' | 'help';\n readonly help?: RoomHelpOrigin;\n readonly from?: string;\n readonly kind?: 'task' | 'notify';\n readonly hop: number;\n readonly inReplyTo?: number;\n readonly replyTo?: string;\n readonly reportFor?: string;\n readonly plan?: { readonly goalId: string; };\n readonly note?: string;\n readonly task?: string;\n readonly parent?: string;\n}"
|
|
3695
|
+
},
|
|
3696
|
+
{
|
|
3697
|
+
"name": "RoomHelpEvent",
|
|
3698
|
+
"declaration": "export interface RoomHelpEvent {\n readonly id: string;\n readonly from: string;\n readonly fromName: string;\n readonly target: { readonly sessionId: string; readonly title: string; readonly room?: true; readonly member?: string; };\n readonly text: string;\n}"
|
|
3699
|
+
},
|
|
3700
|
+
{
|
|
3701
|
+
"name": "RoomHelpInEvent",
|
|
3702
|
+
"declaration": "export interface RoomHelpInEvent extends RoomHelpOrigin {\n readonly member: string;\n readonly text: string;\n readonly op: 'request' | 'message';\n readonly held?: true;\n}"
|
|
3703
|
+
},
|
|
3704
|
+
{
|
|
3705
|
+
"name": "RoomHelpMessageEvent",
|
|
3706
|
+
"declaration": "export interface RoomHelpMessageEvent {\n readonly help: string;\n readonly kind: 'question' | 'reply' | 'message';\n readonly text: string;\n readonly handoff?: string;\n readonly fallback?: true;\n}"
|
|
3707
|
+
},
|
|
3708
|
+
{
|
|
3709
|
+
"name": "RoomHelpOrigin",
|
|
3710
|
+
"declaration": "export interface RoomHelpOrigin {\n readonly id: string;\n readonly room: string;\n readonly roomTitle: string;\n readonly from: string;\n}"
|
|
3711
|
+
},
|
|
3712
|
+
{
|
|
3713
|
+
"name": "RoomHelpStateEvent",
|
|
3714
|
+
"declaration": "export interface RoomHelpStateEvent {\n readonly help: string;\n readonly state: RoomHelpStatus;\n readonly error?: string;\n}"
|
|
3715
|
+
},
|
|
3716
|
+
{
|
|
3717
|
+
"name": "RoomHelpStatus",
|
|
3718
|
+
"declaration": "export type RoomHelpStatus = 'queued' | 'running' | 'asking' | 'replied' | 'failed';"
|
|
3719
|
+
},
|
|
3720
|
+
{
|
|
3721
|
+
"name": "RoomHoldReason",
|
|
3722
|
+
"declaration": "export type RoomHoldReason = 'confirm' | 'hop-limit' | 'paused';"
|
|
3723
|
+
},
|
|
3724
|
+
{
|
|
3725
|
+
"name": "RoomJobStoppedEvent",
|
|
3726
|
+
"declaration": "export interface RoomJobStoppedEvent {\n readonly task: string;\n}"
|
|
3727
|
+
},
|
|
3728
|
+
{
|
|
3729
|
+
"name": "RoomJsonValue",
|
|
3730
|
+
"declaration": "export type RoomJsonValue = null | boolean | number | string | RoomJsonValue[] | { [key: string]: RoomJsonValue; };"
|
|
3731
|
+
},
|
|
3732
|
+
{
|
|
3733
|
+
"name": "RoomMemberAddedEvent",
|
|
3734
|
+
"declaration": "export interface RoomMemberAddedEvent {\n readonly id?: string;\n readonly name: string;\n readonly kind: 'main-agent' | 'cli' | 'native';\n readonly provider?: string;\n readonly preset?: string;\n readonly instructions?: string;\n readonly role?: string;\n readonly invitedBy: 'human' | 'agent';\n readonly cwd?: string;\n readonly model?: string;\n readonly effort?: string;\n readonly childSessionId?: SessionId;\n}"
|
|
3735
|
+
},
|
|
3736
|
+
{
|
|
3737
|
+
"name": "RoomMemberRemovedEvent",
|
|
3738
|
+
"declaration": "export interface RoomMemberRemovedEvent {\n readonly name: string;\n}"
|
|
3739
|
+
},
|
|
3740
|
+
{
|
|
3741
|
+
"name": "RoomMemberUpdatedEvent",
|
|
3742
|
+
"declaration": "export interface RoomMemberUpdatedEvent {\n readonly name: string;\n readonly rename?: string;\n readonly instructions?: string | null;\n readonly role?: string | null;\n readonly cwd?: string | null;\n readonly model?: string | null;\n readonly effort?: string | null;\n readonly childSessionId?: SessionId;\n}"
|
|
3743
|
+
},
|
|
3744
|
+
{
|
|
3745
|
+
"name": "RoomPlan",
|
|
3746
|
+
"declaration": "export interface RoomPlan {\n version: 1;\n id: string;\n revision: number;\n objective: string;\n status: 'draft' | 'running' | 'paused' | 'completed' | 'cancelled';\n reason?: string;\n budget: PlanBudget;\n activeMs: number;\n resumedAt?: number;\n stages: { id: string; title: string; }[];\n tasks: PlanTask[];\n completion?: PlanEvidence;\n requests: { id: string; signature: string; }[];\n}"
|
|
3747
|
+
},
|
|
3748
|
+
{
|
|
3749
|
+
"name": "RoomQuestionAnswer",
|
|
3750
|
+
"declaration": "export interface RoomQuestionAnswer {\n readonly id: string;\n readonly selected: readonly string[];\n readonly custom?: string;\n}"
|
|
3751
|
+
},
|
|
3752
|
+
{
|
|
3753
|
+
"name": "RoomQuestionEvent",
|
|
3754
|
+
"declaration": "export interface RoomQuestionEvent {\n readonly id: string;\n readonly member: string;\n readonly memberId: string;\n readonly questions: readonly RoomQuestionItem[];\n}"
|
|
3755
|
+
},
|
|
3756
|
+
{
|
|
3757
|
+
"name": "RoomQuestionItem",
|
|
3758
|
+
"declaration": "export interface RoomQuestionItem {\n readonly id: string;\n readonly question: string;\n readonly header?: string;\n readonly options?: readonly RoomQuestionOption[];\n readonly multiSelect?: boolean;\n}"
|
|
3759
|
+
},
|
|
3760
|
+
{
|
|
3761
|
+
"name": "RoomQuestionOption",
|
|
3762
|
+
"declaration": "export interface RoomQuestionOption {\n readonly label: string;\n readonly description?: string;\n}"
|
|
3763
|
+
},
|
|
3764
|
+
{
|
|
3765
|
+
"name": "RoomQuestionResolvedEvent",
|
|
3766
|
+
"declaration": "export interface RoomQuestionResolvedEvent {\n readonly id: string;\n readonly outcome: 'answered' | 'cancelled';\n readonly answers?: readonly RoomQuestionAnswer[];\n}"
|
|
3767
|
+
},
|
|
3768
|
+
{
|
|
3769
|
+
"name": "RoomRelayEvent",
|
|
3770
|
+
"declaration": "export interface RoomRelayEvent {\n readonly id: string;\n readonly from: string;\n readonly to: string;\n readonly content: string;\n readonly provenance?: Record<string, RoomJsonValue>;\n readonly reason?: RoomHoldReason;\n readonly intent?: RoomHeldDispatch;\n}"
|
|
3771
|
+
},
|
|
3772
|
+
{
|
|
3773
|
+
"name": "RoomRelayResolvedEvent",
|
|
3774
|
+
"declaration": "export interface RoomRelayResolvedEvent {\n readonly id: string;\n readonly state: 'confirmed' | 'dismissed' | 'sent';\n}"
|
|
3775
|
+
},
|
|
3776
|
+
{
|
|
3777
|
+
"name": "RoomReportGateEvent",
|
|
3778
|
+
"declaration": "export interface RoomReportGateEvent {\n readonly dispatchSeq: number;\n readonly memberId: string;\n readonly member: string;\n readonly verdict: 'deliver' | 'hold' | 'release';\n readonly reason: string;\n readonly probability?: number;\n}"
|
|
3779
|
+
},
|
|
3780
|
+
{
|
|
3781
|
+
"name": "RoomRunStateEvent",
|
|
3782
|
+
"declaration": "export interface RoomRunStateEvent {\n readonly childSessionId?: SessionId;\n readonly childTurn?: number;\n readonly model?: string;\n readonly effort?: string;\n readonly tokens?: number;\n readonly runId?: string;\n readonly member: string;\n readonly state: 'running' | 'done' | 'cancelled' | 'failed';\n readonly startedAt: number;\n readonly elapsedMs?: number;\n readonly error?: string;\n}"
|
|
3783
|
+
},
|
|
3784
|
+
{
|
|
3785
|
+
"name": "RoomRunUsage",
|
|
3786
|
+
"declaration": "export interface RoomRunUsage {\n readonly inputTokens: number;\n readonly outputTokens: number;\n readonly cacheReadTokens?: number;\n readonly cacheWriteTokens?: number;\n readonly reasoningTokens?: number;\n}"
|
|
3787
|
+
},
|
|
3788
|
+
{
|
|
3789
|
+
"name": "RoomSettingsEvent",
|
|
3790
|
+
"declaration": "export interface RoomSettingsEvent {\n readonly memberMessages?: 'free' | 'confirm';\n readonly hopLimit?: number;\n readonly paused?: boolean;\n readonly reportTiming?: 'judge' | 'each';\n readonly autoTaskFiling?: boolean;\n readonly reportThreshold?: number;\n readonly reportWaitMinutes?: number;\n readonly helpReminderMinutes?: number;\n}"
|
|
3791
|
+
},
|
|
3792
|
+
{
|
|
3793
|
+
"name": "RoomSpeechEvent",
|
|
3794
|
+
"declaration": "export interface RoomSpeechEvent {\n readonly interrupted?: 'cancelled' | 'failed';\n readonly reportedTo?: string;\n readonly member: string;\n readonly text: string;\n readonly childSessionId?: SessionId;\n readonly durationMs?: number;\n readonly runId?: string;\n readonly messageId?: string;\n}"
|
|
3795
|
+
},
|
|
3796
|
+
{
|
|
3797
|
+
"name": "RoomTaskAddedEvent",
|
|
3798
|
+
"declaration": "export interface RoomTaskAddedEvent {\n readonly deliveryId?: string;\n readonly id: string;\n readonly member: string;\n readonly title: string;\n readonly status: 'pending' | 'in_progress';\n readonly blockedBy?: string;\n}"
|
|
3799
|
+
},
|
|
3800
|
+
{
|
|
3801
|
+
"name": "RoomTaskEditedEvent",
|
|
3802
|
+
"declaration": "export interface RoomTaskEditedEvent {\n readonly id: string;\n readonly title?: string;\n readonly blockedBy?: string | null;\n readonly member?: string;\n}"
|
|
3803
|
+
},
|
|
3804
|
+
{
|
|
3805
|
+
"name": "RoomTaskLinkEvent",
|
|
3806
|
+
"declaration": "export interface RoomTaskLinkEvent {\n readonly message: string;\n readonly task: string;\n readonly by: 'human' | 'coordinator' | 'model';\n readonly probability?: number;\n}"
|
|
3807
|
+
},
|
|
3808
|
+
{
|
|
3809
|
+
"name": "RoomTaskUpdatedEvent",
|
|
3810
|
+
"declaration": "export interface RoomTaskUpdatedEvent {\n readonly id: string;\n readonly status: 'in_progress' | 'done' | 'cancelled' | 'failed';\n}"
|
|
3811
|
+
},
|
|
2801
3812
|
{
|
|
2802
3813
|
"name": "SandboxMode",
|
|
2803
3814
|
"declaration": "export type SandboxMode = 'read-only' | 'workspace-write' | 'danger-full-access';"
|
|
2804
3815
|
},
|
|
3816
|
+
{
|
|
3817
|
+
"name": "ScheduleChange",
|
|
3818
|
+
"declaration": "export type ScheduleChange = ScheduleCreateChange | ScheduleDeleteChange | ScheduleDispatchChange;"
|
|
3819
|
+
},
|
|
3820
|
+
{
|
|
3821
|
+
"name": "ScheduleCreateChange",
|
|
3822
|
+
"declaration": "export interface ScheduleCreateChange {\n readonly version: 1;\n readonly operation: 'create';\n readonly schedule: LegacyScheduleRecord;\n}"
|
|
3823
|
+
},
|
|
3824
|
+
{
|
|
3825
|
+
"name": "ScheduleDeleteChange",
|
|
3826
|
+
"declaration": "export interface ScheduleDeleteChange {\n readonly version: 1;\n readonly operation: 'delete';\n readonly id: ScheduleId;\n}"
|
|
3827
|
+
},
|
|
3828
|
+
{
|
|
3829
|
+
"name": "ScheduleDispatchChange",
|
|
3830
|
+
"declaration": "export type ScheduleDispatchChange = OneShotScheduleDispatchChange | EveryScheduleDispatchChange;"
|
|
3831
|
+
},
|
|
3832
|
+
{
|
|
3833
|
+
"name": "ScheduleId",
|
|
3834
|
+
"declaration": "export type ScheduleId = Branded<'ScheduleId'>;"
|
|
3835
|
+
},
|
|
2805
3836
|
{
|
|
2806
3837
|
"name": "Session",
|
|
2807
3838
|
"declaration": "export class Session {\n get surface(): SessionSurface;\n readonly header: SessionHeader;\n readonly inheritedEventCount: SessionLogOffset;\n get id(): SessionId;\n readonly firstLiveSeq: SessionLogOffset;\n readonly firstLifecycleSeq: SessionLogOffset;\n eventAt(seq: SessionSeq): SessionEvent | undefined;\n snapshotEvents(fromSeq: SessionLogOffset = SessionLogOffset(0), toSeqExclusive: SessionLogOffset = this.seq): readonly SessionEvent[];\n ownEvents(): readonly SessionEvent[];\n isOwnSeq(seq: SessionSeq): boolean;\n get seq(): SessionLogOffset;\n append<T extends SessionEventType>(type: T, data: SessionEventMap[T], ...opts: T extends SurfaceEventType ? [opts: SurfaceIntent<T>] : []): SessionEvent<T>;\n requestHeader(): EpochHeader | undefined;\n requestContext(): RequestContext | undefined;\n toolHistory(): ToolHistory;\n deriveMessages(): Message[];\n deriveEventMessage(event: SessionEvent): Message | null;\n}"
|
|
@@ -2812,7 +3843,7 @@ export const TYPERT = {
|
|
|
2812
3843
|
},
|
|
2813
3844
|
{
|
|
2814
3845
|
"name": "SessionEventMap",
|
|
2815
|
-
"declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n '
|
|
3846
|
+
"declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'working-directory/change': { cwd: string; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'job/registered': JobRegisteredData;\n 'job/settled': JobSettledData;\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'permission/preset': { preset: string; };\n 'subagent/descriptor': SubagentDescriptorData;\n 'subagent/catalog': SubagentCatalogEvent;\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n 'feedback/record': FeedbackRecord;\n 'llm/retry': LlmRetryEventData;\n 'llm/retry-started': LlmRetryStartedEventData;\n 'team/member': { version: 2; teamId: TeamId; member: TeamMemberSnapshot; };\n 'team/task': { version: 2; teamId: TeamId; task: TeamTaskSnapshot; };\n 'team/message/queued': { version: 2; teamId: TeamId; message: TeamMessageSnapshot; };\n 'team/message/delivered': { version: 2; teamId: TeamId; messageId: TeamMessageId; targetId: SessionId; };\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'plan/mode': { active: boolean; };\n 'schedule/change': ScheduleChange;\n 'subagent/model-selection-policy': { allowedModels: AllowedModelRoute[]; };\n 'workspace/changes': { turn: number; };\n 'local-agent/stream': LocalAgentStreamCheckpoint;\n 'room/created': RoomCreatedEvent;\n 'room/member-added': RoomMemberAddedEvent;\n 'room/member-updated': RoomMemberUpdatedEvent;\n 'room/member-removed': RoomMemberRemovedEvent;\n 'room/dispatch': RoomDispatchEvent;\n 'room/speech': RoomSpeechEvent;\n 'room/run-state': RoomRunStateEvent;\n 'room/execution-metadata': RoomExecutionMetadataEvent;\n 'room/relay': RoomRelayEvent;\n 'room/relay-resolved': RoomRelayResolvedEvent;\n 'room/approval': RoomApprovalEvent;\n 'room/approval-resolved': RoomApprovalResolvedEvent;\n 'room/question': RoomQuestionEvent;\n 'room/question-resolved': RoomQuestionResolvedEvent;\n 'room/task-added': RoomTaskAddedEvent;\n 'room/task-updated': RoomTaskUpdatedEvent;\n 'room/task-edited': RoomTaskEditedEvent;\n 'room/goal': RoomGoalEvent;\n 'room/settings': RoomSettingsEvent;\n 'room/report-gate': RoomReportGateEvent;\n 'room/decision': RoomDecisionEvent;\n 'room/task-link': RoomTaskLinkEvent;\n 'room/job-stopped': RoomJobStoppedEvent;\n 'room/help': RoomHelpEvent;\n 'room/help-message': RoomHelpMessageEvent;\n 'room/help-state': RoomHelpStateEvent;\n 'room/help-in': RoomHelpInEvent;\n 'room/help-link': { readonly sessionId: string; readonly title: string; };\n 'room/help-unlink': { readonly sessionId: string; };\n 'room/help-nudge-dismissed': { readonly sessionId: string; };\n 'room/plan-state': RoomPlan;\n 'room/coordinator': RoomCoordinatorEvent;\n 'room/delivery-state': RoomDeliveryStateEvent;\n}"
|
|
2816
3847
|
},
|
|
2817
3848
|
{
|
|
2818
3849
|
"name": "SessionEventType",
|
|
@@ -2830,6 +3861,14 @@ export const TYPERT = {
|
|
|
2830
3861
|
"name": "SessionLogOffset",
|
|
2831
3862
|
"declaration": "export type SessionLogOffset = BrandedNumber<'SessionLogOffset'>;"
|
|
2832
3863
|
},
|
|
3864
|
+
{
|
|
3865
|
+
"name": "SessionReferenceSource",
|
|
3866
|
+
"declaration": "export interface SessionReferenceSource {\n kind: 'session-reference';\n form: 'recall';\n version: 1;\n references: { sessionId: string; label: string; capturedFormatVersion?: number; capturedThroughSeq: OptionalSessionSeq; compacted: boolean; originalMessages: number; retainedMessages: number; omittedMessages: number; omittedBytes: number; truncated: boolean; inputIndex: number; }[];\n}"
|
|
3867
|
+
},
|
|
3868
|
+
{
|
|
3869
|
+
"name": "SessionRequestId",
|
|
3870
|
+
"declaration": "export type SessionRequestId = Branded<'session-request-id'>;"
|
|
3871
|
+
},
|
|
2833
3872
|
{
|
|
2834
3873
|
"name": "SessionSeq",
|
|
2835
3874
|
"declaration": "export type SessionSeq = BrandedNumber<'SessionSeq'>;"
|
|
@@ -2864,7 +3903,7 @@ export const TYPERT = {
|
|
|
2864
3903
|
},
|
|
2865
3904
|
{
|
|
2866
3905
|
"name": "SubagentCatalogEvent",
|
|
2867
|
-
"declaration": "export type SubagentCatalogEvent = { readonly childId: SessionId; readonly childCreatedAt: number; } & (({ readonly version: 0; } & KnownCatalogMode) | ({ readonly version: 1; } & (KnownCatalogMode | { readonly mode: 'unknown'; readonly label?: string; })));"
|
|
3906
|
+
"declaration": "export type SubagentCatalogEvent = { readonly childId: SessionId; readonly childCreatedAt: number; } & (({ readonly version: 0; } & KnownCatalogMode) | ({ readonly version: 1; } & (KnownCatalogMode | { readonly mode: 'unknown'; readonly label?: string; })) | { readonly version: 2; readonly mode: 'external'; readonly label?: string; });"
|
|
2868
3907
|
},
|
|
2869
3908
|
{
|
|
2870
3909
|
"name": "SubagentDescriptorBase",
|
|
@@ -2880,7 +3919,7 @@ export const TYPERT = {
|
|
|
2880
3919
|
},
|
|
2881
3920
|
{
|
|
2882
3921
|
"name": "SubagentRun",
|
|
2883
|
-
"declaration": "export interface SubagentRun {\n readonly id: SessionId;\n readonly
|
|
3922
|
+
"declaration": "export interface SubagentRun {\n readonly id: SessionId;\n readonly result: Promise<SubagentResult>;\n dispose(): Promise<void>;\n}"
|
|
2884
3923
|
},
|
|
2885
3924
|
{
|
|
2886
3925
|
"name": "SubagentSettledMessageSource",
|
|
@@ -2918,6 +3957,42 @@ export const TYPERT = {
|
|
|
2918
3957
|
"name": "SystemPromptUpdate",
|
|
2919
3958
|
"declaration": "export type SystemPromptUpdate = 'in-history';"
|
|
2920
3959
|
},
|
|
3960
|
+
{
|
|
3961
|
+
"name": "TeamId",
|
|
3962
|
+
"declaration": "export type TeamId = Branded<'TeamId'>;"
|
|
3963
|
+
},
|
|
3964
|
+
{
|
|
3965
|
+
"name": "TeamMemberPhase",
|
|
3966
|
+
"declaration": "export type TeamMemberPhase = 'provisioning' | 'active' | 'failed';"
|
|
3967
|
+
},
|
|
3968
|
+
{
|
|
3969
|
+
"name": "TeamMemberSnapshot",
|
|
3970
|
+
"declaration": "export interface TeamMemberSnapshot {\n readonly id: SessionId;\n readonly name: string;\n readonly description: string;\n readonly provider: string;\n readonly context: 'fresh' | 'fork';\n readonly phase: TeamMemberPhase;\n readonly error?: string;\n}"
|
|
3971
|
+
},
|
|
3972
|
+
{
|
|
3973
|
+
"name": "TeamMessageId",
|
|
3974
|
+
"declaration": "export type TeamMessageId = Branded<'TeamMessageId'>;"
|
|
3975
|
+
},
|
|
3976
|
+
{
|
|
3977
|
+
"name": "TeamMessageSnapshot",
|
|
3978
|
+
"declaration": "export interface TeamMessageSnapshot {\n readonly id: TeamMessageId;\n readonly senderId: SessionId;\n readonly senderName: string;\n readonly targetId: SessionId;\n readonly content: ContentBlock[];\n}"
|
|
3979
|
+
},
|
|
3980
|
+
{
|
|
3981
|
+
"name": "TeamMessageSource",
|
|
3982
|
+
"declaration": "export interface TeamMessageSource {\n readonly kind: 'team-message';\n readonly teamId: TeamId;\n readonly messageId: TeamMessageId;\n readonly senderId: SessionId;\n readonly senderName: string;\n}"
|
|
3983
|
+
},
|
|
3984
|
+
{
|
|
3985
|
+
"name": "TeamTaskId",
|
|
3986
|
+
"declaration": "export type TeamTaskId = Branded<'TeamTaskId'>;"
|
|
3987
|
+
},
|
|
3988
|
+
{
|
|
3989
|
+
"name": "TeamTaskSnapshot",
|
|
3990
|
+
"declaration": "export interface TeamTaskSnapshot {\n readonly id: TeamTaskId;\n readonly revision: number;\n readonly subject: string;\n readonly description: string;\n readonly status: TeamTaskStatus;\n readonly ownerId?: SessionId;\n readonly blockedBy: TeamTaskId[];\n readonly writeScopes: string[];\n}"
|
|
3991
|
+
},
|
|
3992
|
+
{
|
|
3993
|
+
"name": "TeamTaskStatus",
|
|
3994
|
+
"declaration": "export type TeamTaskStatus = 'pending' | 'in_progress' | 'completed' | 'deleted';"
|
|
3995
|
+
},
|
|
2921
3996
|
{
|
|
2922
3997
|
"name": "TextBlock",
|
|
2923
3998
|
"declaration": "export interface TextBlock {\n type: 'text';\n text: string;\n}"
|
|
@@ -2981,6 +4056,18 @@ export const TYPERT = {
|
|
|
2981
4056
|
{
|
|
2982
4057
|
"name": "UserMessage",
|
|
2983
4058
|
"declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n}"
|
|
4059
|
+
},
|
|
4060
|
+
{
|
|
4061
|
+
"name": "WebhookDeliveryId",
|
|
4062
|
+
"declaration": "export type WebhookDeliveryId = Branded<'WebhookDeliveryId'>;"
|
|
4063
|
+
},
|
|
4064
|
+
{
|
|
4065
|
+
"name": "WebhookRuleId",
|
|
4066
|
+
"declaration": "export type WebhookRuleId = Branded<'WebhookRuleId'>;"
|
|
4067
|
+
},
|
|
4068
|
+
{
|
|
4069
|
+
"name": "WebhookSourceId",
|
|
4070
|
+
"declaration": "export type WebhookSourceId = Branded<'WebhookSourceId'>;"
|
|
2984
4071
|
}
|
|
2985
4072
|
]
|
|
2986
4073
|
}
|