happy-imou-cloud 2.1.43 → 2.1.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/compat/acp-sdk-schema/index.d.ts +16 -3
  2. package/compat/acp-sdk-schema/index.js +15 -2
  3. package/compat/acp-sdk-schema/types.gen.d.ts +1801 -313
  4. package/compat/acp-sdk-schema/zod.gen.d.ts +3267 -1775
  5. package/compat/acp-sdk-schema/zod.gen.js +1007 -316
  6. package/dist/{BaseReasoningProcessor-D6itItnT.cjs → BaseReasoningProcessor-CMyFNQ1O.cjs} +2 -2
  7. package/dist/{BaseReasoningProcessor-CWCPAVJ3.mjs → BaseReasoningProcessor-DVSN7PCw.mjs} +2 -2
  8. package/dist/{ProviderSelectionHandler-CYUH1U8F.mjs → ProviderSelectionHandler-2IaDlDBx.mjs} +2 -2
  9. package/dist/{ProviderSelectionHandler-CXwqOJpC.cjs → ProviderSelectionHandler-Dqa4j1pD.cjs} +2 -2
  10. package/dist/{api-B89O-SC-.mjs → api-BhMVpzwg.mjs} +12 -8
  11. package/dist/{api-zMic8QXq.cjs → api-BoWVQeVe.cjs} +12 -8
  12. package/dist/{command-_qNFoJ-l.cjs → command-DoF8oaxg.cjs} +2 -2
  13. package/dist/{command-W01qXC9C.mjs → command-h3Rr4Abu.mjs} +2 -2
  14. package/dist/{index-CiHiCC31.mjs → index-DxF1W0nt.mjs} +57 -14
  15. package/dist/{index-DVVbyQGZ.cjs → index-kIN8gN9G.cjs} +60 -17
  16. package/dist/index.cjs +2 -2
  17. package/dist/index.mjs +2 -2
  18. package/dist/lib.cjs +1 -1
  19. package/dist/lib.d.cts +335 -336
  20. package/dist/lib.d.mts +335 -336
  21. package/dist/lib.mjs +1 -1
  22. package/dist/{registerKillSessionHandler-CDYAY5Ev.cjs → registerKillSessionHandler-CBm2WFM0.cjs} +2 -2
  23. package/dist/{registerKillSessionHandler-BnS3ozFX.mjs → registerKillSessionHandler-Dsg63Cx6.mjs} +2 -2
  24. package/dist/{runClaude-0U7kV07_.mjs → runClaude-BpwlCyVT.mjs} +4 -4
  25. package/dist/{runClaude-C1xfptKt.cjs → runClaude-Dq9OISKt.cjs} +4 -4
  26. package/dist/{runCodex-DnDmHm7E.mjs → runCodex-BMNR2hNp.mjs} +5 -5
  27. package/dist/{runCodex-BBgKpYLO.cjs → runCodex-BnzErOK_.cjs} +5 -5
  28. package/dist/{runGemini-CUwQHJ9y.cjs → runGemini-CYc9Ufxo.cjs} +4 -4
  29. package/dist/{runGemini-DcsIBQSc.mjs → runGemini-D4Af8oH1.mjs} +4 -4
  30. package/package.json +2 -2
  31. package/scripts/ensureAcpSdkCompat.mjs +37 -11
  32. package/scripts/release-smoke.mjs +1 -0
package/dist/lib.d.mts CHANGED
@@ -323,14 +323,14 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
323
323
  goldenRouteId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
324
324
  }, "strip", z.ZodTypeAny, {
325
325
  dispatchId: string;
326
- scope: string;
327
326
  replyTo: string;
328
- sessionId?: string | null | undefined;
327
+ scope: string;
329
328
  taskId?: string | null | undefined;
330
- organizationId?: string | null | undefined;
331
- memberAgentId?: string | null | undefined;
332
329
  positionId?: string | null | undefined;
333
330
  responsibilityId?: string | null | undefined;
331
+ organizationId?: string | null | undefined;
332
+ memberAgentId?: string | null | undefined;
333
+ sessionId?: string | null | undefined;
334
334
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
335
335
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
336
336
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -339,14 +339,14 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
339
339
  goldenRouteId?: string | null | undefined;
340
340
  }, {
341
341
  dispatchId: string;
342
- scope: string;
343
342
  replyTo: string;
344
- sessionId?: string | null | undefined;
343
+ scope: string;
345
344
  taskId?: string | null | undefined;
346
- organizationId?: string | null | undefined;
347
- memberAgentId?: string | null | undefined;
348
345
  positionId?: string | null | undefined;
349
346
  responsibilityId?: string | null | undefined;
347
+ organizationId?: string | null | undefined;
348
+ memberAgentId?: string | null | undefined;
349
+ sessionId?: string | null | undefined;
350
350
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
351
351
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
352
352
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -365,16 +365,16 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
365
365
  homeSlug: string;
366
366
  path?: string | null | undefined;
367
367
  machineId?: string | null | undefined;
368
+ happySessionId?: string | null | undefined;
368
369
  startedBy?: "daemon" | "terminal" | null | undefined;
369
370
  flavor?: string | null | undefined;
370
- happySessionId?: string | null | undefined;
371
371
  }, {
372
372
  homeSlug: string;
373
373
  path?: string | null | undefined;
374
374
  machineId?: string | null | undefined;
375
+ happySessionId?: string | null | undefined;
375
376
  startedBy?: "daemon" | "terminal" | null | undefined;
376
377
  flavor?: string | null | undefined;
377
- happySessionId?: string | null | undefined;
378
378
  }>>>;
379
379
  acceptanceHandoff: z.ZodOptional<z.ZodNullable<z.ZodObject<{
380
380
  dispatchId: z.ZodString;
@@ -388,9 +388,9 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
388
388
  acceptanceState: z.ZodEnum<["not_ready", "awaiting_acceptance", "closed"]>;
389
389
  ceoWriteNextStep: z.ZodString;
390
390
  }, "strip", z.ZodTypeAny, {
391
- taskId: string;
392
391
  dispatchId: string;
393
392
  replyTo: string;
393
+ taskId: string;
394
394
  positionStatus: string;
395
395
  latestUserVisibleResult: string;
396
396
  blockerSummary: string | null;
@@ -399,9 +399,9 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
399
399
  positionId?: string | null | undefined;
400
400
  responsibilityId?: string | null | undefined;
401
401
  }, {
402
- taskId: string;
403
402
  dispatchId: string;
404
403
  replyTo: string;
404
+ taskId: string;
405
405
  positionStatus: string;
406
406
  latestUserVisibleResult: string;
407
407
  blockerSummary: string | null;
@@ -423,19 +423,19 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
423
423
  targetArtifact: string | null;
424
424
  accessChannelState: "ok" | "reattach_required" | "runtime_replaced" | null;
425
425
  repeatFingerprint: string | null;
426
- organizationRootPath?: string | null | undefined;
427
426
  positionId?: string | null | undefined;
428
427
  responsibilityId?: string | null | undefined;
428
+ organizationRootPath?: string | null | undefined;
429
429
  replyContext?: {
430
430
  dispatchId: string;
431
- scope: string;
432
431
  replyTo: string;
433
- sessionId?: string | null | undefined;
432
+ scope: string;
434
433
  taskId?: string | null | undefined;
435
- organizationId?: string | null | undefined;
436
- memberAgentId?: string | null | undefined;
437
434
  positionId?: string | null | undefined;
438
435
  responsibilityId?: string | null | undefined;
436
+ organizationId?: string | null | undefined;
437
+ memberAgentId?: string | null | undefined;
438
+ sessionId?: string | null | undefined;
439
439
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
440
440
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
441
441
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -447,14 +447,14 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
447
447
  homeSlug: string;
448
448
  path?: string | null | undefined;
449
449
  machineId?: string | null | undefined;
450
+ happySessionId?: string | null | undefined;
450
451
  startedBy?: "daemon" | "terminal" | null | undefined;
451
452
  flavor?: string | null | undefined;
452
- happySessionId?: string | null | undefined;
453
453
  } | null | undefined;
454
454
  acceptanceHandoff?: {
455
- taskId: string;
456
455
  dispatchId: string;
457
456
  replyTo: string;
457
+ taskId: string;
458
458
  positionStatus: string;
459
459
  latestUserVisibleResult: string;
460
460
  blockerSummary: string | null;
@@ -476,19 +476,19 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
476
476
  targetArtifact: string | null;
477
477
  accessChannelState: "ok" | "reattach_required" | "runtime_replaced" | null;
478
478
  repeatFingerprint: string | null;
479
- organizationRootPath?: string | null | undefined;
480
479
  positionId?: string | null | undefined;
481
480
  responsibilityId?: string | null | undefined;
481
+ organizationRootPath?: string | null | undefined;
482
482
  replyContext?: {
483
483
  dispatchId: string;
484
- scope: string;
485
484
  replyTo: string;
486
- sessionId?: string | null | undefined;
485
+ scope: string;
487
486
  taskId?: string | null | undefined;
488
- organizationId?: string | null | undefined;
489
- memberAgentId?: string | null | undefined;
490
487
  positionId?: string | null | undefined;
491
488
  responsibilityId?: string | null | undefined;
489
+ organizationId?: string | null | undefined;
490
+ memberAgentId?: string | null | undefined;
491
+ sessionId?: string | null | undefined;
492
492
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
493
493
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
494
494
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -500,14 +500,14 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
500
500
  homeSlug: string;
501
501
  path?: string | null | undefined;
502
502
  machineId?: string | null | undefined;
503
+ happySessionId?: string | null | undefined;
503
504
  startedBy?: "daemon" | "terminal" | null | undefined;
504
505
  flavor?: string | null | undefined;
505
- happySessionId?: string | null | undefined;
506
506
  } | null | undefined;
507
507
  acceptanceHandoff?: {
508
- taskId: string;
509
508
  dispatchId: string;
510
509
  replyTo: string;
510
+ taskId: string;
511
511
  positionStatus: string;
512
512
  latestUserVisibleResult: string;
513
513
  blockerSummary: string | null;
@@ -532,17 +532,17 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
532
532
  organizationId: string;
533
533
  memberAgentId: string;
534
534
  supervisorAgentId: string;
535
- organizationRootPath?: string | null | undefined;
536
535
  positionId?: string | null | undefined;
537
536
  responsibilityId?: string | null | undefined;
537
+ organizationRootPath?: string | null | undefined;
538
538
  }, {
539
539
  taskId: string;
540
540
  organizationId: string;
541
541
  memberAgentId: string;
542
542
  supervisorAgentId: string;
543
- organizationRootPath?: string | null | undefined;
544
543
  positionId?: string | null | undefined;
545
544
  responsibilityId?: string | null | undefined;
545
+ organizationRootPath?: string | null | undefined;
546
546
  }>>;
547
547
  runtime: z.ZodOptional<z.ZodObject<{
548
548
  status: z.ZodEnum<["active", "waiting_review", "waiting_decision", "waiting_close", "terminated"]>;
@@ -591,14 +591,14 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
591
591
  goldenRouteId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
592
592
  }, "strip", z.ZodTypeAny, {
593
593
  dispatchId: string;
594
- scope: string;
595
594
  replyTo: string;
596
- sessionId?: string | null | undefined;
595
+ scope: string;
597
596
  taskId?: string | null | undefined;
598
- organizationId?: string | null | undefined;
599
- memberAgentId?: string | null | undefined;
600
597
  positionId?: string | null | undefined;
601
598
  responsibilityId?: string | null | undefined;
599
+ organizationId?: string | null | undefined;
600
+ memberAgentId?: string | null | undefined;
601
+ sessionId?: string | null | undefined;
602
602
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
603
603
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
604
604
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -607,14 +607,14 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
607
607
  goldenRouteId?: string | null | undefined;
608
608
  }, {
609
609
  dispatchId: string;
610
- scope: string;
611
610
  replyTo: string;
612
- sessionId?: string | null | undefined;
611
+ scope: string;
613
612
  taskId?: string | null | undefined;
614
- organizationId?: string | null | undefined;
615
- memberAgentId?: string | null | undefined;
616
613
  positionId?: string | null | undefined;
617
614
  responsibilityId?: string | null | undefined;
615
+ organizationId?: string | null | undefined;
616
+ memberAgentId?: string | null | undefined;
617
+ sessionId?: string | null | undefined;
618
618
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
619
619
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
620
620
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -651,12 +651,12 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
651
651
  readAck: "yes";
652
652
  note: string | null;
653
653
  acknowledgedAt: number;
654
- sessionId?: string | null | undefined;
655
654
  taskId?: string | null | undefined;
656
- organizationId?: string | null | undefined;
657
- memberAgentId?: string | null | undefined;
658
655
  positionId?: string | null | undefined;
659
656
  responsibilityId?: string | null | undefined;
657
+ organizationId?: string | null | undefined;
658
+ memberAgentId?: string | null | undefined;
659
+ sessionId?: string | null | undefined;
660
660
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
661
661
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
662
662
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -672,12 +672,12 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
672
672
  readAck: "yes";
673
673
  note: string | null;
674
674
  acknowledgedAt: number;
675
- sessionId?: string | null | undefined;
676
675
  taskId?: string | null | undefined;
677
- organizationId?: string | null | undefined;
678
- memberAgentId?: string | null | undefined;
679
676
  positionId?: string | null | undefined;
680
677
  responsibilityId?: string | null | undefined;
678
+ organizationId?: string | null | undefined;
679
+ memberAgentId?: string | null | undefined;
680
+ sessionId?: string | null | undefined;
681
681
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
682
682
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
683
683
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -697,16 +697,16 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
697
697
  homeSlug: string;
698
698
  path?: string | null | undefined;
699
699
  machineId?: string | null | undefined;
700
+ happySessionId?: string | null | undefined;
700
701
  startedBy?: "daemon" | "terminal" | null | undefined;
701
702
  flavor?: string | null | undefined;
702
- happySessionId?: string | null | undefined;
703
703
  }, {
704
704
  homeSlug: string;
705
705
  path?: string | null | undefined;
706
706
  machineId?: string | null | undefined;
707
+ happySessionId?: string | null | undefined;
707
708
  startedBy?: "daemon" | "terminal" | null | undefined;
708
709
  flavor?: string | null | undefined;
709
- happySessionId?: string | null | undefined;
710
710
  }>>>;
711
711
  startupBinding: z.ZodOptional<z.ZodNullable<z.ZodObject<{
712
712
  organizationRootPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -802,14 +802,14 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
802
802
  goldenRouteId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
803
803
  }, "strip", z.ZodTypeAny, {
804
804
  dispatchId: string;
805
- scope: string;
806
805
  replyTo: string;
807
- sessionId?: string | null | undefined;
806
+ scope: string;
808
807
  taskId?: string | null | undefined;
809
- organizationId?: string | null | undefined;
810
- memberAgentId?: string | null | undefined;
811
808
  positionId?: string | null | undefined;
812
809
  responsibilityId?: string | null | undefined;
810
+ organizationId?: string | null | undefined;
811
+ memberAgentId?: string | null | undefined;
812
+ sessionId?: string | null | undefined;
813
813
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
814
814
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
815
815
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -818,14 +818,14 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
818
818
  goldenRouteId?: string | null | undefined;
819
819
  }, {
820
820
  dispatchId: string;
821
- scope: string;
822
821
  replyTo: string;
823
- sessionId?: string | null | undefined;
822
+ scope: string;
824
823
  taskId?: string | null | undefined;
825
- organizationId?: string | null | undefined;
826
- memberAgentId?: string | null | undefined;
827
824
  positionId?: string | null | undefined;
828
825
  responsibilityId?: string | null | undefined;
826
+ organizationId?: string | null | undefined;
827
+ memberAgentId?: string | null | undefined;
828
+ sessionId?: string | null | undefined;
829
829
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
830
830
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
831
831
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -844,16 +844,16 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
844
844
  homeSlug: string;
845
845
  path?: string | null | undefined;
846
846
  machineId?: string | null | undefined;
847
+ happySessionId?: string | null | undefined;
847
848
  startedBy?: "daemon" | "terminal" | null | undefined;
848
849
  flavor?: string | null | undefined;
849
- happySessionId?: string | null | undefined;
850
850
  }, {
851
851
  homeSlug: string;
852
852
  path?: string | null | undefined;
853
853
  machineId?: string | null | undefined;
854
+ happySessionId?: string | null | undefined;
854
855
  startedBy?: "daemon" | "terminal" | null | undefined;
855
856
  flavor?: string | null | undefined;
856
- happySessionId?: string | null | undefined;
857
857
  }>>>;
858
858
  acceptanceHandoff: z.ZodOptional<z.ZodNullable<z.ZodObject<{
859
859
  dispatchId: z.ZodString;
@@ -867,9 +867,9 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
867
867
  acceptanceState: z.ZodEnum<["not_ready", "awaiting_acceptance", "closed"]>;
868
868
  ceoWriteNextStep: z.ZodString;
869
869
  }, "strip", z.ZodTypeAny, {
870
- taskId: string;
871
870
  dispatchId: string;
872
871
  replyTo: string;
872
+ taskId: string;
873
873
  positionStatus: string;
874
874
  latestUserVisibleResult: string;
875
875
  blockerSummary: string | null;
@@ -878,9 +878,9 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
878
878
  positionId?: string | null | undefined;
879
879
  responsibilityId?: string | null | undefined;
880
880
  }, {
881
- taskId: string;
882
881
  dispatchId: string;
883
882
  replyTo: string;
883
+ taskId: string;
884
884
  positionStatus: string;
885
885
  latestUserVisibleResult: string;
886
886
  blockerSummary: string | null;
@@ -902,19 +902,19 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
902
902
  targetArtifact: string | null;
903
903
  accessChannelState: "ok" | "reattach_required" | "runtime_replaced" | null;
904
904
  repeatFingerprint: string | null;
905
- organizationRootPath?: string | null | undefined;
906
905
  positionId?: string | null | undefined;
907
906
  responsibilityId?: string | null | undefined;
907
+ organizationRootPath?: string | null | undefined;
908
908
  replyContext?: {
909
909
  dispatchId: string;
910
- scope: string;
911
910
  replyTo: string;
912
- sessionId?: string | null | undefined;
911
+ scope: string;
913
912
  taskId?: string | null | undefined;
914
- organizationId?: string | null | undefined;
915
- memberAgentId?: string | null | undefined;
916
913
  positionId?: string | null | undefined;
917
914
  responsibilityId?: string | null | undefined;
915
+ organizationId?: string | null | undefined;
916
+ memberAgentId?: string | null | undefined;
917
+ sessionId?: string | null | undefined;
918
918
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
919
919
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
920
920
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -926,14 +926,14 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
926
926
  homeSlug: string;
927
927
  path?: string | null | undefined;
928
928
  machineId?: string | null | undefined;
929
+ happySessionId?: string | null | undefined;
929
930
  startedBy?: "daemon" | "terminal" | null | undefined;
930
931
  flavor?: string | null | undefined;
931
- happySessionId?: string | null | undefined;
932
932
  } | null | undefined;
933
933
  acceptanceHandoff?: {
934
- taskId: string;
935
934
  dispatchId: string;
936
935
  replyTo: string;
936
+ taskId: string;
937
937
  positionStatus: string;
938
938
  latestUserVisibleResult: string;
939
939
  blockerSummary: string | null;
@@ -955,19 +955,19 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
955
955
  targetArtifact: string | null;
956
956
  accessChannelState: "ok" | "reattach_required" | "runtime_replaced" | null;
957
957
  repeatFingerprint: string | null;
958
- organizationRootPath?: string | null | undefined;
959
958
  positionId?: string | null | undefined;
960
959
  responsibilityId?: string | null | undefined;
960
+ organizationRootPath?: string | null | undefined;
961
961
  replyContext?: {
962
962
  dispatchId: string;
963
- scope: string;
964
963
  replyTo: string;
965
- sessionId?: string | null | undefined;
964
+ scope: string;
966
965
  taskId?: string | null | undefined;
967
- organizationId?: string | null | undefined;
968
- memberAgentId?: string | null | undefined;
969
966
  positionId?: string | null | undefined;
970
967
  responsibilityId?: string | null | undefined;
968
+ organizationId?: string | null | undefined;
969
+ memberAgentId?: string | null | undefined;
970
+ sessionId?: string | null | undefined;
971
971
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
972
972
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
973
973
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -979,14 +979,14 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
979
979
  homeSlug: string;
980
980
  path?: string | null | undefined;
981
981
  machineId?: string | null | undefined;
982
+ happySessionId?: string | null | undefined;
982
983
  startedBy?: "daemon" | "terminal" | null | undefined;
983
984
  flavor?: string | null | undefined;
984
- happySessionId?: string | null | undefined;
985
985
  } | null | undefined;
986
986
  acceptanceHandoff?: {
987
- taskId: string;
988
987
  dispatchId: string;
989
988
  replyTo: string;
989
+ taskId: string;
990
990
  positionStatus: string;
991
991
  latestUserVisibleResult: string;
992
992
  blockerSummary: string | null;
@@ -997,25 +997,32 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
997
997
  } | null | undefined;
998
998
  }>>;
999
999
  }, "strip", z.ZodTypeAny, {
1000
+ repeat?: {
1001
+ threshold: number;
1002
+ fingerprints: Record<string, {
1003
+ count: number;
1004
+ lastSeenAt: number;
1005
+ }>;
1006
+ } | undefined;
1000
1007
  taskContext?: {
1001
1008
  taskId: string;
1002
1009
  organizationId: string;
1003
1010
  memberAgentId: string;
1004
1011
  supervisorAgentId: string;
1005
- organizationRootPath?: string | null | undefined;
1006
1012
  positionId?: string | null | undefined;
1007
1013
  responsibilityId?: string | null | undefined;
1014
+ organizationRootPath?: string | null | undefined;
1008
1015
  } | undefined;
1009
1016
  replyContext?: {
1010
1017
  dispatchId: string;
1011
- scope: string;
1012
1018
  replyTo: string;
1013
- sessionId?: string | null | undefined;
1019
+ scope: string;
1014
1020
  taskId?: string | null | undefined;
1015
- organizationId?: string | null | undefined;
1016
- memberAgentId?: string | null | undefined;
1017
1021
  positionId?: string | null | undefined;
1018
1022
  responsibilityId?: string | null | undefined;
1023
+ organizationId?: string | null | undefined;
1024
+ memberAgentId?: string | null | undefined;
1025
+ sessionId?: string | null | undefined;
1019
1026
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
1020
1027
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
1021
1028
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -1027,9 +1034,9 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
1027
1034
  homeSlug: string;
1028
1035
  path?: string | null | undefined;
1029
1036
  machineId?: string | null | undefined;
1037
+ happySessionId?: string | null | undefined;
1030
1038
  startedBy?: "daemon" | "terminal" | null | undefined;
1031
1039
  flavor?: string | null | undefined;
1032
- happySessionId?: string | null | undefined;
1033
1040
  } | null | undefined;
1034
1041
  runtime?: {
1035
1042
  status: "active" | "waiting_review" | "waiting_decision" | "waiting_close" | "terminated";
@@ -1050,12 +1057,12 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
1050
1057
  readAck: "yes";
1051
1058
  note: string | null;
1052
1059
  acknowledgedAt: number;
1053
- sessionId?: string | null | undefined;
1054
1060
  taskId?: string | null | undefined;
1055
- organizationId?: string | null | undefined;
1056
- memberAgentId?: string | null | undefined;
1057
1061
  positionId?: string | null | undefined;
1058
1062
  responsibilityId?: string | null | undefined;
1063
+ organizationId?: string | null | undefined;
1064
+ memberAgentId?: string | null | undefined;
1065
+ sessionId?: string | null | undefined;
1059
1066
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
1060
1067
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
1061
1068
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -1076,13 +1083,6 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
1076
1083
  resolvedHomeRole?: string | null | undefined;
1077
1084
  startupBindingFailureReason?: "startup_home_mismatch" | "startup_binding_invalid" | null | undefined;
1078
1085
  } | null | undefined;
1079
- repeat?: {
1080
- threshold: number;
1081
- fingerprints: Record<string, {
1082
- count: number;
1083
- lastSeenAt: number;
1084
- }>;
1085
- } | undefined;
1086
1086
  lastTurnReport?: {
1087
1087
  summary: string;
1088
1088
  taskId: string;
@@ -1096,19 +1096,19 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
1096
1096
  targetArtifact: string | null;
1097
1097
  accessChannelState: "ok" | "reattach_required" | "runtime_replaced" | null;
1098
1098
  repeatFingerprint: string | null;
1099
- organizationRootPath?: string | null | undefined;
1100
1099
  positionId?: string | null | undefined;
1101
1100
  responsibilityId?: string | null | undefined;
1101
+ organizationRootPath?: string | null | undefined;
1102
1102
  replyContext?: {
1103
1103
  dispatchId: string;
1104
- scope: string;
1105
1104
  replyTo: string;
1106
- sessionId?: string | null | undefined;
1105
+ scope: string;
1107
1106
  taskId?: string | null | undefined;
1108
- organizationId?: string | null | undefined;
1109
- memberAgentId?: string | null | undefined;
1110
1107
  positionId?: string | null | undefined;
1111
1108
  responsibilityId?: string | null | undefined;
1109
+ organizationId?: string | null | undefined;
1110
+ memberAgentId?: string | null | undefined;
1111
+ sessionId?: string | null | undefined;
1112
1112
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
1113
1113
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
1114
1114
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -1120,14 +1120,14 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
1120
1120
  homeSlug: string;
1121
1121
  path?: string | null | undefined;
1122
1122
  machineId?: string | null | undefined;
1123
+ happySessionId?: string | null | undefined;
1123
1124
  startedBy?: "daemon" | "terminal" | null | undefined;
1124
1125
  flavor?: string | null | undefined;
1125
- happySessionId?: string | null | undefined;
1126
1126
  } | null | undefined;
1127
1127
  acceptanceHandoff?: {
1128
- taskId: string;
1129
1128
  dispatchId: string;
1130
1129
  replyTo: string;
1130
+ taskId: string;
1131
1131
  positionStatus: string;
1132
1132
  latestUserVisibleResult: string;
1133
1133
  blockerSummary: string | null;
@@ -1138,25 +1138,32 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
1138
1138
  } | null | undefined;
1139
1139
  } | undefined;
1140
1140
  }, {
1141
+ repeat?: {
1142
+ threshold: number;
1143
+ fingerprints: Record<string, {
1144
+ count: number;
1145
+ lastSeenAt: number;
1146
+ }>;
1147
+ } | undefined;
1141
1148
  taskContext?: {
1142
1149
  taskId: string;
1143
1150
  organizationId: string;
1144
1151
  memberAgentId: string;
1145
1152
  supervisorAgentId: string;
1146
- organizationRootPath?: string | null | undefined;
1147
1153
  positionId?: string | null | undefined;
1148
1154
  responsibilityId?: string | null | undefined;
1155
+ organizationRootPath?: string | null | undefined;
1149
1156
  } | undefined;
1150
1157
  replyContext?: {
1151
1158
  dispatchId: string;
1152
- scope: string;
1153
1159
  replyTo: string;
1154
- sessionId?: string | null | undefined;
1160
+ scope: string;
1155
1161
  taskId?: string | null | undefined;
1156
- organizationId?: string | null | undefined;
1157
- memberAgentId?: string | null | undefined;
1158
1162
  positionId?: string | null | undefined;
1159
1163
  responsibilityId?: string | null | undefined;
1164
+ organizationId?: string | null | undefined;
1165
+ memberAgentId?: string | null | undefined;
1166
+ sessionId?: string | null | undefined;
1160
1167
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
1161
1168
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
1162
1169
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -1168,9 +1175,9 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
1168
1175
  homeSlug: string;
1169
1176
  path?: string | null | undefined;
1170
1177
  machineId?: string | null | undefined;
1178
+ happySessionId?: string | null | undefined;
1171
1179
  startedBy?: "daemon" | "terminal" | null | undefined;
1172
1180
  flavor?: string | null | undefined;
1173
- happySessionId?: string | null | undefined;
1174
1181
  } | null | undefined;
1175
1182
  runtime?: {
1176
1183
  status: "active" | "waiting_review" | "waiting_decision" | "waiting_close" | "terminated";
@@ -1191,12 +1198,12 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
1191
1198
  readAck: "yes";
1192
1199
  note: string | null;
1193
1200
  acknowledgedAt: number;
1194
- sessionId?: string | null | undefined;
1195
1201
  taskId?: string | null | undefined;
1196
- organizationId?: string | null | undefined;
1197
- memberAgentId?: string | null | undefined;
1198
1202
  positionId?: string | null | undefined;
1199
1203
  responsibilityId?: string | null | undefined;
1204
+ organizationId?: string | null | undefined;
1205
+ memberAgentId?: string | null | undefined;
1206
+ sessionId?: string | null | undefined;
1200
1207
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
1201
1208
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
1202
1209
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -1217,13 +1224,6 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
1217
1224
  resolvedHomeRole?: string | null | undefined;
1218
1225
  startupBindingFailureReason?: "startup_home_mismatch" | "startup_binding_invalid" | null | undefined;
1219
1226
  } | null | undefined;
1220
- repeat?: {
1221
- threshold: number;
1222
- fingerprints: Record<string, {
1223
- count: number;
1224
- lastSeenAt: number;
1225
- }>;
1226
- } | undefined;
1227
1227
  lastTurnReport?: {
1228
1228
  summary: string;
1229
1229
  taskId: string;
@@ -1237,19 +1237,19 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
1237
1237
  targetArtifact: string | null;
1238
1238
  accessChannelState: "ok" | "reattach_required" | "runtime_replaced" | null;
1239
1239
  repeatFingerprint: string | null;
1240
- organizationRootPath?: string | null | undefined;
1241
1240
  positionId?: string | null | undefined;
1242
1241
  responsibilityId?: string | null | undefined;
1242
+ organizationRootPath?: string | null | undefined;
1243
1243
  replyContext?: {
1244
1244
  dispatchId: string;
1245
- scope: string;
1246
1245
  replyTo: string;
1247
- sessionId?: string | null | undefined;
1246
+ scope: string;
1248
1247
  taskId?: string | null | undefined;
1249
- organizationId?: string | null | undefined;
1250
- memberAgentId?: string | null | undefined;
1251
1248
  positionId?: string | null | undefined;
1252
1249
  responsibilityId?: string | null | undefined;
1250
+ organizationId?: string | null | undefined;
1251
+ memberAgentId?: string | null | undefined;
1252
+ sessionId?: string | null | undefined;
1253
1253
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
1254
1254
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
1255
1255
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -1261,14 +1261,14 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
1261
1261
  homeSlug: string;
1262
1262
  path?: string | null | undefined;
1263
1263
  machineId?: string | null | undefined;
1264
+ happySessionId?: string | null | undefined;
1264
1265
  startedBy?: "daemon" | "terminal" | null | undefined;
1265
1266
  flavor?: string | null | undefined;
1266
- happySessionId?: string | null | undefined;
1267
1267
  } | null | undefined;
1268
1268
  acceptanceHandoff?: {
1269
- taskId: string;
1270
1269
  dispatchId: string;
1271
1270
  replyTo: string;
1271
+ taskId: string;
1272
1272
  positionStatus: string;
1273
1273
  latestUserVisibleResult: string;
1274
1274
  blockerSummary: string | null;
@@ -1310,16 +1310,16 @@ declare const SessionRuntimeIndexSchema: z.ZodObject<{
1310
1310
  flavor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1311
1311
  }, "strip", z.ZodTypeAny, {
1312
1312
  machineId?: string | null | undefined;
1313
- hostPid?: number | null | undefined;
1314
1313
  startedBy?: string | null | undefined;
1315
- lifecycleState?: string | null | undefined;
1316
1314
  flavor?: string | null | undefined;
1315
+ hostPid?: number | null | undefined;
1316
+ lifecycleState?: string | null | undefined;
1317
1317
  }, {
1318
1318
  machineId?: string | null | undefined;
1319
- hostPid?: number | null | undefined;
1320
1319
  startedBy?: string | null | undefined;
1321
- lifecycleState?: string | null | undefined;
1322
1320
  flavor?: string | null | undefined;
1321
+ hostPid?: number | null | undefined;
1322
+ lifecycleState?: string | null | undefined;
1323
1323
  }>;
1324
1324
  type SessionRuntimeIndex = z.infer<typeof SessionRuntimeIndexSchema>;
1325
1325
  interface ProtocolV3Descriptor {
@@ -1380,58 +1380,58 @@ declare const UpdateSchema: z.ZodObject<{
1380
1380
  flavor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1381
1381
  }, "strip", z.ZodTypeAny, {
1382
1382
  machineId?: string | null | undefined;
1383
- hostPid?: number | null | undefined;
1384
1383
  startedBy?: string | null | undefined;
1385
- lifecycleState?: string | null | undefined;
1386
1384
  flavor?: string | null | undefined;
1385
+ hostPid?: number | null | undefined;
1386
+ lifecycleState?: string | null | undefined;
1387
1387
  }, {
1388
1388
  machineId?: string | null | undefined;
1389
- hostPid?: number | null | undefined;
1390
1389
  startedBy?: string | null | undefined;
1391
- lifecycleState?: string | null | undefined;
1392
1390
  flavor?: string | null | undefined;
1391
+ hostPid?: number | null | undefined;
1392
+ lifecycleState?: string | null | undefined;
1393
1393
  }>>>;
1394
1394
  }, "strip", z.ZodTypeAny, {
1395
- t: "new-session";
1396
1395
  id: string;
1396
+ t: "new-session";
1397
1397
  seq: number;
1398
1398
  metadata: string;
1399
1399
  metadataVersion: number;
1400
1400
  agentState: string | null;
1401
1401
  agentStateVersion: number;
1402
+ createdAt?: number | undefined;
1403
+ updatedAt?: number | undefined;
1404
+ active?: boolean | undefined;
1402
1405
  title?: string | null | undefined;
1403
1406
  dataEncryptionKey?: string | null | undefined;
1404
- active?: boolean | undefined;
1405
1407
  activeAt?: number | undefined;
1406
- createdAt?: number | undefined;
1407
- updatedAt?: number | undefined;
1408
1408
  sessionIndex?: {
1409
1409
  machineId?: string | null | undefined;
1410
- hostPid?: number | null | undefined;
1411
1410
  startedBy?: string | null | undefined;
1412
- lifecycleState?: string | null | undefined;
1413
1411
  flavor?: string | null | undefined;
1412
+ hostPid?: number | null | undefined;
1413
+ lifecycleState?: string | null | undefined;
1414
1414
  } | null | undefined;
1415
1415
  }, {
1416
- t: "new-session";
1417
1416
  id: string;
1417
+ t: "new-session";
1418
1418
  seq: number;
1419
1419
  metadata: string;
1420
1420
  metadataVersion: number;
1421
1421
  agentState: string | null;
1422
1422
  agentStateVersion: number;
1423
+ createdAt?: number | undefined;
1424
+ updatedAt?: number | undefined;
1425
+ active?: boolean | undefined;
1423
1426
  title?: string | null | undefined;
1424
1427
  dataEncryptionKey?: string | null | undefined;
1425
- active?: boolean | undefined;
1426
1428
  activeAt?: number | undefined;
1427
- createdAt?: number | undefined;
1428
- updatedAt?: number | undefined;
1429
1429
  sessionIndex?: {
1430
1430
  machineId?: string | null | undefined;
1431
- hostPid?: number | null | undefined;
1432
1431
  startedBy?: string | null | undefined;
1433
- lifecycleState?: string | null | undefined;
1434
1432
  flavor?: string | null | undefined;
1433
+ hostPid?: number | null | undefined;
1434
+ lifecycleState?: string | null | undefined;
1435
1435
  } | null | undefined;
1436
1436
  }>, z.ZodObject<{
1437
1437
  message: z.ZodObject<{
@@ -1460,6 +1460,7 @@ declare const UpdateSchema: z.ZodObject<{
1460
1460
  createdAt: z.ZodOptional<z.ZodNumber>;
1461
1461
  updatedAt: z.ZodOptional<z.ZodNumber>;
1462
1462
  }, "strip", z.ZodTypeAny, {
1463
+ id: string;
1463
1464
  content: {
1464
1465
  t: "encrypted";
1465
1466
  c: string;
@@ -1467,12 +1468,12 @@ declare const UpdateSchema: z.ZodObject<{
1467
1468
  t: "plaintext";
1468
1469
  p: string;
1469
1470
  };
1470
- id: string;
1471
1471
  seq: number;
1472
1472
  createdAt?: number | undefined;
1473
1473
  updatedAt?: number | undefined;
1474
1474
  localId?: string | null | undefined;
1475
1475
  }, {
1476
+ id: string;
1476
1477
  content: {
1477
1478
  t: "encrypted";
1478
1479
  c: string;
@@ -1480,7 +1481,6 @@ declare const UpdateSchema: z.ZodObject<{
1480
1481
  t: "plaintext";
1481
1482
  p: string;
1482
1483
  };
1483
- id: string;
1484
1484
  seq: number;
1485
1485
  createdAt?: number | undefined;
1486
1486
  updatedAt?: number | undefined;
@@ -1490,6 +1490,7 @@ declare const UpdateSchema: z.ZodObject<{
1490
1490
  t: z.ZodLiteral<"new-message">;
1491
1491
  }, "strip", z.ZodTypeAny, {
1492
1492
  message: {
1493
+ id: string;
1493
1494
  content: {
1494
1495
  t: "encrypted";
1495
1496
  c: string;
@@ -1497,7 +1498,6 @@ declare const UpdateSchema: z.ZodObject<{
1497
1498
  t: "plaintext";
1498
1499
  p: string;
1499
1500
  };
1500
- id: string;
1501
1501
  seq: number;
1502
1502
  createdAt?: number | undefined;
1503
1503
  updatedAt?: number | undefined;
@@ -1507,6 +1507,7 @@ declare const UpdateSchema: z.ZodObject<{
1507
1507
  sid: string;
1508
1508
  }, {
1509
1509
  message: {
1510
+ id: string;
1510
1511
  content: {
1511
1512
  t: "encrypted";
1512
1513
  c: string;
@@ -1514,7 +1515,6 @@ declare const UpdateSchema: z.ZodObject<{
1514
1515
  t: "plaintext";
1515
1516
  p: string;
1516
1517
  };
1517
- id: string;
1518
1518
  seq: number;
1519
1519
  createdAt?: number | undefined;
1520
1520
  updatedAt?: number | undefined;
@@ -1546,16 +1546,16 @@ declare const UpdateSchema: z.ZodObject<{
1546
1546
  flavor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1547
1547
  }, "strip", z.ZodTypeAny, {
1548
1548
  machineId?: string | null | undefined;
1549
- hostPid?: number | null | undefined;
1550
1549
  startedBy?: string | null | undefined;
1551
- lifecycleState?: string | null | undefined;
1552
1550
  flavor?: string | null | undefined;
1551
+ hostPid?: number | null | undefined;
1552
+ lifecycleState?: string | null | undefined;
1553
1553
  }, {
1554
1554
  machineId?: string | null | undefined;
1555
- hostPid?: number | null | undefined;
1556
1555
  startedBy?: string | null | undefined;
1557
- lifecycleState?: string | null | undefined;
1558
1556
  flavor?: string | null | undefined;
1557
+ hostPid?: number | null | undefined;
1558
+ lifecycleState?: string | null | undefined;
1559
1559
  }>>>;
1560
1560
  agentState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1561
1561
  version: z.ZodNumber;
@@ -1581,10 +1581,10 @@ declare const UpdateSchema: z.ZodObject<{
1581
1581
  } | null | undefined;
1582
1582
  sessionIndex?: {
1583
1583
  machineId?: string | null | undefined;
1584
- hostPid?: number | null | undefined;
1585
1584
  startedBy?: string | null | undefined;
1586
- lifecycleState?: string | null | undefined;
1587
1585
  flavor?: string | null | undefined;
1586
+ hostPid?: number | null | undefined;
1587
+ lifecycleState?: string | null | undefined;
1588
1588
  } | null | undefined;
1589
1589
  sid?: string | undefined;
1590
1590
  changeSeq?: number | undefined;
@@ -1602,10 +1602,10 @@ declare const UpdateSchema: z.ZodObject<{
1602
1602
  } | null | undefined;
1603
1603
  sessionIndex?: {
1604
1604
  machineId?: string | null | undefined;
1605
- hostPid?: number | null | undefined;
1606
1605
  startedBy?: string | null | undefined;
1607
- lifecycleState?: string | null | undefined;
1608
1606
  flavor?: string | null | undefined;
1607
+ hostPid?: number | null | undefined;
1608
+ lifecycleState?: string | null | undefined;
1609
1609
  } | null | undefined;
1610
1610
  sid?: string | undefined;
1611
1611
  changeSeq?: number | undefined;
@@ -1670,31 +1670,32 @@ declare const UpdateSchema: z.ZodObject<{
1670
1670
  createdAt: z.ZodNumber;
1671
1671
  }, "strip", z.ZodTypeAny, {
1672
1672
  id: string;
1673
- seq: number;
1674
1673
  createdAt: number;
1674
+ seq: number;
1675
1675
  body: {
1676
- t: "new-session";
1677
1676
  id: string;
1677
+ t: "new-session";
1678
1678
  seq: number;
1679
1679
  metadata: string;
1680
1680
  metadataVersion: number;
1681
1681
  agentState: string | null;
1682
1682
  agentStateVersion: number;
1683
+ createdAt?: number | undefined;
1684
+ updatedAt?: number | undefined;
1685
+ active?: boolean | undefined;
1683
1686
  title?: string | null | undefined;
1684
1687
  dataEncryptionKey?: string | null | undefined;
1685
- active?: boolean | undefined;
1686
1688
  activeAt?: number | undefined;
1687
- createdAt?: number | undefined;
1688
- updatedAt?: number | undefined;
1689
1689
  sessionIndex?: {
1690
1690
  machineId?: string | null | undefined;
1691
- hostPid?: number | null | undefined;
1692
1691
  startedBy?: string | null | undefined;
1693
- lifecycleState?: string | null | undefined;
1694
1692
  flavor?: string | null | undefined;
1693
+ hostPid?: number | null | undefined;
1694
+ lifecycleState?: string | null | undefined;
1695
1695
  } | null | undefined;
1696
1696
  } | {
1697
1697
  message: {
1698
+ id: string;
1698
1699
  content: {
1699
1700
  t: "encrypted";
1700
1701
  c: string;
@@ -1702,7 +1703,6 @@ declare const UpdateSchema: z.ZodObject<{
1702
1703
  t: "plaintext";
1703
1704
  p: string;
1704
1705
  };
1705
- id: string;
1706
1706
  seq: number;
1707
1707
  createdAt?: number | undefined;
1708
1708
  updatedAt?: number | undefined;
@@ -1724,10 +1724,10 @@ declare const UpdateSchema: z.ZodObject<{
1724
1724
  } | null | undefined;
1725
1725
  sessionIndex?: {
1726
1726
  machineId?: string | null | undefined;
1727
- hostPid?: number | null | undefined;
1728
1727
  startedBy?: string | null | undefined;
1729
- lifecycleState?: string | null | undefined;
1730
1728
  flavor?: string | null | undefined;
1729
+ hostPid?: number | null | undefined;
1730
+ lifecycleState?: string | null | undefined;
1731
1731
  } | null | undefined;
1732
1732
  sid?: string | undefined;
1733
1733
  changeSeq?: number | undefined;
@@ -1749,31 +1749,32 @@ declare const UpdateSchema: z.ZodObject<{
1749
1749
  };
1750
1750
  }, {
1751
1751
  id: string;
1752
- seq: number;
1753
1752
  createdAt: number;
1753
+ seq: number;
1754
1754
  body: {
1755
- t: "new-session";
1756
1755
  id: string;
1756
+ t: "new-session";
1757
1757
  seq: number;
1758
1758
  metadata: string;
1759
1759
  metadataVersion: number;
1760
1760
  agentState: string | null;
1761
1761
  agentStateVersion: number;
1762
+ createdAt?: number | undefined;
1763
+ updatedAt?: number | undefined;
1764
+ active?: boolean | undefined;
1762
1765
  title?: string | null | undefined;
1763
1766
  dataEncryptionKey?: string | null | undefined;
1764
- active?: boolean | undefined;
1765
1767
  activeAt?: number | undefined;
1766
- createdAt?: number | undefined;
1767
- updatedAt?: number | undefined;
1768
1768
  sessionIndex?: {
1769
1769
  machineId?: string | null | undefined;
1770
- hostPid?: number | null | undefined;
1771
1770
  startedBy?: string | null | undefined;
1772
- lifecycleState?: string | null | undefined;
1773
1771
  flavor?: string | null | undefined;
1772
+ hostPid?: number | null | undefined;
1773
+ lifecycleState?: string | null | undefined;
1774
1774
  } | null | undefined;
1775
1775
  } | {
1776
1776
  message: {
1777
+ id: string;
1777
1778
  content: {
1778
1779
  t: "encrypted";
1779
1780
  c: string;
@@ -1781,7 +1782,6 @@ declare const UpdateSchema: z.ZodObject<{
1781
1782
  t: "plaintext";
1782
1783
  p: string;
1783
1784
  };
1784
- id: string;
1785
1785
  seq: number;
1786
1786
  createdAt?: number | undefined;
1787
1787
  updatedAt?: number | undefined;
@@ -1803,10 +1803,10 @@ declare const UpdateSchema: z.ZodObject<{
1803
1803
  } | null | undefined;
1804
1804
  sessionIndex?: {
1805
1805
  machineId?: string | null | undefined;
1806
- hostPid?: number | null | undefined;
1807
1806
  startedBy?: string | null | undefined;
1808
- lifecycleState?: string | null | undefined;
1809
1807
  flavor?: string | null | undefined;
1808
+ hostPid?: number | null | undefined;
1809
+ lifecycleState?: string | null | undefined;
1810
1810
  } | null | undefined;
1811
1811
  sid?: string | undefined;
1812
1812
  changeSeq?: number | undefined;
@@ -1953,32 +1953,32 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
1953
1953
  }, "strip", z.ZodTypeAny, {
1954
1954
  id: string;
1955
1955
  lastChangeSeq: number;
1956
+ createdAt?: number | undefined;
1957
+ updatedAt?: number | undefined;
1958
+ active?: boolean | undefined;
1956
1959
  title?: string | null | undefined;
1957
1960
  metadata?: string | undefined;
1958
1961
  metadataVersion?: number | undefined;
1959
1962
  agentState?: string | null | undefined;
1960
1963
  agentStateVersion?: number | undefined;
1961
1964
  dataEncryptionKey?: string | null | undefined;
1962
- active?: boolean | undefined;
1963
1965
  activeAt?: number | undefined;
1964
- createdAt?: number | undefined;
1965
- updatedAt?: number | undefined;
1966
1966
  pendingCount?: number | undefined;
1967
1967
  pendingVersion?: number | undefined;
1968
1968
  deleted?: boolean | undefined;
1969
1969
  }, {
1970
1970
  id: string;
1971
1971
  lastChangeSeq: number;
1972
+ createdAt?: number | undefined;
1973
+ updatedAt?: number | undefined;
1974
+ active?: boolean | undefined;
1972
1975
  title?: string | null | undefined;
1973
1976
  metadata?: string | undefined;
1974
1977
  metadataVersion?: number | undefined;
1975
1978
  agentState?: string | null | undefined;
1976
1979
  agentStateVersion?: number | undefined;
1977
1980
  dataEncryptionKey?: string | null | undefined;
1978
- active?: boolean | undefined;
1979
1981
  activeAt?: number | undefined;
1980
- createdAt?: number | undefined;
1981
- updatedAt?: number | undefined;
1982
1982
  pendingCount?: number | undefined;
1983
1983
  pendingVersion?: number | undefined;
1984
1984
  deleted?: boolean | undefined;
@@ -2010,6 +2010,9 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
2010
2010
  createdAt: z.ZodNumber;
2011
2011
  updatedAt: z.ZodNumber;
2012
2012
  }, "strip", z.ZodTypeAny, {
2013
+ id: string;
2014
+ createdAt: number;
2015
+ updatedAt: number;
2013
2016
  content: {
2014
2017
  t: "encrypted";
2015
2018
  c: string;
@@ -2017,12 +2020,12 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
2017
2020
  t: "plaintext";
2018
2021
  p: string;
2019
2022
  };
2020
- id: string;
2021
2023
  seq: number;
2022
- createdAt: number;
2023
- updatedAt: number;
2024
2024
  localId: string | null;
2025
2025
  }, {
2026
+ id: string;
2027
+ createdAt: number;
2028
+ updatedAt: number;
2026
2029
  content: {
2027
2030
  t: "encrypted";
2028
2031
  c: string;
@@ -2030,16 +2033,16 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
2030
2033
  t: "plaintext";
2031
2034
  p: string;
2032
2035
  };
2033
- id: string;
2034
2036
  seq: number;
2035
- createdAt: number;
2036
- updatedAt: number;
2037
2037
  localId: string | null;
2038
2038
  }>, "many">;
2039
2039
  truncated: z.ZodBoolean;
2040
2040
  oldestRetainedSeq: z.ZodNullable<z.ZodNumber>;
2041
2041
  }, "strip", z.ZodTypeAny, {
2042
2042
  messages: {
2043
+ id: string;
2044
+ createdAt: number;
2045
+ updatedAt: number;
2043
2046
  content: {
2044
2047
  t: "encrypted";
2045
2048
  c: string;
@@ -2047,16 +2050,16 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
2047
2050
  t: "plaintext";
2048
2051
  p: string;
2049
2052
  };
2050
- id: string;
2051
2053
  seq: number;
2052
- createdAt: number;
2053
- updatedAt: number;
2054
2054
  localId: string | null;
2055
2055
  }[];
2056
2056
  truncated: boolean;
2057
2057
  oldestRetainedSeq: number | null;
2058
2058
  }, {
2059
2059
  messages: {
2060
+ id: string;
2061
+ createdAt: number;
2062
+ updatedAt: number;
2060
2063
  content: {
2061
2064
  t: "encrypted";
2062
2065
  c: string;
@@ -2064,10 +2067,7 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
2064
2067
  t: "plaintext";
2065
2068
  p: string;
2066
2069
  };
2067
- id: string;
2068
2070
  seq: number;
2069
- createdAt: number;
2070
- updatedAt: number;
2071
2071
  localId: string | null;
2072
2072
  }[];
2073
2073
  truncated: boolean;
@@ -2086,22 +2086,25 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
2086
2086
  session: {
2087
2087
  id: string;
2088
2088
  lastChangeSeq: number;
2089
+ createdAt?: number | undefined;
2090
+ updatedAt?: number | undefined;
2091
+ active?: boolean | undefined;
2089
2092
  title?: string | null | undefined;
2090
2093
  metadata?: string | undefined;
2091
2094
  metadataVersion?: number | undefined;
2092
2095
  agentState?: string | null | undefined;
2093
2096
  agentStateVersion?: number | undefined;
2094
2097
  dataEncryptionKey?: string | null | undefined;
2095
- active?: boolean | undefined;
2096
2098
  activeAt?: number | undefined;
2097
- createdAt?: number | undefined;
2098
- updatedAt?: number | undefined;
2099
2099
  pendingCount?: number | undefined;
2100
2100
  pendingVersion?: number | undefined;
2101
2101
  deleted?: boolean | undefined;
2102
2102
  };
2103
2103
  snapshot: {
2104
2104
  messages: {
2105
+ id: string;
2106
+ createdAt: number;
2107
+ updatedAt: number;
2105
2108
  content: {
2106
2109
  t: "encrypted";
2107
2110
  c: string;
@@ -2109,10 +2112,7 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
2109
2112
  t: "plaintext";
2110
2113
  p: string;
2111
2114
  };
2112
- id: string;
2113
2115
  seq: number;
2114
- createdAt: number;
2115
- updatedAt: number;
2116
2116
  localId: string | null;
2117
2117
  }[];
2118
2118
  truncated: boolean;
@@ -2131,22 +2131,25 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
2131
2131
  session: {
2132
2132
  id: string;
2133
2133
  lastChangeSeq: number;
2134
+ createdAt?: number | undefined;
2135
+ updatedAt?: number | undefined;
2136
+ active?: boolean | undefined;
2134
2137
  title?: string | null | undefined;
2135
2138
  metadata?: string | undefined;
2136
2139
  metadataVersion?: number | undefined;
2137
2140
  agentState?: string | null | undefined;
2138
2141
  agentStateVersion?: number | undefined;
2139
2142
  dataEncryptionKey?: string | null | undefined;
2140
- active?: boolean | undefined;
2141
2143
  activeAt?: number | undefined;
2142
- createdAt?: number | undefined;
2143
- updatedAt?: number | undefined;
2144
2144
  pendingCount?: number | undefined;
2145
2145
  pendingVersion?: number | undefined;
2146
2146
  deleted?: boolean | undefined;
2147
2147
  };
2148
2148
  snapshot: {
2149
2149
  messages: {
2150
+ id: string;
2151
+ createdAt: number;
2152
+ updatedAt: number;
2150
2153
  content: {
2151
2154
  t: "encrypted";
2152
2155
  c: string;
@@ -2154,10 +2157,7 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
2154
2157
  t: "plaintext";
2155
2158
  p: string;
2156
2159
  };
2157
- id: string;
2158
2160
  seq: number;
2159
- createdAt: number;
2160
- updatedAt: number;
2161
2161
  localId: string | null;
2162
2162
  }[];
2163
2163
  truncated: boolean;
@@ -2273,32 +2273,32 @@ declare const ProtocolV3SessionChangesResponseSchema: z.ZodObject<{
2273
2273
  }, "strip", z.ZodTypeAny, {
2274
2274
  id: string;
2275
2275
  lastChangeSeq: number;
2276
+ createdAt?: number | undefined;
2277
+ updatedAt?: number | undefined;
2278
+ active?: boolean | undefined;
2276
2279
  title?: string | null | undefined;
2277
2280
  metadata?: string | undefined;
2278
2281
  metadataVersion?: number | undefined;
2279
2282
  agentState?: string | null | undefined;
2280
2283
  agentStateVersion?: number | undefined;
2281
2284
  dataEncryptionKey?: string | null | undefined;
2282
- active?: boolean | undefined;
2283
2285
  activeAt?: number | undefined;
2284
- createdAt?: number | undefined;
2285
- updatedAt?: number | undefined;
2286
2286
  pendingCount?: number | undefined;
2287
2287
  pendingVersion?: number | undefined;
2288
2288
  deleted?: boolean | undefined;
2289
2289
  }, {
2290
2290
  id: string;
2291
2291
  lastChangeSeq: number;
2292
+ createdAt?: number | undefined;
2293
+ updatedAt?: number | undefined;
2294
+ active?: boolean | undefined;
2292
2295
  title?: string | null | undefined;
2293
2296
  metadata?: string | undefined;
2294
2297
  metadataVersion?: number | undefined;
2295
2298
  agentState?: string | null | undefined;
2296
2299
  agentStateVersion?: number | undefined;
2297
2300
  dataEncryptionKey?: string | null | undefined;
2298
- active?: boolean | undefined;
2299
2301
  activeAt?: number | undefined;
2300
- createdAt?: number | undefined;
2301
- updatedAt?: number | undefined;
2302
2302
  pendingCount?: number | undefined;
2303
2303
  pendingVersion?: number | undefined;
2304
2304
  deleted?: boolean | undefined;
@@ -2345,16 +2345,16 @@ declare const ProtocolV3SessionChangesResponseSchema: z.ZodObject<{
2345
2345
  session: {
2346
2346
  id: string;
2347
2347
  lastChangeSeq: number;
2348
+ createdAt?: number | undefined;
2349
+ updatedAt?: number | undefined;
2350
+ active?: boolean | undefined;
2348
2351
  title?: string | null | undefined;
2349
2352
  metadata?: string | undefined;
2350
2353
  metadataVersion?: number | undefined;
2351
2354
  agentState?: string | null | undefined;
2352
2355
  agentStateVersion?: number | undefined;
2353
2356
  dataEncryptionKey?: string | null | undefined;
2354
- active?: boolean | undefined;
2355
2357
  activeAt?: number | undefined;
2356
- createdAt?: number | undefined;
2357
- updatedAt?: number | undefined;
2358
2358
  pendingCount?: number | undefined;
2359
2359
  pendingVersion?: number | undefined;
2360
2360
  deleted?: boolean | undefined;
@@ -2383,16 +2383,16 @@ declare const ProtocolV3SessionChangesResponseSchema: z.ZodObject<{
2383
2383
  session: {
2384
2384
  id: string;
2385
2385
  lastChangeSeq: number;
2386
+ createdAt?: number | undefined;
2387
+ updatedAt?: number | undefined;
2388
+ active?: boolean | undefined;
2386
2389
  title?: string | null | undefined;
2387
2390
  metadata?: string | undefined;
2388
2391
  metadataVersion?: number | undefined;
2389
2392
  agentState?: string | null | undefined;
2390
2393
  agentStateVersion?: number | undefined;
2391
2394
  dataEncryptionKey?: string | null | undefined;
2392
- active?: boolean | undefined;
2393
2395
  activeAt?: number | undefined;
2394
- createdAt?: number | undefined;
2395
- updatedAt?: number | undefined;
2396
2396
  pendingCount?: number | undefined;
2397
2397
  pendingVersion?: number | undefined;
2398
2398
  deleted?: boolean | undefined;
@@ -2446,17 +2446,17 @@ declare const UserMessageSchema: z.ZodObject<{
2446
2446
  organizationId: string;
2447
2447
  memberAgentId: string;
2448
2448
  supervisorAgentId: string;
2449
- organizationRootPath?: string | null | undefined;
2450
2449
  positionId?: string | null | undefined;
2451
2450
  responsibilityId?: string | null | undefined;
2451
+ organizationRootPath?: string | null | undefined;
2452
2452
  }, {
2453
2453
  taskId: string;
2454
2454
  organizationId: string;
2455
2455
  memberAgentId: string;
2456
2456
  supervisorAgentId: string;
2457
- organizationRootPath?: string | null | undefined;
2458
2457
  positionId?: string | null | undefined;
2459
2458
  responsibilityId?: string | null | undefined;
2459
+ organizationRootPath?: string | null | undefined;
2460
2460
  }>>;
2461
2461
  control: z.ZodOptional<z.ZodObject<{
2462
2462
  action: z.ZodEnum<["terminate", "reopen"]>;
@@ -2495,14 +2495,14 @@ declare const UserMessageSchema: z.ZodObject<{
2495
2495
  goldenRouteId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2496
2496
  }, "strip", z.ZodTypeAny, {
2497
2497
  dispatchId: string;
2498
- scope: string;
2499
2498
  replyTo: string;
2500
- sessionId?: string | null | undefined;
2499
+ scope: string;
2501
2500
  taskId?: string | null | undefined;
2502
- organizationId?: string | null | undefined;
2503
- memberAgentId?: string | null | undefined;
2504
2501
  positionId?: string | null | undefined;
2505
2502
  responsibilityId?: string | null | undefined;
2503
+ organizationId?: string | null | undefined;
2504
+ memberAgentId?: string | null | undefined;
2505
+ sessionId?: string | null | undefined;
2506
2506
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2507
2507
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2508
2508
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -2511,14 +2511,14 @@ declare const UserMessageSchema: z.ZodObject<{
2511
2511
  goldenRouteId?: string | null | undefined;
2512
2512
  }, {
2513
2513
  dispatchId: string;
2514
- scope: string;
2515
2514
  replyTo: string;
2516
- sessionId?: string | null | undefined;
2515
+ scope: string;
2517
2516
  taskId?: string | null | undefined;
2518
- organizationId?: string | null | undefined;
2519
- memberAgentId?: string | null | undefined;
2520
2517
  positionId?: string | null | undefined;
2521
2518
  responsibilityId?: string | null | undefined;
2519
+ organizationId?: string | null | undefined;
2520
+ memberAgentId?: string | null | undefined;
2521
+ sessionId?: string | null | undefined;
2522
2522
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2523
2523
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2524
2524
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -2532,9 +2532,9 @@ declare const UserMessageSchema: z.ZodObject<{
2532
2532
  organizationId: string;
2533
2533
  memberAgentId: string;
2534
2534
  supervisorAgentId: string;
2535
- organizationRootPath?: string | null | undefined;
2536
2535
  positionId?: string | null | undefined;
2537
2536
  responsibilityId?: string | null | undefined;
2537
+ organizationRootPath?: string | null | undefined;
2538
2538
  } | undefined;
2539
2539
  control?: {
2540
2540
  action: "terminate" | "reopen";
@@ -2545,14 +2545,14 @@ declare const UserMessageSchema: z.ZodObject<{
2545
2545
  } | undefined;
2546
2546
  replyContext?: {
2547
2547
  dispatchId: string;
2548
- scope: string;
2549
2548
  replyTo: string;
2550
- sessionId?: string | null | undefined;
2549
+ scope: string;
2551
2550
  taskId?: string | null | undefined;
2552
- organizationId?: string | null | undefined;
2553
- memberAgentId?: string | null | undefined;
2554
2551
  positionId?: string | null | undefined;
2555
2552
  responsibilityId?: string | null | undefined;
2553
+ organizationId?: string | null | undefined;
2554
+ memberAgentId?: string | null | undefined;
2555
+ sessionId?: string | null | undefined;
2556
2556
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2557
2557
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2558
2558
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -2566,9 +2566,9 @@ declare const UserMessageSchema: z.ZodObject<{
2566
2566
  organizationId: string;
2567
2567
  memberAgentId: string;
2568
2568
  supervisorAgentId: string;
2569
- organizationRootPath?: string | null | undefined;
2570
2569
  positionId?: string | null | undefined;
2571
2570
  responsibilityId?: string | null | undefined;
2571
+ organizationRootPath?: string | null | undefined;
2572
2572
  } | undefined;
2573
2573
  control?: {
2574
2574
  action: "terminate" | "reopen";
@@ -2579,14 +2579,14 @@ declare const UserMessageSchema: z.ZodObject<{
2579
2579
  } | undefined;
2580
2580
  replyContext?: {
2581
2581
  dispatchId: string;
2582
- scope: string;
2583
2582
  replyTo: string;
2584
- sessionId?: string | null | undefined;
2583
+ scope: string;
2585
2584
  taskId?: string | null | undefined;
2586
- organizationId?: string | null | undefined;
2587
- memberAgentId?: string | null | undefined;
2588
2585
  positionId?: string | null | undefined;
2589
2586
  responsibilityId?: string | null | undefined;
2587
+ organizationId?: string | null | undefined;
2588
+ memberAgentId?: string | null | undefined;
2589
+ sessionId?: string | null | undefined;
2590
2590
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2591
2591
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2592
2592
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -2610,9 +2610,9 @@ declare const UserMessageSchema: z.ZodObject<{
2610
2610
  organizationId: string;
2611
2611
  memberAgentId: string;
2612
2612
  supervisorAgentId: string;
2613
- organizationRootPath?: string | null | undefined;
2614
2613
  positionId?: string | null | undefined;
2615
2614
  responsibilityId?: string | null | undefined;
2615
+ organizationRootPath?: string | null | undefined;
2616
2616
  } | undefined;
2617
2617
  control?: {
2618
2618
  action: "terminate" | "reopen";
@@ -2623,14 +2623,14 @@ declare const UserMessageSchema: z.ZodObject<{
2623
2623
  } | undefined;
2624
2624
  replyContext?: {
2625
2625
  dispatchId: string;
2626
- scope: string;
2627
2626
  replyTo: string;
2628
- sessionId?: string | null | undefined;
2627
+ scope: string;
2629
2628
  taskId?: string | null | undefined;
2630
- organizationId?: string | null | undefined;
2631
- memberAgentId?: string | null | undefined;
2632
2629
  positionId?: string | null | undefined;
2633
2630
  responsibilityId?: string | null | undefined;
2631
+ organizationId?: string | null | undefined;
2632
+ memberAgentId?: string | null | undefined;
2633
+ sessionId?: string | null | undefined;
2634
2634
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2635
2635
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2636
2636
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -2654,9 +2654,9 @@ declare const UserMessageSchema: z.ZodObject<{
2654
2654
  organizationId: string;
2655
2655
  memberAgentId: string;
2656
2656
  supervisorAgentId: string;
2657
- organizationRootPath?: string | null | undefined;
2658
2657
  positionId?: string | null | undefined;
2659
2658
  responsibilityId?: string | null | undefined;
2659
+ organizationRootPath?: string | null | undefined;
2660
2660
  } | undefined;
2661
2661
  control?: {
2662
2662
  action: "terminate" | "reopen";
@@ -2667,14 +2667,14 @@ declare const UserMessageSchema: z.ZodObject<{
2667
2667
  } | undefined;
2668
2668
  replyContext?: {
2669
2669
  dispatchId: string;
2670
- scope: string;
2671
2670
  replyTo: string;
2672
- sessionId?: string | null | undefined;
2671
+ scope: string;
2673
2672
  taskId?: string | null | undefined;
2674
- organizationId?: string | null | undefined;
2675
- memberAgentId?: string | null | undefined;
2676
2673
  positionId?: string | null | undefined;
2677
2674
  responsibilityId?: string | null | undefined;
2675
+ organizationId?: string | null | undefined;
2676
+ memberAgentId?: string | null | undefined;
2677
+ sessionId?: string | null | undefined;
2678
2678
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2679
2679
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2680
2680
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -2706,9 +2706,9 @@ declare const UserMessageSchema: z.ZodObject<{
2706
2706
  organizationId: string;
2707
2707
  memberAgentId: string;
2708
2708
  supervisorAgentId: string;
2709
- organizationRootPath?: string | null | undefined;
2710
2709
  positionId?: string | null | undefined;
2711
2710
  responsibilityId?: string | null | undefined;
2711
+ organizationRootPath?: string | null | undefined;
2712
2712
  } | undefined;
2713
2713
  control?: {
2714
2714
  action: "terminate" | "reopen";
@@ -2719,14 +2719,14 @@ declare const UserMessageSchema: z.ZodObject<{
2719
2719
  } | undefined;
2720
2720
  replyContext?: {
2721
2721
  dispatchId: string;
2722
- scope: string;
2723
2722
  replyTo: string;
2724
- sessionId?: string | null | undefined;
2723
+ scope: string;
2725
2724
  taskId?: string | null | undefined;
2726
- organizationId?: string | null | undefined;
2727
- memberAgentId?: string | null | undefined;
2728
2725
  positionId?: string | null | undefined;
2729
2726
  responsibilityId?: string | null | undefined;
2727
+ organizationId?: string | null | undefined;
2728
+ memberAgentId?: string | null | undefined;
2729
+ sessionId?: string | null | undefined;
2730
2730
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2731
2731
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2732
2732
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -2758,9 +2758,9 @@ declare const UserMessageSchema: z.ZodObject<{
2758
2758
  organizationId: string;
2759
2759
  memberAgentId: string;
2760
2760
  supervisorAgentId: string;
2761
- organizationRootPath?: string | null | undefined;
2762
2761
  positionId?: string | null | undefined;
2763
2762
  responsibilityId?: string | null | undefined;
2763
+ organizationRootPath?: string | null | undefined;
2764
2764
  } | undefined;
2765
2765
  control?: {
2766
2766
  action: "terminate" | "reopen";
@@ -2771,14 +2771,14 @@ declare const UserMessageSchema: z.ZodObject<{
2771
2771
  } | undefined;
2772
2772
  replyContext?: {
2773
2773
  dispatchId: string;
2774
- scope: string;
2775
2774
  replyTo: string;
2776
- sessionId?: string | null | undefined;
2775
+ scope: string;
2777
2776
  taskId?: string | null | undefined;
2778
- organizationId?: string | null | undefined;
2779
- memberAgentId?: string | null | undefined;
2780
2777
  positionId?: string | null | undefined;
2781
2778
  responsibilityId?: string | null | undefined;
2779
+ organizationId?: string | null | undefined;
2780
+ memberAgentId?: string | null | undefined;
2781
+ sessionId?: string | null | undefined;
2782
2782
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2783
2783
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2784
2784
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -2826,17 +2826,17 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
2826
2826
  organizationId: string;
2827
2827
  memberAgentId: string;
2828
2828
  supervisorAgentId: string;
2829
- organizationRootPath?: string | null | undefined;
2830
2829
  positionId?: string | null | undefined;
2831
2830
  responsibilityId?: string | null | undefined;
2831
+ organizationRootPath?: string | null | undefined;
2832
2832
  }, {
2833
2833
  taskId: string;
2834
2834
  organizationId: string;
2835
2835
  memberAgentId: string;
2836
2836
  supervisorAgentId: string;
2837
- organizationRootPath?: string | null | undefined;
2838
2837
  positionId?: string | null | undefined;
2839
2838
  responsibilityId?: string | null | undefined;
2839
+ organizationRootPath?: string | null | undefined;
2840
2840
  }>>;
2841
2841
  control: z.ZodOptional<z.ZodObject<{
2842
2842
  action: z.ZodEnum<["terminate", "reopen"]>;
@@ -2875,14 +2875,14 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
2875
2875
  goldenRouteId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2876
2876
  }, "strip", z.ZodTypeAny, {
2877
2877
  dispatchId: string;
2878
- scope: string;
2879
2878
  replyTo: string;
2880
- sessionId?: string | null | undefined;
2879
+ scope: string;
2881
2880
  taskId?: string | null | undefined;
2882
- organizationId?: string | null | undefined;
2883
- memberAgentId?: string | null | undefined;
2884
2881
  positionId?: string | null | undefined;
2885
2882
  responsibilityId?: string | null | undefined;
2883
+ organizationId?: string | null | undefined;
2884
+ memberAgentId?: string | null | undefined;
2885
+ sessionId?: string | null | undefined;
2886
2886
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2887
2887
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2888
2888
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -2891,14 +2891,14 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
2891
2891
  goldenRouteId?: string | null | undefined;
2892
2892
  }, {
2893
2893
  dispatchId: string;
2894
- scope: string;
2895
2894
  replyTo: string;
2896
- sessionId?: string | null | undefined;
2895
+ scope: string;
2897
2896
  taskId?: string | null | undefined;
2898
- organizationId?: string | null | undefined;
2899
- memberAgentId?: string | null | undefined;
2900
2897
  positionId?: string | null | undefined;
2901
2898
  responsibilityId?: string | null | undefined;
2899
+ organizationId?: string | null | undefined;
2900
+ memberAgentId?: string | null | undefined;
2901
+ sessionId?: string | null | undefined;
2902
2902
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2903
2903
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2904
2904
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -2912,9 +2912,9 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
2912
2912
  organizationId: string;
2913
2913
  memberAgentId: string;
2914
2914
  supervisorAgentId: string;
2915
- organizationRootPath?: string | null | undefined;
2916
2915
  positionId?: string | null | undefined;
2917
2916
  responsibilityId?: string | null | undefined;
2917
+ organizationRootPath?: string | null | undefined;
2918
2918
  } | undefined;
2919
2919
  control?: {
2920
2920
  action: "terminate" | "reopen";
@@ -2925,14 +2925,14 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
2925
2925
  } | undefined;
2926
2926
  replyContext?: {
2927
2927
  dispatchId: string;
2928
- scope: string;
2929
2928
  replyTo: string;
2930
- sessionId?: string | null | undefined;
2929
+ scope: string;
2931
2930
  taskId?: string | null | undefined;
2932
- organizationId?: string | null | undefined;
2933
- memberAgentId?: string | null | undefined;
2934
2931
  positionId?: string | null | undefined;
2935
2932
  responsibilityId?: string | null | undefined;
2933
+ organizationId?: string | null | undefined;
2934
+ memberAgentId?: string | null | undefined;
2935
+ sessionId?: string | null | undefined;
2936
2936
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2937
2937
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2938
2938
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -2946,9 +2946,9 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
2946
2946
  organizationId: string;
2947
2947
  memberAgentId: string;
2948
2948
  supervisorAgentId: string;
2949
- organizationRootPath?: string | null | undefined;
2950
2949
  positionId?: string | null | undefined;
2951
2950
  responsibilityId?: string | null | undefined;
2951
+ organizationRootPath?: string | null | undefined;
2952
2952
  } | undefined;
2953
2953
  control?: {
2954
2954
  action: "terminate" | "reopen";
@@ -2959,14 +2959,14 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
2959
2959
  } | undefined;
2960
2960
  replyContext?: {
2961
2961
  dispatchId: string;
2962
- scope: string;
2963
2962
  replyTo: string;
2964
- sessionId?: string | null | undefined;
2963
+ scope: string;
2965
2964
  taskId?: string | null | undefined;
2966
- organizationId?: string | null | undefined;
2967
- memberAgentId?: string | null | undefined;
2968
2965
  positionId?: string | null | undefined;
2969
2966
  responsibilityId?: string | null | undefined;
2967
+ organizationId?: string | null | undefined;
2968
+ memberAgentId?: string | null | undefined;
2969
+ sessionId?: string | null | undefined;
2970
2970
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2971
2971
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2972
2972
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -2990,9 +2990,9 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
2990
2990
  organizationId: string;
2991
2991
  memberAgentId: string;
2992
2992
  supervisorAgentId: string;
2993
- organizationRootPath?: string | null | undefined;
2994
2993
  positionId?: string | null | undefined;
2995
2994
  responsibilityId?: string | null | undefined;
2995
+ organizationRootPath?: string | null | undefined;
2996
2996
  } | undefined;
2997
2997
  control?: {
2998
2998
  action: "terminate" | "reopen";
@@ -3003,14 +3003,14 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3003
3003
  } | undefined;
3004
3004
  replyContext?: {
3005
3005
  dispatchId: string;
3006
- scope: string;
3007
3006
  replyTo: string;
3008
- sessionId?: string | null | undefined;
3007
+ scope: string;
3009
3008
  taskId?: string | null | undefined;
3010
- organizationId?: string | null | undefined;
3011
- memberAgentId?: string | null | undefined;
3012
3009
  positionId?: string | null | undefined;
3013
3010
  responsibilityId?: string | null | undefined;
3011
+ organizationId?: string | null | undefined;
3012
+ memberAgentId?: string | null | undefined;
3013
+ sessionId?: string | null | undefined;
3014
3014
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
3015
3015
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
3016
3016
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -3034,9 +3034,9 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3034
3034
  organizationId: string;
3035
3035
  memberAgentId: string;
3036
3036
  supervisorAgentId: string;
3037
- organizationRootPath?: string | null | undefined;
3038
3037
  positionId?: string | null | undefined;
3039
3038
  responsibilityId?: string | null | undefined;
3039
+ organizationRootPath?: string | null | undefined;
3040
3040
  } | undefined;
3041
3041
  control?: {
3042
3042
  action: "terminate" | "reopen";
@@ -3047,14 +3047,14 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3047
3047
  } | undefined;
3048
3048
  replyContext?: {
3049
3049
  dispatchId: string;
3050
- scope: string;
3051
3050
  replyTo: string;
3052
- sessionId?: string | null | undefined;
3051
+ scope: string;
3053
3052
  taskId?: string | null | undefined;
3054
- organizationId?: string | null | undefined;
3055
- memberAgentId?: string | null | undefined;
3056
3053
  positionId?: string | null | undefined;
3057
3054
  responsibilityId?: string | null | undefined;
3055
+ organizationId?: string | null | undefined;
3056
+ memberAgentId?: string | null | undefined;
3057
+ sessionId?: string | null | undefined;
3058
3058
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
3059
3059
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
3060
3060
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -3086,9 +3086,9 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3086
3086
  organizationId: string;
3087
3087
  memberAgentId: string;
3088
3088
  supervisorAgentId: string;
3089
- organizationRootPath?: string | null | undefined;
3090
3089
  positionId?: string | null | undefined;
3091
3090
  responsibilityId?: string | null | undefined;
3091
+ organizationRootPath?: string | null | undefined;
3092
3092
  } | undefined;
3093
3093
  control?: {
3094
3094
  action: "terminate" | "reopen";
@@ -3099,14 +3099,14 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3099
3099
  } | undefined;
3100
3100
  replyContext?: {
3101
3101
  dispatchId: string;
3102
- scope: string;
3103
3102
  replyTo: string;
3104
- sessionId?: string | null | undefined;
3103
+ scope: string;
3105
3104
  taskId?: string | null | undefined;
3106
- organizationId?: string | null | undefined;
3107
- memberAgentId?: string | null | undefined;
3108
3105
  positionId?: string | null | undefined;
3109
3106
  responsibilityId?: string | null | undefined;
3107
+ organizationId?: string | null | undefined;
3108
+ memberAgentId?: string | null | undefined;
3109
+ sessionId?: string | null | undefined;
3110
3110
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
3111
3111
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
3112
3112
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -3138,9 +3138,9 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3138
3138
  organizationId: string;
3139
3139
  memberAgentId: string;
3140
3140
  supervisorAgentId: string;
3141
- organizationRootPath?: string | null | undefined;
3142
3141
  positionId?: string | null | undefined;
3143
3142
  responsibilityId?: string | null | undefined;
3143
+ organizationRootPath?: string | null | undefined;
3144
3144
  } | undefined;
3145
3145
  control?: {
3146
3146
  action: "terminate" | "reopen";
@@ -3151,14 +3151,14 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3151
3151
  } | undefined;
3152
3152
  replyContext?: {
3153
3153
  dispatchId: string;
3154
- scope: string;
3155
3154
  replyTo: string;
3156
- sessionId?: string | null | undefined;
3155
+ scope: string;
3157
3156
  taskId?: string | null | undefined;
3158
- organizationId?: string | null | undefined;
3159
- memberAgentId?: string | null | undefined;
3160
3157
  positionId?: string | null | undefined;
3161
3158
  responsibilityId?: string | null | undefined;
3159
+ organizationId?: string | null | undefined;
3160
+ memberAgentId?: string | null | undefined;
3161
+ sessionId?: string | null | undefined;
3162
3162
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
3163
3163
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
3164
3164
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -3194,11 +3194,11 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3194
3194
  data: z.ZodUnknown;
3195
3195
  }, "strip", z.ZodTypeAny, {
3196
3196
  type: "acp";
3197
- provider: "codex" | "gemini" | "claude" | "opencode";
3197
+ provider: "claude" | "codex" | "gemini" | "opencode";
3198
3198
  data?: unknown;
3199
3199
  }, {
3200
3200
  type: "acp";
3201
- provider: "codex" | "gemini" | "claude" | "opencode";
3201
+ provider: "claude" | "codex" | "gemini" | "opencode";
3202
3202
  data?: unknown;
3203
3203
  }>, z.ZodObject<{
3204
3204
  type: z.ZodLiteral<"event">;
@@ -3236,17 +3236,17 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3236
3236
  organizationId: string;
3237
3237
  memberAgentId: string;
3238
3238
  supervisorAgentId: string;
3239
- organizationRootPath?: string | null | undefined;
3240
3239
  positionId?: string | null | undefined;
3241
3240
  responsibilityId?: string | null | undefined;
3241
+ organizationRootPath?: string | null | undefined;
3242
3242
  }, {
3243
3243
  taskId: string;
3244
3244
  organizationId: string;
3245
3245
  memberAgentId: string;
3246
3246
  supervisorAgentId: string;
3247
- organizationRootPath?: string | null | undefined;
3248
3247
  positionId?: string | null | undefined;
3249
3248
  responsibilityId?: string | null | undefined;
3249
+ organizationRootPath?: string | null | undefined;
3250
3250
  }>>;
3251
3251
  control: z.ZodOptional<z.ZodObject<{
3252
3252
  action: z.ZodEnum<["terminate", "reopen"]>;
@@ -3285,14 +3285,14 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3285
3285
  goldenRouteId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3286
3286
  }, "strip", z.ZodTypeAny, {
3287
3287
  dispatchId: string;
3288
- scope: string;
3289
3288
  replyTo: string;
3290
- sessionId?: string | null | undefined;
3289
+ scope: string;
3291
3290
  taskId?: string | null | undefined;
3292
- organizationId?: string | null | undefined;
3293
- memberAgentId?: string | null | undefined;
3294
3291
  positionId?: string | null | undefined;
3295
3292
  responsibilityId?: string | null | undefined;
3293
+ organizationId?: string | null | undefined;
3294
+ memberAgentId?: string | null | undefined;
3295
+ sessionId?: string | null | undefined;
3296
3296
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
3297
3297
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
3298
3298
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -3301,14 +3301,14 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3301
3301
  goldenRouteId?: string | null | undefined;
3302
3302
  }, {
3303
3303
  dispatchId: string;
3304
- scope: string;
3305
3304
  replyTo: string;
3306
- sessionId?: string | null | undefined;
3305
+ scope: string;
3307
3306
  taskId?: string | null | undefined;
3308
- organizationId?: string | null | undefined;
3309
- memberAgentId?: string | null | undefined;
3310
3307
  positionId?: string | null | undefined;
3311
3308
  responsibilityId?: string | null | undefined;
3309
+ organizationId?: string | null | undefined;
3310
+ memberAgentId?: string | null | undefined;
3311
+ sessionId?: string | null | undefined;
3312
3312
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
3313
3313
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
3314
3314
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -3322,9 +3322,9 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3322
3322
  organizationId: string;
3323
3323
  memberAgentId: string;
3324
3324
  supervisorAgentId: string;
3325
- organizationRootPath?: string | null | undefined;
3326
3325
  positionId?: string | null | undefined;
3327
3326
  responsibilityId?: string | null | undefined;
3327
+ organizationRootPath?: string | null | undefined;
3328
3328
  } | undefined;
3329
3329
  control?: {
3330
3330
  action: "terminate" | "reopen";
@@ -3335,14 +3335,14 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3335
3335
  } | undefined;
3336
3336
  replyContext?: {
3337
3337
  dispatchId: string;
3338
- scope: string;
3339
3338
  replyTo: string;
3340
- sessionId?: string | null | undefined;
3339
+ scope: string;
3341
3340
  taskId?: string | null | undefined;
3342
- organizationId?: string | null | undefined;
3343
- memberAgentId?: string | null | undefined;
3344
3341
  positionId?: string | null | undefined;
3345
3342
  responsibilityId?: string | null | undefined;
3343
+ organizationId?: string | null | undefined;
3344
+ memberAgentId?: string | null | undefined;
3345
+ sessionId?: string | null | undefined;
3346
3346
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
3347
3347
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
3348
3348
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -3356,9 +3356,9 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3356
3356
  organizationId: string;
3357
3357
  memberAgentId: string;
3358
3358
  supervisorAgentId: string;
3359
- organizationRootPath?: string | null | undefined;
3360
3359
  positionId?: string | null | undefined;
3361
3360
  responsibilityId?: string | null | undefined;
3361
+ organizationRootPath?: string | null | undefined;
3362
3362
  } | undefined;
3363
3363
  control?: {
3364
3364
  action: "terminate" | "reopen";
@@ -3369,14 +3369,14 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3369
3369
  } | undefined;
3370
3370
  replyContext?: {
3371
3371
  dispatchId: string;
3372
- scope: string;
3373
3372
  replyTo: string;
3374
- sessionId?: string | null | undefined;
3373
+ scope: string;
3375
3374
  taskId?: string | null | undefined;
3376
- organizationId?: string | null | undefined;
3377
- memberAgentId?: string | null | undefined;
3378
3375
  positionId?: string | null | undefined;
3379
3376
  responsibilityId?: string | null | undefined;
3377
+ organizationId?: string | null | undefined;
3378
+ memberAgentId?: string | null | undefined;
3379
+ sessionId?: string | null | undefined;
3380
3380
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
3381
3381
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
3382
3382
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -3400,9 +3400,9 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3400
3400
  organizationId: string;
3401
3401
  memberAgentId: string;
3402
3402
  supervisorAgentId: string;
3403
- organizationRootPath?: string | null | undefined;
3404
3403
  positionId?: string | null | undefined;
3405
3404
  responsibilityId?: string | null | undefined;
3405
+ organizationRootPath?: string | null | undefined;
3406
3406
  } | undefined;
3407
3407
  control?: {
3408
3408
  action: "terminate" | "reopen";
@@ -3413,14 +3413,14 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3413
3413
  } | undefined;
3414
3414
  replyContext?: {
3415
3415
  dispatchId: string;
3416
- scope: string;
3417
3416
  replyTo: string;
3418
- sessionId?: string | null | undefined;
3417
+ scope: string;
3419
3418
  taskId?: string | null | undefined;
3420
- organizationId?: string | null | undefined;
3421
- memberAgentId?: string | null | undefined;
3422
3419
  positionId?: string | null | undefined;
3423
3420
  responsibilityId?: string | null | undefined;
3421
+ organizationId?: string | null | undefined;
3422
+ memberAgentId?: string | null | undefined;
3423
+ sessionId?: string | null | undefined;
3424
3424
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
3425
3425
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
3426
3426
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -3444,9 +3444,9 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3444
3444
  organizationId: string;
3445
3445
  memberAgentId: string;
3446
3446
  supervisorAgentId: string;
3447
- organizationRootPath?: string | null | undefined;
3448
3447
  positionId?: string | null | undefined;
3449
3448
  responsibilityId?: string | null | undefined;
3449
+ organizationRootPath?: string | null | undefined;
3450
3450
  } | undefined;
3451
3451
  control?: {
3452
3452
  action: "terminate" | "reopen";
@@ -3457,14 +3457,14 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3457
3457
  } | undefined;
3458
3458
  replyContext?: {
3459
3459
  dispatchId: string;
3460
- scope: string;
3461
3460
  replyTo: string;
3462
- sessionId?: string | null | undefined;
3461
+ scope: string;
3463
3462
  taskId?: string | null | undefined;
3464
- organizationId?: string | null | undefined;
3465
- memberAgentId?: string | null | undefined;
3466
3463
  positionId?: string | null | undefined;
3467
3464
  responsibilityId?: string | null | undefined;
3465
+ organizationId?: string | null | undefined;
3466
+ memberAgentId?: string | null | undefined;
3467
+ sessionId?: string | null | undefined;
3468
3468
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
3469
3469
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
3470
3470
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -3483,7 +3483,7 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3483
3483
  data?: unknown;
3484
3484
  } | {
3485
3485
  type: "acp";
3486
- provider: "codex" | "gemini" | "claude" | "opencode";
3486
+ provider: "claude" | "codex" | "gemini" | "opencode";
3487
3487
  data?: unknown;
3488
3488
  } | {
3489
3489
  type: "event";
@@ -3506,9 +3506,9 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3506
3506
  organizationId: string;
3507
3507
  memberAgentId: string;
3508
3508
  supervisorAgentId: string;
3509
- organizationRootPath?: string | null | undefined;
3510
3509
  positionId?: string | null | undefined;
3511
3510
  responsibilityId?: string | null | undefined;
3511
+ organizationRootPath?: string | null | undefined;
3512
3512
  } | undefined;
3513
3513
  control?: {
3514
3514
  action: "terminate" | "reopen";
@@ -3519,14 +3519,14 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3519
3519
  } | undefined;
3520
3520
  replyContext?: {
3521
3521
  dispatchId: string;
3522
- scope: string;
3523
3522
  replyTo: string;
3524
- sessionId?: string | null | undefined;
3523
+ scope: string;
3525
3524
  taskId?: string | null | undefined;
3526
- organizationId?: string | null | undefined;
3527
- memberAgentId?: string | null | undefined;
3528
3525
  positionId?: string | null | undefined;
3529
3526
  responsibilityId?: string | null | undefined;
3527
+ organizationId?: string | null | undefined;
3528
+ memberAgentId?: string | null | undefined;
3529
+ sessionId?: string | null | undefined;
3530
3530
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
3531
3531
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
3532
3532
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -3545,7 +3545,7 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3545
3545
  data?: unknown;
3546
3546
  } | {
3547
3547
  type: "acp";
3548
- provider: "codex" | "gemini" | "claude" | "opencode";
3548
+ provider: "claude" | "codex" | "gemini" | "opencode";
3549
3549
  data?: unknown;
3550
3550
  } | {
3551
3551
  type: "event";
@@ -3568,9 +3568,9 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3568
3568
  organizationId: string;
3569
3569
  memberAgentId: string;
3570
3570
  supervisorAgentId: string;
3571
- organizationRootPath?: string | null | undefined;
3572
3571
  positionId?: string | null | undefined;
3573
3572
  responsibilityId?: string | null | undefined;
3573
+ organizationRootPath?: string | null | undefined;
3574
3574
  } | undefined;
3575
3575
  control?: {
3576
3576
  action: "terminate" | "reopen";
@@ -3581,14 +3581,14 @@ declare const MessageContentSchema: z.ZodUnion<[z.ZodObject<{
3581
3581
  } | undefined;
3582
3582
  replyContext?: {
3583
3583
  dispatchId: string;
3584
- scope: string;
3585
3584
  replyTo: string;
3586
- sessionId?: string | null | undefined;
3585
+ scope: string;
3587
3586
  taskId?: string | null | undefined;
3588
- organizationId?: string | null | undefined;
3589
- memberAgentId?: string | null | undefined;
3590
3587
  positionId?: string | null | undefined;
3591
3588
  responsibilityId?: string | null | undefined;
3589
+ organizationId?: string | null | undefined;
3590
+ memberAgentId?: string | null | undefined;
3591
+ sessionId?: string | null | undefined;
3592
3592
  routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
3593
3593
  ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
3594
3594
  replyMode?: "reply-first" | "analysis-first" | null | undefined;
@@ -4436,5 +4436,4 @@ declare class Configuration {
4436
4436
  }
4437
4437
  declare const configuration: Configuration;
4438
4438
 
4439
- export { ApiClient, ApiSessionClient, RawJSONLinesSchema, configuration, logger };
4440
- export type { RawJSONLines };
4439
+ export { ApiClient, ApiSessionClient, type RawJSONLines, RawJSONLinesSchema, configuration, logger };