happy-imou-cloud 2.0.19 → 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-CTaamD5D.cjs → BaseReasoningProcessor-0nj-PMFc.cjs} +3 -3
- package/dist/{BaseReasoningProcessor-pY3tfQ0E.mjs → BaseReasoningProcessor-DnVC7liC.mjs} +3 -3
- package/dist/{ProviderSelectionHandler-CYs2k-z1.cjs → ProviderSelectionHandler-Bafuy28L.cjs} +2 -2
- package/dist/{ProviderSelectionHandler-C8pLBbE4.mjs → ProviderSelectionHandler-R-2r7ItM.mjs} +2 -2
- package/dist/{api-B922KGF8.mjs → api-DJe9WP9M.mjs} +77 -4
- package/dist/{api-DmpNsXS1.cjs → api-MGlKcEf3.cjs} +78 -3
- package/dist/{command-uX614XS4.mjs → command-CfyFnMv2.mjs} +3 -3
- package/dist/{command-B4L9Deq_.cjs → command-DAlFmWmr.cjs} +3 -3
- package/dist/{index-BkAY8k_1.mjs → index-CHXCgpwi.mjs} +48 -15
- package/dist/{index-D0VIxWJC.cjs → index-CgVjDJpt.cjs} +51 -18
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.cts +357 -0
- package/dist/lib.d.mts +357 -0
- package/dist/lib.mjs +1 -1
- package/dist/{persistence-BfGHkCeJ.mjs → persistence-CkP90vEt.mjs} +1 -1
- package/dist/{persistence-ZZDZ6dl9.cjs → persistence-DLFUNI9q.cjs} +1 -1
- package/dist/{registerKillSessionHandler-DZ1sXUOg.cjs → registerKillSessionHandler-Cs_INk4A.cjs} +356 -3
- package/dist/{registerKillSessionHandler-BqeqMcNV.mjs → registerKillSessionHandler-DsHTZDsU.mjs} +354 -4
- package/dist/{runClaude-taQoQffg.cjs → runClaude-BGSgcyUp.cjs} +72 -9
- package/dist/{runClaude-CVBty_g7.mjs → runClaude-DAQAEmHe.mjs} +72 -9
- package/dist/{runCodex-jA1hK-nj.mjs → runCodex-B2UpSn82.mjs} +102 -14
- package/dist/{runCodex-JcA8vuC7.cjs → runCodex-earICaxw.cjs} +102 -14
- package/dist/{runGemini-BqKLrnid.mjs → runGemini-BBUmH1Qh.mjs} +73 -9
- package/dist/{runGemini-DZ0x4eaa.cjs → runGemini-D5RAIaR0.cjs} +73 -9
- package/package.json +1 -1
- package/scripts/release-smoke.mjs +20 -4
package/dist/lib.d.mts
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
|
|
@@ -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;
|
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-
|
|
1
|
+
export { A as ApiClient, a as ApiSessionClient, c as configuration, l as logger } from './api-DJe9WP9M.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
|
import { unlink, readFile, mkdir, open, stat, writeFile, rename } from 'node:fs/promises';
|
|
2
2
|
import { existsSync, unlinkSync, readdirSync, constants, writeFileSync, readFileSync } from 'node:fs';
|
|
3
3
|
import { join, dirname } from 'node:path';
|
|
4
|
-
import { c as configuration, l as logger, e as encodeBase64 } from './api-
|
|
4
|
+
import { c as configuration, l as logger, e as encodeBase64 } from './api-DJe9WP9M.mjs';
|
|
5
5
|
import * as z from 'zod';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import 'chalk';
|