@khorsheed/dsh-room 0.2.0 → 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.
@@ -1,14 +1,16 @@
1
1
  /* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
2
2
  import { z } from 'zod'
3
3
 
4
+ import { createTypertRemoteInfo } from '@deepseek-ai/dsh-typert-protocol/remote-info'
5
+
4
6
  let 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.intersection(z.string(), z.unknown()).readonly(),
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.intersection(z.string(), z.unknown()).readonly(),
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.intersection(z.string(), z.unknown()),
165
- 'childSessionId': z.intersection(z.string(), z.unknown()),
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.intersection(z.string(), z.unknown()).readonly(),
241
- 'taskId': z.string().readonly(),
242
- 'status': z.union([z.literal("done"), z.literal("cancelled")]).readonly().optional(),
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.intersection(z.string(), z.unknown()).readonly(),
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.intersection(z.string(), z.unknown()).readonly(),
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.intersection(z.string(), z.unknown()).readonly(),
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.intersection(z.string(), z.unknown()).readonly().optional(),
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("running"), z.literal("done"), z.literal("cancelled"), z.literal("failed")]).readonly(),
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("running"), z.literal("cancelled"), z.literal("pending"), z.literal("failed"), z.literal("submitted"), z.literal("accepted")]),
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("running"), z.literal("cancelled"), z.literal("failed"), z.literal("rejected"), z.literal("queued"), z.literal("uncertain"), z.literal("submitted"), z.literal("accepted")]),
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("running"), z.literal("done"), z.literal("cancelled"), z.literal("failed"), z.literal("queued"), z.literal("uncertain")]).readonly(),
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.intersection(z.string(), z.unknown()).readonly().optional(),
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("done"), z.literal("cancelled"), z.literal("pending"), z.literal("failed"), z.literal("in_progress")]).readonly(),
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("running"), z.literal("done"), z.literal("cancelled"), z.literal("failed")]).readonly(),
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.intersection(z.string(), z.unknown()).readonly(),
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.intersection(z.string(), z.unknown()).readonly(),
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.intersection(z.string(), z.unknown()),
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.intersection(z.string(), z.unknown()).readonly(),
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.intersection(z.string(), z.unknown()).readonly(),
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.intersection(z.string(), z.unknown()).readonly(),
954
+ 'sessionId': z.string().readonly(),
953
955
  'deliveryId': z.string().readonly(),
954
- 'outcome': z.union([z.literal("done"), z.literal("cancelled")]).readonly(),
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.intersection(z.string(), z.unknown()).readonly(),
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.intersection(z.string(), z.unknown()).readonly(),
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.intersection(z.string(), z.unknown()).readonly(),
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.intersection(z.string(), z.unknown()).readonly(),
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,29 +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 = {
1445
+ const $remote = createTypertRemoteInfo({
1340
1446
  package: '@khorsheed/dsh-room',
1341
- face: 'host',
1342
- schemas: [
1343
- ],
1344
- invocations: [
1345
- {
1346
- id: '@khorsheed/dsh-room#room/addTask',
1447
+ methods: {
1448
+ 'room/addTask': {
1347
1449
  service: 'room',
1348
- namespace: 'room',
1349
- method: 'addTask',
1450
+ description: 'Add a task to a member\'s board lane (the human\'s management entry;',
1350
1451
  invocation: { kind: 'direct' },
1351
1452
  parameters: [
1352
1453
  {
1353
1454
  name: 'request',
1354
- wire: 'request',
1455
+ description: 'room session, member, title, optional blockedBy.',
1355
1456
  source: 'json',
1356
1457
  codec: {
1357
1458
  mode: 'strict',
1358
1459
  typeSymbol: '@khorsheed/dsh-room/types#RoomAddTaskRequest',
1359
1460
  create: _khorsheed_dsh_room_room_addTask_parameter_0$schema,
1360
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},
1361
1470
  },
1362
1471
  },
1363
1472
  ],
@@ -1366,25 +1475,33 @@ export const TYPERT = {
1366
1475
  typeSymbol: '@khorsheed/dsh-room/types#RoomAddTaskResult',
1367
1476
  create: _khorsheed_dsh_room_room_addTask_result$schema,
1368
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}]},
1369
1480
  },
1370
1481
  sourceLocation: {"file":"packages/room/src/index.ts","line":948,"column":9},
1371
1482
  },
1372
- {
1373
- id: '@khorsheed/dsh-room#room/cancel',
1483
+ 'room/cancel': {
1374
1484
  service: 'room',
1375
- namespace: 'room',
1376
- 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`.',
1377
1486
  invocation: { kind: 'direct' },
1378
1487
  parameters: [
1379
1488
  {
1380
1489
  name: 'request',
1381
- wire: 'request',
1490
+ description: 'room session, member name.',
1382
1491
  source: 'json',
1383
1492
  codec: {
1384
1493
  mode: 'strict',
1385
1494
  typeSymbol: '@khorsheed/dsh-room/types#RoomCancelRequest',
1386
1495
  create: _khorsheed_dsh_room_room_cancel_parameter_0$schema,
1387
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},
1388
1505
  },
1389
1506
  },
1390
1507
  ],
@@ -1393,25 +1510,32 @@ export const TYPERT = {
1393
1510
  typeSymbol: '@khorsheed/dsh-room/types#RoomCancelResult',
1394
1511
  create: _khorsheed_dsh_room_room_cancel_result$schema,
1395
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}]},
1396
1515
  },
1397
1516
  sourceLocation: {"file":"packages/room/src/index.ts","line":1053,"column":9},
1398
1517
  },
1399
- {
1400
- id: '@khorsheed/dsh-room#room/cancelChild',
1518
+ 'room/cancelChild': {
1401
1519
  service: 'room',
1402
- namespace: 'room',
1403
- method: 'cancelChild',
1520
+ description: 'Native descendant controls share the host\'s continuation and cancellation channels.',
1404
1521
  invocation: { kind: 'direct' },
1405
1522
  parameters: [
1406
1523
  {
1407
1524
  name: 'request',
1408
- wire: 'request',
1409
1525
  source: 'json',
1410
1526
  codec: {
1411
1527
  mode: 'strict',
1412
1528
  typeSymbol: '@khorsheed/dsh-room#room/cancelChild:request',
1413
1529
  create: _khorsheed_dsh_room_room_cancelChild_parameter_0$schema,
1414
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},
1415
1539
  },
1416
1540
  },
1417
1541
  ],
@@ -1420,25 +1544,32 @@ export const TYPERT = {
1420
1544
  typeSymbol: '@khorsheed/dsh-room/types#RoomCancelResult',
1421
1545
  create: _khorsheed_dsh_room_room_cancelChild_result$schema,
1422
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}]},
1423
1548
  },
1424
1549
  sourceLocation: {"file":"packages/room/src/index.ts","line":1093,"column":9},
1425
1550
  },
1426
- {
1427
- id: '@khorsheed/dsh-room#room/closeTask',
1551
+ 'room/closeTask': {
1428
1552
  service: 'room',
1429
- namespace: 'room',
1430
- 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\').',
1431
1554
  invocation: { kind: 'direct' },
1432
1555
  parameters: [
1433
1556
  {
1434
1557
  name: 'request',
1435
- wire: 'request',
1558
+ description: 'room session, task id, optional closing status.',
1436
1559
  source: 'json',
1437
1560
  codec: {
1438
1561
  mode: 'strict',
1439
1562
  typeSymbol: '@khorsheed/dsh-room/types#RoomCloseTaskRequest',
1440
1563
  create: _khorsheed_dsh_room_room_closeTask_parameter_0$schema,
1441
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},
1442
1573
  },
1443
1574
  },
1444
1575
  ],
@@ -1447,25 +1578,33 @@ export const TYPERT = {
1447
1578
  typeSymbol: '@khorsheed/dsh-room/types#RoomCloseTaskResult',
1448
1579
  create: _khorsheed_dsh_room_room_closeTask_result$schema,
1449
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}]},
1450
1583
  },
1451
1584
  sourceLocation: {"file":"packages/room/src/index.ts","line":976,"column":9},
1452
1585
  },
1453
- {
1454
- id: '@khorsheed/dsh-room#room/confirmRelay',
1586
+ 'room/confirmRelay': {
1455
1587
  service: 'room',
1456
- namespace: 'room',
1457
- 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.',
1458
1589
  invocation: { kind: 'direct' },
1459
1590
  parameters: [
1460
1591
  {
1461
1592
  name: 'request',
1462
- wire: 'request',
1593
+ description: 'room session, relay id.',
1463
1594
  source: 'json',
1464
1595
  codec: {
1465
1596
  mode: 'strict',
1466
1597
  typeSymbol: '@khorsheed/dsh-room/types#RoomRelayResolveRequest',
1467
1598
  create: _khorsheed_dsh_room_room_confirmRelay_parameter_0$schema,
1468
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},
1469
1608
  },
1470
1609
  },
1471
1610
  ],
@@ -1474,25 +1613,33 @@ export const TYPERT = {
1474
1613
  typeSymbol: '@khorsheed/dsh-room/types#RoomRelayResolveResult',
1475
1614
  create: _khorsheed_dsh_room_room_confirmRelay_result$schema,
1476
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}]},
1477
1618
  },
1478
1619
  sourceLocation: {"file":"packages/room/src/index.ts","line":905,"column":9},
1479
1620
  },
1480
- {
1481
- id: '@khorsheed/dsh-room#room/dismissRelay',
1621
+ 'room/dismissRelay': {
1482
1622
  service: 'room',
1483
- namespace: 'room',
1484
- method: 'dismissRelay',
1623
+ description: 'Dismiss a pending relay: the notification never reaches anyone.',
1485
1624
  invocation: { kind: 'direct' },
1486
1625
  parameters: [
1487
1626
  {
1488
1627
  name: 'request',
1489
- wire: 'request',
1628
+ description: 'room session, relay id.',
1490
1629
  source: 'json',
1491
1630
  codec: {
1492
1631
  mode: 'strict',
1493
1632
  typeSymbol: '@khorsheed/dsh-room/types#RoomRelayResolveRequest',
1494
1633
  create: _khorsheed_dsh_room_room_dismissRelay_parameter_0$schema,
1495
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},
1496
1643
  },
1497
1644
  },
1498
1645
  ],
@@ -1501,25 +1648,33 @@ export const TYPERT = {
1501
1648
  typeSymbol: '@khorsheed/dsh-room/types#RoomRelayResolveResult',
1502
1649
  create: _khorsheed_dsh_room_room_dismissRelay_result$schema,
1503
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}]},
1504
1653
  },
1505
1654
  sourceLocation: {"file":"packages/room/src/index.ts","line":928,"column":9},
1506
1655
  },
1507
- {
1508
- id: '@khorsheed/dsh-room#room/getState',
1656
+ 'room/getState': {
1509
1657
  service: 'room',
1510
- namespace: 'room',
1511
- method: 'getState',
1658
+ description: 'Replay the room\'s journal into the derived state (roster, notification relays, task board, run states).',
1512
1659
  invocation: { kind: 'direct' },
1513
1660
  parameters: [
1514
1661
  {
1515
1662
  name: 'request',
1516
- wire: 'request',
1663
+ description: 'room session identity.',
1517
1664
  source: 'json',
1518
1665
  codec: {
1519
1666
  mode: 'strict',
1520
1667
  typeSymbol: '@khorsheed/dsh-room/types#RoomGetStateRequest',
1521
1668
  create: _khorsheed_dsh_room_room_getState_parameter_0$schema,
1522
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},
1523
1678
  },
1524
1679
  },
1525
1680
  ],
@@ -1528,25 +1683,33 @@ export const TYPERT = {
1528
1683
  typeSymbol: '@khorsheed/dsh-room/types#RoomGetStateResult',
1529
1684
  create: _khorsheed_dsh_room_room_getState_result$schema,
1530
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',
1531
1688
  },
1532
1689
  sourceLocation: {"file":"packages/room/src/index.ts","line":349,"column":9},
1533
1690
  },
1534
- {
1535
- id: '@khorsheed/dsh-room#room/invite',
1691
+ 'room/invite': {
1536
1692
  service: 'room',
1537
- namespace: 'room',
1538
- method: 'invite',
1693
+ description: 'Invite a CLI member (the human path; see inviteMember).',
1539
1694
  invocation: { kind: 'direct' },
1540
1695
  parameters: [
1541
1696
  {
1542
1697
  name: 'request',
1543
- wire: 'request',
1698
+ description: 'room session, provider, name, optional cwd, instructions and first task.',
1544
1699
  source: 'json',
1545
1700
  codec: {
1546
1701
  mode: 'strict',
1547
1702
  typeSymbol: '@khorsheed/dsh-room/types#RoomInviteRequest',
1548
1703
  create: _khorsheed_dsh_room_room_invite_parameter_0$schema,
1549
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},
1550
1713
  },
1551
1714
  },
1552
1715
  ],
@@ -1555,25 +1718,33 @@ export const TYPERT = {
1555
1718
  typeSymbol: '@khorsheed/dsh-room/types#RoomInviteResult',
1556
1719
  create: _khorsheed_dsh_room_room_invite_result$schema,
1557
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}]},
1558
1723
  },
1559
1724
  sourceLocation: {"file":"packages/room/src/index.ts","line":450,"column":3},
1560
1725
  },
1561
- {
1562
- id: '@khorsheed/dsh-room#room/isRoom',
1726
+ 'room/isRoom': {
1563
1727
  service: 'room',
1564
- namespace: 'room',
1565
- 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.',
1566
1729
  invocation: { kind: 'direct' },
1567
1730
  parameters: [
1568
1731
  {
1569
1732
  name: 'request',
1570
- wire: 'request',
1733
+ description: 'session identity.',
1571
1734
  source: 'json',
1572
1735
  codec: {
1573
1736
  mode: 'strict',
1574
1737
  typeSymbol: '@khorsheed/dsh-room/types#RoomIsRoomRequest',
1575
1738
  create: _khorsheed_dsh_room_room_isRoom_parameter_0$schema,
1576
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},
1577
1748
  },
1578
1749
  },
1579
1750
  ],
@@ -1582,25 +1753,33 @@ export const TYPERT = {
1582
1753
  typeSymbol: '@khorsheed/dsh-room#room/isRoom:result',
1583
1754
  create: _khorsheed_dsh_room_room_isRoom_result$schema,
1584
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"},
1585
1758
  },
1586
1759
  sourceLocation: {"file":"packages/room/src/index.ts","line":272,"column":9},
1587
1760
  },
1588
- {
1589
- id: '@khorsheed/dsh-room#room/listProviders',
1761
+ 'room/listProviders': {
1590
1762
  service: 'room',
1591
- namespace: 'room',
1592
- 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.',
1593
1764
  invocation: { kind: 'direct' },
1594
1765
  parameters: [
1595
1766
  {
1596
1767
  name: '_request',
1597
- wire: '_request',
1768
+ description: 'no parameters.',
1598
1769
  source: 'json',
1599
1770
  codec: {
1600
1771
  mode: 'strict',
1601
1772
  typeSymbol: '@khorsheed/dsh-room/types#RoomListProvidersRequest',
1602
1773
  create: _khorsheed_dsh_room_room_listProviders_parameter_0$schema,
1603
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},
1604
1783
  },
1605
1784
  },
1606
1785
  ],
@@ -1609,25 +1788,32 @@ export const TYPERT = {
1609
1788
  typeSymbol: '@khorsheed/dsh-room/types#RoomProviderList',
1610
1789
  create: _khorsheed_dsh_room_room_listProviders_result$schema,
1611
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},
1612
1793
  },
1613
1794
  sourceLocation: {"file":"packages/room/src/index.ts","line":321,"column":9},
1614
1795
  },
1615
- {
1616
- id: '@khorsheed/dsh-room#room/planCommand',
1796
+ 'room/planCommand': {
1617
1797
  service: 'room',
1618
- namespace: 'room',
1619
- method: 'planCommand',
1798
+ description: 'Human UI and native/external tools share the same durable transition service.',
1620
1799
  invocation: { kind: 'direct' },
1621
1800
  parameters: [
1622
1801
  {
1623
1802
  name: 'request',
1624
- wire: 'request',
1625
1803
  source: 'json',
1626
1804
  codec: {
1627
1805
  mode: 'strict',
1628
1806
  typeSymbol: '@khorsheed/dsh-room#room/planCommand:request',
1629
1807
  create: _khorsheed_dsh_room_room_planCommand_parameter_0$schema,
1630
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},
1631
1817
  },
1632
1818
  },
1633
1819
  ],
@@ -1636,25 +1822,32 @@ export const TYPERT = {
1636
1822
  typeSymbol: '@khorsheed/dsh-room#room/planCommand:result',
1637
1823
  create: _khorsheed_dsh_room_room_planCommand_result$schema,
1638
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}]},
1639
1826
  },
1640
1827
  sourceLocation: {"file":"packages/room/src/index.ts","line":789,"column":9},
1641
1828
  },
1642
- {
1643
- id: '@khorsheed/dsh-room#room/postMessage',
1829
+ 'room/postMessage': {
1644
1830
  service: 'room',
1645
- namespace: 'room',
1646
- method: 'postMessage',
1831
+ description: 'Post a human',
1647
1832
  invocation: { kind: 'direct' },
1648
1833
  parameters: [
1649
1834
  {
1650
1835
  name: 'request',
1651
- wire: 'request',
1836
+ description: 'room session, raw composer text, and the menu-picked addressees.',
1652
1837
  source: 'json',
1653
1838
  codec: {
1654
1839
  mode: 'strict',
1655
1840
  typeSymbol: '@khorsheed/dsh-room/types#RoomPostMessageRequest',
1656
1841
  create: _khorsheed_dsh_room_room_postMessage_parameter_0$schema,
1657
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},
1658
1851
  },
1659
1852
  },
1660
1853
  ],
@@ -1663,25 +1856,32 @@ export const TYPERT = {
1663
1856
  typeSymbol: '@khorsheed/dsh-room/types#RoomPostMessageResult',
1664
1857
  create: _khorsheed_dsh_room_room_postMessage_result$schema,
1665
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}]},
1666
1861
  },
1667
1862
  sourceLocation: {"file":"packages/room/src/index.ts","line":668,"column":9},
1668
1863
  },
1669
- {
1670
- id: '@khorsheed/dsh-room#room/prepareMember',
1864
+ 'room/prepareMember': {
1671
1865
  service: 'room',
1672
- namespace: 'room',
1673
- method: 'prepareMember',
1866
+ description: 'Native preparation creates no unrelated conversation turn and leaves the role unchanged.',
1674
1867
  invocation: { kind: 'direct' },
1675
1868
  parameters: [
1676
1869
  {
1677
1870
  name: 'request',
1678
- wire: 'request',
1679
1871
  source: 'json',
1680
1872
  codec: {
1681
1873
  mode: 'strict',
1682
1874
  typeSymbol: '@khorsheed/dsh-room/types#RoomPrepareMemberRequest',
1683
1875
  create: _khorsheed_dsh_room_room_prepareMember_parameter_0$schema,
1684
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},
1685
1885
  },
1686
1886
  },
1687
1887
  ],
@@ -1690,25 +1890,31 @@ export const TYPERT = {
1690
1890
  typeSymbol: '@khorsheed/dsh-room/types#RoomPrepareMemberResult',
1691
1891
  create: _khorsheed_dsh_room_room_prepareMember_result$schema,
1692
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}]},
1693
1894
  },
1694
1895
  sourceLocation: {"file":"packages/room/src/index.ts","line":518,"column":9},
1695
1896
  },
1696
- {
1697
- id: '@khorsheed/dsh-room#room/reconcileDelivery',
1897
+ 'room/reconcileDelivery': {
1698
1898
  service: 'room',
1699
- namespace: 'room',
1700
- method: 'reconcileDelivery',
1899
+ description: 'A human records the known result before releasing a crashed member\'s queued work.',
1701
1900
  invocation: { kind: 'direct' },
1702
1901
  parameters: [
1703
1902
  {
1704
1903
  name: 'request',
1705
- wire: 'request',
1706
1904
  source: 'json',
1707
1905
  codec: {
1708
1906
  mode: 'strict',
1709
1907
  typeSymbol: '@khorsheed/dsh-room/types#RoomReconcileDeliveryRequest',
1710
1908
  create: _khorsheed_dsh_room_room_reconcileDelivery_parameter_0$schema,
1711
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},
1712
1918
  },
1713
1919
  },
1714
1920
  ],
@@ -1717,25 +1923,32 @@ export const TYPERT = {
1717
1923
  typeSymbol: '@khorsheed/dsh-room/types#RoomReconcileDeliveryResult',
1718
1924
  create: _khorsheed_dsh_room_room_reconcileDelivery_result$schema,
1719
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}]},
1720
1927
  },
1721
1928
  sourceLocation: {"file":"packages/room/src/index.ts","line":544,"column":9},
1722
1929
  },
1723
- {
1724
- id: '@khorsheed/dsh-room#room/removeMember',
1930
+ 'room/removeMember': {
1725
1931
  service: 'room',
1726
- namespace: 'room',
1727
- 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.',
1728
1933
  invocation: { kind: 'direct' },
1729
1934
  parameters: [
1730
1935
  {
1731
1936
  name: 'request',
1732
- wire: 'request',
1937
+ description: 'room session, member name.',
1733
1938
  source: 'json',
1734
1939
  codec: {
1735
1940
  mode: 'strict',
1736
1941
  typeSymbol: '@khorsheed/dsh-room/types#RoomRemoveMemberRequest',
1737
1942
  create: _khorsheed_dsh_room_room_removeMember_parameter_0$schema,
1738
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},
1739
1952
  },
1740
1953
  },
1741
1954
  ],
@@ -1744,25 +1957,32 @@ export const TYPERT = {
1744
1957
  typeSymbol: '@khorsheed/dsh-room/types#RoomRemoveMemberResult',
1745
1958
  create: _khorsheed_dsh_room_room_removeMember_result$schema,
1746
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}]},
1747
1962
  },
1748
1963
  sourceLocation: {"file":"packages/room/src/index.ts","line":631,"column":9},
1749
1964
  },
1750
- {
1751
- id: '@khorsheed/dsh-room#room/setCoordinator',
1965
+ 'room/setCoordinator': {
1752
1966
  service: 'room',
1753
- namespace: 'room',
1754
- method: 'setCoordinator',
1967
+ description: 'Explicit human role change; state is committed only after readiness and idle checks.',
1755
1968
  invocation: { kind: 'direct' },
1756
1969
  parameters: [
1757
1970
  {
1758
1971
  name: 'request',
1759
- wire: 'request',
1760
1972
  source: 'json',
1761
1973
  codec: {
1762
1974
  mode: 'strict',
1763
1975
  typeSymbol: '@khorsheed/dsh-room/types#RoomSetCoordinatorRequest',
1764
1976
  create: _khorsheed_dsh_room_room_setCoordinator_parameter_0$schema,
1765
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},
1766
1986
  },
1767
1987
  },
1768
1988
  ],
@@ -1771,25 +1991,32 @@ export const TYPERT = {
1771
1991
  typeSymbol: '@khorsheed/dsh-room/types#RoomSetCoordinatorResult',
1772
1992
  create: _khorsheed_dsh_room_room_setCoordinator_result$schema,
1773
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}]},
1774
1995
  },
1775
1996
  sourceLocation: {"file":"packages/room/src/index.ts","line":561,"column":9},
1776
1997
  },
1777
- {
1778
- id: '@khorsheed/dsh-room#room/setGoal',
1998
+ 'room/setGoal': {
1779
1999
  service: 'room',
1780
- namespace: 'room',
1781
- 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.',
1782
2001
  invocation: { kind: 'direct' },
1783
2002
  parameters: [
1784
2003
  {
1785
2004
  name: 'request',
1786
- wire: 'request',
2005
+ description: 'room session and goal text.',
1787
2006
  source: 'json',
1788
2007
  codec: {
1789
2008
  mode: 'strict',
1790
2009
  typeSymbol: '@khorsheed/dsh-room/types#RoomSetGoalRequest',
1791
2010
  create: _khorsheed_dsh_room_room_setGoal_parameter_0$schema,
1792
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},
1793
2020
  },
1794
2021
  },
1795
2022
  ],
@@ -1798,25 +2025,33 @@ export const TYPERT = {
1798
2025
  typeSymbol: '@khorsheed/dsh-room/types#RoomSetGoalResult',
1799
2026
  create: _khorsheed_dsh_room_room_setGoal_result$schema,
1800
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}]},
1801
2030
  },
1802
2031
  sourceLocation: {"file":"packages/room/src/index.ts","line":1034,"column":9},
1803
2032
  },
1804
- {
1805
- id: '@khorsheed/dsh-room#room/updateMember',
2033
+ 'room/updateMember': {
1806
2034
  service: 'room',
1807
- namespace: 'room',
1808
- 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).',
1809
2036
  invocation: { kind: 'direct' },
1810
2037
  parameters: [
1811
2038
  {
1812
2039
  name: 'request',
1813
- wire: 'request',
2040
+ description: 'room session, member name, and the fields to change.',
1814
2041
  source: 'json',
1815
2042
  codec: {
1816
2043
  mode: 'strict',
1817
2044
  typeSymbol: '@khorsheed/dsh-room/types#RoomUpdateMemberRequest',
1818
2045
  create: _khorsheed_dsh_room_room_updateMember_parameter_0$schema,
1819
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},
1820
2055
  },
1821
2056
  },
1822
2057
  ],
@@ -1825,10 +2060,20 @@ export const TYPERT = {
1825
2060
  typeSymbol: '@khorsheed/dsh-room/types#RoomUpdateMemberResult',
1826
2061
  create: _khorsheed_dsh_room_room_updateMember_result$schema,
1827
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}]},
1828
2065
  },
1829
2066
  sourceLocation: {"file":"packages/room/src/index.ts","line":473,"column":9},
1830
2067
  },
2068
+ },
2069
+ }, z)
2070
+
2071
+ export const TYPERT = {
2072
+ package: '@khorsheed/dsh-room',
2073
+ face: 'host',
2074
+ schemas: [
1831
2075
  ],
2076
+ get invocations() { return $remote.descriptors },
1832
2077
  model: {
1833
2078
  "services": [
1834
2079
  {
@@ -2041,6 +2286,10 @@ export const TYPERT = {
2041
2286
  }
2042
2287
  ],
2043
2288
  "types": [
2289
+ {
2290
+ "name": "AfterScheduleRecord",
2291
+ "declaration": "export interface AfterScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'after';\n readonly title: string;\n readonly prompt: string;\n readonly afterSeconds: number;\n readonly scheduledAt: string;\n}"
2292
+ },
2044
2293
  {
2045
2294
  "name": "AgentCancelCause",
2046
2295
  "declaration": "export type AgentCancelCause = { readonly kind: 'user'; } | { readonly kind: 'parent'; } | { readonly kind: 'hook'; readonly reason: string; } | { readonly kind: 'disposed'; };"
@@ -2049,6 +2298,10 @@ export const TYPERT = {
2049
2298
  "name": "AgentMessageSource",
2050
2299
  "declaration": "export interface AgentMessageSource {\n readonly kind: 'agent-message';\n readonly form: 'relay';\n readonly senderSessionId: SessionId;\n}"
2051
2300
  },
2301
+ {
2302
+ "name": "AllowedModelRoute",
2303
+ "declaration": "export interface AllowedModelRoute {\n readonly provider: string;\n readonly model: string;\n}"
2304
+ },
2052
2305
  {
2053
2306
  "name": "ApprovalOutcome",
2054
2307
  "declaration": "export type ApprovalOutcome = 'allowed-once' | 'rejected' | 'cancelled' | 'unavailable';"
@@ -2073,6 +2326,10 @@ export const TYPERT = {
2073
2326
  "name": "AssistantStreamRecord",
2074
2327
  "declaration": "export type AssistantStreamRecord = { readonly type: 'text-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'reasoning-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'tool-call-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly id: ToolCallId; readonly name?: string; readonly args: readonly string[]; } | { readonly type: 'chunk'; readonly time: number; readonly chunk: StreamChunk; };"
2075
2328
  },
2329
+ {
2330
+ "name": "AtScheduleRecord",
2331
+ "declaration": "export interface AtScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'at';\n readonly title: string;\n readonly prompt: string;\n readonly scheduledAt: string;\n}"
2332
+ },
2076
2333
  {
2077
2334
  "name": "AttachmentId",
2078
2335
  "declaration": "export type AttachmentId = Branded<'AttachmentId'>;"
@@ -2097,6 +2354,14 @@ export const TYPERT = {
2097
2354
  "name": "CommandSourceMap",
2098
2355
  "declaration": "export interface CommandSourceMap {\n user: { kind: 'user'; };\n}"
2099
2356
  },
2357
+ {
2358
+ "name": "CompactionCheckpointSource",
2359
+ "declaration": "export type CompactionCheckpointSource = typeof COMPACT_CHECKPOINT_MARKER & { readonly compactionId: CompactionId; readonly sourceCommandId?: CommandId; };"
2360
+ },
2361
+ {
2362
+ "name": "CompactionId",
2363
+ "declaration": "export type CompactionId = Branded<'CompactionId'>;"
2364
+ },
2100
2365
  {
2101
2366
  "name": "ContentBlock",
2102
2367
  "declaration": "export type ContentBlock = ContentBlockMap[ContentBlockType];"
@@ -2137,6 +2402,22 @@ export const TYPERT = {
2137
2402
  "name": "EpochHeader",
2138
2403
  "declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n system?: never;\n}"
2139
2404
  },
2405
+ {
2406
+ "name": "EveryScheduleDispatchChange",
2407
+ "declaration": "export interface EveryScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n readonly acceptedAt: string;\n}"
2408
+ },
2409
+ {
2410
+ "name": "EveryScheduleRecord",
2411
+ "declaration": "export interface EveryScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'every';\n readonly title: string;\n readonly prompt: string;\n readonly everySeconds: number;\n readonly scheduledAt: string;\n}"
2412
+ },
2413
+ {
2414
+ "name": "FeedbackCategory",
2415
+ "declaration": "export type FeedbackCategory = 'task-result' | 'instruction-following' | 'product-interaction' | 'service-stability' | 'resource-cost' | 'security-privacy-permission' | 'other';"
2416
+ },
2417
+ {
2418
+ "name": "FeedbackRecord",
2419
+ "declaration": "export interface FeedbackRecord {\n readonly text?: string;\n readonly category?: FeedbackCategory;\n}"
2420
+ },
2140
2421
  {
2141
2422
  "name": "FileAttachmentRef",
2142
2423
  "declaration": "export interface FileAttachmentRef {\n attachmentId: AttachmentId;\n name: string;\n bytes: number;\n}"
@@ -2153,6 +2434,50 @@ export const TYPERT = {
2153
2434
  "name": "FinishReasonMap",
2154
2435
  "declaration": "export interface FinishReasonMap {\n stop: { kind: 'stop'; };\n 'tool-calls': { kind: 'tool-calls'; };\n 'max-tokens': { kind: 'max-tokens'; };\n aborted: { kind: 'aborted'; failure: LlmFailure; };\n error: { kind: 'error'; failure: LlmFailure; };\n}"
2155
2436
  },
2437
+ {
2438
+ "name": "GameMessageOp",
2439
+ "declaration": "export type GameMessageOp = { readonly op: 'check-failed'; readonly attempt: number; readonly cap: number; readonly failures: readonly { where: string; message: string; }[]; } | { readonly op: 'attached'; readonly items: readonly string[]; };"
2440
+ },
2441
+ {
2442
+ "name": "GoalBlockReason",
2443
+ "declaration": "export interface GoalBlockReason {\n readonly code: string;\n readonly message: string;\n}"
2444
+ },
2445
+ {
2446
+ "name": "GoalChangeMeta",
2447
+ "declaration": "export type GoalChangeMeta = GoalSnapshotChangeMeta | GoalClearChangeMeta;"
2448
+ },
2449
+ {
2450
+ "name": "GoalClearChangeMeta",
2451
+ "declaration": "export interface GoalClearChangeMeta {\n readonly kind: 'goal/change';\n readonly version: 1;\n readonly operation: 'clear';\n readonly cleared: GoalRef;\n readonly clearedAt: number;\n}"
2452
+ },
2453
+ {
2454
+ "name": "GoalId",
2455
+ "declaration": "export type GoalId = Branded<'GoalId'>;"
2456
+ },
2457
+ {
2458
+ "name": "GoalMessageSource",
2459
+ "declaration": "export interface GoalMessageSource {\n readonly kind: 'goal';\n readonly goalId: GoalId;\n readonly revision: number;\n readonly round: number;\n}"
2460
+ },
2461
+ {
2462
+ "name": "GoalOperation",
2463
+ "declaration": "export type GoalOperation = 'create' | 'edit' | 'pause' | 'resume' | 'complete' | 'block' | 'clear';"
2464
+ },
2465
+ {
2466
+ "name": "GoalPhase",
2467
+ "declaration": "export type GoalPhase = 'active' | 'paused' | 'blocked' | 'complete';"
2468
+ },
2469
+ {
2470
+ "name": "GoalRef",
2471
+ "declaration": "export interface GoalRef {\n readonly id: GoalId;\n readonly revision: number;\n}"
2472
+ },
2473
+ {
2474
+ "name": "GoalSnapshot",
2475
+ "declaration": "export interface GoalSnapshot extends GoalRef {\n readonly objective: string;\n readonly phase: GoalPhase;\n readonly blockedReason?: GoalBlockReason;\n readonly maxGoalRounds: number;\n}"
2476
+ },
2477
+ {
2478
+ "name": "GoalSnapshotChangeMeta",
2479
+ "declaration": "export interface GoalSnapshotChangeMeta {\n readonly kind: 'goal/change';\n readonly version: 1;\n readonly operation: Exclude<GoalOperation, 'clear'>;\n readonly goal: GoalSnapshot;\n readonly roundsStarted: number;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
2480
+ },
2156
2481
  {
2157
2482
  "name": "ImageAttachmentRef",
2158
2483
  "declaration": "export interface ImageAttachmentRef {\n attachmentId: AttachmentId;\n mediaType: ImageMediaType;\n bytes: number;\n width: number;\n height: number;\n name?: string;\n originalDimensions?: { width: number; height: number; };\n}"
@@ -2173,6 +2498,30 @@ export const TYPERT = {
2173
2498
  "name": "InboxTarget",
2174
2499
  "declaration": "export type InboxTarget = 'next-turn' | 'next-step';"
2175
2500
  },
2501
+ {
2502
+ "name": "JobId",
2503
+ "declaration": "export type JobId = Branded<'JobId'>;"
2504
+ },
2505
+ {
2506
+ "name": "JobOutcome",
2507
+ "declaration": "export interface JobOutcome {\n status: 'completed' | 'killed' | 'failed';\n detail?: string;\n result?: string;\n}"
2508
+ },
2509
+ {
2510
+ "name": "JobRegisteredData",
2511
+ "declaration": "export interface JobRegisteredData {\n readonly jobId: JobId;\n readonly owner: SessionId;\n readonly kind: string;\n readonly label: string;\n readonly startedAt: number;\n readonly toolCall?: JobToolCall;\n}"
2512
+ },
2513
+ {
2514
+ "name": "JobSettleCause",
2515
+ "declaration": "export type JobSettleCause = 'producer' | 'kill' | 'teardown';"
2516
+ },
2517
+ {
2518
+ "name": "JobSettledData",
2519
+ "declaration": "export interface JobSettledData extends JobRegisteredData {\n readonly finishedAt: number;\n readonly status: JobOutcome['status'];\n readonly cause: JobSettleCause;\n readonly producerReported: boolean;\n readonly detail?: string;\n}"
2520
+ },
2521
+ {
2522
+ "name": "JobToolCall",
2523
+ "declaration": "export interface JobToolCall {\n readonly callId: SessionEventMap['tool/call']['callId'];\n readonly rootCallId: SessionEventMap['tool/call']['callId'];\n}"
2524
+ },
2176
2525
  {
2177
2526
  "name": "JsonValue",
2178
2527
  "declaration": "export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; };"
@@ -2181,18 +2530,46 @@ export const TYPERT = {
2181
2530
  "name": "KnownCatalogMode",
2182
2531
  "declaration": "export type KnownCatalogMode = { readonly mode: 'one-shot'; readonly label?: string; } | { readonly mode: 'continuable'; readonly label: string; };"
2183
2532
  },
2533
+ {
2534
+ "name": "LegacyAfterScheduleRecord",
2535
+ "declaration": "export interface LegacyAfterScheduleRecord extends Omit<AfterScheduleRecord, 'title'> {\n readonly title?: string;\n}"
2536
+ },
2537
+ {
2538
+ "name": "LegacyAtScheduleRecord",
2539
+ "declaration": "export interface LegacyAtScheduleRecord extends Omit<AtScheduleRecord, 'title'> {\n readonly title?: string;\n}"
2540
+ },
2541
+ {
2542
+ "name": "LegacyEveryScheduleRecord",
2543
+ "declaration": "export interface LegacyEveryScheduleRecord extends Omit<EveryScheduleRecord, 'title'> {\n readonly title?: string;\n}"
2544
+ },
2545
+ {
2546
+ "name": "LegacyScheduleRecord",
2547
+ "declaration": "export type LegacyScheduleRecord = LegacyAfterScheduleRecord | LegacyAtScheduleRecord | LegacyEveryScheduleRecord;"
2548
+ },
2184
2549
  {
2185
2550
  "name": "LlmCallConfig",
2186
- "declaration": "export interface LlmCallConfig {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n temperature?: number;\n maxTokens?: number;\n stop?: string[];\n}"
2551
+ "declaration": "export interface LlmCallConfig extends LlmCallControls {\n provider: string;\n model: string;\n}"
2187
2552
  },
2188
2553
  {
2189
2554
  "name": "LlmCallConfigAdapterDefaults",
2190
2555
  "declaration": "export interface LlmCallConfigAdapterDefaults {\n reasoningEffort?: true;\n maxTokens?: true;\n}"
2191
2556
  },
2557
+ {
2558
+ "name": "LlmCallControls",
2559
+ "declaration": "export interface LlmCallControls {\n reasoningEffort?: ReasoningEffortId;\n temperature?: number;\n maxTokens?: number;\n stop?: string[];\n}"
2560
+ },
2192
2561
  {
2193
2562
  "name": "LlmFailure",
2194
2563
  "declaration": "export interface LlmFailure {\n readonly message: string;\n readonly code: string;\n readonly status?: number;\n readonly providerRetryAfterMs?: number;\n readonly requestId?: ProviderRequestId;\n readonly offloadImages?: number;\n}"
2195
2564
  },
2565
+ {
2566
+ "name": "LlmRetryEventData",
2567
+ "declaration": "export type LlmRetryEventData = { retryId: RetryId; turn: number; step: number; provider: string; mode: 'normal'; policyKey: string; retry: number; maxRetries: number; delayMs: number; failure: LlmFailure; } | { retryId: RetryId; turn: number; step: number; provider: string; mode: 'always'; policyKey: string; retry: number; delayMs: number; failure: LlmFailure; };"
2568
+ },
2569
+ {
2570
+ "name": "LlmRetryStartedEventData",
2571
+ "declaration": "export interface LlmRetryStartedEventData {\n retryId: RetryId;\n turn: number;\n step: number;\n retry: number;\n}"
2572
+ },
2196
2573
  {
2197
2574
  "name": "LocalAgentMemberRun",
2198
2575
  "declaration": "export interface LocalAgentMemberRun {\n childSessionId: string;\n parentSessionId: string;\n provider: string;\n}"
@@ -2225,6 +2602,26 @@ export const TYPERT = {
2225
2602
  "name": "MessageBase",
2226
2603
  "declaration": "export interface MessageBase {\n readonly id: MessageId;\n readonly content: readonly ContentBlock[];\n readonly source: MessageSource;\n}"
2227
2604
  },
2605
+ {
2606
+ "name": "MessageFeedbackDelete",
2607
+ "declaration": "export interface MessageFeedbackDelete {\n readonly sessionId: SessionId;\n readonly messageId: MessageId;\n}"
2608
+ },
2609
+ {
2610
+ "name": "MessageFeedbackItem",
2611
+ "declaration": "export interface MessageFeedbackItem {\n readonly messageId: MessageId;\n readonly rating: MessageFeedbackRating;\n readonly note?: string;\n readonly category?: FeedbackCategory;\n readonly version: MessageFeedbackVersion;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
2612
+ },
2613
+ {
2614
+ "name": "MessageFeedbackPut",
2615
+ "declaration": "export interface MessageFeedbackPut {\n readonly sessionId: SessionId;\n readonly item: MessageFeedbackItem;\n}"
2616
+ },
2617
+ {
2618
+ "name": "MessageFeedbackRating",
2619
+ "declaration": "export type MessageFeedbackRating = 'positive' | 'negative';"
2620
+ },
2621
+ {
2622
+ "name": "MessageFeedbackVersion",
2623
+ "declaration": "export type MessageFeedbackVersion = Branded<'MessageFeedbackVersion'>;"
2624
+ },
2228
2625
  {
2229
2626
  "name": "MessageId",
2230
2627
  "declaration": "export type MessageId = Branded<'MessageId'>;"
@@ -2239,7 +2636,7 @@ export const TYPERT = {
2239
2636
  },
2240
2637
  {
2241
2638
  "name": "MessageSourceMap",
2242
- "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'skill-invocation': SkillInvocationSource;\n 'message-tools': { kind: 'message-tools'; readonly op?: MessageToolsOp; } & ContextFormed;\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n room: { kind: 'room'; } & ContextFormed;\n sidechat: { kind: 'sidechat'; } & ContextFormed;\n worktrees: { kind: 'worktrees'; } & ContextFormed;\n}"
2639
+ "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'runtime-context': { kind: 'runtime-context'; } & ContextFormed;\n 'working-directory': { kind: 'working-directory'; };\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; principal?: Principal; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'compact-checkpoint': CompactionCheckpointSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n 'team-message': TeamMessageSource;\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n goal: GoalMessageSource;\n 'plan-mode': { kind: 'plan-mode'; } & ContextFormed;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'session-reference': SessionReferenceSource;\n webhook: { readonly kind: 'webhook'; readonly provider: string; readonly source: WebhookSourceId; readonly deliveryId: WebhookDeliveryId; readonly ruleId: WebhookRuleId; readonly form: 'notice'; readonly summary: string; };\n 'message-tools': { kind: 'message-tools'; readonly op?: MessageToolsOp; } & ContextFormed;\n 'dsh-game': { kind: 'dsh-game'; plugin: '@khorsheed/dsh-game'; } & ContextFormed & Partial<GameMessageOp>;\n room: { kind: 'room'; } & ContextFormed;\n sidechat: { kind: 'sidechat'; } & ContextFormed;\n worktrees: { kind: 'worktrees'; } & ContextFormed;\n}"
2243
2640
  },
2244
2641
  {
2245
2642
  "name": "MessageToolsOp",
@@ -2249,10 +2646,22 @@ export const TYPERT = {
2249
2646
  "name": "ModelMessageSource",
2250
2647
  "declaration": "export interface ModelMessageSource extends AssistantProviderMetadata {\n kind: 'model';\n}"
2251
2648
  },
2649
+ {
2650
+ "name": "ModelSelection",
2651
+ "declaration": "export interface ModelSelection {\n readonly provider: string;\n readonly model: string;\n readonly reasoningEffort?: string;\n}"
2652
+ },
2653
+ {
2654
+ "name": "OneShotScheduleDispatchChange",
2655
+ "declaration": "export interface OneShotScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n}"
2656
+ },
2252
2657
  {
2253
2658
  "name": "OneShotSubagentDescriptorData",
2254
2659
  "declaration": "export interface OneShotSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: 'one-shot';\n readonly label?: string;\n}"
2255
2660
  },
2661
+ {
2662
+ "name": "OptionalSessionSeq",
2663
+ "declaration": "export type OptionalSessionSeq = SessionSeq | null;"
2664
+ },
2256
2665
  {
2257
2666
  "name": "PlanActor",
2258
2667
  "declaration": "export interface PlanActor {\n kind: 'human' | 'coordinator' | 'worker';\n memberId: string;\n}"
@@ -2277,13 +2686,21 @@ export const TYPERT = {
2277
2686
  "name": "PlanTask",
2278
2687
  "declaration": "export interface PlanTask {\n id: string;\n title: string;\n stageId: string;\n parentId?: string;\n kind: 'group' | 'task';\n ownerMemberId?: string;\n instruction: string;\n criteria: string[];\n inputRefs: string[];\n artifactPaths: string[];\n dependsOn: string[];\n status: 'pending' | 'running' | 'submitted' | 'accepted' | 'failed' | 'cancelled';\n attempts: PlanAttempt[];\n}"
2279
2688
  },
2689
+ {
2690
+ "name": "Principal",
2691
+ "declaration": "export type Principal = PrincipalMap[keyof PrincipalMap];"
2692
+ },
2693
+ {
2694
+ "name": "PrincipalMap",
2695
+ "declaration": "export interface PrincipalMap {\n owner: { readonly kind: 'owner'; };\n}"
2696
+ },
2280
2697
  {
2281
2698
  "name": "ProviderRequestId",
2282
2699
  "declaration": "export type ProviderRequestId = Branded<'ProviderRequestId'>;"
2283
2700
  },
2284
2701
  {
2285
2702
  "name": "PtcDispatchEventData",
2286
- "declaration": "export interface PtcDispatchEventData extends PtcDispatchStartEventData {\n isError: boolean;\n content: ContentBlock[];\n error?: { name: string; code: string; reason?: string; };\n}"
2703
+ "declaration": "export interface PtcDispatchEventData extends PtcDispatchStartEventData {\n isError: boolean;\n content: ContentBlock[];\n meta?: JsonValue;\n error?: { name: string; code: string; reason?: string; };\n}"
2287
2704
  },
2288
2705
  {
2289
2706
  "name": "PtcDispatchStartEventData",
@@ -2309,6 +2726,10 @@ export const TYPERT = {
2309
2726
  "name": "RequestHeaderReason",
2310
2727
  "declaration": "export type RequestHeaderReason = 'initial' | 'resume' | 'change' | 'series';"
2311
2728
  },
2729
+ {
2730
+ "name": "RetryId",
2731
+ "declaration": "export type RetryId = Branded<'RetryId'>;"
2732
+ },
2312
2733
  {
2313
2734
  "name": "RoomAddTaskRequest",
2314
2735
  "declaration": "export interface RoomAddTaskRequest {\n readonly sessionId: SessionId;\n readonly member: string;\n readonly title: string;\n readonly blockedBy?: string;\n}"
@@ -2589,6 +3010,26 @@ export const TYPERT = {
2589
3010
  "name": "SandboxMode",
2590
3011
  "declaration": "export type SandboxMode = 'read-only' | 'workspace-write' | 'danger-full-access';"
2591
3012
  },
3013
+ {
3014
+ "name": "ScheduleChange",
3015
+ "declaration": "export type ScheduleChange = ScheduleCreateChange | ScheduleDeleteChange | ScheduleDispatchChange;"
3016
+ },
3017
+ {
3018
+ "name": "ScheduleCreateChange",
3019
+ "declaration": "export interface ScheduleCreateChange {\n readonly version: 1;\n readonly operation: 'create';\n readonly schedule: LegacyScheduleRecord;\n}"
3020
+ },
3021
+ {
3022
+ "name": "ScheduleDeleteChange",
3023
+ "declaration": "export interface ScheduleDeleteChange {\n readonly version: 1;\n readonly operation: 'delete';\n readonly id: ScheduleId;\n}"
3024
+ },
3025
+ {
3026
+ "name": "ScheduleDispatchChange",
3027
+ "declaration": "export type ScheduleDispatchChange = OneShotScheduleDispatchChange | EveryScheduleDispatchChange;"
3028
+ },
3029
+ {
3030
+ "name": "ScheduleId",
3031
+ "declaration": "export type ScheduleId = Branded<'ScheduleId'>;"
3032
+ },
2592
3033
  {
2593
3034
  "name": "Session",
2594
3035
  "declaration": "export class Session {\n get surface(): SessionSurface;\n readonly header: SessionHeader;\n readonly inheritedEventCount: SessionLogOffset;\n get id(): SessionId;\n readonly firstLiveSeq: SessionLogOffset;\n readonly firstLifecycleSeq: SessionLogOffset;\n eventAt(seq: SessionSeq): SessionEvent | undefined;\n snapshotEvents(fromSeq: SessionLogOffset = SessionLogOffset(0), toSeqExclusive: SessionLogOffset = this.seq): readonly SessionEvent[];\n ownEvents(): readonly SessionEvent[];\n isOwnSeq(seq: SessionSeq): boolean;\n get seq(): SessionLogOffset;\n append<T extends SessionEventType>(type: T, data: SessionEventMap[T], ...opts: T extends SurfaceEventType ? [opts: SurfaceIntent<T>] : []): SessionEvent<T>;\n requestHeader(): EpochHeader | undefined;\n requestContext(): RequestContext | undefined;\n toolHistory(): ToolHistory;\n deriveMessages(): Message[];\n deriveEventMessage(event: SessionEvent): Message | null;\n}"
@@ -2599,7 +3040,7 @@ export const TYPERT = {
2599
3040
  },
2600
3041
  {
2601
3042
  "name": "SessionEventMap",
2602
- "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'subagent/descriptor': SubagentDescriptorData;\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'permission/preset': { preset: string; };\n 'subagent/catalog': SubagentCatalogEvent;\n 'local-agent/stream': LocalAgentStreamCheckpoint;\n 'room/created': RoomCreatedEvent;\n 'room/member-added': RoomMemberAddedEvent;\n 'room/member-updated': RoomMemberUpdatedEvent;\n 'room/member-removed': RoomMemberRemovedEvent;\n 'room/dispatch': RoomDispatchEvent;\n 'room/speech': RoomSpeechEvent;\n 'room/run-state': RoomRunStateEvent;\n 'room/execution-metadata': RoomExecutionMetadataEvent;\n 'room/relay': RoomRelayEvent;\n 'room/relay-resolved': RoomRelayResolvedEvent;\n 'room/task-added': RoomTaskAddedEvent;\n 'room/task-updated': RoomTaskUpdatedEvent;\n 'room/task-edited': RoomTaskEditedEvent;\n 'room/goal': RoomGoalEvent;\n 'room/plan-state': RoomPlan;\n 'room/coordinator': RoomCoordinatorEvent;\n 'room/delivery-state': RoomDeliveryStateEvent;\n}"
3043
+ "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'working-directory/change': { cwd: string; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'job/registered': JobRegisteredData;\n 'job/settled': JobSettledData;\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'permission/preset': { preset: string; };\n 'subagent/descriptor': SubagentDescriptorData;\n 'subagent/catalog': SubagentCatalogEvent;\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n 'feedback/record': FeedbackRecord;\n 'llm/retry': LlmRetryEventData;\n 'llm/retry-started': LlmRetryStartedEventData;\n 'team/member': { version: 2; teamId: TeamId; member: TeamMemberSnapshot; };\n 'team/task': { version: 2; teamId: TeamId; task: TeamTaskSnapshot; };\n 'team/message/queued': { version: 2; teamId: TeamId; message: TeamMessageSnapshot; };\n 'team/message/delivered': { version: 2; teamId: TeamId; messageId: TeamMessageId; targetId: SessionId; };\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'plan/mode': { active: boolean; };\n 'schedule/change': ScheduleChange;\n 'subagent/model-selection-policy': { allowedModels: AllowedModelRoute[]; };\n 'workspace/changes': { turn: number; };\n 'local-agent/stream': LocalAgentStreamCheckpoint;\n 'room/created': RoomCreatedEvent;\n 'room/member-added': RoomMemberAddedEvent;\n 'room/member-updated': RoomMemberUpdatedEvent;\n 'room/member-removed': RoomMemberRemovedEvent;\n 'room/dispatch': RoomDispatchEvent;\n 'room/speech': RoomSpeechEvent;\n 'room/run-state': RoomRunStateEvent;\n 'room/execution-metadata': RoomExecutionMetadataEvent;\n 'room/relay': RoomRelayEvent;\n 'room/relay-resolved': RoomRelayResolvedEvent;\n 'room/task-added': RoomTaskAddedEvent;\n 'room/task-updated': RoomTaskUpdatedEvent;\n 'room/task-edited': RoomTaskEditedEvent;\n 'room/goal': RoomGoalEvent;\n 'room/plan-state': RoomPlan;\n 'room/coordinator': RoomCoordinatorEvent;\n 'room/delivery-state': RoomDeliveryStateEvent;\n}"
2603
3044
  },
2604
3045
  {
2605
3046
  "name": "SessionEventType",
@@ -2617,6 +3058,14 @@ export const TYPERT = {
2617
3058
  "name": "SessionLogOffset",
2618
3059
  "declaration": "export type SessionLogOffset = BrandedNumber<'SessionLogOffset'>;"
2619
3060
  },
3061
+ {
3062
+ "name": "SessionReferenceSource",
3063
+ "declaration": "export interface SessionReferenceSource {\n kind: 'session-reference';\n form: 'recall';\n version: 1;\n references: { sessionId: string; label: string; capturedFormatVersion?: number; capturedThroughSeq: OptionalSessionSeq; compacted: boolean; originalMessages: number; retainedMessages: number; omittedMessages: number; omittedBytes: number; truncated: boolean; inputIndex: number; }[];\n}"
3064
+ },
3065
+ {
3066
+ "name": "SessionRequestId",
3067
+ "declaration": "export type SessionRequestId = Branded<'session-request-id'>;"
3068
+ },
2620
3069
  {
2621
3070
  "name": "SessionSeq",
2622
3071
  "declaration": "export type SessionSeq = BrandedNumber<'SessionSeq'>;"
@@ -2651,7 +3100,7 @@ export const TYPERT = {
2651
3100
  },
2652
3101
  {
2653
3102
  "name": "SubagentCatalogEvent",
2654
- "declaration": "export type SubagentCatalogEvent = { readonly childId: SessionId; readonly childCreatedAt: number; } & (({ readonly version: 0; } & KnownCatalogMode) | ({ readonly version: 1; } & (KnownCatalogMode | { readonly mode: 'unknown'; readonly label?: string; })));"
3103
+ "declaration": "export type SubagentCatalogEvent = { readonly childId: SessionId; readonly childCreatedAt: number; } & (({ readonly version: 0; } & KnownCatalogMode) | ({ readonly version: 1; } & (KnownCatalogMode | { readonly mode: 'unknown'; readonly label?: string; })) | { readonly version: 2; readonly mode: 'external'; readonly label?: string; });"
2655
3104
  },
2656
3105
  {
2657
3106
  "name": "SubagentDescriptorBase",
@@ -2689,6 +3138,42 @@ export const TYPERT = {
2689
3138
  "name": "SystemPromptUpdate",
2690
3139
  "declaration": "export type SystemPromptUpdate = 'in-history';"
2691
3140
  },
3141
+ {
3142
+ "name": "TeamId",
3143
+ "declaration": "export type TeamId = Branded<'TeamId'>;"
3144
+ },
3145
+ {
3146
+ "name": "TeamMemberPhase",
3147
+ "declaration": "export type TeamMemberPhase = 'provisioning' | 'active' | 'failed';"
3148
+ },
3149
+ {
3150
+ "name": "TeamMemberSnapshot",
3151
+ "declaration": "export interface TeamMemberSnapshot {\n readonly id: SessionId;\n readonly name: string;\n readonly description: string;\n readonly provider: string;\n readonly context: 'fresh' | 'fork';\n readonly phase: TeamMemberPhase;\n readonly error?: string;\n}"
3152
+ },
3153
+ {
3154
+ "name": "TeamMessageId",
3155
+ "declaration": "export type TeamMessageId = Branded<'TeamMessageId'>;"
3156
+ },
3157
+ {
3158
+ "name": "TeamMessageSnapshot",
3159
+ "declaration": "export interface TeamMessageSnapshot {\n readonly id: TeamMessageId;\n readonly senderId: SessionId;\n readonly senderName: string;\n readonly targetId: SessionId;\n readonly content: ContentBlock[];\n}"
3160
+ },
3161
+ {
3162
+ "name": "TeamMessageSource",
3163
+ "declaration": "export interface TeamMessageSource {\n readonly kind: 'team-message';\n readonly teamId: TeamId;\n readonly messageId: TeamMessageId;\n readonly senderId: SessionId;\n readonly senderName: string;\n}"
3164
+ },
3165
+ {
3166
+ "name": "TeamTaskId",
3167
+ "declaration": "export type TeamTaskId = Branded<'TeamTaskId'>;"
3168
+ },
3169
+ {
3170
+ "name": "TeamTaskSnapshot",
3171
+ "declaration": "export interface TeamTaskSnapshot {\n readonly id: TeamTaskId;\n readonly revision: number;\n readonly subject: string;\n readonly description: string;\n readonly status: TeamTaskStatus;\n readonly ownerId?: SessionId;\n readonly blockedBy: TeamTaskId[];\n readonly writeScopes: string[];\n}"
3172
+ },
3173
+ {
3174
+ "name": "TeamTaskStatus",
3175
+ "declaration": "export type TeamTaskStatus = 'pending' | 'in_progress' | 'completed' | 'deleted';"
3176
+ },
2692
3177
  {
2693
3178
  "name": "TextBlock",
2694
3179
  "declaration": "export interface TextBlock {\n type: 'text';\n text: string;\n}"
@@ -2752,6 +3237,18 @@ export const TYPERT = {
2752
3237
  {
2753
3238
  "name": "UserMessage",
2754
3239
  "declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n}"
3240
+ },
3241
+ {
3242
+ "name": "WebhookDeliveryId",
3243
+ "declaration": "export type WebhookDeliveryId = Branded<'WebhookDeliveryId'>;"
3244
+ },
3245
+ {
3246
+ "name": "WebhookRuleId",
3247
+ "declaration": "export type WebhookRuleId = Branded<'WebhookRuleId'>;"
3248
+ },
3249
+ {
3250
+ "name": "WebhookSourceId",
3251
+ "declaration": "export type WebhookSourceId = Branded<'WebhookSourceId'>;"
2755
3252
  }
2756
3253
  ]
2757
3254
  }