@khorsheed/dsh-room 0.2.1 → 0.2.2
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 +6 -0
- package/README.en.md +3 -3
- package/README.i18n.yaml +2 -2
- package/README.md +3 -3
- package/lib/client.js +19653 -994
- package/lib/typert.host.js +670 -173
- package/lib/typert.remote-client.d.ts +22 -2
- package/lib/typert.remote-client.js +407 -167
- package/lib/types/client/RoomComposer.d.ts +1 -1
- package/lib/types/client/RoomComposer.js +39 -14
- 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 +7 -4
- package/package.json +26 -28
- package/lib/invariant.js +0 -26
- package/lib/types/invariant.d.ts +0 -16
- package/lib/types/invariant.js +0 -24
|
@@ -1,14 +1,16 @@
|
|
|
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
8
|
let _khorsheed_dsh_room_room_addTask_parameter_0$schema$value
|
|
7
9
|
const _khorsheed_dsh_room_room_addTask_parameter_0$schema = () => (_khorsheed_dsh_room_room_addTask_parameter_0$schema$value ??= z.object({
|
|
8
|
-
'sessionId': z.
|
|
9
|
-
'member': z.string().readonly(),
|
|
10
|
-
'title': z.string().readonly(),
|
|
11
|
-
'blockedBy': z.string().readonly().optional(),
|
|
10
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
11
|
+
'member': z.string().readonly().describe('The member owning the task.'),
|
|
12
|
+
'title': z.string().readonly().describe('Task title (non-blank).'),
|
|
13
|
+
'blockedBy': z.string().readonly().optional().describe('Optional member this task waits on ("等 ada" — display only, never an automatic dispatch). Must name a roster member when present.'),
|
|
12
14
|
}))
|
|
13
15
|
let _khorsheed_dsh_room_room_addTask_result$schema$value
|
|
14
16
|
const _khorsheed_dsh_room_room_addTask_result$schema = () => (_khorsheed_dsh_room_room_addTask_result$schema$value ??= z.union([z.object({
|
|
@@ -83,16 +85,16 @@ const _khorsheed_dsh_room_room_addTask_result$schema = () => (_khorsheed_dsh_roo
|
|
|
83
85
|
})]))
|
|
84
86
|
let _khorsheed_dsh_room_room_cancel_parameter_0$schema$value
|
|
85
87
|
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(),
|
|
88
|
+
'expectedRunId': z.string().readonly().optional().describe('Optional fencing for an execution card; a stale card must never stop a successor.'),
|
|
87
89
|
'expectedStartedAt': z.number().readonly().optional(),
|
|
88
|
-
'sessionId': z.
|
|
89
|
-
'name': z.string().readonly(),
|
|
90
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
91
|
+
'name': z.string().readonly().describe('Member whose run should be cancelled.'),
|
|
90
92
|
}))
|
|
91
93
|
let _khorsheed_dsh_room_room_cancel_result$schema$value
|
|
92
94
|
const _khorsheed_dsh_room_room_cancel_result$schema = () => (_khorsheed_dsh_room_room_cancel_result$schema$value ??= z.union([z.object({
|
|
93
95
|
'ok': z.literal(true).readonly(),
|
|
94
96
|
'value': z.object({
|
|
95
|
-
'cancelled': z.boolean().readonly(),
|
|
97
|
+
'cancelled': z.boolean().readonly().describe('True when an in-flight run was found and cancelled.'),
|
|
96
98
|
}).readonly(),
|
|
97
99
|
}), z.object({
|
|
98
100
|
'ok': z.literal(false).readonly(),
|
|
@@ -161,14 +163,14 @@ const _khorsheed_dsh_room_room_cancel_result$schema = () => (_khorsheed_dsh_room
|
|
|
161
163
|
})]))
|
|
162
164
|
let _khorsheed_dsh_room_room_cancelChild_parameter_0$schema$value
|
|
163
165
|
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.
|
|
166
|
+
'sessionId': z.string(),
|
|
167
|
+
'childSessionId': z.string(),
|
|
166
168
|
}))
|
|
167
169
|
let _khorsheed_dsh_room_room_cancelChild_result$schema$value
|
|
168
170
|
const _khorsheed_dsh_room_room_cancelChild_result$schema = () => (_khorsheed_dsh_room_room_cancelChild_result$schema$value ??= z.union([z.object({
|
|
169
171
|
'ok': z.literal(true).readonly(),
|
|
170
172
|
'value': z.object({
|
|
171
|
-
'cancelled': z.boolean().readonly(),
|
|
173
|
+
'cancelled': z.boolean().readonly().describe('True when an in-flight run was found and cancelled.'),
|
|
172
174
|
}).readonly(),
|
|
173
175
|
}), z.object({
|
|
174
176
|
'ok': z.literal(false).readonly(),
|
|
@@ -237,9 +239,9 @@ const _khorsheed_dsh_room_room_cancelChild_result$schema = () => (_khorsheed_dsh
|
|
|
237
239
|
})]))
|
|
238
240
|
let _khorsheed_dsh_room_room_closeTask_parameter_0$schema$value
|
|
239
241
|
const _khorsheed_dsh_room_room_closeTask_parameter_0$schema = () => (_khorsheed_dsh_room_room_closeTask_parameter_0$schema$value ??= z.object({
|
|
240
|
-
'sessionId': z.
|
|
241
|
-
'taskId': z.string().readonly(),
|
|
242
|
-
'status': z.union([z.literal("
|
|
242
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
243
|
+
'taskId': z.string().readonly().describe('The task to close.'),
|
|
244
|
+
'status': z.union([z.literal("cancelled"), z.literal("done")]).readonly().optional().describe('Closing status (default \'done\').'),
|
|
243
245
|
}))
|
|
244
246
|
let _khorsheed_dsh_room_room_closeTask_result$schema$value
|
|
245
247
|
const _khorsheed_dsh_room_room_closeTask_result$schema = () => (_khorsheed_dsh_room_room_closeTask_result$schema$value ??= z.union([z.object({
|
|
@@ -314,8 +316,8 @@ const _khorsheed_dsh_room_room_closeTask_result$schema = () => (_khorsheed_dsh_r
|
|
|
314
316
|
})]))
|
|
315
317
|
let _khorsheed_dsh_room_room_confirmRelay_parameter_0$schema$value
|
|
316
318
|
const _khorsheed_dsh_room_room_confirmRelay_parameter_0$schema = () => (_khorsheed_dsh_room_room_confirmRelay_parameter_0$schema$value ??= z.object({
|
|
317
|
-
'sessionId': z.
|
|
318
|
-
'relayId': z.string().readonly(),
|
|
319
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
320
|
+
'relayId': z.string().readonly().describe('The relay to resolve.'),
|
|
319
321
|
}))
|
|
320
322
|
let _khorsheed_dsh_room_room_confirmRelay_result$schema$value
|
|
321
323
|
const _khorsheed_dsh_room_room_confirmRelay_result$schema = () => (_khorsheed_dsh_room_room_confirmRelay_result$schema$value ??= z.union([z.object({
|
|
@@ -390,8 +392,8 @@ const _khorsheed_dsh_room_room_confirmRelay_result$schema = () => (_khorsheed_ds
|
|
|
390
392
|
})]))
|
|
391
393
|
let _khorsheed_dsh_room_room_dismissRelay_parameter_0$schema$value
|
|
392
394
|
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(),
|
|
395
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
396
|
+
'relayId': z.string().readonly().describe('The relay to resolve.'),
|
|
395
397
|
}))
|
|
396
398
|
let _khorsheed_dsh_room_room_dismissRelay_result$schema$value
|
|
397
399
|
const _khorsheed_dsh_room_room_dismissRelay_result$schema = () => (_khorsheed_dsh_room_room_dismissRelay_result$schema$value ??= z.union([z.object({
|
|
@@ -466,7 +468,7 @@ const _khorsheed_dsh_room_room_dismissRelay_result$schema = () => (_khorsheed_ds
|
|
|
466
468
|
})]))
|
|
467
469
|
let _khorsheed_dsh_room_room_getState_parameter_0$schema$value
|
|
468
470
|
const _khorsheed_dsh_room_room_getState_parameter_0$schema = () => (_khorsheed_dsh_room_room_getState_parameter_0$schema$value ??= z.object({
|
|
469
|
-
'sessionId': z.
|
|
471
|
+
'sessionId': z.string().readonly().describe('Room session to replay.'),
|
|
470
472
|
}))
|
|
471
473
|
let _khorsheed_dsh_room_room_getState_result$schema$value
|
|
472
474
|
const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_room_room_getState_result$schema$value ??= z.union([z.object({
|
|
@@ -475,19 +477,20 @@ const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_ro
|
|
|
475
477
|
'executions': z.array(z.object({
|
|
476
478
|
'id': z.string().readonly(),
|
|
477
479
|
'memberId': z.string().readonly().optional(),
|
|
478
|
-
'childSessionId': z.
|
|
480
|
+
'childSessionId': z.string().readonly().optional(),
|
|
479
481
|
'provider': z.string().readonly().optional(),
|
|
480
482
|
'model': z.string().readonly().optional(),
|
|
481
483
|
'effort': z.string().readonly().optional(),
|
|
482
484
|
'tokens': z.number().readonly().optional(),
|
|
483
|
-
'runId': z.string().readonly().optional(),
|
|
485
|
+
'runId': z.string().readonly().optional().describe('Stable execution identity; legacy journals use startedAt.'),
|
|
484
486
|
'member': z.string().readonly(),
|
|
485
|
-
'state': z.union([z.literal("
|
|
487
|
+
'state': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("done")]).readonly(),
|
|
486
488
|
'startedAt': z.number().readonly(),
|
|
487
489
|
'elapsedMs': z.number().readonly().optional(),
|
|
488
|
-
'error': z.string().readonly().optional(),
|
|
490
|
+
'error': z.string().readonly().optional().describe('Why the run failed (failed edges only), when the edge carried one.'),
|
|
489
491
|
})).readonly().optional(),
|
|
490
492
|
'plan': z.object({
|
|
493
|
+
'status': z.union([z.literal("cancelled"), z.literal("running"), z.literal("completed"), z.literal("paused"), z.literal("draft")]),
|
|
491
494
|
'stages': z.array(z.object({
|
|
492
495
|
'id': z.string(),
|
|
493
496
|
'title': z.string(),
|
|
@@ -496,7 +499,6 @@ const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_ro
|
|
|
496
499
|
'id': z.string(),
|
|
497
500
|
'revision': z.number(),
|
|
498
501
|
'objective': z.string(),
|
|
499
|
-
'status': z.union([z.literal("draft"), z.literal("running"), z.literal("cancelled"), z.literal("paused"), z.literal("completed")]),
|
|
500
502
|
'reason': z.string().optional(),
|
|
501
503
|
'budget': z.object({
|
|
502
504
|
'maxParallel': z.number(),
|
|
@@ -518,12 +520,12 @@ const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_ro
|
|
|
518
520
|
'inputRefs': z.array(z.string()),
|
|
519
521
|
'artifactPaths': z.array(z.string()),
|
|
520
522
|
'dependsOn': z.array(z.string()),
|
|
521
|
-
'status': z.union([z.literal("
|
|
523
|
+
'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("accepted"), z.literal("submitted")]),
|
|
522
524
|
'attempts': z.array(z.object({
|
|
523
525
|
'id': z.string(),
|
|
524
526
|
'deliveryId': z.string(),
|
|
525
527
|
'number': z.number(),
|
|
526
|
-
'status': z.union([z.literal("
|
|
528
|
+
'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
529
|
'createdAt': z.number(),
|
|
528
530
|
'startedAt': z.number().optional(),
|
|
529
531
|
'settledAt': z.number().optional(),
|
|
@@ -557,7 +559,7 @@ const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_ro
|
|
|
557
559
|
'id': z.string().readonly(),
|
|
558
560
|
'dispatchSeq': z.number().readonly(),
|
|
559
561
|
'memberId': z.string().readonly(),
|
|
560
|
-
'status': z.union([z.literal("
|
|
562
|
+
'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("done"), z.literal("queued"), z.literal("uncertain")]).readonly(),
|
|
561
563
|
'origin': z.union([z.literal("human"), z.literal("coordinator"), z.literal("report"), z.literal("relay")]).readonly(),
|
|
562
564
|
'text': z.string().readonly(),
|
|
563
565
|
'error': z.string().readonly().optional(),
|
|
@@ -581,9 +583,9 @@ const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_ro
|
|
|
581
583
|
'provider': z.string().readonly().optional(),
|
|
582
584
|
'instructions': z.string().readonly().optional(),
|
|
583
585
|
'invitedBy': z.union([z.literal("agent"), z.literal("human")]).readonly(),
|
|
584
|
-
'cwd': z.string().readonly().optional(),
|
|
585
|
-
'model': z.string().readonly().optional(),
|
|
586
|
-
'childSessionId': z.
|
|
586
|
+
'cwd': z.string().readonly().optional().describe('Member-level working directory (roster record; not yet passed to the facade).'),
|
|
587
|
+
'model': z.string().readonly().optional().describe('The member\'s intended model (roster record; the facade start\'s `model` option on the first dispatch).'),
|
|
588
|
+
'childSessionId': z.string().readonly().optional(),
|
|
587
589
|
})).readonly(),
|
|
588
590
|
'relays': z.array(z.object({
|
|
589
591
|
'id': z.string().readonly(),
|
|
@@ -594,23 +596,23 @@ const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_ro
|
|
|
594
596
|
'state': z.union([z.literal("pending"), z.literal("confirmed"), z.literal("dismissed"), z.literal("sent")]).readonly(),
|
|
595
597
|
})).readonly(),
|
|
596
598
|
'tasks': z.array(z.object({
|
|
597
|
-
'deliveryId': z.string().readonly().optional(),
|
|
599
|
+
'deliveryId': z.string().readonly().optional().describe('Only this delivery may automatically settle this legacy chat task row.'),
|
|
598
600
|
'id': z.string().readonly(),
|
|
599
601
|
'member': z.string().readonly(),
|
|
600
602
|
'title': z.string().readonly(),
|
|
601
|
-
'status': z.union([z.literal("
|
|
602
|
-
'blockedBy': z.string().readonly().optional(),
|
|
603
|
-
'updatedAt': z.number().readonly(),
|
|
603
|
+
'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("pending"), z.literal("in_progress"), z.literal("done")]).readonly(),
|
|
604
|
+
'blockedBy': z.string().readonly().optional().describe('The member this task waits on (display only; never dispatches anything).'),
|
|
605
|
+
'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
606
|
})).readonly(),
|
|
605
607
|
'runs': z.array(z.object({
|
|
606
|
-
'runId': z.string().readonly().optional(),
|
|
608
|
+
'runId': z.string().readonly().optional().describe('Stable execution identity; legacy journals use startedAt.'),
|
|
607
609
|
'member': z.string().readonly(),
|
|
608
|
-
'state': z.union([z.literal("
|
|
610
|
+
'state': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("done")]).readonly(),
|
|
609
611
|
'startedAt': z.number().readonly(),
|
|
610
612
|
'elapsedMs': z.number().readonly().optional(),
|
|
611
|
-
'error': z.string().readonly().optional(),
|
|
613
|
+
'error': z.string().readonly().optional().describe('Why the run failed (failed edges only), when the edge carried one.'),
|
|
612
614
|
})).readonly(),
|
|
613
|
-
'goal': z.string().readonly().optional(),
|
|
615
|
+
'goal': z.string().readonly().optional().describe('The current goal text (the latest `room/goal` event), undefined when unset.'),
|
|
614
616
|
}).readonly(),
|
|
615
617
|
}), z.object({
|
|
616
618
|
'ok': z.literal(false).readonly(),
|
|
@@ -679,20 +681,20 @@ const _khorsheed_dsh_room_room_getState_result$schema = () => (_khorsheed_dsh_ro
|
|
|
679
681
|
})]))
|
|
680
682
|
let _khorsheed_dsh_room_room_invite_parameter_0$schema$value
|
|
681
683
|
const _khorsheed_dsh_room_room_invite_parameter_0$schema = () => (_khorsheed_dsh_room_room_invite_parameter_0$schema$value ??= z.object({
|
|
682
|
-
'sessionId': z.
|
|
683
|
-
'provider': z.string().readonly(),
|
|
684
|
-
'name': z.string().readonly(),
|
|
685
|
-
'instructions': z.string().readonly().optional(),
|
|
686
|
-
'cwd': z.string().readonly().optional(),
|
|
687
|
-
'firstTask': z.string().readonly().optional(),
|
|
688
|
-
'model': z.string().readonly().optional(),
|
|
684
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
685
|
+
'provider': z.string().readonly().describe('CLI provider id (non-blank).'),
|
|
686
|
+
'name': z.string().readonly().describe('Addressing/display name: unique in the room, no whitespace, no `@`.'),
|
|
687
|
+
'instructions': z.string().readonly().optional().describe('Role instructions, prepended to the member\'s first dispatch.'),
|
|
688
|
+
'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).'),
|
|
689
|
+
'firstTask': z.string().readonly().optional().describe('Optional first task, dispatched to the member as soon as it joins.'),
|
|
690
|
+
'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.'),
|
|
689
691
|
}))
|
|
690
692
|
let _khorsheed_dsh_room_room_invite_result$schema$value
|
|
691
693
|
const _khorsheed_dsh_room_room_invite_result$schema = () => (_khorsheed_dsh_room_room_invite_result$schema$value ??= z.union([z.object({
|
|
692
694
|
'ok': z.literal(true).readonly(),
|
|
693
695
|
'value': z.object({
|
|
694
|
-
'name': z.string().readonly(),
|
|
695
|
-
'pendingFirstTask': z.boolean().readonly(),
|
|
696
|
+
'name': z.string().readonly().describe('The accepted member name.'),
|
|
697
|
+
'pendingFirstTask': z.boolean().readonly().describe('True when a first task was supplied and dispatched with the invitation.'),
|
|
696
698
|
}).readonly(),
|
|
697
699
|
}), z.object({
|
|
698
700
|
'ok': z.literal(false).readonly(),
|
|
@@ -761,7 +763,7 @@ const _khorsheed_dsh_room_room_invite_result$schema = () => (_khorsheed_dsh_room
|
|
|
761
763
|
})]))
|
|
762
764
|
let _khorsheed_dsh_room_room_isRoom_parameter_0$schema$value
|
|
763
765
|
const _khorsheed_dsh_room_room_isRoom_parameter_0$schema = () => (_khorsheed_dsh_room_room_isRoom_parameter_0$schema$value ??= z.object({
|
|
764
|
-
'sessionId': z.
|
|
766
|
+
'sessionId': z.string().readonly().describe('Session to probe.'),
|
|
765
767
|
}))
|
|
766
768
|
let _khorsheed_dsh_room_room_isRoom_result$schema$value
|
|
767
769
|
const _khorsheed_dsh_room_room_isRoom_result$schema = () => (_khorsheed_dsh_room_room_isRoom_result$schema$value ??= z.boolean())
|
|
@@ -769,17 +771,17 @@ let _khorsheed_dsh_room_room_listProviders_parameter_0$schema$value
|
|
|
769
771
|
const _khorsheed_dsh_room_room_listProviders_parameter_0$schema = () => (_khorsheed_dsh_room_room_listProviders_parameter_0$schema$value ??= z.object({}))
|
|
770
772
|
let _khorsheed_dsh_room_room_listProviders_result$schema$value
|
|
771
773
|
const _khorsheed_dsh_room_room_listProviders_result$schema = () => (_khorsheed_dsh_room_room_listProviders_result$schema$value ??= z.object({
|
|
772
|
-
'localAgentAvailable': z.boolean().readonly(),
|
|
774
|
+
'localAgentAvailable': z.boolean().readonly().describe('False when the local-agent delegation facade is absent (CLI members undispatchable).'),
|
|
773
775
|
'providers': z.array(z.object({
|
|
774
|
-
'provider': z.string().readonly(),
|
|
776
|
+
'provider': z.string().readonly().describe('The provider id invite/dispatch uses (the harness\'s delegationProvider).'),
|
|
775
777
|
'displayName': z.string().readonly(),
|
|
776
|
-
'harness': z.string().readonly().optional(),
|
|
777
|
-
'authenticated': z.boolean().readonly(),
|
|
778
|
+
'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.'),
|
|
779
|
+
'authenticated': z.boolean().readonly().describe('Whether the harness\'s scoped home holds usable credentials.'),
|
|
778
780
|
})).readonly(),
|
|
779
781
|
}))
|
|
780
782
|
let _khorsheed_dsh_room_room_planCommand_parameter_0$schema$value
|
|
781
783
|
const _khorsheed_dsh_room_room_planCommand_parameter_0$schema = () => (_khorsheed_dsh_room_room_planCommand_parameter_0$schema$value ??= z.object({
|
|
782
|
-
'sessionId': z.
|
|
784
|
+
'sessionId': z.string(),
|
|
783
785
|
'command': z.string(),
|
|
784
786
|
}))
|
|
785
787
|
let _khorsheed_dsh_room_room_planCommand_result$schema$value
|
|
@@ -792,19 +794,19 @@ const _khorsheed_dsh_room_room_planCommand_result$schema = () => (_khorsheed_dsh
|
|
|
792
794
|
let _khorsheed_dsh_room_room_postMessage_parameter_0$schema$value
|
|
793
795
|
const _khorsheed_dsh_room_room_postMessage_parameter_0$schema = () => (_khorsheed_dsh_room_room_postMessage_parameter_0$schema$value ??= z.object({
|
|
794
796
|
'requestId': z.string().readonly().optional(),
|
|
795
|
-
'sessionId': z.
|
|
796
|
-
'text': z.string().readonly(),
|
|
797
|
-
'targets': z.array(z.string()).readonly().optional(),
|
|
797
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
798
|
+
'text': z.string().readonly().describe('Raw composer text: leading `@name` tokens address members.'),
|
|
799
|
+
'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.'),
|
|
798
800
|
}))
|
|
799
801
|
let _khorsheed_dsh_room_room_postMessage_result$schema$value
|
|
800
802
|
const _khorsheed_dsh_room_room_postMessage_result$schema = () => (_khorsheed_dsh_room_room_postMessage_result$schema$value ??= z.union([z.object({
|
|
801
803
|
'ok': z.literal(true).readonly(),
|
|
802
804
|
'value': z.object({
|
|
803
805
|
'parsed': z.object({
|
|
804
|
-
'targets': z.array(z.string()).readonly(),
|
|
805
|
-
'text': z.string().readonly(),
|
|
806
|
+
'targets': z.array(z.string()).readonly().describe('Addressed members (never empty — a bare message is a `no-targets` rejection).'),
|
|
807
|
+
'text': z.string().readonly().describe('The message body with the leading'),
|
|
806
808
|
}).readonly(),
|
|
807
|
-
'seq': z.number().readonly(),
|
|
809
|
+
'seq': z.number().readonly().describe('Seq of the appended journal event.'),
|
|
808
810
|
}).readonly(),
|
|
809
811
|
}), z.object({
|
|
810
812
|
'ok': z.literal(false).readonly(),
|
|
@@ -873,7 +875,7 @@ const _khorsheed_dsh_room_room_postMessage_result$schema = () => (_khorsheed_dsh
|
|
|
873
875
|
})]))
|
|
874
876
|
let _khorsheed_dsh_room_room_prepareMember_parameter_0$schema$value
|
|
875
877
|
const _khorsheed_dsh_room_room_prepareMember_parameter_0$schema = () => (_khorsheed_dsh_room_room_prepareMember_parameter_0$schema$value ??= z.object({
|
|
876
|
-
'sessionId': z.
|
|
878
|
+
'sessionId': z.string().readonly(),
|
|
877
879
|
'name': z.string().readonly(),
|
|
878
880
|
}))
|
|
879
881
|
let _khorsheed_dsh_room_room_prepareMember_result$schema$value
|
|
@@ -949,9 +951,9 @@ const _khorsheed_dsh_room_room_prepareMember_result$schema = () => (_khorsheed_d
|
|
|
949
951
|
})]))
|
|
950
952
|
let _khorsheed_dsh_room_room_reconcileDelivery_parameter_0$schema$value
|
|
951
953
|
const _khorsheed_dsh_room_room_reconcileDelivery_parameter_0$schema = () => (_khorsheed_dsh_room_room_reconcileDelivery_parameter_0$schema$value ??= z.object({
|
|
952
|
-
'sessionId': z.
|
|
954
|
+
'sessionId': z.string().readonly(),
|
|
953
955
|
'deliveryId': z.string().readonly(),
|
|
954
|
-
'outcome': z.union([z.literal("
|
|
956
|
+
'outcome': z.union([z.literal("cancelled"), z.literal("done")]).readonly(),
|
|
955
957
|
'evidence': z.string().readonly(),
|
|
956
958
|
}))
|
|
957
959
|
let _khorsheed_dsh_room_room_reconcileDelivery_result$schema$value
|
|
@@ -1024,8 +1026,8 @@ const _khorsheed_dsh_room_room_reconcileDelivery_result$schema = () => (_khorshe
|
|
|
1024
1026
|
})]))
|
|
1025
1027
|
let _khorsheed_dsh_room_room_removeMember_parameter_0$schema$value
|
|
1026
1028
|
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(),
|
|
1029
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
1030
|
+
'name': z.string().readonly().describe('Member to remove.'),
|
|
1029
1031
|
}))
|
|
1030
1032
|
let _khorsheed_dsh_room_room_removeMember_result$schema$value
|
|
1031
1033
|
const _khorsheed_dsh_room_room_removeMember_result$schema = () => (_khorsheed_dsh_room_room_removeMember_result$schema$value ??= z.union([z.object({
|
|
@@ -1100,7 +1102,7 @@ const _khorsheed_dsh_room_room_removeMember_result$schema = () => (_khorsheed_ds
|
|
|
1100
1102
|
})]))
|
|
1101
1103
|
let _khorsheed_dsh_room_room_setCoordinator_parameter_0$schema$value
|
|
1102
1104
|
const _khorsheed_dsh_room_room_setCoordinator_parameter_0$schema = () => (_khorsheed_dsh_room_room_setCoordinator_parameter_0$schema$value ??= z.object({
|
|
1103
|
-
'sessionId': z.
|
|
1105
|
+
'sessionId': z.string().readonly(),
|
|
1104
1106
|
'memberId': z.string().readonly(),
|
|
1105
1107
|
'expectedRevision': z.number().readonly(),
|
|
1106
1108
|
}))
|
|
@@ -1181,8 +1183,8 @@ const _khorsheed_dsh_room_room_setCoordinator_result$schema = () => (_khorsheed_
|
|
|
1181
1183
|
})]))
|
|
1182
1184
|
let _khorsheed_dsh_room_room_setGoal_parameter_0$schema$value
|
|
1183
1185
|
const _khorsheed_dsh_room_room_setGoal_parameter_0$schema = () => (_khorsheed_dsh_room_room_setGoal_parameter_0$schema$value ??= z.object({
|
|
1184
|
-
'sessionId': z.
|
|
1185
|
-
'text': z.string().readonly(),
|
|
1186
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
1187
|
+
'text': z.string().readonly().describe('Goal text; blank clears the goal.'),
|
|
1186
1188
|
}))
|
|
1187
1189
|
let _khorsheed_dsh_room_room_setGoal_result$schema$value
|
|
1188
1190
|
const _khorsheed_dsh_room_room_setGoal_result$schema = () => (_khorsheed_dsh_room_room_setGoal_result$schema$value ??= z.union([z.object({
|
|
@@ -1257,12 +1259,12 @@ const _khorsheed_dsh_room_room_setGoal_result$schema = () => (_khorsheed_dsh_roo
|
|
|
1257
1259
|
})]))
|
|
1258
1260
|
let _khorsheed_dsh_room_room_updateMember_parameter_0$schema$value
|
|
1259
1261
|
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
|
-
'cwd': z.union([z.literal(null), z.string()]).readonly().optional(),
|
|
1265
|
-
'model': z.union([z.literal(null), z.string()]).readonly().optional(),
|
|
1262
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
1263
|
+
'name': z.string().readonly().describe('Member to update (its CURRENT name).'),
|
|
1264
|
+
'rename': z.string().readonly().optional().describe('Rename: the new'),
|
|
1265
|
+
'instructions': z.union([z.literal(null), z.string()]).readonly().optional().describe('New role instructions; null (or a blank string) CLEARS them.'),
|
|
1266
|
+
'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.'),
|
|
1267
|
+
'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.'),
|
|
1266
1268
|
}))
|
|
1267
1269
|
let _khorsheed_dsh_room_room_updateMember_result$schema$value
|
|
1268
1270
|
const _khorsheed_dsh_room_room_updateMember_result$schema = () => (_khorsheed_dsh_room_room_updateMember_result$schema$value ??= z.union([z.object({
|
|
@@ -1335,26 +1337,136 @@ const _khorsheed_dsh_room_room_updateMember_result$schema = () => (_khorsheed_ds
|
|
|
1335
1337
|
'message': z.string().readonly(),
|
|
1336
1338
|
})]).readonly(),
|
|
1337
1339
|
})]))
|
|
1340
|
+
let _khorsheed_dsh_room_room_addTask_parameter_0_strict$schema$value
|
|
1341
|
+
const _khorsheed_dsh_room_room_addTask_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_addTask_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1342
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
1343
|
+
'member': z.string().readonly().describe('The member owning the task.'),
|
|
1344
|
+
'title': z.string().readonly().describe('Task title (non-blank).'),
|
|
1345
|
+
'blockedBy': z.string().readonly().optional().describe('Optional member this task waits on ("等 ada" — display only, never an automatic dispatch). Must name a roster member when present.'),
|
|
1346
|
+
}))
|
|
1347
|
+
let _khorsheed_dsh_room_room_cancel_parameter_0_strict$schema$value
|
|
1348
|
+
const _khorsheed_dsh_room_room_cancel_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_cancel_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1349
|
+
'expectedRunId': z.string().readonly().optional().describe('Optional fencing for an execution card; a stale card must never stop a successor.'),
|
|
1350
|
+
'expectedStartedAt': z.number().readonly().optional(),
|
|
1351
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
1352
|
+
'name': z.string().readonly().describe('Member whose run should be cancelled.'),
|
|
1353
|
+
}))
|
|
1354
|
+
let _khorsheed_dsh_room_room_cancelChild_parameter_0_strict$schema$value
|
|
1355
|
+
const _khorsheed_dsh_room_room_cancelChild_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_cancelChild_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1356
|
+
'sessionId': z.string(),
|
|
1357
|
+
'childSessionId': z.string(),
|
|
1358
|
+
}))
|
|
1359
|
+
let _khorsheed_dsh_room_room_closeTask_parameter_0_strict$schema$value
|
|
1360
|
+
const _khorsheed_dsh_room_room_closeTask_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_closeTask_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1361
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
1362
|
+
'taskId': z.string().readonly().describe('The task to close.'),
|
|
1363
|
+
'status': z.union([z.literal("cancelled"), z.literal("done")]).readonly().optional().describe('Closing status (default \'done\').'),
|
|
1364
|
+
}))
|
|
1365
|
+
let _khorsheed_dsh_room_room_confirmRelay_parameter_0_strict$schema$value
|
|
1366
|
+
const _khorsheed_dsh_room_room_confirmRelay_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_confirmRelay_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1367
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
1368
|
+
'relayId': z.string().readonly().describe('The relay to resolve.'),
|
|
1369
|
+
}))
|
|
1370
|
+
let _khorsheed_dsh_room_room_dismissRelay_parameter_0_strict$schema$value
|
|
1371
|
+
const _khorsheed_dsh_room_room_dismissRelay_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_dismissRelay_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1372
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
1373
|
+
'relayId': z.string().readonly().describe('The relay to resolve.'),
|
|
1374
|
+
}))
|
|
1375
|
+
let _khorsheed_dsh_room_room_getState_parameter_0_strict$schema$value
|
|
1376
|
+
const _khorsheed_dsh_room_room_getState_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_getState_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1377
|
+
'sessionId': z.string().readonly().describe('Room session to replay.'),
|
|
1378
|
+
}))
|
|
1379
|
+
let _khorsheed_dsh_room_room_invite_parameter_0_strict$schema$value
|
|
1380
|
+
const _khorsheed_dsh_room_room_invite_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_invite_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1381
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
1382
|
+
'provider': z.string().readonly().describe('CLI provider id (non-blank).'),
|
|
1383
|
+
'name': z.string().readonly().describe('Addressing/display name: unique in the room, no whitespace, no `@`.'),
|
|
1384
|
+
'instructions': z.string().readonly().optional().describe('Role instructions, prepended to the member\'s first dispatch.'),
|
|
1385
|
+
'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).'),
|
|
1386
|
+
'firstTask': z.string().readonly().optional().describe('Optional first task, dispatched to the member as soon as it joins.'),
|
|
1387
|
+
'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.'),
|
|
1388
|
+
}))
|
|
1389
|
+
let _khorsheed_dsh_room_room_isRoom_parameter_0_strict$schema$value
|
|
1390
|
+
const _khorsheed_dsh_room_room_isRoom_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_isRoom_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1391
|
+
'sessionId': z.string().readonly().describe('Session to probe.'),
|
|
1392
|
+
}))
|
|
1393
|
+
let _khorsheed_dsh_room_room_listProviders_parameter_0_strict$schema$value
|
|
1394
|
+
const _khorsheed_dsh_room_room_listProviders_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_listProviders_parameter_0_strict$schema$value ??= z.strictObject({}))
|
|
1395
|
+
let _khorsheed_dsh_room_room_planCommand_parameter_0_strict$schema$value
|
|
1396
|
+
const _khorsheed_dsh_room_room_planCommand_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_planCommand_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1397
|
+
'sessionId': z.string(),
|
|
1398
|
+
'command': z.string(),
|
|
1399
|
+
}))
|
|
1400
|
+
let _khorsheed_dsh_room_room_postMessage_parameter_0_strict$schema$value
|
|
1401
|
+
const _khorsheed_dsh_room_room_postMessage_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_postMessage_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1402
|
+
'requestId': z.string().readonly().optional(),
|
|
1403
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
1404
|
+
'text': z.string().readonly().describe('Raw composer text: leading `@name` tokens address members.'),
|
|
1405
|
+
'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.'),
|
|
1406
|
+
}))
|
|
1407
|
+
let _khorsheed_dsh_room_room_prepareMember_parameter_0_strict$schema$value
|
|
1408
|
+
const _khorsheed_dsh_room_room_prepareMember_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_prepareMember_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1409
|
+
'sessionId': z.string().readonly(),
|
|
1410
|
+
'name': z.string().readonly(),
|
|
1411
|
+
}))
|
|
1412
|
+
let _khorsheed_dsh_room_room_reconcileDelivery_parameter_0_strict$schema$value
|
|
1413
|
+
const _khorsheed_dsh_room_room_reconcileDelivery_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_reconcileDelivery_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1414
|
+
'sessionId': z.string().readonly(),
|
|
1415
|
+
'deliveryId': z.string().readonly(),
|
|
1416
|
+
'outcome': z.union([z.literal("cancelled"), z.literal("done")]).readonly(),
|
|
1417
|
+
'evidence': z.string().readonly(),
|
|
1418
|
+
}))
|
|
1419
|
+
let _khorsheed_dsh_room_room_removeMember_parameter_0_strict$schema$value
|
|
1420
|
+
const _khorsheed_dsh_room_room_removeMember_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_removeMember_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1421
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
1422
|
+
'name': z.string().readonly().describe('Member to remove.'),
|
|
1423
|
+
}))
|
|
1424
|
+
let _khorsheed_dsh_room_room_setCoordinator_parameter_0_strict$schema$value
|
|
1425
|
+
const _khorsheed_dsh_room_room_setCoordinator_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_setCoordinator_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1426
|
+
'sessionId': z.string().readonly(),
|
|
1427
|
+
'memberId': z.string().readonly(),
|
|
1428
|
+
'expectedRevision': z.number().readonly(),
|
|
1429
|
+
}))
|
|
1430
|
+
let _khorsheed_dsh_room_room_setGoal_parameter_0_strict$schema$value
|
|
1431
|
+
const _khorsheed_dsh_room_room_setGoal_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_setGoal_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1432
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
1433
|
+
'text': z.string().readonly().describe('Goal text; blank clears the goal.'),
|
|
1434
|
+
}))
|
|
1435
|
+
let _khorsheed_dsh_room_room_updateMember_parameter_0_strict$schema$value
|
|
1436
|
+
const _khorsheed_dsh_room_room_updateMember_parameter_0_strict$schema = () => (_khorsheed_dsh_room_room_updateMember_parameter_0_strict$schema$value ??= z.strictObject({
|
|
1437
|
+
'sessionId': z.string().readonly().describe('Room session.'),
|
|
1438
|
+
'name': z.string().readonly().describe('Member to update (its CURRENT name).'),
|
|
1439
|
+
'rename': z.string().readonly().optional().describe('Rename: the new'),
|
|
1440
|
+
'instructions': z.union([z.literal(null), z.string()]).readonly().optional().describe('New role instructions; null (or a blank string) CLEARS them.'),
|
|
1441
|
+
'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.'),
|
|
1442
|
+
'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.'),
|
|
1443
|
+
}))
|
|
1338
1444
|
|
|
1339
|
-
export const TYPERT_REMOTE = {
|
|
1445
|
+
export const TYPERT_REMOTE = createTypertRemoteInfo({
|
|
1340
1446
|
package: '@khorsheed/dsh-room',
|
|
1341
|
-
|
|
1342
|
-
{
|
|
1343
|
-
id: '@khorsheed/dsh-room#room/addTask',
|
|
1447
|
+
methods: {
|
|
1448
|
+
'room/addTask': {
|
|
1344
1449
|
service: 'room',
|
|
1345
|
-
|
|
1346
|
-
method: 'addTask',
|
|
1450
|
+
description: 'Add a task to a member\'s board lane (the human\'s management entry;',
|
|
1347
1451
|
invocation: { kind: 'direct' },
|
|
1348
1452
|
parameters: [
|
|
1349
1453
|
{
|
|
1350
1454
|
name: 'request',
|
|
1351
|
-
|
|
1455
|
+
description: 'room session, member, title, optional blockedBy.',
|
|
1352
1456
|
source: 'json',
|
|
1353
1457
|
codec: {
|
|
1354
1458
|
mode: 'strict',
|
|
1355
1459
|
typeSymbol: '@khorsheed/dsh-room/types#RoomAddTaskRequest',
|
|
1356
1460
|
create: _khorsheed_dsh_room_room_addTask_parameter_0$schema,
|
|
1357
1461
|
schema: _khorsheed_dsh_room_room_addTask_parameter_0$schema(),
|
|
1462
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"member":{"type":"string","description":"The member owning the task."},"title":{"type":"string","description":"Task title (non-blank)."},"blockedBy":{"type":"string","description":"Optional member this task waits on (\"等 ada\" — display only, never an automatic dispatch). Must name a roster member when present."}},"required":["sessionId","member","title"],"additionalProperties":true},
|
|
1463
|
+
},
|
|
1464
|
+
strictCodec: {
|
|
1465
|
+
mode: 'strict',
|
|
1466
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomAddTaskRequest',
|
|
1467
|
+
create: _khorsheed_dsh_room_room_addTask_parameter_0_strict$schema,
|
|
1468
|
+
schema: _khorsheed_dsh_room_room_addTask_parameter_0_strict$schema(),
|
|
1469
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"member":{"type":"string","description":"The member owning the task."},"title":{"type":"string","description":"Task title (non-blank)."},"blockedBy":{"type":"string","description":"Optional member this task waits on (\"等 ada\" — display only, never an automatic dispatch). Must name a roster member when present."}},"required":["sessionId","member","title"],"additionalProperties":false},
|
|
1358
1470
|
},
|
|
1359
1471
|
},
|
|
1360
1472
|
],
|
|
@@ -1363,25 +1475,33 @@ export const TYPERT_REMOTE = {
|
|
|
1363
1475
|
typeSymbol: '@khorsheed/dsh-room/types#RoomAddTaskResult',
|
|
1364
1476
|
create: _khorsheed_dsh_room_room_addTask_result$schema,
|
|
1365
1477
|
schema: _khorsheed_dsh_room_room_addTask_result$schema(),
|
|
1478
|
+
description: 'the new task\'s id, or a rejection.',
|
|
1479
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"value":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"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":"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":"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
1480
|
},
|
|
1367
1481
|
sourceLocation: {"file":"packages/room/src/index.ts","line":948,"column":9},
|
|
1368
1482
|
},
|
|
1369
|
-
{
|
|
1370
|
-
id: '@khorsheed/dsh-room#room/cancel',
|
|
1483
|
+
'room/cancel': {
|
|
1371
1484
|
service: 'room',
|
|
1372
|
-
|
|
1373
|
-
method: 'cancel',
|
|
1485
|
+
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
1486
|
invocation: { kind: 'direct' },
|
|
1375
1487
|
parameters: [
|
|
1376
1488
|
{
|
|
1377
1489
|
name: 'request',
|
|
1378
|
-
|
|
1490
|
+
description: 'room session, member name.',
|
|
1379
1491
|
source: 'json',
|
|
1380
1492
|
codec: {
|
|
1381
1493
|
mode: 'strict',
|
|
1382
1494
|
typeSymbol: '@khorsheed/dsh-room/types#RoomCancelRequest',
|
|
1383
1495
|
create: _khorsheed_dsh_room_room_cancel_parameter_0$schema,
|
|
1384
1496
|
schema: _khorsheed_dsh_room_room_cancel_parameter_0$schema(),
|
|
1497
|
+
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},
|
|
1498
|
+
},
|
|
1499
|
+
strictCodec: {
|
|
1500
|
+
mode: 'strict',
|
|
1501
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomCancelRequest',
|
|
1502
|
+
create: _khorsheed_dsh_room_room_cancel_parameter_0_strict$schema,
|
|
1503
|
+
schema: _khorsheed_dsh_room_room_cancel_parameter_0_strict$schema(),
|
|
1504
|
+
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
1505
|
},
|
|
1386
1506
|
},
|
|
1387
1507
|
],
|
|
@@ -1390,25 +1510,32 @@ export const TYPERT_REMOTE = {
|
|
|
1390
1510
|
typeSymbol: '@khorsheed/dsh-room/types#RoomCancelResult',
|
|
1391
1511
|
create: _khorsheed_dsh_room_room_cancel_result$schema,
|
|
1392
1512
|
schema: _khorsheed_dsh_room_room_cancel_result$schema(),
|
|
1513
|
+
description: 'the cancellation receipt, or a rejection.',
|
|
1514
|
+
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":"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":"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
1515
|
},
|
|
1394
1516
|
sourceLocation: {"file":"packages/room/src/index.ts","line":1053,"column":9},
|
|
1395
1517
|
},
|
|
1396
|
-
{
|
|
1397
|
-
id: '@khorsheed/dsh-room#room/cancelChild',
|
|
1518
|
+
'room/cancelChild': {
|
|
1398
1519
|
service: 'room',
|
|
1399
|
-
|
|
1400
|
-
method: 'cancelChild',
|
|
1520
|
+
description: 'Native descendant controls share the host\'s continuation and cancellation channels.',
|
|
1401
1521
|
invocation: { kind: 'direct' },
|
|
1402
1522
|
parameters: [
|
|
1403
1523
|
{
|
|
1404
1524
|
name: 'request',
|
|
1405
|
-
wire: 'request',
|
|
1406
1525
|
source: 'json',
|
|
1407
1526
|
codec: {
|
|
1408
1527
|
mode: 'strict',
|
|
1409
1528
|
typeSymbol: '@khorsheed/dsh-room#room/cancelChild:request',
|
|
1410
1529
|
create: _khorsheed_dsh_room_room_cancelChild_parameter_0$schema,
|
|
1411
1530
|
schema: _khorsheed_dsh_room_room_cancelChild_parameter_0$schema(),
|
|
1531
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"childSessionId":{"type":"string"}},"required":["sessionId","childSessionId"],"additionalProperties":true},
|
|
1532
|
+
},
|
|
1533
|
+
strictCodec: {
|
|
1534
|
+
mode: 'strict',
|
|
1535
|
+
typeSymbol: '@khorsheed/dsh-room#room/cancelChild:request',
|
|
1536
|
+
create: _khorsheed_dsh_room_room_cancelChild_parameter_0_strict$schema,
|
|
1537
|
+
schema: _khorsheed_dsh_room_room_cancelChild_parameter_0_strict$schema(),
|
|
1538
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"childSessionId":{"type":"string"}},"required":["sessionId","childSessionId"],"additionalProperties":false},
|
|
1412
1539
|
},
|
|
1413
1540
|
},
|
|
1414
1541
|
],
|
|
@@ -1417,25 +1544,32 @@ export const TYPERT_REMOTE = {
|
|
|
1417
1544
|
typeSymbol: '@khorsheed/dsh-room/types#RoomCancelResult',
|
|
1418
1545
|
create: _khorsheed_dsh_room_room_cancelChild_result$schema,
|
|
1419
1546
|
schema: _khorsheed_dsh_room_room_cancelChild_result$schema(),
|
|
1547
|
+
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":"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":"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
1548
|
},
|
|
1421
1549
|
sourceLocation: {"file":"packages/room/src/index.ts","line":1093,"column":9},
|
|
1422
1550
|
},
|
|
1423
|
-
{
|
|
1424
|
-
id: '@khorsheed/dsh-room#room/closeTask',
|
|
1551
|
+
'room/closeTask': {
|
|
1425
1552
|
service: 'room',
|
|
1426
|
-
|
|
1427
|
-
method: 'closeTask',
|
|
1553
|
+
description: 'Close an open task (done by default, or cancelled). A failed task is still open for closing — that is the human\'s dismiss path after a failed run (the board\'s [关闭] passes \'cancelled\').',
|
|
1428
1554
|
invocation: { kind: 'direct' },
|
|
1429
1555
|
parameters: [
|
|
1430
1556
|
{
|
|
1431
1557
|
name: 'request',
|
|
1432
|
-
|
|
1558
|
+
description: 'room session, task id, optional closing status.',
|
|
1433
1559
|
source: 'json',
|
|
1434
1560
|
codec: {
|
|
1435
1561
|
mode: 'strict',
|
|
1436
1562
|
typeSymbol: '@khorsheed/dsh-room/types#RoomCloseTaskRequest',
|
|
1437
1563
|
create: _khorsheed_dsh_room_room_closeTask_parameter_0$schema,
|
|
1438
1564
|
schema: _khorsheed_dsh_room_room_closeTask_parameter_0$schema(),
|
|
1565
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"taskId":{"type":"string","description":"The task to close."},"status":{"type":"string","enum":["cancelled","done"],"description":"Closing status (default 'done')."}},"required":["sessionId","taskId"],"additionalProperties":true},
|
|
1566
|
+
},
|
|
1567
|
+
strictCodec: {
|
|
1568
|
+
mode: 'strict',
|
|
1569
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomCloseTaskRequest',
|
|
1570
|
+
create: _khorsheed_dsh_room_room_closeTask_parameter_0_strict$schema,
|
|
1571
|
+
schema: _khorsheed_dsh_room_room_closeTask_parameter_0_strict$schema(),
|
|
1572
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"taskId":{"type":"string","description":"The task to close."},"status":{"type":"string","enum":["cancelled","done"],"description":"Closing status (default 'done')."}},"required":["sessionId","taskId"],"additionalProperties":false},
|
|
1439
1573
|
},
|
|
1440
1574
|
},
|
|
1441
1575
|
],
|
|
@@ -1444,25 +1578,33 @@ export const TYPERT_REMOTE = {
|
|
|
1444
1578
|
typeSymbol: '@khorsheed/dsh-room/types#RoomCloseTaskResult',
|
|
1445
1579
|
create: _khorsheed_dsh_room_room_closeTask_result$schema,
|
|
1446
1580
|
schema: _khorsheed_dsh_room_room_closeTask_result$schema(),
|
|
1581
|
+
description: 'the closed task\'s id, or a rejection.',
|
|
1582
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"value":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"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":"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":"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
1583
|
},
|
|
1448
1584
|
sourceLocation: {"file":"packages/room/src/index.ts","line":976,"column":9},
|
|
1449
1585
|
},
|
|
1450
|
-
{
|
|
1451
|
-
id: '@khorsheed/dsh-room#room/confirmRelay',
|
|
1586
|
+
'room/confirmRelay': {
|
|
1452
1587
|
service: 'room',
|
|
1453
|
-
|
|
1454
|
-
method: 'confirmRelay',
|
|
1588
|
+
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.',
|
|
1455
1589
|
invocation: { kind: 'direct' },
|
|
1456
1590
|
parameters: [
|
|
1457
1591
|
{
|
|
1458
1592
|
name: 'request',
|
|
1459
|
-
|
|
1593
|
+
description: 'room session, relay id.',
|
|
1460
1594
|
source: 'json',
|
|
1461
1595
|
codec: {
|
|
1462
1596
|
mode: 'strict',
|
|
1463
1597
|
typeSymbol: '@khorsheed/dsh-room/types#RoomRelayResolveRequest',
|
|
1464
1598
|
create: _khorsheed_dsh_room_room_confirmRelay_parameter_0$schema,
|
|
1465
1599
|
schema: _khorsheed_dsh_room_room_confirmRelay_parameter_0$schema(),
|
|
1600
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"relayId":{"type":"string","description":"The relay to resolve."}},"required":["sessionId","relayId"],"additionalProperties":true},
|
|
1601
|
+
},
|
|
1602
|
+
strictCodec: {
|
|
1603
|
+
mode: 'strict',
|
|
1604
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomRelayResolveRequest',
|
|
1605
|
+
create: _khorsheed_dsh_room_room_confirmRelay_parameter_0_strict$schema,
|
|
1606
|
+
schema: _khorsheed_dsh_room_room_confirmRelay_parameter_0_strict$schema(),
|
|
1607
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"relayId":{"type":"string","description":"The relay to resolve."}},"required":["sessionId","relayId"],"additionalProperties":false},
|
|
1466
1608
|
},
|
|
1467
1609
|
},
|
|
1468
1610
|
],
|
|
@@ -1471,25 +1613,33 @@ export const TYPERT_REMOTE = {
|
|
|
1471
1613
|
typeSymbol: '@khorsheed/dsh-room/types#RoomRelayResolveResult',
|
|
1472
1614
|
create: _khorsheed_dsh_room_room_confirmRelay_result$schema,
|
|
1473
1615
|
schema: _khorsheed_dsh_room_room_confirmRelay_result$schema(),
|
|
1616
|
+
description: 'the resolution receipt, or a rejection.',
|
|
1617
|
+
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":"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":"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
1618
|
},
|
|
1475
1619
|
sourceLocation: {"file":"packages/room/src/index.ts","line":905,"column":9},
|
|
1476
1620
|
},
|
|
1477
|
-
{
|
|
1478
|
-
id: '@khorsheed/dsh-room#room/dismissRelay',
|
|
1621
|
+
'room/dismissRelay': {
|
|
1479
1622
|
service: 'room',
|
|
1480
|
-
|
|
1481
|
-
method: 'dismissRelay',
|
|
1623
|
+
description: 'Dismiss a pending relay: the notification never reaches anyone.',
|
|
1482
1624
|
invocation: { kind: 'direct' },
|
|
1483
1625
|
parameters: [
|
|
1484
1626
|
{
|
|
1485
1627
|
name: 'request',
|
|
1486
|
-
|
|
1628
|
+
description: 'room session, relay id.',
|
|
1487
1629
|
source: 'json',
|
|
1488
1630
|
codec: {
|
|
1489
1631
|
mode: 'strict',
|
|
1490
1632
|
typeSymbol: '@khorsheed/dsh-room/types#RoomRelayResolveRequest',
|
|
1491
1633
|
create: _khorsheed_dsh_room_room_dismissRelay_parameter_0$schema,
|
|
1492
1634
|
schema: _khorsheed_dsh_room_room_dismissRelay_parameter_0$schema(),
|
|
1635
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"relayId":{"type":"string","description":"The relay to resolve."}},"required":["sessionId","relayId"],"additionalProperties":true},
|
|
1636
|
+
},
|
|
1637
|
+
strictCodec: {
|
|
1638
|
+
mode: 'strict',
|
|
1639
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomRelayResolveRequest',
|
|
1640
|
+
create: _khorsheed_dsh_room_room_dismissRelay_parameter_0_strict$schema,
|
|
1641
|
+
schema: _khorsheed_dsh_room_room_dismissRelay_parameter_0_strict$schema(),
|
|
1642
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"relayId":{"type":"string","description":"The relay to resolve."}},"required":["sessionId","relayId"],"additionalProperties":false},
|
|
1493
1643
|
},
|
|
1494
1644
|
},
|
|
1495
1645
|
],
|
|
@@ -1498,25 +1648,33 @@ export const TYPERT_REMOTE = {
|
|
|
1498
1648
|
typeSymbol: '@khorsheed/dsh-room/types#RoomRelayResolveResult',
|
|
1499
1649
|
create: _khorsheed_dsh_room_room_dismissRelay_result$schema,
|
|
1500
1650
|
schema: _khorsheed_dsh_room_room_dismissRelay_result$schema(),
|
|
1651
|
+
description: 'the resolution receipt, or a rejection.',
|
|
1652
|
+
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":"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":"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
1653
|
},
|
|
1502
1654
|
sourceLocation: {"file":"packages/room/src/index.ts","line":928,"column":9},
|
|
1503
1655
|
},
|
|
1504
|
-
{
|
|
1505
|
-
id: '@khorsheed/dsh-room#room/getState',
|
|
1656
|
+
'room/getState': {
|
|
1506
1657
|
service: 'room',
|
|
1507
|
-
|
|
1508
|
-
method: 'getState',
|
|
1658
|
+
description: 'Replay the room\'s journal into the derived state (roster, notification relays, task board, run states).',
|
|
1509
1659
|
invocation: { kind: 'direct' },
|
|
1510
1660
|
parameters: [
|
|
1511
1661
|
{
|
|
1512
1662
|
name: 'request',
|
|
1513
|
-
|
|
1663
|
+
description: 'room session identity.',
|
|
1514
1664
|
source: 'json',
|
|
1515
1665
|
codec: {
|
|
1516
1666
|
mode: 'strict',
|
|
1517
1667
|
typeSymbol: '@khorsheed/dsh-room/types#RoomGetStateRequest',
|
|
1518
1668
|
create: _khorsheed_dsh_room_room_getState_parameter_0$schema,
|
|
1519
1669
|
schema: _khorsheed_dsh_room_room_getState_parameter_0$schema(),
|
|
1670
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session to replay."}},"required":["sessionId"],"additionalProperties":true},
|
|
1671
|
+
},
|
|
1672
|
+
strictCodec: {
|
|
1673
|
+
mode: 'strict',
|
|
1674
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomGetStateRequest',
|
|
1675
|
+
create: _khorsheed_dsh_room_room_getState_parameter_0_strict$schema,
|
|
1676
|
+
schema: _khorsheed_dsh_room_room_getState_parameter_0_strict$schema(),
|
|
1677
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session to replay."}},"required":["sessionId"],"additionalProperties":false},
|
|
1520
1678
|
},
|
|
1521
1679
|
},
|
|
1522
1680
|
],
|
|
@@ -1525,25 +1683,33 @@ export const TYPERT_REMOTE = {
|
|
|
1525
1683
|
typeSymbol: '@khorsheed/dsh-room/types#RoomGetStateResult',
|
|
1526
1684
|
create: _khorsheed_dsh_room_room_getState_result$schema,
|
|
1527
1685
|
schema: _khorsheed_dsh_room_room_getState_result$schema(),
|
|
1686
|
+
description: 'the replayed state, or a rejection from the closed failure union.',
|
|
1687
|
+
jsonSchemaError: 'typert tool schema: recursive selected type requires a supported JSON value declaration',
|
|
1528
1688
|
},
|
|
1529
1689
|
sourceLocation: {"file":"packages/room/src/index.ts","line":349,"column":9},
|
|
1530
1690
|
},
|
|
1531
|
-
{
|
|
1532
|
-
id: '@khorsheed/dsh-room#room/invite',
|
|
1691
|
+
'room/invite': {
|
|
1533
1692
|
service: 'room',
|
|
1534
|
-
|
|
1535
|
-
method: 'invite',
|
|
1693
|
+
description: 'Invite a CLI member (the human path; see inviteMember).',
|
|
1536
1694
|
invocation: { kind: 'direct' },
|
|
1537
1695
|
parameters: [
|
|
1538
1696
|
{
|
|
1539
1697
|
name: 'request',
|
|
1540
|
-
|
|
1698
|
+
description: 'room session, provider, name, optional cwd, instructions and first task.',
|
|
1541
1699
|
source: 'json',
|
|
1542
1700
|
codec: {
|
|
1543
1701
|
mode: 'strict',
|
|
1544
1702
|
typeSymbol: '@khorsheed/dsh-room/types#RoomInviteRequest',
|
|
1545
1703
|
create: _khorsheed_dsh_room_room_invite_parameter_0$schema,
|
|
1546
1704
|
schema: _khorsheed_dsh_room_room_invite_parameter_0$schema(),
|
|
1705
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"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."},"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."},"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."}},"required":["sessionId","provider","name"],"additionalProperties":true},
|
|
1706
|
+
},
|
|
1707
|
+
strictCodec: {
|
|
1708
|
+
mode: 'strict',
|
|
1709
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomInviteRequest',
|
|
1710
|
+
create: _khorsheed_dsh_room_room_invite_parameter_0_strict$schema,
|
|
1711
|
+
schema: _khorsheed_dsh_room_room_invite_parameter_0_strict$schema(),
|
|
1712
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"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."},"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."},"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."}},"required":["sessionId","provider","name"],"additionalProperties":false},
|
|
1547
1713
|
},
|
|
1548
1714
|
},
|
|
1549
1715
|
],
|
|
@@ -1552,25 +1718,33 @@ export const TYPERT_REMOTE = {
|
|
|
1552
1718
|
typeSymbol: '@khorsheed/dsh-room/types#RoomInviteResult',
|
|
1553
1719
|
create: _khorsheed_dsh_room_room_invite_result$schema,
|
|
1554
1720
|
schema: _khorsheed_dsh_room_room_invite_result$schema(),
|
|
1721
|
+
description: 'the invitation receipt, or a rejection.',
|
|
1722
|
+
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."}},"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":"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":"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
1723
|
},
|
|
1556
1724
|
sourceLocation: {"file":"packages/room/src/index.ts","line":450,"column":3},
|
|
1557
1725
|
},
|
|
1558
|
-
{
|
|
1559
|
-
id: '@khorsheed/dsh-room#room/isRoom',
|
|
1726
|
+
'room/isRoom': {
|
|
1560
1727
|
service: 'room',
|
|
1561
|
-
|
|
1562
|
-
method: 'isRoom',
|
|
1728
|
+
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
1729
|
invocation: { kind: 'direct' },
|
|
1564
1730
|
parameters: [
|
|
1565
1731
|
{
|
|
1566
1732
|
name: 'request',
|
|
1567
|
-
|
|
1733
|
+
description: 'session identity.',
|
|
1568
1734
|
source: 'json',
|
|
1569
1735
|
codec: {
|
|
1570
1736
|
mode: 'strict',
|
|
1571
1737
|
typeSymbol: '@khorsheed/dsh-room/types#RoomIsRoomRequest',
|
|
1572
1738
|
create: _khorsheed_dsh_room_room_isRoom_parameter_0$schema,
|
|
1573
1739
|
schema: _khorsheed_dsh_room_room_isRoom_parameter_0$schema(),
|
|
1740
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Session to probe."}},"required":["sessionId"],"additionalProperties":true},
|
|
1741
|
+
},
|
|
1742
|
+
strictCodec: {
|
|
1743
|
+
mode: 'strict',
|
|
1744
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomIsRoomRequest',
|
|
1745
|
+
create: _khorsheed_dsh_room_room_isRoom_parameter_0_strict$schema,
|
|
1746
|
+
schema: _khorsheed_dsh_room_room_isRoom_parameter_0_strict$schema(),
|
|
1747
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Session to probe."}},"required":["sessionId"],"additionalProperties":false},
|
|
1574
1748
|
},
|
|
1575
1749
|
},
|
|
1576
1750
|
],
|
|
@@ -1579,25 +1753,33 @@ export const TYPERT_REMOTE = {
|
|
|
1579
1753
|
typeSymbol: '@khorsheed/dsh-room#room/isRoom:result',
|
|
1580
1754
|
create: _khorsheed_dsh_room_room_isRoom_result$schema,
|
|
1581
1755
|
schema: _khorsheed_dsh_room_room_isRoom_result$schema(),
|
|
1756
|
+
description: 'true when the session carries the marker (false for unknown sessions too).',
|
|
1757
|
+
jsonSchema: {"type":"boolean"},
|
|
1582
1758
|
},
|
|
1583
1759
|
sourceLocation: {"file":"packages/room/src/index.ts","line":272,"column":9},
|
|
1584
1760
|
},
|
|
1585
|
-
{
|
|
1586
|
-
id: '@khorsheed/dsh-room#room/listProviders',
|
|
1761
|
+
'room/listProviders': {
|
|
1587
1762
|
service: 'room',
|
|
1588
|
-
|
|
1589
|
-
method: 'listProviders',
|
|
1763
|
+
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
1764
|
invocation: { kind: 'direct' },
|
|
1591
1765
|
parameters: [
|
|
1592
1766
|
{
|
|
1593
1767
|
name: '_request',
|
|
1594
|
-
|
|
1768
|
+
description: 'no parameters.',
|
|
1595
1769
|
source: 'json',
|
|
1596
1770
|
codec: {
|
|
1597
1771
|
mode: 'strict',
|
|
1598
1772
|
typeSymbol: '@khorsheed/dsh-room/types#RoomListProvidersRequest',
|
|
1599
1773
|
create: _khorsheed_dsh_room_room_listProviders_parameter_0$schema,
|
|
1600
1774
|
schema: _khorsheed_dsh_room_room_listProviders_parameter_0$schema(),
|
|
1775
|
+
jsonSchema: {"type":"object","properties":{},"required":[],"additionalProperties":true},
|
|
1776
|
+
},
|
|
1777
|
+
strictCodec: {
|
|
1778
|
+
mode: 'strict',
|
|
1779
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomListProvidersRequest',
|
|
1780
|
+
create: _khorsheed_dsh_room_room_listProviders_parameter_0_strict$schema,
|
|
1781
|
+
schema: _khorsheed_dsh_room_room_listProviders_parameter_0_strict$schema(),
|
|
1782
|
+
jsonSchema: {"type":"object","properties":{},"required":[],"additionalProperties":false},
|
|
1601
1783
|
},
|
|
1602
1784
|
},
|
|
1603
1785
|
],
|
|
@@ -1606,25 +1788,32 @@ export const TYPERT_REMOTE = {
|
|
|
1606
1788
|
typeSymbol: '@khorsheed/dsh-room/types#RoomProviderList',
|
|
1607
1789
|
create: _khorsheed_dsh_room_room_listProviders_result$schema,
|
|
1608
1790
|
schema: _khorsheed_dsh_room_room_listProviders_result$schema(),
|
|
1791
|
+
description: 'the provider list and the facade verdict.',
|
|
1792
|
+
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}}},"required":["localAgentAvailable","providers"],"additionalProperties":true},
|
|
1609
1793
|
},
|
|
1610
1794
|
sourceLocation: {"file":"packages/room/src/index.ts","line":321,"column":9},
|
|
1611
1795
|
},
|
|
1612
|
-
{
|
|
1613
|
-
id: '@khorsheed/dsh-room#room/planCommand',
|
|
1796
|
+
'room/planCommand': {
|
|
1614
1797
|
service: 'room',
|
|
1615
|
-
|
|
1616
|
-
method: 'planCommand',
|
|
1798
|
+
description: 'Human UI and native/external tools share the same durable transition service.',
|
|
1617
1799
|
invocation: { kind: 'direct' },
|
|
1618
1800
|
parameters: [
|
|
1619
1801
|
{
|
|
1620
1802
|
name: 'request',
|
|
1621
|
-
wire: 'request',
|
|
1622
1803
|
source: 'json',
|
|
1623
1804
|
codec: {
|
|
1624
1805
|
mode: 'strict',
|
|
1625
1806
|
typeSymbol: '@khorsheed/dsh-room#room/planCommand:request',
|
|
1626
1807
|
create: _khorsheed_dsh_room_room_planCommand_parameter_0$schema,
|
|
1627
1808
|
schema: _khorsheed_dsh_room_room_planCommand_parameter_0$schema(),
|
|
1809
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"command":{"type":"string"}},"required":["sessionId","command"],"additionalProperties":true},
|
|
1810
|
+
},
|
|
1811
|
+
strictCodec: {
|
|
1812
|
+
mode: 'strict',
|
|
1813
|
+
typeSymbol: '@khorsheed/dsh-room#room/planCommand:request',
|
|
1814
|
+
create: _khorsheed_dsh_room_room_planCommand_parameter_0_strict$schema,
|
|
1815
|
+
schema: _khorsheed_dsh_room_room_planCommand_parameter_0_strict$schema(),
|
|
1816
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"command":{"type":"string"}},"required":["sessionId","command"],"additionalProperties":false},
|
|
1628
1817
|
},
|
|
1629
1818
|
},
|
|
1630
1819
|
],
|
|
@@ -1633,25 +1822,32 @@ export const TYPERT_REMOTE = {
|
|
|
1633
1822
|
typeSymbol: '@khorsheed/dsh-room#room/planCommand:result',
|
|
1634
1823
|
create: _khorsheed_dsh_room_room_planCommand_result$schema,
|
|
1635
1824
|
schema: _khorsheed_dsh_room_room_planCommand_result$schema(),
|
|
1825
|
+
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
1826
|
},
|
|
1637
1827
|
sourceLocation: {"file":"packages/room/src/index.ts","line":789,"column":9},
|
|
1638
1828
|
},
|
|
1639
|
-
{
|
|
1640
|
-
id: '@khorsheed/dsh-room#room/postMessage',
|
|
1829
|
+
'room/postMessage': {
|
|
1641
1830
|
service: 'room',
|
|
1642
|
-
|
|
1643
|
-
method: 'postMessage',
|
|
1831
|
+
description: 'Post a human',
|
|
1644
1832
|
invocation: { kind: 'direct' },
|
|
1645
1833
|
parameters: [
|
|
1646
1834
|
{
|
|
1647
1835
|
name: 'request',
|
|
1648
|
-
|
|
1836
|
+
description: 'room session, raw composer text, and the menu-picked addressees.',
|
|
1649
1837
|
source: 'json',
|
|
1650
1838
|
codec: {
|
|
1651
1839
|
mode: 'strict',
|
|
1652
1840
|
typeSymbol: '@khorsheed/dsh-room/types#RoomPostMessageRequest',
|
|
1653
1841
|
create: _khorsheed_dsh_room_room_postMessage_parameter_0$schema,
|
|
1654
1842
|
schema: _khorsheed_dsh_room_room_postMessage_parameter_0$schema(),
|
|
1843
|
+
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."}},"required":["sessionId","text"],"additionalProperties":true},
|
|
1844
|
+
},
|
|
1845
|
+
strictCodec: {
|
|
1846
|
+
mode: 'strict',
|
|
1847
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomPostMessageRequest',
|
|
1848
|
+
create: _khorsheed_dsh_room_room_postMessage_parameter_0_strict$schema,
|
|
1849
|
+
schema: _khorsheed_dsh_room_room_postMessage_parameter_0_strict$schema(),
|
|
1850
|
+
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."}},"required":["sessionId","text"],"additionalProperties":false},
|
|
1655
1851
|
},
|
|
1656
1852
|
},
|
|
1657
1853
|
],
|
|
@@ -1660,25 +1856,32 @@ export const TYPERT_REMOTE = {
|
|
|
1660
1856
|
typeSymbol: '@khorsheed/dsh-room/types#RoomPostMessageResult',
|
|
1661
1857
|
create: _khorsheed_dsh_room_room_postMessage_result$schema,
|
|
1662
1858
|
schema: _khorsheed_dsh_room_room_postMessage_result$schema(),
|
|
1859
|
+
description: 'the parse receipt, or a rejection.',
|
|
1860
|
+
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":"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":"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
1861
|
},
|
|
1664
1862
|
sourceLocation: {"file":"packages/room/src/index.ts","line":668,"column":9},
|
|
1665
1863
|
},
|
|
1666
|
-
{
|
|
1667
|
-
id: '@khorsheed/dsh-room#room/prepareMember',
|
|
1864
|
+
'room/prepareMember': {
|
|
1668
1865
|
service: 'room',
|
|
1669
|
-
|
|
1670
|
-
method: 'prepareMember',
|
|
1866
|
+
description: 'Native preparation creates no unrelated conversation turn and leaves the role unchanged.',
|
|
1671
1867
|
invocation: { kind: 'direct' },
|
|
1672
1868
|
parameters: [
|
|
1673
1869
|
{
|
|
1674
1870
|
name: 'request',
|
|
1675
|
-
wire: 'request',
|
|
1676
1871
|
source: 'json',
|
|
1677
1872
|
codec: {
|
|
1678
1873
|
mode: 'strict',
|
|
1679
1874
|
typeSymbol: '@khorsheed/dsh-room/types#RoomPrepareMemberRequest',
|
|
1680
1875
|
create: _khorsheed_dsh_room_room_prepareMember_parameter_0$schema,
|
|
1681
1876
|
schema: _khorsheed_dsh_room_room_prepareMember_parameter_0$schema(),
|
|
1877
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"name":{"type":"string"}},"required":["sessionId","name"],"additionalProperties":true},
|
|
1878
|
+
},
|
|
1879
|
+
strictCodec: {
|
|
1880
|
+
mode: 'strict',
|
|
1881
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomPrepareMemberRequest',
|
|
1882
|
+
create: _khorsheed_dsh_room_room_prepareMember_parameter_0_strict$schema,
|
|
1883
|
+
schema: _khorsheed_dsh_room_room_prepareMember_parameter_0_strict$schema(),
|
|
1884
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"name":{"type":"string"}},"required":["sessionId","name"],"additionalProperties":false},
|
|
1682
1885
|
},
|
|
1683
1886
|
},
|
|
1684
1887
|
],
|
|
@@ -1687,25 +1890,31 @@ export const TYPERT_REMOTE = {
|
|
|
1687
1890
|
typeSymbol: '@khorsheed/dsh-room/types#RoomPrepareMemberResult',
|
|
1688
1891
|
create: _khorsheed_dsh_room_room_prepareMember_result$schema,
|
|
1689
1892
|
schema: _khorsheed_dsh_room_room_prepareMember_result$schema(),
|
|
1893
|
+
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":"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":"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
1894
|
},
|
|
1691
1895
|
sourceLocation: {"file":"packages/room/src/index.ts","line":518,"column":9},
|
|
1692
1896
|
},
|
|
1693
|
-
{
|
|
1694
|
-
id: '@khorsheed/dsh-room#room/reconcileDelivery',
|
|
1897
|
+
'room/reconcileDelivery': {
|
|
1695
1898
|
service: 'room',
|
|
1696
|
-
|
|
1697
|
-
method: 'reconcileDelivery',
|
|
1899
|
+
description: 'A human records the known result before releasing a crashed member\'s queued work.',
|
|
1698
1900
|
invocation: { kind: 'direct' },
|
|
1699
1901
|
parameters: [
|
|
1700
1902
|
{
|
|
1701
1903
|
name: 'request',
|
|
1702
|
-
wire: 'request',
|
|
1703
1904
|
source: 'json',
|
|
1704
1905
|
codec: {
|
|
1705
1906
|
mode: 'strict',
|
|
1706
1907
|
typeSymbol: '@khorsheed/dsh-room/types#RoomReconcileDeliveryRequest',
|
|
1707
1908
|
create: _khorsheed_dsh_room_room_reconcileDelivery_parameter_0$schema,
|
|
1708
1909
|
schema: _khorsheed_dsh_room_room_reconcileDelivery_parameter_0$schema(),
|
|
1910
|
+
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},
|
|
1911
|
+
},
|
|
1912
|
+
strictCodec: {
|
|
1913
|
+
mode: 'strict',
|
|
1914
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomReconcileDeliveryRequest',
|
|
1915
|
+
create: _khorsheed_dsh_room_room_reconcileDelivery_parameter_0_strict$schema,
|
|
1916
|
+
schema: _khorsheed_dsh_room_room_reconcileDelivery_parameter_0_strict$schema(),
|
|
1917
|
+
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
1918
|
},
|
|
1710
1919
|
},
|
|
1711
1920
|
],
|
|
@@ -1714,25 +1923,32 @@ export const TYPERT_REMOTE = {
|
|
|
1714
1923
|
typeSymbol: '@khorsheed/dsh-room/types#RoomReconcileDeliveryResult',
|
|
1715
1924
|
create: _khorsheed_dsh_room_room_reconcileDelivery_result$schema,
|
|
1716
1925
|
schema: _khorsheed_dsh_room_room_reconcileDelivery_result$schema(),
|
|
1926
|
+
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":"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":"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
1927
|
},
|
|
1718
1928
|
sourceLocation: {"file":"packages/room/src/index.ts","line":544,"column":9},
|
|
1719
1929
|
},
|
|
1720
|
-
{
|
|
1721
|
-
id: '@khorsheed/dsh-room#room/removeMember',
|
|
1930
|
+
'room/removeMember': {
|
|
1722
1931
|
service: 'room',
|
|
1723
|
-
|
|
1724
|
-
method: 'removeMember',
|
|
1932
|
+
description: 'Remove a member from the roster. An in-flight run is NOT interrupted here — cancel() first when the member is running.',
|
|
1725
1933
|
invocation: { kind: 'direct' },
|
|
1726
1934
|
parameters: [
|
|
1727
1935
|
{
|
|
1728
1936
|
name: 'request',
|
|
1729
|
-
|
|
1937
|
+
description: 'room session, member name.',
|
|
1730
1938
|
source: 'json',
|
|
1731
1939
|
codec: {
|
|
1732
1940
|
mode: 'strict',
|
|
1733
1941
|
typeSymbol: '@khorsheed/dsh-room/types#RoomRemoveMemberRequest',
|
|
1734
1942
|
create: _khorsheed_dsh_room_room_removeMember_parameter_0$schema,
|
|
1735
1943
|
schema: _khorsheed_dsh_room_room_removeMember_parameter_0$schema(),
|
|
1944
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"name":{"type":"string","description":"Member to remove."}},"required":["sessionId","name"],"additionalProperties":true},
|
|
1945
|
+
},
|
|
1946
|
+
strictCodec: {
|
|
1947
|
+
mode: 'strict',
|
|
1948
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomRemoveMemberRequest',
|
|
1949
|
+
create: _khorsheed_dsh_room_room_removeMember_parameter_0_strict$schema,
|
|
1950
|
+
schema: _khorsheed_dsh_room_room_removeMember_parameter_0_strict$schema(),
|
|
1951
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string","description":"Room session."},"name":{"type":"string","description":"Member to remove."}},"required":["sessionId","name"],"additionalProperties":false},
|
|
1736
1952
|
},
|
|
1737
1953
|
},
|
|
1738
1954
|
],
|
|
@@ -1741,25 +1957,32 @@ export const TYPERT_REMOTE = {
|
|
|
1741
1957
|
typeSymbol: '@khorsheed/dsh-room/types#RoomRemoveMemberResult',
|
|
1742
1958
|
create: _khorsheed_dsh_room_room_removeMember_result$schema,
|
|
1743
1959
|
schema: _khorsheed_dsh_room_room_removeMember_result$schema(),
|
|
1960
|
+
description: 'the removal receipt, or a rejection.',
|
|
1961
|
+
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":"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":"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
1962
|
},
|
|
1745
1963
|
sourceLocation: {"file":"packages/room/src/index.ts","line":631,"column":9},
|
|
1746
1964
|
},
|
|
1747
|
-
{
|
|
1748
|
-
id: '@khorsheed/dsh-room#room/setCoordinator',
|
|
1965
|
+
'room/setCoordinator': {
|
|
1749
1966
|
service: 'room',
|
|
1750
|
-
|
|
1751
|
-
method: 'setCoordinator',
|
|
1967
|
+
description: 'Explicit human role change; state is committed only after readiness and idle checks.',
|
|
1752
1968
|
invocation: { kind: 'direct' },
|
|
1753
1969
|
parameters: [
|
|
1754
1970
|
{
|
|
1755
1971
|
name: 'request',
|
|
1756
|
-
wire: 'request',
|
|
1757
1972
|
source: 'json',
|
|
1758
1973
|
codec: {
|
|
1759
1974
|
mode: 'strict',
|
|
1760
1975
|
typeSymbol: '@khorsheed/dsh-room/types#RoomSetCoordinatorRequest',
|
|
1761
1976
|
create: _khorsheed_dsh_room_room_setCoordinator_parameter_0$schema,
|
|
1762
1977
|
schema: _khorsheed_dsh_room_room_setCoordinator_parameter_0$schema(),
|
|
1978
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"memberId":{"type":"string"},"expectedRevision":{"type":"number"}},"required":["sessionId","memberId","expectedRevision"],"additionalProperties":true},
|
|
1979
|
+
},
|
|
1980
|
+
strictCodec: {
|
|
1981
|
+
mode: 'strict',
|
|
1982
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomSetCoordinatorRequest',
|
|
1983
|
+
create: _khorsheed_dsh_room_room_setCoordinator_parameter_0_strict$schema,
|
|
1984
|
+
schema: _khorsheed_dsh_room_room_setCoordinator_parameter_0_strict$schema(),
|
|
1985
|
+
jsonSchema: {"type":"object","properties":{"sessionId":{"type":"string"},"memberId":{"type":"string"},"expectedRevision":{"type":"number"}},"required":["sessionId","memberId","expectedRevision"],"additionalProperties":false},
|
|
1763
1986
|
},
|
|
1764
1987
|
},
|
|
1765
1988
|
],
|
|
@@ -1768,25 +1991,32 @@ export const TYPERT_REMOTE = {
|
|
|
1768
1991
|
typeSymbol: '@khorsheed/dsh-room/types#RoomSetCoordinatorResult',
|
|
1769
1992
|
create: _khorsheed_dsh_room_room_setCoordinator_result$schema,
|
|
1770
1993
|
schema: _khorsheed_dsh_room_room_setCoordinator_result$schema(),
|
|
1994
|
+
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":"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":"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
1995
|
},
|
|
1772
1996
|
sourceLocation: {"file":"packages/room/src/index.ts","line":561,"column":9},
|
|
1773
1997
|
},
|
|
1774
|
-
{
|
|
1775
|
-
id: '@khorsheed/dsh-room#room/setGoal',
|
|
1998
|
+
'room/setGoal': {
|
|
1776
1999
|
service: 'room',
|
|
1777
|
-
|
|
1778
|
-
method: 'setGoal',
|
|
2000
|
+
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
2001
|
invocation: { kind: 'direct' },
|
|
1780
2002
|
parameters: [
|
|
1781
2003
|
{
|
|
1782
2004
|
name: 'request',
|
|
1783
|
-
|
|
2005
|
+
description: 'room session and goal text.',
|
|
1784
2006
|
source: 'json',
|
|
1785
2007
|
codec: {
|
|
1786
2008
|
mode: 'strict',
|
|
1787
2009
|
typeSymbol: '@khorsheed/dsh-room/types#RoomSetGoalRequest',
|
|
1788
2010
|
create: _khorsheed_dsh_room_room_setGoal_parameter_0$schema,
|
|
1789
2011
|
schema: _khorsheed_dsh_room_room_setGoal_parameter_0$schema(),
|
|
2012
|
+
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},
|
|
2013
|
+
},
|
|
2014
|
+
strictCodec: {
|
|
2015
|
+
mode: 'strict',
|
|
2016
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomSetGoalRequest',
|
|
2017
|
+
create: _khorsheed_dsh_room_room_setGoal_parameter_0_strict$schema,
|
|
2018
|
+
schema: _khorsheed_dsh_room_room_setGoal_parameter_0_strict$schema(),
|
|
2019
|
+
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
2020
|
},
|
|
1791
2021
|
},
|
|
1792
2022
|
],
|
|
@@ -1795,25 +2025,33 @@ export const TYPERT_REMOTE = {
|
|
|
1795
2025
|
typeSymbol: '@khorsheed/dsh-room/types#RoomSetGoalResult',
|
|
1796
2026
|
create: _khorsheed_dsh_room_room_setGoal_result$schema,
|
|
1797
2027
|
schema: _khorsheed_dsh_room_room_setGoal_result$schema(),
|
|
2028
|
+
description: 'the now-current goal (absent after a clear), or a rejection.',
|
|
2029
|
+
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":"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":"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
2030
|
},
|
|
1799
2031
|
sourceLocation: {"file":"packages/room/src/index.ts","line":1034,"column":9},
|
|
1800
2032
|
},
|
|
1801
|
-
{
|
|
1802
|
-
id: '@khorsheed/dsh-room#room/updateMember',
|
|
2033
|
+
'room/updateMember': {
|
|
1803
2034
|
service: 'room',
|
|
1804
|
-
|
|
1805
|
-
method: 'updateMember',
|
|
2035
|
+
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
2036
|
invocation: { kind: 'direct' },
|
|
1807
2037
|
parameters: [
|
|
1808
2038
|
{
|
|
1809
2039
|
name: 'request',
|
|
1810
|
-
|
|
2040
|
+
description: 'room session, member name, and the fields to change.',
|
|
1811
2041
|
source: 'json',
|
|
1812
2042
|
codec: {
|
|
1813
2043
|
mode: 'strict',
|
|
1814
2044
|
typeSymbol: '@khorsheed/dsh-room/types#RoomUpdateMemberRequest',
|
|
1815
2045
|
create: _khorsheed_dsh_room_room_updateMember_parameter_0$schema,
|
|
1816
2046
|
schema: _khorsheed_dsh_room_room_updateMember_parameter_0$schema(),
|
|
2047
|
+
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."},"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."}},"required":["sessionId","name"],"additionalProperties":true},
|
|
2048
|
+
},
|
|
2049
|
+
strictCodec: {
|
|
2050
|
+
mode: 'strict',
|
|
2051
|
+
typeSymbol: '@khorsheed/dsh-room/types#RoomUpdateMemberRequest',
|
|
2052
|
+
create: _khorsheed_dsh_room_room_updateMember_parameter_0_strict$schema,
|
|
2053
|
+
schema: _khorsheed_dsh_room_room_updateMember_parameter_0_strict$schema(),
|
|
2054
|
+
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."},"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."}},"required":["sessionId","name"],"additionalProperties":false},
|
|
1817
2055
|
},
|
|
1818
2056
|
},
|
|
1819
2057
|
],
|
|
@@ -1822,10 +2060,12 @@ export const TYPERT_REMOTE = {
|
|
|
1822
2060
|
typeSymbol: '@khorsheed/dsh-room/types#RoomUpdateMemberResult',
|
|
1823
2061
|
create: _khorsheed_dsh_room_room_updateMember_result$schema,
|
|
1824
2062
|
schema: _khorsheed_dsh_room_room_updateMember_result$schema(),
|
|
2063
|
+
description: 'the update receipt (the CURRENT name), or a rejection.',
|
|
2064
|
+
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":"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":"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
2065
|
},
|
|
1826
2066
|
sourceLocation: {"file":"packages/room/src/index.ts","line":473,"column":9},
|
|
1827
2067
|
},
|
|
1828
|
-
|
|
1829
|
-
}
|
|
2068
|
+
},
|
|
2069
|
+
}, z)
|
|
1830
2070
|
|
|
1831
2071
|
export default TYPERT_REMOTE
|