md-feedback 1.5.2 → 1.5.3

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.
@@ -87,4 +87,4 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
87
87
  `),g=h.split(`
88
88
  `),v=[],x=0,b=0,S=!1;for(;b<g.length;){let F=g[b].match(/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/);if(!F){b++;continue}S=!0;let B=Number(F[1])-1;if(B<x||B>p.length)throw new Cr(`Invalid patch hunk range for ${_}`,{file:_});for(v.push(...p.slice(x,B)),x=B,b++;b<g.length&&!g[b].startsWith("@@ ");){let G=g[b];if(G.startsWith("\")){b++;continue}let me=G[0],ne=G.slice(1);if(me===" "){if(x>=p.length||p[x]!==ne)throw new Cr(`Patch context mismatch in ${_}`,{file:_});v.push(ne),x++}else if(me==="-"){if(x>=p.length||p[x]!==ne)throw new Cr(`Patch delete mismatch in ${_}`,{file:_});x++}else if(me==="+")v.push(ne);else throw new Cr(`Unsupported patch line in ${_}: "${G}"`,{file:_});b++}}if(!S)throw new Cr(`Invalid unified diff for ${_}: no hunks found`,{file:_});return v.push(...p.slice(x)),v.join(`
89
89
  `)}return{safeRead:o,safeWrite:s,splitWithSidecar:i,mergeAndWrite:a,listDocuments:c,wrapTool:l,ensureDefaultGate:d,updateCursorFromMemos:m,applyUnifiedDiff:y}}function nv(t,e,r){let n=rv({workspace:e,log:r});Q_(t,n),X_(t,{safeRead:n.safeRead,safeWrite:n.safeWrite,wrapTool:n.wrapTool,ensureDefaultGate:n.ensureDefaultGate,updateCursorFromMemos:n.updateCursorFromMemos,applyUnifiedDiff:n.applyUnifiedDiff})}function Ss(t){process.stderr.write(`[md-feedback] ${t}
90
- `)}function uI(){return tv(process.argv,process.env)}var ov=uI(),sv=new ha({name:"md-feedback",version:"1.5.2"});nv(sv,ov,Ss);async function lI(){let t=new ya;await sv.connect(t);let e=ov||process.cwd();Oa(e,{annotatedOnly:!1,maxFiles:200}).length===0&&Ss(`warning: no markdown files found in workspace=${e}. create/open a .md file to use annotation tools.`),Ss(`v1.5.2 ready (stdio) workspace=${e}`)}lI().catch(t=>{Ss(`fatal: ${t}`),process.exit(1)});0&&(module.exports={log});
90
+ `)}function uI(){return tv(process.argv,process.env)}var ov=uI(),sv=new ha({name:"md-feedback",version:"1.5.3"});nv(sv,ov,Ss);async function lI(){let t=new ya;await sv.connect(t);let e=ov||process.cwd();Oa(e,{annotatedOnly:!1,maxFiles:200}).length===0&&Ss(`warning: no markdown files found in workspace=${e}. create/open a .md file to use annotation tools.`),Ss(`v1.5.3 ready (stdio) workspace=${e}`)}lI().catch(t=>{Ss(`fatal: ${t}`),process.exit(1)});0&&(module.exports={log});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "md-feedback",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "MCP server for markdown plan review — companion to the MD Feedback VS Code extension. AI agents read annotations, mark tasks done, evaluate quality gates, and generate session handoffs. 27 tools for Claude Code, Cursor, and other MCP-compatible clients.",
5
5
  "license": "SUL-1.0",
6
6
  "author": "Yeomin Seon",