@standardagents/cli 0.44.0 → 0.44.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 +11 -8
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -265,7 +265,7 @@ function getScaffoldStandardAgentsVersion() {
|
|
|
265
265
|
if (process.env.STANDARDAGENTS_WORKSPACE === "1") {
|
|
266
266
|
return "workspace:*";
|
|
267
267
|
}
|
|
268
|
-
return "0.44.
|
|
268
|
+
return "0.44.1";
|
|
269
269
|
}
|
|
270
270
|
function findViteConfig(cwd) {
|
|
271
271
|
const candidates = ["vite.config.ts", "vite.config.js", "vite.config.mts", "vite.config.mjs"];
|
|
@@ -1567,7 +1567,7 @@ async function ensurePlatformAuth(options, quietLogs = false, context = {}) {
|
|
|
1567
1567
|
return { connected: true, mode: "standardagents" };
|
|
1568
1568
|
}
|
|
1569
1569
|
function getCliVersion() {
|
|
1570
|
-
return "0.44.
|
|
1570
|
+
return "0.44.1";
|
|
1571
1571
|
}
|
|
1572
1572
|
function getSipVersion() {
|
|
1573
1573
|
return "1.0.1";
|
|
@@ -1587,7 +1587,7 @@ function resolvePackageSpecifier(options, packageManager) {
|
|
|
1587
1587
|
return "workspace:*";
|
|
1588
1588
|
}
|
|
1589
1589
|
function resolveStandardAgentsPackageSpecifier(packageName, packageSpecifier) {
|
|
1590
|
-
if (
|
|
1590
|
+
if (packageName === "@standardagents/sip") {
|
|
1591
1591
|
return getSipVersion();
|
|
1592
1592
|
}
|
|
1593
1593
|
return packageSpecifier;
|
|
@@ -4084,14 +4084,14 @@ async function pack(agentName, options) {
|
|
|
4084
4084
|
});
|
|
4085
4085
|
}
|
|
4086
4086
|
let itemSelections;
|
|
4087
|
-
if (
|
|
4087
|
+
if (options.interactive !== false && process.stdin.isTTY && selectionItems.length > 0) {
|
|
4088
4088
|
console.log("");
|
|
4089
4089
|
const selections = await selectItemModes(selectionItems);
|
|
4090
4090
|
itemSelections = selections.map((s) => ({
|
|
4091
4091
|
name: s.name,
|
|
4092
4092
|
type: s.type,
|
|
4093
4093
|
filePath: s.filePath,
|
|
4094
|
-
mode: s.mode
|
|
4094
|
+
mode: options.remove === false ? "copy" : s.mode
|
|
4095
4095
|
}));
|
|
4096
4096
|
console.log("");
|
|
4097
4097
|
}
|
|
@@ -4103,7 +4103,7 @@ async function pack(agentName, options) {
|
|
|
4103
4103
|
outputDir,
|
|
4104
4104
|
version: options.version || "1.0.0",
|
|
4105
4105
|
npm: options.npm || false,
|
|
4106
|
-
removeOriginals: itemSelections ? false :
|
|
4106
|
+
removeOriginals: itemSelections ? false : options.remove !== false,
|
|
4107
4107
|
// Let itemSelections handle removal
|
|
4108
4108
|
packageId: `standardagent-${selectedAgent.replace(/_/g, "-")}`,
|
|
4109
4109
|
itemSelections
|
|
@@ -4134,6 +4134,9 @@ async function pack(agentName, options) {
|
|
|
4134
4134
|
console.log(" npm publish");
|
|
4135
4135
|
}
|
|
4136
4136
|
}
|
|
4137
|
+
function registerPackCommand(program2) {
|
|
4138
|
+
program2.command("pack [agent-name]").description("Pack an agent with all its dependencies").option("--output <dir>", "Output directory (default: agents/packed)").option("--npm", "Generate npm-ready package structure").option("--version <version>", "Package version (default: 1.0.0)").option("--no-remove", "Keep original files after packing").option("--no-interactive", "Skip interactive item mode selector").action(pack);
|
|
4139
|
+
}
|
|
4137
4140
|
function isStandardAgentsProject2() {
|
|
4138
4141
|
if (!fs4.existsSync("agents")) {
|
|
4139
4142
|
return false;
|
|
@@ -5838,13 +5841,13 @@ async function settleStdinForInitHandoff(stdin = process.stdin) {
|
|
|
5838
5841
|
}
|
|
5839
5842
|
}
|
|
5840
5843
|
var program = new Command();
|
|
5841
|
-
program.name("agents").description("CLI tool for Standard Agents / AgentBuilder").version("0.44.
|
|
5844
|
+
program.name("agents").description("CLI tool for Standard Agents / AgentBuilder").version("0.44.1");
|
|
5842
5845
|
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);
|
|
5843
5846
|
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);
|
|
5844
5847
|
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);
|
|
5845
5848
|
program.command("scaffold").description("Add Standard Agents to an existing Vite project").option("--force", "Overwrite existing configuration").action(scaffold);
|
|
5846
5849
|
program.command("init-chat [project-name]").description("Scaffold a frontend chat application").option("-y, --yes", "Skip prompts and use defaults").option("--framework <framework>", "Framework to use (vite or nextjs)").action(initChat);
|
|
5847
|
-
program
|
|
5850
|
+
registerPackCommand(program);
|
|
5848
5851
|
program.command("unpack [package]").description("Unpack a packed agent to the local agents directory").option("--no-signatures", "Remove package signatures (fully editable)").action(unpack);
|
|
5849
5852
|
program.command("list-packed").description("List all discovered packed agents").action(listPacked);
|
|
5850
5853
|
program.command("deploy").description("Push the current branch to the Standard Agents Artifacts remote").action(deploy);
|