happy-imou-cloud 2.0.20 → 2.0.21
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-B9z785Pi.cjs → BaseReasoningProcessor-0nj-PMFc.cjs} +3 -3
- package/dist/{BaseReasoningProcessor-iTk5q5Vy.mjs → BaseReasoningProcessor-DnVC7liC.mjs} +3 -3
- package/dist/{ProviderSelectionHandler-DUBEXkmo.cjs → ProviderSelectionHandler-Bafuy28L.cjs} +2 -2
- package/dist/{ProviderSelectionHandler-s79sTquD.mjs → ProviderSelectionHandler-R-2r7ItM.mjs} +2 -2
- package/dist/{api-_Y2kzqZL.mjs → api-DJe9WP9M.mjs} +77 -4
- package/dist/{api-BKnzORe4.cjs → api-MGlKcEf3.cjs} +78 -3
- package/dist/{command-BDkgHdQU.mjs → command-CfyFnMv2.mjs} +3 -3
- package/dist/{command-BBNzMWEG.cjs → command-DAlFmWmr.cjs} +3 -3
- package/dist/{index-Bg4KLXYY.mjs → index-CHXCgpwi.mjs} +8 -8
- package/dist/{index-0TIyXMQu.cjs → index-CgVjDJpt.cjs} +11 -11
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.cts +393 -36
- package/dist/lib.d.mts +393 -36
- package/dist/lib.mjs +1 -1
- package/dist/{persistence-BCkHc68b.mjs → persistence-CkP90vEt.mjs} +1 -1
- package/dist/{persistence-D5uolhHo.cjs → persistence-DLFUNI9q.cjs} +1 -1
- package/dist/{registerKillSessionHandler-BMUE5Oaj.cjs → registerKillSessionHandler-Cs_INk4A.cjs} +356 -3
- package/dist/{registerKillSessionHandler-DJMH-gar.mjs → registerKillSessionHandler-DsHTZDsU.mjs} +354 -4
- package/dist/{runClaude-BUhD2jR2.cjs → runClaude-BGSgcyUp.cjs} +72 -9
- package/dist/{runClaude-BMv-eao6.mjs → runClaude-DAQAEmHe.mjs} +72 -9
- package/dist/{runCodex-DwnLnXWK.mjs → runCodex-B2UpSn82.mjs} +84 -14
- package/dist/{runCodex-DyNSDN6X.cjs → runCodex-earICaxw.cjs} +84 -14
- package/dist/{runGemini-uVHDcJ09.mjs → runGemini-BBUmH1Qh.mjs} +73 -9
- package/dist/{runGemini-UKpRbyNY.cjs → runGemini-D5RAIaR0.cjs} +73 -9
- package/package.json +1 -1
- package/scripts/release-smoke.mjs +3 -3
package/dist/lib.d.cts
CHANGED
|
@@ -288,6 +288,233 @@ declare const RawJSONLinesSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
288
288
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
289
289
|
type RawJSONLines = z.infer<typeof RawJSONLinesSchema>;
|
|
290
290
|
|
|
291
|
+
declare const HappyOrgTurnReportSchema: z.ZodObject<{
|
|
292
|
+
taskId: z.ZodString;
|
|
293
|
+
organizationId: z.ZodString;
|
|
294
|
+
memberAgentId: z.ZodString;
|
|
295
|
+
supervisorAgentId: z.ZodString;
|
|
296
|
+
} & {
|
|
297
|
+
turnStatus: z.ZodEnum<["task_complete", "turn_aborted"]>;
|
|
298
|
+
interventionType: z.ZodEnum<["none", "review_needed", "blocker", "decision_needed"]>;
|
|
299
|
+
summary: z.ZodString;
|
|
300
|
+
blockerCode: z.ZodNullable<z.ZodString>;
|
|
301
|
+
decisionNeeded: z.ZodNullable<z.ZodString>;
|
|
302
|
+
targetArtifact: z.ZodNullable<z.ZodString>;
|
|
303
|
+
repeatFingerprint: z.ZodNullable<z.ZodString>;
|
|
304
|
+
}, "strip", z.ZodTypeAny, {
|
|
305
|
+
summary: string;
|
|
306
|
+
taskId: string;
|
|
307
|
+
organizationId: string;
|
|
308
|
+
memberAgentId: string;
|
|
309
|
+
supervisorAgentId: string;
|
|
310
|
+
interventionType: "none" | "review_needed" | "blocker" | "decision_needed";
|
|
311
|
+
blockerCode: string | null;
|
|
312
|
+
decisionNeeded: string | null;
|
|
313
|
+
targetArtifact: string | null;
|
|
314
|
+
turnStatus: "task_complete" | "turn_aborted";
|
|
315
|
+
repeatFingerprint: string | null;
|
|
316
|
+
}, {
|
|
317
|
+
summary: string;
|
|
318
|
+
taskId: string;
|
|
319
|
+
organizationId: string;
|
|
320
|
+
memberAgentId: string;
|
|
321
|
+
supervisorAgentId: string;
|
|
322
|
+
interventionType: "none" | "review_needed" | "blocker" | "decision_needed";
|
|
323
|
+
blockerCode: string | null;
|
|
324
|
+
decisionNeeded: string | null;
|
|
325
|
+
targetArtifact: string | null;
|
|
326
|
+
turnStatus: "task_complete" | "turn_aborted";
|
|
327
|
+
repeatFingerprint: string | null;
|
|
328
|
+
}>;
|
|
329
|
+
type HappyOrgTurnReport = z.infer<typeof HappyOrgTurnReportSchema>;
|
|
330
|
+
declare const HappyOrgMetadataSchema: z.ZodObject<{
|
|
331
|
+
taskContext: z.ZodOptional<z.ZodObject<{
|
|
332
|
+
taskId: z.ZodString;
|
|
333
|
+
organizationId: z.ZodString;
|
|
334
|
+
memberAgentId: z.ZodString;
|
|
335
|
+
supervisorAgentId: z.ZodString;
|
|
336
|
+
}, "strip", z.ZodTypeAny, {
|
|
337
|
+
taskId: string;
|
|
338
|
+
organizationId: string;
|
|
339
|
+
memberAgentId: string;
|
|
340
|
+
supervisorAgentId: string;
|
|
341
|
+
}, {
|
|
342
|
+
taskId: string;
|
|
343
|
+
organizationId: string;
|
|
344
|
+
memberAgentId: string;
|
|
345
|
+
supervisorAgentId: string;
|
|
346
|
+
}>>;
|
|
347
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
348
|
+
status: z.ZodEnum<["active", "terminated"]>;
|
|
349
|
+
reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
350
|
+
terminatedAt: z.ZodOptional<z.ZodNumber>;
|
|
351
|
+
reopenedAt: z.ZodOptional<z.ZodNumber>;
|
|
352
|
+
}, "strip", z.ZodTypeAny, {
|
|
353
|
+
status: "active" | "terminated";
|
|
354
|
+
reason?: string | null | undefined;
|
|
355
|
+
terminatedAt?: number | undefined;
|
|
356
|
+
reopenedAt?: number | undefined;
|
|
357
|
+
}, {
|
|
358
|
+
status: "active" | "terminated";
|
|
359
|
+
reason?: string | null | undefined;
|
|
360
|
+
terminatedAt?: number | undefined;
|
|
361
|
+
reopenedAt?: number | undefined;
|
|
362
|
+
}>>;
|
|
363
|
+
activeOwner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
364
|
+
ownerAgentId: z.ZodString;
|
|
365
|
+
ownerRunId: z.ZodString;
|
|
366
|
+
claimedAt: z.ZodNumber;
|
|
367
|
+
}, "strip", z.ZodTypeAny, {
|
|
368
|
+
ownerAgentId: string;
|
|
369
|
+
ownerRunId: string;
|
|
370
|
+
claimedAt: number;
|
|
371
|
+
}, {
|
|
372
|
+
ownerAgentId: string;
|
|
373
|
+
ownerRunId: string;
|
|
374
|
+
claimedAt: number;
|
|
375
|
+
}>>>;
|
|
376
|
+
repeat: z.ZodOptional<z.ZodObject<{
|
|
377
|
+
threshold: z.ZodNumber;
|
|
378
|
+
fingerprints: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
379
|
+
count: z.ZodNumber;
|
|
380
|
+
lastSeenAt: z.ZodNumber;
|
|
381
|
+
}, "strip", z.ZodTypeAny, {
|
|
382
|
+
count: number;
|
|
383
|
+
lastSeenAt: number;
|
|
384
|
+
}, {
|
|
385
|
+
count: number;
|
|
386
|
+
lastSeenAt: number;
|
|
387
|
+
}>>;
|
|
388
|
+
}, "strip", z.ZodTypeAny, {
|
|
389
|
+
threshold: number;
|
|
390
|
+
fingerprints: Record<string, {
|
|
391
|
+
count: number;
|
|
392
|
+
lastSeenAt: number;
|
|
393
|
+
}>;
|
|
394
|
+
}, {
|
|
395
|
+
threshold: number;
|
|
396
|
+
fingerprints: Record<string, {
|
|
397
|
+
count: number;
|
|
398
|
+
lastSeenAt: number;
|
|
399
|
+
}>;
|
|
400
|
+
}>>;
|
|
401
|
+
lastTurnReport: z.ZodOptional<z.ZodObject<{
|
|
402
|
+
taskId: z.ZodString;
|
|
403
|
+
organizationId: z.ZodString;
|
|
404
|
+
memberAgentId: z.ZodString;
|
|
405
|
+
supervisorAgentId: z.ZodString;
|
|
406
|
+
} & {
|
|
407
|
+
turnStatus: z.ZodEnum<["task_complete", "turn_aborted"]>;
|
|
408
|
+
interventionType: z.ZodEnum<["none", "review_needed", "blocker", "decision_needed"]>;
|
|
409
|
+
summary: z.ZodString;
|
|
410
|
+
blockerCode: z.ZodNullable<z.ZodString>;
|
|
411
|
+
decisionNeeded: z.ZodNullable<z.ZodString>;
|
|
412
|
+
targetArtifact: z.ZodNullable<z.ZodString>;
|
|
413
|
+
repeatFingerprint: z.ZodNullable<z.ZodString>;
|
|
414
|
+
}, "strip", z.ZodTypeAny, {
|
|
415
|
+
summary: string;
|
|
416
|
+
taskId: string;
|
|
417
|
+
organizationId: string;
|
|
418
|
+
memberAgentId: string;
|
|
419
|
+
supervisorAgentId: string;
|
|
420
|
+
interventionType: "none" | "review_needed" | "blocker" | "decision_needed";
|
|
421
|
+
blockerCode: string | null;
|
|
422
|
+
decisionNeeded: string | null;
|
|
423
|
+
targetArtifact: string | null;
|
|
424
|
+
turnStatus: "task_complete" | "turn_aborted";
|
|
425
|
+
repeatFingerprint: string | null;
|
|
426
|
+
}, {
|
|
427
|
+
summary: string;
|
|
428
|
+
taskId: string;
|
|
429
|
+
organizationId: string;
|
|
430
|
+
memberAgentId: string;
|
|
431
|
+
supervisorAgentId: string;
|
|
432
|
+
interventionType: "none" | "review_needed" | "blocker" | "decision_needed";
|
|
433
|
+
blockerCode: string | null;
|
|
434
|
+
decisionNeeded: string | null;
|
|
435
|
+
targetArtifact: string | null;
|
|
436
|
+
turnStatus: "task_complete" | "turn_aborted";
|
|
437
|
+
repeatFingerprint: string | null;
|
|
438
|
+
}>>;
|
|
439
|
+
}, "strip", z.ZodTypeAny, {
|
|
440
|
+
taskContext?: {
|
|
441
|
+
taskId: string;
|
|
442
|
+
organizationId: string;
|
|
443
|
+
memberAgentId: string;
|
|
444
|
+
supervisorAgentId: string;
|
|
445
|
+
} | undefined;
|
|
446
|
+
runtime?: {
|
|
447
|
+
status: "active" | "terminated";
|
|
448
|
+
reason?: string | null | undefined;
|
|
449
|
+
terminatedAt?: number | undefined;
|
|
450
|
+
reopenedAt?: number | undefined;
|
|
451
|
+
} | undefined;
|
|
452
|
+
activeOwner?: {
|
|
453
|
+
ownerAgentId: string;
|
|
454
|
+
ownerRunId: string;
|
|
455
|
+
claimedAt: number;
|
|
456
|
+
} | null | undefined;
|
|
457
|
+
repeat?: {
|
|
458
|
+
threshold: number;
|
|
459
|
+
fingerprints: Record<string, {
|
|
460
|
+
count: number;
|
|
461
|
+
lastSeenAt: number;
|
|
462
|
+
}>;
|
|
463
|
+
} | undefined;
|
|
464
|
+
lastTurnReport?: {
|
|
465
|
+
summary: string;
|
|
466
|
+
taskId: string;
|
|
467
|
+
organizationId: string;
|
|
468
|
+
memberAgentId: string;
|
|
469
|
+
supervisorAgentId: string;
|
|
470
|
+
interventionType: "none" | "review_needed" | "blocker" | "decision_needed";
|
|
471
|
+
blockerCode: string | null;
|
|
472
|
+
decisionNeeded: string | null;
|
|
473
|
+
targetArtifact: string | null;
|
|
474
|
+
turnStatus: "task_complete" | "turn_aborted";
|
|
475
|
+
repeatFingerprint: string | null;
|
|
476
|
+
} | undefined;
|
|
477
|
+
}, {
|
|
478
|
+
taskContext?: {
|
|
479
|
+
taskId: string;
|
|
480
|
+
organizationId: string;
|
|
481
|
+
memberAgentId: string;
|
|
482
|
+
supervisorAgentId: string;
|
|
483
|
+
} | undefined;
|
|
484
|
+
runtime?: {
|
|
485
|
+
status: "active" | "terminated";
|
|
486
|
+
reason?: string | null | undefined;
|
|
487
|
+
terminatedAt?: number | undefined;
|
|
488
|
+
reopenedAt?: number | undefined;
|
|
489
|
+
} | undefined;
|
|
490
|
+
activeOwner?: {
|
|
491
|
+
ownerAgentId: string;
|
|
492
|
+
ownerRunId: string;
|
|
493
|
+
claimedAt: number;
|
|
494
|
+
} | null | undefined;
|
|
495
|
+
repeat?: {
|
|
496
|
+
threshold: number;
|
|
497
|
+
fingerprints: Record<string, {
|
|
498
|
+
count: number;
|
|
499
|
+
lastSeenAt: number;
|
|
500
|
+
}>;
|
|
501
|
+
} | undefined;
|
|
502
|
+
lastTurnReport?: {
|
|
503
|
+
summary: string;
|
|
504
|
+
taskId: string;
|
|
505
|
+
organizationId: string;
|
|
506
|
+
memberAgentId: string;
|
|
507
|
+
supervisorAgentId: string;
|
|
508
|
+
interventionType: "none" | "review_needed" | "blocker" | "decision_needed";
|
|
509
|
+
blockerCode: string | null;
|
|
510
|
+
decisionNeeded: string | null;
|
|
511
|
+
targetArtifact: string | null;
|
|
512
|
+
turnStatus: "task_complete" | "turn_aborted";
|
|
513
|
+
repeatFingerprint: string | null;
|
|
514
|
+
} | undefined;
|
|
515
|
+
}>;
|
|
516
|
+
type HappyOrgMetadata = z.infer<typeof HappyOrgMetadataSchema>;
|
|
517
|
+
|
|
291
518
|
/**
|
|
292
519
|
* Permission mode type - includes both Claude and Codex modes
|
|
293
520
|
* Must match MessageMetaSchema.permissionMode enum values
|
|
@@ -399,19 +626,19 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
399
626
|
flavor?: string | null | undefined;
|
|
400
627
|
}>>>;
|
|
401
628
|
}, "strip", z.ZodTypeAny, {
|
|
402
|
-
id: string;
|
|
403
629
|
t: "new-session";
|
|
630
|
+
id: string;
|
|
404
631
|
seq: number;
|
|
405
632
|
metadata: string;
|
|
406
633
|
metadataVersion: number;
|
|
407
634
|
agentState: string | null;
|
|
408
635
|
agentStateVersion: number;
|
|
409
|
-
createdAt?: number | undefined;
|
|
410
|
-
updatedAt?: number | undefined;
|
|
411
636
|
title?: string | null | undefined;
|
|
412
637
|
dataEncryptionKey?: string | null | undefined;
|
|
413
638
|
active?: boolean | undefined;
|
|
414
639
|
activeAt?: number | undefined;
|
|
640
|
+
createdAt?: number | undefined;
|
|
641
|
+
updatedAt?: number | undefined;
|
|
415
642
|
sessionIndex?: {
|
|
416
643
|
machineId?: string | null | undefined;
|
|
417
644
|
hostPid?: number | null | undefined;
|
|
@@ -420,19 +647,19 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
420
647
|
flavor?: string | null | undefined;
|
|
421
648
|
} | null | undefined;
|
|
422
649
|
}, {
|
|
423
|
-
id: string;
|
|
424
650
|
t: "new-session";
|
|
651
|
+
id: string;
|
|
425
652
|
seq: number;
|
|
426
653
|
metadata: string;
|
|
427
654
|
metadataVersion: number;
|
|
428
655
|
agentState: string | null;
|
|
429
656
|
agentStateVersion: number;
|
|
430
|
-
createdAt?: number | undefined;
|
|
431
|
-
updatedAt?: number | undefined;
|
|
432
657
|
title?: string | null | undefined;
|
|
433
658
|
dataEncryptionKey?: string | null | undefined;
|
|
434
659
|
active?: boolean | undefined;
|
|
435
660
|
activeAt?: number | undefined;
|
|
661
|
+
createdAt?: number | undefined;
|
|
662
|
+
updatedAt?: number | undefined;
|
|
436
663
|
sessionIndex?: {
|
|
437
664
|
machineId?: string | null | undefined;
|
|
438
665
|
hostPid?: number | null | undefined;
|
|
@@ -656,22 +883,22 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
656
883
|
createdAt: z.ZodNumber;
|
|
657
884
|
}, "strip", z.ZodTypeAny, {
|
|
658
885
|
id: string;
|
|
659
|
-
createdAt: number;
|
|
660
886
|
seq: number;
|
|
887
|
+
createdAt: number;
|
|
661
888
|
body: {
|
|
662
|
-
id: string;
|
|
663
889
|
t: "new-session";
|
|
890
|
+
id: string;
|
|
664
891
|
seq: number;
|
|
665
892
|
metadata: string;
|
|
666
893
|
metadataVersion: number;
|
|
667
894
|
agentState: string | null;
|
|
668
895
|
agentStateVersion: number;
|
|
669
|
-
createdAt?: number | undefined;
|
|
670
|
-
updatedAt?: number | undefined;
|
|
671
896
|
title?: string | null | undefined;
|
|
672
897
|
dataEncryptionKey?: string | null | undefined;
|
|
673
898
|
active?: boolean | undefined;
|
|
674
899
|
activeAt?: number | undefined;
|
|
900
|
+
createdAt?: number | undefined;
|
|
901
|
+
updatedAt?: number | undefined;
|
|
675
902
|
sessionIndex?: {
|
|
676
903
|
machineId?: string | null | undefined;
|
|
677
904
|
hostPid?: number | null | undefined;
|
|
@@ -732,22 +959,22 @@ declare const UpdateSchema: z.ZodObject<{
|
|
|
732
959
|
};
|
|
733
960
|
}, {
|
|
734
961
|
id: string;
|
|
735
|
-
createdAt: number;
|
|
736
962
|
seq: number;
|
|
963
|
+
createdAt: number;
|
|
737
964
|
body: {
|
|
738
|
-
id: string;
|
|
739
965
|
t: "new-session";
|
|
966
|
+
id: string;
|
|
740
967
|
seq: number;
|
|
741
968
|
metadata: string;
|
|
742
969
|
metadataVersion: number;
|
|
743
970
|
agentState: string | null;
|
|
744
971
|
agentStateVersion: number;
|
|
745
|
-
createdAt?: number | undefined;
|
|
746
|
-
updatedAt?: number | undefined;
|
|
747
972
|
title?: string | null | undefined;
|
|
748
973
|
dataEncryptionKey?: string | null | undefined;
|
|
749
974
|
active?: boolean | undefined;
|
|
750
975
|
activeAt?: number | undefined;
|
|
976
|
+
createdAt?: number | undefined;
|
|
977
|
+
updatedAt?: number | undefined;
|
|
751
978
|
sessionIndex?: {
|
|
752
979
|
machineId?: string | null | undefined;
|
|
753
980
|
hostPid?: number | null | undefined;
|
|
@@ -933,8 +1160,6 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
933
1160
|
}, "strip", z.ZodTypeAny, {
|
|
934
1161
|
id: string;
|
|
935
1162
|
lastChangeSeq: number;
|
|
936
|
-
createdAt?: number | undefined;
|
|
937
|
-
updatedAt?: number | undefined;
|
|
938
1163
|
title?: string | null | undefined;
|
|
939
1164
|
metadata?: string | undefined;
|
|
940
1165
|
metadataVersion?: number | undefined;
|
|
@@ -943,14 +1168,14 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
943
1168
|
dataEncryptionKey?: string | null | undefined;
|
|
944
1169
|
active?: boolean | undefined;
|
|
945
1170
|
activeAt?: number | undefined;
|
|
1171
|
+
createdAt?: number | undefined;
|
|
1172
|
+
updatedAt?: number | undefined;
|
|
946
1173
|
pendingCount?: number | undefined;
|
|
947
1174
|
pendingVersion?: number | undefined;
|
|
948
1175
|
deleted?: boolean | undefined;
|
|
949
1176
|
}, {
|
|
950
1177
|
id: string;
|
|
951
1178
|
lastChangeSeq: number;
|
|
952
|
-
createdAt?: number | undefined;
|
|
953
|
-
updatedAt?: number | undefined;
|
|
954
1179
|
title?: string | null | undefined;
|
|
955
1180
|
metadata?: string | undefined;
|
|
956
1181
|
metadataVersion?: number | undefined;
|
|
@@ -959,6 +1184,8 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
959
1184
|
dataEncryptionKey?: string | null | undefined;
|
|
960
1185
|
active?: boolean | undefined;
|
|
961
1186
|
activeAt?: number | undefined;
|
|
1187
|
+
createdAt?: number | undefined;
|
|
1188
|
+
updatedAt?: number | undefined;
|
|
962
1189
|
pendingCount?: number | undefined;
|
|
963
1190
|
pendingVersion?: number | undefined;
|
|
964
1191
|
deleted?: boolean | undefined;
|
|
@@ -986,9 +1213,9 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
986
1213
|
t: "encrypted";
|
|
987
1214
|
};
|
|
988
1215
|
id: string;
|
|
1216
|
+
seq: number;
|
|
989
1217
|
createdAt: number;
|
|
990
1218
|
updatedAt: number;
|
|
991
|
-
seq: number;
|
|
992
1219
|
localId: string | null;
|
|
993
1220
|
}, {
|
|
994
1221
|
content: {
|
|
@@ -996,9 +1223,9 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
996
1223
|
t: "encrypted";
|
|
997
1224
|
};
|
|
998
1225
|
id: string;
|
|
1226
|
+
seq: number;
|
|
999
1227
|
createdAt: number;
|
|
1000
1228
|
updatedAt: number;
|
|
1001
|
-
seq: number;
|
|
1002
1229
|
localId: string | null;
|
|
1003
1230
|
}>, "many">;
|
|
1004
1231
|
truncated: z.ZodBoolean;
|
|
@@ -1010,9 +1237,9 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
1010
1237
|
t: "encrypted";
|
|
1011
1238
|
};
|
|
1012
1239
|
id: string;
|
|
1240
|
+
seq: number;
|
|
1013
1241
|
createdAt: number;
|
|
1014
1242
|
updatedAt: number;
|
|
1015
|
-
seq: number;
|
|
1016
1243
|
localId: string | null;
|
|
1017
1244
|
}[];
|
|
1018
1245
|
truncated: boolean;
|
|
@@ -1024,9 +1251,9 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
1024
1251
|
t: "encrypted";
|
|
1025
1252
|
};
|
|
1026
1253
|
id: string;
|
|
1254
|
+
seq: number;
|
|
1027
1255
|
createdAt: number;
|
|
1028
1256
|
updatedAt: number;
|
|
1029
|
-
seq: number;
|
|
1030
1257
|
localId: string | null;
|
|
1031
1258
|
}[];
|
|
1032
1259
|
truncated: boolean;
|
|
@@ -1045,8 +1272,6 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
1045
1272
|
session: {
|
|
1046
1273
|
id: string;
|
|
1047
1274
|
lastChangeSeq: number;
|
|
1048
|
-
createdAt?: number | undefined;
|
|
1049
|
-
updatedAt?: number | undefined;
|
|
1050
1275
|
title?: string | null | undefined;
|
|
1051
1276
|
metadata?: string | undefined;
|
|
1052
1277
|
metadataVersion?: number | undefined;
|
|
@@ -1055,6 +1280,8 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
1055
1280
|
dataEncryptionKey?: string | null | undefined;
|
|
1056
1281
|
active?: boolean | undefined;
|
|
1057
1282
|
activeAt?: number | undefined;
|
|
1283
|
+
createdAt?: number | undefined;
|
|
1284
|
+
updatedAt?: number | undefined;
|
|
1058
1285
|
pendingCount?: number | undefined;
|
|
1059
1286
|
pendingVersion?: number | undefined;
|
|
1060
1287
|
deleted?: boolean | undefined;
|
|
@@ -1066,9 +1293,9 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
1066
1293
|
t: "encrypted";
|
|
1067
1294
|
};
|
|
1068
1295
|
id: string;
|
|
1296
|
+
seq: number;
|
|
1069
1297
|
createdAt: number;
|
|
1070
1298
|
updatedAt: number;
|
|
1071
|
-
seq: number;
|
|
1072
1299
|
localId: string | null;
|
|
1073
1300
|
}[];
|
|
1074
1301
|
truncated: boolean;
|
|
@@ -1087,8 +1314,6 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
1087
1314
|
session: {
|
|
1088
1315
|
id: string;
|
|
1089
1316
|
lastChangeSeq: number;
|
|
1090
|
-
createdAt?: number | undefined;
|
|
1091
|
-
updatedAt?: number | undefined;
|
|
1092
1317
|
title?: string | null | undefined;
|
|
1093
1318
|
metadata?: string | undefined;
|
|
1094
1319
|
metadataVersion?: number | undefined;
|
|
@@ -1097,6 +1322,8 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
1097
1322
|
dataEncryptionKey?: string | null | undefined;
|
|
1098
1323
|
active?: boolean | undefined;
|
|
1099
1324
|
activeAt?: number | undefined;
|
|
1325
|
+
createdAt?: number | undefined;
|
|
1326
|
+
updatedAt?: number | undefined;
|
|
1100
1327
|
pendingCount?: number | undefined;
|
|
1101
1328
|
pendingVersion?: number | undefined;
|
|
1102
1329
|
deleted?: boolean | undefined;
|
|
@@ -1108,9 +1335,9 @@ declare const ProtocolV3SessionSnapshotResponseSchema: z.ZodObject<{
|
|
|
1108
1335
|
t: "encrypted";
|
|
1109
1336
|
};
|
|
1110
1337
|
id: string;
|
|
1338
|
+
seq: number;
|
|
1111
1339
|
createdAt: number;
|
|
1112
1340
|
updatedAt: number;
|
|
1113
|
-
seq: number;
|
|
1114
1341
|
localId: string | null;
|
|
1115
1342
|
}[];
|
|
1116
1343
|
truncated: boolean;
|
|
@@ -1226,8 +1453,6 @@ declare const ProtocolV3SessionChangesResponseSchema: z.ZodObject<{
|
|
|
1226
1453
|
}, "strip", z.ZodTypeAny, {
|
|
1227
1454
|
id: string;
|
|
1228
1455
|
lastChangeSeq: number;
|
|
1229
|
-
createdAt?: number | undefined;
|
|
1230
|
-
updatedAt?: number | undefined;
|
|
1231
1456
|
title?: string | null | undefined;
|
|
1232
1457
|
metadata?: string | undefined;
|
|
1233
1458
|
metadataVersion?: number | undefined;
|
|
@@ -1236,14 +1461,14 @@ declare const ProtocolV3SessionChangesResponseSchema: z.ZodObject<{
|
|
|
1236
1461
|
dataEncryptionKey?: string | null | undefined;
|
|
1237
1462
|
active?: boolean | undefined;
|
|
1238
1463
|
activeAt?: number | undefined;
|
|
1464
|
+
createdAt?: number | undefined;
|
|
1465
|
+
updatedAt?: number | undefined;
|
|
1239
1466
|
pendingCount?: number | undefined;
|
|
1240
1467
|
pendingVersion?: number | undefined;
|
|
1241
1468
|
deleted?: boolean | undefined;
|
|
1242
1469
|
}, {
|
|
1243
1470
|
id: string;
|
|
1244
1471
|
lastChangeSeq: number;
|
|
1245
|
-
createdAt?: number | undefined;
|
|
1246
|
-
updatedAt?: number | undefined;
|
|
1247
1472
|
title?: string | null | undefined;
|
|
1248
1473
|
metadata?: string | undefined;
|
|
1249
1474
|
metadataVersion?: number | undefined;
|
|
@@ -1252,6 +1477,8 @@ declare const ProtocolV3SessionChangesResponseSchema: z.ZodObject<{
|
|
|
1252
1477
|
dataEncryptionKey?: string | null | undefined;
|
|
1253
1478
|
active?: boolean | undefined;
|
|
1254
1479
|
activeAt?: number | undefined;
|
|
1480
|
+
createdAt?: number | undefined;
|
|
1481
|
+
updatedAt?: number | undefined;
|
|
1255
1482
|
pendingCount?: number | undefined;
|
|
1256
1483
|
pendingVersion?: number | undefined;
|
|
1257
1484
|
deleted?: boolean | undefined;
|
|
@@ -1298,8 +1525,6 @@ declare const ProtocolV3SessionChangesResponseSchema: z.ZodObject<{
|
|
|
1298
1525
|
session: {
|
|
1299
1526
|
id: string;
|
|
1300
1527
|
lastChangeSeq: number;
|
|
1301
|
-
createdAt?: number | undefined;
|
|
1302
|
-
updatedAt?: number | undefined;
|
|
1303
1528
|
title?: string | null | undefined;
|
|
1304
1529
|
metadata?: string | undefined;
|
|
1305
1530
|
metadataVersion?: number | undefined;
|
|
@@ -1308,6 +1533,8 @@ declare const ProtocolV3SessionChangesResponseSchema: z.ZodObject<{
|
|
|
1308
1533
|
dataEncryptionKey?: string | null | undefined;
|
|
1309
1534
|
active?: boolean | undefined;
|
|
1310
1535
|
activeAt?: number | undefined;
|
|
1536
|
+
createdAt?: number | undefined;
|
|
1537
|
+
updatedAt?: number | undefined;
|
|
1311
1538
|
pendingCount?: number | undefined;
|
|
1312
1539
|
pendingVersion?: number | undefined;
|
|
1313
1540
|
deleted?: boolean | undefined;
|
|
@@ -1336,8 +1563,6 @@ declare const ProtocolV3SessionChangesResponseSchema: z.ZodObject<{
|
|
|
1336
1563
|
session: {
|
|
1337
1564
|
id: string;
|
|
1338
1565
|
lastChangeSeq: number;
|
|
1339
|
-
createdAt?: number | undefined;
|
|
1340
|
-
updatedAt?: number | undefined;
|
|
1341
1566
|
title?: string | null | undefined;
|
|
1342
1567
|
metadata?: string | undefined;
|
|
1343
1568
|
metadataVersion?: number | undefined;
|
|
@@ -1346,6 +1571,8 @@ declare const ProtocolV3SessionChangesResponseSchema: z.ZodObject<{
|
|
|
1346
1571
|
dataEncryptionKey?: string | null | undefined;
|
|
1347
1572
|
active?: boolean | undefined;
|
|
1348
1573
|
activeAt?: number | undefined;
|
|
1574
|
+
createdAt?: number | undefined;
|
|
1575
|
+
updatedAt?: number | undefined;
|
|
1349
1576
|
pendingCount?: number | undefined;
|
|
1350
1577
|
pendingVersion?: number | undefined;
|
|
1351
1578
|
deleted?: boolean | undefined;
|
|
@@ -1385,6 +1612,71 @@ declare const UserMessageSchema: z.ZodObject<{
|
|
|
1385
1612
|
appendSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1386
1613
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
1387
1614
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
1615
|
+
happyOrg: z.ZodOptional<z.ZodObject<{
|
|
1616
|
+
taskContext: z.ZodOptional<z.ZodObject<{
|
|
1617
|
+
taskId: z.ZodString;
|
|
1618
|
+
organizationId: z.ZodString;
|
|
1619
|
+
memberAgentId: z.ZodString;
|
|
1620
|
+
supervisorAgentId: z.ZodString;
|
|
1621
|
+
}, "strip", z.ZodTypeAny, {
|
|
1622
|
+
taskId: string;
|
|
1623
|
+
organizationId: string;
|
|
1624
|
+
memberAgentId: string;
|
|
1625
|
+
supervisorAgentId: string;
|
|
1626
|
+
}, {
|
|
1627
|
+
taskId: string;
|
|
1628
|
+
organizationId: string;
|
|
1629
|
+
memberAgentId: string;
|
|
1630
|
+
supervisorAgentId: string;
|
|
1631
|
+
}>>;
|
|
1632
|
+
control: z.ZodOptional<z.ZodObject<{
|
|
1633
|
+
action: z.ZodEnum<["terminate", "reopen"]>;
|
|
1634
|
+
reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1635
|
+
newContext: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1636
|
+
newDecision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1637
|
+
newResource: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1638
|
+
}, "strip", z.ZodTypeAny, {
|
|
1639
|
+
action: "terminate" | "reopen";
|
|
1640
|
+
reason?: string | null | undefined;
|
|
1641
|
+
newContext?: string | null | undefined;
|
|
1642
|
+
newDecision?: string | null | undefined;
|
|
1643
|
+
newResource?: string | null | undefined;
|
|
1644
|
+
}, {
|
|
1645
|
+
action: "terminate" | "reopen";
|
|
1646
|
+
reason?: string | null | undefined;
|
|
1647
|
+
newContext?: string | null | undefined;
|
|
1648
|
+
newDecision?: string | null | undefined;
|
|
1649
|
+
newResource?: string | null | undefined;
|
|
1650
|
+
}>>;
|
|
1651
|
+
}, "strip", z.ZodTypeAny, {
|
|
1652
|
+
taskContext?: {
|
|
1653
|
+
taskId: string;
|
|
1654
|
+
organizationId: string;
|
|
1655
|
+
memberAgentId: string;
|
|
1656
|
+
supervisorAgentId: string;
|
|
1657
|
+
} | undefined;
|
|
1658
|
+
control?: {
|
|
1659
|
+
action: "terminate" | "reopen";
|
|
1660
|
+
reason?: string | null | undefined;
|
|
1661
|
+
newContext?: string | null | undefined;
|
|
1662
|
+
newDecision?: string | null | undefined;
|
|
1663
|
+
newResource?: string | null | undefined;
|
|
1664
|
+
} | undefined;
|
|
1665
|
+
}, {
|
|
1666
|
+
taskContext?: {
|
|
1667
|
+
taskId: string;
|
|
1668
|
+
organizationId: string;
|
|
1669
|
+
memberAgentId: string;
|
|
1670
|
+
supervisorAgentId: string;
|
|
1671
|
+
} | undefined;
|
|
1672
|
+
control?: {
|
|
1673
|
+
action: "terminate" | "reopen";
|
|
1674
|
+
reason?: string | null | undefined;
|
|
1675
|
+
newContext?: string | null | undefined;
|
|
1676
|
+
newDecision?: string | null | undefined;
|
|
1677
|
+
newResource?: string | null | undefined;
|
|
1678
|
+
} | undefined;
|
|
1679
|
+
}>>;
|
|
1388
1680
|
}, "strip", z.ZodTypeAny, {
|
|
1389
1681
|
model?: string | null | undefined;
|
|
1390
1682
|
sentFrom?: string | undefined;
|
|
@@ -1394,6 +1686,21 @@ declare const UserMessageSchema: z.ZodObject<{
|
|
|
1394
1686
|
appendSystemPrompt?: string | null | undefined;
|
|
1395
1687
|
allowedTools?: string[] | null | undefined;
|
|
1396
1688
|
disallowedTools?: string[] | null | undefined;
|
|
1689
|
+
happyOrg?: {
|
|
1690
|
+
taskContext?: {
|
|
1691
|
+
taskId: string;
|
|
1692
|
+
organizationId: string;
|
|
1693
|
+
memberAgentId: string;
|
|
1694
|
+
supervisorAgentId: string;
|
|
1695
|
+
} | undefined;
|
|
1696
|
+
control?: {
|
|
1697
|
+
action: "terminate" | "reopen";
|
|
1698
|
+
reason?: string | null | undefined;
|
|
1699
|
+
newContext?: string | null | undefined;
|
|
1700
|
+
newDecision?: string | null | undefined;
|
|
1701
|
+
newResource?: string | null | undefined;
|
|
1702
|
+
} | undefined;
|
|
1703
|
+
} | undefined;
|
|
1397
1704
|
}, {
|
|
1398
1705
|
model?: string | null | undefined;
|
|
1399
1706
|
sentFrom?: string | undefined;
|
|
@@ -1403,6 +1710,21 @@ declare const UserMessageSchema: z.ZodObject<{
|
|
|
1403
1710
|
appendSystemPrompt?: string | null | undefined;
|
|
1404
1711
|
allowedTools?: string[] | null | undefined;
|
|
1405
1712
|
disallowedTools?: string[] | null | undefined;
|
|
1713
|
+
happyOrg?: {
|
|
1714
|
+
taskContext?: {
|
|
1715
|
+
taskId: string;
|
|
1716
|
+
organizationId: string;
|
|
1717
|
+
memberAgentId: string;
|
|
1718
|
+
supervisorAgentId: string;
|
|
1719
|
+
} | undefined;
|
|
1720
|
+
control?: {
|
|
1721
|
+
action: "terminate" | "reopen";
|
|
1722
|
+
reason?: string | null | undefined;
|
|
1723
|
+
newContext?: string | null | undefined;
|
|
1724
|
+
newDecision?: string | null | undefined;
|
|
1725
|
+
newResource?: string | null | undefined;
|
|
1726
|
+
} | undefined;
|
|
1727
|
+
} | undefined;
|
|
1406
1728
|
}>>;
|
|
1407
1729
|
}, "strip", z.ZodTypeAny, {
|
|
1408
1730
|
content: {
|
|
@@ -1420,6 +1742,21 @@ declare const UserMessageSchema: z.ZodObject<{
|
|
|
1420
1742
|
appendSystemPrompt?: string | null | undefined;
|
|
1421
1743
|
allowedTools?: string[] | null | undefined;
|
|
1422
1744
|
disallowedTools?: string[] | null | undefined;
|
|
1745
|
+
happyOrg?: {
|
|
1746
|
+
taskContext?: {
|
|
1747
|
+
taskId: string;
|
|
1748
|
+
organizationId: string;
|
|
1749
|
+
memberAgentId: string;
|
|
1750
|
+
supervisorAgentId: string;
|
|
1751
|
+
} | undefined;
|
|
1752
|
+
control?: {
|
|
1753
|
+
action: "terminate" | "reopen";
|
|
1754
|
+
reason?: string | null | undefined;
|
|
1755
|
+
newContext?: string | null | undefined;
|
|
1756
|
+
newDecision?: string | null | undefined;
|
|
1757
|
+
newResource?: string | null | undefined;
|
|
1758
|
+
} | undefined;
|
|
1759
|
+
} | undefined;
|
|
1423
1760
|
} | undefined;
|
|
1424
1761
|
}, {
|
|
1425
1762
|
content: {
|
|
@@ -1437,6 +1774,21 @@ declare const UserMessageSchema: z.ZodObject<{
|
|
|
1437
1774
|
appendSystemPrompt?: string | null | undefined;
|
|
1438
1775
|
allowedTools?: string[] | null | undefined;
|
|
1439
1776
|
disallowedTools?: string[] | null | undefined;
|
|
1777
|
+
happyOrg?: {
|
|
1778
|
+
taskContext?: {
|
|
1779
|
+
taskId: string;
|
|
1780
|
+
organizationId: string;
|
|
1781
|
+
memberAgentId: string;
|
|
1782
|
+
supervisorAgentId: string;
|
|
1783
|
+
} | undefined;
|
|
1784
|
+
control?: {
|
|
1785
|
+
action: "terminate" | "reopen";
|
|
1786
|
+
reason?: string | null | undefined;
|
|
1787
|
+
newContext?: string | null | undefined;
|
|
1788
|
+
newDecision?: string | null | undefined;
|
|
1789
|
+
newResource?: string | null | undefined;
|
|
1790
|
+
} | undefined;
|
|
1791
|
+
} | undefined;
|
|
1440
1792
|
} | undefined;
|
|
1441
1793
|
}>;
|
|
1442
1794
|
type UserMessage = z.infer<typeof UserMessageSchema>;
|
|
@@ -1470,6 +1822,7 @@ type Metadata = {
|
|
|
1470
1822
|
flavor?: string;
|
|
1471
1823
|
machineOnline?: boolean;
|
|
1472
1824
|
machineOnlineAt?: number;
|
|
1825
|
+
happyOrg?: HappyOrgMetadata;
|
|
1473
1826
|
};
|
|
1474
1827
|
type AgentState = {
|
|
1475
1828
|
controlledByUser?: boolean | null | undefined;
|
|
@@ -1648,6 +2001,10 @@ type ACPMessageData = {
|
|
|
1648
2001
|
} | {
|
|
1649
2002
|
type: 'turn_aborted';
|
|
1650
2003
|
id: string;
|
|
2004
|
+
} | {
|
|
2005
|
+
type: 'turn-report';
|
|
2006
|
+
id: string;
|
|
2007
|
+
report: HappyOrgTurnReport;
|
|
1651
2008
|
} | {
|
|
1652
2009
|
type: 'permission-request';
|
|
1653
2010
|
permissionId: string;
|