navori 0.2.22 → 0.2.23

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -228,7 +228,7 @@ ${o}`}function af(e,t){return e.match(new RegExp(`${t}="([^"]+)"`))?.[1]??null}f
228
228
  `:`
229
229
 
230
230
  `;return{output:e+T+A+`
231
- `,status:"created",details:E}}let l=sf(u.content),d=u.existingHash,p=d!==null&&d!==l,m=u.existingVersion!==null&&i.version!==void 0&&u.existingVersion!==i.version,v=sb(u.existingVersion,i.version),k={existingHash:d,actualHash:l,newHash:s,existingVersion:u.existingVersion,existingSource:u.existingSource,versionDrift:m,downgrade:v};if(c===u.content)return d===s&&u.existingVersion===(i.version??null)&&u.existingSource===(i.source??null)?{output:e,status:"unchanged",details:k}:v&&!a?{output:e,status:"unchanged",details:k}:{output:e.slice(0,u.openStart)+lb(t,s,i,o)+e.slice(u.openEnd,u.closeEnd),status:"updated",details:k};if(v&&!a)return{output:e,status:"downgrade-skipped",details:k};if(p&&!a)return{output:e,status:"user-modified-skipped",details:k};let R=ub(t,s,i,o,c);return{output:e.slice(0,u.openStart)+R+e.slice(u.closeEnd),status:"updated",details:k}}function Ft(e,t,r="html"){let i=No(r),n=uf(e,t,i);if(!n)return e;let a=n.closeEnd;return e[a]===`
231
+ `,status:"created",details:E}}let l=sf(u.content),d=u.existingHash,p=d!==null&&d!==l,m=u.existingVersion!==null&&i.version!==void 0&&u.existingVersion!==i.version,v=sb(u.existingVersion,i.version),k={existingHash:d,actualHash:l,newHash:s,existingVersion:u.existingVersion,existingSource:u.existingSource,versionDrift:m,downgrade:v};if(c===u.content)return d===s&&u.existingVersion===(i.version??null)&&u.existingSource===(i.source??null)?{output:e,status:"unchanged",details:k}:v&&!a?{output:e,status:"unchanged",details:k}:{output:e.slice(0,u.openStart)+lb(t,s,i,o)+e.slice(u.openEnd,u.closeEnd)+e.slice(u.closeEnd),status:"updated",details:k};if(v&&!a)return{output:e,status:"downgrade-skipped",details:k};if(p&&!a)return{output:e,status:"user-modified-skipped",details:k};let R=ub(t,s,i,o,c);return{output:e.slice(0,u.openStart)+R+e.slice(u.closeEnd),status:"updated",details:k}}function Ft(e,t,r="html"){let i=No(r),n=uf(e,t,i);if(!n)return e;let a=n.closeEnd;return e[a]===`
232
232
  `&&a++,e.slice(0,n.openStart)+e.slice(a)}function bs(e,t,r="html"){let i=No(r),n=uf(e,t,i);return n?n.content:null}function cf(e,t){let r=new RegExp(`${zo(t.openPrefix)}\\s+id="([^"]+)"${t.attrsAndTerminatorPattern}`,"g"),i=[];for(let n of e.matchAll(r)){if(n.index===void 0)continue;let a=n[1],o=ys(a,t),s=e.indexOf(o,n.index+n[0].length);s<0||i.push({id:a,openStart:n.index,closeEnd:s+o.length})}return i}function $s(e,t,r="html"){let i=No(r),n=cf(e,i);if(n.length<2)return{output:e,reordered:!1,blockedByInterleaving:!1};let a=new Map;t.forEach((v,k)=>{a.has(v)||a.set(v,k)});let o=t.length,s=n.map((v,k)=>({b:v,i:k,key:a.has(v.id)?a.get(v.id):o+k})).sort((v,k)=>v.key-k.key||v.i-k.i).map(v=>v.b);if(s.every((v,k)=>v===n[k]))return{output:e,reordered:!1,blockedByInterleaving:!1};for(let v=0;v<n.length-1;v++)if(e.slice(n[v].closeEnd,n[v+1].openStart).trim()!=="")return{output:e,reordered:!1,blockedByInterleaving:!0};let u=n[0],c=n[n.length-1],l=e.slice(0,u.openStart),d=e.slice(c.closeEnd),p=s.map(v=>e.slice(v.openStart,v.closeEnd)).join(`
233
233
 
234
234
  `);return{output:(l===""?"":l.replace(/\n*$/,`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "navori",
3
- "version": "0.2.22",
3
+ "version": "0.2.23",
4
4
  "description": "Multi-agent harness + SDD scaffolder for Claude Code and other AI engines",
5
5
  "type": "module",
6
6
  "bin": {