happy-imou-cloud 2.1.49 → 2.1.50

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-CAVeOdyo.mjs → BaseReasoningProcessor-2qoX8OA1.mjs} +2 -2
  2. package/dist/{BaseReasoningProcessor-Dn9NcoHz.cjs → BaseReasoningProcessor-D3q5lh9h.cjs} +2 -2
  3. package/dist/{ProviderSelectionHandler-BJJc7qOR.cjs → ProviderSelectionHandler-CO5BYEgC.cjs} +2 -2
  4. package/dist/{ProviderSelectionHandler-DIYidT13.mjs → ProviderSelectionHandler-CO6foZET.mjs} +2 -2
  5. package/dist/{api-DnqaNvyV.mjs → api-6B4EMs47.mjs} +1 -1
  6. package/dist/{api-D7nAeZi7.cjs → api-D4JOaMll.cjs} +1 -1
  7. package/dist/{command-CzfRRhVe.mjs → command-BbJCdR2t.mjs} +2 -2
  8. package/dist/{command-VcH4hbhi.cjs → command-DuKDmbdM.cjs} +2 -2
  9. package/dist/{index-xa1kwZoj.cjs → index-CZJH0CUT.cjs} +21 -12
  10. package/dist/{index-7Z93BoVn.mjs → index-CyGHrYHl.mjs} +18 -9
  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 +88 -86
  15. package/dist/lib.d.mts +88 -86
  16. package/dist/lib.mjs +1 -1
  17. package/dist/{registerKillSessionHandler-CfCya6si.cjs → registerKillSessionHandler-Bo_MMbdY.cjs} +2 -2
  18. package/dist/{registerKillSessionHandler-DLDg2EES.mjs → registerKillSessionHandler-ggfGac_S.mjs} +2 -2
  19. package/dist/{runClaude-BBGNmGj6.cjs → runClaude-B4eoG3Pu.cjs} +4 -4
  20. package/dist/{runClaude-zCwRhpOw.mjs → runClaude-jDr3i0bO.mjs} +4 -4
  21. package/dist/{runCodex-BbgLVjb9.mjs → runCodex-e_D1Jd_w.mjs} +217 -63
  22. package/dist/{runCodex-jUU6U2tZ.cjs → runCodex-hDGeZAh5.cjs} +216 -62
  23. package/dist/{runGemini-C0NT8MHK.cjs → runGemini-CeA9aiD1.cjs} +4 -4
  24. package/dist/{runGemini-DcwNsudA.mjs → runGemini-Cur84FvO.mjs} +4 -4
  25. package/package.json +1 -1
package/dist/lib.d.mts CHANGED
@@ -363,17 +363,17 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
363
363
  flavor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
364
364
  }, "strip", z.ZodTypeAny, {
365
365
  homeSlug: string;
366
+ startedBy?: "daemon" | "terminal" | null | undefined;
366
367
  path?: string | null | undefined;
367
368
  machineId?: string | null | undefined;
368
369
  happySessionId?: string | null | undefined;
369
- startedBy?: "daemon" | "terminal" | null | undefined;
370
370
  flavor?: string | null | undefined;
371
371
  }, {
372
372
  homeSlug: string;
373
+ startedBy?: "daemon" | "terminal" | null | undefined;
373
374
  path?: string | null | undefined;
374
375
  machineId?: string | null | undefined;
375
376
  happySessionId?: string | null | undefined;
376
- startedBy?: "daemon" | "terminal" | null | undefined;
377
377
  flavor?: string | null | undefined;
378
378
  }>>>;
379
379
  acceptanceHandoff: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -445,10 +445,10 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
445
445
  } | null | undefined;
446
446
  specialistHome?: {
447
447
  homeSlug: string;
448
+ startedBy?: "daemon" | "terminal" | null | undefined;
448
449
  path?: string | null | undefined;
449
450
  machineId?: string | null | undefined;
450
451
  happySessionId?: string | null | undefined;
451
- startedBy?: "daemon" | "terminal" | null | undefined;
452
452
  flavor?: string | null | undefined;
453
453
  } | null | undefined;
454
454
  acceptanceHandoff?: {
@@ -498,10 +498,10 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
498
498
  } | null | undefined;
499
499
  specialistHome?: {
500
500
  homeSlug: string;
501
+ startedBy?: "daemon" | "terminal" | null | undefined;
501
502
  path?: string | null | undefined;
502
503
  machineId?: string | null | undefined;
503
504
  happySessionId?: string | null | undefined;
504
- startedBy?: "daemon" | "terminal" | null | undefined;
505
505
  flavor?: string | null | undefined;
506
506
  } | null | undefined;
507
507
  acceptanceHandoff?: {
@@ -695,17 +695,17 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
695
695
  flavor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
696
696
  }, "strip", z.ZodTypeAny, {
697
697
  homeSlug: string;
698
+ startedBy?: "daemon" | "terminal" | null | undefined;
698
699
  path?: string | null | undefined;
699
700
  machineId?: string | null | undefined;
700
701
  happySessionId?: string | null | undefined;
701
- startedBy?: "daemon" | "terminal" | null | undefined;
702
702
  flavor?: string | null | undefined;
703
703
  }, {
704
704
  homeSlug: string;
705
+ startedBy?: "daemon" | "terminal" | null | undefined;
705
706
  path?: string | null | undefined;
706
707
  machineId?: string | null | undefined;
707
708
  happySessionId?: string | null | undefined;
708
- startedBy?: "daemon" | "terminal" | null | undefined;
709
709
  flavor?: string | null | undefined;
710
710
  }>>>;
711
711
  startupBinding: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -722,8 +722,8 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
722
722
  }, "strip", z.ZodTypeAny, {
723
723
  expectedHomePath: string;
724
724
  startupBindingStatus: "valid" | "invalid";
725
- organizationRootPath?: string | null | undefined;
726
725
  source?: "position-home" | "legacy-agent-home" | null | undefined;
726
+ organizationRootPath?: string | null | undefined;
727
727
  resolvedHomePath?: string | null | undefined;
728
728
  expectedHomeAgentId?: string | null | undefined;
729
729
  resolvedHomeAgentId?: string | null | undefined;
@@ -733,8 +733,8 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
733
733
  }, {
734
734
  expectedHomePath: string;
735
735
  startupBindingStatus: "valid" | "invalid";
736
- organizationRootPath?: string | null | undefined;
737
736
  source?: "position-home" | "legacy-agent-home" | null | undefined;
737
+ organizationRootPath?: string | null | undefined;
738
738
  resolvedHomePath?: string | null | undefined;
739
739
  expectedHomeAgentId?: string | null | undefined;
740
740
  resolvedHomeAgentId?: string | null | undefined;
@@ -842,17 +842,17 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
842
842
  flavor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
843
843
  }, "strip", z.ZodTypeAny, {
844
844
  homeSlug: string;
845
+ startedBy?: "daemon" | "terminal" | null | undefined;
845
846
  path?: string | null | undefined;
846
847
  machineId?: string | null | undefined;
847
848
  happySessionId?: string | null | undefined;
848
- startedBy?: "daemon" | "terminal" | null | undefined;
849
849
  flavor?: string | null | undefined;
850
850
  }, {
851
851
  homeSlug: string;
852
+ startedBy?: "daemon" | "terminal" | null | undefined;
852
853
  path?: string | null | undefined;
853
854
  machineId?: string | null | undefined;
854
855
  happySessionId?: string | null | undefined;
855
- startedBy?: "daemon" | "terminal" | null | undefined;
856
856
  flavor?: string | null | undefined;
857
857
  }>>>;
858
858
  acceptanceHandoff: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -924,10 +924,10 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
924
924
  } | null | undefined;
925
925
  specialistHome?: {
926
926
  homeSlug: string;
927
+ startedBy?: "daemon" | "terminal" | null | undefined;
927
928
  path?: string | null | undefined;
928
929
  machineId?: string | null | undefined;
929
930
  happySessionId?: string | null | undefined;
930
- startedBy?: "daemon" | "terminal" | null | undefined;
931
931
  flavor?: string | null | undefined;
932
932
  } | null | undefined;
933
933
  acceptanceHandoff?: {
@@ -977,10 +977,10 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
977
977
  } | null | undefined;
978
978
  specialistHome?: {
979
979
  homeSlug: string;
980
+ startedBy?: "daemon" | "terminal" | null | undefined;
980
981
  path?: string | null | undefined;
981
982
  machineId?: string | null | undefined;
982
983
  happySessionId?: string | null | undefined;
983
- startedBy?: "daemon" | "terminal" | null | undefined;
984
984
  flavor?: string | null | undefined;
985
985
  } | null | undefined;
986
986
  acceptanceHandoff?: {
@@ -997,6 +997,12 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
997
997
  } | null | undefined;
998
998
  }>>;
999
999
  }, "strip", z.ZodTypeAny, {
1000
+ runtime?: {
1001
+ status: "active" | "waiting_review" | "waiting_decision" | "waiting_close" | "terminated";
1002
+ reason?: string | null | undefined;
1003
+ terminatedAt?: number | undefined;
1004
+ reopenedAt?: number | undefined;
1005
+ } | undefined;
1000
1006
  repeat?: {
1001
1007
  threshold: number;
1002
1008
  fingerprints: Record<string, {
@@ -1032,18 +1038,12 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
1032
1038
  } | null | undefined;
1033
1039
  specialistHome?: {
1034
1040
  homeSlug: string;
1041
+ startedBy?: "daemon" | "terminal" | null | undefined;
1035
1042
  path?: string | null | undefined;
1036
1043
  machineId?: string | null | undefined;
1037
1044
  happySessionId?: string | null | undefined;
1038
- startedBy?: "daemon" | "terminal" | null | undefined;
1039
1045
  flavor?: string | null | undefined;
1040
1046
  } | null | undefined;
1041
- runtime?: {
1042
- status: "active" | "waiting_review" | "waiting_decision" | "waiting_close" | "terminated";
1043
- reason?: string | null | undefined;
1044
- terminatedAt?: number | undefined;
1045
- reopenedAt?: number | undefined;
1046
- } | undefined;
1047
1047
  activeOwner?: {
1048
1048
  ownerAgentId: string;
1049
1049
  ownerRunId: string;
@@ -1074,8 +1074,8 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
1074
1074
  startupBinding?: {
1075
1075
  expectedHomePath: string;
1076
1076
  startupBindingStatus: "valid" | "invalid";
1077
- organizationRootPath?: string | null | undefined;
1078
1077
  source?: "position-home" | "legacy-agent-home" | null | undefined;
1078
+ organizationRootPath?: string | null | undefined;
1079
1079
  resolvedHomePath?: string | null | undefined;
1080
1080
  expectedHomeAgentId?: string | null | undefined;
1081
1081
  resolvedHomeAgentId?: string | null | undefined;
@@ -1118,10 +1118,10 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
1118
1118
  } | null | undefined;
1119
1119
  specialistHome?: {
1120
1120
  homeSlug: string;
1121
+ startedBy?: "daemon" | "terminal" | null | undefined;
1121
1122
  path?: string | null | undefined;
1122
1123
  machineId?: string | null | undefined;
1123
1124
  happySessionId?: string | null | undefined;
1124
- startedBy?: "daemon" | "terminal" | null | undefined;
1125
1125
  flavor?: string | null | undefined;
1126
1126
  } | null | undefined;
1127
1127
  acceptanceHandoff?: {
@@ -1138,6 +1138,12 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
1138
1138
  } | null | undefined;
1139
1139
  } | undefined;
1140
1140
  }, {
1141
+ runtime?: {
1142
+ status: "active" | "waiting_review" | "waiting_decision" | "waiting_close" | "terminated";
1143
+ reason?: string | null | undefined;
1144
+ terminatedAt?: number | undefined;
1145
+ reopenedAt?: number | undefined;
1146
+ } | undefined;
1141
1147
  repeat?: {
1142
1148
  threshold: number;
1143
1149
  fingerprints: Record<string, {
@@ -1173,18 +1179,12 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
1173
1179
  } | null | undefined;
1174
1180
  specialistHome?: {
1175
1181
  homeSlug: string;
1182
+ startedBy?: "daemon" | "terminal" | null | undefined;
1176
1183
  path?: string | null | undefined;
1177
1184
  machineId?: string | null | undefined;
1178
1185
  happySessionId?: string | null | undefined;
1179
- startedBy?: "daemon" | "terminal" | null | undefined;
1180
1186
  flavor?: string | null | undefined;
1181
1187
  } | null | undefined;
1182
- runtime?: {
1183
- status: "active" | "waiting_review" | "waiting_decision" | "waiting_close" | "terminated";
1184
- reason?: string | null | undefined;
1185
- terminatedAt?: number | undefined;
1186
- reopenedAt?: number | undefined;
1187
- } | undefined;
1188
1188
  activeOwner?: {
1189
1189
  ownerAgentId: string;
1190
1190
  ownerRunId: string;
@@ -1215,8 +1215,8 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
1215
1215
  startupBinding?: {
1216
1216
  expectedHomePath: string;
1217
1217
  startupBindingStatus: "valid" | "invalid";
1218
- organizationRootPath?: string | null | undefined;
1219
1218
  source?: "position-home" | "legacy-agent-home" | null | undefined;
1219
+ organizationRootPath?: string | null | undefined;
1220
1220
  resolvedHomePath?: string | null | undefined;
1221
1221
  expectedHomeAgentId?: string | null | undefined;
1222
1222
  resolvedHomeAgentId?: string | null | undefined;
@@ -1259,10 +1259,10 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
1259
1259
  } | null | undefined;
1260
1260
  specialistHome?: {
1261
1261
  homeSlug: string;
1262
+ startedBy?: "daemon" | "terminal" | null | undefined;
1262
1263
  path?: string | null | undefined;
1263
1264
  machineId?: string | null | undefined;
1264
1265
  happySessionId?: string | null | undefined;
1265
- startedBy?: "daemon" | "terminal" | null | undefined;
1266
1266
  flavor?: string | null | undefined;
1267
1267
  } | null | undefined;
1268
1268
  acceptanceHandoff?: {
@@ -1309,14 +1309,14 @@ declare const SessionRuntimeIndexSchema: z.ZodObject<{
1309
1309
  lifecycleState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1310
1310
  flavor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1311
1311
  }, "strip", z.ZodTypeAny, {
1312
- machineId?: string | null | undefined;
1313
1312
  startedBy?: string | null | undefined;
1313
+ machineId?: string | null | undefined;
1314
1314
  flavor?: string | null | undefined;
1315
1315
  hostPid?: number | null | undefined;
1316
1316
  lifecycleState?: string | null | undefined;
1317
1317
  }, {
1318
- machineId?: string | null | undefined;
1319
1318
  startedBy?: string | null | undefined;
1319
+ machineId?: string | null | undefined;
1320
1320
  flavor?: string | null | undefined;
1321
1321
  hostPid?: number | null | undefined;
1322
1322
  lifecycleState?: string | null | undefined;
@@ -1379,14 +1379,14 @@ declare const UpdateSchema: z.ZodObject<{
1379
1379
  lifecycleState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1380
1380
  flavor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1381
1381
  }, "strip", z.ZodTypeAny, {
1382
- machineId?: string | null | undefined;
1383
1382
  startedBy?: string | null | undefined;
1383
+ machineId?: string | null | undefined;
1384
1384
  flavor?: string | null | undefined;
1385
1385
  hostPid?: number | null | undefined;
1386
1386
  lifecycleState?: string | null | undefined;
1387
1387
  }, {
1388
- machineId?: string | null | undefined;
1389
1388
  startedBy?: string | null | undefined;
1389
+ machineId?: string | null | undefined;
1390
1390
  flavor?: string | null | undefined;
1391
1391
  hostPid?: number | null | undefined;
1392
1392
  lifecycleState?: string | null | undefined;
@@ -1406,8 +1406,8 @@ declare const UpdateSchema: z.ZodObject<{
1406
1406
  dataEncryptionKey?: string | null | undefined;
1407
1407
  activeAt?: number | undefined;
1408
1408
  sessionIndex?: {
1409
- machineId?: string | null | undefined;
1410
1409
  startedBy?: string | null | undefined;
1410
+ machineId?: string | null | undefined;
1411
1411
  flavor?: string | null | undefined;
1412
1412
  hostPid?: number | null | undefined;
1413
1413
  lifecycleState?: string | null | undefined;
@@ -1427,8 +1427,8 @@ declare const UpdateSchema: z.ZodObject<{
1427
1427
  dataEncryptionKey?: string | null | undefined;
1428
1428
  activeAt?: number | undefined;
1429
1429
  sessionIndex?: {
1430
- machineId?: string | null | undefined;
1431
1430
  startedBy?: string | null | undefined;
1431
+ machineId?: string | null | undefined;
1432
1432
  flavor?: string | null | undefined;
1433
1433
  hostPid?: number | null | undefined;
1434
1434
  lifecycleState?: string | null | undefined;
@@ -1545,14 +1545,14 @@ declare const UpdateSchema: z.ZodObject<{
1545
1545
  lifecycleState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1546
1546
  flavor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1547
1547
  }, "strip", z.ZodTypeAny, {
1548
- machineId?: string | null | undefined;
1549
1548
  startedBy?: string | null | undefined;
1549
+ machineId?: string | null | undefined;
1550
1550
  flavor?: string | null | undefined;
1551
1551
  hostPid?: number | null | undefined;
1552
1552
  lifecycleState?: string | null | undefined;
1553
1553
  }, {
1554
- machineId?: string | null | undefined;
1555
1554
  startedBy?: string | null | undefined;
1555
+ machineId?: string | null | undefined;
1556
1556
  flavor?: string | null | undefined;
1557
1557
  hostPid?: number | null | undefined;
1558
1558
  lifecycleState?: string | null | undefined;
@@ -1580,8 +1580,8 @@ declare const UpdateSchema: z.ZodObject<{
1580
1580
  version: number;
1581
1581
  } | null | undefined;
1582
1582
  sessionIndex?: {
1583
- machineId?: string | null | undefined;
1584
1583
  startedBy?: string | null | undefined;
1584
+ machineId?: string | null | undefined;
1585
1585
  flavor?: string | null | undefined;
1586
1586
  hostPid?: number | null | undefined;
1587
1587
  lifecycleState?: string | null | undefined;
@@ -1601,8 +1601,8 @@ declare const UpdateSchema: z.ZodObject<{
1601
1601
  version: number;
1602
1602
  } | null | undefined;
1603
1603
  sessionIndex?: {
1604
- machineId?: string | null | undefined;
1605
1604
  startedBy?: string | null | undefined;
1605
+ machineId?: string | null | undefined;
1606
1606
  flavor?: string | null | undefined;
1607
1607
  hostPid?: number | null | undefined;
1608
1608
  lifecycleState?: string | null | undefined;
@@ -1687,8 +1687,8 @@ declare const UpdateSchema: z.ZodObject<{
1687
1687
  dataEncryptionKey?: string | null | undefined;
1688
1688
  activeAt?: number | undefined;
1689
1689
  sessionIndex?: {
1690
- machineId?: string | null | undefined;
1691
1690
  startedBy?: string | null | undefined;
1691
+ machineId?: string | null | undefined;
1692
1692
  flavor?: string | null | undefined;
1693
1693
  hostPid?: number | null | undefined;
1694
1694
  lifecycleState?: string | null | undefined;
@@ -1723,8 +1723,8 @@ declare const UpdateSchema: z.ZodObject<{
1723
1723
  version: number;
1724
1724
  } | null | undefined;
1725
1725
  sessionIndex?: {
1726
- machineId?: string | null | undefined;
1727
1726
  startedBy?: string | null | undefined;
1727
+ machineId?: string | null | undefined;
1728
1728
  flavor?: string | null | undefined;
1729
1729
  hostPid?: number | null | undefined;
1730
1730
  lifecycleState?: string | null | undefined;
@@ -1766,8 +1766,8 @@ declare const UpdateSchema: z.ZodObject<{
1766
1766
  dataEncryptionKey?: string | null | undefined;
1767
1767
  activeAt?: number | undefined;
1768
1768
  sessionIndex?: {
1769
- machineId?: string | null | undefined;
1770
1769
  startedBy?: string | null | undefined;
1770
+ machineId?: string | null | undefined;
1771
1771
  flavor?: string | null | undefined;
1772
1772
  hostPid?: number | null | undefined;
1773
1773
  lifecycleState?: string | null | undefined;
@@ -1802,8 +1802,8 @@ declare const UpdateSchema: z.ZodObject<{
1802
1802
  version: number;
1803
1803
  } | null | undefined;
1804
1804
  sessionIndex?: {
1805
- machineId?: string | null | undefined;
1806
1805
  startedBy?: string | null | undefined;
1806
+ machineId?: string | null | undefined;
1807
1807
  flavor?: string | null | undefined;
1808
1808
  hostPid?: number | null | undefined;
1809
1809
  lifecycleState?: string | null | undefined;
@@ -2074,15 +2074,6 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
2074
2074
  oldestRetainedSeq: number | null;
2075
2075
  }>;
2076
2076
  }, "strip", z.ZodTypeAny, {
2077
- protocol: {
2078
- protocolVersion: string;
2079
- capabilities: string[];
2080
- serverVersion?: string | undefined;
2081
- legacyFallback?: {
2082
- http: string[];
2083
- websocketPath: string;
2084
- } | undefined;
2085
- };
2086
2077
  session: {
2087
2078
  id: string;
2088
2079
  lastChangeSeq: number;
@@ -2100,6 +2091,15 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
2100
2091
  pendingVersion?: number | undefined;
2101
2092
  deleted?: boolean | undefined;
2102
2093
  };
2094
+ protocol: {
2095
+ protocolVersion: string;
2096
+ capabilities: string[];
2097
+ serverVersion?: string | undefined;
2098
+ legacyFallback?: {
2099
+ http: string[];
2100
+ websocketPath: string;
2101
+ } | undefined;
2102
+ };
2103
2103
  snapshot: {
2104
2104
  messages: {
2105
2105
  id: string;
@@ -2119,15 +2119,6 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
2119
2119
  oldestRetainedSeq: number | null;
2120
2120
  };
2121
2121
  }, {
2122
- protocol: {
2123
- protocolVersion: string;
2124
- capabilities: string[];
2125
- serverVersion?: string | undefined;
2126
- legacyFallback?: {
2127
- http: string[];
2128
- websocketPath: string;
2129
- } | undefined;
2130
- };
2131
2122
  session: {
2132
2123
  id: string;
2133
2124
  lastChangeSeq: number;
@@ -2145,6 +2136,15 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
2145
2136
  pendingVersion?: number | undefined;
2146
2137
  deleted?: boolean | undefined;
2147
2138
  };
2139
+ protocol: {
2140
+ protocolVersion: string;
2141
+ capabilities: string[];
2142
+ serverVersion?: string | undefined;
2143
+ legacyFallback?: {
2144
+ http: string[];
2145
+ websocketPath: string;
2146
+ } | undefined;
2147
+ };
2148
2148
  snapshot: {
2149
2149
  messages: {
2150
2150
  id: string;
@@ -2333,14 +2333,10 @@ declare const ProtocolV3SessionChangesResponseSchema: z.ZodObject<{
2333
2333
  payload: Record<string, unknown>;
2334
2334
  }>, "many">;
2335
2335
  }, "strip", z.ZodTypeAny, {
2336
- protocol: {
2337
- protocolVersion: string;
2338
- capabilities: string[];
2339
- serverVersion?: string | undefined;
2340
- legacyFallback?: {
2341
- http: string[];
2342
- websocketPath: string;
2343
- } | undefined;
2336
+ cursor: {
2337
+ lastChangeSeq: number;
2338
+ afterSeq: number;
2339
+ hasMore: boolean;
2344
2340
  };
2345
2341
  session: {
2346
2342
  id: string;
@@ -2359,18 +2355,6 @@ declare const ProtocolV3SessionChangesResponseSchema: z.ZodObject<{
2359
2355
  pendingVersion?: number | undefined;
2360
2356
  deleted?: boolean | undefined;
2361
2357
  };
2362
- cursor: {
2363
- lastChangeSeq: number;
2364
- afterSeq: number;
2365
- hasMore: boolean;
2366
- };
2367
- changes: {
2368
- createdAt: number;
2369
- changeSeq: number;
2370
- changeType: string;
2371
- payload: Record<string, unknown>;
2372
- }[];
2373
- }, {
2374
2358
  protocol: {
2375
2359
  protocolVersion: string;
2376
2360
  capabilities: string[];
@@ -2380,6 +2364,18 @@ declare const ProtocolV3SessionChangesResponseSchema: z.ZodObject<{
2380
2364
  websocketPath: string;
2381
2365
  } | undefined;
2382
2366
  };
2367
+ changes: {
2368
+ createdAt: number;
2369
+ changeSeq: number;
2370
+ changeType: string;
2371
+ payload: Record<string, unknown>;
2372
+ }[];
2373
+ }, {
2374
+ cursor: {
2375
+ lastChangeSeq: number;
2376
+ afterSeq: number;
2377
+ hasMore: boolean;
2378
+ };
2383
2379
  session: {
2384
2380
  id: string;
2385
2381
  lastChangeSeq: number;
@@ -2397,10 +2393,14 @@ declare const ProtocolV3SessionChangesResponseSchema: z.ZodObject<{
2397
2393
  pendingVersion?: number | undefined;
2398
2394
  deleted?: boolean | undefined;
2399
2395
  };
2400
- cursor: {
2401
- lastChangeSeq: number;
2402
- afterSeq: number;
2403
- hasMore: boolean;
2396
+ protocol: {
2397
+ protocolVersion: string;
2398
+ capabilities: string[];
2399
+ serverVersion?: string | undefined;
2400
+ legacyFallback?: {
2401
+ http: string[];
2402
+ websocketPath: string;
2403
+ } | undefined;
2404
2404
  };
2405
2405
  changes: {
2406
2406
  createdAt: number;
@@ -3614,6 +3614,7 @@ type Metadata = {
3614
3614
  claudeSessionId?: string;
3615
3615
  claudeTranscriptPath?: string;
3616
3616
  codexSessionId?: string;
3617
+ codexSessionCwd?: string;
3617
3618
  tools?: string[];
3618
3619
  slashCommands?: string[];
3619
3620
  homeDir: string;
@@ -4032,6 +4033,7 @@ interface SpawnSessionOptions {
4032
4033
  }
4033
4034
  interface SpawnSessionResumeOptions {
4034
4035
  providerSessionId: string;
4036
+ providerSessionCwd?: string;
4035
4037
  }
4036
4038
  type SpawnSessionResult = {
4037
4039
  type: 'success';
package/dist/lib.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { A as ApiClient, a as ApiSessionClient, c as configuration, l as logger } from './api-DnqaNvyV.mjs';
1
+ export { A as ApiClient, a as ApiSessionClient, c as configuration, l as logger } from './api-6B4EMs47.mjs';
2
2
  export { R as RawJSONLinesSchema } from './types-CiliQpqS.mjs';
3
3
  import 'axios';
4
4
  import 'chalk';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-xa1kwZoj.cjs');
4
- var persistence = require('./api-D7nAeZi7.cjs');
3
+ var index = require('./index-CZJH0CUT.cjs');
4
+ var persistence = require('./api-D4JOaMll.cjs');
5
5
  var node_crypto = require('node:crypto');
6
6
  var path = require('node:path');
7
7
  require('axios');
@@ -1,5 +1,5 @@
1
- import { m as initialMachineMetadata, R as RuntimeShell, f as formatDisplayMessage, n as resolveCanonicalToolNameV2, o as isTerminalReferenceOnlyPayload, t as truncateDisplayMessage } from './index-7Z93BoVn.mjs';
2
- import { r as readSettings, H as HeadTailPreviewBuffer, e as HAPPY_ORG_REPLY_ACK_VERSION, f as HAPPY_ORG_TURN_REPORT_TAG, g as HAPPY_ORG_SUMMARY_MAX_LENGTH, j as HAPPY_ORG_REPEAT_THRESHOLD, l as logger, n as normalizePreviewableArtifactTarget } from './api-DnqaNvyV.mjs';
1
+ import { m as initialMachineMetadata, R as RuntimeShell, f as formatDisplayMessage, n as resolveCanonicalToolNameV2, o as isTerminalReferenceOnlyPayload, t as truncateDisplayMessage } from './index-CyGHrYHl.mjs';
2
+ import { r as readSettings, H as HeadTailPreviewBuffer, e as HAPPY_ORG_REPLY_ACK_VERSION, f as HAPPY_ORG_TURN_REPORT_TAG, g as HAPPY_ORG_SUMMARY_MAX_LENGTH, j as HAPPY_ORG_REPEAT_THRESHOLD, l as logger, n as normalizePreviewableArtifactTarget } from './api-6B4EMs47.mjs';
3
3
  import { randomUUID } from 'node:crypto';
4
4
  import { basename } from 'node:path';
5
5
  import 'axios';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var node_crypto = require('node:crypto');
4
- var persistence = require('./api-D7nAeZi7.cjs');
4
+ var persistence = require('./api-D4JOaMll.cjs');
5
5
  require('cross-spawn');
6
6
  require('@agentclientprotocol/sdk');
7
- var index = require('./index-xa1kwZoj.cjs');
7
+ var index = require('./index-CZJH0CUT.cjs');
8
8
  require('ps-list');
9
9
  require('fs');
10
10
  require('path');
@@ -25,9 +25,9 @@ require('tweetnacl');
25
25
  require('open');
26
26
  var React = require('react');
27
27
  var ink = require('ink');
28
- var ProviderSelectionHandler = require('./ProviderSelectionHandler-BJJc7qOR.cjs');
28
+ var ProviderSelectionHandler = require('./ProviderSelectionHandler-CO5BYEgC.cjs');
29
29
  var types = require('./types-DVk3crez.cjs');
30
- var registerKillSessionHandler = require('./registerKillSessionHandler-CfCya6si.cjs');
30
+ var registerKillSessionHandler = require('./registerKillSessionHandler-Bo_MMbdY.cjs');
31
31
  require('socket.io-client');
32
32
  require('expo-server-sdk');
33
33
  var node_util = require('node:util');
@@ -1,8 +1,8 @@
1
1
  import { randomUUID } from 'node:crypto';
2
- import { l as logger, k as backoff, m as delay, d as AssistantMessageStream, o as AsyncLock, c as configuration, s as startOfflineReconnection, b as connectionState, A as ApiClient, i as isAuthenticationRequiredError, h as hashObject } from './api-DnqaNvyV.mjs';
2
+ import { l as logger, k as backoff, m as delay, d as AssistantMessageStream, o as AsyncLock, c as configuration, s as startOfflineReconnection, b as connectionState, A as ApiClient, i as isAuthenticationRequiredError, h as hashObject } from './api-6B4EMs47.mjs';
3
3
  import 'cross-spawn';
4
4
  import '@agentclientprotocol/sdk';
5
- import { q as getProjectPath, F as Future, u as claudeLocal, E as ExitCodeError, w as trimIdent, x as createClaudeBackend, f as formatDisplayMessage, t as truncateDisplayMessage, y as claudeCheckSession, z as projectPath, B as mapToClaudeMode, P as PushableAsyncIterable, C as query, D as AbortError, e as stopCaffeinate, p as publishSessionRegistration, H as getEnvironmentInfo, a as createSessionMetadata, I as startCaffeinate, b as closeProviderSession } from './index-7Z93BoVn.mjs';
5
+ import { q as getProjectPath, F as Future, u as claudeLocal, E as ExitCodeError, w as trimIdent, x as createClaudeBackend, f as formatDisplayMessage, t as truncateDisplayMessage, y as claudeCheckSession, z as projectPath, B as mapToClaudeMode, P as PushableAsyncIterable, C as query, D as AbortError, e as stopCaffeinate, p as publishSessionRegistration, H as getEnvironmentInfo, a as createSessionMetadata, I as startCaffeinate, b as closeProviderSession } from './index-CyGHrYHl.mjs';
6
6
  import 'ps-list';
7
7
  import 'fs';
8
8
  import 'path';
@@ -23,9 +23,9 @@ import 'tweetnacl';
23
23
  import 'open';
24
24
  import React, { useState, useRef, useEffect, useCallback } from 'react';
25
25
  import { useStdout, useInput, Box, Text, render } from 'ink';
26
- import { c as createKeepAliveController, P as ProviderSelectionHandler, r as runModeLoop } from './ProviderSelectionHandler-DIYidT13.mjs';
26
+ import { c as createKeepAliveController, P as ProviderSelectionHandler, r as runModeLoop } from './ProviderSelectionHandler-CO6foZET.mjs';
27
27
  import { R as RawJSONLinesSchema } from './types-CiliQpqS.mjs';
28
- import { B as BasePermissionHandler, d as MessageBuffer, C as ConversationHistory$1, f as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, h as finalizeHappyOrgTurnWithBusinessAck, i as buildTurnResultPushNotification, t as createSessionTranscriptInkRenderer, j as buildReadyPushNotification, l as launchRuntimeHandleWithFactoryResult, n as renderTerminalOutputPreview, p as prepareTerminalOutputForForwarding, q as forwardAgentMessageToProviderSession, m as buildPermissionPushNotification, s as syncControlledByUserState, r as resolveHappyOrgQueuedTurn, e as ensureManagedProviderMachine, M as MissingMachineIdError, b as MessageQueue2, c as registerKillSessionHandler } from './registerKillSessionHandler-DLDg2EES.mjs';
28
+ import { B as BasePermissionHandler, d as MessageBuffer, C as ConversationHistory$1, f as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, h as finalizeHappyOrgTurnWithBusinessAck, i as buildTurnResultPushNotification, t as createSessionTranscriptInkRenderer, j as buildReadyPushNotification, l as launchRuntimeHandleWithFactoryResult, n as renderTerminalOutputPreview, p as prepareTerminalOutputForForwarding, q as forwardAgentMessageToProviderSession, m as buildPermissionPushNotification, s as syncControlledByUserState, r as resolveHappyOrgQueuedTurn, e as ensureManagedProviderMachine, M as MissingMachineIdError, b as MessageQueue2, c as registerKillSessionHandler } from './registerKillSessionHandler-ggfGac_S.mjs';
29
29
  import 'socket.io-client';
30
30
  import 'expo-server-sdk';
31
31
  import { isDeepStrictEqual } from 'node:util';