@standardagents/cli 0.33.0 → 0.33.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.
- package/dist/index.js +23 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -19,6 +19,18 @@ import { TextInput } from '@inkjs/ui';
|
|
|
19
19
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
20
20
|
import { copySkill, readSkillFile } from '@standardagents/skill';
|
|
21
21
|
|
|
22
|
+
// src/utils/spawn-env.ts
|
|
23
|
+
function packageManagerEnv(base = process.env) {
|
|
24
|
+
const env = {};
|
|
25
|
+
for (const [key, value] of Object.entries(base)) {
|
|
26
|
+
const normalized = key.toLowerCase().replace(/-/g, "_");
|
|
27
|
+
if (normalized === "npm_config_allow_scripts" || normalized === "npm_config_strict_allow_scripts" || normalized === "npm_config_allow_scripts_pending" || normalized === "npm_config_allow_scripts_pin") {
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
env[key] = value;
|
|
31
|
+
}
|
|
32
|
+
return env;
|
|
33
|
+
}
|
|
22
34
|
var logger = {
|
|
23
35
|
success: (message) => {
|
|
24
36
|
console.log(chalk.green("\u2713"), message);
|
|
@@ -242,7 +254,7 @@ function getScaffoldStandardAgentsVersion() {
|
|
|
242
254
|
if (process.env.STANDARDAGENTS_WORKSPACE === "1") {
|
|
243
255
|
return "workspace:*";
|
|
244
256
|
}
|
|
245
|
-
return "0.33.
|
|
257
|
+
return "0.33.1";
|
|
246
258
|
}
|
|
247
259
|
function findViteConfig(cwd) {
|
|
248
260
|
const candidates = ["vite.config.ts", "vite.config.js", "vite.config.mts", "vite.config.mjs"];
|
|
@@ -1176,7 +1188,10 @@ function runCommand(command, args, cwd, options = {}) {
|
|
|
1176
1188
|
const child = spawn(command, args, {
|
|
1177
1189
|
cwd,
|
|
1178
1190
|
stdio: quiet ? ["ignore", "pipe", "pipe"] : "inherit",
|
|
1179
|
-
shell: false
|
|
1191
|
+
shell: false,
|
|
1192
|
+
// npx-inherited npm_config_allow_scripts fatals npm 12 project installs
|
|
1193
|
+
// (EALLOWSCRIPTS); approvals live in the generated package.json instead.
|
|
1194
|
+
env: packageManagerEnv()
|
|
1180
1195
|
});
|
|
1181
1196
|
let outputTail = "";
|
|
1182
1197
|
if (quiet) {
|
|
@@ -1537,7 +1552,7 @@ async function ensurePlatformAuth(options, quietLogs = false, context = {}) {
|
|
|
1537
1552
|
return { connected: true, mode: "standardagents" };
|
|
1538
1553
|
}
|
|
1539
1554
|
function getCliVersion() {
|
|
1540
|
-
return "0.33.
|
|
1555
|
+
return "0.33.1";
|
|
1541
1556
|
}
|
|
1542
1557
|
function getSipVersion() {
|
|
1543
1558
|
return "1.0.1";
|
|
@@ -3216,7 +3231,10 @@ function runCommand2(command, args, cwd) {
|
|
|
3216
3231
|
const child = spawn(command, args, {
|
|
3217
3232
|
cwd,
|
|
3218
3233
|
stdio: "inherit",
|
|
3219
|
-
shell: false
|
|
3234
|
+
shell: false,
|
|
3235
|
+
// npx-inherited npm_config_allow_scripts fatals npm 12 project installs
|
|
3236
|
+
// (EALLOWSCRIPTS); approvals live in the generated package.json instead.
|
|
3237
|
+
env: packageManagerEnv()
|
|
3220
3238
|
});
|
|
3221
3239
|
child.on("close", (code) => {
|
|
3222
3240
|
if (code === 0) {
|
|
@@ -5675,7 +5693,7 @@ async function settleStdinForInitHandoff(stdin = process.stdin) {
|
|
|
5675
5693
|
}
|
|
5676
5694
|
}
|
|
5677
5695
|
var program = new Command();
|
|
5678
|
-
program.name("agents").description("CLI tool for Standard Agents / AgentBuilder").version("0.33.
|
|
5696
|
+
program.name("agents").description("CLI tool for Standard Agents / AgentBuilder").version("0.33.1");
|
|
5679
5697
|
program.command("init [project-name]").description("Create a new Standard Agents project").option("-y, --yes", "Skip prompts and use defaults").option("--local", "Use local project scaffolding instead of browser platform onboarding").option("--cli", "Use classic line-by-line CLI prompts instead of the TUI wizard").option("--api-url <url>", "Standard Agents platform API URL").option("--endpoint <url>", "Platform API endpoint for auth/bootstrap exchange").option("--package-manager <manager>", "Package manager for generated project: npm, pnpm, yarn, or bun").option("--template <template>", "Vite template to use", "vanilla-ts").option("--workspace", "Install @standardagents packages as workspace:* (local pnpm workspace development)").option("--no-dev", "Clone and configure the project without starting the dev server").addOption(new Option("--bootstrap <code>", "Exchange a web onboarding bootstrap code")).action(init);
|
|
5680
5698
|
program.command("login").description("Authenticate this machine (or use --bootstrap for project bootstrap auth)").option("--bootstrap <code>", "Bootstrap code from web onboarding").option("--endpoint <url>", "Platform API endpoint (default: https://api.standardagents.ai)").option("--no-open", "Do not auto-open browser URL").action(login);
|
|
5681
5699
|
program.command("logout").description("Clear stored StandardAgents auth and local org-scoped project auth").option("--org <org-id-or-slug>", "Org ID or slug to logout (defaults to active org)").option("--endpoint <url>", "Platform API endpoint (default: https://api.standardagents.ai)").action(logout);
|