neon 8.13.2 → 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/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-Dj0H6lDA.js → plugins-CKOcBuuP.js} +2 -3
- 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 +3 -4
- 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 +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 +5 -6
- package/dist/init/template_title.js +1 -2
- package/dist/init/tooling.js +4 -5
- 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
package/dist/parameters.gen.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/parameters.gen.ts
|
|
2
2
|
const projectCreateRequest = {
|
|
3
3
|
"project.settings.quota.active_time_seconds": {
|
|
4
4
|
type: "number",
|
|
@@ -496,5 +496,4 @@ const roleCreateRequest = {
|
|
|
496
496
|
demandOption: false
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
|
-
//#endregion
|
|
500
499
|
export { branchCreateRequest, branchCreateRequestEndpointOptions, branchUpdateRequest, databaseCreateRequest, endpointCreateRequest, endpointUpdateRequest, projectCreateRequest, projectUpdateRequest, roleCreateRequest };
|
package/dist/pkg.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readFileSync } from "node:fs";
|
|
2
2
|
import { dirname, join } from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
|
-
|
|
4
|
+
// src/pkg.ts
|
|
5
5
|
/**
|
|
6
6
|
* Load the CLI's package.json for version metadata. In the built CLI it sits right next to
|
|
7
7
|
* this module (the build copies it into `dist`); when running from source (tests, `tsx`) it
|
|
@@ -19,5 +19,4 @@ const loadPkg = () => {
|
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
var pkg_default = loadPkg();
|
|
22
|
-
//#endregion
|
|
23
22
|
export { pkg_default as default };
|
package/dist/plugins/plan.js
CHANGED
|
@@ -4,7 +4,7 @@ import { detectPluginsAgents, getPluginsTargetName, isUserScopeOnlyPluginsTarget
|
|
|
4
4
|
import { collectYesAgents, noDetectedAgentsMessage } from "../init/plan.js";
|
|
5
5
|
import { detectAgent } from "../init/detect_host.js";
|
|
6
6
|
import { agentChoicesFrom, pickAgentsInteractively, resolveAgentSelection } from "../utils/agent_picker.js";
|
|
7
|
-
|
|
7
|
+
// src/plugins/plan.ts
|
|
8
8
|
const missingPluginsCommandsError = (missing) => new Error(missing.map(({ agent, command }) => `Cannot install the Neon plugin for ${getAgentDisplayName(agent)}: "${command}" was not found on PATH. Install it or add it to PATH, then retry.`).join("\n"));
|
|
9
9
|
const assertPluginsCanRun = (options) => {
|
|
10
10
|
if (options.yes || options.interactive || options.hasAgents) return;
|
|
@@ -107,5 +107,4 @@ async function resolvePluginsPlan(options) {
|
|
|
107
107
|
targets: mappedPluginsTargets(agents, scope)
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
|
-
//#endregion
|
|
111
110
|
export { assertPluginsCanRun, missingPluginsCommandsError, resolvePluginsPlan };
|
package/dist/plugins/run.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { spawnSync } from "node:child_process";
|
|
2
2
|
import { execa } from "execa";
|
|
3
|
-
|
|
3
|
+
// src/plugins/run.ts
|
|
4
4
|
const TELEMETRY_BLOCKERS = ["DISABLE_TELEMETRY", "DO_NOT_TRACK"];
|
|
5
5
|
const PLUGIN_SOURCE = "neondatabase/agent-skills";
|
|
6
6
|
const NEON_PLUGIN_NAME = "neon-postgres";
|
|
@@ -130,5 +130,4 @@ const killProcessTree = (pid) => {
|
|
|
130
130
|
};
|
|
131
131
|
const isCommandMissing = (error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT";
|
|
132
132
|
const isExecaFailure = (error) => typeof error === "object" && error !== null && "shortMessage" in error && typeof error.shortMessage === "string";
|
|
133
|
-
//#endregion
|
|
134
133
|
export { NEON_PLUGIN_NAME, PLUGINS_CLI_TIMEOUT_MS, PLUGIN_SKILLS, PLUGIN_SOURCE, neonPluginsRetryCommand, pluginsAddArgs, pluginsChildEnv, pluginsCliFailureMessage, pluginsScopeFlag, quoteNpxArg, runPluginsCli };
|
package/dist/plugins/targets.js
CHANGED
|
@@ -3,7 +3,7 @@ import "../init/agents.js";
|
|
|
3
3
|
import { delimiter, dirname, join, resolve } from "node:path";
|
|
4
4
|
import { detectProjectAgents } from "add-mcp";
|
|
5
5
|
import which from "which";
|
|
6
|
-
|
|
6
|
+
// src/plugins/targets.ts
|
|
7
7
|
const CLAUDE_CODE = { target: "claude-code" };
|
|
8
8
|
const PLUGINS_TARGET_BY_TYPE = {
|
|
9
9
|
cursor: { target: "cursor" },
|
|
@@ -104,5 +104,4 @@ const mappedPluginsTargets = (agents, scope) => {
|
|
|
104
104
|
if (mapped.length === 0) throw new Error(`None of the selected agents can install plugins. Supported agents: ${pluginsInstallableAgents(scope).join(", ")}`);
|
|
105
105
|
return mapped;
|
|
106
106
|
};
|
|
107
|
-
//#endregion
|
|
108
107
|
export { detectInstallablePluginsAgents, detectPluginsAgents, getPluginsTargetName, isUserScopeOnlyPluginsTarget, mappedPluginsTargets, missingPluginsCommands, pluginsInstallableAgents, pluginsMappedAgents, pluginsTargets, supportsPlugins };
|
package/dist/profile_keys.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { randomBytes } from "node:crypto";
|
|
2
|
-
|
|
2
|
+
// src/profile_keys.ts
|
|
3
3
|
/**
|
|
4
4
|
* Helpers for the API-key half of a profile: naming a minted key, reading one off disk, and
|
|
5
5
|
* turning what the API says about a key into something displayable.
|
|
@@ -48,5 +48,4 @@ const identityFromAuthDetails = (details, email) => {
|
|
|
48
48
|
* way to refresh it, so it is refused at the point where the mistake is still obvious.
|
|
49
49
|
*/
|
|
50
50
|
const notAnApiKeyMessage = (method) => `That credential authenticates as "${method}", not an API key. Create a key with \`neon api-keys create --name <name>\`, or have one minted with \`neon profile create <name> --mint\`.`;
|
|
51
|
-
//#endregion
|
|
52
51
|
export { identityFromAuthDetails, isApiKeyMethod, mintedKeyName, notAnApiKeyMessage };
|
package/dist/project.js
CHANGED
|
@@ -2,7 +2,7 @@ import { currentContextFile } from "./context.js";
|
|
|
2
2
|
import { existsSync } from "node:fs";
|
|
3
3
|
import { dirname, join, resolve } from "node:path";
|
|
4
4
|
import { ConfigLoadError, loadConfigFromFile } from "@neon/config";
|
|
5
|
-
|
|
5
|
+
// src/project.ts
|
|
6
6
|
/** Config filenames the runtime loads (mirrors @neon/config's loader). */
|
|
7
7
|
const NEON_CONFIG_FILENAMES = [
|
|
8
8
|
"neon.ts",
|
|
@@ -45,5 +45,4 @@ const loadProjectConfig = async (options) => {
|
|
|
45
45
|
...unsetFunctionEnv !== void 0 ? { unsetFunctionEnv } : {}
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
|
-
//#endregion
|
|
49
48
|
export { hasNeonConfigFile, loadProjectConfig, neonConfigFilename, projectConfigPath, projectDir };
|
package/dist/psql/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as looksLikeConnectionString, u as runPsql } from "../_chunks/psql-
|
|
3
|
-
|
|
2
|
+
import { i as looksLikeConnectionString, u as runPsql } from "../_chunks/psql-DwGeP0IV.js";
|
|
3
|
+
// src/psql/cli.ts
|
|
4
4
|
/**
|
|
5
5
|
* Standalone psql shim.
|
|
6
6
|
*
|
|
@@ -46,5 +46,4 @@ main().catch((err) => {
|
|
|
46
46
|
process.stderr.write(`psql: fatal: ${msg}\n`);
|
|
47
47
|
process.exit(1);
|
|
48
48
|
});
|
|
49
|
-
//#endregion
|
|
50
49
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { writeErr } from "./shared.js";
|
|
2
|
-
|
|
2
|
+
// src/psql/command/cmd_cond.ts
|
|
3
3
|
const INACTIVE_STATES = [
|
|
4
4
|
"false",
|
|
5
5
|
"else-false",
|
|
@@ -258,5 +258,4 @@ const COND_COMMAND_NAMES = /* @__PURE__ */ new Set([
|
|
|
258
258
|
"else",
|
|
259
259
|
"endif"
|
|
260
260
|
]);
|
|
261
|
-
//#endregion
|
|
262
261
|
export { COND_COMMAND_NAMES, attachCondStack, cmdElif, cmdElse, cmdEndif, cmdIf, createCondStack, getCondStack, parseBool };
|
|
@@ -12,7 +12,7 @@ import { unalignedPrinter } from "../print/unaligned.js";
|
|
|
12
12
|
import { PgConnection } from "../wire/connection.js";
|
|
13
13
|
import { createHash, createHmac, pbkdf2Sync, randomBytes } from "node:crypto";
|
|
14
14
|
import { Buffer } from "node:buffer";
|
|
15
|
-
|
|
15
|
+
// src/psql/command/cmd_connect.ts
|
|
16
16
|
/**
|
|
17
17
|
* Connection backslash commands.
|
|
18
18
|
*
|
|
@@ -610,5 +610,4 @@ const registerConnectCommands = (registry) => {
|
|
|
610
610
|
registry.register(cmdEncoding);
|
|
611
611
|
registry.register(cmdPassword);
|
|
612
612
|
};
|
|
613
|
-
//#endregion
|
|
614
613
|
export { cmdConnect, cmdConninfo, cmdEncoding, cmdPassword, mergeConnectOpts, parseConnectArgs, registerConnectCommands, scramSha256Verifier, setCmdConnectDeps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { writeErr, writeOut } from "./shared.js";
|
|
2
2
|
import { pumpReadable } from "../wire/copy.js";
|
|
3
|
-
import { m as getPipelineState } from "../../_chunks/cmd_pipeline-
|
|
3
|
+
import { m as getPipelineState } from "../../_chunks/cmd_pipeline-BDE-TGto.js";
|
|
4
4
|
import { createReadStream, createWriteStream, promises } from "node:fs";
|
|
5
5
|
import { spawn } from "node:child_process";
|
|
6
6
|
import { Buffer } from "node:buffer";
|
|
7
|
-
|
|
7
|
+
// src/psql/command/cmd_copy.ts
|
|
8
8
|
/**
|
|
9
9
|
* psql `\copy` backslash command (WP-16).
|
|
10
10
|
*
|
|
@@ -778,5 +778,4 @@ const registerCopyCommands = (registry) => {
|
|
|
778
778
|
* Readable shim.
|
|
779
779
|
*/
|
|
780
780
|
const toBuffer = (s) => Buffer.from(s, "utf8");
|
|
781
|
-
//#endregion
|
|
782
781
|
export { COPY_BINARY_SIGNATURE, COPY_IN_PIPELINE_MSG, buildCopySql, cmdCopy, doCopy, isCopyBinaryFormat, isCopyTextFormat, parseSlashCopy, pumpStdinWithEofMarker, registerCopyCommands, toBuffer, validateCopyBinarySignature };
|
|
@@ -2,7 +2,7 @@ import { writeErr } from "./shared.js";
|
|
|
2
2
|
import { processSQLNamePattern } from "../describe/processNamePattern.js";
|
|
3
3
|
import { describeAccessMethods, describeAggregates, describeConfigurationParameters, describeFunctions, describeOperators, describeRoleGrants, describeRoles, describeSubscriptions, describeTableDetails, describeTablespaces, describeTypes, listAllDbs, listCasts, listCollations, listConversions, listDbRoleSettings, listDefaultACLs, listDomains, listEventTriggers, listExtendedStats, listExtensions, listForeignDataWrappers, listForeignServers, listForeignTables, listLanguages, listLargeObjects, listOpFamilyFunctions, listOpFamilyOperators, listOperatorClasses, listOperatorFamilies, listPartitionedTables, listPublications, listSchemas, listTSConfigs, listTSDictionaries, listTSParsers, listTSTemplates, listTables, listUserMappings, objectDescription, permissionsList } from "../describe/queries.js";
|
|
4
4
|
import { describeOneSequence, describeOneTableDetails, describeOneViewDetails, lookupOneRelation, runListQuery } from "../describe/formatters.js";
|
|
5
|
-
|
|
5
|
+
// src/psql/command/cmd_describe.ts
|
|
6
6
|
/**
|
|
7
7
|
* psql `\d*` describe-command dispatchers.
|
|
8
8
|
*
|
|
@@ -1622,5 +1622,4 @@ const registerDescribeCommands = (registry) => {
|
|
|
1622
1622
|
name: variant
|
|
1623
1623
|
});
|
|
1624
1624
|
};
|
|
1625
|
-
//#endregion
|
|
1626
1625
|
export { registerDescribeCommands };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { parseBool, parseTriple, writeErr, writeOut } from "./shared.js";
|
|
2
2
|
import { scanSlashArgs } from "../scanner/slash.js";
|
|
3
|
-
|
|
3
|
+
// src/psql/command/cmd_format.ts
|
|
4
4
|
/**
|
|
5
5
|
* Formatting backslash commands.
|
|
6
6
|
*
|
|
@@ -772,5 +772,4 @@ const cmdPset = {
|
|
|
772
772
|
return Promise.resolve(result);
|
|
773
773
|
}
|
|
774
774
|
};
|
|
775
|
-
//#endregion
|
|
776
775
|
export { applyPset, cmdA, cmdC, cmdEncoding, cmdF, cmdH, cmdPset, cmdT, cmdTitleAttr, cmdX };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { y as DEFAULT_WATCH_INTERVAL, b as WATCH_TEST_CONTROLLER, x as clearPipelineGateErrors, S as cmdG, C as cmdGdesc, w as cmdGexec, T as cmdGset, E as cmdGx, D as cmdInclude, O as cmdIncludeRel, k as cmdOut, A as cmdPrint, j as cmdWatch, M as cmdWrite, N as formatWatchTimestamp, P as getQueryFout, F as registerIoCommands } from "../../_chunks/cmd_pipeline-
|
|
1
|
+
export { y as DEFAULT_WATCH_INTERVAL, b as WATCH_TEST_CONTROLLER, x as clearPipelineGateErrors, S as cmdG, C as cmdGdesc, w as cmdGexec, T as cmdGset, E as cmdGx, D as cmdInclude, O as cmdIncludeRel, k as cmdOut, A as cmdPrint, j as cmdWatch, M as cmdWrite, N as formatWatchTimestamp, P as getQueryFout, F as registerIoCommands } from "../../_chunks/cmd_pipeline-BDE-TGto.js";
|
|
@@ -3,7 +3,7 @@ import { alignedPrinter } from "../print/aligned.js";
|
|
|
3
3
|
import { listLargeObjects } from "../describe/queries.js";
|
|
4
4
|
import { promises } from "node:fs";
|
|
5
5
|
import { Buffer } from "node:buffer";
|
|
6
|
-
|
|
6
|
+
// src/psql/command/cmd_lo.ts
|
|
7
7
|
/**
|
|
8
8
|
* psql large-object backslash commands (WP-23).
|
|
9
9
|
*
|
|
@@ -327,5 +327,4 @@ const registerLargeObjectCommands = (registry) => {
|
|
|
327
327
|
registry.register(cmdLoExport);
|
|
328
328
|
registry.register(cmdLoUnlink);
|
|
329
329
|
};
|
|
330
|
-
//#endregion
|
|
331
330
|
export { cmdLoExport, cmdLoImport, cmdLoList, cmdLoListPlus, cmdLoUnlink, registerLargeObjectCommands };
|
|
@@ -6,7 +6,7 @@ import { mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
|
6
6
|
import { join } from "node:path";
|
|
7
7
|
import { tmpdir } from "node:os";
|
|
8
8
|
import { spawnSync } from "node:child_process";
|
|
9
|
-
|
|
9
|
+
// src/psql/command/cmd_meta.ts
|
|
10
10
|
/**
|
|
11
11
|
* Meta backslash commands.
|
|
12
12
|
*
|
|
@@ -814,5 +814,4 @@ const cmdS = {
|
|
|
814
814
|
return Promise.resolve({ status: "ok" });
|
|
815
815
|
}
|
|
816
816
|
};
|
|
817
|
-
//#endregion
|
|
818
817
|
export { cmdCd, cmdCopyright, cmdEcho, cmdEdit, cmdErrverbose, cmdGetenv, cmdHelpSQL, cmdPrompt, cmdQecho, cmdQuit, cmdReset, cmdS, cmdSet, cmdSetenv, cmdShell, cmdSlashHelp, cmdTiming, cmdUnset, cmdWarn, formatErrorReport, psqlErrorPrefix, renderLineAndCaret, resolveEditor };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { writeErr } from "./shared.js";
|
|
2
2
|
import { printCrosstab } from "../print/crosstab.js";
|
|
3
|
-
|
|
3
|
+
// src/psql/command/cmd_misc.ts
|
|
4
4
|
/**
|
|
5
5
|
* Miscellaneous backslash commands (WP-22).
|
|
6
6
|
*
|
|
@@ -149,5 +149,4 @@ const cmdCrosstabview = {
|
|
|
149
149
|
const registerMiscCommands = (registry) => {
|
|
150
150
|
registry.register(cmdCrosstabview);
|
|
151
151
|
};
|
|
152
|
-
//#endregion
|
|
153
152
|
export { cmdCrosstabview, registerMiscCommands };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as cmdBind, n as cmdBindNamed, r as cmdClosePrepared, i as cmdEndPipeline, a as cmdFlush, o as cmdFlushRequest, C as cmdGdesc, s as cmdGetResults, c as cmdParse, l as cmdSendPipeline, u as cmdStartPipeline, d as cmdSyncPipeline, f as consumeBindState, p as dropPrepared, m as getPipelineState, h as lookupPrepared, g as registerPipelineCommands, _ as stagedNamedBindPresent, v as stashPrepared } from "../../_chunks/cmd_pipeline-
|
|
1
|
+
export { t as cmdBind, n as cmdBindNamed, r as cmdClosePrepared, i as cmdEndPipeline, a as cmdFlush, o as cmdFlushRequest, C as cmdGdesc, s as cmdGetResults, c as cmdParse, l as cmdSendPipeline, u as cmdStartPipeline, d as cmdSyncPipeline, f as consumeBindState, p as dropPrepared, m as getPipelineState, h as lookupPrepared, g as registerPipelineCommands, _ as stagedNamedBindPresent, v as stashPrepared } from "../../_chunks/cmd_pipeline-BDE-TGto.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { writeErr } from "./shared.js";
|
|
2
|
-
|
|
2
|
+
// src/psql/command/cmd_restrict.ts
|
|
3
3
|
/** Standard refusal message emitted when a gated command is invoked while
|
|
4
4
|
* the session is in restricted mode. Public so callers and tests can match
|
|
5
5
|
* against the exact string. */
|
|
@@ -131,5 +131,4 @@ const wrapRestrictedCommands = (registry) => {
|
|
|
131
131
|
registry.register(gated);
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
|
-
//#endregion
|
|
135
134
|
export { RESTRICTED_COMMANDS, RESTRICTED_REFUSAL_MESSAGE, cmdRestrict, cmdUnrestrict, isCommandRestricted, isRestricted, registerRestrictCommands, restrictedName, wrapRestrictedCommands };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { writeErr, writeOut } from "./shared.js";
|
|
2
|
-
|
|
2
|
+
// src/psql/command/cmd_show.ts
|
|
3
3
|
/**
|
|
4
4
|
* Emit a `\<cmd>: <message>` error to stderr, stash the message on
|
|
5
5
|
* `lastErrorResult` so `\errverbose` / the mainloop fallback see it, and
|
|
@@ -603,5 +603,4 @@ const registerShowCommands = (registry) => {
|
|
|
603
603
|
registry.register(cmdEditView);
|
|
604
604
|
registry.register(cmdEditViewPlus);
|
|
605
605
|
};
|
|
606
|
-
//#endregion
|
|
607
606
|
export { cmdEditFunction, cmdEditFunctionPlus, cmdEditView, cmdEditViewPlus, cmdShowFunction, cmdShowFunctionPlus, cmdShowView, cmdShowViewPlus, registerShowCommands };
|
|
@@ -2,7 +2,7 @@ import { writeErr } from "./shared.js";
|
|
|
2
2
|
import { scanSlashArgs } from "../scanner/slash.js";
|
|
3
3
|
import { registerConnectCommands } from "./cmd_connect.js";
|
|
4
4
|
import { cmdCd, cmdCopyright, cmdEcho, cmdEdit, cmdErrverbose, cmdGetenv, cmdHelpSQL, cmdPrompt, cmdQecho, cmdQuit, cmdReset, cmdS, cmdSet, cmdSetenv, cmdShell, cmdSlashHelp, cmdTiming, cmdUnset, cmdWarn } from "./cmd_meta.js";
|
|
5
|
-
import { F as registerIoCommands, g as registerPipelineCommands } from "../../_chunks/cmd_pipeline-
|
|
5
|
+
import { F as registerIoCommands, g as registerPipelineCommands } from "../../_chunks/cmd_pipeline-BDE-TGto.js";
|
|
6
6
|
import { cmdA, cmdC, cmdEncoding, cmdF, cmdH, cmdPset, cmdT, cmdTitleAttr, cmdX } from "./cmd_format.js";
|
|
7
7
|
import { registerCopyCommands } from "./cmd_copy.js";
|
|
8
8
|
import { registerDescribeCommands } from "./cmd_describe.js";
|
|
@@ -10,7 +10,7 @@ import { registerLargeObjectCommands } from "./cmd_lo.js";
|
|
|
10
10
|
import { registerMiscCommands } from "./cmd_misc.js";
|
|
11
11
|
import { isCommandRestricted, registerRestrictCommands, wrapRestrictedCommands } from "./cmd_restrict.js";
|
|
12
12
|
import { registerShowCommands } from "./cmd_show.js";
|
|
13
|
-
|
|
13
|
+
// src/psql/command/dispatch.ts
|
|
14
14
|
/**
|
|
15
15
|
* Backslash command dispatch.
|
|
16
16
|
*
|
|
@@ -274,5 +274,4 @@ const defaultRegistry = () => {
|
|
|
274
274
|
wrapRestrictedCommands(r);
|
|
275
275
|
return r;
|
|
276
276
|
};
|
|
277
|
-
//#endregion
|
|
278
277
|
export { createBackslashRegistry, defaultRegistry, dispatchBackslash, makeContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/command/inputQueue.ts
|
|
2
2
|
/**
|
|
3
3
|
* Pending-input queue for `\i` / `\include`.
|
|
4
4
|
*
|
|
@@ -40,5 +40,4 @@ const size = () => pending.length;
|
|
|
40
40
|
const reset = () => {
|
|
41
41
|
pending.length = 0;
|
|
42
42
|
};
|
|
43
|
-
//#endregion
|
|
44
43
|
export { consumeNext, enqueue, reset, size };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/command/shared.ts
|
|
2
2
|
/**
|
|
3
3
|
* Internal helpers shared by `cmd_meta.ts` and `cmd_format.ts`.
|
|
4
4
|
*
|
|
@@ -53,5 +53,4 @@ const parseTriple = (raw) => {
|
|
|
53
53
|
if ("toggle".startsWith(lower)) return "toggle";
|
|
54
54
|
return null;
|
|
55
55
|
};
|
|
56
|
-
//#endregion
|
|
57
56
|
export { parseBool, parseTriple, writeErr, writeOut };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readdirSync, statSync } from "node:fs";
|
|
2
2
|
import { basename, dirname, join } from "node:path";
|
|
3
|
-
|
|
3
|
+
// src/psql/complete/filenames.ts
|
|
4
4
|
/**
|
|
5
5
|
* Filesystem-driven completion candidates for `\lo_*`, `\copy ... FROM/TO`,
|
|
6
6
|
* and SQL `COPY ... FROM/TO`.
|
|
@@ -92,5 +92,4 @@ const _internals = {
|
|
|
92
92
|
basename,
|
|
93
93
|
dirname
|
|
94
94
|
};
|
|
95
|
-
//#endregion
|
|
96
95
|
export { _internals, completeFilenames, isCopyFromOrTo };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { splitForCompletion } from "./matcher.js";
|
|
2
2
|
import { findCompletions } from "./rules.js";
|
|
3
|
-
|
|
3
|
+
// src/psql/complete/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* Build a completer bound to the given settings. The settings reference is
|
|
6
6
|
* captured by closure; we never snapshot, so changes to `settings.db` (via
|
|
@@ -62,5 +62,4 @@ const longestCommonPrefix = (candidates, fallback) => {
|
|
|
62
62
|
if (candidatePrefix.length >= fallback.length) return candidatePrefix;
|
|
63
63
|
return fallback;
|
|
64
64
|
};
|
|
65
|
-
//#endregion
|
|
66
65
|
export { psqlCompleter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/complete/matcher.ts
|
|
2
2
|
/**
|
|
3
3
|
* Matches / TailMatches / HeadMatches DSL.
|
|
4
4
|
*
|
|
@@ -247,5 +247,4 @@ const splitForCompletion = (input, cursor) => {
|
|
|
247
247
|
replaceLength: 0
|
|
248
248
|
};
|
|
249
249
|
};
|
|
250
|
-
//#endregion
|
|
251
250
|
export { HeadMatches, MatchAny, MatchAnyExcept, Matches, TailMatches, splitForCompletion, tokenize, wordMatches };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/complete/psqlVars.ts
|
|
2
2
|
/**
|
|
3
3
|
* Static-list completion candidates for psql special variables, settings,
|
|
4
4
|
* and the small enums their values take.
|
|
@@ -240,5 +240,4 @@ const variableValuesFor = (name) => {
|
|
|
240
240
|
default: return null;
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
|
-
//#endregion
|
|
244
243
|
export { COMP_KEYWORD_CASE_MODES, ECHO_HIDDEN_MODES, ECHO_MODES, ENCODINGS, HIST_CONTROL_MODES, ON_ERROR_ROLLBACK_MODES, ON_OFF, ON_OFF_AUTO, PSET_FORMATS, PSET_LINESTYLES, PSET_OPTIONS, PSET_UNICODE_STYLES, PSET_XHEADER_WIDTHS, SHOW_CONTEXT_MODES, SPECIAL_VARIABLES, VERBOSITY_MODES, psetValuesFor, variableValuesFor };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/complete/queries.ts
|
|
2
2
|
const LIMIT = 1e3;
|
|
3
3
|
/** Tables (incl. partitioned tables). */
|
|
4
4
|
const Query_for_list_of_tables = `
|
|
@@ -471,5 +471,4 @@ const runCatalogQuery = async (conn, sql, pattern, extraParams = []) => {
|
|
|
471
471
|
return [];
|
|
472
472
|
}
|
|
473
473
|
};
|
|
474
|
-
//#endregion
|
|
475
474
|
export { Query_for_constraint_of_table, Query_for_constraint_of_table_in_schema, Query_for_list_of_access_methods, Query_for_list_of_available_extensions, Query_for_list_of_casts, Query_for_list_of_databases, Query_for_list_of_datatypes, Query_for_list_of_enum_values_quoted, Query_for_list_of_enum_values_unquoted, Query_for_list_of_extensions, Query_for_list_of_foreign_tables, Query_for_list_of_functions, Query_for_list_of_index_access_methods, Query_for_list_of_indexes, Query_for_list_of_languages, Query_for_list_of_matviews, Query_for_list_of_operators, Query_for_list_of_publications, Query_for_list_of_relations, Query_for_list_of_relations_in_schema, Query_for_list_of_roles, Query_for_list_of_schemas, Query_for_list_of_sequences, Query_for_list_of_set_vars, Query_for_list_of_subscriptions, Query_for_list_of_tables, Query_for_list_of_tables_for_constraint, Query_for_list_of_tables_for_constraint_in_schema, Query_for_list_of_tables_views, Query_for_list_of_tablespaces, Query_for_list_of_timezone_names_quoted_in, Query_for_list_of_timezone_names_quoted_out, Query_for_list_of_timezone_names_unquoted, Query_for_list_of_types, Query_for_list_of_views, Query_for_values_of_enum_GUC, runCatalogQuery };
|
|
@@ -2,7 +2,7 @@ import { HeadMatches, TailMatches, tokenize } from "./matcher.js";
|
|
|
2
2
|
import { completeFilenames, isCopyFromOrTo } from "./filenames.js";
|
|
3
3
|
import { ENCODINGS, PSET_OPTIONS, SPECIAL_VARIABLES, psetValuesFor, variableValuesFor } from "./psqlVars.js";
|
|
4
4
|
import { Query_for_constraint_of_table, Query_for_constraint_of_table_in_schema, Query_for_list_of_casts, Query_for_list_of_databases, Query_for_list_of_datatypes, Query_for_list_of_enum_values_quoted, Query_for_list_of_extensions, Query_for_list_of_functions, Query_for_list_of_index_access_methods, Query_for_list_of_indexes, Query_for_list_of_languages, Query_for_list_of_matviews, Query_for_list_of_operators, Query_for_list_of_publications, Query_for_list_of_relations_in_schema, Query_for_list_of_roles, Query_for_list_of_schemas, Query_for_list_of_sequences, Query_for_list_of_set_vars, Query_for_list_of_subscriptions, Query_for_list_of_tables, Query_for_list_of_tables_for_constraint, Query_for_list_of_tables_for_constraint_in_schema, Query_for_list_of_tables_views, Query_for_list_of_tablespaces, Query_for_list_of_timezone_names_quoted_in, Query_for_list_of_timezone_names_quoted_out, Query_for_list_of_types, Query_for_list_of_views, Query_for_values_of_enum_GUC, runCatalogQuery } from "./queries.js";
|
|
5
|
-
|
|
5
|
+
// src/psql/complete/rules.ts
|
|
6
6
|
/** Backslash command names psql tab-completes (mirrors backslash_commands[]). */
|
|
7
7
|
const BACKSLASH_COMMANDS = [
|
|
8
8
|
"\\a",
|
|
@@ -1614,5 +1614,4 @@ const listAllVarNames = (settings) => {
|
|
|
1614
1614
|
return [...set].sort();
|
|
1615
1615
|
};
|
|
1616
1616
|
const _internals = { splitSchemaPrefix };
|
|
1617
|
-
//#endregion
|
|
1618
1617
|
export { ALTER_DATABASE_ACTIONS, ALTER_EXTENSION_ACTIONS, ALTER_FUNCTION_ACTIONS, ALTER_INDEX_ACTIONS, ALTER_MATVIEW_ACTIONS, ALTER_OBJECTS, ALTER_POLICY_ACTIONS, ALTER_PUBLICATION_ACTIONS, ALTER_ROLE_ACTIONS, ALTER_SCHEMA_ACTIONS, ALTER_SEQUENCE_ACTIONS, ALTER_SUBSCRIPTION_ACTIONS, ALTER_TABLE_ACTIONS, ALTER_TABLE_ADD, ALTER_TABLE_ALTER_COLUMN, ALTER_TABLE_DISABLE, ALTER_TABLE_DROP, ALTER_TABLE_ENABLE, ALTER_TABLE_RENAME, ALTER_TABLE_REPLICA_IDENTITY, ALTER_TABLE_SET, ALTER_TYPE_ACTIONS, ALTER_VIEW_ACTIONS, BACKSLASH_COMMANDS, BUILTIN_DATATYPE_KEYWORDS, COPY_FROM_OPTIONS, COPY_TO_OPTIONS, CREATE_INDEX_OPTIONS, CREATE_OBJECTS, DATESTYLE_VALUES, DROP_OBJECTS, POST_FROM_KEYWORDS, PRIVILEGE_KEYWORDS, SQL_TOP_KEYWORDS, TRANSACTION_KEYWORDS, WHERE_CONTINUATIONS, WINDOW_FRAME_KEYWORDS, _internals, findCompletions };
|
package/dist/psql/core/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { I as __testing, L as captureLastError, R as executeAndPrint, z as pickOut, B as psqlExec, V as refreshErrorVars, H as renderResultSet, U as sendQuery, W as stripLeadingCommentsAndWS, G as writeQueryError } from "../../_chunks/cmd_pipeline-
|
|
1
|
+
export { I as __testing, L as captureLastError, R as executeAndPrint, z as pickOut, B as psqlExec, V as refreshErrorVars, H as renderResultSet, U as sendQuery, W as stripLeadingCommentsAndWS, G as writeQueryError } from "../../_chunks/cmd_pipeline-BDE-TGto.js";
|
package/dist/psql/core/help.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { openPager } from "../print/pager.js";
|
|
2
2
|
import { SQL_HELP, findMatches, formatEntry } from "./sqlHelp.js";
|
|
3
|
-
|
|
3
|
+
// src/psql/core/help.ts
|
|
4
4
|
/**
|
|
5
5
|
* psql help text — TypeScript port of upstream `src/bin/psql/help.c`.
|
|
6
6
|
*
|
|
@@ -482,5 +482,4 @@ const helpSQL = (out, topic, screenWidth) => {
|
|
|
482
482
|
writeEntry(out, m);
|
|
483
483
|
});
|
|
484
484
|
};
|
|
485
|
-
//#endregion
|
|
486
485
|
export { helpSQL, helpVariables, setHelpPagerOpener, slashUsage, slashUsageHelp, usage };
|
|
@@ -2,7 +2,7 @@ import { COND_COMMAND_NAMES, attachCondStack, cmdElif, cmdElse, cmdEndif, cmdIf
|
|
|
2
2
|
import { scanSlashArgs } from "../scanner/slash.js";
|
|
3
3
|
import { formatDurationMs } from "../print/units.js";
|
|
4
4
|
import { appendHistory, defaultHistoryPath, loadHistory, resolveHistSize, truncateHistory } from "../io/history.js";
|
|
5
|
-
import { G as writeQueryError, H as renderResultSet, L as captureLastError, U as sendQuery, V as refreshErrorVars, f as consumeBindState, m as getPipelineState, z as pickOut } from "../../_chunks/cmd_pipeline-
|
|
5
|
+
import { G as writeQueryError, H as renderResultSet, L as captureLastError, U as sendQuery, V as refreshErrorVars, f as consumeBindState, m as getPipelineState, z as pickOut } from "../../_chunks/cmd_pipeline-BDE-TGto.js";
|
|
6
6
|
import { consumeNext } from "../command/inputQueue.js";
|
|
7
7
|
import { psqlCompleter } from "../complete/index.js";
|
|
8
8
|
import { LineEditor } from "../io/lineEditor/index.js";
|
|
@@ -10,7 +10,7 @@ import { initialScanState } from "../types/scanner.js";
|
|
|
10
10
|
import { scanSql } from "../scanner/sql.js";
|
|
11
11
|
import { renderPromptByName } from "./prompt.js";
|
|
12
12
|
import * as readline from "node:readline";
|
|
13
|
-
|
|
13
|
+
// src/psql/core/mainloop.ts
|
|
14
14
|
/**
|
|
15
15
|
* psql REPL main loop.
|
|
16
16
|
*
|
|
@@ -745,5 +745,4 @@ const __testing = {
|
|
|
745
745
|
parseBoolVar,
|
|
746
746
|
viModeOption
|
|
747
747
|
};
|
|
748
|
-
//#endregion
|
|
749
748
|
export { EXIT_BADCONN, EXIT_FAILURE, EXIT_SUCCESS, EXIT_USER, __testing, runMainLoop };
|
package/dist/psql/core/prompt.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { execSync } from "node:child_process";
|
|
2
|
-
|
|
2
|
+
// src/psql/core/prompt.ts
|
|
3
3
|
/**
|
|
4
4
|
* psql Prompt renderer.
|
|
5
5
|
*
|
|
@@ -418,5 +418,4 @@ const parameterStatus = (ctx, name) => {
|
|
|
418
418
|
return;
|
|
419
419
|
}
|
|
420
420
|
};
|
|
421
|
-
//#endregion
|
|
422
421
|
export { PROMPT_BACKTICK_EXECUTOR, renderPrompt, renderPromptByName };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/core/settings.ts
|
|
2
2
|
const DEFAULT_PROMPT1 = "%/%R%x%# ";
|
|
3
3
|
const DEFAULT_PROMPT2 = "%/%R%x%# ";
|
|
4
4
|
const DEFAULT_PROMPT3 = ">> ";
|
|
@@ -467,5 +467,4 @@ const applyEnvOverrides = (settings, env = process.env) => {
|
|
|
467
467
|
if (Number.isFinite(parsed) && parsed >= 0) settings.popt.topt.envColumns = parsed;
|
|
468
468
|
}
|
|
469
469
|
};
|
|
470
|
-
//#endregion
|
|
471
470
|
export { DEFAULT_CSV_FIELD_SEP, DEFAULT_FIELD_SEP, DEFAULT_PROMPT1, DEFAULT_PROMPT2, DEFAULT_PROMPT3, DEFAULT_RECORD_SEP, applyEnvOverrides, defaultSettings };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/core/sqlHelp.ts
|
|
2
2
|
const PG_DOCS = "https://www.postgresql.org/docs/current/sql-";
|
|
3
3
|
const SQL_HELP = [
|
|
4
4
|
{
|
|
@@ -988,5 +988,4 @@ const findMatches = (topic) => {
|
|
|
988
988
|
const formatEntry = (entry) => {
|
|
989
989
|
return `Command: ${entry.cmd}\nDescription: ${entry.description}\nSyntax:\n${entry.syntax}\n\nURL: ${entry.docUrl}\n`;
|
|
990
990
|
};
|
|
991
|
-
//#endregion
|
|
992
991
|
export { SQL_HELP, findMatches, formatEntry };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { f as CLIENT_VERSION, p as applyStartupArgs, m as formatParseError, h as parseStartupArgs } from "../../_chunks/psql-
|
|
1
|
+
export { f as CLIENT_VERSION, p as applyStartupArgs, m as formatParseError, h as parseStartupArgs } from "../../_chunks/psql-DwGeP0IV.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/core/syncVars.ts
|
|
2
2
|
const asString = (value) => typeof value === "string" ? value : void 0;
|
|
3
3
|
const asPort = (value) => typeof value === "number" && Number.isFinite(value) ? String(value) : void 0;
|
|
4
4
|
/**
|
|
@@ -69,5 +69,4 @@ const clientVersionNum = (version) => {
|
|
|
69
69
|
const patch = m[3] !== void 0 ? parseInt(m[3], 10) : 0;
|
|
70
70
|
return major * 1e4 + minor * 100 + patch;
|
|
71
71
|
};
|
|
72
|
-
//#endregion
|
|
73
72
|
export { clientVersionNum, setStartupVars, syncConnectionVars };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/core/variables.ts
|
|
2
2
|
const VALID_NAME_RE = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
3
3
|
/** Case-insensitive prefix match: does `value` start with `prefix`? */
|
|
4
4
|
const isPrefixOf = (value, prefix) => value.length > 0 && value.length <= prefix.length && prefix.slice(0, value.length).toLowerCase() === value.toLowerCase();
|
|
@@ -161,5 +161,4 @@ var VarStore = class {
|
|
|
161
161
|
};
|
|
162
162
|
/** Factory mirroring the upstream `CreateVariableSpace()` entry point. */
|
|
163
163
|
const createVarStore = () => new VarStore();
|
|
164
|
-
//#endregion
|
|
165
164
|
export { VarStore, createVarStore };
|
|
@@ -9,7 +9,7 @@ import { unalignedPrinter } from "../print/unaligned.js";
|
|
|
9
9
|
import { applyPattern, processSQLNamePattern } from "./processNamePattern.js";
|
|
10
10
|
import { serverAtLeast } from "./versionGate.js";
|
|
11
11
|
import { fetchExcludedFromPublications, fetchForeignTableInfo, fetchInheritedBy, fetchInherits, fetchNotNullConstraints, fetchPartitionKey, fetchPartitionOf, fetchPerColumnFdwOptions, fetchPolicies, fetchSequencePublications, fetchStatisticsObjects, fetchTableInfo, fetchTablePublications, fetchTableSubscriptions } from "./queries.js";
|
|
12
|
-
|
|
12
|
+
// src/psql/describe/formatters.ts
|
|
13
13
|
/**
|
|
14
14
|
* Rendering for psql's `\d*` describe commands.
|
|
15
15
|
*
|
|
@@ -925,5 +925,4 @@ const fakeField = (name) => ({
|
|
|
925
925
|
dataTypeModifier: -1,
|
|
926
926
|
format: 0
|
|
927
927
|
});
|
|
928
|
-
//#endregion
|
|
929
928
|
export { describeOneFunctionDetails, describeOneSequence, describeOneTableDetails, describeOneViewDetails, lookupOneRelation, lookupRelations, runListQuery };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/describe/processNamePattern.ts
|
|
2
2
|
/**
|
|
3
3
|
* Lower-case ASCII letters. Mirrors upstream's `pg_tolower` for the
|
|
4
4
|
* ASCII range — we don't need full locale folding because catalog
|
|
@@ -179,5 +179,4 @@ const applyPattern = (sql, result, baseParams = []) => {
|
|
|
179
179
|
params
|
|
180
180
|
};
|
|
181
181
|
};
|
|
182
|
-
//#endregion
|
|
183
182
|
export { applyPattern, processSQLNamePattern };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PG_10, PG_11, PG_12, PG_13, PG_14, PG_15, PG_18, PG_19, PG_9_5, serverAtLeast, serverLess } from "./versionGate.js";
|
|
2
|
-
|
|
2
|
+
// src/psql/describe/queries.ts
|
|
3
3
|
/**
|
|
4
4
|
* Reproduces upstream `printACLColumn(buf, colname)`: emits the standard
|
|
5
5
|
* ACL pretty-printing expression with column alias "Access privileges".
|
|
@@ -1413,5 +1413,4 @@ WHERE reltoastrelid = '${oid}'\nLIMIT 1;`,
|
|
|
1413
1413
|
description: "TOAST owning table"
|
|
1414
1414
|
};
|
|
1415
1415
|
};
|
|
1416
|
-
//#endregion
|
|
1417
1416
|
export { describeAccessMethods, describeAggregates, describeConfigurationParameters, describeFunctions, describeOneTSParser, describeOperators, describePublications, describeRoleGrants, describeRoles, describeSubscriptions, describeTableDetails, describeTablespaces, describeTypes, fetchExcludedFromPublications, fetchForeignTableInfo, fetchInheritedBy, fetchInherits, fetchNotNullConstraints, fetchPartitionKey, fetchPartitionOf, fetchPerColumnFdwOptions, fetchPolicies, fetchReplicaIdentityIndex, fetchSequencePublications, fetchStatisticsObjects, fetchTableInfo, fetchTablePublications, fetchTableSubscriptions, fetchToastOwningTable, listAllDbs, listCasts, listCollations, listConversions, listDbRoleSettings, listDefaultACLs, listDomains, listEventTriggers, listExtendedStats, listExtensionContents, listExtensions, listForeignDataWrappers, listForeignServers, listForeignTables, listLanguages, listLargeObjects, listOneExtensionContents, listOpFamilyFunctions, listOpFamilyOperators, listOperatorClasses, listOperatorFamilies, listPartitionedTables, listPublications, listSchemas, listTSConfigs, listTSDictionaries, listTSParsers, listTSTemplates, listTables, listUserMappings, objectDescription, permissionsList, showFunction, showView };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/describe/versionGate.ts
|
|
2
2
|
/**
|
|
3
3
|
* Encode major[.minor] into the server_version_num integer form.
|
|
4
4
|
* For PG >= 10 the minor component is ignored (single-component versioning).
|
|
@@ -31,5 +31,4 @@ const PG_16 = 16e4;
|
|
|
31
31
|
const PG_17 = 17e4;
|
|
32
32
|
const PG_18 = 18e4;
|
|
33
33
|
const PG_19 = 19e4;
|
|
34
|
-
//#endregion
|
|
35
34
|
export { PG_10, PG_11, PG_12, PG_13, PG_14, PG_15, PG_16, PG_17, PG_18, PG_19, PG_9_0, PG_9_1, PG_9_2, PG_9_3, PG_9_4, PG_9_5, PG_9_6, serverAtLeast, serverLess };
|
package/dist/psql/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as defaultClientCertDefaults, n as envConnectionDefaults, r as libpqConnectionDefaults, i as looksLikeConnectionString, a as mergeConnectOptions, o as parseConnectionUri, s as parseConnectionUriPartial, c as parseConnectionUriService, l as parseConninfo, u as runPsql, d as serviceEntryToConnectOptions } from "../_chunks/psql-
|
|
1
|
+
export { t as defaultClientCertDefaults, n as envConnectionDefaults, r as libpqConnectionDefaults, i as looksLikeConnectionString, a as mergeConnectOptions, o as parseConnectionUri, s as parseConnectionUriPartial, c as parseConnectionUriService, l as parseConninfo, u as runPsql, d as serviceEntryToConnectOptions } from "../_chunks/psql-DwGeP0IV.js";
|
package/dist/psql/io/history.js
CHANGED
|
@@ -2,7 +2,7 @@ import { promises } from "node:fs";
|
|
|
2
2
|
import * as path from "node:path";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import * as os from "node:os";
|
|
5
|
-
|
|
5
|
+
// src/psql/io/history.ts
|
|
6
6
|
/**
|
|
7
7
|
* psql history file I/O.
|
|
8
8
|
*
|
|
@@ -256,5 +256,4 @@ const resolveHistSize = (env = process.env) => {
|
|
|
256
256
|
if (!Number.isInteger(n) || n < 0) return DEFAULT_HISTSIZE;
|
|
257
257
|
return n;
|
|
258
258
|
};
|
|
259
|
-
//#endregion
|
|
260
259
|
export { appendHistory, clearHistory, defaultHistoryPath, getHistory, loadHistory, recordHistory, resolveHistSize, truncateHistory };
|
package/dist/psql/io/input.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createInterface } from "node:readline";
|
|
2
|
-
|
|
2
|
+
// src/psql/io/input.ts
|
|
3
3
|
/**
|
|
4
4
|
* Interactive line input for the psql REPL — the shared "read one line from
|
|
5
5
|
* the user" primitive used by `\prompt` and `\password`.
|
|
@@ -111,5 +111,4 @@ const readNoEchoTty = (prompt, input, output) => {
|
|
|
111
111
|
input.on("data", onData);
|
|
112
112
|
});
|
|
113
113
|
};
|
|
114
|
-
//#endregion
|
|
115
114
|
export { readLine };
|