@pathmode/mcp-server 1.16.1 → 1.16.2

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/index.js CHANGED
@@ -35007,6 +35007,7 @@ exports.readLocalIntents = readLocalIntents;
35007
35007
  exports.readIntentMeta = readIntentMeta;
35008
35008
  exports.readIntentFile = readIntentFile;
35009
35009
  exports.parseIntentMarkdown = parseIntentMarkdown;
35010
+ exports.stripHtmlComments = stripHtmlComments;
35010
35011
  const fs_1 = __importDefault(__nccwpck_require__(9896));
35011
35012
  const path_1 = __importDefault(__nccwpck_require__(6928));
35012
35013
  const gray_matter_1 = __importDefault(__nccwpck_require__(9599));
@@ -35162,7 +35163,7 @@ function frontmatterEdgeCases(v) {
35162
35163
  }
35163
35164
  function parseIntentMarkdown(content, fallbackId = 'intent') {
35164
35165
  const { data, content: rawBody } = (0, gray_matter_1.default)(content);
35165
- const body = stripFencedBlocks(rawBody);
35166
+ const body = stripHtmlComments(stripFencedBlocks(rawBody));
35166
35167
  const sections = splitSections(body);
35167
35168
  const parsedVerification = extractVerification(sections);
35168
35169
  // The public schema allows verification as a flat string array; read it as manual checks
@@ -35245,6 +35246,28 @@ function stripFencedBlocks(body) {
35245
35246
  }
35246
35247
  return out.join('\n');
35247
35248
  }
35249
+ /**
35250
+ * Remove HTML comments before any structural parsing. Template scaffolds ship guidance inside
35251
+ * `<!-- ... -->`, and it is invisible when the markdown renders, so a reader that treats it as
35252
+ * content is reading something the author never wrote.
35253
+ *
35254
+ * Found by running the published preflight over an untouched `pathmode-intent` scaffold: the
35255
+ * Objective section held only a comment explaining what an objective is, that comment named "a
35256
+ * role, a team, an operator, an agent", and those actor words carried it past
35257
+ * `isObjectiveSpecific`. The scaffold reported a PASSING objective nobody had written. A first-run
35258
+ * verdict that praises an empty template is worse than one that blocks, because it is confidently
35259
+ * wrong at exactly the moment a new user is deciding whether to trust the tool at all.
35260
+ *
35261
+ * Applied AFTER `stripFencedBlocks`, so a `<!--` appearing as example content inside a fence is
35262
+ * already gone and cannot open a comment that eats real prose. An unterminated comment swallows
35263
+ * the rest of the document, matching both the fence rule above and what a markdown renderer does:
35264
+ * the parser reads what the author sees.
35265
+ */
35266
+ function stripHtmlComments(body) {
35267
+ const withoutClosed = body.replace(/<!--[\s\S]*?-->/g, '');
35268
+ const dangling = withoutClosed.indexOf('<!--');
35269
+ return dangling === -1 ? withoutClosed : withoutClosed.slice(0, dangling);
35270
+ }
35248
35271
  function splitSections(body) {
35249
35272
  const sections = new Map();
35250
35273
  let current = null;
@@ -67240,7 +67263,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"$schema":"http://json-schema.org/dra
67240
67263
  /***/ ((module) => {
67241
67264
 
67242
67265
  "use strict";
67243
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@pathmode/mcp-server","version":"1.16.1","publishConfig":{"access":"public"},"mcpName":"io.github.pathmodeio/mcp-server","description":"Deterministic intent preflight before your agent builds: six calibrated gates, keyless, no model call. Draft and sharpen specs in conversation, or connect a Pathmode workspace to sync intent and evidence across a team.","main":"dist/index.js","bin":{"pathmode-mcp":"dist/index.js"},"files":["dist/","manifest.json","icon.svg","README.md","skills/"],"scripts":{"build":"rm -rf dist && ncc build src/index.ts -o dist","dev":"ts-node src/index.ts","prepublishOnly":"npm run build"},"keywords":["pathmode","mcp","model-context-protocol","claude-code","claude-code-skills","agent-skills","cursor","windsurf","intent-engineering","intent-compiler","ai-agents","product-development","dependency-graph","strategic-planning"],"author":"Pathmode","license":"MIT","type":"commonjs","engines":{"node":">=18.0.0"},"homepage":"https://pathmode.io","dependencies":{"@modelcontextprotocol/sdk":"^1.12.1","gray-matter":"^4.0.3","zod":"^3.24.0"},"devDependencies":{"@types/node":"^25.1.0","@vercel/ncc":"^0.38.4","ts-node":"^10.9.2","typescript":"^5.9.3"}}');
67266
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@pathmode/mcp-server","version":"1.16.2","publishConfig":{"access":"public"},"mcpName":"io.github.pathmodeio/mcp-server","description":"Deterministic intent preflight before your agent builds: six calibrated gates, keyless, no model call. Draft and sharpen specs in conversation, or connect a Pathmode workspace to sync intent and evidence across a team.","main":"dist/index.js","bin":{"pathmode-mcp":"dist/index.js"},"files":["dist/","manifest.json","icon.svg","README.md","skills/"],"scripts":{"build":"rm -rf dist && ncc build src/index.ts -o dist","dev":"ts-node src/index.ts","prepublishOnly":"npm run build"},"keywords":["pathmode","mcp","model-context-protocol","claude-code","claude-code-skills","agent-skills","cursor","windsurf","intent-engineering","intent-compiler","ai-agents","product-development","dependency-graph","strategic-planning"],"author":"Pathmode","license":"MIT","type":"commonjs","engines":{"node":">=18.0.0"},"homepage":"https://pathmode.io","dependencies":{"@modelcontextprotocol/sdk":"^1.12.1","gray-matter":"^4.0.3","zod":"^3.24.0"},"devDependencies":{"@types/node":"^25.1.0","@vercel/ncc":"^0.38.4","ts-node":"^10.9.2","typescript":"^5.9.3"}}');
67244
67267
 
67245
67268
  /***/ })
67246
67269
 
@@ -106,4 +106,22 @@ export declare function readIntentMeta(filePath: string): LocalIntentMeta | null
106
106
  */
107
107
  export declare function readIntentFile(filePath: string): LocalIntent | null;
108
108
  export declare function parseIntentMarkdown(content: string, fallbackId?: string): LocalIntent;
109
+ /**
110
+ * Remove HTML comments before any structural parsing. Template scaffolds ship guidance inside
111
+ * `<!-- ... -->`, and it is invisible when the markdown renders, so a reader that treats it as
112
+ * content is reading something the author never wrote.
113
+ *
114
+ * Found by running the published preflight over an untouched `pathmode-intent` scaffold: the
115
+ * Objective section held only a comment explaining what an objective is, that comment named "a
116
+ * role, a team, an operator, an agent", and those actor words carried it past
117
+ * `isObjectiveSpecific`. The scaffold reported a PASSING objective nobody had written. A first-run
118
+ * verdict that praises an empty template is worse than one that blocks, because it is confidently
119
+ * wrong at exactly the moment a new user is deciding whether to trust the tool at all.
120
+ *
121
+ * Applied AFTER `stripFencedBlocks`, so a `<!--` appearing as example content inside a fence is
122
+ * already gone and cannot open a comment that eats real prose. An unterminated comment swallows
123
+ * the rest of the document, matching both the fence rule above and what a markdown renderer does:
124
+ * the parser reads what the author sees.
125
+ */
126
+ export declare function stripHtmlComments(body: string): string;
109
127
  //# sourceMappingURL=local-reader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"local-reader.d.ts","sourceRoot":"","sources":["file:///Users/jannelammi/code/Pathmode/packages/mcp-server/src/local-reader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,QAAQ,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,MAAM,CAAC;AAE1G,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wGAAwG;AACxG,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAC9B,MAAM,CAAC,EAAE,sBAAsB,EAAE,CAAC;IAClC,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,kBAAkB,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAA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;CACxB;AAID;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,WAAW,EAAE,CAmBhD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAevE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAUnE;AAoDD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,SAAW,GAAG,WAAW,CAuCvF"}
1
+ {"version":3,"file":"local-reader.d.ts","sourceRoot":"","sources":["file:///Users/jannelammi/code/Pathmode/packages/mcp-server/src/local-reader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,QAAQ,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,MAAM,CAAC;AAE1G,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wGAAwG;AACxG,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAC9B,MAAM,CAAC,EAAE,sBAAsB,EAAE,CAAC;IAClC,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,E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AE,MAAM,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;6EACyE;IACzE,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAID;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,WAAW,EAAE,CAmBhD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAevE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAUnE;AAoDD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,SAAW,GAAG,WAAW,CAuCvF;AA+CD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAItD"}
package/manifest.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "manifest_version": "0.3",
3
3
  "name": "pathmode",
4
4
  "display_name": "Pathmode",
5
- "version": "1.16.1",
5
+ "version": "1.16.2",
6
6
  "description": "Deterministic preflight for the intent you hand to a coding agent: six calibrated gates, the exact blockers named, no model call, no key needed.",
7
7
  "long_description": "Pathmode MCP Server runs a deterministic preflight before your coding agent builds: check_intent_readiness scores an intent spec against six calibrated gates (title, objective, outcomes, constraints, edge cases, verification) and names the exact blockers, with no model call and no account. Keyless local mode works out of the box; specs live in intent.md in your repo, plain markdown you own, and skills for drafting, pressure-testing, and handing off intent ride along. Connect a Pathmode workspace with an API key to sync intent and evidence across a team, analyze dependency graphs, and verify pull requests against the outcomes you agreed to.",
8
8
  "author": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathmode/mcp-server",
3
- "version": "1.16.1",
3
+ "version": "1.16.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },