@effect-agent/platform-cloudflare 0.1.0-beta.11 → 0.1.0-beta.12
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/index.d.mts +78 -78
- package/package.json +10 -7
package/dist/index.d.mts
CHANGED
|
@@ -594,6 +594,50 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
594
594
|
readonly createdAt: string;
|
|
595
595
|
readonly deploymentId: string;
|
|
596
596
|
readonly payload: {
|
|
597
|
+
readonly _tag: "SubagentStarted";
|
|
598
|
+
readonly runId: string;
|
|
599
|
+
readonly toolCallId: string;
|
|
600
|
+
readonly childConversationId: string;
|
|
601
|
+
readonly childSubmissionId: string;
|
|
602
|
+
readonly childReceiptId: string;
|
|
603
|
+
readonly childRunId: string;
|
|
604
|
+
} | {
|
|
605
|
+
readonly _tag: "ToolCallPrepared";
|
|
606
|
+
readonly runId: string;
|
|
607
|
+
readonly turnId: string;
|
|
608
|
+
readonly turn: number;
|
|
609
|
+
readonly toolCallId: string;
|
|
610
|
+
readonly toolName: string;
|
|
611
|
+
readonly parameters: Schema.Json;
|
|
612
|
+
readonly parametersDigest: string;
|
|
613
|
+
} | {
|
|
614
|
+
readonly _tag: "ToolCallUnknown";
|
|
615
|
+
readonly runId: string;
|
|
616
|
+
readonly turn: number;
|
|
617
|
+
readonly toolCallId: string;
|
|
618
|
+
readonly toolName: string;
|
|
619
|
+
readonly reason: string;
|
|
620
|
+
} | {
|
|
621
|
+
readonly _tag: "ToolApprovalDecided";
|
|
622
|
+
readonly runId: string;
|
|
623
|
+
readonly turn: number;
|
|
624
|
+
readonly toolCallId: string;
|
|
625
|
+
readonly decision: "approved" | "denied";
|
|
626
|
+
readonly resolver: string;
|
|
627
|
+
readonly reason: string;
|
|
628
|
+
} | {
|
|
629
|
+
readonly _tag: "ToolCallResolved";
|
|
630
|
+
readonly runId: string;
|
|
631
|
+
readonly toolCallId: string;
|
|
632
|
+
readonly resolution: "completed-with-result" | "failed-with-error" | "never-started" | "safe-retry";
|
|
633
|
+
readonly author: string;
|
|
634
|
+
readonly reason: string;
|
|
635
|
+
} | {
|
|
636
|
+
readonly _tag: "AbortRequested";
|
|
637
|
+
readonly submissionId: string;
|
|
638
|
+
readonly author: string;
|
|
639
|
+
readonly reason: string;
|
|
640
|
+
} | {
|
|
597
641
|
readonly _tag: "ConversationCreated";
|
|
598
642
|
readonly agentId: string;
|
|
599
643
|
readonly definitions: {
|
|
@@ -621,15 +665,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
621
665
|
readonly inputTokens?: number | undefined;
|
|
622
666
|
readonly outputTokens?: number | undefined;
|
|
623
667
|
readonly costMicrousd?: number | undefined;
|
|
624
|
-
} | {
|
|
625
|
-
readonly _tag: "ToolCallPrepared";
|
|
626
|
-
readonly runId: string;
|
|
627
|
-
readonly turnId: string;
|
|
628
|
-
readonly turn: number;
|
|
629
|
-
readonly toolCallId: string;
|
|
630
|
-
readonly toolName: string;
|
|
631
|
-
readonly parameters: Schema.Json;
|
|
632
|
-
readonly parametersDigest: string;
|
|
633
668
|
} | {
|
|
634
669
|
readonly _tag: "ToolCallSettled";
|
|
635
670
|
readonly runId: string;
|
|
@@ -637,20 +672,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
637
672
|
readonly toolName: string;
|
|
638
673
|
readonly result: Schema.Json;
|
|
639
674
|
readonly isFailure: boolean;
|
|
640
|
-
} | {
|
|
641
|
-
readonly _tag: "ToolCallUnknown";
|
|
642
|
-
readonly runId: string;
|
|
643
|
-
readonly turn: number;
|
|
644
|
-
readonly toolCallId: string;
|
|
645
|
-
readonly toolName: string;
|
|
646
|
-
readonly reason: string;
|
|
647
|
-
} | {
|
|
648
|
-
readonly _tag: "ToolCallResolved";
|
|
649
|
-
readonly runId: string;
|
|
650
|
-
readonly toolCallId: string;
|
|
651
|
-
readonly resolution: "completed-with-result" | "failed-with-error" | "never-started" | "safe-retry";
|
|
652
|
-
readonly author: string;
|
|
653
|
-
readonly reason: string;
|
|
654
675
|
} | {
|
|
655
676
|
readonly _tag: "ToolStepSettled";
|
|
656
677
|
readonly runId: string;
|
|
@@ -666,14 +687,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
666
687
|
readonly toolCallId: string;
|
|
667
688
|
readonly toolName: string;
|
|
668
689
|
readonly parametersDigest: string;
|
|
669
|
-
} | {
|
|
670
|
-
readonly _tag: "ToolApprovalDecided";
|
|
671
|
-
readonly runId: string;
|
|
672
|
-
readonly turn: number;
|
|
673
|
-
readonly toolCallId: string;
|
|
674
|
-
readonly decision: "approved" | "denied";
|
|
675
|
-
readonly resolver: string;
|
|
676
|
-
readonly reason: string;
|
|
677
690
|
} | {
|
|
678
691
|
readonly _tag: "ModelResponseInterrupted";
|
|
679
692
|
readonly runId: string;
|
|
@@ -695,11 +708,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
695
708
|
readonly _tag: "RunCompleted";
|
|
696
709
|
readonly runId: string;
|
|
697
710
|
readonly output: Schema.Json;
|
|
698
|
-
} | {
|
|
699
|
-
readonly _tag: "AbortRequested";
|
|
700
|
-
readonly submissionId: string;
|
|
701
|
-
readonly author: string;
|
|
702
|
-
readonly reason: string;
|
|
703
711
|
} | {
|
|
704
712
|
readonly _tag: "SubmissionSettled";
|
|
705
713
|
readonly submissionId: string;
|
|
@@ -730,14 +738,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
730
738
|
readonly childConversationId: string;
|
|
731
739
|
readonly childPrincipal: string;
|
|
732
740
|
readonly childIdempotencyKey: string;
|
|
733
|
-
} | {
|
|
734
|
-
readonly _tag: "SubagentStarted";
|
|
735
|
-
readonly runId: string;
|
|
736
|
-
readonly toolCallId: string;
|
|
737
|
-
readonly childConversationId: string;
|
|
738
|
-
readonly childSubmissionId: string;
|
|
739
|
-
readonly childReceiptId: string;
|
|
740
|
-
readonly childRunId: string;
|
|
741
741
|
} | {
|
|
742
742
|
readonly _tag: "SubagentJoined";
|
|
743
743
|
readonly runId: string;
|
|
@@ -819,44 +819,18 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
819
819
|
} | {
|
|
820
820
|
readonly _tag: "HostFailed";
|
|
821
821
|
readonly failure: {
|
|
822
|
-
readonly _tag: "
|
|
823
|
-
readonly
|
|
824
|
-
} | {
|
|
825
|
-
readonly _tag: "AgentInputError";
|
|
822
|
+
readonly _tag: "LedgerError";
|
|
823
|
+
readonly operation: string;
|
|
826
824
|
readonly message: string;
|
|
825
|
+
readonly cause?: Schema.Json | undefined;
|
|
827
826
|
} | {
|
|
828
827
|
readonly _tag: "DigestError";
|
|
829
828
|
readonly message: string;
|
|
830
829
|
readonly cause?: Schema.Json | undefined;
|
|
831
|
-
} | {
|
|
832
|
-
readonly _tag: "AdmissionConflict";
|
|
833
|
-
readonly conversationId: string;
|
|
834
|
-
readonly principal: string;
|
|
835
|
-
readonly idempotencyKey: string;
|
|
836
|
-
readonly existingInputDigest: string;
|
|
837
|
-
readonly attemptedInputDigest: string;
|
|
838
830
|
} | {
|
|
839
831
|
readonly _tag: "SettlementConflict";
|
|
840
832
|
readonly submissionId: string;
|
|
841
833
|
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
842
|
-
} | {
|
|
843
|
-
readonly _tag: "ApprovalConflict";
|
|
844
|
-
readonly submissionId: string;
|
|
845
|
-
readonly toolCallId: string;
|
|
846
|
-
readonly existingDecision: "approved" | "denied";
|
|
847
|
-
} | {
|
|
848
|
-
readonly _tag: "UnknownResolutionConflict";
|
|
849
|
-
readonly submissionId: string;
|
|
850
|
-
readonly toolCallId: string;
|
|
851
|
-
} | {
|
|
852
|
-
readonly _tag: "JoinedToHost";
|
|
853
|
-
readonly submissionId: string;
|
|
854
|
-
readonly hostSubmissionId: string;
|
|
855
|
-
} | {
|
|
856
|
-
readonly _tag: "LedgerError";
|
|
857
|
-
readonly operation: string;
|
|
858
|
-
readonly message: string;
|
|
859
|
-
readonly cause?: Schema.Json | undefined;
|
|
860
834
|
} | {
|
|
861
835
|
readonly _tag: "ConversationStoreError";
|
|
862
836
|
readonly operation: string;
|
|
@@ -880,16 +854,42 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
880
854
|
} | {
|
|
881
855
|
readonly _tag: "DurableRuntimeFailpointError";
|
|
882
856
|
readonly location: "abort:after-intent" | "approval:after-request-append" | "approval:after-suspend" | "claim:after-claim" | "compaction:after-canonical-append" | "input:after-canonical-append" | "join:after-canonical-append" | "join:after-claim" | "resolve:after-intent" | "step:after-step-append" | "subagent:after-admit" | "subagent:after-child-abort-intent" | "subagent:after-child-ready" | "subagent:after-join-append" | "subagent:after-release" | "subagent:after-release-pending" | "subagent:after-request-append" | "subagent:after-reserve" | "subagent:after-sibling-settle" | "subagent:after-start-append" | "subagent:after-suspend" | "submit:after-admit" | "submit:after-materialize" | "terminalize:after-canonical-append" | "terminalize:after-reserve" | "tools:after-prepared-append" | "turn:after-canonical-append" | "turn:after-response-append" | "turn:after-results-append";
|
|
883
|
-
} | {
|
|
884
|
-
readonly _tag: "AdmissionLimitExceeded";
|
|
885
|
-
readonly limit: "database-bytes" | "input-bytes" | "queue-depth";
|
|
886
|
-
readonly actual: number;
|
|
887
|
-
readonly maximum: number;
|
|
888
857
|
} | {
|
|
889
858
|
readonly _tag: "DurableAlarmError";
|
|
890
859
|
readonly operation: string;
|
|
891
860
|
readonly message: string;
|
|
892
861
|
readonly cause?: Schema.Json | undefined;
|
|
862
|
+
} | {
|
|
863
|
+
readonly _tag: "HostProtocolError";
|
|
864
|
+
readonly message: string;
|
|
865
|
+
} | {
|
|
866
|
+
readonly _tag: "AgentInputError";
|
|
867
|
+
readonly message: string;
|
|
868
|
+
} | {
|
|
869
|
+
readonly _tag: "AdmissionConflict";
|
|
870
|
+
readonly conversationId: string;
|
|
871
|
+
readonly principal: string;
|
|
872
|
+
readonly idempotencyKey: string;
|
|
873
|
+
readonly existingInputDigest: string;
|
|
874
|
+
readonly attemptedInputDigest: string;
|
|
875
|
+
} | {
|
|
876
|
+
readonly _tag: "ApprovalConflict";
|
|
877
|
+
readonly submissionId: string;
|
|
878
|
+
readonly toolCallId: string;
|
|
879
|
+
readonly existingDecision: "approved" | "denied";
|
|
880
|
+
} | {
|
|
881
|
+
readonly _tag: "UnknownResolutionConflict";
|
|
882
|
+
readonly submissionId: string;
|
|
883
|
+
readonly toolCallId: string;
|
|
884
|
+
} | {
|
|
885
|
+
readonly _tag: "JoinedToHost";
|
|
886
|
+
readonly submissionId: string;
|
|
887
|
+
readonly hostSubmissionId: string;
|
|
888
|
+
} | {
|
|
889
|
+
readonly _tag: "AdmissionLimitExceeded";
|
|
890
|
+
readonly limit: "database-bytes" | "input-bytes" | "queue-depth";
|
|
891
|
+
readonly actual: number;
|
|
892
|
+
readonly maximum: number;
|
|
893
893
|
};
|
|
894
894
|
}, Schema.SchemaError, never>;
|
|
895
895
|
declare const decodeHostResponse: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<AbortRecorded | ApprovalRecorded | HostFailed | ObservedPage | SettlementReached | SubmitSucceeded | UnknownResolutionRecorded, Schema.SchemaError, never>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-agent/platform-cloudflare",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.12",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"types": "./dist/index.d.mts",
|
|
@@ -8,14 +8,16 @@
|
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@effect-agent/core": "0.1.0-beta.
|
|
12
|
-
"@effect-agent/sandbox": "0.1.0-beta.
|
|
13
|
-
"@effect-agent/session": "0.1.0-beta.
|
|
14
|
-
"@effect-agent/storage-cloudflare": "0.1.0-beta.
|
|
11
|
+
"@effect-agent/core": "0.1.0-beta.12",
|
|
12
|
+
"@effect-agent/sandbox": "0.1.0-beta.12",
|
|
13
|
+
"@effect-agent/session": "0.1.0-beta.12",
|
|
14
|
+
"@effect-agent/storage-cloudflare": "0.1.0-beta.12",
|
|
15
15
|
"@effect/platform-browser": "4.0.0-beta.107",
|
|
16
16
|
"@effect/sql-sqlite-do": "4.0.0-beta.107",
|
|
17
|
-
"effect": "4.0.0-beta.107"
|
|
18
|
-
|
|
17
|
+
"effect": "4.0.0-beta.107"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"effect-cf": "^0.27.0"
|
|
19
21
|
},
|
|
20
22
|
"description": "Class DC layer assembly for Effect Agent: SQLite-backed Conversation Durable Objects with alarm-driven recovery.",
|
|
21
23
|
"license": "MIT",
|
|
@@ -44,6 +46,7 @@
|
|
|
44
46
|
"@effect-agent/engine": "0.1.0-beta.6",
|
|
45
47
|
"@effect-agent/testing": "0.1.0-beta.6",
|
|
46
48
|
"@effect/vitest": "4.0.0-beta.107",
|
|
49
|
+
"effect-cf": "0.27.0",
|
|
47
50
|
"esbuild": "0.28.1",
|
|
48
51
|
"miniflare": "4.20260730.0",
|
|
49
52
|
"typescript": "7.0.2",
|