neon 8.13.2 → 8.15.0
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/README.md +1 -1
- package/dist/_chunks/{api-GbEaBZJ5.js → api-1MKsfpY3.js} +2 -3
- package/dist/_chunks/{api_keys-CNnnugbQ.js → api_keys-6Xnxl7a8.js} +2 -3
- package/dist/_chunks/{ask-DVwy0eUL.js → ask-Xlek1Pxh.js} +2 -3
- package/dist/_chunks/{auth-CIUtXByB.js → auth-rup6nemJ.js} +44 -8
- package/dist/_chunks/{auth_selection-YX5_KZgD.js → auth_selection-CwGLN9Qz.js} +2 -3
- package/dist/_chunks/{bootstrap-wPZWa1sT.js → bootstrap-BDkvsAVJ.js} +2 -3
- package/dist/_chunks/{branches-BNa1xX1L.js → branches-Bp-5z1lM.js} +2 -3
- package/dist/_chunks/{bucket-BCdryTkD.js → bucket-D06bvDSa.js} +2 -3
- package/dist/_chunks/{checkout-CXIOydqZ.js → checkout-BpOcFaAi.js} +5 -6
- package/dist/_chunks/{claim-DqAvAvDm.js → claim-DlLZmcq0.js} +4 -5
- package/dist/_chunks/{cmd_pipeline-CEk93dGN.js → cmd_pipeline-BDE-TGto.js} +3 -6
- package/dist/_chunks/{config-BH_qRHiG.js → config-BjCm5cfr.js} +59 -8
- package/dist/_chunks/{connection_string-DB4awPzZ.js → connection_string-C9e7N4xk.js} +3 -4
- package/dist/_chunks/{credential_io-BS-0Pmwc.js → credential_io-DbeSh3Pl.js} +6 -9
- package/dist/_chunks/{credentials-BSjE9fRR.js → credentials-BMBNmW0t.js} +2 -3
- package/dist/_chunks/{data_api-Djxj5ZQD.js → data_api-CHDwvMTG.js} +2 -3
- package/dist/_chunks/{databases-Dok4wru7.js → databases-DC2h6IW2.js} +2 -3
- package/dist/_chunks/{deploy-D7B0Xfjg.js → deploy-DmEEhux0.js} +3 -4
- package/dist/_chunks/{dev-CSvxAecE.js → dev-DlUJFzRs.js} +7 -8
- package/dist/_chunks/{diff-DhxxbdQE.js → diff-dnxneH0u.js} +2 -3
- package/dist/_chunks/{docs-CrVybkTP.js → docs-CClmgj_Z.js} +2 -3
- package/dist/_chunks/{env-5HS5qQGd.js → env-BOt9AZ1j.js} +4 -5
- package/dist/_chunks/{env-BNm69Qh8.js → env-CIFMBEon.js} +3 -5
- package/dist/_chunks/{env-BpP3Dqpe.js → env-JgoSsmyt.js} +2 -3
- package/dist/_chunks/{feedback-CMayyTa8.js → feedback-mQmdTRFn.js} +2 -3
- package/dist/_chunks/{functions-Q0zuvtnk.js → functions-3ypiRwZK.js} +2 -3
- package/dist/_chunks/{git-H32TNt6M.js → git-j6xSVo3e.js} +4 -5
- package/dist/_chunks/{init-BkA6RilG.js → init-CcVJb492.js} +3 -4
- package/dist/_chunks/{inspect-g0wekylj.js → inspect-yFAb61qo.js} +2 -3
- package/dist/_chunks/{ip_allow-5lLFvIuE.js → ip_allow-DBdxNEUa.js} +2 -3
- package/dist/_chunks/{link-BgtkOBws.js → link-nAiuWKfg.js} +6 -7
- package/dist/_chunks/{logs-DWkpjzIH.js → logs-BB4uvblR.js} +2 -3
- package/dist/_chunks/{mcp-Bo-7TKc7.js → mcp-BznTRK3w.js} +2 -3
- package/dist/_chunks/{neon_auth-DpF83S24.js → neon_auth-Dw-ucM5Y.js} +102 -28
- package/dist/_chunks/{open-CX3BT3Tp.js → open-T2nI89Oh.js} +2 -3
- package/dist/_chunks/{operations-D4I-AxVs.js → operations-CzaR_uqx.js} +2 -3
- package/dist/_chunks/{orgs-xGfANwHQ.js → orgs-Dpbr-K0A.js} +2 -3
- package/dist/_chunks/{paths-DMq0Lt7a.js → paths-B55ZfOg1.js} +1 -2
- package/dist/_chunks/{plugins-Dj0H6lDA.js → plugins-CKOcBuuP.js} +2 -3
- package/dist/_chunks/{profile-yXOiKk9R.js → profile-BAlM625e.js} +9 -10
- package/dist/_chunks/{profiles-DIB1av2Q.js → profiles-DTazQtjK.js} +4 -6
- package/dist/_chunks/{projects-BwI2Uo0z.js → projects-a3X4OFEJ.js} +2 -3
- package/dist/_chunks/{psql-BM-doe8e.js → psql-Bce4X0NG.js} +3 -4
- package/dist/_chunks/{psql-BNljLda2.js → psql-DwGeP0IV.js} +2 -4
- package/dist/_chunks/{realtime-BRqIyGR-.js → realtime-BwtzYf5a.js} +2 -3
- package/dist/_chunks/{roles-C3M4q9DS.js → roles-Bd9r8_pX.js} +1 -2
- package/dist/_chunks/{roles-B4w3YT_7.js → roles-xRuu0462.js} +2 -3
- package/dist/_chunks/{rolldown-runtime-8H4AJuhK.js → rolldown-runtime-BJohB4LM.js} +1 -2
- package/dist/_chunks/{secure_file-BucZj4yQ.js → secure_file-Caskdohg.js} +1 -2
- package/dist/_chunks/{set_context-DbrwoImy.js → set_context-ompB6d2D.js} +2 -3
- package/dist/_chunks/{skills-BP6pIm7O.js → skills-DKgafm65.js} +2 -3
- package/dist/_chunks/{snapshots-RJBzW8GM.js → snapshots-DxNhjcco.js} +3 -4
- package/dist/_chunks/{status-DV8Z2kw3.js → status-BC4XXuuE.js} +3 -4
- package/dist/_chunks/{triggers-BrRo1z4b.js → triggers-BfvyeJUC.js} +2 -3
- package/dist/_chunks/{user-dlOGXbX9.js → user-D9mC430O.js} +2 -3
- package/dist/_chunks/{vpc_endpoints-CNb0YfMo.js → vpc_endpoints-C-Y4WK2M.js} +3 -4
- package/dist/_shared/auth_selection.js +1 -2
- package/dist/_shared/credentials.js +1 -2
- package/dist/_shared/paths.js +1 -2
- package/dist/_shared/profiles.js +1 -2
- package/dist/_shared/secure_file.js +1 -2
- package/dist/analytics.js +3 -4
- package/dist/anonymous_id.js +2 -3
- package/dist/api.js +3 -4
- package/dist/auth.js +1 -2
- package/dist/auth_context.js +1 -2
- package/dist/auth_recovery.js +3 -4
- package/dist/claimable/api.js +1 -2
- package/dist/claimable/state.js +2 -3
- package/dist/cli.js +1 -2
- package/dist/commands/api.js +1 -1
- package/dist/commands/api_keys.js +1 -1
- package/dist/commands/ask.js +1 -1
- package/dist/commands/ask_sse.js +1 -2
- package/dist/commands/auth.js +1 -1
- package/dist/commands/bootstrap.js +1 -1
- package/dist/commands/branches.js +1 -1
- package/dist/commands/bucket.js +1 -1
- package/dist/commands/checkout.js +1 -1
- package/dist/commands/claim.js +1 -1
- package/dist/commands/config.js +1 -1
- package/dist/commands/connection_string.js +1 -1
- package/dist/commands/credentials.js +1 -1
- package/dist/commands/data_api.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/deploy.js +1 -1
- package/dist/commands/deploy_help.js +1 -2
- package/dist/commands/dev.js +1 -1
- package/dist/commands/diff.js +1 -1
- package/dist/commands/docs.js +1 -1
- package/dist/commands/env.js +1 -1
- package/dist/commands/env_output.js +2 -3
- package/dist/commands/feedback.js +1 -1
- package/dist/commands/functions.js +1 -1
- package/dist/commands/functions_new.js +2 -3
- package/dist/commands/git.js +1 -1
- package/dist/commands/index.js +46 -47
- package/dist/commands/init.js +1 -1
- package/dist/commands/inspect.js +1 -1
- package/dist/commands/ip_allow.js +1 -1
- package/dist/commands/link.js +1 -1
- package/dist/commands/link_output.js +1 -2
- package/dist/commands/logs.js +1 -1
- package/dist/commands/manifest.js +1 -2
- package/dist/commands/mcp.js +1 -1
- package/dist/commands/neon_auth.js +1 -1
- package/dist/commands/open.js +1 -1
- package/dist/commands/operations.js +1 -1
- package/dist/commands/orgs.js +1 -1
- package/dist/commands/plugins.js +1 -1
- package/dist/commands/profile.js +1 -1
- package/dist/commands/projects.js +1 -1
- package/dist/commands/psql.js +1 -1
- package/dist/commands/realtime.js +1 -1
- package/dist/commands/roles.js +1 -1
- package/dist/commands/schema_diff.js +1 -2
- package/dist/commands/set_context.js +1 -1
- package/dist/commands/skills.js +1 -1
- package/dist/commands/snapshots.js +1 -1
- package/dist/commands/status.js +1 -1
- package/dist/commands/subscribe.js +2 -3
- package/dist/commands/thinking_spinner.js +1 -2
- package/dist/commands/triggers.js +1 -1
- package/dist/commands/user.js +1 -1
- package/dist/commands/vpc_endpoints.js +1 -1
- package/dist/config.js +2 -3
- package/dist/config_edit.js +1 -2
- package/dist/config_format.js +10 -3
- package/dist/config_services.js +1 -2
- package/dist/config_source.js +1 -2
- package/dist/config_template.js +37 -11
- package/dist/context.js +1 -2
- package/dist/credential_io.js +1 -1
- package/dist/current_branch_fast_path.js +1 -2
- package/dist/custom_domains_api.js +1 -2
- package/dist/dev/env.js +1 -1
- package/dist/dev/functions.js +1 -2
- package/dist/dev/inputs.js +1 -2
- package/dist/dev/runtime.js +1 -2
- package/dist/dev/websocket.js +1 -2
- package/dist/env.js +1 -2
- package/dist/env_file.js +1 -2
- package/dist/env_services.js +2 -3
- package/dist/error_reporting.js +80 -160
- package/dist/errors.js +1 -2
- package/dist/functions/registry.js +1 -2
- package/dist/functions/scaffold.js +1 -2
- package/dist/functions/source.js +1 -2
- package/dist/functions_api.js +1 -2
- package/dist/help.js +1 -2
- package/dist/human_table.js +1 -2
- package/dist/index.js +3 -4
- package/dist/init/agents.js +1 -2
- package/dist/init/auth.js +27 -7
- package/dist/init/bootstrap.js +1 -2
- package/dist/init/build_config.js +1 -2
- package/dist/init/cancelled.js +1 -2
- package/dist/init/choices.js +2 -3
- package/dist/init/chrome.js +1 -2
- package/dist/init/copy.js +1 -2
- package/dist/init/detect.js +4 -5
- package/dist/init/detect_host.js +1 -2
- package/dist/init/funnel.js +1 -2
- package/dist/init/link.js +4 -5
- package/dist/init/mode.js +1 -2
- package/dist/init/plan.js +1 -2
- package/dist/init/run.js +30 -9
- package/dist/init/template_title.js +1 -2
- package/dist/init/tooling.js +4 -5
- package/dist/init/wizard.js +2 -3
- package/dist/keyring.js +1 -2
- package/dist/log.js +1 -2
- package/dist/mcp/agents.js +1 -2
- package/dist/mcp/install.js +1 -2
- package/dist/mcp/mint.js +2 -3
- package/dist/mcp/plan.js +1 -2
- package/dist/mcp/targets.js +1 -2
- package/dist/mcp/wizard.js +1 -2
- package/dist/neon_services.js +1 -2
- package/dist/node_version.js +1 -2
- package/dist/notices.js +1 -2
- package/dist/parameters.gen.js +1 -2
- package/dist/pkg.js +1 -2
- package/dist/plugins/plan.js +1 -2
- package/dist/plugins/run.js +1 -2
- package/dist/plugins/targets.js +1 -2
- package/dist/profile_keys.js +1 -2
- package/dist/project.js +1 -2
- package/dist/psql/cli.js +2 -3
- package/dist/psql/command/cmd_cond.js +1 -2
- package/dist/psql/command/cmd_connect.js +1 -2
- package/dist/psql/command/cmd_copy.js +2 -3
- package/dist/psql/command/cmd_describe.js +1 -2
- package/dist/psql/command/cmd_format.js +1 -2
- package/dist/psql/command/cmd_io.js +1 -1
- package/dist/psql/command/cmd_lo.js +1 -2
- package/dist/psql/command/cmd_meta.js +1 -2
- package/dist/psql/command/cmd_misc.js +1 -2
- package/dist/psql/command/cmd_pipeline.js +1 -1
- package/dist/psql/command/cmd_restrict.js +1 -2
- package/dist/psql/command/cmd_show.js +1 -2
- package/dist/psql/command/dispatch.js +2 -3
- package/dist/psql/command/inputQueue.js +1 -2
- package/dist/psql/command/shared.js +1 -2
- package/dist/psql/complete/filenames.js +1 -2
- package/dist/psql/complete/index.js +1 -2
- package/dist/psql/complete/matcher.js +1 -2
- package/dist/psql/complete/psqlVars.js +1 -2
- package/dist/psql/complete/queries.js +1 -2
- package/dist/psql/complete/rules.js +1 -2
- package/dist/psql/core/common.js +1 -1
- package/dist/psql/core/help.js +1 -2
- package/dist/psql/core/mainloop.js +2 -3
- package/dist/psql/core/prompt.js +1 -2
- package/dist/psql/core/settings.js +1 -2
- package/dist/psql/core/sqlHelp.js +1 -2
- package/dist/psql/core/startup.js +1 -1
- package/dist/psql/core/syncVars.js +1 -2
- package/dist/psql/core/variables.js +1 -2
- package/dist/psql/describe/formatters.js +1 -2
- package/dist/psql/describe/processNamePattern.js +1 -2
- package/dist/psql/describe/queries.js +1 -2
- package/dist/psql/describe/versionGate.js +1 -2
- package/dist/psql/index.js +1 -1
- package/dist/psql/io/history.js +1 -2
- package/dist/psql/io/input.js +1 -2
- package/dist/psql/io/lineEditor/buffer.js +1 -2
- package/dist/psql/io/lineEditor/complete.js +1 -2
- package/dist/psql/io/lineEditor/filename.js +1 -2
- package/dist/psql/io/lineEditor/index.js +1 -2
- package/dist/psql/io/lineEditor/keymap.js +1 -2
- package/dist/psql/io/lineEditor/vt100.js +1 -2
- package/dist/psql/io/pgpass.js +1 -2
- package/dist/psql/io/pgservice.js +1 -2
- package/dist/psql/io/psqlrc.js +2 -3
- package/dist/psql/print/aligned.js +1 -2
- package/dist/psql/print/asciidoc.js +1 -2
- package/dist/psql/print/crosstab.js +1 -2
- package/dist/psql/print/csv.js +1 -2
- package/dist/psql/print/html.js +1 -2
- package/dist/psql/print/json.js +1 -2
- package/dist/psql/print/latex.js +1 -2
- package/dist/psql/print/pager.js +1 -2
- package/dist/psql/print/troff.js +1 -2
- package/dist/psql/print/unaligned.js +1 -2
- package/dist/psql/print/units.js +1 -2
- package/dist/psql/scanner/slash.js +1 -2
- package/dist/psql/scanner/sql.js +1 -2
- package/dist/psql/scanner/stringutils.js +1 -2
- package/dist/psql/types/scanner.js +1 -2
- package/dist/psql/wire/connection.js +1 -2
- package/dist/psql/wire/copy.js +1 -2
- package/dist/psql/wire/notify.js +1 -2
- package/dist/psql/wire/pipeline.js +1 -2
- package/dist/psql/wire/protocol.js +1 -2
- package/dist/psql/wire/sasl.js +1 -2
- package/dist/psql/wire/tls.js +1 -2
- package/dist/refresh_lock.js +1 -2
- package/dist/retire_credential.js +2 -3
- package/dist/skills/catalog.js +1 -2
- package/dist/skills/check_worker.js +1 -2
- package/dist/skills/freshness.js +1 -2
- package/dist/skills/plan.js +1 -2
- package/dist/skills/run.js +1 -2
- package/dist/skills/targets.js +1 -2
- package/dist/skills/wizard.js +1 -2
- package/dist/sso_recovery.js +1 -2
- package/dist/storage_api.js +1 -2
- package/dist/test_utils/fixtures.js +1 -2
- package/dist/test_utils/neon_api_server.js +1 -2
- package/dist/test_utils/npm_env.js +1 -2
- package/dist/test_utils/oauth_server.js +1 -2
- package/dist/test_utils/project_dir.js +1 -2
- package/dist/test_utils/registry.js +1 -2
- package/dist/test_utils/rotating_oauth_server.js +1 -2
- package/dist/update_check_worker.js +1 -2
- package/dist/update_notifier.js +1 -2
- package/dist/utils/agent_flag.js +1 -2
- package/dist/utils/agent_picker.js +1 -2
- package/dist/utils/ai_gateway_notice.js +1 -2
- package/dist/utils/api_enums.js +3 -3
- package/dist/utils/auth.js +1 -2
- package/dist/utils/branch_name.js +1 -2
- package/dist/utils/branch_notice.js +1 -2
- package/dist/utils/branch_picker.js +1 -2
- package/dist/utils/cli_name.js +1 -2
- package/dist/utils/compute_units.js +1 -2
- package/dist/utils/config_diff.js +1 -2
- package/dist/utils/enrichers.js +1 -2
- package/dist/utils/esbuild.js +1 -2
- package/dist/utils/flags.js +1 -2
- package/dist/utils/formats.js +1 -2
- package/dist/utils/function_slug.js +1 -2
- package/dist/utils/git.js +1 -2
- package/dist/utils/git_diff.js +1 -2
- package/dist/utils/help_text.js +1 -2
- package/dist/utils/hooks.js +2 -3
- package/dist/utils/inspect_db.js +3 -4
- package/dist/utils/inspect_queries.js +1 -2
- package/dist/utils/json_file.js +1 -2
- package/dist/utils/middlewares.js +2 -3
- package/dist/utils/openapi.js +1 -2
- package/dist/utils/package_manager.js +1 -2
- package/dist/utils/point_in_time.js +1 -2
- package/dist/utils/psql.js +1 -2
- package/dist/utils/repeated_flags.js +1 -2
- package/dist/utils/service_picker.js +2 -3
- package/dist/utils/staging.js +1 -2
- package/dist/utils/string.js +1 -2
- package/dist/utils/ui.js +1 -2
- package/dist/utils/write_sync.js +1 -2
- package/dist/utils/zip.js +1 -2
- package/dist/vendor/postgres-meta/constants.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMeta.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaColumnPrivileges.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaColumns.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaConfig.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaExtensions.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaForeignTables.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaFunctions.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaIndexes.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaMaterializedViews.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaPolicies.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaPublications.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaRelationships.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaRoles.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaSchemas.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaTablePrivileges.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaTables.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaTriggers.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaTypes.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaVersion.js +1 -2
- package/dist/vendor/postgres-meta/lib/PostgresMetaViews.js +1 -2
- package/dist/vendor/postgres-meta/lib/constants.js +1 -2
- package/dist/vendor/postgres-meta/lib/db.js +1 -2
- package/dist/vendor/postgres-meta/lib/generators.js +1 -2
- package/dist/vendor/postgres-meta/lib/helpers.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/column_privileges.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/columns.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/config.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/extensions.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/foreign_tables.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/functions.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/indexes.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/materialized_views.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/policies.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/publications.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/roles.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/schemas.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/table.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/table_privileges.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/table_relationships.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/triggers.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/types.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/version.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/views.sql.js +1 -2
- package/dist/vendor/postgres-meta/lib/sql/views_key_dependencies.sql.js +1 -2
- package/dist/vendor/postgres-meta/templates/typescript.js +1 -2
- package/dist/writer.js +1 -2
- package/package.json +8 -8
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
|
|
2
2
|
import { log } from "../log.js";
|
|
3
3
|
import { isClaimableEnvTarget } from "../claimable/state.js";
|
|
4
4
|
import { getCliName } from "../utils/cli_name.js";
|
|
5
5
|
import { defaultDevEnvFiles, readEnvFile, resolveEnvFilePath } from "../env_file.js";
|
|
6
|
-
import { l as functionBaseUrlKey } from "./env-
|
|
7
|
-
import {
|
|
8
|
-
import { bundleEntry } from "../utils/esbuild.js";
|
|
9
|
-
import { a as resolveDevEnv } from "./env-BNm69Qh8.js";
|
|
10
|
-
import { f as envFlag } from "./config-BH_qRHiG.js";
|
|
6
|
+
import { l as functionBaseUrlKey } from "./env-JgoSsmyt.js";
|
|
7
|
+
import { a as resolveDevEnv } from "./env-CIFMBEon.js";
|
|
11
8
|
import { findConfigFunctionBySource, resolveFunctionsFromConfig } from "../dev/functions.js";
|
|
12
9
|
import { resolveWatchInputs } from "../dev/inputs.js";
|
|
10
|
+
import { branchIdResolve } from "../utils/enrichers.js";
|
|
11
|
+
import { bundleEntry } from "../utils/esbuild.js";
|
|
12
|
+
import { f as envFlag } from "./config-BjCm5cfr.js";
|
|
13
13
|
import { existsSync, mkdirSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
14
14
|
import { basename, dirname, join, relative, resolve } from "node:path";
|
|
15
15
|
import { fileURLToPath } from "node:url";
|
|
@@ -18,7 +18,7 @@ import { spawn, spawnSync } from "node:child_process";
|
|
|
18
18
|
import { bundleAsIs, describeNativeFinding, findUndeclaredNativePackages, resolveEsbuildEntry } from "@neon/config-runtime";
|
|
19
19
|
import { once } from "node:events";
|
|
20
20
|
import { createServer } from "node:net";
|
|
21
|
-
|
|
21
|
+
// src/commands/dev.ts
|
|
22
22
|
var dev_exports = /* @__PURE__ */ __exportAll({
|
|
23
23
|
builder: () => builder,
|
|
24
24
|
captureShellEnv: () => captureShellEnv,
|
|
@@ -941,5 +941,4 @@ const resolveRuntimePath = () => {
|
|
|
941
941
|
if (!existsSync(candidate)) throw new Error(`Could not locate the dev runtime at ${candidate}`);
|
|
942
942
|
return candidate;
|
|
943
943
|
};
|
|
944
|
-
//#endregion
|
|
945
944
|
export { devBundleDir as a, diffUnits as c, handler as d, loadDevEnvFiles as f, sourceFunctionUrlOverlay as g, reportDevCredential as h, describe as i, formatEnvFiles as l, planFunctionsToUnits as m, captureShellEnv as n, devEnvContext as o, localFunctionUrlEnv as p, command as r, dev_exports as s, builder as t, formatEnvSummary as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
|
|
2
2
|
import { log } from "../log.js";
|
|
3
3
|
import { isNeonApiError } from "../api.js";
|
|
4
4
|
import { writer } from "../writer.js";
|
|
@@ -6,7 +6,7 @@ import { looksLikeBranchId } from "../utils/formats.js";
|
|
|
6
6
|
import { fillSingleProject, listAllProjectBranches } from "../utils/enrichers.js";
|
|
7
7
|
import { renderDatabaseSchemaDiff, renderSchemaDiffReport } from "../utils/git_diff.js";
|
|
8
8
|
import chalk from "chalk";
|
|
9
|
-
|
|
9
|
+
// src/commands/diff.ts
|
|
10
10
|
var diff_exports = /* @__PURE__ */ __exportAll({
|
|
11
11
|
builder: () => builder,
|
|
12
12
|
command: () => command,
|
|
@@ -174,5 +174,4 @@ const writeStructured = (props, diffs) => {
|
|
|
174
174
|
"diff"
|
|
175
175
|
] });
|
|
176
176
|
};
|
|
177
|
-
//#endregion
|
|
178
177
|
export { handler as a, diff_exports as i, command as n, describe as r, builder as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
|
|
2
2
|
import { getCliAgent, isCi } from "../env.js";
|
|
3
3
|
import pkg_default from "../pkg.js";
|
|
4
4
|
import { isNetworkError } from "../errors.js";
|
|
@@ -6,7 +6,7 @@ import { resolveOutputWidth, stripAnsi, truncateTo } from "../human_table.js";
|
|
|
6
6
|
import { writer } from "../writer.js";
|
|
7
7
|
import { single } from "../utils/flags.js";
|
|
8
8
|
import chalk from "chalk";
|
|
9
|
-
|
|
9
|
+
// src/commands/docs.ts
|
|
10
10
|
var docs_exports = /* @__PURE__ */ __exportAll({
|
|
11
11
|
DEFAULT_SITE_SEARCH_URL: () => DEFAULT_SITE_SEARCH_URL,
|
|
12
12
|
MAX_LIMIT: () => 40,
|
|
@@ -193,5 +193,4 @@ function parseSearchHits(raw) {
|
|
|
193
193
|
};
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
-
//#endregion
|
|
197
196
|
export { builder as a, docs_exports as c, resolveSiteSearchUrl as d, siteSearchHeaders as f, SITE_SEARCH_CATEGORIES as i, formatSearchResults as l, MAX_LIMIT as n, command as o, MAX_QUERY_LENGTH as r, describe as s, DEFAULT_SITE_SEARCH_URL as t, parseSearchHits as u };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
|
|
2
2
|
import { log } from "../log.js";
|
|
3
3
|
import { ensureGitignored } from "../context.js";
|
|
4
4
|
import { isClaimableEnvTarget } from "../claimable/state.js";
|
|
5
5
|
import { getCliName } from "../utils/cli_name.js";
|
|
6
6
|
import { deprecatedServiceMessage, parseServices, servicesFlagValue, servicesOption } from "../neon_services.js";
|
|
7
7
|
import { mergeEnvFile, readEnvFile, resolveEnvFilePath } from "../env_file.js";
|
|
8
|
-
import { t as NEON_ENV_VAR_KEYS, u as isFunctionBaseUrlKey } from "./env-
|
|
8
|
+
import { t as NEON_ENV_VAR_KEYS, u as isFunctionBaseUrlKey } from "./env-JgoSsmyt.js";
|
|
9
9
|
import { ENV_PULL_KEY_HELP, ENV_PULL_SERVICES, envKeysForSelection, envPullFlagValue, ownedEnvServiceKeys, parseEnvPullKeys } from "../env_services.js";
|
|
10
|
+
import { i as dropClaimableUnsupported, o as resolveNeonEnvVars } from "./env-CIFMBEon.js";
|
|
10
11
|
import { fillSingleProject, resolveBranchRef } from "../utils/enrichers.js";
|
|
11
12
|
import { warnAiGateway } from "../utils/ai_gateway_notice.js";
|
|
12
|
-
import { i as dropClaimableUnsupported, o as resolveNeonEnvVars } from "./env-BNm69Qh8.js";
|
|
13
13
|
import { formatPulledEnv, pulledBranch } from "../commands/env_output.js";
|
|
14
14
|
import { existsSync } from "node:fs";
|
|
15
15
|
import chalk from "chalk";
|
|
16
|
-
|
|
16
|
+
// src/commands/env.ts
|
|
17
17
|
var env_exports = /* @__PURE__ */ __exportAll({
|
|
18
18
|
ENV_PULL_SKIPPED_HINT: () => ENV_PULL_SKIPPED_HINT,
|
|
19
19
|
autoPullEnvAfterPin: () => autoPullEnvAfterPin,
|
|
@@ -280,5 +280,4 @@ const pickNeonVars = (vars) => {
|
|
|
280
280
|
for (const [name, value] of Object.entries(vars)) if (NEON_VAR_NAMES.some((key) => key === name) || isFunctionBaseUrlKey(name)) out[name] = value;
|
|
281
281
|
return out;
|
|
282
282
|
};
|
|
283
|
-
//#endregion
|
|
284
283
|
export { describe as a, pull as c, command as i, autoPullEnvAfterPin as n, env_exports as o, builder as r, handler as s, ENV_PULL_SKIPPED_HINT as t };
|
|
@@ -2,14 +2,14 @@ import { log } from "../log.js";
|
|
|
2
2
|
import { getCliName } from "../utils/cli_name.js";
|
|
3
3
|
import { declaredNeonServices } from "../config_services.js";
|
|
4
4
|
import { loadProjectConfig } from "../project.js";
|
|
5
|
-
import { a as defaultAiGatewayCredential, c as fetchEnvKeysState, d as isLiveCredential, h as toEntries, i as credentialName, l as functionBaseUrlKey, m as resolveBranchPolicy, n as createApiFromOptions, o as defaultStorageCredential, p as policyEnvKeys, r as credentialEnvKeys, t as NEON_ENV_VAR_KEYS, u as isFunctionBaseUrlKey } from "./env-
|
|
5
|
+
import { a as defaultAiGatewayCredential, c as fetchEnvKeysState, d as isLiveCredential, h as toEntries, i as credentialName, l as functionBaseUrlKey, m as resolveBranchPolicy, n as createApiFromOptions, o as defaultStorageCredential, p as policyEnvKeys, r as credentialEnvKeys, t as NEON_ENV_VAR_KEYS, u as isFunctionBaseUrlKey } from "./env-JgoSsmyt.js";
|
|
6
6
|
import { ENV_PULL_SERVICES, envKeysForSelection, serviceForEnvKey, servicesForEnvKeys } from "../env_services.js";
|
|
7
7
|
import { formatInstallCommand, resolvePackageManager } from "../utils/package_manager.js";
|
|
8
8
|
import { StagingOnlyError } from "../utils/staging.js";
|
|
9
9
|
import { ErrorCode, PlatformError, createNeonApiFromOptions, isPlatformError } from "@neon/config";
|
|
10
10
|
import { credentialScopesSatisfied } from "@neon/config/v1";
|
|
11
11
|
import { plan, pullConfig } from "@neon/config-runtime";
|
|
12
|
-
|
|
12
|
+
// ../../internals/env-core/dist/reuse-secrets.js
|
|
13
13
|
/**
|
|
14
14
|
* Resolve a branch's env while keeping secrets the caller already holds.
|
|
15
15
|
*
|
|
@@ -198,8 +198,7 @@ function halfReusable(named, defaultMeta, requiredScopes) {
|
|
|
198
198
|
if (defaultMeta !== null) return named.tokenId === defaultMeta.tokenId;
|
|
199
199
|
return credentialScopesSatisfied(named.scopes, requiredScopes);
|
|
200
200
|
}
|
|
201
|
-
|
|
202
|
-
//#region src/dev/env.ts
|
|
201
|
+
// src/dev/env.ts
|
|
203
202
|
/** The API-targeting options every runtime call forwards from the context. */
|
|
204
203
|
const apiOptions = (ctx) => ({
|
|
205
204
|
...ctx.apiKey ? { apiKey: ctx.apiKey } : {},
|
|
@@ -764,5 +763,4 @@ const loadNeonConfig = async (ctx) => {
|
|
|
764
763
|
throw err;
|
|
765
764
|
}
|
|
766
765
|
};
|
|
767
|
-
//#endregion
|
|
768
766
|
export { resolveDevEnv as a, dropClaimableUnsupported as i, MissingBranchContextError as n, resolveNeonEnvVars as o, ServiceNotOnBranchError as r, DevEnvMismatchError as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as defaultConnectionRole, t as NEON_DEFAULT_OWNER_ROLE } from "./roles-
|
|
1
|
+
import { n as defaultConnectionRole, t as NEON_DEFAULT_OWNER_ROLE } from "./roles-Bd9r8_pX.js";
|
|
2
2
|
import { ErrorCode, PlatformError, createNeonApiFromOptions, deriveCredentialScopes, isPlatformError, resolveConfig } from "@neon/config/v1";
|
|
3
|
-
|
|
3
|
+
// ../../internals/env-core/dist/env.js
|
|
4
4
|
/**
|
|
5
5
|
* The Neon env core — resolving a branch's env from the Neon API, and projecting it into
|
|
6
6
|
* OS-level `{ KEY: value }` pairs.
|
|
@@ -651,5 +651,4 @@ function toEntries(env) {
|
|
|
651
651
|
if (env.functions) for (const slug of Object.keys(env.functions).sort()) put(functionBaseUrlKey(slug), env.functions[slug]?.baseUrl);
|
|
652
652
|
return out;
|
|
653
653
|
}
|
|
654
|
-
//#endregion
|
|
655
654
|
export { defaultAiGatewayCredential as a, fetchEnvKeysState as c, isLiveCredential as d, parseFunctionBaseUrlKey as f, toEntries as h, credentialName as i, functionBaseUrlKey as l, resolveBranchPolicy as m, createApiFromOptions as n, defaultStorageCredential as o, policyEnvKeys as p, credentialEnvKeys as r, fetchEnvKeys as s, NEON_ENV_VAR_KEYS as t, isFunctionBaseUrlKey as u };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
|
|
2
2
|
import { isNetworkError } from "../errors.js";
|
|
3
3
|
import { writer } from "../writer.js";
|
|
4
4
|
import { noPassthrough, single } from "../utils/flags.js";
|
|
5
|
-
|
|
5
|
+
// src/commands/feedback.ts
|
|
6
6
|
var feedback_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
DEFAULT_FEEDBACK_URL: () => DEFAULT_FEEDBACK_URL,
|
|
8
8
|
MAX_FEEDBACK_LENGTH: () => MAX_FEEDBACK_LENGTH,
|
|
@@ -84,5 +84,4 @@ async function sendFeedback(opts) {
|
|
|
84
84
|
}
|
|
85
85
|
if (!response.ok) throw new Error(await feedbackErrorMessage(response));
|
|
86
86
|
}
|
|
87
|
-
//#endregion
|
|
88
87
|
export { describe as a, resolveFeedbackUrl as c, command as i, MAX_FEEDBACK_LENGTH as n, feedback_exports as o, builder as r, handler as s, DEFAULT_FEEDBACK_URL as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
|
|
2
2
|
import { log } from "../log.js";
|
|
3
3
|
import { isNeonApiError, retryOnLock } from "../api.js";
|
|
4
4
|
import { getCliName } from "../utils/cli_name.js";
|
|
@@ -15,7 +15,7 @@ import { statSync } from "node:fs";
|
|
|
15
15
|
import { dirname } from "node:path";
|
|
16
16
|
import { FUNCTION_SOURCE_ENTRIES } from "@neon/config";
|
|
17
17
|
import { bundleAsIs, describeNativeFinding, findUndeclaredNativePackages, resolveEsbuildEntry, zipFunctionBundle } from "@neon/config-runtime";
|
|
18
|
-
|
|
18
|
+
// src/commands/functions.ts
|
|
19
19
|
var functions_exports = /* @__PURE__ */ __exportAll({
|
|
20
20
|
aliases: () => aliases,
|
|
21
21
|
builder: () => builder,
|
|
@@ -460,5 +460,4 @@ const deleteDomain = async (props) => {
|
|
|
460
460
|
}
|
|
461
461
|
log.info(`Custom domain ${props.domain} deleted from branch ${branchId}`);
|
|
462
462
|
};
|
|
463
|
-
//#endregion
|
|
464
463
|
export { describe as a, deploymentPollDelay as i, builder as n, functions_exports as o, command as r, handler as s, aliases as t };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
|
|
2
2
|
import { isCi } from "../env.js";
|
|
3
3
|
import { log } from "../log.js";
|
|
4
4
|
import { CONTEXT_FILE, contextBranch, gitBranchMap, gitBranchMapping, isUnfollowedGitHookSync, readContextFile, setGitBranchMap, setGitBranchMapping, setGitFollow } from "../context.js";
|
|
5
5
|
import { writer } from "../writer.js";
|
|
6
6
|
import { neonSafeBranchName } from "../utils/branch_name.js";
|
|
7
7
|
import { currentGitBranch, gitPull, gitRepoRoot, hasUpstream, installPostCheckoutHook, isGitRepo, isManagedHook, localGitBranches, postCheckoutHookPath, readGitContext, removePostCheckoutHook } from "../utils/git.js";
|
|
8
|
-
import { o as quoteFlagValue } from "./link-
|
|
9
|
-
import { o as handler$1 } from "./checkout-
|
|
8
|
+
import { o as quoteFlagValue } from "./link-nAiuWKfg.js";
|
|
9
|
+
import { o as handler$1 } from "./checkout-BpOcFaAi.js";
|
|
10
10
|
import { existsSync } from "node:fs";
|
|
11
11
|
import { join } from "node:path";
|
|
12
12
|
import chalk from "chalk";
|
|
13
13
|
import prompts from "prompts";
|
|
14
|
-
|
|
14
|
+
// src/commands/git.ts
|
|
15
15
|
var git_exports = /* @__PURE__ */ __exportAll({
|
|
16
16
|
aliases: () => aliases,
|
|
17
17
|
builder: () => builder,
|
|
@@ -352,5 +352,4 @@ const confirmPrune = async (props, toDelete) => {
|
|
|
352
352
|
});
|
|
353
353
|
return Boolean(ok);
|
|
354
354
|
};
|
|
355
|
-
//#endregion
|
|
356
355
|
export { describe as a, install as c, sync as d, uninstall as f, command as i, partitionBranchesToPrune as l, builder as n, git_exports as o, cleanup as r, handler as s, aliases as t, status as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
|
|
2
2
|
import { getCliName } from "../utils/cli_name.js";
|
|
3
3
|
import { helpCsv, helpEpilogue } from "../utils/help_text.js";
|
|
4
4
|
import { NEON_SERVICES, servicesOption } from "../neon_services.js";
|
|
@@ -6,7 +6,7 @@ import { coerceAgentFlag } from "../utils/agent_flag.js";
|
|
|
6
6
|
import { initPluginAgents, initSkillsMcpAgents } from "../init/plan.js";
|
|
7
7
|
import { listSkillIds } from "../skills/catalog.js";
|
|
8
8
|
import { runInit } from "../init/run.js";
|
|
9
|
-
|
|
9
|
+
// src/commands/init.ts
|
|
10
10
|
var init_exports = /* @__PURE__ */ __exportAll({
|
|
11
11
|
builder: () => builder,
|
|
12
12
|
command: () => command,
|
|
@@ -53,7 +53,7 @@ const builder = (yargs) => yargs.usage("$0 init [options]").option("context-file
|
|
|
53
53
|
key: "services",
|
|
54
54
|
allowed: NEON_SERVICES,
|
|
55
55
|
describe: "Services to declare in neon.ts",
|
|
56
|
-
also: "postgres alone writes the starter policy; every branch has Postgres. Implies creating neon.ts. Cannot be combined with --no-config."
|
|
56
|
+
also: "postgres alone writes the starter policy; every branch has Postgres. data-api also declares auth unless the linked branch's Data API already uses an external identity provider. Implies creating neon.ts. Cannot be combined with --no-config."
|
|
57
57
|
})).option("org-id", {
|
|
58
58
|
describe: "Forwarded to link: organization ID to link to",
|
|
59
59
|
type: "string"
|
|
@@ -107,5 +107,4 @@ const builder = (yargs) => yargs.usage("$0 init [options]").option("context-file
|
|
|
107
107
|
const handler = async (props) => {
|
|
108
108
|
await runInit(props);
|
|
109
109
|
};
|
|
110
|
-
//#endregion
|
|
111
110
|
export { init_exports as a, handler as i, command as n, describe as r, builder as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
|
|
2
2
|
import { writer } from "../writer.js";
|
|
3
3
|
import { fillSingleProject } from "../utils/enrichers.js";
|
|
4
4
|
import { formatInspectQueryError, resolveInspectTargets, runInspectQuery } from "../utils/inspect_db.js";
|
|
5
5
|
import { INSPECT_QUERIES } from "../utils/inspect_queries.js";
|
|
6
|
-
|
|
6
|
+
// src/commands/inspect.ts
|
|
7
7
|
var inspect_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
aliases: () => aliases,
|
|
9
9
|
builder: () => builder,
|
|
@@ -86,5 +86,4 @@ const builder = (argv) => argv.usage("$0 inspect <sub-command> [options]").comma
|
|
|
86
86
|
const handler = (args) => {
|
|
87
87
|
return args;
|
|
88
88
|
};
|
|
89
|
-
//#endregion
|
|
90
89
|
export { handler as a, describe as i, builder as n, inspect_exports as o, command as r, aliases as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
|
|
2
2
|
import { log } from "../log.js";
|
|
3
3
|
import { getCliName } from "../utils/cli_name.js";
|
|
4
4
|
import { projectUpdateRequest } from "../parameters.gen.js";
|
|
5
5
|
import { writer } from "../writer.js";
|
|
6
6
|
import { fillSingleProject } from "../utils/enrichers.js";
|
|
7
|
-
|
|
7
|
+
// src/commands/ip_allow.ts
|
|
8
8
|
var ip_allow_exports = /* @__PURE__ */ __exportAll({
|
|
9
9
|
builder: () => builder,
|
|
10
10
|
command: () => command,
|
|
@@ -102,5 +102,4 @@ const parse = (project) => {
|
|
|
102
102
|
protected_branches_only: project.settings?.allowed_ips?.protected_branches_only ?? false
|
|
103
103
|
};
|
|
104
104
|
};
|
|
105
|
-
//#endregion
|
|
106
105
|
export { ip_allow_exports as a, handler as i, command as n, describe as r, builder as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
|
|
2
2
|
import { isInteractiveTerminal } from "../env.js";
|
|
3
3
|
import { log } from "../log.js";
|
|
4
4
|
import { isNeonApiError, messageFromBody } from "../api.js";
|
|
5
|
-
import { r as defaultDir } from "./paths-
|
|
5
|
+
import { r as defaultDir } from "./paths-B55ZfOg1.js";
|
|
6
6
|
import "../config.js";
|
|
7
7
|
import { applyContext, contextBranch, readContextFile, setContext, updateContextFile } from "../context.js";
|
|
8
8
|
import { isClaimableEnvTarget } from "../claimable/state.js";
|
|
@@ -13,12 +13,12 @@ import { writer } from "../writer.js";
|
|
|
13
13
|
import { createBranch, pickBranchInteractively } from "../utils/branch_picker.js";
|
|
14
14
|
import { looksLikeBranchId } from "../utils/formats.js";
|
|
15
15
|
import { listAllProjectBranches } from "../utils/enrichers.js";
|
|
16
|
-
import { n as autoPullEnvAfterPin } from "./env-
|
|
17
|
-
import { h as initCmd } from "./config-
|
|
16
|
+
import { n as autoPullEnvAfterPin } from "./env-BOt9AZ1j.js";
|
|
17
|
+
import { h as initCmd } from "./config-BjCm5cfr.js";
|
|
18
18
|
import { formatLinkSummary } from "../commands/link_output.js";
|
|
19
|
-
import { r as REGIONS } from "./projects-
|
|
19
|
+
import { r as REGIONS } from "./projects-a3X4OFEJ.js";
|
|
20
20
|
import prompts from "prompts";
|
|
21
|
-
|
|
21
|
+
// src/commands/link.ts
|
|
22
22
|
var link_exports = /* @__PURE__ */ __exportAll({
|
|
23
23
|
builder: () => builder,
|
|
24
24
|
command: () => command,
|
|
@@ -932,5 +932,4 @@ const mustString = (value, name) => {
|
|
|
932
932
|
if (value === void 0) throw new Error(`Internal error: expected ${name} to be set.`);
|
|
933
933
|
return value;
|
|
934
934
|
};
|
|
935
|
-
//#endregion
|
|
936
935
|
export { link_exports as a, shouldOfferConfigInit as c, handler as i, command as n, quoteFlagValue as o, describe as r, runLink as s, builder as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
|
|
2
2
|
import { log } from "../log.js";
|
|
3
3
|
import { isNeonApiError } from "../api.js";
|
|
4
4
|
import { writer } from "../writer.js";
|
|
5
5
|
import { noPassthrough, single } from "../utils/flags.js";
|
|
6
6
|
import { branchIdFromProps, fillSingleProject } from "../utils/enrichers.js";
|
|
7
|
-
|
|
7
|
+
// src/commands/logs.ts
|
|
8
8
|
var logs_exports = /* @__PURE__ */ __exportAll({
|
|
9
9
|
assertReachableLogsPage: () => assertReachableLogsPage,
|
|
10
10
|
buildLogsQueryBody: () => buildLogsQueryBody,
|
|
@@ -287,5 +287,4 @@ const fieldValues = async (props) => {
|
|
|
287
287
|
});
|
|
288
288
|
if (data.is_truncated) log.info(`More values exist than were returned for "${escapeLogSingleLine(props.field)}". Narrow the window with --since or --start-time, restrict --source, or raise --limit, then run it again.`);
|
|
289
289
|
};
|
|
290
|
-
//#endregion
|
|
291
290
|
export { describe as a, handler as c, command as i, logs_exports as l, buildLogsQueryBody as n, escapeLogSingleLine as o, builder as r, escapeLogTableCell as s, assertReachableLogsPage as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
|
|
2
2
|
import { log } from "../log.js";
|
|
3
3
|
import { readContextFile } from "../context.js";
|
|
4
4
|
import { recordCommandSuccessExtras } from "../analytics.js";
|
|
@@ -12,7 +12,7 @@ import { AGENT_MCP_SKIP_MESSAGE } from "../init/copy.js";
|
|
|
12
12
|
import { mintMcpApiKey, mintedKeyRevokeCommand, withdrawMintedKey } from "../mcp/mint.js";
|
|
13
13
|
import { canPickAgentsInteractively, skippableAgentPicker } from "../utils/agent_picker.js";
|
|
14
14
|
import { resolveMcpPlan } from "../mcp/plan.js";
|
|
15
|
-
|
|
15
|
+
// src/commands/mcp.ts
|
|
16
16
|
var mcp_exports = /* @__PURE__ */ __exportAll({
|
|
17
17
|
builder: () => builder,
|
|
18
18
|
command: () => "mcp",
|
|
@@ -249,5 +249,4 @@ const handler = async (props) => {
|
|
|
249
249
|
if (error) throw error;
|
|
250
250
|
recordCommandSuccessExtras({ scope: outcome.scope });
|
|
251
251
|
};
|
|
252
|
-
//#endregion
|
|
253
252
|
export { mcpInstallError as a, setupNeonMcp as c, handler as i, command as n, mcp_exports as o, describe as r, reportMcpInstall as s, builder as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
|
|
2
2
|
import { log } from "../log.js";
|
|
3
3
|
import { codeFromBody, isNeonApiError, retryOnLock } from "../api.js";
|
|
4
4
|
import { stripAnsi } from "../human_table.js";
|
|
@@ -6,8 +6,9 @@ import { writer } from "../writer.js";
|
|
|
6
6
|
import { noPassthrough, single } from "../utils/flags.js";
|
|
7
7
|
import { NeonAuthEmailVerificationMethod, NeonAuthOauthProviderId, NeonAuthOauthProviderType, NeonAuthSupportedAuthProvider } from "../utils/api_enums.js";
|
|
8
8
|
import { branchIdFromProps, fillSingleProject, resolveBranchFromProps } from "../utils/enrichers.js";
|
|
9
|
+
import { readFileSync } from "node:fs";
|
|
9
10
|
import chalk from "chalk";
|
|
10
|
-
|
|
11
|
+
// src/commands/neon_auth.ts
|
|
11
12
|
var neon_auth_exports = /* @__PURE__ */ __exportAll({
|
|
12
13
|
builder: () => builder,
|
|
13
14
|
command: () => command,
|
|
@@ -45,17 +46,53 @@ const INTEGRATION_STATUS_FIELDS = [
|
|
|
45
46
|
"created_at",
|
|
46
47
|
"jwks_url"
|
|
47
48
|
];
|
|
48
|
-
const
|
|
49
|
+
const OAUTH_PROVIDER_LIST_FIELDS = [
|
|
49
50
|
"id",
|
|
50
51
|
"type",
|
|
51
52
|
"client_id"
|
|
52
53
|
];
|
|
54
|
+
const OAUTH_PROVIDER_FIELDS = [
|
|
55
|
+
...OAUTH_PROVIDER_LIST_FIELDS,
|
|
56
|
+
"microsoft_tenant_id",
|
|
57
|
+
"apple_team_id",
|
|
58
|
+
"apple_key_id"
|
|
59
|
+
];
|
|
53
60
|
const ALLOW_LOCALHOST_FIELDS = ["allow_localhost"];
|
|
54
61
|
const SUPPORTED_OAUTH_PROVIDERS = [
|
|
55
62
|
NeonAuthOauthProviderId.Google,
|
|
56
63
|
NeonAuthOauthProviderId.Github,
|
|
57
|
-
NeonAuthOauthProviderId.Vercel
|
|
64
|
+
NeonAuthOauthProviderId.Vercel,
|
|
65
|
+
NeonAuthOauthProviderId.Microsoft,
|
|
66
|
+
NeonAuthOauthProviderId.Apple
|
|
58
67
|
];
|
|
68
|
+
const OWN_CREDENTIALS_NOTE = `${[NeonAuthOauthProviderId.Microsoft, NeonAuthOauthProviderId.Apple].join(" and ")} always need your own credentials`;
|
|
69
|
+
const OAUTH_CREDENTIAL_OPTIONS = {
|
|
70
|
+
"oauth-client-id": {
|
|
71
|
+
describe: `OAuth client ID from your provider app. For apple, the Services ID. Omit to use Neon's shared OAuth app, where one exists; ${OWN_CREDENTIALS_NOTE}.`,
|
|
72
|
+
type: "string"
|
|
73
|
+
},
|
|
74
|
+
"oauth-client-secret": {
|
|
75
|
+
describe: `OAuth client secret from your provider app. Omit to use Neon's shared OAuth app, where one exists; ${OWN_CREDENTIALS_NOTE}.`,
|
|
76
|
+
type: "string"
|
|
77
|
+
},
|
|
78
|
+
"oauth-client-secret-file": {
|
|
79
|
+
describe: "Read the OAuth client secret from a file, for example the apple .p8 private key",
|
|
80
|
+
type: "string",
|
|
81
|
+
conflicts: "oauth-client-secret"
|
|
82
|
+
},
|
|
83
|
+
"microsoft-tenant-id": {
|
|
84
|
+
describe: "Tenant ID for the microsoft provider: common, organizations, consumers, a tenant GUID, or a domain",
|
|
85
|
+
type: "string"
|
|
86
|
+
},
|
|
87
|
+
"apple-team-id": {
|
|
88
|
+
describe: "Apple Developer Team ID (apple only)",
|
|
89
|
+
type: "string"
|
|
90
|
+
},
|
|
91
|
+
"apple-key-id": {
|
|
92
|
+
describe: "Key ID of the Sign in with Apple private key (apple only). Sent together with a new apple client secret, and only with one",
|
|
93
|
+
type: "string"
|
|
94
|
+
}
|
|
95
|
+
};
|
|
59
96
|
const DOMAIN_FIELDS = ["domain"];
|
|
60
97
|
const EMAIL_PASSWORD_FIELDS = [
|
|
61
98
|
"enabled",
|
|
@@ -139,14 +176,7 @@ const builder = (argv) => {
|
|
|
139
176
|
choices: SUPPORTED_OAUTH_PROVIDERS,
|
|
140
177
|
demandOption: true
|
|
141
178
|
},
|
|
142
|
-
|
|
143
|
-
describe: "OAuth client ID from your provider app. Omit to use Neon's shared OAuth app.",
|
|
144
|
-
type: "string"
|
|
145
|
-
},
|
|
146
|
-
"oauth-client-secret": {
|
|
147
|
-
describe: "OAuth client secret from your provider app. Omit to use Neon's shared OAuth app.",
|
|
148
|
-
type: "string"
|
|
149
|
-
}
|
|
179
|
+
...OAUTH_CREDENTIAL_OPTIONS
|
|
150
180
|
}), async (args) => {
|
|
151
181
|
await oauthProviderAdd(args);
|
|
152
182
|
}).command("update", "Update an OAuth provider", (yargs) => yargs.options({
|
|
@@ -156,14 +186,7 @@ const builder = (argv) => {
|
|
|
156
186
|
choices: SUPPORTED_OAUTH_PROVIDERS,
|
|
157
187
|
demandOption: true
|
|
158
188
|
},
|
|
159
|
-
|
|
160
|
-
describe: "OAuth client ID from your provider app. Omit to use Neon's shared OAuth app.",
|
|
161
|
-
type: "string"
|
|
162
|
-
},
|
|
163
|
-
"oauth-client-secret": {
|
|
164
|
-
describe: "OAuth client secret from your provider app. Omit to use Neon's shared OAuth app.",
|
|
165
|
-
type: "string"
|
|
166
|
-
}
|
|
189
|
+
...OAUTH_CREDENTIAL_OPTIONS
|
|
167
190
|
}), async (args) => {
|
|
168
191
|
await oauthProviderUpdate(args);
|
|
169
192
|
}).command("delete", "Delete an OAuth provider", (yargs) => yargs.options({ "provider-id": {
|
|
@@ -605,10 +628,37 @@ const oauthProviderList = async (props) => {
|
|
|
605
628
|
printMessage("No OAuth providers are configured for this branch.");
|
|
606
629
|
return;
|
|
607
630
|
}
|
|
608
|
-
writer(props).end(data.providers, { fields:
|
|
631
|
+
writer(props).end(data.providers, { fields: OAUTH_PROVIDER_LIST_FIELDS });
|
|
609
632
|
if (data.providers.some((p) => p.type === NeonAuthOauthProviderType.Shared) && props.output === "table") writeStyled(`\n${chalk.yellow("Caution:")} ${SHARED_PROVIDER_DISCLAIMER}\n\n`);
|
|
610
633
|
};
|
|
634
|
+
const resolveClientSecret = (props) => {
|
|
635
|
+
const file = props.oauthClientSecretFile;
|
|
636
|
+
if (file === void 0) return props.oauthClientSecret;
|
|
637
|
+
let contents;
|
|
638
|
+
try {
|
|
639
|
+
contents = readFileSync(file, "utf8");
|
|
640
|
+
} catch (err) {
|
|
641
|
+
throw new Error(`Could not read --oauth-client-secret-file ${file}: ${err.message}`);
|
|
642
|
+
}
|
|
643
|
+
const secret = contents.replace(/[\r\n]+$/, "");
|
|
644
|
+
if (!secret) throw new Error(`--oauth-client-secret-file ${file} is empty.`);
|
|
645
|
+
return secret;
|
|
646
|
+
};
|
|
647
|
+
const sharedProviderRejectedMessage = (providerId) => {
|
|
648
|
+
let flags;
|
|
649
|
+
switch (providerId) {
|
|
650
|
+
case NeonAuthOauthProviderId.Apple:
|
|
651
|
+
flags = "--oauth-client-id <Services ID>, --oauth-client-secret-file <.p8>, --apple-team-id and --apple-key-id";
|
|
652
|
+
break;
|
|
653
|
+
case NeonAuthOauthProviderId.Microsoft:
|
|
654
|
+
flags = "--oauth-client-id and --oauth-client-secret (and optionally --microsoft-tenant-id)";
|
|
655
|
+
break;
|
|
656
|
+
default: flags = "--oauth-client-id and --oauth-client-secret";
|
|
657
|
+
}
|
|
658
|
+
return `The "${providerId}" provider requires your own OAuth app credentials.\nRe-run with ${flags} to provide them.\nCreate an OAuth app at your provider and use those credentials.`;
|
|
659
|
+
};
|
|
611
660
|
const oauthProviderAdd = async (props) => {
|
|
661
|
+
const clientSecret = resolveClientSecret(props);
|
|
612
662
|
const branchId = await resolveBranch(props);
|
|
613
663
|
const baseUrlRequest = callbackBaseUrl(props, branchId, props.providerId);
|
|
614
664
|
let data;
|
|
@@ -616,38 +666,55 @@ const oauthProviderAdd = async (props) => {
|
|
|
616
666
|
({data} = await props.apiClient.addBranchNeonAuthOauthProvider(props.projectId, branchId, {
|
|
617
667
|
id: props.providerId,
|
|
618
668
|
client_id: props.oauthClientId,
|
|
619
|
-
client_secret:
|
|
669
|
+
client_secret: clientSecret,
|
|
670
|
+
microsoft_tenant_id: props.microsoftTenantId,
|
|
671
|
+
apple_team_id: props.appleTeamId,
|
|
672
|
+
apple_key_id: props.appleKeyId
|
|
620
673
|
}));
|
|
621
674
|
} catch (err) {
|
|
622
|
-
if (isNeonApiError(err) && codeFromBody(err.data) === "INVALID_SHARED_OAUTH_PROVIDER") throw new Error(
|
|
675
|
+
if (isNeonApiError(err) && codeFromBody(err.data) === "INVALID_SHARED_OAUTH_PROVIDER") throw new Error(sharedProviderRejectedMessage(props.providerId));
|
|
623
676
|
throw err;
|
|
624
677
|
}
|
|
625
678
|
if (props.output === "json" || props.output === "yaml") writer(props).end(data, { fields: OAUTH_PROVIDER_FIELDS });
|
|
626
679
|
else printKvBlock("OAuth provider added", [
|
|
627
680
|
["ID:", data.id],
|
|
628
681
|
["Type:", data.type],
|
|
629
|
-
...data.client_id ? [["Client ID:", data.client_id]] : []
|
|
682
|
+
...data.client_id ? [["Client ID:", data.client_id]] : [],
|
|
683
|
+
...data.microsoft_tenant_id ? [["Tenant ID:", data.microsoft_tenant_id]] : [],
|
|
684
|
+
...data.apple_team_id ? [["Team ID:", data.apple_team_id]] : [],
|
|
685
|
+
...data.apple_key_id ? [["Key ID:", data.apple_key_id]] : []
|
|
630
686
|
]);
|
|
631
687
|
printCallbackInstructions(props.providerId, await baseUrlRequest);
|
|
632
688
|
};
|
|
633
689
|
const oauthProviderUpdate = async (props) => {
|
|
690
|
+
const clientSecret = resolveClientSecret(props);
|
|
691
|
+
if (props.providerId === NeonAuthOauthProviderId.Apple) {
|
|
692
|
+
if (clientSecret !== void 0 && !props.appleKeyId) throw new Error("Changing the apple client secret requires --apple-key-id, the Key ID of the new private key.");
|
|
693
|
+
if (props.appleKeyId !== void 0 && clientSecret === void 0) throw new Error("--apple-key-id identifies the new private key, so it requires --oauth-client-secret or --oauth-client-secret-file.");
|
|
694
|
+
}
|
|
634
695
|
const branchId = await resolveBranch(props);
|
|
635
696
|
const baseUrlRequest = callbackBaseUrl(props, branchId, props.providerId);
|
|
636
697
|
let data;
|
|
637
698
|
try {
|
|
638
699
|
({data} = await props.apiClient.updateBranchNeonAuthOauthProvider(props.projectId, branchId, props.providerId, {
|
|
639
700
|
client_id: props.oauthClientId,
|
|
640
|
-
client_secret:
|
|
701
|
+
client_secret: clientSecret,
|
|
702
|
+
microsoft_tenant_id: props.microsoftTenantId,
|
|
703
|
+
apple_team_id: props.appleTeamId,
|
|
704
|
+
apple_key_id: props.appleKeyId
|
|
641
705
|
}));
|
|
642
706
|
} catch (err) {
|
|
643
|
-
if (isNeonApiError(err) && codeFromBody(err.data) === "INVALID_SHARED_OAUTH_PROVIDER") throw new Error(
|
|
707
|
+
if (isNeonApiError(err) && codeFromBody(err.data) === "INVALID_SHARED_OAUTH_PROVIDER") throw new Error(sharedProviderRejectedMessage(props.providerId));
|
|
644
708
|
throw err;
|
|
645
709
|
}
|
|
646
710
|
if (props.output === "json" || props.output === "yaml") writer(props).end(data, { fields: OAUTH_PROVIDER_FIELDS });
|
|
647
711
|
else printKvBlock("OAuth provider updated", [
|
|
648
712
|
["ID:", data.id],
|
|
649
713
|
["Type:", data.type],
|
|
650
|
-
...data.client_id ? [["Client ID:", data.client_id]] : []
|
|
714
|
+
...data.client_id ? [["Client ID:", data.client_id]] : [],
|
|
715
|
+
...data.microsoft_tenant_id ? [["Tenant ID:", data.microsoft_tenant_id]] : [],
|
|
716
|
+
...data.apple_team_id ? [["Team ID:", data.apple_team_id]] : [],
|
|
717
|
+
...data.apple_key_id ? [["Key ID:", data.apple_key_id]] : []
|
|
651
718
|
]);
|
|
652
719
|
printCallbackInstructions(props.providerId, await baseUrlRequest);
|
|
653
720
|
};
|
|
@@ -660,6 +727,14 @@ const CALLBACK_INSTRUCTIONS = {
|
|
|
660
727
|
lead: "Create a Vercel App in your Vercel Dashboard and add the following authorization callback URL:",
|
|
661
728
|
urlLabel: "callback/vercel"
|
|
662
729
|
},
|
|
730
|
+
microsoft: {
|
|
731
|
+
lead: "Register an application in Microsoft Entra ID > App registrations, and add the following redirect URI under the Web platform:",
|
|
732
|
+
urlLabel: "callback/microsoft"
|
|
733
|
+
},
|
|
734
|
+
apple: {
|
|
735
|
+
lead: "Create a Services ID in the Apple Developer portal, enable Sign in with Apple for it, and add the following return URL (Apple requires HTTPS and does not accept localhost):",
|
|
736
|
+
urlLabel: "callback/apple"
|
|
737
|
+
},
|
|
663
738
|
google: {
|
|
664
739
|
lead: "Get Google credentials by creating an OAuth client in Google Cloud Console > Credentials, and add the following authorized redirect URL:",
|
|
665
740
|
urlLabel: "callback/google"
|
|
@@ -1256,5 +1331,4 @@ const userSetRole = async (props) => {
|
|
|
1256
1331
|
const { data } = await props.apiClient.updateNeonAuthUserRole(props.projectId, branchId, props.userId, { roles: props.roles });
|
|
1257
1332
|
printKvBlock("Roles updated", [["User ID:", data.id], ["Roles:", props.roles.join(", ")]]);
|
|
1258
1333
|
};
|
|
1259
|
-
//#endregion
|
|
1260
1334
|
export { neon_auth_exports as a, handler as i, command as n, describe as r, builder as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
|
|
2
2
|
import { log } from "../log.js";
|
|
3
3
|
import { getCliName } from "../utils/cli_name.js";
|
|
4
4
|
import open from "open";
|
|
5
|
-
|
|
5
|
+
// src/commands/open.ts
|
|
6
6
|
var open_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
builder: () => builder,
|
|
8
8
|
command: () => command,
|
|
@@ -29,5 +29,4 @@ const handler = async (props) => {
|
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
-
//#endregion
|
|
33
32
|
export { open_exports as a, handler as i, command as n, projectConsoleUrl as o, describe as r, builder as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
|
|
2
2
|
import { writer } from "../writer.js";
|
|
3
3
|
import { fillSingleProject } from "../utils/enrichers.js";
|
|
4
|
-
|
|
4
|
+
// src/commands/operations.ts
|
|
5
5
|
var operations_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
aliases: () => aliases,
|
|
7
7
|
builder: () => builder,
|
|
@@ -33,5 +33,4 @@ const list = async (props) => {
|
|
|
33
33
|
});
|
|
34
34
|
writer(props).end(data.operations, { fields: OPERATIONS_FIELDS });
|
|
35
35
|
};
|
|
36
|
-
//#endregion
|
|
37
36
|
export { handler as a, describe as i, builder as n, list as o, command as r, operations_exports as s, aliases as t };
|