alchemy 0.21.0 → 0.22.1
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/ai/astro-file.d.ts +4 -4
- package/lib/ai/client.d.ts +1 -1
- package/lib/ai/css-file.d.ts +4 -4
- package/lib/ai/data.d.ts +4 -4
- package/lib/ai/document.d.ts +5 -5
- package/lib/ai/html-file.d.ts +4 -4
- package/lib/ai/index.d.ts +10 -10
- package/lib/ai/json-file.d.ts +4 -4
- package/lib/ai/typescript-file.d.ts +4 -4
- package/lib/ai/vue-file.d.ts +4 -4
- package/lib/ai/yaml-file.d.ts +4 -4
- package/lib/alchemy.d.ts +5 -5
- package/lib/apply.d.ts +2 -2
- package/lib/aws/bucket.d.ts +2 -2
- package/lib/aws/control/error.d.ts +1 -1
- package/lib/aws/control/index.d.ts +4 -4
- package/lib/aws/control/resource.d.ts +2 -2
- package/lib/aws/credentials.d.ts +1 -1
- package/lib/aws/function.d.ts +3 -3
- package/lib/aws/index.d.ts +9 -9
- package/lib/aws/oidc/github-oidc-provider.d.ts +1 -1
- package/lib/aws/oidc/index.d.ts +2 -2
- package/lib/aws/oidc/oidc-provider.d.ts +2 -2
- package/lib/aws/policy-attachment.d.ts +2 -2
- package/lib/aws/policy.d.ts +2 -2
- package/lib/aws/queue.d.ts +2 -2
- package/lib/aws/role.d.ts +3 -3
- package/lib/aws/ses.d.ts +2 -2
- package/lib/aws/table.d.ts +2 -2
- package/lib/cloudflare/account-api-token.d.ts +5 -5
- package/lib/cloudflare/account-id.d.ts +1 -1
- package/lib/cloudflare/ai-gateway.d.ts +3 -3
- package/lib/cloudflare/api.d.ts +2 -2
- package/lib/cloudflare/assets.d.ts +2 -2
- package/lib/cloudflare/auth.d.ts +1 -1
- package/lib/cloudflare/bindings.d.ts +18 -18
- package/lib/cloudflare/bound.d.ts +16 -16
- package/lib/cloudflare/bucket.d.ts +4 -4
- package/lib/cloudflare/bundle/bundle-worker.d.ts +2 -2
- package/lib/cloudflare/bundle/bundle-worker.d.ts.map +1 -1
- package/lib/cloudflare/bundle/bundle-worker.js +4 -0
- package/lib/cloudflare/bundle/bundle-worker.js.map +1 -1
- package/lib/cloudflare/bundle/wasm-plugin.d.ts +3 -0
- package/lib/cloudflare/bundle/wasm-plugin.d.ts.map +1 -0
- package/lib/cloudflare/bundle/wasm-plugin.js +53 -0
- package/lib/cloudflare/bundle/wasm-plugin.js.map +1 -0
- package/lib/cloudflare/custom-domain.d.ts +3 -3
- package/lib/cloudflare/custom-domain.js.map +1 -1
- package/lib/cloudflare/d1-clone.d.ts +3 -3
- package/lib/cloudflare/d1-database.d.ts +3 -3
- package/lib/cloudflare/d1-export.d.ts +1 -1
- package/lib/cloudflare/d1-import.d.ts +1 -1
- package/lib/cloudflare/d1-migrations.d.ts +1 -1
- package/lib/cloudflare/dns-records.d.ts +4 -4
- package/lib/cloudflare/durable-object-namespace.d.ts +1 -1
- package/lib/cloudflare/event-source.d.ts +2 -2
- package/lib/cloudflare/hyperdrive.d.ts +4 -4
- package/lib/cloudflare/index.d.ts +40 -39
- 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/cloudflare/kv-namespace.d.ts +3 -3
- package/lib/cloudflare/nuxt.d.ts +4 -4
- package/lib/cloudflare/nuxt.d.ts.map +1 -1
- package/lib/cloudflare/nuxt.js +2 -1
- package/lib/cloudflare/nuxt.js.map +1 -1
- package/lib/cloudflare/permission-groups.d.ts +3 -3
- package/lib/cloudflare/pipeline.d.ts +4 -4
- package/lib/cloudflare/queue-consumer.d.ts +4 -4
- package/lib/cloudflare/queue.d.ts +3 -3
- package/lib/cloudflare/r2-rest-state-store.d.ts +3 -3
- package/lib/cloudflare/react-router.d.ts +13 -0
- package/lib/cloudflare/react-router.d.ts.map +1 -0
- package/lib/cloudflare/react-router.js +29 -0
- package/lib/cloudflare/react-router.js.map +1 -0
- package/lib/cloudflare/redwood.d.ts +4 -4
- package/lib/cloudflare/route.d.ts +4 -4
- package/lib/cloudflare/tanstack-start.d.ts +4 -4
- package/lib/cloudflare/user.d.ts +2 -2
- package/lib/cloudflare/vectorize-index.d.ts +3 -3
- package/lib/cloudflare/vectorize-metadata-index.d.ts +4 -4
- package/lib/cloudflare/vite.d.ts +4 -4
- package/lib/cloudflare/website.d.ts +3 -3
- package/lib/cloudflare/website.d.ts.map +1 -1
- package/lib/cloudflare/website.js +30 -35
- package/lib/cloudflare/website.js.map +1 -1
- package/lib/cloudflare/worker-assets.d.ts +3 -3
- package/lib/cloudflare/worker-metadata.d.ts +5 -5
- package/lib/cloudflare/worker-stub.d.ts +3 -3
- package/lib/cloudflare/worker.d.ts +12 -11
- package/lib/cloudflare/worker.d.ts.map +1 -1
- package/lib/cloudflare/worker.js +2 -1
- package/lib/cloudflare/worker.js.map +1 -1
- package/lib/cloudflare/workflow.d.ts +2 -2
- package/lib/cloudflare/wrangler.json.d.ts +13 -2
- package/lib/cloudflare/wrangler.json.d.ts.map +1 -1
- package/lib/cloudflare/wrangler.json.js +1 -0
- package/lib/cloudflare/wrangler.json.js.map +1 -1
- package/lib/cloudflare/zone.d.ts +4 -4
- package/lib/context.d.ts +3 -3
- package/lib/destroy.d.ts +2 -2
- package/lib/dns/import-dns.d.ts +3 -3
- package/lib/dns/index.d.ts +2 -2
- package/lib/esbuild/bundle.d.ts +2 -2
- package/lib/esbuild/index.d.ts +1 -1
- package/lib/fs/copy-file.d.ts +2 -2
- package/lib/fs/file-system-state-store.d.ts +2 -2
- package/lib/fs/file.d.ts +5 -5
- package/lib/fs/folder.d.ts +2 -2
- package/lib/fs/index.d.ts +14 -14
- package/lib/fs/static-astro-file.d.ts +1 -1
- package/lib/fs/static-css-file.d.ts +1 -1
- package/lib/fs/static-html-file.d.ts +1 -1
- package/lib/fs/static-json-file.d.ts +1 -1
- package/lib/fs/static-text-file.d.ts +1 -1
- package/lib/fs/static-typescript-file.d.ts +1 -1
- package/lib/fs/static-vue-file.d.ts +1 -1
- package/lib/fs/static-yaml-file.d.ts +1 -1
- package/lib/github/index.d.ts +2 -2
- package/lib/github/repository-environment.d.ts +2 -2
- package/lib/github/secret.d.ts +3 -3
- package/lib/index.d.ts +10 -10
- package/lib/internal/docs/providers.d.ts +2 -2
- package/lib/neon/api.d.ts +1 -1
- package/lib/neon/index.d.ts +3 -3
- package/lib/neon/project.d.ts +4 -4
- package/lib/os/exec.d.ts +2 -2
- package/lib/os/index.d.ts +1 -1
- package/lib/resource.d.ts +2 -2
- package/lib/runtime/bind.d.ts +3 -3
- package/lib/runtime/global.d.ts +1 -1
- package/lib/runtime/state.d.ts +1 -1
- package/lib/scope.d.ts +3 -3
- package/lib/sentry/api.d.ts +1 -1
- package/lib/sentry/client-key.d.ts +3 -3
- package/lib/sentry/index.d.ts +4 -4
- package/lib/sentry/project.d.ts +3 -3
- package/lib/sentry/team.d.ts +3 -3
- package/lib/serde.d.ts +3 -3
- package/lib/state.d.ts +2 -2
- package/lib/stripe/index.d.ts +4 -4
- package/lib/stripe/index.d.ts.map +1 -1
- package/lib/stripe/index.js +1 -1
- package/lib/stripe/index.js.map +1 -1
- package/lib/stripe/meter.d.ts +2 -2
- package/lib/stripe/price.d.ts +2 -2
- package/lib/stripe/product.d.ts +2 -2
- package/lib/stripe/webhook.d.ts +2 -2
- package/lib/test/bun.d.ts +3 -3
- package/lib/upstash/api.d.ts +1 -1
- package/lib/upstash/index.d.ts +3 -3
- package/lib/upstash/redis.d.ts +4 -4
- package/lib/vercel/api.d.ts +1 -1
- package/lib/vercel/index.d.ts +3 -3
- package/lib/vercel/project-domain.d.ts +3 -3
- package/lib/vercel/project.d.ts +4 -4
- package/lib/web/astro.d.ts +2 -2
- package/lib/web/shadcn-component.d.ts +2 -2
- package/lib/web/shadcn.d.ts +3 -3
- package/lib/web/tailwind.d.ts +2 -2
- package/lib/web/vite.d.ts +2 -2
- package/lib/web/vitepress/config.d.ts +1 -1
- package/lib/web/vitepress/custom-theme.d.ts +4 -4
- package/lib/web/vitepress/dependencies.d.ts +2 -2
- package/lib/web/vitepress/home-page.d.ts +3 -3
- package/lib/web/vitepress/index.d.ts +5 -5
- package/lib/web/vitepress/vitepress.d.ts +2 -2
- package/package.json +7 -7
- package/src/ai/astro-file.ts +5 -5
- package/src/ai/client.ts +1 -1
- package/src/ai/css-file.ts +5 -5
- package/src/ai/data.ts +5 -5
- package/src/ai/document.ts +5 -5
- package/src/ai/html-file.ts +5 -5
- package/src/ai/index.ts +10 -10
- package/src/ai/json-file.ts +6 -6
- package/src/ai/typescript-file.ts +5 -5
- package/src/ai/vue-file.ts +5 -5
- package/src/ai/yaml-file.ts +6 -6
- package/src/alchemy.ts +9 -9
- package/src/apply.ts +6 -6
- package/src/aws/bucket.ts +3 -3
- package/src/aws/control/client.ts +1 -1
- package/src/aws/control/error.ts +1 -1
- package/src/aws/control/index.ts +4 -4
- package/src/aws/control/proxy.ts +1 -1
- package/src/aws/control/resource.ts +5 -5
- package/src/aws/credentials.ts +1 -1
- package/src/aws/function.ts +4 -4
- package/src/aws/index.ts +9 -9
- package/src/aws/oidc/github-oidc-provider.ts +1 -1
- package/src/aws/oidc/index.ts +2 -2
- package/src/aws/oidc/oidc-provider.ts +3 -3
- package/src/aws/policy-attachment.ts +3 -3
- package/src/aws/policy.ts +2 -2
- package/src/aws/queue.ts +2 -2
- package/src/aws/role.ts +4 -4
- package/src/aws/ses.ts +3 -3
- package/src/aws/table.ts +4 -4
- package/src/cloudflare/account-api-token.ts +7 -7
- package/src/cloudflare/account-id.ts +1 -1
- package/src/cloudflare/ai-gateway.ts +6 -6
- package/src/cloudflare/api.ts +5 -5
- package/src/cloudflare/assets.ts +3 -3
- package/src/cloudflare/auth.ts +1 -1
- package/src/cloudflare/bindings.ts +18 -18
- package/src/cloudflare/bound.ts +16 -16
- package/src/cloudflare/bucket.ts +7 -7
- package/src/cloudflare/bundle/bundle-worker.ts +12 -8
- package/src/cloudflare/bundle/local-dev-cloudflare-shim.ts +1 -1
- package/src/cloudflare/bundle/nodejs-compat.ts +1 -1
- package/src/cloudflare/bundle/wasm-plugin.ts +57 -0
- package/src/cloudflare/custom-domain.ts +5 -5
- package/src/cloudflare/d1-clone.ts +3 -3
- package/src/cloudflare/d1-database.ts +7 -7
- package/src/cloudflare/d1-export.ts +1 -1
- package/src/cloudflare/d1-import.ts +1 -1
- package/src/cloudflare/d1-migrations.ts +2 -2
- package/src/cloudflare/dns-records.ts +5 -5
- package/src/cloudflare/durable-object-namespace.ts +1 -1
- package/src/cloudflare/event-source.ts +2 -2
- package/src/cloudflare/hyperdrive.ts +7 -7
- package/src/cloudflare/index.ts +40 -39
- package/src/cloudflare/kv-namespace.ts +7 -7
- package/src/cloudflare/nuxt.ts +6 -5
- package/src/cloudflare/permission-groups.ts +3 -3
- package/src/cloudflare/pipeline.ts +7 -7
- package/src/cloudflare/queue-consumer.ts +5 -5
- package/src/cloudflare/queue.ts +6 -6
- package/src/cloudflare/r2-rest-state-store.ts +8 -8
- package/src/cloudflare/react-router.ts +45 -0
- package/src/cloudflare/redwood.ts +4 -4
- package/src/cloudflare/route.ts +5 -5
- package/src/cloudflare/tanstack-start.ts +4 -4
- package/src/cloudflare/user.ts +3 -3
- package/src/cloudflare/vectorize-index.ts +6 -6
- package/src/cloudflare/vectorize-metadata-index.ts +5 -5
- package/src/cloudflare/vite.ts +4 -4
- package/src/cloudflare/website.ts +42 -48
- package/src/cloudflare/worker-assets.ts +4 -4
- package/src/cloudflare/worker-metadata.ts +7 -7
- package/src/cloudflare/worker-stub.ts +4 -4
- package/src/cloudflare/worker.ts +36 -33
- package/src/cloudflare/workflow.ts +3 -3
- package/src/cloudflare/wrangler.json.ts +17 -2
- package/src/cloudflare/zone.ts +5 -5
- package/src/context.ts +4 -4
- package/src/destroy.ts +4 -4
- package/src/dns/import-dns.ts +3 -3
- package/src/dns/index.ts +2 -2
- package/src/esbuild/bundle.ts +2 -2
- package/src/esbuild/index.ts +1 -1
- package/src/fs/copy-file.ts +3 -3
- package/src/fs/file-system-state-store.ts +5 -5
- package/src/fs/file.ts +7 -7
- package/src/fs/folder.ts +3 -3
- package/src/fs/index.ts +14 -14
- package/src/fs/static-astro-file.ts +1 -1
- package/src/fs/static-css-file.ts +1 -1
- package/src/fs/static-html-file.ts +1 -1
- package/src/fs/static-json-file.ts +1 -1
- package/src/fs/static-text-file.ts +1 -1
- package/src/fs/static-typescript-file.ts +1 -1
- package/src/fs/static-vue-file.ts +1 -1
- package/src/fs/static-yaml-file.ts +1 -1
- package/src/github/index.ts +2 -2
- package/src/github/repository-environment.ts +3 -3
- package/src/github/secret.ts +4 -4
- package/src/index.ts +10 -10
- package/src/internal/docs/providers.ts +4 -4
- package/src/neon/api.ts +2 -2
- package/src/neon/index.ts +3 -3
- package/src/neon/project.ts +6 -6
- package/src/os/exec.ts +2 -2
- package/src/os/index.ts +1 -1
- package/src/resource.ts +3 -3
- package/src/runtime/bind.ts +7 -7
- package/src/runtime/global.ts +1 -1
- package/src/runtime/state.ts +1 -1
- package/src/scope.ts +5 -5
- package/src/secret.ts +1 -1
- package/src/sentry/api.ts +2 -2
- package/src/sentry/client-key.ts +4 -4
- package/src/sentry/index.ts +4 -4
- package/src/sentry/project.ts +4 -4
- package/src/sentry/team.ts +4 -4
- package/src/serde.ts +4 -4
- package/src/state.ts +3 -3
- package/src/stripe/index.ts +4 -4
- package/src/stripe/meter.ts +2 -2
- package/src/stripe/price.ts +2 -2
- package/src/stripe/product.ts +2 -2
- package/src/stripe/webhook.ts +2 -2
- package/src/test/bun.ts +5 -5
- package/src/upstash/api.ts +1 -1
- package/src/upstash/index.ts +3 -3
- package/src/upstash/redis.ts +6 -6
- package/src/vercel/api.ts +2 -2
- package/src/vercel/index.ts +3 -3
- package/src/vercel/project-domain.ts +4 -4
- package/src/vercel/project.ts +4 -4
- package/src/web/astro.ts +7 -7
- package/src/web/shadcn-component.ts +3 -3
- package/src/web/shadcn.ts +6 -6
- package/src/web/tailwind.ts +4 -4
- package/src/web/vite.ts +8 -8
- package/src/web/vitepress/config.ts +1 -1
- package/src/web/vitepress/custom-theme.ts +10 -10
- package/src/web/vitepress/dependencies.ts +2 -2
- package/src/web/vitepress/home-page.ts +4 -4
- package/src/web/vitepress/index.ts +5 -5
- package/src/web/vitepress/vitepress.ts +7 -7
- package/lib/runtime/shims.d.ts +0 -6
- package/lib/runtime/shims.d.ts.map +0 -1
- package/lib/runtime/shims.js +0 -27
- package/lib/runtime/shims.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wasm-plugin.js","sourceRoot":"","sources":["../../../src/cloudflare/bundle/wasm-plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,CAAC,MAAM,UAAU,GAAmB;IACxC,IAAI,EAAE,MAAM;IACZ,KAAK,CAAC,KAAK;QACT,mDAAmD;QACnD,KAAK,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE;YAC9C,2DAA2D;YAC3D,6DAA6D;YAC7D,4DAA4D;YAC5D,IAAI,IAAI,CAAC,SAAS,KAAK,WAAW,EAAE,CAAC;gBACnC,OAAO;oBACL,IAAI,EAAE,IAAI,CAAC,IAAI;oBACf,SAAS,EAAE,aAAa;iBACzB,CAAC;YACJ,CAAC;YAED,0DAA0D;YAC1D,4DAA4D;YAC5D,qDAAqD;YACrD,EAAE;YACF,2DAA2D;YAC3D,2DAA2D;YAC3D,2BAA2B;YAC3B,IAAI,IAAI,CAAC,UAAU,KAAK,EAAE,EAAE,CAAC;gBAC3B,OAAO,CAAC,4BAA4B;YACtC,CAAC;YACD,OAAO;gBACL,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;oBAC9B,CAAC,CAAC,IAAI,CAAC,IAAI;oBACX,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC;gBACzC,SAAS,EAAE,WAAW;aACvB,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,+DAA+D;QAC/D,gEAAgE;QAChE,0DAA0D;QAC1D,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;YACtE,QAAQ,EAAE,oBAAoB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;;;+CAGd;SAC1C,CAAC,CAAC,CAAC;QAEJ,6DAA6D;QAC7D,4DAA4D;QAC5D,6DAA6D;QAC7D,gDAAgD;QAChD,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;YACxE,QAAQ,EAAE,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;YAC/C,MAAM,EAAE,QAAQ;SACjB,CAAC,CAAC,CAAC;IACN,CAAC;CACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Context } from "../context.
|
|
2
|
-
import { Resource } from "../resource.
|
|
3
|
-
import { type CloudflareApiOptions } from "./api.
|
|
1
|
+
import type { Context } from "../context.ts";
|
|
2
|
+
import { Resource } from "../resource.ts";
|
|
3
|
+
import { type CloudflareApiOptions } from "./api.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Properties for creating or updating a CustomDomain
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-domain.js","sourceRoot":"","sources":["../../src/cloudflare/custom-domain.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,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, type ExportD1DatabaseResult } from "./d1-export.
|
|
3
|
-
import { type ImportD1DatabaseOptions, type ImportD1DatabaseResult } from "./d1-import.
|
|
1
|
+
import type { CloudflareApi } from "./api.ts";
|
|
2
|
+
import { type ExportD1DatabaseOptions, type ExportD1DatabaseResult } from "./d1-export.ts";
|
|
3
|
+
import { type ImportD1DatabaseOptions, type ImportD1DatabaseResult } from "./d1-import.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Options for cloning a D1 database
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Resource } from "../resource.
|
|
2
|
-
import { type Bound } from "../runtime/bind.
|
|
3
|
-
import { type CloudflareApi, type CloudflareApiOptions } from "./api.
|
|
1
|
+
import { Resource } from "../resource.ts";
|
|
2
|
+
import { type Bound } from "../runtime/bind.ts";
|
|
3
|
+
import { type CloudflareApi, type CloudflareApiOptions } from "./api.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Properties for creating or updating a D1 Database
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Context } from "../context.
|
|
2
|
-
import type { DnsRecord as BaseDnsRecord, DnsRecordType, DnsRecordWithMetadata } from "../dns/record.
|
|
3
|
-
import { Resource } from "../resource.
|
|
4
|
-
import { type CloudflareApiOptions } from "./api.
|
|
1
|
+
import type { Context } from "../context.ts";
|
|
2
|
+
import type { DnsRecord as BaseDnsRecord, DnsRecordType, DnsRecordWithMetadata } from "../dns/record.ts";
|
|
3
|
+
import { Resource } from "../resource.ts";
|
|
4
|
+
import { type CloudflareApiOptions } from "./api.ts";
|
|
5
5
|
/**
|
|
6
6
|
* Properties for a DNS record
|
|
7
7
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { QueueConsumerSettings } from "./queue-consumer.
|
|
2
|
-
import type { QueueResource } from "./queue.
|
|
1
|
+
import type { QueueConsumerSettings } from "./queue-consumer.ts";
|
|
2
|
+
import type { QueueResource } from "./queue.ts";
|
|
3
3
|
/**
|
|
4
4
|
* Base interface for event sources that can be bound to a Worker
|
|
5
5
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Resource } from "../resource.
|
|
2
|
-
import type { Secret } from "../secret.
|
|
3
|
-
import { type CloudflareApiOptions } from "./api.
|
|
4
|
-
import type { Bound } from "./bound.
|
|
1
|
+
import { Resource } from "../resource.ts";
|
|
2
|
+
import type { Secret } from "../secret.ts";
|
|
3
|
+
import { type CloudflareApiOptions } from "./api.ts";
|
|
4
|
+
import type { Bound } from "./bound.ts";
|
|
5
5
|
/**
|
|
6
6
|
* Origin configuration for a PostgreSQL database connection
|
|
7
7
|
*/
|
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
export * from "./account-api-token.
|
|
2
|
-
export * from "./account-id.
|
|
3
|
-
export * from "./ai-gateway.
|
|
4
|
-
export * from "./ai.
|
|
5
|
-
export * from "./api-error.
|
|
6
|
-
export * from "./api.
|
|
7
|
-
export * from "./assets.
|
|
8
|
-
export * from "./bindings.
|
|
9
|
-
export * from "./bound.
|
|
10
|
-
export * from "./browser-rendering.
|
|
11
|
-
export * from "./bucket.
|
|
12
|
-
export * from "./bundle/external.
|
|
13
|
-
export * from "./bundle/local-dev-cloudflare-shim.
|
|
14
|
-
export * from "./custom-domain.
|
|
15
|
-
export * from "./d1-clone.
|
|
16
|
-
export * from "./d1-database.
|
|
17
|
-
export * from "./d1-export.
|
|
18
|
-
export * from "./d1-import.
|
|
19
|
-
export * from "./dns-records.
|
|
20
|
-
export * from "./durable-object-namespace.
|
|
21
|
-
export * from "./hyperdrive.
|
|
22
|
-
export * from "./kv-namespace.
|
|
23
|
-
export * from "./nuxt.
|
|
24
|
-
export * from "./permission-groups.
|
|
25
|
-
export * from "./pipeline.
|
|
26
|
-
export * from "./queue-consumer.
|
|
27
|
-
export * from "./queue.
|
|
28
|
-
export * from "./r2-rest-state-store.
|
|
29
|
-
export * from "./
|
|
30
|
-
export * from "./
|
|
31
|
-
export * from "./
|
|
32
|
-
export * from "./
|
|
33
|
-
export * from "./vectorize-
|
|
34
|
-
export * from "./
|
|
35
|
-
export * from "./
|
|
36
|
-
export * from "./
|
|
37
|
-
export
|
|
38
|
-
export
|
|
39
|
-
export * from "./
|
|
1
|
+
export * from "./account-api-token.ts";
|
|
2
|
+
export * from "./account-id.ts";
|
|
3
|
+
export * from "./ai-gateway.ts";
|
|
4
|
+
export * from "./ai.ts";
|
|
5
|
+
export * from "./api-error.ts";
|
|
6
|
+
export * from "./api.ts";
|
|
7
|
+
export * from "./assets.ts";
|
|
8
|
+
export * from "./bindings.ts";
|
|
9
|
+
export * from "./bound.ts";
|
|
10
|
+
export * from "./browser-rendering.ts";
|
|
11
|
+
export * from "./bucket.ts";
|
|
12
|
+
export * from "./bundle/external.ts";
|
|
13
|
+
export * from "./bundle/local-dev-cloudflare-shim.ts";
|
|
14
|
+
export * from "./custom-domain.ts";
|
|
15
|
+
export * from "./d1-clone.ts";
|
|
16
|
+
export * from "./d1-database.ts";
|
|
17
|
+
export * from "./d1-export.ts";
|
|
18
|
+
export * from "./d1-import.ts";
|
|
19
|
+
export * from "./dns-records.ts";
|
|
20
|
+
export * from "./durable-object-namespace.ts";
|
|
21
|
+
export * from "./hyperdrive.ts";
|
|
22
|
+
export * from "./kv-namespace.ts";
|
|
23
|
+
export * from "./nuxt.ts";
|
|
24
|
+
export * from "./permission-groups.ts";
|
|
25
|
+
export * from "./pipeline.ts";
|
|
26
|
+
export * from "./queue-consumer.ts";
|
|
27
|
+
export * from "./queue.ts";
|
|
28
|
+
export * from "./r2-rest-state-store.ts";
|
|
29
|
+
export * from "./react-router.ts";
|
|
30
|
+
export * from "./redwood.ts";
|
|
31
|
+
export * from "./route.ts";
|
|
32
|
+
export * from "./tanstack-start.ts";
|
|
33
|
+
export * from "./vectorize-index.ts";
|
|
34
|
+
export * from "./vectorize-metadata-index.ts";
|
|
35
|
+
export * from "./vite.ts";
|
|
36
|
+
export * from "./website.ts";
|
|
37
|
+
export * from "./worker.ts";
|
|
38
|
+
export { Workflow } from "./workflow.ts";
|
|
39
|
+
export * from "./wrangler.json.ts";
|
|
40
|
+
export * from "./zone.ts";
|
|
40
41
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cloudflare/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,uCAAuC,CAAC;AACtD,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC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@@ -26,6 +26,7 @@ export * from "./pipeline.js";
|
|
|
26
26
|
export * from "./queue-consumer.js";
|
|
27
27
|
export * from "./queue.js";
|
|
28
28
|
export * from "./r2-rest-state-store.js";
|
|
29
|
+
export * from "./react-router.js";
|
|
29
30
|
export * from "./redwood.js";
|
|
30
31
|
export * from "./route.js";
|
|
31
32
|
export * from "./tanstack-start.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cloudflare/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,uCAAuC,CAAC;AACtD,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,WAAW,CAAC;AAC1B,cAAc,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AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Resource } from "../resource.
|
|
2
|
-
import { type CloudflareApi, type CloudflareApiOptions } from "./api.
|
|
3
|
-
import type { Bound } from "./bound.
|
|
1
|
+
import { Resource } from "../resource.ts";
|
|
2
|
+
import { type CloudflareApi, type CloudflareApiOptions } from "./api.ts";
|
|
3
|
+
import type { Bound } from "./bound.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Properties for creating or updating a KV Namespace
|
|
6
6
|
*/
|
package/lib/cloudflare/nuxt.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Assets } from "./assets.
|
|
2
|
-
import type { Bindings } from "./bindings.
|
|
3
|
-
import { type WebsiteProps } from "./website.
|
|
4
|
-
import type { Worker } from "./worker.
|
|
1
|
+
import type { Assets } from "./assets.ts";
|
|
2
|
+
import type { Bindings } from "./bindings.ts";
|
|
3
|
+
import { type WebsiteProps } from "./website.ts";
|
|
4
|
+
import type { Worker } from "./worker.ts";
|
|
5
5
|
/**
|
|
6
6
|
* Properties for creating a Nuxt resource.
|
|
7
7
|
* Extends WebsiteProps, allowing customization of the underlying Website.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nuxt.d.ts","sourceRoot":"","sources":["../../src/cloudflare/nuxt.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nuxt.d.ts","sourceRoot":"","sources":["../../src/cloudflare/nuxt.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C;;;GAGG;AACH,MAAM,WAAW,SAAS,CAAC,CAAC,SAAS,QAAQ,CAAE,SAAQ,YAAY,CAAC,CAAC,CAAC;CAAG;AAEzE;;;;GAIG;AACH,MAAM,MAAM,IAAI,CAAC,CAAC,SAAS,QAAQ,IAAI,CAAC,SAAS;IAAE,MAAM,EAAE,GAAG,CAAA;CAAE,GAC5D,KAAK,GACL,MAAM,CAAC,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,IAAI,CAAC,CAAC,SAAS,QAAQ,EAC3C,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAC5B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAelB"}
|
package/lib/cloudflare/nuxt.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import path from "node:path";
|
|
1
2
|
import { Website } from "./website.js";
|
|
2
3
|
/**
|
|
3
4
|
* Creates and deploys a Nuxt application using the Cloudflare Workers preset.
|
|
@@ -35,7 +36,7 @@ export async function Nuxt(id, props) {
|
|
|
35
36
|
// Default entry point for cloudflare-module preset
|
|
36
37
|
main: props?.main ?? "./index.ts",
|
|
37
38
|
// Default static assets directory for cloudflare-module preset
|
|
38
|
-
assets: props?.assets ?? "
|
|
39
|
+
assets: props?.assets ?? path.join(".output", "public"),
|
|
39
40
|
// Ensure nodejs_compat flag is included for Nuxt compatibility
|
|
40
41
|
compatibilityFlags: ["nodejs_compat", ...(props?.compatibilityFlags ?? [])],
|
|
41
42
|
// Enable wrangler by default, common for Nuxt/Cloudflare deployments
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nuxt.js","sourceRoot":"","sources":["../../src/cloudflare/nuxt.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nuxt.js","sourceRoot":"","sources":["../../src/cloudflare/nuxt.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAE,OAAO,EAAqB,MAAM,cAAc,CAAC;AAkB1D;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,KAAK,UAAU,IAAI,CACxB,EAAU,EACV,KAA6B;IAE7B,0DAA0D;IAC1D,OAAO,OAAO,CAAC,EAAE,EAAE;QACjB,GAAG,KAAK;QACR,4DAA4D;QAC5D,OAAO,EAAE,KAAK,EAAE,OAAO,IAAI,eAAe;QAC1C,mDAAmD;QACnD,IAAI,EAAE,KAAK,EAAE,IAAI,IAAI,YAAY;QACjC,+DAA+D;QAC/D,MAAM,EAAE,KAAK,EAAE,MAAM,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC;QACvD,+DAA+D;QAC/D,kBAAkB,EAAE,CAAC,eAAe,EAAE,GAAG,CAAC,KAAK,EAAE,kBAAkB,IAAI,EAAE,CAAC,CAAC;QAC3E,qEAAqE;QACrE,QAAQ,EAAE,KAAK,EAAE,QAAQ,IAAI,IAAI;KAClC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Context } from "../context.
|
|
2
|
-
import { Resource } from "../resource.
|
|
3
|
-
import { type CloudflareApiOptions } from "./api.
|
|
1
|
+
import type { Context } from "../context.ts";
|
|
2
|
+
import { Resource } from "../resource.ts";
|
|
3
|
+
import { type CloudflareApiOptions } from "./api.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Cloudflare permission group as returned by the API
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Resource } from "../resource.
|
|
2
|
-
import type { Secret } from "../secret.
|
|
3
|
-
import { type CloudflareApi, type CloudflareApiOptions } from "./api.
|
|
4
|
-
import type { Bound } from "./bound.
|
|
1
|
+
import { Resource } from "../resource.ts";
|
|
2
|
+
import type { Secret } from "../secret.ts";
|
|
3
|
+
import { type CloudflareApi, type CloudflareApiOptions } from "./api.ts";
|
|
4
|
+
import type { Bound } from "./bound.ts";
|
|
5
5
|
/**
|
|
6
6
|
* Settings for compression of pipeline output
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Context } from "../context.
|
|
2
|
-
import { Resource } from "../resource.
|
|
3
|
-
import { type CloudflareApi, type CloudflareApiOptions } from "./api.
|
|
4
|
-
import type { QueueResource } from "./queue.
|
|
1
|
+
import type { Context } from "../context.ts";
|
|
2
|
+
import { Resource } from "../resource.ts";
|
|
3
|
+
import { type CloudflareApi, type CloudflareApiOptions } from "./api.ts";
|
|
4
|
+
import type { QueueResource } from "./queue.ts";
|
|
5
5
|
/**
|
|
6
6
|
* Settings for configuring a Queue Consumer
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Resource } from "../resource.
|
|
2
|
-
import { type CloudflareApi, type CloudflareApiOptions } from "./api.
|
|
3
|
-
import type { Bound } from "./bound.
|
|
1
|
+
import { Resource } from "../resource.ts";
|
|
2
|
+
import { type CloudflareApi, type CloudflareApiOptions } from "./api.ts";
|
|
3
|
+
import type { Bound } from "./bound.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Settings for a Cloudflare Queue
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Scope } from "../scope.
|
|
2
|
-
import { type State, type StateStore } from "../state.
|
|
3
|
-
import { type CloudflareApiOptions } from "./api.
|
|
1
|
+
import type { Scope } from "../scope.ts";
|
|
2
|
+
import { type State, type StateStore } from "../state.ts";
|
|
3
|
+
import { type CloudflareApiOptions } from "./api.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Options for CloudflareR2StateStore
|
|
6
6
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Assets } from "./assets.js";
|
|
2
|
+
import type { Bindings } from "./bindings.js";
|
|
3
|
+
import { type WebsiteProps } from "./website.js";
|
|
4
|
+
import type { Worker } from "./worker.js";
|
|
5
|
+
export interface ReactRouterProps<B extends Bindings> extends WebsiteProps<B> {
|
|
6
|
+
}
|
|
7
|
+
export type ReactRouter<B extends Bindings> = B extends {
|
|
8
|
+
ASSETS: any;
|
|
9
|
+
} ? never : Worker<B & {
|
|
10
|
+
ASSETS: Assets;
|
|
11
|
+
}>;
|
|
12
|
+
export declare function ReactRouter<B extends Bindings>(id: string, props: ReactRouterProps<B>): Promise<ReactRouter<B>>;
|
|
13
|
+
//# sourceMappingURL=react-router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-router.d.ts","sourceRoot":"","sources":["../../src/cloudflare/react-router.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,QAAQ,CAAE,SAAQ,YAAY,CAAC,CAAC,CAAC;CAAG;AAGhF,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,QAAQ,IAAI,CAAC,SAAS;IAAE,MAAM,EAAE,GAAG,CAAA;CAAE,GACnE,KAAK,GACL,MAAM,CAAC,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEnC,wBAAsB,WAAW,CAAC,CAAC,SAAS,QAAQ,EAClD,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,GACzB,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CA4BzB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { Website } from "./website.js";
|
|
3
|
+
export async function ReactRouter(id, props) {
|
|
4
|
+
const defaultAssets = path.join("build", "client");
|
|
5
|
+
return Website(id, {
|
|
6
|
+
...props,
|
|
7
|
+
// Alchemy should bundle the result of `vite built`, not the user's main
|
|
8
|
+
// TODO: we probably need bundling to properly handle WASM/rules
|
|
9
|
+
main: path.join(props.cwd ?? process.cwd(), "build", "server", "index.js"),
|
|
10
|
+
wrangler: {
|
|
11
|
+
// wrangler should point to the user's main (e.g. `worker.ts`), unless overridden
|
|
12
|
+
main: typeof props.wrangler === "object"
|
|
13
|
+
? (props.wrangler.main ?? props.main)
|
|
14
|
+
: props.main,
|
|
15
|
+
// write to wrangler.json by default but respect overrides
|
|
16
|
+
path: typeof props.wrangler === "string"
|
|
17
|
+
? props.wrangler
|
|
18
|
+
: typeof props.wrangler === "object"
|
|
19
|
+
? props.wrangler.path
|
|
20
|
+
: undefined,
|
|
21
|
+
},
|
|
22
|
+
assets: typeof props.assets === "object"
|
|
23
|
+
? {
|
|
24
|
+
dist: props.assets.dist ?? defaultAssets,
|
|
25
|
+
}
|
|
26
|
+
: (props.assets ?? defaultAssets),
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=react-router.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-router.js","sourceRoot":"","sources":["../../src/cloudflare/react-router.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAE,OAAO,EAAqB,MAAM,cAAc,CAAC;AAU1D,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,EAAU,EACV,KAA0B;IAE1B,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACnD,OAAO,OAAO,CAAC,EAAE,EAAE;QACjB,GAAG,KAAK;QACR,wEAAwE;QACxE,gEAAgE;QAChE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC;QAC1E,QAAQ,EAAE;YACR,iFAAiF;YACjF,IAAI,EACF,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ;gBAChC,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC;gBACrC,CAAC,CAAC,KAAK,CAAC,IAAI;YAChB,0DAA0D;YAC1D,IAAI,EACF,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ;gBAChC,CAAC,CAAC,KAAK,CAAC,QAAQ;gBAChB,CAAC,CAAC,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ;oBAClC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI;oBACrB,CAAC,CAAC,SAAS;SAClB;QACD,MAAM,EACJ,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ;YAC9B,CAAC,CAAC;gBACE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,aAAa;aACzC;YACH,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,IAAI,aAAa,CAAC;KACtC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Assets } from "./assets.
|
|
2
|
-
import type { Bindings } from "./bindings.
|
|
3
|
-
import { type WebsiteProps } from "./website.
|
|
4
|
-
import type { Worker } from "./worker.
|
|
1
|
+
import type { Assets } from "./assets.ts";
|
|
2
|
+
import type { Bindings } from "./bindings.ts";
|
|
3
|
+
import { type WebsiteProps } from "./website.ts";
|
|
4
|
+
import type { Worker } from "./worker.ts";
|
|
5
5
|
export interface RedwoodProps<B extends Bindings> extends WebsiteProps<B> {
|
|
6
6
|
}
|
|
7
7
|
export type Redwood<B extends Bindings> = B extends {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Context } from "../context.
|
|
2
|
-
import { Resource } from "../resource.
|
|
3
|
-
import { type CloudflareApi, type CloudflareApiOptions } from "./api.
|
|
4
|
-
import type { Worker } from "./worker.
|
|
1
|
+
import type { Context } from "../context.ts";
|
|
2
|
+
import { Resource } from "../resource.ts";
|
|
3
|
+
import { type CloudflareApi, type CloudflareApiOptions } from "./api.ts";
|
|
4
|
+
import type { Worker } from "./worker.ts";
|
|
5
5
|
/**
|
|
6
6
|
* Properties for creating or updating a Route
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Assets } from "./assets.
|
|
2
|
-
import type { Bindings } from "./bindings.
|
|
3
|
-
import { type WebsiteProps } from "./website.
|
|
4
|
-
import type { Worker } from "./worker.
|
|
1
|
+
import type { Assets } from "./assets.ts";
|
|
2
|
+
import type { Bindings } from "./bindings.ts";
|
|
3
|
+
import { type WebsiteProps } from "./website.ts";
|
|
4
|
+
import type { Worker } from "./worker.ts";
|
|
5
5
|
export interface TanStackStartProps<B extends Bindings> extends WebsiteProps<B> {
|
|
6
6
|
}
|
|
7
7
|
export type TanStackStart<B extends Bindings> = B extends {
|
package/lib/cloudflare/user.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Secret } from "../secret.
|
|
2
|
-
import { type CloudflareAuthOptions } from "./auth.
|
|
1
|
+
import type { Secret } from "../secret.ts";
|
|
2
|
+
import { type CloudflareAuthOptions } from "./auth.ts";
|
|
3
3
|
export interface CloudflareAccount {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Resource } from "../resource.
|
|
2
|
-
import { type CloudflareApi, type CloudflareApiOptions } from "./api.
|
|
3
|
-
import type { Bound } from "./bound.
|
|
1
|
+
import { Resource } from "../resource.ts";
|
|
2
|
+
import { type CloudflareApi, type CloudflareApiOptions } from "./api.ts";
|
|
3
|
+
import type { Bound } from "./bound.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Properties for creating or updating a Vectorize Index
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Context } from "../context.
|
|
2
|
-
import { Resource } from "../resource.
|
|
3
|
-
import { type CloudflareApi, type CloudflareApiOptions } from "./api.
|
|
4
|
-
import type { VectorizeIndexResource } from "./vectorize-index.
|
|
1
|
+
import type { Context } from "../context.ts";
|
|
2
|
+
import { Resource } from "../resource.ts";
|
|
3
|
+
import { type CloudflareApi, type CloudflareApiOptions } from "./api.ts";
|
|
4
|
+
import type { VectorizeIndexResource } from "./vectorize-index.ts";
|
|
5
5
|
/**
|
|
6
6
|
* Properties for creating or deleting a Vectorize Metadata Index
|
|
7
7
|
*/
|
package/lib/cloudflare/vite.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Assets } from "./assets.
|
|
2
|
-
import type { Bindings } from "./bindings.
|
|
3
|
-
import { type WebsiteProps } from "./website.
|
|
4
|
-
import type { Worker } from "./worker.
|
|
1
|
+
import type { Assets } from "./assets.ts";
|
|
2
|
+
import type { Bindings } from "./bindings.ts";
|
|
3
|
+
import { type WebsiteProps } from "./website.ts";
|
|
4
|
+
import type { Worker } from "./worker.ts";
|
|
5
5
|
export interface ViteProps<B extends Bindings> extends WebsiteProps<B> {
|
|
6
6
|
}
|
|
7
7
|
export type Vite<B extends Bindings> = B extends {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Assets } from "./assets.
|
|
2
|
-
import type { Bindings } from "./bindings.
|
|
3
|
-
import { Worker, type AssetsConfig, type WorkerProps } from "./worker.
|
|
1
|
+
import { Assets } from "./assets.ts";
|
|
2
|
+
import type { Bindings } from "./bindings.ts";
|
|
3
|
+
import { Worker, type AssetsConfig, type WorkerProps } from "./worker.ts";
|
|
4
4
|
export interface WebsiteProps<B extends Bindings> extends Omit<WorkerProps<B>, "name" | "assets" | "entrypoint"> {
|
|
5
5
|
/**
|
|
6
6
|
* The command to run to build the site
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"website.d.ts","sourceRoot":"","sources":["../../src/cloudflare/website.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"website.d.ts","sourceRoot":"","sources":["../../src/cloudflare/website.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAEL,MAAM,EACN,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,aAAa,CAAC;AAGrB,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,QAAQ,CAC9C,SAAQ,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,YAAY,CAAC;IAC9D;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,CAAC,EACH,MAAM,GACN,CAAC;QACC,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,YAAY,CAAC,CAAC;IACtB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,QAAQ,CAAC,EACL,OAAO,GACP,MAAM,GACN;QACE,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACP;AAED,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,QAAQ,IAAI,CAAC,SAAS;IAAE,MAAM,EAAE,GAAG,CAAA;CAAE,GAC/D,KAAK,GACL,MAAM,CAAC,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEnC,wBAAsB,OAAO,CAAC,CAAC,SAAS,QAAQ,EAC9C,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,GACrB,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CA+ErB"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import fs from "node:fs/promises";
|
|
2
1
|
import path from "node:path";
|
|
3
2
|
import { alchemy } from "../alchemy.js";
|
|
4
3
|
import { Exec } from "../os/exec.js";
|
|
5
4
|
import { Assets } from "./assets.js";
|
|
6
|
-
import { Worker } from "./worker.js";
|
|
5
|
+
import { DEFAULT_COMPATIBILITY_DATE, Worker, } from "./worker.js";
|
|
7
6
|
import { WranglerJson } from "./wrangler.json.js";
|
|
8
7
|
export async function Website(id, props) {
|
|
9
8
|
if (props.bindings?.ASSETS) {
|
|
@@ -11,8 +10,6 @@ export async function Website(id, props) {
|
|
|
11
10
|
}
|
|
12
11
|
const wrangler = props.wrangler ?? true;
|
|
13
12
|
return alchemy.run(id, async () => {
|
|
14
|
-
// building the site requires a wrangler.jsonc file to start
|
|
15
|
-
// - so initialize an empty one if it doesn't exist
|
|
16
13
|
const cwd = path.resolve(props.cwd || process.cwd());
|
|
17
14
|
const fileName = typeof wrangler === "boolean"
|
|
18
15
|
? "wrangler.jsonc"
|
|
@@ -21,27 +18,14 @@ export async function Website(id, props) {
|
|
|
21
18
|
: (wrangler?.path ?? "wrangler.jsonc");
|
|
22
19
|
const wranglerPath = fileName && path.relative(cwd, path.join(cwd, fileName));
|
|
23
20
|
const wranglerMain = typeof wrangler === "object" ? (wrangler.main ?? props.main) : props.main;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
await fs.writeFile(wranglerPath, JSON.stringify({
|
|
30
|
-
name: id,
|
|
31
|
-
main: wranglerMain,
|
|
32
|
-
compatibility_date: new Date().toISOString().split("T")[0],
|
|
33
|
-
compatibility_flags: props.compatibilityFlags ?? [],
|
|
34
|
-
}, null, 2));
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
await Exec("build", {
|
|
38
|
-
cwd,
|
|
39
|
-
command: props.command,
|
|
40
|
-
});
|
|
41
|
-
// @ts-expect-error - the WorkerProps union type not happy
|
|
42
|
-
const worker = await Worker("worker", {
|
|
21
|
+
const workerName = props.name ?? id;
|
|
22
|
+
const assetDir = typeof props.assets === "string"
|
|
23
|
+
? props.assets
|
|
24
|
+
: (props.assets?.dist ?? "dist");
|
|
25
|
+
const workerProps = {
|
|
43
26
|
...props,
|
|
44
|
-
|
|
27
|
+
compatibilityDate: props.compatibilityDate ?? DEFAULT_COMPATIBILITY_DATE,
|
|
28
|
+
name: workerName,
|
|
45
29
|
entrypoint: props.main,
|
|
46
30
|
assets: {
|
|
47
31
|
html_handling: "auto-trailing-slash",
|
|
@@ -59,23 +43,34 @@ export default {
|
|
|
59
43
|
};`,
|
|
60
44
|
url: true,
|
|
61
45
|
adopt: true,
|
|
62
|
-
|
|
63
|
-
...props.bindings,
|
|
64
|
-
ASSETS: await Assets("assets", {
|
|
65
|
-
path: typeof props.assets === "string"
|
|
66
|
-
? props.assets
|
|
67
|
-
: (props.assets?.dist ?? "dist"),
|
|
68
|
-
}),
|
|
69
|
-
},
|
|
70
|
-
});
|
|
46
|
+
};
|
|
71
47
|
if (wrangler) {
|
|
72
48
|
await WranglerJson("wrangler.jsonc", {
|
|
73
49
|
path: wranglerPath,
|
|
74
|
-
worker,
|
|
50
|
+
worker: workerProps,
|
|
75
51
|
main: wranglerMain,
|
|
52
|
+
// hard-code the assets directory because we haven't yet included the assets binding
|
|
53
|
+
assets: {
|
|
54
|
+
binding: "ASSETS",
|
|
55
|
+
directory: assetDir,
|
|
56
|
+
},
|
|
76
57
|
});
|
|
77
58
|
}
|
|
78
|
-
|
|
59
|
+
await Exec("build", {
|
|
60
|
+
cwd,
|
|
61
|
+
command: props.command,
|
|
62
|
+
});
|
|
63
|
+
return (await Worker("worker", {
|
|
64
|
+
...workerProps,
|
|
65
|
+
bindings: {
|
|
66
|
+
...workerProps.bindings,
|
|
67
|
+
// we don't include the Assets binding until after build to make sure the asset manifest is correct
|
|
68
|
+
// we generate the wrangler.json using all the bind
|
|
69
|
+
ASSETS: await Assets("assets", {
|
|
70
|
+
path: assetDir,
|
|
71
|
+
}),
|
|
72
|
+
},
|
|
73
|
+
}));
|
|
79
74
|
});
|
|
80
75
|
}
|
|
81
76
|
//# sourceMappingURL=website.js.map
|