neon 8.14.0 → 8.15.1

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 (47) hide show
  1. package/README.md +4 -2
  2. package/dist/_chunks/{auth-DPSDYYtG.js → auth-rup6nemJ.js} +38 -1
  3. package/dist/_chunks/{checkout-C6VMMgY6.js → checkout-BpOcFaAi.js} +2 -2
  4. package/dist/_chunks/{config-7SIE_C5O.js → config-BjCm5cfr.js} +56 -4
  5. package/dist/_chunks/{deploy-DmKZcAnR.js → deploy-DmEEhux0.js} +1 -1
  6. package/dist/_chunks/{dev-Dv0HKcFF.js → dev-DlUJFzRs.js} +1 -1
  7. package/dist/_chunks/{docs-CClmgj_Z.js → docs-BpLiSTmm.js} +1 -1
  8. package/dist/_chunks/{git-Dxw9w9dK.js → git-j6xSVo3e.js} +2 -2
  9. package/dist/_chunks/{init-BOOGv-mD.js → init-CcVJb492.js} +1 -1
  10. package/dist/_chunks/{link-CcwTXRny.js → link-nAiuWKfg.js} +1 -1
  11. package/dist/_chunks/{plugins-CKOcBuuP.js → plugins-B2Gym8Lw.js} +2 -2
  12. package/dist/_chunks/{profile-H0d7gFrX.js → profile-BAlM625e.js} +1 -1
  13. package/dist/_chunks/{status-DS_yUXFo.js → status-BC4XXuuE.js} +1 -1
  14. package/dist/analytics.js +4 -2
  15. package/dist/api.js +2 -2
  16. package/dist/auth_recovery.js +1 -1
  17. package/dist/commands/auth.js +1 -1
  18. package/dist/commands/checkout.js +1 -1
  19. package/dist/commands/config.js +1 -1
  20. package/dist/commands/deploy.js +1 -1
  21. package/dist/commands/dev.js +1 -1
  22. package/dist/commands/docs.js +1 -1
  23. package/dist/commands/functions_new.js +3 -4
  24. package/dist/commands/git.js +1 -1
  25. package/dist/commands/index.js +12 -12
  26. package/dist/commands/init.js +1 -1
  27. package/dist/commands/link.js +1 -1
  28. package/dist/commands/plugins.js +1 -1
  29. package/dist/commands/profile.js +1 -1
  30. package/dist/commands/status.js +1 -1
  31. package/dist/config_format.js +9 -1
  32. package/dist/config_template.js +36 -9
  33. package/dist/env.js +19 -4
  34. package/dist/index.js +1 -1
  35. package/dist/init/auth.js +23 -2
  36. package/dist/init/copy.js +3 -2
  37. package/dist/init/link.js +2 -2
  38. package/dist/init/run.js +49 -18
  39. package/dist/init/tooling.js +1 -1
  40. package/dist/init/wizard.js +5 -5
  41. package/dist/plugins/child_env.js +10 -0
  42. package/dist/plugins/plan.js +14 -14
  43. package/dist/plugins/run.js +2 -8
  44. package/dist/plugins/targets.js +129 -11
  45. package/dist/update_notifier.js +7 -4
  46. package/dist/utils/service_picker.js +1 -1
  47. package/package.json +6 -6
@@ -141,10 +141,11 @@ const duplicateInstallNotice = () => {
141
141
  }
142
142
  };
143
143
  const isPackagedExecutable = () => "pkg" in process;
144
- const shouldRunUpdateNotifier = ({ commandPath, currentBranch, disabled, isCi: runningInCi, isPackaged, output, stderrIsTty, stdoutIsTty }) => !runningInCi && !disabled && !isPackaged && output === "table" && stdoutIsTty && stderrIsTty && commandPath.length > 0 && commandPath[0] !== "completion" && !isCurrentBranchProbe({
144
+ const commandSucceeded = () => (process.exitCode ?? 0) === 0;
145
+ const shouldRunUpdateNotifier = ({ commandPath, currentBranch, disabled, isCi: runningInCi, isPackaged, output, stderrIsTty, stdoutIsTty, succeeded }) => !runningInCi && !disabled && !isPackaged && output === "table" && stdoutIsTty && stderrIsTty && commandPath.length > 0 && commandPath[0] !== "completion" && !isCurrentBranchProbe({
145
146
  commandPath,
146
147
  currentBranch
147
- });
148
+ }) && succeeded;
148
149
  /**
149
150
  * The skills notice drops the terminal checks: coding agents run the CLI without a TTY,
150
151
  * and they are the ones that act on it. `neon skills` itself reports skill state.
@@ -157,7 +158,8 @@ const shouldRunSkillsNotifier = ({ commandPath, currentBranch, output }) => comm
157
158
  isPackaged: isPackagedExecutable(),
158
159
  output,
159
160
  stderrIsTty: true,
160
- stdoutIsTty: true
161
+ stdoutIsTty: true,
162
+ succeeded: commandSucceeded()
161
163
  });
162
164
  const notifyIfUpdateAvailable = ({ commandPath, configDir, currentBranch, currentVersion, output }) => {
163
165
  if (!shouldRunUpdateNotifier({
@@ -168,7 +170,8 @@ const notifyIfUpdateAvailable = ({ commandPath, configDir, currentBranch, curren
168
170
  isPackaged: isPackagedExecutable(),
169
171
  output,
170
172
  stderrIsTty: process.stderr.isTTY === true,
171
- stdoutIsTty: process.stdout.isTTY === true
173
+ stdoutIsTty: process.stdout.isTTY === true,
174
+ succeeded: commandSucceeded()
172
175
  })) return;
173
176
  const now = Date.now();
174
177
  if (process.platform !== "win32") {
@@ -36,7 +36,7 @@ const CHOICES = [
36
36
  {
37
37
  value: "data-api",
38
38
  title: "Data API",
39
- description: "PostgREST-compatible HTTP API. Also declares Auth; the default provider needs it."
39
+ description: "PostgREST-compatible HTTP API. Also declares Auth, which the default provider needs, unless the linked branch's Data API already uses an external identity provider."
40
40
  },
41
41
  {
42
42
  value: "functions",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neon",
3
- "version": "8.14.0",
3
+ "version": "8.15.1",
4
4
  "description": "CLI tool for Neon, the cloud backend primitives built around Lakebase Postgres",
5
5
  "keywords": [
6
6
  "neon",
@@ -72,10 +72,10 @@
72
72
  "yaml": "^2.9.0",
73
73
  "yargs": "17.7.2",
74
74
  "yoctocolors": "^2.1.2",
75
- "@neon/config": "1.9.6",
75
+ "@neon/config": "1.10.0",
76
76
  "@neon/realtime": "0.1.2",
77
- "@neon/config-runtime": "1.10.5",
78
- "@neon/sdk": "7.6.1"
77
+ "@neon/sdk": "7.7.0",
78
+ "@neon/config-runtime": "1.11.0"
79
79
  },
80
80
  "optionalDependencies": {
81
81
  "@napi-rs/keyring": "1.3.0",
@@ -111,10 +111,10 @@
111
111
  "tsx": "4.22.3",
112
112
  "typescript": "^5.9.0",
113
113
  "vitest": "^3.0.9",
114
- "@neon-internals/env-core": "0.0.37",
115
114
  "@neon-internals/cli-core": "0.0.0",
115
+ "@neon-internals/env-core": "0.0.38",
116
+ "@neon/env": "1.6.8",
116
117
  "@neon/e2e-harness": "0.0.0",
117
- "@neon/env": "1.6.7",
118
118
  "@neon/functions": "0.11.0"
119
119
  },
120
120
  "publishConfig": {