@intentic/sandbox-contract 1.348.0 → 1.350.0
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/contracts/agents.contract.d.ts +493 -0
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.js +19 -1
- package/dist/contracts/agents.contract.js.map +1 -1
- package/dist/contracts/device.contract.d.ts +7 -0
- package/dist/contracts/device.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.d.ts +13 -0
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/events/system-events.d.ts +4 -0
- package/dist/events/system-events.d.ts.map +1 -1
- package/dist/ids/conversation-ids.d.ts +3 -0
- package/dist/ids/conversation-ids.d.ts.map +1 -1
- package/dist/ids/conversation-ids.js +4 -0
- package/dist/ids/conversation-ids.js.map +1 -1
- package/dist/index.d.ts +506 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/protocol/raw/raw-json-routes.d.ts +7 -0
- package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
- package/dist/schemas/agent-people.d.ts +23 -0
- package/dist/schemas/agent-people.d.ts.map +1 -0
- package/dist/schemas/agent-people.js +22 -0
- package/dist/schemas/agent-people.js.map +1 -0
- package/dist/schemas/agents-list.d.ts +456 -0
- package/dist/schemas/agents-list.d.ts.map +1 -1
- package/dist/schemas/agents-list.js +8 -0
- package/dist/schemas/agents-list.js.map +1 -1
- package/dist/schemas/agents.d.ts +7 -21
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/agents.js +6 -20
- package/dist/schemas/agents.js.map +1 -1
- package/dist/schemas/conversation-links.d.ts +1 -0
- package/dist/schemas/conversation-links.d.ts.map +1 -1
- package/dist/schemas/conversation-links.js +1 -0
- package/dist/schemas/conversation-links.js.map +1 -1
- package/dist/schemas/device-folder.d.ts +8 -0
- package/dist/schemas/device-folder.d.ts.map +1 -1
- package/dist/schemas/device-folder.js +7 -0
- package/dist/schemas/device-folder.js.map +1 -1
- package/dist/schemas/devices.d.ts +37 -1
- package/dist/schemas/devices.d.ts.map +1 -1
- package/dist/schemas/devices.js +4 -2
- package/dist/schemas/devices.js.map +1 -1
- package/dist/state/workspace-state.d.ts +6 -0
- package/dist/state/workspace-state.d.ts.map +1 -1
- package/dist/state/workspace-state.js +2 -6
- package/dist/state/workspace-state.js.map +1 -1
- package/package.json +5 -5
- package/src/contracts/agents.contract.ts +24 -1
- package/src/ids/conversation-ids.test.ts +15 -0
- package/src/ids/conversation-ids.ts +11 -0
- package/src/schemas/agent-people.ts +36 -0
- package/src/schemas/agents-list.ts +16 -0
- package/src/schemas/agents.ts +10 -31
- package/src/schemas/conversation-links.ts +5 -0
- package/src/schemas/device-folder.ts +14 -0
- package/src/schemas/devices.ts +9 -9
- package/src/state/workspace-state.test.ts +2 -0
- package/src/state/workspace-state.ts +5 -6
|
@@ -124,7 +124,9 @@ export declare const AgentsListSchema: z.ZodObject<{
|
|
|
124
124
|
test: "test";
|
|
125
125
|
}>;
|
|
126
126
|
at: z.ZodNumber;
|
|
127
|
+
by: z.ZodOptional<z.ZodString>;
|
|
127
128
|
}, z.core.$strip>>;
|
|
129
|
+
home: z.ZodOptional<z.ZodLiteral<true>>;
|
|
128
130
|
base: z.ZodOptional<z.ZodString>;
|
|
129
131
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
130
132
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -472,4 +474,458 @@ export declare const AgentsAttentionSchema: z.ZodObject<{
|
|
|
472
474
|
working: z.ZodNumber;
|
|
473
475
|
}, z.core.$strip>;
|
|
474
476
|
export type AgentsAttention = z.infer<typeof AgentsAttentionSchema>;
|
|
477
|
+
export declare const HomeConversationSchema: z.ZodObject<{
|
|
478
|
+
conversationId: z.ZodString;
|
|
479
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
480
|
+
id: z.ZodString;
|
|
481
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
482
|
+
title: z.ZodOptional<z.ZodString>;
|
|
483
|
+
titleAction: z.ZodOptional<z.ZodString>;
|
|
484
|
+
status: z.ZodEnum<{
|
|
485
|
+
awaiting: "awaiting";
|
|
486
|
+
conflict: "conflict";
|
|
487
|
+
dismissing: "dismissing";
|
|
488
|
+
error: "error";
|
|
489
|
+
idle: "idle";
|
|
490
|
+
interrupted: "interrupted";
|
|
491
|
+
landed: "landed";
|
|
492
|
+
landing: "landing";
|
|
493
|
+
ready: "ready";
|
|
494
|
+
resuming: "resuming";
|
|
495
|
+
running: "running";
|
|
496
|
+
stopped: "stopped";
|
|
497
|
+
stopping: "stopping";
|
|
498
|
+
}>;
|
|
499
|
+
failure: z.ZodOptional<z.ZodString>;
|
|
500
|
+
failureCode: z.ZodOptional<z.ZodString>;
|
|
501
|
+
failureOwn: z.ZodOptional<z.ZodBoolean>;
|
|
502
|
+
limitResetsAt: z.ZodOptional<z.ZodNumber>;
|
|
503
|
+
limitHeld: z.ZodOptional<z.ZodBoolean>;
|
|
504
|
+
limitScheduled: z.ZodOptional<z.ZodBoolean>;
|
|
505
|
+
limitMoving: z.ZodOptional<z.ZodString>;
|
|
506
|
+
limitNextAt: z.ZodOptional<z.ZodNumber>;
|
|
507
|
+
next: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
508
|
+
kind: z.ZodLiteral<"rerun">;
|
|
509
|
+
at: z.ZodNumber;
|
|
510
|
+
onto: z.ZodOptional<z.ZodString>;
|
|
511
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
512
|
+
kind: z.ZodLiteral<"room">;
|
|
513
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
514
|
+
kind: z.ZodLiteral<"send">;
|
|
515
|
+
at: z.ZodNumber;
|
|
516
|
+
count: z.ZodNumber;
|
|
517
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
518
|
+
kind: z.ZodLiteral<"land">;
|
|
519
|
+
after: z.ZodString;
|
|
520
|
+
count: z.ZodNumber;
|
|
521
|
+
}, z.core.$strip>], "kind">>;
|
|
522
|
+
provider: z.ZodString;
|
|
523
|
+
harness: z.ZodEnum<{
|
|
524
|
+
"claude-code": "claude-code";
|
|
525
|
+
codex: "codex";
|
|
526
|
+
muse: "muse";
|
|
527
|
+
native: "native";
|
|
528
|
+
opencode: "opencode";
|
|
529
|
+
pi: "pi";
|
|
530
|
+
vendor: "vendor";
|
|
531
|
+
}>;
|
|
532
|
+
runner: z.ZodOptional<z.ZodString>;
|
|
533
|
+
startIn: z.ZodOptional<z.ZodString>;
|
|
534
|
+
actsAs: z.ZodOptional<z.ZodString>;
|
|
535
|
+
lastActsAs: z.ZodOptional<z.ZodString>;
|
|
536
|
+
model: z.ZodOptional<z.ZodString>;
|
|
537
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
538
|
+
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
539
|
+
fast: z.ZodOptional<z.ZodBoolean>;
|
|
540
|
+
account: z.ZodOptional<z.ZodString>;
|
|
541
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
542
|
+
autoLand: z.ZodOptional<z.ZodBoolean>;
|
|
543
|
+
limitPolicy: z.ZodOptional<z.ZodEnum<{
|
|
544
|
+
move: "move";
|
|
545
|
+
resend: "resend";
|
|
546
|
+
wait: "wait";
|
|
547
|
+
}>>;
|
|
548
|
+
outagePolicy: z.ZodOptional<z.ZodEnum<{
|
|
549
|
+
retry: "retry";
|
|
550
|
+
wait: "wait";
|
|
551
|
+
}>>;
|
|
552
|
+
stopPolicy: z.ZodOptional<z.ZodEnum<{
|
|
553
|
+
retry: "retry";
|
|
554
|
+
wait: "wait";
|
|
555
|
+
}>>;
|
|
556
|
+
memoryPolicy: z.ZodOptional<z.ZodEnum<{
|
|
557
|
+
resend: "resend";
|
|
558
|
+
wait: "wait";
|
|
559
|
+
}>>;
|
|
560
|
+
landRequested: z.ZodOptional<z.ZodObject<{
|
|
561
|
+
email: z.ZodString;
|
|
562
|
+
name: z.ZodOptional<z.ZodString>;
|
|
563
|
+
at: z.ZodNumber;
|
|
564
|
+
}, z.core.$strip>>;
|
|
565
|
+
reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
566
|
+
emoji: z.ZodString;
|
|
567
|
+
by: z.ZodArray<z.ZodObject<{
|
|
568
|
+
email: z.ZodString;
|
|
569
|
+
name: z.ZodOptional<z.ZodString>;
|
|
570
|
+
at: z.ZodNumber;
|
|
571
|
+
}, z.core.$strip>>;
|
|
572
|
+
}, z.core.$strip>>>;
|
|
573
|
+
origin: z.ZodOptional<z.ZodObject<{
|
|
574
|
+
automationId: z.ZodString;
|
|
575
|
+
provider: z.ZodString;
|
|
576
|
+
channelId: z.ZodOptional<z.ZodString>;
|
|
577
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
578
|
+
author: z.ZodOptional<z.ZodString>;
|
|
579
|
+
}, z.core.$strip>>;
|
|
580
|
+
startedBy: z.ZodOptional<z.ZodString>;
|
|
581
|
+
areas: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
582
|
+
owner: z.ZodOptional<z.ZodObject<{
|
|
583
|
+
email: z.ZodString;
|
|
584
|
+
name: z.ZodOptional<z.ZodString>;
|
|
585
|
+
since: z.ZodNumber;
|
|
586
|
+
}, z.core.$strip>>;
|
|
587
|
+
forkedFrom: z.ZodOptional<z.ZodObject<{
|
|
588
|
+
conversationId: z.ZodString;
|
|
589
|
+
index: z.ZodNumber;
|
|
590
|
+
files: z.ZodEnum<{
|
|
591
|
+
now: "now";
|
|
592
|
+
then: "then";
|
|
593
|
+
}>;
|
|
594
|
+
}, z.core.$strip>>;
|
|
595
|
+
fresh: z.ZodOptional<z.ZodObject<{
|
|
596
|
+
of: z.ZodString;
|
|
597
|
+
kind: z.ZodEnum<{
|
|
598
|
+
ask: "ask";
|
|
599
|
+
review: "review";
|
|
600
|
+
test: "test";
|
|
601
|
+
}>;
|
|
602
|
+
at: z.ZodNumber;
|
|
603
|
+
by: z.ZodOptional<z.ZodString>;
|
|
604
|
+
}, z.core.$strip>>;
|
|
605
|
+
home: z.ZodOptional<z.ZodLiteral<true>>;
|
|
606
|
+
base: z.ZodOptional<z.ZodString>;
|
|
607
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
608
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
609
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
610
|
+
contextTokens: z.ZodOptional<z.ZodNumber>;
|
|
611
|
+
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
612
|
+
promptCache: z.ZodOptional<z.ZodObject<{
|
|
613
|
+
at: z.ZodNumber;
|
|
614
|
+
ttlMs: z.ZodNumber;
|
|
615
|
+
rollsAt: z.ZodOptional<z.ZodNumber>;
|
|
616
|
+
keepableUntil: z.ZodOptional<z.ZodNumber>;
|
|
617
|
+
}, z.core.$strip>>;
|
|
618
|
+
keepWarm: z.ZodOptional<z.ZodObject<{
|
|
619
|
+
since: z.ZodNumber;
|
|
620
|
+
until: z.ZodNumber;
|
|
621
|
+
refreshes: z.ZodNumber;
|
|
622
|
+
readTokens: z.ZodOptional<z.ZodNumber>;
|
|
623
|
+
ended: z.ZodOptional<z.ZodObject<{
|
|
624
|
+
at: z.ZodNumber;
|
|
625
|
+
reason: z.ZodEnum<{
|
|
626
|
+
allowance: "allowance";
|
|
627
|
+
changed: "changed";
|
|
628
|
+
cold: "cold";
|
|
629
|
+
elapsed: "elapsed";
|
|
630
|
+
failed: "failed";
|
|
631
|
+
}>;
|
|
632
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
633
|
+
}, z.core.$strip>>;
|
|
634
|
+
}, z.core.$strip>>;
|
|
635
|
+
activity: z.ZodOptional<z.ZodObject<{
|
|
636
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
637
|
+
target: z.ZodOptional<z.ZodString>;
|
|
638
|
+
todo: z.ZodOptional<z.ZodString>;
|
|
639
|
+
}, z.core.$strip>>;
|
|
640
|
+
checklist: z.ZodOptional<z.ZodObject<{
|
|
641
|
+
done: z.ZodNumber;
|
|
642
|
+
total: z.ZodNumber;
|
|
643
|
+
}, z.core.$strip>>;
|
|
644
|
+
landedMessageDraft: z.ZodOptional<z.ZodObject<{
|
|
645
|
+
startedAt: z.ZodNumber;
|
|
646
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
647
|
+
provider: z.ZodString;
|
|
648
|
+
model: z.ZodString;
|
|
649
|
+
status: z.ZodEnum<{
|
|
650
|
+
answered: "answered";
|
|
651
|
+
asking: "asking";
|
|
652
|
+
refused: "refused";
|
|
653
|
+
skipped: "skipped";
|
|
654
|
+
}>;
|
|
655
|
+
at: z.ZodOptional<z.ZodNumber>;
|
|
656
|
+
ms: z.ZodOptional<z.ZodNumber>;
|
|
657
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
658
|
+
}, z.core.$strip>>;
|
|
659
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
660
|
+
failed: "failed";
|
|
661
|
+
written: "written";
|
|
662
|
+
}>>;
|
|
663
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
664
|
+
finishedAt: z.ZodOptional<z.ZodNumber>;
|
|
665
|
+
}, z.core.$strip>>;
|
|
666
|
+
landedMessage: z.ZodOptional<z.ZodObject<{
|
|
667
|
+
subject: z.ZodString;
|
|
668
|
+
note: z.ZodOptional<z.ZodString>;
|
|
669
|
+
breaking: z.ZodOptional<z.ZodString>;
|
|
670
|
+
testNote: z.ZodOptional<z.ZodString>;
|
|
671
|
+
allows: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
672
|
+
}, z.core.$strip>>;
|
|
673
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
674
|
+
run: z.ZodOptional<z.ZodString>;
|
|
675
|
+
queue: z.ZodOptional<z.ZodObject<{
|
|
676
|
+
items: z.ZodArray<z.ZodObject<{
|
|
677
|
+
id: z.ZodString;
|
|
678
|
+
text: z.ZodString;
|
|
679
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
680
|
+
voice: z.ZodEnum<{
|
|
681
|
+
agent: "agent";
|
|
682
|
+
person: "person";
|
|
683
|
+
sandbox: "sandbox";
|
|
684
|
+
}>;
|
|
685
|
+
queuedAt: z.ZodNumber;
|
|
686
|
+
revision: z.ZodNumber;
|
|
687
|
+
until: z.ZodOptional<z.ZodNumber>;
|
|
688
|
+
after: z.ZodOptional<z.ZodString>;
|
|
689
|
+
reopenOf: z.ZodOptional<z.ZodObject<{
|
|
690
|
+
agent: z.ZodString;
|
|
691
|
+
account: z.ZodOptional<z.ZodString>;
|
|
692
|
+
}, z.core.$strip>>;
|
|
693
|
+
serves: z.ZodOptional<z.ZodObject<{
|
|
694
|
+
agent: z.ZodString;
|
|
695
|
+
harness: z.ZodEnum<{
|
|
696
|
+
"claude-code": "claude-code";
|
|
697
|
+
codex: "codex";
|
|
698
|
+
muse: "muse";
|
|
699
|
+
native: "native";
|
|
700
|
+
opencode: "opencode";
|
|
701
|
+
pi: "pi";
|
|
702
|
+
vendor: "vendor";
|
|
703
|
+
}>;
|
|
704
|
+
model: z.ZodOptional<z.ZodString>;
|
|
705
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
706
|
+
account: z.ZodOptional<z.ZodString>;
|
|
707
|
+
}, z.core.$strip>>;
|
|
708
|
+
continues: z.ZodOptional<z.ZodLiteral<true>>;
|
|
709
|
+
}, z.core.$strip>>;
|
|
710
|
+
revision: z.ZodNumber;
|
|
711
|
+
paused: z.ZodOptional<z.ZodEnum<{
|
|
712
|
+
refused: "refused";
|
|
713
|
+
scheduled: "scheduled";
|
|
714
|
+
stopped: "stopped";
|
|
715
|
+
}>>;
|
|
716
|
+
until: z.ZodOptional<z.ZodNumber>;
|
|
717
|
+
after: z.ZodOptional<z.ZodString>;
|
|
718
|
+
}, z.core.$strip>>;
|
|
719
|
+
updatedAt: z.ZodNumber;
|
|
720
|
+
seenAt: z.ZodOptional<z.ZodNumber>;
|
|
721
|
+
unsentAt: z.ZodOptional<z.ZodNumber>;
|
|
722
|
+
attention: z.ZodObject<{
|
|
723
|
+
plan: z.ZodBoolean;
|
|
724
|
+
question: z.ZodBoolean;
|
|
725
|
+
permission: z.ZodBoolean;
|
|
726
|
+
capability: z.ZodBoolean;
|
|
727
|
+
credential: z.ZodBoolean;
|
|
728
|
+
conflict: z.ZodBoolean;
|
|
729
|
+
need: z.ZodOptional<z.ZodBoolean>;
|
|
730
|
+
}, z.core.$strip>;
|
|
731
|
+
permissionAsk: z.ZodOptional<z.ZodObject<{
|
|
732
|
+
requestId: z.ZodString;
|
|
733
|
+
ask: z.ZodString;
|
|
734
|
+
program: z.ZodOptional<z.ZodObject<{
|
|
735
|
+
text: z.ZodString;
|
|
736
|
+
language: z.ZodEnum<{
|
|
737
|
+
bash: "bash";
|
|
738
|
+
javascript: "javascript";
|
|
739
|
+
}>;
|
|
740
|
+
truncated: z.ZodBoolean;
|
|
741
|
+
spans: z.ZodArray<z.ZodObject<{
|
|
742
|
+
start: z.ZodNumber;
|
|
743
|
+
end: z.ZodNumber;
|
|
744
|
+
}, z.core.$strip>>;
|
|
745
|
+
}, z.core.$strip>>;
|
|
746
|
+
}, z.core.$strip>>;
|
|
747
|
+
landFailure: z.ZodOptional<z.ZodObject<{
|
|
748
|
+
reason: z.ZodString;
|
|
749
|
+
code: z.ZodOptional<z.ZodString>;
|
|
750
|
+
at: z.ZodNumber;
|
|
751
|
+
}, z.core.$strip>>;
|
|
752
|
+
delivery: z.ZodOptional<z.ZodObject<{
|
|
753
|
+
state: z.ZodEnum<{
|
|
754
|
+
delivered: "delivered";
|
|
755
|
+
failed: "failed";
|
|
756
|
+
partial: "partial";
|
|
757
|
+
"too-large": "too-large";
|
|
758
|
+
waiting: "waiting";
|
|
759
|
+
}>;
|
|
760
|
+
at: z.ZodNumber;
|
|
761
|
+
project: z.ZodString;
|
|
762
|
+
folder: z.ZodOptional<z.ZodString>;
|
|
763
|
+
applied: z.ZodNumber;
|
|
764
|
+
conflicts: z.ZodArray<z.ZodObject<{
|
|
765
|
+
path: z.ZodString;
|
|
766
|
+
reason: z.ZodEnum<{
|
|
767
|
+
edited: "edited";
|
|
768
|
+
link: "link";
|
|
769
|
+
"missing-git": "missing-git";
|
|
770
|
+
outside: "outside";
|
|
771
|
+
}>;
|
|
772
|
+
}, z.core.$strip>>;
|
|
773
|
+
point: z.ZodOptional<z.ZodString>;
|
|
774
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
775
|
+
}, z.core.$strip>>;
|
|
776
|
+
conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
777
|
+
binary: "binary";
|
|
778
|
+
diverged: "diverged";
|
|
779
|
+
workspace: "workspace";
|
|
780
|
+
}>>>;
|
|
781
|
+
unfinished: z.ZodOptional<z.ZodObject<{
|
|
782
|
+
at: z.ZodNumber;
|
|
783
|
+
steps: z.ZodOptional<z.ZodObject<{
|
|
784
|
+
open: z.ZodNumber;
|
|
785
|
+
total: z.ZodNumber;
|
|
786
|
+
next: z.ZodOptional<z.ZodString>;
|
|
787
|
+
}, z.core.$strip>>;
|
|
788
|
+
check: z.ZodOptional<z.ZodString>;
|
|
789
|
+
}, z.core.$strip>>;
|
|
790
|
+
proof: z.ZodOptional<z.ZodObject<{
|
|
791
|
+
at: z.ZodNumber;
|
|
792
|
+
verification: z.ZodEnum<{
|
|
793
|
+
failing: "failing";
|
|
794
|
+
"no-code": "no-code";
|
|
795
|
+
unproven: "unproven";
|
|
796
|
+
verified: "verified";
|
|
797
|
+
}>;
|
|
798
|
+
check: z.ZodOptional<z.ZodString>;
|
|
799
|
+
unviewed: z.ZodOptional<z.ZodNumber>;
|
|
800
|
+
}, z.core.$strip>>;
|
|
801
|
+
review: z.ZodOptional<z.ZodObject<{
|
|
802
|
+
at: z.ZodNumber;
|
|
803
|
+
source: z.ZodEnum<{
|
|
804
|
+
claude: "claude";
|
|
805
|
+
codex: "codex";
|
|
806
|
+
}>;
|
|
807
|
+
findings: z.ZodNumber;
|
|
808
|
+
open: z.ZodNumber;
|
|
809
|
+
}, z.core.$strip>>;
|
|
810
|
+
reach: z.ZodOptional<z.ZodObject<{
|
|
811
|
+
at: z.ZodNumber;
|
|
812
|
+
live: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
813
|
+
path: z.ZodString;
|
|
814
|
+
extension: z.ZodOptional<z.ZodString>;
|
|
815
|
+
}, z.core.$strip>>>;
|
|
816
|
+
liveMore: z.ZodOptional<z.ZodNumber>;
|
|
817
|
+
stranded: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
818
|
+
dir: z.ZodString;
|
|
819
|
+
uncommitted: z.ZodNumber;
|
|
820
|
+
unpushed: z.ZodNumber;
|
|
821
|
+
}, z.core.$strip>>>;
|
|
822
|
+
strandedMore: z.ZodOptional<z.ZodNumber>;
|
|
823
|
+
published: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
824
|
+
dir: z.ZodOptional<z.ZodString>;
|
|
825
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
826
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
827
|
+
command: z.ZodString;
|
|
828
|
+
}, z.core.$strip>>>;
|
|
829
|
+
publishedMore: z.ZodOptional<z.ZodNumber>;
|
|
830
|
+
}, z.core.$strip>>;
|
|
831
|
+
turns: z.ZodOptional<z.ZodNumber>;
|
|
832
|
+
toolUses: z.ZodOptional<z.ZodNumber>;
|
|
833
|
+
subagents: z.ZodOptional<z.ZodObject<{
|
|
834
|
+
running: z.ZodNumber;
|
|
835
|
+
total: z.ZodNumber;
|
|
836
|
+
}, z.core.$strip>>;
|
|
837
|
+
diff: z.ZodOptional<z.ZodObject<{
|
|
838
|
+
files: z.ZodNumber;
|
|
839
|
+
insertions: z.ZodNumber;
|
|
840
|
+
deletions: z.ZodNumber;
|
|
841
|
+
}, z.core.$strip>>;
|
|
842
|
+
landedPresence: z.ZodOptional<z.ZodObject<{
|
|
843
|
+
landed: z.ZodNumber;
|
|
844
|
+
present: z.ZodNumber;
|
|
845
|
+
removedBy: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
846
|
+
kind: z.ZodLiteral<"agent">;
|
|
847
|
+
id: z.ZodString;
|
|
848
|
+
title: z.ZodOptional<z.ZodString>;
|
|
849
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
850
|
+
kind: z.ZodLiteral<"person">;
|
|
851
|
+
email: z.ZodOptional<z.ZodString>;
|
|
852
|
+
name: z.ZodOptional<z.ZodString>;
|
|
853
|
+
}, z.core.$strip>], "kind">>;
|
|
854
|
+
}, z.core.$strip>>;
|
|
855
|
+
loop: z.ZodOptional<z.ZodObject<{
|
|
856
|
+
state: z.ZodEnum<{
|
|
857
|
+
done: "done";
|
|
858
|
+
error: "error";
|
|
859
|
+
exhausted: "exhausted";
|
|
860
|
+
overspent: "overspent";
|
|
861
|
+
running: "running";
|
|
862
|
+
stalled: "stalled";
|
|
863
|
+
stopped: "stopped";
|
|
864
|
+
unpriced: "unpriced";
|
|
865
|
+
}>;
|
|
866
|
+
iteration: z.ZodNumber;
|
|
867
|
+
maxIterations: z.ZodNumber;
|
|
868
|
+
goal: z.ZodString;
|
|
869
|
+
}, z.core.$strip>>;
|
|
870
|
+
workflow: z.ZodOptional<z.ZodObject<{
|
|
871
|
+
runId: z.ZodString;
|
|
872
|
+
name: z.ZodString;
|
|
873
|
+
step: z.ZodString;
|
|
874
|
+
index: z.ZodNumber;
|
|
875
|
+
total: z.ZodNumber;
|
|
876
|
+
}, z.core.$strip>>;
|
|
877
|
+
awaitingWake: z.ZodOptional<z.ZodBoolean>;
|
|
878
|
+
watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
879
|
+
id: z.ZodString;
|
|
880
|
+
note: z.ZodString;
|
|
881
|
+
intervalSeconds: z.ZodNumber;
|
|
882
|
+
deadlineAt: z.ZodNumber;
|
|
883
|
+
}, z.core.$strip>>>;
|
|
884
|
+
needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
885
|
+
id: z.ZodString;
|
|
886
|
+
kind: z.ZodEnum<{
|
|
887
|
+
automation: "automation";
|
|
888
|
+
capability: "capability";
|
|
889
|
+
environment: "environment";
|
|
890
|
+
grant: "grant";
|
|
891
|
+
release: "release";
|
|
892
|
+
secret: "secret";
|
|
893
|
+
}>;
|
|
894
|
+
title: z.ZodString;
|
|
895
|
+
status: z.ZodEnum<{
|
|
896
|
+
cancelled: "cancelled";
|
|
897
|
+
declined: "declined";
|
|
898
|
+
met: "met";
|
|
899
|
+
open: "open";
|
|
900
|
+
working: "working";
|
|
901
|
+
}>;
|
|
902
|
+
}, z.core.$strip>>>;
|
|
903
|
+
jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
904
|
+
id: z.ZodString;
|
|
905
|
+
label: z.ZodString;
|
|
906
|
+
session: z.ZodString;
|
|
907
|
+
startedAt: z.ZodNumber;
|
|
908
|
+
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
909
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
910
|
+
watch: z.ZodOptional<z.ZodString>;
|
|
911
|
+
handed: z.ZodOptional<z.ZodBoolean>;
|
|
912
|
+
ports: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
913
|
+
stoppedBy: z.ZodOptional<z.ZodEnum<{
|
|
914
|
+
agent: "agent";
|
|
915
|
+
person: "person";
|
|
916
|
+
turn: "turn";
|
|
917
|
+
}>>;
|
|
918
|
+
inputWait: z.ZodOptional<z.ZodObject<{
|
|
919
|
+
since: z.ZodNumber;
|
|
920
|
+
program: z.ZodString;
|
|
921
|
+
}, z.core.$strip>>;
|
|
922
|
+
}, z.core.$strip>>>;
|
|
923
|
+
archivedAt: z.ZodOptional<z.ZodNumber>;
|
|
924
|
+
}, z.core.$strip>>;
|
|
925
|
+
lands: z.ZodEnum<{
|
|
926
|
+
asks: "asks";
|
|
927
|
+
itself: "itself";
|
|
928
|
+
}>;
|
|
929
|
+
}, z.core.$strip>;
|
|
930
|
+
export type HomeConversation = z.infer<typeof HomeConversationSchema>;
|
|
475
931
|
//# sourceMappingURL=agents-list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents-list.d.ts","sourceRoot":"","sources":["../../src/schemas/agents-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"agents-list.d.ts","sourceRoot":"","sources":["../../src/schemas/agents-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAa3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAK1D,eAAO,MAAM,qBAAqB;;;iBAOhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAIpE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { AgentSummarySchema } from "./agents.js";
|
|
3
|
+
import { ConversationIdSchema } from "./agent.js";
|
|
3
4
|
import { AutomationApprovalSchema } from "./automations.js";
|
|
4
5
|
export const AgentsListSchema = z.object({
|
|
5
6
|
agents: z.array(AgentSummarySchema).describe("The conversations."),
|
|
@@ -19,4 +20,11 @@ export const AgentsAttentionSchema = z.object({
|
|
|
19
20
|
.describe("How many cards the board's Attention lane draws (a child agent counted through its family's one card), plus the automations waiting for a yes."),
|
|
20
21
|
working: z.number().int().nonnegative().describe("How many conversations are producing something right now."),
|
|
21
22
|
});
|
|
23
|
+
export const HomeConversationSchema = z.object({
|
|
24
|
+
conversationId: ConversationIdSchema.describe("Your home conversation's id here. Send to it as to any conversation (`POST /agent`, isolated): its first turn opens it as your home."),
|
|
25
|
+
agent: AgentSummarySchema.optional().describe("Its card, once a first turn has opened it. Absent until then."),
|
|
26
|
+
lands: z
|
|
27
|
+
.enum(["itself", "asks"])
|
|
28
|
+
.describe("What becomes of the work it accepts: `itself`, it lands and commits when its turn ends, because you may merge here; `asks`, it waits for a maintainer, because you may not."),
|
|
29
|
+
});
|
|
22
30
|
//# sourceMappingURL=agents-list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents-list.js","sourceRoot":"","sources":["../../src/schemas/agents-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAO5D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAClE,GAAG,EAAE,CAAC;SACD,MAAM,EAAE;SACR,QAAQ,CACL,uPAAuP,CAC1P;IACL,IAAI,EAAE,CAAC;SACF,KAAK,CAAC,wBAAwB,CAAC;SAC/B,OAAO,CAAC,EAAE,CAAC;SACX,QAAQ,CACL,yJAAyJ,CAC5J;CACR,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,CAAC;SACN,MAAM,EAAE;SACR,GAAG,EAAE;SACL,WAAW,EAAE;SACb,QAAQ,CAAC,gJAAgJ,CAAC;IAC/J,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,2DAA2D,CAAC;CAChH,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"agents-list.js","sourceRoot":"","sources":["../../src/schemas/agents-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAA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, SessionOwnerSchema, type AgentReaction, type Reactor, type SessionOwner } from "./agent-people.js";
|
|
2
3
|
export declare const AgentStatusSchema: z.ZodEnum<{
|
|
3
4
|
awaiting: "awaiting";
|
|
4
5
|
conflict: "conflict";
|
|
@@ -121,27 +122,6 @@ export declare const LandConflictReasonSchema: z.ZodEnum<{
|
|
|
121
122
|
workspace: "workspace";
|
|
122
123
|
}>;
|
|
123
124
|
export type LandConflictReason = z.infer<typeof LandConflictReasonSchema>;
|
|
124
|
-
export declare const ReactorSchema: z.ZodObject<{
|
|
125
|
-
email: z.ZodString;
|
|
126
|
-
name: z.ZodOptional<z.ZodString>;
|
|
127
|
-
at: z.ZodNumber;
|
|
128
|
-
}, z.core.$strip>;
|
|
129
|
-
export type Reactor = z.infer<typeof ReactorSchema>;
|
|
130
|
-
export declare const SessionOwnerSchema: z.ZodObject<{
|
|
131
|
-
email: z.ZodString;
|
|
132
|
-
name: z.ZodOptional<z.ZodString>;
|
|
133
|
-
since: z.ZodNumber;
|
|
134
|
-
}, z.core.$strip>;
|
|
135
|
-
export type SessionOwner = z.infer<typeof SessionOwnerSchema>;
|
|
136
|
-
export declare const AgentReactionSchema: z.ZodObject<{
|
|
137
|
-
emoji: z.ZodString;
|
|
138
|
-
by: z.ZodArray<z.ZodObject<{
|
|
139
|
-
email: z.ZodString;
|
|
140
|
-
name: z.ZodOptional<z.ZodString>;
|
|
141
|
-
at: z.ZodNumber;
|
|
142
|
-
}, z.core.$strip>>;
|
|
143
|
-
}, z.core.$strip>;
|
|
144
|
-
export type AgentReaction = z.infer<typeof AgentReactionSchema>;
|
|
145
125
|
export declare const AgentSummarySchema: z.ZodObject<{
|
|
146
126
|
id: z.ZodString;
|
|
147
127
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
@@ -266,7 +246,9 @@ export declare const AgentSummarySchema: z.ZodObject<{
|
|
|
266
246
|
test: "test";
|
|
267
247
|
}>;
|
|
268
248
|
at: z.ZodNumber;
|
|
249
|
+
by: z.ZodOptional<z.ZodString>;
|
|
269
250
|
}, z.core.$strip>>;
|
|
251
|
+
home: z.ZodOptional<z.ZodLiteral<true>>;
|
|
270
252
|
base: z.ZodOptional<z.ZodString>;
|
|
271
253
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
272
254
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -749,7 +731,9 @@ export declare const AgentsMovedSchema: z.ZodObject<{
|
|
|
749
731
|
test: "test";
|
|
750
732
|
}>;
|
|
751
733
|
at: z.ZodNumber;
|
|
734
|
+
by: z.ZodOptional<z.ZodString>;
|
|
752
735
|
}, z.core.$strip>>;
|
|
736
|
+
home: z.ZodOptional<z.ZodLiteral<true>>;
|
|
753
737
|
base: z.ZodOptional<z.ZodString>;
|
|
754
738
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
755
739
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1197,7 +1181,9 @@ export declare const AgentsArchivedSchema: z.ZodObject<{
|
|
|
1197
1181
|
test: "test";
|
|
1198
1182
|
}>;
|
|
1199
1183
|
at: z.ZodNumber;
|
|
1184
|
+
by: z.ZodOptional<z.ZodString>;
|
|
1200
1185
|
}, z.core.$strip>>;
|
|
1186
|
+
home: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1201
1187
|
base: z.ZodOptional<z.ZodString>;
|
|
1202
1188
|
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
1203
1189
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/schemas/agents.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/schemas/agents.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,EAAE,mBAAmB,E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;iBAKjC,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;iBAmB7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAI9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;iBA2B3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAK1D,eAAO,MAAM,cAAc;;;;EAAwC,CAAC;AACpE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAKtD,eAAO,MAAM,eAAe;;;EAAwC,CAAC;AACrE,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAIxD,eAAO,MAAM,eAAe;;;;;;;;;;;;;iBAQ1B,CAAC"}
|
package/dist/schemas/agents.js
CHANGED
|
@@ -9,6 +9,8 @@ import { AgentNeedSchema } from "./needs.js";
|
|
|
9
9
|
import { EMOJI_MAX_LENGTH, isSingleEmoji } from "../text/emoji.js";
|
|
10
10
|
import { ProgramAskSchema } from "../events/requests.js";
|
|
11
11
|
import { ReviewTallySchema, TurnProofSchema } from "./work-assurance.js";
|
|
12
|
+
import { AgentReactionSchema, SessionOwnerSchema } from "./agent-people.js";
|
|
13
|
+
export { AgentReactionSchema, ReactorSchema, SessionOwnerSchema } from "./agent-people.js";
|
|
12
14
|
export const AgentStatusSchema = z.enum([
|
|
13
15
|
"idle",
|
|
14
16
|
"running",
|
|
@@ -146,26 +148,6 @@ export const LandedMessageDraftSchema = z.object({
|
|
|
146
148
|
finishedAt: z.number().optional().describe("When it ended, in milliseconds."),
|
|
147
149
|
});
|
|
148
150
|
export const LandConflictReasonSchema = z.enum(["workspace", "diverged", "binary"]);
|
|
149
|
-
export const ReactorSchema = z.object({
|
|
150
|
-
email: z.string().describe("Who it was, as the sandbox verified them."),
|
|
151
|
-
name: z.string().optional().describe("What to call them, when their sign-in carried a name. Absent leaves the address to stand for them."),
|
|
152
|
-
at: z.number().describe("When they marked it, in milliseconds."),
|
|
153
|
-
});
|
|
154
|
-
export const SessionOwnerSchema = z.object({
|
|
155
|
-
email: z.string().describe("Who answers for this conversation, as the sandbox verified them."),
|
|
156
|
-
name: z
|
|
157
|
-
.string()
|
|
158
|
-
.optional()
|
|
159
|
-
.describe("What to call them, when the sign-in that made them its owner carried a name. Absent leaves the address to stand for them."),
|
|
160
|
-
since: z.number().describe("When they became its owner, in milliseconds."),
|
|
161
|
-
});
|
|
162
|
-
export const AgentReactionSchema = z.object({
|
|
163
|
-
emoji: z.string().describe("The mark itself, one emoji, carried as the character rather than as a name that would need a table on both sides."),
|
|
164
|
-
by: z
|
|
165
|
-
.array(ReactorSchema)
|
|
166
|
-
.min(1)
|
|
167
|
-
.describe("Everyone wearing this mark, oldest first, each by name. Carried whole rather than as a count, because a chip reading 3 that cannot say whose is a number nobody can answer. Never empty: the last person taking theirs back takes the whole chip with it."),
|
|
168
|
-
});
|
|
169
151
|
export const AgentSummarySchema = z.object({
|
|
170
152
|
id: z.string().describe("The conversation id, which is how every other call addresses it."),
|
|
171
153
|
sessionId: z.string().optional().describe("The provider session behind the last turn. It is retired whenever the model or account changes."),
|
|
@@ -243,6 +225,10 @@ export const AgentSummarySchema = z.object({
|
|
|
243
225
|
owner: SessionOwnerSchema.optional().describe("The member answerable for this conversation: set from whoever started it, inherited from the parent by a spawned child, moved by handing it over. Absent means nobody has claimed it yet."),
|
|
244
226
|
forkedFrom: ForkedFromSchema.optional().describe("The conversation this one was cut from. Recorded once and never cleared: it is the relationship, not a pending state."),
|
|
245
227
|
fresh: FreshSessionSchema.optional().describe("Set on a conversation started on another conversation's work without its messages (a code review, a test pass, a person's own ask): which one, for what, and when. Absent for every other conversation."),
|
|
228
|
+
home: z
|
|
229
|
+
.literal(true)
|
|
230
|
+
.optional()
|
|
231
|
+
.describe("This is its owner's home conversation in this sandbox: the one long-running chat the master view opens, which orchestrates its own subagents, holds their work until it accepts it, and lands and commits by itself. Only its owner and the sandbox's owner see it. Absent for every other conversation."),
|
|
246
232
|
base: z.string().optional().describe("The commit its private copy started from, shortened."),
|
|
247
233
|
costUsd: z.number().optional().describe("What it has cost so far, in dollars. A subagent's spend is its own and is not folded in here."),
|
|
248
234
|
inputTokens: z.number().optional().describe("Uncached input tokens, excluding cache reads and cache writes."),
|