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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/io/lineEditor/buffer.ts
|
|
2
2
|
/**
|
|
3
3
|
* Encode a string as an array of code-point characters. Each element is
|
|
4
4
|
* one Unicode scalar (`"A"`, `"é"`, `"\u{1F600}"`). This lets cursor
|
|
@@ -240,5 +240,4 @@ const isWordChar = (ch) => {
|
|
|
240
240
|
if (cp > 127) return cp >= 160;
|
|
241
241
|
return false;
|
|
242
242
|
};
|
|
243
|
-
//#endregion
|
|
244
243
|
export { LineBuffer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/io/lineEditor/complete.ts
|
|
2
2
|
/** Threshold for "second Tab" detection. Roughly 500ms by spec. */
|
|
3
3
|
const DOUBLE_TAP_MS = 500;
|
|
4
4
|
var CompletionState = class {
|
|
@@ -145,5 +145,4 @@ const formatCandidates = (candidates, termWidth, highlightIndex) => {
|
|
|
145
145
|
}
|
|
146
146
|
return lines.join("\n");
|
|
147
147
|
};
|
|
148
|
-
//#endregion
|
|
149
148
|
export { CompletionState, formatCandidates };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/io/lineEditor/filename.ts
|
|
2
2
|
/**
|
|
3
3
|
* Filename quoting / escaping for psql backslash commands.
|
|
4
4
|
*
|
|
@@ -146,5 +146,4 @@ const unquote = (s) => {
|
|
|
146
146
|
}
|
|
147
147
|
return out;
|
|
148
148
|
};
|
|
149
|
-
//#endregion
|
|
150
149
|
export { detectQuoteStyle, doubleQuote, needsQuoting, quoteForCompletion, singleQuote, unquote };
|
|
@@ -2,7 +2,7 @@ import { LineBuffer } from "./buffer.js";
|
|
|
2
2
|
import { CompletionState, formatCandidates } from "./complete.js";
|
|
3
3
|
import { dispatch, makeState } from "./keymap.js";
|
|
4
4
|
import { Vt100Decoder, csiClearScreen, csiDown, csiEraseToEol, csiRight, csiUp, disableBracketedPaste, enableBracketedPaste } from "./vt100.js";
|
|
5
|
-
|
|
5
|
+
// src/psql/io/lineEditor/index.ts
|
|
6
6
|
/**
|
|
7
7
|
* Public-facing line editor.
|
|
8
8
|
*
|
|
@@ -672,5 +672,4 @@ const positionAfter = (startCol, text, width) => {
|
|
|
672
672
|
col
|
|
673
673
|
};
|
|
674
674
|
};
|
|
675
|
-
//#endregion
|
|
676
675
|
export { LineEditor, SignalError, highlightMatch, renderSearchLine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LineBuffer } from "./buffer.js";
|
|
2
|
-
|
|
2
|
+
// src/psql/io/lineEditor/keymap.ts
|
|
3
3
|
/**
|
|
4
4
|
* Emacs keymap dispatch.
|
|
5
5
|
*
|
|
@@ -583,5 +583,4 @@ const transpose = (buf) => {
|
|
|
583
583
|
cps[i] = tmp;
|
|
584
584
|
buf.setText(cps.join(""), Math.min(i + 1, len));
|
|
585
585
|
};
|
|
586
|
-
//#endregion
|
|
587
586
|
export { dispatch, makeState };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/io/lineEditor/vt100.ts
|
|
2
2
|
/** Convenience: build a control-character event for byte `b` in 0x01..0x1f. */
|
|
3
3
|
const controlEvent = (b) => {
|
|
4
4
|
return {
|
|
@@ -312,5 +312,4 @@ const enableBracketedPaste = () => "\x1B[?2004h";
|
|
|
312
312
|
const disableBracketedPaste = () => "\x1B[?2004l";
|
|
313
313
|
/** Audible bell. */
|
|
314
314
|
const BEL = "\x07";
|
|
315
|
-
//#endregion
|
|
316
315
|
export { BEL, CR, LF, Vt100Decoder, csiClearScreen, csiDown, csiEraseToEol, csiLeft, csiRight, csiToColumn, csiUp, disableBracketedPaste, enableBracketedPaste };
|
package/dist/psql/io/pgpass.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { promises } from "node:fs";
|
|
2
2
|
import * as path from "node:path";
|
|
3
3
|
import * as os from "node:os";
|
|
4
|
-
|
|
4
|
+
// src/psql/io/pgpass.ts
|
|
5
5
|
/**
|
|
6
6
|
* `~/.pgpass` password-file support.
|
|
7
7
|
*
|
|
@@ -169,5 +169,4 @@ const lookupPgPass = (entries, target) => {
|
|
|
169
169
|
return e.password;
|
|
170
170
|
}
|
|
171
171
|
};
|
|
172
|
-
//#endregion
|
|
173
172
|
export { defaultPgPassPath, loadPgPass, lookupPgPass };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { promises } from "node:fs";
|
|
2
2
|
import * as path from "node:path";
|
|
3
3
|
import * as os from "node:os";
|
|
4
|
-
|
|
4
|
+
// src/psql/io/pgservice.ts
|
|
5
5
|
/**
|
|
6
6
|
* `pg_service.conf` (connection service file) support.
|
|
7
7
|
*
|
|
@@ -153,5 +153,4 @@ const loadPgServices = async (paths, env = process.env) => {
|
|
|
153
153
|
* Service names are case-sensitive (libpq does not normalise).
|
|
154
154
|
*/
|
|
155
155
|
const lookupService = (services, name) => services.get(name);
|
|
156
|
-
//#endregion
|
|
157
156
|
export { defaultPgServiceFilePath, loadPgServices, lookupService, parsePgServiceContent };
|
package/dist/psql/io/psqlrc.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { COND_COMMAND_NAMES, attachCondStack } from "../command/cmd_cond.js";
|
|
2
2
|
import { scanSlashArgs } from "../scanner/slash.js";
|
|
3
|
-
import { U as sendQuery } from "../../_chunks/cmd_pipeline-
|
|
3
|
+
import { U as sendQuery } from "../../_chunks/cmd_pipeline-BDE-TGto.js";
|
|
4
4
|
import { dispatchBackslash } from "../command/dispatch.js";
|
|
5
5
|
import { initialScanState } from "../types/scanner.js";
|
|
6
6
|
import { scanSql } from "../scanner/sql.js";
|
|
7
7
|
import { promises } from "node:fs";
|
|
8
8
|
import * as path from "node:path";
|
|
9
|
-
|
|
9
|
+
// src/psql/io/psqlrc.ts
|
|
10
10
|
/**
|
|
11
11
|
* `.psqlrc` autoload.
|
|
12
12
|
*
|
|
@@ -345,5 +345,4 @@ const loadPsqlrc = async (ctx, opts = {}) => {
|
|
|
345
345
|
return;
|
|
346
346
|
}
|
|
347
347
|
};
|
|
348
|
-
//#endregion
|
|
349
348
|
export { defaultPsqlrcPath, executeInputString, loadPsqlrc, psqlrcCandidates };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { boolDisplayOf, renderCellValue } from "./units.js";
|
|
2
|
-
|
|
2
|
+
// src/psql/print/aligned.ts
|
|
3
3
|
/**
|
|
4
4
|
* Aligned tabular printer (psql's default output mode).
|
|
5
5
|
*
|
|
@@ -1085,5 +1085,4 @@ const renderEmpty = (rs, opts) => {
|
|
|
1085
1085
|
out += "\n";
|
|
1086
1086
|
return out;
|
|
1087
1087
|
};
|
|
1088
|
-
//#endregion
|
|
1089
1088
|
export { alignedPrinter, computeColumnWidths, displayWidth, padToWidth };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { boolDisplayOf, renderCellValue } from "./units.js";
|
|
2
|
-
|
|
2
|
+
// src/psql/print/asciidoc.ts
|
|
3
3
|
/**
|
|
4
4
|
* AsciiDoc printer.
|
|
5
5
|
*
|
|
@@ -192,5 +192,4 @@ const escapeAsciidoc = (input) => {
|
|
|
192
192
|
return out;
|
|
193
193
|
};
|
|
194
194
|
const renderCell = (cell, nullPrint, numericLocale, dataTypeID, boolDisplay) => renderCellValue(cell, nullPrint, numericLocale, dataTypeID, boolDisplay);
|
|
195
|
-
//#endregion
|
|
196
195
|
export { asciidocPrinter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { alignedPrinter } from "./aligned.js";
|
|
2
|
-
|
|
2
|
+
// src/psql/print/crosstab.ts
|
|
3
3
|
const DIGIT_RE = /^\d+$/;
|
|
4
4
|
const SIGNED_DIGIT_RE = /^[+-]?\d+$/;
|
|
5
5
|
const dequoteDowncase = (raw) => {
|
|
@@ -298,5 +298,4 @@ const printCrosstab = async (rs, opts, printOpts, out) => {
|
|
|
298
298
|
if ("error" in result) return result;
|
|
299
299
|
await alignedPrinter.printQuery(result.rs, printOpts, out);
|
|
300
300
|
};
|
|
301
|
-
//#endregion
|
|
302
301
|
export { pivotResultSet, printCrosstab };
|
package/dist/psql/print/csv.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { boolDisplayOf, renderCellValue } from "./units.js";
|
|
2
|
-
|
|
2
|
+
// src/psql/print/csv.ts
|
|
3
3
|
/**
|
|
4
4
|
* RFC 4180 CSV printer.
|
|
5
5
|
*
|
|
@@ -50,5 +50,4 @@ const csvField = (value, sep) => {
|
|
|
50
50
|
if (!(value.includes(sep) || value.includes("\"") || value.includes("\n") || value.includes("\r") || value === "\\." || sep === "\\" || sep === ".")) return value;
|
|
51
51
|
return `"${value.replace(/"/g, "\"\"")}"`;
|
|
52
52
|
};
|
|
53
|
-
//#endregion
|
|
54
53
|
export { csvPrinter };
|
package/dist/psql/print/html.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { boolDisplayOf, renderCellValue } from "./units.js";
|
|
2
|
-
|
|
2
|
+
// src/psql/print/html.ts
|
|
3
3
|
/**
|
|
4
4
|
* HTML printer.
|
|
5
5
|
*
|
|
@@ -205,5 +205,4 @@ const escapeHtml = (input) => {
|
|
|
205
205
|
return out;
|
|
206
206
|
};
|
|
207
207
|
const renderCell = (cell, nullPrint, numericLocale, dataTypeID, boolDisplay) => renderCellValue(cell, nullPrint, numericLocale, dataTypeID, boolDisplay);
|
|
208
|
-
//#endregion
|
|
209
208
|
export { htmlPrinter };
|
package/dist/psql/print/json.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/print/json.ts
|
|
2
2
|
/**
|
|
3
3
|
* JSON printer (used by `\gset`, `\gdesc`, and `--json` callers later
|
|
4
4
|
* in the WP plan).
|
|
@@ -79,5 +79,4 @@ const normalize = (s) => {
|
|
|
79
79
|
if (v.includes(".")) v = v.replace(/0+$/, "").replace(/\.$/, "");
|
|
80
80
|
return v;
|
|
81
81
|
};
|
|
82
|
-
//#endregion
|
|
83
82
|
export { jsonPrinter };
|
package/dist/psql/print/latex.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { boolDisplayOf, renderCellValue } from "./units.js";
|
|
2
|
-
|
|
2
|
+
// src/psql/print/latex.ts
|
|
3
3
|
/**
|
|
4
4
|
* LaTeX printers — `latex` (tabular) and `latex-longtable` (longtable).
|
|
5
5
|
*
|
|
@@ -302,5 +302,4 @@ const escapeLatex = (input) => {
|
|
|
302
302
|
return out;
|
|
303
303
|
};
|
|
304
304
|
const renderCell = (cell, nullPrint, numericLocale, dataTypeID, boolDisplay) => renderCellValue(cell, nullPrint, numericLocale, dataTypeID, boolDisplay);
|
|
305
|
-
//#endregion
|
|
306
305
|
export { latexLongtablePrinter, latexPrinter };
|
package/dist/psql/print/pager.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { accessSync, constants } from "node:fs";
|
|
2
2
|
import { spawn } from "child_process";
|
|
3
3
|
import { basename, delimiter, isAbsolute, join } from "path";
|
|
4
|
-
|
|
4
|
+
// src/psql/print/pager.ts
|
|
5
5
|
/**
|
|
6
6
|
* Can `command` be spawned with `shell:false`? A bare name is searched on
|
|
7
7
|
* `$PATH`; a path is checked directly. Used to avoid `spawn(missingBinary,
|
|
@@ -192,5 +192,4 @@ const openPager = (opts) => {
|
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
194
|
};
|
|
195
|
-
//#endregion
|
|
196
195
|
export { isPagerNeeded, openPager, shouldPage };
|
package/dist/psql/print/troff.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { boolDisplayOf, renderCellValue } from "./units.js";
|
|
2
|
-
|
|
2
|
+
// src/psql/print/troff.ts
|
|
3
3
|
/**
|
|
4
4
|
* Troff MS printer.
|
|
5
5
|
*
|
|
@@ -204,5 +204,4 @@ const escapeTroff = (input) => {
|
|
|
204
204
|
return out;
|
|
205
205
|
};
|
|
206
206
|
const renderCell = (cell, nullPrint, numericLocale, dataTypeID, boolDisplay) => renderCellValue(cell, nullPrint, numericLocale, dataTypeID, boolDisplay);
|
|
207
|
-
//#endregion
|
|
208
207
|
export { troffMsPrinter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { boolDisplayOf, renderCellValue } from "./units.js";
|
|
2
|
-
|
|
2
|
+
// src/psql/print/unaligned.ts
|
|
3
3
|
/**
|
|
4
4
|
* Unaligned tabular printer.
|
|
5
5
|
*
|
|
@@ -69,5 +69,4 @@ const unalignedPrinter = {
|
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
const renderCell = (cell, nullPrint, numericLocale, dataTypeID, boolDisplay) => renderCellValue(cell, nullPrint, numericLocale, dataTypeID, boolDisplay);
|
|
72
|
-
//#endregion
|
|
73
72
|
export { unalignedPrinter };
|
package/dist/psql/print/units.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/print/units.ts
|
|
2
2
|
/**
|
|
3
3
|
* Numeric, byte size, and duration formatting helpers.
|
|
4
4
|
*
|
|
@@ -182,5 +182,4 @@ const formatDurationBody = (ms) => {
|
|
|
182
182
|
const minutes = totalMinutes - hours * 60;
|
|
183
183
|
return `${String(hours)} h ${String(minutes)} m ${remainingSeconds.toFixed(3)} s`;
|
|
184
184
|
};
|
|
185
|
-
//#endregion
|
|
186
185
|
export { BOOLOID, boolDisplayOf, formatByteSize, formatDurationBody, formatDurationMs, formatNumericLocale, renderCellValue };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { dequote } from "./stringutils.js";
|
|
2
2
|
import { execSync } from "node:child_process";
|
|
3
|
-
|
|
3
|
+
// src/psql/scanner/slash.ts
|
|
4
4
|
/**
|
|
5
5
|
* psql backslash-command argument scanner.
|
|
6
6
|
*
|
|
@@ -456,5 +456,4 @@ const scanSlashArgs = (input, mode, varLookup) => {
|
|
|
456
456
|
}
|
|
457
457
|
return args;
|
|
458
458
|
};
|
|
459
|
-
//#endregion
|
|
460
459
|
export { BACKTICK_EXECUTOR, dequote, scanSlashArgs };
|
package/dist/psql/scanner/sql.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tryConsumeVarSubstitution } from "./stringutils.js";
|
|
2
2
|
import { initialScanState } from "../types/scanner.js";
|
|
3
|
-
|
|
3
|
+
// src/psql/scanner/sql.ts
|
|
4
4
|
const IDENT_START_RE = /[A-Za-z_\u0080-\uffff]/;
|
|
5
5
|
const IDENT_CONT_RE = /[A-Za-z0-9_\u0080-\uffff]/;
|
|
6
6
|
const isIdentStart = (c) => c !== void 0 && IDENT_START_RE.test(c);
|
|
@@ -466,5 +466,4 @@ const splitStatements = (input, varLookup, slashCmdMode, options) => {
|
|
|
466
466
|
}
|
|
467
467
|
return out;
|
|
468
468
|
};
|
|
469
|
-
//#endregion
|
|
470
469
|
export { scanSql, splitStatements };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/scanner/stringutils.ts
|
|
2
2
|
/**
|
|
3
3
|
* psql string utilities.
|
|
4
4
|
*
|
|
@@ -320,5 +320,4 @@ const tryConsumeVarSubstitution = (s, i, varLookup) => {
|
|
|
320
320
|
}
|
|
321
321
|
return null;
|
|
322
322
|
};
|
|
323
|
-
//#endregion
|
|
324
323
|
export { dequote, quoteIfNeeded, quoteSqlIdent, quoteSqlLiteral, strtokx, tryConsumeVarSubstitution };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/types/scanner.ts
|
|
2
2
|
/**
|
|
3
3
|
* Returns true if the scanner status represents an unterminated statement
|
|
4
4
|
* waiting for more input. Useful for callers that only care whether to draw
|
|
@@ -23,5 +23,4 @@ const initialScanState = () => ({
|
|
|
23
23
|
],
|
|
24
24
|
identifierCount: 0
|
|
25
25
|
});
|
|
26
|
-
//#endregion
|
|
27
26
|
export { initialScanState, isContinueStatus };
|
|
@@ -8,7 +8,7 @@ import * as net from "node:net";
|
|
|
8
8
|
import { Buffer } from "node:buffer";
|
|
9
9
|
import * as dns from "node:dns/promises";
|
|
10
10
|
import * as tls from "node:tls";
|
|
11
|
-
|
|
11
|
+
// src/psql/wire/connection.ts
|
|
12
12
|
/**
|
|
13
13
|
* PgConnection — the wire-layer Connection implementation (WP-02 + WP-16).
|
|
14
14
|
*
|
|
@@ -2092,5 +2092,4 @@ function asThrowable(v) {
|
|
|
2092
2092
|
}
|
|
2093
2093
|
return new Error(String(v));
|
|
2094
2094
|
}
|
|
2095
|
-
//#endregion
|
|
2096
2095
|
export { PgConnection, encodeParams, isUnixSocketHost, keepAliveArgs, sslKeyBitsFromCipher, tlsServername, unixSocketPath };
|
package/dist/psql/wire/copy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Buffer } from "node:buffer";
|
|
2
|
-
|
|
2
|
+
// src/psql/wire/copy.ts
|
|
3
3
|
/**
|
|
4
4
|
* COPY streaming adapter (WP-16).
|
|
5
5
|
*
|
|
@@ -88,5 +88,4 @@ const abortReason = (v) => {
|
|
|
88
88
|
return "unknown error";
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
|
-
//#endregion
|
|
92
91
|
export { drainCopyOut, pumpReadable };
|
package/dist/psql/wire/notify.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/psql/wire/notify.ts
|
|
2
2
|
var NoticeMultiplexer = class {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.noticeHandlers = /* @__PURE__ */ new Set();
|
|
@@ -35,5 +35,4 @@ var NoticeMultiplexer = class {
|
|
|
35
35
|
this.notificationHandlers.clear();
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
//#endregion
|
|
39
38
|
export { NoticeMultiplexer };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Bind, Close, Describe, Execute, Flush, Parse, Sync } from "./protocol.js";
|
|
2
2
|
import { Buffer } from "node:buffer";
|
|
3
|
-
|
|
3
|
+
// src/psql/wire/pipeline.ts
|
|
4
4
|
/**
|
|
5
5
|
* PipelineSession — high-level wrapper around the extended-protocol pipeline
|
|
6
6
|
* driver in {@link PgConnection} (WP-21).
|
|
@@ -304,5 +304,4 @@ function toBindValue(v) {
|
|
|
304
304
|
return "";
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
//#endregion
|
|
308
307
|
export { PipelineSession };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Buffer } from "node:buffer";
|
|
2
2
|
import pgProtocol from "pg-protocol/dist/index.js";
|
|
3
3
|
import { Parser } from "pg-protocol/dist/parser.js";
|
|
4
|
-
|
|
4
|
+
// src/psql/wire/protocol.ts
|
|
5
5
|
/**
|
|
6
6
|
* PostgreSQL wire protocol message codec — thin adapter over `pg-protocol`.
|
|
7
7
|
*
|
|
@@ -394,5 +394,4 @@ function fieldsToNotice(fields) {
|
|
|
394
394
|
if (routine !== void 0) out.routine = routine;
|
|
395
395
|
return out;
|
|
396
396
|
}
|
|
397
|
-
//#endregion
|
|
398
397
|
export { Bind, CancelRequest, Close, CopyData, CopyDone, CopyFail, Describe, Execute, Flush, MessageParser, Parse, PasswordMessage, ProtocolError, Query, SASLInitialResponse, SASLResponse, SSLRequest, StartupMessage, Sync, Terminate, fieldsToNotice };
|
package/dist/psql/wire/sasl.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHash, createHmac, pbkdf2Sync, randomBytes, timingSafeEqual } from "node:crypto";
|
|
2
|
-
|
|
2
|
+
// src/psql/wire/sasl.ts
|
|
3
3
|
/**
|
|
4
4
|
* SASL / SCRAM-SHA-256[-PLUS] client for the psql wire layer (WP-03).
|
|
5
5
|
*
|
|
@@ -205,5 +205,4 @@ const MAPPED_TO_NOTHING_RE = /* @__PURE__ */ new RegExp("[͏᠆᠋-᠍
|
|
|
205
205
|
function saslprep(password) {
|
|
206
206
|
return password.replace(NON_ASCII_SPACE_RE, " ").replace(MAPPED_TO_NOTHING_RE, "").normalize("NFKC");
|
|
207
207
|
}
|
|
208
|
-
//#endregion
|
|
209
208
|
export { SaslMechanismError, SaslProtocolError, SaslVerificationError, createScramClient };
|
package/dist/psql/wire/tls.js
CHANGED
|
@@ -3,7 +3,7 @@ import { appendFileSync, promises } from "node:fs";
|
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
import { createHash, createPrivateKey } from "node:crypto";
|
|
5
5
|
import * as tls from "node:tls";
|
|
6
|
-
|
|
6
|
+
// src/psql/wire/tls.ts
|
|
7
7
|
/**
|
|
8
8
|
* TLS negotiation for the psql wire layer (WP-02).
|
|
9
9
|
*
|
|
@@ -439,5 +439,4 @@ function attachKeyLogListener(socket, filePath) {
|
|
|
439
439
|
}
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
|
-
//#endregion
|
|
443
442
|
export { attachKeyLogListener, computeChannelBindingData, loadTlsFileOptions, mapTlsHandshakeError, negotiateTls, readCaDir, sendSslRequest };
|
package/dist/refresh_lock.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { closeSync, openSync, statSync, unlinkSync } from "node:fs";
|
|
2
|
-
|
|
2
|
+
// src/refresh_lock.ts
|
|
3
3
|
const WAIT_MS = 2e4;
|
|
4
4
|
const RETRY_MS = 50;
|
|
5
5
|
const STALE_MS = 6e4;
|
|
@@ -40,5 +40,4 @@ const withExclusiveLock = async (lockPath, fn) => {
|
|
|
40
40
|
await delay(RETRY_MS);
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
//#endregion
|
|
44
43
|
export { isEexist, withExclusiveLock };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as OAUTH, d as scopeOf, i as API_KEY, l as interpretCredentials, t as storeFor, u as isSameCredential } from "./_chunks/credential_io-
|
|
1
|
+
import { a as OAUTH, d as scopeOf, i as API_KEY, l as interpretCredentials, t as storeFor, u as isSameCredential } from "./_chunks/credential_io-DbeSh3Pl.js";
|
|
2
2
|
import { log } from "./log.js";
|
|
3
3
|
import { getApiClient } from "./api.js";
|
|
4
4
|
import { revokeToken } from "./auth.js";
|
|
5
|
-
|
|
5
|
+
// src/retire_credential.ts
|
|
6
6
|
/**
|
|
7
7
|
* Malformed credentials cannot be revoked, but they must remain replaceable and removable.
|
|
8
8
|
*/
|
|
@@ -83,5 +83,4 @@ const revokeTokenSet = async (credentials, props) => {
|
|
|
83
83
|
...props.allowUnsafeTls ? { allowUnsafeTls: props.allowUnsafeTls } : {}
|
|
84
84
|
}, tokenSet);
|
|
85
85
|
};
|
|
86
|
-
//#endregion
|
|
87
86
|
export { readOutgoingCredential, retirePreviousCredential, revokeTokenSet, withdrawKey };
|
package/dist/skills/catalog.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { helpCsv } from "../utils/help_text.js";
|
|
2
|
-
|
|
2
|
+
// src/skills/catalog.ts
|
|
3
3
|
const AGENT_SKILLS_SOURCE = "neondatabase/agent-skills";
|
|
4
4
|
const PLATFORMS_SKILLS_SOURCE = "neondatabase/neon-for-agent-platforms";
|
|
5
5
|
const NEON_SKILL_CATALOG = [
|
|
@@ -109,5 +109,4 @@ const skillsYesHelp = () => {
|
|
|
109
109
|
if (omitted.length === 0) return "neon skills -y installs every listed skill";
|
|
110
110
|
return `neon skills -y installs every listed skill except ${omitted.join(", ")}`;
|
|
111
111
|
};
|
|
112
|
-
//#endregion
|
|
113
112
|
export { AGENT_SKILLS_SOURCE, NEON_SKILL_CATALOG, PLATFORMS_SKILLS_SOURCE, defaultSkillEntries, invocationsForSelection, listSkillIds, resolveSkillId, skillsHelpValues, skillsYesHelp, uniqueSkillEntries, yesInstallInvocations };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { globalLockPath, projectLockPath, readLockedSkills, refreshSkillsCheckCache } from "./freshness.js";
|
|
2
2
|
import { pathToFileURL } from "node:url";
|
|
3
|
-
|
|
3
|
+
// src/skills/check_worker.ts
|
|
4
4
|
const run = async () => {
|
|
5
5
|
const [cachePath, cwd] = process.argv.slice(2);
|
|
6
6
|
if (cachePath === void 0 || cwd === void 0) return;
|
|
@@ -13,5 +13,4 @@ const run = async () => {
|
|
|
13
13
|
};
|
|
14
14
|
const entry = process.argv[1];
|
|
15
15
|
if (entry !== void 0 && import.meta.url === pathToFileURL(entry).href) run();
|
|
16
|
-
//#endregion
|
|
17
16
|
export {};
|
package/dist/skills/freshness.js
CHANGED
|
@@ -8,7 +8,7 @@ import { createHash } from "node:crypto";
|
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
9
9
|
import { homedir } from "node:os";
|
|
10
10
|
import { spawn } from "node:child_process";
|
|
11
|
-
|
|
11
|
+
// src/skills/freshness.ts
|
|
12
12
|
const DAY_MS = 864e5;
|
|
13
13
|
const CACHE_FILE = "skills-check.json";
|
|
14
14
|
const FETCH_TIMEOUT_MS = 1e4;
|
|
@@ -443,5 +443,4 @@ const notifyIfSkillsOutdated = ({ configDir, cwd, now = Date.now() }) => {
|
|
|
443
443
|
folders
|
|
444
444
|
}, "skills check cache")) spawnSkillsCheckWorker(cachePath, cwd);
|
|
445
445
|
};
|
|
446
|
-
//#endregion
|
|
447
446
|
export { autocrlfCheckout, formatSkillsNotice, globalLockPath, lockPath, neonSkillsUpdateCommand, notifyIfSkillsOutdated, parseSkillsCheckCache, parseSkillsLock, planSkillsCheck, projectLockPath, readLockedSkills, readSkillsTelemetry, refreshSkillsCheckCache, scopeLabel, skillContentHash, skillStatus, skillsCheckCachePath, skillsStatusRows, skillsTelemetry };
|
package/dist/skills/plan.js
CHANGED
|
@@ -6,7 +6,7 @@ import { detectAgent } from "../init/detect_host.js";
|
|
|
6
6
|
import { agentChoicesFrom, pickAgentsInteractively, resolveAgentSelection } from "../utils/agent_picker.js";
|
|
7
7
|
import { invocationsForSelection, resolveSkillId, uniqueSkillEntries, yesInstallInvocations } from "./catalog.js";
|
|
8
8
|
import { pickSkillsInteractively } from "./wizard.js";
|
|
9
|
-
|
|
9
|
+
// src/skills/plan.ts
|
|
10
10
|
const assertSkillsCanRun = (options) => {
|
|
11
11
|
if (options.action === "update") {
|
|
12
12
|
if (options.yes || options.interactive) return;
|
|
@@ -67,5 +67,4 @@ async function resolveSkillsPlan(options) {
|
|
|
67
67
|
invocations: specified.length > 0 ? invocationsForSelection(specified) : options.yes ? yesInstallInvocations() : invocationsForSelection(await (options.pickSkills ?? pickSkillsInteractively)())
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
//#endregion
|
|
71
70
|
export { assertSkillsCanRun, resolveSkillsPlan };
|
package/dist/skills/run.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import pkg_default from "../pkg.js";
|
|
2
2
|
import { execa } from "execa";
|
|
3
|
-
|
|
3
|
+
// src/skills/run.ts
|
|
4
4
|
const TELEMETRY_BLOCKERS = ["DISABLE_TELEMETRY", "DO_NOT_TRACK"];
|
|
5
5
|
const skillsMetadata = (command) => JSON.stringify({
|
|
6
6
|
origin: "neon-cli",
|
|
@@ -116,5 +116,4 @@ const runSkillsCli = async (options) => {
|
|
|
116
116
|
};
|
|
117
117
|
const isCommandMissing = (error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT";
|
|
118
118
|
const isExecaFailure = (error) => typeof error === "object" && error !== null && "shortMessage" in error && typeof error.shortMessage === "string";
|
|
119
|
-
//#endregion
|
|
120
119
|
export { SKILLS_MIN_NODE, assertSkillsNode, neonSkillsRetryCommand, nodeMeetsMinimum, npxCommand, quoteNpxArg, runSkillsCli, skillsAddArgs, skillsChildEnv, skillsMetadata, skillsUpdateArgs, skillsUpdateDetail, skillsUpdateHadNothing };
|
package/dist/skills/targets.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { detectInstalledAgents, listMcpAgentIds, uniqueAgentIds } from "../mcp/agents.js";
|
|
2
2
|
import { getSkillsAgentName, supportsSkills } from "../init/agents.js";
|
|
3
3
|
import { detectProjectAgents } from "add-mcp";
|
|
4
|
-
|
|
4
|
+
// src/skills/targets.ts
|
|
5
5
|
const skillsInstallableAgents = () => listMcpAgentIds().filter((id) => supportsSkills(id));
|
|
6
6
|
const detectSkillsAgents = async (options) => {
|
|
7
7
|
const detected = options.scope === "project" ? detectProjectAgents(options.cwd) : await (options.detectInstalledAgents ?? detectInstalledAgents)();
|
|
@@ -19,5 +19,4 @@ const mappedSkillsAgentNames = (agents) => {
|
|
|
19
19
|
if (names.length === 0) throw new Error(`None of the selected agents can install skills. Supported agents: ${skillsInstallableAgents().join(", ")}`);
|
|
20
20
|
return names;
|
|
21
21
|
};
|
|
22
|
-
//#endregion
|
|
23
22
|
export { detectSkillsAgents, mappedSkillsAgentNames, skillsInstallableAgents };
|
package/dist/skills/wizard.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { canPickAgentsInteractively } from "../utils/agent_picker.js";
|
|
2
2
|
import { NEON_SKILL_CATALOG } from "./catalog.js";
|
|
3
3
|
import prompts from "prompts";
|
|
4
|
-
|
|
4
|
+
// src/skills/wizard.ts
|
|
5
5
|
const restoreCursorOnAbort = (state) => {
|
|
6
6
|
if (state.aborted) {
|
|
7
7
|
process.stdout.write("\x1B[?25h");
|
|
@@ -45,5 +45,4 @@ const confirmSkillsUpdate = async (options) => {
|
|
|
45
45
|
});
|
|
46
46
|
return ok === true;
|
|
47
47
|
};
|
|
48
|
-
//#endregion
|
|
49
48
|
export { confirmSkillsUpdate, pickSkillsInteractively };
|
package/dist/sso_recovery.js
CHANGED
|
@@ -3,7 +3,7 @@ import { log } from "./log.js";
|
|
|
3
3
|
import { codeFromBody } from "./api.js";
|
|
4
4
|
import open from "open";
|
|
5
5
|
import prompts from "prompts";
|
|
6
|
-
|
|
6
|
+
// src/sso_recovery.ts
|
|
7
7
|
/**
|
|
8
8
|
* Extract the SSO step-up URL from the error message.
|
|
9
9
|
*
|
|
@@ -88,5 +88,4 @@ const recoverFromSSO = async (error, canRetry) => {
|
|
|
88
88
|
}
|
|
89
89
|
return true;
|
|
90
90
|
};
|
|
91
|
-
//#endregion
|
|
92
91
|
export { recoverFromSSO };
|
package/dist/storage_api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/storage_api.ts
|
|
2
2
|
const bucketsPath = (projectId, branchId) => `/projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(branchId)}/buckets`;
|
|
3
3
|
const bucketPath = (projectId, branchId, bucketName) => `${bucketsPath(projectId, branchId)}/${encodeURIComponent(bucketName)}`;
|
|
4
4
|
/**
|
|
@@ -129,5 +129,4 @@ const presignUpload = (apiClient, { projectId, branchId, bucketName, objectKey,
|
|
|
129
129
|
secure: true
|
|
130
130
|
});
|
|
131
131
|
};
|
|
132
|
-
//#endregion
|
|
133
132
|
export { createProjectBranchBucket, deleteProjectBranchBucket, deleteProjectBranchBucketObject, deleteProjectBranchBucketObjectsByPrefix, getProjectBranchBucketObject, listProjectBranchBucketObjects, listProjectBranchBuckets, presignUpload };
|
|
@@ -6,7 +6,7 @@ import emocks from "emocks";
|
|
|
6
6
|
import express from "express";
|
|
7
7
|
import strip from "strip-ansi";
|
|
8
8
|
import { expect, test as test$1 } from "vitest";
|
|
9
|
-
|
|
9
|
+
// src/test_utils/fixtures.ts
|
|
10
10
|
/**
|
|
11
11
|
* Reserve a localhost port and close its listener, returning a URL that is guaranteed to
|
|
12
12
|
* refuse connections right now. Lets a test drive the CLI into a real `ECONNREFUSED`
|
|
@@ -130,5 +130,4 @@ const test = test$1.extend({
|
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
|
-
//#endregion
|
|
134
133
|
export { NUMERIC_PSQL_ARGS, forwardedPsqlArgs, passesOutput, test };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createServer } from "node:http";
|
|
2
|
-
|
|
2
|
+
// src/test_utils/neon_api_server.ts
|
|
3
3
|
const startNeonApiServer = async (user = {
|
|
4
4
|
id: "user-1",
|
|
5
5
|
email: "user@example.com"
|
|
@@ -56,5 +56,4 @@ const json = (res, status, body) => {
|
|
|
56
56
|
const closeServer = (server) => new Promise((resolve, reject) => {
|
|
57
57
|
server.close((err) => err ? reject(err) : resolve());
|
|
58
58
|
});
|
|
59
|
-
//#endregion
|
|
60
59
|
export { startNeonApiServer };
|