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
package/src/index.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export type { AlchemyOptions } from "./alchemy.
|
|
2
|
-
export type * from "./context.
|
|
3
|
-
export * from "./resource.
|
|
4
|
-
export type * from "./scope.
|
|
5
|
-
export * from "./secret.
|
|
6
|
-
export * from "./serde.
|
|
7
|
-
export * from "./state.
|
|
8
|
-
export * from "./type.
|
|
9
|
-
export * from "./util/ignore.
|
|
1
|
+
export type { AlchemyOptions } from "./alchemy.ts";
|
|
2
|
+
export type * from "./context.ts";
|
|
3
|
+
export * from "./resource.ts";
|
|
4
|
+
export type * from "./scope.ts";
|
|
5
|
+
export * from "./secret.ts";
|
|
6
|
+
export * from "./serde.ts";
|
|
7
|
+
export * from "./state.ts";
|
|
8
|
+
export * from "./type.ts";
|
|
9
|
+
export * from "./util/ignore.ts";
|
|
10
10
|
|
|
11
|
-
import { alchemy } from "./alchemy.
|
|
11
|
+
import { alchemy } from "./alchemy.ts";
|
|
12
12
|
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.ts";
|
|
5
|
+
import { Document } from "../../ai/document.ts";
|
|
6
|
+
import { alchemy } from "../../alchemy.ts";
|
|
7
|
+
import { Folder } from "../../fs/folder.ts";
|
|
8
8
|
|
|
9
9
|
function getArg(arg: string) {
|
|
10
10
|
const idx = process.argv.findIndex((a) => a === arg);
|
package/src/neon/api.ts
CHANGED
package/src/neon/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./api-error.
|
|
2
|
-
export * from "./api.
|
|
3
|
-
export * from "./project.
|
|
1
|
+
export * from "./api-error.ts";
|
|
2
|
+
export * from "./api.ts";
|
|
3
|
+
export * from "./project.ts";
|
package/src/neon/project.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { alchemy } from "../alchemy.
|
|
2
|
-
import type { Context } from "../context.
|
|
3
|
-
import { Resource } from "../resource.
|
|
4
|
-
import type { Secret } from "../secret.
|
|
5
|
-
import { handleApiError } from "./api-error.
|
|
6
|
-
import { createNeonApi, type NeonApiOptions } from "./api.
|
|
1
|
+
import { alchemy } from "../alchemy.ts";
|
|
2
|
+
import type { Context } from "../context.ts";
|
|
3
|
+
import { Resource } from "../resource.ts";
|
|
4
|
+
import type { Secret } from "../secret.ts";
|
|
5
|
+
import { handleApiError } from "./api-error.ts";
|
|
6
|
+
import { createNeonApi, type NeonApiOptions } from "./api.ts";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* A Neon region where projects can be provisioned
|
package/src/os/exec.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { spawn, type SpawnOptions } from "node:child_process";
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
import { join } from "node:path";
|
|
4
|
-
import type { Context } from "../context.
|
|
5
|
-
import { Resource } from "../resource.
|
|
4
|
+
import type { Context } from "../context.ts";
|
|
5
|
+
import { Resource } from "../resource.ts";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Properties for executing a shell command
|
package/src/os/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./exec.
|
|
1
|
+
export * from "./exec.ts";
|
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, type Scope } from "./scope.
|
|
1
|
+
import { apply } from "./apply.ts";
|
|
2
|
+
import type { Context } from "./context.ts";
|
|
3
|
+
import { Scope as _Scope, type Scope } from "./scope.ts";
|
|
4
4
|
|
|
5
5
|
export const PROVIDERS: Map<ResourceKind, Provider<string, any>> = new Map<
|
|
6
6
|
ResourceKind,
|
package/src/runtime/bind.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { isPromise } from "node:util/types";
|
|
2
|
-
import type { Binding as CloudflareBinding } from "../cloudflare/bindings.
|
|
3
|
-
import type { Bound as CloudflareBound } from "../cloudflare/bound.
|
|
4
|
-
import { isWorkerStub } from "../cloudflare/worker-stub.
|
|
5
|
-
import { isWorker } from "../cloudflare/worker.
|
|
6
|
-
import { env } from "../env.
|
|
7
|
-
import { ResourceFQN, ResourceScope, type Resource } from "../resource.
|
|
8
|
-
import { isRuntime } from "./global.
|
|
2
|
+
import type { Binding as CloudflareBinding } from "../cloudflare/bindings.ts";
|
|
3
|
+
import type { Bound as CloudflareBound } from "../cloudflare/bound.ts";
|
|
4
|
+
import { isWorkerStub } from "../cloudflare/worker-stub.ts";
|
|
5
|
+
import { isWorker } from "../cloudflare/worker.ts";
|
|
6
|
+
import { env } from "../env.ts";
|
|
7
|
+
import { ResourceFQN, ResourceScope, type Resource } from "../resource.ts";
|
|
8
|
+
import { isRuntime } from "./global.ts";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Get a Resource's Binding from the Environment.
|
package/src/runtime/global.ts
CHANGED
package/src/runtime/state.ts
CHANGED
package/src/scope.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2
|
-
import type { Phase } from "./alchemy.
|
|
3
|
-
import { destroyAll } from "./destroy.
|
|
4
|
-
import { FileSystemStateStore } from "./fs/file-system-state-store.
|
|
5
|
-
import { ResourceID, type PendingResource } from "./resource.
|
|
6
|
-
import type { StateStore, StateStoreType } from "./state.
|
|
2
|
+
import type { Phase } from "./alchemy.ts";
|
|
3
|
+
import { destroyAll } from "./destroy.ts";
|
|
4
|
+
import { FileSystemStateStore } from "./fs/file-system-state-store.ts";
|
|
5
|
+
import { ResourceID, type PendingResource } from "./resource.ts";
|
|
6
|
+
import type { StateStore, StateStoreType } from "./state.ts";
|
|
7
7
|
|
|
8
8
|
export type ScopeOptions = {
|
|
9
9
|
appName?: string;
|
package/src/secret.ts
CHANGED
package/src/sentry/api.ts
CHANGED
package/src/sentry/client-key.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Context } from "../context.
|
|
2
|
-
import { Resource } from "../resource.
|
|
3
|
-
import type { Secret } from "../secret.
|
|
4
|
-
import { SentryApi } from "./api.
|
|
1
|
+
import type { Context } from "../context.ts";
|
|
2
|
+
import { Resource } from "../resource.ts";
|
|
3
|
+
import type { Secret } from "../secret.ts";
|
|
4
|
+
import { SentryApi } from "./api.ts";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Properties for creating or updating a ClientKey
|
package/src/sentry/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./api.
|
|
2
|
-
export * from "./client-key.
|
|
3
|
-
export * from "./project.
|
|
4
|
-
export * from "./team.
|
|
1
|
+
export * from "./api.ts";
|
|
2
|
+
export * from "./client-key.ts";
|
|
3
|
+
export * from "./project.ts";
|
|
4
|
+
export * from "./team.ts";
|
package/src/sentry/project.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Context } from "../context.
|
|
2
|
-
import { Resource } from "../resource.
|
|
3
|
-
import type { Secret } from "../secret.
|
|
4
|
-
import { SentryApi } from "./api.
|
|
1
|
+
import type { Context } from "../context.ts";
|
|
2
|
+
import { Resource } from "../resource.ts";
|
|
3
|
+
import type { Secret } from "../secret.ts";
|
|
4
|
+
import { SentryApi } from "./api.ts";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Properties for creating or updating a Project
|
package/src/sentry/team.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Context } from "../context.
|
|
2
|
-
import { Resource } from "../resource.
|
|
3
|
-
import type { Secret } from "../secret.
|
|
4
|
-
import { SentryApi } from "./api.
|
|
1
|
+
import type { Context } from "../context.ts";
|
|
2
|
+
import { Resource } from "../resource.ts";
|
|
3
|
+
import type { Secret } from "../secret.ts";
|
|
4
|
+
import { SentryApi } from "./api.ts";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Properties for creating or updating a Team
|
package/src/serde.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { decryptWithKey, encrypt } from "./encrypt.
|
|
1
|
+
import { decryptWithKey, encrypt } from "./encrypt.ts";
|
|
2
2
|
import {
|
|
3
3
|
InnerResourceScope,
|
|
4
4
|
ResourceFQN,
|
|
5
5
|
ResourceKind,
|
|
6
6
|
type Resource,
|
|
7
|
-
} from "./resource.
|
|
8
|
-
import { Scope } from "./scope.
|
|
9
|
-
import { Secret } from "./secret.
|
|
7
|
+
} from "./resource.ts";
|
|
8
|
+
import { Scope } from "./scope.ts";
|
|
9
|
+
import { Secret } from "./secret.ts";
|
|
10
10
|
|
|
11
11
|
import type { Type } from "arktype";
|
|
12
12
|
|
package/src/state.ts
CHANGED
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
ResourceSeq,
|
|
7
7
|
type Resource,
|
|
8
8
|
type ResourceProps,
|
|
9
|
-
} from "./resource.
|
|
10
|
-
import { Scope } from "./scope.
|
|
11
|
-
import { deserialize } from "./serde.
|
|
9
|
+
} from "./resource.ts";
|
|
10
|
+
import { Scope } from "./scope.ts";
|
|
11
|
+
import { deserialize } from "./serde.ts";
|
|
12
12
|
|
|
13
13
|
export type State<
|
|
14
14
|
Kind extends string = string,
|
package/src/stripe/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
1
|
+
export * from "./meter.ts";
|
|
2
|
+
export * from "./price.ts";
|
|
3
|
+
export * from "./product.ts";
|
|
4
|
+
export * from "./webhook.ts";
|
package/src/stripe/meter.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.ts";
|
|
3
|
+
import { Resource } from "../resource.ts";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Properties for creating or updating a Stripe Meter.
|
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.ts";
|
|
3
|
+
import { Resource } from "../resource.ts";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Properties for price recurring configuration
|
package/src/stripe/product.ts
CHANGED
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.ts";
|
|
3
|
+
import { Resource } from "../resource.ts";
|
|
4
4
|
|
|
5
5
|
export type EnabledEvent = Stripe.WebhookEndpointUpdateParams.EnabledEvent;
|
|
6
6
|
|
package/src/test/bun.ts
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
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.ts";
|
|
6
|
+
import { R2RestStateStore } from "../cloudflare/r2-rest-state-store.ts";
|
|
7
|
+
import { Scope } from "../scope.ts";
|
|
8
|
+
import type { StateStoreType } from "../state.ts";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Extend the Alchemy interface to include test functionality
|
|
12
12
|
*/
|
|
13
|
-
declare module "../alchemy.
|
|
13
|
+
declare module "../alchemy.ts" {
|
|
14
14
|
interface Alchemy {
|
|
15
15
|
test: typeof test;
|
|
16
16
|
}
|
package/src/upstash/api.ts
CHANGED
package/src/upstash/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./api.
|
|
2
|
-
export * from "./error.
|
|
3
|
-
export * from "./redis.
|
|
1
|
+
export * from "./api.ts";
|
|
2
|
+
export * from "./error.ts";
|
|
3
|
+
export * from "./redis.ts";
|
package/src/upstash/redis.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { alchemy } from "../alchemy.
|
|
2
|
-
import type { Context } from "../context.
|
|
3
|
-
import { Resource } from "../resource.
|
|
4
|
-
import type { Secret } from "../secret.
|
|
5
|
-
import { UpstashApi } from "./api.
|
|
6
|
-
import { UpstashError } from "./error.
|
|
1
|
+
import { alchemy } from "../alchemy.ts";
|
|
2
|
+
import type { Context } from "../context.ts";
|
|
3
|
+
import { Resource } from "../resource.ts";
|
|
4
|
+
import type { Secret } from "../secret.ts";
|
|
5
|
+
import { UpstashApi } from "./api.ts";
|
|
6
|
+
import { UpstashError } from "./error.ts";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Available regions for Upstash Redis databases
|
package/src/vercel/api.ts
CHANGED
package/src/vercel/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./api.
|
|
2
|
-
export * from "./project-domain.
|
|
3
|
-
export * from "./project.
|
|
1
|
+
export * from "./api.ts";
|
|
2
|
+
export * from "./project-domain.ts";
|
|
3
|
+
export * from "./project.ts";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Context } from "../context.
|
|
2
|
-
import { Resource } from "../resource.
|
|
3
|
-
import type { Secret } from "../secret.
|
|
4
|
-
import { createVercelApi } from "./api.
|
|
1
|
+
import type { Context } from "../context.ts";
|
|
2
|
+
import { Resource } from "../resource.ts";
|
|
3
|
+
import type { Secret } from "../secret.ts";
|
|
4
|
+
import { createVercelApi } from "./api.ts";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Properties for creating or updating a ProjectDomain
|
package/src/vercel/project.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Context } from "../context.
|
|
2
|
-
import { Resource } from "../resource.
|
|
3
|
-
import { isSecret, type Secret } from "../secret.
|
|
4
|
-
import { createVercelApi, type VercelApi } from "./api.
|
|
1
|
+
import type { Context } from "../context.ts";
|
|
2
|
+
import { Resource } from "../resource.ts";
|
|
3
|
+
import { isSecret, type Secret } from "../secret.ts";
|
|
4
|
+
import { createVercelApi, type VercelApi } from "./api.ts";
|
|
5
5
|
|
|
6
6
|
type TargetEnvironment = "production" | "preview" | "development";
|
|
7
7
|
|
package/src/web/astro.ts
CHANGED
|
@@ -2,13 +2,13 @@ import { exec } from "node:child_process";
|
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { promisify } from "node:util";
|
|
5
|
-
import type { Context } from "../context.
|
|
6
|
-
import { Folder } from "../fs/folder.
|
|
7
|
-
import { StaticJsonFile } from "../fs/static-json-file.
|
|
8
|
-
import { StaticTextFile } from "../fs/static-text-file.
|
|
9
|
-
import { StaticTypeScriptFile } from "../fs/static-typescript-file.
|
|
10
|
-
import { Resource } from "../resource.
|
|
11
|
-
import { ShadcnUI } from "./shadcn.
|
|
5
|
+
import type { Context } from "../context.ts";
|
|
6
|
+
import { Folder } from "../fs/folder.ts";
|
|
7
|
+
import { StaticJsonFile } from "../fs/static-json-file.ts";
|
|
8
|
+
import { StaticTextFile } from "../fs/static-text-file.ts";
|
|
9
|
+
import { StaticTypeScriptFile } from "../fs/static-typescript-file.ts";
|
|
10
|
+
import { Resource } from "../resource.ts";
|
|
11
|
+
import { ShadcnUI } from "./shadcn.ts";
|
|
12
12
|
|
|
13
13
|
const execAsync = promisify(exec);
|
|
14
14
|
|
|
@@ -2,9 +2,9 @@ import { exec } from "node:child_process";
|
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { promisify } from "node:util";
|
|
5
|
-
import type { Context } from "../context.
|
|
6
|
-
import { Resource } from "../resource.
|
|
7
|
-
import { ignore } from "../util/ignore.
|
|
5
|
+
import type { Context } from "../context.ts";
|
|
6
|
+
import { Resource } from "../resource.ts";
|
|
7
|
+
import { ignore } from "../util/ignore.ts";
|
|
8
8
|
|
|
9
9
|
const execAsync = promisify(exec);
|
|
10
10
|
|
package/src/web/shadcn.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { exec } from "node:child_process";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
|
-
import type { Context } from "../context.
|
|
5
|
-
import { Folder } from "../fs/folder.
|
|
6
|
-
import { StaticJsonFile } from "../fs/static-json-file.
|
|
7
|
-
import { StaticTypeScriptFile } from "../fs/static-typescript-file.
|
|
8
|
-
import { Resource } from "../resource.
|
|
9
|
-
import { ShadcnComponent } from "./shadcn-component.
|
|
4
|
+
import type { Context } from "../context.ts";
|
|
5
|
+
import { Folder } from "../fs/folder.ts";
|
|
6
|
+
import { StaticJsonFile } from "../fs/static-json-file.ts";
|
|
7
|
+
import { StaticTypeScriptFile } from "../fs/static-typescript-file.ts";
|
|
8
|
+
import { Resource } from "../resource.ts";
|
|
9
|
+
import { ShadcnComponent } from "./shadcn-component.ts";
|
|
10
10
|
|
|
11
11
|
const execAsync = promisify(exec);
|
|
12
12
|
|
package/src/web/tailwind.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { exec } from "node:child_process";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
|
-
import type { Context } from "../context.
|
|
5
|
-
import { Folder } from "../fs/folder.
|
|
6
|
-
import { StaticTextFile } from "../fs/static-text-file.
|
|
7
|
-
import { Resource } from "../resource.
|
|
4
|
+
import type { Context } from "../context.ts";
|
|
5
|
+
import { Folder } from "../fs/folder.ts";
|
|
6
|
+
import { StaticTextFile } from "../fs/static-text-file.ts";
|
|
7
|
+
import { Resource } from "../resource.ts";
|
|
8
8
|
|
|
9
9
|
const execAsync = promisify(exec);
|
|
10
10
|
|
package/src/web/vite.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { exec } from "node:child_process";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
|
-
import type { Context } from "../context.
|
|
5
|
-
import { Folder } from "../fs/folder.
|
|
6
|
-
import { StaticJsonFile } from "../fs/static-json-file.
|
|
7
|
-
import { StaticTypeScriptFile } from "../fs/static-typescript-file.
|
|
8
|
-
import { Resource } from "../resource.
|
|
9
|
-
import { rm } from "../util/rm.
|
|
10
|
-
import { ShadcnComponent } from "./shadcn-component.
|
|
11
|
-
import { TailwindConfig } from "./tailwind.
|
|
4
|
+
import type { Context } from "../context.ts";
|
|
5
|
+
import { Folder } from "../fs/folder.ts";
|
|
6
|
+
import { StaticJsonFile } from "../fs/static-json-file.ts";
|
|
7
|
+
import { StaticTypeScriptFile } from "../fs/static-typescript-file.ts";
|
|
8
|
+
import { Resource } from "../resource.ts";
|
|
9
|
+
import { rm } from "../util/rm.ts";
|
|
10
|
+
import { ShadcnComponent } from "./shadcn-component.ts";
|
|
11
|
+
import { TailwindConfig } from "./tailwind.ts";
|
|
12
12
|
|
|
13
13
|
const execAsync = promisify(exec);
|
|
14
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import type { DefaultTheme, HeadConfig, ThemeOptions } from "vitepress";
|
|
3
|
-
import { StaticTypeScriptFile } from "../../fs/static-typescript-file.
|
|
3
|
+
import { StaticTypeScriptFile } from "../../fs/static-typescript-file.ts";
|
|
4
4
|
|
|
5
5
|
export type VitePressConfigProps = {
|
|
6
6
|
cwd: string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { type } from "arktype";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import type { ModelConfig } from "../../ai/client.
|
|
4
|
-
import { CSSFile } from "../../ai/css-file.
|
|
5
|
-
import { Data } from "../../ai/data.
|
|
6
|
-
import { TypeScriptFile } from "../../ai/typescript-file.
|
|
7
|
-
import { VueFile } from "../../ai/vue-file.
|
|
8
|
-
import { alchemy } from "../../alchemy.
|
|
9
|
-
import type { Context } from "../../context.
|
|
10
|
-
import { Folder } from "../../fs/folder.
|
|
11
|
-
import { Resource } from "../../resource.
|
|
12
|
-
import type { Secret } from "../../secret.
|
|
3
|
+
import type { ModelConfig } from "../../ai/client.ts";
|
|
4
|
+
import { CSSFile } from "../../ai/css-file.ts";
|
|
5
|
+
import { Data } from "../../ai/data.ts";
|
|
6
|
+
import { TypeScriptFile } from "../../ai/typescript-file.ts";
|
|
7
|
+
import { VueFile } from "../../ai/vue-file.ts";
|
|
8
|
+
import { alchemy } from "../../alchemy.ts";
|
|
9
|
+
import type { Context } from "../../context.ts";
|
|
10
|
+
import { Folder } from "../../fs/folder.ts";
|
|
11
|
+
import { Resource } from "../../resource.ts";
|
|
12
|
+
import type { Secret } from "../../secret.ts";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Theme component props for customizing the layout
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { exec } from "node:child_process";
|
|
2
2
|
import { promisify } from "node:util";
|
|
3
|
-
import type { Context } from "../../context.
|
|
4
|
-
import { Resource } from "../../resource.
|
|
3
|
+
import type { Context } from "../../context.ts";
|
|
4
|
+
import { Resource } from "../../resource.ts";
|
|
5
5
|
|
|
6
6
|
const execAsync = promisify(exec);
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import yaml from "yaml";
|
|
2
|
-
import { Document } from "../../ai/document.
|
|
3
|
-
import { alchemy } from "../../alchemy.
|
|
4
|
-
import { StaticTextFile } from "../../fs/static-text-file.
|
|
5
|
-
import type { Secret } from "../../secret.
|
|
2
|
+
import { Document } from "../../ai/document.ts";
|
|
3
|
+
import { alchemy } from "../../alchemy.ts";
|
|
4
|
+
import { StaticTextFile } from "../../fs/static-text-file.ts";
|
|
5
|
+
import type { Secret } from "../../secret.ts";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Image that can be themed for light/dark mode
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./config.
|
|
2
|
-
export * from "./custom-theme.
|
|
3
|
-
export * from "./home-page.
|
|
4
|
-
export * from "./process-front-matter-files.
|
|
5
|
-
export * from "./vitepress.
|
|
1
|
+
export * from "./config.ts";
|
|
2
|
+
export * from "./custom-theme.ts";
|
|
3
|
+
export * from "./home-page.ts";
|
|
4
|
+
export * from "./process-front-matter-files.ts";
|
|
5
|
+
export * from "./vitepress.ts";
|
|
@@ -2,13 +2,13 @@ import { exec } from "node:child_process";
|
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { promisify } from "node:util";
|
|
5
|
-
import type { Context } from "../../context.
|
|
6
|
-
import { Folder } from "../../fs/folder.
|
|
7
|
-
import { StaticJsonFile } from "../../fs/static-json-file.
|
|
8
|
-
import { StaticTextFile } from "../../fs/static-text-file.
|
|
9
|
-
import { StaticTypeScriptFile } from "../../fs/static-typescript-file.
|
|
10
|
-
import { Resource } from "../../resource.
|
|
11
|
-
import { InstallDependencies, fixedDependencies } from "./dependencies.
|
|
5
|
+
import type { Context } from "../../context.ts";
|
|
6
|
+
import { Folder } from "../../fs/folder.ts";
|
|
7
|
+
import { StaticJsonFile } from "../../fs/static-json-file.ts";
|
|
8
|
+
import { StaticTextFile } from "../../fs/static-text-file.ts";
|
|
9
|
+
import { StaticTypeScriptFile } from "../../fs/static-typescript-file.ts";
|
|
10
|
+
import { Resource } from "../../resource.ts";
|
|
11
|
+
import { InstallDependencies, fixedDependencies } from "./dependencies.ts";
|
|
12
12
|
|
|
13
13
|
const _execAsync = promisify(exec);
|
|
14
14
|
|
package/lib/runtime/shims.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shims.d.ts","sourceRoot":"","sources":["../../src/runtime/shims.js"],"names":[],"mappings":"AAOA,kCAAmC,IAAI,CAAC;AAExC,+CAEE;;IAGA,oCAiBC"}
|