neon 9.3.1 → 9.3.2

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.
@@ -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-DxcO3oJk.js";
15
- import { a as applyPolicyOnCreate, f as envFlag, l as createBranchFromPolicyOnCheckout } from "./config-8PrVJ-gQ.js";
16
- import { i as handler$1 } from "./link-Ob3NoNIS.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";
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-DxcO3oJk.js";
15
+ import { c as pull } from "./env-Bko0oXq9.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-DxcO3oJk.js";
29
+ import { n as autoPullEnvAfterPin } from "./env-Bko0oXq9.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";
@@ -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-8PrVJ-gQ.js";
3
+ import { f as envFlag, i as applyFlags, p as envPullFlag, r as applyCmd } from "./config-DbUecUDS.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";
9
7
  import { a as resolveDevEnv } from "./env-CFBmcKyo.js";
10
- import { f as envFlag } from "./config-8PrVJ-gQ.js";
11
8
  import { findConfigFunctionBySource, resolveFunctionsFromConfig } from "../dev/functions.js";
12
9
  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-Ob3NoNIS.js";
9
- import { o as handler$1 } from "./checkout-Bpomfu6c.js";
8
+ import { o as quoteFlagValue } from "./link-CdXU0E63.js";
9
+ import { o as handler$1 } from "./checkout-Cham6pyw.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-DxcO3oJk.js";
17
- import { h as initCmd } from "./config-8PrVJ-gQ.js";
16
+ import { n as autoPullEnvAfterPin } from "./env-Bko0oXq9.js";
17
+ import { h as initCmd } from "./config-DbUecUDS.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-8PrVJ-gQ.js";
3
+ import { y as status } from "./config-DbUecUDS.js";
4
4
  // src/commands/status.ts
5
5
  var status_exports = /* @__PURE__ */ __exportAll({
6
6
  builder: () => builder,
@@ -151,7 +151,7 @@ const builder = (argv) => argv.usage("$0 triggers <sub-command> [options]").opti
151
151
  describe: "Branch ID or name",
152
152
  type: "string"
153
153
  }
154
- }).middleware(fillSingleProject).command("list", "List triggers on the branch", (yargs) => yargs, (args) => list(args)).command("get <id>", "Show a trigger", (yargs) => yargs.positional("id", {
154
+ }).middleware(fillSingleProject).command("list", "List triggers on the branch", (yargs) => yargs, (args) => list(args)).command("get <trigger-id>", "Show a trigger", (yargs) => yargs.positional("trigger-id", {
155
155
  describe: "Trigger ID",
156
156
  type: "string"
157
157
  }), (args) => get(args)).command("create", "Create a trigger that invokes a function on a cron schedule or when an object is created", (yargs) => yargs.options({
@@ -185,7 +185,7 @@ const builder = (argv) => argv.usage("$0 triggers <sub-command> [options]").opti
185
185
  describe: "Whether the trigger runs (default true)",
186
186
  type: "boolean"
187
187
  }
188
- }), (args) => create(args)).command("update <id>", "Update a trigger", (yargs) => yargs.positional("id", {
188
+ }), (args) => create(args)).command("update <trigger-id>", "Update a trigger", (yargs) => yargs.positional("trigger-id", {
189
189
  describe: "Trigger ID",
190
190
  type: "string"
191
191
  }).options({
@@ -217,13 +217,13 @@ const builder = (argv) => argv.usage("$0 triggers <sub-command> [options]").opti
217
217
  describe: "Whether the trigger runs",
218
218
  type: "boolean"
219
219
  }
220
- }), (args) => update(args)).command("enable <id>", "Enable a trigger", (yargs) => yargs.positional("id", {
220
+ }), (args) => update(args)).command("enable <trigger-id>", "Enable a trigger", (yargs) => yargs.positional("trigger-id", {
221
221
  describe: "Trigger ID",
222
222
  type: "string"
223
- }), (args) => setEnabled(args, true)).command("disable <id>", "Disable a trigger without deleting it", (yargs) => yargs.positional("id", {
223
+ }), (args) => setEnabled(args, true)).command("disable <trigger-id>", "Disable a trigger without deleting it", (yargs) => yargs.positional("trigger-id", {
224
224
  describe: "Trigger ID",
225
225
  type: "string"
226
- }), (args) => setEnabled(args, false)).command("delete <id>", "Delete a trigger", (yargs) => yargs.positional("id", {
226
+ }), (args) => setEnabled(args, false)).command("delete <trigger-id>", "Delete a trigger", (yargs) => yargs.positional("trigger-id", {
227
227
  describe: "Trigger ID",
228
228
  type: "string"
229
229
  }), (args) => deleteTrigger(args));
@@ -236,8 +236,9 @@ const list = async (props) => {
236
236
  writeTrigger(props, data.triggers, { emptyMessage: "No triggers found on this branch." });
237
237
  };
238
238
  const get = async (props) => {
239
+ const triggerId = props["trigger-id"];
239
240
  const branchId = await branchIdFromProps(props);
240
- const { data } = await withTriggerNotFound(props.id, branchId, () => props.apiClient.getProjectBranchTrigger(props.projectId, branchId, props.id));
241
+ const { data } = await withTriggerNotFound(triggerId, branchId, () => props.apiClient.getProjectBranchTrigger(props.projectId, branchId, triggerId));
241
242
  writeTrigger(props, data.trigger);
242
243
  };
243
244
  const create = async (props) => {
@@ -277,25 +278,28 @@ function createBody(props) {
277
278
  throw new Error("Pass --cron for a schedule trigger, or --bucket for a storage_object_created trigger.");
278
279
  }
279
280
  const update = async (props) => {
281
+ const triggerId = props["trigger-id"];
280
282
  const branchId = await branchIdFromProps(props);
281
- const { data: existing } = await withTriggerNotFound(props.id, branchId, () => props.apiClient.getProjectBranchTrigger(props.projectId, branchId, props.id));
283
+ const { data: existing } = await withTriggerNotFound(triggerId, branchId, () => props.apiClient.getProjectBranchTrigger(props.projectId, branchId, triggerId));
282
284
  const trigger = existing.trigger;
283
- if (props.cron !== void 0 && trigger.type !== "schedule") throw new Error(`Trigger ${props.id} is type ${trigger.type}; --cron applies to schedule triggers.`);
284
- if ((props.bucket !== void 0 || props.prefix !== void 0) && trigger.type !== "storage_object_created") throw new Error(`Trigger ${props.id} is type ${trigger.type}; --bucket and --prefix apply to storage_object_created triggers.`);
285
+ if (props.cron !== void 0 && trigger.type !== "schedule") throw new Error(`Trigger ${triggerId} is type ${trigger.type}; --cron applies to schedule triggers.`);
286
+ if ((props.bucket !== void 0 || props.prefix !== void 0) && trigger.type !== "storage_object_created") throw new Error(`Trigger ${triggerId} is type ${trigger.type}; --bucket and --prefix apply to storage_object_created triggers.`);
285
287
  const body = updatePatch(trigger, props);
286
288
  if (Object.keys(body).filter((k) => k !== "type").length === 0) throw new Error(noFieldsToUpdateMessage(trigger.type));
287
- const { data } = await withTriggerNotFound(props.id, branchId, () => retryOnLock(() => props.apiClient.updateProjectBranchTrigger(props.projectId, branchId, props.id, body)));
289
+ const { data } = await withTriggerNotFound(triggerId, branchId, () => retryOnLock(() => props.apiClient.updateProjectBranchTrigger(props.projectId, branchId, triggerId, body)));
288
290
  writeTrigger(props, data.trigger);
289
291
  };
290
292
  const setEnabled = async (props, enabled) => {
293
+ const triggerId = props["trigger-id"];
291
294
  const branchId = await branchIdFromProps(props);
292
- const { data: existing } = await withTriggerNotFound(props.id, branchId, () => props.apiClient.getProjectBranchTrigger(props.projectId, branchId, props.id));
293
- const { data } = await withTriggerNotFound(props.id, branchId, () => retryOnLock(() => props.apiClient.updateProjectBranchTrigger(props.projectId, branchId, props.id, enabledPatch(existing.trigger.type, enabled))));
295
+ const { data: existing } = await withTriggerNotFound(triggerId, branchId, () => props.apiClient.getProjectBranchTrigger(props.projectId, branchId, triggerId));
296
+ const { data } = await withTriggerNotFound(triggerId, branchId, () => retryOnLock(() => props.apiClient.updateProjectBranchTrigger(props.projectId, branchId, triggerId, enabledPatch(existing.trigger.type, enabled))));
294
297
  writeTrigger(props, data.trigger);
295
298
  };
296
299
  const deleteTrigger = async (props) => {
300
+ const triggerId = props["trigger-id"];
297
301
  const branchId = await branchIdFromProps(props);
298
- await withTriggerNotFound(props.id, branchId, () => retryOnLock(() => props.apiClient.deleteProjectBranchTrigger(props.projectId, branchId, props.id)));
299
- log.info(`Trigger ${props.id} deleted`);
302
+ await withTriggerNotFound(triggerId, branchId, () => retryOnLock(() => props.apiClient.deleteProjectBranchTrigger(props.projectId, branchId, triggerId)));
303
+ log.info(`Trigger ${triggerId} deleted`);
300
304
  };
301
305
  export { create as a, get as c, triggers_exports as d, update as f, command as i, handler as l, aliases as n, deleteTrigger as o, builder as r, describe as s, TRIGGER_FIELDS as t, list as u };
@@ -1 +1 @@
1
- export { t as builder, r as command, i as describe, a as formatCheckoutPolicyFailure, o as handler } from "../_chunks/checkout-Bpomfu6c.js";
1
+ export { t as builder, r as command, i as describe, a as formatCheckoutPolicyFailure, o as handler } from "../_chunks/checkout-Cham6pyw.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-BVEwQ65H.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-Dz5-Q29W.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-8PrVJ-gQ.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-DbUecUDS.js";
@@ -1 +1 @@
1
- export { t as builder, n as command, i as describe, a as handler } from "../_chunks/deploy-CWwg_lkJ.js";
1
+ export { t as builder, n as command, i as describe, a as handler } from "../_chunks/deploy-ByZ1OKKD.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-C6LAcA3H.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-DWbOS3QN.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-DxcO3oJk.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-Bko0oXq9.js";
@@ -8,7 +8,7 @@ import { writer } from "../writer.js";
8
8
  import { formatInitDone, printInitDone } from "../init/chrome.js";
9
9
  import { FUNCTION_SLUG_PATTERN, deriveFunctionSlug } from "../utils/function_slug.js";
10
10
  import { displayPath } from "./env_output.js";
11
- import { _ as missingDependencies, d as ensureConfigPackages, g as installCommandFrom } from "../_chunks/config-8PrVJ-gQ.js";
11
+ import { _ as missingDependencies, d as ensureConfigPackages, g as installCommandFrom } from "../_chunks/config-DbUecUDS.js";
12
12
  import { recommendedOperations } from "../functions/registry.js";
13
13
  import { collidingFiles, operationsFromFlags, planConfigRegistration, planEnvExample, planScaffold, writeScaffold } from "../functions/scaffold.js";
14
14
  import { describeRegistrySource, 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-DewAITTN.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-D-P2EIeK.js";
@@ -2,29 +2,29 @@ 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-DxcO3oJk.js";
6
- import { c as config_exports } from "../_chunks/config-8PrVJ-gQ.js";
5
+ import { o as env_exports } from "../_chunks/env-Bko0oXq9.js";
6
+ import { c as config_exports } from "../_chunks/config-DbUecUDS.js";
7
7
  import { u as projects_exports } from "../_chunks/projects-a3X4OFEJ.js";
8
- import { a as link_exports } from "../_chunks/link-Ob3NoNIS.js";
8
+ import { a as link_exports } from "../_chunks/link-CdXU0E63.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-Bpomfu6c.js";
16
- import { o as claim_exports } from "../_chunks/claim-BVEwQ65H.js";
15
+ import { n as checkout_exports } from "../_chunks/checkout-Cham6pyw.js";
16
+ import { o as claim_exports } from "../_chunks/claim-Dz5-Q29W.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-CWwg_lkJ.js";
22
- import { s as dev_exports } from "../_chunks/dev-C6LAcA3H.js";
21
+ import { r as deploy_exports } from "../_chunks/deploy-ByZ1OKKD.js";
22
+ import { s as dev_exports } from "../_chunks/dev-DWbOS3QN.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-DewAITTN.js";
27
+ import { o as git_exports } from "../_chunks/git-D-P2EIeK.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";
@@ -41,8 +41,8 @@ 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-D7DnlVCu.js";
45
- import { d as triggers_exports } from "../_chunks/triggers-BfvyeJUC.js";
44
+ import { a as status_exports } from "../_chunks/status-CUl0BqFj.js";
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";
48
48
  // src/commands/index.ts
@@ -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-Ob3NoNIS.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-CdXU0E63.js";
@@ -1 +1 @@
1
- export { t as builder, n as command, r as describe, i as handler } from "../_chunks/status-D7DnlVCu.js";
1
+ export { t as builder, n as command, r as describe, i as handler } from "../_chunks/status-CUl0BqFj.js";
@@ -1,6 +1,6 @@
1
1
  import { writer } from "../writer.js";
2
- import { branchIdFromProps } from "../utils/enrichers.js";
3
2
  import { o as resolveNeonEnvVars } from "../_chunks/env-CFBmcKyo.js";
3
+ import { branchIdFromProps } from "../utils/enrichers.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", {
@@ -1 +1 @@
1
- export { t as TRIGGER_FIELDS, n as aliases, r as builder, i as command, a as create, o as deleteTrigger, s as describe, c as get, l as handler, u as list, f as update } from "../_chunks/triggers-BfvyeJUC.js";
1
+ export { t as TRIGGER_FIELDS, n as aliases, r as builder, i as command, a as create, o as deleteTrigger, s as describe, c as get, l as handler, u as list, f as update } from "../_chunks/triggers-m3IBjiph.js";
package/dist/context.js CHANGED
@@ -187,8 +187,14 @@ const enrichFromContext = (args) => {
187
187
  const context = readContextFile(args.contextFile);
188
188
  if (!args.orgId) args.orgId = context.orgId;
189
189
  if (!args.projectId) args.projectId = context.projectId;
190
- if (!args.branch && !args.id && !args.name && context.projectId === args.projectId) args.branch = contextBranch(context);
190
+ if (!args.branch && !(namesBranchInIdOrName(args) && (args.id || args.name)) && context.projectId === args.projectId) args.branch = contextBranch(context);
191
191
  };
192
+ /**
193
+ * Commands whose `id` / `name` argument is the branch itself (`branches get <id|name>`,
194
+ * `branches create --name`, `checkout [id|name]`), so the pinned branch must not be filled in.
195
+ * Everywhere else `--name` names the database, role, trigger, or snapshot being created.
196
+ */
197
+ const namesBranchInIdOrName = (args) => args._[0] === "branches" || args._[0] === "branch" || args._[0] === "checkout";
192
198
  const updateContextFile = (file, context) => {
193
199
  writeFileSync(file, JSON.stringify(context, null, 2));
194
200
  };
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-DxcO3oJk.js";
7
+ import { c as pull } from "../_chunks/env-Bko0oXq9.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-8PrVJ-gQ.js";
7
+ import { r as applyCmd } from "../_chunks/config-DbUecUDS.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-Ob3NoNIS.js";
7
+ import { s as runLink } from "../_chunks/link-CdXU0E63.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-8PrVJ-gQ.js";
18
- import { o as quoteFlagValue, s as runLink } from "../_chunks/link-Ob3NoNIS.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";
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-BVEwQ65H.js";
28
+ import { l as create } from "../_chunks/claim-Dz5-Q29W.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";
@@ -113,6 +113,11 @@ const appliedBranchFields = (change) => {
113
113
  default: return expandField(field, void 0, details.settings);
114
114
  }
115
115
  };
116
+ const serviceFieldChanges = (change) => {
117
+ const changes = change.details?.changes;
118
+ if (!Array.isArray(changes)) return [];
119
+ return changes.flatMap((entry) => isPlainObject(entry) && typeof entry.field === "string" ? expandField(entry.field, entry.current, entry.desired) : []);
120
+ };
116
121
  const renderAppliedChanges = (changes, title, opts) => {
117
122
  if (changes.length === 0) return "";
118
123
  const paint = palette(opts.color);
@@ -122,6 +127,7 @@ const renderAppliedChanges = (changes, title, opts) => {
122
127
  const label = serviceLabel(service.identifier, service.details);
123
128
  const line = service.action === "create" ? `+ ${label}` : service.action === "delete" ? `- ${label}` : `~ ${label}`;
124
129
  lines.push(` ${service.action === "create" ? paint.added(line) : service.action === "delete" ? paint.removed(line) : paint.arrow(line)}`);
130
+ if (service.action === "update") lines.push(...renderFieldLines(serviceFieldChanges(service), paint));
125
131
  }
126
132
  const byBranch = /* @__PURE__ */ new Map();
127
133
  for (const change of changes.filter((c) => c.kind === "branch")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neon",
3
- "version": "9.3.1",
3
+ "version": "9.3.2",
4
4
  "description": "CLI tool for Neon, the cloud backend primitives built around Lakebase Postgres",
5
5
  "keywords": [
6
6
  "neon",
@@ -73,8 +73,8 @@
73
73
  "yaml": "^2.9.0",
74
74
  "yargs": "17.7.2",
75
75
  "yoctocolors": "^2.1.2",
76
- "@neon/config": "1.13.2",
77
- "@neon/config-runtime": "1.12.2",
76
+ "@neon/config": "1.14.0",
77
+ "@neon/config-runtime": "1.12.3",
78
78
  "@neon/realtime": "0.2.1",
79
79
  "@neon/sdk": "7.13.0"
80
80
  },
@@ -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.50",
117
- "@neon/e2e-harness": "0.0.0",
118
- "@neon/env": "2.1.2",
119
- "@neon/functions": "0.11.0"
116
+ "@neon-internals/env-core": "0.0.51",
117
+ "@neon/env": "2.1.3",
118
+ "@neon/functions": "0.11.0",
119
+ "@neon/e2e-harness": "0.0.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 { fillSingleProject, resolveBranchRef } from "../utils/enrichers.js";
11
10
  import { i as dropClaimableUnsupported, o as resolveNeonEnvVars } from "./env-CFBmcKyo.js";
11
+ import { fillSingleProject, resolveBranchRef } from "../utils/enrichers.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";