@atlasauth/cli 0.25.0 → 0.25.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 +6 -0
- package/dist/args.d.ts +601 -0
- package/dist/args.js +289 -0
- package/dist/args.js.map +1 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +19 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/actions-gallery.d.ts +8 -0
- package/dist/commands/actions-gallery.js +197 -0
- package/dist/commands/actions-gallery.js.map +1 -0
- package/dist/commands/actions.d.ts +13 -0
- package/dist/commands/actions.js +135 -0
- package/dist/commands/actions.js.map +1 -0
- package/dist/commands/admin.d.ts +49 -0
- package/dist/commands/admin.js +353 -0
- package/dist/commands/admin.js.map +1 -0
- package/dist/commands/api-keys.d.ts +4 -0
- package/dist/commands/api-keys.js +96 -0
- package/dist/commands/api-keys.js.map +1 -0
- package/dist/commands/auth.d.ts +25 -0
- package/dist/commands/auth.js +102 -0
- package/dist/commands/auth.js.map +1 -0
- package/dist/commands/config.d.ts +104 -0
- package/dist/commands/config.js +1532 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/csp.d.ts +32 -0
- package/dist/commands/csp.js +180 -0
- package/dist/commands/csp.js.map +1 -0
- package/dist/commands/dev.d.ts +8 -0
- package/dist/commands/dev.js +84 -0
- package/dist/commands/dev.js.map +1 -0
- package/dist/commands/fga.d.ts +10 -0
- package/dist/commands/fga.js +146 -0
- package/dist/commands/fga.js.map +1 -0
- package/dist/commands/golive.d.ts +40 -0
- package/dist/commands/golive.js +285 -0
- package/dist/commands/golive.js.map +1 -0
- package/dist/commands/id-accounts.d.ts +13 -0
- package/dist/commands/id-accounts.js +195 -0
- package/dist/commands/id-accounts.js.map +1 -0
- package/dist/commands/import-better-auth.d.ts +3 -0
- package/dist/commands/import-better-auth.js +164 -0
- package/dist/commands/import-better-auth.js.map +1 -0
- package/dist/commands/import.d.ts +3 -0
- package/dist/commands/import.js +123 -0
- package/dist/commands/import.js.map +1 -0
- package/dist/commands/info.d.ts +75 -0
- package/dist/commands/info.js +362 -0
- package/dist/commands/info.js.map +1 -0
- package/dist/commands/init.d.ts +3 -0
- package/dist/commands/init.js +438 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/integrations.d.ts +8 -0
- package/dist/commands/integrations.js +112 -0
- package/dist/commands/integrations.js.map +1 -0
- package/dist/commands/listen.d.ts +17 -0
- package/dist/commands/listen.js +223 -0
- package/dist/commands/listen.js.map +1 -0
- package/dist/commands/mcp.d.ts +38 -0
- package/dist/commands/mcp.js +111 -0
- package/dist/commands/mcp.js.map +1 -0
- package/dist/commands/migrate.d.ts +16 -0
- package/dist/commands/migrate.js +114 -0
- package/dist/commands/migrate.js.map +1 -0
- package/dist/commands/move-origin.d.ts +11 -0
- package/dist/commands/move-origin.js +95 -0
- package/dist/commands/move-origin.js.map +1 -0
- package/dist/commands/operator.d.ts +18 -0
- package/dist/commands/operator.js +238 -0
- package/dist/commands/operator.js.map +1 -0
- package/dist/commands/orgs.d.ts +4 -0
- package/dist/commands/orgs.js +72 -0
- package/dist/commands/orgs.js.map +1 -0
- package/dist/commands/pages.d.ts +14 -0
- package/dist/commands/pages.js +113 -0
- package/dist/commands/pages.js.map +1 -0
- package/dist/commands/partner-platforms.d.ts +10 -0
- package/dist/commands/partner-platforms.js +157 -0
- package/dist/commands/partner-platforms.js.map +1 -0
- package/dist/commands/project-commands.d.ts +38 -0
- package/dist/commands/project-commands.js +361 -0
- package/dist/commands/project-commands.js.map +1 -0
- package/dist/commands/referrals.d.ts +69 -0
- package/dist/commands/referrals.js +1056 -0
- package/dist/commands/referrals.js.map +1 -0
- package/dist/commands/resources.d.ts +44 -0
- package/dist/commands/resources.js +234 -0
- package/dist/commands/resources.js.map +1 -0
- package/dist/commands/sessions.d.ts +4 -0
- package/dist/commands/sessions.js +28 -0
- package/dist/commands/sessions.js.map +1 -0
- package/dist/commands/shared.d.ts +38 -0
- package/dist/commands/shared.js +69 -0
- package/dist/commands/shared.js.map +1 -0
- package/dist/commands/status.d.ts +3 -0
- package/dist/commands/status.js +77 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/users.d.ts +4 -0
- package/dist/commands/users.js +100 -0
- package/dist/commands/users.js.map +1 -0
- package/dist/commands/webhooks.d.ts +34 -0
- package/dist/commands/webhooks.js +301 -0
- package/dist/commands/webhooks.js.map +1 -0
- package/dist/config-http.d.ts +29 -0
- package/dist/config-http.js +64 -0
- package/dist/config-http.js.map +1 -0
- package/dist/config.d.ts +64 -0
- package/dist/config.js +69 -0
- package/dist/config.js.map +1 -0
- package/dist/context.d.ts +72 -0
- package/dist/context.js +27 -0
- package/dist/context.js.map +1 -0
- package/dist/define-config.d.ts +9 -0
- package/dist/define-config.js +8 -0
- package/dist/define-config.js.map +1 -0
- package/dist/errors.d.ts +15 -0
- package/dist/errors.js +25 -0
- package/dist/errors.js.map +1 -0
- package/dist/help.d.ts +8 -0
- package/dist/help.js +868 -0
- package/dist/help.js.map +1 -0
- package/dist/import/csv.d.ts +6 -0
- package/dist/import/csv.js +63 -0
- package/dist/import/csv.js.map +1 -0
- package/dist/import/vendors.d.ts +57 -0
- package/dist/import/vendors.js +568 -0
- package/dist/import/vendors.js.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +81 -0
- package/dist/index.js.map +1 -0
- package/dist/io.d.ts +21 -0
- package/dist/io.js +28 -0
- package/dist/io.js.map +1 -0
- package/dist/migrate/appwrite/plugin.d.ts +2 -0
- package/dist/migrate/appwrite/plugin.js +103 -0
- package/dist/migrate/appwrite/plugin.js.map +1 -0
- package/dist/migrate/auth0/plugin.d.ts +2 -0
- package/dist/migrate/auth0/plugin.js +126 -0
- package/dist/migrate/auth0/plugin.js.map +1 -0
- package/dist/migrate/authentik/plugin.d.ts +2 -0
- package/dist/migrate/authentik/plugin.js +135 -0
- package/dist/migrate/authentik/plugin.js.map +1 -0
- package/dist/migrate/azure-ad-b2c/plugin.d.ts +8 -0
- package/dist/migrate/azure-ad-b2c/plugin.js +165 -0
- package/dist/migrate/azure-ad-b2c/plugin.js.map +1 -0
- package/dist/migrate/better-auth/integration.d.ts +59 -0
- package/dist/migrate/better-auth/integration.js +81 -0
- package/dist/migrate/better-auth/integration.js.map +1 -0
- package/dist/migrate/better-auth/orchestrator.d.ts +43 -0
- package/dist/migrate/better-auth/orchestrator.js +525 -0
- package/dist/migrate/better-auth/orchestrator.js.map +1 -0
- package/dist/migrate/better-auth/output.d.ts +20 -0
- package/dist/migrate/better-auth/output.js +146 -0
- package/dist/migrate/better-auth/output.js.map +1 -0
- package/dist/migrate/better-auth/translate.d.ts +77 -0
- package/dist/migrate/better-auth/translate.js +1989 -0
- package/dist/migrate/better-auth/translate.js.map +1 -0
- package/dist/migrate/clerk/plugin.d.ts +2 -0
- package/dist/migrate/clerk/plugin.js +76 -0
- package/dist/migrate/clerk/plugin.js.map +1 -0
- package/dist/migrate/cognito/plugin.d.ts +5 -0
- package/dist/migrate/cognito/plugin.js +170 -0
- package/dist/migrate/cognito/plugin.js.map +1 -0
- package/dist/migrate/corbado/plugin.d.ts +2 -0
- package/dist/migrate/corbado/plugin.js +63 -0
- package/dist/migrate/corbado/plugin.js.map +1 -0
- package/dist/migrate/descope/plugin.d.ts +2 -0
- package/dist/migrate/descope/plugin.js +83 -0
- package/dist/migrate/descope/plugin.js.map +1 -0
- package/dist/migrate/entra-external-id/plugin.d.ts +8 -0
- package/dist/migrate/entra-external-id/plugin.js +12 -0
- package/dist/migrate/entra-external-id/plugin.js.map +1 -0
- package/dist/migrate/export/appwrite-config.d.ts +28 -0
- package/dist/migrate/export/appwrite-config.js +170 -0
- package/dist/migrate/export/appwrite-config.js.map +1 -0
- package/dist/migrate/export/appwrite.d.ts +51 -0
- package/dist/migrate/export/appwrite.js +288 -0
- package/dist/migrate/export/appwrite.js.map +1 -0
- package/dist/migrate/export/auth0-config.d.ts +29 -0
- package/dist/migrate/export/auth0-config.js +249 -0
- package/dist/migrate/export/auth0-config.js.map +1 -0
- package/dist/migrate/export/auth0.d.ts +62 -0
- package/dist/migrate/export/auth0.js +575 -0
- package/dist/migrate/export/auth0.js.map +1 -0
- package/dist/migrate/export/authentik-config.d.ts +45 -0
- package/dist/migrate/export/authentik-config.js +357 -0
- package/dist/migrate/export/authentik-config.js.map +1 -0
- package/dist/migrate/export/authentik.d.ts +110 -0
- package/dist/migrate/export/authentik.js +838 -0
- package/dist/migrate/export/authentik.js.map +1 -0
- package/dist/migrate/export/azure-config.d.ts +58 -0
- package/dist/migrate/export/azure-config.js +344 -0
- package/dist/migrate/export/azure-config.js.map +1 -0
- package/dist/migrate/export/azure.d.ts +85 -0
- package/dist/migrate/export/azure.js +373 -0
- package/dist/migrate/export/azure.js.map +1 -0
- package/dist/migrate/export/clerk-config.d.ts +26 -0
- package/dist/migrate/export/clerk-config.js +227 -0
- package/dist/migrate/export/clerk-config.js.map +1 -0
- package/dist/migrate/export/clerk.d.ts +46 -0
- package/dist/migrate/export/clerk.js +486 -0
- package/dist/migrate/export/clerk.js.map +1 -0
- package/dist/migrate/export/cognito-config.d.ts +25 -0
- package/dist/migrate/export/cognito-config.js +273 -0
- package/dist/migrate/export/cognito-config.js.map +1 -0
- package/dist/migrate/export/cognito.d.ts +103 -0
- package/dist/migrate/export/cognito.js +441 -0
- package/dist/migrate/export/cognito.js.map +1 -0
- package/dist/migrate/export/corbado-config.d.ts +20 -0
- package/dist/migrate/export/corbado-config.js +63 -0
- package/dist/migrate/export/corbado-config.js.map +1 -0
- package/dist/migrate/export/corbado.d.ts +37 -0
- package/dist/migrate/export/corbado.js +132 -0
- package/dist/migrate/export/corbado.js.map +1 -0
- package/dist/migrate/export/descope.d.ts +35 -0
- package/dist/migrate/export/descope.js +208 -0
- package/dist/migrate/export/descope.js.map +1 -0
- package/dist/migrate/export/fake-vendor.test-helper.d.ts +27 -0
- package/dist/migrate/export/fake-vendor.test-helper.js +41 -0
- package/dist/migrate/export/fake-vendor.test-helper.js.map +1 -0
- package/dist/migrate/export/firebase-config.d.ts +24 -0
- package/dist/migrate/export/firebase-config.js +215 -0
- package/dist/migrate/export/firebase-config.js.map +1 -0
- package/dist/migrate/export/firebase.d.ts +102 -0
- package/dist/migrate/export/firebase.js +464 -0
- package/dist/migrate/export/firebase.js.map +1 -0
- package/dist/migrate/export/frameworks/app-users.d.ts +42 -0
- package/dist/migrate/export/frameworks/app-users.js +161 -0
- package/dist/migrate/export/frameworks/app-users.js.map +1 -0
- package/dist/migrate/export/frameworks/authjs.d.ts +41 -0
- package/dist/migrate/export/frameworks/authjs.js +146 -0
- package/dist/migrate/export/frameworks/authjs.js.map +1 -0
- package/dist/migrate/export/frameworks/devise.d.ts +39 -0
- package/dist/migrate/export/frameworks/devise.js +218 -0
- package/dist/migrate/export/frameworks/devise.js.map +1 -0
- package/dist/migrate/export/frameworks/django.d.ts +45 -0
- package/dist/migrate/export/frameworks/django.js +315 -0
- package/dist/migrate/export/frameworks/django.js.map +1 -0
- package/dist/migrate/export/frameworks/lucia.d.ts +42 -0
- package/dist/migrate/export/frameworks/lucia.js +263 -0
- package/dist/migrate/export/frameworks/lucia.js.map +1 -0
- package/dist/migrate/export/frameworks/tables.d.ts +90 -0
- package/dist/migrate/export/frameworks/tables.js +325 -0
- package/dist/migrate/export/frameworks/tables.js.map +1 -0
- package/dist/migrate/export/frameworks/webauthn.d.ts +25 -0
- package/dist/migrate/export/frameworks/webauthn.js +130 -0
- package/dist/migrate/export/frameworks/webauthn.js.map +1 -0
- package/dist/migrate/export/frontegg-config.d.ts +29 -0
- package/dist/migrate/export/frontegg-config.js +238 -0
- package/dist/migrate/export/frontegg-config.js.map +1 -0
- package/dist/migrate/export/frontegg.d.ts +67 -0
- package/dist/migrate/export/frontegg.js +410 -0
- package/dist/migrate/export/frontegg.js.map +1 -0
- package/dist/migrate/export/fusionauth-config.d.ts +26 -0
- package/dist/migrate/export/fusionauth-config.js +226 -0
- package/dist/migrate/export/fusionauth-config.js.map +1 -0
- package/dist/migrate/export/fusionauth.d.ts +99 -0
- package/dist/migrate/export/fusionauth.js +642 -0
- package/dist/migrate/export/fusionauth.js.map +1 -0
- package/dist/migrate/export/hanko-config.d.ts +27 -0
- package/dist/migrate/export/hanko-config.js +265 -0
- package/dist/migrate/export/hanko-config.js.map +1 -0
- package/dist/migrate/export/hanko.d.ts +52 -0
- package/dist/migrate/export/hanko.js +605 -0
- package/dist/migrate/export/hanko.js.map +1 -0
- package/dist/migrate/export/keycloak-config.d.ts +19 -0
- package/dist/migrate/export/keycloak-config.js +219 -0
- package/dist/migrate/export/keycloak-config.js.map +1 -0
- package/dist/migrate/export/keycloak.d.ts +155 -0
- package/dist/migrate/export/keycloak.js +878 -0
- package/dist/migrate/export/keycloak.js.map +1 -0
- package/dist/migrate/export/kinde-descope-config.d.ts +38 -0
- package/dist/migrate/export/kinde-descope-config.js +172 -0
- package/dist/migrate/export/kinde-descope-config.js.map +1 -0
- package/dist/migrate/export/kinde.d.ts +57 -0
- package/dist/migrate/export/kinde.js +333 -0
- package/dist/migrate/export/kinde.js.map +1 -0
- package/dist/migrate/export/ldap.d.ts +53 -0
- package/dist/migrate/export/ldap.js +277 -0
- package/dist/migrate/export/ldap.js.map +1 -0
- package/dist/migrate/export/logto-config.d.ts +27 -0
- package/dist/migrate/export/logto-config.js +264 -0
- package/dist/migrate/export/logto-config.js.map +1 -0
- package/dist/migrate/export/logto.d.ts +150 -0
- package/dist/migrate/export/logto.js +809 -0
- package/dist/migrate/export/logto.js.map +1 -0
- package/dist/migrate/export/magic-config.d.ts +14 -0
- package/dist/migrate/export/magic-config.js +28 -0
- package/dist/migrate/export/magic-config.js.map +1 -0
- package/dist/migrate/export/magic.d.ts +31 -0
- package/dist/migrate/export/magic.js +93 -0
- package/dist/migrate/export/magic.js.map +1 -0
- package/dist/migrate/export/mini-yaml.d.ts +19 -0
- package/dist/migrate/export/mini-yaml.js +581 -0
- package/dist/migrate/export/mini-yaml.js.map +1 -0
- package/dist/migrate/export/nhost-config.d.ts +26 -0
- package/dist/migrate/export/nhost-config.js +360 -0
- package/dist/migrate/export/nhost-config.js.map +1 -0
- package/dist/migrate/export/nhost.d.ts +64 -0
- package/dist/migrate/export/nhost.js +304 -0
- package/dist/migrate/export/nhost.js.map +1 -0
- package/dist/migrate/export/okta-config.d.ts +30 -0
- package/dist/migrate/export/okta-config.js +205 -0
- package/dist/migrate/export/okta-config.js.map +1 -0
- package/dist/migrate/export/okta.d.ts +43 -0
- package/dist/migrate/export/okta.js +337 -0
- package/dist/migrate/export/okta.js.map +1 -0
- package/dist/migrate/export/onelogin.d.ts +22 -0
- package/dist/migrate/export/onelogin.js +123 -0
- package/dist/migrate/export/onelogin.js.map +1 -0
- package/dist/migrate/export/ory-config.d.ts +58 -0
- package/dist/migrate/export/ory-config.js +451 -0
- package/dist/migrate/export/ory-config.js.map +1 -0
- package/dist/migrate/export/ory.d.ts +81 -0
- package/dist/migrate/export/ory.js +555 -0
- package/dist/migrate/export/ory.js.map +1 -0
- package/dist/migrate/export/password-detect.d.ts +29 -0
- package/dist/migrate/export/password-detect.js +81 -0
- package/dist/migrate/export/password-detect.js.map +1 -0
- package/dist/migrate/export/pingone.d.ts +36 -0
- package/dist/migrate/export/pingone.js +218 -0
- package/dist/migrate/export/pingone.js.map +1 -0
- package/dist/migrate/export/plugin-kit.d.ts +25 -0
- package/dist/migrate/export/plugin-kit.js +82 -0
- package/dist/migrate/export/plugin-kit.js.map +1 -0
- package/dist/migrate/export/pocketbase-config.d.ts +28 -0
- package/dist/migrate/export/pocketbase-config.js +180 -0
- package/dist/migrate/export/pocketbase-config.js.map +1 -0
- package/dist/migrate/export/pocketbase.d.ts +52 -0
- package/dist/migrate/export/pocketbase.js +243 -0
- package/dist/migrate/export/pocketbase.js.map +1 -0
- package/dist/migrate/export/project-files.d.ts +15 -0
- package/dist/migrate/export/project-files.js +43 -0
- package/dist/migrate/export/project-files.js.map +1 -0
- package/dist/migrate/export/propelauth-config.d.ts +18 -0
- package/dist/migrate/export/propelauth-config.js +58 -0
- package/dist/migrate/export/propelauth-config.js.map +1 -0
- package/dist/migrate/export/propelauth-harness.test-helper.d.ts +62 -0
- package/dist/migrate/export/propelauth-harness.test-helper.js +109 -0
- package/dist/migrate/export/propelauth-harness.test-helper.js.map +1 -0
- package/dist/migrate/export/propelauth.d.ts +48 -0
- package/dist/migrate/export/propelauth.js +255 -0
- package/dist/migrate/export/propelauth.js.map +1 -0
- package/dist/migrate/export/record-set.d.ts +44 -0
- package/dist/migrate/export/record-set.js +98 -0
- package/dist/migrate/export/record-set.js.map +1 -0
- package/dist/migrate/export/source-lines.d.ts +17 -0
- package/dist/migrate/export/source-lines.js +43 -0
- package/dist/migrate/export/source-lines.js.map +1 -0
- package/dist/migrate/export/sso-metadata.d.ts +47 -0
- package/dist/migrate/export/sso-metadata.js +180 -0
- package/dist/migrate/export/sso-metadata.js.map +1 -0
- package/dist/migrate/export/stytch-config.d.ts +22 -0
- package/dist/migrate/export/stytch-config.js +102 -0
- package/dist/migrate/export/stytch-config.js.map +1 -0
- package/dist/migrate/export/stytch.d.ts +68 -0
- package/dist/migrate/export/stytch.js +510 -0
- package/dist/migrate/export/stytch.js.map +1 -0
- package/dist/migrate/export/supabase-config.d.ts +48 -0
- package/dist/migrate/export/supabase-config.js +408 -0
- package/dist/migrate/export/supabase-config.js.map +1 -0
- package/dist/migrate/export/supabase.d.ts +86 -0
- package/dist/migrate/export/supabase.js +524 -0
- package/dist/migrate/export/supabase.js.map +1 -0
- package/dist/migrate/export/supertokens-config.d.ts +20 -0
- package/dist/migrate/export/supertokens-config.js +150 -0
- package/dist/migrate/export/supertokens-config.js.map +1 -0
- package/dist/migrate/export/supertokens.d.ts +125 -0
- package/dist/migrate/export/supertokens.js +464 -0
- package/dist/migrate/export/supertokens.js.map +1 -0
- package/dist/migrate/export/table.d.ts +35 -0
- package/dist/migrate/export/table.js +248 -0
- package/dist/migrate/export/table.js.map +1 -0
- package/dist/migrate/export/translate-kit.d.ts +46 -0
- package/dist/migrate/export/translate-kit.js +148 -0
- package/dist/migrate/export/translate-kit.js.map +1 -0
- package/dist/migrate/export/userfront-config.d.ts +15 -0
- package/dist/migrate/export/userfront-config.js +49 -0
- package/dist/migrate/export/userfront-config.js.map +1 -0
- package/dist/migrate/export/userfront.d.ts +38 -0
- package/dist/migrate/export/userfront.js +189 -0
- package/dist/migrate/export/userfront.js.map +1 -0
- package/dist/migrate/export/vendor-http.d.ts +46 -0
- package/dist/migrate/export/vendor-http.js +138 -0
- package/dist/migrate/export/vendor-http.js.map +1 -0
- package/dist/migrate/export/workos-config.d.ts +23 -0
- package/dist/migrate/export/workos-config.js +125 -0
- package/dist/migrate/export/workos-config.js.map +1 -0
- package/dist/migrate/export/workos.d.ts +46 -0
- package/dist/migrate/export/workos.js +272 -0
- package/dist/migrate/export/workos.js.map +1 -0
- package/dist/migrate/export/zip.d.ts +8 -0
- package/dist/migrate/export/zip.js +66 -0
- package/dist/migrate/export/zip.js.map +1 -0
- package/dist/migrate/export/zitadel-config.d.ts +37 -0
- package/dist/migrate/export/zitadel-config.js +279 -0
- package/dist/migrate/export/zitadel-config.js.map +1 -0
- package/dist/migrate/export/zitadel.d.ts +82 -0
- package/dist/migrate/export/zitadel.js +447 -0
- package/dist/migrate/export/zitadel.js.map +1 -0
- package/dist/migrate/firebase/plugin.d.ts +2 -0
- package/dist/migrate/firebase/plugin.js +152 -0
- package/dist/migrate/firebase/plugin.js.map +1 -0
- package/dist/migrate/framework/builtins.d.ts +2 -0
- package/dist/migrate/framework/builtins.js +52 -0
- package/dist/migrate/framework/builtins.js.map +1 -0
- package/dist/migrate/framework/commands.d.ts +20 -0
- package/dist/migrate/framework/commands.js +58 -0
- package/dist/migrate/framework/commands.js.map +1 -0
- package/dist/migrate/framework/custom.d.ts +12 -0
- package/dist/migrate/framework/custom.js +96 -0
- package/dist/migrate/framework/custom.js.map +1 -0
- package/dist/migrate/framework/orchestrator.d.ts +113 -0
- package/dist/migrate/framework/orchestrator.js +532 -0
- package/dist/migrate/framework/orchestrator.js.map +1 -0
- package/dist/migrate/framework/plugin.d.ts +167 -0
- package/dist/migrate/framework/plugin.js +3 -0
- package/dist/migrate/framework/plugin.js.map +1 -0
- package/dist/migrate/framework/registry.d.ts +11 -0
- package/dist/migrate/framework/registry.js +44 -0
- package/dist/migrate/framework/registry.js.map +1 -0
- package/dist/migrate/framework/report.d.ts +17 -0
- package/dist/migrate/framework/report.js +103 -0
- package/dist/migrate/framework/report.js.map +1 -0
- package/dist/migrate/frameworks/plugins.d.ts +29 -0
- package/dist/migrate/frameworks/plugins.js +402 -0
- package/dist/migrate/frameworks/plugins.js.map +1 -0
- package/dist/migrate/frameworks/report.d.ts +92 -0
- package/dist/migrate/frameworks/report.js +207 -0
- package/dist/migrate/frameworks/report.js.map +1 -0
- package/dist/migrate/frameworks/translate-js.d.ts +5 -0
- package/dist/migrate/frameworks/translate-js.js +503 -0
- package/dist/migrate/frameworks/translate-js.js.map +1 -0
- package/dist/migrate/frameworks/translate-rails-django.d.ts +3 -0
- package/dist/migrate/frameworks/translate-rails-django.js +1391 -0
- package/dist/migrate/frameworks/translate-rails-django.js.map +1 -0
- package/dist/migrate/frontegg/plugin.d.ts +2 -0
- package/dist/migrate/frontegg/plugin.js +78 -0
- package/dist/migrate/frontegg/plugin.js.map +1 -0
- package/dist/migrate/fusionauth/plugin.d.ts +2 -0
- package/dist/migrate/fusionauth/plugin.js +109 -0
- package/dist/migrate/fusionauth/plugin.js.map +1 -0
- package/dist/migrate/hanko/plugin.d.ts +2 -0
- package/dist/migrate/hanko/plugin.js +100 -0
- package/dist/migrate/hanko/plugin.js.map +1 -0
- package/dist/migrate/keycloak/plugin.d.ts +2 -0
- package/dist/migrate/keycloak/plugin.js +148 -0
- package/dist/migrate/keycloak/plugin.js.map +1 -0
- package/dist/migrate/kinde/plugin.d.ts +2 -0
- package/dist/migrate/kinde/plugin.js +105 -0
- package/dist/migrate/kinde/plugin.js.map +1 -0
- package/dist/migrate/ldap/plugin.d.ts +2 -0
- package/dist/migrate/ldap/plugin.js +73 -0
- package/dist/migrate/ldap/plugin.js.map +1 -0
- package/dist/migrate/logto/plugin.d.ts +2 -0
- package/dist/migrate/logto/plugin.js +131 -0
- package/dist/migrate/logto/plugin.js.map +1 -0
- package/dist/migrate/magic/plugin.d.ts +2 -0
- package/dist/migrate/magic/plugin.js +56 -0
- package/dist/migrate/magic/plugin.js.map +1 -0
- package/dist/migrate/nhost/plugin.d.ts +2 -0
- package/dist/migrate/nhost/plugin.js +115 -0
- package/dist/migrate/nhost/plugin.js.map +1 -0
- package/dist/migrate/oidc/plugin.d.ts +2 -0
- package/dist/migrate/oidc/plugin.js +73 -0
- package/dist/migrate/oidc/plugin.js.map +1 -0
- package/dist/migrate/okta/plugin.d.ts +2 -0
- package/dist/migrate/okta/plugin.js +105 -0
- package/dist/migrate/okta/plugin.js.map +1 -0
- package/dist/migrate/onelogin/plugin.d.ts +2 -0
- package/dist/migrate/onelogin/plugin.js +61 -0
- package/dist/migrate/onelogin/plugin.js.map +1 -0
- package/dist/migrate/ory/plugin.d.ts +2 -0
- package/dist/migrate/ory/plugin.js +186 -0
- package/dist/migrate/ory/plugin.js.map +1 -0
- package/dist/migrate/ping-identity/plugin.d.ts +2 -0
- package/dist/migrate/ping-identity/plugin.js +100 -0
- package/dist/migrate/ping-identity/plugin.js.map +1 -0
- package/dist/migrate/pocketbase/plugin.d.ts +2 -0
- package/dist/migrate/pocketbase/plugin.js +99 -0
- package/dist/migrate/pocketbase/plugin.js.map +1 -0
- package/dist/migrate/propelauth/plugin.d.ts +2 -0
- package/dist/migrate/propelauth/plugin.js +65 -0
- package/dist/migrate/propelauth/plugin.js.map +1 -0
- package/dist/migrate/saml/plugin.d.ts +2 -0
- package/dist/migrate/saml/plugin.js +79 -0
- package/dist/migrate/saml/plugin.js.map +1 -0
- package/dist/migrate/stytch/plugin.d.ts +2 -0
- package/dist/migrate/stytch/plugin.js +97 -0
- package/dist/migrate/stytch/plugin.js.map +1 -0
- package/dist/migrate/supabase/plugin.d.ts +2 -0
- package/dist/migrate/supabase/plugin.js +149 -0
- package/dist/migrate/supabase/plugin.js.map +1 -0
- package/dist/migrate/supertokens/plugin.d.ts +2 -0
- package/dist/migrate/supertokens/plugin.js +114 -0
- package/dist/migrate/supertokens/plugin.js.map +1 -0
- package/dist/migrate/user-table/plugin.d.ts +2 -0
- package/dist/migrate/user-table/plugin.js +62 -0
- package/dist/migrate/user-table/plugin.js.map +1 -0
- package/dist/migrate/userfront/plugin.d.ts +2 -0
- package/dist/migrate/userfront/plugin.js +60 -0
- package/dist/migrate/userfront/plugin.js.map +1 -0
- package/dist/migrate/workos/plugin.d.ts +2 -0
- package/dist/migrate/workos/plugin.js +81 -0
- package/dist/migrate/workos/plugin.js.map +1 -0
- package/dist/migrate/zitadel/plugin.d.ts +2 -0
- package/dist/migrate/zitadel/plugin.js +114 -0
- package/dist/migrate/zitadel/plugin.js.map +1 -0
- package/dist/output.d.ts +41 -0
- package/dist/output.js +72 -0
- package/dist/output.js.map +1 -0
- package/dist/project.d.ts +64 -0
- package/dist/project.js +86 -0
- package/dist/project.js.map +1 -0
- package/dist/prompt.d.ts +15 -0
- package/dist/prompt.js +46 -0
- package/dist/prompt.js.map +1 -0
- package/dist/run.d.ts +12 -0
- package/dist/run.js +157 -0
- package/dist/run.js.map +1 -0
- package/dist/secrets.d.ts +41 -0
- package/dist/secrets.js +142 -0
- package/dist/secrets.js.map +1 -0
- package/dist/serialize.d.ts +30 -0
- package/dist/serialize.js +131 -0
- package/dist/serialize.js.map +1 -0
- package/dist/version.d.ts +7 -0
- package/dist/version.js +21 -0
- package/dist/version.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { IO } from './io';
|
|
2
|
+
export declare function assertProductName(product: string): string;
|
|
3
|
+
/** `$XDG_CONFIG_HOME/<product>` (default `~/.config/<product>`). */
|
|
4
|
+
export declare function productDir(env: NodeJS.ProcessEnv, product: string): string;
|
|
5
|
+
export declare function renderDotenv(entries: Record<string, string>, comment?: string): string;
|
|
6
|
+
/** Parse a dotenv file this CLI wrote (KEY=value lines, `#` comments). */
|
|
7
|
+
export declare function parseDotenv(text: string): Record<string, string>;
|
|
8
|
+
/**
|
|
9
|
+
* Write a 0600 dotenv file inside a 0700 directory. Refuses an existing file
|
|
10
|
+
* unless `force` (the same content is not a conflict: a re-run is a no-op).
|
|
11
|
+
* Returns the path.
|
|
12
|
+
*/
|
|
13
|
+
export declare function writeSecretFile(dir: string, fileName: string, entries: Record<string, string>, opts?: {
|
|
14
|
+
force?: boolean;
|
|
15
|
+
comment?: string;
|
|
16
|
+
}): {
|
|
17
|
+
path: string;
|
|
18
|
+
written: boolean;
|
|
19
|
+
};
|
|
20
|
+
/** Read one of the CLI's env files, or undefined when it does not exist. */
|
|
21
|
+
export declare function readEnvFile(path: string): Record<string, string> | undefined;
|
|
22
|
+
/** The env files in a product directory (for `atlas env`). */
|
|
23
|
+
export declare function listEnvFiles(dir: string): string[];
|
|
24
|
+
/**
|
|
25
|
+
* The common "a secret arrived" path for single-secret commands: write it to
|
|
26
|
+
* `<dir>/<fileName>` (0600) and print the path, or — only with
|
|
27
|
+
* `--print-secret` — print it after a warning on stderr.
|
|
28
|
+
*/
|
|
29
|
+
export declare function deliverSecret(input: {
|
|
30
|
+
io: IO;
|
|
31
|
+
env: NodeJS.ProcessEnv;
|
|
32
|
+
product: string;
|
|
33
|
+
fileName: string;
|
|
34
|
+
entries: Record<string, string>;
|
|
35
|
+
label: string;
|
|
36
|
+
printSecret?: boolean;
|
|
37
|
+
force?: boolean;
|
|
38
|
+
comment?: string;
|
|
39
|
+
}): {
|
|
40
|
+
path?: string;
|
|
41
|
+
};
|
package/dist/secrets.js
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertProductName = assertProductName;
|
|
4
|
+
exports.productDir = productDir;
|
|
5
|
+
exports.renderDotenv = renderDotenv;
|
|
6
|
+
exports.parseDotenv = parseDotenv;
|
|
7
|
+
exports.writeSecretFile = writeSecretFile;
|
|
8
|
+
exports.readEnvFile = readEnvFile;
|
|
9
|
+
exports.listEnvFiles = listEnvFiles;
|
|
10
|
+
exports.deliverSecret = deliverSecret;
|
|
11
|
+
const node_fs_1 = require("node:fs");
|
|
12
|
+
const node_os_1 = require("node:os");
|
|
13
|
+
const node_path_1 = require("node:path");
|
|
14
|
+
const errors_1 = require("./errors");
|
|
15
|
+
/**
|
|
16
|
+
* Secrets the CLI receives are written to disk, never printed.
|
|
17
|
+
*
|
|
18
|
+
* Every command that gets a secret back from the API (an instance secret key,
|
|
19
|
+
* an OAuth client secret, a webhook signing secret, an end-user API key) writes
|
|
20
|
+
* it to a dotenv file under `~/.config/<product>/` — directory 0700, file 0600 —
|
|
21
|
+
* and prints only the file path. `--print-secret` is the one explicit opt-out,
|
|
22
|
+
* and it prints a warning first. An existing file is never overwritten unless
|
|
23
|
+
* the command was given `--force`, so a re-run cannot silently destroy the only
|
|
24
|
+
* copy of a working secret.
|
|
25
|
+
*
|
|
26
|
+
* The product name doubles as the directory name, so it is restricted to a safe
|
|
27
|
+
* slug (no path separators, no dot-dot).
|
|
28
|
+
*/
|
|
29
|
+
const PRODUCT_RE = /^[a-z0-9][a-z0-9_-]{0,62}$/i;
|
|
30
|
+
function assertProductName(product) {
|
|
31
|
+
if (!PRODUCT_RE.test(product)) {
|
|
32
|
+
throw new errors_1.CliError(`--product must be letters, digits, '-' or '_' (up to 63 characters), got '${product}'.`);
|
|
33
|
+
}
|
|
34
|
+
return product;
|
|
35
|
+
}
|
|
36
|
+
/** `$XDG_CONFIG_HOME/<product>` (default `~/.config/<product>`). */
|
|
37
|
+
function productDir(env, product) {
|
|
38
|
+
const base = env.XDG_CONFIG_HOME?.trim() || (0, node_path_1.join)(env.HOME?.trim() || (0, node_os_1.homedir)(), '.config');
|
|
39
|
+
return (0, node_path_1.join)(base, assertProductName(product));
|
|
40
|
+
}
|
|
41
|
+
/** Quote a dotenv value when it needs it. Secrets are token-shaped, so this is rarely used. */
|
|
42
|
+
function dotenvValue(v) {
|
|
43
|
+
return /^[A-Za-z0-9_./:@+=,-]*$/.test(v) ? v : JSON.stringify(v);
|
|
44
|
+
}
|
|
45
|
+
function renderDotenv(entries, comment) {
|
|
46
|
+
const lines = comment ? comment.split('\n').map((l) => `# ${l}`) : [];
|
|
47
|
+
for (const [k, v] of Object.entries(entries))
|
|
48
|
+
lines.push(`${k}=${dotenvValue(v)}`);
|
|
49
|
+
return lines.join('\n') + '\n';
|
|
50
|
+
}
|
|
51
|
+
/** Parse a dotenv file this CLI wrote (KEY=value lines, `#` comments). */
|
|
52
|
+
function parseDotenv(text) {
|
|
53
|
+
const out = {};
|
|
54
|
+
for (const raw of text.split(/\r?\n/)) {
|
|
55
|
+
const line = raw.trim();
|
|
56
|
+
if (!line || line.startsWith('#'))
|
|
57
|
+
continue;
|
|
58
|
+
const i = line.indexOf('=');
|
|
59
|
+
if (i < 1)
|
|
60
|
+
continue;
|
|
61
|
+
const key = line.slice(0, i).trim();
|
|
62
|
+
let value = line.slice(i + 1).trim();
|
|
63
|
+
if (value.startsWith('"') && value.endsWith('"')) {
|
|
64
|
+
try {
|
|
65
|
+
value = JSON.parse(value);
|
|
66
|
+
}
|
|
67
|
+
catch {
|
|
68
|
+
/* keep raw */
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
out[key] = value;
|
|
72
|
+
}
|
|
73
|
+
return out;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Write a 0600 dotenv file inside a 0700 directory. Refuses an existing file
|
|
77
|
+
* unless `force` (the same content is not a conflict: a re-run is a no-op).
|
|
78
|
+
* Returns the path.
|
|
79
|
+
*/
|
|
80
|
+
function writeSecretFile(dir, fileName, entries, opts = {}) {
|
|
81
|
+
if (fileName.includes('/') || fileName.includes('\\') || fileName.startsWith('.')) {
|
|
82
|
+
throw new errors_1.CliError(`Refusing to write a secret file named '${fileName}'.`);
|
|
83
|
+
}
|
|
84
|
+
const path = (0, node_path_1.join)(dir, fileName);
|
|
85
|
+
const content = renderDotenv(entries, opts.comment);
|
|
86
|
+
(0, node_fs_1.mkdirSync)(dir, { recursive: true, mode: 0o700 });
|
|
87
|
+
(0, node_fs_1.chmodSync)(dir, 0o700);
|
|
88
|
+
if ((0, node_fs_1.existsSync)(path)) {
|
|
89
|
+
const current = (0, node_fs_1.readFileSync)(path, 'utf8');
|
|
90
|
+
if (current === content) {
|
|
91
|
+
(0, node_fs_1.chmodSync)(path, 0o600);
|
|
92
|
+
return { path, written: false };
|
|
93
|
+
}
|
|
94
|
+
if (!opts.force) {
|
|
95
|
+
throw new errors_1.CliError(`${path} already exists and holds a different secret. Nothing was overwritten. Move it aside, or re-run with --force to replace it.`);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
// Write THEN chmod: `mode` is masked by umask and ignored for an existing file.
|
|
99
|
+
(0, node_fs_1.writeFileSync)(path, content, { mode: 0o600 });
|
|
100
|
+
(0, node_fs_1.chmodSync)(path, 0o600);
|
|
101
|
+
return { path, written: true };
|
|
102
|
+
}
|
|
103
|
+
/** Read one of the CLI's env files, or undefined when it does not exist. */
|
|
104
|
+
function readEnvFile(path) {
|
|
105
|
+
try {
|
|
106
|
+
return parseDotenv((0, node_fs_1.readFileSync)(path, 'utf8'));
|
|
107
|
+
}
|
|
108
|
+
catch {
|
|
109
|
+
return undefined;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
/** The env files in a product directory (for `atlas env`). */
|
|
113
|
+
function listEnvFiles(dir) {
|
|
114
|
+
try {
|
|
115
|
+
return (0, node_fs_1.readdirSync)(dir)
|
|
116
|
+
.filter((f) => f.endsWith('.env'))
|
|
117
|
+
.sort();
|
|
118
|
+
}
|
|
119
|
+
catch {
|
|
120
|
+
return [];
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* The common "a secret arrived" path for single-secret commands: write it to
|
|
125
|
+
* `<dir>/<fileName>` (0600) and print the path, or — only with
|
|
126
|
+
* `--print-secret` — print it after a warning on stderr.
|
|
127
|
+
*/
|
|
128
|
+
function deliverSecret(input) {
|
|
129
|
+
if (input.printSecret) {
|
|
130
|
+
input.io.err(`atlas: warning: printing ${input.label} because --print-secret was given. It may end up in your shell history, terminal scrollback or CI logs.`);
|
|
131
|
+
for (const [k, v] of Object.entries(input.entries))
|
|
132
|
+
input.io.out(`${k}=${v}`);
|
|
133
|
+
return {};
|
|
134
|
+
}
|
|
135
|
+
const { path } = writeSecretFile(productDir(input.env, input.product), input.fileName, input.entries, {
|
|
136
|
+
force: input.force,
|
|
137
|
+
comment: input.comment,
|
|
138
|
+
});
|
|
139
|
+
input.io.out(`${input.label} written to ${path} (mode 0600).`);
|
|
140
|
+
return { path };
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=secrets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secrets.js","sourceRoot":"","sources":["../src/secrets.ts"],"names":[],"mappings":";;AAuBA,8CAOC;AAGD,gCAGC;AAOD,oCAIC;AAGD,kCAmBC;AAOD,0CA6BC;AAGD,kCAMC;AAGD,oCAQC;AAOD,sCAwBC;AA5JD,qCAAqG;AACrG,qCAAkC;AAClC,yCAAiC;AACjC,qCAAoC;AAGpC;;;;;;;;;;;;;GAaG;AAEH,MAAM,UAAU,GAAG,6BAA6B,CAAC;AAEjD,SAAgB,iBAAiB,CAAC,OAAe;IAC/C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QAC9B,MAAM,IAAI,iBAAQ,CAChB,6EAA6E,OAAO,IAAI,CACzF,CAAC;IACJ,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,oEAAoE;AACpE,SAAgB,UAAU,CAAC,GAAsB,EAAE,OAAe;IAChE,MAAM,IAAI,GAAG,GAAG,CAAC,eAAe,EAAE,I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;IACC,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC;QACtB,KAAK,CAAC,EAAE,CAAC,GAAG,CACV,4BAA4B,KAAK,CAAC,KAAK,yGAAyG,CACjJ,CAAC;QACF,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC;YAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC9E,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,MAAM,EAAE,IAAI,EAAE,GAAG,eAAe,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,OAAO,EAAE;QACpG,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,OAAO,EAAE,KAAK,CAAC,OAAO;KACvB,CAAC,CAAC;IACH,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,KAAK,eAAe,IAAI,eAAe,CAAC,CAAC;IAC/D,OAAO,EAAE,IAAI,EAAE,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The on-disk format for `atlas config` — the config-as-code layer. Two
|
|
3
|
+
* concerns live here, kept away from the command logic:
|
|
4
|
+
*
|
|
5
|
+
* 1. CANONICALIZATION. A value is normalised before it is written or compared
|
|
6
|
+
* so an export is byte-for-byte deterministic and a round-trip is a no-op
|
|
7
|
+
* diff. We sort object keys (the same rule Go's `json.Marshal` and the
|
|
8
|
+
* Terraform provider's `canonicalJSON` use) and PRESERVE array order — so a
|
|
9
|
+
* field whose order is meaningful (a claim mapping, an auth_config list) is
|
|
10
|
+
* never silently reordered.
|
|
11
|
+
*
|
|
12
|
+
* 2. THE CODEC. JSON is the robust default. YAML is offered for readable diffs
|
|
13
|
+
* in a repo; we WRITE a small subset where every map key and every scalar is
|
|
14
|
+
* JSON-encoded (it round-trips exactly: newlines, URL-shaped keys, unicode),
|
|
15
|
+
* and READ any YAML, so a hand-written atlas.yaml works too.
|
|
16
|
+
*/
|
|
17
|
+
export type Json = string | number | boolean | null | Json[] | {
|
|
18
|
+
[k: string]: Json;
|
|
19
|
+
};
|
|
20
|
+
export type Format = 'json' | 'yaml';
|
|
21
|
+
/** A plain JSON value with all object keys recursively sorted; arrays untouched. */
|
|
22
|
+
export declare function canonicalize(value: unknown): Json;
|
|
23
|
+
/** Canonical JSON string — the equality oracle for the diff engine. */
|
|
24
|
+
export declare function canonicalString(value: unknown): string;
|
|
25
|
+
/** True when two config values are equal after canonicalization. */
|
|
26
|
+
export declare function deepEqual(a: unknown, b: unknown): boolean;
|
|
27
|
+
/** Serialize a canonicalizable value to the chosen format, with a trailing newline. */
|
|
28
|
+
export declare function serialize(value: unknown, format: Format): string;
|
|
29
|
+
/** Parse a document written by {@link serialize}. */
|
|
30
|
+
export declare function deserialize(text: string, format: Format): Json;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* The on-disk format for `atlas config` — the config-as-code layer. Two
|
|
4
|
+
* concerns live here, kept away from the command logic:
|
|
5
|
+
*
|
|
6
|
+
* 1. CANONICALIZATION. A value is normalised before it is written or compared
|
|
7
|
+
* so an export is byte-for-byte deterministic and a round-trip is a no-op
|
|
8
|
+
* diff. We sort object keys (the same rule Go's `json.Marshal` and the
|
|
9
|
+
* Terraform provider's `canonicalJSON` use) and PRESERVE array order — so a
|
|
10
|
+
* field whose order is meaningful (a claim mapping, an auth_config list) is
|
|
11
|
+
* never silently reordered.
|
|
12
|
+
*
|
|
13
|
+
* 2. THE CODEC. JSON is the robust default. YAML is offered for readable diffs
|
|
14
|
+
* in a repo; we WRITE a small subset where every map key and every scalar is
|
|
15
|
+
* JSON-encoded (it round-trips exactly: newlines, URL-shaped keys, unicode),
|
|
16
|
+
* and READ any YAML, so a hand-written atlas.yaml works too.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.canonicalize = canonicalize;
|
|
20
|
+
exports.canonicalString = canonicalString;
|
|
21
|
+
exports.deepEqual = deepEqual;
|
|
22
|
+
exports.serialize = serialize;
|
|
23
|
+
exports.deserialize = deserialize;
|
|
24
|
+
const yaml_1 = require("yaml");
|
|
25
|
+
/** A plain JSON value with all object keys recursively sorted; arrays untouched. */
|
|
26
|
+
function canonicalize(value) {
|
|
27
|
+
if (value === null || value === undefined)
|
|
28
|
+
return null;
|
|
29
|
+
if (Array.isArray(value))
|
|
30
|
+
return value.map((v) => canonicalize(v));
|
|
31
|
+
if (typeof value === 'object') {
|
|
32
|
+
const out = {};
|
|
33
|
+
for (const key of Object.keys(value).sort()) {
|
|
34
|
+
const v = value[key];
|
|
35
|
+
if (v === undefined)
|
|
36
|
+
continue; // omit undefined so it never reaches disk
|
|
37
|
+
out[key] = canonicalize(v);
|
|
38
|
+
}
|
|
39
|
+
return out;
|
|
40
|
+
}
|
|
41
|
+
if (typeof value === 'number' || typeof value === 'boolean' || typeof value === 'string') {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
// Functions, symbols, bigint: not part of a config document.
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
/** Canonical JSON string — the equality oracle for the diff engine. */
|
|
48
|
+
function canonicalString(value) {
|
|
49
|
+
return JSON.stringify(canonicalize(value));
|
|
50
|
+
}
|
|
51
|
+
/** True when two config values are equal after canonicalization. */
|
|
52
|
+
function deepEqual(a, b) {
|
|
53
|
+
return canonicalString(a) === canonicalString(b);
|
|
54
|
+
}
|
|
55
|
+
/** Serialize a canonicalizable value to the chosen format, with a trailing newline. */
|
|
56
|
+
function serialize(value, format) {
|
|
57
|
+
const canon = canonicalize(value);
|
|
58
|
+
if (format === 'json')
|
|
59
|
+
return JSON.stringify(canon, null, 2) + '\n';
|
|
60
|
+
return emitYaml(canon, 0) + '\n';
|
|
61
|
+
}
|
|
62
|
+
/** Parse a document written by {@link serialize}. */
|
|
63
|
+
function deserialize(text, format) {
|
|
64
|
+
if (format === 'json')
|
|
65
|
+
return JSON.parse(text);
|
|
66
|
+
return parseYaml(text);
|
|
67
|
+
}
|
|
68
|
+
// ─────────────────────────────── YAML emit ───────────────────────────────
|
|
69
|
+
const INDENT = ' ';
|
|
70
|
+
function emitYaml(value, depth) {
|
|
71
|
+
const pad = INDENT.repeat(depth);
|
|
72
|
+
if (Array.isArray(value)) {
|
|
73
|
+
if (value.length === 0)
|
|
74
|
+
return `${pad}[]`;
|
|
75
|
+
return value.map((item) => emitSeqItem(item, depth)).join('\n');
|
|
76
|
+
}
|
|
77
|
+
if (value !== null && typeof value === 'object') {
|
|
78
|
+
const keys = Object.keys(value);
|
|
79
|
+
if (keys.length === 0)
|
|
80
|
+
return `${pad}{}`;
|
|
81
|
+
return keys.map((key) => emitMapEntry(key, value[key], depth)).join('\n');
|
|
82
|
+
}
|
|
83
|
+
// A bare scalar document.
|
|
84
|
+
return `${pad}${JSON.stringify(value)}`;
|
|
85
|
+
}
|
|
86
|
+
function emitMapEntry(key, value, depth) {
|
|
87
|
+
const pad = INDENT.repeat(depth);
|
|
88
|
+
const k = JSON.stringify(key);
|
|
89
|
+
if (isContainer(value) && !isEmptyContainer(value)) {
|
|
90
|
+
return `${pad}${k}:\n${emitYaml(value, depth + 1)}`;
|
|
91
|
+
}
|
|
92
|
+
return `${pad}${k}: ${scalarOrEmpty(value)}`;
|
|
93
|
+
}
|
|
94
|
+
function emitSeqItem(value, depth) {
|
|
95
|
+
const pad = INDENT.repeat(depth);
|
|
96
|
+
if (isContainer(value) && !isEmptyContainer(value)) {
|
|
97
|
+
return `${pad}-\n${emitYaml(value, depth + 1)}`;
|
|
98
|
+
}
|
|
99
|
+
return `${pad}- ${scalarOrEmpty(value)}`;
|
|
100
|
+
}
|
|
101
|
+
function scalarOrEmpty(value) {
|
|
102
|
+
if (Array.isArray(value))
|
|
103
|
+
return '[]';
|
|
104
|
+
if (value !== null && typeof value === 'object')
|
|
105
|
+
return '{}';
|
|
106
|
+
return JSON.stringify(value);
|
|
107
|
+
}
|
|
108
|
+
function isContainer(v) {
|
|
109
|
+
return Array.isArray(v) || (v !== null && typeof v === 'object');
|
|
110
|
+
}
|
|
111
|
+
function isEmptyContainer(v) {
|
|
112
|
+
if (Array.isArray(v))
|
|
113
|
+
return v.length === 0;
|
|
114
|
+
if (v !== null && typeof v === 'object')
|
|
115
|
+
return Object.keys(v).length === 0;
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
// ─────────────────────────────── YAML parse ───────────────────────────────
|
|
119
|
+
/**
|
|
120
|
+
* Any YAML 1.2 document: our own export (JSON-encoded keys and scalars) and a
|
|
121
|
+
* hand-written atlas.yaml with plain keys alike.
|
|
122
|
+
*/
|
|
123
|
+
function parseYaml(text) {
|
|
124
|
+
try {
|
|
125
|
+
return ((0, yaml_1.parse)(text) ?? null);
|
|
126
|
+
}
|
|
127
|
+
catch (err) {
|
|
128
|
+
throw new Error(`atlas config: invalid YAML: ${err.message}`);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=serialize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialize.js","sourceRoot":"","sources":["../src/serialize.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAQH,oCAiBC;AAGD,0CAEC;AAGD,8BAEC;AAGD,8BAIC;AAGD,kCAGC;AA9CD,+BAAkD;AAKlD,oFAAoF;AACpF,SAAgB,YAAY,CAAC,KAAc;IACzC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IACvD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YA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B,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAAE,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;IAC5C,IAAI,CAAC,KAAK,IAAI,IAAI,OAAO,CAAC,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;IAC5E,OAAO,KAAK,CAAC;AACf,CAAC;AAED,6EAA6E;AAE7E;;;GAGG;AACH,SAAS,SAAS,CAAC,IAAY;IAC7B,IAAI,CAAC;QACH,OAAO,CAAC,IAAA,YAAiB,EAAC,IAAI,CAAC,IAAI,IAAI,CAAS,CAAC;IACnD,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,+BAAgC,GAAa,CAAC,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read the package version from the shipped package.json at runtime rather than
|
|
3
|
+
* importing it — `src/` is the tsc rootDir, so a static `import ../package.json`
|
|
4
|
+
* would both break rootDir and bake a stale number into the bundle. At runtime
|
|
5
|
+
* `__dirname` is `dist/`, so `../package.json` is the real manifest beside it.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getVersion(): string;
|
package/dist/version.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getVersion = getVersion;
|
|
4
|
+
const node_fs_1 = require("node:fs");
|
|
5
|
+
const node_path_1 = require("node:path");
|
|
6
|
+
/**
|
|
7
|
+
* Read the package version from the shipped package.json at runtime rather than
|
|
8
|
+
* importing it — `src/` is the tsc rootDir, so a static `import ../package.json`
|
|
9
|
+
* would both break rootDir and bake a stale number into the bundle. At runtime
|
|
10
|
+
* `__dirname` is `dist/`, so `../package.json` is the real manifest beside it.
|
|
11
|
+
*/
|
|
12
|
+
function getVersion() {
|
|
13
|
+
try {
|
|
14
|
+
const manifest = JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(__dirname, '..', 'package.json'), 'utf8'));
|
|
15
|
+
return manifest.version ?? '0.0.0';
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
return '0.0.0';
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;AASA,gCASC;AAlBD,qCAAuC;AACvC,yCAAiC;AAEjC;;;;;GAKG;AACH,SAAgB,UAAU;IACxB,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,sBAAY,EAAC,IAAA,gBAAI,EAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,EAAE,MAAM,CAAC,CAEtF,CAAC;QACF,OAAO,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC;IACrC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,OAAO,CAAC;IACjB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlasauth/cli",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"description": "atlas — manage an Atlas instance from the terminal via the Backend API.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"atlas": "dist/cli.js"
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"yaml": "^2.6.0",
|
|
19
19
|
"@atlasauth/actions": "0.5.0",
|
|
20
20
|
"@atlasauth/backend": "0.35.0",
|
|
21
|
-
"@atlasauth/
|
|
21
|
+
"@atlasauth/migrate": "0.2.0",
|
|
22
22
|
"@atlasauth/upgrade": "0.7.0",
|
|
23
23
|
"@atlasauth/referral-conformance": "0.2.1",
|
|
24
|
-
"@atlasauth/
|
|
24
|
+
"@atlasauth/emulator": "0.1.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^22.9.0",
|