@a3t/rapid 0.1.9 → 0.1.10

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/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  program
4
- } from "./chunk-C6XSZWFT.js";
4
+ } from "./chunk-3NWIUIFI.js";
5
5
 
6
6
  // src/bin.ts
7
7
  program.parse(process.argv);
@@ -287,13 +287,13 @@ function getDevContainerConfig(detected, usePrebuilt = false) {
287
287
  const baseFeatures = {
288
288
  "ghcr.io/devcontainers/features/git:1": {},
289
289
  "ghcr.io/devcontainers-contrib/features/direnv:1": {},
290
- "ghcr.io/devcontainers-contrib/features/starship:1": {},
291
- "ghcr.io/devcontainers-contrib/features/1password-cli:1": {}
290
+ "ghcr.io/devcontainers-contrib/features/starship:1": {}
292
291
  };
293
292
  const containerEnv = {
294
293
  OP_SERVICE_ACCOUNT_TOKEN: "${localEnv:OP_SERVICE_ACCOUNT_TOKEN}"
295
294
  };
296
- const postCreateBase = "npm install -g @anthropic-ai/claude-code && curl -fsSL https://opencode.ai/install | bash";
295
+ const install1PasswordCli = "curl -sS https://downloads.1password.com/linux/keys/1password.asc | sudo gpg --dearmor -o /usr/share/keyrings/1password.gpg && echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/1password.gpg] https://downloads.1password.com/linux/debian/amd64 stable main' | sudo tee /etc/apt/sources.list.d/1password.list && sudo apt-get update -qq && sudo apt-get install -y -qq 1password-cli";
296
+ const postCreateBase = `${install1PasswordCli} && npm install -g @anthropic-ai/claude-code && curl -fsSL https://opencode.ai/install | bash`;
297
297
  const postStartCommand = "direnv allow 2>/dev/null || true";
298
298
  const language = detected?.language || "unknown";
299
299
  const templateName = language === "javascript" ? "typescript" : language === "unknown" ? "universal" : language;
@@ -1954,6 +1954,7 @@ var statusCommand = new Command3("status").description("Show environment status"
1954
1954
  });
1955
1955
 
1956
1956
  // src/commands/agent.ts
1957
+ import { writeFile as writeFile4 } from "fs/promises";
1957
1958
  import { Command as Command4 } from "commander";
1958
1959
  import { loadConfig as loadConfig3, checkAllAgents as checkAllAgents2, logger as logger4 } from "@a3t/rapid-core";
1959
1960
  var agentCommand = new Command4("agent").description("Manage AI agents");
@@ -2008,8 +2009,9 @@ agentCommand.command("default [name]").description("Get or set default agent").a
2008
2009
  });
2009
2010
  process.exit(1);
2010
2011
  }
2011
- logger4.warn("Setting default agent requires editing rapid.json");
2012
- logger4.info(`Set "agents.default" to "${name}" in your rapid.json`);
2012
+ config.agents.default = name;
2013
+ await writeFile4(loaded.filepath, JSON.stringify(config, null, 2) + "\n");
2014
+ logger4.success(`Default agent set to "${name}"`);
2013
2015
  } catch (error) {
2014
2016
  logger4.error(error instanceof Error ? error.message : String(error));
2015
2017
  process.exit(1);
@@ -2688,7 +2690,7 @@ authCommand.command("env").description("Show environment variables for detected
2688
2690
 
2689
2691
  // src/commands/mcp.ts
2690
2692
  import { Command as Command9 } from "commander";
2691
- import { writeFile as writeFile4 } from "fs/promises";
2693
+ import { writeFile as writeFile5 } from "fs/promises";
2692
2694
  import { join as join5 } from "path";
2693
2695
  import {
2694
2696
  loadConfig as loadConfig7,
@@ -2711,7 +2713,7 @@ var mcpCommand = new Command9("mcp").description(
2711
2713
  );
2712
2714
  async function saveConfig(rootDir, config) {
2713
2715
  const configPath = join5(rootDir, "rapid.json");
2714
- await writeFile4(configPath, JSON.stringify(config, null, 2) + "\n", "utf-8");
2716
+ await writeFile5(configPath, JSON.stringify(config, null, 2) + "\n", "utf-8");
2715
2717
  }
2716
2718
  mcpCommand.command("list").description("List configured MCP servers").option("--json", "Output as JSON").option("--templates", "Show available templates instead of configured servers").action(async (options) => {
2717
2719
  try {
@@ -3621,4 +3623,4 @@ program.action(() => {
3621
3623
  export {
3622
3624
  program
3623
3625
  };
3624
- //# sourceMappingURL=chunk-C6XSZWFT.js.map
3626
+ //# sourceMappingURL=chunk-3NWIUIFI.js.map