happy-imou-cloud 2.1.32 → 2.1.34

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 (25) hide show
  1. package/dist/{BaseReasoningProcessor-CfibmGoR.mjs → BaseReasoningProcessor-CxLnyixP.mjs} +2 -2
  2. package/dist/{BaseReasoningProcessor-CQQrYyo3.cjs → BaseReasoningProcessor-kN8gq-t4.cjs} +2 -2
  3. package/dist/{ProviderSelectionHandler-C1q60HP6.mjs → ProviderSelectionHandler-DuJGNviz.mjs} +2 -2
  4. package/dist/{ProviderSelectionHandler-D9Bd_S25.cjs → ProviderSelectionHandler-oEEvSQ0O.cjs} +2 -2
  5. package/dist/{api-DIFbsA6t.mjs → api-B3Zl8oHG.mjs} +105 -5
  6. package/dist/{api-DeDVledu.cjs → api-C94O6IB2.cjs} +106 -4
  7. package/dist/{command-Cl7kVs7K.cjs → command-96cX402J.cjs} +2 -2
  8. package/dist/{command-ZJ5yPOv4.mjs → command-CMZlS6zf.mjs} +2 -2
  9. package/dist/{index-CT1dgGsX.cjs → index-D4TuE2VS.cjs} +140 -37
  10. package/dist/{index-CFH8qcTw.mjs → index-sqm5plVs.mjs} +137 -34
  11. package/dist/index.cjs +2 -2
  12. package/dist/index.mjs +2 -2
  13. package/dist/lib.cjs +1 -1
  14. package/dist/lib.d.cts +412 -0
  15. package/dist/lib.d.mts +412 -0
  16. package/dist/lib.mjs +1 -1
  17. package/dist/{registerKillSessionHandler-9O3r5bEa.cjs → registerKillSessionHandler-7bLVg5RG.cjs} +233 -11
  18. package/dist/{registerKillSessionHandler-DxpGgu6u.mjs → registerKillSessionHandler-Dmm6gsoz.mjs} +233 -11
  19. package/dist/{runClaude-BvRjHUgF.mjs → runClaude-BrvxWJ9-.mjs} +4 -4
  20. package/dist/{runClaude-BmW-_Yrl.cjs → runClaude-Dn1JJ8m9.cjs} +4 -4
  21. package/dist/{runCodex-dmjiaB1v.cjs → runCodex-Dc2Rqb8W.cjs} +5 -5
  22. package/dist/{runCodex-B-B9MfOf.mjs → runCodex-DfYO-7YG.mjs} +5 -5
  23. package/dist/{runGemini-B9W7nfow.mjs → runGemini-C1_AOBlU.mjs} +4 -4
  24. package/dist/{runGemini-CyERhKhw.cjs → runGemini-DQyuAba-.cjs} +4 -4
  25. package/package.json +1 -1
package/dist/lib.d.mts CHANGED
@@ -307,22 +307,52 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
307
307
  repeatFingerprint: z.ZodNullable<z.ZodString>;
308
308
  replyContext: z.ZodOptional<z.ZodNullable<z.ZodObject<{
309
309
  dispatchId: z.ZodString;
310
+ taskId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
311
+ organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
310
312
  scope: z.ZodString;
311
313
  replyTo: z.ZodString;
314
+ memberAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
315
+ sessionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
312
316
  positionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
313
317
  responsibilityId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
318
+ routeType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["direct_reply", "version_planning_reply", "analysis_task", "implementation_task", "ack_plus_reply"]>>>;
319
+ ackType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["none", "read_ack", "dispatch_ack", "route_ack", "progress_ack"]>>>;
320
+ replyMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["reply-first", "analysis-first"]>>>;
321
+ planIntent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
322
+ routerReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
323
+ goldenRouteId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
314
324
  }, "strip", z.ZodTypeAny, {
315
325
  dispatchId: string;
316
326
  scope: string;
317
327
  replyTo: string;
328
+ sessionId?: string | null | undefined;
329
+ taskId?: string | null | undefined;
330
+ organizationId?: string | null | undefined;
331
+ memberAgentId?: string | null | undefined;
318
332
  positionId?: string | null | undefined;
319
333
  responsibilityId?: string | null | undefined;
334
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
335
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
336
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
337
+ planIntent?: string | null | undefined;
338
+ routerReason?: string | null | undefined;
339
+ goldenRouteId?: string | null | undefined;
320
340
  }, {
321
341
  dispatchId: string;
322
342
  scope: string;
323
343
  replyTo: string;
344
+ sessionId?: string | null | undefined;
345
+ taskId?: string | null | undefined;
346
+ organizationId?: string | null | undefined;
347
+ memberAgentId?: string | null | undefined;
324
348
  positionId?: string | null | undefined;
325
349
  responsibilityId?: string | null | undefined;
350
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
351
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
352
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
353
+ planIntent?: string | null | undefined;
354
+ routerReason?: string | null | undefined;
355
+ goldenRouteId?: string | null | undefined;
326
356
  }>>>;
327
357
  specialistHome: z.ZodOptional<z.ZodNullable<z.ZodObject<{
328
358
  homeSlug: z.ZodString;
@@ -366,8 +396,18 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
366
396
  dispatchId: string;
367
397
  scope: string;
368
398
  replyTo: string;
399
+ sessionId?: string | null | undefined;
400
+ taskId?: string | null | undefined;
401
+ organizationId?: string | null | undefined;
402
+ memberAgentId?: string | null | undefined;
369
403
  positionId?: string | null | undefined;
370
404
  responsibilityId?: string | null | undefined;
405
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
406
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
407
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
408
+ planIntent?: string | null | undefined;
409
+ routerReason?: string | null | undefined;
410
+ goldenRouteId?: string | null | undefined;
371
411
  } | null | undefined;
372
412
  specialistHome?: {
373
413
  homeSlug: string;
@@ -397,8 +437,18 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
397
437
  dispatchId: string;
398
438
  scope: string;
399
439
  replyTo: string;
440
+ sessionId?: string | null | undefined;
441
+ taskId?: string | null | undefined;
442
+ organizationId?: string | null | undefined;
443
+ memberAgentId?: string | null | undefined;
400
444
  positionId?: string | null | undefined;
401
445
  responsibilityId?: string | null | undefined;
446
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
447
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
448
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
449
+ planIntent?: string | null | undefined;
450
+ routerReason?: string | null | undefined;
451
+ goldenRouteId?: string | null | undefined;
402
452
  } | null | undefined;
403
453
  specialistHome?: {
404
454
  homeSlug: string;
@@ -467,30 +517,73 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
467
517
  }>>>;
468
518
  replyContext: z.ZodOptional<z.ZodNullable<z.ZodObject<{
469
519
  dispatchId: z.ZodString;
520
+ taskId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
521
+ organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
470
522
  scope: z.ZodString;
471
523
  replyTo: z.ZodString;
524
+ memberAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
525
+ sessionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
472
526
  positionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
473
527
  responsibilityId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
528
+ routeType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["direct_reply", "version_planning_reply", "analysis_task", "implementation_task", "ack_plus_reply"]>>>;
529
+ ackType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["none", "read_ack", "dispatch_ack", "route_ack", "progress_ack"]>>>;
530
+ replyMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["reply-first", "analysis-first"]>>>;
531
+ planIntent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
532
+ routerReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
533
+ goldenRouteId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
474
534
  }, "strip", z.ZodTypeAny, {
475
535
  dispatchId: string;
476
536
  scope: string;
477
537
  replyTo: string;
538
+ sessionId?: string | null | undefined;
539
+ taskId?: string | null | undefined;
540
+ organizationId?: string | null | undefined;
541
+ memberAgentId?: string | null | undefined;
478
542
  positionId?: string | null | undefined;
479
543
  responsibilityId?: string | null | undefined;
544
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
545
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
546
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
547
+ planIntent?: string | null | undefined;
548
+ routerReason?: string | null | undefined;
549
+ goldenRouteId?: string | null | undefined;
480
550
  }, {
481
551
  dispatchId: string;
482
552
  scope: string;
483
553
  replyTo: string;
554
+ sessionId?: string | null | undefined;
555
+ taskId?: string | null | undefined;
556
+ organizationId?: string | null | undefined;
557
+ memberAgentId?: string | null | undefined;
484
558
  positionId?: string | null | undefined;
485
559
  responsibilityId?: string | null | undefined;
560
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
561
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
562
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
563
+ planIntent?: string | null | undefined;
564
+ routerReason?: string | null | undefined;
565
+ goldenRouteId?: string | null | undefined;
486
566
  }>>>;
487
567
  dispatchAcks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
488
568
  dispatchId: z.ZodString;
569
+ ackVersion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
489
570
  scope: z.ZodString;
490
571
  taskAck: z.ZodString;
491
572
  readAck: z.ZodLiteral<"yes">;
492
573
  status: z.ZodEnum<["accepted", "standby", "blocked"]>;
493
574
  note: z.ZodNullable<z.ZodString>;
575
+ taskId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
576
+ organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
577
+ memberAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
578
+ sessionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
579
+ positionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
580
+ responsibilityId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
581
+ routeType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["direct_reply", "version_planning_reply", "analysis_task", "implementation_task", "ack_plus_reply"]>>>;
582
+ ackType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["none", "read_ack", "dispatch_ack", "route_ack", "progress_ack"]>>>;
583
+ replyMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["reply-first", "analysis-first"]>>>;
584
+ planIntent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
585
+ routerReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
586
+ goldenRouteId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
494
587
  acknowledgedAt: z.ZodNumber;
495
588
  }, "strip", z.ZodTypeAny, {
496
589
  status: "accepted" | "standby" | "blocked";
@@ -500,6 +593,19 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
500
593
  readAck: "yes";
501
594
  note: string | null;
502
595
  acknowledgedAt: number;
596
+ sessionId?: string | null | undefined;
597
+ taskId?: string | null | undefined;
598
+ organizationId?: string | null | undefined;
599
+ memberAgentId?: string | null | undefined;
600
+ positionId?: string | null | undefined;
601
+ responsibilityId?: string | null | undefined;
602
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
603
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
604
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
605
+ planIntent?: string | null | undefined;
606
+ routerReason?: string | null | undefined;
607
+ goldenRouteId?: string | null | undefined;
608
+ ackVersion?: string | null | undefined;
503
609
  }, {
504
610
  status: "accepted" | "standby" | "blocked";
505
611
  dispatchId: string;
@@ -508,6 +614,19 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
508
614
  readAck: "yes";
509
615
  note: string | null;
510
616
  acknowledgedAt: number;
617
+ sessionId?: string | null | undefined;
618
+ taskId?: string | null | undefined;
619
+ organizationId?: string | null | undefined;
620
+ memberAgentId?: string | null | undefined;
621
+ positionId?: string | null | undefined;
622
+ responsibilityId?: string | null | undefined;
623
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
624
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
625
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
626
+ planIntent?: string | null | undefined;
627
+ routerReason?: string | null | undefined;
628
+ goldenRouteId?: string | null | undefined;
629
+ ackVersion?: string | null | undefined;
511
630
  }>>>;
512
631
  specialistHome: z.ZodOptional<z.ZodNullable<z.ZodObject<{
513
632
  homeSlug: z.ZodString;
@@ -575,22 +694,52 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
575
694
  repeatFingerprint: z.ZodNullable<z.ZodString>;
576
695
  replyContext: z.ZodOptional<z.ZodNullable<z.ZodObject<{
577
696
  dispatchId: z.ZodString;
697
+ taskId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
698
+ organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
578
699
  scope: z.ZodString;
579
700
  replyTo: z.ZodString;
701
+ memberAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
702
+ sessionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
580
703
  positionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
581
704
  responsibilityId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
705
+ routeType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["direct_reply", "version_planning_reply", "analysis_task", "implementation_task", "ack_plus_reply"]>>>;
706
+ ackType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["none", "read_ack", "dispatch_ack", "route_ack", "progress_ack"]>>>;
707
+ replyMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["reply-first", "analysis-first"]>>>;
708
+ planIntent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
709
+ routerReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
710
+ goldenRouteId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
582
711
  }, "strip", z.ZodTypeAny, {
583
712
  dispatchId: string;
584
713
  scope: string;
585
714
  replyTo: string;
715
+ sessionId?: string | null | undefined;
716
+ taskId?: string | null | undefined;
717
+ organizationId?: string | null | undefined;
718
+ memberAgentId?: string | null | undefined;
586
719
  positionId?: string | null | undefined;
587
720
  responsibilityId?: string | null | undefined;
721
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
722
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
723
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
724
+ planIntent?: string | null | undefined;
725
+ routerReason?: string | null | undefined;
726
+ goldenRouteId?: string | null | undefined;
588
727
  }, {
589
728
  dispatchId: string;
590
729
  scope: string;
591
730
  replyTo: string;
731
+ sessionId?: string | null | undefined;
732
+ taskId?: string | null | undefined;
733
+ organizationId?: string | null | undefined;
734
+ memberAgentId?: string | null | undefined;
592
735
  positionId?: string | null | undefined;
593
736
  responsibilityId?: string | null | undefined;
737
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
738
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
739
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
740
+ planIntent?: string | null | undefined;
741
+ routerReason?: string | null | undefined;
742
+ goldenRouteId?: string | null | undefined;
594
743
  }>>>;
595
744
  specialistHome: z.ZodOptional<z.ZodNullable<z.ZodObject<{
596
745
  homeSlug: z.ZodString;
@@ -634,8 +783,18 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
634
783
  dispatchId: string;
635
784
  scope: string;
636
785
  replyTo: string;
786
+ sessionId?: string | null | undefined;
787
+ taskId?: string | null | undefined;
788
+ organizationId?: string | null | undefined;
789
+ memberAgentId?: string | null | undefined;
637
790
  positionId?: string | null | undefined;
638
791
  responsibilityId?: string | null | undefined;
792
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
793
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
794
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
795
+ planIntent?: string | null | undefined;
796
+ routerReason?: string | null | undefined;
797
+ goldenRouteId?: string | null | undefined;
639
798
  } | null | undefined;
640
799
  specialistHome?: {
641
800
  homeSlug: string;
@@ -665,8 +824,18 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
665
824
  dispatchId: string;
666
825
  scope: string;
667
826
  replyTo: string;
827
+ sessionId?: string | null | undefined;
828
+ taskId?: string | null | undefined;
829
+ organizationId?: string | null | undefined;
830
+ memberAgentId?: string | null | undefined;
668
831
  positionId?: string | null | undefined;
669
832
  responsibilityId?: string | null | undefined;
833
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
834
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
835
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
836
+ planIntent?: string | null | undefined;
837
+ routerReason?: string | null | undefined;
838
+ goldenRouteId?: string | null | undefined;
670
839
  } | null | undefined;
671
840
  specialistHome?: {
672
841
  homeSlug: string;
@@ -691,8 +860,18 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
691
860
  dispatchId: string;
692
861
  scope: string;
693
862
  replyTo: string;
863
+ sessionId?: string | null | undefined;
864
+ taskId?: string | null | undefined;
865
+ organizationId?: string | null | undefined;
866
+ memberAgentId?: string | null | undefined;
694
867
  positionId?: string | null | undefined;
695
868
  responsibilityId?: string | null | undefined;
869
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
870
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
871
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
872
+ planIntent?: string | null | undefined;
873
+ routerReason?: string | null | undefined;
874
+ goldenRouteId?: string | null | undefined;
696
875
  } | null | undefined;
697
876
  specialistHome?: {
698
877
  homeSlug: string;
@@ -721,6 +900,19 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
721
900
  readAck: "yes";
722
901
  note: string | null;
723
902
  acknowledgedAt: number;
903
+ sessionId?: string | null | undefined;
904
+ taskId?: string | null | undefined;
905
+ organizationId?: string | null | undefined;
906
+ memberAgentId?: string | null | undefined;
907
+ positionId?: string | null | undefined;
908
+ responsibilityId?: string | null | undefined;
909
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
910
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
911
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
912
+ planIntent?: string | null | undefined;
913
+ routerReason?: string | null | undefined;
914
+ goldenRouteId?: string | null | undefined;
915
+ ackVersion?: string | null | undefined;
724
916
  }> | undefined;
725
917
  repeat?: {
726
918
  threshold: number;
@@ -749,8 +941,18 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
749
941
  dispatchId: string;
750
942
  scope: string;
751
943
  replyTo: string;
944
+ sessionId?: string | null | undefined;
945
+ taskId?: string | null | undefined;
946
+ organizationId?: string | null | undefined;
947
+ memberAgentId?: string | null | undefined;
752
948
  positionId?: string | null | undefined;
753
949
  responsibilityId?: string | null | undefined;
950
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
951
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
952
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
953
+ planIntent?: string | null | undefined;
954
+ routerReason?: string | null | undefined;
955
+ goldenRouteId?: string | null | undefined;
754
956
  } | null | undefined;
755
957
  specialistHome?: {
756
958
  homeSlug: string;
@@ -775,8 +977,18 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
775
977
  dispatchId: string;
776
978
  scope: string;
777
979
  replyTo: string;
980
+ sessionId?: string | null | undefined;
981
+ taskId?: string | null | undefined;
982
+ organizationId?: string | null | undefined;
983
+ memberAgentId?: string | null | undefined;
778
984
  positionId?: string | null | undefined;
779
985
  responsibilityId?: string | null | undefined;
986
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
987
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
988
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
989
+ planIntent?: string | null | undefined;
990
+ routerReason?: string | null | undefined;
991
+ goldenRouteId?: string | null | undefined;
780
992
  } | null | undefined;
781
993
  specialistHome?: {
782
994
  homeSlug: string;
@@ -805,6 +1017,19 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
805
1017
  readAck: "yes";
806
1018
  note: string | null;
807
1019
  acknowledgedAt: number;
1020
+ sessionId?: string | null | undefined;
1021
+ taskId?: string | null | undefined;
1022
+ organizationId?: string | null | undefined;
1023
+ memberAgentId?: string | null | undefined;
1024
+ positionId?: string | null | undefined;
1025
+ responsibilityId?: string | null | undefined;
1026
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
1027
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
1028
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
1029
+ planIntent?: string | null | undefined;
1030
+ routerReason?: string | null | undefined;
1031
+ goldenRouteId?: string | null | undefined;
1032
+ ackVersion?: string | null | undefined;
808
1033
  }> | undefined;
809
1034
  repeat?: {
810
1035
  threshold: number;
@@ -833,8 +1058,18 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
833
1058
  dispatchId: string;
834
1059
  scope: string;
835
1060
  replyTo: string;
1061
+ sessionId?: string | null | undefined;
1062
+ taskId?: string | null | undefined;
1063
+ organizationId?: string | null | undefined;
1064
+ memberAgentId?: string | null | undefined;
836
1065
  positionId?: string | null | undefined;
837
1066
  responsibilityId?: string | null | undefined;
1067
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
1068
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
1069
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
1070
+ planIntent?: string | null | undefined;
1071
+ routerReason?: string | null | undefined;
1072
+ goldenRouteId?: string | null | undefined;
838
1073
  } | null | undefined;
839
1074
  specialistHome?: {
840
1075
  homeSlug: string;
@@ -2046,22 +2281,52 @@ declare const UserMessageSchema: z.ZodObject<{
2046
2281
  }>>;
2047
2282
  replyContext: z.ZodOptional<z.ZodObject<{
2048
2283
  dispatchId: z.ZodString;
2284
+ taskId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2285
+ organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2049
2286
  scope: z.ZodString;
2050
2287
  replyTo: z.ZodString;
2288
+ memberAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2289
+ sessionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2051
2290
  positionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2052
2291
  responsibilityId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2292
+ routeType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["direct_reply", "version_planning_reply", "analysis_task", "implementation_task", "ack_plus_reply"]>>>;
2293
+ ackType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["none", "read_ack", "dispatch_ack", "route_ack", "progress_ack"]>>>;
2294
+ replyMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["reply-first", "analysis-first"]>>>;
2295
+ planIntent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2296
+ routerReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2297
+ goldenRouteId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2053
2298
  }, "strip", z.ZodTypeAny, {
2054
2299
  dispatchId: string;
2055
2300
  scope: string;
2056
2301
  replyTo: string;
2302
+ sessionId?: string | null | undefined;
2303
+ taskId?: string | null | undefined;
2304
+ organizationId?: string | null | undefined;
2305
+ memberAgentId?: string | null | undefined;
2057
2306
  positionId?: string | null | undefined;
2058
2307
  responsibilityId?: string | null | undefined;
2308
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2309
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2310
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
2311
+ planIntent?: string | null | undefined;
2312
+ routerReason?: string | null | undefined;
2313
+ goldenRouteId?: string | null | undefined;
2059
2314
  }, {
2060
2315
  dispatchId: string;
2061
2316
  scope: string;
2062
2317
  replyTo: string;
2318
+ sessionId?: string | null | undefined;
2319
+ taskId?: string | null | undefined;
2320
+ organizationId?: string | null | undefined;
2321
+ memberAgentId?: string | null | undefined;
2063
2322
  positionId?: string | null | undefined;
2064
2323
  responsibilityId?: string | null | undefined;
2324
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2325
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2326
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
2327
+ planIntent?: string | null | undefined;
2328
+ routerReason?: string | null | undefined;
2329
+ goldenRouteId?: string | null | undefined;
2065
2330
  }>>;
2066
2331
  }, "strip", z.ZodTypeAny, {
2067
2332
  taskContext?: {
@@ -2084,8 +2349,18 @@ declare const UserMessageSchema: z.ZodObject<{
2084
2349
  dispatchId: string;
2085
2350
  scope: string;
2086
2351
  replyTo: string;
2352
+ sessionId?: string | null | undefined;
2353
+ taskId?: string | null | undefined;
2354
+ organizationId?: string | null | undefined;
2355
+ memberAgentId?: string | null | undefined;
2087
2356
  positionId?: string | null | undefined;
2088
2357
  responsibilityId?: string | null | undefined;
2358
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2359
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2360
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
2361
+ planIntent?: string | null | undefined;
2362
+ routerReason?: string | null | undefined;
2363
+ goldenRouteId?: string | null | undefined;
2089
2364
  } | undefined;
2090
2365
  }, {
2091
2366
  taskContext?: {
@@ -2108,8 +2383,18 @@ declare const UserMessageSchema: z.ZodObject<{
2108
2383
  dispatchId: string;
2109
2384
  scope: string;
2110
2385
  replyTo: string;
2386
+ sessionId?: string | null | undefined;
2387
+ taskId?: string | null | undefined;
2388
+ organizationId?: string | null | undefined;
2389
+ memberAgentId?: string | null | undefined;
2111
2390
  positionId?: string | null | undefined;
2112
2391
  responsibilityId?: string | null | undefined;
2392
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2393
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2394
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
2395
+ planIntent?: string | null | undefined;
2396
+ routerReason?: string | null | undefined;
2397
+ goldenRouteId?: string | null | undefined;
2113
2398
  } | undefined;
2114
2399
  }>>;
2115
2400
  }, "strip", z.ZodTypeAny, {
@@ -2142,8 +2427,18 @@ declare const UserMessageSchema: z.ZodObject<{
2142
2427
  dispatchId: string;
2143
2428
  scope: string;
2144
2429
  replyTo: string;
2430
+ sessionId?: string | null | undefined;
2431
+ taskId?: string | null | undefined;
2432
+ organizationId?: string | null | undefined;
2433
+ memberAgentId?: string | null | undefined;
2145
2434
  positionId?: string | null | undefined;
2146
2435
  responsibilityId?: string | null | undefined;
2436
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2437
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2438
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
2439
+ planIntent?: string | null | undefined;
2440
+ routerReason?: string | null | undefined;
2441
+ goldenRouteId?: string | null | undefined;
2147
2442
  } | undefined;
2148
2443
  } | undefined;
2149
2444
  }, {
@@ -2176,8 +2471,18 @@ declare const UserMessageSchema: z.ZodObject<{
2176
2471
  dispatchId: string;
2177
2472
  scope: string;
2178
2473
  replyTo: string;
2474
+ sessionId?: string | null | undefined;
2475
+ taskId?: string | null | undefined;
2476
+ organizationId?: string | null | undefined;
2477
+ memberAgentId?: string | null | undefined;
2179
2478
  positionId?: string | null | undefined;
2180
2479
  responsibilityId?: string | null | undefined;
2480
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2481
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2482
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
2483
+ planIntent?: string | null | undefined;
2484
+ routerReason?: string | null | undefined;
2485
+ goldenRouteId?: string | null | undefined;
2181
2486
  } | undefined;
2182
2487
  } | undefined;
2183
2488
  }>>;
@@ -2218,8 +2523,18 @@ declare const UserMessageSchema: z.ZodObject<{
2218
2523
  dispatchId: string;
2219
2524
  scope: string;
2220
2525
  replyTo: string;
2526
+ sessionId?: string | null | undefined;
2527
+ taskId?: string | null | undefined;
2528
+ organizationId?: string | null | undefined;
2529
+ memberAgentId?: string | null | undefined;
2221
2530
  positionId?: string | null | undefined;
2222
2531
  responsibilityId?: string | null | undefined;
2532
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2533
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2534
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
2535
+ planIntent?: string | null | undefined;
2536
+ routerReason?: string | null | undefined;
2537
+ goldenRouteId?: string | null | undefined;
2223
2538
  } | undefined;
2224
2539
  } | undefined;
2225
2540
  } | undefined;
@@ -2260,8 +2575,18 @@ declare const UserMessageSchema: z.ZodObject<{
2260
2575
  dispatchId: string;
2261
2576
  scope: string;
2262
2577
  replyTo: string;
2578
+ sessionId?: string | null | undefined;
2579
+ taskId?: string | null | undefined;
2580
+ organizationId?: string | null | undefined;
2581
+ memberAgentId?: string | null | undefined;
2263
2582
  positionId?: string | null | undefined;
2264
2583
  responsibilityId?: string | null | undefined;
2584
+ routeType?: "direct_reply" | "version_planning_reply" | "analysis_task" | "implementation_task" | "ack_plus_reply" | null | undefined;
2585
+ ackType?: "none" | "read_ack" | "dispatch_ack" | "route_ack" | "progress_ack" | null | undefined;
2586
+ replyMode?: "reply-first" | "analysis-first" | null | undefined;
2587
+ planIntent?: string | null | undefined;
2588
+ routerReason?: string | null | undefined;
2589
+ goldenRouteId?: string | null | undefined;
2265
2590
  } | undefined;
2266
2591
  } | undefined;
2267
2592
  } | undefined;
@@ -2801,6 +3126,41 @@ type HappyOrgAgentSummary = {
2801
3126
  createdAt?: number;
2802
3127
  updatedAt?: number;
2803
3128
  };
3129
+ type HappyOrgResponsibilitySummary = {
3130
+ responsibilityId: string;
3131
+ title: string;
3132
+ status: 'vacancy' | 'assigned' | 'in_progress';
3133
+ memberAgentId: string | null;
3134
+ memberSessionId: string | null;
3135
+ };
3136
+ type HappyOrgResponsibilityBoardView = {
3137
+ mode: 'organization';
3138
+ view: 'responsibility_board';
3139
+ organizationId: string;
3140
+ itemCount: number;
3141
+ items: HappyOrgResponsibilitySummary[];
3142
+ };
3143
+ type HappyOrgOrganizationView = {
3144
+ roots: string[];
3145
+ agents: HappyOrgAgentSummary[];
3146
+ home: {
3147
+ organizationId: string;
3148
+ responsibilityBoard: HappyOrgResponsibilityBoardView | null;
3149
+ };
3150
+ };
3151
+ type HappyOrgDispatchValidationResult = 'shadow_pass' | 'shadow_would_reject' | 'hard_pass' | 'hard_reject';
3152
+ type HappyOrgDispatchValidationView = {
3153
+ requested_member_agent_id: string | null;
3154
+ position_truth_agent_id: string | null;
3155
+ responsibility_truth_member_agent_id: string | null;
3156
+ live_binding_session_id: string | null;
3157
+ runtime_session_id: string | null;
3158
+ validation_result: HappyOrgDispatchValidationResult;
3159
+ rejection_reason: string | null;
3160
+ };
3161
+ type HappyOrgDispatchRuntimeState = 'active' | 'stale' | 'offline';
3162
+ type HappyOrgDispatchMachineLocality = 'local' | 'remote';
3163
+ type HappyOrgDispatchMachineReachability = 'ready' | 'degraded' | 'offline';
2804
3164
  type HappyOrgDispatchDeliveryStatus = 'accepted' | 'deduplicated';
2805
3165
  type HappyOrgDispatchBusinessAckStatus = 'accepted' | 'standby' | 'blocked';
2806
3166
  type HappyOrgDispatchCurrentStatus = 'pending_ack' | HappyOrgDispatchBusinessAckStatus;
@@ -2813,14 +3173,34 @@ type HappyOrgDispatchReceiptView = {
2813
3173
  member: HappyOrgConversationTarget | null;
2814
3174
  notice: {
2815
3175
  dispatch_id: string;
3176
+ organization_id: string;
2816
3177
  task_id: string;
2817
3178
  scope: string;
3179
+ member_agent_id: string;
3180
+ session_id: string;
3181
+ runtime_session_id: string | null;
3182
+ runtime_session_state: HappyOrgDispatchRuntimeState;
3183
+ runtime_last_seen_at: number | null;
3184
+ runtime_capabilities: string[];
3185
+ delivery_session_id: string;
3186
+ delivery_target_frozen_at: number;
3187
+ delivery_target_source: 'task-contract-freeze';
3188
+ reply_session_id: string;
3189
+ reply_target_frozen_at: number;
3190
+ reply_target_source: 'task-contract-freeze';
3191
+ machine_id: string | null;
3192
+ machine_locality: HappyOrgDispatchMachineLocality;
3193
+ machine_reachability: HappyOrgDispatchMachineReachability;
3194
+ machine_last_seen_at: number | null;
2818
3195
  allowed_paths: string[];
2819
3196
  forbidden_paths: string[];
2820
3197
  cross_scope_policy: 'ask-first';
2821
3198
  reply_to: string;
2822
3199
  position_id: string | null;
2823
3200
  responsibility_id: string | null;
3201
+ route_type: 'ack_plus_reply';
3202
+ ack_type: 'dispatch_ack';
3203
+ reply_mode: 'reply-first';
2824
3204
  note: string | null;
2825
3205
  };
2826
3206
  delivery: {
@@ -2834,8 +3214,29 @@ type HappyOrgDispatchReceiptView = {
2834
3214
  };
2835
3215
  };
2836
3216
  business_ack: {
3217
+ ack_version: string;
2837
3218
  dispatch_id: string;
3219
+ organization_id: string;
3220
+ task_id: string;
2838
3221
  scope: string;
3222
+ member_agent_id: string;
3223
+ session_id: string;
3224
+ runtime_session_id: string | null;
3225
+ delivery_session_id: string;
3226
+ delivery_target_frozen_at: number;
3227
+ delivery_target_source: 'task-contract-freeze';
3228
+ reply_session_id: string;
3229
+ reply_target_frozen_at: number;
3230
+ reply_target_source: 'task-contract-freeze';
3231
+ machine_id: string | null;
3232
+ machine_locality: HappyOrgDispatchMachineLocality;
3233
+ machine_reachability: HappyOrgDispatchMachineReachability;
3234
+ machine_last_seen_at: number | null;
3235
+ position_id: string | null;
3236
+ responsibility_id: string | null;
3237
+ route_type: 'ack_plus_reply';
3238
+ ack_type: 'dispatch_ack';
3239
+ reply_mode: 'reply-first';
2839
3240
  task_ack: string;
2840
3241
  read_ack: 'yes';
2841
3242
  status: HappyOrgDispatchBusinessAckStatus;
@@ -2853,6 +3254,7 @@ type HappyOrgDispatchReceiptView = {
2853
3254
  };
2854
3255
  } | null;
2855
3256
  } | null;
3257
+ validation: HappyOrgDispatchValidationView;
2856
3258
  createdAt: number;
2857
3259
  updatedAt: number;
2858
3260
  };
@@ -2876,6 +3278,9 @@ declare class ApiClient {
2876
3278
  private requestProtocolV3Resource;
2877
3279
  private request;
2878
3280
  getOrganizationFrontDoor(): Promise<HappyOrgFrontDoorView>;
3281
+ getOrganizationView(opts?: {
3282
+ organizationId?: string | null;
3283
+ }): Promise<HappyOrgOrganizationView>;
2879
3284
  listOrganizationAgents(opts?: {
2880
3285
  organizationId?: string | null;
2881
3286
  }): Promise<HappyOrgAgentSummary[]>;
@@ -2889,6 +3294,13 @@ declare class ApiClient {
2889
3294
  positionId?: string | null;
2890
3295
  responsibilityId?: string | null;
2891
3296
  note?: string | null;
3297
+ requestedMemberAgentId?: string | null;
3298
+ positionTruthAgentId?: string | null;
3299
+ responsibilityTruthMemberAgentId?: string | null;
3300
+ liveBindingSessionId?: string | null;
3301
+ runtimeSessionId?: string | null;
3302
+ validationResult?: HappyOrgDispatchValidationResult;
3303
+ rejectionReason?: string | null;
2892
3304
  }): Promise<HappyOrgDispatchReceiptView>;
2893
3305
  getOrganizationDispatchReceipt(opts: {
2894
3306
  organizationId: string;