cleargate 0.8.0 → 0.8.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/cli.js CHANGED
@@ -14,7 +14,7 @@ import { Command } from "commander";
14
14
  // package.json
15
15
  var package_default = {
16
16
  name: "cleargate",
17
- version: "0.8.0",
17
+ version: "0.8.1",
18
18
  private: false,
19
19
  type: "module",
20
20
  description: "Planning framework for Claude Code agents \u2014 sprint/epic/story protocol, four-agent loop (architect/developer/qa/reporter), Karpathy-style awareness wiki.",
@@ -1423,13 +1423,16 @@ function mergeMcpJson(existing, entry) {
1423
1423
  next.mcpServers = servers;
1424
1424
  return JSON.stringify(next, null, 2) + "\n";
1425
1425
  }
1426
- var STDIO_ENTRY = {
1427
- command: "cleargate",
1428
- args: ["mcp", "serve"]
1429
- };
1430
- function injectMcpJson(cwd, _unusedUrl) {
1426
+ function buildStdioEntry(pinVersion) {
1427
+ return {
1428
+ command: "npx",
1429
+ args: ["-y", `cleargate@${pinVersion}`, "mcp", "serve"]
1430
+ };
1431
+ }
1432
+ var STDIO_ENTRY_DEFAULT = buildStdioEntry("latest");
1433
+ function injectMcpJson(cwd, pinVersion = "latest") {
1431
1434
  const dst = path5.join(cwd, ".mcp.json");
1432
- const entry = STDIO_ENTRY;
1435
+ const entry = buildStdioEntry(pinVersion);
1433
1436
  let existing = null;
1434
1437
  let existingRaw = null;
1435
1438
  if (fs6.existsSync(dst)) {
@@ -2522,7 +2525,7 @@ async function initHandler(opts = {}) {
2522
2525
  `);
2523
2526
  }
2524
2527
  try {
2525
- const action = injectMcpJson(cwd);
2528
+ const action = injectMcpJson(cwd, pinVersion ?? "latest");
2526
2529
  if (action === "created") {
2527
2530
  stdout(
2528
2531
  `[cleargate init] Created .mcp.json (cleargate MCP server registered) \u2014 restart Claude Code to load it.