@effect-agent/storage-cloudflare 0.1.0-beta.71 → 0.1.0-beta.73

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.
@@ -350,6 +350,11 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
350
350
  readonly createdAt: string;
351
351
  readonly deploymentId: string;
352
352
  readonly payload: {
353
+ readonly _tag: "AbortRequested";
354
+ readonly submissionId: string;
355
+ readonly author: string;
356
+ readonly reason: string;
357
+ } | {
353
358
  readonly _tag: "ThreadCreated";
354
359
  readonly agentId: string;
355
360
  readonly definitions: {
@@ -400,6 +405,12 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
400
405
  readonly messages?: Schema.Json | undefined;
401
406
  } | {
402
407
  readonly _tag: "ModelResponseRecorded";
408
+ readonly toolExposure?: {
409
+ readonly exposedToolNames: readonly string[];
410
+ readonly selection?: {
411
+ readonly toolNames: readonly string[];
412
+ } | undefined;
413
+ } | undefined;
403
414
  readonly runId: string;
404
415
  readonly turnId: string;
405
416
  readonly turn: number;
@@ -447,6 +458,9 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
447
458
  readonly executionKind?: "delegation" | "orchestration" | "ordinary" | undefined;
448
459
  } | {
449
460
  readonly _tag: "ToolCallSettled";
461
+ readonly toolSelection?: {
462
+ readonly toolNames: readonly string[];
463
+ } | undefined;
450
464
  readonly runId: string;
451
465
  readonly toolCallId: string;
452
466
  readonly toolName: string;
@@ -515,11 +529,6 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
515
529
  readonly runDisposition?: Schema.Json | undefined;
516
530
  readonly finishReason?: "budget-exhausted" | undefined;
517
531
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
518
- } | {
519
- readonly _tag: "AbortRequested";
520
- readonly submissionId: string;
521
- readonly author: string;
522
- readonly reason: string;
523
532
  } | {
524
533
  readonly _tag: "SubmissionSettled";
525
534
  readonly submissionId: string;
@@ -936,6 +945,11 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
936
945
  readonly createdAt: string;
937
946
  readonly deploymentId: string;
938
947
  readonly payload: {
948
+ readonly _tag: "AbortRequested";
949
+ readonly submissionId: string;
950
+ readonly author: string;
951
+ readonly reason: string;
952
+ } | {
939
953
  readonly _tag: "ThreadCreated";
940
954
  readonly agentId: string;
941
955
  readonly definitions: {
@@ -986,6 +1000,12 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
986
1000
  readonly messages?: Schema.Json | undefined;
987
1001
  } | {
988
1002
  readonly _tag: "ModelResponseRecorded";
1003
+ readonly toolExposure?: {
1004
+ readonly exposedToolNames: readonly string[];
1005
+ readonly selection?: {
1006
+ readonly toolNames: readonly string[];
1007
+ } | undefined;
1008
+ } | undefined;
989
1009
  readonly runId: string;
990
1010
  readonly turnId: string;
991
1011
  readonly turn: number;
@@ -1033,6 +1053,9 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
1033
1053
  readonly executionKind?: "delegation" | "orchestration" | "ordinary" | undefined;
1034
1054
  } | {
1035
1055
  readonly _tag: "ToolCallSettled";
1056
+ readonly toolSelection?: {
1057
+ readonly toolNames: readonly string[];
1058
+ } | undefined;
1036
1059
  readonly runId: string;
1037
1060
  readonly toolCallId: string;
1038
1061
  readonly toolName: string;
@@ -1101,11 +1124,6 @@ declare const encodePortRequest: (input: LedgerAdmitCall | LedgerLookupCall | Le
1101
1124
  readonly runDisposition?: Schema.Json | undefined;
1102
1125
  readonly finishReason?: "budget-exhausted" | undefined;
1103
1126
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
1104
- } | {
1105
- readonly _tag: "AbortRequested";
1106
- readonly submissionId: string;
1107
- readonly author: string;
1108
- readonly reason: string;
1109
1127
  } | {
1110
1128
  readonly _tag: "SubmissionSettled";
1111
1129
  readonly submissionId: string;
@@ -1851,6 +1869,11 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1851
1869
  readonly createdAt: string;
1852
1870
  readonly deploymentId: string;
1853
1871
  readonly payload: {
1872
+ readonly _tag: "AbortRequested";
1873
+ readonly submissionId: string;
1874
+ readonly author: string;
1875
+ readonly reason: string;
1876
+ } | {
1854
1877
  readonly _tag: "ThreadCreated";
1855
1878
  readonly agentId: string;
1856
1879
  readonly definitions: {
@@ -1901,6 +1924,12 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1901
1924
  readonly messages?: Schema.Json | undefined;
1902
1925
  } | {
1903
1926
  readonly _tag: "ModelResponseRecorded";
1927
+ readonly toolExposure?: {
1928
+ readonly exposedToolNames: readonly string[];
1929
+ readonly selection?: {
1930
+ readonly toolNames: readonly string[];
1931
+ } | undefined;
1932
+ } | undefined;
1904
1933
  readonly runId: string;
1905
1934
  readonly turnId: string;
1906
1935
  readonly turn: number;
@@ -1948,6 +1977,9 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
1948
1977
  readonly executionKind?: "delegation" | "orchestration" | "ordinary" | undefined;
1949
1978
  } | {
1950
1979
  readonly _tag: "ToolCallSettled";
1980
+ readonly toolSelection?: {
1981
+ readonly toolNames: readonly string[];
1982
+ } | undefined;
1951
1983
  readonly runId: string;
1952
1984
  readonly toolCallId: string;
1953
1985
  readonly toolName: string;
@@ -2016,11 +2048,6 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
2016
2048
  readonly runDisposition?: Schema.Json | undefined;
2017
2049
  readonly finishReason?: "budget-exhausted" | undefined;
2018
2050
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
2019
- } | {
2020
- readonly _tag: "AbortRequested";
2021
- readonly submissionId: string;
2022
- readonly author: string;
2023
- readonly reason: string;
2024
2051
  } | {
2025
2052
  readonly _tag: "SubmissionSettled";
2026
2053
  readonly submissionId: string;
@@ -2459,6 +2486,11 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
2459
2486
  readonly createdAt: string;
2460
2487
  readonly deploymentId: string;
2461
2488
  readonly payload: {
2489
+ readonly _tag: "AbortRequested";
2490
+ readonly submissionId: string;
2491
+ readonly author: string;
2492
+ readonly reason: string;
2493
+ } | {
2462
2494
  readonly _tag: "ThreadCreated";
2463
2495
  readonly agentId: string;
2464
2496
  readonly definitions: {
@@ -2509,6 +2541,12 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
2509
2541
  readonly messages?: Schema.Json | undefined;
2510
2542
  } | {
2511
2543
  readonly _tag: "ModelResponseRecorded";
2544
+ readonly toolExposure?: {
2545
+ readonly exposedToolNames: readonly string[];
2546
+ readonly selection?: {
2547
+ readonly toolNames: readonly string[];
2548
+ } | undefined;
2549
+ } | undefined;
2512
2550
  readonly runId: string;
2513
2551
  readonly turnId: string;
2514
2552
  readonly turn: number;
@@ -2556,6 +2594,9 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
2556
2594
  readonly executionKind?: "delegation" | "orchestration" | "ordinary" | undefined;
2557
2595
  } | {
2558
2596
  readonly _tag: "ToolCallSettled";
2597
+ readonly toolSelection?: {
2598
+ readonly toolNames: readonly string[];
2599
+ } | undefined;
2559
2600
  readonly runId: string;
2560
2601
  readonly toolCallId: string;
2561
2602
  readonly toolName: string;
@@ -2624,11 +2665,6 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
2624
2665
  readonly runDisposition?: Schema.Json | undefined;
2625
2666
  readonly finishReason?: "budget-exhausted" | undefined;
2626
2667
  readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
2627
- } | {
2628
- readonly _tag: "AbortRequested";
2629
- readonly submissionId: string;
2630
- readonly author: string;
2631
- readonly reason: string;
2632
2668
  } | {
2633
2669
  readonly _tag: "SubmissionSettled";
2634
2670
  readonly submissionId: string;
@@ -3045,6 +3081,9 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
3045
3081
  } | {
3046
3082
  readonly _tag: "PortFailed";
3047
3083
  readonly failure: {
3084
+ readonly _tag: "PortProtocolError";
3085
+ readonly message: string;
3086
+ } | {
3048
3087
  readonly _tag: "ThreadNotMaterialized";
3049
3088
  readonly threadId: string;
3050
3089
  } | {
@@ -3052,18 +3091,6 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
3052
3091
  readonly threadId: string;
3053
3092
  readonly actualEpoch: number;
3054
3093
  readonly attemptedEpoch: number;
3055
- } | {
3056
- readonly _tag: "ThreadStoreError";
3057
- readonly operation: string;
3058
- readonly message: string;
3059
- readonly cause?: Schema.Json | undefined;
3060
- } | {
3061
- readonly _tag: "AppendConflict";
3062
- readonly threadId: string;
3063
- readonly batchId: string;
3064
- readonly reason: "batch-digest" | "record-identity" | "tail";
3065
- readonly actualTailSequence?: number | undefined;
3066
- readonly actualTailDigest?: string | undefined;
3067
3094
  } | {
3068
3095
  readonly _tag: "AdmissionConflict";
3069
3096
  readonly threadId: string;
@@ -3080,13 +3107,22 @@ declare const encodePortResponse: (input: PortFailed | PortSucceeded, options?:
3080
3107
  readonly operation: string;
3081
3108
  readonly message: string;
3082
3109
  readonly cause?: Schema.Json | undefined;
3083
- } | {
3084
- readonly _tag: "PortProtocolError";
3085
- readonly message: string;
3086
3110
  } | {
3087
3111
  readonly _tag: "SettlementConflict";
3088
3112
  readonly submissionId: string;
3089
3113
  readonly existingOutcome: "aborted" | "completed" | "failed";
3114
+ } | {
3115
+ readonly _tag: "ThreadStoreError";
3116
+ readonly operation: string;
3117
+ readonly message: string;
3118
+ readonly cause?: Schema.Json | undefined;
3119
+ } | {
3120
+ readonly _tag: "AppendConflict";
3121
+ readonly threadId: string;
3122
+ readonly batchId: string;
3123
+ readonly reason: "batch-digest" | "record-identity" | "tail";
3124
+ readonly actualTailSequence?: number | undefined;
3125
+ readonly actualTailDigest?: string | undefined;
3090
3126
  } | {
3091
3127
  readonly _tag: "JoinedToHost";
3092
3128
  readonly submissionId: string;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@effect-agent/storage-cloudflare","version":"0.1.0-beta.71","dependencies":{"@effect-agent/core":"0.1.0-beta.71","@effect-agent/thread":"0.1.0-beta.71","@effect/platform-browser":"4.0.0-rc.112","@effect/sql-sqlite-do":"4.0.0-rc.112"},"devDependencies":{"@cloudflare/vitest-pool-workers":"0.21.3","@cloudflare/workers-types":"5.20260825.1","@effect-agent/testing":"0.1.0-beta.71","@effect/vitest":"4.0.0-rc.112","effect":"4.0.0-rc.112","typescript":"7.0.2","vite-plus":"0.3.0","vitest":"4.1.11"},"peerDependencies":{"effect":"^4.0.0-rc.112"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./DoMemoryStore":{"types":"./dist/DoMemoryStore.d.mts","default":"./dist/DoMemoryStore.mjs"},"./DoScheduleStore":{"types":"./dist/DoScheduleStore.d.mts","default":"./dist/DoScheduleStore.mjs"},"./DoStorageConfig":{"types":"./dist/DoStorageConfig.d.mts","default":"./dist/DoStorageConfig.mjs"},"./DoStorageError":{"types":"./dist/DoStorageError.d.mts","default":"./dist/DoStorageError.mjs"},"./DoStorageFailpoint":{"types":"./dist/DoStorageFailpoint.d.mts","default":"./dist/DoStorageFailpoint.mjs"},"./DoStorageVersion":{"types":"./dist/DoStorageVersion.d.mts","default":"./dist/DoStorageVersion.mjs"},"./DoSubmissionLedger":{"types":"./dist/DoSubmissionLedger.d.mts","default":"./dist/DoSubmissionLedger.mjs"},"./DoSubscriptionStore":{"types":"./dist/DoSubscriptionStore.d.mts","default":"./dist/DoSubscriptionStore.mjs"},"./DoThreadStore":{"types":"./dist/DoThreadStore.d.mts","default":"./dist/DoThreadStore.mjs"},"./MemoryProtocol":{"types":"./dist/MemoryProtocol.d.mts","default":"./dist/MemoryProtocol.mjs"},"./PortProtocol":{"types":"./dist/PortProtocol.d.mts","default":"./dist/PortProtocol.mjs"},"./PortRouting":{"types":"./dist/PortRouting.d.mts","default":"./dist/PortRouting.mjs"},"./testing/DoStorageFailpointTesting":{"types":"./dist/DoStorageFailpointTesting.d.mts","default":"./dist/DoStorageFailpointTesting.mjs"},"./DoMessageDeliveryStore":{"types":"./dist/DoMessageDeliveryStore.d.mts","default":"./dist/DoMessageDeliveryStore.mjs"}},"description":"Durable Object SQLite storage adapters and the routed port protocol for Effect Agent on Cloudflare.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/danieljvdm/effect-agent.git","directory":"packages/storage-cloudflare"},"files":["dist","src"],"type":"module","sideEffects":[],"publishConfig":{"access":"public"},"scripts":{"build":"vp pack","check":"tsc --noEmit -p tsconfig.json"}}
1
+ {"name":"@effect-agent/storage-cloudflare","version":"0.1.0-beta.73","dependencies":{"@effect-agent/core":"0.1.0-beta.73","@effect-agent/thread":"0.1.0-beta.73","@effect/platform-browser":"4.0.0-rc.112","@effect/sql-sqlite-do":"4.0.0-rc.112"},"devDependencies":{"@cloudflare/vitest-pool-workers":"0.21.3","@cloudflare/workers-types":"5.20260825.1","@effect-agent/testing":"0.1.0-beta.73","@effect/vitest":"4.0.0-rc.112","effect":"4.0.0-rc.112","typescript":"7.0.2","vite-plus":"0.3.0","vitest":"4.1.11"},"peerDependencies":{"effect":"^4.0.0-rc.112"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./DoMemoryStore":{"types":"./dist/DoMemoryStore.d.mts","default":"./dist/DoMemoryStore.mjs"},"./DoScheduleStore":{"types":"./dist/DoScheduleStore.d.mts","default":"./dist/DoScheduleStore.mjs"},"./DoStorageConfig":{"types":"./dist/DoStorageConfig.d.mts","default":"./dist/DoStorageConfig.mjs"},"./DoStorageError":{"types":"./dist/DoStorageError.d.mts","default":"./dist/DoStorageError.mjs"},"./DoStorageFailpoint":{"types":"./dist/DoStorageFailpoint.d.mts","default":"./dist/DoStorageFailpoint.mjs"},"./DoStorageVersion":{"types":"./dist/DoStorageVersion.d.mts","default":"./dist/DoStorageVersion.mjs"},"./DoSubmissionLedger":{"types":"./dist/DoSubmissionLedger.d.mts","default":"./dist/DoSubmissionLedger.mjs"},"./DoSubscriptionStore":{"types":"./dist/DoSubscriptionStore.d.mts","default":"./dist/DoSubscriptionStore.mjs"},"./DoThreadStore":{"types":"./dist/DoThreadStore.d.mts","default":"./dist/DoThreadStore.mjs"},"./MemoryProtocol":{"types":"./dist/MemoryProtocol.d.mts","default":"./dist/MemoryProtocol.mjs"},"./PortProtocol":{"types":"./dist/PortProtocol.d.mts","default":"./dist/PortProtocol.mjs"},"./PortRouting":{"types":"./dist/PortRouting.d.mts","default":"./dist/PortRouting.mjs"},"./testing/DoStorageFailpointTesting":{"types":"./dist/DoStorageFailpointTesting.d.mts","default":"./dist/DoStorageFailpointTesting.mjs"},"./DoMessageDeliveryStore":{"types":"./dist/DoMessageDeliveryStore.d.mts","default":"./dist/DoMessageDeliveryStore.mjs"}},"description":"Durable Object SQLite storage adapters and the routed port protocol for Effect Agent on Cloudflare.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/danieljvdm/effect-agent.git","directory":"packages/storage-cloudflare"},"files":["dist","src"],"type":"module","sideEffects":[],"publishConfig":{"access":"public"},"scripts":{"build":"vp pack","check":"tsc --noEmit -p tsconfig.json"}}