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/MANIFEST.json
CHANGED
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.
|
|
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
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
}
|
|
2059
|
-
|
|
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 =
|
|
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.
|