happy-imou-cloud 2.1.21 → 2.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseReasoningProcessor-DxFwO2z9.cjs → BaseReasoningProcessor-BVdXoFXc.cjs} +2 -2
- package/dist/{BaseReasoningProcessor-DdPnQSmQ.mjs → BaseReasoningProcessor-BYNLDM-T.mjs} +2 -2
- package/dist/{ProviderSelectionHandler-B5Aq5gA_.cjs → ProviderSelectionHandler-DDzNcWPJ.cjs} +2 -2
- package/dist/{ProviderSelectionHandler-DQITIqZK.mjs → ProviderSelectionHandler-DgINCAMh.mjs} +2 -2
- package/dist/{api-8xtJZeXZ.cjs → api-BXGRJ5Kn.cjs} +75 -15
- package/dist/{api-DB30ctmX.mjs → api-bhF1J82q.mjs} +73 -16
- package/dist/{command-79M8Bz4I.cjs → command-Byj1OLb9.cjs} +2 -2
- package/dist/{command-C6injNJE.mjs → command-CyUpFVkQ.mjs} +2 -2
- package/dist/{index-D4A092LJ.cjs → index-BNTRi6Uv.cjs} +374 -57
- package/dist/{index-krVv4CWK.mjs → index-CEhnCQim.mjs} +372 -55
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.cts +132 -72
- package/dist/lib.d.mts +132 -72
- package/dist/lib.mjs +1 -1
- package/dist/{registerKillSessionHandler-beu2g-Qo.mjs → registerKillSessionHandler-BtPo6LkG.mjs} +2 -2
- package/dist/{registerKillSessionHandler-Cl_er9rg.cjs → registerKillSessionHandler-CuP57vY0.cjs} +2 -2
- package/dist/{runClaude-nzLh-orP.mjs → runClaude-CMKm1bBe.mjs} +4 -4
- package/dist/{runClaude-DmXinUiz.cjs → runClaude-CqJgxqjW.cjs} +4 -4
- package/dist/{runCodex-C-Pjpbxn.mjs → runCodex-BkfujuLR.mjs} +9 -7
- package/dist/{runCodex-CoqsQ-cb.cjs → runCodex-DIaZ1wGI.cjs} +9 -7
- package/dist/{runGemini-CIVm6NWC.mjs → runGemini-DcN0Nb3f.mjs} +4 -4
- package/dist/{runGemini-BC_5rNMt.cjs → runGemini-U4GRLlSn.cjs} +4 -4
- package/package.json +1 -1
- package/scripts/tooling-utils.mjs +167 -167
package/dist/lib.d.cts
CHANGED
|
@@ -323,17 +323,17 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
|
|
|
323
323
|
flavor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
324
324
|
}, "strip", z.ZodTypeAny, {
|
|
325
325
|
homeSlug: string;
|
|
326
|
-
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
327
326
|
path?: string | null | undefined;
|
|
328
327
|
machineId?: string | null | undefined;
|
|
329
328
|
happySessionId?: string | null | undefined;
|
|
329
|
+
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
330
330
|
flavor?: string | null | undefined;
|
|
331
331
|
}, {
|
|
332
332
|
homeSlug: string;
|
|
333
|
-
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
334
333
|
path?: string | null | undefined;
|
|
335
334
|
machineId?: string | null | undefined;
|
|
336
335
|
happySessionId?: string | null | undefined;
|
|
336
|
+
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
337
337
|
flavor?: string | null | undefined;
|
|
338
338
|
}>>>;
|
|
339
339
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -355,10 +355,10 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
|
|
|
355
355
|
} | null | undefined;
|
|
356
356
|
specialistHome?: {
|
|
357
357
|
homeSlug: string;
|
|
358
|
-
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
359
358
|
path?: string | null | undefined;
|
|
360
359
|
machineId?: string | null | undefined;
|
|
361
360
|
happySessionId?: string | null | undefined;
|
|
361
|
+
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
362
362
|
flavor?: string | null | undefined;
|
|
363
363
|
} | null | undefined;
|
|
364
364
|
}, {
|
|
@@ -380,10 +380,10 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
|
|
|
380
380
|
} | null | undefined;
|
|
381
381
|
specialistHome?: {
|
|
382
382
|
homeSlug: string;
|
|
383
|
-
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
384
383
|
path?: string | null | undefined;
|
|
385
384
|
machineId?: string | null | undefined;
|
|
386
385
|
happySessionId?: string | null | undefined;
|
|
386
|
+
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
387
387
|
flavor?: string | null | undefined;
|
|
388
388
|
} | null | undefined;
|
|
389
389
|
}>;
|
|
@@ -481,17 +481,17 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
|
|
|
481
481
|
flavor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
482
482
|
}, "strip", z.ZodTypeAny, {
|
|
483
483
|
homeSlug: string;
|
|
484
|
-
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
485
484
|
path?: string | null | undefined;
|
|
486
485
|
machineId?: string | null | undefined;
|
|
487
486
|
happySessionId?: string | null | undefined;
|
|
487
|
+
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
488
488
|
flavor?: string | null | undefined;
|
|
489
489
|
}, {
|
|
490
490
|
homeSlug: string;
|
|
491
|
-
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
492
491
|
path?: string | null | undefined;
|
|
493
492
|
machineId?: string | null | undefined;
|
|
494
493
|
happySessionId?: string | null | undefined;
|
|
494
|
+
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
495
495
|
flavor?: string | null | undefined;
|
|
496
496
|
}>>>;
|
|
497
497
|
repeat: z.ZodOptional<z.ZodObject<{
|
|
@@ -554,17 +554,17 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
|
|
|
554
554
|
flavor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
555
555
|
}, "strip", z.ZodTypeAny, {
|
|
556
556
|
homeSlug: string;
|
|
557
|
-
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
558
557
|
path?: string | null | undefined;
|
|
559
558
|
machineId?: string | null | undefined;
|
|
560
559
|
happySessionId?: string | null | undefined;
|
|
560
|
+
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
561
561
|
flavor?: string | null | undefined;
|
|
562
562
|
}, {
|
|
563
563
|
homeSlug: string;
|
|
564
|
-
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
565
564
|
path?: string | null | undefined;
|
|
566
565
|
machineId?: string | null | undefined;
|
|
567
566
|
happySessionId?: string | null | undefined;
|
|
567
|
+
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
568
568
|
flavor?: string | null | undefined;
|
|
569
569
|
}>>>;
|
|
570
570
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -586,10 +586,10 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
|
|
|
586
586
|
} | null | undefined;
|
|
587
587
|
specialistHome?: {
|
|
588
588
|
homeSlug: string;
|
|
589
|
-
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
590
589
|
path?: string | null | undefined;
|
|
591
590
|
machineId?: string | null | undefined;
|
|
592
591
|
happySessionId?: string | null | undefined;
|
|
592
|
+
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
593
593
|
flavor?: string | null | undefined;
|
|
594
594
|
} | null | undefined;
|
|
595
595
|
}, {
|
|
@@ -611,20 +611,14 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
|
|
|
611
611
|
} | null | undefined;
|
|
612
612
|
specialistHome?: {
|
|
613
613
|
homeSlug: string;
|
|
614
|
-
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
615
614
|
path?: string | null | undefined;
|
|
616
615
|
machineId?: string | null | undefined;
|
|
617
616
|
happySessionId?: string | null | undefined;
|
|
617
|
+
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
618
618
|
flavor?: string | null | undefined;
|
|
619
619
|
} | null | undefined;
|
|
620
620
|
}>>;
|
|
621
621
|
}, "strip", z.ZodTypeAny, {
|
|
622
|
-
runtime?: {
|
|
623
|
-
status: "active" | "waiting_review" | "waiting_decision" | "waiting_close" | "terminated";
|
|
624
|
-
reason?: string | null | undefined;
|
|
625
|
-
terminatedAt?: number | undefined;
|
|
626
|
-
reopenedAt?: number | undefined;
|
|
627
|
-
} | undefined;
|
|
628
622
|
repeat?: {
|
|
629
623
|
threshold: number;
|
|
630
624
|
fingerprints: Record<string, {
|
|
@@ -645,12 +639,18 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
|
|
|
645
639
|
} | null | undefined;
|
|
646
640
|
specialistHome?: {
|
|
647
641
|
homeSlug: string;
|
|
648
|
-
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
649
642
|
path?: string | null | undefined;
|
|
650
643
|
machineId?: string | null | undefined;
|
|
651
644
|
happySessionId?: string | null | undefined;
|
|
645
|
+
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
652
646
|
flavor?: string | null | undefined;
|
|
653
647
|
} | null | undefined;
|
|
648
|
+
runtime?: {
|
|
649
|
+
status: "active" | "waiting_review" | "waiting_decision" | "waiting_close" | "terminated";
|
|
650
|
+
reason?: string | null | undefined;
|
|
651
|
+
terminatedAt?: number | undefined;
|
|
652
|
+
reopenedAt?: number | undefined;
|
|
653
|
+
} | undefined;
|
|
654
654
|
activeOwner?: {
|
|
655
655
|
ownerAgentId: string;
|
|
656
656
|
ownerRunId: string;
|
|
@@ -684,20 +684,14 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
|
|
|
684
684
|
} | null | undefined;
|
|
685
685
|
specialistHome?: {
|
|
686
686
|
homeSlug: string;
|
|
687
|
-
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
688
687
|
path?: string | null | undefined;
|
|
689
688
|
machineId?: string | null | undefined;
|
|
690
689
|
happySessionId?: string | null | undefined;
|
|
690
|
+
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
691
691
|
flavor?: string | null | undefined;
|
|
692
692
|
} | null | undefined;
|
|
693
693
|
} | undefined;
|
|
694
694
|
}, {
|
|
695
|
-
runtime?: {
|
|
696
|
-
status: "active" | "waiting_review" | "waiting_decision" | "waiting_close" | "terminated";
|
|
697
|
-
reason?: string | null | undefined;
|
|
698
|
-
terminatedAt?: number | undefined;
|
|
699
|
-
reopenedAt?: number | undefined;
|
|
700
|
-
} | undefined;
|
|
701
695
|
repeat?: {
|
|
702
696
|
threshold: number;
|
|
703
697
|
fingerprints: Record<string, {
|
|
@@ -718,12 +712,18 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
|
|
|
718
712
|
} | null | undefined;
|
|
719
713
|
specialistHome?: {
|
|
720
714
|
homeSlug: string;
|
|
721
|
-
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
722
715
|
path?: string | null | undefined;
|
|
723
716
|
machineId?: string | null | undefined;
|
|
724
717
|
happySessionId?: string | null | undefined;
|
|
718
|
+
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
725
719
|
flavor?: string | null | undefined;
|
|
726
720
|
} | null | undefined;
|
|
721
|
+
runtime?: {
|
|
722
|
+
status: "active" | "waiting_review" | "waiting_decision" | "waiting_close" | "terminated";
|
|
723
|
+
reason?: string | null | undefined;
|
|
724
|
+
terminatedAt?: number | undefined;
|
|
725
|
+
reopenedAt?: number | undefined;
|
|
726
|
+
} | undefined;
|
|
727
727
|
activeOwner?: {
|
|
728
728
|
ownerAgentId: string;
|
|
729
729
|
ownerRunId: string;
|
|
@@ -757,10 +757,10 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
|
|
|
757
757
|
} | null | undefined;
|
|
758
758
|
specialistHome?: {
|
|
759
759
|
homeSlug: string;
|
|
760
|
-
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
761
760
|
path?: string | null | undefined;
|
|
762
761
|
machineId?: string | null | undefined;
|
|
763
762
|
happySessionId?: string | null | undefined;
|
|
763
|
+
startedBy?: "daemon" | "terminal" | null | undefined;
|
|
764
764
|
flavor?: string | null | undefined;
|
|
765
765
|
} | null | undefined;
|
|
766
766
|
} | undefined;
|
|
@@ -795,14 +795,14 @@ declare const SessionRuntimeIndexSchema: z.ZodObject<{
|
|
|
795
795
|
lifecycleState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
796
796
|
flavor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
797
797
|
}, "strip", z.ZodTypeAny, {
|
|
798
|
-
startedBy?: string | null | undefined;
|
|
799
798
|
machineId?: string | null | undefined;
|
|
799
|
+
startedBy?: string | null | undefined;
|
|
800
800
|
flavor?: string | null | undefined;
|
|
801
801
|
hostPid?: number | null | undefined;
|
|
802
802
|
lifecycleState?: string | null | undefined;
|
|
803
803
|
}, {
|
|
804
|
-
startedBy?: string | null | undefined;
|
|
805
804
|
machineId?: string | null | undefined;
|
|
805
|
+
startedBy?: string | null | undefined;
|
|
806
806
|
flavor?: string | null | undefined;
|
|
807
807
|
hostPid?: number | null | undefined;
|
|
808
808
|
lifecycleState?: string | null | undefined;
|
|
@@ -865,14 +865,14 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
865
865
|
lifecycleState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
866
866
|
flavor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
867
867
|
}, "strip", z.ZodTypeAny, {
|
|
868
|
-
startedBy?: string | null | undefined;
|
|
869
868
|
machineId?: string | null | undefined;
|
|
869
|
+
startedBy?: string | null | undefined;
|
|
870
870
|
flavor?: string | null | undefined;
|
|
871
871
|
hostPid?: number | null | undefined;
|
|
872
872
|
lifecycleState?: string | null | undefined;
|
|
873
873
|
}, {
|
|
874
|
-
startedBy?: string | null | undefined;
|
|
875
874
|
machineId?: string | null | undefined;
|
|
875
|
+
startedBy?: string | null | undefined;
|
|
876
876
|
flavor?: string | null | undefined;
|
|
877
877
|
hostPid?: number | null | undefined;
|
|
878
878
|
lifecycleState?: string | null | undefined;
|
|
@@ -892,8 +892,8 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
892
892
|
dataEncryptionKey?: string | null | undefined;
|
|
893
893
|
activeAt?: number | undefined;
|
|
894
894
|
sessionIndex?: {
|
|
895
|
-
startedBy?: string | null | undefined;
|
|
896
895
|
machineId?: string | null | undefined;
|
|
896
|
+
startedBy?: string | null | undefined;
|
|
897
897
|
flavor?: string | null | undefined;
|
|
898
898
|
hostPid?: number | null | undefined;
|
|
899
899
|
lifecycleState?: string | null | undefined;
|
|
@@ -913,8 +913,8 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
913
913
|
dataEncryptionKey?: string | null | undefined;
|
|
914
914
|
activeAt?: number | undefined;
|
|
915
915
|
sessionIndex?: {
|
|
916
|
-
startedBy?: string | null | undefined;
|
|
917
916
|
machineId?: string | null | undefined;
|
|
917
|
+
startedBy?: string | null | undefined;
|
|
918
918
|
flavor?: string | null | undefined;
|
|
919
919
|
hostPid?: number | null | undefined;
|
|
920
920
|
lifecycleState?: string | null | undefined;
|
|
@@ -923,24 +923,36 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
923
923
|
message: z.ZodObject<{
|
|
924
924
|
id: z.ZodString;
|
|
925
925
|
seq: z.ZodNumber;
|
|
926
|
-
content: z.ZodObject<{
|
|
927
|
-
c: z.ZodString;
|
|
926
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
928
927
|
t: z.ZodLiteral<"encrypted">;
|
|
928
|
+
c: z.ZodString;
|
|
929
929
|
}, "strip", z.ZodTypeAny, {
|
|
930
|
-
c: string;
|
|
931
930
|
t: "encrypted";
|
|
932
|
-
}, {
|
|
933
931
|
c: string;
|
|
932
|
+
}, {
|
|
934
933
|
t: "encrypted";
|
|
935
|
-
|
|
934
|
+
c: string;
|
|
935
|
+
}>, z.ZodObject<{
|
|
936
|
+
t: z.ZodLiteral<"plaintext">;
|
|
937
|
+
p: z.ZodString;
|
|
938
|
+
}, "strip", z.ZodTypeAny, {
|
|
939
|
+
t: "plaintext";
|
|
940
|
+
p: string;
|
|
941
|
+
}, {
|
|
942
|
+
t: "plaintext";
|
|
943
|
+
p: string;
|
|
944
|
+
}>]>;
|
|
936
945
|
localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
937
946
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
938
947
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
939
948
|
}, "strip", z.ZodTypeAny, {
|
|
940
949
|
id: string;
|
|
941
950
|
content: {
|
|
942
|
-
c: string;
|
|
943
951
|
t: "encrypted";
|
|
952
|
+
c: string;
|
|
953
|
+
} | {
|
|
954
|
+
t: "plaintext";
|
|
955
|
+
p: string;
|
|
944
956
|
};
|
|
945
957
|
seq: number;
|
|
946
958
|
createdAt?: number | undefined;
|
|
@@ -949,8 +961,11 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
949
961
|
}, {
|
|
950
962
|
id: string;
|
|
951
963
|
content: {
|
|
952
|
-
c: string;
|
|
953
964
|
t: "encrypted";
|
|
965
|
+
c: string;
|
|
966
|
+
} | {
|
|
967
|
+
t: "plaintext";
|
|
968
|
+
p: string;
|
|
954
969
|
};
|
|
955
970
|
seq: number;
|
|
956
971
|
createdAt?: number | undefined;
|
|
@@ -963,8 +978,11 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
963
978
|
message: {
|
|
964
979
|
id: string;
|
|
965
980
|
content: {
|
|
966
|
-
c: string;
|
|
967
981
|
t: "encrypted";
|
|
982
|
+
c: string;
|
|
983
|
+
} | {
|
|
984
|
+
t: "plaintext";
|
|
985
|
+
p: string;
|
|
968
986
|
};
|
|
969
987
|
seq: number;
|
|
970
988
|
createdAt?: number | undefined;
|
|
@@ -977,8 +995,11 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
977
995
|
message: {
|
|
978
996
|
id: string;
|
|
979
997
|
content: {
|
|
980
|
-
c: string;
|
|
981
998
|
t: "encrypted";
|
|
999
|
+
c: string;
|
|
1000
|
+
} | {
|
|
1001
|
+
t: "plaintext";
|
|
1002
|
+
p: string;
|
|
982
1003
|
};
|
|
983
1004
|
seq: number;
|
|
984
1005
|
createdAt?: number | undefined;
|
|
@@ -1010,14 +1031,14 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
1010
1031
|
lifecycleState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1011
1032
|
flavor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1012
1033
|
}, "strip", z.ZodTypeAny, {
|
|
1013
|
-
startedBy?: string | null | undefined;
|
|
1014
1034
|
machineId?: string | null | undefined;
|
|
1035
|
+
startedBy?: string | null | undefined;
|
|
1015
1036
|
flavor?: string | null | undefined;
|
|
1016
1037
|
hostPid?: number | null | undefined;
|
|
1017
1038
|
lifecycleState?: string | null | undefined;
|
|
1018
1039
|
}, {
|
|
1019
|
-
startedBy?: string | null | undefined;
|
|
1020
1040
|
machineId?: string | null | undefined;
|
|
1041
|
+
startedBy?: string | null | undefined;
|
|
1021
1042
|
flavor?: string | null | undefined;
|
|
1022
1043
|
hostPid?: number | null | undefined;
|
|
1023
1044
|
lifecycleState?: string | null | undefined;
|
|
@@ -1045,8 +1066,8 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
1045
1066
|
version: number;
|
|
1046
1067
|
} | null | undefined;
|
|
1047
1068
|
sessionIndex?: {
|
|
1048
|
-
startedBy?: string | null | undefined;
|
|
1049
1069
|
machineId?: string | null | undefined;
|
|
1070
|
+
startedBy?: string | null | undefined;
|
|
1050
1071
|
flavor?: string | null | undefined;
|
|
1051
1072
|
hostPid?: number | null | undefined;
|
|
1052
1073
|
lifecycleState?: string | null | undefined;
|
|
@@ -1066,8 +1087,8 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
1066
1087
|
version: number;
|
|
1067
1088
|
} | null | undefined;
|
|
1068
1089
|
sessionIndex?: {
|
|
1069
|
-
startedBy?: string | null | undefined;
|
|
1070
1090
|
machineId?: string | null | undefined;
|
|
1091
|
+
startedBy?: string | null | undefined;
|
|
1071
1092
|
flavor?: string | null | undefined;
|
|
1072
1093
|
hostPid?: number | null | undefined;
|
|
1073
1094
|
lifecycleState?: string | null | undefined;
|
|
@@ -1152,8 +1173,8 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
1152
1173
|
dataEncryptionKey?: string | null | undefined;
|
|
1153
1174
|
activeAt?: number | undefined;
|
|
1154
1175
|
sessionIndex?: {
|
|
1155
|
-
startedBy?: string | null | undefined;
|
|
1156
1176
|
machineId?: string | null | undefined;
|
|
1177
|
+
startedBy?: string | null | undefined;
|
|
1157
1178
|
flavor?: string | null | undefined;
|
|
1158
1179
|
hostPid?: number | null | undefined;
|
|
1159
1180
|
lifecycleState?: string | null | undefined;
|
|
@@ -1162,8 +1183,11 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
1162
1183
|
message: {
|
|
1163
1184
|
id: string;
|
|
1164
1185
|
content: {
|
|
1165
|
-
c: string;
|
|
1166
1186
|
t: "encrypted";
|
|
1187
|
+
c: string;
|
|
1188
|
+
} | {
|
|
1189
|
+
t: "plaintext";
|
|
1190
|
+
p: string;
|
|
1167
1191
|
};
|
|
1168
1192
|
seq: number;
|
|
1169
1193
|
createdAt?: number | undefined;
|
|
@@ -1185,8 +1209,8 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
1185
1209
|
version: number;
|
|
1186
1210
|
} | null | undefined;
|
|
1187
1211
|
sessionIndex?: {
|
|
1188
|
-
startedBy?: string | null | undefined;
|
|
1189
1212
|
machineId?: string | null | undefined;
|
|
1213
|
+
startedBy?: string | null | undefined;
|
|
1190
1214
|
flavor?: string | null | undefined;
|
|
1191
1215
|
hostPid?: number | null | undefined;
|
|
1192
1216
|
lifecycleState?: string | null | undefined;
|
|
@@ -1228,8 +1252,8 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
1228
1252
|
dataEncryptionKey?: string | null | undefined;
|
|
1229
1253
|
activeAt?: number | undefined;
|
|
1230
1254
|
sessionIndex?: {
|
|
1231
|
-
startedBy?: string | null | undefined;
|
|
1232
1255
|
machineId?: string | null | undefined;
|
|
1256
|
+
startedBy?: string | null | undefined;
|
|
1233
1257
|
flavor?: string | null | undefined;
|
|
1234
1258
|
hostPid?: number | null | undefined;
|
|
1235
1259
|
lifecycleState?: string | null | undefined;
|
|
@@ -1238,8 +1262,11 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
1238
1262
|
message: {
|
|
1239
1263
|
id: string;
|
|
1240
1264
|
content: {
|
|
1241
|
-
c: string;
|
|
1242
1265
|
t: "encrypted";
|
|
1266
|
+
c: string;
|
|
1267
|
+
} | {
|
|
1268
|
+
t: "plaintext";
|
|
1269
|
+
p: string;
|
|
1243
1270
|
};
|
|
1244
1271
|
seq: number;
|
|
1245
1272
|
createdAt?: number | undefined;
|
|
@@ -1261,8 +1288,8 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
1261
1288
|
version: number;
|
|
1262
1289
|
} | null | undefined;
|
|
1263
1290
|
sessionIndex?: {
|
|
1264
|
-
startedBy?: string | null | undefined;
|
|
1265
1291
|
machineId?: string | null | undefined;
|
|
1292
|
+
startedBy?: string | null | undefined;
|
|
1266
1293
|
flavor?: string | null | undefined;
|
|
1267
1294
|
hostPid?: number | null | undefined;
|
|
1268
1295
|
lifecycleState?: string | null | undefined;
|
|
@@ -1447,16 +1474,25 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
1447
1474
|
id: z.ZodString;
|
|
1448
1475
|
seq: z.ZodNumber;
|
|
1449
1476
|
localId: z.ZodNullable<z.ZodString>;
|
|
1450
|
-
content: z.ZodObject<{
|
|
1451
|
-
c: z.ZodString;
|
|
1477
|
+
content: z.ZodUnion<[z.ZodObject<{
|
|
1452
1478
|
t: z.ZodLiteral<"encrypted">;
|
|
1479
|
+
c: z.ZodString;
|
|
1453
1480
|
}, "strip", z.ZodTypeAny, {
|
|
1454
|
-
c: string;
|
|
1455
1481
|
t: "encrypted";
|
|
1456
|
-
}, {
|
|
1457
1482
|
c: string;
|
|
1483
|
+
}, {
|
|
1458
1484
|
t: "encrypted";
|
|
1459
|
-
|
|
1485
|
+
c: string;
|
|
1486
|
+
}>, z.ZodObject<{
|
|
1487
|
+
t: z.ZodLiteral<"plaintext">;
|
|
1488
|
+
p: z.ZodString;
|
|
1489
|
+
}, "strip", z.ZodTypeAny, {
|
|
1490
|
+
t: "plaintext";
|
|
1491
|
+
p: string;
|
|
1492
|
+
}, {
|
|
1493
|
+
t: "plaintext";
|
|
1494
|
+
p: string;
|
|
1495
|
+
}>]>;
|
|
1460
1496
|
createdAt: z.ZodNumber;
|
|
1461
1497
|
updatedAt: z.ZodNumber;
|
|
1462
1498
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1464,8 +1500,11 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
1464
1500
|
createdAt: number;
|
|
1465
1501
|
updatedAt: number;
|
|
1466
1502
|
content: {
|
|
1467
|
-
c: string;
|
|
1468
1503
|
t: "encrypted";
|
|
1504
|
+
c: string;
|
|
1505
|
+
} | {
|
|
1506
|
+
t: "plaintext";
|
|
1507
|
+
p: string;
|
|
1469
1508
|
};
|
|
1470
1509
|
seq: number;
|
|
1471
1510
|
localId: string | null;
|
|
@@ -1474,8 +1513,11 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
1474
1513
|
createdAt: number;
|
|
1475
1514
|
updatedAt: number;
|
|
1476
1515
|
content: {
|
|
1477
|
-
c: string;
|
|
1478
1516
|
t: "encrypted";
|
|
1517
|
+
c: string;
|
|
1518
|
+
} | {
|
|
1519
|
+
t: "plaintext";
|
|
1520
|
+
p: string;
|
|
1479
1521
|
};
|
|
1480
1522
|
seq: number;
|
|
1481
1523
|
localId: string | null;
|
|
@@ -1488,8 +1530,11 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
1488
1530
|
createdAt: number;
|
|
1489
1531
|
updatedAt: number;
|
|
1490
1532
|
content: {
|
|
1491
|
-
c: string;
|
|
1492
1533
|
t: "encrypted";
|
|
1534
|
+
c: string;
|
|
1535
|
+
} | {
|
|
1536
|
+
t: "plaintext";
|
|
1537
|
+
p: string;
|
|
1493
1538
|
};
|
|
1494
1539
|
seq: number;
|
|
1495
1540
|
localId: string | null;
|
|
@@ -1502,8 +1547,11 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
1502
1547
|
createdAt: number;
|
|
1503
1548
|
updatedAt: number;
|
|
1504
1549
|
content: {
|
|
1505
|
-
c: string;
|
|
1506
1550
|
t: "encrypted";
|
|
1551
|
+
c: string;
|
|
1552
|
+
} | {
|
|
1553
|
+
t: "plaintext";
|
|
1554
|
+
p: string;
|
|
1507
1555
|
};
|
|
1508
1556
|
seq: number;
|
|
1509
1557
|
localId: string | null;
|
|
@@ -1544,8 +1592,11 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
1544
1592
|
createdAt: number;
|
|
1545
1593
|
updatedAt: number;
|
|
1546
1594
|
content: {
|
|
1547
|
-
c: string;
|
|
1548
1595
|
t: "encrypted";
|
|
1596
|
+
c: string;
|
|
1597
|
+
} | {
|
|
1598
|
+
t: "plaintext";
|
|
1599
|
+
p: string;
|
|
1549
1600
|
};
|
|
1550
1601
|
seq: number;
|
|
1551
1602
|
localId: string | null;
|
|
@@ -1586,8 +1637,11 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
1586
1637
|
createdAt: number;
|
|
1587
1638
|
updatedAt: number;
|
|
1588
1639
|
content: {
|
|
1589
|
-
c: string;
|
|
1590
1640
|
t: "encrypted";
|
|
1641
|
+
c: string;
|
|
1642
|
+
} | {
|
|
1643
|
+
t: "plaintext";
|
|
1644
|
+
p: string;
|
|
1591
1645
|
};
|
|
1592
1646
|
seq: number;
|
|
1593
1647
|
localId: string | null;
|
|
@@ -1765,11 +1819,6 @@ declare const ProtocolV3SessionChangesResponseSchema: z.ZodObject<{
|
|
|
1765
1819
|
payload: Record<string, unknown>;
|
|
1766
1820
|
}>, "many">;
|
|
1767
1821
|
}, "strip", z.ZodTypeAny, {
|
|
1768
|
-
cursor: {
|
|
1769
|
-
lastChangeSeq: number;
|
|
1770
|
-
afterSeq: number;
|
|
1771
|
-
hasMore: boolean;
|
|
1772
|
-
};
|
|
1773
1822
|
protocol: {
|
|
1774
1823
|
protocolVersion: string;
|
|
1775
1824
|
capabilities: string[];
|
|
@@ -1796,6 +1845,11 @@ declare const ProtocolV3SessionChangesResponseSchema: z.ZodObject<{
|
|
|
1796
1845
|
pendingVersion?: number | undefined;
|
|
1797
1846
|
deleted?: boolean | undefined;
|
|
1798
1847
|
};
|
|
1848
|
+
cursor: {
|
|
1849
|
+
lastChangeSeq: number;
|
|
1850
|
+
afterSeq: number;
|
|
1851
|
+
hasMore: boolean;
|
|
1852
|
+
};
|
|
1799
1853
|
changes: {
|
|
1800
1854
|
createdAt: number;
|
|
1801
1855
|
changeSeq: number;
|
|
@@ -1803,11 +1857,6 @@ declare const ProtocolV3SessionChangesResponseSchema: z.ZodObject<{
|
|
|
1803
1857
|
payload: Record<string, unknown>;
|
|
1804
1858
|
}[];
|
|
1805
1859
|
}, {
|
|
1806
|
-
cursor: {
|
|
1807
|
-
lastChangeSeq: number;
|
|
1808
|
-
afterSeq: number;
|
|
1809
|
-
hasMore: boolean;
|
|
1810
|
-
};
|
|
1811
1860
|
protocol: {
|
|
1812
1861
|
protocolVersion: string;
|
|
1813
1862
|
capabilities: string[];
|
|
@@ -1834,6 +1883,11 @@ declare const ProtocolV3SessionChangesResponseSchema: z.ZodObject<{
|
|
|
1834
1883
|
pendingVersion?: number | undefined;
|
|
1835
1884
|
deleted?: boolean | undefined;
|
|
1836
1885
|
};
|
|
1886
|
+
cursor: {
|
|
1887
|
+
lastChangeSeq: number;
|
|
1888
|
+
afterSeq: number;
|
|
1889
|
+
hasMore: boolean;
|
|
1890
|
+
};
|
|
1837
1891
|
changes: {
|
|
1838
1892
|
createdAt: number;
|
|
1839
1893
|
changeSeq: number;
|
|
@@ -2240,6 +2294,7 @@ type SigningCredentials = {
|
|
|
2240
2294
|
type Credentials = {
|
|
2241
2295
|
token: string;
|
|
2242
2296
|
signing?: SigningCredentials | null;
|
|
2297
|
+
aesKey?: string;
|
|
2243
2298
|
encryption: {
|
|
2244
2299
|
type: 'legacy';
|
|
2245
2300
|
secret: Uint8Array;
|
|
@@ -2421,6 +2476,11 @@ declare class ApiSessionClient extends EventEmitter {
|
|
|
2421
2476
|
private waitForPendingBackgroundTasksToDrain;
|
|
2422
2477
|
private handleSocketUpdate;
|
|
2423
2478
|
private dispatchEncryptedSessionMessage;
|
|
2479
|
+
/**
|
|
2480
|
+
* Dispatch a plaintext session message (AES mode: server already decrypted).
|
|
2481
|
+
* The plaintext JSON is parsed and validated as a UserMessage.
|
|
2482
|
+
*/
|
|
2483
|
+
private dispatchPlaintextSessionMessage;
|
|
2424
2484
|
private maybeAutoAcknowledgeHappyOrgDispatch;
|
|
2425
2485
|
private resolveHappyOrgDispatchBusinessAckCandidate;
|
|
2426
2486
|
private hasRecordedHappyOrgDispatchAck;
|