@standardagents/cli 0.26.0 → 0.26.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 +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -242,7 +242,7 @@ function getScaffoldStandardAgentsVersion() {
|
|
|
242
242
|
if (process.env.STANDARDAGENTS_WORKSPACE === "1") {
|
|
243
243
|
return "workspace:*";
|
|
244
244
|
}
|
|
245
|
-
return "0.26.
|
|
245
|
+
return "0.26.1";
|
|
246
246
|
}
|
|
247
247
|
function findViteConfig(cwd) {
|
|
248
248
|
const candidates = ["vite.config.ts", "vite.config.js", "vite.config.mts", "vite.config.mjs"];
|
|
@@ -1537,7 +1537,7 @@ async function ensurePlatformAuth(options, quietLogs = false, context = {}) {
|
|
|
1537
1537
|
return { connected: true, mode: "standardagents" };
|
|
1538
1538
|
}
|
|
1539
1539
|
function getCliVersion() {
|
|
1540
|
-
return "0.26.
|
|
1540
|
+
return "0.26.1";
|
|
1541
1541
|
}
|
|
1542
1542
|
function getSipVersion() {
|
|
1543
1543
|
return "1.0.1";
|
|
@@ -5298,10 +5298,11 @@ async function mintGitAccessApiKey(endpoint, sessionCookie, fetchImpl = fetch) {
|
|
|
5298
5298
|
}
|
|
5299
5299
|
|
|
5300
5300
|
// src/commands/diag.ts
|
|
5301
|
-
function resolveDiagConfig(options, env = process.env, fetchImpl
|
|
5301
|
+
function resolveDiagConfig(options, env = process.env, fetchImpl) {
|
|
5302
5302
|
const endpoint = (options.endpoint || env.STANDARD_AGENTS_INSTANCE_URL || "http://localhost:5173").replace(/\/+$/, "");
|
|
5303
5303
|
const token = options.token || env.STANDARD_AGENTS_INSTANCE_TOKEN || null;
|
|
5304
|
-
|
|
5304
|
+
const resolvedFetch = typeof fetchImpl === "function" ? fetchImpl : fetch;
|
|
5305
|
+
return { endpoint, token, json: Boolean(options.json), fetchImpl: resolvedFetch };
|
|
5305
5306
|
}
|
|
5306
5307
|
async function apiGet(config, path14) {
|
|
5307
5308
|
return apiRequest(config, path14, "GET");
|
|
@@ -5674,7 +5675,7 @@ async function settleStdinForInitHandoff(stdin = process.stdin) {
|
|
|
5674
5675
|
}
|
|
5675
5676
|
}
|
|
5676
5677
|
var program = new Command();
|
|
5677
|
-
program.name("agents").description("CLI tool for Standard Agents / AgentBuilder").version("0.26.
|
|
5678
|
+
program.name("agents").description("CLI tool for Standard Agents / AgentBuilder").version("0.26.1");
|
|
5678
5679
|
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);
|
|
5679
5680
|
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);
|
|
5680
5681
|
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);
|