@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.
Files changed (57) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.en.md +23 -164
  3. package/README.i18n.yaml +2 -2
  4. package/README.md +23 -164
  5. package/lib/client.js +23707 -4768
  6. package/lib/index.js +827 -62
  7. package/lib/member-bridge.js +195 -25
  8. package/lib/tool-factory.js +52 -19
  9. package/lib/typert.host.js +1440 -353
  10. package/lib/typert.remote-client.d.ts +43 -3
  11. package/lib/typert.remote-client.js +973 -335
  12. package/lib/types/client/FamilyCard.d.ts +37 -0
  13. package/lib/types/client/FamilyCard.js +55 -0
  14. package/lib/types/client/HarnessModelPicker.d.ts +21 -1
  15. package/lib/types/client/HarnessModelPicker.js +31 -3
  16. package/lib/types/client/MemberLiveNode.js +38 -4
  17. package/lib/types/client/ModelListSection.d.ts +49 -0
  18. package/lib/types/client/ModelListSection.js +132 -0
  19. package/lib/types/client/ProviderAuthBlock.d.ts +10 -2
  20. package/lib/types/client/ProviderAuthBlock.js +13 -6
  21. package/lib/types/client/auth-status.d.ts +6 -0
  22. package/lib/types/client/auth-status.js +8 -0
  23. package/lib/types/client/harness-cards.d.ts +72 -0
  24. package/lib/types/client/harness-cards.js +57 -0
  25. package/lib/types/client/icons.d.ts +2 -1
  26. package/lib/types/client/icons.js +1 -0
  27. package/lib/types/client/index.d.ts +32 -7
  28. package/lib/types/client/index.js +66 -9
  29. package/lib/types/client/locales.d.ts +25 -1
  30. package/lib/types/client/locales.js +50 -2
  31. package/lib/types/client/model-directory-scope.d.ts +14 -0
  32. package/lib/types/client/model-directory-scope.js +20 -0
  33. package/lib/types/gateway.d.ts +49 -1
  34. package/lib/types/gateway.js +89 -0
  35. package/lib/types/index.d.ts +91 -38
  36. package/lib/types/index.js +190 -58
  37. package/lib/types/live-stream.d.ts +11 -0
  38. package/lib/types/live-stream.js +26 -0
  39. package/lib/types/member-bridge.d.ts +11 -1
  40. package/lib/types/member-bridge.js +81 -13
  41. package/lib/types/member-channel.d.ts +44 -1
  42. package/lib/types/member-channel.js +65 -2
  43. package/lib/types/member-controls.d.ts +8 -0
  44. package/lib/types/member-controls.js +15 -2
  45. package/lib/types/mode-skills.d.ts +18 -0
  46. package/lib/types/mode-skills.js +56 -0
  47. package/lib/types/model-list.d.ts +55 -0
  48. package/lib/types/model-list.js +101 -0
  49. package/lib/types/preset-tool-host.d.ts +70 -0
  50. package/lib/types/preset-tool-host.js +210 -0
  51. package/lib/types/tool-factory.d.ts +9 -3
  52. package/lib/types/tool-factory.js +55 -18
  53. package/lib/types/types.d.ts +62 -5
  54. package/package.json +27 -23
  55. package/lib/invariant.js +0 -85
  56. package/lib/types/invariant.d.ts +0 -16
  57. package/lib/types/invariant.js +0 -105
@@ -1,6 +1,8 @@
1
1
  /* Generated by @deepseek-ai/dsh-typert-generator from the Host 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("pending"), z.literal("applying"), z.literal("failed"), z.literal("unsupported"), z.literal("applied"), z.literal("cancelled"), z.literal("conflict"), z.literal("locked")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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.intersection(z.object({
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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
- })).optional(),
124
- 'status': z.union([z.literal("idle"), z.literal("pending"), z.literal("applying"), z.literal("reconciling"), z.literal("failed")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("loading"), z.literal("ready"), z.literal("stale"), z.literal("error"), z.literal("unsupported")]),
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("configuration"), z.literal("native"), z.literal("history")]),
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.intersection(z.object({
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("think"), z.literal("text")]),
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("configuration"), z.literal("directory"), z.literal("output")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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.intersection(z.object({
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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
- })).optional(),
314
- 'status': z.union([z.literal("idle"), z.literal("pending"), z.literal("applying"), z.literal("reconciling"), z.literal("failed")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("loading"), z.literal("ready"), z.literal("stale"), z.literal("error"), z.literal("unsupported")]),
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("configuration"), z.literal("native"), z.literal("history")]),
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.intersection(z.object({
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("think"), z.literal("text")]),
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("configuration"), z.literal("directory"), z.literal("output")]),
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("loading"), z.literal("ready"), z.literal("stale"), z.literal("error"), z.literal("unsupported")]),
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("configuration"), z.literal("native"), z.literal("history")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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.intersection(z.object({
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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
- })).optional(),
537
- 'status': z.union([z.literal("idle"), z.literal("pending"), z.literal("applying"), z.literal("reconciling"), z.literal("failed")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("loading"), z.literal("ready"), z.literal("stale"), z.literal("error"), z.literal("unsupported")]),
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("configuration"), z.literal("native"), z.literal("history")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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.intersection(z.object({
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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
- })).optional(),
712
- 'status': z.union([z.literal("idle"), z.literal("pending"), z.literal("applying"), z.literal("reconciling"), z.literal("failed")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("loading"), z.literal("ready"), z.literal("stale"), z.literal("error"), z.literal("unsupported")]),
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("configuration"), z.literal("native"), z.literal("history")]),
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("failed"), z.literal("cancelled"), z.literal("queued"), z.literal("running"), z.literal("done"), z.literal("uncertain")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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.intersection(z.object({
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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
- })).optional(),
897
- 'status': z.union([z.literal("idle"), z.literal("pending"), z.literal("applying"), z.literal("reconciling"), z.literal("failed")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("loading"), z.literal("ready"), z.literal("stale"), z.literal("error"), z.literal("unsupported")]),
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("configuration"), z.literal("native"), z.literal("history")]),
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("loading"), z.literal("ready"), z.literal("stale"), z.literal("error"), z.literal("unsupported")]),
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("configuration"), z.literal("native"), z.literal("history")]),
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("inherit"), z.literal("default")]),
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("inherit"), z.literal("default")]),
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("pending"), z.literal("applying"), z.literal("failed"), z.literal("unsupported"), z.literal("applied"), z.literal("cancelled"), z.literal("conflict"), z.literal("locked")]),
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,42 +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("absent"), z.literal("present-unverified"), z.literal("verified"), z.literal("rejected")]),
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("exec"), z.literal("live")]),
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
- export const TYPERT_REMOTE = {
1283
+ export const TYPERT_REMOTE = createTypertRemoteInfo({
1139
1284
  package: '@khorsheed/dsh-local-agent',
1140
- descriptors: [
1141
- {
1142
- id: '@khorsheed/dsh-local-agent#localAgentGateway/activeDelegations',
1285
+ methods: {
1286
+ 'localAgentGateway/activeDelegations': {
1143
1287
  service: 'localAgentGateway',
1144
- namespace: 'localAgentGateway',
1145
- 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>`.',
1146
1289
  invocation: { kind: 'direct' },
1147
1290
  parameters: [
1148
1291
  ],
@@ -1151,47 +1294,67 @@ export const TYPERT_REMOTE = {
1151
1294
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/activeDelegations:result',
1152
1295
  create: _khorsheed_dsh_local_agent_localAgentGateway_activeDelegations_result$schema,
1153
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"}},
1154
1299
  },
1155
1300
  sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":173,"column":3},
1156
1301
  },
1157
- {
1158
- id: '@khorsheed/dsh-local-agent#localAgentGateway/cancelMemberConfiguration',
1302
+ 'localAgentGateway/cancelMemberConfiguration': {
1159
1303
  service: 'localAgentGateway',
1160
- namespace: 'localAgentGateway',
1161
- method: 'cancelMemberConfiguration',
1162
1304
  invocation: { kind: 'direct' },
1163
1305
  parameters: [
1164
1306
  {
1165
1307
  name: 'childSessionId',
1166
- wire: 'childSessionId',
1167
1308
  source: 'json',
1168
1309
  codec: {
1169
1310
  mode: 'strict',
1170
1311
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/cancelMemberConfiguration:childSessionId',
1171
1312
  create: _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_0$schema,
1172
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"},
1173
1322
  },
1174
1323
  },
1175
1324
  {
1176
1325
  name: 'requestId',
1177
- wire: 'requestId',
1178
1326
  source: 'json',
1179
1327
  codec: {
1180
1328
  mode: 'strict',
1181
1329
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/cancelMemberConfiguration:requestId',
1182
1330
  create: _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_1$schema,
1183
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"},
1184
1340
  },
1185
1341
  },
1186
1342
  {
1187
1343
  name: 'expectedRevision',
1188
- wire: 'expectedRevision',
1189
1344
  source: 'json',
1190
1345
  codec: {
1191
1346
  mode: 'strict',
1192
1347
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/cancelMemberConfiguration:expectedRevision',
1193
1348
  create: _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_parameter_2$schema,
1194
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"},
1195
1358
  },
1196
1359
  },
1197
1360
  ],
@@ -1200,41 +1363,195 @@ export const TYPERT_REMOTE = {
1200
1363
  typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentControlReceipt',
1201
1364
  create: _khorsheed_dsh_local_agent_localAgentGateway_cancelMemberConfiguration_result$schema,
1202
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},
1203
1367
  },
1204
- sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":335,"column":9},
1368
+ sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":414,"column":9},
1205
1369
  },
1206
- {
1207
- id: '@khorsheed/dsh-local-agent#localAgentGateway/controlMemberInbox',
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"}]},
1402
+ },
1403
+ sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":269,"column":9},
1404
+ },
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': {
1208
1514
  service: 'localAgentGateway',
1209
- namespace: 'localAgentGateway',
1210
- method: 'controlMemberInbox',
1211
1515
  invocation: { kind: 'direct' },
1212
1516
  parameters: [
1213
1517
  {
1214
1518
  name: 'childSessionId',
1215
- wire: 'childSessionId',
1216
1519
  source: 'json',
1217
1520
  codec: {
1218
1521
  mode: 'strict',
1219
1522
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/controlMemberInbox:childSessionId',
1220
1523
  create: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_0$schema,
1221
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"},
1222
1533
  },
1223
1534
  },
1224
1535
  {
1225
1536
  name: 'action',
1226
- wire: 'action',
1227
1537
  source: 'json',
1228
1538
  codec: {
1229
1539
  mode: 'strict',
1230
1540
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/controlMemberInbox:action',
1231
1541
  create: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_1$schema,
1232
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"]},
1233
1551
  },
1234
1552
  },
1235
1553
  {
1236
1554
  name: 'requestId',
1237
- wire: 'requestId',
1238
1555
  source: 'json',
1239
1556
  acceptsUndefined: true,
1240
1557
  codec: {
@@ -1242,11 +1559,18 @@ export const TYPERT_REMOTE = {
1242
1559
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/controlMemberInbox:requestId',
1243
1560
  create: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_2$schema,
1244
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"},
1245
1570
  },
1246
1571
  },
1247
1572
  {
1248
1573
  name: 'outcome',
1249
- wire: 'outcome',
1250
1574
  source: 'json',
1251
1575
  acceptsUndefined: true,
1252
1576
  codec: {
@@ -1254,11 +1578,18 @@ export const TYPERT_REMOTE = {
1254
1578
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/controlMemberInbox:outcome',
1255
1579
  create: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_3$schema,
1256
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"]},
1257
1589
  },
1258
1590
  },
1259
1591
  {
1260
1592
  name: 'evidence',
1261
- wire: 'evidence',
1262
1593
  source: 'json',
1263
1594
  acceptsUndefined: true,
1264
1595
  codec: {
@@ -1266,6 +1597,14 @@ export const TYPERT_REMOTE = {
1266
1597
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/controlMemberInbox:evidence',
1267
1598
  create: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_parameter_4$schema,
1268
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"},
1269
1608
  },
1270
1609
  },
1271
1610
  ],
@@ -1274,26 +1613,66 @@ export const TYPERT_REMOTE = {
1274
1613
  typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentPromptResult',
1275
1614
  create: _khorsheed_dsh_local_agent_localAgentGateway_controlMemberInbox_result$schema,
1276
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}]},
1617
+ },
1618
+ sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":453,"column":3},
1619
+ },
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}]},
1277
1652
  },
1278
- sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":374,"column":3},
1653
+ sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":284,"column":9},
1279
1654
  },
1280
- {
1281
- id: '@khorsheed/dsh-local-agent#localAgentGateway/followMemberConfiguration',
1655
+ 'localAgentGateway/followMemberConfiguration': {
1282
1656
  service: 'localAgentGateway',
1283
- namespace: 'localAgentGateway',
1284
- method: 'followMemberConfiguration',
1285
1657
  mode: 'stream',
1286
1658
  invocation: { kind: 'direct' },
1287
1659
  parameters: [
1288
1660
  {
1289
1661
  name: 'childSessionId',
1290
- wire: 'childSessionId',
1291
1662
  source: 'json',
1292
1663
  codec: {
1293
1664
  mode: 'strict',
1294
1665
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/followMemberConfiguration:childSessionId',
1295
1666
  create: _khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_parameter_0$schema,
1296
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"},
1297
1676
  },
1298
1677
  },
1299
1678
  ],
@@ -1303,26 +1682,31 @@ export const TYPERT_REMOTE = {
1303
1682
  typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentMemberControlState',
1304
1683
  create: _khorsheed_dsh_local_agent_localAgentGateway_followMemberConfiguration_result$schema,
1305
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},
1306
1686
  },
1307
- sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":345,"column":3},
1687
+ sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":424,"column":3},
1308
1688
  },
1309
- {
1310
- id: '@khorsheed/dsh-local-agent#localAgentGateway/followMemberDirectory',
1689
+ 'localAgentGateway/followMemberDirectory': {
1311
1690
  service: 'localAgentGateway',
1312
- namespace: 'localAgentGateway',
1313
- method: 'followMemberDirectory',
1314
1691
  mode: 'stream',
1315
1692
  invocation: { kind: 'direct' },
1316
1693
  parameters: [
1317
1694
  {
1318
1695
  name: 'childSessionId',
1319
- wire: 'childSessionId',
1320
1696
  source: 'json',
1321
1697
  codec: {
1322
1698
  mode: 'strict',
1323
1699
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/followMemberDirectory:childSessionId',
1324
1700
  create: _khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_parameter_0$schema,
1325
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"},
1326
1710
  },
1327
1711
  },
1328
1712
  ],
@@ -1332,26 +1716,33 @@ export const TYPERT_REMOTE = {
1332
1716
  typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentModelDirectory',
1333
1717
  create: _khorsheed_dsh_local_agent_localAgentGateway_followMemberDirectory_result$schema,
1334
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},
1335
1720
  },
1336
1721
  sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":144,"column":10},
1337
1722
  },
1338
- {
1339
- id: '@khorsheed/dsh-local-agent#localAgentGateway/followMemberOutput',
1723
+ 'localAgentGateway/followMemberOutput': {
1340
1724
  service: 'localAgentGateway',
1341
- namespace: 'localAgentGateway',
1342
- method: 'followMemberOutput',
1725
+ description: 'Follow one member\'s transient output with a complete reconnect baseline.',
1343
1726
  mode: 'stream',
1344
1727
  invocation: { kind: 'direct' },
1345
1728
  parameters: [
1346
1729
  {
1347
1730
  name: 'childSessionId',
1348
- wire: 'childSessionId',
1731
+ description: 'mirrored session identity.',
1349
1732
  source: 'json',
1350
1733
  codec: {
1351
1734
  mode: 'strict',
1352
1735
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/followMemberOutput:childSessionId',
1353
1736
  create: _khorsheed_dsh_local_agent_localAgentGateway_followMemberOutput_parameter_0$schema,
1354
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"},
1355
1746
  },
1356
1747
  },
1357
1748
  ],
@@ -1361,26 +1752,33 @@ export const TYPERT_REMOTE = {
1361
1752
  typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentStreamFrame',
1362
1753
  create: _khorsheed_dsh_local_agent_localAgentGateway_followMemberOutput_result$schema,
1363
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},
1364
1757
  },
1365
1758
  sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":71,"column":3},
1366
1759
  },
1367
- {
1368
- id: '@khorsheed/dsh-local-agent#localAgentGateway/followMembers',
1760
+ 'localAgentGateway/followMembers': {
1369
1761
  service: 'localAgentGateway',
1370
- namespace: 'localAgentGateway',
1371
- method: 'followMembers',
1762
+ description: 'Shared browser stream: adding visible members does not consume more HTTP connections.',
1372
1763
  mode: 'stream',
1373
1764
  invocation: { kind: 'direct' },
1374
1765
  parameters: [
1375
1766
  {
1376
1767
  name: 'requests',
1377
- wire: 'requests',
1378
1768
  source: 'json',
1379
1769
  codec: {
1380
1770
  mode: 'strict',
1381
1771
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/followMembers:requests',
1382
1772
  create: _khorsheed_dsh_local_agent_localAgentGateway_followMembers_parameter_0$schema,
1383
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}},
1384
1782
  },
1385
1783
  },
1386
1784
  ],
@@ -1390,31 +1788,38 @@ export const TYPERT_REMOTE = {
1390
1788
  typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentMemberFeedEvent',
1391
1789
  create: _khorsheed_dsh_local_agent_localAgentGateway_followMembers_result$schema,
1392
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}]},
1393
1792
  },
1394
1793
  sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":77,"column":3},
1395
1794
  },
1396
- {
1397
- id: '@khorsheed/dsh-local-agent#localAgentGateway/followModelDirectory',
1795
+ 'localAgentGateway/followModelDirectory': {
1398
1796
  service: 'localAgentGateway',
1399
- namespace: 'localAgentGateway',
1400
- method: 'followModelDirectory',
1797
+ description: 'Keep a currently open model picker synchronized with discovery completion.',
1401
1798
  mode: 'stream',
1402
1799
  invocation: { kind: 'direct' },
1403
1800
  parameters: [
1404
1801
  {
1405
1802
  name: 'name',
1406
- wire: 'name',
1803
+ description: 'owning harness.',
1407
1804
  source: 'json',
1408
1805
  codec: {
1409
1806
  mode: 'strict',
1410
1807
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/followModelDirectory:name',
1411
1808
  create: _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_0$schema,
1412
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"},
1413
1818
  },
1414
1819
  },
1415
1820
  {
1416
1821
  name: 'childSessionId',
1417
- wire: 'childSessionId',
1822
+ description: 'member context, or undefined for the harness default.',
1418
1823
  source: 'json',
1419
1824
  acceptsUndefined: true,
1420
1825
  codec: {
@@ -1422,6 +1827,14 @@ export const TYPERT_REMOTE = {
1422
1827
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/followModelDirectory:childSessionId',
1423
1828
  create: _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_parameter_1$schema,
1424
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"},
1425
1838
  },
1426
1839
  },
1427
1840
  ],
@@ -1431,25 +1844,33 @@ export const TYPERT_REMOTE = {
1431
1844
  typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentModelDirectory',
1432
1845
  create: _khorsheed_dsh_local_agent_localAgentGateway_followModelDirectory_result$schema,
1433
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},
1434
1849
  },
1435
1850
  sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":126,"column":10},
1436
1851
  },
1437
- {
1438
- id: '@khorsheed/dsh-local-agent#localAgentGateway/harnessModel',
1852
+ 'localAgentGateway/harnessModel': {
1439
1853
  service: 'localAgentGateway',
1440
- namespace: 'localAgentGateway',
1441
- 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.',
1442
1855
  invocation: { kind: 'direct' },
1443
1856
  parameters: [
1444
1857
  {
1445
1858
  name: 'name',
1446
- wire: 'name',
1859
+ description: 'the harness name.',
1447
1860
  source: 'json',
1448
1861
  codec: {
1449
1862
  mode: 'strict',
1450
1863
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/harnessModel:name',
1451
1864
  create: _khorsheed_dsh_local_agent_localAgentGateway_harnessModel_parameter_0$schema,
1452
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"},
1453
1874
  },
1454
1875
  },
1455
1876
  ],
@@ -1458,25 +1879,31 @@ export const TYPERT_REMOTE = {
1458
1879
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/harnessModel:result',
1459
1880
  create: _khorsheed_dsh_local_agent_localAgentGateway_harnessModel_result$schema,
1460
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}]},
1461
1884
  },
1462
1885
  sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":246,"column":9},
1463
1886
  },
1464
- {
1465
- id: '@khorsheed/dsh-local-agent#localAgentGateway/memberConfiguration',
1887
+ 'localAgentGateway/memberConfiguration': {
1466
1888
  service: 'localAgentGateway',
1467
- namespace: 'localAgentGateway',
1468
- method: 'memberConfiguration',
1469
1889
  invocation: { kind: 'direct' },
1470
1890
  parameters: [
1471
1891
  {
1472
1892
  name: 'childSessionId',
1473
- wire: 'childSessionId',
1474
1893
  source: 'json',
1475
1894
  codec: {
1476
1895
  mode: 'strict',
1477
1896
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberConfiguration:childSessionId',
1478
1897
  create: _khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_parameter_0$schema,
1479
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"},
1480
1907
  },
1481
1908
  },
1482
1909
  ],
@@ -1485,36 +1912,49 @@ export const TYPERT_REMOTE = {
1485
1912
  typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentMemberControlState',
1486
1913
  create: _khorsheed_dsh_local_agent_localAgentGateway_memberConfiguration_result$schema,
1487
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},
1488
1916
  },
1489
- sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":325,"column":9},
1917
+ sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":404,"column":9},
1490
1918
  },
1491
- {
1492
- id: '@khorsheed/dsh-local-agent#localAgentGateway/memberDirectory',
1919
+ 'localAgentGateway/memberDirectory': {
1493
1920
  service: 'localAgentGateway',
1494
- namespace: 'localAgentGateway',
1495
- method: 'memberDirectory',
1921
+ description: 'Resolve directory ownership from the recorded member, never a UI provider guess.',
1496
1922
  invocation: { kind: 'direct' },
1497
1923
  parameters: [
1498
1924
  {
1499
1925
  name: 'childSessionId',
1500
- wire: 'childSessionId',
1501
1926
  source: 'json',
1502
1927
  codec: {
1503
1928
  mode: 'strict',
1504
1929
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberDirectory:childSessionId',
1505
1930
  create: _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_0$schema,
1506
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"},
1507
1940
  },
1508
1941
  },
1509
1942
  {
1510
1943
  name: 'refresh',
1511
- wire: 'refresh',
1512
1944
  source: 'json',
1513
1945
  codec: {
1514
1946
  mode: 'strict',
1515
1947
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberDirectory:refresh',
1516
1948
  create: _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_parameter_1$schema,
1517
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"},
1518
1958
  },
1519
1959
  },
1520
1960
  ],
@@ -1523,25 +1963,30 @@ export const TYPERT_REMOTE = {
1523
1963
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberDirectory:result',
1524
1964
  create: _khorsheed_dsh_local_agent_localAgentGateway_memberDirectory_result$schema,
1525
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}]},
1526
1967
  },
1527
1968
  sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":137,"column":9},
1528
1969
  },
1529
- {
1530
- id: '@khorsheed/dsh-local-agent#localAgentGateway/memberInbox',
1970
+ 'localAgentGateway/memberInbox': {
1531
1971
  service: 'localAgentGateway',
1532
- namespace: 'localAgentGateway',
1533
- method: 'memberInbox',
1534
1972
  invocation: { kind: 'direct' },
1535
1973
  parameters: [
1536
1974
  {
1537
1975
  name: 'childSessionId',
1538
- wire: 'childSessionId',
1539
1976
  source: 'json',
1540
1977
  codec: {
1541
1978
  mode: 'strict',
1542
1979
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberInbox:childSessionId',
1543
1980
  create: _khorsheed_dsh_local_agent_localAgentGateway_memberInbox_parameter_0$schema,
1544
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"},
1545
1990
  },
1546
1991
  },
1547
1992
  ],
@@ -1550,25 +1995,32 @@ export const TYPERT_REMOTE = {
1550
1995
  typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentMemberInbox',
1551
1996
  create: _khorsheed_dsh_local_agent_localAgentGateway_memberInbox_result$schema,
1552
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},
1553
1999
  },
1554
- sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":371,"column":3},
2000
+ sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":450,"column":3},
1555
2001
  },
1556
- {
1557
- id: '@khorsheed/dsh-local-agent#localAgentGateway/memberModel',
2002
+ 'localAgentGateway/memberModel': {
1558
2003
  service: 'localAgentGateway',
1559
- namespace: 'localAgentGateway',
1560
- 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.',
1561
2005
  invocation: { kind: 'direct' },
1562
2006
  parameters: [
1563
2007
  {
1564
2008
  name: 'childSessionId',
1565
- wire: 'childSessionId',
2009
+ description: 'the dsh child session id of the member.',
1566
2010
  source: 'json',
1567
2011
  codec: {
1568
2012
  mode: 'strict',
1569
2013
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberModel:childSessionId',
1570
2014
  create: _khorsheed_dsh_local_agent_localAgentGateway_memberModel_parameter_0$schema,
1571
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"},
1572
2024
  },
1573
2025
  },
1574
2026
  ],
@@ -1577,25 +2029,33 @@ export const TYPERT_REMOTE = {
1577
2029
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberModel:result',
1578
2030
  create: _khorsheed_dsh_local_agent_localAgentGateway_memberModel_result$schema,
1579
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}]},
1580
2034
  },
1581
- sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":273,"column":9},
2035
+ sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":352,"column":9},
1582
2036
  },
1583
- {
1584
- id: '@khorsheed/dsh-local-agent#localAgentGateway/memberOf',
2037
+ 'localAgentGateway/memberOf': {
1585
2038
  service: 'localAgentGateway',
1586
- namespace: 'localAgentGateway',
1587
- 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.',
1588
2040
  invocation: { kind: 'direct' },
1589
2041
  parameters: [
1590
2042
  {
1591
2043
  name: 'childSessionId',
1592
- wire: 'childSessionId',
2044
+ description: 'the dsh child session id being viewed.',
1593
2045
  source: 'json',
1594
2046
  codec: {
1595
2047
  mode: 'strict',
1596
2048
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberOf:childSessionId',
1597
2049
  create: _khorsheed_dsh_local_agent_localAgentGateway_memberOf_parameter_0$schema,
1598
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"},
1599
2059
  },
1600
2060
  },
1601
2061
  ],
@@ -1604,30 +2064,38 @@ export const TYPERT_REMOTE = {
1604
2064
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/memberOf:result',
1605
2065
  create: _khorsheed_dsh_local_agent_localAgentGateway_memberOf_result$schema,
1606
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}]},
1607
2069
  },
1608
2070
  sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":220,"column":3},
1609
2071
  },
1610
- {
1611
- id: '@khorsheed/dsh-local-agent#localAgentGateway/modelDirectory',
2072
+ 'localAgentGateway/modelDirectory': {
1612
2073
  service: 'localAgentGateway',
1613
- namespace: 'localAgentGateway',
1614
- method: 'modelDirectory',
2074
+ description: 'Read or explicitly refresh native model discovery, without changing a member.',
1615
2075
  invocation: { kind: 'direct' },
1616
2076
  parameters: [
1617
2077
  {
1618
2078
  name: 'name',
1619
- wire: 'name',
2079
+ description: 'owning harness.',
1620
2080
  source: 'json',
1621
2081
  codec: {
1622
2082
  mode: 'strict',
1623
2083
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/modelDirectory:name',
1624
2084
  create: _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_0$schema,
1625
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"},
1626
2094
  },
1627
2095
  },
1628
2096
  {
1629
2097
  name: 'childSessionId',
1630
- wire: 'childSessionId',
2098
+ description: 'member context, or undefined for the harness default.',
1631
2099
  source: 'json',
1632
2100
  acceptsUndefined: true,
1633
2101
  codec: {
@@ -1635,17 +2103,33 @@ export const TYPERT_REMOTE = {
1635
2103
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/modelDirectory:childSessionId',
1636
2104
  create: _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_1$schema,
1637
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"},
1638
2114
  },
1639
2115
  },
1640
2116
  {
1641
2117
  name: 'refresh',
1642
- wire: 'refresh',
2118
+ description: 'bypass the discovery TTL.',
1643
2119
  source: 'json',
1644
2120
  codec: {
1645
2121
  mode: 'strict',
1646
2122
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/modelDirectory:refresh',
1647
2123
  create: _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_parameter_2$schema,
1648
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"},
1649
2133
  },
1650
2134
  },
1651
2135
  ],
@@ -1654,41 +2138,91 @@ export const TYPERT_REMOTE = {
1654
2138
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/modelDirectory:result',
1655
2139
  create: _khorsheed_dsh_local_agent_localAgentGateway_modelDirectory_result$schema,
1656
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}]},
1657
2143
  },
1658
2144
  sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":113,"column":9},
1659
2145
  },
1660
- {
1661
- id: '@khorsheed/dsh-local-agent#localAgentGateway/promptMember',
2146
+ 'localAgentGateway/modelList': {
2147
+ service: 'localAgentGateway',
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': {
1662
2182
  service: 'localAgentGateway',
1663
- namespace: 'localAgentGateway',
1664
- method: 'promptMember',
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.',
1665
2184
  invocation: { kind: 'direct' },
1666
2185
  parameters: [
1667
2186
  {
1668
2187
  name: 'childSessionId',
1669
- wire: 'childSessionId',
2188
+ description: 'the dsh child session id of the member.',
1670
2189
  source: 'json',
1671
2190
  codec: {
1672
2191
  mode: 'strict',
1673
2192
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/promptMember:childSessionId',
1674
2193
  create: _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_0$schema,
1675
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"},
1676
2203
  },
1677
2204
  },
1678
2205
  {
1679
2206
  name: 'text',
1680
- wire: 'text',
2207
+ description: 'the human\'s follow-up message.',
1681
2208
  source: 'json',
1682
2209
  codec: {
1683
2210
  mode: 'strict',
1684
2211
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/promptMember:text',
1685
2212
  create: _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_1$schema,
1686
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"},
1687
2222
  },
1688
2223
  },
1689
2224
  {
1690
2225
  name: 'requestId',
1691
- wire: 'requestId',
1692
2226
  source: 'json',
1693
2227
  acceptsUndefined: true,
1694
2228
  codec: {
@@ -1696,6 +2230,14 @@ export const TYPERT_REMOTE = {
1696
2230
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/promptMember:requestId',
1697
2231
  create: _khorsheed_dsh_local_agent_localAgentGateway_promptMember_parameter_2$schema,
1698
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"},
1699
2241
  },
1700
2242
  },
1701
2243
  ],
@@ -1704,36 +2246,49 @@ export const TYPERT_REMOTE = {
1704
2246
  typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentPromptResult',
1705
2247
  create: _khorsheed_dsh_local_agent_localAgentGateway_promptMember_result$schema,
1706
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}]},
1707
2251
  },
1708
- sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":365,"column":9},
2252
+ sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":444,"column":9},
1709
2253
  },
1710
- {
1711
- id: '@khorsheed/dsh-local-agent#localAgentGateway/retryMemberConfiguration',
2254
+ 'localAgentGateway/retryMemberConfiguration': {
1712
2255
  service: 'localAgentGateway',
1713
- namespace: 'localAgentGateway',
1714
- method: 'retryMemberConfiguration',
1715
2256
  invocation: { kind: 'direct' },
1716
2257
  parameters: [
1717
2258
  {
1718
2259
  name: 'childSessionId',
1719
- wire: 'childSessionId',
1720
2260
  source: 'json',
1721
2261
  codec: {
1722
2262
  mode: 'strict',
1723
2263
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/retryMemberConfiguration:childSessionId',
1724
2264
  create: _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_parameter_0$schema,
1725
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"},
1726
2274
  },
1727
2275
  },
1728
2276
  {
1729
2277
  name: 'expectedRevision',
1730
- wire: 'expectedRevision',
1731
2278
  source: 'json',
1732
2279
  codec: {
1733
2280
  mode: 'strict',
1734
2281
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/retryMemberConfiguration:expectedRevision',
1735
2282
  create: _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_parameter_1$schema,
1736
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"},
1737
2292
  },
1738
2293
  },
1739
2294
  ],
@@ -1742,14 +2297,13 @@ export const TYPERT_REMOTE = {
1742
2297
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/retryMemberConfiguration:result',
1743
2298
  create: _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_result$schema,
1744
2299
  schema: _khorsheed_dsh_local_agent_localAgentGateway_retryMemberConfiguration_result$schema(),
2300
+ jsonSchemaError: 'typert tool schema: unsupported void value',
1745
2301
  },
1746
- sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":340,"column":9},
2302
+ sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":419,"column":9},
1747
2303
  },
1748
- {
1749
- id: '@khorsheed/dsh-local-agent#localAgentGateway/roster',
2304
+ 'localAgentGateway/roster': {
1750
2305
  service: 'localAgentGateway',
1751
- namespace: 'localAgentGateway',
1752
- method: 'roster',
2306
+ description: 'Registered harnesses in registration order.',
1753
2307
  invocation: { kind: 'direct' },
1754
2308
  parameters: [
1755
2309
  ],
@@ -1758,58 +2312,85 @@ export const TYPERT_REMOTE = {
1758
2312
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/roster:result',
1759
2313
  create: _khorsheed_dsh_local_agent_localAgentGateway_roster_result$schema,
1760
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}},
1761
2317
  },
1762
2318
  sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":159,"column":3},
1763
2319
  },
1764
- {
1765
- id: '@khorsheed/dsh-local-agent#localAgentGateway/selectMemberConfiguration',
2320
+ 'localAgentGateway/selectMemberConfiguration': {
1766
2321
  service: 'localAgentGateway',
1767
- namespace: 'localAgentGateway',
1768
- method: 'selectMemberConfiguration',
1769
2322
  invocation: { kind: 'direct' },
1770
2323
  parameters: [
1771
2324
  {
1772
2325
  name: 'childSessionId',
1773
- wire: 'childSessionId',
1774
2326
  source: 'json',
1775
2327
  codec: {
1776
2328
  mode: 'strict',
1777
2329
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/selectMemberConfiguration:childSessionId',
1778
2330
  create: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_0$schema,
1779
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"},
1780
2340
  },
1781
2341
  },
1782
2342
  {
1783
2343
  name: 'requestId',
1784
- wire: 'requestId',
1785
2344
  source: 'json',
1786
2345
  codec: {
1787
2346
  mode: 'strict',
1788
2347
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/selectMemberConfiguration:requestId',
1789
2348
  create: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_1$schema,
1790
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"},
1791
2358
  },
1792
2359
  },
1793
2360
  {
1794
2361
  name: 'expectedRevision',
1795
- wire: 'expectedRevision',
1796
2362
  source: 'json',
1797
2363
  codec: {
1798
2364
  mode: 'strict',
1799
2365
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/selectMemberConfiguration:expectedRevision',
1800
2366
  create: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_2$schema,
1801
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"},
1802
2376
  },
1803
2377
  },
1804
2378
  {
1805
2379
  name: 'selection',
1806
- wire: 'selection',
1807
2380
  source: 'json',
1808
2381
  codec: {
1809
2382
  mode: 'strict',
1810
2383
  typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentMemberConfiguration',
1811
2384
  create: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_parameter_3$schema,
1812
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},
1813
2394
  },
1814
2395
  },
1815
2396
  ],
@@ -1818,30 +2399,37 @@ export const TYPERT_REMOTE = {
1818
2399
  typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentControlReceipt',
1819
2400
  create: _khorsheed_dsh_local_agent_localAgentGateway_selectMemberConfiguration_result$schema,
1820
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},
1821
2403
  },
1822
- sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":330,"column":9},
2404
+ sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":409,"column":9},
1823
2405
  },
1824
- {
1825
- id: '@khorsheed/dsh-local-agent#localAgentGateway/sessions',
2406
+ 'localAgentGateway/sessions': {
1826
2407
  service: 'localAgentGateway',
1827
- namespace: 'localAgentGateway',
1828
- 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.',
1829
2409
  invocation: { kind: 'direct' },
1830
2410
  parameters: [
1831
2411
  {
1832
2412
  name: 'name',
1833
- wire: 'name',
2413
+ description: 'the harness name.',
1834
2414
  source: 'json',
1835
2415
  codec: {
1836
2416
  mode: 'strict',
1837
2417
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/sessions:name',
1838
2418
  create: _khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_0$schema,
1839
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"},
1840
2428
  },
1841
2429
  },
1842
2430
  {
1843
2431
  name: 'sessionId',
1844
- wire: 'sessionId',
2432
+ description: 'optional dsh session whose cwd filters the records.',
1845
2433
  source: 'json',
1846
2434
  acceptsUndefined: true,
1847
2435
  codec: {
@@ -1849,6 +2437,14 @@ export const TYPERT_REMOTE = {
1849
2437
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/sessions:sessionId',
1850
2438
  create: _khorsheed_dsh_local_agent_localAgentGateway_sessions_parameter_1$schema,
1851
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"},
1852
2448
  },
1853
2449
  },
1854
2450
  ],
@@ -1857,30 +2453,38 @@ export const TYPERT_REMOTE = {
1857
2453
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/sessions:result',
1858
2454
  create: _khorsheed_dsh_local_agent_localAgentGateway_sessions_result$schema,
1859
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}},
1860
2458
  },
1861
2459
  sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":200,"column":9},
1862
2460
  },
1863
- {
1864
- id: '@khorsheed/dsh-local-agent#localAgentGateway/setMemberModel',
2461
+ 'localAgentGateway/setMemberModel': {
1865
2462
  service: 'localAgentGateway',
1866
- namespace: 'localAgentGateway',
1867
- 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.',
1868
2464
  invocation: { kind: 'direct' },
1869
2465
  parameters: [
1870
2466
  {
1871
2467
  name: 'childSessionId',
1872
- wire: 'childSessionId',
2468
+ description: 'the dsh child session id of the member.',
1873
2469
  source: 'json',
1874
2470
  codec: {
1875
2471
  mode: 'strict',
1876
2472
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/setMemberModel:childSessionId',
1877
2473
  create: _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_0$schema,
1878
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"},
1879
2483
  },
1880
2484
  },
1881
2485
  {
1882
2486
  name: 'model',
1883
- wire: 'model',
2487
+ description: 'the model identifier, or undefined to clear the override (the member then follows the settings layer again).',
1884
2488
  source: 'json',
1885
2489
  acceptsUndefined: true,
1886
2490
  codec: {
@@ -1888,6 +2492,14 @@ export const TYPERT_REMOTE = {
1888
2492
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/setMemberModel:model',
1889
2493
  create: _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_parameter_1$schema,
1890
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"},
1891
2503
  },
1892
2504
  },
1893
2505
  ],
@@ -1896,30 +2508,38 @@ export const TYPERT_REMOTE = {
1896
2508
  typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentPromptResult',
1897
2509
  create: _khorsheed_dsh_local_agent_localAgentGateway_setMemberModel_result$schema,
1898
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}]},
1899
2513
  },
1900
- sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":305,"column":9},
2514
+ sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":384,"column":9},
1901
2515
  },
1902
- {
1903
- id: '@khorsheed/dsh-local-agent#localAgentGateway/status',
2516
+ 'localAgentGateway/status': {
1904
2517
  service: 'localAgentGateway',
1905
- namespace: 'localAgentGateway',
1906
- method: 'status',
2518
+ description: 'One harness\'s auth status, in the default scope or in a named one.',
1907
2519
  invocation: { kind: 'direct' },
1908
2520
  parameters: [
1909
2521
  {
1910
2522
  name: 'name',
1911
- wire: 'name',
2523
+ description: 'the harness name.',
1912
2524
  source: 'json',
1913
2525
  codec: {
1914
2526
  mode: 'strict',
1915
2527
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/status:name',
1916
2528
  create: _khorsheed_dsh_local_agent_localAgentGateway_status_parameter_0$schema,
1917
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"},
1918
2538
  },
1919
2539
  },
1920
2540
  {
1921
2541
  name: 'scope',
1922
- wire: 'scope',
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.',
1923
2543
  source: 'json',
1924
2544
  acceptsUndefined: true,
1925
2545
  codec: {
@@ -1927,6 +2547,14 @@ export const TYPERT_REMOTE = {
1927
2547
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/status:scope',
1928
2548
  create: _khorsheed_dsh_local_agent_localAgentGateway_status_parameter_1$schema,
1929
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"},
1930
2558
  },
1931
2559
  },
1932
2560
  ],
@@ -1935,25 +2563,33 @@ export const TYPERT_REMOTE = {
1935
2563
  typeSymbol: '@khorsheed/dsh-local-agent/types#LocalAgentStatus',
1936
2564
  create: _khorsheed_dsh_local_agent_localAgentGateway_status_result$schema,
1937
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},
1938
2568
  },
1939
2569
  sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":186,"column":3},
1940
2570
  },
1941
- {
1942
- id: '@khorsheed/dsh-local-agent#localAgentGateway/stopMember',
2571
+ 'localAgentGateway/stopMember': {
1943
2572
  service: 'localAgentGateway',
1944
- namespace: 'localAgentGateway',
1945
- method: 'stopMember',
2573
+ description: 'Interrupt a member\'s in-flight run (the composer\'s Stop).',
1946
2574
  invocation: { kind: 'direct' },
1947
2575
  parameters: [
1948
2576
  {
1949
2577
  name: 'childSessionId',
1950
- wire: 'childSessionId',
2578
+ description: 'the dsh child session id of the member.',
1951
2579
  source: 'json',
1952
2580
  codec: {
1953
2581
  mode: 'strict',
1954
2582
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/stopMember:childSessionId',
1955
2583
  create: _khorsheed_dsh_local_agent_localAgentGateway_stopMember_parameter_0$schema,
1956
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"},
1957
2593
  },
1958
2594
  },
1959
2595
  ],
@@ -1962,10 +2598,12 @@ export const TYPERT_REMOTE = {
1962
2598
  typeSymbol: '@khorsheed/dsh-local-agent#localAgentGateway/stopMember:result',
1963
2599
  create: _khorsheed_dsh_local_agent_localAgentGateway_stopMember_result$schema,
1964
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"},
1965
2603
  },
1966
- sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":393,"column":3},
2604
+ sourceLocation: {"file":"packages/local-agent/src/gateway.ts","line":472,"column":3},
1967
2605
  },
1968
- ],
1969
- }
2606
+ },
2607
+ }, z)
1970
2608
 
1971
2609
  export default TYPERT_REMOTE