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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "cleargate_version": "0.8.0",
3
- "generated_at": "2026-04-27T08:53:26.701Z",
2
+ "cleargate_version": "0.8.1",
3
+ "generated_at": "2026-04-27T09:03:42.064Z",
4
4
  "files": [
5
5
  {
6
6
  "path": ".claude/agents/architect.md",
package/dist/cli.cjs CHANGED
@@ -627,7 +627,7 @@ var import_commander = require("commander");
627
627
  // package.json
628
628
  var package_default = {
629
629
  name: "cleargate",
630
- version: "0.8.0",
630
+ version: "0.8.1",
631
631
  private: false,
632
632
  type: "module",
633
633
  description: "Planning framework for Claude Code agents \u2014 sprint/epic/story protocol, four-agent loop (architect/developer/qa/reporter), Karpathy-style awareness wiki.",
@@ -2052,13 +2052,16 @@ function mergeMcpJson(existing, entry) {
2052
2052
  next.mcpServers = servers;
2053
2053
  return JSON.stringify(next, null, 2) + "\n";
2054
2054
  }
2055
- var STDIO_ENTRY = {
2056
- command: "cleargate",
2057
- args: ["mcp", "serve"]
2058
- };
2059
- function injectMcpJson(cwd, _unusedUrl) {
2055
+ function buildStdioEntry(pinVersion) {
2056
+ return {
2057
+ command: "npx",
2058
+ args: ["-y", `cleargate@${pinVersion}`, "mcp", "serve"]
2059
+ };
2060
+ }
2061
+ var STDIO_ENTRY_DEFAULT = buildStdioEntry("latest");
2062
+ function injectMcpJson(cwd, pinVersion = "latest") {
2060
2063
  const dst = path8.join(cwd, ".mcp.json");
2061
- const entry = STDIO_ENTRY;
2064
+ const entry = buildStdioEntry(pinVersion);
2062
2065
  let existing = null;
2063
2066
  let existingRaw = null;
2064
2067
  if (fs8.existsSync(dst)) {
@@ -3166,7 +3169,7 @@ async function initHandler(opts = {}) {
3166
3169
  `);
3167
3170
  }
3168
3171
  try {
3169
- const action = injectMcpJson(cwd);
3172
+ const action = injectMcpJson(cwd, pinVersion ?? "latest");
3170
3173
  if (action === "created") {
3171
3174
  stdout(
3172
3175
  `[cleargate init] Created .mcp.json (cleargate MCP server registered) \u2014 restart Claude Code to load it.