@standardagents/cli 0.22.0 → 0.23.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/index.js CHANGED
@@ -239,7 +239,7 @@ function getScaffoldStandardAgentsVersion() {
239
239
  if (process.env.STANDARDAGENTS_WORKSPACE === "1") {
240
240
  return "workspace:*";
241
241
  }
242
- return "0.22.0";
242
+ return "0.23.0";
243
243
  }
244
244
  function findViteConfig(cwd) {
245
245
  const candidates = ["vite.config.ts", "vite.config.js", "vite.config.mts", "vite.config.mjs"];
@@ -1529,7 +1529,7 @@ async function ensurePlatformAuth(options, quietLogs = false, context = {}) {
1529
1529
  return { connected: true, mode: "standardagents" };
1530
1530
  }
1531
1531
  function getCliVersion() {
1532
- return "0.22.0";
1532
+ return "0.23.0";
1533
1533
  }
1534
1534
  function getSipVersion() {
1535
1535
  return "1.0.1";
@@ -5085,7 +5085,11 @@ function runGit(args, runner) {
5085
5085
  function configureStandardAgentsGitCredentials(options = {}) {
5086
5086
  const runner = options.gitRunner ?? defaultGitRunner;
5087
5087
  const helperCommand = options.helperCommand?.trim() || process.env.STANDARD_AGENTS_GIT_HELPER || DEFAULT_GIT_HELPER_COMMAND;
5088
- const existing = runGit(["config", "--global", "--get-all", "credential.helper"], runner).stdout.split(/\r?\n/).map((line) => line.trim()).filter(Boolean);
5088
+ const existingResult = runner(["config", "--global", "--get-all", "credential.helper"]);
5089
+ if (existingResult.status !== 0 && existingResult.stderr.trim()) {
5090
+ throw new Error(existingResult.stderr.trim());
5091
+ }
5092
+ const existing = existingResult.stdout.split(/\r?\n/).map((line) => line.trim()).filter(Boolean);
5089
5093
  let helperAdded = false;
5090
5094
  if (!existing.includes(helperCommand)) {
5091
5095
  runGit(["config", "--global", "--add", "credential.helper", helperCommand], runner);
@@ -5191,7 +5195,7 @@ async function settleStdinForInitHandoff(stdin = process.stdin) {
5191
5195
  }
5192
5196
  }
5193
5197
  var program = new Command();
5194
- program.name("agents").description("CLI tool for Standard Agents / AgentBuilder").version("0.22.0");
5198
+ program.name("agents").description("CLI tool for Standard Agents / AgentBuilder").version("0.23.0");
5195
5199
  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);
5196
5200
  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);
5197
5201
  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);