@standardagents/cli 0.40.13 → 0.41.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 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import net from 'net';
|
|
|
8
8
|
import readline from 'readline';
|
|
9
9
|
import { spawn, execFileSync, spawnSync } from 'child_process';
|
|
10
10
|
import { fileURLToPath, pathToFileURL } from 'url';
|
|
11
|
-
import { FIRST_PARTY_PROVIDER_PACKAGES, AGENT_DEFINITIONS_AGENTS_MD, PROMPTS_AGENTS_MD, MODELS_AGENTS_MD, TOOLS_AGENTS_MD, HOOKS_AGENTS_MD, API_AGENTS_MD, renderAgentBuilderSupportFiles, ROOT_AGENTS_MD } from '@standardagents/agentbuilder-template';
|
|
11
|
+
import { FIRST_PARTY_PROVIDER_PACKAGES, AGENT_DEFINITIONS_AGENTS_MD, PROMPTS_AGENTS_MD, HANDLERS_AGENTS_MD, MODELS_AGENTS_MD, TOOLS_AGENTS_MD, HOOKS_AGENTS_MD, API_AGENTS_MD, renderAgentBuilderSupportFiles, ROOT_AGENTS_MD } from '@standardagents/agentbuilder-template';
|
|
12
12
|
import chalk from 'chalk';
|
|
13
13
|
import { parse, modify, applyEdits } from 'jsonc-parser';
|
|
14
14
|
import { loadFile, writeFile } from 'magicast';
|
|
@@ -265,7 +265,7 @@ function getScaffoldStandardAgentsVersion() {
|
|
|
265
265
|
if (process.env.STANDARDAGENTS_WORKSPACE === "1") {
|
|
266
266
|
return "workspace:*";
|
|
267
267
|
}
|
|
268
|
-
return "0.
|
|
268
|
+
return "0.41.1";
|
|
269
269
|
}
|
|
270
270
|
function findViteConfig(cwd) {
|
|
271
271
|
const candidates = ["vite.config.ts", "vite.config.js", "vite.config.mts", "vite.config.mjs"];
|
|
@@ -366,6 +366,7 @@ function createDirectoriesAndDocs(cwd) {
|
|
|
366
366
|
const directories = [
|
|
367
367
|
{ path: "agents/agents", doc: AGENT_DEFINITIONS_AGENTS_MD },
|
|
368
368
|
{ path: "agents/prompts", doc: PROMPTS_AGENTS_MD },
|
|
369
|
+
{ path: "agents/handlers", doc: HANDLERS_AGENTS_MD },
|
|
369
370
|
{ path: "agents/models", doc: MODELS_AGENTS_MD },
|
|
370
371
|
{ path: "agents/tools", doc: TOOLS_AGENTS_MD },
|
|
371
372
|
{ path: "agents/hooks", doc: HOOKS_AGENTS_MD },
|
|
@@ -484,6 +485,7 @@ async function scaffold(options = {}) {
|
|
|
484
485
|
logger.log(" agents/");
|
|
485
486
|
logger.log(" \u251C\u2500\u2500 agents/ # Agent definitions");
|
|
486
487
|
logger.log(" \u251C\u2500\u2500 prompts/ # Prompt definitions");
|
|
488
|
+
logger.log(" \u251C\u2500\u2500 handlers/ # Handler definitions");
|
|
487
489
|
logger.log(" \u251C\u2500\u2500 models/ # Model configurations");
|
|
488
490
|
logger.log(" \u251C\u2500\u2500 tools/ # Custom tools");
|
|
489
491
|
logger.log(" \u251C\u2500\u2500 hooks/ # Lifecycle hooks");
|
|
@@ -1565,7 +1567,7 @@ async function ensurePlatformAuth(options, quietLogs = false, context = {}) {
|
|
|
1565
1567
|
return { connected: true, mode: "standardagents" };
|
|
1566
1568
|
}
|
|
1567
1569
|
function getCliVersion() {
|
|
1568
|
-
return "0.
|
|
1570
|
+
return "0.41.1";
|
|
1569
1571
|
}
|
|
1570
1572
|
function getSipVersion() {
|
|
1571
1573
|
return "1.0.1";
|
|
@@ -5778,7 +5780,7 @@ async function settleStdinForInitHandoff(stdin = process.stdin) {
|
|
|
5778
5780
|
}
|
|
5779
5781
|
}
|
|
5780
5782
|
var program = new Command();
|
|
5781
|
-
program.name("agents").description("CLI tool for Standard Agents / AgentBuilder").version("0.
|
|
5783
|
+
program.name("agents").description("CLI tool for Standard Agents / AgentBuilder").version("0.41.1");
|
|
5782
5784
|
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);
|
|
5783
5785
|
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);
|
|
5784
5786
|
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);
|