neon 6.0.0 → 6.1.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.
- package/README.md +5 -1
- package/dist/commands/bootstrap.js +19 -17
- package/dist/commands/dev.js +1 -1
- package/dist/commands/index.js +3 -3
- package/dist/commands/init.js +2 -4
- package/dist/commands/mcp.js +67 -25
- package/dist/commands/plugins.js +54 -23
- package/dist/commands/skills.js +54 -23
- package/dist/commands/snapshots.js +23 -7
- package/dist/init/auth.js +84 -0
- package/dist/init/cancelled.js +26 -1
- package/dist/init/chrome.js +2 -19
- package/dist/init/detect.js +1 -1
- package/dist/init/plan.js +85 -63
- package/dist/init/run.js +30 -26
- package/dist/init/tooling.js +103 -21
- package/dist/init/wizard.js +1 -1
- package/dist/mcp/plan.js +1 -1
- package/dist/plugins/plan.js +1 -1
- package/dist/skills/plan.js +1 -1
- package/package.json +2 -2
- package/dist/init/child.js +0 -49
package/dist/mcp/plan.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { tryResolveAddMcpAgentId } from "./agents.js";
|
|
2
2
|
import { detectMcpAgents, mcpInstallableAgents } from "./targets.js";
|
|
3
3
|
import { collectYesAgents, noDetectedAgentsMessage } from "../init/plan.js";
|
|
4
|
-
import { agentChoicesFrom, pickAgentsInteractively, resolveAgentSelection } from "../utils/agent_picker.js";
|
|
5
4
|
import { detectAgent } from "../init/detect_host.js";
|
|
5
|
+
import { agentChoicesFrom, pickAgentsInteractively, resolveAgentSelection } from "../utils/agent_picker.js";
|
|
6
6
|
import { pickMcpAuth, pickMcpProjectPin, pickMcpScope } from "./wizard.js";
|
|
7
7
|
//#region src/mcp/plan.ts
|
|
8
8
|
async function resolveMcpPlan(options) {
|
package/dist/plugins/plan.js
CHANGED
|
@@ -2,8 +2,8 @@ import { getAgentDisplayName, tryResolveAddMcpAgentId } from "../mcp/agents.js";
|
|
|
2
2
|
import "../init/agents.js";
|
|
3
3
|
import { detectPluginsAgents, getPluginsTargetName, isUserScopeOnlyPluginsTarget, mappedPluginsTargets, pluginsInstallableAgents } from "./targets.js";
|
|
4
4
|
import { collectYesAgents, noDetectedAgentsMessage } from "../init/plan.js";
|
|
5
|
-
import { agentChoicesFrom, pickAgentsInteractively, resolveAgentSelection } from "../utils/agent_picker.js";
|
|
6
5
|
import { detectAgent } from "../init/detect_host.js";
|
|
6
|
+
import { agentChoicesFrom, pickAgentsInteractively, resolveAgentSelection } from "../utils/agent_picker.js";
|
|
7
7
|
//#region src/plugins/plan.ts
|
|
8
8
|
const assertPluginsCanRun = (options) => {
|
|
9
9
|
if (options.yes || options.interactive || options.hasAgents) return;
|
package/dist/skills/plan.js
CHANGED
|
@@ -2,8 +2,8 @@ import { tryResolveAddMcpAgentId } from "../mcp/agents.js";
|
|
|
2
2
|
import "../init/agents.js";
|
|
3
3
|
import { detectSkillsAgents, skillsInstallableAgents } from "./targets.js";
|
|
4
4
|
import { collectYesAgents, noDetectedAgentsMessage } from "../init/plan.js";
|
|
5
|
-
import { agentChoicesFrom, pickAgentsInteractively, resolveAgentSelection } from "../utils/agent_picker.js";
|
|
6
5
|
import { detectAgent } from "../init/detect_host.js";
|
|
6
|
+
import { agentChoicesFrom, pickAgentsInteractively, resolveAgentSelection } from "../utils/agent_picker.js";
|
|
7
7
|
import { invocationsForSelection, resolveSkillId, uniqueSkillEntries, yesInstallInvocations } from "./catalog.js";
|
|
8
8
|
import { pickSkillsInteractively } from "./wizard.js";
|
|
9
9
|
//#region src/skills/plan.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neon",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "CLI tool for Neon, the cloud backend primitives built around Lakebase Postgres",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"neon",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"yaml": "^2.9.0",
|
|
65
65
|
"yargs": "17.7.2",
|
|
66
66
|
"yoctocolors": "^2.1.2",
|
|
67
|
-
"@neon/config": "1.7.3",
|
|
68
67
|
"@neon/config-runtime": "1.6.3",
|
|
68
|
+
"@neon/config": "1.7.3",
|
|
69
69
|
"@neon/sdk": "6.1.0"
|
|
70
70
|
},
|
|
71
71
|
"optionalDependencies": {
|
package/dist/init/child.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { InitCancelled } from "./cancelled.js";
|
|
2
|
-
import { spawn } from "node:child_process";
|
|
3
|
-
//#region src/init/child.ts
|
|
4
|
-
const AUTH_CHILD = /* @__PURE__ */ new Set([
|
|
5
|
-
"bootstrap",
|
|
6
|
-
"link",
|
|
7
|
-
"mcp",
|
|
8
|
-
"env"
|
|
9
|
-
]);
|
|
10
|
-
const initChildEnv = (command, overlay, base = process.env) => {
|
|
11
|
-
const child = { ...base };
|
|
12
|
-
if (command === void 0 || !AUTH_CHILD.has(command)) {
|
|
13
|
-
for (const key of Object.keys(child)) if (key.toUpperCase() === "NEON_API_KEY") delete child[key];
|
|
14
|
-
}
|
|
15
|
-
return overlay ? {
|
|
16
|
-
...child,
|
|
17
|
-
...overlay
|
|
18
|
-
} : child;
|
|
19
|
-
};
|
|
20
|
-
const spawnCliChild = async (argv, cwd, overlay) => {
|
|
21
|
-
const cli = process.argv[1];
|
|
22
|
-
if (!cli) throw new Error("Cannot re-exec the Neon CLI: process.argv[1] is missing.");
|
|
23
|
-
return new Promise((resolve, reject) => {
|
|
24
|
-
const child = spawn(process.execPath, [cli, ...argv], {
|
|
25
|
-
cwd,
|
|
26
|
-
stdio: "inherit",
|
|
27
|
-
env: initChildEnv(argv[0], overlay)
|
|
28
|
-
});
|
|
29
|
-
const onSigint = () => {
|
|
30
|
-
child.kill("SIGINT");
|
|
31
|
-
};
|
|
32
|
-
process.on("SIGINT", onSigint);
|
|
33
|
-
const finish = (code, signal) => {
|
|
34
|
-
process.off("SIGINT", onSigint);
|
|
35
|
-
if (signal === "SIGINT" || signal === "SIGTERM") {
|
|
36
|
-
reject(new InitCancelled());
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
resolve(code === 0);
|
|
40
|
-
};
|
|
41
|
-
child.on("error", () => {
|
|
42
|
-
process.off("SIGINT", onSigint);
|
|
43
|
-
resolve(false);
|
|
44
|
-
});
|
|
45
|
-
child.on("close", finish);
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
//#endregion
|
|
49
|
-
export { AUTH_CHILD, initChildEnv, spawnCliChild };
|