@maind-dev/mcp-bridge 0.59.0 → 0.60.0

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
@@ -3,7 +3,7 @@ var ns=Object.defineProperty;var s=(e,t)=>ns(e,"name",{value:t,configurable:!0})
3
3
 
4
4
  ${i}`};return JSON.stringify({jsonrpc:"2.0",id:e,result:o})}function $p(e,t){return`NOTE (MAIND cache fallback): the MAIND MCP server was unreachable, so these project conventions were served from a local snapshot taken ${jp(e,t)}. They may be stale, and MAIND tools are unavailable until the server is reachable again.`}function jp(e,t){let n=Date.parse(e);if(Number.isNaN(n))return"at an unknown time";let r=t.getTime()-n,i=Math.floor(r/6e4);if(i<1)return"just now";if(i<60)return`${i} minute${i===1?"":"s"} ago`;let o=Math.floor(i/60);if(o<24)return`${o} hour${o===1?"":"s"} ago`;let a=Math.floor(o/24);return`${a} day${a===1?"":"s"} ago`}var Or,Lp,Ke=w(()=>{"use strict";Or=1,Lp=ls(".maind","conventions-cache.json");s(se,"resolveRepoRoot");s(an,"keyFingerprint");s(cn,"cachePath");s(ds,"hasInstructions");s(us,"writeConventionsCache");s(ps,"readConventionsCache");s(fs,"buildCachedInitializeResponse");s($p,"fallbackMarker");s(jp,"relativeAge")});import{existsSync as fn,mkdirSync as Xp,readFileSync as ms,writeFileSync as Lr,chmodSync as hs}from"node:fs";import{homedir as Qp,hostname as Zp,platform as Fr,release as ef}from"node:os";import{randomUUID as tf}from"node:crypto";import{join as ve}from"node:path";function vt(){let e=Qp(),t=process.env;if(Fr()==="darwin")return ve(e,"Library","Application Support","maind");if(Fr()==="win32"){let r=t.APPDATA&&t.APPDATA.length>0?t.APPDATA:ve(e,"AppData","Roaming");return ve(r,"maind")}let n=t.XDG_CONFIG_HOME&&t.XDG_CONFIG_HOME.length>0?t.XDG_CONFIG_HOME:ve(e,".config");return ve(n,"maind")}function gs(e){fn(e)||Xp(e,{recursive:!0,mode:448})}function j(){let e=vt();gs(e);let t=ve(e,nf);if(fn(t)){let r=ms(t,"utf8").trim();if(sf(r))return r}let n=tf();Lr(t,n+`
5
5
  `,{encoding:"utf8",mode:384});try{hs(t,384)}catch{}return n}function sf(e){return of.test(e)}function $r(){return ve(vt(),rf)}function Se(e){let t=vt();gs(t);let n=$r();Lr(n,e+`
6
- `,{encoding:"utf8",mode:384});try{hs(n,384)}catch{}}function N(){let e=$r();if(!fn(e))return null;let t=ms(e,"utf8").trim();return t.length>0?t:null}function St(){let e=$r();fn(e)&&Lr(e,"",{encoding:"utf8",mode:384})}function ys(){try{return`mcp-bridge-${Zp()}`}catch{return"mcp-bridge"}}function mn(e){return{os:`${Fr()} ${ef()}`,ide:"mcp-bridge",ext_version:e,device_id:j()}}var nf,rf,of,K=w(()=>{"use strict";s(vt,"configDir");s(gs,"ensureDir");nf="device-id",rf="api-key";s(j,"ensureDeviceId");of=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;s(sf,"isUuid");s($r,"apiKeyPath");s(Se,"writeApiKey");s(N,"readApiKey");s(St,"clearApiKey");s(ys,"bridgeLabel");s(mn,"clientMeta")});var P,Ee=w(()=>{"use strict";P="0.59.0"});import{execFileSync as hf}from"node:child_process";import{createHash as gf}from"node:crypto";function yf(e){return gf("sha256").update(e).digest("hex")}function bf(e){let t=e.trim();if(!t)return null;let n=/^[a-z][a-z0-9+.-]*:\/\//i.exec(t);if(n)t=t.slice(n[0].length),t=t.replace(/^[^@/]+@/,""),t=t.replace(/^([^/:]+):\d+(?=\/)/,"$1");else{t=t.replace(/^[^@/]+@/,"");let r=t.indexOf(":");r>=0&&(t=`${t.slice(0,r)}/${t.slice(r+1)}`)}return t=t.replace(/\.git$/i,"").replace(/\/+$/,"").toLowerCase(),t.length>0?t:null}function wf(e){let t=bf(e);return t?yf(t):null}function L(){let e=process.env.MAIND_PROJECT_KEY?.trim().toLowerCase();if(e&&_f.test(e))return e;let t;try{t=hf("git",["config","--get","remote.origin.url"],{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:5e3}).trim()}catch{return null}return t?wf(t):null}var _f,me=w(()=>{"use strict";s(yf,"sha256Hex");s(bf,"normalizeRemoteUrl");s(wf,"projectKeyFromRemote");_f=/^[a-f0-9]{64}$/;s(L,"computeProjectKey")});import vf from"node:path";import{fileURLToPath as Sf}from"node:url";function Ef(e,t=vf.sep){return e.split(t).includes("_npx")}function Z(e){let t=e.extraArgs??[],n=s(r=>({command:"npx",args:["-y",As,...t],env:{},fallbackReason:r}),"npx");return e.entryPath===null?n("bridge entry path could not be resolved"):Ef(e.entryPath,e.sep)?n("bridge is running from the npx cache (install it globally to pin a path)"):e.nodePath?{command:e.nodePath,args:[e.entryPath,...t],env:e.isElectron?{ELECTRON_RUN_AS_NODE:"1"}:{},fallbackReason:null}:n("node executable path unavailable")}function ee(){try{let e=Sf(import.meta.url);return e.endsWith(".js")?e:null}catch{return null}}function We(e){let t=Object.entries(e.env).map(([n,r])=>`${n}=${Ts(r)}`);return[...t,e.command,...e.args].map((n,r)=>r<t.length?n:Ts(n)).join(" ")}function gn(e){return/(^|\s)npx(\s|$)/.test(e)&&e.includes(As)}function yn(e){return/(^|[\s/])maind-hook(\s|$)/.test(e)?!0:/claude-code-hook[/\\]build[/\\]/.test(e)}function Ts(e){return/^[A-Za-z0-9_@%+=:,./-]+$/.test(e)?e:`'${e.replace(/'/g,"'\\''")}'`}var As,Ve=w(()=>{"use strict";As="@maind-dev/mcp-bridge";s(Ef,"isEphemeralEntry");s(Z,"resolveBridgeLaunch");s(ee,"currentBridgeEntry");s(We,"launchToShellCommand");s(gn,"isNpxForm");s(yn,"isLegacyHookForm");s(Ts,"shellQuote")});import*as D from"node:fs/promises";import*as bn from"node:path";async function H(e){try{return await D.readFile(e,"utf8")}catch(t){if(Rf(t))return null;throw t}}async function jr(e){await D.mkdir(e,{recursive:!0})}async function O(e,t,n){let r=bn.dirname(e);await jr(r);let i=bn.join(r,`.maind-install-${process.pid}-${Date.now()}.tmp`);await D.writeFile(i,t,{encoding:"utf8",mode:n});try{await D.rename(i,e)}catch(o){if(Tf(o))try{await D.copyFile(i,e),await D.unlink(i).catch(()=>{}),n!==void 0&&await D.chmod(e,n).catch(()=>{});return}catch(a){throw await D.unlink(i).catch(()=>{}),a}throw await D.unlink(i).catch(()=>{}),o}}async function Os(e,t){let n=await H(e);return n===null?!1:n.split(/\r?\n/).some(i=>i.startsWith(t))}function Rf(e){return Ms(e)&&e.code==="ENOENT"}function Tf(e){return!Ms(e)||process.platform!=="win32"?!1:e.code==="EEXIST"||e.code==="EPERM"||e.code==="EACCES"}function Ms(e){return typeof e=="object"&&e!==null&&"code"in e}var ae=w(()=>{"use strict";s(H,"readFileSafe");s(jr,"ensureDir");s(O,"atomicWriteFile");s(Os,"hasLinePrefix");s(Rf,"isNoEnt");s(Tf,"isWindowsRenameFailure");s(Ms,"isNodeError")});import{existsSync as Bf}from"node:fs";import*as Us from"node:path";function Tt(e,t={},n=Kr){let r=t.fileExists??Bf,i=t.expectedCommand??Wf,o={};if(e!==null&&e.trim().length>0)try{let a=JSON.parse(e);Gr(a)&&(o=a)}catch{}return n.map(a=>{let c={event:a.event,subcommand:a.subcommand},l=Vf(o,a.event,a.subcommand);if(l===null)return{...c,status:"missing",command:null,remedy:"run-install",detail:`${a.label} is not wired \u2014 this bridge can run '${a.subcommand}', but nothing calls it.`};let u=` Replace its command with: ${i(a.subcommand)}`;if(yn(l))return{...c,status:"legacy",command:l,remedy:"edit-command",detail:`${a.label} still runs the retired @maind/claude-code-hook, which was folded into the bridge and is not published.`+u};if(gn(l))return{...c,status:"npx",command:l,remedy:"edit-command",detail:`${a.label} runs through 'npx' \u2014 PATH and npm's per-Node-version globals decide which bridge that is.`+u};let d=qf(l);return d!==null&&!r(d)?{...c,status:"broken",command:l,remedy:"edit-command",detail:`${a.label} points at ${d}, which does not exist \u2014 the hook fails silently on every run.`+u}:{...c,status:"ok",command:l,remedy:"none",detail:`${a.label} is wired.`}})}function Br(e){return e.some(t=>t.status!=="ok")}function kn(e){return e.some(t=>t.remedy==="run-install")}function Wf(e){return We(Z({entryPath:ee(),nodePath:process.execPath,extraArgs:[e],isElectron:process.versions.electron!==void 0}))}function Vf(e,t,n){let r=e.hooks?.[t];if(!Array.isArray(r))return null;for(let i of r){if(!Gr(i))continue;let o=i.hooks;if(Array.isArray(o))for(let a of o){if(!Gr(a))continue;let c=a.command;if(typeof c=="string"&&c.includes(n))return c}}return null}function qf(e){for(let t of Jf(e))if(t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs"))return Us.isAbsolute(t)?t:null;return null}function Jf(e){let t=[],n="",r=!1;for(let i of e){if(i==="'"){r=!r;continue}if(!r&&/\s/.test(i)){n.length>0&&t.push(n),n="";continue}n+=i}return n.length>0&&t.push(n),t}function Gr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Kr,_n,At=w(()=>{"use strict";Ve();Kr=[{event:"SessionStart",subcommand:"on-session-start",label:"SessionStart hook",timeout:5,consentDescription:"It runs 'maind-mcp-bridge on-session-start' \u2014 opens a tracked session so duration and tool-call counts can be measured. Writes only to ~/.maind/state.json; nothing leaves the machine here."},{event:"PreToolUse",subcommand:"on-tool-use",label:"PreToolUse hook",timeout:5,consentDescription:"It runs 'maind-mcp-bridge on-tool-use' before every tool call \u2014 counts calls, and warns you on stderr when the session's token usage crosses your handoff thresholds (ADR-039). Only the tool NAME is read, never its arguments."},{event:"PreToolUse",subcommand:"on-file-write",label:"PreToolUse write-guard hook",timeout:5,matcher:"Write",consentDescription:"It runs 'maind-mcp-bridge on-file-write' before the Write tool creates a file, and before that tool only. It reads the target file PATH \u2014 never the file's contents, never any other tool's arguments \u2014 to check whether a numbered filename (ADR-262-\u2026, 0001-\u2026, RFC-12-\u2026) would claim a number a sibling branch or worktree already holds, and blocks that one Write while naming the next free number (ADR-263). Runs entirely on this machine (git + fs); nothing is uploaded. This is a SEPARATE hook from on-tool-use precisely because it reads an argument, which that one promises not to."},{event:"PreToolUse",subcommand:"on-file-edit",label:"PreToolUse edit-guard hook",timeout:5,matcher:"Edit|Write",consentDescription:"It runs 'maind-mcp-bridge on-file-edit' before the Edit and Write tools, and before those only. It reads the target file PATH \u2014 never the file's contents \u2014 and compares it LOCALLY against the cached peer view from this machine's own presence announces (~/.maind/presence/): when another of your sessions holds a claim or works on the same directory, it INFORMS the agent with who/where/how-fresh. The path never leaves the machine; the hook never blocks a tool call (advisory only, ADR-277). This is a SEPARATE hook from on-file-write because that one's consent covers Write alone and may deny; this one covers Edit+Write and never does."},{event:"PreToolUse",subcommand:"on-repo-health",label:"PreToolUse repo-health hook",timeout:10,matcher:"Edit|Write",consentDescription:"It runs 'maind-mcp-bridge on-repo-health' before the Edit and Write tools, and before those only \u2014 at most ONCE per session and repository, not on every call. It reads the target file PATH (never the file's contents) to find which repository you are editing, then inspects THAT repository with git and the filesystem: is a machine-local tooling file present in the main checkout but missing in this worktree, were dependencies never installed here, is a build older than its source, are you mid-rebase, on a detached HEAD, editing the shared base tree, or are checked-in git hooks not actually wired? Everything stays on this machine; no network call, and no file contents are read or stored. It only ever adds a note for the model and NEVER blocks a tool call. Separately consented from the other Edit/Write hooks because it inspects the repository, not just the path."},{event:"PostToolUse",subcommand:"on-write-health",label:"PostToolUse write-health hook",timeout:10,matcher:"Edit|Write",consentDescription:"It runs 'maind-mcp-bridge on-write-health' AFTER the Edit and Write tools, and after those only. It reads the target file PATH to decide which checks that path makes relevant, and then \u2014 this is the wider promise, which is why it is consented separately \u2014 READS THE REPOSITORY'S TRACKED SOURCE FILES FROM DISK to run them: is a registry still consistent with the design artefact it implements (only if this repo declares such a contract in .maind/spec-contracts.json), does a Tailwind class point at a theme token that does not exist (only if this repo declares theme tokens), does a new Supabase migration leave default grants in place (only if this repo has migrations). A repository without those things stays silent. File contents are read, parsed and discarded; nothing is stored and nothing is uploaded. Each finding is reported to the model at most ONCE per session, only for findings THIS branch introduces, and the hook can never block or undo an edit \u2014 PostToolUse fires after the tool has already run."},{event:"Stop",subcommand:"on-session-end",label:"Stop hook",timeout:10,consentDescription:"It runs 'maind-mcp-bridge on-session-end' \u2014 derives session communication analytics (momentum + reactions) from the transcript at session end, and flushes the session's Tier-3 counters. Gated by Tier-3 consent server-side."},{event:"Stop",subcommand:"on-index-refresh",label:"Stop index-refresh hook",timeout:5,consentDescription:"It runs 'maind-mcp-bridge on-index-refresh' at the end of a turn, and refreshes this repository's local code index so codebase search, trace, map, history and review answer from the current tree instead of a stale snapshot. This one READS YOUR SOURCE FILES \u2014 the ones git reports as changed \u2014 parses them, and writes symbol names and line spans to .maind/code-index.sqlite inside the repository. That is a wider promise than the other hooks make, which is why it is consented separately. Everything stays on this machine; nothing is uploaded, and no file contents are stored. It returns immediately (the work runs detached), holds one run per repository at a time, and only refreshes an index that already exists \u2014 the first build stays an explicit 'codebase_index' call."}],_n=[{event:"SessionStart",subcommand:"guard-inject",label:"Guard inject hook",timeout:10,consentDescription:"It runs 'maind-mcp-bridge guard-inject' when a session starts (ADR-284 guard). UNLIKE every other hook, this one talks to the maind server: it fetches your session briefing from mcp.maind.dev \u2014 sending your API key, device id, project key, and the client family 'claude-code'; never file contents, never paths \u2014 and injects the result into the session context, so the briefing no longer depends on the model remembering to ask. Cache-first (~12h), so most session starts add no network call. Inactive (exit 0, no output) while guard mode is off."},{event:"PreToolUse",subcommand:"guard-gate",label:"Guard gate hook",timeout:5,matcher:"Edit|Write",consentDescription:"It runs 'maind-mcp-bridge guard-gate' before the Edit and Write tools, and before those only. It reads the tool NAME and the session id \u2014 never the tool's arguments, never file contents \u2014 and checks LOCALLY whether this session has been briefed (injection or a maind consultation call). Warn mode (default) adds one reminder line for the model and never blocks; block mode (explicit opt-in via 'guard mode block') may DENY an un-briefed edit, naming the reason and a logged override command. Inactive while guard mode is off."},{event:"Stop",subcommand:"guard-stop",label:"Guard stop hook",timeout:5,consentDescription:"It runs 'maind-mcp-bridge guard-stop' when the session tries to finish. Only with the strict stop-gate enabled ('guard_stop_gate': true \u2014 off by default) and edits made without a review_changes run, it blocks the FIRST stop attempt with a reason so the review can happen; it never blocks twice. Reads only local state; nothing leaves the machine. Inactive while guard mode is off."},{event:"PostToolUse",subcommand:"guard-cross-observe",label:"Guard cross-session observe hook",timeout:5,matcher:"Read|Edit|Write",consentDescription:"It runs 'maind-mcp-bridge guard-cross-observe' after the Read, Edit and Write tools, and after those only. It reads the target file PATH \u2014 never the file's contents \u2014 stats its modification time, and records it as this session's baseline in ~/.maind/cross-session/ (local file, TTL-pruned). That baseline is what lets the check hook detect when a parallel session, an editor, or git changes a file under you. Nothing leaves the machine. Inactive while guard mode is off."},{event:"PreToolUse",subcommand:"guard-cross-check",label:"Guard cross-session check hook",timeout:5,matcher:"Edit|Write",consentDescription:"It runs 'maind-mcp-bridge guard-cross-check' before the Edit and Write tools, and before those only. It reads the target file PATH \u2014 never the file's contents \u2014 and compares the file's current modification time against the baseline this session last observed. If the file changed outside the session (parallel session, editor, git checkout/pull), warn mode adds one advisory telling the model to re-read and reconcile; block mode ('guard mode block') DENIES that one edit with the same instruction. Runs entirely on this machine. Inactive while guard mode is off."}];s(Tt,"inspectHookWiring");s(Br,"hasWiringDrift");s(kn,"needsInstallRun");s(Wf,"defaultExpectedCommand");s(Vf,"findCommand");s(qf,"extractScriptPath");s(Jf,"tokenize");s(Gr,"isObject")});import*as qr from"node:path";import*as Ks from"node:readline";async function Bs(e,t){let n=qr.join(e.homeDir,".claude","settings.json"),r=t.targetKey;if(e.skip)return{target:r,action:"skip",status:"skipped",detail:"--no-hook"};let i;try{i=await H(n)}catch(f){return{target:r,action:"merge",status:"failed",detail:`read: ${Wr(f)}`}}let o,a="create";if(i===null||i.trim().length===0)o={};else{a="merge";try{let f=JSON.parse(i);if(!Vr(f))return{target:r,action:"merge",status:"failed",detail:"existing settings.json is not a JSON object"};o=f}catch(f){return{target:r,action:"merge",status:"failed",detail:`parse: ${Wr(f)}`}}}let c=Yf(o,t.event,t.matchPattern);if(c!==null)return{target:r,action:"skip",status:"skipped",detail:t.skipDetail(c)};if(!e.full){if(!e.isInteractive)return{target:r,action:"skip",status:"skipped",detail:"consent-required: pass --full to write the hook non-interactively"};if(e.dryRun)return{target:r,action:"merge",status:a==="create"?"would-create":"would-merge",detail:`${n} (would prompt for consent in real run)`};if(!await Xf(e.out,`
6
+ `,{encoding:"utf8",mode:384});try{hs(n,384)}catch{}}function N(){let e=$r();if(!fn(e))return null;let t=ms(e,"utf8").trim();return t.length>0?t:null}function St(){let e=$r();fn(e)&&Lr(e,"",{encoding:"utf8",mode:384})}function ys(){try{return`mcp-bridge-${Zp()}`}catch{return"mcp-bridge"}}function mn(e){return{os:`${Fr()} ${ef()}`,ide:"mcp-bridge",ext_version:e,device_id:j()}}var nf,rf,of,K=w(()=>{"use strict";s(vt,"configDir");s(gs,"ensureDir");nf="device-id",rf="api-key";s(j,"ensureDeviceId");of=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;s(sf,"isUuid");s($r,"apiKeyPath");s(Se,"writeApiKey");s(N,"readApiKey");s(St,"clearApiKey");s(ys,"bridgeLabel");s(mn,"clientMeta")});var P,Ee=w(()=>{"use strict";P="0.60.0"});import{execFileSync as hf}from"node:child_process";import{createHash as gf}from"node:crypto";function yf(e){return gf("sha256").update(e).digest("hex")}function bf(e){let t=e.trim();if(!t)return null;let n=/^[a-z][a-z0-9+.-]*:\/\//i.exec(t);if(n)t=t.slice(n[0].length),t=t.replace(/^[^@/]+@/,""),t=t.replace(/^([^/:]+):\d+(?=\/)/,"$1");else{t=t.replace(/^[^@/]+@/,"");let r=t.indexOf(":");r>=0&&(t=`${t.slice(0,r)}/${t.slice(r+1)}`)}return t=t.replace(/\.git$/i,"").replace(/\/+$/,"").toLowerCase(),t.length>0?t:null}function wf(e){let t=bf(e);return t?yf(t):null}function L(){let e=process.env.MAIND_PROJECT_KEY?.trim().toLowerCase();if(e&&_f.test(e))return e;let t;try{t=hf("git",["config","--get","remote.origin.url"],{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:5e3}).trim()}catch{return null}return t?wf(t):null}var _f,me=w(()=>{"use strict";s(yf,"sha256Hex");s(bf,"normalizeRemoteUrl");s(wf,"projectKeyFromRemote");_f=/^[a-f0-9]{64}$/;s(L,"computeProjectKey")});import vf from"node:path";import{fileURLToPath as Sf}from"node:url";function Ef(e,t=vf.sep){return e.split(t).includes("_npx")}function Z(e){let t=e.extraArgs??[],n=s(r=>({command:"npx",args:["-y",As,...t],env:{},fallbackReason:r}),"npx");return e.entryPath===null?n("bridge entry path could not be resolved"):Ef(e.entryPath,e.sep)?n("bridge is running from the npx cache (install it globally to pin a path)"):e.nodePath?{command:e.nodePath,args:[e.entryPath,...t],env:e.isElectron?{ELECTRON_RUN_AS_NODE:"1"}:{},fallbackReason:null}:n("node executable path unavailable")}function ee(){try{let e=Sf(import.meta.url);return e.endsWith(".js")?e:null}catch{return null}}function We(e){let t=Object.entries(e.env).map(([n,r])=>`${n}=${Ts(r)}`);return[...t,e.command,...e.args].map((n,r)=>r<t.length?n:Ts(n)).join(" ")}function gn(e){return/(^|\s)npx(\s|$)/.test(e)&&e.includes(As)}function yn(e){return/(^|[\s/])maind-hook(\s|$)/.test(e)?!0:/claude-code-hook[/\\]build[/\\]/.test(e)}function Ts(e){return/^[A-Za-z0-9_@%+=:,./-]+$/.test(e)?e:`'${e.replace(/'/g,"'\\''")}'`}var As,Ve=w(()=>{"use strict";As="@maind-dev/mcp-bridge";s(Ef,"isEphemeralEntry");s(Z,"resolveBridgeLaunch");s(ee,"currentBridgeEntry");s(We,"launchToShellCommand");s(gn,"isNpxForm");s(yn,"isLegacyHookForm");s(Ts,"shellQuote")});import*as D from"node:fs/promises";import*as bn from"node:path";async function H(e){try{return await D.readFile(e,"utf8")}catch(t){if(Rf(t))return null;throw t}}async function jr(e){await D.mkdir(e,{recursive:!0})}async function O(e,t,n){let r=bn.dirname(e);await jr(r);let i=bn.join(r,`.maind-install-${process.pid}-${Date.now()}.tmp`);await D.writeFile(i,t,{encoding:"utf8",mode:n});try{await D.rename(i,e)}catch(o){if(Tf(o))try{await D.copyFile(i,e),await D.unlink(i).catch(()=>{}),n!==void 0&&await D.chmod(e,n).catch(()=>{});return}catch(a){throw await D.unlink(i).catch(()=>{}),a}throw await D.unlink(i).catch(()=>{}),o}}async function Os(e,t){let n=await H(e);return n===null?!1:n.split(/\r?\n/).some(i=>i.startsWith(t))}function Rf(e){return Ms(e)&&e.code==="ENOENT"}function Tf(e){return!Ms(e)||process.platform!=="win32"?!1:e.code==="EEXIST"||e.code==="EPERM"||e.code==="EACCES"}function Ms(e){return typeof e=="object"&&e!==null&&"code"in e}var ae=w(()=>{"use strict";s(H,"readFileSafe");s(jr,"ensureDir");s(O,"atomicWriteFile");s(Os,"hasLinePrefix");s(Rf,"isNoEnt");s(Tf,"isWindowsRenameFailure");s(Ms,"isNodeError")});import{existsSync as Bf}from"node:fs";import*as Us from"node:path";function Tt(e,t={},n=Kr){let r=t.fileExists??Bf,i=t.expectedCommand??Wf,o={};if(e!==null&&e.trim().length>0)try{let a=JSON.parse(e);Gr(a)&&(o=a)}catch{}return n.map(a=>{let c={event:a.event,subcommand:a.subcommand},l=Vf(o,a.event,a.subcommand);if(l===null)return{...c,status:"missing",command:null,remedy:"run-install",detail:`${a.label} is not wired \u2014 this bridge can run '${a.subcommand}', but nothing calls it.`};let u=` Replace its command with: ${i(a.subcommand)}`;if(yn(l))return{...c,status:"legacy",command:l,remedy:"edit-command",detail:`${a.label} still runs the retired @maind/claude-code-hook, which was folded into the bridge and is not published.`+u};if(gn(l))return{...c,status:"npx",command:l,remedy:"edit-command",detail:`${a.label} runs through 'npx' \u2014 PATH and npm's per-Node-version globals decide which bridge that is.`+u};let d=qf(l);return d!==null&&!r(d)?{...c,status:"broken",command:l,remedy:"edit-command",detail:`${a.label} points at ${d}, which does not exist \u2014 the hook fails silently on every run.`+u}:{...c,status:"ok",command:l,remedy:"none",detail:`${a.label} is wired.`}})}function Br(e){return e.some(t=>t.status!=="ok")}function kn(e){return e.some(t=>t.remedy==="run-install")}function Wf(e){return We(Z({entryPath:ee(),nodePath:process.execPath,extraArgs:[e],isElectron:process.versions.electron!==void 0}))}function Vf(e,t,n){let r=e.hooks?.[t];if(!Array.isArray(r))return null;for(let i of r){if(!Gr(i))continue;let o=i.hooks;if(Array.isArray(o))for(let a of o){if(!Gr(a))continue;let c=a.command;if(typeof c=="string"&&c.includes(n))return c}}return null}function qf(e){for(let t of Jf(e))if(t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs"))return Us.isAbsolute(t)?t:null;return null}function Jf(e){let t=[],n="",r=!1;for(let i of e){if(i==="'"){r=!r;continue}if(!r&&/\s/.test(i)){n.length>0&&t.push(n),n="";continue}n+=i}return n.length>0&&t.push(n),t}function Gr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Kr,_n,At=w(()=>{"use strict";Ve();Kr=[{event:"SessionStart",subcommand:"on-session-start",label:"SessionStart hook",timeout:5,consentDescription:"It runs 'maind-mcp-bridge on-session-start' \u2014 opens a tracked session so duration and tool-call counts can be measured. Writes only to ~/.maind/state.json; nothing leaves the machine here."},{event:"PreToolUse",subcommand:"on-tool-use",label:"PreToolUse hook",timeout:5,consentDescription:"It runs 'maind-mcp-bridge on-tool-use' before every tool call \u2014 counts calls, and warns you on stderr when the session's token usage crosses your handoff thresholds (ADR-039). Only the tool NAME is read, never its arguments."},{event:"PreToolUse",subcommand:"on-file-write",label:"PreToolUse write-guard hook",timeout:5,matcher:"Write",consentDescription:"It runs 'maind-mcp-bridge on-file-write' before the Write tool creates a file, and before that tool only. It reads the target file PATH \u2014 never the file's contents, never any other tool's arguments \u2014 to check whether a numbered filename (ADR-262-\u2026, 0001-\u2026, RFC-12-\u2026) would claim a number a sibling branch or worktree already holds, and blocks that one Write while naming the next free number (ADR-263). Runs entirely on this machine (git + fs); nothing is uploaded. This is a SEPARATE hook from on-tool-use precisely because it reads an argument, which that one promises not to."},{event:"PreToolUse",subcommand:"on-file-edit",label:"PreToolUse edit-guard hook",timeout:5,matcher:"Edit|Write",consentDescription:"It runs 'maind-mcp-bridge on-file-edit' before the Edit and Write tools, and before those only. It reads the target file PATH \u2014 never the file's contents \u2014 and compares it LOCALLY against the cached peer view from this machine's own presence announces (~/.maind/presence/): when another of your sessions holds a claim or works on the same directory, it INFORMS the agent with who/where/how-fresh. The path never leaves the machine; the hook never blocks a tool call (advisory only, ADR-277). This is a SEPARATE hook from on-file-write because that one's consent covers Write alone and may deny; this one covers Edit+Write and never does."},{event:"PreToolUse",subcommand:"on-repo-health",label:"PreToolUse repo-health hook",timeout:10,matcher:"Edit|Write",consentDescription:"It runs 'maind-mcp-bridge on-repo-health' before the Edit and Write tools, and before those only \u2014 at most ONCE per session and repository, not on every call. It reads the target file PATH (never the file's contents) to find which repository you are editing, then inspects THAT repository with git and the filesystem: is a machine-local tooling file present in the main checkout but missing in this worktree, were dependencies never installed here, is a build older than its source, are you mid-rebase, on a detached HEAD, editing the shared base tree, or are checked-in git hooks not actually wired? Everything stays on this machine; no network call, and no file contents are read or stored. It only ever adds a note for the model and NEVER blocks a tool call. Separately consented from the other Edit/Write hooks because it inspects the repository, not just the path."},{event:"PostToolUse",subcommand:"on-write-health",label:"PostToolUse write-health hook",timeout:10,matcher:"Edit|Write",consentDescription:"It runs 'maind-mcp-bridge on-write-health' AFTER the Edit and Write tools, and after those only. It reads the target file PATH to decide which checks that path makes relevant, and then \u2014 this is the wider promise, which is why it is consented separately \u2014 READS THE REPOSITORY'S TRACKED SOURCE FILES FROM DISK to run them: is a registry still consistent with the design artefact it implements (only if this repo declares such a contract in .maind/spec-contracts.json), does a Tailwind class point at a theme token that does not exist (only if this repo declares theme tokens), does a new Supabase migration leave default grants in place (only if this repo has migrations). A repository without those things stays silent. File contents are read, parsed and discarded; nothing is stored and nothing is uploaded. Each finding is reported to the model at most ONCE per session, only for findings THIS branch introduces, and the hook can never block or undo an edit \u2014 PostToolUse fires after the tool has already run."},{event:"Stop",subcommand:"on-session-end",label:"Stop hook",timeout:10,consentDescription:"It runs 'maind-mcp-bridge on-session-end' \u2014 derives session communication analytics (momentum + reactions) from the transcript at session end, and flushes the session's Tier-3 counters. Gated by Tier-3 consent server-side."},{event:"Stop",subcommand:"on-index-refresh",label:"Stop index-refresh hook",timeout:5,consentDescription:"It runs 'maind-mcp-bridge on-index-refresh' at the end of a turn, and refreshes this repository's local code index so codebase search, trace, map, history and review answer from the current tree instead of a stale snapshot. This one READS YOUR SOURCE FILES \u2014 the ones git reports as changed \u2014 parses them, and writes symbol names and line spans to .maind/code-index.sqlite inside the repository. That is a wider promise than the other hooks make, which is why it is consented separately. Everything stays on this machine; nothing is uploaded, and no file contents are stored. It returns immediately (the work runs detached), holds one run per repository at a time, and only refreshes an index that already exists \u2014 the first build stays an explicit 'codebase_index' call."}],_n=[{event:"SessionStart",subcommand:"guard-inject",label:"Guard inject hook",timeout:10,consentDescription:"It runs 'maind-mcp-bridge guard-inject' when a session starts (ADR-284 guard). UNLIKE every other hook, this one talks to the maind server: it fetches your session briefing from mcp.maind.dev \u2014 sending your API key, device id, project key, and the client family 'claude-code'; never file contents, never paths \u2014 and injects the result into the session context, so the briefing no longer depends on the model remembering to ask. Cache-first (~12h), so most session starts add no network call. Inactive (exit 0, no output) while guard mode is off."},{event:"PreToolUse",subcommand:"guard-gate",label:"Guard gate hook",timeout:5,matcher:"Edit|Write",consentDescription:"It runs 'maind-mcp-bridge guard-gate' before the Edit and Write tools, and before those only. It reads the tool NAME and the session id \u2014 never the tool's arguments, never file contents \u2014 and checks LOCALLY whether this session has been briefed (injection or a maind consultation call). Warn mode (default) adds one reminder line for the model and never blocks; block mode (explicit opt-in via 'guard mode block') may DENY an un-briefed edit, naming the reason and a logged override command. Inactive while guard mode is off."},{event:"Stop",subcommand:"guard-stop",label:"Guard stop hook",timeout:5,consentDescription:"It runs 'maind-mcp-bridge guard-stop' when the session tries to finish. Only with the strict stop-gate enabled ('guard_stop_gate': true \u2014 off by default) and edits made without a review_changes run, it blocks the FIRST stop attempt with a reason so the review can happen; it never blocks twice. Reads only local state; nothing leaves the machine. Inactive while guard mode is off."},{event:"PostToolUse",subcommand:"guard-cross-observe",label:"Guard cross-session observe hook",timeout:5,matcher:"Read|Edit|Write",consentDescription:"It runs 'maind-mcp-bridge guard-cross-observe' after the Read, Edit and Write tools, and after those only. It reads the target file PATH \u2014 never the file's contents \u2014 stats its modification time, and records it as this session's baseline in ~/.maind/cross-session/ (local file, TTL-pruned). That baseline is what lets the check hook detect when a parallel session, an editor, or git changes a file under you. Nothing leaves the machine. Inactive while guard mode is off."},{event:"PreToolUse",subcommand:"guard-cross-check",label:"Guard cross-session check hook",timeout:5,matcher:"Edit|Write",consentDescription:"It runs 'maind-mcp-bridge guard-cross-check' before the Edit and Write tools, and before those only. It reads the target file PATH \u2014 never the file's contents \u2014 and compares the file's current modification time against the baseline this session last observed. If the file changed outside the session (parallel session, editor, git checkout/pull), warn mode adds one advisory telling the model to re-read and reconcile; block mode ('guard mode block') DENIES that one edit with the same instruction. Runs entirely on this machine. Inactive while guard mode is off."}];s(Tt,"inspectHookWiring");s(Br,"hasWiringDrift");s(kn,"needsInstallRun");s(Wf,"defaultExpectedCommand");s(Vf,"findCommand");s(qf,"extractScriptPath");s(Jf,"tokenize");s(Gr,"isObject")});import*as qr from"node:path";import*as Ks from"node:readline";async function Bs(e,t){let n=qr.join(e.homeDir,".claude","settings.json"),r=t.targetKey;if(e.skip)return{target:r,action:"skip",status:"skipped",detail:"--no-hook"};let i;try{i=await H(n)}catch(f){return{target:r,action:"merge",status:"failed",detail:`read: ${Wr(f)}`}}let o,a="create";if(i===null||i.trim().length===0)o={};else{a="merge";try{let f=JSON.parse(i);if(!Vr(f))return{target:r,action:"merge",status:"failed",detail:"existing settings.json is not a JSON object"};o=f}catch(f){return{target:r,action:"merge",status:"failed",detail:`parse: ${Wr(f)}`}}}let c=Yf(o,t.event,t.matchPattern);if(c!==null)return{target:r,action:"skip",status:"skipped",detail:t.skipDetail(c)};if(!e.full){if(!e.isInteractive)return{target:r,action:"skip",status:"skipped",detail:"consent-required: pass --full to write the hook non-interactively"};if(e.dryRun)return{target:r,action:"merge",status:a==="create"?"would-create":"would-merge",detail:`${n} (would prompt for consent in real run)`};if(!await Xf(e.out,`
7
7
  Merge a ${t.event} hook into ${n}?
8
8
  ${t.consentDescription}
9
9
  [Y/n]: `))return{target:r,action:"skip",status:"skipped",detail:"user declined"}}let l={...t.matcher===void 0?{}:{matcher:t.matcher},hooks:[{type:"command",command:t.command,timeout:t.timeout}]},u=o.hooks?.[t.event]??[],d={...o,hooks:{...o.hooks??{},[t.event]:[...u,l]}},p=JSON.stringify(d,null,2)+`
@@ -121,7 +121,7 @@ CREATE TABLE IF NOT EXISTS embeddings (
121
121
  `)){if(!o.startsWith("worktree "))continue;let a=o.slice(9).trim();if(!a||a===i||!lo(a))continue;let c=uo(a,t);if(lo(c))try{for(let l of Sg(c)){let u=Ye(l);u!==null&&!n.has(u)&&n.set(u,a)}}catch{}}return n}function fo(e,t={}){let n=t.runPsql??Rl,r=t.timeoutMs??15e3,i=[],o=Te(e,t.dirs);if(o.length===0)return{ok:!1,verdict:"no_opinion",findings:[],facts:{projects:[],remoteConsulted:t.remoteDbUrl!==void 0,skipped:i}};let a=[],c=[],l=[];for(let p of o){let f=Cg(e,p.dir,i),h=f.source==="missing"?null:Sl(n,`postgresql://postgres:postgres@127.0.0.1:${f.port}/postgres`,r),m=t.remoteDbUrl!==void 0?Sl(n,t.remoteDbUrl,r):null,y=El({dir:p.dir,fileVersions:p.files.map(g=>g.version),config:f,ledger:h,siblingVersions:Ng(e,p.dir),remote:m});a.push(...y.findings),l.push(y.verdict),c.push({dir:p.dir,migrationCount:p.files.length,verdict:y.verdict,db:y.db})}let u=xl(l),d={open:0,warn:1,info:2};return a.sort((p,f)=>d[p.status]-d[f.status]||p.id.localeCompare(f.id)),{ok:u==="in_sync",verdict:u,findings:a,facts:{projects:c,remoteConsulted:t.remoteDbUrl!==void 0,skipped:i}}}var po,Rl,Ag,Il=w(()=>{"use strict";V();Nt();po=54322;s(El,"evaluateLedgerProject");s(xl,"deriveLedgerVerdict");Rl=s((e,t,n)=>{let r=xg("psql",[e,"-tAc",t],{encoding:"utf8",timeout:n,env:{...process.env,PGCONNECT_TIMEOUT:"5"}});return r.error&&r.error.code==="ENOENT"?{ok:!1,code:"enoent",stderr:""}:r.status!==0?{ok:!1,code:"error",stderr:(r.stderr??"").trim()}:{ok:!0,stdout:r.stdout??""}},"defaultRunPsql"),Ag="select version from supabase_migrations.schema_migrations order by version";s(Tl,"classifyLedgerError");s(Sl,"readLedger");s(Al,"parseDbPort");s(Ig,"mainWorktreeRoot");s(Cg,"resolveConfig");s(Ng,"gatherSiblingVersions");s(fo,"checkMigrationLedgerDrift")});var Cl,Vt=w(()=>{"use strict";vl();to();si();Yi();gi();di();Ot();Jn();Lt();Nt();qn();Il();Ii();zi();Ot();Lt();Jn();qn();xn();ni();Ut();Cl="0.1.0"});import{execFile as $l}from"node:child_process";import{randomUUID as Hg}from"node:crypto";function Vg(e){let t=(e.MAIND_SESSION_ID??"").trim().toLowerCase();return ho.test(t)?t:Hg()}function go(e,t){let n=(e.MAIND_AUTO_ANNOUNCE??"").trim().toLowerCase();return n==="off"||n==="0"||n==="false"?!0:t?.auto_announce===!1}function qg(e,t){let n=(e.MAIND_AUTO_WORKING_PATHS??"").trim().toLowerCase();return n==="on"||n==="1"||n==="true"?!0:n==="off"||n==="0"||n==="false"?!1:t?.auto_working_paths===!0}async function Jg(e){return await new Promise(t=>{$l("git",["config","--get",`branch.${e}.maindObject`],{timeout:2e3,encoding:"utf8"},(n,r)=>{if(n)return t(null);t(zg(r))})})}function zg(e){let t=(e??"").trim().toLowerCase();return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(t)?t:null}async function Yg(){return await new Promise(e=>{$l("git",["rev-parse","--abbrev-ref","HEAD"],{timeout:2e3,encoding:"utf8"},(t,n)=>{if(t)return e(null);let r=n.trim();e(r.length>0&&r!=="HEAD"?r:null)})})}function Xg(e){if(typeof e!="string")return null;let t=e.trim().slice(0,100);return t.length>0?t:null}function Qg(e,t){let n=t,r=(e.MAIND_SESSION_ID??"").trim().toLowerCase(),i=ho.test(r)&&r===t?"env":"random";return{current:s(()=>({id:n,source:i,aliases:[]}),"current"),tryUpgrade:s(()=>!1,"tryUpgrade"),adopt:s(o=>{ho.test(o)&&(n=o.trim().toLowerCase())},"adopt"),activityAtMs:s(()=>null,"activityAtMs")}}var Ll,jl,Ug,Gg,Kg,Bg,Wg,ho,cr,yo=w(()=>{"use strict";qe();Ll=45e3,jl=3e4,Ug=5,Gg=120,Kg=3e4,Bg=15*6e4,Wg=1500,ho=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;s(Vg,"resolveClientSessionId");s(go,"autoAnnounceDisabled");s(qg,"autoWorkingPathsEnabled");cr=class{static{s(this,"PresenceAnnouncer")}projectKey;postToolCall;now;gitBranch;gitBranchObject;lastSentObjectId=null;log;machineLabel;enabled;workingPathsEnabled;deriveWorkingPaths;snapshot;identity;sessionMeta;lastBranch=null;lastAnnounceAt=0;lastActivityAt=0;missingSideChannelPolls=0;warnedMissingSideChannel=!1;inFlight=!1;consecutiveFailures=0;nextAttemptAt=0;ended=!1;constructor(t){let n=t.env??process.env,r=(t.readConfig??te)();this.projectKey=t.projectKey,this.postToolCall=t.postToolCall,this.now=t.now??Date.now,this.gitBranch=t.gitBranch??Yg,this.gitBranchObject=t.gitBranchObject??Jg,this.log=t.log??(i=>process.stderr.write(i+`
122
122
  `)),this.machineLabel=Xg(r?.machine_label),this.enabled=this.projectKey!==null&&!go(n,r),this.workingPathsEnabled=qg(n,r),this.deriveWorkingPaths=t.deriveWorkingPaths??null,this.snapshot=t.snapshot??null,this.identity=t.identity??Qg(n,Vg(n)),this.sessionMeta=t.sessionMeta??null}get sessionId(){return this.identity.current().id}get isEnabled(){return this.enabled}onSessionReady(){!this.enabled||this.ended||this.lastAnnounceAt>0||this.announce("active")}onActivity(){!this.enabled||this.ended||this.lastAnnounceAt!==0&&(this.now()-this.lastAnnounceAt<Ll||this.announce("active"))}pollActivity(){if(!this.enabled||this.ended)return;let t=this.identity.activityAtMs();if(t===null){this.noteMissingSideChannel();return}this.missingSideChannelPolls=0,!(t<=this.lastActivityAt)&&this.lastAnnounceAt!==0&&(this.now()-this.lastAnnounceAt<Ll||(this.lastActivityAt=t,this.onActivity()))}noteMissingSideChannel(){this.warnedMissingSideChannel||++this.missingSideChannelPolls<Ug||(this.warnedMissingSideChannel=!0,this.log("[maind-mcp-bridge] presence: no activity side channel for this session \u2014 presence now refreshes only on MAIND tool calls, so a session that is working can still appear stale. Re-run `maind-mcp-bridge install` to wire the hooks."))}async end(){if(!this.enabled||this.ended||(this.ended=!0,this.lastAnnounceAt===0))return;let t=new Promise(n=>setTimeout(n,Wg).unref());await Promise.race([this.send("ended"),t])}async announce(t){if(!this.inFlight&&!(this.now()<this.nextAttemptAt)){this.inFlight=!0;try{await this.send(t),this.consecutiveFailures>0&&this.log("[maind-mcp-bridge] presence announce recovered."),this.consecutiveFailures=0,this.nextAttemptAt=0,this.lastAnnounceAt=this.now()}catch(n){this.consecutiveFailures+=1;let r=Math.min(Kg*2**(this.consecutiveFailures-1),Bg);this.nextAttemptAt=this.now()+r,this.consecutiveFailures===1&&this.log(`[maind-mcp-bridge] presence announce failed (advisory, backing off): ${n instanceof Error?n.message:String(n)}`)}finally{this.inFlight=!1}}}async send(t){if(this.projectKey===null)return;try{t==="active"&&this.identity.tryUpgrade()}catch{}let n=this.identity.current(),r={project_key:this.projectKey,session_id:n.id,status:t,ttl_minutes:Gg,announce_source:"bridge"};if(t==="active"){r.identity_source=n.source,n.aliases.length>0&&(r.also_known_as=n.aliases);let o=await this.gitBranch();if(o&&(r.branch=o),this.lastBranch=o,o)try{let a=await this.gitBranchObject(o);a!==null&&a!==this.lastSentObjectId&&(r.object_ids=[a],this.lastSentObjectId=a)}catch{}if(this.machineLabel&&(r.machine_label=this.machineLabel),this.sessionMeta!==null)try{let a=await this.sessionMeta();a?.model&&(r.model=a.model),a?.title&&(r.title=a.title)}catch{}if(this.workingPathsEnabled&&this.deriveWorkingPaths)try{let a=await this.deriveWorkingPaths();a&&a.length>0&&(r.working_paths=a)}catch{}}let i=await this.postToolCall("announce_session",r);if(t==="active"&&i!==null&&typeof i=="object"){let o=i;if(o.ok===!0&&typeof o.session_id=="string")try{this.identity.adopt(o.session_id)}catch{}}if(this.snapshot)try{if(t==="ended")this.snapshot.endSession();else if(i!=null){let o={sessionId:this.sessionId,branch:this.lastBranch},a=typeof i=="object"?i:null;if(a!==null&&a.ok===!0)this.snapshot.write(i,o);else if(this.snapshot.markFailed){let c=a!==null&&typeof a.error=="string"?a.error:"announce_failed";this.snapshot.markFailed(c,o)}}}catch{}}};s(Jg,"defaultGitBranchObject");s(zg,"normalizeObjectId");s(Yg,"defaultGitBranch");s(Xg,"normalizeMachineLabel");s(Qg,"staticIdentity")});import{mkdirSync as Hl,readdirSync as Bl,readFileSync as Zg,renameSync as Ul,statSync as ey,unlinkSync as Wl,writeFileSync as Gl}from"node:fs";import{homedir as ty}from"node:os";import{join as lt}from"node:path";function Vl(){return lt(ty(),".maind","presence")}function ql(e,t){return lt(e,t)}function Jl(e){let t=e.baseDir??Vl(),n=ql(t,e.projectKey),r=e.pid??process.pid,i=e.ppid??process.ppid,o=e.cwd??process.cwd(),a=e.now??Date.now,c=null;return{write(l,u){try{if(typeof l!="object"||l===null)return;let d=l;if(d.ok!==!0)return;let p={v:1,written_at:new Date(a()).toISOString(),project_key:e.projectKey,own_session_id:u.sessionId,own_pid:r,own_ppid:i,cwd:o,branch:u.branch,peers:Array.isArray(d.peers)?d.peers:[],conflicts:Array.isArray(d.conflicts)?d.conflicts:[]};Hl(n,{recursive:!0,mode:448}),c=lt(n,`${u.sessionId}.json`);let f=`${c}.tmp-${r}`;Gl(f,JSON.stringify(p),{mode:384}),Ul(f,c),Kl(n,a(),c)}catch{}},endSession(){try{c&&Wl(c)}catch{}},markFailed(l,u){try{let d={v:1,written_at:new Date(a()).toISOString(),project_key:e.projectKey,own_session_id:u.sessionId,own_pid:r,own_ppid:i,cwd:o,branch:u.branch,peers:[],conflicts:[],announce_error:l};Hl(n,{recursive:!0,mode:448}),c=lt(n,`${u.sessionId}.json`);let p=`${c}.tmp-${r}`;Gl(p,JSON.stringify(d),{mode:384}),Ul(p,c),Kl(n,a(),c)}catch{}}}}function Kl(e,t,n){try{for(let r of Bl(e)){if(!r.endsWith(".json"))continue;let i=lt(e,r);if(i!==n)try{t-ey(i).mtimeMs>ny&&Wl(i)}catch{}}}catch{}}function dt(e,t=Vl()){try{let n=ql(t,e),r=[];for(let i of Bl(n))if(i.endsWith(".json"))try{let o=JSON.parse(Zg(lt(n,i),"utf8")),a=ry(o);a&&r.push(a)}catch{}return r.sort((i,o)=>o.written_at.localeCompare(i.written_at)),r}catch{return[]}}function ry(e){if(typeof e!="object"||e===null)return null;let t=e;return t.v!==1||typeof t.written_at!="string"||typeof t.project_key!="string"||typeof t.own_session_id!="string"||typeof t.own_pid!="number"||typeof t.own_ppid!="number"||typeof t.cwd!="string"?null:{v:1,written_at:t.written_at,project_key:t.project_key,own_session_id:t.own_session_id,own_pid:t.own_pid,own_ppid:t.own_ppid,cwd:t.cwd,branch:typeof t.branch=="string"?t.branch:null,peers:Array.isArray(t.peers)?t.peers:[],conflicts:Array.isArray(t.conflicts)?t.conflicts:[],...typeof t.announce_error=="string"?{announce_error:t.announce_error}:{}}}var ny,lr=w(()=>{"use strict";ny=120*6e4;s(Vl,"presenceSnapshotBaseDir");s(ql,"projectDir");s(Jl,"createSnapshotStore");s(Kl,"pruneStale");s(dt,"readSnapshots");s(ry,"parseSnapshot")});import{execFileSync as iy}from"node:child_process";import{createHash as oy,randomUUID as sy}from"node:crypto";import{existsSync as ay,mkdirSync as cy,readdirSync as ly,readFileSync as Yl,renameSync as dy,statSync as bo,unlinkSync as Xl,writeFileSync as uy}from"node:fs";import{homedir as py}from"node:os";import{basename as fy,join as _e}from"node:path";function ut(e){return _e(e??_e(py(),".maind","presence"),"identity")}function Ql(e,t){if(e){let n=fy(e).replace(/\.jsonl$/i,"");if(qt.test(n))return n.toLowerCase()}return t&&qt.test(t)?t.toLowerCase():null}function Zl(e){let t=e.nowMs??Date.now();cy(e.dir,{recursive:!0,mode:448});let n=_e(e.dir,`${e.agentPid}.json`),r=`${n}.tmp-${process.pid}`,i={};if(!e.transcriptPath||!e.model)try{let l=JSON.parse(Yl(n,"utf8"));l.session_id===e.sessionId&&(i={...typeof l.transcript_path=="string"?{transcript_path:l.transcript_path}:{},...typeof l.model=="string"?{model:l.model}:{}})}catch{}let o=e.transcriptPath??i.transcript_path,a=e.model??i.model,c={v:1,session_id:e.sessionId,transcript_stem:e.transcriptStem,cwd:e.cwd,agent_pid:e.agentPid,written_at:new Date(t).toISOString(),...o?{transcript_path:o}:{},...a?{model:a}:{}};uy(r,JSON.stringify(c,null,2)+`
123
123
  `,{mode:384}),dy(r,n),by(e.dir,t)}function ed(e,t,n,r=Date.now()){try{let i=bo(_e(e,`${t}.json`));return r-i.mtimeMs>n}catch{return!0}}function td(e,t){try{Xl(_e(e,`${t}.json`))}catch{}}function by(e,t){try{for(let n of ly(e))if(n.endsWith(".json"))try{let r=bo(_e(e,n));t-r.mtimeMs>hy&&Xl(_e(e,n))}catch{}}catch{}}function wy(e){return nd(e)?.file??null}function nd(e){let t=_e(e.dir,`${e.agentPid}.json`);try{if(!ay(t))return null;let n=bo(t);if(n.mtimeMs<e.bridgeStartMs-gy)return null;let r=JSON.parse(Yl(t,"utf8"));if(typeof r!="object"||r===null)return null;let i=r;return i.v!==1||typeof i.transcript_stem!="string"||!qt.test(i.transcript_stem)||typeof i.session_id!="string"||typeof i.cwd!="string"||i.agent_pid!==e.agentPid||!_y(i.cwd,e.cwd)?null:{file:i,mtimeMs:n.mtimeMs}}catch{return null}}function zl(e){return e.replace(/\/+$/,"")}function _y(e,t){let n=zl(e),r=zl(t);return n===r?!0:n.startsWith(`${r}/`)||r.startsWith(`${n}/`)}function ky(e,t){let n=Buffer.from(t.replace(/-/g,""),"hex"),r=oy("sha1").update(n).update(e,"utf8").digest(),i=Buffer.from(r.subarray(0,16));i[6]=i[6]&15|80,i[8]=i[8]&63|128;let o=i.toString("hex");return`${o.slice(0,8)}-${o.slice(8,12)}-${o.slice(12,16)}-${o.slice(16,20)}-${o.slice(20)}`}function vy(e){if(process.platform==="win32")return null;try{let t=iy("ps",["-o","lstart=","-p",String(e)],{timeout:1e3,encoding:"utf8"}).trim().replace(/\s+/g," ");return t.length>0?t:null}catch{return null}}function Sy(){try{return j()}catch{return null}}var qt,my,hy,gy,yy,dr,ur=w(()=>{"use strict";K();qt=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,my=8,hy=48*60*6e4,gy=6e4,yy="9f3c72da-2f10-4b8f-9c31-ad291c0de291";s(ut,"identityDirPath");s(Ql,"transcriptStemOf");s(Zl,"writeAgentIdentityFile");s(ed,"identityFileStale");s(td,"deleteAgentIdentityFile");s(by,"pruneIdentityDir");s(wy,"readAgentIdentityFile");s(nd,"readAgentIdentityEntry");s(zl,"normDir");s(_y,"sameSessionTree");s(ky,"uuidV5");s(vy,"processStartTime");dr=class{static{s(this,"SessionIdentityManager")}env;agentPid;cwd;dir;bridgeStartMs;nowMs;envId;id;source;aliases=[];constructor(t){this.env=t.env??process.env,this.agentPid=t.agentPid??process.ppid,this.cwd=t.cwd??process.cwd(),this.dir=t.identityDir??ut(),this.bridgeStartMs=t.bridgeStartMs??Date.now(),this.nowMs=t.nowMs??Date.now;let n=(this.env.MAIND_SESSION_ID??"").trim().toLowerCase();this.envId=qt.test(n)?n:null;let r=this.readStem();if(r!==null){this.id=r,this.source="client_native",this.envId&&this.envId!==r&&(this.aliases=[this.envId]);return}if(this.envId!==null){this.id=this.envId,this.source="env";return}let i=(t.deviceId??Sy)(),o=(t.ppidStart??vy)(this.agentPid);if(i!==null&&o!==null&&t.projectKey!==null){this.id=ky(`${i}|${this.agentPid}|${o}|${t.projectKey}`,yy),this.source="derived";return}this.id=sy(),this.source="random"}current(){return{id:this.id,source:this.source,aliases:[...this.aliases]}}tryUpgrade(){if(this.source==="client_native")return!1;let t=this.readStem();if(t===null||t===this.id)return!1;let n=this.id;return this.id=t,this.source="client_native",this.pushAlias(n),this.envId!==null&&this.pushAlias(this.envId),!0}adopt(t){let n=t.trim().toLowerCase();if(!qt.test(n)||n===this.id)return;let r=this.id;this.id=n,this.pushAlias(r)}pushAlias(t){t===this.id||this.aliases.includes(t)||(this.aliases.push(t),this.aliases.length>my&&this.aliases.shift())}activityAtMs(){return nd({dir:this.dir,agentPid:this.agentPid,cwd:this.cwd,bridgeStartMs:this.bridgeStartMs,nowMs:this.nowMs()})?.mtimeMs??null}readStem(){let t=this.sideChannel();return t===null?null:t.transcript_stem.toLowerCase()}sideChannel(){return wy({dir:this.dir,agentPid:this.agentPid,cwd:this.cwd,bridgeStartMs:this.bridgeStartMs,nowMs:this.nowMs()})}};s(Sy,"defaultDeviceId")});function wo(){return{ultracode:!1,planMode:!1,autoMode:!1}}var _o=w(()=>{"use strict";s(wo,"newModeState")});import{createReadStream as Ey,existsSync as xy}from"node:fs";import{stat as Ry}from"node:fs/promises";import{createInterface as Ty}from"node:readline";async function ko(e){if(!e||!xy(e))return null;let t;try{t=await Ry(e)}catch{return null}let n=0,r=0,i=0;return await new Promise(o=>{let a=Ey(e,{encoding:"utf-8"}),c=Ty({input:a});c.on("line",l=>{let u=l.trim();if(u){i++;try{let p=JSON.parse(u).message?.usage;if(!p)return;typeof p.input_tokens=="number"&&(n+=p.input_tokens),typeof p.output_tokens=="number"&&(r+=p.output_tokens)}catch{}}}),c.on("close",()=>{o({input_tokens:n,output_tokens:r,total_tokens:n+r,lines_seen:i,last_modified_ms:t.mtimeMs})}),c.on("error",()=>o(null)),a.on("error",()=>o(null))})}var rd=w(()=>{"use strict";s(ko,"summariseTranscript")});var id=w(()=>{"use strict"});function Jt(e){if(!e)return null;let t=null;for(let n of e.matchAll(Iy)){let r=n[1].toLowerCase();Ay.has(r)&&(t=r)}return t}var Ay,Iy,pr=w(()=>{"use strict";Ay=new Set(["low","medium","high","xhigh","max"]),Iy=/(?:^|\s)\/(low|medium|high|xhigh|max)(?=\s|$|[!?.,;:])/gi;s(Jt,"detectEffortLevel")});import{createReadStream as Cy,existsSync as Ny}from"node:fs";import{createInterface as Py}from"node:readline";function zt(e){return typeof e=="number"&&Number.isFinite(e)?e:0}function Hy(e,t,n,r,i){let o=`${n?"s":"m"}:${t}`,a=e.get(o);if(!a){e.set(o,{model:t,turns:1,output_tokens:r,first_ts:i,last_ts:i,sidechain:n});return}a.turns++,a.output_tokens+=r,i>0&&((a.first_ts===0||i<a.first_ts)&&(a.first_ts=i),i>a.last_ts&&(a.last_ts=i))}function vo(e){return typeof e=="string"?[{type:"text",text:e}]:Array.isArray(e)?e.filter(t=>t!==null&&typeof t=="object"):[]}function Uy(e){let t=[];for(let n of e)n.type==="text"&&typeof n.text=="string"&&t.push(n.text);return t.join(`
124
- `)}function Gy(e,t){let n=s(l=>new Set(l.toLowerCase().replace(/[^\p{L}\p{N}\s]/gu," ").split(/\s+/).filter(u=>u.length>2)),"toks"),r=n(e),i=n(t);if(r.size<3||i.size<3)return!1;let[o,a]=r.size<=i.size?[r,i]:[i,r],c=0;for(let l of o)a.has(l)&&c++;return c/o.size>=.8}function Ky(e,t,n){return Dy.test(e)?{polarity:-1,magnitude:pt.rework,kind:"rework"}:n&&Oy.test(e)?{polarity:-1,magnitude:pt.correction,kind:"correction"}:My.test(e)?{polarity:1,magnitude:pt.acceptance,kind:"acceptance"}:t!==null&&Gy(t,e)?{polarity:-1,magnitude:pt.repeat,kind:"repeat"}:{polarity:0,magnitude:0,kind:"neutral"}}function By(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:sd}}async function So(e){let t=By("");if(!e||!Ny(e))return t;let n=[],r=new Map,i=null,o=!1,a=null;await new Promise(p=>{let f=Cy(e,{encoding:"utf-8"}),h=Py({input:f}),m=s(y=>{let g=y.trim();if(!g)return;let b;try{b=JSON.parse(g)}catch{return}if(t.lines_seen++,!t.session_id){let T=b.sessionId??b.session_id;typeof T=="string"&&T&&(t.session_id=T)}b.type==="ai-title"&&typeof b.aiTitle=="string"&&b.aiTitle&&(t.ai_title=b.aiTitle),typeof b.slug=="string"&&b.slug&&(t.session_slug=b.slug);let _=b.message?.role,S=b.isSidechain===!0,v=b.message?.usage;if(_==="assistant"&&v&&(t.input_tokens+=zt(v.input_tokens),t.output_tokens+=zt(v.output_tokens),t.cache_read_tokens+=zt(v.cache_read_input_tokens),t.cache_creation_tokens+=zt(v.cache_creation_input_tokens)),_==="assistant"&&typeof b.message?.model=="string"&&b.message.model&&b.message.model!==$y){let T=b.timestamp?Date.parse(b.timestamp):Number.NaN;Hy(r,b.message.model,S,zt(v?.output_tokens),Number.isFinite(T)?T:0)}if(_==="assistant")for(let T of vo(b.message?.content)){if(T.type!=="tool_use"||typeof T.name!="string"||!T.name.startsWith(od))continue;let X=T.name.slice(od.length);X&&(t.maind_tool_calls[X]=(t.maind_tool_calls[X]??0)+1)}if(S)return;if(_==="assistant"){t.assistant_turns++;let T=vo(b.message?.content),X=!1;for(let ts of T)ts.type==="tool_use"&&(t.tool_calls++,X=!0,ts.name==="AskUserQuestion"&&t.agent_questions++);o=X;return}if(_!=="user")return;let E=vo(b.message?.content),R=Uy(E);if(R.includes(Fy)){t.interrupts++,n.push({polarity:-1,magnitude:pt.interrupt,kind:"interrupt"});return}if(E.some(T=>T.type==="tool_result"&&T.is_error===!0&&typeof T.content=="string"&&T.content.includes(Ly))){t.tool_denials++,n.push({polarity:-1,magnitude:pt.denial,kind:"denial"});return}if(E.some(T=>T.type==="tool_result")||!R.trim())return;t.user_turns++,t.user_chars+=R.length;let A=Jt(R);A&&(i=A);let C=Ky(R,a,o);a=R,C.kind==="correction"?t.corrections++:C.kind==="rework"?t.reworks++:C.kind==="repeat"?t.repeated_instructions++:C.kind==="acceptance"&&t.acceptances++,C.polarity!==0&&n.push(C),o=!1},"processLine");h.on("line",y=>{try{m(y)}catch{}}),h.on("close",()=>p()),h.on("error",()=>p()),f.on("error",()=>p())}),t.effort_at_end=i,t.model_mix=[...r.values()].sort((p,f)=>p.first_ts-f.first_ts||p.model.localeCompare(f.model)),t.user_token_estimate=Math.round(t.user_chars/4);let c=t.user_token_estimate+t.output_tokens;t.human_share=c>0?Number((t.user_token_estimate/c).toFixed(4)):0;let l=0,u=0,d=[];return n.forEach((p,f)=>{p.polarity>0?t.reactions_pos++:p.polarity<0&&t.reactions_neg++,l=l*jy+p.polarity*p.magnitude;let h=Number(l.toFixed(3));d.push({t:f,value:h,...p.kind!=="neutral"?{kind:p.kind}:{}}),u+=h,f>0&&n[f-1].polarity<0&&p.polarity>0&&t.recovery_events++}),t.net_sentiment=t.reactions_pos-t.reactions_neg,t.momentum_series=d,t.momentum_final=d.length?d[d.length-1].value:0,t.momentum_auc=Number(u.toFixed(3)),t.ended_positive=t.momentum_final>0,Object.keys(t.maind_tool_calls).length>0&&(t.maind_connected="connected"),t}var od,sd,Dy,Oy,My,Fy,Ly,$y,jy,pt,ad=w(()=>{"use strict";pr();od="mcp__maind__",sd="2026-08-16",Dy=/(\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,Oy=/(\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,My=/(\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,Fy="[Request interrupted by user",Ly="The user doesn't want to proceed with this tool use",$y="<synthetic>",jy=.7,pt={denial:1.5,interrupt:1.25,rework:1.5,correction:1,acceptance:1,repeat:.75};s(zt,"num");s(Hy,"bumpModel");s(vo,"asBlocks");s(Uy,"textOf");s(Gy,"isRepeat");s(Ky,"classifyGenuine");s(By,"emptyAnalysis");s(So,"analyzeSession")});function Eo(e,t,n,r="unknown"){let i={session_analytics:{...e,ingest_source:r}};return t&&t.started_at&&(i.session_span=n?{...t,...n}:t),i}var cd=w(()=>{"use strict";s(Eo,"ingestBody")});import{createReadStream as Wy,existsSync as Vy}from"node:fs";import{createInterface as qy}from"node:readline";function ld(e){return typeof e=="string"?[{type:"text",text:e}]:Array.isArray(e)?e.filter(t=>typeof t=="object"&&t!==null):[]}function Yy(e){return e.filter(t=>t.type==="text"&&typeof t.text=="string").map(t=>t.text).join(`
124
+ `)}function Gy(e,t){let n=s(l=>new Set(l.toLowerCase().replace(/[^\p{L}\p{N}\s]/gu," ").split(/\s+/).filter(u=>u.length>2)),"toks"),r=n(e),i=n(t);if(r.size<3||i.size<3)return!1;let[o,a]=r.size<=i.size?[r,i]:[i,r],c=0;for(let l of o)a.has(l)&&c++;return c/o.size>=.8}function Ky(e,t,n){return Dy.test(e)?{polarity:-1,magnitude:pt.rework,kind:"rework"}:n&&Oy.test(e)?{polarity:-1,magnitude:pt.correction,kind:"correction"}:My.test(e)?{polarity:1,magnitude:pt.acceptance,kind:"acceptance"}:t!==null&&Gy(t,e)?{polarity:-1,magnitude:pt.repeat,kind:"repeat"}:{polarity:0,magnitude:0,kind:"neutral"}}function By(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:sd}}async function So(e){let t=By("");if(!e||!Ny(e))return t;let n=[],r=new Map,i=null,o=!1,a=null;await new Promise(p=>{let f=Cy(e,{encoding:"utf-8"}),h=Py({input:f}),m=s(y=>{let g=y.trim();if(!g)return;let b;try{b=JSON.parse(g)}catch{return}if(t.lines_seen++,!t.session_id){let T=b.sessionId??b.session_id;typeof T=="string"&&T&&(t.session_id=T)}b.type==="ai-title"&&typeof b.aiTitle=="string"&&b.aiTitle&&(t.ai_title=b.aiTitle),typeof b.slug=="string"&&b.slug&&(t.session_slug=b.slug);let _=b.message?.role,S=b.isSidechain===!0,v=b.message?.usage;if(_==="assistant"&&v&&(t.input_tokens+=zt(v.input_tokens),t.output_tokens+=zt(v.output_tokens),t.cache_read_tokens+=zt(v.cache_read_input_tokens),t.cache_creation_tokens+=zt(v.cache_creation_input_tokens)),_==="assistant"&&typeof b.message?.model=="string"&&b.message.model&&b.message.model!==$y){let T=b.timestamp?Date.parse(b.timestamp):Number.NaN;Hy(r,b.message.model,S,zt(v?.output_tokens),Number.isFinite(T)?T:0)}if(_==="assistant")for(let T of vo(b.message?.content)){if(T.type!=="tool_use"||typeof T.name!="string"||!T.name.startsWith(od))continue;let X=T.name.slice(od.length);X&&(t.maind_tool_calls[X]=(t.maind_tool_calls[X]??0)+1)}if(S)return;if(_==="assistant"){t.assistant_turns++;let T=vo(b.message?.content),X=!1;for(let ts of T)ts.type==="tool_use"&&(t.tool_calls++,X=!0,ts.name==="AskUserQuestion"&&t.agent_questions++);o=X;return}if(_!=="user")return;let E=vo(b.message?.content),R=Uy(E);if(R.includes(Fy)){t.interrupts++,n.push({polarity:-1,magnitude:pt.interrupt,kind:"interrupt"});return}if(E.some(T=>T.type==="tool_result"&&T.is_error===!0&&typeof T.content=="string"&&T.content.includes(Ly))){t.tool_denials++,n.push({polarity:-1,magnitude:pt.denial,kind:"denial"});return}if(E.some(T=>T.type==="tool_result")||!R.trim())return;t.user_turns++,t.user_chars+=R.length;let A=Jt(R);A&&(i=A);let C=Ky(R,a,o);a=R,C.kind==="correction"?t.corrections++:C.kind==="rework"?t.reworks++:C.kind==="repeat"?t.repeated_instructions++:C.kind==="acceptance"&&t.acceptances++,C.polarity!==0&&n.push(C),o=!1},"processLine");h.on("line",y=>{try{m(y)}catch{}}),h.on("close",()=>p()),h.on("error",()=>p()),f.on("error",()=>p())}),t.effort_at_end=i,t.model_mix=[...r.values()].sort((p,f)=>p.first_ts-f.first_ts||p.model.localeCompare(f.model)),t.user_token_estimate=Math.round(t.user_chars/4);let c=t.user_token_estimate+t.output_tokens;t.human_share=c>0?Number((t.user_token_estimate/c).toFixed(4)):0;let l=0,u=0,d=[];return n.forEach((p,f)=>{p.polarity>0?t.reactions_pos++:p.polarity<0&&t.reactions_neg++,l=l*jy+p.polarity*p.magnitude;let h=Number(l.toFixed(3));d.push({t:f,value:h,...p.kind!=="neutral"?{kind:p.kind}:{}}),u+=h,f>0&&n[f-1].polarity<0&&p.polarity>0&&t.recovery_events++}),t.net_sentiment=t.reactions_pos-t.reactions_neg,t.momentum_series=d,t.momentum_final=d.length?d[d.length-1].value:0,t.momentum_auc=Number(u.toFixed(3)),t.ended_positive=t.momentum_final>0,Object.keys(t.maind_tool_calls).length>0&&(t.maind_connected="connected"),t}var od,sd,Dy,Oy,My,Fy,Ly,$y,jy,pt,ad=w(()=>{"use strict";pr();od="mcp__maind__",sd="2026-08-16",Dy=/(\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,Oy=/(\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,My=/(\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,Fy="[Request interrupted by user",Ly="The user doesn't want to proceed with this tool use",$y="<synthetic>",jy=.7,pt={denial:1.5,interrupt:1.25,rework:1.5,correction:1,acceptance:1,repeat:.75};s(zt,"num");s(Hy,"bumpModel");s(vo,"asBlocks");s(Uy,"textOf");s(Gy,"isRepeat");s(Ky,"classifyGenuine");s(By,"emptyAnalysis");s(So,"analyzeSession")});function Eo(e,t,n,r="unknown"){let i={session_analytics:{...e,ingest_source:r,...n?.client_session_id?{client_session_id:n.client_session_id}:{}}};return t&&t.started_at&&(i.session_span=n?{...t,...n}:t),i}var cd=w(()=>{"use strict";s(Eo,"ingestBody")});import{createReadStream as Wy,existsSync as Vy}from"node:fs";import{createInterface as qy}from"node:readline";function ld(e){return typeof e=="string"?[{type:"text",text:e}]:Array.isArray(e)?e.filter(t=>typeof t=="object"&&t!==null):[]}function Yy(e){return e.filter(t=>t.type==="text"&&typeof t.text=="string").map(t=>t.text).join(`
125
125
  `)}function pd(e){return{session_id:e,started_at:null,ended_at:null,wall_seconds:0,agent_seconds:0,wait_seconds:0,pauses:[],pause_count:0,pause_seconds:0,pauses_truncated:!1,turn_count:0,event_count:0}}function Xy(e){let t=e.message?.role;if(t==="assistant")return{holder:ld(e.message?.content).some(c=>c.type==="tool_use")?"agent":"human",genuine:!1};if(t!=="user")return null;let n=ld(e.message?.content),r=Yy(n);return r.includes(Jy)?{holder:"human",genuine:!1}:n.some(o=>o.type==="tool_result"&&o.is_error===!0&&typeof o.content=="string"&&o.content.includes(zy))?{holder:"agent",genuine:!1}:n.some(o=>o.type==="tool_result")?{holder:"agent",genuine:!1}:r.trim()?{holder:"agent",genuine:!0}:null}async function xo(e){let t=pd("");if(!e||!Vy(e))return t;let n=null,r=0,i=0,o=null,a="human",c=[];return await new Promise(l=>{let u=Wy(e,{encoding:"utf-8"}),d=qy({input:u}),p=s(f=>{let h=f.trim();if(!h)return;let m;try{m=JSON.parse(h)}catch{return}if(!t.session_id){let b=m.sessionId??m.session_id;typeof b=="string"&&b&&(t.session_id=b)}if(m.isSidechain===!0)return;let y=typeof m.timestamp=="string"?Date.parse(m.timestamp):NaN;if(!Number.isFinite(y)||o!==null&&y<o)return;let g=Xy(m);if(g!==null){if(t.event_count++,g.genuine&&t.turn_count++,n===null&&(n=y),r=y,o!==null){let b=y-o;a==="agent"?i+=b:b>=dd*1e3&&(t.pause_count++,t.pause_seconds+=Math.round(b/1e3),c.length<ud&&c.push({offset_seconds:Math.round((o-n)/1e3),duration_seconds:Math.round(b/1e3)}))}o=y,a=g.holder}},"processLine");d.on("line",f=>{try{p(f)}catch{}}),d.on("close",()=>l()),d.on("error",()=>l()),u.on("error",()=>l())}),n===null||(t.started_at=new Date(n).toISOString(),t.ended_at=new Date(r).toISOString(),t.wall_seconds=Math.round((r-n)/1e3),t.agent_seconds=Math.round(i/1e3),t.wait_seconds=t.wall_seconds-t.agent_seconds,t.pauses=c,t.pauses_truncated=t.pause_count>c.length),t}var Jy,zy,dd,ud,fd=w(()=>{"use strict";Jy="[Request interrupted by user",zy="The user doesn't want to proceed with this tool use",dd=60,ud=200;s(ld,"asBlocks");s(Yy,"textOf");s(pd,"emptySpan");s(Xy,"classify");s(xo,"analyzeSpan")});import{createReadStream as Qy,existsSync as Zy}from"node:fs";import{createInterface as eb}from"node:readline";function nb(e){return e==="ultracode"?"ultracode":e==="plan"?"planMode":"autoMode"}function fr(e){return typeof e=="number"&&Number.isFinite(e)?e:0}function rb(e){if(typeof e=="string")return e;if(Array.isArray(e)){let t=[];for(let n of e)if(n&&typeof n=="object"&&"text"in n){let r=n.text;typeof r=="string"&&t.push(r)}return t.join(`
126
126
  `)}return""}async function Ro(e,t={}){if(!e||!Zy(e))return{events:[],bytesRead:t.start??0,effortAtEnd:t.initialEffort??null,modesAtEnd:t.initialModes?{...t.initialModes}:wo()};let n=[],r=t.initialEffort??null,i=t.initialModes?{...t.initialModes}:wo(),o=t.start??0;return await new Promise(a=>{let c=Qy(e,{encoding:"utf-8",start:t.start??0}),l=eb({input:c});l.on("line",d=>{o+=Buffer.byteLength(d,"utf-8")+1;let p=d.trim();if(!p)return;let f;try{f=JSON.parse(p)}catch{return}let h=f.sessionId??f.session_id??"",m=f.timestamp?Date.parse(f.timestamp):Date.now(),y=f.message?.role;if(f.type==="ai-title"&&typeof f.aiTitle=="string"){n.push({kind:"title",session_id:h,ts:m,title:f.aiTitle});return}if(f.type==="attachment"&&f.attachment?.type){let g=tb[f.attachment.type];g&&(i[nb(g.mode)]=g.active,n.push({kind:"mode",session_id:h,ts:m,mode:g.mode,active:g.active}));return}if(y==="user"){let g=rb(f.message?.content),b=Jt(g);b&&(r=b);let _={session_id:h,ts:m,text:g,effort_directive:b};n.push({kind:"user",..._});return}if(y==="assistant"){let g=f.message?.usage,b={session_id:h,ts:m,model:f.message?.model??null,input_tokens:fr(g?.input_tokens),output_tokens:fr(g?.output_tokens),cache_read_input_tokens:fr(g?.cache_read_input_tokens),cache_creation_input_tokens:fr(g?.cache_creation_input_tokens),effort:r,isSidechain:f.isSidechain===!0,...i.ultracode?{ultracode:!0}:{},...i.planMode?{planMode:!0}:{},...i.autoMode?{autoMode:!0}:{}};n.push({kind:"assistant",...b})}});let u=s(()=>({events:n,bytesRead:o,effortAtEnd:r,modesAtEnd:{...i}}),"finalResult");l.on("close",()=>a(u())),l.on("error",()=>a(u())),c.on("error",()=>a(u()))})}var tb,md=w(()=>{"use strict";pr();_o();tb={ultra_effort_enter:{mode:"ultracode",active:!0},ultra_effort_exit:{mode:"ultracode",active:!1},plan_mode:{mode:"plan",active:!0},plan_mode_reentry:{mode:"plan",active:!0},plan_mode_exit:{mode:"plan",active:!1},auto_mode:{mode:"auto",active:!0},auto_mode_exit:{mode:"auto",active:!1}};s(nb,"modeFlagKey");s(fr,"num");s(rb,"extractUserText");s(Ro,"streamTranscript")});var hd=w(()=>{"use strict"});import{homedir as ib}from"node:os";import{join as ob}from"node:path";function Ao(e){return e.replace(/[/.]/g,"-")}var sb,To,gd=w(()=>{"use strict";sb=ib(),To=ob(sb,".claude","projects");s(Ao,"projectPathFromCwd")});var mr=w(()=>{"use strict";_o();rd();id();ad();cd();fd();md();pr();hd();gd()});function hb(e){return{"content-type":"application/json",authorization:`Bearer ${e}`,"x-maind-device-id":j()}}async function wd(e,t,n){if(n.length===0)return{ok:!0,inserted:0};try{let r=await fetch(e,{method:"POST",headers:hb(t),body:JSON.stringify({metrics:n})});if(!r.ok){let o=await r.text().catch(()=>"");return{ok:!1,inserted:0,status:r.status,error:o.slice(0,500)}}return{ok:!0,inserted:(await r.json().catch(()=>null))?.inserted_metrics??n.length,status:r.status}}catch(r){return{ok:!1,inserted:0,error:r instanceof Error?r.message:String(r)}}}var gr,Io=w(()=>{"use strict";K();gr=process.env.MAIND_ENDPOINT??"https://vsddmiosisvfrairepxv.supabase.co/functions/v1/mcp-client-metrics-ingest";s(hb,"ingestHeaders");s(wd,"postMetrics")});function _d(e,t){return e===t||e===""||t===""?!0:e.startsWith(t+"/")||t.startsWith(e+"/")}function vd(e,t){let n=[];for(let r of e.peers){if(typeof r!="object"||r===null)continue;let i=r,o=Array.isArray(i.active_claims)?i.active_claims:[],a=[];for(let c of o){if(typeof c!="object"||c===null)continue;let l=c;if(typeof l.path_prefix!="string")continue;let d=(typeof l.expires_in_seconds=="number"?l.expires_in_seconds:0)-t;d<=0||a.push({path_prefix:l.path_prefix,note:typeof l.note=="string"?l.note:null,remaining_seconds:Math.round(d)})}n.push({session_id_short:typeof i.session_id_short=="string"?i.session_id_short:"?",is_own_user:i.is_own_user===!0,branch:typeof i.branch=="string"?i.branch:null,focus:typeof i.focus=="string"?i.focus:null,machine_label:typeof i.machine_label=="string"?i.machine_label:null,last_seen_seconds:typeof i.last_seen_seconds=="number"?i.last_seen_seconds:0,claims:a,working_paths:Array.isArray(i.working_paths)?i.working_paths.filter(c=>typeof c=="string"):[]})}return n}function ft(e,t){if(t.hostPids.length>0){let r=e.find(i=>t.hostPids.includes(i.own_ppid));if(r)return{snap:r,via:"ppid"}}let n=e.find(r=>r.cwd===t.cwd);return n?{snap:n,via:"cwd"}:null}function Yt(e){return e<90?`${Math.max(1,Math.round(e))}s`:`${Math.round(e/60)}m`}function Sd(e,t,n){let r=n.maxAgeMs??kd,i=n.nowMs-Date.parse(e.written_at);if(!Number.isFinite(i)||i<0||i>r)return null;let o=i/1e3,a=vd(e,o),c=[];for(let l of a)if(!(n.via==="cwd"&&(n.currentBranch===null||l.branch===null||l.branch===n.currentBranch))){for(let u of l.claims)_d(t,u.path_prefix)&&c.push(`'${u.path_prefix}' is CLAIMED by peer session ${l.session_id_short}${l.branch?` (branch ${l.branch}`:" ("}${l.machine_label?`, ${l.machine_label}`:""}${l.focus?`, focus: "${l.focus}"`:""}, last seen ${Yt(l.last_seen_seconds+o)} ago)${u.note?` \u2014 note: "${u.note}"`:""}, claim expires in ${Yt(u.remaining_seconds)}`);if(n.via==="ppid"&&l.is_own_user){for(let u of l.working_paths)if(_d(t,u)){c.push(`'${u}' has recent changes by your own peer session ${l.session_id_short}${l.branch?` (branch ${l.branch})`:""}, last seen ${Yt(l.last_seen_seconds+o)} ago`);break}}}return c.length===0?null:`[maind coordination] Editing '${t}' overlaps parallel work (view as of ${Yt(o)} ago, advisory \u2014 never a lock):
127
127
  `+c.map(l=>` \u2022 ${l}`).join(`
package/build/meta.json CHANGED
@@ -1 +1 @@
1
- {"inputs":{"src/client-detect.ts":{"bytes":3979,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/frames.ts":{"bytes":5479,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/sha-proof.ts":{"bytes":11694,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/conventions-cache.ts":{"bytes":6619,"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"},"src/forward.ts":{"bytes":35261,"imports":[{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:timers/promises","kind":"import-statement","external":true},{"path":"src/client-detect.ts","kind":"import-statement","original":"./client-detect.js"},{"path":"src/gateway/frames.ts","kind":"import-statement","original":"./gateway/frames.js"},{"path":"src/sha-proof.ts","kind":"import-statement","original":"./sha-proof.js"},{"path":"src/conventions-cache.ts","kind":"import-statement","original":"./conventions-cache.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/device-id.ts":{"bytes":6040,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/auth.ts":{"bytes":8167,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"src/device-id.ts","kind":"import-statement","original":"./device-id.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/version.ts":{"bytes":306,"imports":[],"format":"esm"},"src/project-key.ts":{"bytes":2719,"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"},"src/install/flags.ts":{"bytes":7486,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/report.ts":{"bytes":4292,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/project-root.ts":{"bytes":4032,"imports":[{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/bridge-entry.ts":{"bytes":6842,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/client-targets.ts":{"bytes":6752,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"src/install/bridge-entry.ts","kind":"import-statement","original":"./bridge-entry.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/atomic-write.ts":{"bytes":4154,"imports":[{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/json-merge.ts":{"bytes":6145,"imports":[{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"./atomic-write.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/toml-merge.ts":{"bytes":5260,"imports":[{"path":"smol-toml","kind":"import-statement","external":true},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"./atomic-write.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/integration-snippets/build/index.js":{"bytes":35430,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/preamble.ts":{"bytes":4556,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/integration-snippets/build/index.js","kind":"import-statement","original":"@maind-dev/integration-snippets"},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"./atomic-write.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/hook-wiring.ts":{"bytes":21150,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/install/bridge-entry.ts","kind":"import-statement","original":"./bridge-entry.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/hook-merge.ts":{"bytes":15585,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"./atomic-write.js"},{"path":"src/install/bridge-entry.ts","kind":"import-statement","original":"./bridge-entry.js"},{"path":"src/install/hook-wiring.ts","kind":"import-statement","original":"./hook-wiring.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/bridge-config.ts":{"bytes":4817,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/device-id.ts","kind":"import-statement","original":"./device-id.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/working-paths-consent.ts":{"bytes":5484,"imports":[{"path":"node:readline","kind":"import-statement","external":true},{"path":"src/bridge-config.ts","kind":"import-statement","original":"../bridge-config.js"},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"./atomic-write.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/one-click-exchange.ts":{"bytes":2872,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/browser-pair.ts":{"bytes":7133,"imports":[{"path":"src/auth.ts","kind":"import-statement","original":"../auth.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/install/one-click-exchange.ts","kind":"import-statement","original":"./one-click-exchange.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/telemetry.ts":{"bytes":3027,"imports":[{"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/parse/keys.js":{"bytes":448,"imports":[{"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/parse/lang/shared.js":{"bytes":2278,"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":5949,"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":3231,"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/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/resolve.js":{"bytes":3928,"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":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/incremental/discover.js":{"bytes":10201,"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":"<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":49344,"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":20438,"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/detectors.js":{"bytes":8760,"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/table-acl-lint.js":{"bytes":23835,"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":14950,"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/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":1958,"imports":[],"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":3047,"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":21774,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"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/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/store/sqlite-driver.js":{"bytes":5209,"imports":[{"path":"node:module","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/store/node-sqlite.js":{"bytes":12527,"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/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":10021,"imports":[{"path":"../../packages/code-index/build/store/schema.js","kind":"import-statement","original":"../store/schema.js"},{"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":2809,"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/store/node-sqlite.js","kind":"import-statement","original":"./store/node-sqlite.js"},{"path":"../../packages/code-index/build/sync/client.js","kind":"import-statement","original":"./sync/client.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"},"src/local-tools/engine.ts":{"bytes":7476,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:module","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":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/index.ts":{"bytes":9946,"imports":[{"path":"node:os","kind":"import-statement","external":true},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"},{"path":"src/install/flags.ts","kind":"import-statement","original":"./flags.js"},{"path":"src/install/report.ts","kind":"import-statement","original":"./report.js"},{"path":"src/install/project-root.ts","kind":"import-statement","original":"./project-root.js"},{"path":"src/install/client-targets.ts","kind":"import-statement","original":"./client-targets.js"},{"path":"src/install/bridge-entry.ts","kind":"import-statement","original":"./bridge-entry.js"},{"path":"src/install/json-merge.ts","kind":"import-statement","original":"./json-merge.js"},{"path":"src/install/toml-merge.ts","kind":"import-statement","original":"./toml-merge.js"},{"path":"src/install/preamble.ts","kind":"import-statement","original":"./preamble.js"},{"path":"src/install/hook-merge.ts","kind":"import-statement","original":"./hook-merge.js"},{"path":"src/install/working-paths-consent.ts","kind":"import-statement","original":"./working-paths-consent.js"},{"path":"src/install/browser-pair.ts","kind":"import-statement","original":"./browser-pair.js"},{"path":"src/install/telemetry.ts","kind":"import-statement","original":"./telemetry.js"},{"path":"src/local-tools/engine.ts","kind":"import-statement","original":"../local-tools/engine.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/local-tools/token-estimate.ts":{"bytes":898,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/local-tools/savings.ts":{"bytes":3781,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/local-tools/token-estimate.ts","kind":"import-statement","original":"./token-estimate.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/model/types.js":{"bytes":471,"imports":[],"format":"esm"},"../../packages/code-index/build/repo-health/migration-ledger-drift.js":{"bytes":21937,"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/index.js":{"bytes":5611,"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/repo-health/divergence.js","kind":"import-statement","original":"./repo-health/divergence.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"}],"format":"esm"},"src/local-tools/tools.ts":{"bytes":69533,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"src/local-tools/engine.ts","kind":"import-statement","original":"./engine.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/local-tools/router.ts":{"bytes":5960,"imports":[{"path":"src/local-tools/engine.ts","kind":"import-statement","original":"./engine.js"},{"path":"src/local-tools/savings.ts","kind":"import-statement","original":"./savings.js"},{"path":"src/local-tools/tools.ts","kind":"import-statement","original":"./tools.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/functions-origin.ts":{"bytes":714,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/metrics-post.ts":{"bytes":2619,"imports":[{"path":"src/functions-origin.ts","kind":"import-statement","original":"./functions-origin.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/presence.ts":{"bytes":27152,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"src/bridge-config.ts","kind":"import-statement","original":"./bridge-config.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/presence-snapshot.ts":{"bytes":7984,"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/session-identity.ts":{"bytes":17877,"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/device-id.ts","kind":"import-statement","original":"./device-id.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":2017,"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/session-analysis.js":{"bytes":18118,"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":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/ingest.js":{"bytes":3117,"imports":[{"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":7254,"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":875,"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/ingest.js","kind":"import-statement","original":"./ingest.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/session-meta.ts":{"bytes":4955,"imports":[{"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/working-paths.ts":{"bytes":3016,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/api.ts":{"bytes":2311,"imports":[{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/edit-guard.ts":{"bytes":10563,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/hook-input.ts":{"bytes":3330,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/payloads.ts":{"bytes":1430,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/realpath.ts":{"bytes":1436,"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/hooks/state.ts":{"bytes":7165,"imports":[{"path":"node:fs/promises","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/hooks/repo-health.ts":{"bytes":11947,"imports":[{"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":"src/conventions-cache.ts","kind":"import-statement","original":"../conventions-cache.js"},{"path":"src/hooks/payloads.ts","kind":"import-statement","original":"./payloads.js"},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"./hook-input.js"},{"path":"src/hooks/realpath.ts","kind":"import-statement","original":"./realpath.js"},{"path":"src/hooks/state.ts","kind":"import-statement","original":"./state.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/write-health.ts":{"bytes":11906,"imports":[{"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":"src/conventions-cache.ts","kind":"import-statement","original":"../conventions-cache.js"},{"path":"src/hooks/payloads.ts","kind":"import-statement","original":"./payloads.js"},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"./hook-input.js"},{"path":"src/hooks/repo-health.ts","kind":"import-statement","original":"./repo-health.js"},{"path":"src/hooks/realpath.ts","kind":"import-statement","original":"./realpath.js"},{"path":"src/hooks/state.ts","kind":"import-statement","original":"./state.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/index.ts":{"bytes":39499,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","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":"../../packages/claude-code-telemetry/dist/index.js","kind":"import-statement","original":"@maind/claude-code-telemetry"},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"src/conventions-cache.ts","kind":"import-statement","original":"../conventions-cache.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/install/hook-wiring.ts","kind":"import-statement","original":"../install/hook-wiring.js"},{"path":"src/presence-snapshot.ts","kind":"import-statement","original":"../presence-snapshot.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/hooks/api.ts","kind":"import-statement","original":"./api.js"},{"path":"src/hooks/edit-guard.ts","kind":"import-statement","original":"./edit-guard.js"},{"path":"src/session-identity.ts","kind":"import-statement","original":"../session-identity.js"},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"./hook-input.js"},{"path":"src/hooks/payloads.ts","kind":"import-statement","original":"./payloads.js"},{"path":"src/hooks/realpath.ts","kind":"import-statement","original":"./realpath.js"},{"path":"src/hooks/state.ts","kind":"import-statement","original":"./state.js"},{"path":"src/hooks/repo-health.ts","kind":"import-statement","original":"./repo-health.js"},{"path":"src/hooks/write-health.ts","kind":"import-statement","original":"./write-health.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/session-end/connection.ts":{"bytes":3229,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/session-end/index.ts":{"bytes":7635,"imports":[{"path":"../../packages/claude-code-telemetry/dist/index.js","kind":"import-statement","original":"@maind/claude-code-telemetry"},{"path":"src/bridge-config.ts","kind":"import-statement","original":"../bridge-config.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/hooks/api.ts","kind":"import-statement","original":"../hooks/api.js"},{"path":"src/hooks/edit-guard.ts","kind":"import-statement","original":"../hooks/edit-guard.js"},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/hooks/index.ts","kind":"import-statement","original":"../hooks/index.js"},{"path":"src/presence.ts","kind":"import-statement","original":"../presence.js"},{"path":"src/presence-snapshot.ts","kind":"import-statement","original":"../presence-snapshot.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/session-identity.ts","kind":"import-statement","original":"../session-identity.js"},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"},{"path":"src/session-end/connection.ts","kind":"import-statement","original":"./connection.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/config.ts":{"bytes":2572,"imports":[{"path":"src/bridge-config.ts","kind":"import-statement","original":"../bridge-config.js"},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"../install/atomic-write.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/install.ts":{"bytes":3657,"imports":[{"path":"src/install/hook-wiring.ts","kind":"import-statement","original":"../install/hook-wiring.js"},{"path":"src/install/hook-merge.ts","kind":"import-statement","original":"../install/hook-merge.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/session-file.ts":{"bytes":3577,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/hooks/state.ts","kind":"import-statement","original":"../hooks/state.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/log.ts":{"bytes":3246,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/cli.ts":{"bytes":5916,"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":"src/install/hook-wiring.ts","kind":"import-statement","original":"../install/hook-wiring.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/install.ts","kind":"import-statement","original":"./install.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/mcp-client.ts":{"bytes":6343,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/inject.ts":{"bytes":8057,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"},{"path":"src/guard/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/gate.ts":{"bytes":6853,"imports":[{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/hooks/payloads.ts","kind":"import-statement","original":"../hooks/payloads.js"},{"path":"src/hooks/state.ts","kind":"import-statement","original":"../hooks/state.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/stop.ts":{"bytes":3134,"imports":[{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/hooks/state.ts","kind":"import-statement","original":"../hooks/state.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/attest.ts":{"bytes":7656,"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/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/guard/mcp-client.ts","kind":"import-statement","original":"../guard/mcp-client.js"},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/config.ts":{"bytes":4141,"imports":[{"path":"src/bridge-config.ts","kind":"import-statement","original":"../bridge-config.js"},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"../install/atomic-write.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/policy.ts":{"bytes":5948,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/policy-cache.ts":{"bytes":3361,"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/gateway/policy-fetch.ts":{"bytes":2357,"imports":[{"path":"src/conventions-cache.ts","kind":"import-statement","original":"../conventions-cache.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/guard/mcp-client.ts","kind":"import-statement","original":"../guard/mcp-client.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"},{"path":"src/gateway/policy.ts","kind":"import-statement","original":"./policy.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/wrap.ts":{"bytes":5823,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/install.ts":{"bytes":6383,"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":"node:readline","kind":"import-statement","external":true},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"../install/atomic-write.js"},{"path":"src/install/bridge-entry.ts","kind":"import-statement","original":"../install/bridge-entry.js"},{"path":"src/gateway/wrap.ts","kind":"import-statement","original":"./wrap.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/policy-cli.ts":{"bytes":5422,"imports":[{"path":"src/gateway/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/gateway/policy-cache.ts","kind":"import-statement","original":"./policy-cache.js"},{"path":"src/gateway/policy-fetch.ts","kind":"import-statement","original":"./policy-fetch.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/run.ts":{"bytes":13505,"imports":[{"path":"node:child_process","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:readline","kind":"import-statement","external":true},{"path":"src/gateway/frames.ts","kind":"import-statement","original":"./frames.js"},{"path":"src/gateway/attest.ts","kind":"import-statement","original":"./attest.js"},{"path":"src/gateway/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/gateway/policy.ts","kind":"import-statement","original":"./policy.js"},{"path":"src/sha-proof.ts","kind":"import-statement","original":"../sha-proof.js"},{"path":"src/gateway/policy-cache.ts","kind":"import-statement","original":"./policy-cache.js"},{"path":"src/gateway/policy-fetch.ts","kind":"import-statement","original":"./policy-fetch.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/gateway/install.ts","kind":"dynamic-import","original":"./install.js"},{"path":"src/gateway/policy-cli.ts","kind":"dynamic-import","original":"./policy-cli.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/cross-session.ts":{"bytes":9693,"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/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/hooks/payloads.ts","kind":"import-statement","original":"../hooks/payloads.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/index-refresh.ts":{"bytes":5763,"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/hooks/hook-input.ts","kind":"import-statement","original":"./hook-input.js"},{"path":"src/local-tools/engine.ts","kind":"import-statement","original":"../local-tools/engine.js"},{"path":"../../packages/code-index/build/node.js","kind":"dynamic-import","original":"@maind/code-index/node"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":20210,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"src/forward.ts","kind":"import-statement","original":"./forward.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"./device-id.js"},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"./project-key.js"},{"path":"src/install/index.ts","kind":"import-statement","original":"./install/index.js"},{"path":"src/local-tools/router.ts","kind":"import-statement","original":"./local-tools/router.js"},{"path":"src/local-tools/savings.ts","kind":"import-statement","original":"./local-tools/savings.js"},{"path":"src/metrics-post.ts","kind":"import-statement","original":"./metrics-post.js"},{"path":"src/presence.ts","kind":"import-statement","original":"./presence.js"},{"path":"src/presence-snapshot.ts","kind":"import-statement","original":"./presence-snapshot.js"},{"path":"src/session-identity.ts","kind":"import-statement","original":"./session-identity.js"},{"path":"src/session-meta.ts","kind":"import-statement","original":"./session-meta.js"},{"path":"src/working-paths.ts","kind":"import-statement","original":"./working-paths.js"},{"path":"src/session-end/index.ts","kind":"dynamic-import","original":"./session-end/index.js"},{"path":"src/guard/cli.ts","kind":"dynamic-import","original":"./guard/cli.js"},{"path":"src/guard/inject.ts","kind":"dynamic-import","original":"./guard/inject.js"},{"path":"src/guard/gate.ts","kind":"dynamic-import","original":"./guard/gate.js"},{"path":"src/guard/stop.ts","kind":"dynamic-import","original":"./guard/stop.js"},{"path":"src/gateway/run.ts","kind":"dynamic-import","original":"./gateway/run.js"},{"path":"src/guard/cross-session.ts","kind":"dynamic-import","original":"./guard/cross-session.js"},{"path":"src/guard/cross-session.ts","kind":"dynamic-import","original":"./guard/cross-session.js"},{"path":"src/hooks/index-refresh.ts","kind":"dynamic-import","original":"./hooks/index-refresh.js"},{"path":"src/hooks/index-refresh.ts","kind":"dynamic-import","original":"./hooks/index-refresh.js"},{"path":"src/hooks/index.ts","kind":"dynamic-import","original":"./hooks/index.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"build/index.js":{"imports":[{"path":"node:child_process","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:os","kind":"import-statement","external":true},{"path":"node:crypto","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:path","kind":"import-statement","external":true},{"path":"node:url","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","kind":"import-statement","external":true},{"path":"node:path","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:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:module","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: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: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: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:module","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:module","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"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":"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: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:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:readline","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:readline","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","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs/promises","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: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: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:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","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","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: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: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:readline","kind":"import-statement","external":true},{"path":"node:child_process","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:readline","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: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:crypto","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"smol-toml","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:crypto","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/gateway/frames.ts":{"bytesInOutput":1220},"src/sha-proof.ts":{"bytesInOutput":2831},"src/conventions-cache.ts":{"bytesInOutput":2224},"src/device-id.ts":{"bytesInOutput":1650},"src/version.ts":{"bytesInOutput":42},"src/project-key.ts":{"bytesInOutput":981},"src/install/bridge-entry.ts":{"bytesInOutput":1296},"src/install/atomic-write.ts":{"bytesInOutput":1131},"src/install/hook-wiring.ts":{"bytesInOutput":10992},"src/install/hook-merge.ts":{"bytesInOutput":3897},"src/bridge-config.ts":{"bytesInOutput":1117},"../../packages/project-key/build/index.js":{"bytesInOutput":1070},"../../packages/code-index/build/parse/keys.js":{"bytesInOutput":144},"../../packages/code-index/build/parse/types.js":{"bytesInOutput":416},"../../packages/code-index/build/parse/lang/shared.js":{"bytesInOutput":821},"../../packages/code-index/build/parse/lang/python.js":{"bytesInOutput":2360},"../../packages/code-index/build/parse/lang/typescript.js":{"bytesInOutput":2932},"../../packages/code-index/build/parse/tree-sitter/grammars.js":{"bytesInOutput":403},"../../packages/code-index/build/parse/tree-sitter/parser.js":{"bytesInOutput":1232},"../../packages/code-index/build/embed/recipe.js":{"bytesInOutput":187},"../../packages/code-index/build/embed/types.js":{"bytesInOutput":97},"../../packages/code-index/build/util/vector.js":{"bytesInOutput":229},"../../packages/code-index/build/graph/resolve.js":{"bytesInOutput":1377},"../../packages/code-index/build/incremental/discover.js":{"bytesInOutput":3124},"../../packages/code-index/build/incremental/hunks.js":{"bytesInOutput":2092},"../../packages/code-index/build/incremental/history.js":{"bytesInOutput":1789},"../../packages/code-index/build/repo-health/hooks.js":{"bytesInOutput":1919},"../../packages/code-index/build/repo-health/supabase-migrations.js":{"bytesInOutput":1196},"../../packages/code-index/build/repo-health/divergence.js":{"bytesInOutput":16636},"../../packages/code-index/build/repo-health/number-collisions.js":{"bytesInOutput":6452},"../../packages/code-index/build/repo-health/detectors.js":{"bytesInOutput":1306},"../../packages/code-index/build/repo-health/spec-drift.js":{"bytesInOutput":14388},"../../packages/code-index/build/repo-health/table-acl-lint.js":{"bytesInOutput":7903},"../../packages/code-index/build/repo-health/theme-class-drift.js":{"bytesInOutput":4151},"../../packages/code-index/build/repo-health/detector-adapter.js":{"bytesInOutput":5837},"../../packages/code-index/build/review/risk-rules.js":{"bytesInOutput":746},"../../packages/code-index/build/review/risk-scan.js":{"bytesInOutput":452},"../../packages/code-index/build/store/schema.js":{"bytesInOutput":2075},"../../packages/code-index/build/util/identifiers.js":{"bytesInOutput":763},"../../packages/code-index/build/query/engine.js":{"bytesInOutput":8684},"../../packages/code-index/build/store/sqlite-driver.js":{"bytesInOutput":1908},"../../packages/code-index/build/store/node-sqlite.js":{"bytesInOutput":7298},"../../packages/code-index/build/sync/types.js":{"bytesInOutput":698},"../../packages/code-index/build/sync/client.js":{"bytesInOutput":4263},"../../packages/code-index/build/node.js":{"bytesInOutput":995},"src/local-tools/engine.ts":{"bytesInOutput":2357},"../../packages/code-index/build/model/types.js":{"bytesInOutput":29},"../../packages/code-index/build/repo-health/migration-ledger-drift.js":{"bytesInOutput":10257},"../../packages/code-index/build/index.js":{"bytesInOutput":148},"src/presence.ts":{"bytesInOutput":5867},"src/presence-snapshot.ts":{"bytesInOutput":2487},"src/session-identity.ts":{"bytesInOutput":4974},"../../packages/claude-code-telemetry/dist/types.js":{"bytesInOutput":109},"../../packages/claude-code-telemetry/dist/transcript.js":{"bytesInOutput":768},"../../packages/claude-code-telemetry/dist/decisions.js":{"bytesInOutput":29},"../../packages/claude-code-telemetry/dist/effort.js":{"bytesInOutput":297},"../../packages/claude-code-telemetry/dist/session-analysis.js":{"bytesInOutput":5870},"../../packages/claude-code-telemetry/dist/ingest.js":{"bytesInOutput":187},"../../packages/claude-code-telemetry/dist/session-span.js":{"bytesInOutput":2423},"../../packages/claude-code-telemetry/dist/parse.js":{"bytesInOutput":2485},"../../packages/claude-code-telemetry/dist/windows.js":{"bytesInOutput":29},"../../packages/claude-code-telemetry/dist/projects.js":{"bytesInOutput":215},"../../packages/claude-code-telemetry/dist/index.js":{"bytesInOutput":79},"src/hooks/api.ts":{"bytesInOutput":741},"src/hooks/edit-guard.ts":{"bytesInOutput":3682},"src/hooks/hook-input.ts":{"bytesInOutput":669},"src/hooks/payloads.ts":{"bytesInOutput":459},"src/hooks/realpath.ts":{"bytesInOutput":303},"src/hooks/state.ts":{"bytesInOutput":1212},"src/hooks/repo-health.ts":{"bytesInOutput":2181},"src/hooks/write-health.ts":{"bytesInOutput":3013},"src/hooks/index.ts":{"bytesInOutput":11748},"src/session-end/connection.ts":{"bytesInOutput":200},"src/session-end/index.ts":{"bytesInOutput":1767},"src/guard/config.ts":{"bytesInOutput":482},"src/guard/install.ts":{"bytesInOutput":1562},"src/guard/session-file.ts":{"bytesInOutput":1013},"src/guard/log.ts":{"bytesInOutput":926},"src/guard/cli.ts":{"bytesInOutput":3261},"src/guard/mcp-client.ts":{"bytesInOutput":2341},"src/guard/inject.ts":{"bytesInOutput":2848},"src/guard/gate.ts":{"bytesInOutput":2658},"src/guard/stop.ts":{"bytesInOutput":1158},"src/gateway/attest.ts":{"bytesInOutput":2366},"src/gateway/config.ts":{"bytesInOutput":934},"src/gateway/policy.ts":{"bytesInOutput":1897},"src/gateway/policy-cache.ts":{"bytesInOutput":895},"src/gateway/policy-fetch.ts":{"bytesInOutput":503},"src/gateway/wrap.ts":{"bytesInOutput":1547},"src/gateway/install.ts":{"bytesInOutput":3394},"src/gateway/policy-cli.ts":{"bytesInOutput":3183},"src/gateway/run.ts":{"bytesInOutput":4041},"src/guard/cross-session.ts":{"bytesInOutput":3408},"src/hooks/index-refresh.ts":{"bytesInOutput":1306},"src/index.ts":{"bytesInOutput":8197},"src/forward.ts":{"bytesInOutput":9157},"src/client-detect.ts":{"bytesInOutput":1184},"src/auth.ts":{"bytesInOutput":3799},"src/install/index.ts":{"bytesInOutput":3682},"src/install/flags.ts":{"bytesInOutput":3905},"src/install/report.ts":{"bytesInOutput":1652},"src/install/project-root.ts":{"bytesInOutput":1335},"src/install/client-targets.ts":{"bytesInOutput":2077},"src/install/json-merge.ts":{"bytesInOutput":1995},"src/install/toml-merge.ts":{"bytesInOutput":1973},"src/install/preamble.ts":{"bytesInOutput":1655},"../../packages/integration-snippets/build/index.js":{"bytesInOutput":24490},"src/install/working-paths-consent.ts":{"bytesInOutput":2297},"src/install/browser-pair.ts":{"bytesInOutput":2323},"src/install/one-click-exchange.ts":{"bytesInOutput":758},"src/install/telemetry.ts":{"bytesInOutput":1155},"src/local-tools/router.ts":{"bytesInOutput":1432},"src/local-tools/savings.ts":{"bytesInOutput":1056},"src/local-tools/token-estimate.ts":{"bytesInOutput":71},"src/local-tools/tools.ts":{"bytesInOutput":45580},"src/functions-origin.ts":{"bytesInOutput":197},"src/metrics-post.ts":{"bytesInOutput":803},"src/session-meta.ts":{"bytesInOutput":987},"src/working-paths.ts":{"bytesInOutput":855}},"bytes":360447}}}
1
+ {"inputs":{"src/client-detect.ts":{"bytes":3979,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/frames.ts":{"bytes":5479,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/sha-proof.ts":{"bytes":11694,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/conventions-cache.ts":{"bytes":6619,"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"},"src/forward.ts":{"bytes":35261,"imports":[{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:timers/promises","kind":"import-statement","external":true},{"path":"src/client-detect.ts","kind":"import-statement","original":"./client-detect.js"},{"path":"src/gateway/frames.ts","kind":"import-statement","original":"./gateway/frames.js"},{"path":"src/sha-proof.ts","kind":"import-statement","original":"./sha-proof.js"},{"path":"src/conventions-cache.ts","kind":"import-statement","original":"./conventions-cache.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/device-id.ts":{"bytes":6040,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/auth.ts":{"bytes":8167,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"src/device-id.ts","kind":"import-statement","original":"./device-id.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/version.ts":{"bytes":306,"imports":[],"format":"esm"},"src/project-key.ts":{"bytes":2719,"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"},"src/install/flags.ts":{"bytes":7486,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/report.ts":{"bytes":4292,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/project-root.ts":{"bytes":4032,"imports":[{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/bridge-entry.ts":{"bytes":6842,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/client-targets.ts":{"bytes":6752,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"src/install/bridge-entry.ts","kind":"import-statement","original":"./bridge-entry.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/atomic-write.ts":{"bytes":4154,"imports":[{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/json-merge.ts":{"bytes":6145,"imports":[{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"./atomic-write.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/toml-merge.ts":{"bytes":5260,"imports":[{"path":"smol-toml","kind":"import-statement","external":true},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"./atomic-write.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/integration-snippets/build/index.js":{"bytes":35430,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/preamble.ts":{"bytes":4556,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/integration-snippets/build/index.js","kind":"import-statement","original":"@maind-dev/integration-snippets"},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"./atomic-write.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/hook-wiring.ts":{"bytes":21150,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/install/bridge-entry.ts","kind":"import-statement","original":"./bridge-entry.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/hook-merge.ts":{"bytes":15585,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"./atomic-write.js"},{"path":"src/install/bridge-entry.ts","kind":"import-statement","original":"./bridge-entry.js"},{"path":"src/install/hook-wiring.ts","kind":"import-statement","original":"./hook-wiring.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/bridge-config.ts":{"bytes":4817,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/device-id.ts","kind":"import-statement","original":"./device-id.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/working-paths-consent.ts":{"bytes":5484,"imports":[{"path":"node:readline","kind":"import-statement","external":true},{"path":"src/bridge-config.ts","kind":"import-statement","original":"../bridge-config.js"},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"./atomic-write.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/one-click-exchange.ts":{"bytes":2872,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/browser-pair.ts":{"bytes":7133,"imports":[{"path":"src/auth.ts","kind":"import-statement","original":"../auth.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/install/one-click-exchange.ts","kind":"import-statement","original":"./one-click-exchange.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/telemetry.ts":{"bytes":3027,"imports":[{"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/parse/keys.js":{"bytes":448,"imports":[{"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/parse/lang/shared.js":{"bytes":2278,"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":5949,"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":3231,"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/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/resolve.js":{"bytes":3928,"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":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/incremental/discover.js":{"bytes":10201,"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":"<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":49344,"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":20438,"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/detectors.js":{"bytes":8760,"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/table-acl-lint.js":{"bytes":23835,"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":14950,"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/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":1958,"imports":[],"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":3047,"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":21774,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"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/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/store/sqlite-driver.js":{"bytes":5209,"imports":[{"path":"node:module","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/store/node-sqlite.js":{"bytes":12527,"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/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":10021,"imports":[{"path":"../../packages/code-index/build/store/schema.js","kind":"import-statement","original":"../store/schema.js"},{"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":2809,"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/store/node-sqlite.js","kind":"import-statement","original":"./store/node-sqlite.js"},{"path":"../../packages/code-index/build/sync/client.js","kind":"import-statement","original":"./sync/client.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"},"src/local-tools/engine.ts":{"bytes":7476,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:module","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":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/install/index.ts":{"bytes":9946,"imports":[{"path":"node:os","kind":"import-statement","external":true},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"},{"path":"src/install/flags.ts","kind":"import-statement","original":"./flags.js"},{"path":"src/install/report.ts","kind":"import-statement","original":"./report.js"},{"path":"src/install/project-root.ts","kind":"import-statement","original":"./project-root.js"},{"path":"src/install/client-targets.ts","kind":"import-statement","original":"./client-targets.js"},{"path":"src/install/bridge-entry.ts","kind":"import-statement","original":"./bridge-entry.js"},{"path":"src/install/json-merge.ts","kind":"import-statement","original":"./json-merge.js"},{"path":"src/install/toml-merge.ts","kind":"import-statement","original":"./toml-merge.js"},{"path":"src/install/preamble.ts","kind":"import-statement","original":"./preamble.js"},{"path":"src/install/hook-merge.ts","kind":"import-statement","original":"./hook-merge.js"},{"path":"src/install/working-paths-consent.ts","kind":"import-statement","original":"./working-paths-consent.js"},{"path":"src/install/browser-pair.ts","kind":"import-statement","original":"./browser-pair.js"},{"path":"src/install/telemetry.ts","kind":"import-statement","original":"./telemetry.js"},{"path":"src/local-tools/engine.ts","kind":"import-statement","original":"../local-tools/engine.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/local-tools/token-estimate.ts":{"bytes":898,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/local-tools/savings.ts":{"bytes":3781,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/local-tools/token-estimate.ts","kind":"import-statement","original":"./token-estimate.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/model/types.js":{"bytes":471,"imports":[],"format":"esm"},"../../packages/code-index/build/repo-health/migration-ledger-drift.js":{"bytes":21937,"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/index.js":{"bytes":5611,"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/repo-health/divergence.js","kind":"import-statement","original":"./repo-health/divergence.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"}],"format":"esm"},"src/local-tools/tools.ts":{"bytes":69533,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"src/local-tools/engine.ts","kind":"import-statement","original":"./engine.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/local-tools/router.ts":{"bytes":5960,"imports":[{"path":"src/local-tools/engine.ts","kind":"import-statement","original":"./engine.js"},{"path":"src/local-tools/savings.ts","kind":"import-statement","original":"./savings.js"},{"path":"src/local-tools/tools.ts","kind":"import-statement","original":"./tools.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/functions-origin.ts":{"bytes":714,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/metrics-post.ts":{"bytes":2619,"imports":[{"path":"src/functions-origin.ts","kind":"import-statement","original":"./functions-origin.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/presence.ts":{"bytes":27152,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"src/bridge-config.ts","kind":"import-statement","original":"./bridge-config.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/presence-snapshot.ts":{"bytes":7984,"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/session-identity.ts":{"bytes":17877,"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/device-id.ts","kind":"import-statement","original":"./device-id.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":2017,"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/session-analysis.js":{"bytes":18118,"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":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/ingest.js":{"bytes":3777,"imports":[{"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":7254,"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":875,"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/ingest.js","kind":"import-statement","original":"./ingest.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/session-meta.ts":{"bytes":4955,"imports":[{"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/working-paths.ts":{"bytes":3016,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/api.ts":{"bytes":2311,"imports":[{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/edit-guard.ts":{"bytes":10563,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/hook-input.ts":{"bytes":3330,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/payloads.ts":{"bytes":1430,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/realpath.ts":{"bytes":1436,"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/hooks/state.ts":{"bytes":7165,"imports":[{"path":"node:fs/promises","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/hooks/repo-health.ts":{"bytes":11947,"imports":[{"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":"src/conventions-cache.ts","kind":"import-statement","original":"../conventions-cache.js"},{"path":"src/hooks/payloads.ts","kind":"import-statement","original":"./payloads.js"},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"./hook-input.js"},{"path":"src/hooks/realpath.ts","kind":"import-statement","original":"./realpath.js"},{"path":"src/hooks/state.ts","kind":"import-statement","original":"./state.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/write-health.ts":{"bytes":11906,"imports":[{"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":"src/conventions-cache.ts","kind":"import-statement","original":"../conventions-cache.js"},{"path":"src/hooks/payloads.ts","kind":"import-statement","original":"./payloads.js"},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"./hook-input.js"},{"path":"src/hooks/repo-health.ts","kind":"import-statement","original":"./repo-health.js"},{"path":"src/hooks/realpath.ts","kind":"import-statement","original":"./realpath.js"},{"path":"src/hooks/state.ts","kind":"import-statement","original":"./state.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/index.ts":{"bytes":39499,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","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":"../../packages/claude-code-telemetry/dist/index.js","kind":"import-statement","original":"@maind/claude-code-telemetry"},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"src/conventions-cache.ts","kind":"import-statement","original":"../conventions-cache.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/install/hook-wiring.ts","kind":"import-statement","original":"../install/hook-wiring.js"},{"path":"src/presence-snapshot.ts","kind":"import-statement","original":"../presence-snapshot.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/hooks/api.ts","kind":"import-statement","original":"./api.js"},{"path":"src/hooks/edit-guard.ts","kind":"import-statement","original":"./edit-guard.js"},{"path":"src/session-identity.ts","kind":"import-statement","original":"../session-identity.js"},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"./hook-input.js"},{"path":"src/hooks/payloads.ts","kind":"import-statement","original":"./payloads.js"},{"path":"src/hooks/realpath.ts","kind":"import-statement","original":"./realpath.js"},{"path":"src/hooks/state.ts","kind":"import-statement","original":"./state.js"},{"path":"src/hooks/repo-health.ts","kind":"import-statement","original":"./repo-health.js"},{"path":"src/hooks/write-health.ts","kind":"import-statement","original":"./write-health.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/session-end/connection.ts":{"bytes":3229,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/session-end/index.ts":{"bytes":7635,"imports":[{"path":"../../packages/claude-code-telemetry/dist/index.js","kind":"import-statement","original":"@maind/claude-code-telemetry"},{"path":"src/bridge-config.ts","kind":"import-statement","original":"../bridge-config.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/hooks/api.ts","kind":"import-statement","original":"../hooks/api.js"},{"path":"src/hooks/edit-guard.ts","kind":"import-statement","original":"../hooks/edit-guard.js"},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/hooks/index.ts","kind":"import-statement","original":"../hooks/index.js"},{"path":"src/presence.ts","kind":"import-statement","original":"../presence.js"},{"path":"src/presence-snapshot.ts","kind":"import-statement","original":"../presence-snapshot.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/session-identity.ts","kind":"import-statement","original":"../session-identity.js"},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"},{"path":"src/session-end/connection.ts","kind":"import-statement","original":"./connection.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/config.ts":{"bytes":2572,"imports":[{"path":"src/bridge-config.ts","kind":"import-statement","original":"../bridge-config.js"},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"../install/atomic-write.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/install.ts":{"bytes":3657,"imports":[{"path":"src/install/hook-wiring.ts","kind":"import-statement","original":"../install/hook-wiring.js"},{"path":"src/install/hook-merge.ts","kind":"import-statement","original":"../install/hook-merge.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/session-file.ts":{"bytes":3577,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/hooks/state.ts","kind":"import-statement","original":"../hooks/state.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/log.ts":{"bytes":3246,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/cli.ts":{"bytes":5916,"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":"src/install/hook-wiring.ts","kind":"import-statement","original":"../install/hook-wiring.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/install.ts","kind":"import-statement","original":"./install.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/mcp-client.ts":{"bytes":6343,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/inject.ts":{"bytes":8057,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"},{"path":"src/guard/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/gate.ts":{"bytes":6853,"imports":[{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/hooks/payloads.ts","kind":"import-statement","original":"../hooks/payloads.js"},{"path":"src/hooks/state.ts","kind":"import-statement","original":"../hooks/state.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/stop.ts":{"bytes":3134,"imports":[{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/hooks/state.ts","kind":"import-statement","original":"../hooks/state.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/attest.ts":{"bytes":7656,"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/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/guard/mcp-client.ts","kind":"import-statement","original":"../guard/mcp-client.js"},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/config.ts":{"bytes":4141,"imports":[{"path":"src/bridge-config.ts","kind":"import-statement","original":"../bridge-config.js"},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"../install/atomic-write.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/policy.ts":{"bytes":5948,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/policy-cache.ts":{"bytes":3361,"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/gateway/policy-fetch.ts":{"bytes":2357,"imports":[{"path":"src/conventions-cache.ts","kind":"import-statement","original":"../conventions-cache.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/guard/mcp-client.ts","kind":"import-statement","original":"../guard/mcp-client.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"},{"path":"src/gateway/policy.ts","kind":"import-statement","original":"./policy.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/wrap.ts":{"bytes":5823,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/install.ts":{"bytes":6383,"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":"node:readline","kind":"import-statement","external":true},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"../install/atomic-write.js"},{"path":"src/install/bridge-entry.ts","kind":"import-statement","original":"../install/bridge-entry.js"},{"path":"src/gateway/wrap.ts","kind":"import-statement","original":"./wrap.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/policy-cli.ts":{"bytes":5422,"imports":[{"path":"src/gateway/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/gateway/policy-cache.ts","kind":"import-statement","original":"./policy-cache.js"},{"path":"src/gateway/policy-fetch.ts","kind":"import-statement","original":"./policy-fetch.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/run.ts":{"bytes":13505,"imports":[{"path":"node:child_process","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:readline","kind":"import-statement","external":true},{"path":"src/gateway/frames.ts","kind":"import-statement","original":"./frames.js"},{"path":"src/gateway/attest.ts","kind":"import-statement","original":"./attest.js"},{"path":"src/gateway/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/gateway/policy.ts","kind":"import-statement","original":"./policy.js"},{"path":"src/sha-proof.ts","kind":"import-statement","original":"../sha-proof.js"},{"path":"src/gateway/policy-cache.ts","kind":"import-statement","original":"./policy-cache.js"},{"path":"src/gateway/policy-fetch.ts","kind":"import-statement","original":"./policy-fetch.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/gateway/install.ts","kind":"dynamic-import","original":"./install.js"},{"path":"src/gateway/policy-cli.ts","kind":"dynamic-import","original":"./policy-cli.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/guard/cross-session.ts":{"bytes":9693,"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/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/hooks/payloads.ts","kind":"import-statement","original":"../hooks/payloads.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/index-refresh.ts":{"bytes":5763,"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/hooks/hook-input.ts","kind":"import-statement","original":"./hook-input.js"},{"path":"src/local-tools/engine.ts","kind":"import-statement","original":"../local-tools/engine.js"},{"path":"../../packages/code-index/build/node.js","kind":"dynamic-import","original":"@maind/code-index/node"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":20210,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"src/forward.ts","kind":"import-statement","original":"./forward.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"./device-id.js"},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"./project-key.js"},{"path":"src/install/index.ts","kind":"import-statement","original":"./install/index.js"},{"path":"src/local-tools/router.ts","kind":"import-statement","original":"./local-tools/router.js"},{"path":"src/local-tools/savings.ts","kind":"import-statement","original":"./local-tools/savings.js"},{"path":"src/metrics-post.ts","kind":"import-statement","original":"./metrics-post.js"},{"path":"src/presence.ts","kind":"import-statement","original":"./presence.js"},{"path":"src/presence-snapshot.ts","kind":"import-statement","original":"./presence-snapshot.js"},{"path":"src/session-identity.ts","kind":"import-statement","original":"./session-identity.js"},{"path":"src/session-meta.ts","kind":"import-statement","original":"./session-meta.js"},{"path":"src/working-paths.ts","kind":"import-statement","original":"./working-paths.js"},{"path":"src/session-end/index.ts","kind":"dynamic-import","original":"./session-end/index.js"},{"path":"src/guard/cli.ts","kind":"dynamic-import","original":"./guard/cli.js"},{"path":"src/guard/inject.ts","kind":"dynamic-import","original":"./guard/inject.js"},{"path":"src/guard/gate.ts","kind":"dynamic-import","original":"./guard/gate.js"},{"path":"src/guard/stop.ts","kind":"dynamic-import","original":"./guard/stop.js"},{"path":"src/gateway/run.ts","kind":"dynamic-import","original":"./gateway/run.js"},{"path":"src/guard/cross-session.ts","kind":"dynamic-import","original":"./guard/cross-session.js"},{"path":"src/guard/cross-session.ts","kind":"dynamic-import","original":"./guard/cross-session.js"},{"path":"src/hooks/index-refresh.ts","kind":"dynamic-import","original":"./hooks/index-refresh.js"},{"path":"src/hooks/index-refresh.ts","kind":"dynamic-import","original":"./hooks/index-refresh.js"},{"path":"src/hooks/index.ts","kind":"dynamic-import","original":"./hooks/index.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"build/index.js":{"imports":[{"path":"node:child_process","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:os","kind":"import-statement","external":true},{"path":"node:crypto","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:path","kind":"import-statement","external":true},{"path":"node:url","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","kind":"import-statement","external":true},{"path":"node:path","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:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:module","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: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: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: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:module","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:module","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"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":"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: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:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:readline","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:readline","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","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs/promises","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: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: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:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","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","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: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: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:readline","kind":"import-statement","external":true},{"path":"node:child_process","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:readline","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: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:crypto","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"smol-toml","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:crypto","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/gateway/frames.ts":{"bytesInOutput":1220},"src/sha-proof.ts":{"bytesInOutput":2831},"src/conventions-cache.ts":{"bytesInOutput":2224},"src/device-id.ts":{"bytesInOutput":1650},"src/version.ts":{"bytesInOutput":42},"src/project-key.ts":{"bytesInOutput":981},"src/install/bridge-entry.ts":{"bytesInOutput":1296},"src/install/atomic-write.ts":{"bytesInOutput":1131},"src/install/hook-wiring.ts":{"bytesInOutput":10992},"src/install/hook-merge.ts":{"bytesInOutput":3897},"src/bridge-config.ts":{"bytesInOutput":1117},"../../packages/project-key/build/index.js":{"bytesInOutput":1070},"../../packages/code-index/build/parse/keys.js":{"bytesInOutput":144},"../../packages/code-index/build/parse/types.js":{"bytesInOutput":416},"../../packages/code-index/build/parse/lang/shared.js":{"bytesInOutput":821},"../../packages/code-index/build/parse/lang/python.js":{"bytesInOutput":2360},"../../packages/code-index/build/parse/lang/typescript.js":{"bytesInOutput":2932},"../../packages/code-index/build/parse/tree-sitter/grammars.js":{"bytesInOutput":403},"../../packages/code-index/build/parse/tree-sitter/parser.js":{"bytesInOutput":1232},"../../packages/code-index/build/embed/recipe.js":{"bytesInOutput":187},"../../packages/code-index/build/embed/types.js":{"bytesInOutput":97},"../../packages/code-index/build/util/vector.js":{"bytesInOutput":229},"../../packages/code-index/build/graph/resolve.js":{"bytesInOutput":1377},"../../packages/code-index/build/incremental/discover.js":{"bytesInOutput":3124},"../../packages/code-index/build/incremental/hunks.js":{"bytesInOutput":2092},"../../packages/code-index/build/incremental/history.js":{"bytesInOutput":1789},"../../packages/code-index/build/repo-health/hooks.js":{"bytesInOutput":1919},"../../packages/code-index/build/repo-health/supabase-migrations.js":{"bytesInOutput":1196},"../../packages/code-index/build/repo-health/divergence.js":{"bytesInOutput":16636},"../../packages/code-index/build/repo-health/number-collisions.js":{"bytesInOutput":6452},"../../packages/code-index/build/repo-health/detectors.js":{"bytesInOutput":1306},"../../packages/code-index/build/repo-health/spec-drift.js":{"bytesInOutput":14388},"../../packages/code-index/build/repo-health/table-acl-lint.js":{"bytesInOutput":7903},"../../packages/code-index/build/repo-health/theme-class-drift.js":{"bytesInOutput":4151},"../../packages/code-index/build/repo-health/detector-adapter.js":{"bytesInOutput":5837},"../../packages/code-index/build/review/risk-rules.js":{"bytesInOutput":746},"../../packages/code-index/build/review/risk-scan.js":{"bytesInOutput":452},"../../packages/code-index/build/store/schema.js":{"bytesInOutput":2075},"../../packages/code-index/build/util/identifiers.js":{"bytesInOutput":763},"../../packages/code-index/build/query/engine.js":{"bytesInOutput":8684},"../../packages/code-index/build/store/sqlite-driver.js":{"bytesInOutput":1908},"../../packages/code-index/build/store/node-sqlite.js":{"bytesInOutput":7298},"../../packages/code-index/build/sync/types.js":{"bytesInOutput":698},"../../packages/code-index/build/sync/client.js":{"bytesInOutput":4263},"../../packages/code-index/build/node.js":{"bytesInOutput":995},"src/local-tools/engine.ts":{"bytesInOutput":2357},"../../packages/code-index/build/model/types.js":{"bytesInOutput":29},"../../packages/code-index/build/repo-health/migration-ledger-drift.js":{"bytesInOutput":10257},"../../packages/code-index/build/index.js":{"bytesInOutput":148},"src/presence.ts":{"bytesInOutput":5867},"src/presence-snapshot.ts":{"bytesInOutput":2487},"src/session-identity.ts":{"bytesInOutput":4974},"../../packages/claude-code-telemetry/dist/types.js":{"bytesInOutput":109},"../../packages/claude-code-telemetry/dist/transcript.js":{"bytesInOutput":768},"../../packages/claude-code-telemetry/dist/decisions.js":{"bytesInOutput":29},"../../packages/claude-code-telemetry/dist/effort.js":{"bytesInOutput":297},"../../packages/claude-code-telemetry/dist/session-analysis.js":{"bytesInOutput":5870},"../../packages/claude-code-telemetry/dist/ingest.js":{"bytesInOutput":254},"../../packages/claude-code-telemetry/dist/session-span.js":{"bytesInOutput":2423},"../../packages/claude-code-telemetry/dist/parse.js":{"bytesInOutput":2485},"../../packages/claude-code-telemetry/dist/windows.js":{"bytesInOutput":29},"../../packages/claude-code-telemetry/dist/projects.js":{"bytesInOutput":215},"../../packages/claude-code-telemetry/dist/index.js":{"bytesInOutput":79},"src/hooks/api.ts":{"bytesInOutput":741},"src/hooks/edit-guard.ts":{"bytesInOutput":3682},"src/hooks/hook-input.ts":{"bytesInOutput":669},"src/hooks/payloads.ts":{"bytesInOutput":459},"src/hooks/realpath.ts":{"bytesInOutput":303},"src/hooks/state.ts":{"bytesInOutput":1212},"src/hooks/repo-health.ts":{"bytesInOutput":2181},"src/hooks/write-health.ts":{"bytesInOutput":3013},"src/hooks/index.ts":{"bytesInOutput":11748},"src/session-end/connection.ts":{"bytesInOutput":200},"src/session-end/index.ts":{"bytesInOutput":1767},"src/guard/config.ts":{"bytesInOutput":482},"src/guard/install.ts":{"bytesInOutput":1562},"src/guard/session-file.ts":{"bytesInOutput":1013},"src/guard/log.ts":{"bytesInOutput":926},"src/guard/cli.ts":{"bytesInOutput":3261},"src/guard/mcp-client.ts":{"bytesInOutput":2341},"src/guard/inject.ts":{"bytesInOutput":2848},"src/guard/gate.ts":{"bytesInOutput":2658},"src/guard/stop.ts":{"bytesInOutput":1158},"src/gateway/attest.ts":{"bytesInOutput":2366},"src/gateway/config.ts":{"bytesInOutput":934},"src/gateway/policy.ts":{"bytesInOutput":1897},"src/gateway/policy-cache.ts":{"bytesInOutput":895},"src/gateway/policy-fetch.ts":{"bytesInOutput":503},"src/gateway/wrap.ts":{"bytesInOutput":1547},"src/gateway/install.ts":{"bytesInOutput":3394},"src/gateway/policy-cli.ts":{"bytesInOutput":3183},"src/gateway/run.ts":{"bytesInOutput":4041},"src/guard/cross-session.ts":{"bytesInOutput":3408},"src/hooks/index-refresh.ts":{"bytesInOutput":1306},"src/index.ts":{"bytesInOutput":8197},"src/forward.ts":{"bytesInOutput":9157},"src/client-detect.ts":{"bytesInOutput":1184},"src/auth.ts":{"bytesInOutput":3799},"src/install/index.ts":{"bytesInOutput":3682},"src/install/flags.ts":{"bytesInOutput":3905},"src/install/report.ts":{"bytesInOutput":1652},"src/install/project-root.ts":{"bytesInOutput":1335},"src/install/client-targets.ts":{"bytesInOutput":2077},"src/install/json-merge.ts":{"bytesInOutput":1995},"src/install/toml-merge.ts":{"bytesInOutput":1973},"src/install/preamble.ts":{"bytesInOutput":1655},"../../packages/integration-snippets/build/index.js":{"bytesInOutput":24490},"src/install/working-paths-consent.ts":{"bytesInOutput":2297},"src/install/browser-pair.ts":{"bytesInOutput":2323},"src/install/one-click-exchange.ts":{"bytesInOutput":758},"src/install/telemetry.ts":{"bytesInOutput":1155},"src/local-tools/router.ts":{"bytesInOutput":1432},"src/local-tools/savings.ts":{"bytesInOutput":1056},"src/local-tools/token-estimate.ts":{"bytesInOutput":71},"src/local-tools/tools.ts":{"bytesInOutput":45580},"src/functions-origin.ts":{"bytesInOutput":197},"src/metrics-post.ts":{"bytesInOutput":803},"src/session-meta.ts":{"bytesInOutput":987},"src/working-paths.ts":{"bytesInOutput":855}},"bytes":360514}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maind-dev/mcp-bridge",
3
- "version": "0.59.0",
3
+ "version": "0.60.0",
4
4
  "description": "Local MCP bridge for maind.dev — wraps any MCP-compatible client (Claude Code, Cursor, Windsurf) and pins your API key to a single device via the maind device authorization flow.",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",