neon 8.13.2 → 8.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/README.md +1 -1
  2. package/dist/_chunks/{api-GbEaBZJ5.js → api-1MKsfpY3.js} +2 -3
  3. package/dist/_chunks/{api_keys-CNnnugbQ.js → api_keys-6Xnxl7a8.js} +2 -3
  4. package/dist/_chunks/{ask-DVwy0eUL.js → ask-Xlek1Pxh.js} +2 -3
  5. package/dist/_chunks/{auth-CIUtXByB.js → auth-rup6nemJ.js} +44 -8
  6. package/dist/_chunks/{auth_selection-YX5_KZgD.js → auth_selection-CwGLN9Qz.js} +2 -3
  7. package/dist/_chunks/{bootstrap-wPZWa1sT.js → bootstrap-BDkvsAVJ.js} +2 -3
  8. package/dist/_chunks/{branches-BNa1xX1L.js → branches-Bp-5z1lM.js} +2 -3
  9. package/dist/_chunks/{bucket-BCdryTkD.js → bucket-D06bvDSa.js} +2 -3
  10. package/dist/_chunks/{checkout-CXIOydqZ.js → checkout-BpOcFaAi.js} +5 -6
  11. package/dist/_chunks/{claim-DqAvAvDm.js → claim-DlLZmcq0.js} +4 -5
  12. package/dist/_chunks/{cmd_pipeline-CEk93dGN.js → cmd_pipeline-BDE-TGto.js} +3 -6
  13. package/dist/_chunks/{config-BH_qRHiG.js → config-BjCm5cfr.js} +59 -8
  14. package/dist/_chunks/{connection_string-DB4awPzZ.js → connection_string-C9e7N4xk.js} +3 -4
  15. package/dist/_chunks/{credential_io-BS-0Pmwc.js → credential_io-DbeSh3Pl.js} +6 -9
  16. package/dist/_chunks/{credentials-BSjE9fRR.js → credentials-BMBNmW0t.js} +2 -3
  17. package/dist/_chunks/{data_api-Djxj5ZQD.js → data_api-CHDwvMTG.js} +2 -3
  18. package/dist/_chunks/{databases-Dok4wru7.js → databases-DC2h6IW2.js} +2 -3
  19. package/dist/_chunks/{deploy-D7B0Xfjg.js → deploy-DmEEhux0.js} +3 -4
  20. package/dist/_chunks/{dev-CSvxAecE.js → dev-DlUJFzRs.js} +7 -8
  21. package/dist/_chunks/{diff-DhxxbdQE.js → diff-dnxneH0u.js} +2 -3
  22. package/dist/_chunks/{docs-CrVybkTP.js → docs-CClmgj_Z.js} +2 -3
  23. package/dist/_chunks/{env-5HS5qQGd.js → env-BOt9AZ1j.js} +4 -5
  24. package/dist/_chunks/{env-BNm69Qh8.js → env-CIFMBEon.js} +3 -5
  25. package/dist/_chunks/{env-BpP3Dqpe.js → env-JgoSsmyt.js} +2 -3
  26. package/dist/_chunks/{feedback-CMayyTa8.js → feedback-mQmdTRFn.js} +2 -3
  27. package/dist/_chunks/{functions-Q0zuvtnk.js → functions-3ypiRwZK.js} +2 -3
  28. package/dist/_chunks/{git-H32TNt6M.js → git-j6xSVo3e.js} +4 -5
  29. package/dist/_chunks/{init-BkA6RilG.js → init-CcVJb492.js} +3 -4
  30. package/dist/_chunks/{inspect-g0wekylj.js → inspect-yFAb61qo.js} +2 -3
  31. package/dist/_chunks/{ip_allow-5lLFvIuE.js → ip_allow-DBdxNEUa.js} +2 -3
  32. package/dist/_chunks/{link-BgtkOBws.js → link-nAiuWKfg.js} +6 -7
  33. package/dist/_chunks/{logs-DWkpjzIH.js → logs-BB4uvblR.js} +2 -3
  34. package/dist/_chunks/{mcp-Bo-7TKc7.js → mcp-BznTRK3w.js} +2 -3
  35. package/dist/_chunks/{neon_auth-DpF83S24.js → neon_auth-Dw-ucM5Y.js} +102 -28
  36. package/dist/_chunks/{open-CX3BT3Tp.js → open-T2nI89Oh.js} +2 -3
  37. package/dist/_chunks/{operations-D4I-AxVs.js → operations-CzaR_uqx.js} +2 -3
  38. package/dist/_chunks/{orgs-xGfANwHQ.js → orgs-Dpbr-K0A.js} +2 -3
  39. package/dist/_chunks/{paths-DMq0Lt7a.js → paths-B55ZfOg1.js} +1 -2
  40. package/dist/_chunks/{plugins-Dj0H6lDA.js → plugins-CKOcBuuP.js} +2 -3
  41. package/dist/_chunks/{profile-yXOiKk9R.js → profile-BAlM625e.js} +9 -10
  42. package/dist/_chunks/{profiles-DIB1av2Q.js → profiles-DTazQtjK.js} +4 -6
  43. package/dist/_chunks/{projects-BwI2Uo0z.js → projects-a3X4OFEJ.js} +2 -3
  44. package/dist/_chunks/{psql-BM-doe8e.js → psql-Bce4X0NG.js} +3 -4
  45. package/dist/_chunks/{psql-BNljLda2.js → psql-DwGeP0IV.js} +2 -4
  46. package/dist/_chunks/{realtime-BRqIyGR-.js → realtime-BwtzYf5a.js} +2 -3
  47. package/dist/_chunks/{roles-C3M4q9DS.js → roles-Bd9r8_pX.js} +1 -2
  48. package/dist/_chunks/{roles-B4w3YT_7.js → roles-xRuu0462.js} +2 -3
  49. package/dist/_chunks/{rolldown-runtime-8H4AJuhK.js → rolldown-runtime-BJohB4LM.js} +1 -2
  50. package/dist/_chunks/{secure_file-BucZj4yQ.js → secure_file-Caskdohg.js} +1 -2
  51. package/dist/_chunks/{set_context-DbrwoImy.js → set_context-ompB6d2D.js} +2 -3
  52. package/dist/_chunks/{skills-BP6pIm7O.js → skills-DKgafm65.js} +2 -3
  53. package/dist/_chunks/{snapshots-RJBzW8GM.js → snapshots-DxNhjcco.js} +3 -4
  54. package/dist/_chunks/{status-DV8Z2kw3.js → status-BC4XXuuE.js} +3 -4
  55. package/dist/_chunks/{triggers-BrRo1z4b.js → triggers-BfvyeJUC.js} +2 -3
  56. package/dist/_chunks/{user-dlOGXbX9.js → user-D9mC430O.js} +2 -3
  57. package/dist/_chunks/{vpc_endpoints-CNb0YfMo.js → vpc_endpoints-C-Y4WK2M.js} +3 -4
  58. package/dist/_shared/auth_selection.js +1 -2
  59. package/dist/_shared/credentials.js +1 -2
  60. package/dist/_shared/paths.js +1 -2
  61. package/dist/_shared/profiles.js +1 -2
  62. package/dist/_shared/secure_file.js +1 -2
  63. package/dist/analytics.js +3 -4
  64. package/dist/anonymous_id.js +2 -3
  65. package/dist/api.js +3 -4
  66. package/dist/auth.js +1 -2
  67. package/dist/auth_context.js +1 -2
  68. package/dist/auth_recovery.js +3 -4
  69. package/dist/claimable/api.js +1 -2
  70. package/dist/claimable/state.js +2 -3
  71. package/dist/cli.js +1 -2
  72. package/dist/commands/api.js +1 -1
  73. package/dist/commands/api_keys.js +1 -1
  74. package/dist/commands/ask.js +1 -1
  75. package/dist/commands/ask_sse.js +1 -2
  76. package/dist/commands/auth.js +1 -1
  77. package/dist/commands/bootstrap.js +1 -1
  78. package/dist/commands/branches.js +1 -1
  79. package/dist/commands/bucket.js +1 -1
  80. package/dist/commands/checkout.js +1 -1
  81. package/dist/commands/claim.js +1 -1
  82. package/dist/commands/config.js +1 -1
  83. package/dist/commands/connection_string.js +1 -1
  84. package/dist/commands/credentials.js +1 -1
  85. package/dist/commands/data_api.js +1 -1
  86. package/dist/commands/databases.js +1 -1
  87. package/dist/commands/deploy.js +1 -1
  88. package/dist/commands/deploy_help.js +1 -2
  89. package/dist/commands/dev.js +1 -1
  90. package/dist/commands/diff.js +1 -1
  91. package/dist/commands/docs.js +1 -1
  92. package/dist/commands/env.js +1 -1
  93. package/dist/commands/env_output.js +2 -3
  94. package/dist/commands/feedback.js +1 -1
  95. package/dist/commands/functions.js +1 -1
  96. package/dist/commands/functions_new.js +2 -3
  97. package/dist/commands/git.js +1 -1
  98. package/dist/commands/index.js +46 -47
  99. package/dist/commands/init.js +1 -1
  100. package/dist/commands/inspect.js +1 -1
  101. package/dist/commands/ip_allow.js +1 -1
  102. package/dist/commands/link.js +1 -1
  103. package/dist/commands/link_output.js +1 -2
  104. package/dist/commands/logs.js +1 -1
  105. package/dist/commands/manifest.js +1 -2
  106. package/dist/commands/mcp.js +1 -1
  107. package/dist/commands/neon_auth.js +1 -1
  108. package/dist/commands/open.js +1 -1
  109. package/dist/commands/operations.js +1 -1
  110. package/dist/commands/orgs.js +1 -1
  111. package/dist/commands/plugins.js +1 -1
  112. package/dist/commands/profile.js +1 -1
  113. package/dist/commands/projects.js +1 -1
  114. package/dist/commands/psql.js +1 -1
  115. package/dist/commands/realtime.js +1 -1
  116. package/dist/commands/roles.js +1 -1
  117. package/dist/commands/schema_diff.js +1 -2
  118. package/dist/commands/set_context.js +1 -1
  119. package/dist/commands/skills.js +1 -1
  120. package/dist/commands/snapshots.js +1 -1
  121. package/dist/commands/status.js +1 -1
  122. package/dist/commands/subscribe.js +2 -3
  123. package/dist/commands/thinking_spinner.js +1 -2
  124. package/dist/commands/triggers.js +1 -1
  125. package/dist/commands/user.js +1 -1
  126. package/dist/commands/vpc_endpoints.js +1 -1
  127. package/dist/config.js +2 -3
  128. package/dist/config_edit.js +1 -2
  129. package/dist/config_format.js +10 -3
  130. package/dist/config_services.js +1 -2
  131. package/dist/config_source.js +1 -2
  132. package/dist/config_template.js +37 -11
  133. package/dist/context.js +1 -2
  134. package/dist/credential_io.js +1 -1
  135. package/dist/current_branch_fast_path.js +1 -2
  136. package/dist/custom_domains_api.js +1 -2
  137. package/dist/dev/env.js +1 -1
  138. package/dist/dev/functions.js +1 -2
  139. package/dist/dev/inputs.js +1 -2
  140. package/dist/dev/runtime.js +1 -2
  141. package/dist/dev/websocket.js +1 -2
  142. package/dist/env.js +1 -2
  143. package/dist/env_file.js +1 -2
  144. package/dist/env_services.js +2 -3
  145. package/dist/error_reporting.js +80 -160
  146. package/dist/errors.js +1 -2
  147. package/dist/functions/registry.js +1 -2
  148. package/dist/functions/scaffold.js +1 -2
  149. package/dist/functions/source.js +1 -2
  150. package/dist/functions_api.js +1 -2
  151. package/dist/help.js +1 -2
  152. package/dist/human_table.js +1 -2
  153. package/dist/index.js +3 -4
  154. package/dist/init/agents.js +1 -2
  155. package/dist/init/auth.js +27 -7
  156. package/dist/init/bootstrap.js +1 -2
  157. package/dist/init/build_config.js +1 -2
  158. package/dist/init/cancelled.js +1 -2
  159. package/dist/init/choices.js +2 -3
  160. package/dist/init/chrome.js +1 -2
  161. package/dist/init/copy.js +1 -2
  162. package/dist/init/detect.js +4 -5
  163. package/dist/init/detect_host.js +1 -2
  164. package/dist/init/funnel.js +1 -2
  165. package/dist/init/link.js +4 -5
  166. package/dist/init/mode.js +1 -2
  167. package/dist/init/plan.js +1 -2
  168. package/dist/init/run.js +30 -9
  169. package/dist/init/template_title.js +1 -2
  170. package/dist/init/tooling.js +4 -5
  171. package/dist/init/wizard.js +2 -3
  172. package/dist/keyring.js +1 -2
  173. package/dist/log.js +1 -2
  174. package/dist/mcp/agents.js +1 -2
  175. package/dist/mcp/install.js +1 -2
  176. package/dist/mcp/mint.js +2 -3
  177. package/dist/mcp/plan.js +1 -2
  178. package/dist/mcp/targets.js +1 -2
  179. package/dist/mcp/wizard.js +1 -2
  180. package/dist/neon_services.js +1 -2
  181. package/dist/node_version.js +1 -2
  182. package/dist/notices.js +1 -2
  183. package/dist/parameters.gen.js +1 -2
  184. package/dist/pkg.js +1 -2
  185. package/dist/plugins/plan.js +1 -2
  186. package/dist/plugins/run.js +1 -2
  187. package/dist/plugins/targets.js +1 -2
  188. package/dist/profile_keys.js +1 -2
  189. package/dist/project.js +1 -2
  190. package/dist/psql/cli.js +2 -3
  191. package/dist/psql/command/cmd_cond.js +1 -2
  192. package/dist/psql/command/cmd_connect.js +1 -2
  193. package/dist/psql/command/cmd_copy.js +2 -3
  194. package/dist/psql/command/cmd_describe.js +1 -2
  195. package/dist/psql/command/cmd_format.js +1 -2
  196. package/dist/psql/command/cmd_io.js +1 -1
  197. package/dist/psql/command/cmd_lo.js +1 -2
  198. package/dist/psql/command/cmd_meta.js +1 -2
  199. package/dist/psql/command/cmd_misc.js +1 -2
  200. package/dist/psql/command/cmd_pipeline.js +1 -1
  201. package/dist/psql/command/cmd_restrict.js +1 -2
  202. package/dist/psql/command/cmd_show.js +1 -2
  203. package/dist/psql/command/dispatch.js +2 -3
  204. package/dist/psql/command/inputQueue.js +1 -2
  205. package/dist/psql/command/shared.js +1 -2
  206. package/dist/psql/complete/filenames.js +1 -2
  207. package/dist/psql/complete/index.js +1 -2
  208. package/dist/psql/complete/matcher.js +1 -2
  209. package/dist/psql/complete/psqlVars.js +1 -2
  210. package/dist/psql/complete/queries.js +1 -2
  211. package/dist/psql/complete/rules.js +1 -2
  212. package/dist/psql/core/common.js +1 -1
  213. package/dist/psql/core/help.js +1 -2
  214. package/dist/psql/core/mainloop.js +2 -3
  215. package/dist/psql/core/prompt.js +1 -2
  216. package/dist/psql/core/settings.js +1 -2
  217. package/dist/psql/core/sqlHelp.js +1 -2
  218. package/dist/psql/core/startup.js +1 -1
  219. package/dist/psql/core/syncVars.js +1 -2
  220. package/dist/psql/core/variables.js +1 -2
  221. package/dist/psql/describe/formatters.js +1 -2
  222. package/dist/psql/describe/processNamePattern.js +1 -2
  223. package/dist/psql/describe/queries.js +1 -2
  224. package/dist/psql/describe/versionGate.js +1 -2
  225. package/dist/psql/index.js +1 -1
  226. package/dist/psql/io/history.js +1 -2
  227. package/dist/psql/io/input.js +1 -2
  228. package/dist/psql/io/lineEditor/buffer.js +1 -2
  229. package/dist/psql/io/lineEditor/complete.js +1 -2
  230. package/dist/psql/io/lineEditor/filename.js +1 -2
  231. package/dist/psql/io/lineEditor/index.js +1 -2
  232. package/dist/psql/io/lineEditor/keymap.js +1 -2
  233. package/dist/psql/io/lineEditor/vt100.js +1 -2
  234. package/dist/psql/io/pgpass.js +1 -2
  235. package/dist/psql/io/pgservice.js +1 -2
  236. package/dist/psql/io/psqlrc.js +2 -3
  237. package/dist/psql/print/aligned.js +1 -2
  238. package/dist/psql/print/asciidoc.js +1 -2
  239. package/dist/psql/print/crosstab.js +1 -2
  240. package/dist/psql/print/csv.js +1 -2
  241. package/dist/psql/print/html.js +1 -2
  242. package/dist/psql/print/json.js +1 -2
  243. package/dist/psql/print/latex.js +1 -2
  244. package/dist/psql/print/pager.js +1 -2
  245. package/dist/psql/print/troff.js +1 -2
  246. package/dist/psql/print/unaligned.js +1 -2
  247. package/dist/psql/print/units.js +1 -2
  248. package/dist/psql/scanner/slash.js +1 -2
  249. package/dist/psql/scanner/sql.js +1 -2
  250. package/dist/psql/scanner/stringutils.js +1 -2
  251. package/dist/psql/types/scanner.js +1 -2
  252. package/dist/psql/wire/connection.js +1 -2
  253. package/dist/psql/wire/copy.js +1 -2
  254. package/dist/psql/wire/notify.js +1 -2
  255. package/dist/psql/wire/pipeline.js +1 -2
  256. package/dist/psql/wire/protocol.js +1 -2
  257. package/dist/psql/wire/sasl.js +1 -2
  258. package/dist/psql/wire/tls.js +1 -2
  259. package/dist/refresh_lock.js +1 -2
  260. package/dist/retire_credential.js +2 -3
  261. package/dist/skills/catalog.js +1 -2
  262. package/dist/skills/check_worker.js +1 -2
  263. package/dist/skills/freshness.js +1 -2
  264. package/dist/skills/plan.js +1 -2
  265. package/dist/skills/run.js +1 -2
  266. package/dist/skills/targets.js +1 -2
  267. package/dist/skills/wizard.js +1 -2
  268. package/dist/sso_recovery.js +1 -2
  269. package/dist/storage_api.js +1 -2
  270. package/dist/test_utils/fixtures.js +1 -2
  271. package/dist/test_utils/neon_api_server.js +1 -2
  272. package/dist/test_utils/npm_env.js +1 -2
  273. package/dist/test_utils/oauth_server.js +1 -2
  274. package/dist/test_utils/project_dir.js +1 -2
  275. package/dist/test_utils/registry.js +1 -2
  276. package/dist/test_utils/rotating_oauth_server.js +1 -2
  277. package/dist/update_check_worker.js +1 -2
  278. package/dist/update_notifier.js +1 -2
  279. package/dist/utils/agent_flag.js +1 -2
  280. package/dist/utils/agent_picker.js +1 -2
  281. package/dist/utils/ai_gateway_notice.js +1 -2
  282. package/dist/utils/api_enums.js +3 -3
  283. package/dist/utils/auth.js +1 -2
  284. package/dist/utils/branch_name.js +1 -2
  285. package/dist/utils/branch_notice.js +1 -2
  286. package/dist/utils/branch_picker.js +1 -2
  287. package/dist/utils/cli_name.js +1 -2
  288. package/dist/utils/compute_units.js +1 -2
  289. package/dist/utils/config_diff.js +1 -2
  290. package/dist/utils/enrichers.js +1 -2
  291. package/dist/utils/esbuild.js +1 -2
  292. package/dist/utils/flags.js +1 -2
  293. package/dist/utils/formats.js +1 -2
  294. package/dist/utils/function_slug.js +1 -2
  295. package/dist/utils/git.js +1 -2
  296. package/dist/utils/git_diff.js +1 -2
  297. package/dist/utils/help_text.js +1 -2
  298. package/dist/utils/hooks.js +2 -3
  299. package/dist/utils/inspect_db.js +3 -4
  300. package/dist/utils/inspect_queries.js +1 -2
  301. package/dist/utils/json_file.js +1 -2
  302. package/dist/utils/middlewares.js +2 -3
  303. package/dist/utils/openapi.js +1 -2
  304. package/dist/utils/package_manager.js +1 -2
  305. package/dist/utils/point_in_time.js +1 -2
  306. package/dist/utils/psql.js +1 -2
  307. package/dist/utils/repeated_flags.js +1 -2
  308. package/dist/utils/service_picker.js +2 -3
  309. package/dist/utils/staging.js +1 -2
  310. package/dist/utils/string.js +1 -2
  311. package/dist/utils/ui.js +1 -2
  312. package/dist/utils/write_sync.js +1 -2
  313. package/dist/utils/zip.js +1 -2
  314. package/dist/vendor/postgres-meta/constants.js +1 -2
  315. package/dist/vendor/postgres-meta/lib/PostgresMeta.js +1 -2
  316. package/dist/vendor/postgres-meta/lib/PostgresMetaColumnPrivileges.js +1 -2
  317. package/dist/vendor/postgres-meta/lib/PostgresMetaColumns.js +1 -2
  318. package/dist/vendor/postgres-meta/lib/PostgresMetaConfig.js +1 -2
  319. package/dist/vendor/postgres-meta/lib/PostgresMetaExtensions.js +1 -2
  320. package/dist/vendor/postgres-meta/lib/PostgresMetaForeignTables.js +1 -2
  321. package/dist/vendor/postgres-meta/lib/PostgresMetaFunctions.js +1 -2
  322. package/dist/vendor/postgres-meta/lib/PostgresMetaIndexes.js +1 -2
  323. package/dist/vendor/postgres-meta/lib/PostgresMetaMaterializedViews.js +1 -2
  324. package/dist/vendor/postgres-meta/lib/PostgresMetaPolicies.js +1 -2
  325. package/dist/vendor/postgres-meta/lib/PostgresMetaPublications.js +1 -2
  326. package/dist/vendor/postgres-meta/lib/PostgresMetaRelationships.js +1 -2
  327. package/dist/vendor/postgres-meta/lib/PostgresMetaRoles.js +1 -2
  328. package/dist/vendor/postgres-meta/lib/PostgresMetaSchemas.js +1 -2
  329. package/dist/vendor/postgres-meta/lib/PostgresMetaTablePrivileges.js +1 -2
  330. package/dist/vendor/postgres-meta/lib/PostgresMetaTables.js +1 -2
  331. package/dist/vendor/postgres-meta/lib/PostgresMetaTriggers.js +1 -2
  332. package/dist/vendor/postgres-meta/lib/PostgresMetaTypes.js +1 -2
  333. package/dist/vendor/postgres-meta/lib/PostgresMetaVersion.js +1 -2
  334. package/dist/vendor/postgres-meta/lib/PostgresMetaViews.js +1 -2
  335. package/dist/vendor/postgres-meta/lib/constants.js +1 -2
  336. package/dist/vendor/postgres-meta/lib/db.js +1 -2
  337. package/dist/vendor/postgres-meta/lib/generators.js +1 -2
  338. package/dist/vendor/postgres-meta/lib/helpers.js +1 -2
  339. package/dist/vendor/postgres-meta/lib/sql/column_privileges.sql.js +1 -2
  340. package/dist/vendor/postgres-meta/lib/sql/columns.sql.js +1 -2
  341. package/dist/vendor/postgres-meta/lib/sql/config.sql.js +1 -2
  342. package/dist/vendor/postgres-meta/lib/sql/extensions.sql.js +1 -2
  343. package/dist/vendor/postgres-meta/lib/sql/foreign_tables.sql.js +1 -2
  344. package/dist/vendor/postgres-meta/lib/sql/functions.sql.js +1 -2
  345. package/dist/vendor/postgres-meta/lib/sql/indexes.sql.js +1 -2
  346. package/dist/vendor/postgres-meta/lib/sql/materialized_views.sql.js +1 -2
  347. package/dist/vendor/postgres-meta/lib/sql/policies.sql.js +1 -2
  348. package/dist/vendor/postgres-meta/lib/sql/publications.sql.js +1 -2
  349. package/dist/vendor/postgres-meta/lib/sql/roles.sql.js +1 -2
  350. package/dist/vendor/postgres-meta/lib/sql/schemas.sql.js +1 -2
  351. package/dist/vendor/postgres-meta/lib/sql/table.sql.js +1 -2
  352. package/dist/vendor/postgres-meta/lib/sql/table_privileges.sql.js +1 -2
  353. package/dist/vendor/postgres-meta/lib/sql/table_relationships.sql.js +1 -2
  354. package/dist/vendor/postgres-meta/lib/sql/triggers.sql.js +1 -2
  355. package/dist/vendor/postgres-meta/lib/sql/types.sql.js +1 -2
  356. package/dist/vendor/postgres-meta/lib/sql/version.sql.js +1 -2
  357. package/dist/vendor/postgres-meta/lib/sql/views.sql.js +1 -2
  358. package/dist/vendor/postgres-meta/lib/sql/views_key_dependencies.sql.js +1 -2
  359. package/dist/vendor/postgres-meta/templates/typescript.js +1 -2
  360. package/dist/writer.js +1 -2
  361. package/package.json +8 -8
@@ -1,5 +1,5 @@
1
1
  import { NEON_SERVICES, parseServices } from "./neon_services.js";
2
- //#region src/config_template.ts
2
+ // src/config_template.ts
3
3
  /**
4
4
  * The published npm packages a `neon.ts` project needs — the `@neon/*` org names.
5
5
  *
@@ -18,8 +18,9 @@ const REQUIRED_PACKAGES = [CONFIG_PACKAGE, ENV_PACKAGE];
18
18
  * from these names to the `neon.ts` fields (`aiGateway`, `functions`, `buckets`, `dataApi`).
19
19
  *
20
20
  * Postgres is absent because every branch has it, so there is nothing to declare. Selecting
21
- * `data-api` also writes `auth: true`: the default Data API provider requires Neon Auth, and
22
- * `defineConfig` type-errors the file without it.
21
+ * `data-api` also writes `auth: true` unless the caller says the Data API verifies an external
22
+ * provider (see {@link DataApiTemplateChoice}): the default Data API provider requires Neon
23
+ * Auth, and `defineConfig` type-errors the file without it.
23
24
  */
24
25
  const CONFIG_INIT_SERVICES = NEON_SERVICES.filter((service) => service !== "postgres");
25
26
  /**
@@ -64,18 +65,44 @@ const renderGaServices = (services) => {
64
65
  if (lines.length === 0) return "";
65
66
  return `${lines.join("\n")}\n`;
66
67
  };
68
+ /** The template choice for a view's `dataApi` entry (`config status` / `--from-branch`). */
69
+ const dataApiChoiceFromView = (dataApi) => {
70
+ if (dataApi === true) return { kind: "neon" };
71
+ const { authProvider: _provider, ...wiring } = dataApi;
72
+ return {
73
+ kind: "external",
74
+ ...wiring
75
+ };
76
+ };
77
+ /**
78
+ * The `dataApi` entry, ending in a newline. The external form carries whatever wiring is
79
+ * known; without a JWKS URL it still type-checks (the URL is optional) and still declares the
80
+ * Data API, so a comment says where the URL lives rather than inventing one.
81
+ */
82
+ const renderDataApiEntry = (choice) => {
83
+ if (choice.kind === "neon") return `${at(1, "dataApi: true,").join("\n")}\n`;
84
+ const fields = at(2, `authProvider: "external",`);
85
+ if (choice.jwksUrl === void 0) fields.push(...at(2, "// The JWKS URL is registered on the project; add `jwksUrl` to declare it here too."));
86
+ else fields.push(...at(2, `jwksUrl: ${renderScalar(choice.jwksUrl)},`));
87
+ if (choice.providerName !== void 0) fields.push(...at(2, `providerName: ${renderScalar(choice.providerName)},`));
88
+ if (choice.jwtAudience !== void 0) fields.push(...at(2, `jwtAudience: ${renderScalar(choice.jwtAudience)},`));
89
+ return `${block(1, "dataApi", fields).join("\n")}\n`;
90
+ };
67
91
  /**
68
92
  * Render the `neon.ts` policy `config init` writes. With no services this is the starter
69
93
  * policy — an explicit `auth: false`, no service keys beyond that, and a `branch` closure that gives
70
94
  * new non-default branches a 7-day TTL — so the picker's "skip everything" answer and a
71
95
  * non-interactive run produce the identical file.
72
96
  *
73
- * `data-api` writes `dataApi: true` and forces `auth: true`. The default provider is Neon
74
- * Auth; omitting auth is a `defineConfig` type error rather than a deploy-time surprise.
97
+ * `data-api` writes `dataApi: true` and forces `auth: true` unless `options.dataApi` says the
98
+ * branch's Data API verifies an external provider. The default provider is Neon Auth;
99
+ * omitting auth is a `defineConfig` type error rather than a deploy-time surprise.
75
100
  */
76
- const renderNeonConfig = (services) => {
77
- const auth = services.includes("auth") || services.includes("data-api");
78
- const dataApi = services.includes("data-api") ? " dataApi: true,\n" : "";
101
+ const renderNeonConfig = (services, options = {}) => {
102
+ const dataApiChoice = options.dataApi ?? { kind: "neon" };
103
+ const declaresDataApi = services.includes("data-api");
104
+ const auth = services.includes("auth") || declaresDataApi && dataApiChoice.kind !== "external";
105
+ const dataApi = declaresDataApi ? renderDataApiEntry(dataApiChoice) : "";
79
106
  const realtimeDeclaration = services.includes("realtime") ? " preview: {\n realtime: true,\n },\n" : "";
80
107
  return `import { defineConfig } from "${CONFIG_PACKAGE}/v1";
81
108
 
@@ -154,7 +181,7 @@ const renderSeededGaServices = (view, branchName) => {
154
181
  * than an empty `defineConfig({})`: seeding found nothing, and the caller says so.
155
182
  */
156
183
  const renderNeonConfigFromView = (view, branchName) => {
157
- const services = [view.auth ? " auth: true," : "", view.dataApi ? " dataApi: true," : ""].filter((line) => line !== "");
184
+ const services = [view.auth ? " auth: true," : "", view.dataApi ? renderDataApiEntry(dataApiChoiceFromView(view.dataApi)).trimEnd() : ""].filter((line) => line !== "");
158
185
  const gaServices = renderSeededGaServices(view, branchName);
159
186
  const branch = renderSeededBranch(view);
160
187
  if (services.length === 0 && gaServices === "" && branch === "") return {
@@ -202,5 +229,4 @@ const renderFunctionSource = (slug, language) => {
202
229
  `;
203
230
  };
204
231
  const FUNCTION_TEMPLATE = renderFunctionSource(FUNCTION_SLUG, "ts");
205
- //#endregion
206
- export { BUCKET_NAME, CONFIG_INIT_SERVICES, CONFIG_PACKAGE, ENV_PACKAGE, FUNCTION_FILENAME, FUNCTION_NAME, FUNCTION_SLUG, FUNCTION_TEMPLATE, REQUIRED_PACKAGES, parseConfigInitServices, renderFunctionSource, renderKey, renderNeonConfig, renderNeonConfigFromView };
232
+ export { BUCKET_NAME, CONFIG_INIT_SERVICES, CONFIG_PACKAGE, ENV_PACKAGE, FUNCTION_FILENAME, FUNCTION_NAME, FUNCTION_SLUG, FUNCTION_TEMPLATE, REQUIRED_PACKAGES, dataApiChoiceFromView, parseConfigInitServices, renderFunctionSource, renderKey, renderNeonConfig, renderNeonConfigFromView };
package/dist/context.js CHANGED
@@ -2,7 +2,7 @@ import { log } from "./log.js";
2
2
  import { accessSync, existsSync, readFileSync, writeFileSync } from "node:fs";
3
3
  import { dirname, normalize, resolve } from "node:path";
4
4
  import { homedir } from "node:os";
5
- //#region src/context.ts
5
+ // src/context.ts
6
6
  /**
7
7
  * The branch pinned in a context, reading the current `branch` field and
8
8
  * falling back to the legacy `branchId` so pre-migration `.neon` files keep
@@ -359,5 +359,4 @@ const globToRegExp = (pattern) => {
359
359
  const source = pattern.replace(/[.+^${}()|\\]/g, "\\$&").replace(/\*/g, "[^/]*").replace(/\?/g, "[^/]");
360
360
  return new RegExp(`^${source}$`);
361
361
  };
362
- //#endregion
363
362
  export { CONTEXT_FILE, applyContext, contextBranch, currentContextFile, enrichFromContext, ensureDirectoryGitignored, ensureGitignored, gitBranchMap, gitBranchMapping, isApiKeysCommand, isAskCommand, isClaimCommand, isConfigAdd, isConfigInit, isCurrentBranchProbe, isDocsCommand, isFeedbackCommand, isFunctionsTemplateCommand, isGitLocalCommand, isInspectDbUrl, isMcpCommand, isMcpOauth, isPluginsCommand, isProfileCommand, isSkillsCommand, isUnfollowedGitHookSync, readContextFile, setContext, setGitBranchMap, setGitBranchMapping, setGitFollow, updateContextFile, walkContextFile };
@@ -1 +1 @@
1
- export { t as storeFor } from "./_chunks/credential_io-BS-0Pmwc.js";
1
+ export { t as storeFor } from "./_chunks/credential_io-DbeSh3Pl.js";
@@ -1,7 +1,7 @@
1
1
  import { log } from "./log.js";
2
2
  import { contextBranch, currentContextFile, readContextFile } from "./context.js";
3
3
  import { getCliName } from "./utils/cli_name.js";
4
- //#region src/current_branch_fast_path.ts
4
+ // src/current_branch_fast_path.ts
5
5
  /**
6
6
  * Offline fast path for `(config) status --current-branch` (used by shell prompts).
7
7
  *
@@ -43,5 +43,4 @@ const isExactCurrentBranchInvocation = (args) => {
43
43
  const rest = args[0] === "status" ? args.slice(1) : args[0] === "config" && args[1] === "status" ? args.slice(2) : null;
44
44
  return rest !== null && rest.length === 1 && rest[0] === "--current-branch";
45
45
  };
46
- //#endregion
47
46
  export { tryCurrentBranchFastPath };
@@ -1,4 +1,4 @@
1
- //#region src/custom_domains_api.ts
1
+ // src/custom_domains_api.ts
2
2
  const customDomainsPath = (projectId, branchId) => `/projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(branchId)}/custom-domains`;
3
3
  const listCustomDomains = async (apiClient, projectId, branchId, { cursor, limit } = {}) => {
4
4
  const { data } = await apiClient.request({
@@ -33,5 +33,4 @@ const deleteCustomDomain = async (apiClient, projectId, branchId, domain) => {
33
33
  secure: true
34
34
  });
35
35
  };
36
- //#endregion
37
36
  export { deleteCustomDomain, listCustomDomains, registerCustomDomain };
package/dist/dev/env.js CHANGED
@@ -1 +1 @@
1
- export { t as DevEnvMismatchError, n as MissingBranchContextError, r as ServiceNotOnBranchError, i as dropClaimableUnsupported, a as resolveDevEnv, o as resolveNeonEnvVars } from "../_chunks/env-BNm69Qh8.js";
1
+ export { t as DevEnvMismatchError, n as MissingBranchContextError, r as ServiceNotOnBranchError, i as dropClaimableUnsupported, a as resolveDevEnv, o as resolveNeonEnvVars } from "../_chunks/env-CIFMBEon.js";
@@ -2,7 +2,7 @@ import { loadProjectConfig } from "../project.js";
2
2
  import { existsSync } from "node:fs";
3
3
  import { dirname, isAbsolute, resolve } from "node:path";
4
4
  import { resolveConfig } from "@neon/config";
5
- //#region src/dev/functions.ts
5
+ // src/dev/functions.ts
6
6
  /**
7
7
  * Load `neon.ts` (if any) and resolve the list of functions it declares into
8
8
  * {@link PlannedFunction}s for `neon dev` to serve. Returns `null` when there is no
@@ -81,5 +81,4 @@ const loadNeonConfig = async (cwd, contextFile) => {
81
81
  throw err;
82
82
  }
83
83
  };
84
- //#endregion
85
84
  export { findConfigFunctionBySource, resolveFunctionsFromConfig };
@@ -1,5 +1,5 @@
1
1
  import { resolve } from "node:path";
2
- //#region src/dev/inputs.ts
2
+ // src/dev/inputs.ts
3
3
  const defaultDeps = {
4
4
  isPackaged: () => process.pkg !== void 0,
5
5
  loadEsbuild: (name) => import(name)
@@ -47,5 +47,4 @@ const resolveWatchInputs = async (source, deps = defaultDeps) => {
47
47
  if (!inputs) return null;
48
48
  return Object.keys(inputs).map((p) => resolve(process.cwd(), p));
49
49
  };
50
- //#endregion
51
50
  export { resolveWatchInputs };
@@ -3,7 +3,7 @@ import { resolve } from "node:path";
3
3
  import { pathToFileURL } from "node:url";
4
4
  import { createServer } from "node:http";
5
5
  import { getRequestListener } from "@hono/node-server";
6
- //#region src/dev/runtime.ts
6
+ // src/dev/runtime.ts
7
7
  const isFunction = (value) => typeof value === "function";
8
8
  const hasFetchMethod = (value) => typeof value === "object" && value !== null && "fetch" in value && typeof value.fetch === "function";
9
9
  /**
@@ -165,5 +165,4 @@ if (isDirectExecution()) {
165
165
  process.exit(1);
166
166
  });
167
167
  }
168
- //#endregion
169
168
  export { portSelectionFromEnv, resolveFetchHandler, resolveUpgradeHandler, startRuntime, withErrorBoundary };
@@ -1,6 +1,6 @@
1
1
  import { createHash } from "node:crypto";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
- //#region src/dev/websocket.ts
3
+ // src/dev/websocket.ts
4
4
  /**
5
5
  * WebSocket support for the `neon dev` server.
6
6
  *
@@ -834,5 +834,4 @@ const protocolError = (code, message) => {
834
834
  err.wsCode = code;
835
835
  return err;
836
836
  };
837
- //#endregion
838
837
  export { CloseEventCtor, acceptKey, createUpgradeListener, installWebSocketBridge, isWebSocketHandshake, upgradeWebSocket, validateHandshake, writeUpgradeRejection };
package/dist/env.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/env.ts
1
+ // src/env.ts
2
2
  const isCi = () => {
3
3
  return process.env.CI !== "false" && Boolean(process.env.CI);
4
4
  };
@@ -38,5 +38,4 @@ const getGithubEnvVars = (env) => {
38
38
  });
39
39
  return Object.fromEntries(map);
40
40
  };
41
- //#endregion
42
41
  export { getCliAgent, getGithubEnvVars, isCi, isDebug, isInteractiveTerminal };
package/dist/env_file.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { projectDir } from "./project.js";
2
2
  import { existsSync, readFileSync, writeFileSync } from "node:fs";
3
3
  import { join, resolve } from "node:path";
4
- //#region src/env_file.ts
4
+ // src/env_file.ts
5
5
  /**
6
6
  * Default dotenv file `env pull` writes to: `.env` when one already exists in the project
7
7
  * directory (update where secrets already live), otherwise `.env.local` — matching the
@@ -152,5 +152,4 @@ const trimTrailingBlank = (lines) => {
152
152
  while (out.length > 0 && out[out.length - 1]?.trim() === "") out.pop();
153
153
  return out;
154
154
  };
155
- //#endregion
156
155
  export { defaultDevEnvFiles, loadEnvFileIntoProcess, mergeEnvContent, mergeEnvFile, readEnvFile, resolveEnvFilePath };
@@ -1,6 +1,6 @@
1
1
  import { NEON_SERVICES } from "./neon_services.js";
2
- import { f as parseFunctionBaseUrlKey, t as NEON_ENV_VAR_KEYS, u as isFunctionBaseUrlKey } from "./_chunks/env-BpP3Dqpe.js";
3
- //#region src/env_services.ts
2
+ import { f as parseFunctionBaseUrlKey, t as NEON_ENV_VAR_KEYS, u as isFunctionBaseUrlKey } from "./_chunks/env-JgoSsmyt.js";
3
+ // src/env_services.ts
4
4
  const ENV_PULL_SERVICES = NEON_SERVICES;
5
5
  const ENV_PULL_KEYS = [
6
6
  ...Object.values(NEON_ENV_VAR_KEYS.postgres),
@@ -121,5 +121,4 @@ const editDistance = (left, right) => {
121
121
  };
122
122
  /** Narrow yargs' array option value without accepting any other runtime shape. */
123
123
  const envPullFlagValue = (value) => Array.isArray(value) ? value.map(String) : void 0;
124
- //#endregion
125
124
  export { BRANCH_ENV_KEY, ENV_PULL_KEYS, ENV_PULL_KEY_HELP, ENV_PULL_SERVICES, envKeysForSelection, envPullFlagValue, envServiceKeys, ownedEnvServiceKeys, parseEnvPullKeys, serviceForEnvKey, servicesForEnvKeys };