neon 9.9.8 → 9.9.9

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 (33) hide show
  1. package/README.md +1 -1
  2. package/dist/_chunks/{bootstrap-yotTpFtF.js → bootstrap-CwIzCCcg.js} +14 -15
  3. package/dist/_chunks/{checkout-C4kfW64r.js → checkout-Dc70dN1v.js} +3 -3
  4. package/dist/_chunks/{claim-u1NrKodG.js → claim-BoN9NPTy.js} +1 -1
  5. package/dist/_chunks/{config-DrlP49no.js → config-BgVJkRBC.js} +8 -3
  6. package/dist/_chunks/{deploy-DnjB7HV_.js → deploy-B7MgbDYh.js} +1 -1
  7. package/dist/_chunks/{dev-wpD1Az-t.js → dev-Hq6nGUAM.js} +3 -3
  8. package/dist/_chunks/{git-DWmx2prl.js → git-DT3nMyGz.js} +2 -2
  9. package/dist/_chunks/{link-D89GPFoO.js → link-CYAw3z0c.js} +2 -2
  10. package/dist/_chunks/{status-DXp_w9U2.js → status-Bop_r6Va.js} +1 -1
  11. package/dist/commands/bootstrap.js +1 -1
  12. package/dist/commands/checkout.js +1 -1
  13. package/dist/commands/claim.js +1 -1
  14. package/dist/commands/config.js +1 -1
  15. package/dist/commands/deploy.js +1 -1
  16. package/dist/commands/dev.js +1 -1
  17. package/dist/commands/env.js +1 -1
  18. package/dist/commands/functions_new.js +1 -1
  19. package/dist/commands/git.js +1 -1
  20. package/dist/commands/index.js +10 -10
  21. package/dist/commands/link.js +1 -1
  22. package/dist/commands/status.js +1 -1
  23. package/dist/commands/subscribe.js +1 -1
  24. package/dist/config_template.js +2 -2
  25. package/dist/init/auth.js +1 -1
  26. package/dist/init/copy.js +2 -1
  27. package/dist/init/deploy.js +1 -1
  28. package/dist/init/link.js +1 -1
  29. package/dist/init/run.js +4 -4
  30. package/dist/init/wizard.js +5 -4
  31. package/dist/utils/package_manager.js +1 -0
  32. package/package.json +4 -4
  33. package/dist/_chunks/{env-BIP63KZa.js → env-C3HQJO8Z.js} +1 -1
package/README.md CHANGED
@@ -878,7 +878,7 @@ When a package cannot be bundled — a native addon with no esbuild loader, or a
878
878
 
879
879
  `neon bootstrap` copies a Neon starter template into a new (or current) directory — conceptually like `degit`, but it only pulls from a small set of templates we maintain in the public [`neondatabase/examples`](https://github.com/neondatabase/examples) repo. The template copy needs no Neon login: it downloads files from GitHub.
880
880
 
881
- After scaffolding, an interactive terminal asks about dependency install and git, then finishes agent setup before asking whether to link a Neon project. Dependency install is last, except when the template has a `neon.ts` and you chose to link — then install runs first so the link flow can pull env. `--default` / `-y` skips the template, install, git, and agent pickers, then installs agent tooling for project folders, else the host CLI agent. If none are found, it exits: pass `--agent <name>`, run from a supported agent, or omit `--default` / `-y` in a terminal to pick. `--agent` / `-a` names coding agents, skips agent selection, and is forwarded to `plugins`, or to `skills` and `mcp`, not both. Linking uses `neon link -y`: the only organization and project are selected, or their IDs are printed and the command exits. `--no-agent-setup` and `--no-link` skip those steps. Non-interactive without `--default` prints next steps and does not install, set up agents, or link.
881
+ After scaffolding, an interactive terminal asks about dependency install and git, then finishes agent setup before asking whether to link a Neon project. Dependency install is last, except when the template has a `neon.ts` and you chose to link — then install runs first so the link flow can pull env. `--default` / `-y` skips the template, install, git, and agent pickers, then installs agent tooling for project folders, else the host CLI agent. If none are found, it exits: pass `--agent <name>`, run from a supported agent, or omit `--default` / `-y` in a terminal to pick. `--agent` / `-a` names coding agents, skips agent selection, and is forwarded to `plugins`, or to `skills` and `mcp`, not both. Linking uses `neon link -y`: the only organization and project are selected, or their IDs are printed and the command exits. `--no-agent-setup` and `--no-link` skip those steps. Non-interactive without `--default` prints next steps and does not init git, set up agents, or link; it installs dependencies only when you pass `--install`.
882
882
 
883
883
  When the template has a `neon.ts` and its dependencies are installed and the project is linked, bootstrap checks the env vars its functions read against the env file link pulled into (`.env.local`). If all are set, a terminal asks `Deploy this project to Neon now?` and runs `neon deploy --env .env.local`; `--default` leaves that command under `Next:`. If some are unset, `Next:` names them. `--deploy` installs, links, and deploys without asking, and fails with `neon deploy`'s error when an env var is unset. It refuses `--no-install` and `--no-link`, and needs `--default` outside a terminal.
884
884
 
@@ -55,9 +55,8 @@ const builder = (argv) => argv.usage("$0 bootstrap [directory] [options]").posit
55
55
  default: false
56
56
  },
57
57
  install: {
58
- describe: "Install dependencies after scaffolding. In interactive mode this is offered as a prompt; use --no-install to skip without being asked.",
59
- type: "boolean",
60
- default: true
58
+ describe: "Install dependencies after scaffolding. In interactive mode this is offered as a prompt; use --no-install to skip without being asked. Without a terminal, --install or --default installs.",
59
+ type: "boolean"
61
60
  },
62
61
  git: {
63
62
  describe: "Initialize a git repository after scaffolding. In interactive mode this is offered as a prompt; use --no-git to skip without being asked.",
@@ -200,17 +199,17 @@ const runPostScaffoldSteps = async (props, targetDir, interactive, template, nam
200
199
  const neonConfig = hasNeonConfig(targetDir);
201
200
  if (props.default) return runDefaultSteps(props, targetDir, defaultPm, neonConfig, template, named);
202
201
  if (!interactive) {
203
- const outcome = {
204
- installed: false,
205
- installFailed: false,
206
- gitFailed: false,
202
+ const outcome = await executePostScaffold(props, targetDir, {
203
+ yes: true,
204
+ lockAgentSetup: false,
205
+ pm: defaultPm,
207
206
  git: false,
208
207
  agentSetup: "skip",
209
- linked: false,
210
- skippedLinkForDeps: false,
211
- agentsRan: false,
212
- deployed: false
213
- };
208
+ install: props.install === true,
209
+ link: false,
210
+ hasNeonConfig: neonConfig,
211
+ named
212
+ });
214
213
  finishPostScaffold({
215
214
  heading: "Project scaffolded.",
216
215
  template,
@@ -224,7 +223,7 @@ const runPostScaffoldSteps = async (props, targetDir, interactive, template, nam
224
223
  return nestedResult(template, targetDir, neonConfig, outcome);
225
224
  }
226
225
  let pm = defaultPm;
227
- const wantInstall = props.install && (props.deploy === true || await confirm(installPrompt(inferred)));
226
+ const wantInstall = props.install !== false && (props.deploy === true || await confirm(installPrompt(inferred)));
228
227
  if (wantInstall) pm = inferred ?? await selectPackageManager();
229
228
  const wantGit = props.git && !isGitRepo(targetDir) && await confirm("Initialize a git repository?");
230
229
  const agentSetup = props.agentSetup === false ? "skip" : named.length > 0 ? chooseYesAgentTooling(named).setup : await (props.pickAgentSetup ?? pickAgentSetupInteractively)();
@@ -264,7 +263,7 @@ const runDefaultSteps = async (props, targetDir, pm, neonConfig, template, named
264
263
  pm,
265
264
  git: wantGit,
266
265
  agentSetup,
267
- install: props.install,
266
+ install: props.install !== false,
268
267
  link: props.link,
269
268
  hasNeonConfig: neonConfig,
270
269
  named
@@ -382,7 +381,7 @@ const executePostScaffold = async (props, targetDir, choices) => {
382
381
  };
383
382
  /**
384
383
  * `--deploy` installs and links without asking, so flags that skip those steps contradict
385
- * it. Outside a terminal, only `-y` runs the post-scaffold steps at all.
384
+ * it. Outside a terminal, only `-y` runs the link step.
386
385
  */
387
386
  const assertDeployable = (props, interactive) => {
388
387
  if (props.install === false || props.link === false) throw new BootstrapInputError("--deploy needs installed dependencies and a linked project. Remove --no-install and --no-link.", "DEPLOY_NEEDS_INSTALL_AND_LINK");
@@ -12,9 +12,9 @@ import { looksLikeBranchId } from "../utils/formats.js";
12
12
  import { fillSingleProject, listAllProjectBranches } from "../utils/enrichers.js";
13
13
  import { buildCheckoutEvent, readGitContext } from "../utils/git.js";
14
14
  import { buildHookBranch, loadHookConfig, resolveHookEnv, runCheckoutAfterHook, runCheckoutBeforeHook, runCreateAfterHook, runCreateBeforeHook } from "../utils/hooks.js";
15
- import { n as autoPullEnvAfterPin } from "./env-BIP63KZa.js";
16
- import { a as applyPolicyOnCreate, f as envFlag, l as createBranchFromPolicyOnCheckout } from "./config-DrlP49no.js";
17
- import { i as handler$1 } from "./link-D89GPFoO.js";
15
+ import { n as autoPullEnvAfterPin } from "./env-C3HQJO8Z.js";
16
+ import { a as applyPolicyOnCreate, f as envFlag, l as createBranchFromPolicyOnCheckout } from "./config-BgVJkRBC.js";
17
+ import { i as handler$1 } from "./link-CYAw3z0c.js";
18
18
  import chalk from "chalk";
19
19
  import prompts from "prompts";
20
20
  // src/commands/checkout.ts
@@ -12,7 +12,7 @@ import { projectConfigPath } from "../project.js";
12
12
  import { resolveEnvFilePath } from "../env_file.js";
13
13
  import { writer } from "../writer.js";
14
14
  import { noPassthrough } from "../utils/flags.js";
15
- import { c as pull } from "./env-BIP63KZa.js";
15
+ import { c as pull } from "./env-C3HQJO8Z.js";
16
16
  import { existsSync, readFileSync, unlinkSync, writeFileSync } from "node:fs";
17
17
  import open from "open";
18
18
  import prompts from "prompts";
@@ -26,7 +26,7 @@ import { readGitContext } from "../utils/git.js";
26
26
  import { resolveHookEnv, runDeployAfterHook, runDeployBeforeHook } from "../utils/hooks.js";
27
27
  import { pickServicesInteractively } from "../utils/service_picker.js";
28
28
  import { zipBundle } from "../utils/zip.js";
29
- import { n as autoPullEnvAfterPin } from "./env-BIP63KZa.js";
29
+ import { n as autoPullEnvAfterPin } from "./env-C3HQJO8Z.js";
30
30
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
31
31
  import { dirname, join, relative, resolve } from "node:path";
32
32
  import chalk from "chalk";
@@ -128,11 +128,14 @@ const DEPENDENCY_FIELDS = [
128
128
  "peerDependencies",
129
129
  "optionalDependencies"
130
130
  ];
131
+ const isNpmPeerConflict = (pm, detail) => pm === "npm" && detail === "ERESOLVE";
132
+ const PEER_CONFLICT_HINT = "npm stops on a peer dependency conflict in this project's dependency tree. --force accepts the conflict, which npm reports as a warning, and installs the Neon packages along with any peer dependencies the tree is missing.";
131
133
  var ConfigInstallFailed = class extends DetailedError {
132
134
  constructor(command, pm, detail) {
133
135
  super(`Could not install the Neon dependencies with ${pm} (${detail}).`, detail);
134
136
  this.name = "ConfigInstallFailed";
135
137
  this.command = command;
138
+ this.hint = isNpmPeerConflict(pm, detail) ? PEER_CONFLICT_HINT : void 0;
136
139
  }
137
140
  };
138
141
  const isRecord = (value) => typeof value === "object" && value !== null;
@@ -293,8 +296,10 @@ const ensureConfigPackages = async (cwd, props) => {
293
296
  if (!props.silent) log.info("Installing %s with %s…", missing.join(", "), pm);
294
297
  const result = await run(pm, args, cwd);
295
298
  if (!result.ok) {
296
- if (props.requireInstall) throw new ConfigInstallFailed(installHint, pm, result.detail);
297
- log.warning("Could not install the config packages automatically with %s (%s). Run by hand: %s", pm, result.detail, installHint);
299
+ const peerConflict = isNpmPeerConflict(pm, result.detail);
300
+ const retry = installCommandFrom(cwd, pm, missing, { acceptPeerConflicts: peerConflict });
301
+ if (props.requireInstall) throw new ConfigInstallFailed(retry, pm, result.detail);
302
+ log.warning("Could not install the config packages automatically with %s (%s).%s Run by hand: %s", pm, result.detail, peerConflict ? ` ${PEER_CONFLICT_HINT}` : "", retry);
298
303
  }
299
304
  };
300
305
  /**
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
2
2
  import { fillSingleProject } from "../utils/enrichers.js";
3
- import { f as envFlag, i as applyFlags, p as envPullFlag, r as applyCmd } from "./config-DrlP49no.js";
3
+ import { f as envFlag, i as applyFlags, p as envPullFlag, r as applyCmd } from "./config-BgVJkRBC.js";
4
4
  import { DEPLOY_COMMANDS_EPILOGUE } from "../commands/deploy_help.js";
5
5
  // src/commands/deploy.ts
6
6
  var deploy_exports = /* @__PURE__ */ __exportAll({
@@ -4,12 +4,12 @@ import { getCliName } from "../utils/cli_name.js";
4
4
  import { isClaimableEnvTarget } from "../claimable/state.js";
5
5
  import { defaultDevEnvFiles, readEnvFile, resolveEnvFilePath } from "../env_file.js";
6
6
  import { t as NEON_DEV_FUNCTION_PORTS } from "./env-EJU-0InB.js";
7
+ import { branchIdResolve } from "../utils/enrichers.js";
8
+ import { bundleEntry } from "../utils/esbuild.js";
7
9
  import { a as resolveDevEnv } from "./env-BWvi2_2f.js";
10
+ import { f as envFlag } from "./config-BgVJkRBC.js";
8
11
  import { findConfigFunctionBySource, resolveFunctionsFromConfig } from "../dev/functions.js";
9
12
  import { resolveWatchInputs } from "../dev/inputs.js";
10
- import { branchIdResolve } from "../utils/enrichers.js";
11
- import { bundleEntry } from "../utils/esbuild.js";
12
- import { f as envFlag } from "./config-DrlP49no.js";
13
13
  import { existsSync, mkdirSync, rmSync, statSync, writeFileSync } from "node:fs";
14
14
  import { basename, dirname, join, relative, resolve } from "node:path";
15
15
  import { fileURLToPath } from "node:url";
@@ -5,8 +5,8 @@ import { CONTEXT_FILE, contextBranch, gitBranchMap, gitBranchMapping, isUnfollow
5
5
  import { writer } from "../writer.js";
6
6
  import { neonSafeBranchName } from "../utils/branch_name.js";
7
7
  import { currentGitBranch, gitPull, gitRepoRoot, hasUpstream, installPostCheckoutHook, isGitRepo, isManagedHook, localGitBranches, postCheckoutHookPath, readGitContext, removePostCheckoutHook } from "../utils/git.js";
8
- import { o as quoteFlagValue } from "./link-D89GPFoO.js";
9
- import { o as handler$1 } from "./checkout-C4kfW64r.js";
8
+ import { o as quoteFlagValue } from "./link-CYAw3z0c.js";
9
+ import { o as handler$1 } from "./checkout-Dc70dN1v.js";
10
10
  import { existsSync } from "node:fs";
11
11
  import { join } from "node:path";
12
12
  import chalk from "chalk";
@@ -13,8 +13,8 @@ import { writer } from "../writer.js";
13
13
  import { createBranch, pickBranchInteractively } from "../utils/branch_picker.js";
14
14
  import { looksLikeBranchId } from "../utils/formats.js";
15
15
  import { listAllProjectBranches } from "../utils/enrichers.js";
16
- import { n as autoPullEnvAfterPin } from "./env-BIP63KZa.js";
17
- import { h as initCmd } from "./config-DrlP49no.js";
16
+ import { n as autoPullEnvAfterPin } from "./env-C3HQJO8Z.js";
17
+ import { h as initCmd } from "./config-BgVJkRBC.js";
18
18
  import { formatLinkSummary } from "../commands/link_output.js";
19
19
  import { r as REGIONS } from "./projects-a3X4OFEJ.js";
20
20
  import prompts from "prompts";
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
2
2
  import { fillSingleProject } from "../utils/enrichers.js";
3
- import { y as status } from "./config-DrlP49no.js";
3
+ import { y as status } from "./config-BgVJkRBC.js";
4
4
  // src/commands/status.ts
5
5
  var status_exports = /* @__PURE__ */ __exportAll({
6
6
  builder: () => builder,
@@ -1 +1 @@
1
- export { n as builder, r as command, i as describe, a as handler } from "../_chunks/bootstrap-yotTpFtF.js";
1
+ export { n as builder, r as command, i as describe, a as handler } from "../_chunks/bootstrap-CwIzCCcg.js";
@@ -1 +1 @@
1
- export { t as builder, r as command, i as describe, a as formatCheckoutPolicyFailure, o as handler } from "../_chunks/checkout-C4kfW64r.js";
1
+ export { t as builder, r as command, i as describe, a as formatCheckoutPolicyFailure, o as handler } from "../_chunks/checkout-Dc70dN1v.js";
@@ -1 +1 @@
1
- export { t as CLAIM_CREATE_FIELDS, n as CLAIM_LIST_FIELDS, r as aliases, i as builder, a as claimCreateFields, s as claimableCapabilities, c as command, l as create, u as describe, d as handler } from "../_chunks/claim-u1NrKodG.js";
1
+ export { t as CLAIM_CREATE_FIELDS, n as CLAIM_LIST_FIELDS, r as aliases, i as builder, a as claimCreateFields, s as claimableCapabilities, c as command, l as create, u as describe, d as handler } from "../_chunks/claim-BoN9NPTy.js";
@@ -1 +1 @@
1
- export { t as ConfigInstallFailed, n as addCmd, r as applyCmd, i as applyFlags, a as applyPolicyOnCreate, o as builder, s as command, l as createBranchFromPolicyOnCheckout, u as describe, d as ensureConfigPackages, f as envFlag, p as envPullFlag, m as handler, h as initCmd, g as installCommandFrom, _ as missingDependencies, v as planCmd, y as status } from "../_chunks/config-DrlP49no.js";
1
+ export { t as ConfigInstallFailed, n as addCmd, r as applyCmd, i as applyFlags, a as applyPolicyOnCreate, o as builder, s as command, l as createBranchFromPolicyOnCheckout, u as describe, d as ensureConfigPackages, f as envFlag, p as envPullFlag, m as handler, h as initCmd, g as installCommandFrom, _ as missingDependencies, v as planCmd, y as status } from "../_chunks/config-BgVJkRBC.js";
@@ -1 +1 @@
1
- export { t as builder, n as command, i as describe, a as handler } from "../_chunks/deploy-DnjB7HV_.js";
1
+ export { t as builder, n as command, i as describe, a as handler } from "../_chunks/deploy-B7MgbDYh.js";
@@ -1 +1 @@
1
- export { t as builder, n as captureShellEnv, r as command, i as describe, a as devBundleDir, o as devEnvContext, c as diffUnits, l as formatEnvFiles, u as formatEnvSummary, d as handler, f as loadDevEnvFiles, p as localFunctionPortsEnv, m as planFunctionsToUnits, h as reportDevCredential, g as sourceFunctionUrlOverlay } from "../_chunks/dev-wpD1Az-t.js";
1
+ export { t as builder, n as captureShellEnv, r as command, i as describe, a as devBundleDir, o as devEnvContext, c as diffUnits, l as formatEnvFiles, u as formatEnvSummary, d as handler, f as loadDevEnvFiles, p as localFunctionPortsEnv, m as planFunctionsToUnits, h as reportDevCredential, g as sourceFunctionUrlOverlay } from "../_chunks/dev-Hq6nGUAM.js";
@@ -1 +1 @@
1
- export { t as ENV_PULL_SKIPPED_HINT, n as autoPullEnvAfterPin, r as builder, i as command, a as describe, s as handler, c as pull } from "../_chunks/env-BIP63KZa.js";
1
+ export { t as ENV_PULL_SKIPPED_HINT, n as autoPullEnvAfterPin, r as builder, i as command, a as describe, s as handler, c as pull } from "../_chunks/env-C3HQJO8Z.js";
@@ -10,7 +10,7 @@ import { writer } from "../writer.js";
10
10
  import { formatInitDone, printInitDone } from "../init/chrome.js";
11
11
  import { FUNCTION_SLUG_PATTERN, deriveFunctionSlug } from "../utils/function_slug.js";
12
12
  import { displayPath } from "./env_output.js";
13
- import { _ as missingDependencies, d as ensureConfigPackages, g as installCommandFrom } from "../_chunks/config-DrlP49no.js";
13
+ import { _ as missingDependencies, d as ensureConfigPackages, g as installCommandFrom } from "../_chunks/config-BgVJkRBC.js";
14
14
  import { recommendedOperations } from "../functions/registry.js";
15
15
  import { collidingFiles, operationsFromFlags, planConfigRegistration, planEnvExample, planScaffold, writeScaffold } from "../functions/scaffold.js";
16
16
  import { describeRegistrySources, openRegistry } from "../functions/source.js";
@@ -1 +1 @@
1
- export { t as aliases, n as builder, r as cleanup, i as command, a as describe, s as handler, c as install, l as partitionBranchesToPrune, u as status, d as sync, f as uninstall } from "../_chunks/git-DWmx2prl.js";
1
+ export { t as aliases, n as builder, r as cleanup, i as command, a as describe, s as handler, c as install, l as partitionBranchesToPrune, u as status, d as sync, f as uninstall } from "../_chunks/git-DT3nMyGz.js";
@@ -2,29 +2,29 @@ import { r as auth_exports } from "../_chunks/auth-CFa969Ck.js";
2
2
  import { t as api_exports } from "../_chunks/api-Bus6PoKT.js";
3
3
  import { n as api_keys_exports } from "../_chunks/api_keys-CTFHd5m_.js";
4
4
  import { n as ask_exports } from "../_chunks/ask-Xlek1Pxh.js";
5
- import { o as env_exports } from "../_chunks/env-BIP63KZa.js";
6
- import { c as config_exports } from "../_chunks/config-DrlP49no.js";
5
+ import { o as env_exports } from "../_chunks/env-C3HQJO8Z.js";
6
+ import { c as config_exports } from "../_chunks/config-BgVJkRBC.js";
7
7
  import { u as projects_exports } from "../_chunks/projects-a3X4OFEJ.js";
8
- import { a as link_exports } from "../_chunks/link-D89GPFoO.js";
8
+ import { a as link_exports } from "../_chunks/link-CYAw3z0c.js";
9
9
  import { o as mcp_exports } from "../_chunks/mcp-g8C-BZIb.js";
10
10
  import { c as plugins_exports } from "../_chunks/plugins-CEylQlgK.js";
11
11
  import { l as skills_exports } from "../_chunks/skills-Bv8oKKwE.js";
12
- import { t as bootstrap_exports } from "../_chunks/bootstrap-yotTpFtF.js";
12
+ import { t as bootstrap_exports } from "../_chunks/bootstrap-CwIzCCcg.js";
13
13
  import { r as branches_exports } from "../_chunks/branches-Bp-5z1lM.js";
14
14
  import { n as bucket_exports } from "../_chunks/bucket-D06bvDSa.js";
15
- import { n as checkout_exports } from "../_chunks/checkout-C4kfW64r.js";
16
- import { o as claim_exports } from "../_chunks/claim-u1NrKodG.js";
15
+ import { n as checkout_exports } from "../_chunks/checkout-Dc70dN1v.js";
16
+ import { o as claim_exports } from "../_chunks/claim-BoN9NPTy.js";
17
17
  import { o as connection_string_exports } from "../_chunks/connection_string-6WhV4WFx.js";
18
18
  import { a as credentials_exports } from "../_chunks/credentials-KV1jlK-n.js";
19
19
  import { r as data_api_exports } from "../_chunks/data_api-BpSGbdZf.js";
20
20
  import { s as databases_exports } from "../_chunks/databases-B-qY303S.js";
21
- import { r as deploy_exports } from "../_chunks/deploy-DnjB7HV_.js";
22
- import { s as dev_exports } from "../_chunks/dev-wpD1Az-t.js";
21
+ import { r as deploy_exports } from "../_chunks/deploy-B7MgbDYh.js";
22
+ import { s as dev_exports } from "../_chunks/dev-Hq6nGUAM.js";
23
23
  import { i as diff_exports } from "../_chunks/diff-dnxneH0u.js";
24
24
  import { c as docs_exports } from "../_chunks/docs-DjYRHjGY.js";
25
25
  import { o as feedback_exports } from "../_chunks/feedback-mQmdTRFn.js";
26
26
  import { o as functions_exports } from "../_chunks/functions-v9z7zjWD.js";
27
- import { o as git_exports } from "../_chunks/git-DWmx2prl.js";
27
+ import { o as git_exports } from "../_chunks/git-DT3nMyGz.js";
28
28
  import { o as incidents_exports } from "../_chunks/incidents-BSFkUu1P.js";
29
29
  import { a as init_exports } from "../_chunks/init-BSwLzxjX.js";
30
30
  import { o as inspect_exports } from "../_chunks/inspect-yFAb61qo.js";
@@ -41,7 +41,7 @@ import { o as profile_exports } from "../_chunks/profile-DWyfpl03.js";
41
41
  import { s as realtime_exports } from "../_chunks/realtime-cV7-c2-O.js";
42
42
  import { a as set_context_exports } from "../_chunks/set_context-ompB6d2D.js";
43
43
  import { s as snapshots_exports } from "../_chunks/snapshots-BolN3uBz.js";
44
- import { a as status_exports } from "../_chunks/status-DXp_w9U2.js";
44
+ import { a as status_exports } from "../_chunks/status-Bop_r6Va.js";
45
45
  import { d as triggers_exports } from "../_chunks/triggers-m3IBjiph.js";
46
46
  import { s as user_exports } from "../_chunks/user-iNYSe0KI.js";
47
47
  import { i as vpc_endpoints_exports } from "../_chunks/vpc_endpoints-C-Y4WK2M.js";
@@ -1 +1 @@
1
- export { t as builder, n as command, r as describe, i as handler, o as quoteFlagValue, s as runLink, c as shouldOfferConfigInit } from "../_chunks/link-D89GPFoO.js";
1
+ export { t as builder, n as command, r as describe, i as handler, o as quoteFlagValue, s as runLink, c as shouldOfferConfigInit } from "../_chunks/link-CYAw3z0c.js";
@@ -1 +1 @@
1
- export { t as builder, n as command, r as describe, i as handler } from "../_chunks/status-DXp_w9U2.js";
1
+ export { t as builder, n as command, r as describe, i as handler } from "../_chunks/status-Bop_r6Va.js";
@@ -1,6 +1,6 @@
1
1
  import { writer } from "../writer.js";
2
- import { o as resolveNeonEnvVars } from "../_chunks/env-BWvi2_2f.js";
3
2
  import { branchIdFromProps } from "../utils/enrichers.js";
3
+ import { o as resolveNeonEnvVars } from "../_chunks/env-BWvi2_2f.js";
4
4
  import YAML from "yaml";
5
5
  // src/commands/subscribe.ts
6
6
  const builder = (argv) => argv.usage("$0 realtime subscribe \"<query>\" [options]").positional("query", {
@@ -37,8 +37,8 @@ const parseConfigInitServices = (raw, onDeprecated) => parseServices(raw, {
37
37
  const FUNCTION_SLUG = "hello";
38
38
  const FUNCTION_NAME = "Hello World";
39
39
  const FUNCTION_FILENAME = "hello.ts";
40
- /** Name of the bucket scaffolded for `storage`. */
41
- const BUCKET_NAME = "assets";
40
+ /** Neon's Object Storage guides use this bucket name. */
41
+ const BUCKET_NAME = "uploads";
42
42
  /**
43
43
  * One indentation level in the emitted `neon.ts`. Two spaces, which is what every renderer
44
44
  * here produces and what `config_template.format.test.ts` holds them to.
package/dist/init/auth.js CHANGED
@@ -4,7 +4,7 @@ import "../config.js";
4
4
  import "../auth.js";
5
5
  import { c as ensureAuth, l as existingApiClient } from "../_chunks/auth-CFa969Ck.js";
6
6
  import { recoverFrom401 } from "../auth_recovery.js";
7
- import { c as pull } from "../_chunks/env-BIP63KZa.js";
7
+ import { c as pull } from "../_chunks/env-C3HQJO8Z.js";
8
8
  import { c as setupNeonMcp } from "../_chunks/mcp-g8C-BZIb.js";
9
9
  // src/init/auth.ts
10
10
  const isUnauthorized = (error) => isNeonApiError(error) && error.status === 401;
package/dist/init/copy.js CHANGED
@@ -150,10 +150,11 @@ const claimableThenServicesNext = (expiresAt) => [
150
150
  "Refresh local environment variables:",
151
151
  `${getCliName()} env pull`
152
152
  ];
153
- const installFailedNext = (command, envPull, reason) => ({
153
+ const installFailedNext = (command, envPull, reason, hint) => ({
154
154
  heading: HEADING_FAILED,
155
155
  body: reason,
156
156
  next: [
157
+ ...hint ? [hint] : [],
157
158
  "Install the dependencies, then run neon init again:",
158
159
  command,
159
160
  ...envPull ? [
@@ -4,7 +4,7 @@ import { c as ensureAuth } from "../_chunks/auth-CFa969Ck.js";
4
4
  import { recoverFrom401 } from "../auth_recovery.js";
5
5
  import { loadProjectConfig } from "../project.js";
6
6
  import { loadEnvFileIntoProcess } from "../env_file.js";
7
- import { r as applyCmd } from "../_chunks/config-DrlP49no.js";
7
+ import { r as applyCmd } from "../_chunks/config-BgVJkRBC.js";
8
8
  import { authContext } from "./auth.js";
9
9
  import { existsSync } from "node:fs";
10
10
  import { missingFunctionEnv } from "@neon/config";
package/dist/init/link.js CHANGED
@@ -4,7 +4,7 @@ import "../config.js";
4
4
  import "../auth.js";
5
5
  import { c as ensureAuth } from "../_chunks/auth-CFa969Ck.js";
6
6
  import { recoverFrom401 } from "../auth_recovery.js";
7
- import { s as runLink } from "../_chunks/link-D89GPFoO.js";
7
+ import { s as runLink } from "../_chunks/link-CYAw3z0c.js";
8
8
  // src/init/link.ts
9
9
  const isUnauthorized = (error) => isNeonApiError(error) && error.status === 401;
10
10
  const authenticationFailed = () => /* @__PURE__ */ new Error("Authentication failed.");
package/dist/init/run.js CHANGED
@@ -15,8 +15,8 @@ import { getAgentDisplayName } from "../mcp/agents.js";
15
15
  import { missingPluginsCommands, pluginsCommandProblemText, pluginsInstallableAgents, unusablePluginsCommands } from "../plugins/targets.js";
16
16
  import { AGENTS_NOT_INSTALLED, CANCELLED_BODY, CLAIMABLE_ACCOUNT_FLAGS, CLAIMABLE_ALREADY_LINKED, CLAIMABLE_MCP_API_KEY, CLAIMABLE_NO_LINK, MCP_API_KEY_NEEDS_AUTH, MCP_SCOPED_NEEDS_PROJECT, NON_TTY_LINK_NEEDS_AUTH, NO_AGENTS_FALLBACK_STATUS, PROGRESS, PROJECT_PINNED_OFFLINE, claimableNext, claimableThenServicesNext, configInitNext, envPullFailedNext, existingConfigNext, installFailedNext, mcpAfterLinkNext, mcpConfigLocationSkipped, mcpConfigLocationUnavailable, mcpKeyFailedNext, namedAgentsUnavailable, newConfigNext, offlinePinNext, skippedLinkNext, toolingFailedNext, unattendedUnauthedNext } from "./copy.js";
17
17
  import { agentsRowValue, configRowValue, formatInitDone, headingForKind, printInitBanner, printInitDone, printInitProgress, projectRowValue, shouldPrintInitBanner } from "./chrome.js";
18
- import { h as initCmd, t as ConfigInstallFailed } from "../_chunks/config-DrlP49no.js";
19
- import { o as quoteFlagValue, s as runLink } from "../_chunks/link-D89GPFoO.js";
18
+ import { h as initCmd, t as ConfigInstallFailed } from "../_chunks/config-BgVJkRBC.js";
19
+ import { o as quoteFlagValue, s as runLink } from "../_chunks/link-CYAw3z0c.js";
20
20
  import { runAuthenticatedLink } from "./link.js";
21
21
  import { mcpInstallableAgents } from "../mcp/targets.js";
22
22
  import { skillsInstallableAgents } from "../skills/targets.js";
@@ -26,7 +26,7 @@ import { pullInitEnv, resolveInitConfigApi } from "./auth.js";
26
26
  import { InitCancelled, raceSigint, restoreCursor } from "./cancelled.js";
27
27
  import { pickAgentSetupInteractively, pickInitAgentsInteractively, pickInitConfigInteractively, pickInitMcpAuthInteractively, pickInitMcpConfigLocationInteractively, pickInitModeInteractively, pickInitPackageManagerInteractively, pickInitProjectSetupInteractively, pickInitServicesInteractively, pickInitSkillsInteractively } from "./wizard.js";
28
28
  import { runToolingSteps, toolingStepCommandText } from "./tooling.js";
29
- import { l as create } from "../_chunks/claim-u1NrKodG.js";
29
+ import { l as create } from "../_chunks/claim-BoN9NPTy.js";
30
30
  import { INIT_CONFIG_SERVICES_CONFLICT, configPlanFromResolution, initEnvPullAfterConfig, resolveInitConfigChoice } from "./choices.js";
31
31
  import { detectInitEnvironment } from "./detect.js";
32
32
  import { createInitFunnel, emitInitStart, finishInitFunnel, initStartProperties, recordInitError, recordInitExit } from "./funnel.js";
@@ -595,7 +595,7 @@ const runInit = async (props) => {
595
595
  });
596
596
  } catch (error) {
597
597
  if (error instanceof ConfigInstallFailed) {
598
- const failed = installFailedNext(error.command, linkDeferredPull, error.message);
598
+ const failed = installFailedNext(error.command, linkDeferredPull, error.message, error.hint);
599
599
  printInitDone(formatInitDone({
600
600
  heading: failed.heading,
601
601
  body: failed.body,
@@ -1,4 +1,4 @@
1
- import { CONFIG_INIT_SERVICES } from "../config_template.js";
1
+ import { BUCKET_NAME, CONFIG_INIT_SERVICES } from "../config_template.js";
2
2
  import { installedPackageManagers } from "../utils/package_manager.js";
3
3
  import { getAgentDisplayName, listMcpAgentIds } from "../mcp/agents.js";
4
4
  import { AGENT_DETECTED_DESCRIPTION, AGENT_MCP_PICKER_MESSAGE, AGENT_MCP_SKIP_MESSAGE, AGENT_OTHER_DESCRIPTION, AGENT_PICKER_MESSAGE, AGENT_PLUGIN_SKIP_MESSAGE, AGENT_SETUP_MESSAGE, AGENT_SETUP_PLUGIN_DESCRIPTION, AGENT_SETUP_PLUGIN_TITLE, AGENT_SETUP_SKILLS_DESCRIPTION, AGENT_SETUP_SKILLS_TITLE, AGENT_SETUP_SKIP_DESCRIPTION, AGENT_SETUP_SKIP_TITLE, AGENT_SKILLS_PICKER_MESSAGE, AGENT_SKILLS_SKIP_MESSAGE, CONFIG_CONFIRM_HINT, CONFIG_CONFIRM_MESSAGE, MCP_AUTH_API_KEY_DESCRIPTION, MCP_AUTH_API_KEY_TITLE, MCP_AUTH_MESSAGE, MCP_AUTH_OAUTH_DESCRIPTION, MCP_AUTH_OAUTH_TITLE, MCP_SCOPE_GLOBAL_DESCRIPTION, MCP_SCOPE_GLOBAL_TITLE, MCP_SCOPE_MESSAGE, MCP_SCOPE_PROJECT_DESCRIPTION, MCP_SCOPE_PROJECT_TITLE, MODE_CUSTOM_DESCRIPTION, MODE_CUSTOM_TITLE, MODE_MESSAGE, MODE_RECOMMENDED_DESCRIPTION, MODE_RECOMMENDED_TITLE, PACKAGE_MANAGER_MESSAGE, PROJECT_SETUP_CLAIMABLE_DESCRIPTION, PROJECT_SETUP_CLAIMABLE_TITLE, PROJECT_SETUP_LINK_DESCRIPTION, PROJECT_SETUP_LINK_TITLE, PROJECT_SETUP_MESSAGE, SERVICES_HINT, SERVICES_MESSAGE, SKILLS_PICKER_MESSAGE, agentUnusableCommandDescription } from "./copy.js";
@@ -187,7 +187,7 @@ const pickInitConfigInteractively = async () => {
187
187
  const pickInitServicesInteractively = async () => {
188
188
  requireInteractive();
189
189
  process.stdout.write(`${chalk.dim(SERVICES_HINT)}\n`);
190
- const { services } = await prompts({
190
+ const question = {
191
191
  onState: restoreCursorOnAbort,
192
192
  onRender() {
193
193
  keepPostgresSelected(this);
@@ -217,7 +217,7 @@ const pickInitServicesInteractively = async () => {
217
217
  {
218
218
  value: "object-storage",
219
219
  title: "Object Storage",
220
- description: "Declare a private S3-compatible bucket named assets."
220
+ description: `Declare a private S3-compatible bucket named ${BUCKET_NAME}.`
221
221
  },
222
222
  {
223
223
  value: "ai-gateway",
@@ -225,7 +225,8 @@ const pickInitServicesInteractively = async () => {
225
225
  description: "Declare AI Gateway access. Requires an eligible Neon plan."
226
226
  }
227
227
  ]
228
- });
228
+ };
229
+ const { services } = await prompts(question);
229
230
  if (!Array.isArray(services)) return aborted();
230
231
  return CONFIG_INIT_SERVICES.filter((service) => services.includes(service));
231
232
  };
@@ -252,6 +252,7 @@ const workspaceRootFlag = (pm, dir) => {
252
252
  const installArgs = (pm, packages, options) => packages?.length ? [
253
253
  pm === "npm" ? "install" : "add",
254
254
  ...options?.dir === void 0 ? [] : workspaceRootFlag(pm, options.dir),
255
+ ...options?.acceptPeerConflicts && pm === "npm" ? ["--force"] : [],
255
256
  ...options?.dev ? ["-D"] : [],
256
257
  ...options?.exact ? ["-E"] : [],
257
258
  ...packages
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neon",
3
- "version": "9.9.8",
3
+ "version": "9.9.9",
4
4
  "description": "CLI tool for Neon, the cloud backend primitives built around Lakebase Postgres",
5
5
  "keywords": [
6
6
  "neon",
@@ -75,8 +75,8 @@
75
75
  "yoctocolors": "^2.1.2",
76
76
  "@neon/config": "1.14.7",
77
77
  "@neon/config-runtime": "1.12.10",
78
- "@neon/realtime": "0.2.1",
79
- "@neon/sdk": "7.16.0"
78
+ "@neon/sdk": "7.16.0",
79
+ "@neon/realtime": "0.2.1"
80
80
  },
81
81
  "optionalDependencies": {
82
82
  "@napi-rs/keyring": "1.3.0",
@@ -112,8 +112,8 @@
112
112
  "tsx": "4.22.3",
113
113
  "typescript": "^5.9.0",
114
114
  "vitest": "^3.0.9",
115
- "@neon-internals/env-core": "0.0.58",
116
115
  "@neon-internals/cli-core": "0.0.0",
116
+ "@neon-internals/env-core": "0.0.58",
117
117
  "@neon/e2e-harness": "0.0.0",
118
118
  "@neon/env": "2.1.10",
119
119
  "@neon/functions": "0.11.0"
@@ -7,8 +7,8 @@ import { deprecatedServiceMessage, parseServices, servicesFlagValue, servicesOpt
7
7
  import { mergeEnvFile, readEnvFile, resolveEnvFilePath } from "../env_file.js";
8
8
  import { n as NEON_ENV_VAR_KEYS } from "./env-EJU-0InB.js";
9
9
  import { ENV_PULL_KEY_HELP, ENV_PULL_SERVICES, envKeysForSelection, envPullFlagValue, isLegacyFunctionBaseUrlKey, ownedEnvServiceKeys, parseEnvPullKeys } from "../env_services.js";
10
- import { i as dropClaimableUnsupported, o as resolveNeonEnvVars } from "./env-BWvi2_2f.js";
11
10
  import { fillSingleProject, resolveBranchRef } from "../utils/enrichers.js";
11
+ import { i as dropClaimableUnsupported, o as resolveNeonEnvVars } from "./env-BWvi2_2f.js";
12
12
  import { warnAiGateway } from "../utils/ai_gateway_notice.js";
13
13
  import { formatPulledEnv, pulledBranch } from "../commands/env_output.js";
14
14
  import { existsSync } from "node:fs";