@node9/proxy 2.7.4 → 2.8.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/dist/cli.js +10 -3
- package/dist/cli.mjs +10 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -58154,7 +58154,10 @@ var { version } = JSON.parse(
|
|
|
58154
58154
|
);
|
|
58155
58155
|
var program = new import_commander.Command();
|
|
58156
58156
|
program.name("node9").description("The Sudo Command for AI Agents").version(version);
|
|
58157
|
-
program.command("login").argument("[apiKey]", "Service/legacy key. Omit to log in via your browser.").option(
|
|
58157
|
+
program.command("login").argument("[apiKey]", "Service/legacy key. Omit to log in via your browser.").option(
|
|
58158
|
+
"--local",
|
|
58159
|
+
"Keep policy decisions local \u2014 the cloud never overrides them (cost data still syncs)"
|
|
58160
|
+
).option("--profile <name>", 'Save as a named profile (default: "default")').option("--no-browser", "Don't auto-open the browser \u2014 just print the link").option("--force", "Allow interactive login even when CI is detected").option("--api-url <url>", "Override the device-auth endpoint (self-host / dev)").action(
|
|
58158
58161
|
async (apiKey, options) => {
|
|
58159
58162
|
if (!apiKey) {
|
|
58160
58163
|
if ((process.env.CI === "true" || process.env.GITHUB_ACTIONS === "true") && !options.force) {
|
|
@@ -58202,8 +58205,12 @@ async function runKeyLogin(apiKey, options) {
|
|
|
58202
58205
|
}
|
|
58203
58206
|
if (options.local) {
|
|
58204
58207
|
writeCredentialsAndConfig(apiKey, { isLocal: true });
|
|
58205
|
-
console.log(import_chalk44.default.green(`\u2705 Key saved
|
|
58206
|
-
console.log(
|
|
58208
|
+
console.log(import_chalk44.default.green(`\u2705 Key saved. Local control mode.`));
|
|
58209
|
+
console.log(
|
|
58210
|
+
import_chalk44.default.gray(` Policy decisions stay on this machine; the cloud cannot override them.`)
|
|
58211
|
+
);
|
|
58212
|
+
console.log(import_chalk44.default.gray(` Audit shipping is off. Cost and usage data still sync to node9,`));
|
|
58213
|
+
console.log(import_chalk44.default.gray(` including the project directory each session ran in.`));
|
|
58207
58214
|
return;
|
|
58208
58215
|
}
|
|
58209
58216
|
const outcome = await onboardMachine(apiKey);
|
package/dist/cli.mjs
CHANGED
|
@@ -58146,7 +58146,10 @@ var { version } = JSON.parse(
|
|
|
58146
58146
|
);
|
|
58147
58147
|
var program = new Command();
|
|
58148
58148
|
program.name("node9").description("The Sudo Command for AI Agents").version(version);
|
|
58149
|
-
program.command("login").argument("[apiKey]", "Service/legacy key. Omit to log in via your browser.").option(
|
|
58149
|
+
program.command("login").argument("[apiKey]", "Service/legacy key. Omit to log in via your browser.").option(
|
|
58150
|
+
"--local",
|
|
58151
|
+
"Keep policy decisions local \u2014 the cloud never overrides them (cost data still syncs)"
|
|
58152
|
+
).option("--profile <name>", 'Save as a named profile (default: "default")').option("--no-browser", "Don't auto-open the browser \u2014 just print the link").option("--force", "Allow interactive login even when CI is detected").option("--api-url <url>", "Override the device-auth endpoint (self-host / dev)").action(
|
|
58150
58153
|
async (apiKey, options) => {
|
|
58151
58154
|
if (!apiKey) {
|
|
58152
58155
|
if ((process.env.CI === "true" || process.env.GITHUB_ACTIONS === "true") && !options.force) {
|
|
@@ -58194,8 +58197,12 @@ async function runKeyLogin(apiKey, options) {
|
|
|
58194
58197
|
}
|
|
58195
58198
|
if (options.local) {
|
|
58196
58199
|
writeCredentialsAndConfig(apiKey, { isLocal: true });
|
|
58197
|
-
console.log(chalk44.green(`\u2705 Key saved
|
|
58198
|
-
console.log(
|
|
58200
|
+
console.log(chalk44.green(`\u2705 Key saved. Local control mode.`));
|
|
58201
|
+
console.log(
|
|
58202
|
+
chalk44.gray(` Policy decisions stay on this machine; the cloud cannot override them.`)
|
|
58203
|
+
);
|
|
58204
|
+
console.log(chalk44.gray(` Audit shipping is off. Cost and usage data still sync to node9,`));
|
|
58205
|
+
console.log(chalk44.gray(` including the project directory each session ran in.`));
|
|
58199
58206
|
return;
|
|
58200
58207
|
}
|
|
58201
58208
|
const outcome = await onboardMachine(apiKey);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node9/proxy",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "The Sudo Command for AI Agents. Execution Security for Claude Code, Codex, Gemini, Cursor, Opencode, Pi, and any MCP server.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|