@standardagents/cli 0.17.1 → 0.17.3

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.17.1";
242
+ return "0.17.3";
243
243
  }
244
244
  function findViteConfig(cwd) {
245
245
  const candidates = ["vite.config.ts", "vite.config.js", "vite.config.mts", "vite.config.mjs"];
@@ -1536,7 +1536,7 @@ async function ensurePlatformAuth(options, quietLogs = false, context = {}) {
1536
1536
  return { connected: true, mode: "standardagents" };
1537
1537
  }
1538
1538
  function getCliVersion() {
1539
- return "0.17.1";
1539
+ return "0.17.3";
1540
1540
  }
1541
1541
  function getSipVersion() {
1542
1542
  return "1.0.1";
@@ -1875,8 +1875,11 @@ function platformGitCredentialHelperCommand(cliEntry = process.argv[1] ?? "") {
1875
1875
  }
1876
1876
  }
1877
1877
  async function configurePlatformGitCredentialHelper(projectPath) {
1878
- await runCommand("git", ["config", "credential.helper", platformGitCredentialHelperCommand()], projectPath);
1879
- await runCommand("git", ["config", "credential.useHttpPath", "true"], projectPath);
1878
+ await runCommand("git", ["config", "--local", "--unset-all", "credential.helper"], projectPath).catch(() => {
1879
+ });
1880
+ await runCommand("git", ["config", "--local", "--add", "credential.helper", ""], projectPath);
1881
+ await runCommand("git", ["config", "--local", "--add", "credential.helper", platformGitCredentialHelperCommand()], projectPath);
1882
+ await runCommand("git", ["config", "--local", "credential.useHttpPath", "true"], projectPath);
1880
1883
  }
1881
1884
  function isRetryablePlatformAuthStatus(status) {
1882
1885
  return status === 502 || status === 503 || status === 504;
@@ -2000,21 +2003,12 @@ function writeStandardAgentsSupportFiles(projectPath, params) {
2000
2003
  fs3.writeFileSync(targetPath, supportFile.content, "utf-8");
2001
2004
  written.push(supportFile.path);
2002
2005
  }
2003
- if (written.includes("package.json")) {
2004
- appendGitignoreEntries(projectPath, "# Standard Agents generated local support files", [
2005
- "package.json",
2006
- "package-lock.json",
2007
- "pnpm-lock.yaml",
2008
- "yarn.lock",
2009
- "bun.lock",
2010
- "bun.lockb",
2011
- "node_modules"
2012
- ]);
2013
- }
2014
2006
  appendGitignoreEntries(projectPath, "# Standard Agents local dev state", [
2007
+ "node_modules",
2015
2008
  ".agents",
2016
2009
  ".wrangler",
2017
- "dist"
2010
+ "dist",
2011
+ ".agentbuilder-dev.log"
2018
2012
  ]);
2019
2013
  return written;
2020
2014
  }
@@ -5169,7 +5163,7 @@ async function settleStdinForInitHandoff(stdin = process.stdin) {
5169
5163
  }
5170
5164
  }
5171
5165
  var program = new Command();
5172
- program.name("agents").description("CLI tool for Standard Agents / AgentBuilder").version("0.17.1");
5166
+ program.name("agents").description("CLI tool for Standard Agents / AgentBuilder").version("0.17.3");
5173
5167
  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);
5174
5168
  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);
5175
5169
  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);