@khorsheed/dsh-room 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -0
- package/README.en.md +29 -62
- package/README.i18n.yaml +2 -2
- package/README.md +28 -61
- package/lib/client.js +34057 -6483
- package/lib/index.js +4045 -730
- package/lib/journal-B4FOGO6S.js +482 -0
- package/lib/journal-Rid9AAnD.js +485 -0
- package/lib/tool.js +112 -166
- package/lib/typert.host.js +2517 -363
- package/lib/typert.remote-client.d.ts +53 -9
- package/lib/typert.remote-client.js +1909 -280
- package/lib/types/agent-setup.d.ts +1 -1
- package/lib/types/client/InviteAgentAction.js +4 -16
- package/lib/types/client/InviteDialog.d.ts +28 -6
- package/lib/types/client/InviteDialog.js +76 -12
- package/lib/types/client/MemberCard.d.ts +5 -1
- package/lib/types/client/MemberCard.js +4 -4
- package/lib/types/client/MembersView.d.ts +1 -1
- package/lib/types/client/MembersView.js +58 -22
- package/lib/types/client/RemoveMemberConfirm.d.ts +40 -0
- package/lib/types/client/RemoveMemberConfirm.js +85 -0
- package/lib/types/client/RoomApprovalView.d.ts +11 -0
- package/lib/types/client/RoomApprovalView.js +28 -0
- package/lib/types/client/RoomComposer.d.ts +1 -1
- package/lib/types/client/RoomComposer.js +228 -37
- package/lib/types/client/RoomDecisionView.d.ts +22 -0
- package/lib/types/client/RoomDecisionView.js +35 -0
- package/lib/types/client/RoomHelpView.d.ts +17 -0
- package/lib/types/client/RoomHelpView.js +56 -0
- package/lib/types/client/RoomInboxView.d.ts +10 -0
- package/lib/types/client/RoomInboxView.js +14 -0
- package/lib/types/client/RoomQuestionView.d.ts +13 -0
- package/lib/types/client/RoomQuestionView.js +61 -0
- package/lib/types/client/RoomRelayView.js +1 -1
- package/lib/types/client/RoomRunView.d.ts +3 -1
- package/lib/types/client/RoomRunView.js +12 -5
- package/lib/types/client/RoomSettingsView.d.ts +19 -0
- package/lib/types/client/RoomSettingsView.js +30 -0
- package/lib/types/client/RoomSpeechView.d.ts +22 -8
- package/lib/types/client/RoomSpeechView.js +94 -11
- package/lib/types/client/RoomStatsLine.d.ts +26 -5
- package/lib/types/client/RoomStatsLine.js +53 -7
- package/lib/types/client/RoomTaskCapsule.d.ts +19 -0
- package/lib/types/client/RoomTaskCapsule.js +37 -0
- package/lib/types/client/TasksTab.d.ts +41 -0
- package/lib/types/client/TasksTab.js +43 -0
- package/lib/types/client/TasksView.d.ts +44 -0
- package/lib/types/client/TasksView.js +149 -0
- package/lib/types/client/TeamView.d.ts +33 -0
- package/lib/types/client/TeamView.js +210 -0
- package/lib/types/client/at-menu.d.ts +127 -0
- package/lib/types/client/at-menu.js +173 -0
- package/lib/types/client/draft-chips.d.ts +67 -0
- package/lib/types/client/draft-chips.js +95 -0
- package/lib/types/client/executions.d.ts +0 -30
- package/lib/types/client/executions.js +4 -34
- package/lib/types/client/icons-local.d.ts +25 -0
- package/lib/types/client/icons-local.js +10 -0
- package/lib/types/client/icons.d.ts +2 -1
- package/lib/types/client/icons.js +1 -0
- package/lib/types/client/index.js +276 -72
- package/lib/types/client/locales.d.ts +482 -52
- package/lib/types/client/locales.js +490 -60
- package/lib/types/client/nodes.d.ts +112 -17
- package/lib/types/client/nodes.js +197 -26
- package/lib/types/client/preset-visibility.d.ts +12 -2
- package/lib/types/client/preset-visibility.js +54 -13
- package/lib/types/client/slots.d.ts +124 -51
- package/lib/types/client/task-tag.d.ts +32 -0
- package/lib/types/client/task-tag.js +33 -0
- package/lib/types/client/tasks.d.ts +50 -0
- package/lib/types/client/tasks.js +82 -0
- package/lib/types/client/team.d.ts +73 -0
- package/lib/types/client/team.js +187 -0
- package/lib/types/decisions.d.ts +49 -0
- package/lib/types/decisions.js +101 -0
- package/lib/types/deliveries.d.ts +17 -1
- package/lib/types/deliveries.js +82 -6
- package/lib/types/dispatch.d.ts +92 -4
- package/lib/types/dispatch.js +477 -109
- package/lib/types/help.d.ts +137 -0
- package/lib/types/help.js +216 -0
- package/lib/types/helps.d.ts +26 -0
- package/lib/types/helps.js +47 -0
- package/lib/types/index.d.ts +292 -52
- package/lib/types/index.js +1415 -199
- package/lib/types/jobs.d.ts +22 -0
- package/lib/types/jobs.js +77 -0
- package/lib/types/journal.d.ts +17 -27
- package/lib/types/journal.js +120 -43
- package/lib/types/messaging.d.ts +65 -0
- package/lib/types/messaging.js +160 -0
- package/lib/types/plan-service.js +7 -1
- package/lib/types/report-gate.d.ts +81 -0
- package/lib/types/report-gate.js +89 -0
- package/lib/types/tool-definition.d.ts +43 -20
- package/lib/types/tool-definition.js +145 -212
- package/lib/types/tool.d.ts +2 -2
- package/lib/types/tool.js +3 -2
- package/lib/types/types.d.ts +755 -78
- package/locale/zh.json +1 -1
- package/package.json +27 -29
- package/lib/invariant.js +0 -26
- package/lib/types/client/RoomActivityDock.d.ts +0 -19
- package/lib/types/client/RoomActivityDock.js +0 -105
- package/lib/types/client/RoomDockCapsules.d.ts +0 -64
- package/lib/types/client/RoomDockCapsules.js +0 -277
- package/lib/types/client/RoomPlanTab.d.ts +0 -15
- package/lib/types/client/RoomPlanTab.js +0 -13
- package/lib/types/client/RoomTaskLineView.d.ts +0 -13
- package/lib/types/client/RoomTaskLineView.js +0 -21
- package/lib/types/invariant.d.ts +0 -16
- package/lib/types/invariant.js +0 -24
|
@@ -1,21 +1,113 @@
|
|
|
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 RoomJsonValueRemoteCodec$schema$value
|
|
5
7
|
const RoomJsonValueRemoteCodec$schema = () => (RoomJsonValueRemoteCodec$schema$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => RoomJsonValueRemoteCodec$schema())), z.record(z.string(), z.lazy(() => RoomJsonValueRemoteCodec$schema()))]))
|
|
6
|
-
let
|
|
7
|
-
const
|
|
8
|
-
'sessionId': z.
|
|
9
|
-
'
|
|
10
|
-
'
|
|
11
|
-
'blockedBy': z.string().readonly().optional(),
|
|
8
|
+
let _khorsheed_dsh_room_room_answerApproval_parameter_0$schema$value
|
|
9
|
+
const _khorsheed_dsh_room_room_answerApproval_parameter_0$schema = () => (_khorsheed_dsh_room_room_answerApproval_parameter_0$schema$value ??= z.object({
|
|
10
|
+
'sessionId': z.string().readonly(),
|
|
11
|
+
'id': z.string().readonly(),
|
|
12
|
+
'outcome': z.union([z.literal("rejected"), z.literal("allowed-once")]).readonly(),
|
|
12
13
|
}))
|
|
13
|
-
let
|
|
14
|
-
const
|
|
14
|
+
let _khorsheed_dsh_room_room_answerApproval_result$schema$value
|
|
15
|
+
const _khorsheed_dsh_room_room_answerApproval_result$schema = () => (_khorsheed_dsh_room_room_answerApproval_result$schema$value ??= z.union([z.object({
|
|
15
16
|
'ok': z.literal(true).readonly(),
|
|
16
|
-
|
|
17
|
+
}), z.object({
|
|
18
|
+
'ok': z.literal(false).readonly(),
|
|
19
|
+
'error': z.union([z.object({
|
|
20
|
+
'code': z.literal("request-conflict").readonly(),
|
|
21
|
+
}), z.object({
|
|
22
|
+
'code': z.literal("member-cwd-bound").readonly(),
|
|
23
|
+
}), z.object({
|
|
24
|
+
'code': z.literal("not-coordinator").readonly(),
|
|
25
|
+
}), z.object({
|
|
26
|
+
'code': z.literal("delivery-not-uncertain").readonly(),
|
|
27
|
+
}), z.object({
|
|
28
|
+
'code': z.literal("plan-reconciliation-required").readonly(),
|
|
29
|
+
}), z.object({
|
|
30
|
+
'code': z.literal("coordinator-busy").readonly(),
|
|
31
|
+
}), z.object({
|
|
32
|
+
'code': z.literal("coordinator-not-ready").readonly(),
|
|
33
|
+
'message': z.string().readonly(),
|
|
34
|
+
}), z.object({
|
|
35
|
+
'code': z.literal("coordinator-conflict").readonly(),
|
|
36
|
+
}), z.object({
|
|
37
|
+
'code': z.literal("active-coordinator").readonly(),
|
|
38
|
+
}), z.object({
|
|
39
|
+
'code': z.literal("configuration-owned-by-core").readonly(),
|
|
40
|
+
}), z.object({
|
|
41
|
+
'code': z.literal("session-not-found").readonly(),
|
|
42
|
+
}), z.object({
|
|
43
|
+
'code': z.literal("not-a-room").readonly(),
|
|
44
|
+
}), z.object({
|
|
45
|
+
'code': z.literal("invalid-name").readonly(),
|
|
46
|
+
}), z.object({
|
|
47
|
+
'code': z.literal("duplicate-name").readonly(),
|
|
48
|
+
}), z.object({
|
|
49
|
+
'code': z.literal("empty-provider").readonly(),
|
|
50
|
+
}), z.object({
|
|
51
|
+
'code': z.literal("member-not-found").readonly(),
|
|
52
|
+
}), z.object({
|
|
53
|
+
'code': z.literal("empty-text").readonly(),
|
|
54
|
+
}), z.object({
|
|
55
|
+
'code': z.literal("role-too-long").readonly(),
|
|
56
|
+
}), z.object({
|
|
57
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
58
|
+
}), z.object({
|
|
59
|
+
'code': z.literal("self-message").readonly(),
|
|
60
|
+
}), z.object({
|
|
61
|
+
'code': z.literal("unknown-task").readonly(),
|
|
62
|
+
}), z.object({
|
|
63
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
64
|
+
'preset': z.string().readonly(),
|
|
65
|
+
'available': z.array(z.string()).readonly(),
|
|
66
|
+
}), z.object({
|
|
67
|
+
'code': z.literal("nothing-to-update").readonly(),
|
|
68
|
+
}), z.object({
|
|
69
|
+
'code': z.literal("local-agent-unavailable").readonly(),
|
|
70
|
+
}), z.object({
|
|
71
|
+
'code': z.literal("unknown-provider").readonly(),
|
|
72
|
+
'provider': z.string().readonly(),
|
|
73
|
+
'available': z.array(z.string()).readonly(),
|
|
74
|
+
}), z.object({
|
|
75
|
+
'code': z.literal("unknown-targets").readonly(),
|
|
76
|
+
'names': z.array(z.string()).readonly(),
|
|
77
|
+
}), z.object({
|
|
78
|
+
'code': z.literal("no-targets").readonly(),
|
|
79
|
+
}), z.object({
|
|
80
|
+
'code': z.literal("relay-not-found").readonly(),
|
|
81
|
+
}), z.object({
|
|
82
|
+
'code': z.literal("relay-not-pending").readonly(),
|
|
83
|
+
}), z.object({
|
|
84
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
85
|
+
}), z.object({
|
|
86
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
87
|
+
}), z.object({
|
|
88
|
+
'code': z.literal("main-member").readonly(),
|
|
89
|
+
}), z.object({
|
|
90
|
+
'code': z.literal("task-not-found").readonly(),
|
|
91
|
+
}), z.object({
|
|
92
|
+
'code': z.literal("task-closed").readonly(),
|
|
93
|
+
}), z.object({
|
|
94
|
+
'code': z.literal("resume-failed").readonly(),
|
|
95
|
+
'message': z.string().readonly(),
|
|
96
|
+
})]).readonly(),
|
|
97
|
+
})]))
|
|
98
|
+
let _khorsheed_dsh_room_room_answerQuestion_parameter_0$schema$value
|
|
99
|
+
const _khorsheed_dsh_room_room_answerQuestion_parameter_0$schema = () => (_khorsheed_dsh_room_room_answerQuestion_parameter_0$schema$value ??= z.object({
|
|
100
|
+
'sessionId': z.string().readonly(),
|
|
17
101
|
'id': z.string().readonly(),
|
|
18
|
-
|
|
102
|
+
'answers': z.array(z.object({
|
|
103
|
+
'id': z.string().readonly(),
|
|
104
|
+
'selected': z.array(z.string()).readonly(),
|
|
105
|
+
'custom': z.string().readonly().optional(),
|
|
106
|
+
})).readonly(),
|
|
107
|
+
}))
|
|
108
|
+
let _khorsheed_dsh_room_room_answerQuestion_result$schema$value
|
|
109
|
+
const _khorsheed_dsh_room_room_answerQuestion_result$schema = () => (_khorsheed_dsh_room_room_answerQuestion_result$schema$value ??= z.union([z.object({
|
|
110
|
+
'ok': z.literal(true).readonly(),
|
|
19
111
|
}), z.object({
|
|
20
112
|
'ok': z.literal(false).readonly(),
|
|
21
113
|
'error': z.union([z.object({
|
|
@@ -53,6 +145,18 @@ const _khorsheed_dsh_room_room_addTask_result$schema = () => (_khorsheed_dsh_roo
|
|
|
53
145
|
'code': z.literal("member-not-found").readonly(),
|
|
54
146
|
}), z.object({
|
|
55
147
|
'code': z.literal("empty-text").readonly(),
|
|
148
|
+
}), z.object({
|
|
149
|
+
'code': z.literal("role-too-long").readonly(),
|
|
150
|
+
}), z.object({
|
|
151
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
152
|
+
}), z.object({
|
|
153
|
+
'code': z.literal("self-message").readonly(),
|
|
154
|
+
}), z.object({
|
|
155
|
+
'code': z.literal("unknown-task").readonly(),
|
|
156
|
+
}), z.object({
|
|
157
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
158
|
+
'preset': z.string().readonly(),
|
|
159
|
+
'available': z.array(z.string()).readonly(),
|
|
56
160
|
}), z.object({
|
|
57
161
|
'code': z.literal("nothing-to-update").readonly(),
|
|
58
162
|
}), z.object({
|
|
@@ -70,6 +174,10 @@ const _khorsheed_dsh_room_room_addTask_result$schema = () => (_khorsheed_dsh_roo
|
|
|
70
174
|
'code': z.literal("relay-not-found").readonly(),
|
|
71
175
|
}), z.object({
|
|
72
176
|
'code': z.literal("relay-not-pending").readonly(),
|
|
177
|
+
}), z.object({
|
|
178
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
179
|
+
}), z.object({
|
|
180
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
73
181
|
}), z.object({
|
|
74
182
|
'code': z.literal("main-member").readonly(),
|
|
75
183
|
}), z.object({
|
|
@@ -83,16 +191,16 @@ const _khorsheed_dsh_room_room_addTask_result$schema = () => (_khorsheed_dsh_roo
|
|
|
83
191
|
})]))
|
|
84
192
|
let _khorsheed_dsh_room_room_cancel_parameter_0$schema$value
|
|
85
193
|
const _khorsheed_dsh_room_room_cancel_parameter_0$schema = () => (_khorsheed_dsh_room_room_cancel_parameter_0$schema$value ??= z.object({
|
|
86
|
-
'expectedRunId': z.string().readonly().optional(),
|
|
194
|
+
'expectedRunId': z.string().readonly().optional().describe('Optional fencing for an execution card; a stale card must never stop a successor.'),
|
|
87
195
|
'expectedStartedAt': z.number().readonly().optional(),
|
|
88
|
-
'sessionId': z.
|
|
89
|
-
'name': z.string().readonly(),
|
|
196
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
197
|
+
'name': z.string().readonly().describe('Member whose run should be cancelled.'),
|
|
90
198
|
}))
|
|
91
199
|
let _khorsheed_dsh_room_room_cancel_result$schema$value
|
|
92
200
|
const _khorsheed_dsh_room_room_cancel_result$schema = () => (_khorsheed_dsh_room_room_cancel_result$schema$value ??= z.union([z.object({
|
|
93
201
|
'ok': z.literal(true).readonly(),
|
|
94
202
|
'value': z.object({
|
|
95
|
-
'cancelled': z.boolean().readonly(),
|
|
203
|
+
'cancelled': z.boolean().readonly().describe('True when an in-flight run was found and cancelled.'),
|
|
96
204
|
}).readonly(),
|
|
97
205
|
}), z.object({
|
|
98
206
|
'ok': z.literal(false).readonly(),
|
|
@@ -131,6 +239,18 @@ const _khorsheed_dsh_room_room_cancel_result$schema = () => (_khorsheed_dsh_room
|
|
|
131
239
|
'code': z.literal("member-not-found").readonly(),
|
|
132
240
|
}), z.object({
|
|
133
241
|
'code': z.literal("empty-text").readonly(),
|
|
242
|
+
}), z.object({
|
|
243
|
+
'code': z.literal("role-too-long").readonly(),
|
|
244
|
+
}), z.object({
|
|
245
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
246
|
+
}), z.object({
|
|
247
|
+
'code': z.literal("self-message").readonly(),
|
|
248
|
+
}), z.object({
|
|
249
|
+
'code': z.literal("unknown-task").readonly(),
|
|
250
|
+
}), z.object({
|
|
251
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
252
|
+
'preset': z.string().readonly(),
|
|
253
|
+
'available': z.array(z.string()).readonly(),
|
|
134
254
|
}), z.object({
|
|
135
255
|
'code': z.literal("nothing-to-update").readonly(),
|
|
136
256
|
}), z.object({
|
|
@@ -148,6 +268,10 @@ const _khorsheed_dsh_room_room_cancel_result$schema = () => (_khorsheed_dsh_room
|
|
|
148
268
|
'code': z.literal("relay-not-found").readonly(),
|
|
149
269
|
}), z.object({
|
|
150
270
|
'code': z.literal("relay-not-pending").readonly(),
|
|
271
|
+
}), z.object({
|
|
272
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
273
|
+
}), z.object({
|
|
274
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
151
275
|
}), z.object({
|
|
152
276
|
'code': z.literal("main-member").readonly(),
|
|
153
277
|
}), z.object({
|
|
@@ -161,14 +285,14 @@ const _khorsheed_dsh_room_room_cancel_result$schema = () => (_khorsheed_dsh_room
|
|
|
161
285
|
})]))
|
|
162
286
|
let _khorsheed_dsh_room_room_cancelChild_parameter_0$schema$value
|
|
163
287
|
const _khorsheed_dsh_room_room_cancelChild_parameter_0$schema = () => (_khorsheed_dsh_room_room_cancelChild_parameter_0$schema$value ??= z.object({
|
|
164
|
-
'sessionId': z.
|
|
165
|
-
'childSessionId': z.
|
|
288
|
+
'sessionId': z.string(),
|
|
289
|
+
'childSessionId': z.string(),
|
|
166
290
|
}))
|
|
167
291
|
let _khorsheed_dsh_room_room_cancelChild_result$schema$value
|
|
168
292
|
const _khorsheed_dsh_room_room_cancelChild_result$schema = () => (_khorsheed_dsh_room_room_cancelChild_result$schema$value ??= z.union([z.object({
|
|
169
293
|
'ok': z.literal(true).readonly(),
|
|
170
294
|
'value': z.object({
|
|
171
|
-
'cancelled': z.boolean().readonly(),
|
|
295
|
+
'cancelled': z.boolean().readonly().describe('True when an in-flight run was found and cancelled.'),
|
|
172
296
|
}).readonly(),
|
|
173
297
|
}), z.object({
|
|
174
298
|
'ok': z.literal(false).readonly(),
|
|
@@ -207,6 +331,18 @@ const _khorsheed_dsh_room_room_cancelChild_result$schema = () => (_khorsheed_dsh
|
|
|
207
331
|
'code': z.literal("member-not-found").readonly(),
|
|
208
332
|
}), z.object({
|
|
209
333
|
'code': z.literal("empty-text").readonly(),
|
|
334
|
+
}), z.object({
|
|
335
|
+
'code': z.literal("role-too-long").readonly(),
|
|
336
|
+
}), z.object({
|
|
337
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
338
|
+
}), z.object({
|
|
339
|
+
'code': z.literal("self-message").readonly(),
|
|
340
|
+
}), z.object({
|
|
341
|
+
'code': z.literal("unknown-task").readonly(),
|
|
342
|
+
}), z.object({
|
|
343
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
344
|
+
'preset': z.string().readonly(),
|
|
345
|
+
'available': z.array(z.string()).readonly(),
|
|
210
346
|
}), z.object({
|
|
211
347
|
'code': z.literal("nothing-to-update").readonly(),
|
|
212
348
|
}), z.object({
|
|
@@ -224,6 +360,10 @@ const _khorsheed_dsh_room_room_cancelChild_result$schema = () => (_khorsheed_dsh
|
|
|
224
360
|
'code': z.literal("relay-not-found").readonly(),
|
|
225
361
|
}), z.object({
|
|
226
362
|
'code': z.literal("relay-not-pending").readonly(),
|
|
363
|
+
}), z.object({
|
|
364
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
365
|
+
}), z.object({
|
|
366
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
227
367
|
}), z.object({
|
|
228
368
|
'code': z.literal("main-member").readonly(),
|
|
229
369
|
}), z.object({
|
|
@@ -235,17 +375,16 @@ const _khorsheed_dsh_room_room_cancelChild_result$schema = () => (_khorsheed_dsh
|
|
|
235
375
|
'message': z.string().readonly(),
|
|
236
376
|
})]).readonly(),
|
|
237
377
|
})]))
|
|
238
|
-
let
|
|
239
|
-
const
|
|
240
|
-
'sessionId': z.
|
|
241
|
-
'
|
|
242
|
-
'status': z.union([z.literal("done"), z.literal("cancelled")]).readonly().optional(),
|
|
378
|
+
let _khorsheed_dsh_room_room_confirmRelay_parameter_0$schema$value
|
|
379
|
+
const _khorsheed_dsh_room_room_confirmRelay_parameter_0$schema = () => (_khorsheed_dsh_room_room_confirmRelay_parameter_0$schema$value ??= z.object({
|
|
380
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
381
|
+
'relayId': z.string().readonly().describe('The relay to resolve.'),
|
|
243
382
|
}))
|
|
244
|
-
let
|
|
245
|
-
const
|
|
383
|
+
let _khorsheed_dsh_room_room_confirmRelay_result$schema$value
|
|
384
|
+
const _khorsheed_dsh_room_room_confirmRelay_result$schema = () => (_khorsheed_dsh_room_room_confirmRelay_result$schema$value ??= z.union([z.object({
|
|
246
385
|
'ok': z.literal(true).readonly(),
|
|
247
386
|
'value': z.object({
|
|
248
|
-
'
|
|
387
|
+
'relayId': z.string().readonly(),
|
|
249
388
|
}).readonly(),
|
|
250
389
|
}), z.object({
|
|
251
390
|
'ok': z.literal(false).readonly(),
|
|
@@ -284,6 +423,18 @@ const _khorsheed_dsh_room_room_closeTask_result$schema = () => (_khorsheed_dsh_r
|
|
|
284
423
|
'code': z.literal("member-not-found").readonly(),
|
|
285
424
|
}), z.object({
|
|
286
425
|
'code': z.literal("empty-text").readonly(),
|
|
426
|
+
}), z.object({
|
|
427
|
+
'code': z.literal("role-too-long").readonly(),
|
|
428
|
+
}), z.object({
|
|
429
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
430
|
+
}), z.object({
|
|
431
|
+
'code': z.literal("self-message").readonly(),
|
|
432
|
+
}), z.object({
|
|
433
|
+
'code': z.literal("unknown-task").readonly(),
|
|
434
|
+
}), z.object({
|
|
435
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
436
|
+
'preset': z.string().readonly(),
|
|
437
|
+
'available': z.array(z.string()).readonly(),
|
|
287
438
|
}), z.object({
|
|
288
439
|
'code': z.literal("nothing-to-update").readonly(),
|
|
289
440
|
}), z.object({
|
|
@@ -301,6 +452,10 @@ const _khorsheed_dsh_room_room_closeTask_result$schema = () => (_khorsheed_dsh_r
|
|
|
301
452
|
'code': z.literal("relay-not-found").readonly(),
|
|
302
453
|
}), z.object({
|
|
303
454
|
'code': z.literal("relay-not-pending").readonly(),
|
|
455
|
+
}), z.object({
|
|
456
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
457
|
+
}), z.object({
|
|
458
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
304
459
|
}), z.object({
|
|
305
460
|
'code': z.literal("main-member").readonly(),
|
|
306
461
|
}), z.object({
|
|
@@ -312,17 +467,15 @@ const _khorsheed_dsh_room_room_closeTask_result$schema = () => (_khorsheed_dsh_r
|
|
|
312
467
|
'message': z.string().readonly(),
|
|
313
468
|
})]).readonly(),
|
|
314
469
|
})]))
|
|
315
|
-
let
|
|
316
|
-
const
|
|
317
|
-
'sessionId': z.
|
|
318
|
-
'
|
|
470
|
+
let _khorsheed_dsh_room_room_dismissHelpNudge_parameter_0$schema$value
|
|
471
|
+
const _khorsheed_dsh_room_room_dismissHelpNudge_parameter_0$schema = () => (_khorsheed_dsh_room_room_dismissHelpNudge_parameter_0$schema$value ??= z.object({
|
|
472
|
+
'sessionId': z.string().readonly(),
|
|
473
|
+
'target': z.string().readonly().describe('The outside session.'),
|
|
474
|
+
'title': z.string().readonly().optional().describe('Its title (link only).'),
|
|
319
475
|
}))
|
|
320
|
-
let
|
|
321
|
-
const
|
|
476
|
+
let _khorsheed_dsh_room_room_dismissHelpNudge_result$schema$value
|
|
477
|
+
const _khorsheed_dsh_room_room_dismissHelpNudge_result$schema = () => (_khorsheed_dsh_room_room_dismissHelpNudge_result$schema$value ??= z.union([z.object({
|
|
322
478
|
'ok': z.literal(true).readonly(),
|
|
323
|
-
'value': z.object({
|
|
324
|
-
'relayId': z.string().readonly(),
|
|
325
|
-
}).readonly(),
|
|
326
479
|
}), z.object({
|
|
327
480
|
'ok': z.literal(false).readonly(),
|
|
328
481
|
'error': z.union([z.object({
|
|
@@ -360,6 +513,18 @@ const _khorsheed_dsh_room_room_confirmRelay_result$schema = () => (_khorsheed_ds
|
|
|
360
513
|
'code': z.literal("member-not-found").readonly(),
|
|
361
514
|
}), z.object({
|
|
362
515
|
'code': z.literal("empty-text").readonly(),
|
|
516
|
+
}), z.object({
|
|
517
|
+
'code': z.literal("role-too-long").readonly(),
|
|
518
|
+
}), z.object({
|
|
519
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
520
|
+
}), z.object({
|
|
521
|
+
'code': z.literal("self-message").readonly(),
|
|
522
|
+
}), z.object({
|
|
523
|
+
'code': z.literal("unknown-task").readonly(),
|
|
524
|
+
}), z.object({
|
|
525
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
526
|
+
'preset': z.string().readonly(),
|
|
527
|
+
'available': z.array(z.string()).readonly(),
|
|
363
528
|
}), z.object({
|
|
364
529
|
'code': z.literal("nothing-to-update").readonly(),
|
|
365
530
|
}), z.object({
|
|
@@ -377,6 +542,10 @@ const _khorsheed_dsh_room_room_confirmRelay_result$schema = () => (_khorsheed_ds
|
|
|
377
542
|
'code': z.literal("relay-not-found").readonly(),
|
|
378
543
|
}), z.object({
|
|
379
544
|
'code': z.literal("relay-not-pending").readonly(),
|
|
545
|
+
}), z.object({
|
|
546
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
547
|
+
}), z.object({
|
|
548
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
380
549
|
}), z.object({
|
|
381
550
|
'code': z.literal("main-member").readonly(),
|
|
382
551
|
}), z.object({
|
|
@@ -390,8 +559,8 @@ const _khorsheed_dsh_room_room_confirmRelay_result$schema = () => (_khorsheed_ds
|
|
|
390
559
|
})]))
|
|
391
560
|
let _khorsheed_dsh_room_room_dismissRelay_parameter_0$schema$value
|
|
392
561
|
const _khorsheed_dsh_room_room_dismissRelay_parameter_0$schema = () => (_khorsheed_dsh_room_room_dismissRelay_parameter_0$schema$value ??= z.object({
|
|
393
|
-
'sessionId': z.
|
|
394
|
-
'relayId': z.string().readonly(),
|
|
562
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
563
|
+
'relayId': z.string().readonly().describe('The relay to resolve.'),
|
|
395
564
|
}))
|
|
396
565
|
let _khorsheed_dsh_room_room_dismissRelay_result$schema$value
|
|
397
566
|
const _khorsheed_dsh_room_room_dismissRelay_result$schema = () => (_khorsheed_dsh_room_room_dismissRelay_result$schema$value ??= z.union([z.object({
|
|
@@ -436,6 +605,18 @@ const _khorsheed_dsh_room_room_dismissRelay_result$schema = () => (_khorsheed_ds
|
|
|
436
605
|
'code': z.literal("member-not-found").readonly(),
|
|
437
606
|
}), z.object({
|
|
438
607
|
'code': z.literal("empty-text").readonly(),
|
|
608
|
+
}), z.object({
|
|
609
|
+
'code': z.literal("role-too-long").readonly(),
|
|
610
|
+
}), z.object({
|
|
611
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
612
|
+
}), z.object({
|
|
613
|
+
'code': z.literal("self-message").readonly(),
|
|
614
|
+
}), z.object({
|
|
615
|
+
'code': z.literal("unknown-task").readonly(),
|
|
616
|
+
}), z.object({
|
|
617
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
618
|
+
'preset': z.string().readonly(),
|
|
619
|
+
'available': z.array(z.string()).readonly(),
|
|
439
620
|
}), z.object({
|
|
440
621
|
'code': z.literal("nothing-to-update").readonly(),
|
|
441
622
|
}), z.object({
|
|
@@ -453,6 +634,10 @@ const _khorsheed_dsh_room_room_dismissRelay_result$schema = () => (_khorsheed_ds
|
|
|
453
634
|
'code': z.literal("relay-not-found").readonly(),
|
|
454
635
|
}), z.object({
|
|
455
636
|
'code': z.literal("relay-not-pending").readonly(),
|
|
637
|
+
}), z.object({
|
|
638
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
639
|
+
}), z.object({
|
|
640
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
456
641
|
}), z.object({
|
|
457
642
|
'code': z.literal("main-member").readonly(),
|
|
458
643
|
}), z.object({
|
|
@@ -466,7 +651,7 @@ const _khorsheed_dsh_room_room_dismissRelay_result$schema = () => (_khorsheed_ds
|
|
|
466
651
|
})]))
|
|
467
652
|
let _khorsheed_dsh_room_room_getState_parameter_0$schema$value
|
|
468
653
|
const _khorsheed_dsh_room_room_getState_parameter_0$schema = () => (_khorsheed_dsh_room_room_getState_parameter_0$schema$value ??= z.object({
|
|
469
|
-
'sessionId': z.
|
|
654
|
+
'sessionId': z.string().readonly().describe('Room session to replay.'),
|
|
470
655
|
}))
|
|
471
656
|
let _khorsheed_dsh_room_room_getState_result$schema$value
|
|
472
657
|
const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_room_room_getState_result$schema$value ??= z.union([z.object({
|
|
@@ -475,19 +660,28 @@ const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_ro
|
|
|
475
660
|
'executions': z.array(z.object({
|
|
476
661
|
'id': z.string().readonly(),
|
|
477
662
|
'memberId': z.string().readonly().optional(),
|
|
478
|
-
'childSessionId': z.
|
|
663
|
+
'childSessionId': z.string().readonly().optional(),
|
|
664
|
+
'childTurn': z.number().readonly().optional().describe('The child session round the run reached, as recorded by its terminal run-state edge.'),
|
|
479
665
|
'provider': z.string().readonly().optional(),
|
|
480
666
|
'model': z.string().readonly().optional(),
|
|
481
667
|
'effort': z.string().readonly().optional(),
|
|
482
668
|
'tokens': z.number().readonly().optional(),
|
|
483
|
-
'
|
|
669
|
+
'usage': z.object({
|
|
670
|
+
'inputTokens': z.number().readonly(),
|
|
671
|
+
'outputTokens': z.number().readonly(),
|
|
672
|
+
'cacheReadTokens': z.number().readonly().optional(),
|
|
673
|
+
'cacheWriteTokens': z.number().readonly().optional(),
|
|
674
|
+
'reasoningTokens': z.number().readonly().optional(),
|
|
675
|
+
}).readonly().optional(),
|
|
676
|
+
'runId': z.string().readonly().optional().describe('Stable execution identity; legacy journals use startedAt.'),
|
|
484
677
|
'member': z.string().readonly(),
|
|
485
|
-
'state': z.union([z.literal("
|
|
678
|
+
'state': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("done")]).readonly(),
|
|
486
679
|
'startedAt': z.number().readonly(),
|
|
487
680
|
'elapsedMs': z.number().readonly().optional(),
|
|
488
|
-
'error': z.string().readonly().optional(),
|
|
681
|
+
'error': z.string().readonly().optional().describe('Why the run failed (failed edges only), when the edge carried one.'),
|
|
489
682
|
})).readonly().optional(),
|
|
490
683
|
'plan': z.object({
|
|
684
|
+
'status': z.union([z.literal("cancelled"), z.literal("running"), z.literal("completed"), z.literal("paused"), z.literal("draft")]),
|
|
491
685
|
'stages': z.array(z.object({
|
|
492
686
|
'id': z.string(),
|
|
493
687
|
'title': z.string(),
|
|
@@ -496,7 +690,6 @@ const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_ro
|
|
|
496
690
|
'id': z.string(),
|
|
497
691
|
'revision': z.number(),
|
|
498
692
|
'objective': z.string(),
|
|
499
|
-
'status': z.union([z.literal("draft"), z.literal("running"), z.literal("cancelled"), z.literal("paused"), z.literal("completed")]),
|
|
500
693
|
'reason': z.string().optional(),
|
|
501
694
|
'budget': z.object({
|
|
502
695
|
'maxParallel': z.number(),
|
|
@@ -518,12 +711,12 @@ const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_ro
|
|
|
518
711
|
'inputRefs': z.array(z.string()),
|
|
519
712
|
'artifactPaths': z.array(z.string()),
|
|
520
713
|
'dependsOn': z.array(z.string()),
|
|
521
|
-
'status': z.union([z.literal("
|
|
714
|
+
'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("accepted"), z.literal("submitted")]),
|
|
522
715
|
'attempts': z.array(z.object({
|
|
523
716
|
'id': z.string(),
|
|
524
717
|
'deliveryId': z.string(),
|
|
525
718
|
'number': z.number(),
|
|
526
|
-
'status': z.union([z.literal("
|
|
719
|
+
'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("rejected"), z.literal("accepted"), z.literal("queued"), z.literal("uncertain"), z.literal("submitted")]),
|
|
527
720
|
'createdAt': z.number(),
|
|
528
721
|
'startedAt': z.number().optional(),
|
|
529
722
|
'settledAt': z.number().optional(),
|
|
@@ -557,8 +750,11 @@ const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_ro
|
|
|
557
750
|
'id': z.string().readonly(),
|
|
558
751
|
'dispatchSeq': z.number().readonly(),
|
|
559
752
|
'memberId': z.string().readonly(),
|
|
560
|
-
'status': z.union([z.literal("
|
|
561
|
-
'origin': z.union([z.literal("human"), z.literal("coordinator"), z.literal("report"), z.literal("relay")]).readonly(),
|
|
753
|
+
'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("done"), z.literal("queued"), z.literal("uncertain"), z.literal("held")]).readonly().describe('`held`: a report the gate keeps for a later round (never run on its own).'),
|
|
754
|
+
'origin': z.union([z.literal("human"), z.literal("coordinator"), z.literal("member"), z.literal("report"), z.literal("relay"), z.literal("help")]).readonly(),
|
|
755
|
+
'replyTo': z.string().readonly().optional().describe('The member id this delivery\'s outcome is reported to, when any.'),
|
|
756
|
+
'from': z.string().readonly().optional().describe('The sending member\'s id (coordinator/member origins).'),
|
|
757
|
+
'kind': z.union([z.literal("task"), z.literal("notify")]).readonly().optional().describe('`task` or `notify` (member sends); absent on human and legacy dispatches.'),
|
|
562
758
|
'text': z.string().readonly(),
|
|
563
759
|
'error': z.string().readonly().optional(),
|
|
564
760
|
'plan': z.union([z.undefined(), z.object({
|
|
@@ -566,6 +762,13 @@ const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_ro
|
|
|
566
762
|
'taskId': z.string().readonly().optional(),
|
|
567
763
|
'attemptId': z.string().readonly().optional(),
|
|
568
764
|
})]).readonly().optional(),
|
|
765
|
+
'task': z.string().readonly().optional().describe('The task this delivery belongs to (see RoomDispatchEvent.task).'),
|
|
766
|
+
'parent': z.string().readonly().optional().describe('The sender\'s own delivery this was sent from (the task tree\'s parent).'),
|
|
767
|
+
'queuedAt': z.number().readonly().describe('Epoch ms: dispatched, admitted (first running edge), settled.'),
|
|
768
|
+
'startedAt': z.number().readonly().optional(),
|
|
769
|
+
'endedAt': z.number().readonly().optional(),
|
|
770
|
+
'heldAt': z.number().readonly().optional().describe('Epoch ms the report gate held this report, and released it.'),
|
|
771
|
+
'releasedAt': z.number().readonly().optional(),
|
|
569
772
|
})).readonly().optional(),
|
|
570
773
|
'coordinator': z.object({
|
|
571
774
|
'version': z.literal(1).readonly(),
|
|
@@ -577,13 +780,16 @@ const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_ro
|
|
|
577
780
|
'members': z.array(z.object({
|
|
578
781
|
'id': z.string().readonly().optional(),
|
|
579
782
|
'name': z.string().readonly(),
|
|
580
|
-
'kind': z.union([z.literal("main-agent"), z.literal("cli")]).readonly(),
|
|
783
|
+
'kind': z.union([z.literal("native"), z.literal("main-agent"), z.literal("cli")]).readonly(),
|
|
581
784
|
'provider': z.string().readonly().optional(),
|
|
582
785
|
'instructions': z.string().readonly().optional(),
|
|
786
|
+
'role': z.string().readonly().optional().describe('Short public role shown to the other members (see {@link RoomMemberAddedEvent.role}).'),
|
|
787
|
+
'preset': z.string().readonly().optional().describe('Native members: the host agent preset (see {@link RoomMemberAddedEvent.preset}).'),
|
|
583
788
|
'invitedBy': z.union([z.literal("agent"), z.literal("human")]).readonly(),
|
|
584
|
-
'cwd': z.string().readonly().optional(),
|
|
585
|
-
'model': z.string().readonly().optional(),
|
|
586
|
-
'
|
|
789
|
+
'cwd': z.string().readonly().optional().describe('Member-level working directory (roster record; not yet passed to the facade).'),
|
|
790
|
+
'model': z.string().readonly().optional().describe('The member\'s intended model (roster record; the facade start\'s `model` option on the first dispatch).'),
|
|
791
|
+
'effort': z.string().readonly().optional().describe('The member\'s intended reasoning effort (roster record; the facade start\'s `effort` option on the first dispatch).'),
|
|
792
|
+
'childSessionId': z.string().readonly().optional(),
|
|
587
793
|
})).readonly(),
|
|
588
794
|
'relays': z.array(z.object({
|
|
589
795
|
'id': z.string().readonly(),
|
|
@@ -592,25 +798,129 @@ const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_ro
|
|
|
592
798
|
'content': z.string().readonly(),
|
|
593
799
|
'provenance': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => RoomJsonValueRemoteCodec$schema())), z.record(z.string(), z.lazy(() => RoomJsonValueRemoteCodec$schema()))])).readonly().optional(),
|
|
594
800
|
'state': z.union([z.literal("pending"), z.literal("confirmed"), z.literal("dismissed"), z.literal("sent")]).readonly(),
|
|
801
|
+
'reason': z.union([z.literal("paused"), z.literal("confirm"), z.literal("hop-limit")]).readonly().optional(),
|
|
802
|
+
'intent': z.object({
|
|
803
|
+
'origin': z.union([z.literal("coordinator"), z.literal("member"), z.literal("report"), z.literal("help")]).readonly(),
|
|
804
|
+
'help': z.object({
|
|
805
|
+
'id': z.string().readonly().describe('The thread id in the asking room.'),
|
|
806
|
+
'room': z.string().readonly(),
|
|
807
|
+
'roomTitle': z.string().readonly(),
|
|
808
|
+
'from': z.string().readonly().describe('The asking member\'s name.'),
|
|
809
|
+
}).readonly().optional().describe('A help request from another room (origin `help`): its final reply goes back there.'),
|
|
810
|
+
'from': z.string().readonly().optional(),
|
|
811
|
+
'kind': z.union([z.literal("task"), z.literal("notify")]).readonly().optional(),
|
|
812
|
+
'hop': z.number().readonly(),
|
|
813
|
+
'inReplyTo': z.number().readonly().optional(),
|
|
814
|
+
'replyTo': z.string().readonly().optional(),
|
|
815
|
+
'reportFor': z.string().readonly().optional(),
|
|
816
|
+
'plan': z.object({
|
|
817
|
+
'goalId': z.string().readonly(),
|
|
818
|
+
}).readonly().optional(),
|
|
819
|
+
'note': z.string().readonly().optional(),
|
|
820
|
+
'task': z.string().readonly().optional(),
|
|
821
|
+
'parent': z.string().readonly().optional(),
|
|
822
|
+
}).readonly().optional(),
|
|
823
|
+
})).readonly(),
|
|
824
|
+
'approvals': z.array(z.object({
|
|
825
|
+
'id': z.string().readonly(),
|
|
826
|
+
'member': z.string().readonly(),
|
|
827
|
+
'tool': z.string().readonly(),
|
|
828
|
+
'reason': z.string().readonly().optional(),
|
|
829
|
+
'time': z.number().readonly(),
|
|
830
|
+
})).readonly().optional().describe('Members\' tool approvals still waiting for the human.'),
|
|
831
|
+
'questions': z.array(z.object({
|
|
832
|
+
'id': z.string().readonly(),
|
|
833
|
+
'member': z.string().readonly(),
|
|
834
|
+
'questions': z.array(z.object({
|
|
835
|
+
'id': z.string().readonly(),
|
|
836
|
+
'question': z.string().readonly(),
|
|
837
|
+
'header': z.string().readonly().optional(),
|
|
838
|
+
'options': z.array(z.object({
|
|
839
|
+
'label': z.string().readonly(),
|
|
840
|
+
'description': z.string().readonly().optional(),
|
|
841
|
+
})).readonly().optional(),
|
|
842
|
+
'multiSelect': z.boolean().readonly().optional(),
|
|
595
843
|
})).readonly(),
|
|
844
|
+
'time': z.number().readonly(),
|
|
845
|
+
})).readonly().optional().describe('Members\' questions still waiting for the human.'),
|
|
596
846
|
'tasks': z.array(z.object({
|
|
597
|
-
'deliveryId': z.string().readonly().optional(),
|
|
847
|
+
'deliveryId': z.string().readonly().optional().describe('Only this delivery may automatically settle this legacy chat task row.'),
|
|
598
848
|
'id': z.string().readonly(),
|
|
599
849
|
'member': z.string().readonly(),
|
|
600
850
|
'title': z.string().readonly(),
|
|
601
|
-
'status': z.union([z.literal("
|
|
602
|
-
'blockedBy': z.string().readonly().optional(),
|
|
603
|
-
'updatedAt': z.number().readonly(),
|
|
851
|
+
'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("pending"), z.literal("in_progress"), z.literal("done")]).readonly(),
|
|
852
|
+
'blockedBy': z.string().readonly().optional().describe('The member this task waits on (display only; never dispatches anything).'),
|
|
853
|
+
'updatedAt': z.number().readonly().describe('Epoch ms of the task\'s latest journal event (add or status update): the goal card\'s "latest advance" ordering and the row\'s relative time.'),
|
|
604
854
|
})).readonly(),
|
|
605
855
|
'runs': z.array(z.object({
|
|
606
|
-
'runId': z.string().readonly().optional(),
|
|
856
|
+
'runId': z.string().readonly().optional().describe('Stable execution identity; legacy journals use startedAt.'),
|
|
607
857
|
'member': z.string().readonly(),
|
|
608
|
-
'state': z.union([z.literal("
|
|
858
|
+
'state': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("done")]).readonly(),
|
|
609
859
|
'startedAt': z.number().readonly(),
|
|
610
860
|
'elapsedMs': z.number().readonly().optional(),
|
|
861
|
+
'error': z.string().readonly().optional().describe('Why the run failed (failed edges only), when the edge carried one.'),
|
|
862
|
+
})).readonly(),
|
|
863
|
+
'goal': z.string().readonly().optional().describe('The current goal text (the latest `room/goal` event), undefined when unset.'),
|
|
864
|
+
'latestReplySeq': z.number().readonly().optional().describe('Seq of the newest member speech addressed to the room (no `reportedTo`): the reply the human is reading, shown unfolded.'),
|
|
865
|
+
'latestSpeechSeq': z.number().readonly().optional().describe('Seq of the newest member speech of any kind: its action row stays shown, older rows reveal on hover.'),
|
|
866
|
+
'settings': z.object({
|
|
867
|
+
'memberMessages': z.union([z.literal("free"), z.literal("confirm")]).readonly(),
|
|
868
|
+
'hopLimit': z.number().readonly(),
|
|
869
|
+
'paused': z.boolean().readonly(),
|
|
870
|
+
'reportTiming': z.union([z.literal("judge"), z.literal("each")]).readonly(),
|
|
871
|
+
'autoTaskFiling': z.boolean().readonly(),
|
|
872
|
+
'reportThreshold': z.number().readonly(),
|
|
873
|
+
'reportWaitMinutes': z.number().readonly(),
|
|
874
|
+
'helpReminderMinutes': z.number().readonly(),
|
|
875
|
+
}).readonly().optional().describe('Collaboration settings (defaults when never set).'),
|
|
876
|
+
'jobs': z.array(z.object({
|
|
877
|
+
'id': z.string().readonly().describe('Root message id (or the root human dispatch\'s id).'),
|
|
878
|
+
'number': z.number().readonly().describe('1-based ordinal in the room, for 「任务 N」 and the coordinator\'s `task` argument.'),
|
|
879
|
+
'title': z.string().readonly(),
|
|
880
|
+
'messages': z.array(z.object({
|
|
881
|
+
'id': z.string().readonly(),
|
|
882
|
+
'time': z.number().readonly(),
|
|
883
|
+
'text': z.string().readonly(),
|
|
884
|
+
'by': z.union([z.literal("model"), z.literal("human"), z.literal("coordinator")]).readonly().optional(),
|
|
885
|
+
'probability': z.number().readonly().optional(),
|
|
886
|
+
})).readonly(),
|
|
887
|
+
'status': z.union([z.literal("running"), z.literal("stopped"), z.literal("done"), z.literal("attention")]).readonly(),
|
|
888
|
+
'startedAt': z.number().readonly(),
|
|
889
|
+
'endedAt': z.number().readonly().optional().describe('Last settlement, when nothing is open any more.'),
|
|
890
|
+
'deliveries': z.array(z.string()).readonly().describe('Delivery ids, in dispatch order.'),
|
|
891
|
+
'members': z.array(z.string()).readonly().describe('Member ids that took part.'),
|
|
892
|
+
'goalId': z.string().readonly().optional().describe('The formal goal (room_plan) this task\'s work belongs to, when any.'),
|
|
893
|
+
})).readonly().optional().describe('Tasks, newest first (absent in rooms that never dispatched work).'),
|
|
894
|
+
'helps': z.array(z.object({
|
|
895
|
+
'state': z.union([z.literal("failed"), z.literal("running"), z.literal("queued"), z.literal("asking"), z.literal("replied")]).readonly(),
|
|
896
|
+
'since': z.number().readonly().describe('When the thread entered its current state (epoch ms).'),
|
|
611
897
|
'error': z.string().readonly().optional(),
|
|
898
|
+
'messages': z.array(z.object({
|
|
899
|
+
'help': z.string().readonly(),
|
|
900
|
+
'kind': z.union([z.literal("question"), z.literal("reply"), z.literal("message")]).readonly().describe('`question`: the helper asks the asker. `reply`: the helper\'s answer (its final reply plus a short handoff). `message`: the asker writes again (an answer to a question, or a follow-up).'),
|
|
901
|
+
'text': z.string().readonly(),
|
|
902
|
+
'handoff': z.string().readonly().optional().describe('The helper\'s short handoff note on a reply.'),
|
|
903
|
+
'fallback': z.literal(true).readonly().optional().describe('A reply taken from the helper\'s last answer because it never called the reply tool.'),
|
|
904
|
+
'time': z.number().readonly(),
|
|
612
905
|
})).readonly(),
|
|
613
|
-
'
|
|
906
|
+
'time': z.number().readonly(),
|
|
907
|
+
'id': z.string().readonly(),
|
|
908
|
+
'from': z.string().readonly().describe('The asking member\'s id and name.'),
|
|
909
|
+
'fromName': z.string().readonly(),
|
|
910
|
+
'target': z.object({
|
|
911
|
+
'sessionId': z.string().readonly(),
|
|
912
|
+
'title': z.string().readonly(),
|
|
913
|
+
'room': z.literal(true).readonly().optional(),
|
|
914
|
+
'member': z.string().readonly().optional(),
|
|
915
|
+
}).readonly().describe('The helper\'s session. A room target (`room`) routes through that room: to the named `member`, else to its coordinator.'),
|
|
916
|
+
'text': z.string().readonly().describe('The request as the helper reads it.'),
|
|
917
|
+
})).readonly().optional().describe('Cross-session help threads this room opened (absent when none).'),
|
|
918
|
+
'linked': z.array(z.object({
|
|
919
|
+
'sessionId': z.string().readonly(),
|
|
920
|
+
'title': z.string().readonly(),
|
|
921
|
+
'time': z.number().readonly(),
|
|
922
|
+
})).readonly().optional().describe('Outside sessions kept on the member list (absent when none).'),
|
|
923
|
+
'helpNudgesDismissed': z.array(z.string()).readonly().optional().describe('Sessions whose 加入房间成员 hint was dismissed (absent when none).'),
|
|
614
924
|
}).readonly(),
|
|
615
925
|
}), z.object({
|
|
616
926
|
'ok': z.literal(false).readonly(),
|
|
@@ -649,6 +959,18 @@ const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_ro
|
|
|
649
959
|
'code': z.literal("member-not-found").readonly(),
|
|
650
960
|
}), z.object({
|
|
651
961
|
'code': z.literal("empty-text").readonly(),
|
|
962
|
+
}), z.object({
|
|
963
|
+
'code': z.literal("role-too-long").readonly(),
|
|
964
|
+
}), z.object({
|
|
965
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
966
|
+
}), z.object({
|
|
967
|
+
'code': z.literal("self-message").readonly(),
|
|
968
|
+
}), z.object({
|
|
969
|
+
'code': z.literal("unknown-task").readonly(),
|
|
970
|
+
}), z.object({
|
|
971
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
972
|
+
'preset': z.string().readonly(),
|
|
973
|
+
'available': z.array(z.string()).readonly(),
|
|
652
974
|
}), z.object({
|
|
653
975
|
'code': z.literal("nothing-to-update").readonly(),
|
|
654
976
|
}), z.object({
|
|
@@ -666,6 +988,10 @@ const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_ro
|
|
|
666
988
|
'code': z.literal("relay-not-found").readonly(),
|
|
667
989
|
}), z.object({
|
|
668
990
|
'code': z.literal("relay-not-pending").readonly(),
|
|
991
|
+
}), z.object({
|
|
992
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
993
|
+
}), z.object({
|
|
994
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
669
995
|
}), z.object({
|
|
670
996
|
'code': z.literal("main-member").readonly(),
|
|
671
997
|
}), z.object({
|
|
@@ -679,20 +1005,27 @@ const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_ro
|
|
|
679
1005
|
})]))
|
|
680
1006
|
let _khorsheed_dsh_room_room_invite_parameter_0$schema$value
|
|
681
1007
|
const _khorsheed_dsh_room_room_invite_parameter_0$schema = () => (_khorsheed_dsh_room_room_invite_parameter_0$schema$value ??= z.object({
|
|
682
|
-
'sessionId': z.
|
|
683
|
-
'
|
|
684
|
-
'
|
|
685
|
-
'
|
|
686
|
-
'
|
|
687
|
-
'
|
|
688
|
-
'
|
|
1008
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
1009
|
+
'kind': z.union([z.literal("native"), z.literal("cli")]).readonly().optional().describe('`cli` (default): an external CLI through the local-agent family. `native`: a DSH child agent in this host process, composing `preset`.'),
|
|
1010
|
+
'preset': z.string().readonly().optional().describe('The member\'s mode: the host agent preset id. A native member composes it (omitted = the host default); a CLI member reaches its plugin tools through the bridge (omitted = no mode).'),
|
|
1011
|
+
'inheritPreset': z.boolean().readonly().optional().describe('With no `preset`: take the room session\'s own mode (the coordinator\'s invite default).'),
|
|
1012
|
+
'provider': z.string().readonly().describe('CLI provider id (non-blank).'),
|
|
1013
|
+
'name': z.string().readonly().describe('Addressing/display name: unique in the room, no whitespace, no `@`.'),
|
|
1014
|
+
'instructions': z.string().readonly().optional().describe('Role instructions, prepended to the member\'s first dispatch.'),
|
|
1015
|
+
'role': z.string().readonly().optional().describe('Short public role (≤ 30 chars); blank/omitted = none.'),
|
|
1016
|
+
'cwd': z.string().readonly().optional().describe('Member-level working directory (empty/omitted = inherits the room session\'s cwd). Recorded on the roster; not yet passed to the delegation facade (family need R2 pending).'),
|
|
1017
|
+
'firstTask': z.string().readonly().optional().describe('Optional first task, dispatched to the member as soon as it joins.'),
|
|
1018
|
+
'note': z.string().readonly().optional().describe('What the inviter waits for when the first task reports (see RoomDispatchEvent.note).'),
|
|
1019
|
+
'model': z.string().readonly().optional().describe('The delegation\'s model (blank/omitted = follow the harness default). Applies to local-agent harness providers only: it lands as the facade `start` call\'s `model` option, bound at spawn for exec and live alike.'),
|
|
1020
|
+
'effort': z.string().readonly().optional().describe('The delegation\'s reasoning effort (blank/omitted = follow the harness default): the facade `start` call\'s `effort` option, bound at spawn alongside the model.'),
|
|
689
1021
|
}))
|
|
690
1022
|
let _khorsheed_dsh_room_room_invite_result$schema$value
|
|
691
1023
|
const _khorsheed_dsh_room_room_invite_result$schema = () => (_khorsheed_dsh_room_room_invite_result$schema$value ??= z.union([z.object({
|
|
692
1024
|
'ok': z.literal(true).readonly(),
|
|
693
1025
|
'value': z.object({
|
|
694
|
-
'name': z.string().readonly(),
|
|
695
|
-
'pendingFirstTask': z.boolean().readonly(),
|
|
1026
|
+
'name': z.string().readonly().describe('The accepted member name.'),
|
|
1027
|
+
'pendingFirstTask': z.boolean().readonly().describe('True when a first task was supplied and dispatched with the invitation.'),
|
|
1028
|
+
'preset': z.string().readonly().optional().describe('The member\'s mode (preset id), when it has one.'),
|
|
696
1029
|
}).readonly(),
|
|
697
1030
|
}), z.object({
|
|
698
1031
|
'ok': z.literal(false).readonly(),
|
|
@@ -731,6 +1064,18 @@ const _khorsheed_dsh_room_room_invite_result$schema = () => (_khorsheed_dsh_room
|
|
|
731
1064
|
'code': z.literal("member-not-found").readonly(),
|
|
732
1065
|
}), z.object({
|
|
733
1066
|
'code': z.literal("empty-text").readonly(),
|
|
1067
|
+
}), z.object({
|
|
1068
|
+
'code': z.literal("role-too-long").readonly(),
|
|
1069
|
+
}), z.object({
|
|
1070
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
1071
|
+
}), z.object({
|
|
1072
|
+
'code': z.literal("self-message").readonly(),
|
|
1073
|
+
}), z.object({
|
|
1074
|
+
'code': z.literal("unknown-task").readonly(),
|
|
1075
|
+
}), z.object({
|
|
1076
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
1077
|
+
'preset': z.string().readonly(),
|
|
1078
|
+
'available': z.array(z.string()).readonly(),
|
|
734
1079
|
}), z.object({
|
|
735
1080
|
'code': z.literal("nothing-to-update").readonly(),
|
|
736
1081
|
}), z.object({
|
|
@@ -748,6 +1093,10 @@ const _khorsheed_dsh_room_room_invite_result$schema = () => (_khorsheed_dsh_room
|
|
|
748
1093
|
'code': z.literal("relay-not-found").readonly(),
|
|
749
1094
|
}), z.object({
|
|
750
1095
|
'code': z.literal("relay-not-pending").readonly(),
|
|
1096
|
+
}), z.object({
|
|
1097
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
1098
|
+
}), z.object({
|
|
1099
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
751
1100
|
}), z.object({
|
|
752
1101
|
'code': z.literal("main-member").readonly(),
|
|
753
1102
|
}), z.object({
|
|
@@ -761,51 +1110,19 @@ const _khorsheed_dsh_room_room_invite_result$schema = () => (_khorsheed_dsh_room
|
|
|
761
1110
|
})]))
|
|
762
1111
|
let _khorsheed_dsh_room_room_isRoom_parameter_0$schema$value
|
|
763
1112
|
const _khorsheed_dsh_room_room_isRoom_parameter_0$schema = () => (_khorsheed_dsh_room_room_isRoom_parameter_0$schema$value ??= z.object({
|
|
764
|
-
'sessionId': z.
|
|
1113
|
+
'sessionId': z.string().readonly().describe('Session to probe.'),
|
|
765
1114
|
}))
|
|
766
1115
|
let _khorsheed_dsh_room_room_isRoom_result$schema$value
|
|
767
1116
|
const _khorsheed_dsh_room_room_isRoom_result$schema = () => (_khorsheed_dsh_room_room_isRoom_result$schema$value ??= z.boolean())
|
|
768
|
-
let
|
|
769
|
-
const
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
'
|
|
773
|
-
'providers': z.array(z.object({
|
|
774
|
-
'provider': z.string().readonly(),
|
|
775
|
-
'displayName': z.string().readonly(),
|
|
776
|
-
'harness': z.string().readonly().optional(),
|
|
777
|
-
'authenticated': z.boolean().readonly(),
|
|
778
|
-
})).readonly(),
|
|
779
|
-
}))
|
|
780
|
-
let _khorsheed_dsh_room_room_planCommand_parameter_0$schema$value
|
|
781
|
-
const _khorsheed_dsh_room_room_planCommand_parameter_0$schema = () => (_khorsheed_dsh_room_room_planCommand_parameter_0$schema$value ??= z.object({
|
|
782
|
-
'sessionId': z.intersection(z.string(), z.unknown()),
|
|
783
|
-
'command': z.string(),
|
|
784
|
-
}))
|
|
785
|
-
let _khorsheed_dsh_room_room_planCommand_result$schema$value
|
|
786
|
-
const _khorsheed_dsh_room_room_planCommand_result$schema = () => (_khorsheed_dsh_room_room_planCommand_result$schema$value ??= z.union([z.object({
|
|
787
|
-
'ok': z.literal(true),
|
|
788
|
-
}), z.object({
|
|
789
|
-
'ok': z.literal(false),
|
|
790
|
-
'message': z.string(),
|
|
791
|
-
})]))
|
|
792
|
-
let _khorsheed_dsh_room_room_postMessage_parameter_0$schema$value
|
|
793
|
-
const _khorsheed_dsh_room_room_postMessage_parameter_0$schema = () => (_khorsheed_dsh_room_room_postMessage_parameter_0$schema$value ??= z.object({
|
|
794
|
-
'requestId': z.string().readonly().optional(),
|
|
795
|
-
'sessionId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
796
|
-
'text': z.string().readonly(),
|
|
797
|
-
'targets': z.array(z.string()).readonly().optional(),
|
|
1117
|
+
let _khorsheed_dsh_room_room_linkSession_parameter_0$schema$value
|
|
1118
|
+
const _khorsheed_dsh_room_room_linkSession_parameter_0$schema = () => (_khorsheed_dsh_room_room_linkSession_parameter_0$schema$value ??= z.object({
|
|
1119
|
+
'sessionId': z.string().readonly(),
|
|
1120
|
+
'target': z.string().readonly().describe('The outside session.'),
|
|
1121
|
+
'title': z.string().readonly().optional().describe('Its title (link only).'),
|
|
798
1122
|
}))
|
|
799
|
-
let
|
|
800
|
-
const
|
|
1123
|
+
let _khorsheed_dsh_room_room_linkSession_result$schema$value
|
|
1124
|
+
const _khorsheed_dsh_room_room_linkSession_result$schema = () => (_khorsheed_dsh_room_room_linkSession_result$schema$value ??= z.union([z.object({
|
|
801
1125
|
'ok': z.literal(true).readonly(),
|
|
802
|
-
'value': z.object({
|
|
803
|
-
'parsed': z.object({
|
|
804
|
-
'targets': z.array(z.string()).readonly(),
|
|
805
|
-
'text': z.string().readonly(),
|
|
806
|
-
}).readonly(),
|
|
807
|
-
'seq': z.number().readonly(),
|
|
808
|
-
}).readonly(),
|
|
809
1126
|
}), z.object({
|
|
810
1127
|
'ok': z.literal(false).readonly(),
|
|
811
1128
|
'error': z.union([z.object({
|
|
@@ -843,6 +1160,18 @@ const _khorsheed_dsh_room_room_postMessage_result$schema = () => (_khorsheed_dsh
|
|
|
843
1160
|
'code': z.literal("member-not-found").readonly(),
|
|
844
1161
|
}), z.object({
|
|
845
1162
|
'code': z.literal("empty-text").readonly(),
|
|
1163
|
+
}), z.object({
|
|
1164
|
+
'code': z.literal("role-too-long").readonly(),
|
|
1165
|
+
}), z.object({
|
|
1166
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
1167
|
+
}), z.object({
|
|
1168
|
+
'code': z.literal("self-message").readonly(),
|
|
1169
|
+
}), z.object({
|
|
1170
|
+
'code': z.literal("unknown-task").readonly(),
|
|
1171
|
+
}), z.object({
|
|
1172
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
1173
|
+
'preset': z.string().readonly(),
|
|
1174
|
+
'available': z.array(z.string()).readonly(),
|
|
846
1175
|
}), z.object({
|
|
847
1176
|
'code': z.literal("nothing-to-update").readonly(),
|
|
848
1177
|
}), z.object({
|
|
@@ -860,6 +1189,10 @@ const _khorsheed_dsh_room_room_postMessage_result$schema = () => (_khorsheed_dsh
|
|
|
860
1189
|
'code': z.literal("relay-not-found").readonly(),
|
|
861
1190
|
}), z.object({
|
|
862
1191
|
'code': z.literal("relay-not-pending").readonly(),
|
|
1192
|
+
}), z.object({
|
|
1193
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
1194
|
+
}), z.object({
|
|
1195
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
863
1196
|
}), z.object({
|
|
864
1197
|
'code': z.literal("main-member").readonly(),
|
|
865
1198
|
}), z.object({
|
|
@@ -871,19 +1204,152 @@ const _khorsheed_dsh_room_room_postMessage_result$schema = () => (_khorsheed_dsh
|
|
|
871
1204
|
'message': z.string().readonly(),
|
|
872
1205
|
})]).readonly(),
|
|
873
1206
|
})]))
|
|
874
|
-
let
|
|
875
|
-
const
|
|
876
|
-
'sessionId': z.
|
|
877
|
-
'name': z.string().readonly(),
|
|
1207
|
+
let _khorsheed_dsh_room_room_listProviders_parameter_0$schema$value
|
|
1208
|
+
const _khorsheed_dsh_room_room_listProviders_parameter_0$schema = () => (_khorsheed_dsh_room_room_listProviders_parameter_0$schema$value ??= z.object({
|
|
1209
|
+
'sessionId': z.string().readonly().optional().describe('The session the invite is for: the result then carries its mode (`sessionPreset`).'),
|
|
878
1210
|
}))
|
|
879
|
-
let
|
|
880
|
-
const
|
|
881
|
-
'
|
|
882
|
-
'
|
|
883
|
-
'
|
|
884
|
-
|
|
1211
|
+
let _khorsheed_dsh_room_room_listProviders_result$schema$value
|
|
1212
|
+
const _khorsheed_dsh_room_room_listProviders_result$schema = () => (_khorsheed_dsh_room_room_listProviders_result$schema$value ??= z.object({
|
|
1213
|
+
'localAgentAvailable': z.boolean().readonly().describe('False when the local-agent delegation facade is absent (CLI members undispatchable).'),
|
|
1214
|
+
'providers': z.array(z.object({
|
|
1215
|
+
'provider': z.string().readonly().describe('The provider id invite/dispatch uses (the harness\'s delegationProvider).'),
|
|
1216
|
+
'displayName': z.string().readonly(),
|
|
1217
|
+
'harness': z.string().readonly().optional().describe('The roster harness name — the lookup key for the localAgentGateway `harnessModel` read (the invite dialog\'s model picker). Absent only on a pre-model-broker family core; the dialog then serves a plain text input.'),
|
|
1218
|
+
'authenticated': z.boolean().readonly().describe('Whether the harness\'s scoped home holds usable credentials.'),
|
|
1219
|
+
})).readonly(),
|
|
1220
|
+
'presets': z.array(z.object({
|
|
1221
|
+
'id': z.string().readonly(),
|
|
1222
|
+
'name': z.string().readonly().optional(),
|
|
1223
|
+
'description': z.string().readonly().optional(),
|
|
1224
|
+
'isDefault': z.boolean().readonly(),
|
|
1225
|
+
'broken': z.string().readonly().optional().describe('Why the preset cannot be composed right now.'),
|
|
1226
|
+
})).readonly().optional().describe('The host\'s agent presets a native DSH member may compose; absent when the composition mounts no preset registry (native members then run the plain composition).'),
|
|
1227
|
+
'sessionPreset': z.string().readonly().optional().describe('The requested session\'s own mode (preset id), when known: the dialog\'s default mode.'),
|
|
1228
|
+
}))
|
|
1229
|
+
let _khorsheed_dsh_room_room_planCommand_parameter_0$schema$value
|
|
1230
|
+
const _khorsheed_dsh_room_room_planCommand_parameter_0$schema = () => (_khorsheed_dsh_room_room_planCommand_parameter_0$schema$value ??= z.object({
|
|
1231
|
+
'sessionId': z.string(),
|
|
1232
|
+
'command': z.string(),
|
|
1233
|
+
}))
|
|
1234
|
+
let _khorsheed_dsh_room_room_planCommand_result$schema$value
|
|
1235
|
+
const _khorsheed_dsh_room_room_planCommand_result$schema = () => (_khorsheed_dsh_room_room_planCommand_result$schema$value ??= z.union([z.object({
|
|
1236
|
+
'ok': z.literal(true),
|
|
885
1237
|
}), z.object({
|
|
886
|
-
'ok': z.literal(false)
|
|
1238
|
+
'ok': z.literal(false),
|
|
1239
|
+
'message': z.string(),
|
|
1240
|
+
})]))
|
|
1241
|
+
let _khorsheed_dsh_room_room_postMessage_parameter_0$schema$value
|
|
1242
|
+
const _khorsheed_dsh_room_room_postMessage_parameter_0$schema = () => (_khorsheed_dsh_room_room_postMessage_parameter_0$schema$value ??= z.object({
|
|
1243
|
+
'requestId': z.string().readonly().optional(),
|
|
1244
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
1245
|
+
'text': z.string().readonly().describe('Raw composer text: leading `@name` tokens address members.'),
|
|
1246
|
+
'targets': z.array(z.string()).readonly().optional().describe('Menu-picked addressees (the room composer\'s mention menu records a pick as explicit addressing even when the `@name` sits mid-sentence). Unioned with the parsed leading tokens and validated against the roster the same way; the text itself is dispatched verbatim either way.'),
|
|
1247
|
+
'task': z.string().readonly().optional().describe('The composer\'s task tag: `new` or a task root id (see RoomSetTaskHintRequest).'),
|
|
1248
|
+
}))
|
|
1249
|
+
let _khorsheed_dsh_room_room_postMessage_result$schema$value
|
|
1250
|
+
const _khorsheed_dsh_room_room_postMessage_result$schema = () => (_khorsheed_dsh_room_room_postMessage_result$schema$value ??= z.union([z.object({
|
|
1251
|
+
'ok': z.literal(true).readonly(),
|
|
1252
|
+
'value': z.object({
|
|
1253
|
+
'parsed': z.object({
|
|
1254
|
+
'targets': z.array(z.string()).readonly().describe('Addressed members (never empty — a bare message is a `no-targets` rejection).'),
|
|
1255
|
+
'text': z.string().readonly().describe('The message body with the leading'),
|
|
1256
|
+
}).readonly(),
|
|
1257
|
+
'seq': z.number().readonly().describe('Seq of the appended journal event.'),
|
|
1258
|
+
}).readonly(),
|
|
1259
|
+
}), z.object({
|
|
1260
|
+
'ok': z.literal(false).readonly(),
|
|
1261
|
+
'error': z.union([z.object({
|
|
1262
|
+
'code': z.literal("request-conflict").readonly(),
|
|
1263
|
+
}), z.object({
|
|
1264
|
+
'code': z.literal("member-cwd-bound").readonly(),
|
|
1265
|
+
}), z.object({
|
|
1266
|
+
'code': z.literal("not-coordinator").readonly(),
|
|
1267
|
+
}), z.object({
|
|
1268
|
+
'code': z.literal("delivery-not-uncertain").readonly(),
|
|
1269
|
+
}), z.object({
|
|
1270
|
+
'code': z.literal("plan-reconciliation-required").readonly(),
|
|
1271
|
+
}), z.object({
|
|
1272
|
+
'code': z.literal("coordinator-busy").readonly(),
|
|
1273
|
+
}), z.object({
|
|
1274
|
+
'code': z.literal("coordinator-not-ready").readonly(),
|
|
1275
|
+
'message': z.string().readonly(),
|
|
1276
|
+
}), z.object({
|
|
1277
|
+
'code': z.literal("coordinator-conflict").readonly(),
|
|
1278
|
+
}), z.object({
|
|
1279
|
+
'code': z.literal("active-coordinator").readonly(),
|
|
1280
|
+
}), z.object({
|
|
1281
|
+
'code': z.literal("configuration-owned-by-core").readonly(),
|
|
1282
|
+
}), z.object({
|
|
1283
|
+
'code': z.literal("session-not-found").readonly(),
|
|
1284
|
+
}), z.object({
|
|
1285
|
+
'code': z.literal("not-a-room").readonly(),
|
|
1286
|
+
}), z.object({
|
|
1287
|
+
'code': z.literal("invalid-name").readonly(),
|
|
1288
|
+
}), z.object({
|
|
1289
|
+
'code': z.literal("duplicate-name").readonly(),
|
|
1290
|
+
}), z.object({
|
|
1291
|
+
'code': z.literal("empty-provider").readonly(),
|
|
1292
|
+
}), z.object({
|
|
1293
|
+
'code': z.literal("member-not-found").readonly(),
|
|
1294
|
+
}), z.object({
|
|
1295
|
+
'code': z.literal("empty-text").readonly(),
|
|
1296
|
+
}), z.object({
|
|
1297
|
+
'code': z.literal("role-too-long").readonly(),
|
|
1298
|
+
}), z.object({
|
|
1299
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
1300
|
+
}), z.object({
|
|
1301
|
+
'code': z.literal("self-message").readonly(),
|
|
1302
|
+
}), z.object({
|
|
1303
|
+
'code': z.literal("unknown-task").readonly(),
|
|
1304
|
+
}), z.object({
|
|
1305
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
1306
|
+
'preset': z.string().readonly(),
|
|
1307
|
+
'available': z.array(z.string()).readonly(),
|
|
1308
|
+
}), z.object({
|
|
1309
|
+
'code': z.literal("nothing-to-update").readonly(),
|
|
1310
|
+
}), z.object({
|
|
1311
|
+
'code': z.literal("local-agent-unavailable").readonly(),
|
|
1312
|
+
}), z.object({
|
|
1313
|
+
'code': z.literal("unknown-provider").readonly(),
|
|
1314
|
+
'provider': z.string().readonly(),
|
|
1315
|
+
'available': z.array(z.string()).readonly(),
|
|
1316
|
+
}), z.object({
|
|
1317
|
+
'code': z.literal("unknown-targets").readonly(),
|
|
1318
|
+
'names': z.array(z.string()).readonly(),
|
|
1319
|
+
}), z.object({
|
|
1320
|
+
'code': z.literal("no-targets").readonly(),
|
|
1321
|
+
}), z.object({
|
|
1322
|
+
'code': z.literal("relay-not-found").readonly(),
|
|
1323
|
+
}), z.object({
|
|
1324
|
+
'code': z.literal("relay-not-pending").readonly(),
|
|
1325
|
+
}), z.object({
|
|
1326
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
1327
|
+
}), z.object({
|
|
1328
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
1329
|
+
}), z.object({
|
|
1330
|
+
'code': z.literal("main-member").readonly(),
|
|
1331
|
+
}), z.object({
|
|
1332
|
+
'code': z.literal("task-not-found").readonly(),
|
|
1333
|
+
}), z.object({
|
|
1334
|
+
'code': z.literal("task-closed").readonly(),
|
|
1335
|
+
}), z.object({
|
|
1336
|
+
'code': z.literal("resume-failed").readonly(),
|
|
1337
|
+
'message': z.string().readonly(),
|
|
1338
|
+
})]).readonly(),
|
|
1339
|
+
})]))
|
|
1340
|
+
let _khorsheed_dsh_room_room_prepareMember_parameter_0$schema$value
|
|
1341
|
+
const _khorsheed_dsh_room_room_prepareMember_parameter_0$schema = () => (_khorsheed_dsh_room_room_prepareMember_parameter_0$schema$value ??= z.object({
|
|
1342
|
+
'sessionId': z.string().readonly(),
|
|
1343
|
+
'name': z.string().readonly(),
|
|
1344
|
+
}))
|
|
1345
|
+
let _khorsheed_dsh_room_room_prepareMember_result$schema$value
|
|
1346
|
+
const _khorsheed_dsh_room_room_prepareMember_result$schema = () => (_khorsheed_dsh_room_room_prepareMember_result$schema$value ??= z.union([z.object({
|
|
1347
|
+
'ok': z.literal(true).readonly(),
|
|
1348
|
+
'value': z.object({
|
|
1349
|
+
'childSessionId': z.string().readonly(),
|
|
1350
|
+
}).readonly(),
|
|
1351
|
+
}), z.object({
|
|
1352
|
+
'ok': z.literal(false).readonly(),
|
|
887
1353
|
'error': z.union([z.object({
|
|
888
1354
|
'code': z.literal("request-conflict").readonly(),
|
|
889
1355
|
}), z.object({
|
|
@@ -919,6 +1385,18 @@ const _khorsheed_dsh_room_room_prepareMember_result$schema = () => (_khorsheed_d
|
|
|
919
1385
|
'code': z.literal("member-not-found").readonly(),
|
|
920
1386
|
}), z.object({
|
|
921
1387
|
'code': z.literal("empty-text").readonly(),
|
|
1388
|
+
}), z.object({
|
|
1389
|
+
'code': z.literal("role-too-long").readonly(),
|
|
1390
|
+
}), z.object({
|
|
1391
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
1392
|
+
}), z.object({
|
|
1393
|
+
'code': z.literal("self-message").readonly(),
|
|
1394
|
+
}), z.object({
|
|
1395
|
+
'code': z.literal("unknown-task").readonly(),
|
|
1396
|
+
}), z.object({
|
|
1397
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
1398
|
+
'preset': z.string().readonly(),
|
|
1399
|
+
'available': z.array(z.string()).readonly(),
|
|
922
1400
|
}), z.object({
|
|
923
1401
|
'code': z.literal("nothing-to-update").readonly(),
|
|
924
1402
|
}), z.object({
|
|
@@ -936,6 +1414,10 @@ const _khorsheed_dsh_room_room_prepareMember_result$schema = () => (_khorsheed_d
|
|
|
936
1414
|
'code': z.literal("relay-not-found").readonly(),
|
|
937
1415
|
}), z.object({
|
|
938
1416
|
'code': z.literal("relay-not-pending").readonly(),
|
|
1417
|
+
}), z.object({
|
|
1418
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
1419
|
+
}), z.object({
|
|
1420
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
939
1421
|
}), z.object({
|
|
940
1422
|
'code': z.literal("main-member").readonly(),
|
|
941
1423
|
}), z.object({
|
|
@@ -949,9 +1431,9 @@ const _khorsheed_dsh_room_room_prepareMember_result$schema = () => (_khorsheed_d
|
|
|
949
1431
|
})]))
|
|
950
1432
|
let _khorsheed_dsh_room_room_reconcileDelivery_parameter_0$schema$value
|
|
951
1433
|
const _khorsheed_dsh_room_room_reconcileDelivery_parameter_0$schema = () => (_khorsheed_dsh_room_room_reconcileDelivery_parameter_0$schema$value ??= z.object({
|
|
952
|
-
'sessionId': z.
|
|
1434
|
+
'sessionId': z.string().readonly(),
|
|
953
1435
|
'deliveryId': z.string().readonly(),
|
|
954
|
-
'outcome': z.union([z.literal("
|
|
1436
|
+
'outcome': z.union([z.literal("cancelled"), z.literal("done")]).readonly(),
|
|
955
1437
|
'evidence': z.string().readonly(),
|
|
956
1438
|
}))
|
|
957
1439
|
let _khorsheed_dsh_room_room_reconcileDelivery_result$schema$value
|
|
@@ -994,6 +1476,110 @@ const _khorsheed_dsh_room_room_reconcileDelivery_result$schema = () => (_khorshe
|
|
|
994
1476
|
'code': z.literal("member-not-found").readonly(),
|
|
995
1477
|
}), z.object({
|
|
996
1478
|
'code': z.literal("empty-text").readonly(),
|
|
1479
|
+
}), z.object({
|
|
1480
|
+
'code': z.literal("role-too-long").readonly(),
|
|
1481
|
+
}), z.object({
|
|
1482
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
1483
|
+
}), z.object({
|
|
1484
|
+
'code': z.literal("self-message").readonly(),
|
|
1485
|
+
}), z.object({
|
|
1486
|
+
'code': z.literal("unknown-task").readonly(),
|
|
1487
|
+
}), z.object({
|
|
1488
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
1489
|
+
'preset': z.string().readonly(),
|
|
1490
|
+
'available': z.array(z.string()).readonly(),
|
|
1491
|
+
}), z.object({
|
|
1492
|
+
'code': z.literal("nothing-to-update").readonly(),
|
|
1493
|
+
}), z.object({
|
|
1494
|
+
'code': z.literal("local-agent-unavailable").readonly(),
|
|
1495
|
+
}), z.object({
|
|
1496
|
+
'code': z.literal("unknown-provider").readonly(),
|
|
1497
|
+
'provider': z.string().readonly(),
|
|
1498
|
+
'available': z.array(z.string()).readonly(),
|
|
1499
|
+
}), z.object({
|
|
1500
|
+
'code': z.literal("unknown-targets").readonly(),
|
|
1501
|
+
'names': z.array(z.string()).readonly(),
|
|
1502
|
+
}), z.object({
|
|
1503
|
+
'code': z.literal("no-targets").readonly(),
|
|
1504
|
+
}), z.object({
|
|
1505
|
+
'code': z.literal("relay-not-found").readonly(),
|
|
1506
|
+
}), z.object({
|
|
1507
|
+
'code': z.literal("relay-not-pending").readonly(),
|
|
1508
|
+
}), z.object({
|
|
1509
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
1510
|
+
}), z.object({
|
|
1511
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
1512
|
+
}), z.object({
|
|
1513
|
+
'code': z.literal("main-member").readonly(),
|
|
1514
|
+
}), z.object({
|
|
1515
|
+
'code': z.literal("task-not-found").readonly(),
|
|
1516
|
+
}), z.object({
|
|
1517
|
+
'code': z.literal("task-closed").readonly(),
|
|
1518
|
+
}), z.object({
|
|
1519
|
+
'code': z.literal("resume-failed").readonly(),
|
|
1520
|
+
'message': z.string().readonly(),
|
|
1521
|
+
})]).readonly(),
|
|
1522
|
+
})]))
|
|
1523
|
+
let _khorsheed_dsh_room_room_releaseReports_parameter_0$schema$value
|
|
1524
|
+
const _khorsheed_dsh_room_room_releaseReports_parameter_0$schema = () => (_khorsheed_dsh_room_room_releaseReports_parameter_0$schema$value ??= z.object({
|
|
1525
|
+
'sessionId': z.string().readonly(),
|
|
1526
|
+
'name': z.string().readonly(),
|
|
1527
|
+
}))
|
|
1528
|
+
let _khorsheed_dsh_room_room_releaseReports_result$schema$value
|
|
1529
|
+
const _khorsheed_dsh_room_room_releaseReports_result$schema = () => (_khorsheed_dsh_room_room_releaseReports_result$schema$value ??= z.union([z.object({
|
|
1530
|
+
'ok': z.literal(true).readonly(),
|
|
1531
|
+
'value': z.object({
|
|
1532
|
+
'released': z.boolean().readonly(),
|
|
1533
|
+
}).readonly(),
|
|
1534
|
+
}), z.object({
|
|
1535
|
+
'ok': z.literal(false).readonly(),
|
|
1536
|
+
'error': z.union([z.object({
|
|
1537
|
+
'code': z.literal("request-conflict").readonly(),
|
|
1538
|
+
}), z.object({
|
|
1539
|
+
'code': z.literal("member-cwd-bound").readonly(),
|
|
1540
|
+
}), z.object({
|
|
1541
|
+
'code': z.literal("not-coordinator").readonly(),
|
|
1542
|
+
}), z.object({
|
|
1543
|
+
'code': z.literal("delivery-not-uncertain").readonly(),
|
|
1544
|
+
}), z.object({
|
|
1545
|
+
'code': z.literal("plan-reconciliation-required").readonly(),
|
|
1546
|
+
}), z.object({
|
|
1547
|
+
'code': z.literal("coordinator-busy").readonly(),
|
|
1548
|
+
}), z.object({
|
|
1549
|
+
'code': z.literal("coordinator-not-ready").readonly(),
|
|
1550
|
+
'message': z.string().readonly(),
|
|
1551
|
+
}), z.object({
|
|
1552
|
+
'code': z.literal("coordinator-conflict").readonly(),
|
|
1553
|
+
}), z.object({
|
|
1554
|
+
'code': z.literal("active-coordinator").readonly(),
|
|
1555
|
+
}), z.object({
|
|
1556
|
+
'code': z.literal("configuration-owned-by-core").readonly(),
|
|
1557
|
+
}), z.object({
|
|
1558
|
+
'code': z.literal("session-not-found").readonly(),
|
|
1559
|
+
}), z.object({
|
|
1560
|
+
'code': z.literal("not-a-room").readonly(),
|
|
1561
|
+
}), z.object({
|
|
1562
|
+
'code': z.literal("invalid-name").readonly(),
|
|
1563
|
+
}), z.object({
|
|
1564
|
+
'code': z.literal("duplicate-name").readonly(),
|
|
1565
|
+
}), z.object({
|
|
1566
|
+
'code': z.literal("empty-provider").readonly(),
|
|
1567
|
+
}), z.object({
|
|
1568
|
+
'code': z.literal("member-not-found").readonly(),
|
|
1569
|
+
}), z.object({
|
|
1570
|
+
'code': z.literal("empty-text").readonly(),
|
|
1571
|
+
}), z.object({
|
|
1572
|
+
'code': z.literal("role-too-long").readonly(),
|
|
1573
|
+
}), z.object({
|
|
1574
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
1575
|
+
}), z.object({
|
|
1576
|
+
'code': z.literal("self-message").readonly(),
|
|
1577
|
+
}), z.object({
|
|
1578
|
+
'code': z.literal("unknown-task").readonly(),
|
|
1579
|
+
}), z.object({
|
|
1580
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
1581
|
+
'preset': z.string().readonly(),
|
|
1582
|
+
'available': z.array(z.string()).readonly(),
|
|
997
1583
|
}), z.object({
|
|
998
1584
|
'code': z.literal("nothing-to-update").readonly(),
|
|
999
1585
|
}), z.object({
|
|
@@ -1011,6 +1597,10 @@ const _khorsheed_dsh_room_room_reconcileDelivery_result$schema = () => (_khorshe
|
|
|
1011
1597
|
'code': z.literal("relay-not-found").readonly(),
|
|
1012
1598
|
}), z.object({
|
|
1013
1599
|
'code': z.literal("relay-not-pending").readonly(),
|
|
1600
|
+
}), z.object({
|
|
1601
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
1602
|
+
}), z.object({
|
|
1603
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
1014
1604
|
}), z.object({
|
|
1015
1605
|
'code': z.literal("main-member").readonly(),
|
|
1016
1606
|
}), z.object({
|
|
@@ -1024,14 +1614,17 @@ const _khorsheed_dsh_room_room_reconcileDelivery_result$schema = () => (_khorshe
|
|
|
1024
1614
|
})]))
|
|
1025
1615
|
let _khorsheed_dsh_room_room_removeMember_parameter_0$schema$value
|
|
1026
1616
|
const _khorsheed_dsh_room_room_removeMember_parameter_0$schema = () => (_khorsheed_dsh_room_room_removeMember_parameter_0$schema$value ??= z.object({
|
|
1027
|
-
'sessionId': z.
|
|
1028
|
-
'name': z.string().readonly(),
|
|
1617
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
1618
|
+
'name': z.string().readonly().describe('Member to remove.'),
|
|
1029
1619
|
}))
|
|
1030
1620
|
let _khorsheed_dsh_room_room_removeMember_result$schema$value
|
|
1031
1621
|
const _khorsheed_dsh_room_room_removeMember_result$schema = () => (_khorsheed_dsh_room_room_removeMember_result$schema$value ??= z.union([z.object({
|
|
1032
1622
|
'ok': z.literal(true).readonly(),
|
|
1033
1623
|
'value': z.object({
|
|
1034
1624
|
'name': z.string().readonly(),
|
|
1625
|
+
'stopped': z.boolean().readonly().describe('True when a running round was stopped first.'),
|
|
1626
|
+
'cancelledDeliveries': z.number().readonly().describe('Queued messages that will never be delivered.'),
|
|
1627
|
+
'notified': z.array(z.string()).readonly().describe('Members that were waiting for a report and were told instead.'),
|
|
1035
1628
|
}).readonly(),
|
|
1036
1629
|
}), z.object({
|
|
1037
1630
|
'ok': z.literal(false).readonly(),
|
|
@@ -1070,6 +1663,18 @@ const _khorsheed_dsh_room_room_removeMember_result$schema = () => (_khorsheed_ds
|
|
|
1070
1663
|
'code': z.literal("member-not-found").readonly(),
|
|
1071
1664
|
}), z.object({
|
|
1072
1665
|
'code': z.literal("empty-text").readonly(),
|
|
1666
|
+
}), z.object({
|
|
1667
|
+
'code': z.literal("role-too-long").readonly(),
|
|
1668
|
+
}), z.object({
|
|
1669
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
1670
|
+
}), z.object({
|
|
1671
|
+
'code': z.literal("self-message").readonly(),
|
|
1672
|
+
}), z.object({
|
|
1673
|
+
'code': z.literal("unknown-task").readonly(),
|
|
1674
|
+
}), z.object({
|
|
1675
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
1676
|
+
'preset': z.string().readonly(),
|
|
1677
|
+
'available': z.array(z.string()).readonly(),
|
|
1073
1678
|
}), z.object({
|
|
1074
1679
|
'code': z.literal("nothing-to-update").readonly(),
|
|
1075
1680
|
}), z.object({
|
|
@@ -1087,6 +1692,10 @@ const _khorsheed_dsh_room_room_removeMember_result$schema = () => (_khorsheed_ds
|
|
|
1087
1692
|
'code': z.literal("relay-not-found").readonly(),
|
|
1088
1693
|
}), z.object({
|
|
1089
1694
|
'code': z.literal("relay-not-pending").readonly(),
|
|
1695
|
+
}), z.object({
|
|
1696
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
1697
|
+
}), z.object({
|
|
1698
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
1090
1699
|
}), z.object({
|
|
1091
1700
|
'code': z.literal("main-member").readonly(),
|
|
1092
1701
|
}), z.object({
|
|
@@ -1098,21 +1707,16 @@ const _khorsheed_dsh_room_room_removeMember_result$schema = () => (_khorsheed_ds
|
|
|
1098
1707
|
'message': z.string().readonly(),
|
|
1099
1708
|
})]).readonly(),
|
|
1100
1709
|
})]))
|
|
1101
|
-
let
|
|
1102
|
-
const
|
|
1103
|
-
'sessionId': z.
|
|
1104
|
-
'
|
|
1105
|
-
'expectedRevision': z.number().readonly(),
|
|
1710
|
+
let _khorsheed_dsh_room_room_restoreMember_parameter_0$schema$value
|
|
1711
|
+
const _khorsheed_dsh_room_room_restoreMember_parameter_0$schema = () => (_khorsheed_dsh_room_room_restoreMember_parameter_0$schema$value ??= z.object({
|
|
1712
|
+
'sessionId': z.string().readonly(),
|
|
1713
|
+
'name': z.string().readonly(),
|
|
1106
1714
|
}))
|
|
1107
|
-
let
|
|
1108
|
-
const
|
|
1715
|
+
let _khorsheed_dsh_room_room_restoreMember_result$schema$value
|
|
1716
|
+
const _khorsheed_dsh_room_room_restoreMember_result$schema = () => (_khorsheed_dsh_room_room_restoreMember_result$schema$value ??= z.union([z.object({
|
|
1109
1717
|
'ok': z.literal(true).readonly(),
|
|
1110
1718
|
'value': z.object({
|
|
1111
|
-
'
|
|
1112
|
-
'memberId': z.string().readonly(),
|
|
1113
|
-
'revision': z.number().readonly(),
|
|
1114
|
-
'previousMemberId': z.string().readonly(),
|
|
1115
|
-
'handoff': z.string().readonly(),
|
|
1719
|
+
'name': z.string().readonly(),
|
|
1116
1720
|
}).readonly(),
|
|
1117
1721
|
}), z.object({
|
|
1118
1722
|
'ok': z.literal(false).readonly(),
|
|
@@ -1151,6 +1755,18 @@ const _khorsheed_dsh_room_room_setCoordinator_result$schema = () => (_khorsheed_
|
|
|
1151
1755
|
'code': z.literal("member-not-found").readonly(),
|
|
1152
1756
|
}), z.object({
|
|
1153
1757
|
'code': z.literal("empty-text").readonly(),
|
|
1758
|
+
}), z.object({
|
|
1759
|
+
'code': z.literal("role-too-long").readonly(),
|
|
1760
|
+
}), z.object({
|
|
1761
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
1762
|
+
}), z.object({
|
|
1763
|
+
'code': z.literal("self-message").readonly(),
|
|
1764
|
+
}), z.object({
|
|
1765
|
+
'code': z.literal("unknown-task").readonly(),
|
|
1766
|
+
}), z.object({
|
|
1767
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
1768
|
+
'preset': z.string().readonly(),
|
|
1769
|
+
'available': z.array(z.string()).readonly(),
|
|
1154
1770
|
}), z.object({
|
|
1155
1771
|
'code': z.literal("nothing-to-update").readonly(),
|
|
1156
1772
|
}), z.object({
|
|
@@ -1168,6 +1784,10 @@ const _khorsheed_dsh_room_room_setCoordinator_result$schema = () => (_khorsheed_
|
|
|
1168
1784
|
'code': z.literal("relay-not-found").readonly(),
|
|
1169
1785
|
}), z.object({
|
|
1170
1786
|
'code': z.literal("relay-not-pending").readonly(),
|
|
1787
|
+
}), z.object({
|
|
1788
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
1789
|
+
}), z.object({
|
|
1790
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
1171
1791
|
}), z.object({
|
|
1172
1792
|
'code': z.literal("main-member").readonly(),
|
|
1173
1793
|
}), z.object({
|
|
@@ -1179,16 +1799,21 @@ const _khorsheed_dsh_room_room_setCoordinator_result$schema = () => (_khorsheed_
|
|
|
1179
1799
|
'message': z.string().readonly(),
|
|
1180
1800
|
})]).readonly(),
|
|
1181
1801
|
})]))
|
|
1182
|
-
let
|
|
1183
|
-
const
|
|
1184
|
-
'sessionId': z.
|
|
1185
|
-
'
|
|
1802
|
+
let _khorsheed_dsh_room_room_setCoordinator_parameter_0$schema$value
|
|
1803
|
+
const _khorsheed_dsh_room_room_setCoordinator_parameter_0$schema = () => (_khorsheed_dsh_room_room_setCoordinator_parameter_0$schema$value ??= z.object({
|
|
1804
|
+
'sessionId': z.string().readonly(),
|
|
1805
|
+
'memberId': z.string().readonly(),
|
|
1806
|
+
'expectedRevision': z.number().readonly(),
|
|
1186
1807
|
}))
|
|
1187
|
-
let
|
|
1188
|
-
const
|
|
1808
|
+
let _khorsheed_dsh_room_room_setCoordinator_result$schema$value
|
|
1809
|
+
const _khorsheed_dsh_room_room_setCoordinator_result$schema = () => (_khorsheed_dsh_room_room_setCoordinator_result$schema$value ??= z.union([z.object({
|
|
1189
1810
|
'ok': z.literal(true).readonly(),
|
|
1190
1811
|
'value': z.object({
|
|
1191
|
-
'
|
|
1812
|
+
'version': z.literal(1).readonly(),
|
|
1813
|
+
'memberId': z.string().readonly(),
|
|
1814
|
+
'revision': z.number().readonly(),
|
|
1815
|
+
'previousMemberId': z.string().readonly(),
|
|
1816
|
+
'handoff': z.string().readonly(),
|
|
1192
1817
|
}).readonly(),
|
|
1193
1818
|
}), z.object({
|
|
1194
1819
|
'ok': z.literal(false).readonly(),
|
|
@@ -1222,11 +1847,412 @@ const _khorsheed_dsh_room_room_setGoal_result$schema = () => (_khorsheed_dsh_roo
|
|
|
1222
1847
|
}), z.object({
|
|
1223
1848
|
'code': z.literal("duplicate-name").readonly(),
|
|
1224
1849
|
}), z.object({
|
|
1225
|
-
'code': z.literal("empty-provider").readonly(),
|
|
1850
|
+
'code': z.literal("empty-provider").readonly(),
|
|
1851
|
+
}), z.object({
|
|
1852
|
+
'code': z.literal("member-not-found").readonly(),
|
|
1853
|
+
}), z.object({
|
|
1854
|
+
'code': z.literal("empty-text").readonly(),
|
|
1855
|
+
}), z.object({
|
|
1856
|
+
'code': z.literal("role-too-long").readonly(),
|
|
1857
|
+
}), z.object({
|
|
1858
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
1859
|
+
}), z.object({
|
|
1860
|
+
'code': z.literal("self-message").readonly(),
|
|
1861
|
+
}), z.object({
|
|
1862
|
+
'code': z.literal("unknown-task").readonly(),
|
|
1863
|
+
}), z.object({
|
|
1864
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
1865
|
+
'preset': z.string().readonly(),
|
|
1866
|
+
'available': z.array(z.string()).readonly(),
|
|
1867
|
+
}), z.object({
|
|
1868
|
+
'code': z.literal("nothing-to-update").readonly(),
|
|
1869
|
+
}), z.object({
|
|
1870
|
+
'code': z.literal("local-agent-unavailable").readonly(),
|
|
1871
|
+
}), z.object({
|
|
1872
|
+
'code': z.literal("unknown-provider").readonly(),
|
|
1873
|
+
'provider': z.string().readonly(),
|
|
1874
|
+
'available': z.array(z.string()).readonly(),
|
|
1875
|
+
}), z.object({
|
|
1876
|
+
'code': z.literal("unknown-targets").readonly(),
|
|
1877
|
+
'names': z.array(z.string()).readonly(),
|
|
1878
|
+
}), z.object({
|
|
1879
|
+
'code': z.literal("no-targets").readonly(),
|
|
1880
|
+
}), z.object({
|
|
1881
|
+
'code': z.literal("relay-not-found").readonly(),
|
|
1882
|
+
}), z.object({
|
|
1883
|
+
'code': z.literal("relay-not-pending").readonly(),
|
|
1884
|
+
}), z.object({
|
|
1885
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
1886
|
+
}), z.object({
|
|
1887
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
1888
|
+
}), z.object({
|
|
1889
|
+
'code': z.literal("main-member").readonly(),
|
|
1890
|
+
}), z.object({
|
|
1891
|
+
'code': z.literal("task-not-found").readonly(),
|
|
1892
|
+
}), z.object({
|
|
1893
|
+
'code': z.literal("task-closed").readonly(),
|
|
1894
|
+
}), z.object({
|
|
1895
|
+
'code': z.literal("resume-failed").readonly(),
|
|
1896
|
+
'message': z.string().readonly(),
|
|
1897
|
+
})]).readonly(),
|
|
1898
|
+
})]))
|
|
1899
|
+
let _khorsheed_dsh_room_room_setGoal_parameter_0$schema$value
|
|
1900
|
+
const _khorsheed_dsh_room_room_setGoal_parameter_0$schema = () => (_khorsheed_dsh_room_room_setGoal_parameter_0$schema$value ??= z.object({
|
|
1901
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
1902
|
+
'text': z.string().readonly().describe('Goal text; blank clears the goal.'),
|
|
1903
|
+
}))
|
|
1904
|
+
let _khorsheed_dsh_room_room_setGoal_result$schema$value
|
|
1905
|
+
const _khorsheed_dsh_room_room_setGoal_result$schema = () => (_khorsheed_dsh_room_room_setGoal_result$schema$value ??= z.union([z.object({
|
|
1906
|
+
'ok': z.literal(true).readonly(),
|
|
1907
|
+
'value': z.object({
|
|
1908
|
+
'goal': z.string().readonly().optional(),
|
|
1909
|
+
}).readonly(),
|
|
1910
|
+
}), z.object({
|
|
1911
|
+
'ok': z.literal(false).readonly(),
|
|
1912
|
+
'error': z.union([z.object({
|
|
1913
|
+
'code': z.literal("request-conflict").readonly(),
|
|
1914
|
+
}), z.object({
|
|
1915
|
+
'code': z.literal("member-cwd-bound").readonly(),
|
|
1916
|
+
}), z.object({
|
|
1917
|
+
'code': z.literal("not-coordinator").readonly(),
|
|
1918
|
+
}), z.object({
|
|
1919
|
+
'code': z.literal("delivery-not-uncertain").readonly(),
|
|
1920
|
+
}), z.object({
|
|
1921
|
+
'code': z.literal("plan-reconciliation-required").readonly(),
|
|
1922
|
+
}), z.object({
|
|
1923
|
+
'code': z.literal("coordinator-busy").readonly(),
|
|
1924
|
+
}), z.object({
|
|
1925
|
+
'code': z.literal("coordinator-not-ready").readonly(),
|
|
1926
|
+
'message': z.string().readonly(),
|
|
1927
|
+
}), z.object({
|
|
1928
|
+
'code': z.literal("coordinator-conflict").readonly(),
|
|
1929
|
+
}), z.object({
|
|
1930
|
+
'code': z.literal("active-coordinator").readonly(),
|
|
1931
|
+
}), z.object({
|
|
1932
|
+
'code': z.literal("configuration-owned-by-core").readonly(),
|
|
1933
|
+
}), z.object({
|
|
1934
|
+
'code': z.literal("session-not-found").readonly(),
|
|
1935
|
+
}), z.object({
|
|
1936
|
+
'code': z.literal("not-a-room").readonly(),
|
|
1937
|
+
}), z.object({
|
|
1938
|
+
'code': z.literal("invalid-name").readonly(),
|
|
1939
|
+
}), z.object({
|
|
1940
|
+
'code': z.literal("duplicate-name").readonly(),
|
|
1941
|
+
}), z.object({
|
|
1942
|
+
'code': z.literal("empty-provider").readonly(),
|
|
1943
|
+
}), z.object({
|
|
1944
|
+
'code': z.literal("member-not-found").readonly(),
|
|
1945
|
+
}), z.object({
|
|
1946
|
+
'code': z.literal("empty-text").readonly(),
|
|
1947
|
+
}), z.object({
|
|
1948
|
+
'code': z.literal("role-too-long").readonly(),
|
|
1949
|
+
}), z.object({
|
|
1950
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
1951
|
+
}), z.object({
|
|
1952
|
+
'code': z.literal("self-message").readonly(),
|
|
1953
|
+
}), z.object({
|
|
1954
|
+
'code': z.literal("unknown-task").readonly(),
|
|
1955
|
+
}), z.object({
|
|
1956
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
1957
|
+
'preset': z.string().readonly(),
|
|
1958
|
+
'available': z.array(z.string()).readonly(),
|
|
1959
|
+
}), z.object({
|
|
1960
|
+
'code': z.literal("nothing-to-update").readonly(),
|
|
1961
|
+
}), z.object({
|
|
1962
|
+
'code': z.literal("local-agent-unavailable").readonly(),
|
|
1963
|
+
}), z.object({
|
|
1964
|
+
'code': z.literal("unknown-provider").readonly(),
|
|
1965
|
+
'provider': z.string().readonly(),
|
|
1966
|
+
'available': z.array(z.string()).readonly(),
|
|
1967
|
+
}), z.object({
|
|
1968
|
+
'code': z.literal("unknown-targets").readonly(),
|
|
1969
|
+
'names': z.array(z.string()).readonly(),
|
|
1970
|
+
}), z.object({
|
|
1971
|
+
'code': z.literal("no-targets").readonly(),
|
|
1972
|
+
}), z.object({
|
|
1973
|
+
'code': z.literal("relay-not-found").readonly(),
|
|
1974
|
+
}), z.object({
|
|
1975
|
+
'code': z.literal("relay-not-pending").readonly(),
|
|
1976
|
+
}), z.object({
|
|
1977
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
1978
|
+
}), z.object({
|
|
1979
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
1980
|
+
}), z.object({
|
|
1981
|
+
'code': z.literal("main-member").readonly(),
|
|
1982
|
+
}), z.object({
|
|
1983
|
+
'code': z.literal("task-not-found").readonly(),
|
|
1984
|
+
}), z.object({
|
|
1985
|
+
'code': z.literal("task-closed").readonly(),
|
|
1986
|
+
}), z.object({
|
|
1987
|
+
'code': z.literal("resume-failed").readonly(),
|
|
1988
|
+
'message': z.string().readonly(),
|
|
1989
|
+
})]).readonly(),
|
|
1990
|
+
})]))
|
|
1991
|
+
let _khorsheed_dsh_room_room_setSettings_parameter_0$schema$value
|
|
1992
|
+
const _khorsheed_dsh_room_room_setSettings_parameter_0$schema = () => (_khorsheed_dsh_room_room_setSettings_parameter_0$schema$value ??= z.object({
|
|
1993
|
+
'sessionId': z.string().readonly(),
|
|
1994
|
+
'reportTiming': z.union([z.literal("judge"), z.literal("each")]).readonly().optional(),
|
|
1995
|
+
'autoTaskFiling': z.boolean().readonly().optional(),
|
|
1996
|
+
'reportThreshold': z.number().readonly().optional(),
|
|
1997
|
+
'reportWaitMinutes': z.number().readonly().optional(),
|
|
1998
|
+
'helpReminderMinutes': z.number().readonly().optional().describe('10–120, in steps of 10.'),
|
|
1999
|
+
'memberMessages': z.union([z.literal("free"), z.literal("confirm")]).readonly().optional(),
|
|
2000
|
+
'hopLimit': z.number().readonly().optional().describe('2–50.'),
|
|
2001
|
+
'paused': z.boolean().readonly().optional(),
|
|
2002
|
+
}))
|
|
2003
|
+
let _khorsheed_dsh_room_room_setSettings_result$schema$value
|
|
2004
|
+
const _khorsheed_dsh_room_room_setSettings_result$schema = () => (_khorsheed_dsh_room_room_setSettings_result$schema$value ??= z.union([z.object({
|
|
2005
|
+
'ok': z.literal(true).readonly(),
|
|
2006
|
+
'value': z.object({
|
|
2007
|
+
'memberMessages': z.union([z.literal("free"), z.literal("confirm")]).readonly(),
|
|
2008
|
+
'hopLimit': z.number().readonly(),
|
|
2009
|
+
'paused': z.boolean().readonly(),
|
|
2010
|
+
'reportTiming': z.union([z.literal("judge"), z.literal("each")]).readonly(),
|
|
2011
|
+
'autoTaskFiling': z.boolean().readonly(),
|
|
2012
|
+
'reportThreshold': z.number().readonly(),
|
|
2013
|
+
'reportWaitMinutes': z.number().readonly(),
|
|
2014
|
+
'helpReminderMinutes': z.number().readonly(),
|
|
2015
|
+
}).readonly(),
|
|
2016
|
+
}), z.object({
|
|
2017
|
+
'ok': z.literal(false).readonly(),
|
|
2018
|
+
'error': z.union([z.object({
|
|
2019
|
+
'code': z.literal("request-conflict").readonly(),
|
|
2020
|
+
}), z.object({
|
|
2021
|
+
'code': z.literal("member-cwd-bound").readonly(),
|
|
2022
|
+
}), z.object({
|
|
2023
|
+
'code': z.literal("not-coordinator").readonly(),
|
|
2024
|
+
}), z.object({
|
|
2025
|
+
'code': z.literal("delivery-not-uncertain").readonly(),
|
|
2026
|
+
}), z.object({
|
|
2027
|
+
'code': z.literal("plan-reconciliation-required").readonly(),
|
|
2028
|
+
}), z.object({
|
|
2029
|
+
'code': z.literal("coordinator-busy").readonly(),
|
|
2030
|
+
}), z.object({
|
|
2031
|
+
'code': z.literal("coordinator-not-ready").readonly(),
|
|
2032
|
+
'message': z.string().readonly(),
|
|
2033
|
+
}), z.object({
|
|
2034
|
+
'code': z.literal("coordinator-conflict").readonly(),
|
|
2035
|
+
}), z.object({
|
|
2036
|
+
'code': z.literal("active-coordinator").readonly(),
|
|
2037
|
+
}), z.object({
|
|
2038
|
+
'code': z.literal("configuration-owned-by-core").readonly(),
|
|
2039
|
+
}), z.object({
|
|
2040
|
+
'code': z.literal("session-not-found").readonly(),
|
|
2041
|
+
}), z.object({
|
|
2042
|
+
'code': z.literal("not-a-room").readonly(),
|
|
2043
|
+
}), z.object({
|
|
2044
|
+
'code': z.literal("invalid-name").readonly(),
|
|
2045
|
+
}), z.object({
|
|
2046
|
+
'code': z.literal("duplicate-name").readonly(),
|
|
2047
|
+
}), z.object({
|
|
2048
|
+
'code': z.literal("empty-provider").readonly(),
|
|
2049
|
+
}), z.object({
|
|
2050
|
+
'code': z.literal("member-not-found").readonly(),
|
|
2051
|
+
}), z.object({
|
|
2052
|
+
'code': z.literal("empty-text").readonly(),
|
|
2053
|
+
}), z.object({
|
|
2054
|
+
'code': z.literal("role-too-long").readonly(),
|
|
2055
|
+
}), z.object({
|
|
2056
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
2057
|
+
}), z.object({
|
|
2058
|
+
'code': z.literal("self-message").readonly(),
|
|
2059
|
+
}), z.object({
|
|
2060
|
+
'code': z.literal("unknown-task").readonly(),
|
|
2061
|
+
}), z.object({
|
|
2062
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
2063
|
+
'preset': z.string().readonly(),
|
|
2064
|
+
'available': z.array(z.string()).readonly(),
|
|
2065
|
+
}), z.object({
|
|
2066
|
+
'code': z.literal("nothing-to-update").readonly(),
|
|
2067
|
+
}), z.object({
|
|
2068
|
+
'code': z.literal("local-agent-unavailable").readonly(),
|
|
2069
|
+
}), z.object({
|
|
2070
|
+
'code': z.literal("unknown-provider").readonly(),
|
|
2071
|
+
'provider': z.string().readonly(),
|
|
2072
|
+
'available': z.array(z.string()).readonly(),
|
|
2073
|
+
}), z.object({
|
|
2074
|
+
'code': z.literal("unknown-targets").readonly(),
|
|
2075
|
+
'names': z.array(z.string()).readonly(),
|
|
2076
|
+
}), z.object({
|
|
2077
|
+
'code': z.literal("no-targets").readonly(),
|
|
2078
|
+
}), z.object({
|
|
2079
|
+
'code': z.literal("relay-not-found").readonly(),
|
|
2080
|
+
}), z.object({
|
|
2081
|
+
'code': z.literal("relay-not-pending").readonly(),
|
|
2082
|
+
}), z.object({
|
|
2083
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
2084
|
+
}), z.object({
|
|
2085
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
2086
|
+
}), z.object({
|
|
2087
|
+
'code': z.literal("main-member").readonly(),
|
|
2088
|
+
}), z.object({
|
|
2089
|
+
'code': z.literal("task-not-found").readonly(),
|
|
2090
|
+
}), z.object({
|
|
2091
|
+
'code': z.literal("task-closed").readonly(),
|
|
2092
|
+
}), z.object({
|
|
2093
|
+
'code': z.literal("resume-failed").readonly(),
|
|
2094
|
+
'message': z.string().readonly(),
|
|
2095
|
+
})]).readonly(),
|
|
2096
|
+
})]))
|
|
2097
|
+
let _khorsheed_dsh_room_room_setTaskHint_parameter_0$schema$value
|
|
2098
|
+
const _khorsheed_dsh_room_room_setTaskHint_parameter_0$schema = () => (_khorsheed_dsh_room_room_setTaskHint_parameter_0$schema$value ??= z.object({
|
|
2099
|
+
'sessionId': z.string().readonly(),
|
|
2100
|
+
'task': z.union([z.literal(null), z.string()]).readonly().describe('`new`, a task root id, or null to clear.'),
|
|
2101
|
+
}))
|
|
2102
|
+
let _khorsheed_dsh_room_room_setTaskHint_result$schema$value
|
|
2103
|
+
const _khorsheed_dsh_room_room_setTaskHint_result$schema = () => (_khorsheed_dsh_room_room_setTaskHint_result$schema$value ??= z.object({
|
|
2104
|
+
'ok': z.literal(true).readonly(),
|
|
2105
|
+
}))
|
|
2106
|
+
let _khorsheed_dsh_room_room_stopJob_parameter_0$schema$value
|
|
2107
|
+
const _khorsheed_dsh_room_room_stopJob_parameter_0$schema = () => (_khorsheed_dsh_room_room_stopJob_parameter_0$schema$value ??= z.object({
|
|
2108
|
+
'sessionId': z.string().readonly(),
|
|
2109
|
+
'task': z.string().readonly().describe('The task\'s root id.'),
|
|
2110
|
+
}))
|
|
2111
|
+
let _khorsheed_dsh_room_room_stopJob_result$schema$value
|
|
2112
|
+
const _khorsheed_dsh_room_room_stopJob_result$schema = () => (_khorsheed_dsh_room_room_stopJob_result$schema$value ??= z.union([z.object({
|
|
2113
|
+
'ok': z.literal(true).readonly(),
|
|
2114
|
+
'value': z.object({
|
|
2115
|
+
'stopped': z.number().readonly(),
|
|
2116
|
+
}).readonly(),
|
|
2117
|
+
}), z.object({
|
|
2118
|
+
'ok': z.literal(false).readonly(),
|
|
2119
|
+
'error': z.union([z.object({
|
|
2120
|
+
'code': z.literal("request-conflict").readonly(),
|
|
2121
|
+
}), z.object({
|
|
2122
|
+
'code': z.literal("member-cwd-bound").readonly(),
|
|
2123
|
+
}), z.object({
|
|
2124
|
+
'code': z.literal("not-coordinator").readonly(),
|
|
2125
|
+
}), z.object({
|
|
2126
|
+
'code': z.literal("delivery-not-uncertain").readonly(),
|
|
2127
|
+
}), z.object({
|
|
2128
|
+
'code': z.literal("plan-reconciliation-required").readonly(),
|
|
2129
|
+
}), z.object({
|
|
2130
|
+
'code': z.literal("coordinator-busy").readonly(),
|
|
2131
|
+
}), z.object({
|
|
2132
|
+
'code': z.literal("coordinator-not-ready").readonly(),
|
|
2133
|
+
'message': z.string().readonly(),
|
|
2134
|
+
}), z.object({
|
|
2135
|
+
'code': z.literal("coordinator-conflict").readonly(),
|
|
2136
|
+
}), z.object({
|
|
2137
|
+
'code': z.literal("active-coordinator").readonly(),
|
|
2138
|
+
}), z.object({
|
|
2139
|
+
'code': z.literal("configuration-owned-by-core").readonly(),
|
|
2140
|
+
}), z.object({
|
|
2141
|
+
'code': z.literal("session-not-found").readonly(),
|
|
2142
|
+
}), z.object({
|
|
2143
|
+
'code': z.literal("not-a-room").readonly(),
|
|
2144
|
+
}), z.object({
|
|
2145
|
+
'code': z.literal("invalid-name").readonly(),
|
|
2146
|
+
}), z.object({
|
|
2147
|
+
'code': z.literal("duplicate-name").readonly(),
|
|
2148
|
+
}), z.object({
|
|
2149
|
+
'code': z.literal("empty-provider").readonly(),
|
|
2150
|
+
}), z.object({
|
|
2151
|
+
'code': z.literal("member-not-found").readonly(),
|
|
2152
|
+
}), z.object({
|
|
2153
|
+
'code': z.literal("empty-text").readonly(),
|
|
2154
|
+
}), z.object({
|
|
2155
|
+
'code': z.literal("role-too-long").readonly(),
|
|
2156
|
+
}), z.object({
|
|
2157
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
2158
|
+
}), z.object({
|
|
2159
|
+
'code': z.literal("self-message").readonly(),
|
|
2160
|
+
}), z.object({
|
|
2161
|
+
'code': z.literal("unknown-task").readonly(),
|
|
2162
|
+
}), z.object({
|
|
2163
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
2164
|
+
'preset': z.string().readonly(),
|
|
2165
|
+
'available': z.array(z.string()).readonly(),
|
|
2166
|
+
}), z.object({
|
|
2167
|
+
'code': z.literal("nothing-to-update").readonly(),
|
|
2168
|
+
}), z.object({
|
|
2169
|
+
'code': z.literal("local-agent-unavailable").readonly(),
|
|
2170
|
+
}), z.object({
|
|
2171
|
+
'code': z.literal("unknown-provider").readonly(),
|
|
2172
|
+
'provider': z.string().readonly(),
|
|
2173
|
+
'available': z.array(z.string()).readonly(),
|
|
2174
|
+
}), z.object({
|
|
2175
|
+
'code': z.literal("unknown-targets").readonly(),
|
|
2176
|
+
'names': z.array(z.string()).readonly(),
|
|
2177
|
+
}), z.object({
|
|
2178
|
+
'code': z.literal("no-targets").readonly(),
|
|
2179
|
+
}), z.object({
|
|
2180
|
+
'code': z.literal("relay-not-found").readonly(),
|
|
2181
|
+
}), z.object({
|
|
2182
|
+
'code': z.literal("relay-not-pending").readonly(),
|
|
2183
|
+
}), z.object({
|
|
2184
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
2185
|
+
}), z.object({
|
|
2186
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
2187
|
+
}), z.object({
|
|
2188
|
+
'code': z.literal("main-member").readonly(),
|
|
2189
|
+
}), z.object({
|
|
2190
|
+
'code': z.literal("task-not-found").readonly(),
|
|
2191
|
+
}), z.object({
|
|
2192
|
+
'code': z.literal("task-closed").readonly(),
|
|
2193
|
+
}), z.object({
|
|
2194
|
+
'code': z.literal("resume-failed").readonly(),
|
|
2195
|
+
'message': z.string().readonly(),
|
|
2196
|
+
})]).readonly(),
|
|
2197
|
+
})]))
|
|
2198
|
+
let _khorsheed_dsh_room_room_unlinkSession_parameter_0$schema$value
|
|
2199
|
+
const _khorsheed_dsh_room_room_unlinkSession_parameter_0$schema = () => (_khorsheed_dsh_room_room_unlinkSession_parameter_0$schema$value ??= z.object({
|
|
2200
|
+
'sessionId': z.string().readonly(),
|
|
2201
|
+
'target': z.string().readonly().describe('The outside session.'),
|
|
2202
|
+
'title': z.string().readonly().optional().describe('Its title (link only).'),
|
|
2203
|
+
}))
|
|
2204
|
+
let _khorsheed_dsh_room_room_unlinkSession_result$schema$value
|
|
2205
|
+
const _khorsheed_dsh_room_room_unlinkSession_result$schema = () => (_khorsheed_dsh_room_room_unlinkSession_result$schema$value ??= z.union([z.object({
|
|
2206
|
+
'ok': z.literal(true).readonly(),
|
|
2207
|
+
}), z.object({
|
|
2208
|
+
'ok': z.literal(false).readonly(),
|
|
2209
|
+
'error': z.union([z.object({
|
|
2210
|
+
'code': z.literal("request-conflict").readonly(),
|
|
2211
|
+
}), z.object({
|
|
2212
|
+
'code': z.literal("member-cwd-bound").readonly(),
|
|
2213
|
+
}), z.object({
|
|
2214
|
+
'code': z.literal("not-coordinator").readonly(),
|
|
2215
|
+
}), z.object({
|
|
2216
|
+
'code': z.literal("delivery-not-uncertain").readonly(),
|
|
2217
|
+
}), z.object({
|
|
2218
|
+
'code': z.literal("plan-reconciliation-required").readonly(),
|
|
2219
|
+
}), z.object({
|
|
2220
|
+
'code': z.literal("coordinator-busy").readonly(),
|
|
2221
|
+
}), z.object({
|
|
2222
|
+
'code': z.literal("coordinator-not-ready").readonly(),
|
|
2223
|
+
'message': z.string().readonly(),
|
|
2224
|
+
}), z.object({
|
|
2225
|
+
'code': z.literal("coordinator-conflict").readonly(),
|
|
2226
|
+
}), z.object({
|
|
2227
|
+
'code': z.literal("active-coordinator").readonly(),
|
|
2228
|
+
}), z.object({
|
|
2229
|
+
'code': z.literal("configuration-owned-by-core").readonly(),
|
|
2230
|
+
}), z.object({
|
|
2231
|
+
'code': z.literal("session-not-found").readonly(),
|
|
2232
|
+
}), z.object({
|
|
2233
|
+
'code': z.literal("not-a-room").readonly(),
|
|
2234
|
+
}), z.object({
|
|
2235
|
+
'code': z.literal("invalid-name").readonly(),
|
|
2236
|
+
}), z.object({
|
|
2237
|
+
'code': z.literal("duplicate-name").readonly(),
|
|
2238
|
+
}), z.object({
|
|
2239
|
+
'code': z.literal("empty-provider").readonly(),
|
|
2240
|
+
}), z.object({
|
|
2241
|
+
'code': z.literal("member-not-found").readonly(),
|
|
2242
|
+
}), z.object({
|
|
2243
|
+
'code': z.literal("empty-text").readonly(),
|
|
2244
|
+
}), z.object({
|
|
2245
|
+
'code': z.literal("role-too-long").readonly(),
|
|
2246
|
+
}), z.object({
|
|
2247
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
2248
|
+
}), z.object({
|
|
2249
|
+
'code': z.literal("self-message").readonly(),
|
|
1226
2250
|
}), z.object({
|
|
1227
|
-
'code': z.literal("
|
|
2251
|
+
'code': z.literal("unknown-task").readonly(),
|
|
1228
2252
|
}), z.object({
|
|
1229
|
-
'code': z.literal("
|
|
2253
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
2254
|
+
'preset': z.string().readonly(),
|
|
2255
|
+
'available': z.array(z.string()).readonly(),
|
|
1230
2256
|
}), z.object({
|
|
1231
2257
|
'code': z.literal("nothing-to-update").readonly(),
|
|
1232
2258
|
}), z.object({
|
|
@@ -1244,6 +2270,10 @@ const _khorsheed_dsh_room_room_setGoal_result$schema = () => (_khorsheed_dsh_roo
|
|
|
1244
2270
|
'code': z.literal("relay-not-found").readonly(),
|
|
1245
2271
|
}), z.object({
|
|
1246
2272
|
'code': z.literal("relay-not-pending").readonly(),
|
|
2273
|
+
}), z.object({
|
|
2274
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
2275
|
+
}), z.object({
|
|
2276
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
1247
2277
|
}), z.object({
|
|
1248
2278
|
'code': z.literal("main-member").readonly(),
|
|
1249
2279
|
}), z.object({
|
|
@@ -1257,12 +2287,14 @@ const _khorsheed_dsh_room_room_setGoal_result$schema = () => (_khorsheed_dsh_roo
|
|
|
1257
2287
|
})]))
|
|
1258
2288
|
let _khorsheed_dsh_room_room_updateMember_parameter_0$schema$value
|
|
1259
2289
|
const _khorsheed_dsh_room_room_updateMember_parameter_0$schema = () => (_khorsheed_dsh_room_room_updateMember_parameter_0$schema$value ??= z.object({
|
|
1260
|
-
'sessionId': z.
|
|
1261
|
-
'name': z.string().readonly(),
|
|
1262
|
-
'rename': z.string().readonly().optional(),
|
|
1263
|
-
'instructions': z.union([z.literal(null), z.string()]).readonly().optional(),
|
|
1264
|
-
'
|
|
1265
|
-
'
|
|
2290
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
2291
|
+
'name': z.string().readonly().describe('Member to update (its CURRENT name).'),
|
|
2292
|
+
'rename': z.string().readonly().optional().describe('Rename: the new'),
|
|
2293
|
+
'instructions': z.union([z.literal(null), z.string()]).readonly().optional().describe('New role instructions; null (or a blank string) CLEARS them.'),
|
|
2294
|
+
'role': z.union([z.literal(null), z.string()]).readonly().optional().describe('New public role; null (or a blank string) CLEARS it.'),
|
|
2295
|
+
'cwd': z.union([z.literal(null), z.string()]).readonly().optional().describe('New member-level cwd; null (or a blank string) CLEARS the override back to inheriting the room cwd.'),
|
|
2296
|
+
'model': z.union([z.literal(null), z.string()]).readonly().optional().describe('New intended model (roster-recorded; the first dispatch binds it as the facade start\'s `model` option); null (or a blank string) CLEARS it back to following the harness default.'),
|
|
2297
|
+
'effort': z.union([z.literal(null), z.string()]).readonly().optional().describe('New intended reasoning effort (roster-recorded, bound like the model on the first dispatch); null (or a blank string) CLEARS it back to following the harness default.'),
|
|
1266
2298
|
}))
|
|
1267
2299
|
let _khorsheed_dsh_room_room_updateMember_result$schema$value
|
|
1268
2300
|
const _khorsheed_dsh_room_room_updateMember_result$schema = () => (_khorsheed_dsh_room_room_updateMember_result$schema$value ??= z.union([z.object({
|
|
@@ -1307,6 +2339,18 @@ const _khorsheed_dsh_room_room_updateMember_result$schema = () => (_khorsheed_ds
|
|
|
1307
2339
|
'code': z.literal("member-not-found").readonly(),
|
|
1308
2340
|
}), z.object({
|
|
1309
2341
|
'code': z.literal("empty-text").readonly(),
|
|
2342
|
+
}), z.object({
|
|
2343
|
+
'code': z.literal("role-too-long").readonly(),
|
|
2344
|
+
}), z.object({
|
|
2345
|
+
'code': z.literal("invalid-settings").readonly(),
|
|
2346
|
+
}), z.object({
|
|
2347
|
+
'code': z.literal("self-message").readonly(),
|
|
2348
|
+
}), z.object({
|
|
2349
|
+
'code': z.literal("unknown-task").readonly(),
|
|
2350
|
+
}), z.object({
|
|
2351
|
+
'code': z.literal("unknown-preset").readonly(),
|
|
2352
|
+
'preset': z.string().readonly(),
|
|
2353
|
+
'available': z.array(z.string()).readonly(),
|
|
1310
2354
|
}), z.object({
|
|
1311
2355
|
'code': z.literal("nothing-to-update").readonly(),
|
|
1312
2356
|
}), z.object({
|
|
@@ -1324,6 +2368,10 @@ const _khorsheed_dsh_room_room_updateMember_result$schema = () => (_khorsheed_ds
|
|
|
1324
2368
|
'code': z.literal("relay-not-found").readonly(),
|
|
1325
2369
|
}), z.object({
|
|
1326
2370
|
'code': z.literal("relay-not-pending").readonly(),
|
|
2371
|
+
}), z.object({
|
|
2372
|
+
'code': z.literal("approval-not-pending").readonly(),
|
|
2373
|
+
}), z.object({
|
|
2374
|
+
'code': z.literal("question-not-pending").readonly(),
|
|
1327
2375
|
}), z.object({
|
|
1328
2376
|
'code': z.literal("main-member").readonly(),
|
|
1329
2377
|
}), z.object({
|
|
@@ -1335,53 +2383,270 @@ const _khorsheed_dsh_room_room_updateMember_result$schema = () => (_khorsheed_ds
|
|
|
1335
2383
|
'message': z.string().readonly(),
|
|
1336
2384
|
})]).readonly(),
|
|
1337
2385
|
})]))
|
|
2386
|
+
let _khorsheed_dsh_room_room_answerApproval_parameter_0_strict$schema$value
|
|
2387
|
+
const _khorsheed_dsh_room_room_answerApproval_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_answerApproval_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2388
|
+
'sessionId': z.string().readonly(),
|
|
2389
|
+
'id': z.string().readonly(),
|
|
2390
|
+
'outcome': z.union([z.literal("rejected"), z.literal("allowed-once")]).readonly(),
|
|
2391
|
+
}))
|
|
2392
|
+
let _khorsheed_dsh_room_room_answerQuestion_parameter_0_strict$schema$value
|
|
2393
|
+
const _khorsheed_dsh_room_room_answerQuestion_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_answerQuestion_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2394
|
+
'sessionId': z.string().readonly(),
|
|
2395
|
+
'id': z.string().readonly(),
|
|
2396
|
+
'answers': z.array(z.strictObject({
|
|
2397
|
+
'id': z.string().readonly(),
|
|
2398
|
+
'selected': z.array(z.string()).readonly(),
|
|
2399
|
+
'custom': z.string().readonly().optional(),
|
|
2400
|
+
})).readonly(),
|
|
2401
|
+
}))
|
|
2402
|
+
let _khorsheed_dsh_room_room_cancel_parameter_0_strict$schema$value
|
|
2403
|
+
const _khorsheed_dsh_room_room_cancel_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_cancel_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2404
|
+
'expectedRunId': z.string().readonly().optional().describe('Optional fencing for an execution card; a stale card must never stop a successor.'),
|
|
2405
|
+
'expectedStartedAt': z.number().readonly().optional(),
|
|
2406
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
2407
|
+
'name': z.string().readonly().describe('Member whose run should be cancelled.'),
|
|
2408
|
+
}))
|
|
2409
|
+
let _khorsheed_dsh_room_room_cancelChild_parameter_0_strict$schema$value
|
|
2410
|
+
const _khorsheed_dsh_room_room_cancelChild_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_cancelChild_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2411
|
+
'sessionId': z.string(),
|
|
2412
|
+
'childSessionId': z.string(),
|
|
2413
|
+
}))
|
|
2414
|
+
let _khorsheed_dsh_room_room_confirmRelay_parameter_0_strict$schema$value
|
|
2415
|
+
const _khorsheed_dsh_room_room_confirmRelay_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_confirmRelay_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2416
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
2417
|
+
'relayId': z.string().readonly().describe('The relay to resolve.'),
|
|
2418
|
+
}))
|
|
2419
|
+
let _khorsheed_dsh_room_room_dismissHelpNudge_parameter_0_strict$schema$value
|
|
2420
|
+
const _khorsheed_dsh_room_room_dismissHelpNudge_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_dismissHelpNudge_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2421
|
+
'sessionId': z.string().readonly(),
|
|
2422
|
+
'target': z.string().readonly().describe('The outside session.'),
|
|
2423
|
+
'title': z.string().readonly().optional().describe('Its title (link only).'),
|
|
2424
|
+
}))
|
|
2425
|
+
let _khorsheed_dsh_room_room_dismissRelay_parameter_0_strict$schema$value
|
|
2426
|
+
const _khorsheed_dsh_room_room_dismissRelay_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_dismissRelay_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2427
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
2428
|
+
'relayId': z.string().readonly().describe('The relay to resolve.'),
|
|
2429
|
+
}))
|
|
2430
|
+
let _khorsheed_dsh_room_room_getState_parameter_0_strict$schema$value
|
|
2431
|
+
const _khorsheed_dsh_room_room_getState_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_getState_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2432
|
+
'sessionId': z.string().readonly().describe('Room session to replay.'),
|
|
2433
|
+
}))
|
|
2434
|
+
let _khorsheed_dsh_room_room_invite_parameter_0_strict$schema$value
|
|
2435
|
+
const _khorsheed_dsh_room_room_invite_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_invite_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2436
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
2437
|
+
'kind': z.union([z.literal("native"), z.literal("cli")]).readonly().optional().describe('`cli` (default): an external CLI through the local-agent family. `native`: a DSH child agent in this host process, composing `preset`.'),
|
|
2438
|
+
'preset': z.string().readonly().optional().describe('The member\'s mode: the host agent preset id. A native member composes it (omitted = the host default); a CLI member reaches its plugin tools through the bridge (omitted = no mode).'),
|
|
2439
|
+
'inheritPreset': z.boolean().readonly().optional().describe('With no `preset`: take the room session\'s own mode (the coordinator\'s invite default).'),
|
|
2440
|
+
'provider': z.string().readonly().describe('CLI provider id (non-blank).'),
|
|
2441
|
+
'name': z.string().readonly().describe('Addressing/display name: unique in the room, no whitespace, no `@`.'),
|
|
2442
|
+
'instructions': z.string().readonly().optional().describe('Role instructions, prepended to the member\'s first dispatch.'),
|
|
2443
|
+
'role': z.string().readonly().optional().describe('Short public role (≤ 30 chars); blank/omitted = none.'),
|
|
2444
|
+
'cwd': z.string().readonly().optional().describe('Member-level working directory (empty/omitted = inherits the room session\'s cwd). Recorded on the roster; not yet passed to the delegation facade (family need R2 pending).'),
|
|
2445
|
+
'firstTask': z.string().readonly().optional().describe('Optional first task, dispatched to the member as soon as it joins.'),
|
|
2446
|
+
'note': z.string().readonly().optional().describe('What the inviter waits for when the first task reports (see RoomDispatchEvent.note).'),
|
|
2447
|
+
'model': z.string().readonly().optional().describe('The delegation\'s model (blank/omitted = follow the harness default). Applies to local-agent harness providers only: it lands as the facade `start` call\'s `model` option, bound at spawn for exec and live alike.'),
|
|
2448
|
+
'effort': z.string().readonly().optional().describe('The delegation\'s reasoning effort (blank/omitted = follow the harness default): the facade `start` call\'s `effort` option, bound at spawn alongside the model.'),
|
|
2449
|
+
}))
|
|
2450
|
+
let _khorsheed_dsh_room_room_isRoom_parameter_0_strict$schema$value
|
|
2451
|
+
const _khorsheed_dsh_room_room_isRoom_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_isRoom_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2452
|
+
'sessionId': z.string().readonly().describe('Session to probe.'),
|
|
2453
|
+
}))
|
|
2454
|
+
let _khorsheed_dsh_room_room_linkSession_parameter_0_strict$schema$value
|
|
2455
|
+
const _khorsheed_dsh_room_room_linkSession_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_linkSession_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2456
|
+
'sessionId': z.string().readonly(),
|
|
2457
|
+
'target': z.string().readonly().describe('The outside session.'),
|
|
2458
|
+
'title': z.string().readonly().optional().describe('Its title (link only).'),
|
|
2459
|
+
}))
|
|
2460
|
+
let _khorsheed_dsh_room_room_listProviders_parameter_0_strict$schema$value
|
|
2461
|
+
const _khorsheed_dsh_room_room_listProviders_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_listProviders_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2462
|
+
'sessionId': z.string().readonly().optional().describe('The session the invite is for: the result then carries its mode (`sessionPreset`).'),
|
|
2463
|
+
}))
|
|
2464
|
+
let _khorsheed_dsh_room_room_planCommand_parameter_0_strict$schema$value
|
|
2465
|
+
const _khorsheed_dsh_room_room_planCommand_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_planCommand_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2466
|
+
'sessionId': z.string(),
|
|
2467
|
+
'command': z.string(),
|
|
2468
|
+
}))
|
|
2469
|
+
let _khorsheed_dsh_room_room_postMessage_parameter_0_strict$schema$value
|
|
2470
|
+
const _khorsheed_dsh_room_room_postMessage_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_postMessage_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2471
|
+
'requestId': z.string().readonly().optional(),
|
|
2472
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
2473
|
+
'text': z.string().readonly().describe('Raw composer text: leading `@name` tokens address members.'),
|
|
2474
|
+
'targets': z.array(z.string()).readonly().optional().describe('Menu-picked addressees (the room composer\'s mention menu records a pick as explicit addressing even when the `@name` sits mid-sentence). Unioned with the parsed leading tokens and validated against the roster the same way; the text itself is dispatched verbatim either way.'),
|
|
2475
|
+
'task': z.string().readonly().optional().describe('The composer\'s task tag: `new` or a task root id (see RoomSetTaskHintRequest).'),
|
|
2476
|
+
}))
|
|
2477
|
+
let _khorsheed_dsh_room_room_prepareMember_parameter_0_strict$schema$value
|
|
2478
|
+
const _khorsheed_dsh_room_room_prepareMember_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_prepareMember_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2479
|
+
'sessionId': z.string().readonly(),
|
|
2480
|
+
'name': z.string().readonly(),
|
|
2481
|
+
}))
|
|
2482
|
+
let _khorsheed_dsh_room_room_reconcileDelivery_parameter_0_strict$schema$value
|
|
2483
|
+
const _khorsheed_dsh_room_room_reconcileDelivery_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_reconcileDelivery_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2484
|
+
'sessionId': z.string().readonly(),
|
|
2485
|
+
'deliveryId': z.string().readonly(),
|
|
2486
|
+
'outcome': z.union([z.literal("cancelled"), z.literal("done")]).readonly(),
|
|
2487
|
+
'evidence': z.string().readonly(),
|
|
2488
|
+
}))
|
|
2489
|
+
let _khorsheed_dsh_room_room_releaseReports_parameter_0_strict$schema$value
|
|
2490
|
+
const _khorsheed_dsh_room_room_releaseReports_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_releaseReports_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2491
|
+
'sessionId': z.string().readonly(),
|
|
2492
|
+
'name': z.string().readonly(),
|
|
2493
|
+
}))
|
|
2494
|
+
let _khorsheed_dsh_room_room_removeMember_parameter_0_strict$schema$value
|
|
2495
|
+
const _khorsheed_dsh_room_room_removeMember_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_removeMember_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2496
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
2497
|
+
'name': z.string().readonly().describe('Member to remove.'),
|
|
2498
|
+
}))
|
|
2499
|
+
let _khorsheed_dsh_room_room_restoreMember_parameter_0_strict$schema$value
|
|
2500
|
+
const _khorsheed_dsh_room_room_restoreMember_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_restoreMember_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2501
|
+
'sessionId': z.string().readonly(),
|
|
2502
|
+
'name': z.string().readonly(),
|
|
2503
|
+
}))
|
|
2504
|
+
let _khorsheed_dsh_room_room_setCoordinator_parameter_0_strict$schema$value
|
|
2505
|
+
const _khorsheed_dsh_room_room_setCoordinator_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_setCoordinator_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2506
|
+
'sessionId': z.string().readonly(),
|
|
2507
|
+
'memberId': z.string().readonly(),
|
|
2508
|
+
'expectedRevision': z.number().readonly(),
|
|
2509
|
+
}))
|
|
2510
|
+
let _khorsheed_dsh_room_room_setGoal_parameter_0_strict$schema$value
|
|
2511
|
+
const _khorsheed_dsh_room_room_setGoal_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_setGoal_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2512
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
2513
|
+
'text': z.string().readonly().describe('Goal text; blank clears the goal.'),
|
|
2514
|
+
}))
|
|
2515
|
+
let _khorsheed_dsh_room_room_setSettings_parameter_0_strict$schema$value
|
|
2516
|
+
const _khorsheed_dsh_room_room_setSettings_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_setSettings_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2517
|
+
'sessionId': z.string().readonly(),
|
|
2518
|
+
'reportTiming': z.union([z.literal("judge"), z.literal("each")]).readonly().optional(),
|
|
2519
|
+
'autoTaskFiling': z.boolean().readonly().optional(),
|
|
2520
|
+
'reportThreshold': z.number().readonly().optional(),
|
|
2521
|
+
'reportWaitMinutes': z.number().readonly().optional(),
|
|
2522
|
+
'helpReminderMinutes': z.number().readonly().optional().describe('10–120, in steps of 10.'),
|
|
2523
|
+
'memberMessages': z.union([z.literal("free"), z.literal("confirm")]).readonly().optional(),
|
|
2524
|
+
'hopLimit': z.number().readonly().optional().describe('2–50.'),
|
|
2525
|
+
'paused': z.boolean().readonly().optional(),
|
|
2526
|
+
}))
|
|
2527
|
+
let _khorsheed_dsh_room_room_setTaskHint_parameter_0_strict$schema$value
|
|
2528
|
+
const _khorsheed_dsh_room_room_setTaskHint_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_setTaskHint_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2529
|
+
'sessionId': z.string().readonly(),
|
|
2530
|
+
'task': z.union([z.literal(null), z.string()]).readonly().describe('`new`, a task root id, or null to clear.'),
|
|
2531
|
+
}))
|
|
2532
|
+
let _khorsheed_dsh_room_room_stopJob_parameter_0_strict$schema$value
|
|
2533
|
+
const _khorsheed_dsh_room_room_stopJob_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_stopJob_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2534
|
+
'sessionId': z.string().readonly(),
|
|
2535
|
+
'task': z.string().readonly().describe('The task\'s root id.'),
|
|
2536
|
+
}))
|
|
2537
|
+
let _khorsheed_dsh_room_room_unlinkSession_parameter_0_strict$schema$value
|
|
2538
|
+
const _khorsheed_dsh_room_room_unlinkSession_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_unlinkSession_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2539
|
+
'sessionId': z.string().readonly(),
|
|
2540
|
+
'target': z.string().readonly().describe('The outside session.'),
|
|
2541
|
+
'title': z.string().readonly().optional().describe('Its title (link only).'),
|
|
2542
|
+
}))
|
|
2543
|
+
let _khorsheed_dsh_room_room_updateMember_parameter_0_strict$schema$value
|
|
2544
|
+
const _khorsheed_dsh_room_room_updateMember_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_updateMember_parameter_0_strict$schema$value ??= z.strictObject({
|
|
2545
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
2546
|
+
'name': z.string().readonly().describe('Member to update (its CURRENT name).'),
|
|
2547
|
+
'rename': z.string().readonly().optional().describe('Rename: the new'),
|
|
2548
|
+
'instructions': z.union([z.literal(null), z.string()]).readonly().optional().describe('New role instructions; null (or a blank string) CLEARS them.'),
|
|
2549
|
+
'role': z.union([z.literal(null), z.string()]).readonly().optional().describe('New public role; null (or a blank string) CLEARS it.'),
|
|
2550
|
+
'cwd': z.union([z.literal(null), z.string()]).readonly().optional().describe('New member-level cwd; null (or a blank string) CLEARS the override back to inheriting the room cwd.'),
|
|
2551
|
+
'model': z.union([z.literal(null), z.string()]).readonly().optional().describe('New intended model (roster-recorded; the first dispatch binds it as the facade start\'s `model` option); null (or a blank string) CLEARS it back to following the harness default.'),
|
|
2552
|
+
'effort': z.union([z.literal(null), z.string()]).readonly().optional().describe('New intended reasoning effort (roster-recorded, bound like the model on the first dispatch); null (or a blank string) CLEARS it back to following the harness default.'),
|
|
2553
|
+
}))
|
|
1338
2554
|
|
|
1339
|
-
export const TYPERT_REMOTE = {
|
|
2555
|
+
export const TYPERT_REMOTE = createTypertRemoteInfo({
|
|
1340
2556
|
package: '@khorsheed/dsh-room',
|
|
1341
|
-
|
|
1342
|
-
{
|
|
1343
|
-
|
|
2557
|
+
methods: {
|
|
2558
|
+
'room/answerApproval': {
|
|
2559
|
+
service: 'room',
|
|
2560
|
+
description: 'The human answers a member\'s tool approval from the room.',
|
|
2561
|
+
invocation: { kind: 'direct' },
|
|
2562
|
+
parameters: [
|
|
2563
|
+
{
|
|
2564
|
+
name: 'request',
|
|
2565
|
+
description: 'room session, approval id, allow once or reject.',
|
|
2566
|
+
source: 'json',
|
|
2567
|
+
codec: {
|
|
2568
|
+
mode: 'strict',
|
|
2569
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomAnswerApprovalRequest',
|
|
2570
|
+
create: _khorsheed_dsh_room_room_answerApproval_parameter_0$schema,
|
|
2571
|
+
schema: _khorsheed_dsh_room_room_answerApproval_parameter_0$schema(),
|
|
2572
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"id":{"type":"string"},"outcome":{"type":"string","enum":["rejected","allowed-once"]}},"required":["sessionId","id","outcome"],"additionalProperties":true},
|
|
2573
|
+
},
|
|
2574
|
+
strictCodec: {
|
|
2575
|
+
mode: 'strict',
|
|
2576
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomAnswerApprovalRequest',
|
|
2577
|
+
create: _khorsheed_dsh_room_room_answerApproval_parameter_0_strict$schema,
|
|
2578
|
+
schema: _khorsheed_dsh_room_room_answerApproval_parameter_0_strict$schema(),
|
|
2579
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"id":{"type":"string"},"outcome":{"type":"string","enum":["rejected","allowed-once"]}},"required":["sessionId","id","outcome"],"additionalProperties":false},
|
|
2580
|
+
},
|
|
2581
|
+
},
|
|
2582
|
+
],
|
|
2583
|
+
result: {
|
|
2584
|
+
mode: 'strict',
|
|
2585
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomAnswerApprovalResult',
|
|
2586
|
+
create: _khorsheed_dsh_room_room_answerApproval_result$schema,
|
|
2587
|
+
schema: _khorsheed_dsh_room_room_answerApproval_result$schema(),
|
|
2588
|
+
description: 'ok, or `approval-not-pending` when it already ended.',
|
|
2589
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
2590
|
+
},
|
|
2591
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":1766,"column":9},
|
|
2592
|
+
},
|
|
2593
|
+
'room/answerQuestion': {
|
|
1344
2594
|
service: 'room',
|
|
1345
|
-
|
|
1346
|
-
method: 'addTask',
|
|
2595
|
+
description: 'The human answers a member\'s question card from the room.',
|
|
1347
2596
|
invocation: { kind: 'direct' },
|
|
1348
2597
|
parameters: [
|
|
1349
2598
|
{
|
|
1350
2599
|
name: 'request',
|
|
1351
|
-
|
|
2600
|
+
description: 'room session, card id, one answer per question.',
|
|
1352
2601
|
source: 'json',
|
|
1353
2602
|
codec: {
|
|
1354
2603
|
mode: 'strict',
|
|
1355
|
-
typeSymbol: '@khorsheed/dsh-room/types#
|
|
1356
|
-
create:
|
|
1357
|
-
schema:
|
|
2604
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomAnswerQuestionRequest',
|
|
2605
|
+
create: _khorsheed_dsh_room_room_answerQuestion_parameter_0$schema,
|
|
2606
|
+
schema: _khorsheed_dsh_room_room_answerQuestion_parameter_0$schema(),
|
|
2607
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"id":{"type":"string"},"answers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"selected":{"type":"array","items":{"type":"string"}},"custom":{"type":"string"}},"required":["id","selected"],"additionalProperties":true}}},"required":["sessionId","id","answers"],"additionalProperties":true},
|
|
2608
|
+
},
|
|
2609
|
+
strictCodec: {
|
|
2610
|
+
mode: 'strict',
|
|
2611
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomAnswerQuestionRequest',
|
|
2612
|
+
create: _khorsheed_dsh_room_room_answerQuestion_parameter_0_strict$schema,
|
|
2613
|
+
schema: _khorsheed_dsh_room_room_answerQuestion_parameter_0_strict$schema(),
|
|
2614
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"id":{"type":"string"},"answers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"selected":{"type":"array","items":{"type":"string"}},"custom":{"type":"string"}},"required":["id","selected"],"additionalProperties":false}}},"required":["sessionId","id","answers"],"additionalProperties":false},
|
|
1358
2615
|
},
|
|
1359
2616
|
},
|
|
1360
2617
|
],
|
|
1361
2618
|
result: {
|
|
1362
2619
|
mode: 'strict',
|
|
1363
|
-
typeSymbol: '@khorsheed/dsh-room/types#
|
|
1364
|
-
create:
|
|
1365
|
-
schema:
|
|
2620
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomAnswerQuestionResult',
|
|
2621
|
+
create: _khorsheed_dsh_room_room_answerQuestion_result$schema,
|
|
2622
|
+
schema: _khorsheed_dsh_room_room_answerQuestion_result$schema(),
|
|
2623
|
+
description: 'ok, or `question-not-pending` when it already ended.',
|
|
2624
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
1366
2625
|
},
|
|
1367
|
-
sourceLocation: {"file":"packages/room/src/index.ts","line":
|
|
2626
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":1820,"column":9},
|
|
1368
2627
|
},
|
|
1369
|
-
{
|
|
1370
|
-
id: '@khorsheed/dsh-room#room/cancel',
|
|
2628
|
+
'room/cancel': {
|
|
1371
2629
|
service: 'room',
|
|
1372
|
-
|
|
1373
|
-
method: 'cancel',
|
|
2630
|
+
description: 'Cancel a member\'s in-flight run through the local-agent facade. A hit journals the terminal `cancelled` edge immediately (the engine\'s own settle for that run then no-ops); a miss — no facade, no delegation handle, or nothing in flight — journals nothing and reports `cancelled: false`.',
|
|
1374
2631
|
invocation: { kind: 'direct' },
|
|
1375
2632
|
parameters: [
|
|
1376
2633
|
{
|
|
1377
2634
|
name: 'request',
|
|
1378
|
-
|
|
2635
|
+
description: 'room session, member name.',
|
|
1379
2636
|
source: 'json',
|
|
1380
2637
|
codec: {
|
|
1381
2638
|
mode: 'strict',
|
|
1382
2639
|
typeSymbol: '@khorsheed/dsh-room/types#RoomCancelRequest',
|
|
1383
2640
|
create: _khorsheed_dsh_room_room_cancel_parameter_0$schema,
|
|
1384
2641
|
schema: _khorsheed_dsh_room_room_cancel_parameter_0$schema(),
|
|
2642
|
+
jsonSchema: {"type":"object","properties":{"expectedRunId":{"type":"string","description":"Optional fencing for an execution card; a stale card must never stop a successor."},"expectedStartedAt":{"type":"number"},"sessionId":{"type":"string","description":"Room session."},"name":{"type":"string","description":"Member whose run should be cancelled."}},"required":["sessionId","name"],"additionalProperties":true},
|
|
2643
|
+
},
|
|
2644
|
+
strictCodec: {
|
|
2645
|
+
mode: 'strict',
|
|
2646
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomCancelRequest',
|
|
2647
|
+
create: _khorsheed_dsh_room_room_cancel_parameter_0_strict$schema,
|
|
2648
|
+
schema: _khorsheed_dsh_room_room_cancel_parameter_0_strict$schema(),
|
|
2649
|
+
jsonSchema: {"type":"object","properties":{"expectedRunId":{"type":"string","description":"Optional fencing for an execution card; a stale card must never stop a successor."},"expectedStartedAt":{"type":"number"},"sessionId":{"type":"string","description":"Room session."},"name":{"type":"string","description":"Member whose run should be cancelled."}},"required":["sessionId","name"],"additionalProperties":false},
|
|
1385
2650
|
},
|
|
1386
2651
|
},
|
|
1387
2652
|
],
|
|
@@ -1390,25 +2655,32 @@ export const TYPERT_REMOTE = {
|
|
|
1390
2655
|
typeSymbol: '@khorsheed/dsh-room/types#RoomCancelResult',
|
|
1391
2656
|
create: _khorsheed_dsh_room_room_cancel_result$schema,
|
|
1392
2657
|
schema: _khorsheed_dsh_room_room_cancel_result$schema(),
|
|
2658
|
+
description: 'the cancellation receipt, or a rejection.',
|
|
2659
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"value":{"type":"object","properties":{"cancelled":{"type":"boolean","description":"True when an in-flight run was found and cancelled."}},"required":["cancelled"],"additionalProperties":true}},"required":["ok","value"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
1393
2660
|
},
|
|
1394
|
-
sourceLocation: {"file":"packages/room/src/index.ts","line":
|
|
2661
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":2166,"column":9},
|
|
1395
2662
|
},
|
|
1396
|
-
{
|
|
1397
|
-
id: '@khorsheed/dsh-room#room/cancelChild',
|
|
2663
|
+
'room/cancelChild': {
|
|
1398
2664
|
service: 'room',
|
|
1399
|
-
|
|
1400
|
-
method: 'cancelChild',
|
|
2665
|
+
description: 'Native descendant controls share the host\'s continuation and cancellation channels.',
|
|
1401
2666
|
invocation: { kind: 'direct' },
|
|
1402
2667
|
parameters: [
|
|
1403
2668
|
{
|
|
1404
2669
|
name: 'request',
|
|
1405
|
-
wire: 'request',
|
|
1406
2670
|
source: 'json',
|
|
1407
2671
|
codec: {
|
|
1408
2672
|
mode: 'strict',
|
|
1409
2673
|
typeSymbol: '@khorsheed/dsh-room#room/cancelChild:request',
|
|
1410
2674
|
create: _khorsheed_dsh_room_room_cancelChild_parameter_0$schema,
|
|
1411
2675
|
schema: _khorsheed_dsh_room_room_cancelChild_parameter_0$schema(),
|
|
2676
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"childSessionId":{"type":"string"}},"required":["sessionId","childSessionId"],"additionalProperties":true},
|
|
2677
|
+
},
|
|
2678
|
+
strictCodec: {
|
|
2679
|
+
mode: 'strict',
|
|
2680
|
+
typeSymbol: '@khorsheed/dsh-room#room/cancelChild:request',
|
|
2681
|
+
create: _khorsheed_dsh_room_room_cancelChild_parameter_0_strict$schema,
|
|
2682
|
+
schema: _khorsheed_dsh_room_room_cancelChild_parameter_0_strict$schema(),
|
|
2683
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"childSessionId":{"type":"string"}},"required":["sessionId","childSessionId"],"additionalProperties":false},
|
|
1412
2684
|
},
|
|
1413
2685
|
},
|
|
1414
2686
|
],
|
|
@@ -1417,79 +2689,102 @@ export const TYPERT_REMOTE = {
|
|
|
1417
2689
|
typeSymbol: '@khorsheed/dsh-room/types#RoomCancelResult',
|
|
1418
2690
|
create: _khorsheed_dsh_room_room_cancelChild_result$schema,
|
|
1419
2691
|
schema: _khorsheed_dsh_room_room_cancelChild_result$schema(),
|
|
2692
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"value":{"type":"object","properties":{"cancelled":{"type":"boolean","description":"True when an in-flight run was found and cancelled."}},"required":["cancelled"],"additionalProperties":true}},"required":["ok","value"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
1420
2693
|
},
|
|
1421
|
-
sourceLocation: {"file":"packages/room/src/index.ts","line":
|
|
2694
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":2201,"column":9},
|
|
1422
2695
|
},
|
|
1423
|
-
{
|
|
1424
|
-
id: '@khorsheed/dsh-room#room/closeTask',
|
|
2696
|
+
'room/confirmRelay': {
|
|
1425
2697
|
service: 'room',
|
|
1426
|
-
|
|
1427
|
-
method: 'closeTask',
|
|
2698
|
+
description: 'Confirm a pending relay: journal the confirmed edge and dispatch the notification to the recipient as a continuation (`{from} 给你的通知: {content}`); the engine marks the relay sent once the recipient\'s own session receives the prompt.',
|
|
1428
2699
|
invocation: { kind: 'direct' },
|
|
1429
2700
|
parameters: [
|
|
1430
2701
|
{
|
|
1431
2702
|
name: 'request',
|
|
1432
|
-
|
|
2703
|
+
description: 'room session, relay id.',
|
|
1433
2704
|
source: 'json',
|
|
1434
2705
|
codec: {
|
|
1435
2706
|
mode: 'strict',
|
|
1436
|
-
typeSymbol: '@khorsheed/dsh-room/types#
|
|
1437
|
-
create:
|
|
1438
|
-
schema:
|
|
2707
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomRelayResolveRequest',
|
|
2708
|
+
create: _khorsheed_dsh_room_room_confirmRelay_parameter_0$schema,
|
|
2709
|
+
schema: _khorsheed_dsh_room_room_confirmRelay_parameter_0$schema(),
|
|
2710
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"relayId":{"type":"string","description":"The relay to resolve."}},"required":["sessionId","relayId"],"additionalProperties":true},
|
|
2711
|
+
},
|
|
2712
|
+
strictCodec: {
|
|
2713
|
+
mode: 'strict',
|
|
2714
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomRelayResolveRequest',
|
|
2715
|
+
create: _khorsheed_dsh_room_room_confirmRelay_parameter_0_strict$schema,
|
|
2716
|
+
schema: _khorsheed_dsh_room_room_confirmRelay_parameter_0_strict$schema(),
|
|
2717
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"relayId":{"type":"string","description":"The relay to resolve."}},"required":["sessionId","relayId"],"additionalProperties":false},
|
|
1439
2718
|
},
|
|
1440
2719
|
},
|
|
1441
2720
|
],
|
|
1442
2721
|
result: {
|
|
1443
2722
|
mode: 'strict',
|
|
1444
|
-
typeSymbol: '@khorsheed/dsh-room/types#
|
|
1445
|
-
create:
|
|
1446
|
-
schema:
|
|
2723
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomRelayResolveResult',
|
|
2724
|
+
create: _khorsheed_dsh_room_room_confirmRelay_result$schema,
|
|
2725
|
+
schema: _khorsheed_dsh_room_room_confirmRelay_result$schema(),
|
|
2726
|
+
description: 'the resolution receipt, or a rejection.',
|
|
2727
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"value":{"type":"object","properties":{"relayId":{"type":"string"}},"required":["relayId"],"additionalProperties":true}},"required":["ok","value"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
1447
2728
|
},
|
|
1448
|
-
sourceLocation: {"file":"packages/room/src/index.ts","line":
|
|
2729
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":1956,"column":9},
|
|
1449
2730
|
},
|
|
1450
|
-
{
|
|
1451
|
-
id: '@khorsheed/dsh-room#room/confirmRelay',
|
|
2731
|
+
'room/dismissHelpNudge': {
|
|
1452
2732
|
service: 'room',
|
|
1453
|
-
|
|
1454
|
-
method: 'confirmRelay',
|
|
2733
|
+
description: 'Dismiss the 加入房间成员 hint for one outside session (it never shows again).',
|
|
1455
2734
|
invocation: { kind: 'direct' },
|
|
1456
2735
|
parameters: [
|
|
1457
2736
|
{
|
|
1458
2737
|
name: 'request',
|
|
1459
|
-
|
|
2738
|
+
description: 'room session, the outside session.',
|
|
1460
2739
|
source: 'json',
|
|
1461
2740
|
codec: {
|
|
1462
2741
|
mode: 'strict',
|
|
1463
|
-
typeSymbol: '@khorsheed/dsh-room/types#
|
|
1464
|
-
create:
|
|
1465
|
-
schema:
|
|
2742
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomHelpLinkRequest',
|
|
2743
|
+
create: _khorsheed_dsh_room_room_dismissHelpNudge_parameter_0$schema,
|
|
2744
|
+
schema: _khorsheed_dsh_room_room_dismissHelpNudge_parameter_0$schema(),
|
|
2745
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"target":{"type":"string","description":"The outside session."},"title":{"type":"string","description":"Its title (link only)."}},"required":["sessionId","target"],"additionalProperties":true},
|
|
2746
|
+
},
|
|
2747
|
+
strictCodec: {
|
|
2748
|
+
mode: 'strict',
|
|
2749
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomHelpLinkRequest',
|
|
2750
|
+
create: _khorsheed_dsh_room_room_dismissHelpNudge_parameter_0_strict$schema,
|
|
2751
|
+
schema: _khorsheed_dsh_room_room_dismissHelpNudge_parameter_0_strict$schema(),
|
|
2752
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"target":{"type":"string","description":"The outside session."},"title":{"type":"string","description":"Its title (link only)."}},"required":["sessionId","target"],"additionalProperties":false},
|
|
1466
2753
|
},
|
|
1467
2754
|
},
|
|
1468
2755
|
],
|
|
1469
2756
|
result: {
|
|
1470
2757
|
mode: 'strict',
|
|
1471
|
-
typeSymbol: '@khorsheed/dsh-room/types#
|
|
1472
|
-
create:
|
|
1473
|
-
schema:
|
|
2758
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomHelpLinkResult',
|
|
2759
|
+
create: _khorsheed_dsh_room_room_dismissHelpNudge_result$schema,
|
|
2760
|
+
schema: _khorsheed_dsh_room_room_dismissHelpNudge_result$schema(),
|
|
2761
|
+
description: 'ok.',
|
|
2762
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
1474
2763
|
},
|
|
1475
|
-
sourceLocation: {"file":"packages/room/src/index.ts","line":
|
|
2764
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":2103,"column":9},
|
|
1476
2765
|
},
|
|
1477
|
-
{
|
|
1478
|
-
id: '@khorsheed/dsh-room#room/dismissRelay',
|
|
2766
|
+
'room/dismissRelay': {
|
|
1479
2767
|
service: 'room',
|
|
1480
|
-
|
|
1481
|
-
method: 'dismissRelay',
|
|
2768
|
+
description: 'Dismiss a pending relay: the notification never reaches anyone.',
|
|
1482
2769
|
invocation: { kind: 'direct' },
|
|
1483
2770
|
parameters: [
|
|
1484
2771
|
{
|
|
1485
2772
|
name: 'request',
|
|
1486
|
-
|
|
2773
|
+
description: 'room session, relay id.',
|
|
1487
2774
|
source: 'json',
|
|
1488
2775
|
codec: {
|
|
1489
2776
|
mode: 'strict',
|
|
1490
2777
|
typeSymbol: '@khorsheed/dsh-room/types#RoomRelayResolveRequest',
|
|
1491
2778
|
create: _khorsheed_dsh_room_room_dismissRelay_parameter_0$schema,
|
|
1492
2779
|
schema: _khorsheed_dsh_room_room_dismissRelay_parameter_0$schema(),
|
|
2780
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"relayId":{"type":"string","description":"The relay to resolve."}},"required":["sessionId","relayId"],"additionalProperties":true},
|
|
2781
|
+
},
|
|
2782
|
+
strictCodec: {
|
|
2783
|
+
mode: 'strict',
|
|
2784
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomRelayResolveRequest',
|
|
2785
|
+
create: _khorsheed_dsh_room_room_dismissRelay_parameter_0_strict$schema,
|
|
2786
|
+
schema: _khorsheed_dsh_room_room_dismissRelay_parameter_0_strict$schema(),
|
|
2787
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"relayId":{"type":"string","description":"The relay to resolve."}},"required":["sessionId","relayId"],"additionalProperties":false},
|
|
1493
2788
|
},
|
|
1494
2789
|
},
|
|
1495
2790
|
],
|
|
@@ -1498,25 +2793,33 @@ export const TYPERT_REMOTE = {
|
|
|
1498
2793
|
typeSymbol: '@khorsheed/dsh-room/types#RoomRelayResolveResult',
|
|
1499
2794
|
create: _khorsheed_dsh_room_room_dismissRelay_result$schema,
|
|
1500
2795
|
schema: _khorsheed_dsh_room_room_dismissRelay_result$schema(),
|
|
2796
|
+
description: 'the resolution receipt, or a rejection.',
|
|
2797
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"value":{"type":"object","properties":{"relayId":{"type":"string"}},"required":["relayId"],"additionalProperties":true}},"required":["ok","value"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
1501
2798
|
},
|
|
1502
|
-
sourceLocation: {"file":"packages/room/src/index.ts","line":
|
|
2799
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":2118,"column":9},
|
|
1503
2800
|
},
|
|
1504
|
-
{
|
|
1505
|
-
id: '@khorsheed/dsh-room#room/getState',
|
|
2801
|
+
'room/getState': {
|
|
1506
2802
|
service: 'room',
|
|
1507
|
-
|
|
1508
|
-
method: 'getState',
|
|
2803
|
+
description: 'Replay the room\'s journal into the derived state (roster, notification relays, task board, run states).',
|
|
1509
2804
|
invocation: { kind: 'direct' },
|
|
1510
2805
|
parameters: [
|
|
1511
2806
|
{
|
|
1512
2807
|
name: 'request',
|
|
1513
|
-
|
|
2808
|
+
description: 'room session identity.',
|
|
1514
2809
|
source: 'json',
|
|
1515
2810
|
codec: {
|
|
1516
2811
|
mode: 'strict',
|
|
1517
2812
|
typeSymbol: '@khorsheed/dsh-room/types#RoomGetStateRequest',
|
|
1518
2813
|
create: _khorsheed_dsh_room_room_getState_parameter_0$schema,
|
|
1519
2814
|
schema: _khorsheed_dsh_room_room_getState_parameter_0$schema(),
|
|
2815
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session to replay."}},"required":["sessionId"],"additionalProperties":true},
|
|
2816
|
+
},
|
|
2817
|
+
strictCodec: {
|
|
2818
|
+
mode: 'strict',
|
|
2819
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomGetStateRequest',
|
|
2820
|
+
create: _khorsheed_dsh_room_room_getState_parameter_0_strict$schema,
|
|
2821
|
+
schema: _khorsheed_dsh_room_room_getState_parameter_0_strict$schema(),
|
|
2822
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session to replay."}},"required":["sessionId"],"additionalProperties":false},
|
|
1520
2823
|
},
|
|
1521
2824
|
},
|
|
1522
2825
|
],
|
|
@@ -1525,25 +2828,33 @@ export const TYPERT_REMOTE = {
|
|
|
1525
2828
|
typeSymbol: '@khorsheed/dsh-room/types#RoomGetStateResult',
|
|
1526
2829
|
create: _khorsheed_dsh_room_room_getState_result$schema,
|
|
1527
2830
|
schema: _khorsheed_dsh_room_room_getState_result$schema(),
|
|
2831
|
+
description: 'the replayed state, or a rejection from the closed failure union.',
|
|
2832
|
+
jsonSchemaError: 'typert tool schema: recursive selected type requires a supported JSON value declaration',
|
|
1528
2833
|
},
|
|
1529
|
-
sourceLocation: {"file":"packages/room/src/index.ts","line":
|
|
2834
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":767,"column":9},
|
|
1530
2835
|
},
|
|
1531
|
-
{
|
|
1532
|
-
id: '@khorsheed/dsh-room#room/invite',
|
|
2836
|
+
'room/invite': {
|
|
1533
2837
|
service: 'room',
|
|
1534
|
-
|
|
1535
|
-
method: 'invite',
|
|
2838
|
+
description: 'Invite a CLI member (the human path; see inviteMember).',
|
|
1536
2839
|
invocation: { kind: 'direct' },
|
|
1537
2840
|
parameters: [
|
|
1538
2841
|
{
|
|
1539
2842
|
name: 'request',
|
|
1540
|
-
|
|
2843
|
+
description: 'room session, provider, name, optional cwd, instructions and first task.',
|
|
1541
2844
|
source: 'json',
|
|
1542
2845
|
codec: {
|
|
1543
2846
|
mode: 'strict',
|
|
1544
2847
|
typeSymbol: '@khorsheed/dsh-room/types#RoomInviteRequest',
|
|
1545
2848
|
create: _khorsheed_dsh_room_room_invite_parameter_0$schema,
|
|
1546
2849
|
schema: _khorsheed_dsh_room_room_invite_parameter_0$schema(),
|
|
2850
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"kind":{"type":"string","enum":["native","cli"],"description":"`cli` (default): an external CLI through the local-agent family. `native`: a DSH child agent in this host process, composing `preset`."},"preset":{"type":"string","description":"The member's mode: the host agent preset id. A native member composes it (omitted = the host default); a CLI member reaches its plugin tools through the bridge (omitted = no mode)."},"inheritPreset":{"type":"boolean","description":"With no `preset`: take the room session's own mode (the coordinator's invite default)."},"provider":{"type":"string","description":"CLI provider id (non-blank)."},"name":{"type":"string","description":"Addressing/display name: unique in the room, no whitespace, no `@`."},"instructions":{"type":"string","description":"Role instructions, prepended to the member's first dispatch."},"role":{"type":"string","description":"Short public role (≤ 30 chars); blank/omitted = none."},"cwd":{"type":"string","description":"Member-level working directory (empty/omitted = inherits the room session's cwd). Recorded on the roster; not yet passed to the delegation facade (family need R2 pending)."},"firstTask":{"type":"string","description":"Optional first task, dispatched to the member as soon as it joins."},"note":{"type":"string","description":"What the inviter waits for when the first task reports (see RoomDispatchEvent.note)."},"model":{"type":"string","description":"The delegation's model (blank/omitted = follow the harness default). Applies to local-agent harness providers only: it lands as the facade `start` call's `model` option, bound at spawn for exec and live alike."},"effort":{"type":"string","description":"The delegation's reasoning effort (blank/omitted = follow the harness default): the facade `start` call's `effort` option, bound at spawn alongside the model."}},"required":["sessionId","provider","name"],"additionalProperties":true},
|
|
2851
|
+
},
|
|
2852
|
+
strictCodec: {
|
|
2853
|
+
mode: 'strict',
|
|
2854
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomInviteRequest',
|
|
2855
|
+
create: _khorsheed_dsh_room_room_invite_parameter_0_strict$schema,
|
|
2856
|
+
schema: _khorsheed_dsh_room_room_invite_parameter_0_strict$schema(),
|
|
2857
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"kind":{"type":"string","enum":["native","cli"],"description":"`cli` (default): an external CLI through the local-agent family. `native`: a DSH child agent in this host process, composing `preset`."},"preset":{"type":"string","description":"The member's mode: the host agent preset id. A native member composes it (omitted = the host default); a CLI member reaches its plugin tools through the bridge (omitted = no mode)."},"inheritPreset":{"type":"boolean","description":"With no `preset`: take the room session's own mode (the coordinator's invite default)."},"provider":{"type":"string","description":"CLI provider id (non-blank)."},"name":{"type":"string","description":"Addressing/display name: unique in the room, no whitespace, no `@`."},"instructions":{"type":"string","description":"Role instructions, prepended to the member's first dispatch."},"role":{"type":"string","description":"Short public role (≤ 30 chars); blank/omitted = none."},"cwd":{"type":"string","description":"Member-level working directory (empty/omitted = inherits the room session's cwd). Recorded on the roster; not yet passed to the delegation facade (family need R2 pending)."},"firstTask":{"type":"string","description":"Optional first task, dispatched to the member as soon as it joins."},"note":{"type":"string","description":"What the inviter waits for when the first task reports (see RoomDispatchEvent.note)."},"model":{"type":"string","description":"The delegation's model (blank/omitted = follow the harness default). Applies to local-agent harness providers only: it lands as the facade `start` call's `model` option, bound at spawn for exec and live alike."},"effort":{"type":"string","description":"The delegation's reasoning effort (blank/omitted = follow the harness default): the facade `start` call's `effort` option, bound at spawn alongside the model."}},"required":["sessionId","provider","name"],"additionalProperties":false},
|
|
1547
2858
|
},
|
|
1548
2859
|
},
|
|
1549
2860
|
],
|
|
@@ -1552,25 +2863,33 @@ export const TYPERT_REMOTE = {
|
|
|
1552
2863
|
typeSymbol: '@khorsheed/dsh-room/types#RoomInviteResult',
|
|
1553
2864
|
create: _khorsheed_dsh_room_room_invite_result$schema,
|
|
1554
2865
|
schema: _khorsheed_dsh_room_room_invite_result$schema(),
|
|
2866
|
+
description: 'the invitation receipt, or a rejection.',
|
|
2867
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"value":{"type":"object","properties":{"name":{"type":"string","description":"The accepted member name."},"pendingFirstTask":{"type":"boolean","description":"True when a first task was supplied and dispatched with the invitation."},"preset":{"type":"string","description":"The member's mode (preset id), when it has one."}},"required":["name","pendingFirstTask"],"additionalProperties":true}},"required":["ok","value"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
1555
2868
|
},
|
|
1556
|
-
sourceLocation: {"file":"packages/room/src/index.ts","line":
|
|
2869
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":909,"column":3},
|
|
1557
2870
|
},
|
|
1558
|
-
{
|
|
1559
|
-
id: '@khorsheed/dsh-room#room/isRoom',
|
|
2871
|
+
'room/isRoom': {
|
|
1560
2872
|
service: 'room',
|
|
1561
|
-
|
|
1562
|
-
method: 'isRoom',
|
|
2873
|
+
description: 'Probe whether a session is a room: replay its event log looking for the `room/created` marker. Side-effect-free: a cold session answers from a persistence inspection, so opening any session never resumes its agent.',
|
|
1563
2874
|
invocation: { kind: 'direct' },
|
|
1564
2875
|
parameters: [
|
|
1565
2876
|
{
|
|
1566
2877
|
name: 'request',
|
|
1567
|
-
|
|
2878
|
+
description: 'session identity.',
|
|
1568
2879
|
source: 'json',
|
|
1569
2880
|
codec: {
|
|
1570
2881
|
mode: 'strict',
|
|
1571
2882
|
typeSymbol: '@khorsheed/dsh-room/types#RoomIsRoomRequest',
|
|
1572
2883
|
create: _khorsheed_dsh_room_room_isRoom_parameter_0$schema,
|
|
1573
2884
|
schema: _khorsheed_dsh_room_room_isRoom_parameter_0$schema(),
|
|
2885
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Session to probe."}},"required":["sessionId"],"additionalProperties":true},
|
|
2886
|
+
},
|
|
2887
|
+
strictCodec: {
|
|
2888
|
+
mode: 'strict',
|
|
2889
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomIsRoomRequest',
|
|
2890
|
+
create: _khorsheed_dsh_room_room_isRoom_parameter_0_strict$schema,
|
|
2891
|
+
schema: _khorsheed_dsh_room_room_isRoom_parameter_0_strict$schema(),
|
|
2892
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Session to probe."}},"required":["sessionId"],"additionalProperties":false},
|
|
1574
2893
|
},
|
|
1575
2894
|
},
|
|
1576
2895
|
],
|
|
@@ -1579,25 +2898,67 @@ export const TYPERT_REMOTE = {
|
|
|
1579
2898
|
typeSymbol: '@khorsheed/dsh-room#room/isRoom:result',
|
|
1580
2899
|
create: _khorsheed_dsh_room_room_isRoom_result$schema,
|
|
1581
2900
|
schema: _khorsheed_dsh_room_room_isRoom_result$schema(),
|
|
2901
|
+
description: 'true when the session carries the marker (false for unknown sessions too).',
|
|
2902
|
+
jsonSchema: {"type":"boolean"},
|
|
2903
|
+
},
|
|
2904
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":444,"column":9},
|
|
2905
|
+
},
|
|
2906
|
+
'room/linkSession': {
|
|
2907
|
+
service: 'room',
|
|
2908
|
+
description: 'Keep an outside session on the member list (「加入房间成员」): only a shortcut for asking it — it stays in its own session, asks still go through room_help, and its usage stays its own.',
|
|
2909
|
+
invocation: { kind: 'direct' },
|
|
2910
|
+
parameters: [
|
|
2911
|
+
{
|
|
2912
|
+
name: 'request',
|
|
2913
|
+
description: 'room session, the outside session and its title.',
|
|
2914
|
+
source: 'json',
|
|
2915
|
+
codec: {
|
|
2916
|
+
mode: 'strict',
|
|
2917
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomHelpLinkRequest',
|
|
2918
|
+
create: _khorsheed_dsh_room_room_linkSession_parameter_0$schema,
|
|
2919
|
+
schema: _khorsheed_dsh_room_room_linkSession_parameter_0$schema(),
|
|
2920
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"target":{"type":"string","description":"The outside session."},"title":{"type":"string","description":"Its title (link only)."}},"required":["sessionId","target"],"additionalProperties":true},
|
|
2921
|
+
},
|
|
2922
|
+
strictCodec: {
|
|
2923
|
+
mode: 'strict',
|
|
2924
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomHelpLinkRequest',
|
|
2925
|
+
create: _khorsheed_dsh_room_room_linkSession_parameter_0_strict$schema,
|
|
2926
|
+
schema: _khorsheed_dsh_room_room_linkSession_parameter_0_strict$schema(),
|
|
2927
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"target":{"type":"string","description":"The outside session."},"title":{"type":"string","description":"Its title (link only)."}},"required":["sessionId","target"],"additionalProperties":false},
|
|
2928
|
+
},
|
|
2929
|
+
},
|
|
2930
|
+
],
|
|
2931
|
+
result: {
|
|
2932
|
+
mode: 'strict',
|
|
2933
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomHelpLinkResult',
|
|
2934
|
+
create: _khorsheed_dsh_room_room_linkSession_result$schema,
|
|
2935
|
+
schema: _khorsheed_dsh_room_room_linkSession_result$schema(),
|
|
2936
|
+
description: 'ok, or a rejection.',
|
|
2937
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
1582
2938
|
},
|
|
1583
|
-
sourceLocation: {"file":"packages/room/src/index.ts","line":
|
|
2939
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":2069,"column":9},
|
|
1584
2940
|
},
|
|
1585
|
-
{
|
|
1586
|
-
id: '@khorsheed/dsh-room#room/listProviders',
|
|
2941
|
+
'room/listProviders': {
|
|
1587
2942
|
service: 'room',
|
|
1588
|
-
|
|
1589
|
-
method: 'listProviders',
|
|
2943
|
+
description: 'List the invitable CLI providers: the local-agent roster with each harness\'s auth state, plus the delegation-facade verdict (absent facade = CLI members undispatchable; the dialog greys the section instead of failing). Harnesses without a delegation provider are record-only and are not invitable.',
|
|
1590
2944
|
invocation: { kind: 'direct' },
|
|
1591
2945
|
parameters: [
|
|
1592
2946
|
{
|
|
1593
|
-
name: '
|
|
1594
|
-
wire: '_request',
|
|
2947
|
+
name: 'request',
|
|
1595
2948
|
source: 'json',
|
|
1596
2949
|
codec: {
|
|
1597
2950
|
mode: 'strict',
|
|
1598
2951
|
typeSymbol: '@khorsheed/dsh-room/types#RoomListProvidersRequest',
|
|
1599
2952
|
create: _khorsheed_dsh_room_room_listProviders_parameter_0$schema,
|
|
1600
2953
|
schema: _khorsheed_dsh_room_room_listProviders_parameter_0$schema(),
|
|
2954
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"The session the invite is for: the result then carries its mode (`sessionPreset`)."}},"required":[],"additionalProperties":true},
|
|
2955
|
+
},
|
|
2956
|
+
strictCodec: {
|
|
2957
|
+
mode: 'strict',
|
|
2958
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomListProvidersRequest',
|
|
2959
|
+
create: _khorsheed_dsh_room_room_listProviders_parameter_0_strict$schema,
|
|
2960
|
+
schema: _khorsheed_dsh_room_room_listProviders_parameter_0_strict$schema(),
|
|
2961
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"The session the invite is for: the result then carries its mode (`sessionPreset`)."}},"required":[],"additionalProperties":false},
|
|
1601
2962
|
},
|
|
1602
2963
|
},
|
|
1603
2964
|
],
|
|
@@ -1606,25 +2967,32 @@ export const TYPERT_REMOTE = {
|
|
|
1606
2967
|
typeSymbol: '@khorsheed/dsh-room/types#RoomProviderList',
|
|
1607
2968
|
create: _khorsheed_dsh_room_room_listProviders_result$schema,
|
|
1608
2969
|
schema: _khorsheed_dsh_room_room_listProviders_result$schema(),
|
|
2970
|
+
description: 'the provider list and the facade verdict.',
|
|
2971
|
+
jsonSchema: {"type":"object","properties":{"localAgentAvailable":{"type":"boolean","description":"False when the local-agent delegation facade is absent (CLI members undispatchable)."},"providers":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","description":"The provider id invite/dispatch uses (the harness's delegationProvider)."},"displayName":{"type":"string"},"harness":{"type":"string","description":"The roster harness name — the lookup key for the localAgentGateway `harnessModel` read (the invite dialog's model picker). Absent only on a pre-model-broker family core; the dialog then serves a plain text input."},"authenticated":{"type":"boolean","description":"Whether the harness's scoped home holds usable credentials."}},"required":["provider","displayName","authenticated"],"additionalProperties":true}},"presets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"isDefault":{"type":"boolean"},"broken":{"type":"string","description":"Why the preset cannot be composed right now."}},"required":["id","isDefault"],"additionalProperties":true},"description":"The host's agent presets a native DSH member may compose; absent when the composition mounts no preset registry (native members then run the plain composition)."},"sessionPreset":{"type":"string","description":"The requested session's own mode (preset id), when known: the dialog's default mode."}},"required":["localAgentAvailable","providers"],"additionalProperties":true},
|
|
1609
2972
|
},
|
|
1610
|
-
sourceLocation: {"file":"packages/room/src/index.ts","line":
|
|
2973
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":493,"column":9},
|
|
1611
2974
|
},
|
|
1612
|
-
{
|
|
1613
|
-
id: '@khorsheed/dsh-room#room/planCommand',
|
|
2975
|
+
'room/planCommand': {
|
|
1614
2976
|
service: 'room',
|
|
1615
|
-
|
|
1616
|
-
method: 'planCommand',
|
|
2977
|
+
description: 'Human UI and native/external tools share the same durable transition service.',
|
|
1617
2978
|
invocation: { kind: 'direct' },
|
|
1618
2979
|
parameters: [
|
|
1619
2980
|
{
|
|
1620
2981
|
name: 'request',
|
|
1621
|
-
wire: 'request',
|
|
1622
2982
|
source: 'json',
|
|
1623
2983
|
codec: {
|
|
1624
2984
|
mode: 'strict',
|
|
1625
2985
|
typeSymbol: '@khorsheed/dsh-room#room/planCommand:request',
|
|
1626
2986
|
create: _khorsheed_dsh_room_room_planCommand_parameter_0$schema,
|
|
1627
2987
|
schema: _khorsheed_dsh_room_room_planCommand_parameter_0$schema(),
|
|
2988
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"command":{"type":"string"}},"required":["sessionId","command"],"additionalProperties":true},
|
|
2989
|
+
},
|
|
2990
|
+
strictCodec: {
|
|
2991
|
+
mode: 'strict',
|
|
2992
|
+
typeSymbol: '@khorsheed/dsh-room#room/planCommand:request',
|
|
2993
|
+
create: _khorsheed_dsh_room_room_planCommand_parameter_0_strict$schema,
|
|
2994
|
+
schema: _khorsheed_dsh_room_room_planCommand_parameter_0_strict$schema(),
|
|
2995
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"command":{"type":"string"}},"required":["sessionId","command"],"additionalProperties":false},
|
|
1628
2996
|
},
|
|
1629
2997
|
},
|
|
1630
2998
|
],
|
|
@@ -1633,25 +3001,32 @@ export const TYPERT_REMOTE = {
|
|
|
1633
3001
|
typeSymbol: '@khorsheed/dsh-room#room/planCommand:result',
|
|
1634
3002
|
create: _khorsheed_dsh_room_room_planCommand_result$schema,
|
|
1635
3003
|
schema: _khorsheed_dsh_room_room_planCommand_result$schema(),
|
|
3004
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"message":{"type":"string"}},"required":["ok","message"],"additionalProperties":true}]},
|
|
1636
3005
|
},
|
|
1637
|
-
sourceLocation: {"file":"packages/room/src/index.ts","line":
|
|
3006
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":1666,"column":9},
|
|
1638
3007
|
},
|
|
1639
|
-
{
|
|
1640
|
-
id: '@khorsheed/dsh-room#room/postMessage',
|
|
3008
|
+
'room/postMessage': {
|
|
1641
3009
|
service: 'room',
|
|
1642
|
-
|
|
1643
|
-
method: 'postMessage',
|
|
3010
|
+
description: 'Post a human',
|
|
1644
3011
|
invocation: { kind: 'direct' },
|
|
1645
3012
|
parameters: [
|
|
1646
3013
|
{
|
|
1647
3014
|
name: 'request',
|
|
1648
|
-
|
|
3015
|
+
description: 'room session, raw composer text, and the menu-picked addressees.',
|
|
1649
3016
|
source: 'json',
|
|
1650
3017
|
codec: {
|
|
1651
3018
|
mode: 'strict',
|
|
1652
3019
|
typeSymbol: '@khorsheed/dsh-room/types#RoomPostMessageRequest',
|
|
1653
3020
|
create: _khorsheed_dsh_room_room_postMessage_parameter_0$schema,
|
|
1654
3021
|
schema: _khorsheed_dsh_room_room_postMessage_parameter_0$schema(),
|
|
3022
|
+
jsonSchema: {"type":"object","properties":{"requestId":{"type":"string"},"sessionId":{"type":"string","description":"Room session."},"text":{"type":"string","description":"Raw composer text: leading `@name` tokens address members."},"targets":{"type":"array","items":{"type":"string"},"description":"Menu-picked addressees (the room composer's mention menu records a pick as explicit addressing even when the `@name` sits mid-sentence). Unioned with the parsed leading tokens and validated against the roster the same way; the text itself is dispatched verbatim either way."},"task":{"type":"string","description":"The composer's task tag: `new` or a task root id (see RoomSetTaskHintRequest)."}},"required":["sessionId","text"],"additionalProperties":true},
|
|
3023
|
+
},
|
|
3024
|
+
strictCodec: {
|
|
3025
|
+
mode: 'strict',
|
|
3026
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomPostMessageRequest',
|
|
3027
|
+
create: _khorsheed_dsh_room_room_postMessage_parameter_0_strict$schema,
|
|
3028
|
+
schema: _khorsheed_dsh_room_room_postMessage_parameter_0_strict$schema(),
|
|
3029
|
+
jsonSchema: {"type":"object","properties":{"requestId":{"type":"string"},"sessionId":{"type":"string","description":"Room session."},"text":{"type":"string","description":"Raw composer text: leading `@name` tokens address members."},"targets":{"type":"array","items":{"type":"string"},"description":"Menu-picked addressees (the room composer's mention menu records a pick as explicit addressing even when the `@name` sits mid-sentence). Unioned with the parsed leading tokens and validated against the roster the same way; the text itself is dispatched verbatim either way."},"task":{"type":"string","description":"The composer's task tag: `new` or a task root id (see RoomSetTaskHintRequest)."}},"required":["sessionId","text"],"additionalProperties":false},
|
|
1655
3030
|
},
|
|
1656
3031
|
},
|
|
1657
3032
|
],
|
|
@@ -1660,25 +3035,32 @@ export const TYPERT_REMOTE = {
|
|
|
1660
3035
|
typeSymbol: '@khorsheed/dsh-room/types#RoomPostMessageResult',
|
|
1661
3036
|
create: _khorsheed_dsh_room_room_postMessage_result$schema,
|
|
1662
3037
|
schema: _khorsheed_dsh_room_room_postMessage_result$schema(),
|
|
3038
|
+
description: 'the parse receipt, or a rejection.',
|
|
3039
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"value":{"type":"object","properties":{"parsed":{"type":"object","properties":{"targets":{"type":"array","items":{"type":"string"},"description":"Addressed members (never empty — a bare message is a `no-targets` rejection)."},"text":{"type":"string","description":"The message body with the leading"}},"required":["targets","text"],"additionalProperties":true},"seq":{"type":"number","description":"Seq of the appended journal event."}},"required":["parsed","seq"],"additionalProperties":true}},"required":["ok","value"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
1663
3040
|
},
|
|
1664
|
-
sourceLocation: {"file":"packages/room/src/index.ts","line":
|
|
3041
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":1187,"column":9},
|
|
1665
3042
|
},
|
|
1666
|
-
{
|
|
1667
|
-
id: '@khorsheed/dsh-room#room/prepareMember',
|
|
3043
|
+
'room/prepareMember': {
|
|
1668
3044
|
service: 'room',
|
|
1669
|
-
|
|
1670
|
-
method: 'prepareMember',
|
|
3045
|
+
description: 'Native preparation creates no unrelated conversation turn and leaves the role unchanged.',
|
|
1671
3046
|
invocation: { kind: 'direct' },
|
|
1672
3047
|
parameters: [
|
|
1673
3048
|
{
|
|
1674
3049
|
name: 'request',
|
|
1675
|
-
wire: 'request',
|
|
1676
3050
|
source: 'json',
|
|
1677
3051
|
codec: {
|
|
1678
3052
|
mode: 'strict',
|
|
1679
3053
|
typeSymbol: '@khorsheed/dsh-room/types#RoomPrepareMemberRequest',
|
|
1680
3054
|
create: _khorsheed_dsh_room_room_prepareMember_parameter_0$schema,
|
|
1681
3055
|
schema: _khorsheed_dsh_room_room_prepareMember_parameter_0$schema(),
|
|
3056
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"name":{"type":"string"}},"required":["sessionId","name"],"additionalProperties":true},
|
|
3057
|
+
},
|
|
3058
|
+
strictCodec: {
|
|
3059
|
+
mode: 'strict',
|
|
3060
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomPrepareMemberRequest',
|
|
3061
|
+
create: _khorsheed_dsh_room_room_prepareMember_parameter_0_strict$schema,
|
|
3062
|
+
schema: _khorsheed_dsh_room_room_prepareMember_parameter_0_strict$schema(),
|
|
3063
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"name":{"type":"string"}},"required":["sessionId","name"],"additionalProperties":false},
|
|
1682
3064
|
},
|
|
1683
3065
|
},
|
|
1684
3066
|
],
|
|
@@ -1687,25 +3069,31 @@ export const TYPERT_REMOTE = {
|
|
|
1687
3069
|
typeSymbol: '@khorsheed/dsh-room/types#RoomPrepareMemberResult',
|
|
1688
3070
|
create: _khorsheed_dsh_room_room_prepareMember_result$schema,
|
|
1689
3071
|
schema: _khorsheed_dsh_room_room_prepareMember_result$schema(),
|
|
3072
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"value":{"type":"object","properties":{"childSessionId":{"type":"string"}},"required":["childSessionId"],"additionalProperties":true}},"required":["ok","value"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
1690
3073
|
},
|
|
1691
|
-
sourceLocation: {"file":"packages/room/src/index.ts","line":
|
|
3074
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":987,"column":9},
|
|
1692
3075
|
},
|
|
1693
|
-
{
|
|
1694
|
-
id: '@khorsheed/dsh-room#room/reconcileDelivery',
|
|
3076
|
+
'room/reconcileDelivery': {
|
|
1695
3077
|
service: 'room',
|
|
1696
|
-
|
|
1697
|
-
method: 'reconcileDelivery',
|
|
3078
|
+
description: 'A human records the known result before releasing a crashed member\'s queued work.',
|
|
1698
3079
|
invocation: { kind: 'direct' },
|
|
1699
3080
|
parameters: [
|
|
1700
3081
|
{
|
|
1701
3082
|
name: 'request',
|
|
1702
|
-
wire: 'request',
|
|
1703
3083
|
source: 'json',
|
|
1704
3084
|
codec: {
|
|
1705
3085
|
mode: 'strict',
|
|
1706
3086
|
typeSymbol: '@khorsheed/dsh-room/types#RoomReconcileDeliveryRequest',
|
|
1707
3087
|
create: _khorsheed_dsh_room_room_reconcileDelivery_parameter_0$schema,
|
|
1708
3088
|
schema: _khorsheed_dsh_room_room_reconcileDelivery_parameter_0$schema(),
|
|
3089
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"deliveryId":{"type":"string"},"outcome":{"type":"string","enum":["cancelled","done"]},"evidence":{"type":"string"}},"required":["sessionId","deliveryId","outcome","evidence"],"additionalProperties":true},
|
|
3090
|
+
},
|
|
3091
|
+
strictCodec: {
|
|
3092
|
+
mode: 'strict',
|
|
3093
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomReconcileDeliveryRequest',
|
|
3094
|
+
create: _khorsheed_dsh_room_room_reconcileDelivery_parameter_0_strict$schema,
|
|
3095
|
+
schema: _khorsheed_dsh_room_room_reconcileDelivery_parameter_0_strict$schema(),
|
|
3096
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"deliveryId":{"type":"string"},"outcome":{"type":"string","enum":["cancelled","done"]},"evidence":{"type":"string"}},"required":["sessionId","deliveryId","outcome","evidence"],"additionalProperties":false},
|
|
1709
3097
|
},
|
|
1710
3098
|
},
|
|
1711
3099
|
],
|
|
@@ -1714,25 +3102,67 @@ export const TYPERT_REMOTE = {
|
|
|
1714
3102
|
typeSymbol: '@khorsheed/dsh-room/types#RoomReconcileDeliveryResult',
|
|
1715
3103
|
create: _khorsheed_dsh_room_room_reconcileDelivery_result$schema,
|
|
1716
3104
|
schema: _khorsheed_dsh_room_room_reconcileDelivery_result$schema(),
|
|
3105
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
3106
|
+
},
|
|
3107
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":1013,"column":9},
|
|
3108
|
+
},
|
|
3109
|
+
'room/releaseReports': {
|
|
3110
|
+
service: 'room',
|
|
3111
|
+
description: 'Hand a member the reports the gate holds for it now (the room\'s 「现在交给」 button).',
|
|
3112
|
+
invocation: { kind: 'direct' },
|
|
3113
|
+
parameters: [
|
|
3114
|
+
{
|
|
3115
|
+
name: 'request',
|
|
3116
|
+
description: 'room session, member name.',
|
|
3117
|
+
source: 'json',
|
|
3118
|
+
codec: {
|
|
3119
|
+
mode: 'strict',
|
|
3120
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomReleaseReportsRequest',
|
|
3121
|
+
create: _khorsheed_dsh_room_room_releaseReports_parameter_0$schema,
|
|
3122
|
+
schema: _khorsheed_dsh_room_room_releaseReports_parameter_0$schema(),
|
|
3123
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"name":{"type":"string"}},"required":["sessionId","name"],"additionalProperties":true},
|
|
3124
|
+
},
|
|
3125
|
+
strictCodec: {
|
|
3126
|
+
mode: 'strict',
|
|
3127
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomReleaseReportsRequest',
|
|
3128
|
+
create: _khorsheed_dsh_room_room_releaseReports_parameter_0_strict$schema,
|
|
3129
|
+
schema: _khorsheed_dsh_room_room_releaseReports_parameter_0_strict$schema(),
|
|
3130
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"name":{"type":"string"}},"required":["sessionId","name"],"additionalProperties":false},
|
|
3131
|
+
},
|
|
3132
|
+
},
|
|
3133
|
+
],
|
|
3134
|
+
result: {
|
|
3135
|
+
mode: 'strict',
|
|
3136
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomReleaseReportsResult',
|
|
3137
|
+
create: _khorsheed_dsh_room_room_releaseReports_result$schema,
|
|
3138
|
+
schema: _khorsheed_dsh_room_room_releaseReports_result$schema(),
|
|
3139
|
+
description: 'whether anything was held.',
|
|
3140
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"value":{"type":"object","properties":{"released":{"type":"boolean"}},"required":["released"],"additionalProperties":true}},"required":["ok","value"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
1717
3141
|
},
|
|
1718
|
-
sourceLocation: {"file":"packages/room/src/index.ts","line":
|
|
3142
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":2001,"column":9},
|
|
1719
3143
|
},
|
|
1720
|
-
{
|
|
1721
|
-
id: '@khorsheed/dsh-room#room/removeMember',
|
|
3144
|
+
'room/removeMember': {
|
|
1722
3145
|
service: 'room',
|
|
1723
|
-
|
|
1724
|
-
method: 'removeMember',
|
|
3146
|
+
description: 'Remove a member and settle everything that depended on it, so the confirmation\'s promises hold: a running round is stopped first (the same cancel the stop button uses), queued messages to it are cancelled, every member waiting for one of its reports is told it will not come, and only then does it leave the roster. Its own session and history stay; {@link restoreMember} brings it back onto them.',
|
|
1725
3147
|
invocation: { kind: 'direct' },
|
|
1726
3148
|
parameters: [
|
|
1727
3149
|
{
|
|
1728
3150
|
name: 'request',
|
|
1729
|
-
|
|
3151
|
+
description: 'room session, member name.',
|
|
1730
3152
|
source: 'json',
|
|
1731
3153
|
codec: {
|
|
1732
3154
|
mode: 'strict',
|
|
1733
3155
|
typeSymbol: '@khorsheed/dsh-room/types#RoomRemoveMemberRequest',
|
|
1734
3156
|
create: _khorsheed_dsh_room_room_removeMember_parameter_0$schema,
|
|
1735
3157
|
schema: _khorsheed_dsh_room_room_removeMember_parameter_0$schema(),
|
|
3158
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"name":{"type":"string","description":"Member to remove."}},"required":["sessionId","name"],"additionalProperties":true},
|
|
3159
|
+
},
|
|
3160
|
+
strictCodec: {
|
|
3161
|
+
mode: 'strict',
|
|
3162
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomRemoveMemberRequest',
|
|
3163
|
+
create: _khorsheed_dsh_room_room_removeMember_parameter_0_strict$schema,
|
|
3164
|
+
schema: _khorsheed_dsh_room_room_removeMember_parameter_0_strict$schema(),
|
|
3165
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"name":{"type":"string","description":"Member to remove."}},"required":["sessionId","name"],"additionalProperties":false},
|
|
1736
3166
|
},
|
|
1737
3167
|
},
|
|
1738
3168
|
],
|
|
@@ -1741,25 +3171,67 @@ export const TYPERT_REMOTE = {
|
|
|
1741
3171
|
typeSymbol: '@khorsheed/dsh-room/types#RoomRemoveMemberResult',
|
|
1742
3172
|
create: _khorsheed_dsh_room_room_removeMember_result$schema,
|
|
1743
3173
|
schema: _khorsheed_dsh_room_room_removeMember_result$schema(),
|
|
3174
|
+
description: 'what the removal did, or a rejection.',
|
|
3175
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"value":{"type":"object","properties":{"name":{"type":"string"},"stopped":{"type":"boolean","description":"True when a running round was stopped first."},"cancelledDeliveries":{"type":"number","description":"Queued messages that will never be delivered."},"notified":{"type":"array","items":{"type":"string"},"description":"Members that were waiting for a report and were told instead."}},"required":["name","stopped","cancelledDeliveries","notified"],"additionalProperties":true}},"required":["ok","value"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
3176
|
+
},
|
|
3177
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":1098,"column":9},
|
|
3178
|
+
},
|
|
3179
|
+
'room/restoreMember': {
|
|
3180
|
+
service: 'room',
|
|
3181
|
+
description: 'Undo a removal: the member rejoins under its old identity, provider, role, instructions and native session, so its memory carries on. Work the removal cancelled stays cancelled. Rejected when the name was taken in between or the member was never removed.',
|
|
3182
|
+
invocation: { kind: 'direct' },
|
|
3183
|
+
parameters: [
|
|
3184
|
+
{
|
|
3185
|
+
name: 'request',
|
|
3186
|
+
description: 'room session, the removed member\'s name.',
|
|
3187
|
+
source: 'json',
|
|
3188
|
+
codec: {
|
|
3189
|
+
mode: 'strict',
|
|
3190
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomRestoreMemberRequest',
|
|
3191
|
+
create: _khorsheed_dsh_room_room_restoreMember_parameter_0$schema,
|
|
3192
|
+
schema: _khorsheed_dsh_room_room_restoreMember_parameter_0$schema(),
|
|
3193
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"name":{"type":"string"}},"required":["sessionId","name"],"additionalProperties":true},
|
|
3194
|
+
},
|
|
3195
|
+
strictCodec: {
|
|
3196
|
+
mode: 'strict',
|
|
3197
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomRestoreMemberRequest',
|
|
3198
|
+
create: _khorsheed_dsh_room_room_restoreMember_parameter_0_strict$schema,
|
|
3199
|
+
schema: _khorsheed_dsh_room_room_restoreMember_parameter_0_strict$schema(),
|
|
3200
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"name":{"type":"string"}},"required":["sessionId","name"],"additionalProperties":false},
|
|
3201
|
+
},
|
|
3202
|
+
},
|
|
3203
|
+
],
|
|
3204
|
+
result: {
|
|
3205
|
+
mode: 'strict',
|
|
3206
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomRestoreMemberResult',
|
|
3207
|
+
create: _khorsheed_dsh_room_room_restoreMember_result$schema,
|
|
3208
|
+
schema: _khorsheed_dsh_room_room_restoreMember_result$schema(),
|
|
3209
|
+
description: 'the restored name, or a rejection.',
|
|
3210
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"value":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"],"additionalProperties":true}},"required":["ok","value"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
1744
3211
|
},
|
|
1745
|
-
sourceLocation: {"file":"packages/room/src/index.ts","line":
|
|
3212
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":1137,"column":9},
|
|
1746
3213
|
},
|
|
1747
|
-
{
|
|
1748
|
-
id: '@khorsheed/dsh-room#room/setCoordinator',
|
|
3214
|
+
'room/setCoordinator': {
|
|
1749
3215
|
service: 'room',
|
|
1750
|
-
|
|
1751
|
-
method: 'setCoordinator',
|
|
3216
|
+
description: 'Explicit human role change; state is committed only after readiness and idle checks.',
|
|
1752
3217
|
invocation: { kind: 'direct' },
|
|
1753
3218
|
parameters: [
|
|
1754
3219
|
{
|
|
1755
3220
|
name: 'request',
|
|
1756
|
-
wire: 'request',
|
|
1757
3221
|
source: 'json',
|
|
1758
3222
|
codec: {
|
|
1759
3223
|
mode: 'strict',
|
|
1760
3224
|
typeSymbol: '@khorsheed/dsh-room/types#RoomSetCoordinatorRequest',
|
|
1761
3225
|
create: _khorsheed_dsh_room_room_setCoordinator_parameter_0$schema,
|
|
1762
3226
|
schema: _khorsheed_dsh_room_room_setCoordinator_parameter_0$schema(),
|
|
3227
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"memberId":{"type":"string"},"expectedRevision":{"type":"number"}},"required":["sessionId","memberId","expectedRevision"],"additionalProperties":true},
|
|
3228
|
+
},
|
|
3229
|
+
strictCodec: {
|
|
3230
|
+
mode: 'strict',
|
|
3231
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomSetCoordinatorRequest',
|
|
3232
|
+
create: _khorsheed_dsh_room_room_setCoordinator_parameter_0_strict$schema,
|
|
3233
|
+
schema: _khorsheed_dsh_room_room_setCoordinator_parameter_0_strict$schema(),
|
|
3234
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"memberId":{"type":"string"},"expectedRevision":{"type":"number"}},"required":["sessionId","memberId","expectedRevision"],"additionalProperties":false},
|
|
1763
3235
|
},
|
|
1764
3236
|
},
|
|
1765
3237
|
],
|
|
@@ -1768,25 +3240,32 @@ export const TYPERT_REMOTE = {
|
|
|
1768
3240
|
typeSymbol: '@khorsheed/dsh-room/types#RoomSetCoordinatorResult',
|
|
1769
3241
|
create: _khorsheed_dsh_room_room_setCoordinator_result$schema,
|
|
1770
3242
|
schema: _khorsheed_dsh_room_room_setCoordinator_result$schema(),
|
|
3243
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"value":{"type":"object","properties":{"version":{"type":"number","const":1},"memberId":{"type":"string"},"revision":{"type":"number"},"previousMemberId":{"type":"string"},"handoff":{"type":"string"}},"required":["version","memberId","revision","previousMemberId","handoff"],"additionalProperties":true}},"required":["ok","value"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
1771
3244
|
},
|
|
1772
|
-
sourceLocation: {"file":"packages/room/src/index.ts","line":
|
|
3245
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":1030,"column":9},
|
|
1773
3246
|
},
|
|
1774
|
-
{
|
|
1775
|
-
id: '@khorsheed/dsh-room#room/setGoal',
|
|
3247
|
+
'room/setGoal': {
|
|
1776
3248
|
service: 'room',
|
|
1777
|
-
|
|
1778
|
-
method: 'setGoal',
|
|
3249
|
+
description: 'Set (or, with a blank text, clear) the room\'s goal. The goal is one journaled line — the latest `room/goal` event wins; it rides the top of the roster section in every member prompt and drives the dock\'s goal capsule. Pure display/coordination text: it never dispatches anything.',
|
|
1779
3250
|
invocation: { kind: 'direct' },
|
|
1780
3251
|
parameters: [
|
|
1781
3252
|
{
|
|
1782
3253
|
name: 'request',
|
|
1783
|
-
|
|
3254
|
+
description: 'room session and goal text.',
|
|
1784
3255
|
source: 'json',
|
|
1785
3256
|
codec: {
|
|
1786
3257
|
mode: 'strict',
|
|
1787
3258
|
typeSymbol: '@khorsheed/dsh-room/types#RoomSetGoalRequest',
|
|
1788
3259
|
create: _khorsheed_dsh_room_room_setGoal_parameter_0$schema,
|
|
1789
3260
|
schema: _khorsheed_dsh_room_room_setGoal_parameter_0$schema(),
|
|
3261
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"text":{"type":"string","description":"Goal text; blank clears the goal."}},"required":["sessionId","text"],"additionalProperties":true},
|
|
3262
|
+
},
|
|
3263
|
+
strictCodec: {
|
|
3264
|
+
mode: 'strict',
|
|
3265
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomSetGoalRequest',
|
|
3266
|
+
create: _khorsheed_dsh_room_room_setGoal_parameter_0_strict$schema,
|
|
3267
|
+
schema: _khorsheed_dsh_room_room_setGoal_parameter_0_strict$schema(),
|
|
3268
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"text":{"type":"string","description":"Goal text; blank clears the goal."}},"required":["sessionId","text"],"additionalProperties":false},
|
|
1790
3269
|
},
|
|
1791
3270
|
},
|
|
1792
3271
|
],
|
|
@@ -1795,25 +3274,173 @@ export const TYPERT_REMOTE = {
|
|
|
1795
3274
|
typeSymbol: '@khorsheed/dsh-room/types#RoomSetGoalResult',
|
|
1796
3275
|
create: _khorsheed_dsh_room_room_setGoal_result$schema,
|
|
1797
3276
|
schema: _khorsheed_dsh_room_room_setGoal_result$schema(),
|
|
3277
|
+
description: 'the now-current goal (absent after a clear), or a rejection.',
|
|
3278
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"value":{"type":"object","properties":{"goal":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["ok","value"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
3279
|
+
},
|
|
3280
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":2147,"column":9},
|
|
3281
|
+
},
|
|
3282
|
+
'room/setSettings': {
|
|
3283
|
+
service: 'room',
|
|
3284
|
+
description: 'Change the room\'s collaboration settings (any subset). Resuming a paused room releases everything the pause held, in order.',
|
|
3285
|
+
invocation: { kind: 'direct' },
|
|
3286
|
+
parameters: [
|
|
3287
|
+
{
|
|
3288
|
+
name: 'request',
|
|
3289
|
+
description: 'room session and the fields to change.',
|
|
3290
|
+
source: 'json',
|
|
3291
|
+
codec: {
|
|
3292
|
+
mode: 'strict',
|
|
3293
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomSetSettingsRequest',
|
|
3294
|
+
create: _khorsheed_dsh_room_room_setSettings_parameter_0$schema,
|
|
3295
|
+
schema: _khorsheed_dsh_room_room_setSettings_parameter_0$schema(),
|
|
3296
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"reportTiming":{"type":"string","enum":["judge","each"]},"autoTaskFiling":{"type":"boolean"},"reportThreshold":{"type":"number"},"reportWaitMinutes":{"type":"number"},"helpReminderMinutes":{"type":"number","description":"10–120, in steps of 10."},"memberMessages":{"type":"string","enum":["free","confirm"]},"hopLimit":{"type":"number","description":"2–50."},"paused":{"type":"boolean"}},"required":["sessionId"],"additionalProperties":true},
|
|
3297
|
+
},
|
|
3298
|
+
strictCodec: {
|
|
3299
|
+
mode: 'strict',
|
|
3300
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomSetSettingsRequest',
|
|
3301
|
+
create: _khorsheed_dsh_room_room_setSettings_parameter_0_strict$schema,
|
|
3302
|
+
schema: _khorsheed_dsh_room_room_setSettings_parameter_0_strict$schema(),
|
|
3303
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"reportTiming":{"type":"string","enum":["judge","each"]},"autoTaskFiling":{"type":"boolean"},"reportThreshold":{"type":"number"},"reportWaitMinutes":{"type":"number"},"helpReminderMinutes":{"type":"number","description":"10–120, in steps of 10."},"memberMessages":{"type":"string","enum":["free","confirm"]},"hopLimit":{"type":"number","description":"2–50."},"paused":{"type":"boolean"}},"required":["sessionId"],"additionalProperties":false},
|
|
3304
|
+
},
|
|
3305
|
+
},
|
|
3306
|
+
],
|
|
3307
|
+
result: {
|
|
3308
|
+
mode: 'strict',
|
|
3309
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomSetSettingsResult',
|
|
3310
|
+
create: _khorsheed_dsh_room_room_setSettings_result$schema,
|
|
3311
|
+
schema: _khorsheed_dsh_room_room_setSettings_result$schema(),
|
|
3312
|
+
description: 'the settings after the change, or a rejection.',
|
|
3313
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"value":{"type":"object","properties":{"memberMessages":{"type":"string","enum":["free","confirm"]},"hopLimit":{"type":"number"},"paused":{"type":"boolean"},"reportTiming":{"type":"string","enum":["judge","each"]},"autoTaskFiling":{"type":"boolean"},"reportThreshold":{"type":"number"},"reportWaitMinutes":{"type":"number"},"helpReminderMinutes":{"type":"number"}},"required":["memberMessages","hopLimit","paused","reportTiming","autoTaskFiling","reportThreshold","reportWaitMinutes","helpReminderMinutes"],"additionalProperties":true}},"required":["ok","value"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
3314
|
+
},
|
|
3315
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":2017,"column":9},
|
|
3316
|
+
},
|
|
3317
|
+
'room/setTaskHint': {
|
|
3318
|
+
service: 'room',
|
|
3319
|
+
description: 'Tag the human\'s next message with a task (the task page\'s 追问 / 新任务), or clear the tag.',
|
|
3320
|
+
invocation: { kind: 'direct' },
|
|
3321
|
+
parameters: [
|
|
3322
|
+
{
|
|
3323
|
+
name: 'request',
|
|
3324
|
+
description: 'room session and the task root id, `new`, or null.',
|
|
3325
|
+
source: 'json',
|
|
3326
|
+
codec: {
|
|
3327
|
+
mode: 'strict',
|
|
3328
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomSetTaskHintRequest',
|
|
3329
|
+
create: _khorsheed_dsh_room_room_setTaskHint_parameter_0$schema,
|
|
3330
|
+
schema: _khorsheed_dsh_room_room_setTaskHint_parameter_0$schema(),
|
|
3331
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"task":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"`new`, a task root id, or null to clear."}},"required":["sessionId","task"],"additionalProperties":true},
|
|
3332
|
+
},
|
|
3333
|
+
strictCodec: {
|
|
3334
|
+
mode: 'strict',
|
|
3335
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomSetTaskHintRequest',
|
|
3336
|
+
create: _khorsheed_dsh_room_room_setTaskHint_parameter_0_strict$schema,
|
|
3337
|
+
schema: _khorsheed_dsh_room_room_setTaskHint_parameter_0_strict$schema(),
|
|
3338
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"task":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"`new`, a task root id, or null to clear."}},"required":["sessionId","task"],"additionalProperties":false},
|
|
3339
|
+
},
|
|
3340
|
+
},
|
|
3341
|
+
],
|
|
3342
|
+
result: {
|
|
3343
|
+
mode: 'strict',
|
|
3344
|
+
typeSymbol: '@khorsheed/dsh-room#room/setTaskHint:result',
|
|
3345
|
+
create: _khorsheed_dsh_room_room_setTaskHint_result$schema,
|
|
3346
|
+
schema: _khorsheed_dsh_room_room_setTaskHint_result$schema(),
|
|
3347
|
+
description: 'acknowledgement.',
|
|
3348
|
+
jsonSchema: {"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":true},
|
|
3349
|
+
},
|
|
3350
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":599,"column":9},
|
|
3351
|
+
},
|
|
3352
|
+
'room/stopJob': {
|
|
3353
|
+
service: 'room',
|
|
3354
|
+
description: 'Stop a whole task: running rounds of its deliveries are cancelled (the same cancel the stop button uses), queued and held ones never run, and ordinary rounds whose outcome a restart lost close as cancelled — the human gave up on them — which unblocks those members\' later messages.',
|
|
3355
|
+
invocation: { kind: 'direct' },
|
|
3356
|
+
parameters: [
|
|
3357
|
+
{
|
|
3358
|
+
name: 'request',
|
|
3359
|
+
description: 'room session and the task root id.',
|
|
3360
|
+
source: 'json',
|
|
3361
|
+
codec: {
|
|
3362
|
+
mode: 'strict',
|
|
3363
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomStopJobRequest',
|
|
3364
|
+
create: _khorsheed_dsh_room_room_stopJob_parameter_0$schema,
|
|
3365
|
+
schema: _khorsheed_dsh_room_room_stopJob_parameter_0$schema(),
|
|
3366
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"task":{"type":"string","description":"The task's root id."}},"required":["sessionId","task"],"additionalProperties":true},
|
|
3367
|
+
},
|
|
3368
|
+
strictCodec: {
|
|
3369
|
+
mode: 'strict',
|
|
3370
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomStopJobRequest',
|
|
3371
|
+
create: _khorsheed_dsh_room_room_stopJob_parameter_0_strict$schema,
|
|
3372
|
+
schema: _khorsheed_dsh_room_room_stopJob_parameter_0_strict$schema(),
|
|
3373
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"task":{"type":"string","description":"The task's root id."}},"required":["sessionId","task"],"additionalProperties":false},
|
|
3374
|
+
},
|
|
3375
|
+
},
|
|
3376
|
+
],
|
|
3377
|
+
result: {
|
|
3378
|
+
mode: 'strict',
|
|
3379
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomStopJobResult',
|
|
3380
|
+
create: _khorsheed_dsh_room_room_stopJob_result$schema,
|
|
3381
|
+
schema: _khorsheed_dsh_room_room_stopJob_result$schema(),
|
|
3382
|
+
description: 'how many deliveries were stopped.',
|
|
3383
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"value":{"type":"object","properties":{"stopped":{"type":"number"}},"required":["stopped"],"additionalProperties":true}},"required":["ok","value"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
3384
|
+
},
|
|
3385
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":614,"column":9},
|
|
3386
|
+
},
|
|
3387
|
+
'room/unlinkSession': {
|
|
3388
|
+
service: 'room',
|
|
3389
|
+
description: 'Take an outside session off the member list (its own session is untouched).',
|
|
3390
|
+
invocation: { kind: 'direct' },
|
|
3391
|
+
parameters: [
|
|
3392
|
+
{
|
|
3393
|
+
name: 'request',
|
|
3394
|
+
description: 'room session, the outside session.',
|
|
3395
|
+
source: 'json',
|
|
3396
|
+
codec: {
|
|
3397
|
+
mode: 'strict',
|
|
3398
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomHelpLinkRequest',
|
|
3399
|
+
create: _khorsheed_dsh_room_room_unlinkSession_parameter_0$schema,
|
|
3400
|
+
schema: _khorsheed_dsh_room_room_unlinkSession_parameter_0$schema(),
|
|
3401
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"target":{"type":"string","description":"The outside session."},"title":{"type":"string","description":"Its title (link only)."}},"required":["sessionId","target"],"additionalProperties":true},
|
|
3402
|
+
},
|
|
3403
|
+
strictCodec: {
|
|
3404
|
+
mode: 'strict',
|
|
3405
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomHelpLinkRequest',
|
|
3406
|
+
create: _khorsheed_dsh_room_room_unlinkSession_parameter_0_strict$schema,
|
|
3407
|
+
schema: _khorsheed_dsh_room_room_unlinkSession_parameter_0_strict$schema(),
|
|
3408
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"target":{"type":"string","description":"The outside session."},"title":{"type":"string","description":"Its title (link only)."}},"required":["sessionId","target"],"additionalProperties":false},
|
|
3409
|
+
},
|
|
3410
|
+
},
|
|
3411
|
+
],
|
|
3412
|
+
result: {
|
|
3413
|
+
mode: 'strict',
|
|
3414
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomHelpLinkResult',
|
|
3415
|
+
create: _khorsheed_dsh_room_room_unlinkSession_result$schema,
|
|
3416
|
+
schema: _khorsheed_dsh_room_room_unlinkSession_result$schema(),
|
|
3417
|
+
description: 'ok, or `member-not-found` when it was not on the list.',
|
|
3418
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
1798
3419
|
},
|
|
1799
|
-
sourceLocation: {"file":"packages/room/src/index.ts","line":
|
|
3420
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":2088,"column":9},
|
|
1800
3421
|
},
|
|
1801
|
-
{
|
|
1802
|
-
id: '@khorsheed/dsh-room#room/updateMember',
|
|
3422
|
+
'room/updateMember': {
|
|
1803
3423
|
service: 'room',
|
|
1804
|
-
|
|
1805
|
-
method: 'updateMember',
|
|
3424
|
+
description: 'Update a member\'s editable fields: rename (validated like an invite name — unique, parseable; the main agent is the room itself and cannot be renamed), role instructions (null or a blank text CLEARS them — later dispatches inject none), the member-level cwd override (null or a blank text clears back to inheriting the room cwd; still roster-recorded only — the delegation facade\'s per-call cwd override is the family\'s open R2), and the intended model (null or a blank text clears it back to the harness default; roster-recorded intent — the first dispatch binds it as the facade start\'s `model` option, and the live member\'s immediate switch is the client\'s localAgentGateway `setMemberModel` call, not this one). An instructions edit rides the member\'s next dispatch as a context update (the CLI session itself is never rewritten); a rename migrates every name-keyed projection at replay (the journal fold moves the roster key, tasks\' member/blockedBy, relays\' from/to, and the runs key).',
|
|
1806
3425
|
invocation: { kind: 'direct' },
|
|
1807
3426
|
parameters: [
|
|
1808
3427
|
{
|
|
1809
3428
|
name: 'request',
|
|
1810
|
-
|
|
3429
|
+
description: 'room session, member name, and the fields to change.',
|
|
1811
3430
|
source: 'json',
|
|
1812
3431
|
codec: {
|
|
1813
3432
|
mode: 'strict',
|
|
1814
3433
|
typeSymbol: '@khorsheed/dsh-room/types#RoomUpdateMemberRequest',
|
|
1815
3434
|
create: _khorsheed_dsh_room_room_updateMember_parameter_0$schema,
|
|
1816
3435
|
schema: _khorsheed_dsh_room_room_updateMember_parameter_0$schema(),
|
|
3436
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"name":{"type":"string","description":"Member to update (its CURRENT name)."},"rename":{"type":"string","description":"Rename: the new"},"instructions":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"New role instructions; null (or a blank string) CLEARS them."},"role":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"New public role; null (or a blank string) CLEARS it."},"cwd":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"New member-level cwd; null (or a blank string) CLEARS the override back to inheriting the room cwd."},"model":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"New intended model (roster-recorded; the first dispatch binds it as the facade start's `model` option); null (or a blank string) CLEARS it back to following the harness default."},"effort":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"New intended reasoning effort (roster-recorded, bound like the model on the first dispatch); null (or a blank string) CLEARS it back to following the harness default."}},"required":["sessionId","name"],"additionalProperties":true},
|
|
3437
|
+
},
|
|
3438
|
+
strictCodec: {
|
|
3439
|
+
mode: 'strict',
|
|
3440
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomUpdateMemberRequest',
|
|
3441
|
+
create: _khorsheed_dsh_room_room_updateMember_parameter_0_strict$schema,
|
|
3442
|
+
schema: _khorsheed_dsh_room_room_updateMember_parameter_0_strict$schema(),
|
|
3443
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"name":{"type":"string","description":"Member to update (its CURRENT name)."},"rename":{"type":"string","description":"Rename: the new"},"instructions":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"New role instructions; null (or a blank string) CLEARS them."},"role":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"New public role; null (or a blank string) CLEARS it."},"cwd":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"New member-level cwd; null (or a blank string) CLEARS the override back to inheriting the room cwd."},"model":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"New intended model (roster-recorded; the first dispatch binds it as the facade start's `model` option); null (or a blank string) CLEARS it back to following the harness default."},"effort":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"New intended reasoning effort (roster-recorded, bound like the model on the first dispatch); null (or a blank string) CLEARS it back to following the harness default."}},"required":["sessionId","name"],"additionalProperties":false},
|
|
1817
3444
|
},
|
|
1818
3445
|
},
|
|
1819
3446
|
],
|
|
@@ -1822,10 +3449,12 @@ export const TYPERT_REMOTE = {
|
|
|
1822
3449
|
typeSymbol: '@khorsheed/dsh-room/types#RoomUpdateMemberResult',
|
|
1823
3450
|
create: _khorsheed_dsh_room_room_updateMember_result$schema,
|
|
1824
3451
|
schema: _khorsheed_dsh_room_room_updateMember_result$schema(),
|
|
3452
|
+
description: 'the update receipt (the CURRENT name), or a rejection.',
|
|
3453
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"value":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"],"additionalProperties":true}},"required":["ok","value"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"error":{"oneOf":[{"type":"object","properties":{"code":{"type":"string","const":"request-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-cwd-bound"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"delivery-not-uncertain"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"plan-reconciliation-required"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-busy"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-not-ready"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"coordinator-conflict"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"active-coordinator"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"configuration-owned-by-core"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"session-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"not-a-room"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"duplicate-name"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-provider"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"member-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"empty-text"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"role-too-long"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"invalid-settings"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"self-message"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-task"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-preset"},"preset":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","preset","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"nothing-to-update"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"local-agent-unavailable"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-provider"},"provider":{"type":"string"},"available":{"type":"array","items":{"type":"string"}}},"required":["code","provider","available"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"unknown-targets"},"names":{"type":"array","items":{"type":"string"}}},"required":["code","names"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"no-targets"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"relay-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"approval-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"question-not-pending"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"main-member"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-not-found"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"task-closed"}},"required":["code"],"additionalProperties":true},{"type":"object","properties":{"code":{"type":"string","const":"resume-failed"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":true}]}},"required":["ok","error"],"additionalProperties":true}]},
|
|
1825
3454
|
},
|
|
1826
|
-
sourceLocation: {"file":"packages/room/src/index.ts","line":
|
|
3455
|
+
sourceLocation: {"file":"packages/room/src/index.ts","line":932,"column":9},
|
|
1827
3456
|
},
|
|
1828
|
-
|
|
1829
|
-
}
|
|
3457
|
+
},
|
|
3458
|
+
}, z)
|
|
1830
3459
|
|
|
1831
3460
|
export default TYPERT_REMOTE
|