@hasna/configs 0.2.12 → 0.2.13

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/cli/index.js CHANGED
@@ -3756,7 +3756,7 @@ Run with --fix to redact in-place.`));
3756
3756
  }
3757
3757
  });
3758
3758
  var mcpCmd = program.command("mcp").description("Install/remove MCP server for AI agents");
3759
- mcpCmd.command("install").alias("add").description("Install configs MCP server into an agent").option("--claude", "install into Claude Code").option("--codex", "install into Codex").option("--gemini", "install into Gemini").option("--all", "install into all agents").action(async (opts) => {
3759
+ mcpCmd.command("install").alias("add").description("Install configs MCP server into an agent").option("--claude", "install into Claude Code").option("--codex", "install into Codex").option("--gemini", "install into Gemini").option("--all", "install into all agents").option("--profile <level>", "set CONFIGS_PROFILE (minimal|standard|full)", "standard").action(async (opts) => {
3760
3760
  const targets = opts.all ? ["claude", "codex", "gemini"] : [
3761
3761
  ...opts.claude ? ["claude"] : [],
3762
3762
  ...opts.codex ? ["codex"] : [],
@@ -3769,7 +3769,8 @@ mcpCmd.command("install").alias("add").description("Install configs MCP server i
3769
3769
  for (const target of targets) {
3770
3770
  try {
3771
3771
  if (target === "claude") {
3772
- const proc = Bun.spawn(["claude", "mcp", "add", "--transport", "stdio", "--scope", "user", "configs", "--", "configs-mcp"], { stdout: "inherit", stderr: "inherit" });
3772
+ const cmd = opts.profile && opts.profile !== "full" ? ["claude", "mcp", "add", "--transport", "stdio", "--scope", "user", "configs", "--", "env", `CONFIGS_PROFILE=${opts.profile}`, "configs-mcp"] : ["claude", "mcp", "add", "--transport", "stdio", "--scope", "user", "configs", "--", "configs-mcp"];
3773
+ const proc = Bun.spawn(cmd, { stdout: "inherit", stderr: "inherit" });
3773
3774
  await proc.exited;
3774
3775
  console.log(chalk.green("\u2713") + " Installed into Claude Code");
3775
3776
  } else if (target === "codex") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/configs",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "description": "AI coding agent configuration manager — store, version, apply, and share all your AI coding configs. CLI + MCP + REST API + Dashboard.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",