@intentic/sandbox-contract 1.300.0 → 1.301.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/agent.contract.d.ts +774 -1
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.js +3 -2
- package/dist/contracts/agent.contract.js.map +1 -1
- package/dist/contracts/agents.contract.d.ts +7 -0
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.js +11 -2
- package/dist/contracts/agents.contract.js.map +1 -1
- package/dist/contracts/capabilities.contract.d.ts +5 -1
- package/dist/contracts/capabilities.contract.d.ts.map +1 -1
- package/dist/contracts/capabilities.contract.js +3 -2
- package/dist/contracts/capabilities.contract.js.map +1 -1
- package/dist/contracts/exit.contract.d.ts +15 -3
- package/dist/contracts/exit.contract.d.ts.map +1 -1
- package/dist/contracts/exit.contract.js +5 -4
- package/dist/contracts/exit.contract.js.map +1 -1
- package/dist/contracts/host.contract.d.ts +24 -2
- package/dist/contracts/host.contract.d.ts.map +1 -1
- package/dist/contracts/host.contract.js +4 -3
- package/dist/contracts/host.contract.js.map +1 -1
- package/dist/contracts/intentic.contract.d.ts +10 -2
- package/dist/contracts/intentic.contract.d.ts.map +1 -1
- package/dist/contracts/intentic.contract.js +4 -3
- package/dist/contracts/intentic.contract.js.map +1 -1
- package/dist/contracts/netdisk.contract.d.ts +5 -1
- package/dist/contracts/netdisk.contract.d.ts.map +1 -1
- package/dist/contracts/netdisk.contract.js +3 -2
- package/dist/contracts/netdisk.contract.js.map +1 -1
- package/dist/contracts/runner.contract.d.ts +505 -2
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/runner.contract.js +4 -3
- package/dist/contracts/runner.contract.js.map +1 -1
- package/dist/contracts/sessions.contract.d.ts +1 -0
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.d.ts +334 -3
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.js +5 -4
- package/dist/contracts/system.contract.js.map +1 -1
- package/dist/contracts/vpn.contract.d.ts +5 -1
- package/dist/contracts/vpn.contract.d.ts.map +1 -1
- package/dist/contracts/vpn.contract.js +3 -2
- package/dist/contracts/vpn.contract.js.map +1 -1
- package/dist/events/agent-events.d.ts +3 -0
- package/dist/events/agent-events.d.ts.map +1 -1
- package/dist/events/transcript.d.ts +10 -0
- package/dist/events/transcript.d.ts.map +1 -1
- package/dist/events/transcript.js +13 -0
- package/dist/events/transcript.js.map +1 -1
- package/dist/index.d.ts +1156 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/protocol/routes.d.ts +6 -0
- package/dist/protocol/routes.d.ts.map +1 -1
- package/dist/protocol/routes.js +12 -4
- package/dist/protocol/routes.js.map +1 -1
- package/dist/schemas/agents.d.ts +4 -0
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/agents.js +3 -0
- package/dist/schemas/agents.js.map +1 -1
- package/dist/schemas/devices.d.ts +1 -0
- package/dist/schemas/devices.d.ts.map +1 -1
- package/dist/schemas/devices.js +43 -24
- package/dist/schemas/devices.js.map +1 -1
- package/dist/state/history-state.d.ts.map +1 -1
- package/dist/state/history-state.js +1 -0
- package/dist/state/history-state.js.map +1 -1
- package/dist/state/runtime-state.d.ts +3 -0
- package/dist/state/runtime-state.d.ts.map +1 -1
- package/dist/state/runtime-state.js +1 -0
- package/dist/state/runtime-state.js.map +1 -1
- package/package.json +5 -5
- package/src/contracts/agent.contract.ts +3 -2
- package/src/contracts/agents.contract.ts +12 -1
- package/src/contracts/capabilities.contract.ts +3 -2
- package/src/contracts/exit.contract.ts +5 -4
- package/src/contracts/host.contract.ts +4 -3
- package/src/contracts/intentic.contract.ts +4 -3
- package/src/contracts/netdisk.contract.ts +3 -2
- package/src/contracts/runner.contract.ts +4 -3
- package/src/contracts/system.contract.ts +5 -4
- package/src/contracts/vpn.contract.ts +3 -2
- package/src/events/transcript.ts +25 -0
- package/src/protocol/routes.test.ts +51 -18
- package/src/protocol/routes.ts +26 -6
- package/src/schemas/agents.ts +6 -0
- package/src/schemas/devices.ts +75 -29
- package/src/state/history-state.ts +3 -0
- package/src/state/runtime-state.test.ts +5 -0
- package/src/state/runtime-state.ts +6 -0
|
@@ -547,7 +547,315 @@ export declare const systemContract: {
|
|
|
547
547
|
account?: string | undefined;
|
|
548
548
|
model?: string | undefined;
|
|
549
549
|
} | undefined;
|
|
550
|
-
}, unknown, void
|
|
550
|
+
}, unknown, void>> & {
|
|
551
|
+
[x: symbol]: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
552
|
+
kind: z.ZodLiteral<"hello">;
|
|
553
|
+
workspaceId: z.ZodString;
|
|
554
|
+
routes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
555
|
+
shapes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
556
|
+
build: z.ZodOptional<z.ZodString>;
|
|
557
|
+
boot: z.ZodOptional<z.ZodObject<{
|
|
558
|
+
ready: z.ZodBoolean;
|
|
559
|
+
startedAt: z.ZodNumber;
|
|
560
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
561
|
+
key: z.ZodString;
|
|
562
|
+
label: z.ZodString;
|
|
563
|
+
state: z.ZodEnum<{
|
|
564
|
+
done: "done";
|
|
565
|
+
failed: "failed";
|
|
566
|
+
pending: "pending";
|
|
567
|
+
running: "running";
|
|
568
|
+
}>;
|
|
569
|
+
ms: z.ZodOptional<z.ZodNumber>;
|
|
570
|
+
}, z.core.$strip>>;
|
|
571
|
+
}, z.core.$strip>>;
|
|
572
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
573
|
+
kind: z.ZodLiteral<"heartbeat">;
|
|
574
|
+
rev: z.ZodNumber;
|
|
575
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
576
|
+
ready: z.ZodBoolean;
|
|
577
|
+
startedAt: z.ZodNumber;
|
|
578
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
579
|
+
key: z.ZodString;
|
|
580
|
+
label: z.ZodString;
|
|
581
|
+
state: z.ZodEnum<{
|
|
582
|
+
done: "done";
|
|
583
|
+
failed: "failed";
|
|
584
|
+
pending: "pending";
|
|
585
|
+
running: "running";
|
|
586
|
+
}>;
|
|
587
|
+
ms: z.ZodOptional<z.ZodNumber>;
|
|
588
|
+
}, z.core.$strip>>;
|
|
589
|
+
kind: z.ZodLiteral<"boot">;
|
|
590
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
591
|
+
kind: z.ZodLiteral<"workspaceChanged">;
|
|
592
|
+
paths: z.ZodArray<z.ZodString>;
|
|
593
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
594
|
+
kind: z.ZodLiteral<"derivedChanged">;
|
|
595
|
+
paths: z.ZodArray<z.ZodString>;
|
|
596
|
+
queue: z.ZodObject<{
|
|
597
|
+
enabled: z.ZodBoolean;
|
|
598
|
+
queued: z.ZodNumber;
|
|
599
|
+
deriving: z.ZodArray<z.ZodString>;
|
|
600
|
+
sweeping: z.ZodBoolean;
|
|
601
|
+
broken: z.ZodBoolean;
|
|
602
|
+
shadows: z.ZodOptional<z.ZodNumber>;
|
|
603
|
+
sweptAt: z.ZodOptional<z.ZodString>;
|
|
604
|
+
}, z.core.$strip>;
|
|
605
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
606
|
+
kind: z.ZodLiteral<"reposChanged">;
|
|
607
|
+
repos: z.ZodArray<z.ZodString>;
|
|
608
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
609
|
+
kind: z.ZodLiteral<"refsChanged">;
|
|
610
|
+
repos: z.ZodArray<z.ZodString>;
|
|
611
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
612
|
+
kind: z.ZodLiteral<"runtimeChanged">;
|
|
613
|
+
domains: z.ZodArray<z.ZodString>;
|
|
614
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
615
|
+
kind: z.ZodLiteral<"presence">;
|
|
616
|
+
users: z.ZodArray<z.ZodObject<{
|
|
617
|
+
clientId: z.ZodString;
|
|
618
|
+
email: z.ZodString;
|
|
619
|
+
name: z.ZodOptional<z.ZodString>;
|
|
620
|
+
picture: z.ZodOptional<z.ZodString>;
|
|
621
|
+
role: z.ZodEnum<{
|
|
622
|
+
collaborator: "collaborator";
|
|
623
|
+
maintainer: "maintainer";
|
|
624
|
+
owner: "owner";
|
|
625
|
+
viewer: "viewer";
|
|
626
|
+
}>;
|
|
627
|
+
idle: z.ZodBoolean;
|
|
628
|
+
view: z.ZodOptional<z.ZodString>;
|
|
629
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
630
|
+
path: z.ZodOptional<z.ZodString>;
|
|
631
|
+
}, z.core.$strip>>;
|
|
632
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
633
|
+
kind: z.ZodLiteral<"agents">;
|
|
634
|
+
agents: z.ZodArray<z.ZodObject<{
|
|
635
|
+
id: z.ZodString;
|
|
636
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
637
|
+
title: z.ZodOptional<z.ZodString>;
|
|
638
|
+
titleAction: z.ZodOptional<z.ZodString>;
|
|
639
|
+
status: z.ZodEnum<{
|
|
640
|
+
awaiting: "awaiting";
|
|
641
|
+
conflict: "conflict";
|
|
642
|
+
dismissing: "dismissing";
|
|
643
|
+
error: "error";
|
|
644
|
+
idle: "idle";
|
|
645
|
+
interrupted: "interrupted";
|
|
646
|
+
landed: "landed";
|
|
647
|
+
landing: "landing";
|
|
648
|
+
ready: "ready";
|
|
649
|
+
resuming: "resuming";
|
|
650
|
+
running: "running";
|
|
651
|
+
stopped: "stopped";
|
|
652
|
+
stopping: "stopping";
|
|
653
|
+
}>;
|
|
654
|
+
failure: z.ZodOptional<z.ZodString>;
|
|
655
|
+
failureCode: z.ZodOptional<z.ZodString>;
|
|
656
|
+
limitResetsAt: z.ZodOptional<z.ZodNumber>;
|
|
657
|
+
limitHeld: z.ZodOptional<z.ZodBoolean>;
|
|
658
|
+
limitScheduled: z.ZodOptional<z.ZodBoolean>;
|
|
659
|
+
limitMoving: z.ZodOptional<z.ZodString>;
|
|
660
|
+
provider: z.ZodString;
|
|
661
|
+
harness: z.ZodEnum<{
|
|
662
|
+
"claude-code": "claude-code";
|
|
663
|
+
native: "native";
|
|
664
|
+
}>;
|
|
665
|
+
runner: z.ZodOptional<z.ZodString>;
|
|
666
|
+
startIn: z.ZodOptional<z.ZodString>;
|
|
667
|
+
actsAs: z.ZodOptional<z.ZodString>;
|
|
668
|
+
model: z.ZodOptional<z.ZodString>;
|
|
669
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
670
|
+
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
671
|
+
fast: z.ZodOptional<z.ZodBoolean>;
|
|
672
|
+
account: z.ZodOptional<z.ZodString>;
|
|
673
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
674
|
+
autoLand: z.ZodOptional<z.ZodBoolean>;
|
|
675
|
+
resumeAfterOutage: z.ZodOptional<z.ZodBoolean>;
|
|
676
|
+
resumeAfterLimit: z.ZodOptional<z.ZodBoolean>;
|
|
677
|
+
moveAfterLimit: z.ZodOptional<z.ZodBoolean>;
|
|
678
|
+
landRequested: z.ZodOptional<z.ZodObject<{
|
|
679
|
+
email: z.ZodString;
|
|
680
|
+
name: z.ZodOptional<z.ZodString>;
|
|
681
|
+
at: z.ZodNumber;
|
|
682
|
+
}, z.core.$strip>>;
|
|
683
|
+
reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
684
|
+
emoji: z.ZodString;
|
|
685
|
+
by: z.ZodArray<z.ZodObject<{
|
|
686
|
+
email: z.ZodString;
|
|
687
|
+
name: z.ZodOptional<z.ZodString>;
|
|
688
|
+
at: z.ZodNumber;
|
|
689
|
+
}, z.core.$strip>>;
|
|
690
|
+
}, z.core.$strip>>>;
|
|
691
|
+
origin: z.ZodOptional<z.ZodObject<{
|
|
692
|
+
automationId: z.ZodString;
|
|
693
|
+
provider: z.ZodString;
|
|
694
|
+
channelId: z.ZodOptional<z.ZodString>;
|
|
695
|
+
author: z.ZodOptional<z.ZodString>;
|
|
696
|
+
}, z.core.$strip>>;
|
|
697
|
+
startedBy: z.ZodOptional<z.ZodString>;
|
|
698
|
+
owner: z.ZodOptional<z.ZodObject<{
|
|
699
|
+
email: z.ZodString;
|
|
700
|
+
name: z.ZodOptional<z.ZodString>;
|
|
701
|
+
since: z.ZodNumber;
|
|
702
|
+
}, z.core.$strip>>;
|
|
703
|
+
forkedFrom: z.ZodOptional<z.ZodObject<{
|
|
704
|
+
conversationId: z.ZodString;
|
|
705
|
+
index: z.ZodNumber;
|
|
706
|
+
files: z.ZodEnum<{
|
|
707
|
+
now: "now";
|
|
708
|
+
then: "then";
|
|
709
|
+
}>;
|
|
710
|
+
}, z.core.$strip>>;
|
|
711
|
+
base: z.ZodOptional<z.ZodString>;
|
|
712
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
713
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
714
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
715
|
+
contextTokens: z.ZodOptional<z.ZodNumber>;
|
|
716
|
+
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
717
|
+
promptCache: z.ZodOptional<z.ZodObject<{
|
|
718
|
+
at: z.ZodNumber;
|
|
719
|
+
ttlMs: z.ZodNumber;
|
|
720
|
+
}, z.core.$strip>>;
|
|
721
|
+
activity: z.ZodOptional<z.ZodObject<{
|
|
722
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
723
|
+
target: z.ZodOptional<z.ZodString>;
|
|
724
|
+
todo: z.ZodOptional<z.ZodString>;
|
|
725
|
+
}, z.core.$strip>>;
|
|
726
|
+
checklist: z.ZodOptional<z.ZodObject<{
|
|
727
|
+
done: z.ZodNumber;
|
|
728
|
+
total: z.ZodNumber;
|
|
729
|
+
}, z.core.$strip>>;
|
|
730
|
+
landedMessageDraft: z.ZodOptional<z.ZodObject<{
|
|
731
|
+
startedAt: z.ZodNumber;
|
|
732
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
733
|
+
provider: z.ZodString;
|
|
734
|
+
model: z.ZodString;
|
|
735
|
+
status: z.ZodEnum<{
|
|
736
|
+
answered: "answered";
|
|
737
|
+
asking: "asking";
|
|
738
|
+
refused: "refused";
|
|
739
|
+
skipped: "skipped";
|
|
740
|
+
}>;
|
|
741
|
+
at: z.ZodOptional<z.ZodNumber>;
|
|
742
|
+
ms: z.ZodOptional<z.ZodNumber>;
|
|
743
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
744
|
+
}, z.core.$strip>>;
|
|
745
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
746
|
+
failed: "failed";
|
|
747
|
+
written: "written";
|
|
748
|
+
}>>;
|
|
749
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
750
|
+
finishedAt: z.ZodOptional<z.ZodNumber>;
|
|
751
|
+
}, z.core.$strip>>;
|
|
752
|
+
landedMessage: z.ZodOptional<z.ZodObject<{
|
|
753
|
+
subject: z.ZodString;
|
|
754
|
+
note: z.ZodOptional<z.ZodString>;
|
|
755
|
+
breaking: z.ZodOptional<z.ZodString>;
|
|
756
|
+
}, z.core.$strip>>;
|
|
757
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
758
|
+
updatedAt: z.ZodNumber;
|
|
759
|
+
seenAt: z.ZodOptional<z.ZodNumber>;
|
|
760
|
+
attention: z.ZodObject<{
|
|
761
|
+
plan: z.ZodBoolean;
|
|
762
|
+
question: z.ZodBoolean;
|
|
763
|
+
permission: z.ZodBoolean;
|
|
764
|
+
capability: z.ZodBoolean;
|
|
765
|
+
credential: z.ZodBoolean;
|
|
766
|
+
conflict: z.ZodBoolean;
|
|
767
|
+
}, z.core.$strip>;
|
|
768
|
+
conflictCauses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
769
|
+
binary: "binary";
|
|
770
|
+
diverged: "diverged";
|
|
771
|
+
workspace: "workspace";
|
|
772
|
+
}>>>;
|
|
773
|
+
unfinished: z.ZodOptional<z.ZodObject<{
|
|
774
|
+
at: z.ZodNumber;
|
|
775
|
+
steps: z.ZodOptional<z.ZodObject<{
|
|
776
|
+
open: z.ZodNumber;
|
|
777
|
+
total: z.ZodNumber;
|
|
778
|
+
next: z.ZodOptional<z.ZodString>;
|
|
779
|
+
}, z.core.$strip>>;
|
|
780
|
+
check: z.ZodOptional<z.ZodString>;
|
|
781
|
+
}, z.core.$strip>>;
|
|
782
|
+
turns: z.ZodOptional<z.ZodNumber>;
|
|
783
|
+
toolUses: z.ZodOptional<z.ZodNumber>;
|
|
784
|
+
subagents: z.ZodOptional<z.ZodObject<{
|
|
785
|
+
running: z.ZodNumber;
|
|
786
|
+
total: z.ZodNumber;
|
|
787
|
+
}, z.core.$strip>>;
|
|
788
|
+
diff: z.ZodOptional<z.ZodObject<{
|
|
789
|
+
files: z.ZodNumber;
|
|
790
|
+
insertions: z.ZodNumber;
|
|
791
|
+
deletions: z.ZodNumber;
|
|
792
|
+
}, z.core.$strip>>;
|
|
793
|
+
landedPresence: z.ZodOptional<z.ZodObject<{
|
|
794
|
+
landed: z.ZodNumber;
|
|
795
|
+
present: z.ZodNumber;
|
|
796
|
+
}, z.core.$strip>>;
|
|
797
|
+
loop: z.ZodOptional<z.ZodObject<{
|
|
798
|
+
state: z.ZodEnum<{
|
|
799
|
+
done: "done";
|
|
800
|
+
error: "error";
|
|
801
|
+
exhausted: "exhausted";
|
|
802
|
+
overspent: "overspent";
|
|
803
|
+
running: "running";
|
|
804
|
+
stalled: "stalled";
|
|
805
|
+
stopped: "stopped";
|
|
806
|
+
}>;
|
|
807
|
+
iteration: z.ZodNumber;
|
|
808
|
+
maxIterations: z.ZodNumber;
|
|
809
|
+
goal: z.ZodString;
|
|
810
|
+
}, z.core.$strip>>;
|
|
811
|
+
workflow: z.ZodOptional<z.ZodObject<{
|
|
812
|
+
runId: z.ZodString;
|
|
813
|
+
name: z.ZodString;
|
|
814
|
+
step: z.ZodString;
|
|
815
|
+
index: z.ZodNumber;
|
|
816
|
+
total: z.ZodNumber;
|
|
817
|
+
}, z.core.$strip>>;
|
|
818
|
+
watches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
819
|
+
id: z.ZodString;
|
|
820
|
+
note: z.ZodString;
|
|
821
|
+
intervalSeconds: z.ZodNumber;
|
|
822
|
+
deadlineAt: z.ZodNumber;
|
|
823
|
+
}, z.core.$strip>>>;
|
|
824
|
+
archivedAt: z.ZodOptional<z.ZodNumber>;
|
|
825
|
+
}, z.core.$strip>>;
|
|
826
|
+
rev: z.ZodNumber;
|
|
827
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
828
|
+
kind: z.ZodLiteral<"accountUsage">;
|
|
829
|
+
provider: z.ZodString;
|
|
830
|
+
account: z.ZodString;
|
|
831
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
832
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
833
|
+
kind: z.ZodString;
|
|
834
|
+
label: z.ZodOptional<z.ZodString>;
|
|
835
|
+
utilization: z.ZodNumber;
|
|
836
|
+
resetsAt: z.ZodOptional<z.ZodNumber>;
|
|
837
|
+
gates: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodLiteral<"none">, z.ZodObject<{
|
|
838
|
+
models: z.ZodArray<z.ZodString>;
|
|
839
|
+
}, z.core.$strip>]>;
|
|
840
|
+
}, z.core.$strip>>;
|
|
841
|
+
measuredAt: z.ZodNumber;
|
|
842
|
+
}, z.core.$strip>>;
|
|
843
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
844
|
+
kind: z.ZodLiteral<"providerRefusal">;
|
|
845
|
+
provider: z.ZodString;
|
|
846
|
+
refusal: z.ZodOptional<z.ZodObject<{
|
|
847
|
+
at: z.ZodNumber;
|
|
848
|
+
kind: z.ZodEnum<{
|
|
849
|
+
auth: "auth";
|
|
850
|
+
entitlement: "entitlement";
|
|
851
|
+
limit: "limit";
|
|
852
|
+
}>;
|
|
853
|
+
message: z.ZodString;
|
|
854
|
+
account: z.ZodOptional<z.ZodString>;
|
|
855
|
+
model: z.ZodOptional<z.ZodString>;
|
|
856
|
+
}, z.core.$strip>>;
|
|
857
|
+
}, z.core.$strip>], "kind">;
|
|
858
|
+
}, Record<never, never>, Record<never, never>>;
|
|
551
859
|
presence: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
552
860
|
clientId: z.ZodString;
|
|
553
861
|
idle: z.ZodBoolean;
|
|
@@ -697,6 +1005,7 @@ export declare const systemContract: {
|
|
|
697
1005
|
user: "user";
|
|
698
1006
|
}>;
|
|
699
1007
|
text: z.ZodString;
|
|
1008
|
+
run: z.ZodOptional<z.ZodString>;
|
|
700
1009
|
sentAt: z.ZodOptional<z.ZodNumber>;
|
|
701
1010
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
702
1011
|
checkpointId: z.ZodOptional<z.ZodString>;
|
|
@@ -1105,7 +1414,18 @@ export declare const systemContract: {
|
|
|
1105
1414
|
} | {
|
|
1106
1415
|
kind: "error";
|
|
1107
1416
|
message: string;
|
|
1108
|
-
}, unknown, void
|
|
1417
|
+
}, unknown, void>> & {
|
|
1418
|
+
[x: symbol]: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1419
|
+
kind: z.ZodLiteral<"line">;
|
|
1420
|
+
text: z.ZodString;
|
|
1421
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1422
|
+
kind: z.ZodLiteral<"result">;
|
|
1423
|
+
message: z.ZodString;
|
|
1424
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1425
|
+
kind: z.ZodLiteral<"error">;
|
|
1426
|
+
message: z.ZodString;
|
|
1427
|
+
}, z.core.$strip>], "kind">;
|
|
1428
|
+
}, Record<never, never>, Record<never, never>>;
|
|
1109
1429
|
runDeviceCommand: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1110
1430
|
id: z.ZodString;
|
|
1111
1431
|
command: z.ZodEnum<{
|
|
@@ -1159,6 +1479,17 @@ export declare const systemContract: {
|
|
|
1159
1479
|
} | {
|
|
1160
1480
|
kind: "error";
|
|
1161
1481
|
message: string;
|
|
1162
|
-
}, unknown, void
|
|
1482
|
+
}, unknown, void>> & {
|
|
1483
|
+
[x: symbol]: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1484
|
+
kind: z.ZodLiteral<"line">;
|
|
1485
|
+
text: z.ZodString;
|
|
1486
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1487
|
+
kind: z.ZodLiteral<"result">;
|
|
1488
|
+
message: z.ZodString;
|
|
1489
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1490
|
+
kind: z.ZodLiteral<"error">;
|
|
1491
|
+
message: z.ZodString;
|
|
1492
|
+
}, z.core.$strip>], "kind">;
|
|
1493
|
+
}, Record<never, never>, Record<never, never>>;
|
|
1163
1494
|
};
|
|
1164
1495
|
//# sourceMappingURL=system.contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/system.contract.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"system.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/system.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6BxB,eAAO,MAAM,cAAc;IACvB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;IAUJ,gBAAgB;;;;;;;;;;;;;IAUhB,cAAc;;;;;;;IAWd,OAAO;;;;;IASP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAalB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUP,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWnB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWhB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUrB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { oc } from "@orpc/contract";
|
|
2
|
+
import { streamOf } from "../protocol/routes.js";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
import { SessionTranscriptSchema } from "../events/transcript.js";
|
|
4
5
|
import { SystemEventSchema } from "../events/system-events.js";
|
|
@@ -50,7 +51,7 @@ export const systemContract = {
|
|
|
50
51
|
description: "A stream held open for as long as you want it, carrying heartbeats so a caller notices the sandbox dying at once, batches of file changes so a tree or an editor can refresh itself, and the roster of who else is looking. Give it an id for this connection to appear in that roster; leave it out and you watch without being seen.",
|
|
51
52
|
})
|
|
52
53
|
.input(z.object({ clientId: z.string().optional() }))
|
|
53
|
-
.output(
|
|
54
|
+
.output(streamOf(SystemEventSchema)),
|
|
54
55
|
presence: oc
|
|
55
56
|
.route({
|
|
56
57
|
method: "POST",
|
|
@@ -144,7 +145,7 @@ export const systemContract = {
|
|
|
144
145
|
description: "Start, stop, restart, update, rebuild, roll back, reshape (its memory and CPU caps, privileged, GPU) or remove a sandbox running on a machine you own, relayed over the connection that machine holds open. The answer is a stream because the slowest of these takes minutes, and it is the same stream whichever you ask for. The daemon adds no opinion: the machine enforces its own permissions and a refusal arrives as the last line, in the machine's words, naming the switch to flip.",
|
|
145
146
|
})
|
|
146
147
|
.input(DeviceSandboxFlowInputSchema)
|
|
147
|
-
.output(
|
|
148
|
+
.output(streamOf(DeviceFlowLineSchema)),
|
|
148
149
|
runDeviceCommand: oc
|
|
149
150
|
.route({
|
|
150
151
|
method: "POST",
|
|
@@ -162,6 +163,6 @@ export const systemContract = {
|
|
|
162
163
|
description: "Updates a machine you own to the current intentic-machine agent, or restarts the loop it is running, over the connection that machine holds open. The answer is a stream of the run's own output — and it normally stops mid-run, because the agent's loop is what carries this connection: the work is detached from it first, so it finishes regardless, and the device's reported version is what confirms it. Takes the machine's \"Run commands\" permission, the same one a command typed there would.",
|
|
163
164
|
})
|
|
164
165
|
.input(DeviceAgentFlowInputSchema)
|
|
165
|
-
.output(
|
|
166
|
+
.output(streamOf(DeviceFlowLineSchema)),
|
|
166
167
|
};
|
|
167
168
|
//# sourceMappingURL=system.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.contract.js","sourceRoot":"","sources":["../../src/contracts/system.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"system.contract.js","sourceRoot":"","sources":["../../src/contracts/system.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EACH,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,EACzB,oBAAoB,EACpB,4BAA4B,EAC5B,iBAAiB,GACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE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M,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC;IAE3C,gBAAgB,EAAE,EAAE;SACf,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,yCAAyC;QAC/C,OAAO,EAAE,0CAA0C;QACnD,WAAW,EACP,+YAA+Y;KACtZ,CAAC;SACD,KAAK,CAAC,wBAAwB,CAAC;SAC/B,MAAM,CAAC,yBAAyB,CAAC;IAEtC,kBAAkB,EAAE,EAAE;SACjB,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,iCAAiC;QACvC,OAAO,EAAE,wDAAwD;QACjE,WAAW,EACP,8eAA8e;KACrf,CAAC;SACD,KAAK,CAAC,0BAA0B,CAAC;SACjC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC;CAC9C,CAAC"}
|
|
@@ -33,7 +33,11 @@ export declare const vpnContract: {
|
|
|
33
33
|
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
34
34
|
[x: string]: unknown;
|
|
35
35
|
kind: string;
|
|
36
|
-
}, unknown, void
|
|
36
|
+
}, unknown, void>> & {
|
|
37
|
+
[x: symbol]: import("zod").ZodObject<{
|
|
38
|
+
kind: import("zod").ZodString;
|
|
39
|
+
}, import("zod/v4/core").$loose>;
|
|
40
|
+
}, Record<never, never>, Record<never, never>>;
|
|
37
41
|
disconnect: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
38
42
|
id: import("zod").ZodString;
|
|
39
43
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vpn.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/vpn.contract.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vpn.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/vpn.contract.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,WAAW;IAEpB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;IAUJ,OAAO;;;;;;;;;;;;;;IAWP,UAAU;;;;;IAUV,iBAAiB;;;;;;;;;;;;;;;;;;;;;;CAUpB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { oc } from "@orpc/contract";
|
|
2
|
+
import { streamOf } from "../protocol/routes.js";
|
|
2
3
|
import { IntenticLineSchema } from "../events/system-events.js";
|
|
3
4
|
import { OkSchema } from "../schemas/shared.js";
|
|
4
5
|
import { ForticlientImportInputSchema, ForticlientImportSchema, VpnConnectInputSchema, VpnIdParamSchema, VpnListSchema } from "../schemas/vpn.js";
|
|
@@ -19,7 +20,7 @@ export const vpnContract = {
|
|
|
19
20
|
description: "Brings a stored tunnel up, streaming the client's progress as it authenticates and then sets up routing. Streamed because a dial takes seconds and can fail with something you have to read: a wrong password, a gateway certificate nobody trusts, a code it wants. Connecting one that is already up simply says so.",
|
|
20
21
|
})
|
|
21
22
|
.input(VpnConnectInputSchema)
|
|
22
|
-
.output(
|
|
23
|
+
.output(streamOf(IntenticLineSchema)),
|
|
23
24
|
disconnect: oc
|
|
24
25
|
.route({
|
|
25
26
|
method: "POST",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vpn.contract.js","sourceRoot":"","sources":["../../src/contracts/vpn.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"vpn.contract.js","sourceRoot":"","sources":["../../src/contracts/vpn.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,4BAA4B,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAMlJ,MAAM,CAAC,MAAM,WAAW,GAAG;IAEvB,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,qCAAqC;QAC9C,WAAW,EACP,4LAA4L;KACnM,CAAC;SACD,MAAM,CAAC,aAAa,CAAC;IAE1B,OAAO,EAAE,EAAE;SACN,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,YAAY;QACrB,WAAW,EACP,wTAAwT;KAC/T,CAAC;SACD,KAAK,CAAC,qBAAqB,CAAC;SAC5B,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IAEzC,UAAU,EAAE,EAAE;SACT,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE,eAAe;QACxB,WAAW,EAAE,wGAAwG;KACxH,CAAC;SACD,KAAK,CAAC,gBAAgB,CAAC;SACvB,MAAM,CAAC,QAAQ,CAAC;IAErB,iBAAiB,EAAE,EAAE;SAChB,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,yBAAyB;QAC/B,OAAO,EAAE,4CAA4C;QACrD,WAAW,EACP,2LAA2L;KAClM,CAAC;SACD,KAAK,CAAC,4BAA4B,CAAC;SACnC,MAAM,CAAC,uBAAuB,CAAC;CACvC,CAAC"}
|
|
@@ -511,6 +511,7 @@ export declare const AttachFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
511
511
|
user: "user";
|
|
512
512
|
}>;
|
|
513
513
|
text: z.ZodString;
|
|
514
|
+
run: z.ZodOptional<z.ZodString>;
|
|
514
515
|
sentAt: z.ZodOptional<z.ZodNumber>;
|
|
515
516
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
516
517
|
checkpointId: z.ZodOptional<z.ZodString>;
|
|
@@ -758,6 +759,7 @@ export declare const AttachFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
758
759
|
user: "user";
|
|
759
760
|
}>;
|
|
760
761
|
text: z.ZodString;
|
|
762
|
+
run: z.ZodOptional<z.ZodString>;
|
|
761
763
|
sentAt: z.ZodOptional<z.ZodNumber>;
|
|
762
764
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
763
765
|
checkpointId: z.ZodOptional<z.ZodString>;
|
|
@@ -1003,6 +1005,7 @@ export declare const AttachFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1003
1005
|
user: "user";
|
|
1004
1006
|
}>;
|
|
1005
1007
|
text: z.ZodString;
|
|
1008
|
+
run: z.ZodOptional<z.ZodString>;
|
|
1006
1009
|
sentAt: z.ZodOptional<z.ZodNumber>;
|
|
1007
1010
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1008
1011
|
checkpointId: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-events.d.ts","sourceRoot":"","sources":["../../src/events/agent-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA2B5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -280,6 +280,7 @@ export interface TranscriptTool {
|
|
|
280
280
|
locations?: ToolCallLocation[] | undefined;
|
|
281
281
|
content?: ToolCallContent[] | undefined;
|
|
282
282
|
children?: TranscriptTool[] | undefined;
|
|
283
|
+
nested?: number | undefined;
|
|
283
284
|
thinking?: string | undefined;
|
|
284
285
|
subagent?: TranscriptSubagent | undefined;
|
|
285
286
|
}
|
|
@@ -320,6 +321,7 @@ export declare const TranscriptRowSchema: z.ZodObject<{
|
|
|
320
321
|
user: "user";
|
|
321
322
|
}>;
|
|
322
323
|
text: z.ZodString;
|
|
324
|
+
run: z.ZodOptional<z.ZodString>;
|
|
323
325
|
sentAt: z.ZodOptional<z.ZodNumber>;
|
|
324
326
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
325
327
|
checkpointId: z.ZodOptional<z.ZodString>;
|
|
@@ -570,6 +572,7 @@ export declare const TranscriptPatchSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
570
572
|
user: "user";
|
|
571
573
|
}>;
|
|
572
574
|
text: z.ZodString;
|
|
575
|
+
run: z.ZodOptional<z.ZodString>;
|
|
573
576
|
sentAt: z.ZodOptional<z.ZodNumber>;
|
|
574
577
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
575
578
|
checkpointId: z.ZodOptional<z.ZodString>;
|
|
@@ -815,6 +818,7 @@ export declare const TranscriptPatchSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
815
818
|
user: "user";
|
|
816
819
|
}>;
|
|
817
820
|
text: z.ZodString;
|
|
821
|
+
run: z.ZodOptional<z.ZodString>;
|
|
818
822
|
sentAt: z.ZodOptional<z.ZodNumber>;
|
|
819
823
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
820
824
|
checkpointId: z.ZodOptional<z.ZodString>;
|
|
@@ -1076,6 +1080,7 @@ export declare const SessionTranscriptSchema: z.ZodObject<{
|
|
|
1076
1080
|
user: "user";
|
|
1077
1081
|
}>;
|
|
1078
1082
|
text: z.ZodString;
|
|
1083
|
+
run: z.ZodOptional<z.ZodString>;
|
|
1079
1084
|
sentAt: z.ZodOptional<z.ZodNumber>;
|
|
1080
1085
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1081
1086
|
checkpointId: z.ZodOptional<z.ZodString>;
|
|
@@ -1336,6 +1341,7 @@ export declare const AgentTranscriptSchema: z.ZodObject<{
|
|
|
1336
1341
|
user: "user";
|
|
1337
1342
|
}>;
|
|
1338
1343
|
text: z.ZodString;
|
|
1344
|
+
run: z.ZodOptional<z.ZodString>;
|
|
1339
1345
|
sentAt: z.ZodOptional<z.ZodNumber>;
|
|
1340
1346
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1341
1347
|
checkpointId: z.ZodOptional<z.ZodString>;
|
|
@@ -1596,6 +1602,9 @@ export declare const AgentTranscriptSchema: z.ZodObject<{
|
|
|
1596
1602
|
from: z.ZodNumber;
|
|
1597
1603
|
more: z.ZodBoolean;
|
|
1598
1604
|
}, z.core.$strip>;
|
|
1605
|
+
export declare const AgentToolChildrenSchema: z.ZodObject<{
|
|
1606
|
+
children: z.ZodArray<z.ZodType<TranscriptTool, unknown, z.core.$ZodTypeInternals<TranscriptTool, unknown>>>;
|
|
1607
|
+
}, z.core.$strip>;
|
|
1599
1608
|
export declare const SharePayloadSchema: z.ZodObject<{
|
|
1600
1609
|
title: z.ZodString;
|
|
1601
1610
|
sharedAt: z.ZodNumber;
|
|
@@ -1610,6 +1619,7 @@ export declare const SharePayloadSchema: z.ZodObject<{
|
|
|
1610
1619
|
user: "user";
|
|
1611
1620
|
}>;
|
|
1612
1621
|
text: z.ZodString;
|
|
1622
|
+
run: z.ZodOptional<z.ZodString>;
|
|
1613
1623
|
sentAt: z.ZodOptional<z.ZodNumber>;
|
|
1614
1624
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1615
1625
|
checkpointId: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcript.d.ts","sourceRoot":"","sources":["../../src/events/transcript.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,QAAQ,EAAC,MAAM,YAAY,CAAC;AAS7F,eAAO,MAAM,gBAAgB;;;;;EAA2D,CAAC;AACzF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,eAAO,MAAM,oBAAoB;;;;EAA+C,CAAC;AACjF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,eAAO,MAAM,sBAAsB;;;;;;EAAkE,CAAC;AAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAehC,CAAC;AAGH,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AAIH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -48,6 +48,12 @@ export const TranscriptToolSchema = z.lazy(() => z.object({
|
|
|
48
48
|
.array(TranscriptToolSchema)
|
|
49
49
|
.optional()
|
|
50
50
|
.describe("Calls a delegated subagent made, nested under the call that started it, so a reopened conversation redraws the delegation rather than collapsing it into one result."),
|
|
51
|
+
nested: z
|
|
52
|
+
.number()
|
|
53
|
+
.int()
|
|
54
|
+
.nonnegative()
|
|
55
|
+
.optional()
|
|
56
|
+
.describe("How many calls sit under this one, present in place of `children` when they were left behind. A transcript page does that, since a settled delegation draws collapsed; ask for the call's own children to fill it in."),
|
|
51
57
|
thinking: z.string().optional().describe("What the agent was reasoning about around this call."),
|
|
52
58
|
subagent: TranscriptSubagentSchema.optional().describe("The helper this call started, as the daemon's registry sees it: what it is, how it is going, what it has spent. What a card can say about a backgrounded child whose result is minutes away."),
|
|
53
59
|
}));
|
|
@@ -91,6 +97,10 @@ export const TranscriptRowSchema = z.object({
|
|
|
91
97
|
.enum(["user", "assistant", "notice"])
|
|
92
98
|
.describe("Who said it. A notice is neither side: it is something that happened to the turn, recorded so a reopened conversation can say it. Without those, a turn a provider refused ends on the user's message and reads as broken."),
|
|
93
99
|
text: z.string().describe("The words."),
|
|
100
|
+
run: z
|
|
101
|
+
.string()
|
|
102
|
+
.optional()
|
|
103
|
+
.describe("The run that produced this row. Present on everything a turn produced, absent on rows written outside one. A client draws a run's rows over whatever it already holds for that run, which is what this identifies; content cannot, because the last row of a live run keeps growing."),
|
|
94
104
|
sentAt: z
|
|
95
105
|
.number()
|
|
96
106
|
.optional()
|
|
@@ -210,6 +220,9 @@ export const AgentTranscriptSchema = SessionTranscriptSchema.extend({
|
|
|
210
220
|
from: z.number().int().nonnegative().describe("Where the first message sits in the whole record, and the `before` that asks for the page above this one."),
|
|
211
221
|
more: z.boolean().describe("Whether older messages precede this page."),
|
|
212
222
|
});
|
|
223
|
+
export const AgentToolChildrenSchema = z.object({
|
|
224
|
+
children: z.array(TranscriptToolSchema).describe("The calls the delegated agent made, in the order it made them."),
|
|
225
|
+
});
|
|
213
226
|
export const SharePayloadSchema = z.object({
|
|
214
227
|
title: z.string(),
|
|
215
228
|
sharedAt: z.number(),
|