neon 9.9.3 → 9.9.4
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.
|
@@ -84,7 +84,7 @@ const builder = (argv) => argv.usage("$0 mcp [options]").options({
|
|
|
84
84
|
for (const part of item.split(",")) {
|
|
85
85
|
const trimmed = part.trim();
|
|
86
86
|
if (trimmed === "") throw new Error("--category needs a value. Pass one, or omit the flag entirely.");
|
|
87
|
-
parts.push(trimmed);
|
|
87
|
+
parts.push(...trimmed.split(/\s+/));
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
return parseMcpCategories(parts);
|
package/dist/commands/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { o as env_exports } from "../_chunks/env-aWCqnWaF.js";
|
|
|
6
6
|
import { c as config_exports } from "../_chunks/config-CtP-1YSw.js";
|
|
7
7
|
import { u as projects_exports } from "../_chunks/projects-a3X4OFEJ.js";
|
|
8
8
|
import { a as link_exports } from "../_chunks/link-Caoa3_y8.js";
|
|
9
|
-
import { o as mcp_exports } from "../_chunks/mcp-
|
|
9
|
+
import { o as mcp_exports } from "../_chunks/mcp-g8C-BZIb.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";
|
package/dist/commands/mcp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as builder, n as command, r as describe, i as handler, a as mcpInstallError, s as reportMcpInstall, c as setupNeonMcp } from "../_chunks/mcp-
|
|
1
|
+
export { t as builder, n as command, r as describe, i as handler, a as mcpInstallError, s as reportMcpInstall, c as setupNeonMcp } from "../_chunks/mcp-g8C-BZIb.js";
|
package/dist/env_services.js
CHANGED
|
@@ -84,9 +84,13 @@ const envKeysForSelection = (services, envKeys) => {
|
|
|
84
84
|
if (selected.has(NEON_ENV_VAR_KEYS.storage.accessKeyId) !== selected.has(NEON_ENV_VAR_KEYS.storage.secretAccessKey)) throw new Error("AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY must be selected together: they are two halves of one newly issued object-storage credential. Add the missing key to --env, or use --service object-storage.");
|
|
85
85
|
return ENV_PULL_KEYS.filter((key) => selected.has(key));
|
|
86
86
|
};
|
|
87
|
-
/**
|
|
87
|
+
/**
|
|
88
|
+
* Parse repeated or comma-separated `--env` values into canonical env-key order. Whitespace
|
|
89
|
+
* also separates, because npm's `.ps1` shim hands an unquoted PowerShell `A,B` to the CLI as
|
|
90
|
+
* the single value `A B`.
|
|
91
|
+
*/
|
|
88
92
|
const parseEnvPullKeys = (raw, flag) => {
|
|
89
|
-
const names = raw.flatMap((value) => value.split(
|
|
93
|
+
const names = raw.flatMap((value) => value.split(/[\s,]+/)).filter((name) => name !== "");
|
|
90
94
|
const supported = `Supported values: ${ENV_PULL_KEY_HELP}.`;
|
|
91
95
|
if (names.length === 0) throw new Error(`${flag} needs at least one env variable. ${supported}`);
|
|
92
96
|
const legacy = names.filter(isLegacyFunctionBaseUrlKey);
|
package/dist/init/auth.js
CHANGED
|
@@ -5,7 +5,7 @@ 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
7
|
import { c as pull } from "../_chunks/env-aWCqnWaF.js";
|
|
8
|
-
import { c as setupNeonMcp } from "../_chunks/mcp-
|
|
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;
|
|
11
11
|
const authenticationFailed = () => /* @__PURE__ */ new Error("Authentication failed.");
|
package/dist/init/tooling.js
CHANGED
|
@@ -6,7 +6,7 @@ import { assertNamedAgentTooling, chooseYesAgentTooling, collectYesAgents, initY
|
|
|
6
6
|
import { CannotMintApiKeyError } from "../mcp/mint.js";
|
|
7
7
|
import { detectAgent } from "./detect_host.js";
|
|
8
8
|
import { AgentSelectionSkipped, canPickAgentsInteractively } from "../utils/agent_picker.js";
|
|
9
|
-
import { a as mcpInstallError, s as reportMcpInstall } from "../_chunks/mcp-
|
|
9
|
+
import { a as mcpInstallError, s as reportMcpInstall } from "../_chunks/mcp-g8C-BZIb.js";
|
|
10
10
|
import { l as reportPluginsInstall, o as installPlugins, s as pluginsInstallError } from "../_chunks/plugins-BwUZQ6Ic.js";
|
|
11
11
|
import { c as skillsInstallError, o as installSkills, s as reportSkillsInstall } from "../_chunks/skills-Bv8oKKwE.js";
|
|
12
12
|
import { runAuthenticatedMcp } from "./auth.js";
|
package/dist/neon_services.js
CHANGED
|
@@ -51,9 +51,12 @@ const deprecatedServiceMessage = (used, canonical) => `"${used}" is the old name
|
|
|
51
51
|
* Parse the raw values of a services flag into a canonical selection.
|
|
52
52
|
*
|
|
53
53
|
* Accepts the flag repeated (`-s auth -s postgres`) and comma-separated
|
|
54
|
-
* (`-s auth,postgres`), since both read naturally and users will try either.
|
|
55
|
-
*
|
|
56
|
-
*
|
|
54
|
+
* (`-s auth,postgres`), since both read naturally and users will try either. Whitespace also
|
|
55
|
+
* separates: PowerShell reads an unquoted `auth,postgres` as an array, and npm's `.ps1` shim
|
|
56
|
+
* hands it to the CLI as the single value `auth postgres`.
|
|
57
|
+
*
|
|
58
|
+
* The result is deduplicated and sorted into {@link NEON_SERVICES} order, so what a command
|
|
59
|
+
* does never depends on typing order.
|
|
57
60
|
*
|
|
58
61
|
* An unrecognized name is rejected rather than dropped: a typo would otherwise act on
|
|
59
62
|
* everything *except* the service that was asked for, and report success. A name that is a
|
|
@@ -63,7 +66,7 @@ const deprecatedServiceMessage = (used, canonical) => `"${used}" is the old name
|
|
|
63
66
|
const parseServices = (raw, options) => {
|
|
64
67
|
const { allowed, flag, onDeprecated } = options;
|
|
65
68
|
const supported = `Supported values: ${allowed.join(", ")}.`;
|
|
66
|
-
const names = raw.flatMap((value) => value.split(
|
|
69
|
+
const names = raw.flatMap((value) => value.split(/[\s,]+/)).filter((name) => name !== "");
|
|
67
70
|
if (names.length === 0) throw new Error(`${flag} needs at least one service. ${supported}`);
|
|
68
71
|
const deprecated = /* @__PURE__ */ new Map();
|
|
69
72
|
const resolved = names.map((name) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neon",
|
|
3
|
-
"version": "9.9.
|
|
3
|
+
"version": "9.9.4",
|
|
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-runtime": "1.12.9",
|
|
77
76
|
"@neon/config": "1.14.6",
|
|
77
|
+
"@neon/config-runtime": "1.12.9",
|
|
78
78
|
"@neon/realtime": "0.2.1",
|
|
79
79
|
"@neon/sdk": "7.15.0"
|
|
80
80
|
},
|
|
@@ -113,8 +113,8 @@
|
|
|
113
113
|
"typescript": "^5.9.0",
|
|
114
114
|
"vitest": "^3.0.9",
|
|
115
115
|
"@neon-internals/cli-core": "0.0.0",
|
|
116
|
-
"@neon/e2e-harness": "0.0.0",
|
|
117
116
|
"@neon-internals/env-core": "0.0.57",
|
|
117
|
+
"@neon/e2e-harness": "0.0.0",
|
|
118
118
|
"@neon/env": "2.1.9",
|
|
119
119
|
"@neon/functions": "0.11.0"
|
|
120
120
|
},
|