neon 8.13.1 → 8.14.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 +2 -0
- 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-DPSDYYtG.js} +6 -7
- 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-C6VMMgY6.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-7SIE_C5O.js} +3 -4
- 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-DmKZcAnR.js} +3 -4
- package/dist/_chunks/{dev-CSvxAecE.js → dev-Dv0HKcFF.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-Dxw9w9dK.js} +4 -5
- package/dist/_chunks/{init-BkA6RilG.js → init-BOOGv-mD.js} +2 -3
- 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-CcwTXRny.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-DqD7BDO1.js → plugins-CKOcBuuP.js} +3 -4
- package/dist/_chunks/{profile-yXOiKk9R.js → profile-H0d7gFrX.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-DS_yUXFo.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 +4 -5
- package/dist/anonymous_id.js +2 -3
- package/dist/api.js +1 -2
- 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 +1 -2
- package/dist/config_services.js +1 -2
- package/dist/config_source.js +1 -2
- package/dist/config_template.js +1 -2
- 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 +5 -6
- 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 +13 -3
- package/dist/init/detect.js +4 -5
- package/dist/init/detect_host.js +1 -2
- package/dist/init/funnel.js +63 -16
- 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 +152 -98
- package/dist/init/template_title.js +1 -2
- package/dist/init/tooling.js +6 -7
- package/dist/init/wizard.js +1 -2
- 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 +1 -2
- 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 +6 -6
|
@@ -12,7 +12,7 @@ import { executeInputString, loadPsqlrc } from "../psql/io/psqlrc.js";
|
|
|
12
12
|
import { existsSync, promises } from "node:fs";
|
|
13
13
|
import * as path from "node:path";
|
|
14
14
|
import * as os from "node:os";
|
|
15
|
-
|
|
15
|
+
// src/psql/core/startup.ts
|
|
16
16
|
/**
|
|
17
17
|
* psql startup-args parser + applier.
|
|
18
18
|
*
|
|
@@ -664,8 +664,7 @@ const resolveLayeredConnect = (argvLayer, resolution, legacyBase) => {
|
|
|
664
664
|
return merged;
|
|
665
665
|
};
|
|
666
666
|
const formatParseError = (err) => err.message;
|
|
667
|
-
|
|
668
|
-
//#region src/psql/index.ts
|
|
667
|
+
// src/psql/index.ts
|
|
669
668
|
/**
|
|
670
669
|
* Embedded TypeScript psql entrypoint.
|
|
671
670
|
*
|
|
@@ -2166,5 +2165,4 @@ const mergeConnectOptions = (layers, defaults) => {
|
|
|
2166
2165
|
assertSslNegotiationModeCompatible(out.ssl, out.sslnegotiation);
|
|
2167
2166
|
return out;
|
|
2168
2167
|
};
|
|
2169
|
-
//#endregion
|
|
2170
2168
|
export { mergeConnectOptions as a, parseConnectionUriService as c, serviceEntryToConnectOptions as d, CLIENT_VERSION as f, parseStartupArgs as h, looksLikeConnectionString as i, parseConninfo as l, formatParseError as m, envConnectionDefaults as n, parseConnectionUri as o, applyStartupArgs as p, libpqConnectionDefaults as r, parseConnectionUriPartial as s, defaultClientCertDefaults as t, runPsql as u };
|
|
@@ -1,11 +1,11 @@
|
|
|
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 { retryOnLock } from "../api.js";
|
|
4
4
|
import { getCliName } from "../utils/cli_name.js";
|
|
5
5
|
import { branchIdFromProps, fillSingleProject } from "../utils/enrichers.js";
|
|
6
6
|
import { builder as builder$1, handler as handler$1 } from "../commands/subscribe.js";
|
|
7
7
|
import { defineConfig } from "@neon/config";
|
|
8
|
-
|
|
8
|
+
// src/commands/realtime.ts
|
|
9
9
|
var realtime_exports = /* @__PURE__ */ __exportAll({
|
|
10
10
|
builder: () => builder,
|
|
11
11
|
command: () => command,
|
|
@@ -75,5 +75,4 @@ const builder = (argv) => argv.usage("$0 realtime <sub-command> [options]").opti
|
|
|
75
75
|
default: true
|
|
76
76
|
}), (args) => rotateSecret(args)).command("subscribe <query>", "Subscribe to a live SQL query with Neon Realtime", builder$1, handler$1);
|
|
77
77
|
const handler = (_args) => {};
|
|
78
|
-
//#endregion
|
|
79
78
|
export { enable as a, rotateSecret as c, disable as i, command as n, handler as o, describe as r, realtime_exports as s, builder as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../internals/env-core/dist/roles.js
|
|
2
2
|
/**
|
|
3
3
|
* Neon's default branch owner role, created with every project. This is the role a
|
|
4
4
|
* `DATABASE_URL` should connect as.
|
|
@@ -23,5 +23,4 @@ function defaultConnectionRole(roleNames) {
|
|
|
23
23
|
const appRoles = roleNames.filter((name) => !NEON_MANAGED_AUTH_ROLES.has(name));
|
|
24
24
|
return appRoles.length === 1 ? appRoles[0] : void 0;
|
|
25
25
|
}
|
|
26
|
-
//#endregion
|
|
27
26
|
export { defaultConnectionRole as n, NEON_DEFAULT_OWNER_ROLE 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 { retryOnLock } from "../api.js";
|
|
3
3
|
import { writer } from "../writer.js";
|
|
4
4
|
import { fillSingleProject, resolveBranchFromProps } from "../utils/enrichers.js";
|
|
5
|
-
|
|
5
|
+
// src/commands/roles.ts
|
|
6
6
|
var roles_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
aliases: () => aliases,
|
|
8
8
|
builder: () => builder,
|
|
@@ -75,5 +75,4 @@ const deleteRole = async (props) => {
|
|
|
75
75
|
humanTitle: `Role deleted from ${branch?.name ?? branchId}`
|
|
76
76
|
});
|
|
77
77
|
};
|
|
78
|
-
//#endregion
|
|
79
78
|
export { deleteRole as a, list as c, create as i, roles_exports as l, builder as n, describe as o, command as r, handler as s, aliases as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
|
|
2
|
+
// \0rolldown/runtime.js
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __exportAll = (all, no_symbols) => {
|
|
5
5
|
let target = {};
|
|
@@ -10,5 +10,4 @@ var __exportAll = (all, no_symbols) => {
|
|
|
10
10
|
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
11
11
|
return target;
|
|
12
12
|
};
|
|
13
|
-
//#endregion
|
|
14
13
|
export { __exportAll as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { renameSync, unlinkSync, writeFileSync } from "node:fs";
|
|
2
2
|
import { basename, dirname, join } from "node:path";
|
|
3
|
-
|
|
3
|
+
// ../../internals/cli-core/dist/secure_file.js
|
|
4
4
|
/**
|
|
5
5
|
* Write a secret to disk owner-only, by creating a temporary file in the same directory and
|
|
6
6
|
* renaming it over the target.
|
|
@@ -35,5 +35,4 @@ const writeSecretFile = (path, contents) => {
|
|
|
35
35
|
throw err;
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
//#endregion
|
|
39
38
|
export { writeSecretFile 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 { applyContext } from "../context.js";
|
|
4
4
|
import { getCliName } from "../utils/cli_name.js";
|
|
5
|
-
|
|
5
|
+
// src/commands/set_context.ts
|
|
6
6
|
var set_context_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
builder: () => builder,
|
|
8
8
|
command: () => command,
|
|
@@ -34,5 +34,4 @@ const handler = (props) => {
|
|
|
34
34
|
};
|
|
35
35
|
applyContext(props.contextFile, context);
|
|
36
36
|
};
|
|
37
|
-
//#endregion
|
|
38
37
|
export { set_context_exports as a, handler 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 { log } from "../log.js";
|
|
3
3
|
import { recordCommandSuccessExtras } from "../analytics.js";
|
|
4
4
|
import { helpCsv, helpEpilogue } from "../utils/help_text.js";
|
|
@@ -14,7 +14,7 @@ import { lockPath, neonSkillsUpdateCommand, readLockedSkills, refreshSkillsCheck
|
|
|
14
14
|
import { confirmSkillsUpdate } from "../skills/wizard.js";
|
|
15
15
|
import { assertSkillsCanRun, resolveSkillsPlan } from "../skills/plan.js";
|
|
16
16
|
import { assertSkillsNode, neonSkillsRetryCommand, runSkillsCli, skillsAddArgs, skillsMetadata, skillsUpdateArgs, skillsUpdateDetail, skillsUpdateHadNothing } from "../skills/run.js";
|
|
17
|
-
|
|
17
|
+
// src/commands/skills.ts
|
|
18
18
|
var skills_exports = /* @__PURE__ */ __exportAll({
|
|
19
19
|
aliases: () => aliases,
|
|
20
20
|
builder: () => builder,
|
|
@@ -282,5 +282,4 @@ const statusHandler = async (props) => {
|
|
|
282
282
|
out.end();
|
|
283
283
|
if (rows.some((row) => row.status === "outdated")) log.info("Update them: %s", neonSkillsUpdateCommand(scope));
|
|
284
284
|
};
|
|
285
|
-
//#endregion
|
|
286
285
|
export { handler as a, skillsInstallError as c, describe as i, skills_exports as l, builder as n, installSkills as o, command as r, reportSkillsInstall as s, aliases as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
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 { writer } from "../writer.js";
|
|
5
5
|
import { looksLikeBranchId, looksLikeLSN, looksLikeSnapshotId, looksLikeTimestamp, toIso } from "../utils/formats.js";
|
|
6
6
|
import { branchIdResolve, fillSingleProject, resolveBranchRef } from "../utils/enrichers.js";
|
|
7
|
-
import { t as BRANCH_FIELDS } from "./branches-
|
|
8
|
-
|
|
7
|
+
import { t as BRANCH_FIELDS } from "./branches-Bp-5z1lM.js";
|
|
8
|
+
// src/commands/snapshots.ts
|
|
9
9
|
var snapshots_exports = /* @__PURE__ */ __exportAll({
|
|
10
10
|
SNAPSHOT_FIELDS: () => SNAPSHOT_FIELDS,
|
|
11
11
|
aliases: () => aliases,
|
|
@@ -334,5 +334,4 @@ const scheduleSet = async (props) => {
|
|
|
334
334
|
title: "schedule"
|
|
335
335
|
});
|
|
336
336
|
};
|
|
337
|
-
//#endregion
|
|
338
337
|
export { describe as a, command as i, aliases as n, handler as o, builder as r, snapshots_exports as s, SNAPSHOT_FIELDS 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 { fillSingleProject } from "../utils/enrichers.js";
|
|
3
|
-
import { y as status } from "./config-
|
|
4
|
-
|
|
3
|
+
import { y as status } from "./config-7SIE_C5O.js";
|
|
4
|
+
// src/commands/status.ts
|
|
5
5
|
var status_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
builder: () => builder,
|
|
7
7
|
command: () => command,
|
|
@@ -40,5 +40,4 @@ const builder = (argv) => argv.usage("$0 status [options]").options({
|
|
|
40
40
|
}
|
|
41
41
|
}).middleware(fillSingleProject);
|
|
42
42
|
const handler = (args) => status(args);
|
|
43
|
-
//#endregion
|
|
44
43
|
export { status_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 { log } from "../log.js";
|
|
3
3
|
import { isNeonApiError, messageFromBody, retryOnLock } from "../api.js";
|
|
4
4
|
import { writer } from "../writer.js";
|
|
5
5
|
import { branchIdFromProps, fillSingleProject } from "../utils/enrichers.js";
|
|
6
|
-
|
|
6
|
+
// src/commands/triggers.ts
|
|
7
7
|
var triggers_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
TRIGGER_FIELDS: () => TRIGGER_FIELDS,
|
|
9
9
|
aliases: () => aliases,
|
|
@@ -298,5 +298,4 @@ const deleteTrigger = async (props) => {
|
|
|
298
298
|
await withTriggerNotFound(props.id, branchId, () => retryOnLock(() => props.apiClient.deleteProjectBranchTrigger(props.projectId, branchId, props.id)));
|
|
299
299
|
log.info(`Trigger ${props.id} deleted`);
|
|
300
300
|
};
|
|
301
|
-
//#endregion
|
|
302
301
|
export { create as a, get as c, triggers_exports as d, update as f, command as i, handler as l, aliases as n, deleteTrigger as o, builder as r, describe as s, TRIGGER_FIELDS as t, list as u };
|
|
@@ -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 { getAuthContext } from "../auth_context.js";
|
|
3
3
|
import { writer } from "../writer.js";
|
|
4
|
-
|
|
4
|
+
// src/commands/user.ts
|
|
5
5
|
var user_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
authenticationLabel: () => authenticationLabel,
|
|
7
7
|
builder: () => builder,
|
|
@@ -56,5 +56,4 @@ const authenticationLabel = (auth) => {
|
|
|
56
56
|
case "claimable": return "Claimable project";
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
//#endregion
|
|
60
59
|
export { handler as a, describe as i, builder as n, userDetails as o, command as r, user_exports as s, authenticationLabel 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 { log } from "../log.js";
|
|
3
3
|
import { writer } from "../writer.js";
|
|
4
4
|
import { fillSingleOrg, fillSingleProject } from "../utils/enrichers.js";
|
|
5
|
-
import { r as REGIONS } from "./projects-
|
|
6
|
-
|
|
5
|
+
import { r as REGIONS } from "./projects-a3X4OFEJ.js";
|
|
6
|
+
// src/commands/vpc_endpoints.ts
|
|
7
7
|
var vpc_endpoints_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
builder: () => builder,
|
|
9
9
|
command: () => "vpc",
|
|
@@ -101,5 +101,4 @@ const removeProject = async (props) => {
|
|
|
101
101
|
const { data } = await props.apiClient.deleteProjectVpcEndpoint(props.projectId, props.id);
|
|
102
102
|
writer(props).end(data, { fields: [] });
|
|
103
103
|
};
|
|
104
|
-
//#endregion
|
|
105
104
|
export { vpc_endpoints_exports as i, command as n, describe as r, builder as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./profiles.js";
|
|
2
|
-
|
|
2
|
+
// src/_shared/auth_selection.ts
|
|
3
3
|
/**
|
|
4
4
|
* # Which credential an invocation authenticates with
|
|
5
5
|
*
|
|
@@ -79,5 +79,4 @@ function nonEmpty(value) {
|
|
|
79
79
|
const trimmed = value.trim();
|
|
80
80
|
return trimmed === "" ? void 0 : trimmed;
|
|
81
81
|
}
|
|
82
|
-
//#endregion
|
|
83
82
|
export { credentialInputs, displacedProfileWarning, recordCredentialInputs, selectCredential };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { writeSecretFile } from "./secure_file.js";
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
|
-
|
|
3
|
+
// src/_shared/credentials.ts
|
|
4
4
|
/**
|
|
5
5
|
* # Stored credentials — one file per account, two kinds
|
|
6
6
|
*
|
|
@@ -184,5 +184,4 @@ const isSameCredential = (existingKey, replacementKey) => {
|
|
|
184
184
|
const trimmed = existingKey.trim();
|
|
185
185
|
return trimmed !== "" && trimmed === replacementKey.trim();
|
|
186
186
|
};
|
|
187
|
-
//#endregion
|
|
188
187
|
export { API_KEY, OAUTH, apiKeyCredentials, credentialKind, describeScope, inspectCredentials, interpretCredentials, isSameCredential, readCredentials, scopeOf, writeCredentials };
|
package/dist/_shared/paths.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { existsSync } from "node:fs";
|
|
2
2
|
import { join, resolve } from "node:path";
|
|
3
|
-
|
|
3
|
+
// src/_shared/paths.ts
|
|
4
4
|
/**
|
|
5
5
|
* # Where the Neon CLIs keep their files on disk
|
|
6
6
|
*
|
|
@@ -147,5 +147,4 @@ const isOwnedCredentialPath = (configDirectory, file) => {
|
|
|
147
147
|
const legacy = legacyConfigDir();
|
|
148
148
|
return legacy !== void 0 && isInsideConfigDir(legacy, file);
|
|
149
149
|
};
|
|
150
|
-
//#endregion
|
|
151
150
|
export { CONFIG_DIR_NAME, CREDENTIALS_FILE, LEGACY_CONFIG_DIR_NAME, configDir, credentialsPath, defaultDir, isInsideConfigDir, isOwnedCredentialPath, legacyConfigDir, resolveConfigFile };
|
package/dist/_shared/profiles.js
CHANGED
|
@@ -2,7 +2,7 @@ import { credentialsPath, defaultDir, resolveConfigFile } from "./paths.js";
|
|
|
2
2
|
import { writeSecretFile } from "./secure_file.js";
|
|
3
3
|
import { existsSync, readFileSync } from "node:fs";
|
|
4
4
|
import { isAbsolute, relative, resolve } from "node:path";
|
|
5
|
-
|
|
5
|
+
// src/_shared/profiles.ts
|
|
6
6
|
/**
|
|
7
7
|
* # Profiles — several Neon accounts in one config directory
|
|
8
8
|
*
|
|
@@ -222,5 +222,4 @@ function nonEmpty(value) {
|
|
|
222
222
|
const trimmed = value.trim();
|
|
223
223
|
return trimmed === "" ? void 0 : trimmed;
|
|
224
224
|
}
|
|
225
|
-
//#endregion
|
|
226
225
|
export { DEFAULT_PROFILE, PROFILES_FILE, assertProfilesUsable, assertValidProfileName, inspectProfiles, listProfiles, newProfileCredentialsPath, onlyDefaultRemains, profilesFilePath, readProfiles, removeProfileEntry, resolveProfile, selectProfileName, upsertProfile };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { renameSync, unlinkSync, writeFileSync } from "node:fs";
|
|
2
2
|
import { basename, dirname, join } from "node:path";
|
|
3
|
-
|
|
3
|
+
// src/_shared/secure_file.ts
|
|
4
4
|
/** Owner read/write. A credential needs those two and nothing else. */
|
|
5
5
|
const SECRET_FILE_MODE = 384;
|
|
6
6
|
/**
|
|
@@ -37,5 +37,4 @@ const writeSecretFile = (path, contents) => {
|
|
|
37
37
|
throw err;
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
-
//#endregion
|
|
41
40
|
export { SECRET_FILE_MODE, writeSecretFile };
|
package/dist/analytics.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { a as OAUTH, t as storeFor } from "./_chunks/credential_io-
|
|
1
|
+
import { a as OAUTH, t as storeFor } from "./_chunks/credential_io-DbeSh3Pl.js";
|
|
2
2
|
import { getCliAgent, getGithubEnvVars, isCi } from "./env.js";
|
|
3
3
|
import { log } from "./log.js";
|
|
4
4
|
import { getOrCreateAnonymousId } from "./anonymous_id.js";
|
|
5
5
|
import pkg_default from "./pkg.js";
|
|
6
6
|
import { UnreadableResponseError, getApiClient, isNeonApiError } from "./api.js";
|
|
7
7
|
import { getAuthContext } from "./auth_context.js";
|
|
8
|
-
import { n as credentialsPath } from "./_chunks/paths-
|
|
8
|
+
import { n as credentialsPath } from "./_chunks/paths-B55ZfOg1.js";
|
|
9
9
|
import "./config.js";
|
|
10
10
|
import { isCurrentBranchProbe } from "./context.js";
|
|
11
11
|
import { isUnexpectedError } from "./errors.js";
|
|
12
12
|
import { Analytics } from "@segment/analytics-node";
|
|
13
|
-
|
|
13
|
+
// src/analytics.ts
|
|
14
14
|
const WRITE_KEY = "3SQXn5ejjXWLEJ8xU2PRYhAotLtTaeeV";
|
|
15
15
|
/**
|
|
16
16
|
* Raw-argv fallback for the offline `--current-branch` probe. The init
|
|
@@ -355,5 +355,4 @@ const getAnalyticsEventProperties = (args) => ({
|
|
|
355
355
|
agent: getCliAgent(process.env),
|
|
356
356
|
githubEnvVars: getGithubEnvVars(process.env)
|
|
357
357
|
});
|
|
358
|
-
|
|
359
|
-
export { analyticsIdentity, analyticsMiddleware, closeAnalytics, commandSuccessProperties, getAnalyticsEventProperties, getErrorAnalyticsEventProperties, initAnalyticsClientMiddleware, isAnalyticsActive, recordCommandSuccessExtras, recordScaffoldedTemplate, sendError, storedCredentialAttribution, takeCommandSuccessExtras, telemetryCredential, trackCommandSuccess, trackEvent, useAnalyticsClientForTests };
|
|
358
|
+
export { analyticsIdentity, analyticsMiddleware, closeAnalytics, commandSuccessProperties, getAnalyticsEventProperties, getErrorAnalyticsEventProperties, initAnalyticsClientMiddleware, isAnalyticsActive, recordCommandSuccessExtras, recordScaffoldedTemplate, redactCredentialTokenIds, sendError, storedCredentialAttribution, takeCommandSuccessExtras, telemetryCredential, trackCommandSuccess, trackEvent, useAnalyticsClientForTests };
|
package/dist/anonymous_id.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as writeSecretFile } from "./_chunks/secure_file-
|
|
1
|
+
import { t as writeSecretFile } from "./_chunks/secure_file-Caskdohg.js";
|
|
2
2
|
import { isCi } from "./env.js";
|
|
3
3
|
import { log } from "./log.js";
|
|
4
4
|
import { isEexist } from "./refresh_lock.js";
|
|
5
5
|
import { linkSync, mkdirSync, readFileSync, unlinkSync, writeFileSync } from "node:fs";
|
|
6
6
|
import { join } from "node:path";
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
|
8
|
-
|
|
8
|
+
// src/anonymous_id.ts
|
|
9
9
|
const ANONYMOUS_ID_FILE = "anonymous_id";
|
|
10
10
|
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
11
11
|
const readStored = (path) => {
|
|
@@ -55,5 +55,4 @@ const getOrCreateAnonymousId = (configDir) => {
|
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
-
//#endregion
|
|
59
58
|
export { ANONYMOUS_ID_FILE, getOrCreateAnonymousId };
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Readable } from "node:stream";
|
|
|
4
4
|
import * as raw from "@neon/sdk/raw";
|
|
5
5
|
import { createClient, createConfig } from "@neon/sdk/raw";
|
|
6
6
|
import { EnvHttpProxyAgent, setGlobalDispatcher } from "undici";
|
|
7
|
-
|
|
7
|
+
// src/api.ts
|
|
8
8
|
if ([
|
|
9
9
|
"HTTP_PROXY",
|
|
10
10
|
"http_proxy",
|
|
@@ -1079,5 +1079,4 @@ const getApiClient = ({ apiKey, apiHost, requestTimeoutMs = REQUEST_TIMEOUT_MS }
|
|
|
1079
1079
|
}))
|
|
1080
1080
|
};
|
|
1081
1081
|
};
|
|
1082
|
-
//#endregion
|
|
1083
1082
|
export { ContentType, NeonApiError, UnreadableResponseError, codeFromBody, getApiClient, isNeonApiError, messageFromBody, retryOnLock };
|
package/dist/auth.js
CHANGED
|
@@ -8,7 +8,7 @@ import { fileURLToPath } from "node:url";
|
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import open from "open";
|
|
10
10
|
import * as client from "openid-client";
|
|
11
|
-
|
|
11
|
+
// src/auth.ts
|
|
12
12
|
const SERVER_TIMEOUT = 1e4;
|
|
13
13
|
const REDIRECT_URI = (port) => `http://127.0.0.1:${port}/callback`;
|
|
14
14
|
const ALWAYS_PRESENT_SCOPES = [
|
|
@@ -220,5 +220,4 @@ const auth = async ({ oauthHost, clientId, allowUnsafeTls }) => {
|
|
|
220
220
|
});
|
|
221
221
|
});
|
|
222
222
|
};
|
|
223
|
-
//#endregion
|
|
224
223
|
export { AuthRefreshError, NEONCTL_SCOPES, auth, classifyRefreshFailure, defaultClientID, refreshToken, revokeToken };
|
package/dist/auth_context.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/auth_context.ts
|
|
2
2
|
const locationFromContext = (context) => {
|
|
3
3
|
if (context.profile === void 0) return null;
|
|
4
4
|
if (context.storage === "keyring") return {
|
|
@@ -36,5 +36,4 @@ const authFailureMessage = (context) => {
|
|
|
36
36
|
}
|
|
37
37
|
return "Authentication failed: the Neon API rejected the API key. Check --api-key or NEON_API_KEY.";
|
|
38
38
|
};
|
|
39
|
-
//#endregion
|
|
40
39
|
export { authFailureMessage, clearAuthContext, getAuthContext, locationFromContext, setAuthContext };
|
package/dist/auth_recovery.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as storeFor } from "./_chunks/credential_io-
|
|
1
|
+
import { t as storeFor } from "./_chunks/credential_io-DbeSh3Pl.js";
|
|
2
2
|
import { log } from "./log.js";
|
|
3
3
|
import { authFailureMessage, getAuthContext, locationFromContext } from "./auth_context.js";
|
|
4
4
|
import { AuthRefreshError } from "./auth.js";
|
|
5
|
-
import { f as refreshStoredCredentials, u as isAccessTokenUsable } from "./_chunks/auth-
|
|
6
|
-
|
|
5
|
+
import { f as refreshStoredCredentials, u as isAccessTokenUsable } from "./_chunks/auth-DPSDYYtG.js";
|
|
6
|
+
// src/auth_recovery.ts
|
|
7
7
|
const supersededOnDisk = (rejectedToken) => {
|
|
8
8
|
if (rejectedToken === void 0) return false;
|
|
9
9
|
const context = getAuthContext();
|
|
@@ -57,5 +57,4 @@ const recoverFrom401 = async (canRetry) => {
|
|
|
57
57
|
log.error(authFailureMessage(context));
|
|
58
58
|
return false;
|
|
59
59
|
};
|
|
60
|
-
//#endregion
|
|
61
60
|
export { recoverFrom401 };
|
package/dist/claimable/api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/claimable/api.ts
|
|
2
2
|
const REQUEST_TIMEOUT_MS = 6e4;
|
|
3
3
|
const JWT_BEARER_GRANT = "urn:ietf:params:oauth:grant-type:jwt-bearer";
|
|
4
4
|
const DEFAULT_CLAIMABLE_ORIGIN = "https://claimable.neon.tech";
|
|
@@ -241,5 +241,4 @@ var ClaimableClient = class {
|
|
|
241
241
|
return payload;
|
|
242
242
|
}
|
|
243
243
|
};
|
|
244
|
-
//#endregion
|
|
245
244
|
export { ClaimableClient, ClaimableServiceError, DEFAULT_CLAIMABLE_ORIGIN, parseClaimCodeResponse, parseClaimStatusResponse, parseCredentialsResponse, parseRegistrationResponse, parseTokenResponse };
|
package/dist/claimable/state.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as writeSecretFile } from "../_chunks/secure_file-
|
|
1
|
+
import { t as writeSecretFile } from "../_chunks/secure_file-Caskdohg.js";
|
|
2
2
|
import { getAuthContext } from "../auth_context.js";
|
|
3
3
|
import { readContextFile } from "../context.js";
|
|
4
4
|
import { ClaimableClient } from "./api.js";
|
|
5
5
|
import { existsSync, mkdirSync, readFileSync, readdirSync, unlinkSync } from "node:fs";
|
|
6
6
|
import { join } from "node:path";
|
|
7
|
-
|
|
7
|
+
// src/claimable/state.ts
|
|
8
8
|
const FILE_PREFIX = "claimable-credential.";
|
|
9
9
|
const FILE_SUFFIX = ".json";
|
|
10
10
|
const PROJECT_ID = /^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/u;
|
|
@@ -106,5 +106,4 @@ const isClaimableEnvTarget = (props) => {
|
|
|
106
106
|
if (stored === null) return false;
|
|
107
107
|
return props.apiHost.trim().replace(/\/+$/, "") === claimableApiHost(stored.origin);
|
|
108
108
|
};
|
|
109
|
-
//#endregion
|
|
110
109
|
export { assertionHasExpired, claimableApiHost, claimableCredentialsExist, claimableCredentialsPath, isClaimableEnvTarget, listClaimableCredentials, readClaimableCredentials, readLinkedClaimableCredentials, removeClaimableCredentials, shouldUseClaimableCredentials, writeClaimableCredentials };
|
package/dist/cli.js
CHANGED
package/dist/commands/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as buildBody, r as buildQuery, i as builder, a as colorizeJson, o as command, s as describe, c as handler, l as parseHeaders, u as parseKeyValue, d as parseTypedValue, f as setDeep } from "../_chunks/api-
|
|
1
|
+
export { n as buildBody, r as buildQuery, i as builder, a as colorizeJson, o as command, s as describe, c as handler, l as parseHeaders, u as parseKeyValue, d as parseTypedValue, f as setDeep } from "../_chunks/api-1MKsfpY3.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as aliases, r as builder, i as command, a as describe, o as handler, s as orgIdForProject } from "../_chunks/api_keys-
|
|
1
|
+
export { t as aliases, r as builder, i as command, a as describe, o as handler, s as orgIdForProject } from "../_chunks/api_keys-6Xnxl7a8.js";
|
package/dist/commands/ask.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as DEFAULT_ASK_URL, r as builder, i as command, a as describe, o as handler, s as resolveAskUrl } from "../_chunks/ask-
|
|
1
|
+
export { t as DEFAULT_ASK_URL, r as builder, i as command, a as describe, o as handler, s as resolveAskUrl } from "../_chunks/ask-Xlek1Pxh.js";
|
package/dist/commands/ask_sse.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/commands/ask_sse.ts
|
|
2
2
|
function isEventStreamContentType(header) {
|
|
3
3
|
return header?.split(";")[0]?.trim().toLowerCase() === "text/event-stream";
|
|
4
4
|
}
|
|
@@ -97,5 +97,4 @@ async function* readAskSse(body) {
|
|
|
97
97
|
reader.releaseLock();
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
//#endregion
|
|
101
100
|
export { isEventStreamContentType, readAskSse };
|
package/dist/commands/auth.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as aliases, n as authFlow, i as builder, a as command, o as deleteCredentialsAt, s as describe, c as ensureAuth, l as handler, u as isAccessTokenUsable, d as locationForAuth, f as refreshStoredCredentials, p as usableCredential } from "../_chunks/auth-
|
|
1
|
+
export { t as aliases, n as authFlow, i as builder, a as command, o as deleteCredentialsAt, s as describe, c as ensureAuth, l as handler, u as isAccessTokenUsable, d as locationForAuth, f as refreshStoredCredentials, p as usableCredential } from "../_chunks/auth-DPSDYYtG.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as builder, r as command, i as describe, a as handler } from "../_chunks/bootstrap-
|
|
1
|
+
export { n as builder, r as command, i as describe, a as handler } from "../_chunks/bootstrap-BDkvsAVJ.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as BRANCH_FIELDS, n as aliases, i as builder, a as command, o as describe, s as handler } from "../_chunks/branches-
|
|
1
|
+
export { t as BRANCH_FIELDS, n as aliases, i as builder, a as command, o as describe, s as handler } from "../_chunks/branches-Bp-5z1lM.js";
|
package/dist/commands/bucket.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as aliases, r as builder, i as command, a as describe, o as handler, s as resolveListDelimiter, c as splitBucketTarget } from "../_chunks/bucket-
|
|
1
|
+
export { t as aliases, r as builder, i as command, a as describe, o as handler, s as resolveListDelimiter, c as splitBucketTarget } from "../_chunks/bucket-D06bvDSa.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as builder, r as command, i as describe, a as formatCheckoutPolicyFailure, o as handler } from "../_chunks/checkout-
|
|
1
|
+
export { t as builder, r as command, i as describe, a as formatCheckoutPolicyFailure, o as handler } from "../_chunks/checkout-C6VMMgY6.js";
|
package/dist/commands/claim.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as CLAIM_CREATE_FIELDS, n as CLAIM_LIST_FIELDS, r as aliases, i as builder, a as claimCreateFields, s as claimableCapabilities, c as command, l as create, u as describe, d as handler } from "../_chunks/claim-
|
|
1
|
+
export { t as CLAIM_CREATE_FIELDS, n as CLAIM_LIST_FIELDS, r as aliases, i as builder, a as claimCreateFields, s as claimableCapabilities, c as command, l as create, u as describe, d as handler } from "../_chunks/claim-DlLZmcq0.js";
|
package/dist/commands/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ConfigInstallFailed, n as addCmd, r as applyCmd, i as applyFlags, a as applyPolicyOnCreate, o as builder, s as command, l as createBranchFromPolicyOnCheckout, u as describe, d as ensureConfigPackages, f as envFlag, p as envPullFlag, m as handler, h as initCmd, g as installCommandFrom, _ as missingDependencies, v as planCmd, y as status } from "../_chunks/config-
|
|
1
|
+
export { t as ConfigInstallFailed, n as addCmd, r as applyCmd, i as applyFlags, a as applyPolicyOnCreate, o as builder, s as command, l as createBranchFromPolicyOnCheckout, u as describe, d as ensureConfigPackages, f as envFlag, p as envPullFlag, m as handler, h as initCmd, g as installCommandFrom, _ as missingDependencies, v as planCmd, y as status } from "../_chunks/config-7SIE_C5O.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as SSL_MODES, n as aliases, r as builder, i as command, o as describe, s as handler } from "../_chunks/connection_string-
|
|
1
|
+
export { t as SSL_MODES, n as aliases, r as builder, i as command, o as describe, s as handler } from "../_chunks/connection_string-C9e7N4xk.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as aliases, n as builder, r as command, i as create, o as describe, s as handler, c as list, l as reveal, u as revoke, d as rotate } from "../_chunks/credentials-
|
|
1
|
+
export { t as aliases, n as builder, r as command, i as create, o as describe, s as handler, c as list, l as reveal, u as revoke, d as rotate } from "../_chunks/credentials-BMBNmW0t.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as builder, n as command, i as describe, a as handler } from "../_chunks/data_api-
|
|
1
|
+
export { t as builder, n as command, i as describe, a as handler } from "../_chunks/data_api-CHDwvMTG.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as DATABASE_FIELDS, n as aliases, r as builder, i as command, a as create, s as deleteDb, c as describe, l as handler, u as list } from "../_chunks/databases-
|
|
1
|
+
export { t as DATABASE_FIELDS, n as aliases, r as builder, i as command, a as create, s as deleteDb, c as describe, l as handler, u as list } from "../_chunks/databases-DC2h6IW2.js";
|
package/dist/commands/deploy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as builder, n as command, i as describe, a as handler } from "../_chunks/deploy-
|
|
1
|
+
export { t as builder, n as command, i as describe, a as handler } from "../_chunks/deploy-DmKZcAnR.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/commands/deploy_help.ts
|
|
2
2
|
const DEPLOY_COMMANDS_EPILOGUE = [
|
|
3
3
|
"",
|
|
4
4
|
"Use neon deploy with a neon.ts file for a full deployment (declared services and functions).",
|
|
@@ -6,5 +6,4 @@ const DEPLOY_COMMANDS_EPILOGUE = [
|
|
|
6
6
|
"neon deploy --env <file> loads that .env file so neon.ts can read Function env from it.",
|
|
7
7
|
"neon functions deploy --env is KEY=VALUE (repeatable), not a file path."
|
|
8
8
|
].join("\n");
|
|
9
|
-
//#endregion
|
|
10
9
|
export { DEPLOY_COMMANDS_EPILOGUE };
|
package/dist/commands/dev.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as builder, n as captureShellEnv, r as command, i as describe, a as devBundleDir, o as devEnvContext, c as diffUnits, l as formatEnvFiles, u as formatEnvSummary, d as handler, f as loadDevEnvFiles, p as localFunctionUrlEnv, m as planFunctionsToUnits, h as reportDevCredential, g as sourceFunctionUrlOverlay } from "../_chunks/dev-
|
|
1
|
+
export { t as builder, n as captureShellEnv, r as command, i as describe, a as devBundleDir, o as devEnvContext, c as diffUnits, l as formatEnvFiles, u as formatEnvSummary, d as handler, f as loadDevEnvFiles, p as localFunctionUrlEnv, m as planFunctionsToUnits, h as reportDevCredential, g as sourceFunctionUrlOverlay } from "../_chunks/dev-Dv0HKcFF.js";
|
package/dist/commands/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as builder, n as command, r as describe, a as handler } from "../_chunks/diff-
|
|
1
|
+
export { t as builder, n as command, r as describe, a as handler } from "../_chunks/diff-dnxneH0u.js";
|
package/dist/commands/docs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as DEFAULT_SITE_SEARCH_URL, n as MAX_LIMIT, r as MAX_QUERY_LENGTH, i as SITE_SEARCH_CATEGORIES, a as builder, o as command, s as describe, l as formatSearchResults, u as parseSearchHits, d as resolveSiteSearchUrl, f as siteSearchHeaders } from "../_chunks/docs-
|
|
1
|
+
export { t as DEFAULT_SITE_SEARCH_URL, n as MAX_LIMIT, r as MAX_QUERY_LENGTH, i as SITE_SEARCH_CATEGORIES, a as builder, o as command, s as describe, l as formatSearchResults, u as parseSearchHits, d as resolveSiteSearchUrl, f as siteSearchHeaders } from "../_chunks/docs-CClmgj_Z.js";
|
package/dist/commands/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ENV_PULL_SKIPPED_HINT, n as autoPullEnvAfterPin, r as builder, i as command, a as describe, s as handler, c as pull } from "../_chunks/env-
|
|
1
|
+
export { t as ENV_PULL_SKIPPED_HINT, n as autoPullEnvAfterPin, r as builder, i as command, a as describe, s as handler, c as pull } from "../_chunks/env-BOt9AZ1j.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { NEON_SERVICES, NEON_SERVICE_LABELS } from "../neon_services.js";
|
|
2
|
-
import { u as isFunctionBaseUrlKey } from "../_chunks/env-
|
|
2
|
+
import { u as isFunctionBaseUrlKey } from "../_chunks/env-JgoSsmyt.js";
|
|
3
3
|
import { BRANCH_ENV_KEY, ENV_PULL_KEYS, serviceForEnvKey } from "../env_services.js";
|
|
4
4
|
import { isAbsolute, relative } from "node:path";
|
|
5
5
|
import { homedir } from "node:os";
|
|
6
6
|
import chalk from "chalk";
|
|
7
|
-
|
|
7
|
+
// src/commands/env_output.ts
|
|
8
8
|
/** Wide enough for the longest label ("Object Storage") plus a gutter, so blocks align. */
|
|
9
9
|
const LABEL_WIDTH = 16;
|
|
10
10
|
const row = (label, value) => ` ${label.padEnd(LABEL_WIDTH)}${value}`;
|
|
@@ -63,5 +63,4 @@ const formatPulledEnv = (outcome, cwd, branch) => {
|
|
|
63
63
|
else if (credential?.issued && credential.superseded.length > 0) lines.push(`Left the credential it replaced live (${credential.superseded.join(", ")}): an explicitly scoped pull can't tell which other variables still use it. Revoke it in the Neon Console if nothing does.`);
|
|
64
64
|
return `${lines.join("\n")}\n`;
|
|
65
65
|
};
|
|
66
|
-
//#endregion
|
|
67
66
|
export { displayPath, formatPulledEnv, pulledBranch, row };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as DEFAULT_FEEDBACK_URL, n as MAX_FEEDBACK_LENGTH, r as builder, i as command, a as describe, s as handler, c as resolveFeedbackUrl } from "../_chunks/feedback-
|
|
1
|
+
export { t as DEFAULT_FEEDBACK_URL, n as MAX_FEEDBACK_LENGTH, r as builder, i as command, a as describe, s as handler, c as resolveFeedbackUrl } from "../_chunks/feedback-mQmdTRFn.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as aliases, n as builder, r as command, i as deploymentPollDelay, a as describe, s as handler } from "../_chunks/functions-
|
|
1
|
+
export { t as aliases, n as builder, r as command, i as deploymentPollDelay, a as describe, s as handler } from "../_chunks/functions-3ypiRwZK.js";
|