alchemy 0.12.2 → 0.12.4
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/ark.d.ts +1 -0
- package/lib/ai/ark.d.ts.map +1 -0
- package/lib/ai/ark.js +1 -0
- package/lib/ai/ark.js.map +1 -0
- package/lib/ai/astro-file.d.ts +5 -4
- package/lib/ai/astro-file.d.ts.map +1 -0
- package/lib/ai/astro-file.js +4 -3
- package/lib/ai/astro-file.js.map +1 -0
- package/lib/ai/client.d.ts +2 -1
- package/lib/ai/client.d.ts.map +1 -0
- package/lib/ai/client.js +1 -0
- package/lib/ai/client.js.map +1 -0
- package/lib/ai/css-file.d.ts +5 -4
- package/lib/ai/css-file.d.ts.map +1 -0
- package/lib/ai/css-file.js +4 -3
- package/lib/ai/css-file.js.map +1 -0
- package/lib/ai/data.d.ts +5 -4
- package/lib/ai/data.d.ts.map +1 -0
- package/lib/ai/data.js +4 -3
- package/lib/ai/data.js.map +1 -0
- package/lib/ai/document.d.ts +6 -5
- package/lib/ai/document.d.ts.map +1 -0
- package/lib/ai/document.js +4 -3
- package/lib/ai/document.js.map +1 -0
- package/lib/ai/html-file.d.ts +5 -4
- package/lib/ai/html-file.d.ts.map +1 -0
- package/lib/ai/html-file.js +4 -3
- package/lib/ai/html-file.js.map +1 -0
- package/lib/ai/index.d.ts +11 -10
- package/lib/ai/index.d.ts.map +1 -0
- package/lib/ai/index.js +11 -10
- package/lib/ai/index.js.map +1 -0
- package/lib/ai/json-file.d.ts +5 -4
- package/lib/ai/json-file.d.ts.map +1 -0
- package/lib/ai/json-file.js +5 -4
- package/lib/ai/json-file.js.map +1 -0
- package/lib/ai/typescript-file.d.ts +5 -4
- package/lib/ai/typescript-file.d.ts.map +1 -0
- package/lib/ai/typescript-file.js +4 -3
- package/lib/ai/typescript-file.js.map +1 -0
- package/lib/ai/vue-file.d.ts +5 -4
- package/lib/ai/vue-file.d.ts.map +1 -0
- package/lib/ai/vue-file.js +4 -3
- package/lib/ai/vue-file.js.map +1 -0
- package/lib/ai/yaml-file.d.ts +5 -4
- package/lib/ai/yaml-file.d.ts.map +1 -0
- package/lib/ai/yaml-file.js +5 -4
- package/lib/ai/yaml-file.js.map +1 -0
- package/lib/alchemy.d.ts +6 -5
- package/lib/alchemy.d.ts.map +1 -0
- package/lib/alchemy.js +5 -4
- package/lib/alchemy.js.map +1 -0
- package/lib/apply.d.ts +2 -1
- package/lib/apply.d.ts.map +1 -0
- package/lib/apply.js +5 -4
- package/lib/apply.js.map +1 -0
- package/lib/aws/account-id.d.ts +1 -0
- package/lib/aws/account-id.d.ts.map +1 -0
- package/lib/aws/account-id.js +1 -0
- package/lib/aws/account-id.js.map +1 -0
- package/lib/aws/bucket.d.ts +3 -2
- package/lib/aws/bucket.d.ts.map +1 -0
- package/lib/aws/bucket.js +3 -2
- package/lib/aws/bucket.js.map +1 -0
- package/lib/aws/credentials.d.ts +2 -1
- package/lib/aws/credentials.d.ts.map +1 -0
- package/lib/aws/credentials.js +1 -0
- package/lib/aws/credentials.js.map +1 -0
- package/lib/aws/function.d.ts +4 -3
- package/lib/aws/function.d.ts.map +1 -0
- package/lib/aws/function.js +3 -2
- package/lib/aws/function.js.map +1 -0
- package/lib/aws/index.d.ts +10 -9
- package/lib/aws/index.d.ts.map +1 -0
- package/lib/aws/index.js +10 -9
- package/lib/aws/index.js.map +1 -0
- package/lib/aws/oidc/github-oidc-provider.d.ts +2 -1
- package/lib/aws/oidc/github-oidc-provider.d.ts.map +1 -0
- package/lib/aws/oidc/github-oidc-provider.js +2 -1
- package/lib/aws/oidc/github-oidc-provider.js.map +1 -0
- package/lib/aws/oidc/index.d.ts +3 -2
- package/lib/aws/oidc/index.d.ts.map +1 -0
- package/lib/aws/oidc/index.js +3 -2
- package/lib/aws/oidc/index.js.map +1 -0
- package/lib/aws/oidc/oidc-provider.d.ts +3 -2
- package/lib/aws/oidc/oidc-provider.d.ts.map +1 -0
- package/lib/aws/oidc/oidc-provider.js +3 -2
- package/lib/aws/oidc/oidc-provider.js.map +1 -0
- package/lib/aws/policy-attachment.d.ts +3 -2
- package/lib/aws/policy-attachment.d.ts.map +1 -0
- package/lib/aws/policy-attachment.js +3 -2
- package/lib/aws/policy-attachment.js.map +1 -0
- package/lib/aws/policy.d.ts +3 -2
- package/lib/aws/policy.d.ts.map +1 -0
- package/lib/aws/policy.js +2 -1
- package/lib/aws/policy.js.map +1 -0
- package/lib/aws/queue.d.ts +3 -2
- package/lib/aws/queue.d.ts.map +1 -0
- package/lib/aws/queue.js +2 -1
- package/lib/aws/queue.js.map +1 -0
- package/lib/aws/role.d.ts +4 -3
- package/lib/aws/role.d.ts.map +1 -0
- package/lib/aws/role.js +3 -2
- package/lib/aws/role.js.map +1 -0
- package/lib/aws/ses.d.ts +3 -2
- package/lib/aws/ses.d.ts.map +1 -0
- package/lib/aws/ses.js +3 -2
- package/lib/aws/ses.js.map +1 -0
- package/lib/aws/table.d.ts +3 -2
- package/lib/aws/table.d.ts.map +1 -0
- package/lib/aws/table.js +4 -3
- package/lib/aws/table.js.map +1 -0
- package/lib/cloudflare/account-api-token.d.ts +5 -4
- package/lib/cloudflare/account-api-token.d.ts.map +1 -0
- package/lib/cloudflare/account-api-token.js +6 -5
- package/lib/cloudflare/account-api-token.js.map +1 -0
- package/lib/cloudflare/account-id.d.ts +2 -1
- package/lib/cloudflare/account-id.d.ts.map +1 -0
- package/lib/cloudflare/account-id.js +2 -1
- package/lib/cloudflare/account-id.js.map +1 -0
- package/lib/cloudflare/api-error.d.ts +1 -0
- package/lib/cloudflare/api-error.d.ts.map +1 -0
- package/lib/cloudflare/api-error.js +1 -0
- package/lib/cloudflare/api-error.js.map +1 -0
- package/lib/cloudflare/api.d.ts +2 -1
- package/lib/cloudflare/api.d.ts.map +1 -0
- package/lib/cloudflare/api.js +3 -2
- package/lib/cloudflare/api.js.map +1 -0
- package/lib/cloudflare/asset-manifest.d.ts +1 -0
- package/lib/cloudflare/asset-manifest.d.ts.map +1 -0
- package/lib/cloudflare/asset-manifest.js +1 -0
- package/lib/cloudflare/asset-manifest.js.map +1 -0
- package/lib/cloudflare/assets.d.ts +3 -2
- package/lib/cloudflare/assets.d.ts.map +1 -0
- package/lib/cloudflare/assets.js +3 -2
- package/lib/cloudflare/assets.js.map +1 -0
- package/lib/cloudflare/auth.d.ts +3 -2
- package/lib/cloudflare/auth.d.ts.map +1 -0
- package/lib/cloudflare/auth.js +3 -2
- package/lib/cloudflare/auth.js.map +1 -0
- package/lib/cloudflare/bindings.d.ts +12 -11
- package/lib/cloudflare/bindings.d.ts.map +1 -0
- package/lib/cloudflare/bindings.js +1 -0
- package/lib/cloudflare/bindings.js.map +1 -0
- package/lib/cloudflare/bound.d.ts +13 -12
- package/lib/cloudflare/bound.d.ts.map +1 -0
- package/lib/cloudflare/bound.js +1 -0
- package/lib/cloudflare/bound.js.map +1 -0
- package/lib/cloudflare/bucket.d.ts +5 -4
- package/lib/cloudflare/bucket.d.ts.map +1 -0
- package/lib/cloudflare/bucket.js +4 -3
- package/lib/cloudflare/bucket.js.map +1 -0
- package/lib/cloudflare/custom-domain.d.ts +4 -3
- package/lib/cloudflare/custom-domain.d.ts.map +1 -0
- package/lib/cloudflare/custom-domain.js +4 -3
- package/lib/cloudflare/custom-domain.js.map +1 -0
- package/lib/cloudflare/d1-database.d.ts +6 -5
- package/lib/cloudflare/d1-database.d.ts.map +1 -0
- package/lib/cloudflare/d1-database.js +6 -5
- package/lib/cloudflare/d1-database.js.map +1 -0
- package/lib/cloudflare/d1-migrations.d.ts +2 -1
- package/lib/cloudflare/d1-migrations.d.ts.map +1 -0
- package/lib/cloudflare/d1-migrations.js +4 -3
- package/lib/cloudflare/d1-migrations.js.map +1 -0
- package/lib/cloudflare/dns-records.d.ts +5 -4
- package/lib/cloudflare/dns-records.d.ts.map +1 -0
- package/lib/cloudflare/dns-records.js +3 -2
- package/lib/cloudflare/dns-records.js.map +1 -0
- package/lib/cloudflare/durable-object-namespace.d.ts +1 -0
- package/lib/cloudflare/durable-object-namespace.d.ts.map +1 -0
- package/lib/cloudflare/durable-object-namespace.js +1 -0
- package/lib/cloudflare/durable-object-namespace.js.map +1 -0
- package/lib/cloudflare/index.d.ts +28 -25
- package/lib/cloudflare/index.d.ts.map +1 -0
- package/lib/cloudflare/index.js +28 -25
- package/lib/cloudflare/index.js.map +1 -0
- package/lib/cloudflare/kv-namespace.d.ts +4 -3
- package/lib/cloudflare/kv-namespace.d.ts.map +1 -0
- package/lib/cloudflare/kv-namespace.js +5 -4
- package/lib/cloudflare/kv-namespace.js.map +1 -0
- package/lib/cloudflare/local-dev-cloudflare-shim.d.ts +1 -0
- package/lib/cloudflare/local-dev-cloudflare-shim.d.ts.map +1 -0
- package/lib/cloudflare/local-dev-cloudflare-shim.js +1 -0
- package/lib/cloudflare/local-dev-cloudflare-shim.js.map +1 -0
- package/lib/cloudflare/nuxt.d.ts +49 -0
- package/lib/cloudflare/nuxt.d.ts.map +1 -0
- package/lib/cloudflare/nuxt.js +45 -0
- package/lib/cloudflare/nuxt.js.map +1 -0
- package/lib/cloudflare/permission-groups.d.ts +4 -3
- package/lib/cloudflare/permission-groups.d.ts.map +1 -0
- package/lib/cloudflare/permission-groups.js +3 -2
- package/lib/cloudflare/permission-groups.js.map +1 -0
- package/lib/cloudflare/pipeline.d.ts +5 -4
- package/lib/cloudflare/pipeline.d.ts.map +1 -0
- package/lib/cloudflare/pipeline.js +4 -3
- package/lib/cloudflare/pipeline.js.map +1 -0
- package/lib/cloudflare/queue.d.ts +4 -3
- package/lib/cloudflare/queue.d.ts.map +1 -0
- package/lib/cloudflare/queue.js +4 -3
- package/lib/cloudflare/queue.js.map +1 -0
- package/lib/cloudflare/r2-rest-state-store.d.ts +4 -3
- package/lib/cloudflare/r2-rest-state-store.d.ts.map +1 -0
- package/lib/cloudflare/r2-rest-state-store.js +5 -4
- package/lib/cloudflare/r2-rest-state-store.js.map +1 -0
- package/lib/cloudflare/redwood.d.ts +71 -0
- package/lib/cloudflare/redwood.d.ts.map +1 -0
- package/lib/cloudflare/redwood.js +83 -0
- package/lib/cloudflare/redwood.js.map +1 -0
- package/lib/cloudflare/response.d.ts +1 -0
- package/lib/cloudflare/response.d.ts.map +1 -0
- package/lib/cloudflare/response.js +1 -0
- package/lib/cloudflare/response.js.map +1 -0
- package/lib/cloudflare/tanstack-start.d.ts +5 -4
- package/lib/cloudflare/tanstack-start.d.ts.map +1 -0
- package/lib/cloudflare/tanstack-start.js +2 -1
- package/lib/cloudflare/tanstack-start.js.map +1 -0
- package/lib/cloudflare/types.d.ts +1 -0
- package/lib/cloudflare/types.d.ts.map +1 -0
- package/lib/cloudflare/types.js +1 -0
- package/lib/cloudflare/types.js.map +1 -0
- package/lib/cloudflare/vectorize-index.d.ts +4 -3
- package/lib/cloudflare/vectorize-index.d.ts.map +1 -0
- package/lib/cloudflare/vectorize-index.js +4 -3
- package/lib/cloudflare/vectorize-index.js.map +1 -0
- package/lib/cloudflare/vectorize-metadata-index.d.ts +5 -4
- package/lib/cloudflare/vectorize-metadata-index.d.ts.map +1 -0
- package/lib/cloudflare/vectorize-metadata-index.js +5 -4
- package/lib/cloudflare/vectorize-metadata-index.js.map +1 -0
- package/lib/cloudflare/vite.d.ts +5 -4
- package/lib/cloudflare/vite.d.ts.map +1 -0
- package/lib/cloudflare/vite.js +2 -1
- package/lib/cloudflare/vite.js.map +1 -0
- package/lib/cloudflare/website.d.ts +4 -3
- package/lib/cloudflare/website.d.ts.map +1 -0
- package/lib/cloudflare/website.js +6 -5
- package/lib/cloudflare/website.js.map +1 -0
- package/lib/cloudflare/worker-metadata.d.ts +1 -0
- package/lib/cloudflare/worker-metadata.d.ts.map +1 -0
- package/lib/cloudflare/worker-metadata.js +1 -0
- package/lib/cloudflare/worker-metadata.js.map +1 -0
- package/lib/cloudflare/worker-migration.d.ts +1 -0
- package/lib/cloudflare/worker-migration.d.ts.map +1 -0
- package/lib/cloudflare/worker-migration.js +1 -0
- package/lib/cloudflare/worker-migration.js.map +1 -0
- package/lib/cloudflare/worker.d.ts +16 -7
- package/lib/cloudflare/worker.d.ts.map +1 -0
- package/lib/cloudflare/worker.js +21 -12
- package/lib/cloudflare/worker.js.map +1 -0
- package/lib/cloudflare/workflow.d.ts +2 -1
- package/lib/cloudflare/workflow.d.ts.map +1 -0
- package/lib/cloudflare/workflow.js +2 -1
- package/lib/cloudflare/workflow.js.map +1 -0
- package/lib/cloudflare/wrangler.json.d.ts +4 -3
- package/lib/cloudflare/wrangler.json.d.ts.map +1 -0
- package/lib/cloudflare/wrangler.json.js +5 -3
- package/lib/cloudflare/wrangler.json.js.map +1 -0
- package/lib/cloudflare/zone-settings.d.ts +1 -0
- package/lib/cloudflare/zone-settings.d.ts.map +1 -0
- package/lib/cloudflare/zone-settings.js +1 -0
- package/lib/cloudflare/zone-settings.js.map +1 -0
- package/lib/cloudflare/zone.d.ts +5 -4
- package/lib/cloudflare/zone.d.ts.map +1 -0
- package/lib/cloudflare/zone.js +3 -2
- package/lib/cloudflare/zone.js.map +1 -0
- package/lib/context.d.ts +4 -3
- package/lib/context.d.ts.map +1 -0
- package/lib/context.js +2 -1
- package/lib/context.js.map +1 -0
- package/lib/destroy.d.ts +3 -2
- package/lib/destroy.d.ts.map +1 -0
- package/lib/destroy.js +5 -4
- package/lib/destroy.js.map +1 -0
- package/lib/dns/godaddy.d.ts +1 -0
- package/lib/dns/godaddy.d.ts.map +1 -0
- package/lib/dns/godaddy.js +1 -0
- package/lib/dns/godaddy.js.map +1 -0
- package/lib/dns/import-dns.d.ts +4 -3
- package/lib/dns/import-dns.d.ts.map +1 -0
- package/lib/dns/import-dns.js +3 -2
- package/lib/dns/import-dns.js.map +1 -0
- package/lib/dns/index.d.ts +3 -2
- package/lib/dns/index.d.ts.map +1 -0
- package/lib/dns/index.js +3 -2
- package/lib/dns/index.js.map +1 -0
- package/lib/dns/record.d.ts +1 -0
- package/lib/dns/record.d.ts.map +1 -0
- package/lib/dns/record.js +1 -0
- package/lib/dns/record.js.map +1 -0
- package/lib/encrypt.d.ts +1 -0
- package/lib/encrypt.d.ts.map +1 -0
- package/lib/encrypt.js +1 -0
- package/lib/encrypt.js.map +1 -0
- package/lib/env.d.ts +1 -0
- package/lib/env.d.ts.map +1 -0
- package/lib/env.js +1 -0
- package/lib/env.js.map +1 -0
- package/lib/esbuild/bundle.d.ts +3 -2
- package/lib/esbuild/bundle.d.ts.map +1 -0
- package/lib/esbuild/bundle.js +3 -2
- package/lib/esbuild/bundle.js.map +1 -0
- package/lib/esbuild/index.d.ts +2 -1
- package/lib/esbuild/index.d.ts.map +1 -0
- package/lib/esbuild/index.js +2 -1
- package/lib/esbuild/index.js.map +1 -0
- package/lib/fs/copy-file.d.ts +3 -2
- package/lib/fs/copy-file.d.ts.map +1 -0
- package/lib/fs/copy-file.js +3 -2
- package/lib/fs/copy-file.js.map +1 -0
- package/lib/fs/file-collection.d.ts +1 -0
- package/lib/fs/file-collection.d.ts.map +1 -0
- package/lib/fs/file-collection.js +1 -0
- package/lib/fs/file-collection.js.map +1 -0
- package/lib/fs/file-ref.d.ts +1 -0
- package/lib/fs/file-ref.d.ts.map +1 -0
- package/lib/fs/file-ref.js +1 -0
- package/lib/fs/file-ref.js.map +1 -0
- package/lib/fs/file-system-state-store.d.ts +3 -2
- package/lib/fs/file-system-state-store.d.ts.map +1 -0
- package/lib/fs/file-system-state-store.js +3 -2
- package/lib/fs/file-system-state-store.js.map +1 -0
- package/lib/fs/file.d.ts +5 -4
- package/lib/fs/file.d.ts.map +1 -0
- package/lib/fs/file.js +4 -3
- package/lib/fs/file.js.map +1 -0
- package/lib/fs/folder.d.ts +3 -2
- package/lib/fs/folder.d.ts.map +1 -0
- package/lib/fs/folder.js +3 -2
- package/lib/fs/folder.js.map +1 -0
- package/lib/fs/index.d.ts +15 -14
- package/lib/fs/index.d.ts.map +1 -0
- package/lib/fs/index.js +15 -14
- package/lib/fs/index.js.map +1 -0
- package/lib/fs/static-astro-file.d.ts +2 -1
- package/lib/fs/static-astro-file.d.ts.map +1 -0
- package/lib/fs/static-astro-file.js +2 -1
- package/lib/fs/static-astro-file.js.map +1 -0
- package/lib/fs/static-css-file.d.ts +2 -1
- package/lib/fs/static-css-file.d.ts.map +1 -0
- package/lib/fs/static-css-file.js +2 -1
- package/lib/fs/static-css-file.js.map +1 -0
- package/lib/fs/static-html-file.d.ts +2 -1
- package/lib/fs/static-html-file.d.ts.map +1 -0
- package/lib/fs/static-html-file.js +2 -1
- package/lib/fs/static-html-file.js.map +1 -0
- package/lib/fs/static-json-file.d.ts +2 -1
- package/lib/fs/static-json-file.d.ts.map +1 -0
- package/lib/fs/static-json-file.js +2 -1
- package/lib/fs/static-json-file.js.map +1 -0
- package/lib/fs/static-text-file.d.ts +2 -1
- package/lib/fs/static-text-file.d.ts.map +1 -0
- package/lib/fs/static-text-file.js +2 -1
- package/lib/fs/static-text-file.js.map +1 -0
- package/lib/fs/static-typescript-file.d.ts +2 -1
- package/lib/fs/static-typescript-file.d.ts.map +1 -0
- package/lib/fs/static-typescript-file.js +2 -1
- package/lib/fs/static-typescript-file.js.map +1 -0
- package/lib/fs/static-vue-file.d.ts +2 -1
- package/lib/fs/static-vue-file.d.ts.map +1 -0
- package/lib/fs/static-vue-file.js +2 -1
- package/lib/fs/static-vue-file.js.map +1 -0
- package/lib/fs/static-yaml-file.d.ts +2 -1
- package/lib/fs/static-yaml-file.d.ts.map +1 -0
- package/lib/fs/static-yaml-file.js +2 -1
- package/lib/fs/static-yaml-file.js.map +1 -0
- package/lib/github/client.d.ts +1 -0
- package/lib/github/client.d.ts.map +1 -0
- package/lib/github/client.js +3 -2
- package/lib/github/client.js.map +1 -0
- package/lib/github/index.d.ts +3 -2
- package/lib/github/index.d.ts.map +1 -0
- package/lib/github/index.js +3 -2
- package/lib/github/index.js.map +1 -0
- package/lib/github/repository-environment.d.ts +3 -2
- package/lib/github/repository-environment.d.ts.map +1 -0
- package/lib/github/repository-environment.js +3 -2
- package/lib/github/repository-environment.js.map +1 -0
- package/lib/github/secret.d.ts +4 -3
- package/lib/github/secret.d.ts.map +1 -0
- package/lib/github/secret.js +3 -2
- package/lib/github/secret.js.map +1 -0
- package/lib/index.d.ts +8 -7
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -5
- package/lib/index.js.map +1 -0
- package/lib/internal/docs/providers.d.ts +3 -2
- package/lib/internal/docs/providers.d.ts.map +1 -0
- package/lib/internal/docs/providers.js +5 -4
- package/lib/internal/docs/providers.js.map +1 -0
- package/lib/os/exec.d.ts +3 -2
- package/lib/os/exec.d.ts.map +1 -0
- package/lib/os/exec.js +4 -3
- package/lib/os/exec.js.map +1 -0
- package/lib/os/index.d.ts +2 -1
- package/lib/os/index.d.ts.map +1 -0
- package/lib/os/index.js +2 -1
- package/lib/os/index.js.map +1 -0
- package/lib/resource.d.ts +3 -2
- package/lib/resource.d.ts.map +1 -0
- package/lib/resource.js +3 -2
- package/lib/resource.js.map +1 -0
- package/lib/scope.d.ts +3 -2
- package/lib/scope.d.ts.map +1 -0
- package/lib/scope.js +3 -2
- package/lib/scope.js.map +1 -0
- package/lib/secret.d.ts +1 -0
- package/lib/secret.d.ts.map +1 -0
- package/lib/secret.js +2 -1
- package/lib/secret.js.map +1 -0
- package/lib/serde.d.ts +2 -1
- package/lib/serde.d.ts.map +1 -0
- package/lib/serde.js +4 -3
- package/lib/serde.js.map +1 -0
- package/lib/state.d.ts +3 -2
- package/lib/state.d.ts.map +1 -0
- package/lib/state.js +1 -0
- package/lib/state.js.map +1 -0
- package/lib/stripe/index.d.ts +4 -3
- package/lib/stripe/index.d.ts.map +1 -0
- package/lib/stripe/index.js +4 -3
- package/lib/stripe/index.js.map +1 -0
- package/lib/stripe/price.d.ts +3 -2
- package/lib/stripe/price.d.ts.map +1 -0
- package/lib/stripe/price.js +2 -1
- package/lib/stripe/price.js.map +1 -0
- package/lib/stripe/product.d.ts +3 -2
- package/lib/stripe/product.d.ts.map +1 -0
- package/lib/stripe/product.js +2 -1
- package/lib/stripe/product.js.map +1 -0
- package/lib/stripe/webhook.d.ts +3 -2
- package/lib/stripe/webhook.d.ts.map +1 -0
- package/lib/stripe/webhook.js +2 -1
- package/lib/stripe/webhook.js.map +1 -0
- package/lib/test/bun.d.ts +3 -2
- package/lib/test/bun.d.ts.map +1 -0
- package/lib/test/bun.js +4 -3
- package/lib/test/bun.js.map +1 -0
- package/lib/test/prune.d.ts +1 -0
- package/lib/test/prune.d.ts.map +1 -0
- package/lib/test/prune.js +3 -3
- package/lib/test/prune.js.map +1 -0
- package/lib/util/content-type.d.ts +1 -0
- package/lib/util/content-type.d.ts.map +1 -0
- package/lib/util/content-type.js +1 -0
- package/lib/util/content-type.js.map +1 -0
- package/lib/util/ignore.d.ts +1 -0
- package/lib/util/ignore.d.ts.map +1 -0
- package/lib/util/ignore.js +1 -0
- package/lib/util/ignore.js.map +1 -0
- package/lib/util/retry.d.ts +1 -0
- package/lib/util/retry.d.ts.map +1 -0
- package/lib/util/retry.js +1 -0
- package/lib/util/retry.js.map +1 -0
- package/lib/util/rm.d.ts +1 -0
- package/lib/util/rm.d.ts.map +1 -0
- package/lib/util/rm.js +1 -0
- package/lib/util/rm.js.map +1 -0
- package/lib/util/sha256.d.ts +1 -0
- package/lib/util/sha256.d.ts.map +1 -0
- package/lib/util/sha256.js +1 -0
- package/lib/util/sha256.js.map +1 -0
- package/lib/util/slugify.d.ts +1 -0
- package/lib/util/slugify.d.ts.map +1 -0
- package/lib/util/slugify.js +1 -0
- package/lib/util/slugify.js.map +1 -0
- package/lib/web/astro.d.ts +3 -2
- package/lib/web/astro.d.ts.map +1 -0
- package/lib/web/astro.js +9 -8
- package/lib/web/astro.js.map +1 -0
- package/lib/web/shadcn-component.d.ts +3 -2
- package/lib/web/shadcn-component.d.ts.map +1 -0
- package/lib/web/shadcn-component.js +5 -4
- package/lib/web/shadcn-component.js.map +1 -0
- package/lib/web/shadcn.d.ts +4 -3
- package/lib/web/shadcn.d.ts.map +1 -0
- package/lib/web/shadcn.js +7 -6
- package/lib/web/shadcn.js.map +1 -0
- package/lib/web/tailwind.d.ts +3 -2
- package/lib/web/tailwind.d.ts.map +1 -0
- package/lib/web/tailwind.js +6 -5
- package/lib/web/tailwind.js.map +1 -0
- package/lib/web/vite.d.ts +3 -2
- package/lib/web/vite.d.ts.map +1 -0
- package/lib/web/vite.js +10 -9
- package/lib/web/vite.js.map +1 -0
- package/lib/web/vitepress/config.d.ts +2 -1
- package/lib/web/vitepress/config.d.ts.map +1 -0
- package/lib/web/vitepress/config.js +2 -1
- package/lib/web/vitepress/config.js.map +1 -0
- package/lib/web/vitepress/custom-theme.d.ts +5 -4
- package/lib/web/vitepress/custom-theme.d.ts.map +1 -0
- package/lib/web/vitepress/custom-theme.js +8 -7
- package/lib/web/vitepress/custom-theme.js.map +1 -0
- package/lib/web/vitepress/dependencies.d.ts +3 -2
- package/lib/web/vitepress/dependencies.d.ts.map +1 -0
- package/lib/web/vitepress/dependencies.js +4 -3
- package/lib/web/vitepress/dependencies.js.map +1 -0
- package/lib/web/vitepress/home-page.d.ts +4 -3
- package/lib/web/vitepress/home-page.d.ts.map +1 -0
- package/lib/web/vitepress/home-page.js +4 -3
- package/lib/web/vitepress/home-page.js.map +1 -0
- package/lib/web/vitepress/index.d.ts +6 -5
- package/lib/web/vitepress/index.d.ts.map +1 -0
- package/lib/web/vitepress/index.js +6 -5
- package/lib/web/vitepress/index.js.map +1 -0
- package/lib/web/vitepress/process-front-matter-files.d.ts +1 -0
- package/lib/web/vitepress/process-front-matter-files.d.ts.map +1 -0
- package/lib/web/vitepress/process-front-matter-files.js +1 -0
- package/lib/web/vitepress/process-front-matter-files.js.map +1 -0
- package/lib/web/vitepress/vitepress.d.ts +3 -2
- package/lib/web/vitepress/vitepress.d.ts.map +1 -0
- package/lib/web/vitepress/vitepress.js +8 -7
- package/lib/web/vitepress/vitepress.js.map +1 -0
- package/package.json +1 -1
- 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 +6 -6
- package/src/apply.ts +5 -5
- package/src/aws/bucket.ts +13 -13
- 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 +2 -2
- package/src/aws/oidc/index.ts +2 -2
- package/src/aws/oidc/oidc-provider.ts +3 -3
- package/src/aws/policy-attachment.ts +8 -8
- package/src/aws/policy.ts +16 -16
- package/src/aws/queue.ts +14 -14
- package/src/aws/role.ts +4 -4
- package/src/aws/ses.ts +20 -20
- package/src/aws/table.ts +4 -4
- package/src/cloudflare/account-api-token.ts +6 -6
- package/src/cloudflare/account-id.ts +1 -1
- package/src/cloudflare/api.ts +3 -3
- package/src/cloudflare/assets.ts +3 -3
- package/src/cloudflare/auth.ts +8 -8
- package/src/cloudflare/bindings.ts +11 -11
- package/src/cloudflare/bound.ts +12 -12
- package/src/cloudflare/bucket.ts +5 -5
- package/src/cloudflare/custom-domain.ts +4 -4
- package/src/cloudflare/d1-database.ts +32 -33
- package/src/cloudflare/d1-migrations.ts +3 -3
- package/src/cloudflare/dns-records.ts +5 -5
- package/src/cloudflare/index.ts +27 -25
- package/src/cloudflare/kv-namespace.ts +5 -5
- package/src/cloudflare/nuxt.ts +66 -0
- package/src/cloudflare/permission-groups.ts +3 -3
- package/src/cloudflare/pipeline.ts +5 -5
- package/src/cloudflare/queue.ts +4 -4
- package/src/cloudflare/r2-rest-state-store.ts +6 -6
- package/src/cloudflare/redwood.ts +96 -0
- package/src/cloudflare/tanstack-start.ts +4 -4
- package/src/cloudflare/vectorize-index.ts +5 -5
- package/src/cloudflare/vectorize-metadata-index.ts +6 -6
- package/src/cloudflare/vite.ts +4 -4
- package/src/cloudflare/website.ts +6 -6
- package/src/cloudflare/worker.ts +39 -17
- package/src/cloudflare/workflow.ts +2 -2
- package/src/cloudflare/wrangler.json.ts +8 -7
- package/src/cloudflare/zone.ts +4 -4
- 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 +3 -3
- package/src/esbuild/index.ts +1 -1
- package/src/fs/copy-file.ts +3 -3
- package/src/fs/file-system-state-store.ts +4 -4
- package/src/fs/file.ts +6 -6
- package/src/fs/folder.ts +7 -7
- 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 +2 -4
- 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/client.ts +12 -12
- 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 +7 -7
- package/src/internal/docs/providers.ts +4 -4
- package/src/os/exec.ts +4 -4
- package/src/os/index.ts +1 -1
- package/src/resource.ts +6 -6
- package/src/scope.ts +4 -4
- package/src/secret.ts +1 -1
- package/src/serde.ts +3 -3
- package/src/state.ts +2 -2
- package/src/stripe/index.ts +3 -3
- package/src/stripe/price.ts +4 -4
- package/src/stripe/product.ts +4 -4
- package/src/stripe/webhook.ts +5 -5
- package/src/test/bun.ts +4 -4
- package/src/test/prune.ts +2 -3
- package/src/web/astro.ts +9 -9
- package/src/web/shadcn-component.ts +5 -5
- package/src/web/shadcn.ts +7 -7
- package/src/web/tailwind.ts +6 -6
- package/src/web/vite.ts +10 -10
- package/src/web/vitepress/config.ts +1 -1
- package/src/web/vitepress/custom-theme.ts +10 -10
- package/src/web/vitepress/dependencies.ts +8 -8
- package/src/web/vitepress/home-page.ts +4 -4
- package/src/web/vitepress/index.ts +5 -5
- package/src/web/vitepress/vitepress.ts +8 -8
package/src/cloudflare/zone.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Context } from "../context";
|
|
2
|
-
import { Resource } from "../resource";
|
|
3
|
-
import { createCloudflareApi, type CloudflareApiOptions } from "./api";
|
|
1
|
+
import type { Context } from "../context.js";
|
|
2
|
+
import { Resource } from "../resource.js";
|
|
3
|
+
import { createCloudflareApi, type CloudflareApiOptions } from "./api.js";
|
|
4
4
|
import type {
|
|
5
5
|
AlwaysUseHTTPSValue,
|
|
6
6
|
AutomaticHTTPSRewritesValue,
|
|
@@ -19,7 +19,7 @@ import type {
|
|
|
19
19
|
UpdateZoneSettingParams,
|
|
20
20
|
WebSocketsValue,
|
|
21
21
|
ZeroRTTValue,
|
|
22
|
-
} from "./zone-settings";
|
|
22
|
+
} from "./zone-settings.js";
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Properties for creating or updating a Zone
|
package/src/context.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { DestroyedSignal } from "./destroy";
|
|
1
|
+
import { DestroyedSignal } from "./destroy.js";
|
|
2
2
|
import type {
|
|
3
3
|
Resource,
|
|
4
4
|
ResourceFQN,
|
|
5
5
|
ResourceID,
|
|
6
6
|
ResourceKind,
|
|
7
7
|
ResourceProps,
|
|
8
|
-
} from "./resource";
|
|
9
|
-
import type { Scope } from "./scope";
|
|
10
|
-
import type { State } from "./state";
|
|
8
|
+
} from "./resource.js";
|
|
9
|
+
import type { Scope } from "./scope.js";
|
|
10
|
+
import type { State } from "./state.js";
|
|
11
11
|
|
|
12
12
|
export type Context<
|
|
13
13
|
Out extends Resource,
|
package/src/destroy.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { alchemy } from "./alchemy";
|
|
2
|
-
import { context } from "./context";
|
|
3
|
-
import { PROVIDERS, type Provider, type Resource } from "./resource";
|
|
4
|
-
import { Scope } from "./scope";
|
|
1
|
+
import { alchemy } from "./alchemy.js";
|
|
2
|
+
import { context } from "./context.js";
|
|
3
|
+
import { PROVIDERS, type Provider, type Resource } from "./resource.js";
|
|
4
|
+
import { Scope } from "./scope.js";
|
|
5
5
|
|
|
6
6
|
export class DestroyedSignal extends Error {}
|
|
7
7
|
|
package/src/dns/import-dns.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Context } from "../context";
|
|
2
|
-
import { Resource } from "../resource";
|
|
3
|
-
import { DEFAULT_RECORD_TYPES, type DnsRecordType } from "./record";
|
|
1
|
+
import type { Context } from "../context.js";
|
|
2
|
+
import { Resource } from "../resource.js";
|
|
3
|
+
import { DEFAULT_RECORD_TYPES, type DnsRecordType } from "./record.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* DNS record response structure from Cloudflare DNS API
|
package/src/dns/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./import-dns";
|
|
2
|
-
export * from "./record";
|
|
1
|
+
export * from "./import-dns.js";
|
|
2
|
+
export * from "./record.js";
|
package/src/esbuild/bundle.ts
CHANGED
|
@@ -2,8 +2,8 @@ import esbuild from "esbuild";
|
|
|
2
2
|
import crypto from "node:crypto";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import type { Context } from "../context";
|
|
6
|
-
import { Resource } from "../resource";
|
|
5
|
+
import type { Context } from "../context.js";
|
|
6
|
+
import { Resource } from "../resource.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Properties for creating or updating an esbuild bundle
|
|
@@ -201,7 +201,7 @@ export async function bundle(props: BundleProps) {
|
|
|
201
201
|
minify: props.minify,
|
|
202
202
|
sourcemap: props.sourcemap,
|
|
203
203
|
external: [
|
|
204
|
-
"node
|
|
204
|
+
"node:*",
|
|
205
205
|
...(props.external ?? []),
|
|
206
206
|
...(props.options?.external ?? []),
|
|
207
207
|
],
|
package/src/esbuild/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./bundle";
|
|
1
|
+
export * from "./bundle.js";
|
package/src/fs/copy-file.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
|
-
import type { Context } from "../context";
|
|
3
|
-
import { Resource } from "../resource";
|
|
4
|
-
import { ignore } from "../util/ignore";
|
|
2
|
+
import type { Context } from "../context.js";
|
|
3
|
+
import { Resource } from "../resource.js";
|
|
4
|
+
import { ignore } from "../util/ignore.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Properties for creating a CopyFile resource
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import type { Scope } from "../scope";
|
|
4
|
-
import { deserialize, serialize } from "../serde";
|
|
5
|
-
import type { State, StateStore } from "../state";
|
|
6
|
-
import { ignore } from "../util/ignore";
|
|
3
|
+
import type { Scope } from "../scope.js";
|
|
4
|
+
import { deserialize, serialize } from "../serde.js";
|
|
5
|
+
import type { State, StateStore } from "../state.js";
|
|
6
|
+
import { ignore } from "../util/ignore.js";
|
|
7
7
|
|
|
8
8
|
const stateRootDir = path.join(process.cwd(), ".alchemy");
|
|
9
9
|
|
package/src/fs/file.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import type { Context } from "../context";
|
|
4
|
-
import { Resource } from "../resource";
|
|
5
|
-
import { ignore } from "../util/ignore";
|
|
3
|
+
import type { Context } from "../context.js";
|
|
4
|
+
import { Resource } from "../resource.js";
|
|
5
|
+
import { ignore } from "../util/ignore.js";
|
|
6
6
|
|
|
7
|
-
import { alchemy } from "../alchemy";
|
|
8
|
-
import type { FileCollection } from "./file-collection";
|
|
9
|
-
import type { FileRef } from "./file-ref";
|
|
7
|
+
import { alchemy } from "../alchemy.js";
|
|
8
|
+
import type { FileCollection } from "./file-collection.js";
|
|
9
|
+
import type { FileRef } from "./file-ref.js";
|
|
10
10
|
|
|
11
11
|
declare module "../alchemy" {
|
|
12
12
|
interface Alchemy {
|
package/src/fs/folder.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
|
-
import type { Context } from "../context";
|
|
3
|
-
import { Resource } from "../resource";
|
|
4
|
-
import { ignore } from "../util/ignore";
|
|
2
|
+
import type { Context } from "../context.js";
|
|
3
|
+
import { Resource } from "../resource.js";
|
|
4
|
+
import { ignore } from "../util/ignore.js";
|
|
5
5
|
|
|
6
6
|
export interface FolderProps {
|
|
7
7
|
/**
|
|
@@ -61,24 +61,24 @@ export const Folder = Resource(
|
|
|
61
61
|
async function (
|
|
62
62
|
this: Context<Folder>,
|
|
63
63
|
id: string,
|
|
64
|
-
props?: FolderProps
|
|
64
|
+
props?: FolderProps
|
|
65
65
|
): Promise<Folder> {
|
|
66
66
|
const dirPath = props?.path ?? id;
|
|
67
67
|
if (this.phase === "delete") {
|
|
68
68
|
if (props?.delete !== false) {
|
|
69
69
|
// we just do a best effort attempt
|
|
70
70
|
await ignore(["ENOENT", "ENOTEMPTY"], async () =>
|
|
71
|
-
fs.promises.rmdir(dirPath, { recursive: props?.clean ?? false })
|
|
71
|
+
fs.promises.rmdir(dirPath, { recursive: props?.clean ?? false })
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
return this.destroy();
|
|
75
75
|
} else {
|
|
76
76
|
await ignore("EEXIST", async () =>
|
|
77
|
-
fs.promises.mkdir(dirPath, { recursive: props?.recursive ?? true })
|
|
77
|
+
fs.promises.mkdir(dirPath, { recursive: props?.recursive ?? true })
|
|
78
78
|
);
|
|
79
79
|
}
|
|
80
80
|
return this({
|
|
81
81
|
path: dirPath,
|
|
82
82
|
});
|
|
83
|
-
}
|
|
83
|
+
}
|
|
84
84
|
);
|
package/src/fs/index.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from "./copy-file";
|
|
2
|
-
export * from "./file";
|
|
3
|
-
export * from "./file-
|
|
4
|
-
export * from "./file-
|
|
5
|
-
export * from "./file
|
|
6
|
-
export * from "./folder";
|
|
7
|
-
export * from "./static-astro-file";
|
|
8
|
-
export * from "./static-css-file";
|
|
9
|
-
export * from "./static-html-file";
|
|
10
|
-
export * from "./static-json-file";
|
|
11
|
-
export * from "./static-text-file";
|
|
12
|
-
export * from "./static-typescript-file";
|
|
13
|
-
export * from "./static-vue-file";
|
|
14
|
-
export * from "./static-yaml-file";
|
|
1
|
+
export * from "./copy-file.js";
|
|
2
|
+
export * from "./file-collection.js";
|
|
3
|
+
export * from "./file-ref.js";
|
|
4
|
+
export * from "./file-system-state-store.js";
|
|
5
|
+
export * from "./file.js";
|
|
6
|
+
export * from "./folder.js";
|
|
7
|
+
export * from "./static-astro-file.js";
|
|
8
|
+
export * from "./static-css-file.js";
|
|
9
|
+
export * from "./static-html-file.js";
|
|
10
|
+
export * from "./static-json-file.js";
|
|
11
|
+
export * from "./static-text-file.js";
|
|
12
|
+
export * from "./static-typescript-file.js";
|
|
13
|
+
export * from "./static-vue-file.js";
|
|
14
|
+
export * from "./static-yaml-file.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { File } from "./file";
|
|
1
|
+
import { File } from "./file.js";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Creates a plain text file
|
|
@@ -13,9 +13,7 @@ export type StaticTextFile = File;
|
|
|
13
13
|
|
|
14
14
|
export function StaticTextFile(
|
|
15
15
|
id: string,
|
|
16
|
-
...args:
|
|
17
|
-
| [content: string]
|
|
18
|
-
| [path: string, content: string]
|
|
16
|
+
...args: [content: string] | [path: string, content: string]
|
|
19
17
|
): Promise<StaticTextFile> {
|
|
20
18
|
const [path, content] = args.length === 1 ? [id, args[0]] : args;
|
|
21
19
|
return File(id, {
|
package/src/github/client.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Octokit } from "@octokit/rest";
|
|
2
|
-
import { exec } from "child_process";
|
|
3
|
-
import { promisify } from "util";
|
|
2
|
+
import { exec } from "node:child_process";
|
|
3
|
+
import { promisify } from "node:util";
|
|
4
4
|
|
|
5
5
|
// Convert exec to promise-based
|
|
6
6
|
const execAsync = promisify(exec);
|
|
@@ -48,7 +48,7 @@ export async function getGitHubToken(token?: string): Promise<string | null> {
|
|
|
48
48
|
* @returns An authenticated Octokit client
|
|
49
49
|
*/
|
|
50
50
|
export async function createGitHubClient(
|
|
51
|
-
options: { token?: string } = {}
|
|
51
|
+
options: { token?: string } = {}
|
|
52
52
|
): Promise<Octokit> {
|
|
53
53
|
const token = await getGitHubToken(options.token);
|
|
54
54
|
|
|
@@ -67,7 +67,7 @@ export async function createGitHubClient(
|
|
|
67
67
|
export async function verifyGitHubAuth(
|
|
68
68
|
octokit: Octokit,
|
|
69
69
|
owner: string,
|
|
70
|
-
repo: string
|
|
70
|
+
repo: string
|
|
71
71
|
): Promise<void> {
|
|
72
72
|
try {
|
|
73
73
|
// Make a test request to check authentication
|
|
@@ -78,34 +78,34 @@ export async function verifyGitHubAuth(
|
|
|
78
78
|
} catch (error: any) {
|
|
79
79
|
if (error.status === 401) {
|
|
80
80
|
console.error(
|
|
81
|
-
"\n⚠️ GitHub authentication failed. Please try one of the following:"
|
|
81
|
+
"\n⚠️ GitHub authentication failed. Please try one of the following:"
|
|
82
82
|
);
|
|
83
83
|
console.error(
|
|
84
|
-
"1. Run 'gh auth login' to authenticate with the GitHub CLI"
|
|
84
|
+
"1. Run 'gh auth login' to authenticate with the GitHub CLI"
|
|
85
85
|
);
|
|
86
86
|
console.error(
|
|
87
|
-
"2. Set the GITHUB_TOKEN environment variable with a personal access token"
|
|
87
|
+
"2. Set the GITHUB_TOKEN environment variable with a personal access token"
|
|
88
88
|
);
|
|
89
89
|
console.error("3. Pass a token directly to the constructor");
|
|
90
90
|
console.error(
|
|
91
|
-
"\nTo create a token, visit: https://github.com/settings/tokens"
|
|
91
|
+
"\nTo create a token, visit: https://github.com/settings/tokens"
|
|
92
92
|
);
|
|
93
93
|
console.error(
|
|
94
|
-
"Required scopes: 'repo' for private repos or 'public_repo' for public repos\n"
|
|
94
|
+
"Required scopes: 'repo' for private repos or 'public_repo' for public repos\n"
|
|
95
95
|
);
|
|
96
96
|
throw new Error("GitHub authentication failed");
|
|
97
97
|
} else if (error.status === 403) {
|
|
98
98
|
console.error(
|
|
99
|
-
"\n⚠️ Insufficient permissions. You need admin access to the repository."
|
|
99
|
+
"\n⚠️ Insufficient permissions. You need admin access to the repository."
|
|
100
100
|
);
|
|
101
101
|
console.error(
|
|
102
|
-
"Make sure your token has the 'repo' scope for private repos or 'public_repo' for public repos\n"
|
|
102
|
+
"Make sure your token has the 'repo' scope for private repos or 'public_repo' for public repos\n"
|
|
103
103
|
);
|
|
104
104
|
throw new Error("Insufficient GitHub permissions");
|
|
105
105
|
} else if (error.status === 404) {
|
|
106
106
|
console.error(`\n⚠️ Repository not found: ${owner}/${repo}`);
|
|
107
107
|
console.error(
|
|
108
|
-
"Make sure the repository exists and you have access to it\n"
|
|
108
|
+
"Make sure the repository exists and you have access to it\n"
|
|
109
109
|
);
|
|
110
110
|
throw new Error("GitHub repository not found");
|
|
111
111
|
} else {
|
package/src/github/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./repository-environment";
|
|
2
|
-
export * from "./secret";
|
|
1
|
+
export * from "./repository-environment.js";
|
|
2
|
+
export * from "./secret.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Context } from "../context";
|
|
2
|
-
import { Resource } from "../resource";
|
|
3
|
-
import { createGitHubClient, verifyGitHubAuth } from "./client";
|
|
1
|
+
import type { Context } from "../context.js";
|
|
2
|
+
import { Resource } from "../resource.js";
|
|
3
|
+
import { createGitHubClient, verifyGitHubAuth } from "./client.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Properties for creating or updating a GitHub Repository Environment
|
package/src/github/secret.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import sodium from "libsodium-wrappers";
|
|
2
|
-
import type { Context } from "../context";
|
|
3
|
-
import { Resource } from "../resource";
|
|
4
|
-
import type { Secret } from "../secret";
|
|
5
|
-
import { createGitHubClient, verifyGitHubAuth } from "./client";
|
|
2
|
+
import type { Context } from "../context.js";
|
|
3
|
+
import { Resource } from "../resource.js";
|
|
4
|
+
import type { Secret } from "../secret.js";
|
|
5
|
+
import { createGitHubClient, verifyGitHubAuth } from "./client.js";
|
|
6
6
|
/**
|
|
7
7
|
* Properties for creating or updating a GitHub Secret
|
|
8
8
|
*/
|
package/src/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type * from "./context";
|
|
2
|
-
export * from "./resource";
|
|
3
|
-
export type * from "./scope";
|
|
4
|
-
export * from "./secret";
|
|
5
|
-
export * from "./state";
|
|
6
|
-
export * from "./util/ignore";
|
|
1
|
+
export type * from "./context.js";
|
|
2
|
+
export * from "./resource.js";
|
|
3
|
+
export type * from "./scope.js";
|
|
4
|
+
export * from "./secret.js";
|
|
5
|
+
export * from "./state.js";
|
|
6
|
+
export * from "./util/ignore.js";
|
|
7
7
|
|
|
8
|
-
import { alchemy } from "./alchemy";
|
|
8
|
+
import { alchemy } from "./alchemy.js";
|
|
9
9
|
export default alchemy;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type } from "arktype";
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import { Data } from "../../ai/data";
|
|
5
|
-
import { Document } from "../../ai/document";
|
|
6
|
-
import { alchemy } from "../../alchemy";
|
|
7
|
-
import { Folder } from "../../fs/folder";
|
|
4
|
+
import { Data } from "../../ai/data.js";
|
|
5
|
+
import { Document } from "../../ai/document.js";
|
|
6
|
+
import { alchemy } from "../../alchemy.js";
|
|
7
|
+
import { Folder } from "../../fs/folder.js";
|
|
8
8
|
|
|
9
9
|
export interface DocsProps {
|
|
10
10
|
/**
|
package/src/os/exec.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { exec } from "child_process";
|
|
2
|
-
import { promisify } from "util";
|
|
3
|
-
import type { Context } from "../context";
|
|
4
|
-
import { Resource } from "../resource";
|
|
1
|
+
import { exec } from "node:child_process";
|
|
2
|
+
import { promisify } from "node:util";
|
|
3
|
+
import type { Context } from "../context.js";
|
|
4
|
+
import { Resource } from "../resource.js";
|
|
5
5
|
|
|
6
6
|
const execAsync = promisify(exec);
|
|
7
7
|
|
package/src/os/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./exec";
|
|
1
|
+
export * from "./exec.js";
|
package/src/resource.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { apply } from "./apply";
|
|
2
|
-
import type { Context } from "./context";
|
|
3
|
-
import { Scope as _Scope } from "./scope";
|
|
1
|
+
import { apply } from "./apply.js";
|
|
2
|
+
import type { Context } from "./context.js";
|
|
3
|
+
import { Scope as _Scope } from "./scope.js";
|
|
4
4
|
|
|
5
5
|
export const PROVIDERS = new Map<ResourceKind, Provider<string, any>>();
|
|
6
6
|
|
|
@@ -69,7 +69,7 @@ type IsClass = {
|
|
|
69
69
|
type ResourceLifecycleHandler = (
|
|
70
70
|
this: Context<any, any>,
|
|
71
71
|
id: string,
|
|
72
|
-
props: any
|
|
72
|
+
props: any
|
|
73
73
|
) => Promise<Resource<string>>;
|
|
74
74
|
|
|
75
75
|
// see: https://x.com/samgoodwin89/status/1904640134097887653
|
|
@@ -100,7 +100,7 @@ export function Resource<
|
|
|
100
100
|
|
|
101
101
|
const provider = ((
|
|
102
102
|
resourceID: string,
|
|
103
|
-
props: ResourceProps
|
|
103
|
+
props: ResourceProps
|
|
104
104
|
): Promise<Resource<string>> => {
|
|
105
105
|
const scope = _Scope.current;
|
|
106
106
|
|
|
@@ -116,7 +116,7 @@ export function Resource<
|
|
|
116
116
|
if (otherResource?.Kind !== type) {
|
|
117
117
|
scope.fail();
|
|
118
118
|
throw new Error(
|
|
119
|
-
`Resource ${resourceID} already exists in the stack and is of a different type: '${otherResource?.Kind}' !== '${type}'
|
|
119
|
+
`Resource ${resourceID} already exists in the stack and is of a different type: '${otherResource?.Kind}' !== '${type}'`
|
|
120
120
|
);
|
|
121
121
|
}
|
|
122
122
|
// console.warn(
|
package/src/scope.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2
|
-
import { destroy } from "./destroy";
|
|
3
|
-
import { FileSystemStateStore } from "./fs/file-system-state-store";
|
|
4
|
-
import type { PendingResource, ResourceID } from "./resource";
|
|
5
|
-
import type { StateStore, StateStoreType } from "./state";
|
|
2
|
+
import { destroy } from "./destroy.js";
|
|
3
|
+
import { FileSystemStateStore } from "./fs/file-system-state-store.js";
|
|
4
|
+
import type { PendingResource, ResourceID } from "./resource.js";
|
|
5
|
+
import type { StateStore, StateStoreType } from "./state.js";
|
|
6
6
|
|
|
7
7
|
const scopeStorage = new AsyncLocalStorage<Scope>();
|
|
8
8
|
|
package/src/secret.ts
CHANGED
package/src/serde.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { decryptWithKey, encrypt } from "./encrypt";
|
|
2
|
-
import { Scope } from "./scope";
|
|
3
|
-
import { Secret } from "./secret";
|
|
1
|
+
import { decryptWithKey, encrypt } from "./encrypt.js";
|
|
2
|
+
import { Scope } from "./scope.js";
|
|
3
|
+
import { Secret } from "./secret.js";
|
|
4
4
|
|
|
5
5
|
import type { Type } from "arktype";
|
|
6
6
|
|
package/src/state.ts
CHANGED
package/src/stripe/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./price";
|
|
2
|
-
export * from "./product";
|
|
3
|
-
export * from "./webhook";
|
|
1
|
+
export * from "./price.js";
|
|
2
|
+
export * from "./product.js";
|
|
3
|
+
export * from "./webhook.js";
|
package/src/stripe/price.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Stripe from "stripe";
|
|
2
|
-
import type { Context } from "../context";
|
|
3
|
-
import { Resource } from "../resource";
|
|
2
|
+
import type { Context } from "../context.js";
|
|
3
|
+
import { Resource } from "../resource.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Properties for price recurring configuration
|
|
@@ -180,7 +180,7 @@ export const Price = Resource(
|
|
|
180
180
|
async function (
|
|
181
181
|
this: Context<Price>,
|
|
182
182
|
id: string,
|
|
183
|
-
props: PriceProps
|
|
183
|
+
props: PriceProps
|
|
184
184
|
): Promise<Price> {
|
|
185
185
|
// Get Stripe API key from context or environment
|
|
186
186
|
const apiKey = process.env.STRIPE_API_KEY;
|
|
@@ -285,5 +285,5 @@ export const Price = Resource(
|
|
|
285
285
|
throw error;
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
}
|
|
288
|
+
}
|
|
289
289
|
);
|
package/src/stripe/product.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Stripe from "stripe";
|
|
2
|
-
import type { Context } from "../context";
|
|
3
|
-
import { Resource } from "../resource";
|
|
2
|
+
import type { Context } from "../context.js";
|
|
3
|
+
import { Resource } from "../resource.js";
|
|
4
4
|
|
|
5
5
|
type ProductType = Stripe.Product.Type;
|
|
6
6
|
|
|
@@ -142,7 +142,7 @@ export const Product = Resource(
|
|
|
142
142
|
async function (
|
|
143
143
|
this: Context<Product>,
|
|
144
144
|
id: string,
|
|
145
|
-
props: ProductProps
|
|
145
|
+
props: ProductProps
|
|
146
146
|
): Promise<Product> {
|
|
147
147
|
// Get Stripe API key from context or environment
|
|
148
148
|
const apiKey = process.env.STRIPE_API_KEY;
|
|
@@ -222,5 +222,5 @@ export const Product = Resource(
|
|
|
222
222
|
throw error;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
}
|
|
225
|
+
}
|
|
226
226
|
);
|
package/src/stripe/webhook.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Stripe from "stripe";
|
|
2
|
-
import type { Context } from "../context";
|
|
3
|
-
import { Resource } from "../resource";
|
|
2
|
+
import type { Context } from "../context.js";
|
|
3
|
+
import { Resource } from "../resource.js";
|
|
4
4
|
|
|
5
5
|
export type EnabledEvent = Stripe.WebhookEndpointUpdateParams.EnabledEvent;
|
|
6
6
|
|
|
@@ -136,7 +136,7 @@ export const WebhookEndpoint = Resource(
|
|
|
136
136
|
async function (
|
|
137
137
|
this: Context<WebhookEndpoint>,
|
|
138
138
|
id: string,
|
|
139
|
-
props: WebhookEndpointProps
|
|
139
|
+
props: WebhookEndpointProps
|
|
140
140
|
) {
|
|
141
141
|
// Get Stripe API key from context or environment
|
|
142
142
|
const apiKey = process.env.STRIPE_API_KEY;
|
|
@@ -185,7 +185,7 @@ export const WebhookEndpoint = Resource(
|
|
|
185
185
|
if (props.connect !== undefined) {
|
|
186
186
|
// Note: connect is specified at creation time and cannot be updated
|
|
187
187
|
console.log(
|
|
188
|
-
"Note: 'connect' parameter will be applied at creation time only"
|
|
188
|
+
"Note: 'connect' parameter will be applied at creation time only"
|
|
189
189
|
);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
@@ -219,5 +219,5 @@ export const WebhookEndpoint = Resource(
|
|
|
219
219
|
throw error;
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
}
|
|
222
|
+
}
|
|
223
223
|
);
|
package/src/test/bun.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import { afterAll, beforeAll, it } from "bun:test";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import { alchemy } from "../alchemy";
|
|
6
|
-
import { R2RestStateStore } from "../cloudflare/r2-rest-state-store";
|
|
7
|
-
import { Scope } from "../scope";
|
|
8
|
-
import type { StateStoreType } from "../state";
|
|
5
|
+
import { alchemy } from "../alchemy.js";
|
|
6
|
+
import { R2RestStateStore } from "../cloudflare/r2-rest-state-store.js";
|
|
7
|
+
import { Scope } from "../scope.js";
|
|
8
|
+
import type { StateStoreType } from "../state.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Extend the Alchemy interface to include test functionality
|
package/src/test/prune.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { exec } from "child_process";
|
|
2
1
|
import * as esbuild from "esbuild";
|
|
3
2
|
import { glob } from "glob";
|
|
4
|
-
import { spawn } from "node:child_process";
|
|
3
|
+
import { exec, spawn } from "node:child_process";
|
|
5
4
|
import path from "node:path";
|
|
6
|
-
import { promisify } from "util";
|
|
5
|
+
import { promisify } from "node:util";
|
|
7
6
|
|
|
8
7
|
const execAsync = promisify(exec);
|
|
9
8
|
|