@code-partner/codepipe 0.14.1-dev.296.g08005df7 → 0.14.1-dev.297.gf8f1222b

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 +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- var Dv=Object.defineProperty;var x=(t,e)=>()=>(t&&(e=t(t=0)),e);var Ne=(t,e)=>{for(var r in e)Dv(t,r,{get:e[r],enumerable:!0})};var et,bt,$a=x(()=>{"use strict";et="0.14.1-dev.296.g08005df7",bt="https://hub.dev.codepipe.dev"});function mo(t){return typeof t!="number"||!Number.isFinite(t)?!1:t>=Rd&&t<=kt}var kt,Rd,Td=x(()=>{"use strict";$a();kt=4,Rd=4});var Id=x(()=>{"use strict";$a()});function ho(t=6){return`# CodePipe Context Repo format version.
2
+ var Dv=Object.defineProperty;var x=(t,e)=>()=>(t&&(e=t(t=0)),e);var Ne=(t,e)=>{for(var r in e)Dv(t,r,{get:e[r],enumerable:!0})};var et,bt,$a=x(()=>{"use strict";et="0.14.1-dev.297.gf8f1222b",bt="https://hub.dev.codepipe.dev"});function mo(t){return typeof t!="number"||!Number.isFinite(t)?!1:t>=Rd&&t<=kt}var kt,Rd,Td=x(()=>{"use strict";$a();kt=4,Rd=4});var Id=x(()=>{"use strict";$a()});function ho(t=6){return`# CodePipe Context Repo format version.
3
3
  # Bumped by the scaffold / the format-migration PR \u2014 do not edit by hand.
4
4
  template_version: ${t}
5
5
  `}function Sa(t){if(!t)return 0;let e=/^\s*template_version:\s*(\d+)\s*$/m.exec(t),r=e?parseInt(e[1]??"",10):NaN;return Number.isFinite(r)&&r>=0?r:0}function Ea(t,e=xa){let r=[];for(let n of e)if(!(n.version<=t))for(let o of n.addedPaths)r.includes(o)||r.push(o);return r}function Ra(t,e=xa){return e.filter(r=>r.version>t)}var Cd,vt,ln,xa,Pd=x(()=>{"use strict";Cd=6,vt=".codepipe-context.yaml",ln=".devpipe-context.yaml",xa=[{version:1,summary:"ADR section: adr/ scaffold (README, template, derived INDEX) + the format-version stamp itself",addedPaths:["adr/README.md","adr/0000-template.md","adr/INDEX.md",vt]},{version:2,summary:"Rename the format-version stamp .devpipe-context.yaml \u2192 .codepipe-context.yaml (drop the devpipe-brand leftover)",addedPaths:[vt]},{version:3,summary:"Custom project actions (the RUN tab): actions/ scaffold with the format README",addedPaths:["actions/README.md"]},{version:4,summary:"Project map: model/ scaffold with the format README (facts/ vs derived/ layout)",addedPaths:["model/README.md"]},{version:5,summary:"Roles: roles/ scaffold with the format README (override a bundled critic by name, or add your own)",addedPaths:["roles/README.md"]},{version:6,summary:"Skills: skills/ scaffold with the format README (procedures the agent invokes instead of improvising)",addedPaths:["skills/README.md"]}]});function yo(t){return`model/facts/identity/${t}.yaml`}function Ir(t){return`model/facts/events/${t}.yaml`}function Ca(t){return`model/facts/annotations/${t}.md`}function Pa(t){return`model/derived/correlates/${t}.yaml`}function Aa(t){return`model/derived/touched/${t}.yaml`}function Ad(t){return t===""?"root":t.replace(/\//g,"-")}function _a(t,e){return`model/derived/structure/${t}/${Ad(e)}.yaml`}function ki(t){return typeof t=="string"&&jd.test(t)}function ne(t){if(typeof t!="string")return null;let e=t.indexOf(":");if(e<=0)return null;let r=t.indexOf(":",e+1);if(r<0)return null;let n=t.slice(0,e);if(!_d.includes(n))return null;let o=t.slice(e+1,r),i=t.slice(r+1);return o===""&&!Kv.includes(n)||i===""?null:{level:n,repo:o,path:i}}function Ee(t){return`task::${t}`}function ye(t,e,r){return`${t}:${e}:${r}`}function wo(t){let e=[];return Pt(t)?($i(t.modelFormatVersion)||e.push("modelFormatVersion: missing or not a positive integer"),typeof t.repo!="string"&&e.push("repo: missing (empty string = cross-repo)"),typeof t.builtFromCommit!="string"&&e.push("builtFromCommit: missing"),Array.isArray(t.edges)?t.edges.forEach((r,n)=>{if(!Pt(r)){e.push(`edges[${n}]: not an object`);return}ja.includes(r.kind)||e.push(`edges[${n}].kind: unknown "${String(r.kind)}"`),ne(r.from)||e.push(`edges[${n}].from: malformed nodeKey`),ne(r.to)||e.push(`edges[${n}].to: malformed nodeKey`),r.weight!==void 0&&!(typeof r.weight=="number"&&Number.isFinite(r.weight))&&e.push(`edges[${n}].weight: not a finite number`)}):e.push("edges: not an array"),e.length?{ok:!1,errors:e}:{ok:!0,value:t}):{ok:!1,errors:["edge sheet: not an object"]}}function Nd(t){return{...t,edges:un(t.edges,e=>`${e.kind} ${e.from} ${e.to}`)}}function Cr(t){return Ar(Nd(t))}function Pt(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function $i(t){return typeof t=="number"&&Number.isInteger(t)&&t>0}function $t(t){return typeof t=="string"&&t.length>0}function Wv(t){return t.modelFormatVersion!==2}function Gt(t){let e=[];if(!Pt(t))return{ok:!1,errors:["shard: not an object"]};$i(t.modelFormatVersion)||e.push("modelFormatVersion: missing or not a positive integer"),$t(t.repo)||e.push("repo: missing or empty"),$t(t.builtFromCommit)||e.push("builtFromCommit: missing or empty");let r=typeof t.repo=="string"?t.repo:"",n=new Set;return Array.isArray(t.nodes)?t.nodes.forEach((o,i)=>{if(!Pt(o)){e.push(`nodes[${i}]: not an object`);return}let s=ne(o.key);if(!s){e.push(`nodes[${i}].key: malformed nodeKey (${JSON.stringify(o.key??null)})`);return}o.level!==s.level&&e.push(`nodes[${i}]: level "${String(o.level)}" does not match key prefix "${s.level}"`),r&&s.repo!==r&&e.push(`nodes[${i}].key: repo "${s.repo}" mixed into shard of repo "${r}"`);let a=o.key;n.has(a)&&e.push(`nodes[${i}].key: duplicate "${a}"`),n.add(a),o.entityId!==void 0&&!ki(o.entityId)&&e.push(`nodes[${i}].entityId: malformed (${JSON.stringify(o.entityId)})`)}):e.push("nodes: not an array"),Array.isArray(t.edges)?t.edges.forEach((o,i)=>{if(!Pt(o)){e.push(`edges[${i}]: not an object`);return}ja.includes(o.kind)||e.push(`edges[${i}].kind: unknown "${String(o.kind)}"`),(!$t(o.to)||!ne(o.to))&&e.push(`edges[${i}].to: malformed nodeKey`),(!$t(o.from)||!n.has(o.from))&&e.push(`edges[${i}].from: "${String(o.from)}" is not a node of this shard`),o.weight!==void 0&&!(typeof o.weight=="number"&&Number.isFinite(o.weight))&&e.push(`edges[${i}].weight: not a finite number`)}):e.push("edges: not an array"),e.length?{ok:!1,errors:e}:{ok:!0,value:t}}function bo(t){let e=[];if(!Pt(t))return{ok:!1,errors:["identity: not an object"]};if($i(t.modelFormatVersion)||e.push("modelFormatVersion: missing or not a positive integer"),$t(t.repo)||e.push("repo: missing or empty"),t.builtFromCommit!==void 0&&!$t(t.builtFromCommit)&&e.push("builtFromCommit: not a non-empty string"),!Array.isArray(t.entities))e.push("entities: not an array");else{let r=new Set;t.entities.forEach((n,o)=>{if(!Pt(n)){e.push(`entities[${o}]: not an object`);return}ki(n.entityId)?r.has(n.entityId)?e.push(`entities[${o}].entityId: duplicate "${n.entityId}"`):r.add(n.entityId):e.push(`entities[${o}].entityId: malformed (${JSON.stringify(n.entityId??null)})`),ne(n.currentKey)||e.push(`entities[${o}].currentKey: malformed nodeKey`),n.status!=="active"&&n.status!=="orphaned"&&e.push(`entities[${o}].status: expected active|orphaned`),$t(n.firstSeen)||e.push(`entities[${o}].firstSeen: missing`),$t(n.lastSeen)||e.push(`entities[${o}].lastSeen: missing`),n.aliases!==void 0&&(Array.isArray(n.aliases)?n.aliases.forEach((i,s)=>{(!Pt(i)||!ne(i.key)||!$t(i.until))&&e.push(`entities[${o}].aliases[${s}]: malformed`)}):e.push(`entities[${o}].aliases: not an array`))})}return e.length?{ok:!1,errors:e}:{ok:!0,value:t}}function Kt(t){let e=[];return Pt(t)?($i(t.modelFormatVersion)||e.push("modelFormatVersion: missing or not a positive integer"),$t(t.taskKey)||e.push("taskKey: missing or empty"),t.origin!=="bootstrap"&&t.origin!=="pipeline"&&e.push("origin: expected bootstrap|pipeline"),t.date!==void 0&&!(typeof t.date=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t.date))&&e.push("date: expected YYYY-MM-DD"),(!Array.isArray(t.commits)||t.commits.some(r=>!$t(r)))&&e.push("commits: not an array of non-empty strings"),Array.isArray(t.files)?t.files.forEach((r,n)=>{if(!Pt(r)||!ne(r.key)){e.push(`files[${n}].key: malformed nodeKey`);return}r.entityId!==void 0&&!ki(r.entityId)&&e.push(`files[${n}].entityId: malformed`),r.churn!==void 0&&!(typeof r.churn=="number"&&r.churn>=0)&&e.push(`files[${n}].churn: not a non-negative number`)}):e.push("files: not an array"),e.length?{ok:!1,errors:e}:{ok:!0,value:t}):{ok:!1,errors:["event: not an object"]}}function un(t,e){return[...t].sort((r,n)=>e(r)<e(n)?-1:e(r)>e(n)?1:0)}function Od(t){return{...t,nodes:un(t.nodes,e=>e.key),edges:un(t.edges,e=>`${e.kind}\0${e.from}\0${e.to}`)}}function Ld(t){return{...t,entities:un(t.entities,e=>e.entityId).map(e=>e.aliases?{...e,aliases:un(e.aliases,r=>`${r.key}\0${r.until}`)}:e)}}function Md(t){let e=t.links?{...t.links,...t.links.adr?{adr:[...t.links.adr].sort()}:{},...t.links.tasks?{tasks:[...t.links.tasks].sort()}:{}}:void 0;return{...t,commits:[...t.commits].sort(),files:un(t.files,r=>r.key),...e?{links:e}:{}}}function go(t){return qv.test(t)?t:JSON.stringify(t)}function Dd(t){if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number"){if(!Number.isFinite(t))throw new Error(`model yaml: non-finite number ${t}`);return JSON.stringify(t)}if(typeof t=="string")return JSON.stringify(t);throw new Error(`model yaml: unsupported scalar ${typeof t}`)}function Ud(t){return t===null||["boolean","number","string"].includes(typeof t)}function Ta(t){return Object.entries(t).filter(([,e])=>e!==void 0).sort(([e],[r])=>e<r?-1:e>r?1:0)}function Bd(t,e,r){if(Array.isArray(t)){for(let n of t)if(Ud(n))r.push(`${e}- ${Dd(n)}`);else{if(Array.isArray(n))throw new Error("model yaml: nested arrays are not part of the model schema");{let o=Ta(n);if(o.length===0){r.push(`${e}- {}`);continue}o.forEach(([i,s],a)=>{let c=a===0?`${e}- `:`${e} `;Ia(i,s,c,`${e} `,r)})}}return}for(let[n,o]of Ta(t))Ia(n,o,e,e,r)}function Ia(t,e,r,n,o){if(Ud(e))o.push(`${r}${go(t)}: ${Dd(e)}`);else if(Array.isArray(e))e.length===0?o.push(`${r}${go(t)}: []`):(o.push(`${r}${go(t)}:`),Bd(e,`${n} `,o));else{let i=Ta(e);if(i.length===0)o.push(`${r}${go(t)}: {}`);else{o.push(`${r}${go(t)}:`);for(let[s,a]of i)Ia(s,a,`${n} `,`${n} `,o)}}}function Ar(t){let e=[];return Bd(t,"",e),e.join(`
@@ -705,9 +705,9 @@ council:
705
705
  # their written opinions. It costs several agent runs per use, so every
706
706
  # switch below is OFF by default; enable per phase deliberately.
707
707
  #
708
- # Convene a council over an agent's blocking questions (full automation's
709
- # night answerer). Off = the answering session works alone, which keeps the
710
- # pipeline moving cheaply.
708
+ # Convene a council over an agent's blocking questions when they are being
709
+ # answered automatically (silent runs and the unattended conveyor). Off =
710
+ # the answering session works alone, which keeps the pipeline moving cheaply.
711
711
  questions: false
712
712
  # Convene a council on code review: the project's critic roles each review
713
713
  # the change in their own process, and the reviewer session weighs their
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-partner/codepipe",
3
- "version": "0.14.1-dev.296.g08005df7",
3
+ "version": "0.14.1-dev.297.gf8f1222b",
4
4
  "description": "CodePipe turns tasks into reviewed pull requests: an AI agent analyzes, implements, and opens a PR under your control.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",