alchemy 2.0.0-beta.45 → 2.0.0-beta.46
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/lib/AlchemyContext.d.ts +0 -1
- package/lib/AlchemyContext.d.ts.map +1 -1
- package/lib/AlchemyContext.js.map +1 -1
- package/lib/Cli/commands/cloudflare.d.ts.map +1 -1
- package/lib/Cli/commands/cloudflare.js +5 -1
- package/lib/Cli/commands/cloudflare.js.map +1 -1
- package/lib/Cloudflare/Providers.d.ts.map +1 -1
- package/lib/Cloudflare/Providers.js +5 -1
- package/lib/Cloudflare/Providers.js.map +1 -1
- package/lib/Cloudflare/Queue/QueueConsumer.d.ts.map +1 -1
- package/lib/Cloudflare/Queue/QueueConsumer.js +1 -2
- package/lib/Cloudflare/Queue/QueueConsumer.js.map +1 -1
- package/lib/Cloudflare/StateStore/Api.d.ts +1 -1
- package/lib/Cloudflare/StateStore/Api.js +1 -1
- package/lib/Cloudflare/StateStore/State.d.ts +11 -65
- package/lib/Cloudflare/StateStore/State.d.ts.map +1 -1
- package/lib/Cloudflare/StateStore/State.js +307 -366
- package/lib/Cloudflare/StateStore/State.js.map +1 -1
- package/lib/Cloudflare/StateStore/Store.d.ts.map +1 -1
- package/lib/Cloudflare/StateStore/Store.js +16 -29
- package/lib/Cloudflare/StateStore/Store.js.map +1 -1
- package/lib/Cloudflare/Vectorize/VectorizeIndex.d.ts +114 -0
- package/lib/Cloudflare/Vectorize/VectorizeIndex.d.ts.map +1 -0
- package/lib/Cloudflare/Vectorize/VectorizeIndex.js +157 -0
- package/lib/Cloudflare/Vectorize/VectorizeIndex.js.map +1 -0
- package/lib/Cloudflare/Vectorize/VectorizeIndexBinding.d.ts +38 -0
- package/lib/Cloudflare/Vectorize/VectorizeIndexBinding.d.ts.map +1 -0
- package/lib/Cloudflare/Vectorize/VectorizeIndexBinding.js +44 -0
- package/lib/Cloudflare/Vectorize/VectorizeIndexBinding.js.map +1 -0
- package/lib/Cloudflare/Vectorize/VectorizeMetadataIndex.d.ts +72 -0
- package/lib/Cloudflare/Vectorize/VectorizeMetadataIndex.d.ts.map +1 -0
- package/lib/Cloudflare/Vectorize/VectorizeMetadataIndex.js +131 -0
- package/lib/Cloudflare/Vectorize/VectorizeMetadataIndex.js.map +1 -0
- package/lib/Cloudflare/Vectorize/index.d.ts +4 -0
- package/lib/Cloudflare/Vectorize/index.d.ts.map +1 -0
- package/lib/Cloudflare/Vectorize/index.js +4 -0
- package/lib/Cloudflare/Vectorize/index.js.map +1 -0
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.js +8 -0
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBinding.d.ts +2 -1
- package/lib/Cloudflare/Workers/WorkerBinding.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBinding.js.map +1 -1
- package/lib/Cloudflare/index.d.ts +1 -0
- package/lib/Cloudflare/index.d.ts.map +1 -1
- package/lib/Cloudflare/index.js +1 -0
- package/lib/Cloudflare/index.js.map +1 -1
- package/lib/State/HttpStateStore.d.ts +4 -0
- package/lib/State/HttpStateStore.d.ts.map +1 -1
- package/lib/State/HttpStateStore.js +13 -0
- package/lib/State/HttpStateStore.js.map +1 -1
- package/lib/Util/poll.d.ts +30 -0
- package/lib/Util/poll.d.ts.map +1 -0
- package/lib/Util/poll.js +26 -0
- package/lib/Util/poll.js.map +1 -0
- package/lib/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/AlchemyContext.ts +0 -1
- package/src/Cli/commands/cloudflare.ts +5 -3
- package/src/Cloudflare/Providers.ts +7 -0
- package/src/Cloudflare/Queue/QueueConsumer.ts +0 -2
- package/src/Cloudflare/StateStore/Api.ts +1 -1
- package/src/Cloudflare/StateStore/State.ts +445 -507
- package/src/Cloudflare/StateStore/Store.ts +22 -35
- package/src/Cloudflare/Vectorize/VectorizeIndex.ts +261 -0
- package/src/Cloudflare/Vectorize/VectorizeIndexBinding.ts +103 -0
- package/src/Cloudflare/Vectorize/VectorizeMetadataIndex.ts +208 -0
- package/src/Cloudflare/Vectorize/index.ts +3 -0
- package/src/Cloudflare/Workers/WorkerAsyncBindings.ts +7 -0
- package/src/Cloudflare/Workers/WorkerBinding.ts +2 -0
- package/src/Cloudflare/index.ts +1 -0
- package/src/State/HttpStateStore.ts +28 -0
- package/src/Util/poll.ts +47 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alchemy",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.46",
|
|
4
4
|
"homepage": "https://alchemy.run",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Sam Goodwin <sam@alchemy.run>",
|
|
@@ -291,15 +291,15 @@
|
|
|
291
291
|
"@alchemy.run/node-utils": "0.0.4",
|
|
292
292
|
"@aws-sdk/credential-providers": "^3.0.0",
|
|
293
293
|
"@clack/prompts": "^0.11.0",
|
|
294
|
-
"@distilled.cloud/aws": "^0.22.
|
|
295
|
-
"@distilled.cloud/axiom": "^0.22.
|
|
296
|
-
"@distilled.cloud/cloudflare": "^0.22.
|
|
294
|
+
"@distilled.cloud/aws": "^0.22.2",
|
|
295
|
+
"@distilled.cloud/axiom": "^0.22.2",
|
|
296
|
+
"@distilled.cloud/cloudflare": "^0.22.2",
|
|
297
297
|
"@distilled.cloud/cloudflare-rolldown-plugin": "0.10.1",
|
|
298
298
|
"@distilled.cloud/cloudflare-runtime": "0.10.1",
|
|
299
299
|
"@distilled.cloud/cloudflare-vite-plugin": "0.10.1",
|
|
300
|
-
"@distilled.cloud/core": "^0.22.
|
|
301
|
-
"@distilled.cloud/neon": "^0.22.
|
|
302
|
-
"@distilled.cloud/planetscale": "^0.22.
|
|
300
|
+
"@distilled.cloud/core": "^0.22.2",
|
|
301
|
+
"@distilled.cloud/neon": "^0.22.2",
|
|
302
|
+
"@distilled.cloud/planetscale": "^0.22.2",
|
|
303
303
|
"@effect/vitest": ">=4.0.0-beta.74 || >=4.0.0",
|
|
304
304
|
"@libsql/client": "^0.17.0",
|
|
305
305
|
"@octokit/rest": "^22.0.1",
|
package/src/AlchemyContext.ts
CHANGED
|
@@ -101,9 +101,11 @@ const bootstrapCommand = Command.make(
|
|
|
101
101
|
)(
|
|
102
102
|
Effect.fnUntraced(function* ({ envFile, profile, force, workerName }) {
|
|
103
103
|
const services = yield* cloudflareLayers(envFile, profile);
|
|
104
|
-
yield* bootstrapCloudflare({
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
yield* bootstrapCloudflare({
|
|
105
|
+
workerName,
|
|
106
|
+
force,
|
|
107
|
+
profile,
|
|
108
|
+
}).pipe(Effect.provide(services));
|
|
107
109
|
}),
|
|
108
110
|
),
|
|
109
111
|
);
|
|
@@ -31,6 +31,7 @@ import * as Queue from "./Queue/index.ts";
|
|
|
31
31
|
import * as R2 from "./R2/index.ts";
|
|
32
32
|
import * as SecretsStore from "./SecretsStore/index.ts";
|
|
33
33
|
import * as Tunnel from "./Tunnel/index.ts";
|
|
34
|
+
import * as Vectorize from "./Vectorize/index.ts";
|
|
34
35
|
import * as VpcService from "./VpcService/index.ts";
|
|
35
36
|
import * as Workers from "./Workers/index.ts";
|
|
36
37
|
import * as Workflows from "./Workers/Workflow.ts";
|
|
@@ -81,6 +82,9 @@ export const providers = () =>
|
|
|
81
82
|
SecretsStore.SecretsStore,
|
|
82
83
|
SecretsStore.Secret,
|
|
83
84
|
Tunnel.Tunnel,
|
|
85
|
+
Vectorize.VectorizeIndexBindingPolicy,
|
|
86
|
+
Vectorize.VectorizeIndex,
|
|
87
|
+
Vectorize.VectorizeMetadataIndex,
|
|
84
88
|
VpcService.VpcService,
|
|
85
89
|
KeyPair,
|
|
86
90
|
Random,
|
|
@@ -123,6 +127,9 @@ export const providers = () =>
|
|
|
123
127
|
SecretsStore.SecretsStoreProvider(),
|
|
124
128
|
SecretsStore.StoreSecretProvider(),
|
|
125
129
|
Tunnel.TunnelProvider(),
|
|
130
|
+
Vectorize.VectorizeIndexBindingPolicyLive,
|
|
131
|
+
Vectorize.VectorizeIndexProvider(),
|
|
132
|
+
Vectorize.VectorizeMetadataIndexProvider(),
|
|
126
133
|
VpcService.VpcServiceProvider(),
|
|
127
134
|
Workers.BindWorkerPolicyLive,
|
|
128
135
|
Workers.CronEventSourcePolicyLive,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as queues from "@distilled.cloud/cloudflare/queues";
|
|
2
|
-
import * as Console from "effect/Console";
|
|
3
2
|
import * as Effect from "effect/Effect";
|
|
4
3
|
import * as Option from "effect/Option";
|
|
5
4
|
import * as Schedule from "effect/Schedule";
|
|
@@ -366,7 +365,6 @@ export const QueueConsumerProvider = () =>
|
|
|
366
365
|
);
|
|
367
366
|
|
|
368
367
|
yield* getConsumer({ accountId: acct, queueId, consumerId }).pipe(
|
|
369
|
-
Effect.tap(Console.log),
|
|
370
368
|
Effect.flatMap((fetched) =>
|
|
371
369
|
toObserved(fetched)?.script === news.scriptName
|
|
372
370
|
? Effect.void
|
|
@@ -30,7 +30,7 @@ export const STATE_STORE_SCRIPT_NAME = "alchemy-state-store" as const;
|
|
|
30
30
|
* compare against this constant; a mismatch (or 404) triggers a
|
|
31
31
|
* forced redeploy via the bootstrap flow.
|
|
32
32
|
*/
|
|
33
|
-
export const STATE_STORE_VERSION =
|
|
33
|
+
export const STATE_STORE_VERSION = 7 as const;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Hard-coded OTLP/HTTP endpoints. Point at the public ingest relay
|