@supatype/cli 0.8.0 → 0.9.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/CHANGELOG.md +415 -0
- package/bin/supatype.js +16 -1
- package/dist/after-hooks-health.d.ts +19 -0
- package/dist/after-hooks-health.d.ts.map +1 -0
- package/dist/after-hooks-health.js +69 -0
- package/dist/after-hooks-health.js.map +1 -0
- package/dist/app/proxy-dev-app.d.ts +13 -3
- package/dist/app/proxy-dev-app.d.ts.map +1 -1
- package/dist/app/proxy-dev-app.js +58 -62
- package/dist/app/proxy-dev-app.js.map +1 -1
- package/dist/app-vite-env.d.ts +5 -1
- package/dist/app-vite-env.d.ts.map +1 -1
- package/dist/app-vite-env.js +9 -15
- package/dist/app-vite-env.js.map +1 -1
- package/dist/augmentation-generator.d.ts +5 -0
- package/dist/augmentation-generator.d.ts.map +1 -1
- package/dist/augmentation-generator.js +13 -4
- package/dist/augmentation-generator.js.map +1 -1
- package/dist/auth-providers.d.ts +5 -4
- package/dist/auth-providers.d.ts.map +1 -1
- package/dist/auth-providers.js +3 -12
- package/dist/auth-providers.js.map +1 -1
- package/dist/binary-cache.d.ts +2 -1
- package/dist/binary-cache.d.ts.map +1 -1
- package/dist/binary-cache.js +2 -4
- package/dist/binary-cache.js.map +1 -1
- package/dist/build-spawn.d.ts +35 -0
- package/dist/build-spawn.d.ts.map +1 -0
- package/dist/build-spawn.js +75 -0
- package/dist/build-spawn.js.map +1 -0
- package/dist/byte-size.d.ts +9 -0
- package/dist/byte-size.d.ts.map +1 -0
- package/dist/byte-size.js +36 -0
- package/dist/byte-size.js.map +1 -0
- package/dist/cache-clean.d.ts +0 -2
- package/dist/cache-clean.d.ts.map +1 -1
- package/dist/cache-clean.js +1 -27
- package/dist/cache-clean.js.map +1 -1
- package/dist/cache-pins.d.ts.map +1 -1
- package/dist/cache-pins.js +1 -18
- package/dist/cache-pins.js.map +1 -1
- package/dist/cache-root.d.ts +7 -0
- package/dist/cache-root.d.ts.map +1 -0
- package/dist/cache-root.js +11 -0
- package/dist/cache-root.js.map +1 -0
- package/dist/cli-artifacts.d.ts.map +1 -1
- package/dist/cli-artifacts.js +2 -1
- package/dist/cli-artifacts.js.map +1 -1
- package/dist/cli-install-method.d.ts.map +1 -1
- package/dist/cli-install-method.js +7 -1
- package/dist/cli-install-method.js.map +1 -1
- package/dist/cli-launcher.d.ts +21 -0
- package/dist/cli-launcher.d.ts.map +1 -0
- package/dist/cli-launcher.js +112 -0
- package/dist/cli-launcher.js.map +1 -0
- package/dist/cli-old-versions.d.ts +44 -0
- package/dist/cli-old-versions.d.ts.map +1 -0
- package/dist/cli-old-versions.js +83 -0
- package/dist/cli-old-versions.js.map +1 -0
- package/dist/cli-program-path.d.ts +20 -0
- package/dist/cli-program-path.d.ts.map +1 -0
- package/dist/cli-program-path.js +41 -0
- package/dist/cli-program-path.js.map +1 -0
- package/dist/cli-standalone.d.ts +2 -3
- package/dist/cli-standalone.d.ts.map +1 -1
- package/dist/cli-standalone.js +51 -24
- package/dist/cli-standalone.js.map +1 -1
- package/dist/cli-version-embedded.js +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +4 -0
- package/dist/cli.js.map +1 -1
- package/dist/cloud-credentials.d.ts.map +1 -1
- package/dist/cloud-credentials.js +3 -1
- package/dist/cloud-credentials.js.map +1 -1
- package/dist/commands/admin.d.ts.map +1 -1
- package/dist/commands/admin.js +6 -4
- package/dist/commands/admin.js.map +1 -1
- package/dist/commands/adopt.js +1 -1
- package/dist/commands/adopt.js.map +1 -1
- package/dist/commands/build.d.ts +29 -0
- package/dist/commands/build.d.ts.map +1 -0
- package/dist/commands/build.js +69 -0
- package/dist/commands/build.js.map +1 -0
- package/dist/commands/cache.d.ts.map +1 -1
- package/dist/commands/cache.js +37 -7
- package/dist/commands/cache.js.map +1 -1
- package/dist/commands/db.d.ts.map +1 -1
- package/dist/commands/db.js +46 -23
- package/dist/commands/db.js.map +1 -1
- package/dist/commands/deploy.d.ts +14 -0
- package/dist/commands/deploy.d.ts.map +1 -1
- package/dist/commands/deploy.js +68 -53
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +36 -19
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/diff.d.ts +3 -0
- package/dist/commands/diff.d.ts.map +1 -1
- package/dist/commands/diff.js +28 -34
- package/dist/commands/diff.js.map +1 -1
- package/dist/commands/doctor.d.ts +32 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +67 -2
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/functions.d.ts.map +1 -1
- package/dist/commands/functions.js +21 -16
- package/dist/commands/functions.js.map +1 -1
- package/dist/commands/hooks.d.ts.map +1 -1
- package/dist/commands/hooks.js +23 -15
- package/dist/commands/hooks.js.map +1 -1
- package/dist/commands/init.d.ts +33 -7
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +432 -333
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/internal.d.ts.map +1 -1
- package/dist/commands/internal.js +27 -7
- package/dist/commands/internal.js.map +1 -1
- package/dist/commands/introspect.d.ts.map +1 -1
- package/dist/commands/introspect.js +3 -0
- package/dist/commands/introspect.js.map +1 -1
- package/dist/commands/keys-print.d.ts +20 -0
- package/dist/commands/keys-print.d.ts.map +1 -0
- package/dist/commands/keys-print.js +47 -0
- package/dist/commands/keys-print.js.map +1 -0
- package/dist/commands/keys.d.ts +10 -10
- package/dist/commands/keys.d.ts.map +1 -1
- package/dist/commands/keys.js +47 -43
- package/dist/commands/keys.js.map +1 -1
- package/dist/commands/link-helpers.d.ts.map +1 -1
- package/dist/commands/link-helpers.js +27 -7
- package/dist/commands/link-helpers.js.map +1 -1
- package/dist/commands/migrate.d.ts +5 -2
- package/dist/commands/migrate.d.ts.map +1 -1
- package/dist/commands/migrate.js +34 -36
- package/dist/commands/migrate.js.map +1 -1
- package/dist/commands/pull.d.ts.map +1 -1
- package/dist/commands/pull.js +6 -5
- package/dist/commands/pull.js.map +1 -1
- package/dist/commands/push.d.ts +2 -0
- package/dist/commands/push.d.ts.map +1 -1
- package/dist/commands/push.js +64 -26
- package/dist/commands/push.js.map +1 -1
- package/dist/commands/rename.js +1 -1
- package/dist/commands/rename.js.map +1 -1
- package/dist/commands/seed.d.ts +2 -11
- package/dist/commands/seed.d.ts.map +1 -1
- package/dist/commands/seed.js +11 -38
- package/dist/commands/seed.js.map +1 -1
- package/dist/commands/self-host.d.ts.map +1 -1
- package/dist/commands/self-host.js +88 -29
- package/dist/commands/self-host.js.map +1 -1
- package/dist/commands/self-update.d.ts.map +1 -1
- package/dist/commands/self-update.js +9 -3
- package/dist/commands/self-update.js.map +1 -1
- package/dist/commands/sso.d.ts +26 -0
- package/dist/commands/sso.d.ts.map +1 -0
- package/dist/commands/sso.js +362 -0
- package/dist/commands/sso.js.map +1 -0
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +25 -8
- package/dist/commands/status.js.map +1 -1
- package/dist/component-launch.d.ts.map +1 -1
- package/dist/component-launch.js +2 -1
- package/dist/component-launch.js.map +1 -1
- package/dist/compose-db-roles.d.ts +4 -4
- package/dist/compose-db-roles.d.ts.map +1 -1
- package/dist/compose-db-roles.js +11 -10
- package/dist/compose-db-roles.js.map +1 -1
- package/dist/compose-engine-run.d.ts +9 -2
- package/dist/compose-engine-run.d.ts.map +1 -1
- package/dist/compose-engine-run.js +30 -13
- package/dist/compose-engine-run.js.map +1 -1
- package/dist/compose-kong.d.ts +4 -0
- package/dist/compose-kong.d.ts.map +1 -1
- package/dist/compose-kong.js +13 -3
- package/dist/compose-kong.js.map +1 -1
- package/dist/compose-services.d.ts +18 -0
- package/dist/compose-services.d.ts.map +1 -1
- package/dist/compose-services.js +47 -22
- package/dist/compose-services.js.map +1 -1
- package/dist/config-mailer-env.d.ts +27 -0
- package/dist/config-mailer-env.d.ts.map +1 -0
- package/dist/config-mailer-env.js +47 -0
- package/dist/config-mailer-env.js.map +1 -0
- package/dist/config.d.ts +9 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +18 -3
- package/dist/config.js.map +1 -1
- package/dist/database-url-owner.d.ts +5 -3
- package/dist/database-url-owner.d.ts.map +1 -1
- package/dist/database-url-owner.js +7 -4
- package/dist/database-url-owner.js.map +1 -1
- package/dist/db-port.d.ts +2 -0
- package/dist/db-port.d.ts.map +1 -1
- package/dist/db-port.js +1 -1
- package/dist/db-port.js.map +1 -1
- package/dist/db-preflight.d.ts +32 -3
- package/dist/db-preflight.d.ts.map +1 -1
- package/dist/db-preflight.js +211 -86
- package/dist/db-preflight.js.map +1 -1
- package/dist/db-rows.d.ts +3 -2
- package/dist/db-rows.d.ts.map +1 -1
- package/dist/db-rows.js +19 -4
- package/dist/db-rows.js.map +1 -1
- package/dist/dev-compose.d.ts +65 -5
- package/dist/dev-compose.d.ts.map +1 -1
- package/dist/dev-compose.js +262 -155
- package/dist/dev-compose.js.map +1 -1
- package/dist/dev-log-bus.d.ts +8 -0
- package/dist/dev-log-bus.d.ts.map +1 -1
- package/dist/dev-log-bus.js +13 -0
- package/dist/dev-log-bus.js.map +1 -1
- package/dist/dev-ports.d.ts +11 -4
- package/dist/dev-ports.d.ts.map +1 -1
- package/dist/dev-ports.js +87 -49
- package/dist/dev-ports.js.map +1 -1
- package/dist/dev-schema-watch.d.ts +8 -2
- package/dist/dev-schema-watch.d.ts.map +1 -1
- package/dist/dev-schema-watch.js +24 -13
- package/dist/dev-schema-watch.js.map +1 -1
- package/dist/dev-session.d.ts +27 -1
- package/dist/dev-session.d.ts.map +1 -1
- package/dist/dev-session.js +44 -4
- package/dist/dev-session.js.map +1 -1
- package/dist/dev-shutdown.d.ts.map +1 -1
- package/dist/dev-shutdown.js +19 -3
- package/dist/dev-shutdown.js.map +1 -1
- package/dist/diff-access.d.ts +10 -0
- package/dist/diff-access.d.ts.map +1 -0
- package/dist/diff-access.js +69 -0
- package/dist/diff-access.js.map +1 -0
- package/dist/diff-output.d.ts +7 -1
- package/dist/diff-output.d.ts.map +1 -1
- package/dist/diff-output.js +93 -3
- package/dist/diff-output.js.map +1 -1
- package/dist/docker-exec.d.ts.map +1 -1
- package/dist/docker-exec.js +4 -4
- package/dist/docker-exec.js.map +1 -1
- package/dist/docker-runtime.d.ts +10 -2
- package/dist/docker-runtime.d.ts.map +1 -1
- package/dist/docker-runtime.js +70 -23
- package/dist/docker-runtime.js.map +1 -1
- package/dist/engine-answers.d.ts +2 -1
- package/dist/engine-answers.d.ts.map +1 -1
- package/dist/engine-answers.js +11 -0
- package/dist/engine-answers.js.map +1 -1
- package/dist/engine-client.d.ts +20 -0
- package/dist/engine-client.d.ts.map +1 -1
- package/dist/engine-client.js +12 -8
- package/dist/engine-client.js.map +1 -1
- package/dist/engine-floor.d.ts +3 -2
- package/dist/engine-floor.d.ts.map +1 -1
- package/dist/engine-floor.js +2 -2
- package/dist/engine-floor.js.map +1 -1
- package/dist/engine-ownership-gate.d.ts +3 -1
- package/dist/engine-ownership-gate.d.ts.map +1 -1
- package/dist/engine-ownership-gate.js +5 -0
- package/dist/engine-ownership-gate.js.map +1 -1
- package/dist/engine-push-output.d.ts +8 -1
- package/dist/engine-push-output.d.ts.map +1 -1
- package/dist/engine-push-output.js +8 -1
- package/dist/engine-push-output.js.map +1 -1
- package/dist/env-file.d.ts +9 -2
- package/dist/env-file.d.ts.map +1 -1
- package/dist/env-file.js +56 -38
- package/dist/env-file.js.map +1 -1
- package/dist/env-lines.d.ts +3 -2
- package/dist/env-lines.d.ts.map +1 -1
- package/dist/env-lines.js +5 -2
- package/dist/env-lines.js.map +1 -1
- package/dist/env-value.d.ts +15 -0
- package/dist/env-value.d.ts.map +1 -0
- package/dist/env-value.js +34 -0
- package/dist/env-value.js.map +1 -0
- package/dist/error-message.d.ts +20 -0
- package/dist/error-message.d.ts.map +1 -1
- package/dist/error-message.js +42 -0
- package/dist/error-message.js.map +1 -1
- package/dist/frontend-env.d.ts +51 -0
- package/dist/frontend-env.d.ts.map +1 -0
- package/dist/frontend-env.js +101 -0
- package/dist/frontend-env.js.map +1 -0
- package/dist/frontend-values-linked.d.ts +22 -0
- package/dist/frontend-values-linked.d.ts.map +1 -0
- package/dist/frontend-values-linked.js +143 -0
- package/dist/frontend-values-linked.js.map +1 -0
- package/dist/frontend-values.d.ts +90 -0
- package/dist/frontend-values.d.ts.map +1 -0
- package/dist/frontend-values.js +208 -0
- package/dist/frontend-values.js.map +1 -0
- package/dist/functions-env-local.d.ts +13 -0
- package/dist/functions-env-local.d.ts.map +1 -0
- package/dist/functions-env-local.js +20 -0
- package/dist/functions-env-local.js.map +1 -0
- package/dist/generated/release-images.d.ts +4 -4
- package/dist/generated/release-images.js +2 -2
- package/dist/generated/release-images.js.map +1 -1
- package/dist/generated/typescript-libs.d.ts +4 -0
- package/dist/generated/typescript-libs.d.ts.map +1 -0
- package/dist/generated/typescript-libs.js +64 -0
- package/dist/generated/typescript-libs.js.map +1 -0
- package/dist/hook-actor.d.ts +17 -0
- package/dist/hook-actor.d.ts.map +1 -0
- package/dist/hook-actor.js +37 -0
- package/dist/hook-actor.js.map +1 -0
- package/dist/hook-columns.d.ts +30 -0
- package/dist/hook-columns.d.ts.map +1 -0
- package/dist/hook-columns.js +77 -0
- package/dist/hook-columns.js.map +1 -0
- package/dist/hook-events.d.ts +11 -0
- package/dist/hook-events.d.ts.map +1 -0
- package/dist/hook-events.js +11 -0
- package/dist/hook-events.js.map +1 -0
- package/dist/hooks-generator.d.ts.map +1 -1
- package/dist/hooks-generator.js +87 -21
- package/dist/hooks-generator.js.map +1 -1
- package/dist/host-database.d.ts +10 -10
- package/dist/host-database.d.ts.map +1 -1
- package/dist/host-database.js +18 -15
- package/dist/host-database.js.map +1 -1
- package/dist/init-answers.d.ts +18 -0
- package/dist/init-answers.d.ts.map +1 -0
- package/dist/init-answers.js +46 -0
- package/dist/init-answers.js.map +1 -0
- package/dist/init-dependency-versions.d.ts.map +1 -1
- package/dist/init-dependency-versions.js +11 -1
- package/dist/init-dependency-versions.js.map +1 -1
- package/dist/init-next-runtime-env.d.ts +30 -0
- package/dist/init-next-runtime-env.d.ts.map +1 -0
- package/dist/init-next-runtime-env.js +180 -0
- package/dist/init-next-runtime-env.js.map +1 -0
- package/dist/init-package-json.d.ts +38 -1
- package/dist/init-package-json.d.ts.map +1 -1
- package/dist/init-package-json.js +150 -39
- package/dist/init-package-json.js.map +1 -1
- package/dist/jwt.d.ts +5 -0
- package/dist/jwt.d.ts.map +1 -1
- package/dist/jwt.js +16 -0
- package/dist/jwt.js.map +1 -1
- package/dist/local-secrets.d.ts +22 -0
- package/dist/local-secrets.d.ts.map +1 -1
- package/dist/local-secrets.js +36 -0
- package/dist/local-secrets.js.map +1 -1
- package/dist/local-stack-guard.d.ts +37 -0
- package/dist/local-stack-guard.d.ts.map +1 -0
- package/dist/local-stack-guard.js +84 -0
- package/dist/local-stack-guard.js.map +1 -0
- package/dist/mailer-env.d.ts +4 -0
- package/dist/mailer-env.d.ts.map +1 -1
- package/dist/mailer-env.js +12 -1
- package/dist/mailer-env.js.map +1 -1
- package/dist/model-hooks.d.ts +5 -1
- package/dist/model-hooks.d.ts.map +1 -1
- package/dist/model-hooks.js +12 -2
- package/dist/model-hooks.js.map +1 -1
- package/dist/node-executable.d.ts +6 -0
- package/dist/node-executable.d.ts.map +1 -0
- package/dist/node-executable.js +43 -0
- package/dist/node-executable.js.map +1 -0
- package/dist/parent-watch.d.ts +8 -3
- package/dist/parent-watch.d.ts.map +1 -1
- package/dist/parent-watch.js +8 -3
- package/dist/parent-watch.js.map +1 -1
- package/dist/postgres-ctl.d.ts +2 -0
- package/dist/postgres-ctl.d.ts.map +1 -1
- package/dist/postgres-ctl.js +11 -5
- package/dist/postgres-ctl.js.map +1 -1
- package/dist/process-manager.d.ts +37 -5
- package/dist/process-manager.d.ts.map +1 -1
- package/dist/process-manager.js +127 -65
- package/dist/process-manager.js.map +1 -1
- package/dist/project-config.d.ts +31 -0
- package/dist/project-config.d.ts.map +1 -1
- package/dist/project-config.js +24 -0
- package/dist/project-config.js.map +1 -1
- package/dist/push-audit.d.ts +4 -1
- package/dist/push-audit.d.ts.map +1 -1
- package/dist/push-audit.js +33 -4
- package/dist/push-audit.js.map +1 -1
- package/dist/recorded-field-masking-tier.d.ts +2 -2
- package/dist/recorded-field-masking-tier.d.ts.map +1 -1
- package/dist/recorded-field-masking-tier.js +6 -6
- package/dist/recorded-field-masking-tier.js.map +1 -1
- package/dist/rename-journal.d.ts +1 -1
- package/dist/rename-journal.d.ts.map +1 -1
- package/dist/resolve-api-url.d.ts +2 -0
- package/dist/resolve-api-url.d.ts.map +1 -1
- package/dist/resolve-api-url.js +5 -1
- package/dist/resolve-api-url.js.map +1 -1
- package/dist/resolve-target.d.ts +18 -1
- package/dist/resolve-target.d.ts.map +1 -1
- package/dist/resolve-target.js +28 -16
- package/dist/resolve-target.js.map +1 -1
- package/dist/run-captured.d.ts +31 -0
- package/dist/run-captured.d.ts.map +1 -0
- package/dist/run-captured.js +36 -0
- package/dist/run-captured.js.map +1 -0
- package/dist/saml-config.d.ts +53 -0
- package/dist/saml-config.d.ts.map +1 -0
- package/dist/saml-config.js +177 -0
- package/dist/saml-config.js.map +1 -0
- package/dist/saml-key-rotation.d.ts +5 -0
- package/dist/saml-key-rotation.d.ts.map +1 -0
- package/dist/saml-key-rotation.js +26 -0
- package/dist/saml-key-rotation.js.map +1 -0
- package/dist/saml-sp-certificate.d.ts +15 -0
- package/dist/saml-sp-certificate.d.ts.map +1 -0
- package/dist/saml-sp-certificate.js +34 -0
- package/dist/saml-sp-certificate.js.map +1 -0
- package/dist/schema-reset.d.ts +41 -0
- package/dist/schema-reset.d.ts.map +1 -0
- package/dist/schema-reset.js +98 -0
- package/dist/schema-reset.js.map +1 -0
- package/dist/seed-child.d.ts +25 -0
- package/dist/seed-child.d.ts.map +1 -0
- package/dist/seed-child.js +61 -0
- package/dist/seed-child.js.map +1 -0
- package/dist/seed-runner.d.ts +3 -5
- package/dist/seed-runner.d.ts.map +1 -1
- package/dist/seed-runner.js +20 -42
- package/dist/seed-runner.js.map +1 -1
- package/dist/self-host-compose.d.ts +25 -4
- package/dist/self-host-compose.d.ts.map +1 -1
- package/dist/self-host-compose.js +108 -23
- package/dist/self-host-compose.js.map +1 -1
- package/dist/serial-runs.d.ts +7 -0
- package/dist/serial-runs.d.ts.map +1 -0
- package/dist/serial-runs.js +29 -0
- package/dist/serial-runs.js.map +1 -0
- package/dist/shell-ports.d.ts.map +1 -1
- package/dist/shell-ports.js +2 -8
- package/dist/shell-ports.js.map +1 -1
- package/dist/sso-admin.d.ts +114 -0
- package/dist/sso-admin.d.ts.map +1 -0
- package/dist/sso-admin.js +256 -0
- package/dist/sso-admin.js.map +1 -0
- package/dist/stack-engine.d.ts +28 -0
- package/dist/stack-engine.d.ts.map +1 -0
- package/dist/stack-engine.js +59 -0
- package/dist/stack-engine.js.map +1 -0
- package/dist/stack-exit-watch.d.ts +37 -0
- package/dist/stack-exit-watch.d.ts.map +1 -0
- package/dist/stack-exit-watch.js +70 -0
- package/dist/stack-exit-watch.js.map +1 -0
- package/dist/stack-setting-warnings.d.ts +8 -0
- package/dist/stack-setting-warnings.d.ts.map +1 -0
- package/dist/stack-setting-warnings.js +14 -0
- package/dist/stack-setting-warnings.js.map +1 -0
- package/dist/studio-dev-server.d.ts.map +1 -1
- package/dist/studio-dev-server.js +2 -1
- package/dist/studio-dev-server.js.map +1 -1
- package/dist/target-client.d.ts +12 -2
- package/dist/target-client.d.ts.map +1 -1
- package/dist/target-client.js +14 -1
- package/dist/target-client.js.map +1 -1
- package/dist/tsx-runner.d.ts +5 -0
- package/dist/tsx-runner.d.ts.map +1 -1
- package/dist/tsx-runner.js +18 -17
- package/dist/tsx-runner.js.map +1 -1
- package/dist/type-extractor.d.ts.map +1 -1
- package/dist/type-extractor.js +20 -11
- package/dist/type-extractor.js.map +1 -1
- package/dist/type-generation.d.ts +1 -1
- package/dist/type-generation.d.ts.map +1 -1
- package/dist/type-generation.js +2 -4
- package/dist/type-generation.js.map +1 -1
- package/dist/type-resolver.d.ts.map +1 -1
- package/dist/type-resolver.js +31 -12
- package/dist/type-resolver.js.map +1 -1
- package/dist/ui/clack-api.d.ts.map +1 -1
- package/dist/ui/clack-api.js +45 -23
- package/dist/ui/clack-api.js.map +1 -1
- package/dist/ui/components/LineInput.d.ts +26 -0
- package/dist/ui/components/LineInput.d.ts.map +1 -0
- package/dist/ui/components/LineInput.js +60 -0
- package/dist/ui/components/LineInput.js.map +1 -0
- package/dist/ui/dev/DevDashboard.d.ts.map +1 -1
- package/dist/ui/dev/DevDashboard.js +9 -3
- package/dist/ui/dev/DevDashboard.js.map +1 -1
- package/dist/ui/flows/FlowApp.d.ts +3 -1
- package/dist/ui/flows/FlowApp.d.ts.map +1 -1
- package/dist/ui/flows/FlowApp.js +14 -5
- package/dist/ui/flows/FlowApp.js.map +1 -1
- package/dist/ui/flows/prompt-fields.d.ts +14 -7
- package/dist/ui/flows/prompt-fields.d.ts.map +1 -1
- package/dist/ui/flows/prompt-fields.js +20 -12
- package/dist/ui/flows/prompt-fields.js.map +1 -1
- package/dist/ui/flows/types.d.ts +5 -1
- package/dist/ui/flows/types.d.ts.map +1 -1
- package/dist/ui/runtime/command-chrome.d.ts.map +1 -1
- package/dist/ui/runtime/command-chrome.js +2 -0
- package/dist/ui/runtime/command-chrome.js.map +1 -1
- package/dist/ui/runtime/flow-transcript.d.ts +17 -0
- package/dist/ui/runtime/flow-transcript.d.ts.map +1 -0
- package/dist/ui/runtime/flow-transcript.js +38 -0
- package/dist/ui/runtime/flow-transcript.js.map +1 -0
- package/dist/ui/runtime/run-clack-flow.d.ts +7 -0
- package/dist/ui/runtime/run-clack-flow.d.ts.map +1 -1
- package/dist/ui/runtime/run-clack-flow.js +131 -17
- package/dist/ui/runtime/run-clack-flow.js.map +1 -1
- package/package.json +16 -14
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The front-end values a project's linked environment gives a production build (frontend-values.ts).
|
|
3
|
+
*
|
|
4
|
+
* Supatype Cloud: the environment's own address, which the link records, and the anon key from the
|
|
5
|
+
* control plane's `GET /projects/:slug/environments/:name/keys`, which also returns the service role
|
|
6
|
+
* key, dropped here. A self-hosted server: the link's address, and the anon key the server publishes
|
|
7
|
+
* at `GET <apiUrl>/supatype-env.json` (`{ "url", "anonKey" }`), fetched over HTTPS only for an address
|
|
8
|
+
* that is not local, so the key a build ships is the one the server it names actually holds.
|
|
9
|
+
*/
|
|
10
|
+
import { isShape, isString } from "@supatype/shared";
|
|
11
|
+
import { bodyReason, errorMessage } from "./error-message.js";
|
|
12
|
+
import { fetchWithin } from "./fetch-within.js";
|
|
13
|
+
import { isLocalUrl } from "./frontend-env.js";
|
|
14
|
+
import { loadProjectLink } from "./link.js";
|
|
15
|
+
import { projectRequest, resolveTarget } from "./resolve-target.js";
|
|
16
|
+
import { targetFetch } from "./target-client.js";
|
|
17
|
+
/** How long a server or the control plane gets to answer for the anon key. */
|
|
18
|
+
const KEY_FETCH_TIMEOUT_MS = 15_000;
|
|
19
|
+
/** The address a self-hosted server publishes its front-end values at. */
|
|
20
|
+
const PUBLIC_ENV_PATH = "/supatype-env.json";
|
|
21
|
+
const isPublicEnv = isShape({ anonKey: isString });
|
|
22
|
+
const NOT_LINKED = "the linked environment";
|
|
23
|
+
/** Both values unset, saying why. */
|
|
24
|
+
function neither(name, note) {
|
|
25
|
+
return { name, findings: { apiUrl: { note }, anonKey: { note } } };
|
|
26
|
+
}
|
|
27
|
+
/** The project's link, or a source read saying why there is none. */
|
|
28
|
+
function readLink(cwd) {
|
|
29
|
+
try {
|
|
30
|
+
return loadProjectLink(cwd) ?? neither(NOT_LINKED, "no .supatype/link.json (run `supatype link`)");
|
|
31
|
+
}
|
|
32
|
+
catch (err) {
|
|
33
|
+
return neither(NOT_LINKED, errorMessage(err));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* What the linked environment (`opts.env`, else the link's default) holds for the values `wanted`.
|
|
38
|
+
* Never throws: a link that cannot be read, a session that has expired, a server that refuses, each
|
|
39
|
+
* is a note on the source, for the refusal to list.
|
|
40
|
+
*/
|
|
41
|
+
export async function readLinkedFrontendValues(opts, wanted) {
|
|
42
|
+
const link = readLink(opts.cwd);
|
|
43
|
+
if (!("kind" in link))
|
|
44
|
+
return link;
|
|
45
|
+
let target;
|
|
46
|
+
try {
|
|
47
|
+
target = resolveTarget(opts.cwd, { env: opts.env, tokenOptional: true });
|
|
48
|
+
}
|
|
49
|
+
catch (err) {
|
|
50
|
+
return neither(NOT_LINKED, errorMessage(err));
|
|
51
|
+
}
|
|
52
|
+
const cloud = target.mode === "cloud";
|
|
53
|
+
const name = `linked environment "${target.environment}" (${cloud ? "Supatype Cloud" : "self-host"})`;
|
|
54
|
+
const apiUrl = cloud ? cloudEnvironmentUrl(link, target) : { value: target.apiBaseUrl, where: "the link" };
|
|
55
|
+
if (!wanted.includes("anonKey"))
|
|
56
|
+
return { name, findings: { apiUrl } };
|
|
57
|
+
const anonKey = cloud
|
|
58
|
+
? await cloudAnonKey(target, link.environments[target.environment]?.apiUrl)
|
|
59
|
+
: await publishedAnonKey(target.apiBaseUrl, opts.allowLocal === true);
|
|
60
|
+
return { name, findings: { apiUrl, anonKey } };
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* A Cloud environment's own address, as `supatype link` recorded it from the control plane. A link
|
|
64
|
+
* made when the control plane did not list environments records the control plane's address in its
|
|
65
|
+
* place, which a browser cannot use as the project's API.
|
|
66
|
+
*/
|
|
67
|
+
function cloudEnvironmentUrl(link, target) {
|
|
68
|
+
const recorded = link.environments[target.environment]?.apiUrl;
|
|
69
|
+
if (recorded === undefined)
|
|
70
|
+
return { note: `the link records no address for "${target.environment}"` };
|
|
71
|
+
if (recorded === link.cloudApiUrl) {
|
|
72
|
+
return { note: `the link records the control plane's address (${recorded}) for "${target.environment}", not the project's: re-run \`supatype link\`` };
|
|
73
|
+
}
|
|
74
|
+
return { value: recorded, where: "the link" };
|
|
75
|
+
}
|
|
76
|
+
/** The environment's anon key from the control plane's keys route, which an owner or admin may read. */
|
|
77
|
+
async function cloudAnonKey(target, deployment) {
|
|
78
|
+
if (!target.token)
|
|
79
|
+
return { note: "no Cloud session: run `supatype login`, or set SUPATYPE_ACCESS_TOKEN" };
|
|
80
|
+
const subpath = `/environments/${encodeURIComponent(target.environment)}/keys`;
|
|
81
|
+
try {
|
|
82
|
+
const request = { ...projectRequest(target, "GET", subpath), timeoutMs: KEY_FETCH_TIMEOUT_MS };
|
|
83
|
+
const keys = await targetFetch(target.apiBaseUrl, target.apiPrefix, request, isPublicEnv);
|
|
84
|
+
const where = `GET ${target.apiPrefix}/projects/${target.projectRef}${subpath}`;
|
|
85
|
+
// With no address recorded the key is for no URL this build can be sure of.
|
|
86
|
+
return { value: keys.anonKey, where, deployment: deployment ?? target.apiBaseUrl };
|
|
87
|
+
}
|
|
88
|
+
catch (err) {
|
|
89
|
+
return { note: `the control plane did not give the keys: ${errorMessage(err)}` };
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The anon key the server at `apiUrl` publishes, read from {@link PUBLIC_ENV_PATH}: a self-hosted
|
|
94
|
+
* server, or a Supatype Cloud environment's own address, which serves the same.
|
|
95
|
+
*/
|
|
96
|
+
export async function publishedAnonKey(apiUrl, allowLocal) {
|
|
97
|
+
const url = `${apiUrl.replace(/\/$/, "")}${PUBLIC_ENV_PATH}`;
|
|
98
|
+
const local = isLocalUrl(apiUrl);
|
|
99
|
+
if (local && !allowLocal)
|
|
100
|
+
return { note: `not fetched from ${url}, a local address` };
|
|
101
|
+
if (!local && !apiUrl.startsWith("https://")) {
|
|
102
|
+
return { note: `not fetched from ${url}: the anon key is only fetched over HTTPS from an address that is not local` };
|
|
103
|
+
}
|
|
104
|
+
try {
|
|
105
|
+
return await publishedKeyAnswer(await fetchWithin(url, KEY_FETCH_TIMEOUT_MS), url, apiUrl);
|
|
106
|
+
}
|
|
107
|
+
catch (err) {
|
|
108
|
+
return { note: `${url} did not answer: ${errorMessage(err)}` };
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* What the server's answer at `url` says about its anon key. A 404 is the address switched off
|
|
113
|
+
* (`server.public_env: false`); a 503 is a server not set up to publish it (no anon key, no URL, or
|
|
114
|
+
* a service role key where the anon key goes), which names the missing setting in its body.
|
|
115
|
+
*/
|
|
116
|
+
async function publishedKeyAnswer(res, url, apiUrl) {
|
|
117
|
+
if (res.status === 404) {
|
|
118
|
+
return { note: `${url} answered 404: the server has server.public_env set to false, or runs a release too old to serve it` };
|
|
119
|
+
}
|
|
120
|
+
if (res.status === 503) {
|
|
121
|
+
return { note: `the server at ${apiUrl} is not set up to publish its anon key: ${await oneLineReason(res)}` };
|
|
122
|
+
}
|
|
123
|
+
if (!res.ok)
|
|
124
|
+
return { note: `${url} answered ${res.status} ${res.statusText}`.trimEnd() };
|
|
125
|
+
const body = await res.json();
|
|
126
|
+
return isPublicEnv(body) ? { value: body.anonKey, where: url, deployment: apiUrl } : { note: `${url} answered without an anonKey` };
|
|
127
|
+
}
|
|
128
|
+
/** Anything shaped like a JWT, so a key a misconfigured server quotes is never printed. */
|
|
129
|
+
const JWT_LIKE = /eyJ[\w-]*\.[\w-]+(\.[\w-]*)?/g;
|
|
130
|
+
/** A response body's reason (its JSON `message`, else the text) on one line, with no JWT in it. */
|
|
131
|
+
async function oneLineReason(res) {
|
|
132
|
+
const text = await res.text().catch(() => "");
|
|
133
|
+
let reason = text;
|
|
134
|
+
try {
|
|
135
|
+
reason = bodyReason(JSON.parse(text)) ?? text;
|
|
136
|
+
}
|
|
137
|
+
catch {
|
|
138
|
+
// Not JSON: the text is the reason.
|
|
139
|
+
}
|
|
140
|
+
const line = reason.replace(JWT_LIKE, "<JWT withheld>").replace(/\s+/g, " ").trim();
|
|
141
|
+
return line === "" ? "no reason given" : line;
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=frontend-values-linked.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontend-values-linked.js","sourceRoot":"","sources":["../src/frontend-values-linked.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9C,OAAO,EAAE,eAAe,EAAoB,MAAM,WAAW,CAAA;AAC7D,OAAO,EAAE,cAAc,EAAE,aAAa,EAAqB,MAAM,qBAAqB,CAAA;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAEhD,8EAA8E;AAC9E,MAAM,oBAAoB,GAAG,MAAM,CAAA;AAEnC,0EAA0E;AAC1E,MAAM,eAAe,GAAG,oBAAoB,CAAA;AAE5C,MAAM,WAAW,GAAG,OAAO,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAA;AAElD,MAAM,UAAU,GAAG,wBAAwB,CAAA;AAE3C,qCAAqC;AACrC,SAAS,OAAO,CAAC,IAAY,EAAE,IAAY;IACzC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAA;AACpE,CAAC;AAED,qEAAqE;AACrE,SAAS,QAAQ,CAAC,GAAW;IAC3B,IAAI,CAAC;QACH,OAAO,eAAe,CAAC,GAAG,CAAC,IAAI,OAAO,CAAC,UAAU,EAAE,8CAA8C,CAAC,CAAA;IACpG,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,OAAO,CAAC,UAAU,EAAE,YAAY,C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C,CAAC,IAAI,EAAE,CAAA;IACnF,OAAO,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAA;AAC/C,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The API URL and anon key a production build of the project's front end is given, and where each
|
|
3
|
+
* came from.
|
|
4
|
+
*
|
|
5
|
+
* Since `dev`, `init` and `keys` write a local stack's front-end values to `.env.development.local`
|
|
6
|
+
* (frontend-env.ts), nothing gave a production build an anon key: it built, and the site rendered a
|
|
7
|
+
* blank page (issue 29). `supatype build`, `keys --print frontend` and `deploy` resolve them here.
|
|
8
|
+
*
|
|
9
|
+
* Each value is resolved on its own, from the first source that holds it:
|
|
10
|
+
*
|
|
11
|
+
* 1. The environment, under any front-end name or `SUPATYPE_URL` / `SUPATYPE_ANON_KEY`, so a host's
|
|
12
|
+
* own settings (Vercel, Netlify, a CI secret) always win.
|
|
13
|
+
* 2. For the anon key only: the server the environment's API URL names, at its public
|
|
14
|
+
* `/supatype-env.json`, for CI that sets only the URL.
|
|
15
|
+
* 3. The linked environment (frontend-values-linked.ts).
|
|
16
|
+
* 4. A `.env` recording a deployment: a non-local `PUBLIC_SUPATYPE_URL` or `API_EXTERNAL_URL`, and
|
|
17
|
+
* `ANON_KEY` beside it, as on the server itself.
|
|
18
|
+
*
|
|
19
|
+
* An anon key goes with the URL only when its source holds it for that same deployment: a link to
|
|
20
|
+
* one deployment beside a SUPATYPE_URL naming another gave the second's address the first's key.
|
|
21
|
+
*
|
|
22
|
+
* The first source holding a value decides it: a local address there is refused (unless asked for)
|
|
23
|
+
* rather than passed over, since a later source would quietly build against somewhere else. The
|
|
24
|
+
* service role key is never returned, and an "anon key" that is one is refused. Every source asked
|
|
25
|
+
* is recorded, and a refusal prints the lot, as the seed connection resolver's does.
|
|
26
|
+
*/
|
|
27
|
+
/** The two values a front end is built with, as {@link FrontendValues} names them. */
|
|
28
|
+
export type FrontendValueName = "apiUrl" | "anonKey";
|
|
29
|
+
/** What one source held for one value. */
|
|
30
|
+
export interface FrontendFinding {
|
|
31
|
+
/** The value, when the source holds one. */
|
|
32
|
+
value?: string;
|
|
33
|
+
/** Where in the source it was: a variable name, the address fetched. */
|
|
34
|
+
where?: string;
|
|
35
|
+
/** Why there is no value, or why the one held may not be used. */
|
|
36
|
+
note?: string;
|
|
37
|
+
/** True when the source holds a value that may not be used, for a reason `note` gives. */
|
|
38
|
+
refused?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* For an anon key: the address of the deployment it belongs to, when the source says. It goes into
|
|
41
|
+
* a build only for that same address. A key set in the environment says none: the host's settings
|
|
42
|
+
* name the deployment, so it goes with whatever URL is built for.
|
|
43
|
+
*/
|
|
44
|
+
deployment?: string;
|
|
45
|
+
}
|
|
46
|
+
/** One source, and what it held for each value it was asked about. */
|
|
47
|
+
export interface FrontendSourceRead {
|
|
48
|
+
/** How the source is described: "the environment", "linked environment \"production\"". */
|
|
49
|
+
name: string;
|
|
50
|
+
findings: Partial<Record<FrontendValueName, FrontendFinding>>;
|
|
51
|
+
}
|
|
52
|
+
/** One value looked for in one source, as a refusal lists it. */
|
|
53
|
+
export interface FrontendSourceReport {
|
|
54
|
+
of: FrontendValueName;
|
|
55
|
+
source: string;
|
|
56
|
+
status: "found" | "not set" | "refused" | "skipped";
|
|
57
|
+
detail: string;
|
|
58
|
+
}
|
|
59
|
+
export interface ResolvedFrontendValues {
|
|
60
|
+
apiUrl: string;
|
|
61
|
+
anonKey: string;
|
|
62
|
+
/** Every value looked for in every source asked, in order. */
|
|
63
|
+
tried: readonly FrontendSourceReport[];
|
|
64
|
+
}
|
|
65
|
+
export interface ResolveFrontendOptions {
|
|
66
|
+
cwd: string;
|
|
67
|
+
/** The linked environment to read (`--env`), else the link's default. */
|
|
68
|
+
env?: string | undefined;
|
|
69
|
+
/** Take a local address (`--allow-local`), which a production build is otherwise refused. */
|
|
70
|
+
allowLocal?: boolean;
|
|
71
|
+
/** The environment to read first. Default: this process's. */
|
|
72
|
+
processEnv?: NodeJS.ProcessEnv;
|
|
73
|
+
/** The command a refusal tells the person to run with `--env`. Default: `supatype build`. */
|
|
74
|
+
command?: string;
|
|
75
|
+
}
|
|
76
|
+
/** No usable value for one or both, with every source tried. */
|
|
77
|
+
export declare class FrontendValuesRefused extends Error {
|
|
78
|
+
readonly tried: readonly FrontendSourceReport[];
|
|
79
|
+
readonly missing: readonly FrontendValueName[];
|
|
80
|
+
constructor(tried: readonly FrontendSourceReport[], missing: readonly FrontendValueName[], command?: string);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The API URL and anon key for a production build of the front end, each from the first source
|
|
84
|
+
* that holds it, the key only from one that holds it for the URL decided (or names no deployment). Throws {@link FrontendValuesRefused}, listing every source asked, when either is
|
|
85
|
+
* missing or the first source holding it holds one that may not be used.
|
|
86
|
+
*/
|
|
87
|
+
export declare function resolveFrontendValues(opts: ResolveFrontendOptions): Promise<ResolvedFrontendValues>;
|
|
88
|
+
/** Where each resolved value came from, for a line saying so: "API URL from .env (API_EXTERNAL_URL)". */
|
|
89
|
+
export declare function describeFrontendSources(values: ResolvedFrontendValues): string;
|
|
90
|
+
//# sourceMappingURL=frontend-values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontend-values.d.ts","sourceRoot":"","sources":["../src/frontend-values.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAOH,sFAAsF;AACtF,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,SAAS,CAAA;AAYpD,0CAA0C;AAC1C,MAAM,WAAW,eAAe;IAC9B,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kEAAkE;IAClE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,0FAA0F;IAC1F,OAAO,CAAC,EAAE,OAA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CAAC,CAoBzG;AAED,yGAAyG;AACzG,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,sBAAsB,GAAG,MAAM,CAK9E"}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The API URL and anon key a production build of the project's front end is given, and where each
|
|
3
|
+
* came from.
|
|
4
|
+
*
|
|
5
|
+
* Since `dev`, `init` and `keys` write a local stack's front-end values to `.env.development.local`
|
|
6
|
+
* (frontend-env.ts), nothing gave a production build an anon key: it built, and the site rendered a
|
|
7
|
+
* blank page (issue 29). `supatype build`, `keys --print frontend` and `deploy` resolve them here.
|
|
8
|
+
*
|
|
9
|
+
* Each value is resolved on its own, from the first source that holds it:
|
|
10
|
+
*
|
|
11
|
+
* 1. The environment, under any front-end name or `SUPATYPE_URL` / `SUPATYPE_ANON_KEY`, so a host's
|
|
12
|
+
* own settings (Vercel, Netlify, a CI secret) always win.
|
|
13
|
+
* 2. For the anon key only: the server the environment's API URL names, at its public
|
|
14
|
+
* `/supatype-env.json`, for CI that sets only the URL.
|
|
15
|
+
* 3. The linked environment (frontend-values-linked.ts).
|
|
16
|
+
* 4. A `.env` recording a deployment: a non-local `PUBLIC_SUPATYPE_URL` or `API_EXTERNAL_URL`, and
|
|
17
|
+
* `ANON_KEY` beside it, as on the server itself.
|
|
18
|
+
*
|
|
19
|
+
* An anon key goes with the URL only when its source holds it for that same deployment: a link to
|
|
20
|
+
* one deployment beside a SUPATYPE_URL naming another gave the second's address the first's key.
|
|
21
|
+
*
|
|
22
|
+
* The first source holding a value decides it: a local address there is refused (unless asked for)
|
|
23
|
+
* rather than passed over, since a later source would quietly build against somewhere else. The
|
|
24
|
+
* service role key is never returned, and an "anon key" that is one is refused. Every source asked
|
|
25
|
+
* is recorded, and a refusal prints the lot, as the seed connection resolver's does.
|
|
26
|
+
*/
|
|
27
|
+
import { readEnvFile } from "./env-file.js";
|
|
28
|
+
import { FRONTEND_ANON_KEYS, FRONTEND_URL_KEYS, isLocalUrl, recordedApiUrl } from "./frontend-env.js";
|
|
29
|
+
import { publishedAnonKey, readLinkedFrontendValues } from "./frontend-values-linked.js";
|
|
30
|
+
import { unverifiedJwtRole } from "./jwt.js";
|
|
31
|
+
const VALUE_NAMES = ["apiUrl", "anonKey"];
|
|
32
|
+
const LABELS = { apiUrl: "API URL", anonKey: "anon key" };
|
|
33
|
+
/** The variable that sets each value for a build, named in a refusal's fix. */
|
|
34
|
+
const SETTING = { apiUrl: "SUPATYPE_URL", anonKey: "SUPATYPE_ANON_KEY" };
|
|
35
|
+
/** The environment's names for the API URL, in the order they are read. */
|
|
36
|
+
const URL_NAMES = [SETTING.apiUrl, ...FRONTEND_URL_KEYS];
|
|
37
|
+
/** No usable value for one or both, with every source tried. */
|
|
38
|
+
export class FrontendValuesRefused extends Error {
|
|
39
|
+
tried;
|
|
40
|
+
missing;
|
|
41
|
+
constructor(tried, missing, command = "supatype build") {
|
|
42
|
+
super(refusalText(tried, missing, command));
|
|
43
|
+
this.tried = tried;
|
|
44
|
+
this.missing = missing;
|
|
45
|
+
this.name = "FrontendValuesRefused";
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function refusalText(tried, missing, command) {
|
|
49
|
+
const lines = tried.map((line) => ` ${line.status.padEnd(8)} ${LABELS[line.of]} from ${line.source}: ${line.detail}`);
|
|
50
|
+
// An API URL is only ever refused for being a local address (valueRefusal).
|
|
51
|
+
const local = tried.some((line) => line.status === "refused" && line.of === "apiUrl");
|
|
52
|
+
return [
|
|
53
|
+
`No ${missing.map((name) => LABELS[name]).join(" and no ")} for a production build of the front end.`,
|
|
54
|
+
...lines,
|
|
55
|
+
"",
|
|
56
|
+
`Run \`${command} --env <name>\` for a linked deployment, or set ${missing.map((name) => SETTING[name]).join(" and ")}.`,
|
|
57
|
+
...(local ? ["Pass --allow-local to use a local stack's address anyway."] : []),
|
|
58
|
+
].join("\n");
|
|
59
|
+
}
|
|
60
|
+
/** The first of `names` set in `env`, as a finding; otherwise a note naming them all. */
|
|
61
|
+
function firstSet(env, names) {
|
|
62
|
+
for (const name of names) {
|
|
63
|
+
const value = env[name]?.trim();
|
|
64
|
+
if (value)
|
|
65
|
+
return { value, where: name };
|
|
66
|
+
}
|
|
67
|
+
return { note: `none of ${names.join(", ")} is set` };
|
|
68
|
+
}
|
|
69
|
+
function environmentSource(opts) {
|
|
70
|
+
const env = opts.processEnv ?? process.env;
|
|
71
|
+
return {
|
|
72
|
+
name: "the environment",
|
|
73
|
+
findings: {
|
|
74
|
+
apiUrl: firstSet(env, URL_NAMES),
|
|
75
|
+
anonKey: firstSet(env, [SETTING.anonKey, ...FRONTEND_ANON_KEYS]),
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* `.env`, when it records a deployment. Its ANON_KEY counts only beside an API URL saying which
|
|
81
|
+
* deployment it is for, and not when that URL is a local stack's, unless a local build was asked for.
|
|
82
|
+
*/
|
|
83
|
+
function dotEnvSource(opts) {
|
|
84
|
+
const env = readEnvFile(opts.cwd);
|
|
85
|
+
const apiUrl = recordedApiUrl(env);
|
|
86
|
+
const where = env["PUBLIC_SUPATYPE_URL"] ? "PUBLIC_SUPATYPE_URL" : "API_EXTERNAL_URL";
|
|
87
|
+
const anonKey = env["ANON_KEY"]?.trim();
|
|
88
|
+
const anonFinding = () => {
|
|
89
|
+
if (!anonKey)
|
|
90
|
+
return { note: "no ANON_KEY" };
|
|
91
|
+
if (apiUrl === undefined)
|
|
92
|
+
return { note: "ANON_KEY is set with no API URL beside it to say which deployment it is for" };
|
|
93
|
+
if (isLocalUrl(apiUrl) && opts.allowLocal !== true) {
|
|
94
|
+
return { refused: true, note: `ANON_KEY in .env is a local stack's: .env's ${where} is ${apiUrl}` };
|
|
95
|
+
}
|
|
96
|
+
return { value: anonKey, where: "ANON_KEY", deployment: apiUrl };
|
|
97
|
+
};
|
|
98
|
+
return {
|
|
99
|
+
name: ".env",
|
|
100
|
+
findings: {
|
|
101
|
+
apiUrl: apiUrl === undefined ? { note: "no PUBLIC_SUPATYPE_URL or API_EXTERNAL_URL" } : { value: apiUrl, where },
|
|
102
|
+
anonKey: anonFinding(),
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* The anon key the server the environment's API URL names publishes, for CI that sets only the URL.
|
|
108
|
+
* The same HTTPS and local rules as a self-host link's server. Gives no API URL: the environment
|
|
109
|
+
* source already read it.
|
|
110
|
+
*/
|
|
111
|
+
async function environmentUrlServerSource(opts, wanted) {
|
|
112
|
+
const url = firstSet(opts.processEnv ?? process.env, URL_NAMES);
|
|
113
|
+
const name = `the server ${url.where ?? "SUPATYPE_URL"} names`;
|
|
114
|
+
if (!wanted.includes("anonKey"))
|
|
115
|
+
return { name, findings: {} };
|
|
116
|
+
if (url.value === undefined)
|
|
117
|
+
return { name, findings: { anonKey: { note: "no API URL in the environment to ask" } } };
|
|
118
|
+
return { name, findings: { anonKey: await publishedAnonKey(url.value, opts.allowLocal === true) } };
|
|
119
|
+
}
|
|
120
|
+
/** In order. The environment's URL's own server comes before the link, so its key is that URL's. */
|
|
121
|
+
const SOURCES = [environmentSource, environmentUrlServerSource, readLinkedFrontendValues, dotEnvSource];
|
|
122
|
+
/** An address as a deployment is named: scheme, host and port, no trailing slash, no `/auth/v1`. */
|
|
123
|
+
function deploymentAddress(url) {
|
|
124
|
+
try {
|
|
125
|
+
const parsed = new URL(url.trim());
|
|
126
|
+
const path = parsed.pathname.replace(/\/+$/, "").replace(/\/auth\/v1$/, "");
|
|
127
|
+
return `${parsed.protocol}//${parsed.host}${path}`;
|
|
128
|
+
}
|
|
129
|
+
catch {
|
|
130
|
+
return url.trim().replace(/\/+$/, "");
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Why an anon key is passed over for the URL being built for, or undefined when it goes with it: a
|
|
135
|
+
* key a source names a deployment for is for that deployment only.
|
|
136
|
+
*/
|
|
137
|
+
function keySkip(finding, apiUrl) {
|
|
138
|
+
if (finding.deployment === undefined)
|
|
139
|
+
return undefined;
|
|
140
|
+
if (apiUrl === undefined)
|
|
141
|
+
return `for ${finding.deployment}, and no URL has been found to build for`;
|
|
142
|
+
if (deploymentAddress(finding.deployment) === deploymentAddress(apiUrl))
|
|
143
|
+
return undefined;
|
|
144
|
+
return `for ${finding.deployment}, not the URL being built for (${apiUrl})`;
|
|
145
|
+
}
|
|
146
|
+
/** Why a value a source holds may not go into a build, or undefined when it may. */
|
|
147
|
+
function valueRefusal(of, finding, allowLocal) {
|
|
148
|
+
const where = finding.where ?? "the value";
|
|
149
|
+
if (of === "apiUrl" && isLocalUrl(finding.value) && !allowLocal) {
|
|
150
|
+
return `${where}=${finding.value} is a local address, which a production build would ship`;
|
|
151
|
+
}
|
|
152
|
+
if (of === "anonKey" && unverifiedJwtRole(finding.value) === "service_role") {
|
|
153
|
+
return `${where} holds a service role key, which must never reach a browser`;
|
|
154
|
+
}
|
|
155
|
+
return undefined;
|
|
156
|
+
}
|
|
157
|
+
/** One value as one source holds it: the report a refusal lists, and the value when it may be used. */
|
|
158
|
+
function judge(read, of, ctx) {
|
|
159
|
+
const finding = read.findings[of] ?? { note: "not looked for" };
|
|
160
|
+
const base = { of, source: read.name };
|
|
161
|
+
if (finding.refused === true)
|
|
162
|
+
return { report: { ...base, status: "refused", detail: finding.note ?? "refused" } };
|
|
163
|
+
if (finding.value === undefined)
|
|
164
|
+
return { report: { ...base, status: "not set", detail: finding.note ?? "not set" } };
|
|
165
|
+
const skip = of === "anonKey" ? keySkip(finding, ctx.apiUrl) : undefined;
|
|
166
|
+
if (skip !== undefined)
|
|
167
|
+
return { report: { ...base, status: "skipped", detail: skip } };
|
|
168
|
+
const refusal = valueRefusal(of, { ...finding, value: finding.value }, ctx.allowLocal);
|
|
169
|
+
if (refusal !== undefined)
|
|
170
|
+
return { report: { ...base, status: "refused", detail: refusal } };
|
|
171
|
+
return { report: { ...base, status: "found", detail: finding.where ?? "set" }, value: finding.value };
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* The API URL and anon key for a production build of the front end, each from the first source
|
|
175
|
+
* that holds it, the key only from one that holds it for the URL decided (or names no deployment). Throws {@link FrontendValuesRefused}, listing every source asked, when either is
|
|
176
|
+
* missing or the first source holding it holds one that may not be used.
|
|
177
|
+
*/
|
|
178
|
+
export async function resolveFrontendValues(opts) {
|
|
179
|
+
const decided = new Map();
|
|
180
|
+
const tried = [];
|
|
181
|
+
for (const source of SOURCES) {
|
|
182
|
+
const wanted = VALUE_NAMES.filter((name) => !decided.has(name));
|
|
183
|
+
if (wanted.length === 0)
|
|
184
|
+
break;
|
|
185
|
+
const read = await source(opts, wanted);
|
|
186
|
+
// A source says nothing about a value it does not look for (the URL's server gives no URL).
|
|
187
|
+
for (const name of wanted.filter((value) => read.findings[value] !== undefined)) {
|
|
188
|
+
const { report, value } = judge(read, name, { allowLocal: opts.allowLocal === true, apiUrl: decided.get("apiUrl") });
|
|
189
|
+
tried.push(report);
|
|
190
|
+
if (report.status === "found" || report.status === "refused")
|
|
191
|
+
decided.set(name, value);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
const apiUrl = decided.get("apiUrl");
|
|
195
|
+
const anonKey = decided.get("anonKey");
|
|
196
|
+
if (apiUrl === undefined || anonKey === undefined) {
|
|
197
|
+
throw new FrontendValuesRefused(tried, VALUE_NAMES.filter((name) => decided.get(name) === undefined), opts.command);
|
|
198
|
+
}
|
|
199
|
+
return { apiUrl, anonKey, tried };
|
|
200
|
+
}
|
|
201
|
+
/** Where each resolved value came from, for a line saying so: "API URL from .env (API_EXTERNAL_URL)". */
|
|
202
|
+
export function describeFrontendSources(values) {
|
|
203
|
+
return values.tried
|
|
204
|
+
.filter((line) => line.status === "found")
|
|
205
|
+
.map((line) => `${LABELS[line.of]} from ${line.source} (${line.detail})`)
|
|
206
|
+
.join(", ");
|
|
207
|
+
}
|
|
208
|
+
//# sourceMappingURL=frontend-values.js.map
|
|
@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AK,SAAS,EAAE,CAAC;QAClD,MAAM,IAAI,qBAAqB,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAA;IACrH,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA;AACnC,CAAC;AAED,yGAAyG;AACzG,MAAM,UAAU,uBAAuB,CAAC,MAA8B;IACpE,OAAO,MAAM,CAAC,KAAK;SAChB,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,OAAO,CAAC;SACzC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,GAAG,CAAC;SACxE,IAAI,CAAC,IAAI,CAAC,CAAA;AACf,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** The functions' local env file, beside them in the functions directory. */
|
|
2
|
+
export declare const FUNCTIONS_ENV_LOCAL = ".env.local";
|
|
3
|
+
/**
|
|
4
|
+
* Create the functions' local env file with its header, and the functions directory with it, when
|
|
5
|
+
* the file is not there. One writer for `init`, `functions new` and `functions env set`: the last
|
|
6
|
+
* failed with ENOENT in a project with no functions directory (issue 70). Returns its path and
|
|
7
|
+
* whether it was created.
|
|
8
|
+
*/
|
|
9
|
+
export declare function ensureFunctionsEnvLocal(functionsDir: string): {
|
|
10
|
+
path: string;
|
|
11
|
+
created: boolean;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=functions-env-local.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"functions-env-local.d.ts","sourceRoot":"","sources":["../src/functions-env-local.ts"],"names":[],"mappings":"AAGA,6EAA6E;AAC7E,eAAO,MAAM,mBAAmB,eAAe,CAAA;AAK/C;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAMhG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
/** The functions' local env file, beside them in the functions directory. */
|
|
4
|
+
export const FUNCTIONS_ENV_LOCAL = ".env.local";
|
|
5
|
+
const TEMPLATE = "# Local environment variables for edge functions\n# These are NOT committed to git\n# Set production env vars via: npx supatype functions env set KEY=value\n";
|
|
6
|
+
/**
|
|
7
|
+
* Create the functions' local env file with its header, and the functions directory with it, when
|
|
8
|
+
* the file is not there. One writer for `init`, `functions new` and `functions env set`: the last
|
|
9
|
+
* failed with ENOENT in a project with no functions directory (issue 70). Returns its path and
|
|
10
|
+
* whether it was created.
|
|
11
|
+
*/
|
|
12
|
+
export function ensureFunctionsEnvLocal(functionsDir) {
|
|
13
|
+
const path = join(functionsDir, FUNCTIONS_ENV_LOCAL);
|
|
14
|
+
if (existsSync(path))
|
|
15
|
+
return { path, created: false };
|
|
16
|
+
mkdirSync(functionsDir, { recursive: true });
|
|
17
|
+
writeFileSync(path, TEMPLATE, "utf8");
|
|
18
|
+
return { path, created: true };
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=functions-env-local.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"functions-env-local.js","sourceRoot":"","sources":["../src/functions-env-local.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC,6EAA6E;AAC7E,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAA;AAE/C,MAAM,QAAQ,GACZ,+JAA+J,CAAA;AAEjK;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CAAC,YAAoB;IAC1D,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE,mBAAmB,CAAC,CAAA;IACpD,IAAI,UAAU,CAAC,IAAI,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA;IACrD,SAAS,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IAC5C,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;IACrC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;AAChC,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const PINNED_IMAGES: {
|
|
2
2
|
readonly engine: {
|
|
3
3
|
readonly image: "supatype/schema-engine";
|
|
4
|
-
readonly tag: "v0.
|
|
5
|
-
readonly commit: "
|
|
4
|
+
readonly tag: "v0.10.0";
|
|
5
|
+
readonly commit: "ae7b0f5c9df621b386fda6c36abce7ae114e16fb";
|
|
6
6
|
};
|
|
7
7
|
readonly server: {
|
|
8
8
|
readonly image: "supatype/server";
|
|
9
|
-
readonly tag: "v2.
|
|
10
|
-
readonly commit: "
|
|
9
|
+
readonly tag: "v2.4.0";
|
|
10
|
+
readonly commit: "dfb9ad608ee84f29b27ec9965f21f6eb83cd8a11";
|
|
11
11
|
};
|
|
12
12
|
readonly postgres: {
|
|
13
13
|
readonly image: "supatype/postgres";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Generated from release/images.json by scripts/release-images.mjs. Do not edit: run
|
|
2
2
|
// `bash scripts/pin.sh set <engine|server|postgres> <tag>`, which rewrites both.
|
|
3
3
|
export const PINNED_IMAGES = {
|
|
4
|
-
engine: { image: "supatype/schema-engine", tag: "v0.
|
|
5
|
-
server: { image: "supatype/server", tag: "v2.
|
|
4
|
+
engine: { image: "supatype/schema-engine", tag: "v0.10.0", commit: "ae7b0f5c9df621b386fda6c36abce7ae114e16fb" },
|
|
5
|
+
server: { image: "supatype/server", tag: "v2.4.0", commit: "dfb9ad608ee84f29b27ec9965f21f6eb83cd8a11" },
|
|
6
6
|
postgres: { image: "supatype/postgres", tag: "17.2.12", commit: "ab9020f7691dced4875634dc88dfe500968faa5a" },
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=release-images.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release-images.js","sourceRoot":"","sources":["../../src/generated/release-images.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,iFAAiF;AACjF,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,MAAM,EAAE,EAAE,KAAK,EAAE,wBAAwB,EAAE,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"release-images.js","sourceRoot":"","sources":["../../src/generated/release-images.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,iFAAiF;AACjF,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,MAAM,EAAE,EAAE,KAAK,EAAE,wBAAwB,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,0CAA0C,EAAE;IAC/G,MAAM,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,0CAA0C,EAAE;IACvG,QAAQ,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,0CAA0C,EAAE;CACpG,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript-libs.d.ts","sourceRoot":"","sources":["../../src/generated/typescript-libs.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,UAAU,CAAA;AAC7C,eAAO,MAAM,mBAAmB,oBAAoB,CAAA;AACpD,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA0DjE,CAAA"}
|