@maind-dev/cli 0.89.0 → 0.89.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/build/index.js CHANGED
@@ -231,7 +231,7 @@ maind: and re-run \`maind launch claude\`. (Or launch without routing: \`maind l
231
231
  `,stderr:""}}let n=["maind: dry-run \u2014 nothing installed, written, or spawned.",`maind: config ${e.configPath} (${e.configSource})`,`maind: switchyard detected: ${e.switchyardDetected?"yes":"no"}`,`maind: would run: ${e.argv.join(" ")}`].join(`
232
232
  `);return{stdout:e.toml??`(using existing config: ${e.configPath})
233
233
  `,stderr:n+`
234
- `}}a(tg,"renderDryRun");import{createRequire as H0}from"node:module";function G0(){return"0.89.0";try{return H0(import.meta.url)("../package.json").version}catch{return"0.0.0-unknown"}}a(G0,"resolveVersion");var Q=G0();var Q0=5e3;function ve(e){process.stderr.write(`maind: ${e}
234
+ `}}a(tg,"renderDryRun");import{createRequire as H0}from"node:module";function G0(){return"0.89.1";try{return H0(import.meta.url)("../package.json").version}catch{return"0.0.0-unknown"}}a(G0,"resolveVersion");var Q=G0();var Q0=5e3;function ve(e){process.stderr.write(`maind: ${e}
235
235
  `)}a(ve,"err");function eA(e){return e instanceof Error?e.message:String(e)}a(eA,"msg");var tA=new Set(["--config","--route","--mcp-url"]);function rg(e){let t=a(o=>{let i=e.indexOf(o);if(!(i===-1||i+1>=e.length))return e[i+1]},"get"),n=a(o=>e.includes(o),"has"),r=null;for(let o=0;o<e.length;o++){let i=e[o];if(i.startsWith("-")){tA.has(i)&&o++;continue}r=i;break}return{agent:r,dryRun:n("--dry-run"),config:t("--config")??null,route:t("--route")??Kh,direct:n("--direct"),noFallback:n("--no-fallback"),noInstall:n("--no-install"),json:n("--json"),mcpUrl:t("--mcp-url")??null}}a(rg,"parseLaunchArgs");var nA={probe(e,t){let n=ng(e,t,{stdio:["ignore","pipe","pipe"],encoding:"utf8",timeout:1e4}),r=n.status===0&&!n.error,o=typeof n.stdout=="string"?n.stdout.trim():"";return{ok:r,stdout:o.length>0?o:null}},install(e){return ng("uv",[...e],{stdio:["ignore","inherit","inherit"]}).status},spawnInteractive(e){let t=Date.now();return new Promise(n=>{let r=!1,o=V0(e[0],e.slice(1),{stdio:"inherit",env:process.env}),i=a(()=>{},"onSigint"),s=a(d=>()=>{try{o.kill(d)}catch{}},"makeForward"),l=s("SIGTERM"),c=s("SIGHUP");process.on("SIGINT",i),process.on("SIGTERM",l),process.on("SIGHUP",c);let u=a(()=>{process.removeListener("SIGINT",i),process.removeListener("SIGTERM",l),process.removeListener("SIGHUP",c)},"cleanup");o.on("error",d=>{r||(r=!0,u(),n({code:null,signal:null,elapsedMs:Date.now()-t,spawnError:d.message}))}),o.on("exit",(d,f)=>{r||(r=!0,u(),n({code:d,signal:f,elapsedMs:Date.now()-t,spawnError:null}))})})},async fetchTemplate(e,t){let n;try{n=Z()}catch(r){if(r instanceof oe)return null;throw r}try{let r=new se({apiKey:n.apiKey,deviceId:n.deviceId,clientVersion:Q,mcpUrl:e??void 0,projectKey:t}),o=new Promise(s=>{setTimeout(()=>s(null),Q0).unref()}),i=r.callTool("get_template",{template_id:Hh}).then(s=>typeof s.template_body=="string"&&s.template_body.trim().length>0?s.template_body:null).catch(()=>null);return await Promise.race([i,o])}catch{return null}},writeConfig(e,t){let n=Z0(e);n&&n!=="."&&z0(n,{recursive:!0}),X0(e,t,"utf8")},readFile(e){try{return Y0(e,"utf8")}catch{return null}},fileExists(e){return q0(e)},repoRoot(){try{let e=W0("git",["rev-parse","--show-toplevel"],{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:5e3}).trim();return e.length>0?e:null}catch{return null}},projectKey(){return $e().projectKey},userConfigDir(){return Zr()},homeDir(){return J0()},env:process.env,platform:process.platform};function rA(e,t){return e!==null?xl(e,".maind",hl):xl(t,hl)}a(rA,"resolveRoutesPath");async function og(e,t=nA){let n=Gh(e.agent);if(n.kind==="unknown")return ve(`usage: maind launch <agent> [--dry-run] [--config <path>] [--route <name>] [--direct] [--no-fallback] [--no-install] \u2014 supported: ${gl.join(", ")}`),2;if(n.kind==="planned")return ve(`agent '${n.agent}' is planned but not yet supported \u2014 v1 supports: ${gl.join(", ")}.`),2;if(e.json&&!e.dryRun)return ve("--json is only valid together with --dry-run (stdout belongs to the agent session)."),2;let r=n.agent;if(e.direct)return ve(eg()),ig(t,kl(r));let o=Vh(t.env);o.warning!==null&&ve(o.warning);let i,s,l;if(e.config!==null){if(!t.fileExists(e.config))return ve(`config not found: ${e.config}`),2;let f=t.readFile(e.config);if(f===null||zh(f,e.route)===null)return ve(`config ${e.config} is not valid routes TOML with a [routes.${e.route}] entry.`),2;i=e.config,s=null,l="flag"}else{let f=await t.fetchTemplate(e.mcpUrl,t.projectKey()),p=f===null?null:qh(f,e.route);if(s=Wh(e.route,o,p),p!==null)l="template";else{l="builtin";let h=f===null?"no curated template (offline, unauthenticated, or not published)":`curated template unusable (missing route '${e.route}', or it pins its own targets)`;ve(`using builtin routing policy (${h}).`)}i=rA(t.repoRoot(),t.userConfigDir())}let c=Zo,u=t.probe(Zo,["--version"]).ok;if(e.dryRun){let f={agent:r,configPath:i,configSource:l,toml:s,argv:_l(c,r,e.route,i),backendKind:o.kind,switchyardDetected:u},p=tg(f,e.json);return p.stderr.length>0&&process.stderr.write(p.stderr),process.stdout.write(p.stdout),0}if(!u){if(e.noInstall)return ve(`switchyard not found (--no-install). Install it with:
236
236
  maind: ${Qo}`),1;if(!t.probe("uv",["--version"]).ok)return ve(Jh()),1;if(ve(Xh()),t.install(Bh),t.probe(Zo,["--version"]).ok)u=!0;else{let f=xl(t.homeDir(),".local","bin",t.platform==="win32"?"switchyard.exe":"switchyard");t.probe(f,["--version"]).ok&&(c=f,u=!0)}if(!u)return vl(t,e,r,Zh())}if(l!=="flag"&&s!==null)try{t.writeConfig(i,s)}catch(f){return ve(`could not write ${i}: ${eA(f)}`),1}let d=await t.spawnInteractive(_l(c,r,e.route,i));return d.spawnError!==null?vl(t,e,r,`could not start switchyard (${d.spawnError})`):Yh(d.code,d.signal,d.elapsedMs)==="fallback-eligible"?vl(t,e,r,`switchyard exited with code ${d.code} after ${(d.elapsedMs/1e3).toFixed(1)}s`):wl(d.code,d.signal)}a(og,"runLaunch");async function vl(e,t,n,r){return t.noFallback?(ve(`${r} (--no-fallback set \u2014 not degrading to a direct spawn).`),1):(process.stderr.write(Qh(r)+`
237
237
  `),ig(e,kl(n)))}a(vl,"degradeOrFail");async function ig(e,t){let n=await e.spawnInteractive(t);return n.spawnError!==null?(ve(`'${t[0]}' not found on PATH \u2014 install the agent CLI first (${n.spawnError}).`),1):wl(n.code,n.signal)}a(ig,"spawnAndPropagate");import{execFileSync as _i}from"node:child_process";import{cpSync as LT,existsSync as Ql,mkdirSync as FT,readFileSync as UT,realpathSync as BT}from"node:fs";import{dirname as Xy,join as Uy,resolve as ec}from"node:path";function sg(e,t){if(e!==null)return e.trim()==="0"?{kind:"none",reason:"no required checks"}:{kind:"watch"};let n=t();return n===null?{kind:"unknown",reason:"neither query could be answered"}:n.trim()==="0"?{kind:"none",reason:"no checks at all"}:{kind:"unknown",reason:`${n.trim()} check(s) exist, but the required-query failed`}}a(sg,"classifyCheckCount");function ag(e){switch(e.kind){case"watch":return"";case"none":return e.reason==="no checks at all"?"this repository reports NO checks at all \u2014 the merge rests on the local gate alone.":"no required checks are configured \u2014 nothing to wait for.";case"unknown":return`could not establish the required checks: ${e.reason}.`}}a(ag,"checkCountLine");function ei(e){if(!e)return null;let t=e.indexOf("=");if(t<=0)return null;let n=e.slice(0,t).trim(),r=e.slice(t+1).trim();return!n||!r?null:{gate:n,object:r}}a(ei,"parseOverride");function oA(e){return e==="open"||e==="warn"}a(oA,"objectCarriesOverride");async function lg(e,t,n){let r=[];for(let i of e)t.has(i.gate)||r.push(`--override ${i.gate}: not a gate declared in .maind/gates.json \u2014 only declared gates take an override`+(t.size>0?` (declared: ${[...t].join(", ")})`:""));let o=new Map;for(let i of new Set(e.map(s=>s.object))){let s=null;try{s=await n(i)}catch{s=null}let l=s?.key??i;s===null?r.push(`--override \u2026=${i}: the object could not be resolved \u2014 no override without proof that it is open`):oA(s.status)?o.set(i,s):r.push(`--override \u2026=${l}: the object is ${s.status} \u2014 it no longer tracks a red gate`)}return r.length>0?{kind:"refused",lines:r}:{kind:"ok",resolved:o}}a(lg,"checkOverrides");function cg(e,t,n){let r=new Map(t.map(c=>[c.gate,c])),o=[],i=e.map(c=>{let u=r.get(c.id);if(!u)return c;let d=n.get(u.object);return!d||c.verdict!=="fail"||!c.blocking?c:(o.push({gate:c.id,object:d}),{...c,blocking:!1,note:`red, accepted \u2014 tracked by ${d.key??d.id}`})}),s=new Set(o.map(c=>c.gate)),l=t.filter(c=>!s.has(c.gate)).map(c=>({gate:c.gate,verdict:e.find(u=>u.id===c.gate)?.verdict??"absent"}));return{results:i,used:o,unused:l}}a(cg,"applyOverrides");function ug(e){return e.map(t=>t.verdict==="absent"?`--override ${t.gate}: the gate did not run \u2014 nothing was accepted`:`--override ${t.gate}: the gate is ${t.verdict==="pass"?"green":t.verdict}, not red \u2014 nothing was accepted, nothing recorded`)}a(ug,"unusedOverrideLines");var Er="MAIND_GATE_OBJECT_REASON",iA=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;function sA(e){if(e===null)return!1;let t=e.trim();return t.length<4?!1:!["1","true","yes","on","skip"].includes(t.toLowerCase())}a(sA,"isReason");function ti(e){let t=aA(e);return t.kind!=="linked"&&sA(e.overrideReason)?{kind:"overridden",reason:e.overrideReason.trim()}:t}a(ti,"classifyWorkObject");function aA(e){if(e.branch===null)return{kind:"detached"};let t=e.objectId?.trim()??"";return t.length===0?{kind:"missing",branch:e.branch}:iA.test(t)?{kind:"linked",objectId:t,objectKey:e.objectKey?.trim()||null,planRevision:e.planRevision?.trim()||null}:{kind:"malformed",branch:e.branch,value:t}}a(aA,"judge");function ni(e){return e.kind==="linked"||e.kind==="overridden"}a(ni,"workObjectPasses");function dg(e,t){let n=a(r=>[" Link it, or say why not:",` git config branch.${r}.maindObject <object-uuid>`,` ${t}="<reason>" maind gate`],"fix");switch(e.kind){case"linked":{let r=`work object: ${e.objectKey?`${e.objectKey} \u2014 `:""}${e.objectId}`;return e.planRevision?[r,` plan attached (rev ${e.planRevision})`]:[r," no plan attached (ADR-334) \u2014 advisory, never a failure. Attach the accepted plan:",` maind object plan --object ${e.objectId} --file <plan.md>`]}case"overridden":return[`work object check overridden \u2014 reason: ${e.reason}`];case"missing":return[`branch ${e.branch} has no linked work object.`,...n(e.branch)];case"malformed":return[`branch ${e.branch}: "${e.value}" is not an object id.`," The check reads the id, never the display key \u2014 a key can be renamed, an id cannot.",...n(e.branch)];case"detached":return["detached HEAD \u2014 this check needs a branch to read the link from."]}}a(dg,"workObjectLines");function fg(e,t){let n=e!==null&&e.trim().length>0;return t==="closes"?{kind:"decided",completes:!0}:t==="progress"?{kind:"decided",completes:!1}:n?{kind:"missing",objectId:e.trim()}:{kind:"decided",completes:!1}}a(fg,"decideCompletion");function pg(e,t){return[`${e} is bound to work object ${t}, and the merge will be reported there.`,"Does this pull request FINISH that object? Say so \u2014 neither answer is assumed:"," --closes-object it does: the merge is reported as completion"," --progress-only one step of several: the merge is logged, the object stays open","Nothing was merged."]}a(pg,"missingCompletionLines");function mg(e){if(!e.required)return null;let t=ti({branch:e.branch,objectId:e.boundObject,objectKey:null,overrideReason:e.overrideReason,planRevision:null});return ni(t)?null:[`${e.branch} has no linked work object, and this repository's gates require one (requireWorkObject, ADR-286).`,"The gate would refuse it at the very end \u2014 so it was not started. Either:"," bind it: maind object bind --object <uuid>",` or say why not: ${ri}="<reason>" ${e.promoteCommand} --yes`,"Nothing was merged."]}a(mg,"unboundObjectLines");var ri=Er;function hg(e,t){let n=e.replace(/\/+$/,""),r=t.replace(/\/+$/,"");return n===r||n.startsWith(`${r}/`)}a(hg,"cwdInside");async function gg(e,t){if(e!==null&&e.trim().length>0)return{kind:"bound",objectId:e.trim()};let n=t.prNumber(),r=t.slug();if(n===null||r===null)return{kind:"unbound"};let o=`github:${r}#${n}`,i=null;try{i=await t.lookup(o)}catch{i=null}return i===null?{kind:"unbound"}:(t.write(i.id,i.key),{kind:"recovered",objectId:i.id,key:i.key,ref:o})}a(gg,"recoverBinding");async function yg(e,t){let n=t.prNumber(),r=t.slug();if(n===null||r===null)return{kind:"no-pr"};let o=`github:${r}#${n}`,i=null;try{i=await t.lookup(o)}catch{i=null}return i!==null?i.id===e?{kind:"already",ref:o}:{kind:"mismatch",ref:o,other:i}:(await t.link(e,o),{kind:"link-attempted",ref:o})}a(yg,"ensurePrLinked");import{readFileSync as lA}from"node:fs";import{join as cA}from"node:path";var on=".maind/gates.json";function Sl(e){let t=[];if(e===null||typeof e!="object"||Array.isArray(e))return{problems:["the manifest must be a JSON object"]};let n=e,r=n.gates;if(r===void 0)return{problems:['the manifest needs a "gates" array']};if(!Array.isArray(r))return{problems:['"gates" must be an array']};let o=[],i=new Set;r.forEach((h,b)=>{let _=`gates[${b}]`;if(h===null||typeof h!="object"||Array.isArray(h)){t.push(`${_} must be an object`);return}let g=h,y=g.id;if(typeof y!="string"||y.trim().length===0){t.push(`${_}.id must be a non-empty string`);return}if(i.has(y)){t.push(`${_}.id "${y}" is declared more than once`);return}i.add(y);let k=g.run;if(typeof k!="string"||k.trim().length===0){t.push(`${_}.run must be a non-empty command string`);return}let w=!0;if("blocking"in g&&g.blocking!==void 0&&g.blocking!==null){if(typeof g.blocking!="boolean"){t.push(`${_}.blocking must be a boolean`);return}w=g.blocking}let R,E=g.when;if(E!=null){if(typeof E!="object"||Array.isArray(E)){t.push(`${_}.when must be an object`);return}let v=E.paths;if(v!=null){if(!Array.isArray(v)||v.some(x=>typeof x!="string"||x.trim().length===0)){t.push(`${_}.when.paths must be an array of non-empty path prefixes`);return}R=v}}o.push({id:y,run:k,blocking:w,...R?{paths:R}:{}})});let s=[],l=n.versionedPackages!==void 0,c=n.versionedPackages;if(c!==void 0)if(!Array.isArray(c))t.push('"versionedPackages" must be an array');else{let h=new Set;c.forEach((b,_)=>{let g=`versionedPackages[${_}]`;if(b===null||typeof b!="object"||Array.isArray(b)){t.push(`${g} must be an object`);return}let y=b,k=y.dir;if(typeof k!="string"||k.trim().length===0){t.push(`${g}.dir must be a non-empty path`);return}if(h.has(k)){t.push(`${g}.dir "${k}" is declared more than once`);return}h.add(k);let w=y.mirror;if(w!==void 0&&(typeof w!="string"||w.trim().length===0)){t.push(`${g}.mirror must be a non-empty path relative to dir`);return}let R=y.changelog;if(R!==void 0&&typeof R!="boolean"){t.push(`${g}.changelog must be a boolean`);return}s.push({dir:k.replace(/\/+$/,""),changelog:R??!0,...typeof w=="string"?{mirror:w}:{}})})}let u=!1,d=n.requireWorkObject;d!==void 0&&(typeof d!="boolean"?t.push('"requireWorkObject" must be a boolean'):u=d);let f=!1,p=n.review;return p!==void 0&&(typeof p!="boolean"?t.push('"review" must be a boolean'):f=p),t.length>0?{problems:t}:{gates:o,versioned:s,versionedDeclared:l,requireWorkObject:u,review:f}}a(Sl,"parseGatesManifest");function oi(e){let t=cA(e,on),n;try{n=lA(t,"utf8")}catch{return{kind:"absent",gates:[],versioned:[],versionedDeclared:!1,requireWorkObject:!1,review:!1}}let r;try{r=JSON.parse(n)}catch(i){return{kind:"invalid",path:t,problems:[`not valid JSON: ${i.message}`]}}let o=Sl(r);return"problems"in o?{kind:"invalid",path:t,problems:o.problems}:{kind:"loaded",gates:o.gates,versioned:o.versioned,versionedDeclared:o.versionedDeclared,requireWorkObject:o.requireWorkObject,review:o.review,path:t}}a(oi,"loadGatesManifest");function uA(e){return/^[A-Za-z0-9_./-]+$/.test(e)?e:`'${e.replace(/'/g,"'\\''")}'`}a(uA,"shellQuote");function dA(e,t){let n=t.replace(/^\/+|\/+$/g,"");return n.length===0?e:`${e.replace(/\/+$/,"")}/${n}`}a(dA,"joinAbs");function fA(e){return e.endsWith("/")?e:`${e}/`}a(fA,"withPrefix");function pA(e){let t=new Set;for(let r of e){let o=/^((?:[^/]+\/)*?)supabase\/(?:migrations|functions)\//.exec(r);o&&t.add(o[1])}let n=[];for(let r of[...t].sort()){let o=r.replace(/\/$/,"");n.push({when:`${r}supabase/migrations/`,run:"supabase db push",cwd:o}),n.push({when:`${r}supabase/functions/`,run:"supabase functions deploy {name}",cwd:o,each:"dir"})}return n}a(pA,"defaultPostMergeSteps");function bg(e,t,n){let r=e.map(s=>s.trim()).filter(s=>s.length>0),o=t??pA(r),i=[];for(let s of o){let l=fA(s.when),c=r.filter(h=>h.startsWith(l));if(c.length===0)continue;let u=`cd ${uA(dA(n,s.cwd??""))} && `,d=a((h,b)=>h===void 0?void 0:h.split("{name}").join(b),"fill");if(s.each!=="dir"){i.push({reason:`${c.length} file(s) under ${l}`+(s.note?` \u2014 ${s.note}`:""),command:s.run?u+s.run:null});continue}let f=[...new Set(c.map(h=>h.slice(l.length).split("/")[0]).filter(h=>h.length>0))].sort();for(let h of f.filter(b=>!b.startsWith("_"))){let b=d(s.note,h),_=d(s.run,h);i.push({reason:`${l}${h}/ changed`+(b?` \u2014 ${b}`:""),command:_?u+_:null})}let p=f.filter(h=>h.startsWith("_"));p.length>0&&i.push({reason:`${p.map(h=>`${l}${h}/`).join(", ")} changed \u2014 shared code, no target of its own: redeploy what imports it`,command:null})}return i}a(bg,"postMergeActions");function _g(e,t){if(e.length===0)return[];let n=[`the merge on ${t} needs steps it did not run \u2014 they are yours (nothing was executed):`];for(let r of e)n.push(` \u2022 ${r.reason}`),r.command&&n.push(` ${r.command}`);return n}a(_g,"postMergeLines");import{readFileSync as Rg}from"node:fs";import{join as Eg}from"node:path";var Rl={branchPrefix:"feat/",remote:"origin",baseBranch:null,postCreate:[],postMerge:null},Ar=".maind/feature.json";function El(e){return!e||e.trim().length===0?"a feature name is required":e.startsWith("-")?`"${e}" must not start with a dash`:e.includes("..")?`"${e}" must not contain ".."`:/^[A-Za-z0-9._-]+$/.test(e)?null:`"${e}" may only contain letters, digits, dot, underscore and dash`}a(El,"validateFeatureName");function ii(e,t){return`${e.replace(/[/\\]+$/,"")}-${t}`}a(ii,"worktreePathFor");function Al(e,t){return`${e.branchPrefix}${t}`}a(Al,"branchFor");function kg(e){return!e||e.trim().length===0?"a branch name is required":e.startsWith("-")?`"${e}" must not start with a dash`:e.includes("..")?`"${e}" must not contain ".."`:e.startsWith("/")||e.endsWith("/")||e.includes("//")?`"${e}" must not start or end with "/" or contain "//"`:e.endsWith(".lock")||e.endsWith(".")?`"${e}" must not end with ".lock" or "."`:/^[A-Za-z0-9._/-]+$/.test(e)?null:`"${e}" may only contain letters, digits, dot, underscore, dash and slash`}a(kg,"validateBranchName");function mA(e,t){return ii(e,t.replace(/\//g,"-"))}a(mA,"worktreePathForBranch");function sn(e,t){return t.byBranch?`maind feature ${e} --branch ${t.branch}`:`maind feature ${e} ${t.label}`}a(sn,"featureCommand");function wg(e,t){if(t.branch!==void 0){let o=kg(t.branch);if(o)return{kind:"invalid",reason:o};let i=e.worktreeList(t.repoRoot),s=i[0]?.path??null,l=i.find(c=>c.branch===t.branch);return l&&(l.path===s||l.path===t.repoRoot)?{kind:"invalid",reason:`${t.branch} is checked out in the main checkout (${l.path}) \u2014 ship/promote/done work on a branch in its own worktree`}:{kind:"ok",target:{label:t.branch,branch:t.branch,worktree:l?.path??mA(t.repoRoot,t.branch),byBranch:!0}}}let n=t.name??"",r=El(n);return r?{kind:"invalid",reason:r}:{kind:"ok",target:{label:n,branch:Al(t.cfg,n),worktree:ii(t.repoRoot,n),byBranch:!1}}}a(wg,"resolveFeatureTarget");function vg(e,t){return e.worktreeAddExisting?e.exists(t.path)?{kind:"path-exists",path:t.path}:(e.fetch(t.repoRoot,t.remote),!e.branchExists(t.repoRoot,t.branch)&&!e.refExists(t.repoRoot,`${t.remote}/${t.branch}`)?{kind:"no-branch",branch:t.branch,remote:t.remote}:e.worktreeAddExisting(t.repoRoot,t.path,t.branch)?{kind:"ok",path:t.path,branch:t.branch}:{kind:"worktree-failed",path:t.path,branch:t.branch}):{kind:"unsupported"}}a(vg,"planCheckout");function xg(e,t){let n=El(t.name);if(n)return{kind:"invalid-name",reason:n};let r=ii(t.repoRoot,t.name);if(e.exists(r))return{kind:"path-exists",path:r};let o=Al(t.cfg,t.name);if(e.branchExists(t.repoRoot,o))return{kind:"branch-exists",branch:o};let i=t.cfg.baseBranch??e.defaultBranch(t.repoRoot);if(!i)return{kind:"no-base-branch"};e.fetch(t.repoRoot,t.cfg.remote);let s=`${t.cfg.remote}/${i}`;return e.refExists(t.repoRoot,s)?e.worktreeAdd(t.repoRoot,r,o,s)?{kind:"ok",path:r,branch:o,startPoint:s,provisioned:t.requirements}:{kind:"worktree-failed",path:r,branch:o}:{kind:"start-point-missing",startPoint:s,remote:t.cfg.remote}}a(xg,"planStart");function Tl(e,t){if(t.target){let l=kg(t.target.branch);if(l)return{kind:"invalid-name",reason:l}}else{let l=El(t.name);if(l)return{kind:"invalid-name",reason:l}}let n=t.target?.worktree??ii(t.repoRoot,t.name),r=t.target?.branch??Al(t.cfg,t.name),o=!1;if(e.exists(n)){if(e.isDirty(n)!==!1)return{kind:"dirty",path:n};if(!e.worktreeRemove(t.repoRoot,n))return{kind:"remove-failed",path:n};o=!0}if(!e.branchExists(t.repoRoot,r))return{kind:"ok",removedWorktree:o,deletedBranch:!1};if(e.branchDelete(t.repoRoot,r,!1))return{kind:"ok",removedWorktree:o,deletedBranch:!0,via:"fast-forward"};let i=e.branchHead(t.repoRoot,r),s=e.mergedPr(t.repoRoot,r);return s?s.state!=="MERGED"?{kind:"branch-unverified",branch:r,reason:`PR state is ${s.state}, not MERGED`}:!i||!s.headSha||s.headSha!==i?{kind:"branch-unverified",branch:r,reason:`the merged PR's head (${s.headSha??"unknown"}) is not the local head (${i??"unknown"})`}:e.branchDelete(t.repoRoot,r,!0)?{kind:"ok",removedWorktree:o,deletedBranch:!0,via:"squash-proof"}:{kind:"branch-unverified",branch:r,reason:"git refused to delete the branch"}:{kind:"branch-unverified",branch:r,reason:"no merged PR found for this branch"}}a(Tl,"planDone");function Sg(e,t){let n=[];for(let r of e.worktreeList(t.repoRoot))!r.branch||!r.branch.startsWith(t.cfg.branchPrefix)||n.push({name:r.branch.slice(t.cfg.branchPrefix.length),branch:r.branch,path:r.path});return n.sort((r,o)=>r.name.localeCompare(o.name))}a(Sg,"listFeatureWorktrees");function hA(e){let t=[];if(e===null||typeof e!="object"||Array.isArray(e))return{problems:["the manifest must be a JSON object"]};let n=e,r={...Rl},o=a((i,s)=>{if(!(i in n)||n[i]===void 0||n[i]===null)return;let l=n[i];if(typeof l!="string"){t.push(`"${i}" must be a string, got ${si(l)}`);return}if(!s&&l.trim().length===0){t.push(`"${i}" must not be empty`);return}r[i]=l},"str");if(o("branchPrefix",!1),o("remote",!1),"baseBranch"in n&&n.baseBranch!==void 0){let i=n.baseBranch;i===null?r.baseBranch=null:typeof i=="string"&&i.trim().length>0?r.baseBranch=i:t.push(`"baseBranch" must be a non-empty string or null, got ${si(i)}`)}if("postCreate"in n&&n.postCreate!==void 0&&n.postCreate!==null){let i=n.postCreate;!Array.isArray(i)||i.some(s=>typeof s!="string"||s.trim().length===0)?t.push(`"postCreate" must be an array of non-empty strings, got ${si(i)}`):r.postCreate=i}if("postMerge"in n&&n.postMerge!==void 0&&n.postMerge!==null){let i=n.postMerge,s=a(l=>{if(l===null||typeof l!="object"||Array.isArray(l))return!0;let c=l;if(typeof c.when!="string"||c.when.trim().length===0)return!0;let u=a(d=>typeof d=="string"&&d.trim().length>0,"nonEmpty");return!!(c.run!==void 0&&!u(c.run)||c.note!==void 0&&!u(c.note)||c.run===void 0&&c.note===void 0||c.cwd!==void 0&&typeof c.cwd!="string"||c.each!==void 0&&c.each!=="dir"||c.each!=="dir"&&[c.run,c.note].some(d=>typeof d=="string"&&d.includes("{name}")))},"bad");!Array.isArray(i)||i.some(s)?t.push(`"postMerge" must be an array of {when, run?, note?, cwd?, each?: "dir"} with a non-empty when and at least one of run/note ({name} only together with each: "dir"), got ${si(i)}`):r.postMerge=i.map(l=>({when:l.when,...typeof l.run=="string"?{run:l.run}:{},...typeof l.note=="string"?{note:l.note}:{},...typeof l.cwd=="string"?{cwd:l.cwd}:{},...l.each==="dir"?{each:"dir"}:{}}))}return t.length>0?{problems:t}:{cfg:r}}a(hA,"parseFeatureConfig");function si(e){return e===null?"null":Array.isArray(e)?"an array":typeof e}a(si,"describe");function Ag(e){let t=Eg(e,Ar),n;try{n=Rg(t,"utf8")}catch{return{kind:"defaults",cfg:{...Rl}}}let r;try{r=JSON.parse(n)}catch(i){return{kind:"invalid",path:t,problems:[`not valid JSON: ${i.message}`]}}let o=hA(r);return"problems"in o?{kind:"invalid",path:t,problems:o.problems}:{kind:"loaded",cfg:o.cfg,path:t}}a(Ag,"loadFeatureConfig");function gA(e){return e.split(`
@@ -379,7 +379,7 @@ exit: 0 verified \xB7 1 mismatch \xB7 3 stale, unverifiable or not available \xB
379
379
  `}a(hI,"summaryLine");async function bb(e,t=Tr){e.failOn&&!e.gate&&$r("--fail-on has no effect without --gate (advisory runs always exit 0).");let n=await Dn({cwd:process.cwd(),base:e.base,uncommitted:e.uncommitted,summary:e.summary,gate:e.gate,noReport:e.noReport,projectKey:e.projectKey,mcpUrl:e.mcpUrl,runRef:e.runRef,clientVersion:e.clientVersion,failOn:e.failOn,advisoryExtras:!0},t);for(let o of n.warnings)$r(o);if(n.status==="unavailable")return hb(n.meta,n.failure,e);if(e.strict&&n.gateFailure?.klass==="infra")return hb(n.meta,n.gateFailure,e);let r={out:e.out,comment:e.comment,json:e.json};if(Nr(n.review,n.verdict,n.meta,r),n.shortCircuited){let o=n.result;return process.stderr.write(`maind review: no reviewable symbols (${o.changedFiles} changed file(s), ${o.riskFlags.length} risk flag(s)) \u2192 ${e.out}
380
380
  `),0}return process.stderr.write(hI(n,e.out)),e.gate&&e.failOn&&n.verdict?.verdict&&lc(n.verdict.verdict,e.failOn)?($r(`verdict '${n.verdict.verdict}' crossed --fail-on ${e.failOn} \u2014 failing the check.`),1):0}a(bb,"runReview");import{execFileSync as Nk}from"node:child_process";import{appendFileSync as x$,readFileSync as Dk}from"node:fs";import{randomUUID as Ik}from"node:crypto";import{execFileSync as h_,spawn as fC}from"node:child_process";import{existsSync as pC,mkdirSync as mC,readFileSync as hC,writeFileSync as gC}from"node:fs";import{dirname as yC,join as cn}from"node:path";var _b=/^[A-Za-z][A-Za-z0-9._-]*$/,gI=/^[a-z][a-z0-9_.-]*[a-z0-9]$|^[a-z]$/,vi="?",yI=/^[A-Za-z_][A-Za-z0-9_]*=/,bI=new Set(["sudo","env","time","nohup","nice","command","exec"]),_I=new Set(["do","then","else","elif","if","while","until","!","{","("]),kI=new Set(["done","fi","esac","}",")","for","case","in","select","function","continue","break","return","exit"]),wI=new Set(["git","gh","npm","pnpm","yarn","npx","bun","deno","docker","kubectl","terraform","aws","gcloud","cargo","go","pip","poetry","uv","dotnet","mvn","supabase","vercel","brew","apt","systemctl"]);function Dr(e){let t=[];for(let n of cc(e)){let r=vI(n);r&&!t.includes(r)&&t.push(r)}return t}a(Dr,"shellPrograms");function cc(e){let t=[],n="",r=null,o=0,i=[],s=a(()=>{n.trim()&&t.push(n),n=""},"flush");for(;o<e.length;){let l=e[o];if(r){if(l==="\\"&&r==='"'){n+=l+(e[o+1]??""),o+=2;continue}l===r&&(r=null),n+=l,o+=1;continue}if(l==="'"||l==='"'){r=l,n+=l,o+=1;continue}if(l==="<"&&e[o+1]==="<"){let c=/^<<-?\s*(?:'([^']+)'|"([^"]+)"|([A-Za-z_][\w-]*))/.exec(e.slice(o));if(c){i.push(c[1]??c[2]??c[3]),n+=c[0],o+=c[0].length;continue}}if(l===`
381
381
  `){if(i.length>0){let u=e.slice(o+1).split(`
382
- `),d=0;for(;i.length>0&&d<u.length;)u[d].trim()===i[0]&&i.shift(),d+=1;o+=1+u.slice(0,d).reduce((f,p)=>f+p.length+1,0),i=[],s();continue}s(),o+=1;continue}if(l==="&"&&e[o+1]==="&"||l==="|"&&e[o+1]==="|"){s(),o+=2;continue}if(l===";"||l==="|"){s(),o+=1;continue}n+=l,o+=1}return s(),t}a(cc,"commandSegments");function vI(e){let t=e.trim().split(/\s+/).filter(Boolean),n=0;for(;;){let s=t[n];if(s===void 0)return null;if(yI.test(s)){n+=1;continue}if(_I.has(s)){n+=1;continue}if(kI.has(s))return null;let l=s.split("/").pop()??s;if(bI.has(l)){n+=1;continue}break}let r=t[n],o=r.split("/").pop()??r;if(!_b.test(o))return null;if(!gI.test(o))return vi;if(!wI.has(o))return o;let i=t[n+1];return i&&_b.test(i)?`${o} ${i}`:o}a(vI,"programOf");var kb=new Set(["echo","printf","cat","head","tail","less","more","grep","egrep","fgrep","rg","ag","sed","awk","cut","sort","uniq","wc","tr","tee","xargs","jq","yq","column","nl","diff","cmp","comm","ls","tree","find","fd","stat","file","du","df","basename","dirname","realpath","readlink","rm","cp","mv","mkdir","rmdir","touch","chmod","chown","ln","cd","pushd","popd","test","true","false","read","set","export","source","sleep","wait","which","whereis","type","date","printenv","ps","pgrep","lsof","kill","pkill","killall","id","whoami","uname","open","git log","git show","git status","git diff","git grep","git cat-file","git rev-parse","git ls-files","git blame","git branch","git remote","git config","git worktree","git stash","git merge-base","git describe","git reflog","git ls-remote","git for-each-ref","git symbolic-ref","git check-ignore"]);function uc(e){let t=Dr(e).filter(n=>n!==vi&&!kb.has(n));return t.length>0?t[t.length-1]:null}a(uc,"primaryVerb");var dc=8192,xI=[/\b[1-9]\d* (?:failed|failing)\b/,/^# fail [1-9]\d*/m,/\berror TS\d{4}\b/,/^npm ERR!/m,/\bERR_PNPM_[A-Z_]+/,/\bELIFECYCLE\b/,/\bCommand failed with exit code [1-9]/,/^Traceback \(most recent call last\):/m,/✖ [1-9]\d* problems? \([1-9]\d* errors?/,/^ERROR: {1,2}\S/m,/^--- FAIL: /m,/^error(?:\[E\d{4}\])?: /m,/^(?:Type|Reference|Syntax|Range)Error: /m,/^fatal: /m];function wb(e){let t=e.length>dc?e.slice(-dc):e;return xI.some(n=>n.test(t))}a(wb,"outputShowsFailure");var SI=["search_lessons","get_session_briefing","get_lesson","get_conventions","activate_skill","suggest_skills","codebase_change_briefing"];function fc(e){return e.includes("maind")?SI.some(t=>e.includes(t)):!1}a(fc,"isConsultationTool");var RI=["mcp__maind__","mcp__plugin_maind_maind__"];function vb(e){return e==="Bash"?!0:e.startsWith("mcp__")&&!RI.some(t=>e.startsWith(t))}a(vb,"isCountedTool");function xb(e,t){if(!vb(e))return null;if(e!=="Bash")return e;let n=t!==null&&typeof t=="object"?t.command:void 0;return typeof n=="string"?uc(n):null}a(xb,"verbOfCall");function pc(e){if(e.isInterrupt===!0||e.isSubagent===!0)return null;let t=xb(e.tool,e.input);return t===null?null:{kind:e.failed||e.tool==="Bash"&&typeof e.output=="string"&&wb(e.output)?"fail":"ok",verb:t}}a(pc,"observe");function Sb(e){let t=[...e].reverse().find(n=>typeof n.v=="string");return{start:e[0].t,end:e[e.length-1].t,failures:e,lastVerb:t?.v??null}}a(Sb,"chainOf");function Rb(e,t=-1/0){let n=e.filter(i=>i.k==="fail"&&i.t>t).slice().sort((i,s)=>i.t-s.t),r=[],o=[];for(let i of n)o.length>0&&i.t-o[o.length-1].t>6e5&&(r.push(Sb(o)),o=[]),o.push(i);return o.length>0&&r.push(Sb(o)),r}a(Rb,"failureChains");function Eb(e,t,n){if(t===null)return null;let r=null;for(let o of e)o.k==="ok"&&o.v===t&&o.t>n&&(r===null||o.t<r)&&(r=o.t);return r}a(Eb,"succeededAfter");function Ab(e,t){let n=t??-1/0;for(let r of e)r.k==="skip"&&r.t>n&&(n=r.t);return n}a(Ab,"resetPoint");function xi(e,t,n){let r=Ab(e,t),o=Rb(e,r),i=o.length>0?o[o.length-1]:null,s=i!==null&&n-i.end<=6e5?i:null;if(s===null)return{open:!1,chain:null,nudged:!1,resolved:!1};let l=Eb(e,s.lastVerb,s.end)!==null,c=e.some(u=>u.k==="nudge"&&u.t>=s.start);return{open:s.failures.length>=4&&!l,chain:s,nudged:c,resolved:l}}a(xi,"difficultyStatus");function mc(e){return e.open&&!e.nudged}a(mc,"shouldNudge");function jr(e){let t=new Map;for(let n of e.failures){let r=n.v??"?";t.set(r,(t.get(r)??0)+1)}return[...t.entries()].map(([n,r])=>r>1?`${n} \xD7${r}`:n).join(", ")}a(jr,"verbSummary");var Si="conv_consult_on_difficulty",hc="conv_learning_capture_offer",Ri={difficulty:null,capture:null},EI=new Set(["required","recommended","info"]);function AI(e){let t=e.id;if(typeof t!="string")return null;let n=e.version,r=typeof n=="number"&&Number.isInteger(n)&&n>=1?n:1,o=e.severity,i=typeof o=="string"&&EI.has(o)?o:"recommended",s=e.enabled!==!1;return{id:t,version:r,severity:i,enabled:s}}a(AI,"ruleOf");function gc(e){let t=Array.isArray(e)?e:e!==null&&typeof e=="object"?e.conventions:void 0;if(!Array.isArray(t))return Ri;let n=null,r=null;for(let o of t){if(o===null||typeof o!="object")continue;let i=AI(o);i!==null&&(i.id===Si?n=i:i.id===hc&&(r=i))}return{difficulty:n,capture:r}}a(gc,"extractTriggerPolicy");function Ei(e){return e!==null&&e.enabled}a(Ei,"isActive");function yc(e){return Ei(e)&&e.severity==="required"}a(yc,"isDenyCapable");function bc(e,t="guard"){return`[maind ${t}] Difficulty: ${e.failures.length} failed attempts in a row (${jr(e)}) and no maind consultation since they started (${Si}). Before the next attempt, consult maind: search_lessons with the symptom \u2014 error code, tool or library, the failing program \u2014 never paths, file contents or secrets. If a hit applies, use it; if none does, say so in one line and go on. This hint appears once per episode.`}a(bc,"nudgeText");function Ai(e){let t={briefing:e.briefing??"",conventions:[...e.conventions].map(n=>n.normalize("NFC")).sort(),task:e.task.normalize("NFC"),repoInstructions:e.repoInstructions.map(n=>n.normalize("NFC"))};return{digest:En(Jn(t)),partial:e.projectSettingsLoaded}}a(Ai,"contextDigest");import{join as Tb}from"node:path";function Cb(e){return["fetch","--quiet","--prune",e,`+refs/heads/*:refs/remotes/${e}/*`]}a(Cb,"fetchArgs");var Ib={name:"github-actions[bot]",email:"41898282+github-actions[bot]@users.noreply.github.com"};function TI(e){let t=/^([^<>\r\n\0]*[^<>\s\0])\s*<([^<>\s@\0]+@[^<>\s@\0]+)>$/.exec(e.trim());if(!t)return null;let n=t[1].trim();return n.length>0?{name:n,email:t[2]}:null}a(TI,"parseCommitAuthor");function Ob(e){let t=e.MAIND_COMMIT_AUTHOR?.trim()??"",n={...Ib,source:"default"};if(!t)return{identity:n,warning:null};let r=TI(t);return r?{identity:{...r,source:"MAIND_COMMIT_AUTHOR"},warning:null}:{identity:n,warning:`MAIND_COMMIT_AUTHOR is not of the form "Name <email>" \u2014 commits use ${Ib.name} instead.`}}a(Ob,"resolveCommitIdentity");function $b(e){return{GIT_AUTHOR_NAME:e.name,GIT_AUTHOR_EMAIL:e.email,GIT_COMMITTER_NAME:e.name,GIT_COMMITTER_EMAIL:e.email,GIT_CONFIG_COUNT:"2",GIT_CONFIG_KEY_0:"user.name",GIT_CONFIG_VALUE_0:e.name,GIT_CONFIG_KEY_1:"user.email",GIT_CONFIG_VALUE_1:e.email}}a($b,"identityEnv");var _c=10*6e4;function kc(e){return e?!e.timedOut&&e.exitCode===0?{kind:"ok"}:{kind:"failed",exitCode:e.exitCode,timedOut:e.timedOut}:{kind:"none"}}a(kc,"setupStateOf");function Nb(e,t){return e.timedOut?t==="de"?"nach dem Zeitlimit von 10 Minuten abgebrochen":"stopped at the 10-minute limit":e.exitCode===null?t==="de"?"konnte nicht gestartet werden":"could not be started":`exit ${e.exitCode}`}a(Nb,"setupFailureShort");var II=["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","ANTHROPIC_CUSTOM_HEADERS","MAIND_API_KEY","MAIND_PR_TOKEN","GITHUB_TOKEN","GH_TOKEN","ACTIONS_RUNTIME_TOKEN","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL"];function Db(e){let t=new Set(II),n={};for(let[r,o]of Object.entries(e))typeof o=="string"&&!t.has(r)&&(n[r]=o);return n}a(Db,"setupEnv");function jb(e){for(let t of["MAIND_PR_TOKEN","GITHUB_TOKEN","GH_TOKEN"]){let n=e[t]?.trim();if(n)return{token:n,source:t}}return null}a(jb,"resolvePrToken");function Mb(e){for(let t of["GITHUB_TOKEN","GH_TOKEN"]){let n=e[t]?.trim();if(n)return{token:n,source:t}}return null}a(Mb,"jobToken");function wc(e,t){return e==="app"||e==="MAIND_PR_TOKEN"?!0:t&&e==="GITHUB_TOKEN"?!1:null}a(wc,"ciStartsItself");function CI(e){return/^[a-z][a-z_]{0,39}$/.test(e)?e:"invalid_response"}a(CI,"appRefusalCode");function OI(e,t){let n=t&&typeof t=="object"?t:{};return n.ok===!0&&typeof n.number=="number"&&n.opened_with==="app"?{ok:!0,number:n.number,url:typeof n.url=="string"?n.url:null,recorded:n.recorded===!0}:n.ok===!1&&typeof n.error=="string"?{ok:!1,error:CI(n.error),...typeof n.number=="number"?{number:n.number,url:typeof n.url=="string"?n.url:null}:{},...typeof n.accept_url=="string"?{acceptUrl:n.accept_url}:{}}:{ok:!1,error:e===404||e===405?"unavailable":"invalid_response"}}a(OI,"appPrAnswerFrom");function Pb(e){let t=e.MAIND_DASHBOARD_URL?.trim();return`${(t&&t.length>0?t:"https://app.maind.dev").replace(/\/+$/,"")}/api/kernel/pr`}a(Pb,"kernelPrEndpoint");function Lb(e){return async t=>{if(!e.apiKey)return{ok:!1,error:"no_api_key"};let n;try{n=await e.fetchImpl(e.endpoint,{method:"POST",headers:{authorization:`Bearer ${e.apiKey}`,"content-type":"application/json","x-maind-client-family":"maind-cli","x-maind-client-version":e.clientVersion},body:JSON.stringify({session_id:t.sessionId,object_id:t.objectId,repo:t.repo,head:t.head,base:t.base,title:t.title,body:t.body}),signal:AbortSignal.timeout(e.timeoutMs??3e4)})}catch{return{ok:!1,error:"unreachable"}}let r=await n.json().catch(()=>null);return OI(n.status,r)}}a(Lb,"makeAppPrClient");function Ti(e,t){return(t==="de"?{app_permission_missing:"die Installation der MAIND-GitHub-App hat *Pull requests: write* und *Contents: read* noch nicht angenommen \u2014 ein Org-Owner best\xE4tigt die offene Rechte-Anfrage",no_installation:"die Organisation hat die MAIND-GitHub-App nicht verbunden",repo_not_installed:"die MAIND-GitHub-App ist f\xFCr dieses Repo nicht installiert",repo_not_allowed:"das Repo steht nicht in der Konnektor-Freigabe der Organisation",not_anchored:"das Objekt ist in diesem Repo nicht verankert"}:{app_permission_missing:"the MAIND GitHub app installation has not accepted Pull requests: write and Contents: read yet \u2014 an organization owner accepts the pending permission request",no_installation:"the organization has not connected the MAIND GitHub app",repo_not_installed:"the MAIND GitHub app is not installed on this repository",repo_not_allowed:"the repository is not in the organization's connector allowlist",not_anchored:"the object is not anchored in this repository"})[e]??(t==="de"?`der App-Weg antwortete \`${e}\``:`the app path answered \`${e}\``)}a(Ti,"appRefusalSentence");function $I(e){return["### CI ist nicht von selbst gestartet","","Diesen Pull Request hat der Kernel mit dem `GITHUB_TOKEN` des Workflow-Laufs ge\xF6ffnet, und f\xFCr Ereignisse dieses Tokens startet GitHub keine weiteren Workflows.",...e?["",`Der Weg \xFCber die MAIND-GitHub-App war nicht gangbar: ${Ti(e,"de")}.`]:[],"","- **Jetzt starten:** ein Push auf diesen Branch durch eine Person \u2014 oder den Pull Request schlie\xDFen und wieder \xF6ffnen.","- **Dauerhaft:** die MAIND-GitHub-App mit *Pull requests: write* und *Contents: read* (die Organisation best\xE4tigt die Rechte-Anfrage der Installation) \u2014 dann \xF6ffnet MAIND den Pull Request, und die CI startet von selbst. Oder ein Repo-Secret `MAIND_PR_TOKEN` (Personal Access Token oder App-Token mit *Contents* und *Pull requests: write*), mit dem der Kernel pusht und \xF6ffnet."].join(`
382
+ `),d=0;for(;i.length>0&&d<u.length;)u[d].trim()===i[0]&&i.shift(),d+=1;o+=1+u.slice(0,d).reduce((f,p)=>f+p.length+1,0),i=[],s();continue}s(),o+=1;continue}if(l==="&"&&e[o+1]==="&"||l==="|"&&e[o+1]==="|"){s(),o+=2;continue}if(l===";"||l==="|"){s(),o+=1;continue}n+=l,o+=1}return s(),t}a(cc,"commandSegments");function vI(e){let t=e.trim().split(/\s+/).filter(Boolean),n=0;for(;;){let s=t[n];if(s===void 0)return null;if(yI.test(s)){n+=1;continue}if(_I.has(s)){n+=1;continue}if(kI.has(s))return null;let l=s.split("/").pop()??s;if(bI.has(l)){n+=1;continue}break}let r=t[n],o=r.split("/").pop()??r;if(!_b.test(o))return null;if(!gI.test(o))return vi;if(!wI.has(o))return o;let i=t[n+1];return i&&_b.test(i)?`${o} ${i}`:o}a(vI,"programOf");var kb=new Set(["echo","printf","cat","head","tail","less","more","grep","egrep","fgrep","rg","ag","sed","awk","cut","sort","uniq","wc","tr","tee","xargs","jq","yq","column","nl","diff","cmp","comm","ls","tree","find","fd","stat","file","du","df","basename","dirname","realpath","readlink","rm","cp","mv","mkdir","rmdir","touch","chmod","chown","ln","cd","pushd","popd","test","true","false","read","set","export","source","sleep","wait","which","whereis","type","date","printenv","ps","pgrep","lsof","kill","pkill","killall","id","whoami","uname","open","git log","git show","git status","git diff","git grep","git cat-file","git rev-parse","git ls-files","git blame","git branch","git remote","git config","git worktree","git stash","git merge-base","git describe","git reflog","git ls-remote","git for-each-ref","git symbolic-ref","git check-ignore"]);function uc(e){let t=Dr(e).filter(n=>n!==vi&&!kb.has(n));return t.length>0?t[t.length-1]:null}a(uc,"primaryVerb");var dc=8192,xI=[/\b[1-9]\d* (?:failed|failing)\b/,/^# fail [1-9]\d*/m,/\berror TS\d{4}\b/,/^npm ERR!/m,/\bERR_PNPM_[A-Z_]+/,/\bELIFECYCLE\b/,/\bCommand failed with exit code [1-9]/,/^Traceback \(most recent call last\):/m,/✖ [1-9]\d* problems? \([1-9]\d* errors?/,/^ERROR: {1,2}\S/m,/^--- FAIL: /m,/^error(?:\[E\d{4}\])?: /m,/^(?:Type|Reference|Syntax|Range)Error: /m,/^fatal: /m];function wb(e){let t=e.length>dc?e.slice(-dc):e;return xI.some(n=>n.test(t))}a(wb,"outputShowsFailure");var SI=["search_lessons","get_session_briefing","get_lesson","get_conventions","activate_skill","suggest_skills","codebase_change_briefing"];function fc(e){return e.includes("maind")?SI.some(t=>e.includes(t)):!1}a(fc,"isConsultationTool");var RI=["mcp__maind__","mcp__plugin_maind_maind__"];function vb(e){return e==="Bash"?!0:e.startsWith("mcp__")&&!RI.some(t=>e.startsWith(t))}a(vb,"isCountedTool");function xb(e,t){if(!vb(e))return null;if(e!=="Bash")return e;let n=t!==null&&typeof t=="object"?t.command:void 0;return typeof n=="string"?uc(n):null}a(xb,"verbOfCall");function pc(e){if(e.isInterrupt===!0||e.isSubagent===!0)return null;let t=xb(e.tool,e.input);return t===null?null:{kind:e.failed||e.tool==="Bash"&&typeof e.output=="string"&&wb(e.output)?"fail":"ok",verb:t}}a(pc,"observe");function Sb(e){let t=[...e].reverse().find(n=>typeof n.v=="string");return{start:e[0].t,end:e[e.length-1].t,failures:e,lastVerb:t?.v??null}}a(Sb,"chainOf");function Rb(e,t=-1/0){let n=e.filter(i=>i.k==="fail"&&i.t>t).slice().sort((i,s)=>i.t-s.t),r=[],o=[];for(let i of n)o.length>0&&i.t-o[o.length-1].t>6e5&&(r.push(Sb(o)),o=[]),o.push(i);return o.length>0&&r.push(Sb(o)),r}a(Rb,"failureChains");function Eb(e,t,n){if(t===null)return null;let r=null;for(let o of e)o.k==="ok"&&o.v===t&&o.t>n&&(r===null||o.t<r)&&(r=o.t);return r}a(Eb,"succeededAfter");function Ab(e,t){let n=t??-1/0;for(let r of e)r.k==="skip"&&r.t>n&&(n=r.t);return n}a(Ab,"resetPoint");function xi(e,t,n){let r=Ab(e,t),o=Rb(e,r),i=o.length>0?o[o.length-1]:null,s=i!==null&&n-i.end<=6e5?i:null;if(s===null)return{open:!1,chain:null,nudged:!1,resolved:!1};let l=Eb(e,s.lastVerb,s.end)!==null,c=e.some(u=>u.k==="nudge"&&u.t>=s.start);return{open:s.failures.length>=4&&!l,chain:s,nudged:c,resolved:l}}a(xi,"difficultyStatus");function mc(e){return e.open&&!e.nudged}a(mc,"shouldNudge");function jr(e){let t=new Map;for(let n of e.failures){let r=n.v??"?";t.set(r,(t.get(r)??0)+1)}return[...t.entries()].map(([n,r])=>r>1?`${n} \xD7${r}`:n).join(", ")}a(jr,"verbSummary");var Si="conv_consult_on_difficulty",hc="conv_learning_capture_offer",Ri={difficulty:null,capture:null},EI=new Set(["required","recommended","info"]);function AI(e){let t=e.id;if(typeof t!="string")return null;let n=e.version,r=typeof n=="number"&&Number.isInteger(n)&&n>=1?n:1,o=e.severity,i=typeof o=="string"&&EI.has(o)?o:"recommended",s=e.enabled!==!1;return{id:t,version:r,severity:i,enabled:s}}a(AI,"ruleOf");function gc(e){let t=Array.isArray(e)?e:e!==null&&typeof e=="object"?e.conventions:void 0;if(!Array.isArray(t))return Ri;let n=null,r=null;for(let o of t){if(o===null||typeof o!="object")continue;let i=AI(o);i!==null&&(i.id===Si?n=i:i.id===hc&&(r=i))}return{difficulty:n,capture:r}}a(gc,"extractTriggerPolicy");function Ei(e){return e!==null&&e.enabled}a(Ei,"isActive");function yc(e){return Ei(e)&&e.severity==="required"}a(yc,"isDenyCapable");function bc(e,t="guard"){return`[maind ${t}] Difficulty: ${e.failures.length} failed attempts in a row (${jr(e)}) and no maind consultation since they started (${Si}). Before the next attempt, consult maind: search_lessons with the symptom \u2014 error code, tool or library, the failing program \u2014 never paths, file contents or secrets. If a hit applies, use it; if none does, say so in one line and go on. This hint appears once per episode.`}a(bc,"nudgeText");function Ai(e){let t={briefing:e.briefing??"",conventions:[...e.conventions].map(n=>n.normalize("NFC")).sort(),task:e.task.normalize("NFC"),repoInstructions:e.repoInstructions.map(n=>n.normalize("NFC"))};return{digest:En(Jn(t)),partial:e.projectSettingsLoaded}}a(Ai,"contextDigest");import{join as Tb}from"node:path";function Cb(e){return["fetch","--quiet","--prune",e,`+refs/heads/*:refs/remotes/${e}/*`]}a(Cb,"fetchArgs");var Ib={name:"github-actions[bot]",email:"41898282+github-actions[bot]@users.noreply.github.com"};function TI(e){let t=/^([^<>\r\n\0]*[^<>\s\0])\s*<([^<>\s@\0]+@[^<>\s@\0]+)>$/.exec(e.trim());if(!t)return null;let n=t[1].trim();return n.length>0?{name:n,email:t[2]}:null}a(TI,"parseCommitAuthor");function Ob(e){let t=e.MAIND_COMMIT_AUTHOR?.trim()??"",n={...Ib,source:"default"};if(!t)return{identity:n,warning:null};let r=TI(t);return r?{identity:{...r,source:"MAIND_COMMIT_AUTHOR"},warning:null}:{identity:n,warning:`MAIND_COMMIT_AUTHOR is not of the form "Name <email>" \u2014 commits use ${Ib.name} instead.`}}a(Ob,"resolveCommitIdentity");function $b(e){return{GIT_AUTHOR_NAME:e.name,GIT_AUTHOR_EMAIL:e.email,GIT_COMMITTER_NAME:e.name,GIT_COMMITTER_EMAIL:e.email,GIT_CONFIG_COUNT:"2",GIT_CONFIG_KEY_0:"user.name",GIT_CONFIG_VALUE_0:e.name,GIT_CONFIG_KEY_1:"user.email",GIT_CONFIG_VALUE_1:e.email}}a($b,"identityEnv");var _c=10*6e4;function kc(e){return e?!e.timedOut&&e.exitCode===0?{kind:"ok"}:{kind:"failed",exitCode:e.exitCode,timedOut:e.timedOut}:{kind:"none"}}a(kc,"setupStateOf");function Nb(e,t){return e.timedOut?t==="de"?"nach dem Zeitlimit von 10 Minuten abgebrochen":"stopped at the 10-minute limit":e.exitCode===null?t==="de"?"konnte nicht gestartet werden":"could not be started":`exit ${e.exitCode}`}a(Nb,"setupFailureShort");var II=["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","ANTHROPIC_CUSTOM_HEADERS","MAIND_API_KEY","MAIND_PR_TOKEN","GITHUB_TOKEN","GH_TOKEN","ACTIONS_RUNTIME_TOKEN","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL"];function Db(e){let t=new Set(II),n={};for(let[r,o]of Object.entries(e))typeof o=="string"&&!t.has(r)&&(n[r]=o);return n}a(Db,"setupEnv");function jb(e){for(let t of["MAIND_PR_TOKEN","GITHUB_TOKEN","GH_TOKEN"]){let n=e[t]?.trim();if(n)return{token:n,source:t}}return null}a(jb,"resolvePrToken");function Mb(e){for(let t of["GITHUB_TOKEN","GH_TOKEN"]){let n=e[t]?.trim();if(n)return{token:n,source:t}}return null}a(Mb,"jobToken");function wc(e,t){return e==="app"||e==="MAIND_PR_TOKEN"?!0:t&&e==="GITHUB_TOKEN"?!1:null}a(wc,"ciStartsItself");function CI(e){return/^[a-z][a-z_]{0,39}$/.test(e)?e:"invalid_response"}a(CI,"appRefusalCode");function OI(e,t,n=null){let r=t&&typeof t=="object"?t:{};if(r.ok===!0&&typeof r.number=="number"&&r.opened_with==="app")return{ok:!0,number:r.number,url:typeof r.url=="string"?r.url:null,recorded:r.recorded===!0};if(r.ok===!1&&typeof r.error=="string")return{ok:!1,error:CI(r.error),...typeof r.number=="number"?{number:r.number,url:typeof r.url=="string"?r.url:null}:{},...typeof r.accept_url=="string"?{acceptUrl:r.accept_url}:{}};if(e===404||e===405)return{ok:!1,error:"unavailable"};let o=(n??"").split(";")[0].trim().slice(0,40);return{ok:!1,error:"invalid_response",detail:`HTTP ${e}${o?` ${o}`:""}`}}a(OI,"appPrAnswerFrom");function Pb(e){let t=e.MAIND_DASHBOARD_URL?.trim();return`${(t&&t.length>0?t:"https://app.maind.dev").replace(/\/+$/,"")}/api/kernel/pr`}a(Pb,"kernelPrEndpoint");function Lb(e){return async t=>{if(!e.apiKey)return{ok:!1,error:"no_api_key"};let n;try{n=await e.fetchImpl(e.endpoint,{method:"POST",headers:{authorization:`Bearer ${e.apiKey}`,"content-type":"application/json","x-maind-client-family":"maind-cli","x-maind-client-version":e.clientVersion},body:JSON.stringify({session_id:t.sessionId,object_id:t.objectId,repo:t.repo,head:t.head,base:t.base,title:t.title,body:t.body}),signal:AbortSignal.timeout(e.timeoutMs??3e4),redirect:"manual"})}catch{return{ok:!1,error:"unreachable"}}let r=await n.json().catch(()=>null),o=OI(n.status,r,n.headers.get("content-type")),i=n.headers.get("location");if(!o.ok&&o.detail&&i){let s=i;try{let l=new URL(i,e.endpoint);s=`${l.host}${l.pathname}`}catch{s=i.slice(0,80)}return{...o,detail:`${o.detail} -> ${s}`}}return o}}a(Lb,"makeAppPrClient");function Ti(e,t){return(t==="de"?{app_permission_missing:"die Installation der MAIND-GitHub-App hat *Pull requests: write* und *Contents: read* noch nicht angenommen \u2014 ein Org-Owner best\xE4tigt die offene Rechte-Anfrage",no_installation:"die Organisation hat die MAIND-GitHub-App nicht verbunden",repo_not_installed:"die MAIND-GitHub-App ist f\xFCr dieses Repo nicht installiert",repo_not_allowed:"das Repo steht nicht in der Konnektor-Freigabe der Organisation",not_anchored:"das Objekt ist in diesem Repo nicht verankert"}:{app_permission_missing:"the MAIND GitHub app installation has not accepted Pull requests: write and Contents: read yet \u2014 an organization owner accepts the pending permission request",no_installation:"the organization has not connected the MAIND GitHub app",repo_not_installed:"the MAIND GitHub app is not installed on this repository",repo_not_allowed:"the repository is not in the organization's connector allowlist",not_anchored:"the object is not anchored in this repository"})[e]??(t==="de"?`der App-Weg antwortete \`${e}\``:`the app path answered \`${e}\``)}a(Ti,"appRefusalSentence");function $I(e){return["### CI ist nicht von selbst gestartet","","Diesen Pull Request hat der Kernel mit dem `GITHUB_TOKEN` des Workflow-Laufs ge\xF6ffnet, und f\xFCr Ereignisse dieses Tokens startet GitHub keine weiteren Workflows.",...e?["",`Der Weg \xFCber die MAIND-GitHub-App war nicht gangbar: ${Ti(e,"de")}.`]:[],"","- **Jetzt starten:** ein Push auf diesen Branch durch eine Person \u2014 oder den Pull Request schlie\xDFen und wieder \xF6ffnen.","- **Dauerhaft:** die MAIND-GitHub-App mit *Pull requests: write* und *Contents: read* (die Organisation best\xE4tigt die Rechte-Anfrage der Installation) \u2014 dann \xF6ffnet MAIND den Pull Request, und die CI startet von selbst. Oder ein Repo-Secret `MAIND_PR_TOKEN` (Personal Access Token oder App-Token mit *Contents* und *Pull requests: write*), mit dem der Kernel pusht und \xF6ffnet."].join(`
383
383
  `)}a($I,"ciNoticeSection");function Fb(e,t,n){return[`### maind: CI did not start for PR #${t} (${e})`,"","The kernel opened this pull request with the job's `GITHUB_TOKEN`, and GitHub starts no workflows for events created with that token.",...n?["",`The MAIND GitHub app path was not available: ${Ti(n,"en")}.`]:[],"","- **Start it now:** a push to the branch by a person, or close and reopen the pull request.","- **Make it automatic:** let the MAIND GitHub app open it \u2014 the installation needs Pull requests: write and Contents: read (an organization owner accepts the pending permission request). Or add the repository secret `MAIND_PR_TOKEN` (a personal access token or app token with Contents and Pull requests: write); the kernel then pushes and opens with it.",""].join(`
384
384
  `)}a(Fb,"ciNoticeSummary");var Ub="ci: not started \u2014 opened with the job's GITHUB_TOKEN; push or close/reopen the PR to start it, accept the MAIND app's pull-request permission or set MAIND_PR_TOKEN to make it automatic",Bb=["ScheduleWakeup","CronCreate","RemoteTrigger","Monitor"];function vc(e,t){let n=[],r=e?.backgroundTasks??0,o=e?.scheduledWakeups??0;return r>0&&n.push(`${r} background task(s) still running`),o>0&&n.push(`${o} wake-up(s) scheduled`),t>0&&n.push(`${t} call(s) to a wake-up/schedule tool`),n.length===0?null:`background work launched and not collected: ${n.join(", ")} \u2014 a kernel run ends when its turn ends, so nothing would ever collect it`}a(vc,"abandonedWorkReason");function Kb(e){return[`**Kernel run on ${e.key} ended without a pull request \u2014 nothing was handed over for review.**`,"",`- Outcome: \`${e.outcome}\``,`- Why: ${e.why}`,...e.branch?[`- Branch: \`${e.branch}\``]:[],`- Run: ${e.runRef?`\`${e.runRef}\` \xB7 `:""}CLI ${e.cliVersion}`].join(`
385
385
  `)}a(Kb,"noChangeReport");var NI=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,DI=/^[A-Z][A-Z0-9]*-\d{1,9}$/;function Hb(e,t){if(t)return{kind:"pull"};let n=(e??"").trim();if(!n)return null;if(NI.test(n))return{kind:"uuid",objectId:n.toLowerCase()};let r=n.toUpperCase();return DI.test(r)?{kind:"key",key:r}:null}a(Hb,"parseTarget");function Gb(e){return e.toLowerCase().replace(/[^a-z0-9-]+/g,"-")}a(Gb,"slugOfKey");var xc=20;function Sc(e,t,n){let r=jI(t,n),o=Tb(e,".."),i=e.replace(/\/+$/,"").split("/").pop()??"repo";return{branch:`agent/${r}`,worktree:Tb(o,`${i}-agent-${r}`),n}}a(Sc,"attemptFor");function jI(e,t){return Gb(e)+(t>1?`-${t}`:"")}a(jI,"attemptSlug");function Vb(e,t,n){let r=new Set(n);for(let o=1;o<=xc;o+=1){let i=Sc(e,t,o);if(!r.has(i.branch))return i}return null}a(Vb,"freeAttempt");function Wb(e){return`agent/${Gb(e)}`}a(Wb,"branchPrefixFor");function qb(e){let t=e.setup??{kind:"none"};return[`Du arbeitest an Planungsobjekt ${e.key} in einem eigenen Arbeitsbaum: ${e.worktree} (Branch ${e.branch}, abgezweigt von ${e.baseBranch}). Alle \xC4nderungen bleiben in diesem Baum.`,"Dieser Lauf endet, wenn dein Zug endet: es gibt kein sp\xE4teres Aufwachen und niemanden, der Hintergrundarbeit einsammelt. Erledige alles im Vordergrund und warte Ergebnisse ab, bevor du endest \u2014 Subagenten laufen hier im Vordergrund, Hintergrund-Aufgaben, ScheduleWakeup, Cron-Aufgaben und Monitore stehen nicht zur Verf\xFCgung. Ein Lauf, der Arbeit f\xFCr sp\xE4ter zur\xFCckl\xE4sst, gilt als unvollst\xE4ndig.",...e.identity?[`Die Git-Identit\xE4t dieses Laufs ist gesetzt: \`${e.identity.name} <${e.identity.email}>\`. \xC4ndere sie nicht \u2014 kein \`git config user.*\`, kein \`--author\`, keine eigene Identit\xE4t: Previews und Reviews h\xE4ngen an genau dieser.`]:[],t.kind==="none"?"Die Abh\xE4ngigkeiten in diesem Arbeitsbaum sind NICHT installiert (kein Setup-Befehl konfiguriert). Installiere sie selbst, bevor du Typecheck, Tests oder Builds ausf\xFChrst.":t.kind==="ok"?"Vor deinem Start lief der Setup-Befehl des Repos erfolgreich \u2014 die Abh\xE4ngigkeiten sind installiert.":`Vor deinem Start lief der Setup-Befehl des Repos und ist gescheitert (${Nb(t,"de")}). Die Abh\xE4ngigkeiten sind wom\xF6glich unvollst\xE4ndig: pr\xFCfe das, bevor du Checks ausf\xFChrst, und nenne es in der PR-Beschreibung.`,"Committe in nachvollziehbaren Schritten (Conventional Commits) und pushe NACH JEDEM Commit (`git push -u origin "+e.branch+"`). Nicht erst am Ende: endet der Lauf vorzeitig \u2014 Budget ersch\xF6pft, Zeit aus, Verbindung weg \u2014, ist alles gerettet, was bis dahin gepusht wurde, und ein sp\xE4terer Lauf setzt darauf auf.",`Schreibe die PR-Beschreibung nach \`${Ii}\` \u2014 was ge\xE4ndert wurde und warum. Committe diese Datei NICHT; sie ist \xDCbergabe, kein Repo-Inhalt. Den Pull Request gegen ${e.baseBranch} \xF6ffnet maind selbst; du musst \`gh\` nicht aufrufen.`,"Du mergst nie und setzt das Objekt nie auf erledigt \u2014 das entscheidet ein Mensch am PR.","Wenn dich etwas blockiert oder eine Entscheidung nur ein Mensch treffen kann, hinterlasse sie am Objekt und beende den Lauf sauber, statt zu raten: eine Wahl zwischen benannten Optionen mit `work_object_ask_decision`, alles andere mit `work_object_post_comment`. Die Koordinations-Sitzung hat maind f\xFCr diesen Lauf schon angemeldet \u2014 `announce_session` brauchst du nicht und darfst du nicht rufen; die Objekt-Werkzeuge laufen ohne `session_id` unter der Sitzung des Laufs.","Kein `git push --force`, kein rekursives `rm`, kein Zugriff auf Secrets oder auf den geteilten Basis-Tree \u2014 diese Grenzen gelten in jedem Fall."]}a(qb,"dispatchInstructions");var Ii=".maind/pr-body.md";function Rc(e){let t=[];e.setup?.kind==="failed"&&t.push(["### Setup gescheitert","",`Der Setup-Befehl des Repos ist vor dem Start des Agenten gescheitert (${Nb(e.setup,"de")}). Der Agent arbeitete wom\xF6glich ohne vollst\xE4ndig installierte Abh\xE4ngigkeiten \u2014 Typecheck und Tests, die er im Lauf ausf\xFChrte, sind entsprechend zu lesen.`].join(`
@@ -408,7 +408,7 @@ Der Lauf hat keine Beschreibung hinterlassen (\`${Ii}\` fehlt) \u2014 was ge\xE4
408
408
  --- setup: ${e.setup?"configured (not run in a dry run)":"none"}
409
409
  `),await ze(t,o,i,c,"dry run"),0;let K=await t.probe();if(!K.ok)return t.warn(K.reason),await g("unavailable",K.reason),await ze(t,o,i,c,"harness unavailable"),h("unavailable",{note:K.reason,contextDigest:ce.digest});let ie=$i(K.harness.capabilities,["injectBeforeFirstTurn","preToolDeny","toolEvents","budget"]);if(ie.length>0){let T=`harness ${K.harness.id} lacks: ${ie.join(", ")}`;return t.warn(T),await g("unavailable",T),await ze(t,o,i,c,"harness lacks capabilities"),h("unavailable",{note:T,contextDigest:ce.digest})}let J=a_(P.triggerPolicy??Ri),Te=a(()=>({worktreeRoot:x,baseTreeRoot:r,denyCounts:d.denies,overrides:e.overrides,difficulty:J.gateDifficulty()}),"gateCtx"),_e=a(T=>{J.noteCall(T);let z=Oi(T,Te());return z.kind==="deny"&&(d.denies[z.rule]=(d.denies[z.rule]??0)+1),z.kind==="warn"&&(d.warns[z.rule]=(d.warns[z.rule]??0)+1),Di(f,T,z.kind==="deny"?"deny":z.kind==="warn"?"warn":"allow"),z},"gate"),Ct=Xb(),as=t.every(e.renewMinutes*6e4,()=>{Yb(t.plan,{projectKey:o,sessionId:i,objectId:c,ttlMinutes:e.ttlMinutes,key:l}).then(T=>{T.state==="unknown"&&t.warn(`lease renewal inconclusive: ${T.reason} \u2014 run continues.`),T.state==="revoked"&&t.warn(`lease revoked: ${T.reason}`),Ct.observe(T)}),t.plan.announce({projectKey:o,sessionId:i,focus:`kernel: ${l}`,objectIds:[c],ttlMinutes:30,title:`${l} \u2014 ${s.object.title}`,...u?{model:u}:{}}).catch(()=>{})}),Je=t.closing({cwd:x,base:`origin/${k}`,uncommitted:!0,summary:null,noReport:!1,projectKey:o,mcpUrl:e.mcpUrl,runRef:ue(t.env)?.runId??null,clientVersion:Q,failOn:e.failOn,advisoryExtras:!0,allowRework:!0,maxRework:1}),te=!1,Ot=a(async T=>vc(T.leftovers??null,p_(f))!==null?{kind:"finish"}:(te=!0,Je.onStop(T)),"stop"),ye;try{ye=await K.harness.run({prompt:X,options:U,cwd:x,env:{...ji(t.env,"dispatch"),...$b(O.identity)},mcpServers:{maind:t.mcpServer({mcpUrl:e.mcpUrl,projectKey:o,sessionId:i})},gate:_e,signal:Ct.signal,afterBatch:Ct.check,onToolResult:a(T=>{let z=J.onToolResult(T);return z!==null&&(d.warns.unconsulted_difficulty=(d.warns.unconsulted_difficulty??0)+1),z},"onToolResult"),stop:Ot,onInit:a(T=>{u=T.model,t.plan.announce({projectKey:o,sessionId:i,focus:`kernel: ${l}`,objectIds:[c],ttlMinutes:30,title:`${l} \u2014 ${s.object.title}`,model:T.model}).catch(()=>{})},"onInit")})}finally{as.clear()}let xe=t.repo.headSha(x),Yr={harnessId:K.harness.id,harnessVersion:K.version,model:ye.model,authSource:ye.apiKeySource,contextDigest:ce.digest,contextPartial:ce.partial,conventions:P.conventions,harness:ye,commitSha:xe},ls=p_(f);if((ye.leftovers||ls>0)&&(p.leftovers={backgroundTasks:ye.leftovers?.backgroundTasks??0,scheduledWakeups:ye.leftovers?.scheduledWakeups??0,deferringCalls:ls}),Ct.revokedReason){let T=`lease revoked: ${Ct.revokedReason}`;return await y(T,x,v,xe),t.warn(`incomplete \xB7 ${T} \xB7 worktree kept at ${x}`),h("incomplete",{...Yr,note:T})}let Vn=Li(ye.stop);if(Vn!=="needs_verdict"){let T=Fi(ye.stop,ye.errorText);return Vn==="incomplete"?await y(T,x,v,xe):await g(Vn,T),await ze(t,o,i,c,T),t.warn(`${Vn} \xB7 ${T} \xB7 worktree kept at ${x}`),h(Vn,{...Yr,note:T})}let Wn=vc(ye.leftovers??null,ls);if(Wn)return te&&await Je.settle().catch(()=>{}),await y(Wn,x,v,xe),await ze(t,o,i,c,Wn),t.warn(`incomplete \xB7 ${l} \xB7 ${Wn} \xB7 worktree kept at ${x}`),h("incomplete",{...Yr,note:Wn});let re=await Je.settle();for(let T of re.sequence.warnings)t.warn(T);if(re.outcome==="block"&&re.sequence.review){try{Nr(re.sequence.review,re.sequence.verdict,re.sequence.meta,{out:cn(x,e.reviewOut),comment:null,json:!1})}catch(T){t.warn(`could not write the findings artifact: ${T instanceof Error?T.message:String(T)}`)}if(e.evidenceOut){let T=t.repo.readFile(cn(x,e.reviewOut));T&&t.repo.writeFile(cn(e.evidenceOut,`findings-${l.toLowerCase()}.md`),T)}}let pn=t.repo.remoteSlug(x),cs=jb(t.env),ew=t.repo.commitsAhead(x,`origin/${k}`),us=null;if(xe!==null&&ew>0&&m_(re.outcome)&&!t.repo.remoteContains(x,v,xe)&&t.repo.pushBranch){let T=cs?.source==="MAIND_PR_TOKEN",z=t.repo.pushBranch(x,v,T?cs.token:null);z.ok?us=T?"MAIND_PR_TOKEN":"checkout":T&&(t.warn(`push with MAIND_PR_TOKEN failed (${z.error??"unknown"}) \u2014 retrying with the checkout's credential.`),z=t.repo.pushBranch(x,v,null),z.ok&&(us="checkout")),z.ok||t.warn(`could not push ${v}: ${z.error??"unknown"}`)}let ds=xe!==null&&t.repo.remoteContains(x,v,xe),pe=ds?t.repo.openPr(x,v):null,fs=pe!==null,Xr=null,ps=null,bu=!1;if(!pe&&ds&&pn&&m_(re.outcome)){let T=await SC(t,{wt:x,branch:v,baseBranch:k,slug:pn,key:l,prToken:cs,setup:M,sessionId:i,objectId:c});pe=T?{number:T.number,url:T.url}:null,Xr=T?.openedWith??null,ps=T?.appRefusal??null,bu=T?.serverRecorded??!1}let tw=ue(t.env)?.adapter==="github",ms=Xr?wc(Xr,tw):null;if(pe&&(p.delivery={prNumber:pe.number,openedWith:fs?null:Xr,ciStartsItself:fs?null:ms,pushedWith:us,appRefusal:fs?null:ps}),pe&&ms===!1)try{t.appendStepSummary?.(Fb(l,pe.number,ps))}catch{}if(pe&&pn&&!bu){let T=`github:${pn}#${pe.number}`;await ln(t,"link_ref",()=>t.plan.linkRef(o,i,c,T,pe.url)),await ln(t,"pr_opened",()=>t.plan.reportEvent(o,i,{event:"pr_opened",objectId:c,ref:T}))}else pn||t.warn("no GitHub remote \u2014 nothing to open a pull request against.");if(re.outcome!=="unavailable"&&xe){let T=Zb(re.outcome);await ln(t,"gate",()=>t.plan.reportEvent(o,i,{event:"gate",objectId:c,outcome:T,commitSha:xe})),re.runId&&await ln(t,"review_verdict",()=>t.plan.reportEvent(o,i,{event:"review_verdict",objectId:c,outcome:T,commitSha:xe,reviewRunId:re.runId}))}re.outcome==="block"&&await y(`closing blocked: ${re.reason??"verdict block"} (${re.findingCount} finding(s), see ${e.reviewOut})`,x,v,xe);let hs=t.repo.commitsAhead(x,`origin/${k}`),De=re.outcome,Jr=null;if((De==="pass"||De==="warn")&&hs>0&&!pe&&(Jr=ds?`${v} is pushed but carries no pull request \u2014 verdict ${De}, nothing in review.`:`${v} carries ${hs} commit(s) that never reached origin \u2014 verdict ${De}, nothing delivered.`,De="incomplete",t.warn(Jr),await y(Jr,x,v,xe)),!pe){let T=hs===0?`the run made no commits over origin/${k} \u2014 there is nothing to review`+(re.verdict?` (verdict ${re.verdict}, ${re.findingCount} finding(s))`:""):pn?re.reason??"no pull request was opened":"no GitHub remote \u2014 there is nothing to open a pull request against";await g(De,T)}await ze(t,o,i,c,`run ended: ${De}`);let _u=!1;D&&(De==="pass"||De==="warn")&&pe&&(_u=t.repo.worktreeRemove(r,x));let ku=Object.values(d.denies).reduce((T,z)=>T+(z??0),0);return t.warn(`${De} \xB7 ${l} \xB7 verdict: ${re.verdict??"none"} \xB7 ${re.findingCount} finding(s) \xB7 pr: ${pe?`#${pe.number}`:"none"} \xB7 tool calls: ${s_(f)} \xB7 gate denies: ${ku}${ku>=Mr?" (circuit breaker engaged)":""} \xB7 closing via: ${re.via} \xB7 worktree: ${_u?"removed":`kept at ${x}`}`+(pe&&ms===!1?` \xB7 ${Ub}`:"")),h(De,{...Yr,note:Jr??re.reason??void 0,review:Pi(re)})}a(__,"runOne");function p_(e){let t=0;for(let n of Bb){let r=e[n];r&&(t+=r.allow+r.warn+r.deny)}return t}a(p_,"deferringCalls");async function ln(e,t,n){try{await n()}catch(r){e.warn(`could not report ${t}: ${r instanceof Error?r.message:String(r)}`)}}a(ln,"safe");async function ze(e,t,n,r,o){await ln(e,"release",()=>e.plan.release(t,n,r,o.slice(0,300)))}a(ze,"safeRelease");async function wC(e,t){let n=e.now().slice(0,10),o=await e.plan.handoffBrief({focus:`${t.key} \u2014 ${t.title}`,decisions:[`Der Kernel-Lauf endete: ${t.why}`],openThreads:[`Arbeit liegt im Baum ${t.wt} auf Branch ${t.branch}${t.headSha?` @ ${t.headSha.slice(0,12)}`:""}.`],nextSteps:[`Baum \xF6ffnen, git status/log lesen; dann \`maind run object ${t.key}\` erneut oder verwerfen.`]})??Jb({...t,worktree:t.wt,date:n}),i=cn(t.wt,".maind",`HANDOFF-${n}-${t.key.toLowerCase()}.md`);e.repo.writeFile(i,o)?e.warn(`handoff brief: ${i}`):e.warn(`could not write the handoff brief to ${i}`),await ln(e,"handoff update",()=>e.plan.postUpdate(t.projectKey,t.sessionId,t.objectId,o.slice(0,8e3)))}a(wC,"handoff");async function vC(e,t){if(!(!e.reportCost||!t.harness)&&i_({harness:t.harness}))try{await e.reportCost(o_({sessionId:t.sessionId,objectId:t.objectId,lane:u_({apiKeySource:t.harness.apiKeySource,env:e.env}).lane,harness:t.harness,tools:t.tools,startedAt:t.startedAt,endedAt:t.endedAt,cliVersion:Q}))}catch{}}a(vC,"reportRunCost");async function Ae(e,t,n,r,o,i){let s;try{s=Ui({form:"dispatch",executor:t.executor,cliVersion:Q,harnessId:"unknown",harnessVersion:"unknown",model:null,authSource:null,effort:null,contextDigest:"0".repeat(64),contextPartial:t.projectSettings,conventions:[],commitSha:null,projectKey:t.projectKey,outcome:r,gates:{denies:{},warns:{},overrides:t.overrides},tools:{},harness:null,startedAt:n,endedAt:e.now(),...o})}catch(l){return e.warn(`could not build a run record: ${l instanceof Error?l.message:String(l)}`),2}return await e.appendRecord(s)||e.warn(`could not write the run record to ~/.maind/kernel/runs.jsonl (outcome: ${r}).`),xC(e,t,s,i),t.json&&e.out(JSON.stringify(s)+`
410
410
  `),Lr(r)}a(Ae,"writeRecord");function xC(e,t,n,r){if(!t.evidenceOut)return;let o=`run-${(r??"unknown").toLowerCase()}.json`,i=cn(t.evidenceOut,o);e.repo.writeFile(i,JSON.stringify(n,null,2)+`
411
- `)||e.warn(`could not write the run evidence to ${i}.`)}a(xC,"writeEvidence");function m_(e){return e==="pass"||e==="warn"||e==="block"}a(m_,"verdictReached");async function SC(e,t){if(e.repo.commitsAhead(t.wt,`origin/${t.baseBranch}`)===0)return e.warn(`${t.branch} carries no commits over origin/${t.baseBranch} \u2014 no pull request opened.`),null;let r=e.repo.readFile(cn(t.wt,Ii)),o=ue(e.env)?.runId??null,i=ue(e.env)?.adapter==="github",s=e.repo.headSubject(t.wt)??`${t.key}: agent run`,l=null;if(e.appPr){let f;try{f=await e.appPr({sessionId:t.sessionId,objectId:t.objectId,repo:t.slug,head:t.branch,base:t.baseBranch,title:s,body:Rc({agentBody:r,key:t.key,runRef:o,setup:t.setup,viaApp:!0})})}catch{f={ok:!1,error:"unreachable"}}if(f.ok)return e.warn(`opened pull request #${f.number} for ${t.branch} (with the MAIND GitHub app)`),{number:f.number,url:f.url,openedWith:"app",appRefusal:null,serverRecorded:f.recorded};if(f.error==="pr_exists"){let p=f.number!==void 0?{number:f.number,url:f.url??null}:e.repo.openPr(t.wt,t.branch);if(p)return{...p,openedWith:null,appRefusal:null,serverRecorded:!1}}l=f.error,e.warn(`the MAIND GitHub app did not open the pull request (${f.error}: ${Ti(f.error,"en")})`+(f.acceptUrl?` \u2014 accept it at ${f.acceptUrl}`:"")+` \u2014 falling back to ${t.prToken?.source??"no token"}.`)}if(!t.prToken)return e.warn("no GITHUB_TOKEN in this run's environment \u2014 cannot open the pull request."),null;let c=a(f=>e.repo.createPr({token:f.token,slug:t.slug,head:t.branch,base:t.baseBranch,title:s,body:Rc({agentBody:r,key:t.key,runRef:o,setup:t.setup,ciNotice:wc(f.source,i)===!1,appRefusal:l})}),"attempt"),u=t.prToken,d=await c(u);if("error"in d&&u.source==="MAIND_PR_TOKEN"&&/^HTTP (401|403|404)\b/.test(d.error)){let f=Mb(e.env);e.warn(`MAIND_PR_TOKEN was rejected (${d.error.split(" ").slice(0,2).join(" ")}) \u2014 `+(f?`opening with ${f.source} instead.`:"and there is no job token to fall back to.")),f&&(u=f,d=await c(u))}if("error"in d){let f=e.repo.openPr(t.wt,t.branch);if(f)return{...f,openedWith:null,appRefusal:null,serverRecorded:!1};let p=/not permitted to create or approve pull requests/i.test(d.error)?" \u2014 enable it under Settings > Actions > General > Workflow permissions: 'Allow GitHub Actions to create and approve pull requests'. The branch is pushed; the work is not lost.":"";return e.warn(`could not open the pull request: ${d.error}${p}`),null}return e.warn(`opened pull request #${d.number} for ${t.branch} (with ${u.source})`),{...d,openedWith:u.source,appRefusal:l,serverRecorded:!1}}a(SC,"openPullRequest");function k_(e){return e==="subscription"||e==="api"?e:"auto"}a(k_,"parseAuthChoice");function w_(e,t){let n=a(i=>(e[i]??"").trim().length>0,"has"),r=n("CLAUDE_CODE_OAUTH_TOKEN"),o=n("ANTHROPIC_API_KEY");return t==="subscription"?r?null:"auth=subscription, but CLAUDE_CODE_OAUTH_TOKEN is empty \u2014 set the repo secret (run `claude setup-token` on your machine).":t==="api"?o?null:"auth=api, but ANTHROPIC_API_KEY is empty \u2014 set the repo secret.":r||o?null:"neither CLAUDE_CODE_OAUTH_TOKEN nor ANTHROPIC_API_KEY is set \u2014 the run has no model credential."}a(w_,"modelCredentialGap");var v_={ready:0,unchecked:0,reported:3,unreported:4};function x_(e,t,n){switch(t){case"ready":return`preflight: ${e} is ready \u2014 the run may start.`;case"unchecked":return`preflight: ${e} \u2014 the maind server does not offer the readiness check yet; the run's take decides (before any model call).`;case"reported":return`preflight: ${e} is NOT ready \u2014 ${n??"not takeable"}. Recorded on the object as dispatch_failed; nothing was started.`;case"unreported":return`preflight: ${e} is NOT ready \u2014 ${n??"unknown reason"}. Not recorded on the object; nothing was started.`}}a(x_,"preflightLine");async function S_(e,t){let n=e.target.kind==="key"?e.target.key:e.target.kind==="uuid"?e.target.objectId:null;if(!n)return t.warn("preflight needs an object: `maind run preflight <MAI-n|uuid>`."),2;let r=n,o=a((d,f,p={})=>{let h=x_(r,d,f);return d==="ready"||d==="unchecked"?t.out(`${h}
411
+ `)||e.warn(`could not write the run evidence to ${i}.`)}a(xC,"writeEvidence");function m_(e){return e==="pass"||e==="warn"||e==="block"}a(m_,"verdictReached");async function SC(e,t){if(e.repo.commitsAhead(t.wt,`origin/${t.baseBranch}`)===0)return e.warn(`${t.branch} carries no commits over origin/${t.baseBranch} \u2014 no pull request opened.`),null;let r=e.repo.readFile(cn(t.wt,Ii)),o=ue(e.env)?.runId??null,i=ue(e.env)?.adapter==="github",s=e.repo.headSubject(t.wt)??`${t.key}: agent run`,l=null;if(e.appPr){let f;try{f=await e.appPr({sessionId:t.sessionId,objectId:t.objectId,repo:t.slug,head:t.branch,base:t.baseBranch,title:s,body:Rc({agentBody:r,key:t.key,runRef:o,setup:t.setup,viaApp:!0})})}catch{f={ok:!1,error:"unreachable"}}if(f.ok)return e.warn(`opened pull request #${f.number} for ${t.branch} (with the MAIND GitHub app)`),{number:f.number,url:f.url,openedWith:"app",appRefusal:null,serverRecorded:f.recorded};if(f.error==="pr_exists"){let p=f.number!==void 0?{number:f.number,url:f.url??null}:e.repo.openPr(t.wt,t.branch);if(p)return{...p,openedWith:null,appRefusal:null,serverRecorded:!1}}l=f.error,e.warn(`the MAIND GitHub app did not open the pull request (${f.error}${f.detail?`, ${f.detail}`:""}: ${Ti(f.error,"en")})`+(f.acceptUrl?` \u2014 accept it at ${f.acceptUrl}`:"")+` \u2014 falling back to ${t.prToken?.source??"no token"}.`)}if(!t.prToken)return e.warn("no GITHUB_TOKEN in this run's environment \u2014 cannot open the pull request."),null;let c=a(f=>e.repo.createPr({token:f.token,slug:t.slug,head:t.branch,base:t.baseBranch,title:s,body:Rc({agentBody:r,key:t.key,runRef:o,setup:t.setup,ciNotice:wc(f.source,i)===!1,appRefusal:l})}),"attempt"),u=t.prToken,d=await c(u);if("error"in d&&u.source==="MAIND_PR_TOKEN"&&/^HTTP (401|403|404)\b/.test(d.error)){let f=Mb(e.env);e.warn(`MAIND_PR_TOKEN was rejected (${d.error.split(" ").slice(0,2).join(" ")}) \u2014 `+(f?`opening with ${f.source} instead.`:"and there is no job token to fall back to.")),f&&(u=f,d=await c(u))}if("error"in d){let f=e.repo.openPr(t.wt,t.branch);if(f)return{...f,openedWith:null,appRefusal:null,serverRecorded:!1};let p=/not permitted to create or approve pull requests/i.test(d.error)?" \u2014 enable it under Settings > Actions > General > Workflow permissions: 'Allow GitHub Actions to create and approve pull requests'. The branch is pushed; the work is not lost.":"";return e.warn(`could not open the pull request: ${d.error}${p}`),null}return e.warn(`opened pull request #${d.number} for ${t.branch} (with ${u.source})`),{...d,openedWith:u.source,appRefusal:l,serverRecorded:!1}}a(SC,"openPullRequest");function k_(e){return e==="subscription"||e==="api"?e:"auto"}a(k_,"parseAuthChoice");function w_(e,t){let n=a(i=>(e[i]??"").trim().length>0,"has"),r=n("CLAUDE_CODE_OAUTH_TOKEN"),o=n("ANTHROPIC_API_KEY");return t==="subscription"?r?null:"auth=subscription, but CLAUDE_CODE_OAUTH_TOKEN is empty \u2014 set the repo secret (run `claude setup-token` on your machine).":t==="api"?o?null:"auth=api, but ANTHROPIC_API_KEY is empty \u2014 set the repo secret.":r||o?null:"neither CLAUDE_CODE_OAUTH_TOKEN nor ANTHROPIC_API_KEY is set \u2014 the run has no model credential."}a(w_,"modelCredentialGap");var v_={ready:0,unchecked:0,reported:3,unreported:4};function x_(e,t,n){switch(t){case"ready":return`preflight: ${e} is ready \u2014 the run may start.`;case"unchecked":return`preflight: ${e} \u2014 the maind server does not offer the readiness check yet; the run's take decides (before any model call).`;case"reported":return`preflight: ${e} is NOT ready \u2014 ${n??"not takeable"}. Recorded on the object as dispatch_failed; nothing was started.`;case"unreported":return`preflight: ${e} is NOT ready \u2014 ${n??"unknown reason"}. Not recorded on the object; nothing was started.`}}a(x_,"preflightLine");async function S_(e,t){let n=e.target.kind==="key"?e.target.key:e.target.kind==="uuid"?e.target.objectId:null;if(!n)return t.warn("preflight needs an object: `maind run preflight <MAI-n|uuid>`."),2;let r=n,o=a((d,f,p={})=>{let h=x_(r,d,f);return d==="ready"||d==="unchecked"?t.out(`${h}
412
412
  `):t.warn(h),e.json&&t.out(`${JSON.stringify({preflight:d,object:r,ready:d==="ready",...f?{why:f}:{},...p.fact?{fact:p.fact}:{},reported:p.reported===!0})}
413
413
  `),v_[d]},"finish"),i=t.resolveRepoRoot(t.cwd());if(!i)return o("unreported","not a git repository");let s=e.projectKey??t.projectKeyOf(i);if(!s)return o("unreported","no project_key \u2014 the repository has no remote to derive it from (pass --project-key)");let l=w_(t.env,e.auth),c=t.newSessionId(),u=await t.plan.announce({projectKey:s,sessionId:c,focus:`kernel: preflight ${n}`,ttlMinutes:10});if(!u.ok)return o("unreported",`could not announce a session: ${u.error??"unknown"}`);try{let d=await t.plan.resolveObject(s,c,n);if(!d.ok)return o("unreported",`${d.error}${d.hint?` \u2014 ${d.hint}`:""}`);r=d.object.key;let f=await t.plan.preflight({projectKey:s,sessionId:c,objectId:d.object.object_id,...l?{clientFailure:"model_credentials_missing"}:{},report:e.report});if(!f.ok)return f.error==="unknown_tool"?l?o("unreported",l):o("unchecked",null):o("unreported",`${f.error}${f.hint?` \u2014 ${f.hint}`:""}`);if(f.ready)return o("ready",null);let p=f.reason==="model_credentials_missing"?l??"the run has no model credential":`${f.fact??f.reason}${f.detail?` (${f.detail})`:""}`;return o(f.reported?"reported":"unreported",p,{fact:f.fact,reported:f.reported})}catch(d){return o("unreported",`maind server: ${d instanceof Error?d.message:String(d)}`)}finally{await t.plan.end(s,c)}}a(S_,"runPreflight");import{execFileSync as CO}from"node:child_process";import{statSync as OO}from"node:fs";import{homedir as $O}from"node:os";import{join as NO}from"node:path";import{createReadStream as O_,existsSync as UC}from"node:fs";import{createInterface as $_}from"node:readline";var RC=new Set(["low","medium","high","xhigh","max"]),EC=/(?:^|\s)\/(low|medium|high|xhigh|max)(?=\s|$|[!?.,;:])/gi;function Bi(e){if(!e)return null;let t=null;for(let n of e.matchAll(EC)){let r=n[1].toLowerCase();RC.has(r)&&(t=r)}return t}a(Bi,"detectEffortLevel");var R_=["mcp__maind__","mcp__plugin_maind_maind__"];function Ln(e){for(let t of R_)if(e.startsWith(t)){let n=e.slice(t.length);return n.length>0?n:null}return null}a(Ln,"maindToolName");import{createReadStream as AC,existsSync as TC,readdirSync as IC}from"node:fs";import{basename as T_,dirname as CC,join as E_}from"node:path";import{createInterface as OC}from"node:readline";var un="main",$C="<synthetic>",NC=new Set(["get_session_analysis","get_session_cost_context"]),DC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,I_=32;function C_(e,t){if(typeof t!="string")return;let n=t.trim().toLowerCase();!DC.test(n)||e.ids.includes(n)||e.ids.length>=I_||e.ids.push(n)}a(C_,"addCoordinationId");function jC(e,t){if(Array.isArray(t))for(let n of t){if(!n||typeof n!="object")continue;let r=n;if(r.type!=="tool_use"||typeof r.name!="string")continue;let o=Ln(r.name);if(o===null||NC.has(o))continue;let i=r.input&&typeof r.input=="object"?r.input:{};i.session_id!==void 0?C_(e,i.session_id):o==="announce_session"&&typeof r.id=="string"&&e.pendingAnnounce.add(r.id)}}a(jC,"noteCoordinationUse");function MC(e){if(typeof e=="string")return e;if(!Array.isArray(e))return"";let t="";for(let n of e)n&&typeof n=="object"&&typeof n.text=="string"&&(t+=n.text);return t}a(MC,"resultText");function PC(e,t){if(!(e.pendingAnnounce.size===0||!Array.isArray(t)))for(let n of t){if(!n||typeof n!="object")continue;let r=n;if(r.type!=="tool_result"||typeof r.tool_use_id!="string"||!e.pendingAnnounce.delete(r.tool_use_id))continue;let o=MC(r.content),i=null;try{let s=JSON.parse(o);s&&s.ok===!0&&(i=s.session_id)}catch{let s=/"session_id"\s*:\s*"([0-9a-f-]{36})"/i.exec(o);i=s?s[1]:null}C_(e,i)}}a(PC,"noteAnnounceResult");var LC={Edit:"file_path",Write:"file_path",MultiEdit:"file_path",NotebookEdit:"notebook_path"};function Fn(e){return typeof e=="number"&&Number.isFinite(e)&&e>0?e:0}a(Fn,"num");function FC(e){if(!Array.isArray(e))return[];let t=[];for(let n of e){if(!n||typeof n!="object")continue;let r=n;if(r.type!=="tool_use"||typeof r.name!="string")continue;let o=LC[r.name];if(!o||!r.input||typeof r.input!="object")continue;let i=r.input[o];typeof i=="string"&&i.length>0&&t.push(i)}return t}a(FC,"editedPathsOf");function Ki(e){let t=T_(e).replace(/\.jsonl$/,""),n=E_(CC(e),t,"subagents"),r;try{r=IC(n)}catch{return[]}return r.filter(o=>o.endsWith(".jsonl")).sort().map(o=>E_(n,o))}a(Ki,"subagentFilesOf");async function A_(e,t,n,r,o,i){TC(e)&&await new Promise(s=>{let l=AC(e,{encoding:"utf-8"}),c=OC({input:l}),u=0;c.on("line",d=>{u++;let f=d.trim();if(!f)return;let p;try{p=JSON.parse(f)}catch{return}if(p.message?.role==="user"){PC(i,p.message.content);return}if(p.message?.role!=="assistant")return;jC(i,p.message.content);let h=typeof p.message.id=="string"&&p.message.id?p.message.id:null,b=typeof p.requestId=="string"&&p.requestId?p.requestId:null,_=h??b??`${e}#${u}`,g=FC(p.message.content),y=r.get(_);if(y){for(let v of g)y.edited_paths.includes(v)||y.edited_paths.push(v);return}if(n.has(_))return;n.add(_);let k=p.message.usage??{},w=typeof p.timestamp=="string"?Date.parse(p.timestamp):Number.NaN,R=typeof p.message.model=="string"&&p.message.model?p.message.model:"",E={ts:Number.isFinite(w)?w:0,model:R||"<unknown>",synthetic:R===$C,input_tokens:Fn(k.input_tokens),output_tokens:Fn(k.output_tokens),cache_read_tokens:Fn(k.cache_read_input_tokens),cache_creation_tokens:Fn(k.cache_creation_input_tokens),cache_creation_1h_tokens:Math.min(Fn(k.cache_creation?.ephemeral_1h_input_tokens),Fn(k.cache_creation_input_tokens)),sidechain:p.isSidechain===!0,stream:t,edited_paths:g,cwd:typeof p.cwd=="string"&&p.cwd?p.cwd:null};r.set(_,E),o.push(E)}),c.on("close",()=>s()),c.on("error",()=>s()),l.on("error",()=>s())})}a(A_,"readStream");function Ic(e){let t=0;for(let r of e)r.ts>0?t=r.ts:t>0&&(r.ts=t);let n=0;for(let r=e.length-1;r>=0;r--){let o=e[r];o.ts>0?n=o.ts:n>0&&(o.ts=n)}}a(Ic,"fillTimestamps");async function Fr(e){let t=new Set,n=new Map,r=[],o=e?Ki(e):[],i={ids:[],pendingAnnounce:new Set};if(!e)return{turns:r,subagent_files:o,coordination_ids:[]};let s=[];await A_(e,un,t,n,s,i),Ic(s),r.push(...s);for(let l of o){let c=[],u=T_(l).replace(/\.jsonl$/,"");i.pendingAnnounce.clear(),await A_(l,u,t,n,c,i),Ic(c);for(let d of c)d.sidechain=!0;r.push(...c)}return{turns:r,subagent_files:o,coordination_ids:i.ids}}a(Fr,"collectTurns");var N_="2026-10-01",BC=/(\brückgängig\b|zurücknehmen|\bnochmal(s)?\b|noch mal|\brevert\b|\bundo\b|\bredo\b|stattdessen|\binstead\b|mach(e)? das (nochmal|neu)|try again)/i,KC=/(\bnein\b|\bfalsch\b|stimmt nicht|das ist nicht|so nicht|\bnicht so\b|warum hast du|wieso hast du|\bno\b|\bnope\b|\bwrong\b|\bincorrect\b|that'?s not|that is not|\bdon'?t\b|\bdoesn'?t\b|shouldn'?t)/i,HC=/(\bdanke\b|\bperfekt\b|\bsuper\b|\bpasst\b|\bgenau\b|sieht gut|\bcommit\b|\bship\b|\bmerge\b|\bpush\b|looks good|\blgtm\b|\bthanks\b|thank you|\bperfect\b|\bgreat\b|\bexactly\b|\bnice\b|well done|👍|✅|🎉)/i,GC="[Request interrupted by user",VC="The user doesn't want to proceed with this tool use",WC=.7,Un={denial:1.5,interrupt:1.25,rework:1.5,correction:1,acceptance:1,repeat:.75};function qC(e,t,n,r,o){let i=`${n?"s":"m"}:${t}`,s=e.get(i);if(!s){e.set(i,{model:t,turns:1,output_tokens:r,first_ts:o,last_ts:o,sidechain:n});return}s.turns++,s.output_tokens+=r,o>0&&((s.first_ts===0||o<s.first_ts)&&(s.first_ts=o),o>s.last_ts&&(s.last_ts=o))}a(qC,"bumpModel");function Hi(e){return typeof e=="string"?[{type:"text",text:e}]:Array.isArray(e)?e.filter(t=>t!==null&&typeof t=="object"):[]}a(Hi,"asBlocks");function zC(e){let t=[];for(let n of e)n.type==="text"&&typeof n.text=="string"&&t.push(n.text);return t.join(`
414
414
  `)}a(zC,"textOf");function YC(e,t){let n=a(c=>new Set(c.toLowerCase().replace(/[^\p{L}\p{N}\s]/gu," ").split(/\s+/).filter(u=>u.length>2)),"toks"),r=n(e),o=n(t);if(r.size<3||o.size<3)return!1;let[i,s]=r.size<=o.size?[r,o]:[o,r],l=0;for(let c of i)s.has(c)&&l++;return l/i.size>=.8}a(YC,"isRepeat");function XC(e,t,n){return BC.test(e)?{polarity:-1,magnitude:Un.rework,kind:"rework"}:n&&KC.test(e)?{polarity:-1,magnitude:Un.correction,kind:"correction"}:HC.test(e)?{polarity:1,magnitude:Un.acceptance,kind:"acceptance"}:t!==null&&YC(t,e)?{polarity:-1,magnitude:Un.repeat,kind:"repeat"}:{polarity:0,magnitude:0,kind:"neutral"}}a(XC,"classifyGenuine");function JC(e){return{session_id:e,user_turns:0,assistant_turns:0,tool_calls:0,agent_questions:0,input_tokens:0,output_tokens:0,cache_read_tokens:0,cache_creation_tokens:0,user_chars:0,user_token_estimate:0,human_share:0,reactions_pos:0,reactions_neg:0,net_sentiment:0,corrections:0,reworks:0,interrupts:0,tool_denials:0,repeated_instructions:0,acceptances:0,momentum_series:[],momentum_final:0,momentum_auc:0,ended_positive:!1,recovery_events:0,effort_at_end:null,model_mix:[],ai_title:null,session_slug:null,maind_tool_calls:{},maind_connected:"unknown",lines_seen:0,analyzer_version:N_,behaviour_measured:!0}}a(JC,"emptyAnalysis");async function ZC(e,t){for(let n of Ki(e))await new Promise(r=>{let o=$_({input:O_(n,{encoding:"utf-8"})});o.on("line",i=>{let s=i.trim();if(!s)return;let l;try{l=JSON.parse(s)}catch{return}if(l.message?.role==="assistant")for(let c of Hi(l.message?.content)){if(c.type!=="tool_use"||typeof c.name!="string")continue;let u=Ln(c.name);u!==null&&(t.maind_tool_calls??={},t.maind_tool_calls[u]=(t.maind_tool_calls[u]??0)+1)}}),o.on("error",()=>r()),o.on("close",()=>r())})}a(ZC,"tallySubagentMaindCalls");async function Cc(e,t={}){let n=JC("");if(!e||!UC(e))return n;let r=t.turns??(await Fr(e)).turns;for(let h of r)n.input_tokens+=h.input_tokens,n.output_tokens+=h.output_tokens,n.cache_read_tokens+=h.cache_read_tokens,n.cache_creation_tokens+=h.cache_creation_tokens,h.sidechain||n.assistant_turns++;let o=[],i=new Map,s=null,l=!1,c=null;await new Promise(h=>{let b=O_(e,{encoding:"utf-8"}),_=$_({input:b}),g=a(y=>{let k=y.trim();if(!k)return;let w;try{w=JSON.parse(k)}catch{return}if(n.lines_seen++,!n.session_id){let M=w.sessionId??w.session_id;typeof M=="string"&&M&&(n.session_id=M)}w.type==="ai-title"&&typeof w.aiTitle=="string"&&w.aiTitle&&(n.ai_title=w.aiTitle),typeof w.slug=="string"&&w.slug&&(n.session_slug=w.slug);let R=w.message?.role,E=w.isSidechain===!0;if(R==="assistant")for(let M of Hi(w.message?.content)){if(M.type!=="tool_use"||typeof M.name!="string")continue;let P=Ln(M.name);P!==null&&(n.maind_tool_calls??={},n.maind_tool_calls[P]=(n.maind_tool_calls[P]??0)+1)}if(E)return;if(R==="assistant"){let M=Hi(w.message?.content),P=!1;for(let X of M)X.type==="tool_use"&&(n.tool_calls++,P=!0,X.name==="AskUserQuestion"&&n.agent_questions++);l=P;return}if(R!=="user")return;let v=Hi(w.message?.content),x=zC(v);if(x.includes(GC)){n.interrupts++,o.push({polarity:-1,magnitude:Un.interrupt,kind:"interrupt"});return}if(v.some(M=>M.type==="tool_result"&&M.is_error===!0&&typeof M.content=="string"&&M.content.includes(VC))){n.tool_denials++,o.push({polarity:-1,magnitude:Un.denial,kind:"denial"});return}if(v.some(M=>M.type==="tool_result")||!x.trim())return;n.user_turns++,n.user_chars+=x.length;let O=Bi(x);O&&(s=O);let A=XC(x,c,l);c=x,A.kind==="correction"?n.corrections++:A.kind==="rework"?n.reworks++:A.kind==="repeat"?n.repeated_instructions++:A.kind==="acceptance"&&n.acceptances++,A.polarity!==0&&o.push(A),l=!1},"processLine");_.on("line",y=>{try{g(y)}catch{}}),_.on("close",()=>h()),_.on("error",()=>h()),b.on("error",()=>h())}),await ZC(e,n),n.effort_at_end=s;for(let h of r)h.synthetic||h.model==="<unknown>"||qC(i,h.model,h.sidechain,h.output_tokens,h.ts);n.model_mix=[...i.values()].sort((h,b)=>h.first_ts-b.first_ts||h.model.localeCompare(b.model)),n.user_token_estimate=Math.round(n.user_chars/4);let u=n.user_token_estimate+n.output_tokens;n.human_share=u>0?Number((n.user_token_estimate/u).toFixed(4)):0;let d=0,f=0,p=[];return o.forEach((h,b)=>{h.polarity>0?n.reactions_pos++:h.polarity<0&&n.reactions_neg++,d=d*WC+h.polarity*h.magnitude;let _=Number(d.toFixed(3));p.push({t:b,value:_,...h.kind!=="neutral"?{kind:h.kind}:{}}),f+=_,b>0&&o[b-1].polarity<0&&h.polarity>0&&n.recovery_events++}),n.net_sentiment=n.reactions_pos-n.reactions_neg,n.momentum_series=p,n.momentum_final=p.length?p[p.length-1].value:0,n.momentum_auc=Number(f.toFixed(3)),n.ended_positive=n.momentum_final>0,Object.keys(n.maind_tool_calls??{}).length>0&&(n.maind_connected="connected"),n}a(Cc,"analyzeSession");function D_(e){let t=e!==null&&typeof e=="object"?e:{},n=typeof t.slices_stored=="boolean"?t.slices_stored:null;return{analyticsStored:t.analytics_stored===!0,spanStored:t.span_stored===!0,slicesStored:n,slicesReason:n===null?null:typeof t.slices_reason=="string"?t.slices_reason:null,slicesCount:typeof t.slices_count=="number"&&Number.isFinite(t.slices_count)?t.slices_count:0}}a(D_,"parseIngestResponse");function j_(e,t,n,r="unknown",o){let i={session_analytics:{...e,ingest_source:r,...n?.client_session_id?{client_session_id:n.client_session_id}:{},...n?.client?{client:n.client}:{},...n?.coordination_session_ids&&n.coordination_session_ids.length>0?{coordination_session_ids:[...n.coordination_session_ids]}:{},...o?{cost_slices:o.slices,cost_context_ok:o.context_ok}:{}}};if(t&&t.started_at)if(n){let{coordination_session_ids:s,...l}=n;i.session_span={...t,...l}}else i.session_span=t;return i}a(j_,"ingestBody");function M_(e){let t={"content-type":"application/json",authorization:`Bearer ${e.apiKey}`};return e.deviceId&&(t["x-maind-device-id"]=e.deviceId),t}a(M_,"ingestHeaders");async function Bn(e,t,n,r,o="unknown",i){try{let s=await fetch(e.endpoint,{method:"POST",headers:M_(e),body:JSON.stringify(j_(t,n,r,o,i))});if(!s.ok){let c=await s.text().catch(()=>"");return{ok:!1,inserted:0,status:s.status,error:c.slice(0,500)}}let l=D_(await s.json().catch(()=>null));return{ok:!0,inserted:l.analyticsStored?1:0,spanStored:l.spanStored,...l.slicesStored!==null?{slicesStored:l.slicesStored,slicesReason:l.slicesReason,slicesCount:l.slicesCount}:{},status:s.status}}catch(s){return{ok:!1,inserted:0,error:s instanceof Error?s.message:String(s)}}}a(Bn,"postSessionAnalytics");import{mkdirSync as a2,readFileSync as rO,renameSync as l2,writeFileSync as c2}from"node:fs";import{dirname as d2,isAbsolute as Mc,sep as Pc}from"node:path";import{isAbsolute as P_,relative as QC,resolve as L_,sep as F_}from"node:path";var Vi=[2e5,272e3];function U_(e){return e>Vi[1]?"above_272k":e>Vi[0]?"band_200k_272k":"standard"}a(U_,"contextTierOf");function B_(e){return e.trim().replace(/\[[^\]]*\]$/,"")}a(B_,"normalizeModelId");var eO=Vi[0],Oc=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function Gi(e){if(typeof e!="string"||!e)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null}a(Gi,"msOf");function Nc(e){let t=e;if(typeof e=="string")try{t=JSON.parse(e)}catch{return null}if(!t||typeof t!="object")return null;let n=t;if(n.ok!==!0)return null;let r=a(s=>{if(!Array.isArray(s))return[];let l=[];for(let c of s){if(!c||typeof c!="object")continue;let u=c,d=Gi(u.from);typeof u.object_id!="string"||!Oc.test(u.object_id)||d===null||l.push({object_id:u.object_id.toLowerCase(),from:d,to:Gi(u.to)})}return l},"windows"),o=[];if(Array.isArray(n.claims))for(let s of n.claims){if(!s||typeof s!="object")continue;let l=s,c=Gi(l.from);typeof l.path_prefix!="string"||c===null||o.push({path_prefix:l.path_prefix,from:c,to:Gi(l.to)})}let i=[];if(Array.isArray(n.anchors))for(let s of n.anchors){if(!s||typeof s!="object")continue;let l=s;typeof l.object_id!="string"||!Oc.test(l.object_id)||typeof l.path_prefix=="string"&&i.push({object_id:l.object_id.toLowerCase(),path_prefix:l.path_prefix})}return{canonical_session_id:typeof n.canonical_session_id=="string"&&Oc.test(n.canonical_session_id)?n.canonical_session_id.toLowerCase():null,session_row:n.session_row===!0,leases:r(n.leases),bindings:r(n.bindings),claims:o,anchors:i}}a(Nc,"parseCostContext");function Wi(e,t){if(!P_(e))return null;let n=QC(L_(t),L_(e));return!n||n==="."||n.startsWith("..")||P_(n)?null:F_==="/"?n:n.split(F_).join("/")}a(Wi,"toRepoRelative");function tO(e,t){return t===""||e===t||e.startsWith(t+"/")}a(tO,"underPrefix");function Dc(e,t){return e===t||e===""||t===""||e.startsWith(t+"/")||t.startsWith(e+"/")}a(Dc,"prefixesOverlap");function K_(e){return[...e].sort((t,n)=>n.path_prefix.length-t.path_prefix.length||t.object_id.localeCompare(n.object_id))}a(K_,"sortedAnchors");function jc(e,t){for(let n of K_(t))if(tO(e,n.path_prefix))return n.object_id;return null}a(jc,"anchorFor");function nO(e,t){for(let n of K_(t))if(Dc(e,n.path_prefix))return n.object_id;return null}a(nO,"bestAnchorOverlapping");function $c(e,t){return e>=t.from&&(t.to===null||e<t.to)}a($c,"inWindow");function H_(e,t,n,r){let o=e.ts,i=r?.anchors??[],s=t.map(l=>jc(l,i)).filter(l=>l!==null);if(r&&o>0){let l=r.leases.filter(d=>$c(o,d));if(l.length)return l.sort((d,f)=>f.from-d.from||d.object_id.localeCompare(f.object_id)),{object_id:l[0].object_id,source:"lease"};let c=r.bindings.filter(d=>$c(o,d));if(c.length)return{object_id:(c.find(f=>s.includes(f.object_id))??c.find(f=>n!==null&&f.object_id===n.object_id)??[...c].sort((f,p)=>f.object_id.localeCompare(p.object_id))[0]).object_id,source:"binding"};let u=r.claims.filter(d=>$c(o,d));if(u.length){let d=t[0]??n?.rel??null,f=(d===null?u:u.filter(p=>Dc(p.path_prefix,d))).sort((p,h)=>h.path_prefix.length-p.path_prefix.length);for(let p of f){let h=nO(p.path_prefix,i);if(h)return{object_id:h,source:"claim"}}}}return s.length?{object_id:s[0],source:"path"}:n?{object_id:n.object_id,source:"path"}:{object_id:null,source:"none"}}a(H_,"assignTurn");function qi(e,t,n){let r=t?.anchors??[],o=n.repoRoot,i=n.relativize??(o?g=>Wi(g,o):null),s=a(g=>{if(!i)return[];let y=[];for(let k of g.edited_paths){let w=i(k);w!==null&&!y.includes(w)&&y.push(w)}return y},"relOf"),l=a(g=>{for(let y of g){let k=jc(y,r);if(k)return{object_id:k,rel:y}}return null},"firstAnchoredEdit"),c=new Map;for(let g of e){let y=c.get(g.stream)??[];y.push(g),c.set(g.stream,y)}let u=[...c.entries()].sort(([g],[y])=>g===un?-1:y===un?1:0),d=[],f=a(g=>{let y=null;for(let k of d){if(k.ts>g&&g>0)break;y=k.seg}return y},"mainSegmentAt"),p=new Map;for(let[g,y]of u){let k=y.map((R,E)=>({t:R,i:E,rels:s(R)})).sort((R,E)=>R.t.ts-E.t.ts||R.i-E.i),w=null;for(let R of k){let E=l(R.rels);if(E){w=E;break}}!w&&g!==un&&k.length&&(w=f(k[0].t.ts));for(let R of k){let E=l(R.rels);E&&(w=E),g===un&&d.push({ts:R.t.ts,seg:w});let v=R.t;if(v.input_tokens+v.output_tokens+v.cache_read_tokens+v.cache_creation_tokens===0)continue;let D=H_(v,R.rels,w,t),O=U_(v.input_tokens+v.cache_read_tokens+v.cache_creation_tokens),A=B_(v.model),M=`${D.object_id??""}|${D.source}|${A}|${O}`,P=p.get(M);P||(P={object_id:D.object_id,attribution_source:D.source,model:A,context_tier:O,input_tokens:0,output_tokens:0,cache_read_tokens:0,cache_creation_tokens:0,cache_creation_1h_tokens:0,first_ts:"",last_ts:"",turns:0,firstMs:0,lastMs:0},p.set(M,P)),P.input_tokens+=v.input_tokens,P.output_tokens+=v.output_tokens,P.cache_read_tokens+=v.cache_read_tokens,P.cache_creation_tokens+=v.cache_creation_tokens,P.cache_creation_1h_tokens+=v.cache_creation_1h_tokens,P.turns+=1,v.ts>0&&((P.firstMs===0||v.ts<P.firstMs)&&(P.firstMs=v.ts),v.ts>P.lastMs&&(P.lastMs=v.ts))}}let h=n.nowMs??Date.now(),b=[];for(let g of p.values()){let{firstMs:y,lastMs:k,...w}=g;w.first_ts=new Date(y>0?y:h).toISOString(),w.last_ts=new Date(k>0?k:h).toISOString(),b.push(w)}let _={lease:0,binding:1,claim:2,path:3,none:4};return b.sort((g,y)=>_[g.attribution_source]-_[y.attribution_source]||(g.object_id??"").localeCompare(y.object_id??"")||g.model.localeCompare(y.model)||g.context_tier.localeCompare(y.context_tier)),b}a(qi,"sliceSession");function oO(e){let t=e.split(Pc).join("/"),n=t.lastIndexOf("/");return n<=0?t:t.slice(0,n)}a(oO,"dirOf");function iO(e,t){return e===t||e.startsWith(t.endsWith("/")?t:t+"/")}a(iO,"within");function zi(e){let t=new Map,n=a(d=>{let f=t.get(d);if(f!==void 0)return f;let p=e.keyOfRoot(d);return t.set(d,p),p},"keyOf"),r=new Map,o=a(d=>{let f=r.get(d);if(f!==void 0)return f;let p=e.gitRoot(d);return r.set(d,p),p},"gitRoot"),i=new Map,s=[...(e.known??new Map).entries()].filter(([d])=>Mc(d)).sort((d,f)=>f[0].length-d[0].length),l=new Map,c=a(d=>{if(!e.isDir)return null;let f=l.get(d);if(f!==void 0)return f;let p=u(d);return l.set(d,p),p},"byConvention"),u=a(d=>{if(!e.isDir)return null;let f=d.split("/");for(let p=2;p<f.length+1;p++){let h=f.slice(0,p).join("/");if(!h||e.isDir(h))continue;let b=f.slice(0,p-1).join("/")||"/",_=f[p-1];for(let g=_.lastIndexOf("-");g>0;g=_.lastIndexOf("-",g-1)){let y=`${b==="/"?"":b}/${_.slice(0,g)}`;if(e.isDir(y)&&o(y)===y)return{root:h,key:n(y)}}return null}return null},"conventionRoot");return{of(d){if(!Mc(d))return null;let f=d.split(Pc).join("/"),p=oO(f),h=o(p);if(h){let b=n(h);return i.set(h,b),{root:h,key:b}}for(let[b,_]of s)if(!(!iO(f,b)||f===b)&&!(e.isDir&&e.isDir(b)))return{root:b,key:_};return c(p)},seenLive(){return[...i.entries()].map(([d,f])=>({root:d,key:f}))}}}a(zi,"createCheckoutResolver");function Yi(e,t){let n=new Map;for(let s of e){let l=new Map;for(let c of s.edited_paths){let u=t.of(c);!u||!u.key||l.set(u.key,Math.max(l.get(u.key)??0,u.root.length))}for(let[c,u]of l){let d=n.get(c)??{turns:0,depth:0};d.turns+=1,d.depth=Math.max(d.depth,u),n.set(c,d)}}let r=null,o=0,i=0;for(let[s,l]of n)(l.turns>o||l.turns===o&&(l.depth>i||l.depth===i&&r!==null&&s<r))&&(r=s,o=l.turns,i=l.depth);return r}a(Yi,"dominantProjectKey");function Xi(e,t){return n=>{let r=t.of(n);return!r||r.key!==e?null:Wi(n.split(Pc).join("/"),r.root)}}a(Xi,"relativizerFor");var sO=90*24*60*60*1e3,p2=60*60*1e3,aO=/^[a-f0-9]{64}$/;function lO(e){try{let t=JSON.parse(rO(e,"utf8"));if(t&&t.v===1&&t.checkouts&&typeof t.checkouts=="object")return{v:1,checkouts:t.checkouts}}catch{}return{v:1,checkouts:{}}}a(lO,"readMemory");function Lc(e){let t=new Map,n=lO(e);for(let[r,o]of Object.entries(n.checkouts)){if(!Mc(r)||!o||typeof o!="object")continue;let i=typeof o.project_key=="string"&&aO.test(o.project_key)?o.project_key:null;t.set(r,i)}return t}a(Lc,"loadCheckoutMemory");import{createReadStream as cO,existsSync as uO}from"node:fs";import{createInterface as dO}from"node:readline";import{homedir as G_}from"node:os";import{isAbsolute as fO,join as Ji}from"node:path";var V_=Ji(G_(),".codex","sessions");function Ur(e=process.env,t=G_()){let n=e.CODEX_HOME?.trim();return n&&fO(n)?Ji(n,"sessions"):Ji(t,".codex","sessions")}a(Ur,"codexSessionsDir");async function Br(e=V_){let{readdir:t}=await import("node:fs/promises"),n=[],r=a(async o=>{let i;try{i=await t(o,{withFileTypes:!0})}catch{return}for(let s of i){let l=Ji(o,s.name);s.isDirectory()?await r(l):s.isFile()&&s.name.endsWith(".jsonl")&&n.push(l)}},"walk");return await r(e),n.sort()}a(Br,"listCodexSessions");var Fc=a(e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:0,"num");function W_(e){let t=Fc(e.cached_input_tokens),n=Fc(e.input_tokens);return{input_tokens:Math.max(0,n-t),cache_read_tokens:t,output_tokens:Fc(e.output_tokens),cache_creation_tokens:0,cache_creation_1h_tokens:0}}a(W_,"mapCodexUsage");var Uc=/^\*\*\* (?:Update|Add|Delete) File: (.+)$/gm;function pO(e){if(typeof e!="string"||e.length===0)return[];let t=[];Uc.lastIndex=0;for(let n=Uc.exec(e);n!==null;n=Uc.exec(e)){let r=n[1]?.trim();r&&!t.includes(r)&&t.push(r)}return t}a(pO,"codexEditedPaths");async function Kr(e){if(!e||!uO(e))return{turns:[],skipped:0};let t=[],n=0,r=null,o=null,i=[];return await new Promise(s=>{let l=dO({input:cO(e,{encoding:"utf-8"})});l.on("line",u=>{let d=u.trim();if(!d)return;let f;try{f=JSON.parse(d)}catch{return}let p=f.payload??{};if(f.type==="session_meta"||f.type==="turn_context"){typeof p.cwd=="string"&&p.cwd&&(o=p.cwd),typeof p.model=="string"&&p.model&&(r=p.model);return}if(p.name==="apply_patch"){for(let g of pO(p.input))i.includes(g)||i.push(g);return}if(p.type!=="token_count")return;let h=p.info?.last_token_usage;if(!h){n++;return}let b=W_(h);if(b.input_tokens+b.output_tokens+b.cache_read_tokens===0){n++;return}let _=f.timestamp?Date.parse(f.timestamp):Number.NaN;t.push({ts:Number.isFinite(_)?_:0,model:r??"<unknown>",synthetic:!1,...b,sidechain:!1,stream:"main",edited_paths:i,cwd:o}),i=[]});let c=a(()=>s({turns:t,skipped:n}),"done");l.on("close",c),l.on("error",c)})}a(Kr,"collectCodexTurns");var q_="2026-10-01",mO=new Set(["function_call","custom_tool_call","web_search_call"]);function z_(e){let t={user_turns:0,assistant_turns:0,tool_calls:0,session_id:null,lines_seen:e.length};for(let n of e){if(!n||typeof n!="object")continue;let r=n,o=r.payload??{},i=typeof o.type=="string"?o.type:"";if(r.type==="session_meta"&&!t.session_id){let s=typeof o.session_id=="string"&&o.session_id?o.session_id:o.id;typeof s=="string"&&s&&(t.session_id=s)}r.type==="event_msg"&&(i==="user_message"?t.user_turns++:i==="agent_message"&&t.assistant_turns++),r.type==="response_item"&&mO.has(i)&&t.tool_calls++}return t}a(z_,"countCodexRecords");async function Bc(e){let{turns:t}=await Kr(e),n=[],{readFile:r}=await import("node:fs/promises"),o;try{o=await r(e,"utf-8")}catch{return null}for(let c of o.split(`
package/build/meta.json CHANGED
@@ -1 +1 @@
1
- {"inputs":{"src/auth.ts":{"bytes":3524,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/model/types.js":{"bytes":471,"imports":[],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js":{"bytes":4055,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js":{"bytes":4349,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js","kind":"import-statement","original":"./helpers/util.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js":{"bytes":5602,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js","kind":"import-statement","original":"../ZodError.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js","kind":"import-statement","original":"../helpers/util.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js":{"bytes":243,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js","kind":"import-statement","original":"./locales/en.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js":{"bytes":3601,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js","kind":"import-statement","original":"../errors.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js","kind":"import-statement","original":"../locales/en.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.js":{"bytes":11,"imports":[],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js":{"bytes":300,"imports":[],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js":{"bytes":131212,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js","kind":"import-statement","original":"./ZodError.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js","kind":"import-statement","original":"./errors.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js","kind":"import-statement","original":"./helpers/errorUtil.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js","kind":"import-statement","original":"./helpers/parseUtil.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js","kind":"import-statement","original":"./helpers/util.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js":{"bytes":205,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js","kind":"import-statement","original":"./errors.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js","kind":"import-statement","original":"./helpers/parseUtil.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.js","kind":"import-statement","original":"./helpers/typeAliases.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js","kind":"import-statement","original":"./helpers/util.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js","kind":"import-statement","original":"./types.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js","kind":"import-statement","original":"./ZodError.js"}],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js":{"bytes":105,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js","kind":"import-statement","original":"./v3/external.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js","kind":"import-statement","original":"./v3/external.js"}],"format":"esm"},"../../packages/content-schemas/build/lesson.js":{"bytes":6896,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"}],"format":"esm"},"../../packages/content-schemas/build/template.js":{"bytes":1563,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"},{"path":"../../packages/content-schemas/build/lesson.js","kind":"import-statement","original":"./lesson.js"}],"format":"esm"},"../../packages/content-schemas/build/setup-guide.js":{"bytes":3368,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/content-schemas/build/agent-conventions.js":{"bytes":8963,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"}],"format":"esm"},"../../packages/content-schemas/build/index.js":{"bytes":1282,"imports":[{"path":"../../packages/content-schemas/build/lesson.js","kind":"import-statement","original":"./lesson.js"},{"path":"../../packages/content-schemas/build/template.js","kind":"import-statement","original":"./template.js"},{"path":"../../packages/content-schemas/build/setup-guide.js","kind":"import-statement","original":"./setup-guide.js"},{"path":"../../packages/content-schemas/build/agent-conventions.js","kind":"import-statement","original":"./agent-conventions.js"}],"format":"esm"},"../../packages/schemas/build/changelog-content.js":{"bytes":1737,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"}],"format":"esm"},"../../packages/schemas/build/plan-overrides.js":{"bytes":3126,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/plan-features.js":{"bytes":727,"imports":[],"format":"esm"},"../../packages/schemas/build/seat-overrides.js":{"bytes":1639,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/audit-rules.js":{"bytes":2625,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"}],"format":"esm"},"../../packages/schemas/build/model-pricing.js":{"bytes":9779,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/conventions/types.js":{"bytes":935,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/conventions/helpers.js":{"bytes":9493,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/conventions/lesson-conventions.js":{"bytes":19208,"imports":[{"path":"../../packages/schemas/build/conventions/helpers.js","kind":"import-statement","original":"./helpers.js"},{"path":"../../packages/schemas/build/conventions/types.js","kind":"import-statement","original":"./types.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/conventions/template-conventions.js":{"bytes":5958,"imports":[{"path":"../../packages/schemas/build/conventions/types.js","kind":"import-statement","original":"./types.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/conventions/setup-guide-conventions.js":{"bytes":9069,"imports":[{"path":"../../packages/content-schemas/build/index.js","kind":"import-statement","original":"@maind-dev/content-schemas"},{"path":"../../packages/schemas/build/conventions/helpers.js","kind":"import-statement","original":"./helpers.js"},{"path":"../../packages/schemas/build/conventions/types.js","kind":"import-statement","original":"./types.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/conventions/convention-conventions.js":{"bytes":12882,"imports":[{"path":"../../packages/schemas/build/conventions/helpers.js","kind":"import-statement","original":"./helpers.js"},{"path":"../../packages/schemas/build/conventions/types.js","kind":"import-statement","original":"./types.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/conventions/index.js":{"bytes":1422,"imports":[{"path":"../../packages/schemas/build/conventions/types.js","kind":"import-statement","original":"./types.js"},{"path":"../../packages/schemas/build/conventions/lesson-conventions.js","kind":"import-statement","original":"./lesson-conventions.js"},{"path":"../../packages/schemas/build/conventions/template-conventions.js","kind":"import-statement","original":"./template-conventions.js"},{"path":"../../packages/schemas/build/conventions/setup-guide-conventions.js","kind":"import-statement","original":"./setup-guide-conventions.js"},{"path":"../../packages/schemas/build/conventions/convention-conventions.js","kind":"import-statement","original":"./convention-conventions.js"},{"path":"../../packages/schemas/build/conventions/helpers.js","kind":"import-statement","original":"./helpers.js"}],"format":"esm"},"../../packages/schemas/build/skill.js":{"bytes":6397,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"},{"path":"../../packages/content-schemas/build/index.js","kind":"import-statement","original":"@maind-dev/content-schemas"}],"format":"esm"},"../../packages/schemas/build/skill-readiness.js":{"bytes":28362,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"},{"path":"../../packages/schemas/build/skill.js","kind":"import-statement","original":"./skill.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/jcs.js":{"bytes":3282,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/review.js":{"bytes":22550,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"},{"path":"../../packages/content-schemas/build/index.js","kind":"import-statement","original":"@maind-dev/content-schemas"},{"path":"../../packages/schemas/build/jcs.js","kind":"import-statement","original":"./jcs.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/planning.js":{"bytes":11946,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"}],"format":"esm"},"../../packages/schemas/build/coordination.js":{"bytes":2128,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"}],"format":"esm"},"../../packages/schemas/build/user-memory.js":{"bytes":2866,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"}],"format":"esm"},"../../packages/schemas/build/mcp-tools.js":{"bytes":1505,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/plain-scalar.js":{"bytes":2790,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/semver.js":{"bytes":2024,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/index.js":{"bytes":8501,"imports":[{"path":"../../packages/content-schemas/build/index.js","kind":"import-statement","original":"@maind-dev/content-schemas"},{"path":"../../packages/schemas/build/changelog-content.js","kind":"import-statement","original":"./changelog-content.js"},{"path":"../../packages/content-schemas/build/index.js","kind":"import-statement","original":"@maind-dev/content-schemas"},{"path":"../../packages/content-schemas/build/index.js","kind":"import-statement","original":"@maind-dev/content-schemas"},{"path":"../../packages/schemas/build/plan-overrides.js","kind":"import-statement","original":"./plan-overrides.js"},{"path":"../../packages/schemas/build/plan-features.js","kind":"import-statement","original":"./plan-features.js"},{"path":"../../packages/schemas/build/seat-overrides.js","kind":"import-statement","original":"./seat-overrides.js"},{"path":"../../packages/schemas/build/audit-rules.js","kind":"import-statement","original":"./audit-rules.js"},{"path":"../../packages/schemas/build/model-pricing.js","kind":"import-statement","original":"./model-pricing.js"},{"path":"../../packages/schemas/build/conventions/index.js","kind":"import-statement","original":"./conventions/index.js"},{"path":"../../packages/content-schemas/build/index.js","kind":"import-statement","original":"@maind-dev/content-schemas"},{"path":"../../packages/schemas/build/skill.js","kind":"import-statement","original":"./skill.js"},{"path":"../../packages/schemas/build/skill-readiness.js","kind":"import-statement","original":"./skill-readiness.js"},{"path":"../../packages/schemas/build/review.js","kind":"import-statement","original":"./review.js"},{"path":"../../packages/schemas/build/planning.js","kind":"import-statement","original":"./planning.js"},{"path":"../../packages/schemas/build/coordination.js","kind":"import-statement","original":"./coordination.js"},{"path":"../../packages/schemas/build/user-memory.js","kind":"import-statement","original":"./user-memory.js"},{"path":"../../packages/schemas/build/mcp-tools.js","kind":"import-statement","original":"./mcp-tools.js"},{"path":"../../packages/schemas/build/jcs.js","kind":"import-statement","original":"./jcs.js"},{"path":"../../packages/schemas/build/plain-scalar.js","kind":"import-statement","original":"./plain-scalar.js"},{"path":"../../packages/schemas/build/semver.js","kind":"import-statement","original":"./semver.js"}],"format":"esm"},"../../packages/code-index/build/embed/recipe.js":{"bytes":594,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/embed/types.js":{"bytes":505,"imports":[],"format":"esm"},"../../packages/code-index/build/util/vector.js":{"bytes":707,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/graph/module-config.js":{"bytes":6657,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/graph/module-resolver.js":{"bytes":9196,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/parse/keys.js":{"bytes":448,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/graph/resolve.js":{"bytes":19601,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/parse/keys.js","kind":"import-statement","original":"../parse/keys.js"},{"path":"../../packages/code-index/build/graph/module-resolver.js","kind":"import-statement","original":"./module-resolver.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/parse/types.js":{"bytes":768,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/util/maind-local-ignore.js":{"bytes":4243,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/incremental/discover.js":{"bytes":15823,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/parse/types.js","kind":"import-statement","original":"../parse/types.js"},{"path":"../../packages/code-index/build/util/maind-local-ignore.js","kind":"import-statement","original":"../util/maind-local-ignore.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/incremental/hunks.js":{"bytes":6382,"imports":[{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"./discover.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/incremental/history.js":{"bytes":7302,"imports":[{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"./discover.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/hooks.js":{"bytes":5187,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/supabase-migrations.js":{"bytes":4431,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/divergence.js":{"bytes":52694,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/repo-health/hooks.js","kind":"import-statement","original":"./hooks.js"},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"../../packages/code-index/build/repo-health/supabase-migrations.js","kind":"import-statement","original":"./supabase-migrations.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/number-collisions.js":{"bytes":26360,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/project-key/build/index.js":{"bytes":3446,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/detectors.js":{"bytes":11619,"imports":[{"path":"../../packages/project-key/build/index.js","kind":"import-statement","original":"@maind/project-key"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/spec-drift.js":{"bytes":36059,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/changelog-duplicates.js":{"bytes":8831,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/release-claims.js":{"bytes":11531,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/schemas/build/index.js","kind":"import-statement","original":"@maind/schemas"},{"path":"../../packages/code-index/build/repo-health/changelog-duplicates.js","kind":"import-statement","original":"./changelog-duplicates.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/agent-doc-prose.js":{"bytes":9093,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/ci-config.js":{"bytes":2751,"imports":[],"format":"esm"},"../../packages/code-index/build/repo-health/workflow-yaml.js":{"bytes":5251,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/schemas/build/index.js","kind":"import-statement","original":"@maind/schemas"},{"path":"../../packages/code-index/build/repo-health/ci-config.js","kind":"import-statement","original":"./ci-config.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/table-acl-lint.js":{"bytes":29480,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"../../packages/code-index/build/repo-health/supabase-migrations.js","kind":"import-statement","original":"./supabase-migrations.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/theme-class-drift.js":{"bytes":18006,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/detector-adapter.js":{"bytes":24211,"imports":[{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"../../packages/code-index/build/repo-health/detectors.js","kind":"import-statement","original":"./detectors.js"},{"path":"../../packages/code-index/build/repo-health/number-collisions.js","kind":"import-statement","original":"./number-collisions.js"},{"path":"../../packages/code-index/build/repo-health/spec-drift.js","kind":"import-statement","original":"./spec-drift.js"},{"path":"../../packages/code-index/build/repo-health/release-claims.js","kind":"import-statement","original":"./release-claims.js"},{"path":"../../packages/code-index/build/repo-health/agent-doc-prose.js","kind":"import-statement","original":"./agent-doc-prose.js"},{"path":"../../packages/code-index/build/repo-health/workflow-yaml.js","kind":"import-statement","original":"./workflow-yaml.js"},{"path":"../../packages/code-index/build/repo-health/changelog-duplicates.js","kind":"import-statement","original":"./changelog-duplicates.js"},{"path":"../../packages/code-index/build/repo-health/table-acl-lint.js","kind":"import-statement","original":"./table-acl-lint.js"},{"path":"../../packages/code-index/build/repo-health/theme-class-drift.js","kind":"import-statement","original":"./theme-class-drift.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/review/risk-rules.js":{"bytes":2117,"imports":[{"path":"../../packages/code-index/build/repo-health/ci-config.js","kind":"import-statement","original":"../repo-health/ci-config.js"}],"format":"esm"},"../../packages/code-index/build/review/risk-scan.js":{"bytes":1451,"imports":[{"path":"../../packages/code-index/build/review/risk-rules.js","kind":"import-statement","original":"./risk-rules.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/store/schema.js":{"bytes":4715,"imports":[],"format":"esm"},"../../packages/code-index/build/util/identifiers.js":{"bytes":2180,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/query/engine.js":{"bytes":24494,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/schemas/build/index.js","kind":"import-statement","original":"@maind/schemas"},{"path":"../../packages/code-index/build/embed/recipe.js","kind":"import-statement","original":"../embed/recipe.js"},{"path":"../../packages/code-index/build/embed/types.js","kind":"import-statement","original":"../embed/types.js"},{"path":"../../packages/code-index/build/util/vector.js","kind":"import-statement","original":"../util/vector.js"},{"path":"../../packages/code-index/build/graph/module-config.js","kind":"import-statement","original":"../graph/module-config.js"},{"path":"../../packages/code-index/build/graph/module-resolver.js","kind":"import-statement","original":"../graph/module-resolver.js"},{"path":"../../packages/code-index/build/graph/resolve.js","kind":"import-statement","original":"../graph/resolve.js"},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"../../packages/code-index/build/incremental/hunks.js","kind":"import-statement","original":"../incremental/hunks.js"},{"path":"../../packages/code-index/build/incremental/history.js","kind":"import-statement","original":"../incremental/history.js"},{"path":"../../packages/code-index/build/repo-health/divergence.js","kind":"import-statement","original":"../repo-health/divergence.js"},{"path":"../../packages/code-index/build/repo-health/number-collisions.js","kind":"import-statement","original":"../repo-health/number-collisions.js"},{"path":"../../packages/code-index/build/repo-health/detector-adapter.js","kind":"import-statement","original":"../repo-health/detector-adapter.js"},{"path":"../../packages/code-index/build/repo-health/spec-drift.js","kind":"import-statement","original":"../repo-health/spec-drift.js"},{"path":"../../packages/code-index/build/review/risk-scan.js","kind":"import-statement","original":"../review/risk-scan.js"},{"path":"../../packages/code-index/build/store/schema.js","kind":"import-statement","original":"../store/schema.js"},{"path":"../../packages/code-index/build/util/identifiers.js","kind":"import-statement","original":"../util/identifiers.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/scan-root.js":{"bytes":12545,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/adr-index-drift.js":{"bytes":10440,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/migration-ledger-drift.js":{"bytes":22760,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"../../packages/code-index/build/repo-health/supabase-migrations.js","kind":"import-statement","original":"./supabase-migrations.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/query/moment.js":{"bytes":7089,"imports":[{"path":"../../packages/code-index/build/parse/keys.js","kind":"import-statement","original":"../parse/keys.js"},{"path":"../../packages/code-index/build/store/schema.js","kind":"import-statement","original":"../store/schema.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/code-index-version.js":{"bytes":1452,"imports":[],"format":"esm"},"../../packages/code-index/build/review/attest.js":{"bytes":12155,"imports":[{"path":"../../packages/schemas/build/index.js","kind":"import-statement","original":"@maind/schemas"},{"path":"../../packages/code-index/build/code-index-version.js","kind":"import-statement","original":"../code-index-version.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/index.js":{"bytes":8029,"imports":[{"path":"../../packages/code-index/build/model/types.js","kind":"import-statement","original":"./model/types.js"},{"path":"../../packages/code-index/build/query/engine.js","kind":"import-statement","original":"./query/engine.js"},{"path":"../../packages/code-index/build/incremental/history.js","kind":"import-statement","original":"./incremental/history.js"},{"path":"../../packages/code-index/build/review/risk-rules.js","kind":"import-statement","original":"./review/risk-rules.js"},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"./incremental/discover.js"},{"path":"../../packages/code-index/build/repo-health/changelog-duplicates.js","kind":"import-statement","original":"./repo-health/changelog-duplicates.js"},{"path":"../../packages/code-index/build/repo-health/workflow-yaml.js","kind":"import-statement","original":"./repo-health/workflow-yaml.js"},{"path":"../../packages/code-index/build/repo-health/release-claims.js","kind":"import-statement","original":"./repo-health/release-claims.js"},{"path":"../../packages/code-index/build/repo-health/agent-doc-prose.js","kind":"import-statement","original":"./repo-health/agent-doc-prose.js"},{"path":"../../packages/code-index/build/repo-health/divergence.js","kind":"import-statement","original":"./repo-health/divergence.js"},{"path":"../../packages/code-index/build/repo-health/scan-root.js","kind":"import-statement","original":"./repo-health/scan-root.js"},{"path":"../../packages/code-index/build/repo-health/adr-index-drift.js","kind":"import-statement","original":"./repo-health/adr-index-drift.js"},{"path":"../../packages/code-index/build/repo-health/hooks.js","kind":"import-statement","original":"./repo-health/hooks.js"},{"path":"../../packages/code-index/build/repo-health/number-collisions.js","kind":"import-statement","original":"./repo-health/number-collisions.js"},{"path":"../../packages/code-index/build/repo-health/theme-class-drift.js","kind":"import-statement","original":"./repo-health/theme-class-drift.js"},{"path":"../../packages/code-index/build/repo-health/spec-drift.js","kind":"import-statement","original":"./repo-health/spec-drift.js"},{"path":"../../packages/code-index/build/repo-health/supabase-migrations.js","kind":"import-statement","original":"./repo-health/supabase-migrations.js"},{"path":"../../packages/code-index/build/repo-health/table-acl-lint.js","kind":"import-statement","original":"./repo-health/table-acl-lint.js"},{"path":"../../packages/code-index/build/repo-health/migration-ledger-drift.js","kind":"import-statement","original":"./repo-health/migration-ledger-drift.js"},{"path":"../../packages/code-index/build/repo-health/detectors.js","kind":"import-statement","original":"./repo-health/detectors.js"},{"path":"../../packages/code-index/build/repo-health/detector-adapter.js","kind":"import-statement","original":"./repo-health/detector-adapter.js"},{"path":"../../packages/code-index/build/repo-health/number-collisions.js","kind":"import-statement","original":"./repo-health/number-collisions.js"},{"path":"../../packages/code-index/build/repo-health/spec-drift.js","kind":"import-statement","original":"./repo-health/spec-drift.js"},{"path":"../../packages/code-index/build/repo-health/theme-class-drift.js","kind":"import-statement","original":"./repo-health/theme-class-drift.js"},{"path":"../../packages/code-index/build/repo-health/table-acl-lint.js","kind":"import-statement","original":"./repo-health/table-acl-lint.js"},{"path":"../../packages/code-index/build/parse/types.js","kind":"import-statement","original":"./parse/types.js"},{"path":"../../packages/code-index/build/embed/types.js","kind":"import-statement","original":"./embed/types.js"},{"path":"../../packages/code-index/build/store/schema.js","kind":"import-statement","original":"./store/schema.js"},{"path":"../../packages/code-index/build/query/moment.js","kind":"import-statement","original":"./query/moment.js"},{"path":"../../packages/code-index/build/util/maind-local-ignore.js","kind":"import-statement","original":"./util/maind-local-ignore.js"},{"path":"../../packages/code-index/build/code-index-version.js","kind":"import-statement","original":"./code-index-version.js"},{"path":"../../packages/code-index/build/review/attest.js","kind":"import-statement","original":"./review/attest.js"}],"format":"esm"},"src/mcp-client.ts":{"bytes":12338,"imports":[{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/render.ts":{"bytes":4525,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/ci-env.ts":{"bytes":4731,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/context.ts":{"bytes":6837,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"src/render.ts","kind":"import-statement","original":"./render.js"},{"path":"src/ci-env.ts","kind":"import-statement","original":"./ci-env.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/git.ts":{"bytes":5748,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"../../packages/project-key/build/index.js","kind":"import-statement","original":"@maind/project-key"},{"path":"../../packages/project-key/build/index.js","kind":"import-statement","original":"@maind/project-key"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/ci-report.ts":{"bytes":6831,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/git.ts","kind":"import-statement","original":"./git.js"},{"path":"src/ci-env.ts","kind":"import-statement","original":"./ci-env.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/ci-result.ts":{"bytes":5305,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/ci-env.ts","kind":"import-statement","original":"./ci-env.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/git-context.ts":{"bytes":9481,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"src/git.ts","kind":"import-statement","original":"./git.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/parse/lang/shared.js":{"bytes":9228,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/parse/lang/python.js":{"bytes":4535,"imports":[{"path":"../../packages/code-index/build/parse/keys.js","kind":"import-statement","original":"../keys.js"},{"path":"../../packages/code-index/build/parse/lang/shared.js","kind":"import-statement","original":"./shared.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/parse/lang/typescript.js":{"bytes":17050,"imports":[{"path":"../../packages/code-index/build/parse/keys.js","kind":"import-statement","original":"../keys.js"},{"path":"../../packages/code-index/build/parse/lang/shared.js","kind":"import-statement","original":"./shared.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/parse/tree-sitter/grammars.js":{"bytes":1941,"imports":[{"path":"node:module","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/parse/tree-sitter/parser.js":{"bytes":3284,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"web-tree-sitter","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/parse/keys.js","kind":"import-statement","original":"../keys.js"},{"path":"../../packages/code-index/build/parse/types.js","kind":"import-statement","original":"../types.js"},{"path":"../../packages/code-index/build/parse/lang/python.js","kind":"import-statement","original":"../lang/python.js"},{"path":"../../packages/code-index/build/parse/lang/typescript.js","kind":"import-statement","original":"../lang/typescript.js"},{"path":"../../packages/code-index/build/parse/lang/shared.js","kind":"import-statement","original":"../lang/shared.js"},{"path":"../../packages/code-index/build/parse/tree-sitter/grammars.js","kind":"import-statement","original":"./grammars.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/store/sqlite-driver.js":{"bytes":7618,"imports":[{"path":"node:module","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/store/facts.js":{"bytes":3344,"imports":[{"path":"../../packages/code-index/build/parse/keys.js","kind":"import-statement","original":"../parse/keys.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/store/node-sqlite.js":{"bytes":14267,"imports":[{"path":"../../packages/code-index/build/store/sqlite-driver.js","kind":"import-statement","original":"./sqlite-driver.js"},{"path":"../../packages/code-index/build/store/schema.js","kind":"import-statement","original":"./schema.js"},{"path":"../../packages/code-index/build/store/facts.js","kind":"import-statement","original":"./facts.js"},{"path":"../../packages/code-index/build/util/identifiers.js","kind":"import-statement","original":"../util/identifiers.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/sync/types.js":{"bytes":1779,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/sync/client.js":{"bytes":10559,"imports":[{"path":"../../packages/code-index/build/store/schema.js","kind":"import-statement","original":"../store/schema.js"},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/sync/types.js","kind":"import-statement","original":"./types.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/node.js":{"bytes":3594,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/project-key/build/index.js","kind":"import-statement","original":"@maind/project-key"},{"path":"../../packages/code-index/build/parse/tree-sitter/parser.js","kind":"import-statement","original":"./parse/tree-sitter/parser.js"},{"path":"../../packages/code-index/build/query/engine.js","kind":"import-statement","original":"./query/engine.js"},{"path":"../../packages/code-index/build/query/moment.js","kind":"import-statement","original":"./query/moment.js"},{"path":"../../packages/code-index/build/store/node-sqlite.js","kind":"import-statement","original":"./store/node-sqlite.js"},{"path":"../../packages/code-index/build/store/sqlite-driver.js","kind":"import-statement","original":"./store/sqlite-driver.js"},{"path":"../../packages/code-index/build/sync/client.js","kind":"import-statement","original":"./sync/client.js"},{"path":"../../packages/code-index/build/util/maind-local-ignore.js","kind":"import-statement","original":"./util/maind-local-ignore.js"},{"path":"../../packages/code-index/build/sync/client.js","kind":"import-statement","original":"./sync/client.js"},{"path":"../../packages/code-index/build/store/sqlite-driver.js","kind":"import-statement","original":"./store/sqlite-driver.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/embedding/build/index.js":{"bytes":7855,"imports":[{"path":"@huggingface/transformers","kind":"dynamic-import","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/embed/node.js":{"bytes":661,"imports":[{"path":"../../packages/embedding/build/index.js","kind":"import-statement","original":"@maind/embedding"},{"path":"../../packages/code-index/build/embed/recipe.js","kind":"import-statement","original":"./recipe.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/node-embed.js":{"bytes":660,"imports":[{"path":"../../packages/code-index/build/embed/node.js","kind":"import-statement","original":"./embed/node.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index-cmd.ts":{"bytes":9353,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/node.js","kind":"import-statement","original":"@maind/code-index/node"},{"path":"../../packages/code-index/build/node-embed.js","kind":"import-statement","original":"@maind/code-index/node-embed"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js":{"bytes":2787,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/util.js":{"bytes":4209,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/date.js":{"bytes":4942,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/primitive.js":{"bytes":6576,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/util.js","kind":"import-statement","original":"./util.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/date.js","kind":"import-statement","original":"./date.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/extract.js":{"bytes":4243,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/primitive.js","kind":"import-statement","original":"./primitive.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/struct.js","kind":"import-statement","original":"./struct.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/util.js","kind":"import-statement","original":"./util.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/struct.js":{"bytes":7308,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/primitive.js","kind":"import-statement","original":"./primitive.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/extract.js","kind":"import-statement","original":"./extract.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/util.js","kind":"import-statement","original":"./util.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/parse.js":{"bytes":5694,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/struct.js","kind":"import-statement","original":"./struct.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/extract.js","kind":"import-statement","original":"./extract.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/util.js","kind":"import-statement","original":"./util.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/stringify.js":{"bytes":6453,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/index.js":{"bytes":1883,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/parse.js","kind":"import-statement","original":"./parse.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/stringify.js","kind":"import-statement","original":"./stringify.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/date.js","kind":"import-statement","original":"./date.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"}],"format":"esm"},"src/switchyard.ts":{"bytes":15128,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/index.js","kind":"import-statement","original":"smol-toml"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/version.ts":{"bytes":1857,"imports":[{"path":"node:module","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/launch-cmd.ts":{"bytes":15407,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/git.ts","kind":"import-statement","original":"./git.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"src/switchyard.ts","kind":"import-statement","original":"./switchyard.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/feature/checks.ts":{"bytes":4098,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/override.ts":{"bytes":6644,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/work-object.ts":{"bytes":7074,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/feature/completion.ts":{"bytes":9537,"imports":[{"path":"src/gate/work-object.ts","kind":"import-statement","original":"../gate/work-object.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/manifest.ts":{"bytes":9076,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/feature/post-merge.ts":{"bytes":5760,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/feature/workflow.ts":{"bytes":18740,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/feature/config.ts":{"bytes":7281,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/feature/workflow.ts","kind":"import-statement","original":"./workflow.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/contract.ts":{"bytes":5609,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/manifest-drift.ts":{"bytes":7391,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/parity.ts":{"bytes":7522,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/review-run.ts":{"bytes":34629,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/node.js","kind":"import-statement","original":"@maind/code-index/node"},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"../../packages/project-key/build/index.js","kind":"import-statement","original":"@maind/project-key"},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/attestation.ts":{"bytes":4736,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/verify/render.ts":{"bytes":4761,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/verify/replay.ts":{"bytes":4585,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/node.js","kind":"import-statement","original":"@maind/code-index/node"},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"src/review-run.ts","kind":"import-statement","original":"../review-run.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/verify/flow.ts":{"bytes":8390,"imports":[{"path":"src/mcp-client.ts","kind":"import-statement","original":"../mcp-client.js"},{"path":"src/verify/render.ts","kind":"import-statement","original":"./render.js"},{"path":"src/verify/replay.ts","kind":"import-statement","original":"./replay.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/verify/scratch.ts":{"bytes":5085,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/detector-source.ts":{"bytes":4805,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/detector-class.ts":{"bytes":8718,"imports":[{"path":"../../packages/schemas/build/index.js","kind":"import-statement","original":"@maind/schemas"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/override-log.ts":{"bytes":2831,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/object-cmd.ts":{"bytes":44141,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/git.ts","kind":"import-statement","original":"./git.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/review-gate.ts":{"bytes":6916,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/version-claim.ts":{"bytes":8883,"imports":[{"path":"../../packages/schemas/build/index.js","kind":"import-statement","original":"@maind/schemas"},{"path":"../../packages/schemas/build/index.js","kind":"import-statement","original":"@maind/schemas"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate-cmd.ts":{"bytes":41419,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/node.js","kind":"import-statement","original":"@maind/code-index/node"},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"../../packages/project-key/build/index.js","kind":"import-statement","original":"@maind/project-key"},{"path":"src/gate/contract.ts","kind":"import-statement","original":"./gate/contract.js"},{"path":"src/gate/manifest.ts","kind":"import-statement","original":"./gate/manifest.js"},{"path":"src/gate/manifest-drift.ts","kind":"import-statement","original":"./gate/manifest-drift.js"},{"path":"src/gate/parity.ts","kind":"import-statement","original":"./gate/parity.js"},{"path":"src/review-run.ts","kind":"import-statement","original":"./review-run.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"src/gate/attestation.ts","kind":"import-statement","original":"./gate/attestation.js"},{"path":"src/verify/flow.ts","kind":"import-statement","original":"./verify/flow.js"},{"path":"src/verify/replay.ts","kind":"import-statement","original":"./verify/replay.js"},{"path":"src/verify/scratch.ts","kind":"import-statement","original":"./verify/scratch.js"},{"path":"src/gate/detector-source.ts","kind":"import-statement","original":"./gate/detector-source.js"},{"path":"src/gate/detector-class.ts","kind":"import-statement","original":"./gate/detector-class.js"},{"path":"src/gate/override-log.ts","kind":"import-statement","original":"./gate/override-log.js"},{"path":"src/gate/override.ts","kind":"import-statement","original":"./gate/override.js"},{"path":"src/object-cmd.ts","kind":"import-statement","original":"./object-cmd.js"},{"path":"src/gate/review-gate.ts","kind":"import-statement","original":"./gate/review-gate.js"},{"path":"src/gate/work-object.ts","kind":"import-statement","original":"./gate/work-object.js"},{"path":"src/gate/version-claim.ts","kind":"import-statement","original":"./gate/version-claim.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/feature/pr-title.ts":{"bytes":4862,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/feature/outward.ts":{"bytes":14574,"imports":[{"path":"src/feature/pr-title.ts","kind":"import-statement","original":"./pr-title.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/feature/forge.ts":{"bytes":4013,"imports":[{"path":"src/git.ts","kind":"import-statement","original":"../git.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/feature-cmd.ts":{"bytes":47034,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/feature/checks.ts","kind":"import-statement","original":"./feature/checks.js"},{"path":"src/gate/override.ts","kind":"import-statement","original":"./gate/override.js"},{"path":"src/feature/completion.ts","kind":"import-statement","original":"./feature/completion.js"},{"path":"src/gate/manifest.ts","kind":"import-statement","original":"./gate/manifest.js"},{"path":"src/feature/post-merge.ts","kind":"import-statement","original":"./feature/post-merge.js"},{"path":"src/feature/config.ts","kind":"import-statement","original":"./feature/config.js"},{"path":"src/gate-cmd.ts","kind":"import-statement","original":"./gate-cmd.js"},{"path":"src/object-cmd.ts","kind":"import-statement","original":"./object-cmd.js"},{"path":"src/feature/outward.ts","kind":"import-statement","original":"./feature/outward.js"},{"path":"src/feature/workflow.ts","kind":"import-statement","original":"./feature/workflow.js"},{"path":"src/feature/forge.ts","kind":"import-statement","original":"./feature/forge.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/verify-cmd.ts":{"bytes":11853,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"../../packages/project-key/build/index.js","kind":"import-statement","original":"@maind/project-key"},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"src/verify/flow.ts","kind":"import-statement","original":"./verify/flow.js"},{"path":"src/verify/render.ts","kind":"import-statement","original":"./verify/render.js"},{"path":"src/verify/replay.ts","kind":"import-statement","original":"./verify/replay.js"},{"path":"src/verify/scratch.ts","kind":"import-statement","original":"./verify/scratch.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/review-render.ts":{"bytes":32120,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/review.ts":{"bytes":11508,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"src/review-run.ts","kind":"import-statement","original":"./review-run.js"},{"path":"src/review-render.ts","kind":"import-statement","original":"./review-render.js"},{"path":"src/ci-env.ts","kind":"import-statement","original":"./ci-env.js"},{"path":"src/review-run.ts","kind":"import-statement","original":"./review-run.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/guard-triggers/build/verbs.js":{"bytes":12262,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/guard-triggers/build/sensor.js":{"bytes":5788,"imports":[{"path":"../../packages/guard-triggers/build/verbs.js","kind":"import-statement","original":"./verbs.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/guard-triggers/build/episode.js":{"bytes":6386,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/guard-triggers/build/policy.js":{"bytes":3007,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/guard-triggers/build/texts.js":{"bytes":2841,"imports":[{"path":"../../packages/guard-triggers/build/episode.js","kind":"import-statement","original":"./episode.js"},{"path":"../../packages/guard-triggers/build/policy.js","kind":"import-statement","original":"./policy.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/guard-triggers/build/index.js":{"bytes":1127,"imports":[{"path":"../../packages/guard-triggers/build/verbs.js","kind":"import-statement","original":"./verbs.js"},{"path":"../../packages/guard-triggers/build/sensor.js","kind":"import-statement","original":"./sensor.js"},{"path":"../../packages/guard-triggers/build/episode.js","kind":"import-statement","original":"./episode.js"},{"path":"../../packages/guard-triggers/build/policy.js","kind":"import-statement","original":"./policy.js"},{"path":"../../packages/guard-triggers/build/texts.js","kind":"import-statement","original":"./texts.js"}],"format":"esm"},"src/run/digest.ts":{"bytes":2998,"imports":[{"path":"../../packages/project-key/build/index.js","kind":"import-statement","original":"@maind/project-key"},{"path":"../../packages/schemas/build/index.js","kind":"import-statement","original":"@maind/schemas"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/dispatch.ts":{"bytes":48437,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/gates.ts":{"bytes":12825,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/guard-triggers/build/index.js","kind":"import-statement","original":"@maind/guard-triggers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/harness.ts":{"bytes":12133,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/cost.ts":{"bytes":9509,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/ledger.ts":{"bytes":3625,"imports":[{"path":"../../packages/guard-triggers/build/index.js","kind":"import-statement","original":"@maind/guard-triggers"},{"path":"../../packages/guard-triggers/build/index.js","kind":"import-statement","original":"@maind/guard-triggers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/difficulty.ts":{"bytes":2920,"imports":[{"path":"../../packages/guard-triggers/build/index.js","kind":"import-statement","original":"@maind/guard-triggers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/policy.ts":{"bytes":13460,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/auth-lane.ts":{"bytes":4519,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/closing.ts":{"bytes":6935,"imports":[{"path":"src/review.ts","kind":"import-statement","original":"../review.js"},{"path":"src/review-run.ts","kind":"import-statement","original":"../review-run.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/record.ts":{"bytes":16132,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run-dispatch.ts":{"bytes":80579,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"../../packages/guard-triggers/build/index.js","kind":"import-statement","original":"@maind/guard-triggers"},{"path":"src/git.ts","kind":"import-statement","original":"./git.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"src/run/digest.ts","kind":"import-statement","original":"./run/digest.js"},{"path":"src/run/dispatch.ts","kind":"import-statement","original":"./run/dispatch.js"},{"path":"src/run/gates.ts","kind":"import-statement","original":"./run/gates.js"},{"path":"src/run/harness.ts","kind":"import-statement","original":"./run/harness.js"},{"path":"src/run/cost.ts","kind":"import-statement","original":"./run/cost.js"},{"path":"src/run/ledger.ts","kind":"import-statement","original":"./run/ledger.js"},{"path":"src/run/difficulty.ts","kind":"import-statement","original":"./run/difficulty.js"},{"path":"src/run/policy.ts","kind":"import-statement","original":"./run/policy.js"},{"path":"src/run/auth-lane.ts","kind":"import-statement","original":"./run/auth-lane.js"},{"path":"src/run/closing.ts","kind":"import-statement","original":"./run/closing.js"},{"path":"src/run/record.ts","kind":"import-statement","original":"./run/record.js"},{"path":"src/review.ts","kind":"import-statement","original":"./review.js"},{"path":"src/ci-env.ts","kind":"import-statement","original":"./ci-env.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/preflight.ts":{"bytes":4111,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run-preflight.ts":{"bytes":4768,"imports":[{"path":"src/run/preflight.ts","kind":"import-statement","original":"./run/preflight.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/types.js":{"bytes":338,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/transcript.js":{"bytes":2979,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/decisions.js":{"bytes":6845,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/effort.js":{"bytes":1858,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/maind-tools.js":{"bytes":1867,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/turns.js":{"bytes":11399,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/maind-tools.js","kind":"import-statement","original":"./maind-tools.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/session-analysis.js":{"bytes":22160,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/effort.js","kind":"import-statement","original":"./effort.js"},{"path":"../../packages/claude-code-telemetry/dist/maind-tools.js","kind":"import-statement","original":"./maind-tools.js"},{"path":"../../packages/claude-code-telemetry/dist/turns.js","kind":"import-statement","original":"./turns.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/ingest.js":{"bytes":6644,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/cost-slices.js":{"bytes":19247,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/turns.js","kind":"import-statement","original":"./turns.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/checkout.js":{"bytes":13284,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/cost-slices.js","kind":"import-statement","original":"./cost-slices.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/codex-turns.js":{"bytes":10485,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"dynamic-import","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/codex-analysis.js":{"bytes":7627,"imports":[{"path":"../../packages/claude-code-telemetry/dist/codex-turns.js","kind":"import-statement","original":"./codex-turns.js"},{"path":"node:fs/promises","kind":"dynamic-import","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/conventions-scan.js":{"bytes":32802,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/conventions-scan-ide.js":{"bytes":16786,"imports":[{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/conventions-scan.js","kind":"import-statement","original":"./conventions-scan.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/session-span.js":{"bytes":10271,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/parse.js":{"bytes":9292,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/effort.js","kind":"import-statement","original":"./effort.js"},{"path":"../../packages/claude-code-telemetry/dist/types.js","kind":"import-statement","original":"./types.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/windows.js":{"bytes":3963,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/projects.js":{"bytes":3166,"imports":[{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/index.js":{"bytes":2449,"imports":[{"path":"../../packages/claude-code-telemetry/dist/types.js","kind":"import-statement","original":"./types.js"},{"path":"../../packages/claude-code-telemetry/dist/transcript.js","kind":"import-statement","original":"./transcript.js"},{"path":"../../packages/claude-code-telemetry/dist/decisions.js","kind":"import-statement","original":"./decisions.js"},{"path":"../../packages/claude-code-telemetry/dist/session-analysis.js","kind":"import-statement","original":"./session-analysis.js"},{"path":"../../packages/claude-code-telemetry/dist/maind-tools.js","kind":"import-statement","original":"./maind-tools.js"},{"path":"../../packages/claude-code-telemetry/dist/ingest.js","kind":"import-statement","original":"./ingest.js"},{"path":"../../packages/claude-code-telemetry/dist/turns.js","kind":"import-statement","original":"./turns.js"},{"path":"../../packages/claude-code-telemetry/dist/checkout.js","kind":"import-statement","original":"./checkout.js"},{"path":"../../packages/claude-code-telemetry/dist/codex-turns.js","kind":"import-statement","original":"./codex-turns.js"},{"path":"../../packages/claude-code-telemetry/dist/codex-analysis.js","kind":"import-statement","original":"./codex-analysis.js"},{"path":"../../packages/claude-code-telemetry/dist/cost-slices.js","kind":"import-statement","original":"./cost-slices.js"},{"path":"../../packages/claude-code-telemetry/dist/conventions-scan.js","kind":"import-statement","original":"./conventions-scan.js"},{"path":"../../packages/claude-code-telemetry/dist/conventions-scan-ide.js","kind":"import-statement","original":"./conventions-scan-ide.js"},{"path":"../../packages/claude-code-telemetry/dist/session-span.js","kind":"import-statement","original":"./session-span.js"},{"path":"../../packages/claude-code-telemetry/dist/parse.js","kind":"import-statement","original":"./parse.js"},{"path":"../../packages/claude-code-telemetry/dist/effort.js","kind":"import-statement","original":"./effort.js"},{"path":"../../packages/claude-code-telemetry/dist/windows.js","kind":"import-statement","original":"./windows.js"},{"path":"../../packages/claude-code-telemetry/dist/projects.js","kind":"import-statement","original":"./projects.js"}],"format":"esm"},"src/sessions-cmd.ts":{"bytes":31652,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/index.js","kind":"import-statement","original":"@maind/claude-code-telemetry"},{"path":"../../packages/project-key/build/index.js","kind":"import-statement","original":"@maind/project-key"},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/harness/claude-agent-sdk.ts":{"bytes":29212,"imports":[{"path":"src/run/gates.ts","kind":"import-statement","original":"../gates.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/harness/probe.ts":{"bytes":4510,"imports":[{"path":"node:module","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/run/harness/claude-agent-sdk.ts","kind":"import-statement","original":"./claude-agent-sdk.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/store.ts":{"bytes":5063,"imports":[{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/run/record.ts","kind":"import-statement","original":"./record.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run-cmd.ts":{"bytes":32460,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/git.ts","kind":"import-statement","original":"./git.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"src/run-dispatch.ts","kind":"import-statement","original":"./run-dispatch.js"},{"path":"src/run/dispatch.ts","kind":"import-statement","original":"./run/dispatch.js"},{"path":"src/run/preflight.ts","kind":"import-statement","original":"./run/preflight.js"},{"path":"src/run-preflight.ts","kind":"import-statement","original":"./run-preflight.js"},{"path":"src/sessions-cmd.ts","kind":"import-statement","original":"./sessions-cmd.js"},{"path":"../../packages/claude-code-telemetry/dist/index.js","kind":"import-statement","original":"@maind/claude-code-telemetry"},{"path":"../../packages/guard-triggers/build/index.js","kind":"import-statement","original":"@maind/guard-triggers"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"src/run/closing.ts","kind":"import-statement","original":"./run/closing.js"},{"path":"src/run/digest.ts","kind":"import-statement","original":"./run/digest.js"},{"path":"src/run/gates.ts","kind":"import-statement","original":"./run/gates.js"},{"path":"src/run/harness.ts","kind":"import-statement","original":"./run/harness.js"},{"path":"src/run/ledger.ts","kind":"import-statement","original":"./run/ledger.js"},{"path":"src/run/harness/probe.ts","kind":"import-statement","original":"./run/harness/probe.js"},{"path":"src/run/policy.ts","kind":"import-statement","original":"./run/policy.js"},{"path":"src/run/record.ts","kind":"import-statement","original":"./run/record.js"},{"path":"src/run/store.ts","kind":"import-statement","original":"./run/store.js"},{"path":"src/review.ts","kind":"import-statement","original":"./review.js"},{"path":"src/ci-env.ts","kind":"import-statement","original":"./ci-env.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/help.ts":{"bytes":1970,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/sessions-scan-cmd.ts":{"bytes":57323,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/index.js","kind":"import-statement","original":"@maind/claude-code-telemetry"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/sync-cmd.ts":{"bytes":5616,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/node.js","kind":"import-statement","original":"@maind/code-index/node"},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":24589,"imports":[{"path":"src/context.ts","kind":"import-statement","original":"./context.js"},{"path":"src/ci-report.ts","kind":"import-statement","original":"./ci-report.js"},{"path":"src/ci-result.ts","kind":"import-statement","original":"./ci-result.js"},{"path":"src/git-context.ts","kind":"import-statement","original":"./git-context.js"},{"path":"src/git.ts","kind":"import-statement","original":"./git.js"},{"path":"src/index-cmd.ts","kind":"import-statement","original":"./index-cmd.js"},{"path":"src/launch-cmd.ts","kind":"import-statement","original":"./launch-cmd.js"},{"path":"src/feature-cmd.ts","kind":"import-statement","original":"./feature-cmd.js"},{"path":"src/gate-cmd.ts","kind":"import-statement","original":"./gate-cmd.js"},{"path":"src/verify-cmd.ts","kind":"import-statement","original":"./verify-cmd.js"},{"path":"src/object-cmd.ts","kind":"import-statement","original":"./object-cmd.js"},{"path":"src/review.ts","kind":"import-statement","original":"./review.js"},{"path":"src/run-cmd.ts","kind":"import-statement","original":"./run-cmd.js"},{"path":"src/help.ts","kind":"import-statement","original":"./help.js"},{"path":"src/sessions-cmd.ts","kind":"import-statement","original":"./sessions-cmd.js"},{"path":"src/sessions-scan-cmd.ts","kind":"import-statement","original":"./sessions-scan-cmd.js"},{"path":"src/sync-cmd.ts","kind":"import-statement","original":"./sync-cmd.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"src/gate/detector-class.ts","kind":"import-statement","original":"./gate/detector-class.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"build/index.js":{"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"web-tree-sitter","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"@huggingface/transformers","kind":"dynamic-import","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"dynamic-import","external":true},{"path":"node:fs/promises","kind":"dynamic-import","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/context.ts":{"bytesInOutput":2922},"src/auth.ts":{"bytesInOutput":1185},"../../packages/code-index/build/index.js":{"bytesInOutput":0},"../../packages/code-index/build/query/engine.js":{"bytesInOutput":9468},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js":{"bytesInOutput":1768},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js":{"bytesInOutput":1773},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js":{"bytesInOutput":1726},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js":{"bytesInOutput":3037},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js":{"bytesInOutput":94},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js":{"bytesInOutput":1607},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js":{"bytesInOutput":129},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js":{"bytesInOutput":51709},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js":{"bytesInOutput":0},"../../packages/content-schemas/build/lesson.js":{"bytesInOutput":1775},"../../packages/content-schemas/build/index.js":{"bytesInOutput":0},"../../packages/content-schemas/build/template.js":{"bytesInOutput":673},"../../packages/content-schemas/build/setup-guide.js":{"bytesInOutput":1085},"../../packages/content-schemas/build/agent-conventions.js":{"bytesInOutput":1515},"../../packages/schemas/build/index.js":{"bytesInOutput":0},"../../packages/schemas/build/changelog-content.js":{"bytesInOutput":706},"../../packages/schemas/build/plan-overrides.js":{"bytesInOutput":731},"../../packages/schemas/build/seat-overrides.js":{"bytesInOutput":756},"../../packages/schemas/build/audit-rules.js":{"bytesInOutput":1401},"../../packages/schemas/build/model-pricing.js":{"bytesInOutput":3035},"../../packages/schemas/build/conventions/index.js":{"bytesInOutput":0},"../../packages/schemas/build/skill.js":{"bytesInOutput":1653},"../../packages/schemas/build/skill-readiness.js":{"bytesInOutput":1374},"../../packages/schemas/build/jcs.js":{"bytesInOutput":663},"../../packages/schemas/build/review.js":{"bytesInOutput":4148},"../../packages/schemas/build/planning.js":{"bytesInOutput":741},"../../packages/schemas/build/coordination.js":{"bytesInOutput":154},"../../packages/schemas/build/user-memory.js":{"bytesInOutput":931},"../../packages/schemas/build/plain-scalar.js":{"bytesInOutput":507},"../../packages/schemas/build/semver.js":{"bytesInOutput":708},"../../packages/code-index/build/embed/recipe.js":{"bytesInOutput":169},"../../packages/code-index/build/embed/types.js":{"bytesInOutput":69},"../../packages/code-index/build/util/vector.js":{"bytesInOutput":200},"../../packages/code-index/build/graph/module-config.js":{"bytesInOutput":2764},"../../packages/code-index/build/graph/module-resolver.js":{"bytesInOutput":3374},"../../packages/code-index/build/graph/resolve.js":{"bytesInOutput":7227},"../../packages/code-index/build/parse/keys.js":{"bytesInOutput":115},"../../packages/code-index/build/incremental/discover.js":{"bytesInOutput":4459},"../../packages/code-index/build/parse/types.js":{"bytesInOutput":387},"../../packages/code-index/build/util/maind-local-ignore.js":{"bytesInOutput":1140},"../../packages/code-index/build/incremental/hunks.js":{"bytesInOutput":2048},"../../packages/code-index/build/incremental/history.js":{"bytesInOutput":2337},"../../packages/code-index/build/repo-health/divergence.js":{"bytesInOutput":17430},"../../packages/code-index/build/repo-health/hooks.js":{"bytesInOutput":1891},"../../packages/code-index/build/repo-health/supabase-migrations.js":{"bytesInOutput":1164},"../../packages/code-index/build/repo-health/number-collisions.js":{"bytesInOutput":8351},"../../packages/project-key/build/index.js":{"bytesInOutput":1042},"../../packages/code-index/build/repo-health/detectors.js":{"bytesInOutput":1596},"../../packages/code-index/build/repo-health/spec-drift.js":{"bytesInOutput":14357},"../../packages/code-index/build/repo-health/release-claims.js":{"bytesInOutput":3581},"../../packages/code-index/build/repo-health/changelog-duplicates.js":{"bytesInOutput":2776},"../../packages/code-index/build/repo-health/agent-doc-prose.js":{"bytesInOutput":2611},"../../packages/code-index/build/repo-health/workflow-yaml.js":{"bytesInOutput":1572},"../../packages/code-index/build/repo-health/ci-config.js":{"bytesInOutput":974},"../../packages/code-index/build/repo-health/table-acl-lint.js":{"bytesInOutput":9722},"../../packages/code-index/build/repo-health/theme-class-drift.js":{"bytesInOutput":4111},"../../packages/code-index/build/repo-health/detector-adapter.js":{"bytesInOutput":9200},"../../packages/code-index/build/review/risk-rules.js":{"bytesInOutput":664},"../../packages/code-index/build/review/risk-scan.js":{"bytesInOutput":418},"../../packages/code-index/build/store/schema.js":{"bytesInOutput":3142},"../../packages/code-index/build/util/identifiers.js":{"bytesInOutput":734},"../../packages/code-index/build/repo-health/adr-index-drift.js":{"bytesInOutput":164},"../../packages/code-index/build/query/moment.js":{"bytesInOutput":908},"../../packages/code-index/build/code-index-version.js":{"bytesInOutput":15},"../../packages/code-index/build/review/attest.js":{"bytesInOutput":3616},"src/mcp-client.ts":{"bytesInOutput":4246},"src/render.ts":{"bytesInOutput":1717},"src/ci-env.ts":{"bytesInOutput":2318},"src/ci-report.ts":{"bytesInOutput":2875},"src/git.ts":{"bytesInOutput":2089},"src/ci-result.ts":{"bytesInOutput":2428},"src/git-context.ts":{"bytesInOutput":4755},"src/index-cmd.ts":{"bytesInOutput":4712},"../../packages/code-index/build/node.js":{"bytesInOutput":781},"../../packages/code-index/build/parse/tree-sitter/parser.js":{"bytesInOutput":1200},"../../packages/code-index/build/parse/lang/shared.js":{"bytesInOutput":3999},"../../packages/code-index/build/parse/lang/python.js":{"bytesInOutput":2322},"../../packages/code-index/build/parse/lang/typescript.js":{"bytesInOutput":7500},"../../packages/code-index/build/parse/tree-sitter/grammars.js":{"bytesInOutput":372},"../../packages/code-index/build/store/sqlite-driver.js":{"bytesInOutput":1881},"../../packages/code-index/build/store/facts.js":{"bytesInOutput":1846},"../../packages/code-index/build/store/node-sqlite.js":{"bytesInOutput":8089},"../../packages/code-index/build/sync/client.js":{"bytesInOutput":4327},"../../packages/code-index/build/sync/types.js":{"bytesInOutput":669},"../../packages/embedding/build/index.js":{"bytesInOutput":747},"../../packages/code-index/build/embed/node.js":{"bytesInOutput":189},"../../packages/code-index/build/node-embed.js":{"bytesInOutput":55},"src/launch-cmd.ts":{"bytesInOutput":5589},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js":{"bytesInOutput":583},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/util.js":{"bytesInOutput":1129},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/date.js":{"bytesInOutput":1248},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/primitive.js":{"bytesInOutput":1912},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/extract.js":{"bytesInOutput":906},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/struct.js":{"bytesInOutput":2093},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/parse.js":{"bytesInOutput":1447},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/stringify.js":{"bytesInOutput":2451},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/index.js":{"bytesInOutput":0},"src/switchyard.ts":{"bytesInOutput":5807},"src/version.ts":{"bytesInOutput":195},"src/feature-cmd.ts":{"bytesInOutput":20407},"src/feature/checks.ts":{"bytesInOutput":712},"src/gate/override.ts":{"bytesInOutput":1688},"src/gate/work-object.ts":{"bytesInOutput":1782},"src/feature/completion.ts":{"bytesInOutput":1983},"src/gate/manifest.ts":{"bytesInOutput":3041},"src/feature/post-merge.ts":{"bytesInOutput":1828},"src/feature/config.ts":{"bytesInOutput":2655},"src/feature/workflow.ts":{"bytesInOutput":4507},"src/gate-cmd.ts":{"bytesInOutput":12603},"src/gate/contract.ts":{"bytesInOutput":888},"src/gate/manifest-drift.ts":{"bytesInOutput":2007},"src/gate/parity.ts":{"bytesInOutput":2089},"src/review-run.ts":{"bytesInOutput":9149},"src/gate/attestation.ts":{"bytesInOutput":1880},"src/verify/render.ts":{"bytesInOutput":2492},"src/verify/replay.ts":{"bytesInOutput":1526},"src/verify/flow.ts":{"bytesInOutput":2925},"src/verify/scratch.ts":{"bytesInOutput":1600},"src/gate/detector-source.ts":{"bytesInOutput":408},"src/gate/detector-class.ts":{"bytesInOutput":1402},"src/gate/override-log.ts":{"bytesInOutput":545},"src/object-cmd.ts":{"bytesInOutput":15427},"src/gate/review-gate.ts":{"bytesInOutput":2047},"src/gate/version-claim.ts":{"bytesInOutput":2992},"src/feature/pr-title.ts":{"bytesInOutput":809},"src/feature/outward.ts":{"bytesInOutput":2247},"src/feature/forge.ts":{"bytesInOutput":1460},"src/verify-cmd.ts":{"bytesInOutput":5515},"src/review.ts":{"bytesInOutput":3717},"src/review-render.ts":{"bytesInOutput":11494},"src/run-cmd.ts":{"bytesInOutput":11393},"src/run-dispatch.ts":{"bytesInOutput":29218},"../../packages/guard-triggers/build/verbs.js":{"bytesInOutput":2866},"../../packages/guard-triggers/build/index.js":{"bytesInOutput":0},"../../packages/guard-triggers/build/sensor.js":{"bytesInOutput":1281},"../../packages/guard-triggers/build/episode.js":{"bytesInOutput":1235},"../../packages/guard-triggers/build/policy.js":{"bytesInOutput":859},"../../packages/guard-triggers/build/texts.js":{"bytesInOutput":467},"src/run/digest.ts":{"bytesInOutput":283},"src/run/dispatch.ts":{"bytesInOutput":14064},"src/run/gates.ts":{"bytesInOutput":3435},"src/run/harness.ts":{"bytesInOutput":71},"src/run/cost.ts":{"bytesInOutput":1931},"src/run/ledger.ts":{"bytesInOutput":525},"src/run/difficulty.ts":{"bytesInOutput":503},"src/run/policy.ts":{"bytesInOutput":2426},"src/run/auth-lane.ts":{"bytesInOutput":502},"src/run/closing.ts":{"bytesInOutput":1851},"src/run/record.ts":{"bytesInOutput":2401},"src/run/preflight.ts":{"bytesInOutput":1200},"src/run-preflight.ts":{"bytesInOutput":1751},"src/sessions-cmd.ts":{"bytesInOutput":9570},"../../packages/claude-code-telemetry/dist/index.js":{"bytesInOutput":0},"../../packages/claude-code-telemetry/dist/session-analysis.js":{"bytesInOutput":6113},"../../packages/claude-code-telemetry/dist/effort.js":{"bytesInOutput":266},"../../packages/claude-code-telemetry/dist/maind-tools.js":{"bytesInOutput":186},"../../packages/claude-code-telemetry/dist/turns.js":{"bytesInOutput":4184},"../../packages/claude-code-telemetry/dist/ingest.js":{"bytesInOutput":1687},"../../packages/claude-code-telemetry/dist/checkout.js":{"bytesInOutput":2566},"../../packages/claude-code-telemetry/dist/cost-slices.js":{"bytesInOutput":5443},"../../packages/claude-code-telemetry/dist/codex-turns.js":{"bytesInOutput":2210},"../../packages/claude-code-telemetry/dist/codex-analysis.js":{"bytesInOutput":2090},"../../packages/claude-code-telemetry/dist/conventions-scan.js":{"bytesInOutput":10881},"../../packages/claude-code-telemetry/dist/conventions-scan-ide.js":{"bytesInOutput":5690},"../../packages/claude-code-telemetry/dist/projects.js":{"bytesInOutput":738},"src/run/harness/probe.ts":{"bytesInOutput":1130},"src/run/harness/claude-agent-sdk.ts":{"bytesInOutput":6674},"src/run/store.ts":{"bytesInOutput":758},"src/help.ts":{"bytesInOutput":266},"src/sessions-scan-cmd.ts":{"bytesInOutput":24178},"src/sync-cmd.ts":{"bytesInOutput":3004},"src/index.ts":{"bytesInOutput":19685}},"bytes":619669}}}
1
+ {"inputs":{"src/auth.ts":{"bytes":3524,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/model/types.js":{"bytes":471,"imports":[],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js":{"bytes":4055,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js":{"bytes":4349,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js","kind":"import-statement","original":"./helpers/util.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js":{"bytes":5602,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js","kind":"import-statement","original":"../ZodError.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js","kind":"import-statement","original":"../helpers/util.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js":{"bytes":243,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js","kind":"import-statement","original":"./locales/en.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js":{"bytes":3601,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js","kind":"import-statement","original":"../errors.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js","kind":"import-statement","original":"../locales/en.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.js":{"bytes":11,"imports":[],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js":{"bytes":300,"imports":[],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js":{"bytes":131212,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js","kind":"import-statement","original":"./ZodError.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js","kind":"import-statement","original":"./errors.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js","kind":"import-statement","original":"./helpers/errorUtil.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js","kind":"import-statement","original":"./helpers/parseUtil.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js","kind":"import-statement","original":"./helpers/util.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js":{"bytes":205,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js","kind":"import-statement","original":"./errors.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js","kind":"import-statement","original":"./helpers/parseUtil.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.js","kind":"import-statement","original":"./helpers/typeAliases.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js","kind":"import-statement","original":"./helpers/util.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js","kind":"import-statement","original":"./types.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js","kind":"import-statement","original":"./ZodError.js"}],"format":"esm"},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js":{"bytes":105,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js","kind":"import-statement","original":"./v3/external.js"},{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js","kind":"import-statement","original":"./v3/external.js"}],"format":"esm"},"../../packages/content-schemas/build/lesson.js":{"bytes":6896,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"}],"format":"esm"},"../../packages/content-schemas/build/template.js":{"bytes":1563,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"},{"path":"../../packages/content-schemas/build/lesson.js","kind":"import-statement","original":"./lesson.js"}],"format":"esm"},"../../packages/content-schemas/build/setup-guide.js":{"bytes":3368,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/content-schemas/build/agent-conventions.js":{"bytes":8963,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"}],"format":"esm"},"../../packages/content-schemas/build/index.js":{"bytes":1282,"imports":[{"path":"../../packages/content-schemas/build/lesson.js","kind":"import-statement","original":"./lesson.js"},{"path":"../../packages/content-schemas/build/template.js","kind":"import-statement","original":"./template.js"},{"path":"../../packages/content-schemas/build/setup-guide.js","kind":"import-statement","original":"./setup-guide.js"},{"path":"../../packages/content-schemas/build/agent-conventions.js","kind":"import-statement","original":"./agent-conventions.js"}],"format":"esm"},"../../packages/schemas/build/changelog-content.js":{"bytes":1737,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"}],"format":"esm"},"../../packages/schemas/build/plan-overrides.js":{"bytes":3126,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/plan-features.js":{"bytes":727,"imports":[],"format":"esm"},"../../packages/schemas/build/seat-overrides.js":{"bytes":1639,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/audit-rules.js":{"bytes":2625,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"}],"format":"esm"},"../../packages/schemas/build/model-pricing.js":{"bytes":9779,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/conventions/types.js":{"bytes":935,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/conventions/helpers.js":{"bytes":9493,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/conventions/lesson-conventions.js":{"bytes":19208,"imports":[{"path":"../../packages/schemas/build/conventions/helpers.js","kind":"import-statement","original":"./helpers.js"},{"path":"../../packages/schemas/build/conventions/types.js","kind":"import-statement","original":"./types.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/conventions/template-conventions.js":{"bytes":5958,"imports":[{"path":"../../packages/schemas/build/conventions/types.js","kind":"import-statement","original":"./types.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/conventions/setup-guide-conventions.js":{"bytes":9069,"imports":[{"path":"../../packages/content-schemas/build/index.js","kind":"import-statement","original":"@maind-dev/content-schemas"},{"path":"../../packages/schemas/build/conventions/helpers.js","kind":"import-statement","original":"./helpers.js"},{"path":"../../packages/schemas/build/conventions/types.js","kind":"import-statement","original":"./types.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/conventions/convention-conventions.js":{"bytes":12882,"imports":[{"path":"../../packages/schemas/build/conventions/helpers.js","kind":"import-statement","original":"./helpers.js"},{"path":"../../packages/schemas/build/conventions/types.js","kind":"import-statement","original":"./types.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/conventions/index.js":{"bytes":1422,"imports":[{"path":"../../packages/schemas/build/conventions/types.js","kind":"import-statement","original":"./types.js"},{"path":"../../packages/schemas/build/conventions/lesson-conventions.js","kind":"import-statement","original":"./lesson-conventions.js"},{"path":"../../packages/schemas/build/conventions/template-conventions.js","kind":"import-statement","original":"./template-conventions.js"},{"path":"../../packages/schemas/build/conventions/setup-guide-conventions.js","kind":"import-statement","original":"./setup-guide-conventions.js"},{"path":"../../packages/schemas/build/conventions/convention-conventions.js","kind":"import-statement","original":"./convention-conventions.js"},{"path":"../../packages/schemas/build/conventions/helpers.js","kind":"import-statement","original":"./helpers.js"}],"format":"esm"},"../../packages/schemas/build/skill.js":{"bytes":6397,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"},{"path":"../../packages/content-schemas/build/index.js","kind":"import-statement","original":"@maind-dev/content-schemas"}],"format":"esm"},"../../packages/schemas/build/skill-readiness.js":{"bytes":28362,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"},{"path":"../../packages/schemas/build/skill.js","kind":"import-statement","original":"./skill.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/jcs.js":{"bytes":3282,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/review.js":{"bytes":22550,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"},{"path":"../../packages/content-schemas/build/index.js","kind":"import-statement","original":"@maind-dev/content-schemas"},{"path":"../../packages/schemas/build/jcs.js","kind":"import-statement","original":"./jcs.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/planning.js":{"bytes":11946,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"}],"format":"esm"},"../../packages/schemas/build/coordination.js":{"bytes":2128,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"}],"format":"esm"},"../../packages/schemas/build/user-memory.js":{"bytes":2866,"imports":[{"path":"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js","kind":"import-statement","original":"zod"}],"format":"esm"},"../../packages/schemas/build/mcp-tools.js":{"bytes":1505,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/plain-scalar.js":{"bytes":2790,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/semver.js":{"bytes":2024,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/schemas/build/index.js":{"bytes":8501,"imports":[{"path":"../../packages/content-schemas/build/index.js","kind":"import-statement","original":"@maind-dev/content-schemas"},{"path":"../../packages/schemas/build/changelog-content.js","kind":"import-statement","original":"./changelog-content.js"},{"path":"../../packages/content-schemas/build/index.js","kind":"import-statement","original":"@maind-dev/content-schemas"},{"path":"../../packages/content-schemas/build/index.js","kind":"import-statement","original":"@maind-dev/content-schemas"},{"path":"../../packages/schemas/build/plan-overrides.js","kind":"import-statement","original":"./plan-overrides.js"},{"path":"../../packages/schemas/build/plan-features.js","kind":"import-statement","original":"./plan-features.js"},{"path":"../../packages/schemas/build/seat-overrides.js","kind":"import-statement","original":"./seat-overrides.js"},{"path":"../../packages/schemas/build/audit-rules.js","kind":"import-statement","original":"./audit-rules.js"},{"path":"../../packages/schemas/build/model-pricing.js","kind":"import-statement","original":"./model-pricing.js"},{"path":"../../packages/schemas/build/conventions/index.js","kind":"import-statement","original":"./conventions/index.js"},{"path":"../../packages/content-schemas/build/index.js","kind":"import-statement","original":"@maind-dev/content-schemas"},{"path":"../../packages/schemas/build/skill.js","kind":"import-statement","original":"./skill.js"},{"path":"../../packages/schemas/build/skill-readiness.js","kind":"import-statement","original":"./skill-readiness.js"},{"path":"../../packages/schemas/build/review.js","kind":"import-statement","original":"./review.js"},{"path":"../../packages/schemas/build/planning.js","kind":"import-statement","original":"./planning.js"},{"path":"../../packages/schemas/build/coordination.js","kind":"import-statement","original":"./coordination.js"},{"path":"../../packages/schemas/build/user-memory.js","kind":"import-statement","original":"./user-memory.js"},{"path":"../../packages/schemas/build/mcp-tools.js","kind":"import-statement","original":"./mcp-tools.js"},{"path":"../../packages/schemas/build/jcs.js","kind":"import-statement","original":"./jcs.js"},{"path":"../../packages/schemas/build/plain-scalar.js","kind":"import-statement","original":"./plain-scalar.js"},{"path":"../../packages/schemas/build/semver.js","kind":"import-statement","original":"./semver.js"}],"format":"esm"},"../../packages/code-index/build/embed/recipe.js":{"bytes":594,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/embed/types.js":{"bytes":505,"imports":[],"format":"esm"},"../../packages/code-index/build/util/vector.js":{"bytes":707,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/graph/module-config.js":{"bytes":6657,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/graph/module-resolver.js":{"bytes":9196,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/parse/keys.js":{"bytes":448,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/graph/resolve.js":{"bytes":19601,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/parse/keys.js","kind":"import-statement","original":"../parse/keys.js"},{"path":"../../packages/code-index/build/graph/module-resolver.js","kind":"import-statement","original":"./module-resolver.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/parse/types.js":{"bytes":768,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/util/maind-local-ignore.js":{"bytes":4243,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/incremental/discover.js":{"bytes":15823,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/parse/types.js","kind":"import-statement","original":"../parse/types.js"},{"path":"../../packages/code-index/build/util/maind-local-ignore.js","kind":"import-statement","original":"../util/maind-local-ignore.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/incremental/hunks.js":{"bytes":6382,"imports":[{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"./discover.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/incremental/history.js":{"bytes":7302,"imports":[{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"./discover.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/hooks.js":{"bytes":5187,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/supabase-migrations.js":{"bytes":4431,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/divergence.js":{"bytes":52694,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/repo-health/hooks.js","kind":"import-statement","original":"./hooks.js"},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"../../packages/code-index/build/repo-health/supabase-migrations.js","kind":"import-statement","original":"./supabase-migrations.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/number-collisions.js":{"bytes":26360,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/project-key/build/index.js":{"bytes":3446,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/detectors.js":{"bytes":11619,"imports":[{"path":"../../packages/project-key/build/index.js","kind":"import-statement","original":"@maind/project-key"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/spec-drift.js":{"bytes":36059,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/changelog-duplicates.js":{"bytes":8831,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/release-claims.js":{"bytes":11531,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/schemas/build/index.js","kind":"import-statement","original":"@maind/schemas"},{"path":"../../packages/code-index/build/repo-health/changelog-duplicates.js","kind":"import-statement","original":"./changelog-duplicates.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/agent-doc-prose.js":{"bytes":9093,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/ci-config.js":{"bytes":2751,"imports":[],"format":"esm"},"../../packages/code-index/build/repo-health/workflow-yaml.js":{"bytes":5251,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/schemas/build/index.js","kind":"import-statement","original":"@maind/schemas"},{"path":"../../packages/code-index/build/repo-health/ci-config.js","kind":"import-statement","original":"./ci-config.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/table-acl-lint.js":{"bytes":29480,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"../../packages/code-index/build/repo-health/supabase-migrations.js","kind":"import-statement","original":"./supabase-migrations.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/theme-class-drift.js":{"bytes":18006,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/detector-adapter.js":{"bytes":24211,"imports":[{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"../../packages/code-index/build/repo-health/detectors.js","kind":"import-statement","original":"./detectors.js"},{"path":"../../packages/code-index/build/repo-health/number-collisions.js","kind":"import-statement","original":"./number-collisions.js"},{"path":"../../packages/code-index/build/repo-health/spec-drift.js","kind":"import-statement","original":"./spec-drift.js"},{"path":"../../packages/code-index/build/repo-health/release-claims.js","kind":"import-statement","original":"./release-claims.js"},{"path":"../../packages/code-index/build/repo-health/agent-doc-prose.js","kind":"import-statement","original":"./agent-doc-prose.js"},{"path":"../../packages/code-index/build/repo-health/workflow-yaml.js","kind":"import-statement","original":"./workflow-yaml.js"},{"path":"../../packages/code-index/build/repo-health/changelog-duplicates.js","kind":"import-statement","original":"./changelog-duplicates.js"},{"path":"../../packages/code-index/build/repo-health/table-acl-lint.js","kind":"import-statement","original":"./table-acl-lint.js"},{"path":"../../packages/code-index/build/repo-health/theme-class-drift.js","kind":"import-statement","original":"./theme-class-drift.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/review/risk-rules.js":{"bytes":2117,"imports":[{"path":"../../packages/code-index/build/repo-health/ci-config.js","kind":"import-statement","original":"../repo-health/ci-config.js"}],"format":"esm"},"../../packages/code-index/build/review/risk-scan.js":{"bytes":1451,"imports":[{"path":"../../packages/code-index/build/review/risk-rules.js","kind":"import-statement","original":"./risk-rules.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/store/schema.js":{"bytes":4715,"imports":[],"format":"esm"},"../../packages/code-index/build/util/identifiers.js":{"bytes":2180,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/query/engine.js":{"bytes":24494,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/schemas/build/index.js","kind":"import-statement","original":"@maind/schemas"},{"path":"../../packages/code-index/build/embed/recipe.js","kind":"import-statement","original":"../embed/recipe.js"},{"path":"../../packages/code-index/build/embed/types.js","kind":"import-statement","original":"../embed/types.js"},{"path":"../../packages/code-index/build/util/vector.js","kind":"import-statement","original":"../util/vector.js"},{"path":"../../packages/code-index/build/graph/module-config.js","kind":"import-statement","original":"../graph/module-config.js"},{"path":"../../packages/code-index/build/graph/module-resolver.js","kind":"import-statement","original":"../graph/module-resolver.js"},{"path":"../../packages/code-index/build/graph/resolve.js","kind":"import-statement","original":"../graph/resolve.js"},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"../../packages/code-index/build/incremental/hunks.js","kind":"import-statement","original":"../incremental/hunks.js"},{"path":"../../packages/code-index/build/incremental/history.js","kind":"import-statement","original":"../incremental/history.js"},{"path":"../../packages/code-index/build/repo-health/divergence.js","kind":"import-statement","original":"../repo-health/divergence.js"},{"path":"../../packages/code-index/build/repo-health/number-collisions.js","kind":"import-statement","original":"../repo-health/number-collisions.js"},{"path":"../../packages/code-index/build/repo-health/detector-adapter.js","kind":"import-statement","original":"../repo-health/detector-adapter.js"},{"path":"../../packages/code-index/build/repo-health/spec-drift.js","kind":"import-statement","original":"../repo-health/spec-drift.js"},{"path":"../../packages/code-index/build/review/risk-scan.js","kind":"import-statement","original":"../review/risk-scan.js"},{"path":"../../packages/code-index/build/store/schema.js","kind":"import-statement","original":"../store/schema.js"},{"path":"../../packages/code-index/build/util/identifiers.js","kind":"import-statement","original":"../util/identifiers.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/scan-root.js":{"bytes":12545,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/adr-index-drift.js":{"bytes":10440,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/migration-ledger-drift.js":{"bytes":22760,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"../../packages/code-index/build/repo-health/supabase-migrations.js","kind":"import-statement","original":"./supabase-migrations.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/query/moment.js":{"bytes":7089,"imports":[{"path":"../../packages/code-index/build/parse/keys.js","kind":"import-statement","original":"../parse/keys.js"},{"path":"../../packages/code-index/build/store/schema.js","kind":"import-statement","original":"../store/schema.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/code-index-version.js":{"bytes":1452,"imports":[],"format":"esm"},"../../packages/code-index/build/review/attest.js":{"bytes":12155,"imports":[{"path":"../../packages/schemas/build/index.js","kind":"import-statement","original":"@maind/schemas"},{"path":"../../packages/code-index/build/code-index-version.js","kind":"import-statement","original":"../code-index-version.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/index.js":{"bytes":8029,"imports":[{"path":"../../packages/code-index/build/model/types.js","kind":"import-statement","original":"./model/types.js"},{"path":"../../packages/code-index/build/query/engine.js","kind":"import-statement","original":"./query/engine.js"},{"path":"../../packages/code-index/build/incremental/history.js","kind":"import-statement","original":"./incremental/history.js"},{"path":"../../packages/code-index/build/review/risk-rules.js","kind":"import-statement","original":"./review/risk-rules.js"},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"./incremental/discover.js"},{"path":"../../packages/code-index/build/repo-health/changelog-duplicates.js","kind":"import-statement","original":"./repo-health/changelog-duplicates.js"},{"path":"../../packages/code-index/build/repo-health/workflow-yaml.js","kind":"import-statement","original":"./repo-health/workflow-yaml.js"},{"path":"../../packages/code-index/build/repo-health/release-claims.js","kind":"import-statement","original":"./repo-health/release-claims.js"},{"path":"../../packages/code-index/build/repo-health/agent-doc-prose.js","kind":"import-statement","original":"./repo-health/agent-doc-prose.js"},{"path":"../../packages/code-index/build/repo-health/divergence.js","kind":"import-statement","original":"./repo-health/divergence.js"},{"path":"../../packages/code-index/build/repo-health/scan-root.js","kind":"import-statement","original":"./repo-health/scan-root.js"},{"path":"../../packages/code-index/build/repo-health/adr-index-drift.js","kind":"import-statement","original":"./repo-health/adr-index-drift.js"},{"path":"../../packages/code-index/build/repo-health/hooks.js","kind":"import-statement","original":"./repo-health/hooks.js"},{"path":"../../packages/code-index/build/repo-health/number-collisions.js","kind":"import-statement","original":"./repo-health/number-collisions.js"},{"path":"../../packages/code-index/build/repo-health/theme-class-drift.js","kind":"import-statement","original":"./repo-health/theme-class-drift.js"},{"path":"../../packages/code-index/build/repo-health/spec-drift.js","kind":"import-statement","original":"./repo-health/spec-drift.js"},{"path":"../../packages/code-index/build/repo-health/supabase-migrations.js","kind":"import-statement","original":"./repo-health/supabase-migrations.js"},{"path":"../../packages/code-index/build/repo-health/table-acl-lint.js","kind":"import-statement","original":"./repo-health/table-acl-lint.js"},{"path":"../../packages/code-index/build/repo-health/migration-ledger-drift.js","kind":"import-statement","original":"./repo-health/migration-ledger-drift.js"},{"path":"../../packages/code-index/build/repo-health/detectors.js","kind":"import-statement","original":"./repo-health/detectors.js"},{"path":"../../packages/code-index/build/repo-health/detector-adapter.js","kind":"import-statement","original":"./repo-health/detector-adapter.js"},{"path":"../../packages/code-index/build/repo-health/number-collisions.js","kind":"import-statement","original":"./repo-health/number-collisions.js"},{"path":"../../packages/code-index/build/repo-health/spec-drift.js","kind":"import-statement","original":"./repo-health/spec-drift.js"},{"path":"../../packages/code-index/build/repo-health/theme-class-drift.js","kind":"import-statement","original":"./repo-health/theme-class-drift.js"},{"path":"../../packages/code-index/build/repo-health/table-acl-lint.js","kind":"import-statement","original":"./repo-health/table-acl-lint.js"},{"path":"../../packages/code-index/build/parse/types.js","kind":"import-statement","original":"./parse/types.js"},{"path":"../../packages/code-index/build/embed/types.js","kind":"import-statement","original":"./embed/types.js"},{"path":"../../packages/code-index/build/store/schema.js","kind":"import-statement","original":"./store/schema.js"},{"path":"../../packages/code-index/build/query/moment.js","kind":"import-statement","original":"./query/moment.js"},{"path":"../../packages/code-index/build/util/maind-local-ignore.js","kind":"import-statement","original":"./util/maind-local-ignore.js"},{"path":"../../packages/code-index/build/code-index-version.js","kind":"import-statement","original":"./code-index-version.js"},{"path":"../../packages/code-index/build/review/attest.js","kind":"import-statement","original":"./review/attest.js"}],"format":"esm"},"src/mcp-client.ts":{"bytes":12338,"imports":[{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/render.ts":{"bytes":4525,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/ci-env.ts":{"bytes":4731,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/context.ts":{"bytes":6837,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"src/render.ts","kind":"import-statement","original":"./render.js"},{"path":"src/ci-env.ts","kind":"import-statement","original":"./ci-env.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/git.ts":{"bytes":5748,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"../../packages/project-key/build/index.js","kind":"import-statement","original":"@maind/project-key"},{"path":"../../packages/project-key/build/index.js","kind":"import-statement","original":"@maind/project-key"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/ci-report.ts":{"bytes":6831,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/git.ts","kind":"import-statement","original":"./git.js"},{"path":"src/ci-env.ts","kind":"import-statement","original":"./ci-env.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/ci-result.ts":{"bytes":5305,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/ci-env.ts","kind":"import-statement","original":"./ci-env.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/git-context.ts":{"bytes":9481,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"src/git.ts","kind":"import-statement","original":"./git.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/parse/lang/shared.js":{"bytes":9228,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/parse/lang/python.js":{"bytes":4535,"imports":[{"path":"../../packages/code-index/build/parse/keys.js","kind":"import-statement","original":"../keys.js"},{"path":"../../packages/code-index/build/parse/lang/shared.js","kind":"import-statement","original":"./shared.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/parse/lang/typescript.js":{"bytes":17050,"imports":[{"path":"../../packages/code-index/build/parse/keys.js","kind":"import-statement","original":"../keys.js"},{"path":"../../packages/code-index/build/parse/lang/shared.js","kind":"import-statement","original":"./shared.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/parse/tree-sitter/grammars.js":{"bytes":1941,"imports":[{"path":"node:module","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/parse/tree-sitter/parser.js":{"bytes":3284,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"web-tree-sitter","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/parse/keys.js","kind":"import-statement","original":"../keys.js"},{"path":"../../packages/code-index/build/parse/types.js","kind":"import-statement","original":"../types.js"},{"path":"../../packages/code-index/build/parse/lang/python.js","kind":"import-statement","original":"../lang/python.js"},{"path":"../../packages/code-index/build/parse/lang/typescript.js","kind":"import-statement","original":"../lang/typescript.js"},{"path":"../../packages/code-index/build/parse/lang/shared.js","kind":"import-statement","original":"../lang/shared.js"},{"path":"../../packages/code-index/build/parse/tree-sitter/grammars.js","kind":"import-statement","original":"./grammars.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/store/sqlite-driver.js":{"bytes":7618,"imports":[{"path":"node:module","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/store/facts.js":{"bytes":3344,"imports":[{"path":"../../packages/code-index/build/parse/keys.js","kind":"import-statement","original":"../parse/keys.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/store/node-sqlite.js":{"bytes":14267,"imports":[{"path":"../../packages/code-index/build/store/sqlite-driver.js","kind":"import-statement","original":"./sqlite-driver.js"},{"path":"../../packages/code-index/build/store/schema.js","kind":"import-statement","original":"./schema.js"},{"path":"../../packages/code-index/build/store/facts.js","kind":"import-statement","original":"./facts.js"},{"path":"../../packages/code-index/build/util/identifiers.js","kind":"import-statement","original":"../util/identifiers.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/sync/types.js":{"bytes":1779,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/sync/client.js":{"bytes":10559,"imports":[{"path":"../../packages/code-index/build/store/schema.js","kind":"import-statement","original":"../store/schema.js"},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/sync/types.js","kind":"import-statement","original":"./types.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/node.js":{"bytes":3594,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/project-key/build/index.js","kind":"import-statement","original":"@maind/project-key"},{"path":"../../packages/code-index/build/parse/tree-sitter/parser.js","kind":"import-statement","original":"./parse/tree-sitter/parser.js"},{"path":"../../packages/code-index/build/query/engine.js","kind":"import-statement","original":"./query/engine.js"},{"path":"../../packages/code-index/build/query/moment.js","kind":"import-statement","original":"./query/moment.js"},{"path":"../../packages/code-index/build/store/node-sqlite.js","kind":"import-statement","original":"./store/node-sqlite.js"},{"path":"../../packages/code-index/build/store/sqlite-driver.js","kind":"import-statement","original":"./store/sqlite-driver.js"},{"path":"../../packages/code-index/build/sync/client.js","kind":"import-statement","original":"./sync/client.js"},{"path":"../../packages/code-index/build/util/maind-local-ignore.js","kind":"import-statement","original":"./util/maind-local-ignore.js"},{"path":"../../packages/code-index/build/sync/client.js","kind":"import-statement","original":"./sync/client.js"},{"path":"../../packages/code-index/build/store/sqlite-driver.js","kind":"import-statement","original":"./store/sqlite-driver.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/embedding/build/index.js":{"bytes":7855,"imports":[{"path":"@huggingface/transformers","kind":"dynamic-import","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/embed/node.js":{"bytes":661,"imports":[{"path":"../../packages/embedding/build/index.js","kind":"import-statement","original":"@maind/embedding"},{"path":"../../packages/code-index/build/embed/recipe.js","kind":"import-statement","original":"./recipe.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/node-embed.js":{"bytes":660,"imports":[{"path":"../../packages/code-index/build/embed/node.js","kind":"import-statement","original":"./embed/node.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index-cmd.ts":{"bytes":9353,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/node.js","kind":"import-statement","original":"@maind/code-index/node"},{"path":"../../packages/code-index/build/node-embed.js","kind":"import-statement","original":"@maind/code-index/node-embed"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js":{"bytes":2787,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/util.js":{"bytes":4209,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/date.js":{"bytes":4942,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/primitive.js":{"bytes":6576,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/util.js","kind":"import-statement","original":"./util.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/date.js","kind":"import-statement","original":"./date.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/extract.js":{"bytes":4243,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/primitive.js","kind":"import-statement","original":"./primitive.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/struct.js","kind":"import-statement","original":"./struct.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/util.js","kind":"import-statement","original":"./util.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/struct.js":{"bytes":7308,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/primitive.js","kind":"import-statement","original":"./primitive.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/extract.js","kind":"import-statement","original":"./extract.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/util.js","kind":"import-statement","original":"./util.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/parse.js":{"bytes":5694,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/struct.js","kind":"import-statement","original":"./struct.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/extract.js","kind":"import-statement","original":"./extract.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/util.js","kind":"import-statement","original":"./util.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/stringify.js":{"bytes":6453,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/index.js":{"bytes":1883,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/parse.js","kind":"import-statement","original":"./parse.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/stringify.js","kind":"import-statement","original":"./stringify.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/date.js","kind":"import-statement","original":"./date.js"},{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js","kind":"import-statement","original":"./error.js"}],"format":"esm"},"src/switchyard.ts":{"bytes":15128,"imports":[{"path":"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/index.js","kind":"import-statement","original":"smol-toml"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/version.ts":{"bytes":1857,"imports":[{"path":"node:module","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/launch-cmd.ts":{"bytes":15407,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/git.ts","kind":"import-statement","original":"./git.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"src/switchyard.ts","kind":"import-statement","original":"./switchyard.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/feature/checks.ts":{"bytes":4098,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/override.ts":{"bytes":6644,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/work-object.ts":{"bytes":7074,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/feature/completion.ts":{"bytes":9537,"imports":[{"path":"src/gate/work-object.ts","kind":"import-statement","original":"../gate/work-object.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/manifest.ts":{"bytes":9076,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/feature/post-merge.ts":{"bytes":5760,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/feature/workflow.ts":{"bytes":18740,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/feature/config.ts":{"bytes":7281,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/feature/workflow.ts","kind":"import-statement","original":"./workflow.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/contract.ts":{"bytes":5609,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/manifest-drift.ts":{"bytes":7391,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/parity.ts":{"bytes":7522,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/review-run.ts":{"bytes":34629,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/node.js","kind":"import-statement","original":"@maind/code-index/node"},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"../../packages/project-key/build/index.js","kind":"import-statement","original":"@maind/project-key"},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/attestation.ts":{"bytes":4736,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/verify/render.ts":{"bytes":4761,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/verify/replay.ts":{"bytes":4585,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/node.js","kind":"import-statement","original":"@maind/code-index/node"},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"src/review-run.ts","kind":"import-statement","original":"../review-run.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/verify/flow.ts":{"bytes":8390,"imports":[{"path":"src/mcp-client.ts","kind":"import-statement","original":"../mcp-client.js"},{"path":"src/verify/render.ts","kind":"import-statement","original":"./render.js"},{"path":"src/verify/replay.ts","kind":"import-statement","original":"./replay.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/verify/scratch.ts":{"bytes":5085,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/detector-source.ts":{"bytes":4805,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/detector-class.ts":{"bytes":8718,"imports":[{"path":"../../packages/schemas/build/index.js","kind":"import-statement","original":"@maind/schemas"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/override-log.ts":{"bytes":2831,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/object-cmd.ts":{"bytes":44141,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/git.ts","kind":"import-statement","original":"./git.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/review-gate.ts":{"bytes":6916,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate/version-claim.ts":{"bytes":8883,"imports":[{"path":"../../packages/schemas/build/index.js","kind":"import-statement","original":"@maind/schemas"},{"path":"../../packages/schemas/build/index.js","kind":"import-statement","original":"@maind/schemas"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gate-cmd.ts":{"bytes":41419,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/node.js","kind":"import-statement","original":"@maind/code-index/node"},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"../../packages/project-key/build/index.js","kind":"import-statement","original":"@maind/project-key"},{"path":"src/gate/contract.ts","kind":"import-statement","original":"./gate/contract.js"},{"path":"src/gate/manifest.ts","kind":"import-statement","original":"./gate/manifest.js"},{"path":"src/gate/manifest-drift.ts","kind":"import-statement","original":"./gate/manifest-drift.js"},{"path":"src/gate/parity.ts","kind":"import-statement","original":"./gate/parity.js"},{"path":"src/review-run.ts","kind":"import-statement","original":"./review-run.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"src/gate/attestation.ts","kind":"import-statement","original":"./gate/attestation.js"},{"path":"src/verify/flow.ts","kind":"import-statement","original":"./verify/flow.js"},{"path":"src/verify/replay.ts","kind":"import-statement","original":"./verify/replay.js"},{"path":"src/verify/scratch.ts","kind":"import-statement","original":"./verify/scratch.js"},{"path":"src/gate/detector-source.ts","kind":"import-statement","original":"./gate/detector-source.js"},{"path":"src/gate/detector-class.ts","kind":"import-statement","original":"./gate/detector-class.js"},{"path":"src/gate/override-log.ts","kind":"import-statement","original":"./gate/override-log.js"},{"path":"src/gate/override.ts","kind":"import-statement","original":"./gate/override.js"},{"path":"src/object-cmd.ts","kind":"import-statement","original":"./object-cmd.js"},{"path":"src/gate/review-gate.ts","kind":"import-statement","original":"./gate/review-gate.js"},{"path":"src/gate/work-object.ts","kind":"import-statement","original":"./gate/work-object.js"},{"path":"src/gate/version-claim.ts","kind":"import-statement","original":"./gate/version-claim.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/feature/pr-title.ts":{"bytes":4862,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/feature/outward.ts":{"bytes":14574,"imports":[{"path":"src/feature/pr-title.ts","kind":"import-statement","original":"./pr-title.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/feature/forge.ts":{"bytes":4013,"imports":[{"path":"src/git.ts","kind":"import-statement","original":"../git.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/feature-cmd.ts":{"bytes":47034,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/feature/checks.ts","kind":"import-statement","original":"./feature/checks.js"},{"path":"src/gate/override.ts","kind":"import-statement","original":"./gate/override.js"},{"path":"src/feature/completion.ts","kind":"import-statement","original":"./feature/completion.js"},{"path":"src/gate/manifest.ts","kind":"import-statement","original":"./gate/manifest.js"},{"path":"src/feature/post-merge.ts","kind":"import-statement","original":"./feature/post-merge.js"},{"path":"src/feature/config.ts","kind":"import-statement","original":"./feature/config.js"},{"path":"src/gate-cmd.ts","kind":"import-statement","original":"./gate-cmd.js"},{"path":"src/object-cmd.ts","kind":"import-statement","original":"./object-cmd.js"},{"path":"src/feature/outward.ts","kind":"import-statement","original":"./feature/outward.js"},{"path":"src/feature/workflow.ts","kind":"import-statement","original":"./feature/workflow.js"},{"path":"src/feature/forge.ts","kind":"import-statement","original":"./feature/forge.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/verify-cmd.ts":{"bytes":11853,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"../../packages/project-key/build/index.js","kind":"import-statement","original":"@maind/project-key"},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"src/verify/flow.ts","kind":"import-statement","original":"./verify/flow.js"},{"path":"src/verify/render.ts","kind":"import-statement","original":"./verify/render.js"},{"path":"src/verify/replay.ts","kind":"import-statement","original":"./verify/replay.js"},{"path":"src/verify/scratch.ts","kind":"import-statement","original":"./verify/scratch.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/review-render.ts":{"bytes":32120,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/review.ts":{"bytes":11508,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"src/review-run.ts","kind":"import-statement","original":"./review-run.js"},{"path":"src/review-render.ts","kind":"import-statement","original":"./review-render.js"},{"path":"src/ci-env.ts","kind":"import-statement","original":"./ci-env.js"},{"path":"src/review-run.ts","kind":"import-statement","original":"./review-run.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/guard-triggers/build/verbs.js":{"bytes":12262,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/guard-triggers/build/sensor.js":{"bytes":5788,"imports":[{"path":"../../packages/guard-triggers/build/verbs.js","kind":"import-statement","original":"./verbs.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/guard-triggers/build/episode.js":{"bytes":6386,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/guard-triggers/build/policy.js":{"bytes":3007,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/guard-triggers/build/texts.js":{"bytes":2841,"imports":[{"path":"../../packages/guard-triggers/build/episode.js","kind":"import-statement","original":"./episode.js"},{"path":"../../packages/guard-triggers/build/policy.js","kind":"import-statement","original":"./policy.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/guard-triggers/build/index.js":{"bytes":1127,"imports":[{"path":"../../packages/guard-triggers/build/verbs.js","kind":"import-statement","original":"./verbs.js"},{"path":"../../packages/guard-triggers/build/sensor.js","kind":"import-statement","original":"./sensor.js"},{"path":"../../packages/guard-triggers/build/episode.js","kind":"import-statement","original":"./episode.js"},{"path":"../../packages/guard-triggers/build/policy.js","kind":"import-statement","original":"./policy.js"},{"path":"../../packages/guard-triggers/build/texts.js","kind":"import-statement","original":"./texts.js"}],"format":"esm"},"src/run/digest.ts":{"bytes":2998,"imports":[{"path":"../../packages/project-key/build/index.js","kind":"import-statement","original":"@maind/project-key"},{"path":"../../packages/schemas/build/index.js","kind":"import-statement","original":"@maind/schemas"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/dispatch.ts":{"bytes":49590,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/gates.ts":{"bytes":12825,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/guard-triggers/build/index.js","kind":"import-statement","original":"@maind/guard-triggers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/harness.ts":{"bytes":12133,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/cost.ts":{"bytes":9509,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/ledger.ts":{"bytes":3625,"imports":[{"path":"../../packages/guard-triggers/build/index.js","kind":"import-statement","original":"@maind/guard-triggers"},{"path":"../../packages/guard-triggers/build/index.js","kind":"import-statement","original":"@maind/guard-triggers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/difficulty.ts":{"bytes":2920,"imports":[{"path":"../../packages/guard-triggers/build/index.js","kind":"import-statement","original":"@maind/guard-triggers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/policy.ts":{"bytes":13460,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/auth-lane.ts":{"bytes":4519,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/closing.ts":{"bytes":6935,"imports":[{"path":"src/review.ts","kind":"import-statement","original":"../review.js"},{"path":"src/review-run.ts","kind":"import-statement","original":"../review-run.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/record.ts":{"bytes":16132,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run-dispatch.ts":{"bytes":80623,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"../../packages/guard-triggers/build/index.js","kind":"import-statement","original":"@maind/guard-triggers"},{"path":"src/git.ts","kind":"import-statement","original":"./git.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"src/run/digest.ts","kind":"import-statement","original":"./run/digest.js"},{"path":"src/run/dispatch.ts","kind":"import-statement","original":"./run/dispatch.js"},{"path":"src/run/gates.ts","kind":"import-statement","original":"./run/gates.js"},{"path":"src/run/harness.ts","kind":"import-statement","original":"./run/harness.js"},{"path":"src/run/cost.ts","kind":"import-statement","original":"./run/cost.js"},{"path":"src/run/ledger.ts","kind":"import-statement","original":"./run/ledger.js"},{"path":"src/run/difficulty.ts","kind":"import-statement","original":"./run/difficulty.js"},{"path":"src/run/policy.ts","kind":"import-statement","original":"./run/policy.js"},{"path":"src/run/auth-lane.ts","kind":"import-statement","original":"./run/auth-lane.js"},{"path":"src/run/closing.ts","kind":"import-statement","original":"./run/closing.js"},{"path":"src/run/record.ts","kind":"import-statement","original":"./run/record.js"},{"path":"src/review.ts","kind":"import-statement","original":"./review.js"},{"path":"src/ci-env.ts","kind":"import-statement","original":"./ci-env.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/preflight.ts":{"bytes":4111,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run-preflight.ts":{"bytes":4768,"imports":[{"path":"src/run/preflight.ts","kind":"import-statement","original":"./run/preflight.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/types.js":{"bytes":338,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/transcript.js":{"bytes":2979,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/decisions.js":{"bytes":6845,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/effort.js":{"bytes":1858,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/maind-tools.js":{"bytes":1867,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/turns.js":{"bytes":11399,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/maind-tools.js","kind":"import-statement","original":"./maind-tools.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/session-analysis.js":{"bytes":22160,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/effort.js","kind":"import-statement","original":"./effort.js"},{"path":"../../packages/claude-code-telemetry/dist/maind-tools.js","kind":"import-statement","original":"./maind-tools.js"},{"path":"../../packages/claude-code-telemetry/dist/turns.js","kind":"import-statement","original":"./turns.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/ingest.js":{"bytes":6644,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/cost-slices.js":{"bytes":19247,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/turns.js","kind":"import-statement","original":"./turns.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/checkout.js":{"bytes":13284,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/cost-slices.js","kind":"import-statement","original":"./cost-slices.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/codex-turns.js":{"bytes":10485,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"dynamic-import","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/codex-analysis.js":{"bytes":7627,"imports":[{"path":"../../packages/claude-code-telemetry/dist/codex-turns.js","kind":"import-statement","original":"./codex-turns.js"},{"path":"node:fs/promises","kind":"dynamic-import","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/conventions-scan.js":{"bytes":32802,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/conventions-scan-ide.js":{"bytes":16786,"imports":[{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/conventions-scan.js","kind":"import-statement","original":"./conventions-scan.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/session-span.js":{"bytes":10271,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/parse.js":{"bytes":9292,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/effort.js","kind":"import-statement","original":"./effort.js"},{"path":"../../packages/claude-code-telemetry/dist/types.js","kind":"import-statement","original":"./types.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/windows.js":{"bytes":3963,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/projects.js":{"bytes":3166,"imports":[{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/index.js":{"bytes":2449,"imports":[{"path":"../../packages/claude-code-telemetry/dist/types.js","kind":"import-statement","original":"./types.js"},{"path":"../../packages/claude-code-telemetry/dist/transcript.js","kind":"import-statement","original":"./transcript.js"},{"path":"../../packages/claude-code-telemetry/dist/decisions.js","kind":"import-statement","original":"./decisions.js"},{"path":"../../packages/claude-code-telemetry/dist/session-analysis.js","kind":"import-statement","original":"./session-analysis.js"},{"path":"../../packages/claude-code-telemetry/dist/maind-tools.js","kind":"import-statement","original":"./maind-tools.js"},{"path":"../../packages/claude-code-telemetry/dist/ingest.js","kind":"import-statement","original":"./ingest.js"},{"path":"../../packages/claude-code-telemetry/dist/turns.js","kind":"import-statement","original":"./turns.js"},{"path":"../../packages/claude-code-telemetry/dist/checkout.js","kind":"import-statement","original":"./checkout.js"},{"path":"../../packages/claude-code-telemetry/dist/codex-turns.js","kind":"import-statement","original":"./codex-turns.js"},{"path":"../../packages/claude-code-telemetry/dist/codex-analysis.js","kind":"import-statement","original":"./codex-analysis.js"},{"path":"../../packages/claude-code-telemetry/dist/cost-slices.js","kind":"import-statement","original":"./cost-slices.js"},{"path":"../../packages/claude-code-telemetry/dist/conventions-scan.js","kind":"import-statement","original":"./conventions-scan.js"},{"path":"../../packages/claude-code-telemetry/dist/conventions-scan-ide.js","kind":"import-statement","original":"./conventions-scan-ide.js"},{"path":"../../packages/claude-code-telemetry/dist/session-span.js","kind":"import-statement","original":"./session-span.js"},{"path":"../../packages/claude-code-telemetry/dist/parse.js","kind":"import-statement","original":"./parse.js"},{"path":"../../packages/claude-code-telemetry/dist/effort.js","kind":"import-statement","original":"./effort.js"},{"path":"../../packages/claude-code-telemetry/dist/windows.js","kind":"import-statement","original":"./windows.js"},{"path":"../../packages/claude-code-telemetry/dist/projects.js","kind":"import-statement","original":"./projects.js"}],"format":"esm"},"src/sessions-cmd.ts":{"bytes":31652,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/index.js","kind":"import-statement","original":"@maind/claude-code-telemetry"},{"path":"../../packages/project-key/build/index.js","kind":"import-statement","original":"@maind/project-key"},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/harness/claude-agent-sdk.ts":{"bytes":29212,"imports":[{"path":"src/run/gates.ts","kind":"import-statement","original":"../gates.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/harness/probe.ts":{"bytes":4510,"imports":[{"path":"node:module","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/run/harness/claude-agent-sdk.ts","kind":"import-statement","original":"./claude-agent-sdk.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run/store.ts":{"bytes":5063,"imports":[{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/run/record.ts","kind":"import-statement","original":"./record.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/run-cmd.ts":{"bytes":32460,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/git.ts","kind":"import-statement","original":"./git.js"},{"path":"src/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"src/run-dispatch.ts","kind":"import-statement","original":"./run-dispatch.js"},{"path":"src/run/dispatch.ts","kind":"import-statement","original":"./run/dispatch.js"},{"path":"src/run/preflight.ts","kind":"import-statement","original":"./run/preflight.js"},{"path":"src/run-preflight.ts","kind":"import-statement","original":"./run-preflight.js"},{"path":"src/sessions-cmd.ts","kind":"import-statement","original":"./sessions-cmd.js"},{"path":"../../packages/claude-code-telemetry/dist/index.js","kind":"import-statement","original":"@maind/claude-code-telemetry"},{"path":"../../packages/guard-triggers/build/index.js","kind":"import-statement","original":"@maind/guard-triggers"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"src/run/closing.ts","kind":"import-statement","original":"./run/closing.js"},{"path":"src/run/digest.ts","kind":"import-statement","original":"./run/digest.js"},{"path":"src/run/gates.ts","kind":"import-statement","original":"./run/gates.js"},{"path":"src/run/harness.ts","kind":"import-statement","original":"./run/harness.js"},{"path":"src/run/ledger.ts","kind":"import-statement","original":"./run/ledger.js"},{"path":"src/run/harness/probe.ts","kind":"import-statement","original":"./run/harness/probe.js"},{"path":"src/run/policy.ts","kind":"import-statement","original":"./run/policy.js"},{"path":"src/run/record.ts","kind":"import-statement","original":"./run/record.js"},{"path":"src/run/store.ts","kind":"import-statement","original":"./run/store.js"},{"path":"src/review.ts","kind":"import-statement","original":"./review.js"},{"path":"src/ci-env.ts","kind":"import-statement","original":"./ci-env.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/help.ts":{"bytes":1970,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/sessions-scan-cmd.ts":{"bytes":57323,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/index.js","kind":"import-statement","original":"@maind/claude-code-telemetry"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/sync-cmd.ts":{"bytes":5616,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/node.js","kind":"import-statement","original":"@maind/code-index/node"},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":24589,"imports":[{"path":"src/context.ts","kind":"import-statement","original":"./context.js"},{"path":"src/ci-report.ts","kind":"import-statement","original":"./ci-report.js"},{"path":"src/ci-result.ts","kind":"import-statement","original":"./ci-result.js"},{"path":"src/git-context.ts","kind":"import-statement","original":"./git-context.js"},{"path":"src/git.ts","kind":"import-statement","original":"./git.js"},{"path":"src/index-cmd.ts","kind":"import-statement","original":"./index-cmd.js"},{"path":"src/launch-cmd.ts","kind":"import-statement","original":"./launch-cmd.js"},{"path":"src/feature-cmd.ts","kind":"import-statement","original":"./feature-cmd.js"},{"path":"src/gate-cmd.ts","kind":"import-statement","original":"./gate-cmd.js"},{"path":"src/verify-cmd.ts","kind":"import-statement","original":"./verify-cmd.js"},{"path":"src/object-cmd.ts","kind":"import-statement","original":"./object-cmd.js"},{"path":"src/review.ts","kind":"import-statement","original":"./review.js"},{"path":"src/run-cmd.ts","kind":"import-statement","original":"./run-cmd.js"},{"path":"src/help.ts","kind":"import-statement","original":"./help.js"},{"path":"src/sessions-cmd.ts","kind":"import-statement","original":"./sessions-cmd.js"},{"path":"src/sessions-scan-cmd.ts","kind":"import-statement","original":"./sessions-scan-cmd.js"},{"path":"src/sync-cmd.ts","kind":"import-statement","original":"./sync-cmd.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"src/gate/detector-class.ts","kind":"import-statement","original":"./gate/detector-class.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"build/index.js":{"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"web-tree-sitter","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"@huggingface/transformers","kind":"dynamic-import","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"dynamic-import","external":true},{"path":"node:fs/promises","kind":"dynamic-import","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/context.ts":{"bytesInOutput":2922},"src/auth.ts":{"bytesInOutput":1185},"../../packages/code-index/build/index.js":{"bytesInOutput":0},"../../packages/code-index/build/query/engine.js":{"bytesInOutput":9468},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js":{"bytesInOutput":1768},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js":{"bytesInOutput":1773},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js":{"bytesInOutput":1726},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js":{"bytesInOutput":3037},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js":{"bytesInOutput":94},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js":{"bytesInOutput":1607},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js":{"bytesInOutput":129},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js":{"bytesInOutput":51709},"../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js":{"bytesInOutput":0},"../../packages/content-schemas/build/lesson.js":{"bytesInOutput":1775},"../../packages/content-schemas/build/index.js":{"bytesInOutput":0},"../../packages/content-schemas/build/template.js":{"bytesInOutput":673},"../../packages/content-schemas/build/setup-guide.js":{"bytesInOutput":1085},"../../packages/content-schemas/build/agent-conventions.js":{"bytesInOutput":1515},"../../packages/schemas/build/index.js":{"bytesInOutput":0},"../../packages/schemas/build/changelog-content.js":{"bytesInOutput":706},"../../packages/schemas/build/plan-overrides.js":{"bytesInOutput":731},"../../packages/schemas/build/seat-overrides.js":{"bytesInOutput":756},"../../packages/schemas/build/audit-rules.js":{"bytesInOutput":1401},"../../packages/schemas/build/model-pricing.js":{"bytesInOutput":3035},"../../packages/schemas/build/conventions/index.js":{"bytesInOutput":0},"../../packages/schemas/build/skill.js":{"bytesInOutput":1653},"../../packages/schemas/build/skill-readiness.js":{"bytesInOutput":1374},"../../packages/schemas/build/jcs.js":{"bytesInOutput":663},"../../packages/schemas/build/review.js":{"bytesInOutput":4148},"../../packages/schemas/build/planning.js":{"bytesInOutput":741},"../../packages/schemas/build/coordination.js":{"bytesInOutput":154},"../../packages/schemas/build/user-memory.js":{"bytesInOutput":931},"../../packages/schemas/build/plain-scalar.js":{"bytesInOutput":507},"../../packages/schemas/build/semver.js":{"bytesInOutput":708},"../../packages/code-index/build/embed/recipe.js":{"bytesInOutput":169},"../../packages/code-index/build/embed/types.js":{"bytesInOutput":69},"../../packages/code-index/build/util/vector.js":{"bytesInOutput":200},"../../packages/code-index/build/graph/module-config.js":{"bytesInOutput":2764},"../../packages/code-index/build/graph/module-resolver.js":{"bytesInOutput":3374},"../../packages/code-index/build/graph/resolve.js":{"bytesInOutput":7227},"../../packages/code-index/build/parse/keys.js":{"bytesInOutput":115},"../../packages/code-index/build/incremental/discover.js":{"bytesInOutput":4459},"../../packages/code-index/build/parse/types.js":{"bytesInOutput":387},"../../packages/code-index/build/util/maind-local-ignore.js":{"bytesInOutput":1140},"../../packages/code-index/build/incremental/hunks.js":{"bytesInOutput":2048},"../../packages/code-index/build/incremental/history.js":{"bytesInOutput":2337},"../../packages/code-index/build/repo-health/divergence.js":{"bytesInOutput":17430},"../../packages/code-index/build/repo-health/hooks.js":{"bytesInOutput":1891},"../../packages/code-index/build/repo-health/supabase-migrations.js":{"bytesInOutput":1164},"../../packages/code-index/build/repo-health/number-collisions.js":{"bytesInOutput":8351},"../../packages/project-key/build/index.js":{"bytesInOutput":1042},"../../packages/code-index/build/repo-health/detectors.js":{"bytesInOutput":1596},"../../packages/code-index/build/repo-health/spec-drift.js":{"bytesInOutput":14357},"../../packages/code-index/build/repo-health/release-claims.js":{"bytesInOutput":3581},"../../packages/code-index/build/repo-health/changelog-duplicates.js":{"bytesInOutput":2776},"../../packages/code-index/build/repo-health/agent-doc-prose.js":{"bytesInOutput":2611},"../../packages/code-index/build/repo-health/workflow-yaml.js":{"bytesInOutput":1572},"../../packages/code-index/build/repo-health/ci-config.js":{"bytesInOutput":974},"../../packages/code-index/build/repo-health/table-acl-lint.js":{"bytesInOutput":9722},"../../packages/code-index/build/repo-health/theme-class-drift.js":{"bytesInOutput":4111},"../../packages/code-index/build/repo-health/detector-adapter.js":{"bytesInOutput":9200},"../../packages/code-index/build/review/risk-rules.js":{"bytesInOutput":664},"../../packages/code-index/build/review/risk-scan.js":{"bytesInOutput":418},"../../packages/code-index/build/store/schema.js":{"bytesInOutput":3142},"../../packages/code-index/build/util/identifiers.js":{"bytesInOutput":734},"../../packages/code-index/build/repo-health/adr-index-drift.js":{"bytesInOutput":164},"../../packages/code-index/build/query/moment.js":{"bytesInOutput":908},"../../packages/code-index/build/code-index-version.js":{"bytesInOutput":15},"../../packages/code-index/build/review/attest.js":{"bytesInOutput":3616},"src/mcp-client.ts":{"bytesInOutput":4246},"src/render.ts":{"bytesInOutput":1717},"src/ci-env.ts":{"bytesInOutput":2318},"src/ci-report.ts":{"bytesInOutput":2875},"src/git.ts":{"bytesInOutput":2089},"src/ci-result.ts":{"bytesInOutput":2428},"src/git-context.ts":{"bytesInOutput":4755},"src/index-cmd.ts":{"bytesInOutput":4712},"../../packages/code-index/build/node.js":{"bytesInOutput":781},"../../packages/code-index/build/parse/tree-sitter/parser.js":{"bytesInOutput":1200},"../../packages/code-index/build/parse/lang/shared.js":{"bytesInOutput":3999},"../../packages/code-index/build/parse/lang/python.js":{"bytesInOutput":2322},"../../packages/code-index/build/parse/lang/typescript.js":{"bytesInOutput":7500},"../../packages/code-index/build/parse/tree-sitter/grammars.js":{"bytesInOutput":372},"../../packages/code-index/build/store/sqlite-driver.js":{"bytesInOutput":1881},"../../packages/code-index/build/store/facts.js":{"bytesInOutput":1846},"../../packages/code-index/build/store/node-sqlite.js":{"bytesInOutput":8089},"../../packages/code-index/build/sync/client.js":{"bytesInOutput":4327},"../../packages/code-index/build/sync/types.js":{"bytesInOutput":669},"../../packages/embedding/build/index.js":{"bytesInOutput":747},"../../packages/code-index/build/embed/node.js":{"bytesInOutput":189},"../../packages/code-index/build/node-embed.js":{"bytesInOutput":55},"src/launch-cmd.ts":{"bytesInOutput":5589},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js":{"bytesInOutput":583},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/util.js":{"bytesInOutput":1129},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/date.js":{"bytesInOutput":1248},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/primitive.js":{"bytesInOutput":1912},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/extract.js":{"bytesInOutput":906},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/struct.js":{"bytesInOutput":2093},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/parse.js":{"bytesInOutput":1447},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/stringify.js":{"bytesInOutput":2451},"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/index.js":{"bytesInOutput":0},"src/switchyard.ts":{"bytesInOutput":5807},"src/version.ts":{"bytesInOutput":195},"src/feature-cmd.ts":{"bytesInOutput":20407},"src/feature/checks.ts":{"bytesInOutput":712},"src/gate/override.ts":{"bytesInOutput":1688},"src/gate/work-object.ts":{"bytesInOutput":1782},"src/feature/completion.ts":{"bytesInOutput":1983},"src/gate/manifest.ts":{"bytesInOutput":3041},"src/feature/post-merge.ts":{"bytesInOutput":1828},"src/feature/config.ts":{"bytesInOutput":2655},"src/feature/workflow.ts":{"bytesInOutput":4507},"src/gate-cmd.ts":{"bytesInOutput":12603},"src/gate/contract.ts":{"bytesInOutput":888},"src/gate/manifest-drift.ts":{"bytesInOutput":2007},"src/gate/parity.ts":{"bytesInOutput":2089},"src/review-run.ts":{"bytesInOutput":9149},"src/gate/attestation.ts":{"bytesInOutput":1880},"src/verify/render.ts":{"bytesInOutput":2492},"src/verify/replay.ts":{"bytesInOutput":1526},"src/verify/flow.ts":{"bytesInOutput":2925},"src/verify/scratch.ts":{"bytesInOutput":1600},"src/gate/detector-source.ts":{"bytesInOutput":408},"src/gate/detector-class.ts":{"bytesInOutput":1402},"src/gate/override-log.ts":{"bytesInOutput":545},"src/object-cmd.ts":{"bytesInOutput":15427},"src/gate/review-gate.ts":{"bytesInOutput":2047},"src/gate/version-claim.ts":{"bytesInOutput":2992},"src/feature/pr-title.ts":{"bytesInOutput":809},"src/feature/outward.ts":{"bytesInOutput":2247},"src/feature/forge.ts":{"bytesInOutput":1460},"src/verify-cmd.ts":{"bytesInOutput":5515},"src/review.ts":{"bytesInOutput":3717},"src/review-render.ts":{"bytesInOutput":11494},"src/run-cmd.ts":{"bytesInOutput":11393},"src/run-dispatch.ts":{"bytesInOutput":29248},"../../packages/guard-triggers/build/verbs.js":{"bytesInOutput":2866},"../../packages/guard-triggers/build/index.js":{"bytesInOutput":0},"../../packages/guard-triggers/build/sensor.js":{"bytesInOutput":1281},"../../packages/guard-triggers/build/episode.js":{"bytesInOutput":1235},"../../packages/guard-triggers/build/policy.js":{"bytesInOutput":859},"../../packages/guard-triggers/build/texts.js":{"bytesInOutput":467},"src/run/digest.ts":{"bytesInOutput":283},"src/run/dispatch.ts":{"bytesInOutput":14426},"src/run/gates.ts":{"bytesInOutput":3435},"src/run/harness.ts":{"bytesInOutput":71},"src/run/cost.ts":{"bytesInOutput":1931},"src/run/ledger.ts":{"bytesInOutput":525},"src/run/difficulty.ts":{"bytesInOutput":503},"src/run/policy.ts":{"bytesInOutput":2426},"src/run/auth-lane.ts":{"bytesInOutput":502},"src/run/closing.ts":{"bytesInOutput":1851},"src/run/record.ts":{"bytesInOutput":2401},"src/run/preflight.ts":{"bytesInOutput":1200},"src/run-preflight.ts":{"bytesInOutput":1751},"src/sessions-cmd.ts":{"bytesInOutput":9570},"../../packages/claude-code-telemetry/dist/index.js":{"bytesInOutput":0},"../../packages/claude-code-telemetry/dist/session-analysis.js":{"bytesInOutput":6113},"../../packages/claude-code-telemetry/dist/effort.js":{"bytesInOutput":266},"../../packages/claude-code-telemetry/dist/maind-tools.js":{"bytesInOutput":186},"../../packages/claude-code-telemetry/dist/turns.js":{"bytesInOutput":4184},"../../packages/claude-code-telemetry/dist/ingest.js":{"bytesInOutput":1687},"../../packages/claude-code-telemetry/dist/checkout.js":{"bytesInOutput":2566},"../../packages/claude-code-telemetry/dist/cost-slices.js":{"bytesInOutput":5443},"../../packages/claude-code-telemetry/dist/codex-turns.js":{"bytesInOutput":2210},"../../packages/claude-code-telemetry/dist/codex-analysis.js":{"bytesInOutput":2090},"../../packages/claude-code-telemetry/dist/conventions-scan.js":{"bytesInOutput":10881},"../../packages/claude-code-telemetry/dist/conventions-scan-ide.js":{"bytesInOutput":5690},"../../packages/claude-code-telemetry/dist/projects.js":{"bytesInOutput":738},"src/run/harness/probe.ts":{"bytesInOutput":1130},"src/run/harness/claude-agent-sdk.ts":{"bytesInOutput":6674},"src/run/store.ts":{"bytesInOutput":758},"src/help.ts":{"bytesInOutput":266},"src/sessions-scan-cmd.ts":{"bytesInOutput":24178},"src/sync-cmd.ts":{"bytesInOutput":3004},"src/index.ts":{"bytesInOutput":19685}},"bytes":620061}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maind-dev/cli",
3
- "version": "0.89.0",
3
+ "version": "0.89.1",
4
4
  "description": "Headless maind CLI — pull stack-relevant lessons into CI runners, report CI outcomes, brief agents on local git state (branch, PRs, peers), and launch coding agents behind a local NVIDIA NeMo Switchyard routing proxy. No device flow; authenticates from MAIND_API_KEY.",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",