neon 9.5.1 → 9.6.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 (33) hide show
  1. package/README.md +1 -1
  2. package/dist/_chunks/{checkout-Cham6pyw.js → checkout-CtKSLNam.js} +3 -3
  3. package/dist/_chunks/{claim-Dz5-Q29W.js → claim-BVEwQ65H.js} +1 -1
  4. package/dist/_chunks/{config-DbUecUDS.js → config-BfmZMmrF.js} +6 -3
  5. package/dist/_chunks/{deploy-ByZ1OKKD.js → deploy-CYfb1R4z.js} +1 -1
  6. package/dist/_chunks/{dev-DWbOS3QN.js → dev-CM7e54xx.js} +3 -3
  7. package/dist/_chunks/{git-D-P2EIeK.js → git-Du3bBFei.js} +2 -2
  8. package/dist/_chunks/{link-CdXU0E63.js → link-C8AY8VnZ.js} +2 -2
  9. package/dist/_chunks/{logs-Zf8mcRVE.js → logs-CcVpwdDs.js} +8 -7
  10. package/dist/_chunks/{status-CUl0BqFj.js → status-Bl-qVuGj.js} +1 -1
  11. package/dist/commands/checkout.js +1 -1
  12. package/dist/commands/claim.js +1 -1
  13. package/dist/commands/config.js +1 -1
  14. package/dist/commands/deploy.js +1 -1
  15. package/dist/commands/dev.js +1 -1
  16. package/dist/commands/env.js +1 -1
  17. package/dist/commands/functions_new.js +5 -2
  18. package/dist/commands/git.js +1 -1
  19. package/dist/commands/index.js +10 -10
  20. package/dist/commands/link.js +1 -1
  21. package/dist/commands/logs.js +1 -1
  22. package/dist/commands/status.js +1 -1
  23. package/dist/commands/subscribe.js +1 -1
  24. package/dist/init/auth.js +1 -1
  25. package/dist/init/deploy.js +1 -1
  26. package/dist/init/link.js +1 -1
  27. package/dist/init/run.js +3 -3
  28. package/dist/plugins/run.js +2 -1
  29. package/dist/skills/freshness.js +77 -22
  30. package/dist/skills/run.js +2 -1
  31. package/dist/utils/package_manager.js +56 -2
  32. package/package.json +8 -8
  33. package/dist/_chunks/{env-Bko0oXq9.js → env-DxcO3oJk.js} +1 -1
package/README.md CHANGED
@@ -1208,7 +1208,7 @@ neon inspect db stalled-queries --output json
1208
1208
 
1209
1209
  ## Logs (`logs`)
1210
1210
 
1211
- `neon logs` reads the log records the services on a branch emit — Neon Functions, object storage, and Postgres computes. **Logs are currently available only for projects in `aws-us-east-2`, `aws-us-east-1`, `aws-eu-central-1`, and `aws-ap-southeast-1`.**
1211
+ `neon logs` reads the log records the services on a branch emit — Neon Functions, object storage, Postgres computes, and Neon Auth. **Logs are currently available only for projects in `aws-us-east-2`, `aws-us-east-1`, `aws-eu-central-1`, and `aws-ap-southeast-1`.** `--source neon_auth` fails with a 404 until Neon Auth logs are enabled for the project, even when the other sources return logs.
1212
1212
 
1213
1213
  Every sub-command resolves the project through the standard chain (`--project-id`, then the `.neon` context file, then a single-project auto-detect), and takes `--branch <id|name>`, defaulting to the project's default branch. `logs query` searches the previous hour by default; `logs field-values` searches the previous six hours. The maximum time window is seven days.
1214
1214
 
@@ -11,9 +11,9 @@ import { looksLikeBranchId } from "../utils/formats.js";
11
11
  import { fillSingleProject, listAllProjectBranches } from "../utils/enrichers.js";
12
12
  import { buildCheckoutEvent, readGitContext } from "../utils/git.js";
13
13
  import { buildHookBranch, loadHookConfig, resolveHookEnv, runCheckoutAfterHook, runCheckoutBeforeHook, runCreateAfterHook, runCreateBeforeHook } from "../utils/hooks.js";
14
- import { n as autoPullEnvAfterPin } from "./env-Bko0oXq9.js";
15
- import { a as applyPolicyOnCreate, f as envFlag, l as createBranchFromPolicyOnCheckout } from "./config-DbUecUDS.js";
16
- import { i as handler$1 } from "./link-CdXU0E63.js";
14
+ import { n as autoPullEnvAfterPin } from "./env-DxcO3oJk.js";
15
+ import { a as applyPolicyOnCreate, f as envFlag, l as createBranchFromPolicyOnCheckout } from "./config-BfmZMmrF.js";
16
+ import { i as handler$1 } from "./link-C8AY8VnZ.js";
17
17
  import chalk from "chalk";
18
18
  import prompts from "prompts";
19
19
  // 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-Bko0oXq9.js";
15
+ import { c as pull } from "./env-DxcO3oJk.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-Bko0oXq9.js";
29
+ import { n as autoPullEnvAfterPin } from "./env-DxcO3oJk.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";
@@ -260,7 +260,10 @@ const resolveInitDataApiChoice = async (props) => {
260
260
  };
261
261
  /** The install command to print, prefixed with a `cd` when the project is not the cwd. */
262
262
  const installCommandFrom = (dir, pm, missing, options) => {
263
- const command = formatInstallCommand(pm, [...missing], options);
263
+ const command = formatInstallCommand(pm, [...missing], {
264
+ ...options,
265
+ dir
266
+ });
264
267
  const rel = relative(process.cwd(), dir);
265
268
  if (rel === "") return command;
266
269
  const target = rel.length <= dir.length ? rel : dir;
@@ -275,7 +278,7 @@ const ensureConfigPackages = async (cwd, props) => {
275
278
  return;
276
279
  }
277
280
  const pm = props.packageManager ?? resolvePackageManager(cwd);
278
- const args = installArgs(pm, missing);
281
+ const args = installArgs(pm, missing, { dir: cwd });
279
282
  const installHint = installCommandFrom(cwd, pm, missing);
280
283
  if (props.install === false) {
281
284
  if (!props.silent) log.info("Install the Neon config packages to use neon.ts: %s", installHint);
@@ -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-DbUecUDS.js";
3
+ import { f as envFlag, i as applyFlags, p as envPullFlag, r as applyCmd } from "./config-BfmZMmrF.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 { isClaimableEnvTarget } from "../claimable/state.js";
4
4
  import { getCliName } from "../utils/cli_name.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-CFBmcKyo.js";
10
+ import { f as envFlag } from "./config-BfmZMmrF.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-DbUecUDS.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-CdXU0E63.js";
9
- import { o as handler$1 } from "./checkout-Cham6pyw.js";
8
+ import { o as quoteFlagValue } from "./link-C8AY8VnZ.js";
9
+ import { o as handler$1 } from "./checkout-CtKSLNam.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-Bko0oXq9.js";
17
- import { h as initCmd } from "./config-DbUecUDS.js";
16
+ import { n as autoPullEnvAfterPin } from "./env-DxcO3oJk.js";
17
+ import { h as initCmd } from "./config-BfmZMmrF.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";
@@ -22,11 +22,12 @@ Logs are currently available only for projects in aws-us-east-2, aws-us-east-1,
22
22
  Use neon logs query for structured filters, human-readable tables and cursor pagination. Use neon logs loki for the Loki read API and its complete JSON response envelope.
23
23
 
24
24
  For more information, visit https://neon.com/docs/cli/logs`;
25
- const LOG_SOURCES = [
26
- "function",
27
- "storage",
28
- "pg_endpoint"
29
- ];
25
+ const LOG_SOURCES = Object.keys({
26
+ function: true,
27
+ storage: true,
28
+ pg_endpoint: true,
29
+ neon_auth: true
30
+ });
30
31
  const LOG_SORT_ORDERS = ["asc", "desc"];
31
32
  const LOG_SEVERITIES = [
32
33
  "trace",
@@ -210,9 +211,9 @@ const apiErrorReason = (data) => {
210
211
  };
211
212
  const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
212
213
  const isOptionalString = (value) => value === void 0 || typeof value === "string";
213
- const isProjectBranchLogRecord = (value) => isRecord(value) && typeof value.timestamp === "string" && !Number.isNaN(Date.parse(value.timestamp)) && typeof value.message === "string" && (value.source === void 0 || LOG_SOURCES.some((source) => source === value.source)) && isOptionalString(value.entity_id) && isOptionalString(value.service_name) && isOptionalString(value.scope_name) && isOptionalString(value.severity_text) && (value.severity_number === void 0 || typeof value.severity_number === "number" && Number.isInteger(value.severity_number) && value.severity_number >= 0 && value.severity_number <= 24) && isOptionalString(value.trace_id) && isOptionalString(value.span_id) && isRecord(value.attributes);
214
+ const isLogRecord = (value) => isRecord(value) && typeof value.timestamp === "string" && !Number.isNaN(Date.parse(value.timestamp)) && typeof value.message === "string" && isOptionalString(value.source) && isOptionalString(value.entity_id) && isOptionalString(value.service_name) && isOptionalString(value.scope_name) && isOptionalString(value.severity_text) && (value.severity_number === void 0 || typeof value.severity_number === "number" && Number.isInteger(value.severity_number) && value.severity_number >= 0 && value.severity_number <= 24) && isOptionalString(value.trace_id) && isOptionalString(value.span_id) && isRecord(value.attributes);
214
215
  function assertLogsQueryResponse(value) {
215
- if (!isRecord(value) || !Array.isArray(value.logs) || !value.logs.every(isProjectBranchLogRecord) || !isOptionalString(value.next_cursor) || typeof value.is_truncated !== "boolean") throw new Error("Neon returned an invalid logs query response; expected logs[] and is_truncated.");
216
+ if (!isRecord(value) || !Array.isArray(value.logs) || !value.logs.every(isLogRecord) || !isOptionalString(value.next_cursor) || typeof value.is_truncated !== "boolean") throw new Error("Neon returned an invalid logs query response; expected logs[] and is_truncated.");
216
217
  }
217
218
  function assertLogFieldsResponse(value) {
218
219
  if (!isRecord(value) || !Array.isArray(value.fields) || !value.fields.every((field) => typeof field === "string")) throw new Error("Neon returned an invalid log fields response; expected fields[].");
@@ -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-DbUecUDS.js";
3
+ import { y as status } from "./config-BfmZMmrF.js";
4
4
  // src/commands/status.ts
5
5
  var status_exports = /* @__PURE__ */ __exportAll({
6
6
  builder: () => builder,
@@ -1 +1 @@
1
- export { t as builder, r as command, i as describe, a as formatCheckoutPolicyFailure, o as handler } from "../_chunks/checkout-Cham6pyw.js";
1
+ export { t as builder, r as command, i as describe, a as formatCheckoutPolicyFailure, o as handler } from "../_chunks/checkout-CtKSLNam.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-Dz5-Q29W.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-BVEwQ65H.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-DbUecUDS.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-BfmZMmrF.js";
@@ -1 +1 @@
1
- export { t as builder, n as command, i as describe, a as handler } from "../_chunks/deploy-ByZ1OKKD.js";
1
+ export { t as builder, n as command, i as describe, a as handler } from "../_chunks/deploy-CYfb1R4z.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-DWbOS3QN.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-CM7e54xx.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-Bko0oXq9.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-DxcO3oJk.js";
@@ -9,7 +9,7 @@ import { writer } from "../writer.js";
9
9
  import { formatInitDone, printInitDone } from "../init/chrome.js";
10
10
  import { FUNCTION_SLUG_PATTERN, deriveFunctionSlug } from "../utils/function_slug.js";
11
11
  import { displayPath } from "./env_output.js";
12
- import { _ as missingDependencies, d as ensureConfigPackages, g as installCommandFrom } from "../_chunks/config-DbUecUDS.js";
12
+ import { _ as missingDependencies, d as ensureConfigPackages, g as installCommandFrom } from "../_chunks/config-BfmZMmrF.js";
13
13
  import { recommendedOperations } from "../functions/registry.js";
14
14
  import { collidingFiles, operationsFromFlags, planConfigRegistration, planEnvExample, planScaffold, writeScaffold } from "../functions/scaffold.js";
15
15
  import { describeRegistrySources, openRegistry } from "../functions/source.js";
@@ -144,7 +144,10 @@ const scaffoldFromTemplate = async (options) => {
144
144
  });
145
145
  let installed = false;
146
146
  if (install && dependencies.length > 0) {
147
- installed = (await (options.run ?? runCommandWithDetail)(pm, installArgs(pm, dependencies, { exact: true }), projectRoot)).ok;
147
+ installed = (await (options.run ?? runCommandWithDetail)(pm, installArgs(pm, dependencies, {
148
+ exact: true,
149
+ dir: projectRoot
150
+ }), projectRoot)).ok;
148
151
  if (!installed) log.warning("Could not install %s. Run by hand: `%s`", dependencies.join(", "), installHint(dependencies, true));
149
152
  }
150
153
  const cli = getCliName();
@@ -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-D-P2EIeK.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-Du3bBFei.js";
@@ -2,34 +2,34 @@ import { r as auth_exports } from "../_chunks/auth-CcIEvgb7.js";
2
2
  import { t as api_exports } from "../_chunks/api-1MKsfpY3.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-Bko0oXq9.js";
6
- import { c as config_exports } from "../_chunks/config-DbUecUDS.js";
5
+ import { o as env_exports } from "../_chunks/env-DxcO3oJk.js";
6
+ import { c as config_exports } from "../_chunks/config-BfmZMmrF.js";
7
7
  import { u as projects_exports } from "../_chunks/projects-a3X4OFEJ.js";
8
- import { a as link_exports } from "../_chunks/link-CdXU0E63.js";
8
+ import { a as link_exports } from "../_chunks/link-C8AY8VnZ.js";
9
9
  import { o as mcp_exports } from "../_chunks/mcp-SvqWzHnT.js";
10
10
  import { c as plugins_exports } from "../_chunks/plugins-BwUZQ6Ic.js";
11
11
  import { l as skills_exports } from "../_chunks/skills-Bv8oKKwE.js";
12
12
  import { t as bootstrap_exports } from "../_chunks/bootstrap-B73qVB39.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-Cham6pyw.js";
16
- import { o as claim_exports } from "../_chunks/claim-Dz5-Q29W.js";
15
+ import { n as checkout_exports } from "../_chunks/checkout-CtKSLNam.js";
16
+ import { o as claim_exports } from "../_chunks/claim-BVEwQ65H.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-BMBNmW0t.js";
19
19
  import { r as data_api_exports } from "../_chunks/data_api-CHDwvMTG.js";
20
20
  import { s as databases_exports } from "../_chunks/databases-B-qY303S.js";
21
- import { r as deploy_exports } from "../_chunks/deploy-ByZ1OKKD.js";
22
- import { s as dev_exports } from "../_chunks/dev-DWbOS3QN.js";
21
+ import { r as deploy_exports } from "../_chunks/deploy-CYfb1R4z.js";
22
+ import { s as dev_exports } from "../_chunks/dev-CM7e54xx.js";
23
23
  import { i as diff_exports } from "../_chunks/diff-dnxneH0u.js";
24
24
  import { c as docs_exports } from "../_chunks/docs-BpLiSTmm.js";
25
25
  import { o as feedback_exports } from "../_chunks/feedback-mQmdTRFn.js";
26
26
  import { o as functions_exports } from "../_chunks/functions-PHaU-kRb.js";
27
- import { o as git_exports } from "../_chunks/git-D-P2EIeK.js";
27
+ import { o as git_exports } from "../_chunks/git-Du3bBFei.js";
28
28
  import { o as incidents_exports } from "../_chunks/incidents-D6rDn1g2.js";
29
29
  import { a as init_exports } from "../_chunks/init-D2fClHtC.js";
30
30
  import { o as inspect_exports } from "../_chunks/inspect-yFAb61qo.js";
31
31
  import { a as ip_allow_exports } from "../_chunks/ip_allow-DBdxNEUa.js";
32
- import { l as logs_exports } from "../_chunks/logs-Zf8mcRVE.js";
32
+ import { l as logs_exports } from "../_chunks/logs-CcVpwdDs.js";
33
33
  import { a as neon_auth_exports } from "../_chunks/neon_auth-mfyjde2x.js";
34
34
  import { a as open_exports } from "../_chunks/open-T2nI89Oh.js";
35
35
  import { c as operations_exports } from "../_chunks/operations-D7qGkKo3.js";
@@ -41,7 +41,7 @@ import { o as profile_exports } from "../_chunks/profile-Cc25J9K4.js";
41
41
  import { s as realtime_exports } from "../_chunks/realtime-BwtzYf5a.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-DxNhjcco.js";
44
- import { a as status_exports } from "../_chunks/status-CUl0BqFj.js";
44
+ import { a as status_exports } from "../_chunks/status-Bl-qVuGj.js";
45
45
  import { d as triggers_exports } from "../_chunks/triggers-m3IBjiph.js";
46
46
  import { s as user_exports } from "../_chunks/user-D9mC430O.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-CdXU0E63.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-C8AY8VnZ.js";
@@ -1 +1 @@
1
- export { t as assertReachableLogsPage, n as buildLogsQueryBody, r as builder, i as command, a as describe, o as escapeLogSingleLine, s as escapeLogTableCell, c as handler } from "../_chunks/logs-Zf8mcRVE.js";
1
+ export { t as assertReachableLogsPage, n as buildLogsQueryBody, r as builder, i as command, a as describe, o as escapeLogSingleLine, s as escapeLogTableCell, c as handler } from "../_chunks/logs-CcVpwdDs.js";
@@ -1 +1 @@
1
- export { t as builder, n as command, r as describe, i as handler } from "../_chunks/status-CUl0BqFj.js";
1
+ export { t as builder, n as command, r as describe, i as handler } from "../_chunks/status-Bl-qVuGj.js";
@@ -1,6 +1,6 @@
1
1
  import { writer } from "../writer.js";
2
- import { o as resolveNeonEnvVars } from "../_chunks/env-CFBmcKyo.js";
3
2
  import { branchIdFromProps } from "../utils/enrichers.js";
3
+ import { o as resolveNeonEnvVars } from "../_chunks/env-CFBmcKyo.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", {
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-CcIEvgb7.js";
6
6
  import { recoverFrom401 } from "../auth_recovery.js";
7
- import { c as pull } from "../_chunks/env-Bko0oXq9.js";
7
+ import { c as pull } from "../_chunks/env-DxcO3oJk.js";
8
8
  import { c as setupNeonMcp } from "../_chunks/mcp-SvqWzHnT.js";
9
9
  // src/init/auth.ts
10
10
  const isUnauthorized = (error) => isNeonApiError(error) && error.status === 401;
@@ -4,7 +4,7 @@ import { c as ensureAuth } from "../_chunks/auth-CcIEvgb7.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-DbUecUDS.js";
7
+ import { r as applyCmd } from "../_chunks/config-BfmZMmrF.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-CcIEvgb7.js";
6
6
  import { recoverFrom401 } from "../auth_recovery.js";
7
- import { s as runLink } from "../_chunks/link-CdXU0E63.js";
7
+ import { s as runLink } from "../_chunks/link-C8AY8VnZ.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
@@ -14,8 +14,8 @@ import { getAgentDisplayName } from "../mcp/agents.js";
14
14
  import { missingPluginsCommands, pluginsCommandProblemText, pluginsInstallableAgents, unusablePluginsCommands } from "../plugins/targets.js";
15
15
  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";
16
16
  import { agentsRowValue, configRowValue, formatInitDone, headingForKind, printInitBanner, printInitDone, printInitProgress, projectRowValue, shouldPrintInitBanner } from "./chrome.js";
17
- import { h as initCmd, t as ConfigInstallFailed } from "../_chunks/config-DbUecUDS.js";
18
- import { o as quoteFlagValue, s as runLink } from "../_chunks/link-CdXU0E63.js";
17
+ import { h as initCmd, t as ConfigInstallFailed } from "../_chunks/config-BfmZMmrF.js";
18
+ import { o as quoteFlagValue, s as runLink } from "../_chunks/link-C8AY8VnZ.js";
19
19
  import { runAuthenticatedLink } from "./link.js";
20
20
  import { mcpInstallableAgents } from "../mcp/targets.js";
21
21
  import { skillsInstallableAgents } from "../skills/targets.js";
@@ -25,7 +25,7 @@ import { pullInitEnv, resolveInitConfigApi } from "./auth.js";
25
25
  import { InitCancelled, raceSigint, restoreCursor } from "./cancelled.js";
26
26
  import { pickAgentSetupInteractively, pickInitAgentsInteractively, pickInitConfigInteractively, pickInitMcpAuthInteractively, pickInitMcpConfigLocationInteractively, pickInitModeInteractively, pickInitPackageManagerInteractively, pickInitProjectSetupInteractively, pickInitServicesInteractively, pickInitSkillsInteractively } from "./wizard.js";
27
27
  import { runToolingSteps, toolingStepCommandText } from "./tooling.js";
28
- import { l as create } from "../_chunks/claim-Dz5-Q29W.js";
28
+ import { l as create } from "../_chunks/claim-BVEwQ65H.js";
29
29
  import { INIT_CONFIG_SERVICES_CONFLICT, configPlanFromResolution, initEnvPullAfterConfig, resolveInitConfigChoice } from "./choices.js";
30
30
  import { detectInitEnvironment } from "./detect.js";
31
31
  import { createInitFunnel, emitInitStart, finishInitFunnel, initStartProperties, recordInitError, recordInitExit } from "./funnel.js";
@@ -1,3 +1,4 @@
1
+ import { missingNpxMessage } from "../utils/package_manager.js";
1
2
  import { pluginsChildEnv } from "./child_env.js";
2
3
  import { spawnSync } from "node:child_process";
3
4
  import { execa } from "execa";
@@ -78,7 +79,7 @@ const runPluginsCli = async (options) => {
78
79
  stderr: result.stderr
79
80
  };
80
81
  } catch (error) {
81
- if (isCommandMissing(error)) throw new Error("neon plugins needs npx (Node.js) to run the plugins CLI. Install Node.js, then retry.");
82
+ if (isCommandMissing(error)) throw new Error(missingNpxMessage("neon plugins", "plugins CLI"));
82
83
  if (isExecaFailure(error)) throw new Error(pluginsCliFailureMessage({
83
84
  stderr: typeof error.stderr === "string" ? error.stderr : "",
84
85
  stdout: typeof error.stdout === "string" ? error.stdout : "",
@@ -37,7 +37,7 @@ const parseSkillsLock = (raw, scope) => {
37
37
  if (!isRecord(entry)) continue;
38
38
  const { source, skillPath, ref } = entry;
39
39
  const hash = entry[field];
40
- if (!SKILL_NAME.test(skill) || typeof source !== "string" || !NEON_SOURCES.has(source) || typeof skillPath !== "string" || typeof hash !== "string" || hash === "") continue;
40
+ if (!SKILL_NAME.test(skill) || typeof source !== "string" || !NEON_SOURCES.has(source) || typeof skillPath !== "string" || typeof hash !== "string" || hash === "" && scope === "global") continue;
41
41
  const folder = skillFolder(skillPath);
42
42
  if (folder === "") continue;
43
43
  const hashKind = scope === "global" && /^[0-9a-f]{40}$/i.test(hash) ? "tree" : "content";
@@ -88,19 +88,23 @@ const skillStatus = (skill, remote) => {
88
88
  if (remote?.tree === void 0) return void 0;
89
89
  return remote.tree === skill.hash ? "up to date" : "outdated";
90
90
  }
91
- if (remote?.content === void 0) return void 0;
92
- if (skill.hash === remote.content) return "up to date";
93
- if (remote.contentCrlf === void 0) return void 0;
94
- return skill.hash === remote.contentCrlf ? "up to date" : "outdated";
91
+ const digests = [
92
+ remote?.content,
93
+ remote?.contentCrlf,
94
+ remote?.contentV2
95
+ ];
96
+ if (digests.includes(skill.hash)) return "up to date";
97
+ return digests.includes(void 0) ? void 0 : "outdated";
95
98
  };
96
99
  const parseRemoteFolder = (value) => {
97
100
  if (!isRecord(value)) return void 0;
98
- const { tree, content, contentCrlf, missing, pending } = value;
99
- if (tree !== void 0 && typeof tree !== "string" || content !== void 0 && typeof content !== "string" || contentCrlf !== void 0 && typeof contentCrlf !== "string" || missing !== void 0 && missing !== true || pending !== void 0 && pending !== true) return;
101
+ const { tree, content, contentCrlf, contentV2, missing, pending } = value;
102
+ if (tree !== void 0 && typeof tree !== "string" || content !== void 0 && typeof content !== "string" || contentCrlf !== void 0 && typeof contentCrlf !== "string" || contentV2 !== void 0 && typeof contentV2 !== "string" || missing !== void 0 && missing !== true || pending !== void 0 && pending !== true) return;
100
103
  return {
101
104
  ...tree === void 0 ? {} : { tree },
102
105
  ...content === void 0 ? {} : { content },
103
106
  ...contentCrlf === void 0 ? {} : { contentCrlf },
107
+ ...contentV2 === void 0 ? {} : { contentV2 },
104
108
  ...missing === void 0 ? {} : { missing },
105
109
  ...pending === void 0 ? {} : { pending }
106
110
  };
@@ -133,8 +137,8 @@ const readSkillsCheckCache = (cachePath) => {
133
137
  };
134
138
  const skillsCheckCachePath = (configDir) => join(configDir, CACHE_FILE);
135
139
  /**
136
- * The digest the skills CLI writes to `computedHash`: every file's folder-relative path and
137
- * then its bytes, in `localeCompare` order of path.
140
+ * The digest skills CLI releases before 1.8 wrote to `computedHash` (lock version 1): every
141
+ * file's folder-relative path and then its bytes, in `localeCompare` order of path.
138
142
  */
139
143
  const skillContentHash = (files) => {
140
144
  const hash = createHash("sha256");
@@ -146,6 +150,52 @@ const skillContentHash = (files) => {
146
150
  };
147
151
  const LF = 10;
148
152
  const CR = 13;
153
+ /** skills 1.8 turns CRLF into LF in any file that has a CRLF and no NUL before hashing it. */
154
+ const normalizeLineEndings = (bytes) => {
155
+ if (bytes.includes(0)) return bytes;
156
+ const crlf = bytes.filter((byte, at) => byte === CR && bytes[at + 1] === LF).length;
157
+ if (crlf === 0) return bytes;
158
+ const out = new Uint8Array(bytes.length - crlf);
159
+ let at = 0;
160
+ for (let i = 0; i < bytes.length; i += 1) {
161
+ if (bytes[i] === CR && bytes[i + 1] === LF) continue;
162
+ out[at++] = bytes[i];
163
+ }
164
+ return out;
165
+ };
166
+ const V2_EXCLUDED_FILES = /* @__PURE__ */ new Set(["metadata.json"]);
167
+ const V2_EXCLUDED_DIRS = /* @__PURE__ */ new Set([
168
+ ".git",
169
+ "__pycache__",
170
+ "__pypackages__"
171
+ ]);
172
+ /** Whether the skills 1.8 digest leaves out the file at this folder-relative path. */
173
+ const excludedFromV2 = (path) => {
174
+ const parts = path.split(/[\\/]/).filter(Boolean);
175
+ return parts.some((part, at) => V2_EXCLUDED_FILES.has(part) || at < parts.length - 1 && V2_EXCLUDED_DIRS.has(part));
176
+ };
177
+ /**
178
+ * The digest skills 1.8 and later write to `computedHash` (lock version 2), and to the global
179
+ * lock when it has no tree SHA: per file in byte order of path, the path, its length, and its
180
+ * line-ending-normalized bytes. A symlink counts as a file holding its link text, as
181
+ * `skills add` records it; `skills update` follows the link instead, so a skill folder with a
182
+ * symlink in it would not match after an update.
183
+ */
184
+ const skillContentHashV2 = (files) => {
185
+ const entries = files.filter((file) => !excludedFromV2(file.path)).map((file) => ({
186
+ path: Buffer.from(file.path.replace(/\\/g, "/"), "utf8"),
187
+ bytes: normalizeLineEndings(file.bytes)
188
+ })).sort((a, b) => Buffer.compare(a.path, b.path));
189
+ const hash = createHash("sha256");
190
+ for (const { path, bytes } of entries) {
191
+ hash.update(path);
192
+ hash.update("\0");
193
+ hash.update(String(bytes.length));
194
+ hash.update("\0");
195
+ hash.update(bytes);
196
+ }
197
+ return hash.digest("hex");
198
+ };
149
199
  /** Control bytes Git counts as printable text: backspace, tab, form feed, escape. */
150
200
  const PRINTABLE_CONTROLS = /* @__PURE__ */ new Set([
151
201
  8,
@@ -199,31 +249,35 @@ const fetchTree = async (source, env) => {
199
249
  if (body.truncated === true) throw new Error(`GitHub truncated the file tree of ${source}.`);
200
250
  return body.tree.filter(isTreeEntry);
201
251
  };
202
- /** The files the skills CLI hashes: regular files, outside `.git` and `node_modules`. */
203
- const folderFiles = (tree, folder) => tree.filter((entry) => {
204
- if (entry.type !== "blob" || entry.mode === "120000") return false;
205
- if (!entry.path.startsWith(`${folder}/`)) return false;
206
- const dirs = entry.path.slice(folder.length + 1).split("/").slice(0, -1);
252
+ const SYMLINK_MODE = "120000";
253
+ /** The files the version 1 digest covers: regular files, outside `.git` and `node_modules`. */
254
+ const inV1 = (entry, path) => {
255
+ if (entry.mode === SYMLINK_MODE) return false;
256
+ const dirs = path.split("/").slice(0, -1);
207
257
  return !dirs.includes(".git") && !dirs.includes("node_modules");
208
- });
258
+ };
209
259
  const fetchContentHashes = async (source, folder, tree) => {
210
- const files = await Promise.all(folderFiles(tree, folder).map(async (entry) => {
260
+ const blobs = tree.filter((entry) => entry.type === "blob" && entry.path.startsWith(`${folder}/`));
261
+ const files = await Promise.all(blobs.map(async (entry) => {
211
262
  const path = entry.path.split("/").map(encodeURIComponent).join("/");
212
263
  const response = await fetch(`https://raw.githubusercontent.com/${source}/HEAD/${path}`, { signal: AbortSignal.timeout(FETCH_TIMEOUT_MS) });
213
264
  if (!response.ok) throw new Error(`GitHub returned ${response.status} for ${entry.path} in ${source}.`);
214
265
  const bytes = new Uint8Array(await response.arrayBuffer());
215
266
  if (gitBlobSha(bytes) !== entry.sha) throw new Error(`${source} changed during the check. Retry.`);
216
267
  return {
268
+ entry,
217
269
  path: entry.path.slice(folder.length + 1),
218
270
  bytes
219
271
  };
220
272
  }));
273
+ const v1 = files.filter((file) => inV1(file.entry, file.path));
221
274
  return {
222
- content: skillContentHash(files),
223
- contentCrlf: skillContentHash(files.map((file) => ({
275
+ content: skillContentHash(v1),
276
+ contentCrlf: skillContentHash(v1.map((file) => ({
224
277
  ...file,
225
278
  bytes: autocrlfCheckout(file.bytes)
226
- })))
279
+ }))),
280
+ contentV2: skillContentHashV2(files)
227
281
  };
228
282
  };
229
283
  /**
@@ -276,9 +330,10 @@ const refreshSkillsCheckCache = async ({ cachePath, skills, env = process.env, n
276
330
  continue;
277
331
  }
278
332
  const prior = previous[key];
279
- let hashes = prior?.tree === node.sha && prior.content !== void 0 && prior.contentCrlf !== void 0 ? {
333
+ let hashes = prior?.tree === node.sha && prior.content !== void 0 && prior.contentCrlf !== void 0 && prior.contentV2 !== void 0 ? {
280
334
  content: prior.content,
281
- contentCrlf: prior.contentCrlf
335
+ contentCrlf: prior.contentCrlf,
336
+ contentV2: prior.contentV2
282
337
  } : void 0;
283
338
  if (request.content && hashes === void 0) hashes = await fetchContentHashes(source, request.folder, tree);
284
339
  folders[key] = {
@@ -440,4 +495,4 @@ const notifyIfSkillsOutdated = ({ configDir, cwd, now = Date.now() }) => {
440
495
  folders
441
496
  }, "skills check cache")) spawnSkillsCheckWorker(cachePath, cwd);
442
497
  };
443
- export { autocrlfCheckout, formatSkillsNotice, globalLockPath, lockPath, neonSkillsUpdateCommand, notifyIfSkillsOutdated, parseSkillsCheckCache, parseSkillsLock, planSkillsCheck, projectLockPath, readLockedSkills, readSkillsTelemetry, refreshSkillsCheckCache, scopeLabel, skillContentHash, skillStatus, skillsCheckCachePath, skillsStatusRows, skillsTelemetry };
498
+ export { autocrlfCheckout, formatSkillsNotice, globalLockPath, lockPath, neonSkillsUpdateCommand, notifyIfSkillsOutdated, parseSkillsCheckCache, parseSkillsLock, planSkillsCheck, projectLockPath, readLockedSkills, readSkillsTelemetry, refreshSkillsCheckCache, scopeLabel, skillContentHash, skillContentHashV2, skillStatus, skillsCheckCachePath, skillsStatusRows, skillsTelemetry };
@@ -1,4 +1,5 @@
1
1
  import pkg_default from "../pkg.js";
2
+ import { missingNpxMessage } from "../utils/package_manager.js";
2
3
  import { execa } from "execa";
3
4
  // src/skills/run.ts
4
5
  const TELEMETRY_BLOCKERS = ["DISABLE_TELEMETRY", "DO_NOT_TRACK"];
@@ -105,7 +106,7 @@ const runSkillsCli = async (options) => {
105
106
  stderr: result.stderr
106
107
  };
107
108
  } catch (error) {
108
- if (isCommandMissing(error)) throw new Error("neon skills needs npx (Node.js) to run the skills CLI. Install Node.js, then retry.");
109
+ if (isCommandMissing(error)) throw new Error(missingNpxMessage("neon skills", "skills CLI"));
109
110
  if (isExecaFailure(error)) {
110
111
  const childOut = [error.stderr, error.stdout].filter((part) => typeof part === "string" && part.length > 0).join("\n");
111
112
  const detail = childOut.length > 0 ? childOut : error.shortMessage;
@@ -1,5 +1,5 @@
1
1
  import { log } from "../log.js";
2
- import { existsSync, realpathSync } from "node:fs";
2
+ import { existsSync, readFileSync, realpathSync } from "node:fs";
3
3
  import { dirname, join } from "node:path";
4
4
  import { stripVTControlCharacters } from "node:util";
5
5
  import { spawn, spawnSync } from "node:child_process";
@@ -178,6 +178,41 @@ const recommendedCliUpgradeCommand = (modulePath) => {
178
178
  const method = detectCliInstallMethod(modulePath);
179
179
  return method === void 0 ? void 0 : CLI_UPGRADE_COMMANDS[method];
180
180
  };
181
+ const isRecord = (value) => typeof value === "object" && value !== null;
182
+ const readManifest = (dir) => {
183
+ try {
184
+ const manifest = JSON.parse(readFileSync(join(dir, "package.json"), "utf8"));
185
+ return isRecord(manifest) ? manifest : void 0;
186
+ } catch {
187
+ return;
188
+ }
189
+ };
190
+ /**
191
+ * Whether the Yarn workspace root at `dir` uses Yarn Classic, read from its
192
+ * `packageManager` pin or its `yarn.lock` format. Running `yarn --version`
193
+ * would answer too, but in a project directory that executes whatever its
194
+ * `.yarnrc` `yarn-path` names, even on the print-only `--no-install` path.
195
+ */
196
+ const usesYarnClassic = (dir, manifest) => {
197
+ const pinned = manifest.packageManager;
198
+ if (typeof pinned === "string" && pinned.startsWith("yarn@")) return pinned.startsWith("yarn@1.");
199
+ try {
200
+ return readFileSync(join(dir, "yarn.lock"), "utf8").includes("# yarn lockfile v1");
201
+ } catch {
202
+ return false;
203
+ }
204
+ };
205
+ /**
206
+ * The flag that lets `pm` add to the workspace root at `dir`, or nothing when
207
+ * `dir` is not one. pnpm 9 and early pnpm 10 (ERR_PNPM_ADDING_TO_ROOT) and
208
+ * Yarn Classic refuse to add there without it; Yarn Berry has no such flag.
209
+ */
210
+ const workspaceRootFlag = (pm, dir) => {
211
+ if (pm === "pnpm") return existsSync(join(dir, "pnpm-workspace.yaml")) ? ["-w"] : [];
212
+ if (pm !== "yarn") return [];
213
+ const manifest = readManifest(dir);
214
+ return manifest?.workspaces !== void 0 && usesYarnClassic(dir, manifest) ? ["-W"] : [];
215
+ };
181
216
  /**
182
217
  * The argv for an install with `pm`: every dependency in the manifest when
183
218
  * `packages` is empty, otherwise those packages added to it. npm spells the add
@@ -189,6 +224,7 @@ const recommendedCliUpgradeCommand = (modulePath) => {
189
224
  */
190
225
  const installArgs = (pm, packages, options) => packages?.length ? [
191
226
  pm === "npm" ? "install" : "add",
227
+ ...options?.dir === void 0 ? [] : workspaceRootFlag(pm, options.dir),
192
228
  ...options?.dev ? ["-D"] : [],
193
229
  ...options?.exact ? ["-E"] : [],
194
230
  ...packages
@@ -236,6 +272,10 @@ const globalInstallCommand = (pm, pkg) => {
236
272
  pkg
237
273
  ]
238
274
  };
275
+ return globalInstallWithoutYarn(pm, pkg);
276
+ };
277
+ /** {@link globalInstallCommand} without Yarn Classic, so it never runs yarn. */
278
+ const globalInstallWithoutYarn = (pm, pkg) => {
239
279
  const installed = installedPackageManagers();
240
280
  const usable = pm !== "yarn" && installed.includes(pm) ? pm : installed.find((candidate) => GLOBAL_CAPABLE.includes(candidate));
241
281
  if (!usable) return void 0;
@@ -256,6 +296,20 @@ const globalInstallCommand = (pm, pkg) => {
256
296
  };
257
297
  };
258
298
  /**
299
+ * The error for `npx` missing from PATH while `command` needs it to run `tool`.
300
+ *
301
+ * Node.js is running this CLI, so what is missing is npm, which provides npx.
302
+ * Node.js managed by pnpm, or packaged by a Linux distribution, can come
303
+ * without it. Keep "needs npx (Node.js)": `errors.ts` classifies it as
304
+ * NPX_NOT_FOUND, and the skills and plugins commands print it without a retry
305
+ * line. Never asks yarn for its version: in a project directory that runs the
306
+ * project's `.yarnrc` `yarn-path`.
307
+ */
308
+ const missingNpxMessage = (command, tool) => {
309
+ const install = globalInstallWithoutYarn(resolveInvokingPackageManager(), "npm");
310
+ return `${command} needs npx (Node.js) to run the ${tool}, but npx is not on PATH. ${install ? `Install npm, which provides npx, with \`${install.command} ${install.args.join(" ")}\`` : "Install npm, which provides npx (it comes with Node.js from nodejs.org)"}, then retry.`;
311
+ };
312
+ /**
259
313
  * A shell-ready line that runs `binary` out of the project's own
260
314
  * `node_modules/.bin`.
261
315
  *
@@ -463,4 +517,4 @@ const runCommandWithDetail = (cmd, args, cwd, env) => new Promise((resolvePromis
463
517
  });
464
518
  });
465
519
  });
466
- export { DO_NOT_SUBSTITUTE_HINT, MISSING_BINARY_HINT, commandEnv, detectCliInstallMethod, detectInvokingPackageManager, detectProjectPackageManager, formatExecCommand, formatInstallCommand, globalInstallCommand, inferPackageManager, installArgs, installFailureDetail, installedPackageManagers, recommendedCliUpgradeCommand, resolveInvokingPackageManager, resolvePackageManager, runCommand, runCommandWithDetail };
520
+ export { DO_NOT_SUBSTITUTE_HINT, MISSING_BINARY_HINT, commandEnv, detectCliInstallMethod, detectInvokingPackageManager, detectProjectPackageManager, formatExecCommand, formatInstallCommand, globalInstallCommand, inferPackageManager, installArgs, installFailureDetail, installedPackageManagers, missingNpxMessage, recommendedCliUpgradeCommand, resolveInvokingPackageManager, resolvePackageManager, runCommand, runCommandWithDetail };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neon",
3
- "version": "9.5.1",
3
+ "version": "9.6.0",
4
4
  "description": "CLI tool for Neon, the cloud backend primitives built around Lakebase Postgres",
5
5
  "keywords": [
6
6
  "neon",
@@ -73,10 +73,10 @@
73
73
  "yaml": "^2.9.0",
74
74
  "yargs": "17.7.2",
75
75
  "yoctocolors": "^2.1.2",
76
+ "@neon/config-runtime": "1.12.5",
76
77
  "@neon/realtime": "0.2.1",
77
- "@neon/config": "1.14.1",
78
- "@neon/sdk": "7.13.1",
79
- "@neon/config-runtime": "1.12.4"
78
+ "@neon/sdk": "7.14.0",
79
+ "@neon/config": "1.14.2"
80
80
  },
81
81
  "optionalDependencies": {
82
82
  "@napi-rs/keyring": "1.3.0",
@@ -113,10 +113,10 @@
113
113
  "typescript": "^5.9.0",
114
114
  "vitest": "^3.0.9",
115
115
  "@neon-internals/cli-core": "0.0.0",
116
- "@neon-internals/env-core": "0.0.52",
117
- "@neon/env": "2.1.4",
118
- "@neon/functions": "0.11.0",
119
- "@neon/e2e-harness": "0.0.0"
116
+ "@neon-internals/env-core": "0.0.53",
117
+ "@neon/e2e-harness": "0.0.0",
118
+ "@neon/env": "2.1.5",
119
+ "@neon/functions": "0.11.0"
120
120
  },
121
121
  "publishConfig": {
122
122
  "access": "public",
@@ -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-CFBmcKyo.js";
11
10
  import { fillSingleProject, resolveBranchRef } from "../utils/enrichers.js";
11
+ import { i as dropClaimableUnsupported, o as resolveNeonEnvVars } from "./env-CFBmcKyo.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";