@effect-agent/platform-cloudflare 0.1.0-beta.87 → 0.1.0-beta.88
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.
|
@@ -454,13 +454,13 @@ declare const encodeUnknownResolutionCommand: (input: UnknownResolutionCommand,
|
|
|
454
454
|
readonly author: string;
|
|
455
455
|
readonly reason: string;
|
|
456
456
|
readonly resolution: {
|
|
457
|
+
readonly _tag: "SafeToRetry";
|
|
458
|
+
} | {
|
|
457
459
|
readonly _tag: "CompletedWithResult";
|
|
458
460
|
readonly result: Schema.Json;
|
|
459
461
|
readonly isFailure: boolean;
|
|
460
462
|
} | {
|
|
461
463
|
readonly _tag: "NeverHappened";
|
|
462
|
-
} | {
|
|
463
|
-
readonly _tag: "SafeToRetry";
|
|
464
464
|
} | {
|
|
465
465
|
readonly _tag: "AbortSubmission";
|
|
466
466
|
};
|
|
@@ -596,6 +596,19 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
596
596
|
readonly createdAt: string;
|
|
597
597
|
readonly deploymentId: string;
|
|
598
598
|
readonly payload: {
|
|
599
|
+
readonly _tag: "SubagentStarted";
|
|
600
|
+
readonly runId: string;
|
|
601
|
+
readonly toolCallId: string;
|
|
602
|
+
readonly childThreadId: string;
|
|
603
|
+
readonly childSubmissionId: string;
|
|
604
|
+
readonly childReceiptId: string;
|
|
605
|
+
readonly childRunId: string;
|
|
606
|
+
} | {
|
|
607
|
+
readonly _tag: "AbortRequested";
|
|
608
|
+
readonly submissionId: string;
|
|
609
|
+
readonly author: string;
|
|
610
|
+
readonly reason: string;
|
|
611
|
+
} | {
|
|
599
612
|
readonly _tag: "ThreadCreated";
|
|
600
613
|
readonly agentId: string;
|
|
601
614
|
readonly definitions: {
|
|
@@ -839,11 +852,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
839
852
|
readonly runDisposition?: Schema.Json | undefined;
|
|
840
853
|
readonly finishReason?: "budget-exhausted" | undefined;
|
|
841
854
|
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
842
|
-
} | {
|
|
843
|
-
readonly _tag: "AbortRequested";
|
|
844
|
-
readonly submissionId: string;
|
|
845
|
-
readonly author: string;
|
|
846
|
-
readonly reason: string;
|
|
847
855
|
} | {
|
|
848
856
|
readonly _tag: "SubmissionSettled";
|
|
849
857
|
readonly submissionId: string;
|
|
@@ -971,14 +979,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
971
979
|
readonly childLifetimes?: readonly ("attached" | "background")[] | undefined;
|
|
972
980
|
} | undefined;
|
|
973
981
|
readonly depth?: number | undefined;
|
|
974
|
-
} | {
|
|
975
|
-
readonly _tag: "SubagentStarted";
|
|
976
|
-
readonly runId: string;
|
|
977
|
-
readonly toolCallId: string;
|
|
978
|
-
readonly childThreadId: string;
|
|
979
|
-
readonly childSubmissionId: string;
|
|
980
|
-
readonly childReceiptId: string;
|
|
981
|
-
readonly childRunId: string;
|
|
982
982
|
} | {
|
|
983
983
|
readonly _tag: "SubagentJoined";
|
|
984
984
|
readonly runId: string;
|
|
@@ -1332,13 +1332,13 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1332
1332
|
readonly author: string;
|
|
1333
1333
|
readonly reason: string;
|
|
1334
1334
|
readonly resolution: {
|
|
1335
|
+
readonly _tag: "SafeToRetry";
|
|
1336
|
+
} | {
|
|
1335
1337
|
readonly _tag: "CompletedWithResult";
|
|
1336
1338
|
readonly result: Schema.Json;
|
|
1337
1339
|
readonly isFailure: boolean;
|
|
1338
1340
|
} | {
|
|
1339
1341
|
readonly _tag: "NeverHappened";
|
|
1340
|
-
} | {
|
|
1341
|
-
readonly _tag: "SafeToRetry";
|
|
1342
1342
|
} | {
|
|
1343
1343
|
readonly _tag: "AbortSubmission";
|
|
1344
1344
|
};
|
|
@@ -1348,10 +1348,37 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1348
1348
|
} | {
|
|
1349
1349
|
readonly _tag: "HostFailed";
|
|
1350
1350
|
readonly failure: {
|
|
1351
|
+
readonly _tag: "AdmissionConflict";
|
|
1352
|
+
readonly threadId: string;
|
|
1353
|
+
readonly principal: string;
|
|
1354
|
+
readonly idempotencyKey: string;
|
|
1355
|
+
readonly existingInputDigest: string;
|
|
1356
|
+
readonly attemptedInputDigest: string;
|
|
1357
|
+
} | {
|
|
1358
|
+
readonly _tag: "AdmissionPolicyError";
|
|
1359
|
+
readonly reason: "occupied" | "refused" | "unavailable";
|
|
1360
|
+
readonly code: string;
|
|
1361
|
+
} | {
|
|
1362
|
+
readonly _tag: "SettlementConflict";
|
|
1363
|
+
readonly submissionId: string;
|
|
1364
|
+
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
1365
|
+
} | {
|
|
1366
|
+
readonly _tag: "JoinedToHost";
|
|
1367
|
+
readonly submissionId: string;
|
|
1368
|
+
readonly hostSubmissionId: string;
|
|
1369
|
+
} | {
|
|
1351
1370
|
readonly _tag: "LedgerError";
|
|
1352
1371
|
readonly operation: string;
|
|
1353
1372
|
readonly message: string;
|
|
1354
1373
|
readonly cause?: Schema.Json | undefined;
|
|
1374
|
+
} | {
|
|
1375
|
+
readonly _tag: "ThreadStoreError";
|
|
1376
|
+
readonly operation: string;
|
|
1377
|
+
readonly message: string;
|
|
1378
|
+
readonly cause?: Schema.Json | undefined;
|
|
1379
|
+
} | {
|
|
1380
|
+
readonly _tag: "ThreadNotMaterialized";
|
|
1381
|
+
readonly threadId: string;
|
|
1355
1382
|
} | {
|
|
1356
1383
|
readonly _tag: "AppendConflict";
|
|
1357
1384
|
readonly threadId: string;
|
|
@@ -1365,10 +1392,7 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1365
1392
|
readonly actualEpoch: number;
|
|
1366
1393
|
readonly attemptedEpoch: number;
|
|
1367
1394
|
} | {
|
|
1368
|
-
readonly _tag: "
|
|
1369
|
-
readonly threadId: string;
|
|
1370
|
-
} | {
|
|
1371
|
-
readonly _tag: "ThreadStoreError";
|
|
1395
|
+
readonly _tag: "DurableAlarmError";
|
|
1372
1396
|
readonly operation: string;
|
|
1373
1397
|
readonly message: string;
|
|
1374
1398
|
readonly cause?: Schema.Json | undefined;
|
|
@@ -1378,17 +1402,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1378
1402
|
readonly reason: string;
|
|
1379
1403
|
readonly threadId?: string | undefined;
|
|
1380
1404
|
readonly submissionId?: string | undefined;
|
|
1381
|
-
} | {
|
|
1382
|
-
readonly _tag: "AdmissionConflict";
|
|
1383
|
-
readonly threadId: string;
|
|
1384
|
-
readonly principal: string;
|
|
1385
|
-
readonly idempotencyKey: string;
|
|
1386
|
-
readonly existingInputDigest: string;
|
|
1387
|
-
readonly attemptedInputDigest: string;
|
|
1388
|
-
} | {
|
|
1389
|
-
readonly _tag: "AdmissionPolicyError";
|
|
1390
|
-
readonly reason: "occupied" | "refused" | "unavailable";
|
|
1391
|
-
readonly code: string;
|
|
1392
1405
|
} | {
|
|
1393
1406
|
readonly _tag: "AgentInputError";
|
|
1394
1407
|
readonly message: string;
|
|
@@ -1399,22 +1412,9 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1399
1412
|
} | {
|
|
1400
1413
|
readonly _tag: "DurableRuntimeFailpointError";
|
|
1401
1414
|
readonly location: "abort:after-intent" | "approval:after-request-append" | "approval:after-suspend" | "checkpoint:after-save" | "checkpoint:before-save" | "claim:after-claim" | "compaction:after-canonical-append" | "compaction:before-canonical-append" | "input:after-canonical-append" | "join:after-canonical-append" | "join:after-claim" | "policy:after-reservation-append" | "policy:before-reservation-append" | "resolve:after-intent" | "run:after-start-append" | "run:before-start-append" | "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" | "subagent:before-join-append" | "submit:after-admit" | "submit:after-materialize" | "terminalize:after-canonical-append" | "terminalize:after-reserve" | "tools:after-prepared-append" | "tools:before-prepared-append" | "turn:after-canonical-append" | "turn:after-response-append" | "turn:after-results-append" | "update:after-canonical-append" | "update:after-delivery-insert" | "update:before-canonical-append" | "update:before-delivery-insert" | "worker:after-completion-append" | "worker:after-origin-append" | "worker:after-report-append" | "worker:after-report-delivery" | "worker:after-source-append" | "worker:after-subtree-append" | "worker:before-completion-append" | "worker:before-origin-append" | "worker:before-report-append" | "worker:before-report-delivery" | "worker:before-source-append" | "worker:before-subtree-append";
|
|
1402
|
-
} | {
|
|
1403
|
-
readonly _tag: "SettlementConflict";
|
|
1404
|
-
readonly submissionId: string;
|
|
1405
|
-
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
1406
|
-
} | {
|
|
1407
|
-
readonly _tag: "JoinedToHost";
|
|
1408
|
-
readonly submissionId: string;
|
|
1409
|
-
readonly hostSubmissionId: string;
|
|
1410
1415
|
} | {
|
|
1411
1416
|
readonly _tag: "HostProtocolError";
|
|
1412
1417
|
readonly message: string;
|
|
1413
|
-
} | {
|
|
1414
|
-
readonly _tag: "DurableAlarmError";
|
|
1415
|
-
readonly operation: string;
|
|
1416
|
-
readonly message: string;
|
|
1417
|
-
readonly cause?: Schema.Json | undefined;
|
|
1418
1418
|
} | {
|
|
1419
1419
|
readonly _tag: "ApprovalConflict";
|
|
1420
1420
|
readonly submissionId: string;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@effect-agent/platform-cloudflare","version":"0.1.0-beta.
|
|
1
|
+
{"name":"@effect-agent/platform-cloudflare","version":"0.1.0-beta.88","dependencies":{"@effect-agent/storage-cloudflare":"0.1.0-beta.88","@effect/platform-browser":"4.0.0-rc.112","@effect/sql-sqlite-do":"4.0.0-rc.112","effect-agent":"0.1.0-beta.88"},"devDependencies":{"@cloudflare/puppeteer":"1.1.0","@cloudflare/vitest-pool-workers":"0.21.3","@cloudflare/workers-types":"5.20260825.1","@effect-agent/testing":"0.1.0-beta.88","@effect/platform-node":"4.0.0-rc.112","@effect/sql-d1":"4.0.0-rc.112","@effect/vitest":"4.0.0-rc.112","effect":"4.0.0-rc.112","effect-cf":"0.41.0","esbuild":"0.28.1","miniflare":"5.20260811.1-alpha","typescript":"7.0.2","vite-plus":"0.3.0","vitest":"4.1.11"},"peerDependencies":{"@cloudflare/puppeteer":"^1.1.0","effect":"^4.0.0-rc.112","effect-cf":"^0.41.0"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./alarm":{"types":"./dist/Alarm.d.mts","default":"./dist/Alarm.mjs"},"./browser-rest-capture":{"types":"./dist/BrowserRestCapture.d.mts","default":"./dist/BrowserRestCapture.mjs"},"./browser-rest-crawl":{"types":"./dist/BrowserRestCrawl.d.mts","default":"./dist/BrowserRestCrawl.mjs"},"./cloudflare-bindings":{"types":"./dist/CloudflareBindings.d.mts","default":"./dist/CloudflareBindings.mjs"},"./cloudflare-browser":{"types":"./dist/CloudflareBrowser.d.mts","default":"./dist/CloudflareBrowser.mjs"},"./cloudflare-code-mode":{"types":"./dist/CloudflareCodeMode.d.mts","default":"./dist/CloudflareCodeMode.mjs"},"./cloudflare-config":{"types":"./dist/CloudflareConfig.d.mts","default":"./dist/CloudflareConfig.mjs"},"./cloudflare-memory":{"types":"./dist/CloudflareMemory.d.mts","default":"./dist/CloudflareMemory.mjs"},"./cloudflare-scheduling":{"types":"./dist/CloudflareScheduling.d.mts","default":"./dist/CloudflareScheduling.mjs"},"./cloudflare-subscriptions":{"types":"./dist/CloudflareSubscriptions.d.mts","default":"./dist/CloudflareSubscriptions.mjs"},"./cloudflare-thread-client":{"types":"./dist/CloudflareThreadClient.d.mts","default":"./dist/CloudflareThreadClient.mjs"},"./interactive-browser":{"types":"./dist/InteractiveBrowser.d.mts","default":"./dist/InteractiveBrowser.mjs"},"./protected-browser":{"types":"./dist/ProtectedBrowser.d.mts","default":"./dist/ProtectedBrowser.mjs"},"./thread-object":{"types":"./dist/ThreadObject.d.mts","default":"./dist/ThreadObject.mjs"},"./wake-scheduler":{"types":"./dist/WakeScheduler.d.mts","default":"./dist/WakeScheduler.mjs"},"./cloudflare-ai-gateway":{"types":"./dist/CloudflareAiGateway.d.mts","default":"./dist/CloudflareAiGateway.mjs"}},"description":"Cloudflare Layer assembly for Effect Agent: Durable Objects and Browser Run adapters.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/danieljvdm/effect-agent.git","directory":"packages/platform-cloudflare"},"files":["dist","src"],"type":"module","sideEffects":[],"publishConfig":{"access":"public"},"scripts":{"build":"vp pack","check":"tsc --noEmit -p tsconfig.json"},"peerDependenciesMeta":{"@cloudflare/puppeteer":{"optional":true}}}
|