@maind-dev/mcp-bridge 0.63.0 → 0.64.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 +3 -3
- package/build/meta.json +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var gs=Object.defineProperty;var s=(e,t)=>gs(e,"name",{value:t,configurable:!0})
|
|
|
3
3
|
|
|
4
4
|
${i}`};return JSON.stringify({jsonrpc:"2.0",id:e,result:o})}function gf(e,t){return`NOTE (MAIND cache fallback): the MAIND MCP server was unreachable, so these project conventions were served from a local snapshot taken ${yf(e,t)}. They may be stale, and MAIND tools are unavailable until the server is reachable again.`}function yf(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 Hr,hf,qe=_(()=>{"use strict";Hr=1,hf=Ss(".maind","conventions-cache.json");s(ae,"resolveRepoRoot");s(fn,"keyFingerprint");s(mn,"cachePath");s(Es,"hasInstructions");s(xs,"writeConventionsCache");s(Rs,"readConventionsCache");s(Ts,"buildCachedInitializeResponse");s(gf,"fallbackMarker");s(yf,"relativeAge")});import{existsSync as _n,mkdirSync as If,readFileSync as As,writeFileSync as Kr,chmodSync as Is}from"node:fs";import{homedir as Cf,hostname as Nf,platform as Gr,release as Pf}from"node:os";import{randomUUID as Of}from"node:crypto";import{join as Se}from"node:path";function Tt(){let e=Cf(),t=process.env;if(Gr()==="darwin")return Se(e,"Library","Application Support","maind");if(Gr()==="win32"){let r=t.APPDATA&&t.APPDATA.length>0?t.APPDATA:Se(e,"AppData","Roaming");return Se(r,"maind")}let n=t.XDG_CONFIG_HOME&&t.XDG_CONFIG_HOME.length>0?t.XDG_CONFIG_HOME:Se(e,".config");return Se(n,"maind")}function Cs(e){_n(e)||If(e,{recursive:!0,mode:448})}function U(){let e=Tt();Cs(e);let t=Se(e,Df);if(_n(t)){let r=As(t,"utf8").trim();if(Lf(r))return r}let n=Of();Kr(t,n+`
|
|
5
5
|
`,{encoding:"utf8",mode:384});try{Is(t,384)}catch{}return n}function Lf(e){return Ff.test(e)}function Br(){return Se(Tt(),Mf)}function Ee(e){let t=Tt();Cs(t);let n=Br();Kr(n,e+`
|
|
6
|
-
`,{encoding:"utf8",mode:384});try{Is(n,384)}catch{}}function O(){let e=Br();if(!_n(e))return null;let t=As(e,"utf8").trim();return t.length>0?t:null}function At(){let e=Br();_n(e)&&Kr(e,"",{encoding:"utf8",mode:384})}function Ns(){try{return`mcp-bridge-${Nf()}`}catch{return"mcp-bridge"}}function wn(e){return{os:`${Gr()} ${Pf()}`,ide:"mcp-bridge",ext_version:e,device_id:U()}}var Df,Mf,Ff,B=_(()=>{"use strict";s(Tt,"configDir");s(Cs,"ensureDir");Df="device-id",Mf="api-key";s(U,"ensureDeviceId");Ff=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;s(Lf,"isUuid");s(Br,"apiKeyPath");s(Ee,"writeApiKey");s(O,"readApiKey");s(At,"clearApiKey");s(Ns,"bridgeLabel");s(wn,"clientMeta")});var P,xe=_(()=>{"use strict";P="0.63.0"});import{execFileSync as Vf}from"node:child_process";import{createHash as qf}from"node:crypto";function Jf(e){return qf("sha256").update(e).digest("hex")}function zf(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 Yf(e){let t=zf(e);return t?Jf(t):null}function D(){let e=process.env.MAIND_PROJECT_KEY?.trim().toLowerCase();if(e&&Xf.test(e))return e;let t;try{t=Vf("git",["config","--get","remote.origin.url"],{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:5e3}).trim()}catch{return null}return t?Yf(t):null}var Xf,ge=_(()=>{"use strict";s(Jf,"sha256Hex");s(zf,"normalizeRemoteUrl");s(Yf,"projectKeyFromRemote");Xf=/^[a-f0-9]{64}$/;s(D,"computeProjectKey")});import Zf from"node:path";import{fileURLToPath as em}from"node:url";function tm(e,t=Zf.sep){return e.split(t).includes("_npx")}function ee(e){let t=e.extraArgs??[],n=s(r=>({command:"npx",args:["-y",Gs,...t],env:{},fallbackReason:r}),"npx");return e.entryPath===null?n("bridge entry path could not be resolved"):tm(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 te(){try{let e=em(import.meta.url);return e.endsWith(".js")?e:null}catch{return null}}function ze(e){let t=Object.entries(e.env).map(([n,r])=>`${n}=${Us(r)}`);return[...t,e.command,...e.args].map((n,r)=>r<t.length?n:Us(n)).join(" ")}function vn(e){return/(^|\s)npx(\s|$)/.test(e)&&e.includes(Gs)}function Sn(e){return/(^|[\s/])maind-hook(\s|$)/.test(e)?!0:/claude-code-hook[/\\]build[/\\]/.test(e)}function Us(e){return/^[A-Za-z0-9_@%+=:,./-]+$/.test(e)?e:`'${e.replace(/'/g,"'\\''")}'`}var Gs,Ye=_(()=>{"use strict";Gs="@maind-dev/mcp-bridge";s(tm,"isEphemeralEntry");s(ee,"resolveBridgeLaunch");s(te,"currentBridgeEntry");s(ze,"launchToShellCommand");s(vn,"isNpxForm");s(Sn,"isLegacyHookForm");s(Us,"shellQuote")});import*as M from"node:fs/promises";import*as En from"node:path";async function G(e){try{return await M.readFile(e,"utf8")}catch(t){if(rm(t))return null;throw t}}async function Wr(e){await M.mkdir(e,{recursive:!0})}async function F(e,t,n){let r=En.dirname(e);await Wr(r);let i=En.join(r,`.maind-install-${process.pid}-${Date.now()}.tmp`);await M.writeFile(i,t,{encoding:"utf8",mode:n});try{await M.rename(i,e)}catch(o){if(im(o))try{await M.copyFile(i,e),await M.unlink(i).catch(()=>{}),n!==void 0&&await M.chmod(e,n).catch(()=>{});return}catch(a){throw await M.unlink(i).catch(()=>{}),a}throw await M.unlink(i).catch(()=>{}),o}}async function Js(e,t){let n=await G(e);return n===null?!1:n.split(/\r?\n/).some(i=>i.startsWith(t))}function rm(e){return zs(e)&&e.code==="ENOENT"}function im(e){return!zs(e)||process.platform!=="win32"?!1:e.code==="EEXIST"||e.code==="EPERM"||e.code==="EACCES"}function zs(e){return typeof e=="object"&&e!==null&&"code"in e}var ce=_(()=>{"use strict";s(G,"readFileSafe");s(Wr,"ensureDir");s(F,"atomicWriteFile");s(Js,"hasLinePrefix");s(rm,"isNoEnt");s(im,"isWindowsRenameFailure");s(zs,"isNodeError")});import{existsSync as km}from"node:fs";import*as ta from"node:path";function Pt(e,t={},n=zr){let r=t.fileExists??km,i=t.expectedCommand??vm,o={};if(e!==null&&e.trim().length>0)try{let a=JSON.parse(e);Jr(a)&&(o=a)}catch{}return n.map(a=>{let c={event:a.event,subcommand:a.subcommand},l=Sm(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(Sn(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(vn(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=Em(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 Yr(e){return e.some(t=>t.status!=="ok")}function Tn(e){return e.some(t=>t.remedy==="run-install")}function vm(e){return ze(ee({entryPath:te(),nodePath:process.execPath,extraArgs:[e],isElectron:process.versions.electron!==void 0}))}function Sm(e,t,n){let r=e.hooks?.[t];if(!Array.isArray(r))return null;for(let i of r){if(!Jr(i))continue;let o=i.hooks;if(Array.isArray(o))for(let a of o){if(!Jr(a))continue;let c=a.command;if(typeof c=="string"&&c.includes(n))return c}}return null}function Em(e){for(let t of xm(e))if(t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs"))return ta.isAbsolute(t)?t:null;return null}function xm(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 Jr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var zr,Rn,Ot=_(()=>{"use strict";Ye();zr=[{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."}],Rn=[{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(Pt,"inspectHookWiring");s(Yr,"hasWiringDrift");s(Tn,"needsInstallRun");s(vm,"defaultExpectedCommand");s(Sm,"findCommand");s(Em,"extractScriptPath");s(xm,"tokenize");s(Jr,"isObject")});import*as Zr from"node:path";import*as ra from"node:readline";async function ia(e,t){let n=Zr.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 G(n)}catch(f){return{target:r,action:"merge",status:"failed",detail:`read: ${Xr(f)}`}}let o,a="create";if(i===null||i.trim().length===0)o={};else{a="merge";try{let f=JSON.parse(i);if(!Qr(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: ${Xr(f)}`}}}let c=Tm(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 Am(e.out,`
|
|
6
|
+
`,{encoding:"utf8",mode:384});try{Is(n,384)}catch{}}function O(){let e=Br();if(!_n(e))return null;let t=As(e,"utf8").trim();return t.length>0?t:null}function At(){let e=Br();_n(e)&&Kr(e,"",{encoding:"utf8",mode:384})}function Ns(){try{return`mcp-bridge-${Nf()}`}catch{return"mcp-bridge"}}function wn(e){return{os:`${Gr()} ${Pf()}`,ide:"mcp-bridge",ext_version:e,device_id:U()}}var Df,Mf,Ff,B=_(()=>{"use strict";s(Tt,"configDir");s(Cs,"ensureDir");Df="device-id",Mf="api-key";s(U,"ensureDeviceId");Ff=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;s(Lf,"isUuid");s(Br,"apiKeyPath");s(Ee,"writeApiKey");s(O,"readApiKey");s(At,"clearApiKey");s(Ns,"bridgeLabel");s(wn,"clientMeta")});var P,xe=_(()=>{"use strict";P="0.64.0"});import{execFileSync as Vf}from"node:child_process";import{createHash as qf}from"node:crypto";function Jf(e){return qf("sha256").update(e).digest("hex")}function zf(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 Yf(e){let t=zf(e);return t?Jf(t):null}function D(){let e=process.env.MAIND_PROJECT_KEY?.trim().toLowerCase();if(e&&Xf.test(e))return e;let t;try{t=Vf("git",["config","--get","remote.origin.url"],{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:5e3}).trim()}catch{return null}return t?Yf(t):null}var Xf,ge=_(()=>{"use strict";s(Jf,"sha256Hex");s(zf,"normalizeRemoteUrl");s(Yf,"projectKeyFromRemote");Xf=/^[a-f0-9]{64}$/;s(D,"computeProjectKey")});import Zf from"node:path";import{fileURLToPath as em}from"node:url";function tm(e,t=Zf.sep){return e.split(t).includes("_npx")}function ee(e){let t=e.extraArgs??[],n=s(r=>({command:"npx",args:["-y",Gs,...t],env:{},fallbackReason:r}),"npx");return e.entryPath===null?n("bridge entry path could not be resolved"):tm(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 te(){try{let e=em(import.meta.url);return e.endsWith(".js")?e:null}catch{return null}}function ze(e){let t=Object.entries(e.env).map(([n,r])=>`${n}=${Us(r)}`);return[...t,e.command,...e.args].map((n,r)=>r<t.length?n:Us(n)).join(" ")}function vn(e){return/(^|\s)npx(\s|$)/.test(e)&&e.includes(Gs)}function Sn(e){return/(^|[\s/])maind-hook(\s|$)/.test(e)?!0:/claude-code-hook[/\\]build[/\\]/.test(e)}function Us(e){return/^[A-Za-z0-9_@%+=:,./-]+$/.test(e)?e:`'${e.replace(/'/g,"'\\''")}'`}var Gs,Ye=_(()=>{"use strict";Gs="@maind-dev/mcp-bridge";s(tm,"isEphemeralEntry");s(ee,"resolveBridgeLaunch");s(te,"currentBridgeEntry");s(ze,"launchToShellCommand");s(vn,"isNpxForm");s(Sn,"isLegacyHookForm");s(Us,"shellQuote")});import*as M from"node:fs/promises";import*as En from"node:path";async function G(e){try{return await M.readFile(e,"utf8")}catch(t){if(rm(t))return null;throw t}}async function Wr(e){await M.mkdir(e,{recursive:!0})}async function F(e,t,n){let r=En.dirname(e);await Wr(r);let i=En.join(r,`.maind-install-${process.pid}-${Date.now()}.tmp`);await M.writeFile(i,t,{encoding:"utf8",mode:n});try{await M.rename(i,e)}catch(o){if(im(o))try{await M.copyFile(i,e),await M.unlink(i).catch(()=>{}),n!==void 0&&await M.chmod(e,n).catch(()=>{});return}catch(a){throw await M.unlink(i).catch(()=>{}),a}throw await M.unlink(i).catch(()=>{}),o}}async function Js(e,t){let n=await G(e);return n===null?!1:n.split(/\r?\n/).some(i=>i.startsWith(t))}function rm(e){return zs(e)&&e.code==="ENOENT"}function im(e){return!zs(e)||process.platform!=="win32"?!1:e.code==="EEXIST"||e.code==="EPERM"||e.code==="EACCES"}function zs(e){return typeof e=="object"&&e!==null&&"code"in e}var ce=_(()=>{"use strict";s(G,"readFileSafe");s(Wr,"ensureDir");s(F,"atomicWriteFile");s(Js,"hasLinePrefix");s(rm,"isNoEnt");s(im,"isWindowsRenameFailure");s(zs,"isNodeError")});import{existsSync as km}from"node:fs";import*as ta from"node:path";function Pt(e,t={},n=zr){let r=t.fileExists??km,i=t.expectedCommand??vm,o={};if(e!==null&&e.trim().length>0)try{let a=JSON.parse(e);Jr(a)&&(o=a)}catch{}return n.map(a=>{let c={event:a.event,subcommand:a.subcommand},l=Sm(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(Sn(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(vn(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=Em(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 Yr(e){return e.some(t=>t.status!=="ok")}function Tn(e){return e.some(t=>t.remedy==="run-install")}function vm(e){return ze(ee({entryPath:te(),nodePath:process.execPath,extraArgs:[e],isElectron:process.versions.electron!==void 0}))}function Sm(e,t,n){let r=e.hooks?.[t];if(!Array.isArray(r))return null;for(let i of r){if(!Jr(i))continue;let o=i.hooks;if(Array.isArray(o))for(let a of o){if(!Jr(a))continue;let c=a.command;if(typeof c=="string"&&c.includes(n))return c}}return null}function Em(e){for(let t of xm(e))if(t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs"))return ta.isAbsolute(t)?t:null;return null}function xm(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 Jr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var zr,Rn,Ot=_(()=>{"use strict";Ye();zr=[{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."}],Rn=[{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(Pt,"inspectHookWiring");s(Yr,"hasWiringDrift");s(Tn,"needsInstallRun");s(vm,"defaultExpectedCommand");s(Sm,"findCommand");s(Em,"extractScriptPath");s(xm,"tokenize");s(Jr,"isObject")});import*as Zr from"node:path";import*as ra from"node:readline";async function ia(e,t){let n=Zr.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 G(n)}catch(f){return{target:r,action:"merge",status:"failed",detail:`read: ${Xr(f)}`}}let o,a="create";if(i===null||i.trim().length===0)o={};else{a="merge";try{let f=JSON.parse(i);if(!Qr(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: ${Xr(f)}`}}}let c=Tm(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 Am(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)+`
|
|
@@ -120,10 +120,10 @@ CREATE TABLE IF NOT EXISTS embeddings (
|
|
|
120
120
|
`).map(i=>i.trim()).filter(Boolean)}}function Gl(e){for(let t of e.split(/^\[/m)){if(!/^db\]/.test(t))continue;let n=/^\s*port\s*=\s*(\d+)/m.exec(t.slice(t.indexOf("]")+1));if(n)return Number(n[1])}return null}function ay(e){let t=S(e,["rev-parse","--path-format=absolute","--git-common-dir"])?.trim();if(!t)return null;let n=iy(t);return n===e?null:n}function cy(e,t,n){let r=oy.dirname(t),o=[{path:go(e,r,"config.toml"),source:"worktree"}],a=ay(e);a&&o.push({path:go(a,r,"config.toml"),source:"main_worktree"});for(let c of o)if(ho(c.path))try{let l=Gl(ny(c.path,"utf8"));if(l===null){n.push(`${c.path}: kein [db].port lesbar \u2014 Kandidat \xFCbersprungen`);continue}return{source:c.source,port:l}}catch{n.push(`${c.path}: nicht lesbar \u2014 Kandidat \xFCbersprungen`)}return{source:"missing"}}function ly(e,t){let n=new Map,r=S(e,["worktree","list","--porcelain"]);if(r===null)return n;let i=S(e,["rev-parse","--show-toplevel"])?.trim();for(let o of r.split(`
|
|
121
121
|
`)){if(!o.startsWith("worktree "))continue;let a=o.slice(9).trim();if(!a||a===i||!ho(a))continue;let c=go(a,t);if(ho(c))try{for(let l of ty(c)){let u=et(l);u!==null&&!n.has(u)&&n.set(u,a)}}catch{}}return n}function bo(e,t={}){let n=t.runPsql??Hl,r=t.timeoutMs??15e3,i=[],o=Ae(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=cy(e,p.dir,i),m=f.source==="missing"?null:Ll(n,`postgresql://postgres:postgres@127.0.0.1:${f.port}/postgres`,r),h=t.remoteDbUrl!==void 0?Ll(n,t.remoteDbUrl,r):null,g=$l({dir:p.dir,fileVersions:p.files.map(y=>y.version),config:f,ledger:m,siblingVersions:ly(e,p.dir),remote:h});a.push(...g.findings),l.push(g.verdict),c.push({dir:p.dir,migrationCount:p.files.length,verdict:g.verdict,db:g.db})}let u=jl(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 yo,Hl,sy,Kl=_(()=>{"use strict";q();Ft();yo=54322;s($l,"evaluateLedgerProject");s(jl,"deriveLedgerVerdict");Hl=s((e,t,n)=>{let r=ry("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"),sy="select version from supabase_migrations.schema_migrations order by version";s(Ul,"classifyLedgerError");s(Ll,"readLedger");s(Gl,"parseDbPort");s(ay,"mainWorktreeRoot");s(cy,"resolveConfig");s(ly,"gatherSiblingVersions");s(bo,"checkMigrationLedgerDrift")});var Bl,Xt=_(()=>{"use strict";Fl();so();pi();to();vi();gi();jt();er();Gt();Ft();Zn();Kl();Mi();eo();jt();Gt();er();Zn();Nn();ci();Vt();Bl="0.1.0"});import{execFile as Ql}from"node:child_process";import{randomUUID as by}from"node:crypto";function Ey(e){let t=(e.MAIND_SESSION_ID??"").trim().toLowerCase();return wo.test(t)?t:by()}function ko(e,t){let n=(e.MAIND_AUTO_ANNOUNCE??"").trim().toLowerCase();return n==="off"||n==="0"||n==="false"?!0:t?.auto_announce===!1}function xy(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 Ry(e){return await new Promise(t=>{Ql("git",["config","--get",`branch.${e}.maindObject`],{timeout:2e3,encoding:"utf8"},(n,r)=>{if(n)return t(null);t(Ty(r))})})}function Ty(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 Ay(){return await new Promise(e=>{Ql("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 Iy(e){if(typeof e!="string")return null;let t=e.trim().slice(0,100);return t.length>0?t:null}function Cy(e,t){let n=t,r=(e.MAIND_SESSION_ID??"").trim().toLowerCase(),i=wo.test(r)&&r===t?"env":"random";return{current:s(()=>({id:n,source:i,aliases:[]}),"current"),tryUpgrade:s(()=>!1,"tryUpgrade"),adopt:s(o=>{wo.test(o)&&(n=o.trim().toLowerCase())},"adopt"),activityAtMs:s(()=>null,"activityAtMs")}}var Xl,Zl,_y,wy,ky,vy,Sy,wo,mr,vo=_(()=>{"use strict";Xe();Xl=45e3,Zl=3e4,_y=5,wy=120,ky=3e4,vy=15*6e4,Sy=1500,wo=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;s(Ey,"resolveClientSessionId");s(ko,"autoAnnounceDisabled");s(xy,"autoWorkingPathsEnabled");mr=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??ne)();this.projectKey=t.projectKey,this.postToolCall=t.postToolCall,this.now=t.now??Date.now,this.gitBranch=t.gitBranch??Ay,this.gitBranchObject=t.gitBranchObject??Ry,this.log=t.log??(i=>process.stderr.write(i+`
|
|
122
122
|
`)),this.machineLabel=Iy(r?.machine_label),this.enabled=this.projectKey!==null&&!ko(n,r),this.workingPathsEnabled=xy(n,r),this.deriveWorkingPaths=t.deriveWorkingPaths??null,this.snapshot=t.snapshot??null,this.identity=t.identity??Cy(n,Ey(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<Xl||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<Xl||(this.lastActivityAt=t,this.onActivity()))}noteMissingSideChannel(){this.warnedMissingSideChannel||++this.missingSideChannelPolls<_y||(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,Sy).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(ky*2**(this.consecutiveFailures-1),vy);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:wy,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(Ry,"defaultGitBranchObject");s(Ty,"normalizeObjectId");s(Ay,"defaultGitBranch");s(Iy,"normalizeMachineLabel");s(Cy,"staticIdentity")});import{mkdirSync as ed,readdirSync as id,readFileSync as Ny,renameSync as td,statSync as Py,unlinkSync as od,writeFileSync as nd}from"node:fs";import{homedir as Oy}from"node:os";import{join as ft}from"node:path";function sd(){return ft(Oy(),".maind","presence")}function ad(e,t){return ft(e,t)}function cd(e){let t=e.baseDir??sd(),n=ad(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:[]};ed(n,{recursive:!0,mode:448}),c=ft(n,`${u.sessionId}.json`);let f=`${c}.tmp-${r}`;nd(f,JSON.stringify(p),{mode:384}),td(f,c),rd(n,a(),c)}catch{}},endSession(){try{c&&od(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};ed(n,{recursive:!0,mode:448}),c=ft(n,`${u.sessionId}.json`);let p=`${c}.tmp-${r}`;nd(p,JSON.stringify(d),{mode:384}),td(p,c),rd(n,a(),c)}catch{}}}}function rd(e,t,n){try{for(let r of id(e)){if(!r.endsWith(".json"))continue;let i=ft(e,r);if(i!==n)try{t-Py(i).mtimeMs>Dy&&od(i)}catch{}}}catch{}}function mt(e,t=sd()){try{let n=ad(t,e),r=[];for(let i of id(n))if(i.endsWith(".json"))try{let o=JSON.parse(Ny(ft(n,i),"utf8")),a=My(o);a&&r.push(a)}catch{}return r.sort((i,o)=>o.written_at.localeCompare(i.written_at)),r}catch{return[]}}function My(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 Dy,hr=_(()=>{"use strict";Dy=120*6e4;s(sd,"presenceSnapshotBaseDir");s(ad,"projectDir");s(cd,"createSnapshotStore");s(rd,"pruneStale");s(mt,"readSnapshots");s(My,"parseSnapshot")});import{execFileSync as Fy}from"node:child_process";import{createHash as Ly,randomUUID as $y}from"node:crypto";import{existsSync as jy,mkdirSync as Hy,readdirSync as Uy,readFileSync as dd,renameSync as Gy,statSync as So,unlinkSync as ud,writeFileSync as Ky}from"node:fs";import{homedir as By}from"node:os";import{basename as Wy,join as ke}from"node:path";function ht(e){return ke(e??ke(By(),".maind","presence"),"identity")}function pd(e,t){if(e){let n=Wy(e).replace(/\.jsonl$/i,"");if(Qt.test(n))return n.toLowerCase()}return t&&Qt.test(t)?t.toLowerCase():null}function fd(e){let t=e.nowMs??Date.now();Hy(e.dir,{recursive:!0,mode:448});let n=ke(e.dir,`${e.agentPid}.json`),r=`${n}.tmp-${process.pid}`,i={};if(!e.transcriptPath||!e.model)try{let l=JSON.parse(dd(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}:{}};Ky(r,JSON.stringify(c,null,2)+`
|
|
123
|
-
`,{mode:384}),Gy(r,n),Yy(e.dir,t)}function md(e,t,n,r=Date.now()){try{let i=So(ke(e,`${t}.json`));return r-i.mtimeMs>n}catch{return!0}}function hd(e,t){try{ud(ke(e,`${t}.json`))}catch{}}function Yy(e,t){try{for(let n of Uy(e))if(n.endsWith(".json"))try{let r=So(ke(e,n));t-r.mtimeMs>qy&&ud(ke(e,n))}catch{}}catch{}}function Xy(e){return gd(e)?.file??null}function gd(e){let t=ke(e.dir,`${e.agentPid}.json`);try{if(!jy(t))return null;let n=So(t);if(n.mtimeMs<e.bridgeStartMs-Jy)return null;let r=JSON.parse(dd(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||!Qy(i.cwd,e.cwd)?null:{file:i,mtimeMs:n.mtimeMs}}catch{return null}}function ld(e){return e.replace(/\/+$/,"")}function Qy(e,t){let n=ld(e),r=ld(t);return n===r?!0:n.startsWith(`${r}/`)||r.startsWith(`${n}/`)}function Zy(e,t){let n=Buffer.from(t.replace(/-/g,""),"hex"),r=Ly("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 eb(e){if(process.platform==="win32")return null;try{let t=Fy("ps",["-o","lstart=","-p",String(e)],{timeout:1e3,encoding:"utf8"}).trim().replace(/\s+/g," ");return t.length>0?t:null}catch{return null}}function tb(){try{return U()}catch{return null}}var Qt,Vy,qy,Jy,zy,gr,yr=_(()=>{"use strict";B();Qt=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Vy=8,qy=48*60*6e4,Jy=6e4,zy="9f3c72da-2f10-4b8f-9c31-ad291c0de291";s(ht,"identityDirPath");s(pd,"transcriptStemOf");s(fd,"writeAgentIdentityFile");s(md,"identityFileStale");s(hd,"deleteAgentIdentityFile");s(Yy,"pruneIdentityDir");s(Xy,"readAgentIdentityFile");s(gd,"readAgentIdentityEntry");s(ld,"normDir");s(Qy,"sameSessionTree");s(Zy,"uuidV5");s(eb,"processStartTime");gr=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??ht(),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??tb)(),o=(t.ppidStart??eb)(this.agentPid);if(i!==null&&o!==null&&t.projectKey!==null){this.id=Zy(`${i}|${this.agentPid}|${o}|${t.projectKey}`,zy),this.source="derived";return}this.id=$y(),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>Vy&&this.aliases.shift())}activityAtMs(){return gd({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 Xy({dir:this.dir,agentPid:this.agentPid,cwd:this.cwd,bridgeStartMs:this.bridgeStartMs,nowMs:this.nowMs()})}};s(tb,"defaultDeviceId")});function Eo(){return{ultracode:!1,planMode:!1,autoMode:!1}}var xo=_(()=>{"use strict";s(Eo,"newModeState")});import{createReadStream as nb,existsSync as rb}from"node:fs";import{stat as ib}from"node:fs/promises";import{createInterface as ob}from"node:readline";async function Ro(e){if(!e||!rb(e))return null;let t;try{t=await ib(e)}catch{return null}let n=
|
|
123
|
+
`,{mode:384}),Gy(r,n),Yy(e.dir,t)}function md(e,t,n,r=Date.now()){try{let i=So(ke(e,`${t}.json`));return r-i.mtimeMs>n}catch{return!0}}function hd(e,t){try{ud(ke(e,`${t}.json`))}catch{}}function Yy(e,t){try{for(let n of Uy(e))if(n.endsWith(".json"))try{let r=So(ke(e,n));t-r.mtimeMs>qy&&ud(ke(e,n))}catch{}}catch{}}function Xy(e){return gd(e)?.file??null}function gd(e){let t=ke(e.dir,`${e.agentPid}.json`);try{if(!jy(t))return null;let n=So(t);if(n.mtimeMs<e.bridgeStartMs-Jy)return null;let r=JSON.parse(dd(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||!Qy(i.cwd,e.cwd)?null:{file:i,mtimeMs:n.mtimeMs}}catch{return null}}function ld(e){return e.replace(/\/+$/,"")}function Qy(e,t){let n=ld(e),r=ld(t);return n===r?!0:n.startsWith(`${r}/`)||r.startsWith(`${n}/`)}function Zy(e,t){let n=Buffer.from(t.replace(/-/g,""),"hex"),r=Ly("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 eb(e){if(process.platform==="win32")return null;try{let t=Fy("ps",["-o","lstart=","-p",String(e)],{timeout:1e3,encoding:"utf8"}).trim().replace(/\s+/g," ");return t.length>0?t:null}catch{return null}}function tb(){try{return U()}catch{return null}}var Qt,Vy,qy,Jy,zy,gr,yr=_(()=>{"use strict";B();Qt=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Vy=8,qy=48*60*6e4,Jy=6e4,zy="9f3c72da-2f10-4b8f-9c31-ad291c0de291";s(ht,"identityDirPath");s(pd,"transcriptStemOf");s(fd,"writeAgentIdentityFile");s(md,"identityFileStale");s(hd,"deleteAgentIdentityFile");s(Yy,"pruneIdentityDir");s(Xy,"readAgentIdentityFile");s(gd,"readAgentIdentityEntry");s(ld,"normDir");s(Qy,"sameSessionTree");s(Zy,"uuidV5");s(eb,"processStartTime");gr=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??ht(),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??tb)(),o=(t.ppidStart??eb)(this.agentPid);if(i!==null&&o!==null&&t.projectKey!==null){this.id=Zy(`${i}|${this.agentPid}|${o}|${t.projectKey}`,zy),this.source="derived";return}this.id=$y(),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>Vy&&this.aliases.shift())}activityAtMs(){return gd({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 Xy({dir:this.dir,agentPid:this.agentPid,cwd:this.cwd,bridgeStartMs:this.bridgeStartMs,nowMs:this.nowMs()})}};s(tb,"defaultDeviceId")});function Eo(){return{ultracode:!1,planMode:!1,autoMode:!1}}var xo=_(()=>{"use strict";s(Eo,"newModeState")});import{createReadStream as nb,existsSync as rb}from"node:fs";import{stat as ib}from"node:fs/promises";import{createInterface as ob}from"node:readline";async function Ro(e){if(!e||!rb(e))return null;let t;try{t=await ib(e)}catch{return null}let n=new Set,r=0,i=0,o=0;return await new Promise(a=>{let c=nb(e,{encoding:"utf-8"}),l=ob({input:c});l.on("line",u=>{let d=u.trim();if(d){o++;try{let p=JSON.parse(d),f=p.message?.usage;if(!f)return;let m=typeof p.message?.id=="string"&&p.message.id?p.message.id:null,h=typeof p.requestId=="string"&&p.requestId?p.requestId:null,g=m??h;if(g!==null){if(n.has(g))return;n.add(g)}typeof f.input_tokens=="number"&&(r+=f.input_tokens),typeof f.output_tokens=="number"&&(i+=f.output_tokens)}catch{}}}),l.on("close",()=>{a({input_tokens:r,output_tokens:i,total_tokens:r+i,lines_seen:o,last_modified_ms:t.mtimeMs})}),l.on("error",()=>a(null)),c.on("error",()=>a(null))})}var yd=_(()=>{"use strict";s(Ro,"summariseTranscript")});var bd=_(()=>{"use strict"});function Zt(e){if(!e)return null;let t=null;for(let n of e.matchAll(ab)){let r=n[1].toLowerCase();sb.has(r)&&(t=r)}return t}var sb,ab,br=_(()=>{"use strict";sb=new Set(["low","medium","high","xhigh","max"]),ab=/(?:^|\s)\/(low|medium|high|xhigh|max)(?=\s|$|[!?.,;:])/gi;s(Zt,"detectEffortLevel")});import{createReadStream as cb,existsSync as lb,readdirSync as db}from"node:fs";import{basename as kd,dirname as ub,join as _d}from"node:path";import{createInterface as pb}from"node:readline";function gt(e){return typeof e=="number"&&Number.isFinite(e)&&e>0?e:0}function hb(e){if(!Array.isArray(e))return[];let t=[];for(let n of e){if(!n||typeof n!="object")continue;let r=n;if(r.type!=="tool_use"||typeof r.name!="string")continue;let i=mb[r.name];if(!i||!r.input||typeof r.input!="object")continue;let o=r.input[i];typeof o=="string"&&o.length>0&&t.push(o)}return t}function vd(e){let t=kd(e).replace(/\.jsonl$/,""),n=_d(ub(e),t,"subagents"),r;try{r=db(n)}catch{return[]}return r.filter(i=>i.endsWith(".jsonl")).sort().map(i=>_d(n,i))}async function wd(e,t,n,r,i){lb(e)&&await new Promise(o=>{let a=cb(e,{encoding:"utf-8"}),c=pb({input:a}),l=0;c.on("line",u=>{l++;let d=u.trim();if(!d)return;let p;try{p=JSON.parse(d)}catch{return}if(p.message?.role!=="assistant")return;let f=typeof p.message.id=="string"&&p.message.id?p.message.id:null,m=typeof p.requestId=="string"&&p.requestId?p.requestId:null,h=f??m??`${e}#${l}`,g=hb(p.message.content),y=r.get(h);if(y){for(let E of g)y.edited_paths.includes(E)||y.edited_paths.push(E);return}if(n.has(h))return;n.add(h);let b=p.message.usage??{},w=typeof p.timestamp=="string"?Date.parse(p.timestamp):Number.NaN,v=typeof p.message.model=="string"&&p.message.model?p.message.model:"",k={ts:Number.isFinite(w)?w:0,model:v||"<unknown>",synthetic:v===fb,input_tokens:gt(b.input_tokens),output_tokens:gt(b.output_tokens),cache_read_tokens:gt(b.cache_read_input_tokens),cache_creation_tokens:gt(b.cache_creation_input_tokens),cache_creation_1h_tokens:Math.min(gt(b.cache_creation?.ephemeral_1h_input_tokens),gt(b.cache_creation_input_tokens)),sidechain:p.isSidechain===!0,stream:t,edited_paths:g,cwd:typeof p.cwd=="string"&&p.cwd?p.cwd:null};r.set(h,k),i.push(k)}),c.on("close",()=>o()),c.on("error",()=>o()),a.on("error",()=>o())})}function To(e){let t=0;for(let r of e)r.ts>0?t=r.ts:t>0&&(r.ts=t);let n=0;for(let r=e.length-1;r>=0;r--){let i=e[r];i.ts>0?n=i.ts:n>0&&(i.ts=n)}}async function en(e){let t=new Set,n=new Map,r=[],i=e?vd(e):[];if(!e)return{turns:r,subagent_files:i};let o=[];await wd(e,Fe,t,n,o),To(o),r.push(...o);for(let a of i){let c=[],l=kd(a).replace(/\.jsonl$/,"");await wd(a,l,t,n,c),To(c);for(let u of c)u.sidechain=!0;r.push(...c)}return{turns:r,subagent_files:i}}var Fe,fb,mb,_r=_(()=>{"use strict";Fe="main",fb="<synthetic>",mb={Edit:"file_path",Write:"file_path",MultiEdit:"file_path",NotebookEdit:"notebook_path"};s(gt,"num");s(hb,"editedPathsOf");s(vd,"subagentFilesOf");s(wd,"readStream");s(To,"fillTimestamps");s(en,"collectTurns")});import{createReadStream as gb,existsSync as yb}from"node:fs";import{createInterface as bb}from"node:readline";function xb(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 Ao(e){return typeof e=="string"?[{type:"text",text:e}]:Array.isArray(e)?e.filter(t=>t!==null&&typeof t=="object"):[]}function Rb(e){let t=[];for(let n of e)n.type==="text"&&typeof n.text=="string"&&t.push(n.text);return t.join(`
|
|
124
124
|
`)}function Tb(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 Ab(e,t,n){return _b.test(e)?{polarity:-1,magnitude:yt.rework,kind:"rework"}:n&&wb.test(e)?{polarity:-1,magnitude:yt.correction,kind:"correction"}:kb.test(e)?{polarity:1,magnitude:yt.acceptance,kind:"acceptance"}:t!==null&&Tb(t,e)?{polarity:-1,magnitude:yt.repeat,kind:"repeat"}:{polarity:0,magnitude:0,kind:"neutral"}}function Ib(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:Ed}}async function Io(e,t={}){let n=Ib("");if(!e||!yb(e))return n;let r=t.turns??(await en(e)).turns;for(let m of r)n.input_tokens+=m.input_tokens,n.output_tokens+=m.output_tokens,n.cache_read_tokens+=m.cache_read_tokens,n.cache_creation_tokens+=m.cache_creation_tokens,m.sidechain||n.assistant_turns++;let i=[],o=new Map,a=null,c=!1,l=null;await new Promise(m=>{let h=gb(e,{encoding:"utf-8"}),g=bb({input:h}),y=s(b=>{let w=b.trim();if(!w)return;let v;try{v=JSON.parse(w)}catch{return}if(n.lines_seen++,!n.session_id){let N=v.sessionId??v.session_id;typeof N=="string"&&N&&(n.session_id=N)}v.type==="ai-title"&&typeof v.aiTitle=="string"&&v.aiTitle&&(n.ai_title=v.aiTitle),typeof v.slug=="string"&&v.slug&&(n.session_slug=v.slug);let k=v.message?.role,E=v.isSidechain===!0;if(k==="assistant")for(let N of Ao(v.message?.content)){if(N.type!=="tool_use"||typeof N.name!="string"||!N.name.startsWith(Sd))continue;let Be=N.name.slice(Sd.length);Be&&(n.maind_tool_calls[Be]=(n.maind_tool_calls[Be]??0)+1)}if(E)return;if(k==="assistant"){let N=Ao(v.message?.content),Be=!1;for(let hs of N)hs.type==="tool_use"&&(n.tool_calls++,Be=!0,hs.name==="AskUserQuestion"&&n.agent_questions++);c=Be;return}if(k!=="user")return;let R=Ao(v.message?.content),I=Rb(R);if(I.includes(vb)){n.interrupts++,i.push({polarity:-1,magnitude:yt.interrupt,kind:"interrupt"});return}if(R.some(N=>N.type==="tool_result"&&N.is_error===!0&&typeof N.content=="string"&&N.content.includes(Sb))){n.tool_denials++,i.push({polarity:-1,magnitude:yt.denial,kind:"denial"});return}if(R.some(N=>N.type==="tool_result")||!I.trim())return;n.user_turns++,n.user_chars+=I.length;let T=Zt(I);T&&(a=T);let j=Ab(I,l,c);l=I,j.kind==="correction"?n.corrections++:j.kind==="rework"?n.reworks++:j.kind==="repeat"?n.repeated_instructions++:j.kind==="acceptance"&&n.acceptances++,j.polarity!==0&&i.push(j),c=!1},"processLine");g.on("line",b=>{try{y(b)}catch{}}),g.on("close",()=>m()),g.on("error",()=>m()),h.on("error",()=>m())}),n.effort_at_end=a;for(let m of r)m.synthetic||m.model==="<unknown>"||xb(o,m.model,m.sidechain,m.output_tokens,m.ts);n.model_mix=[...o.values()].sort((m,h)=>m.first_ts-h.first_ts||m.model.localeCompare(h.model)),n.user_token_estimate=Math.round(n.user_chars/4);let u=n.user_token_estimate+n.output_tokens;n.human_share=u>0?Number((n.user_token_estimate/u).toFixed(4)):0;let d=0,p=0,f=[];return i.forEach((m,h)=>{m.polarity>0?n.reactions_pos++:m.polarity<0&&n.reactions_neg++,d=d*Eb+m.polarity*m.magnitude;let g=Number(d.toFixed(3));f.push({t:h,value:g,...m.kind!=="neutral"?{kind:m.kind}:{}}),p+=g,h>0&&i[h-1].polarity<0&&m.polarity>0&&n.recovery_events++}),n.net_sentiment=n.reactions_pos-n.reactions_neg,n.momentum_series=f,n.momentum_final=f.length?f[f.length-1].value:0,n.momentum_auc=Number(p.toFixed(3)),n.ended_positive=n.momentum_final>0,Object.keys(n.maind_tool_calls).length>0&&(n.maind_connected="connected"),n}var Sd,Ed,_b,wb,kb,vb,Sb,Eb,yt,xd=_(()=>{"use strict";br();_r();Sd="mcp__maind__",Ed="2026-09-04",_b=/(\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,wb=/(\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,kb=/(\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,vb="[Request interrupted by user",Sb="The user doesn't want to proceed with this tool use",Eb=.7,yt={denial:1.5,interrupt:1.25,rework:1.5,correction:1,acceptance:1,repeat:.75};s(xb,"bumpModel");s(Ao,"asBlocks");s(Rb,"textOf");s(Tb,"isRepeat");s(Ab,"classifyGenuine");s(Ib,"emptyAnalysis");s(Io,"analyzeSession")});function Co(e){let t=e!==null&&typeof e=="object"?e:{},n=typeof t.slices_stored=="boolean"?t.slices_stored:null;return{analyticsStored:t.analytics_stored===!0,spanStored:t.span_stored===!0,slicesStored:n,slicesReason:n===null?null:typeof t.slices_reason=="string"?t.slices_reason:null,slicesCount:typeof t.slices_count=="number"&&Number.isFinite(t.slices_count)?t.slices_count:0}}function No(e,t){return!t||e.slicesStored===!0?null:e.slicesStored===null?"cost slices sent, verdict unknown \u2014 the ingest endpoint predates slice verdicts (redeploy mcp-client-metrics-ingest)":`cost slices not stored: ${e.slicesReason??"no reason given"} (${e.slicesCount} sent)`}function Po(e,t,n,r="unknown",i){let o={session_analytics:{...e,ingest_source:r,...n?.client_session_id?{client_session_id:n.client_session_id}:{},...n?.client?{client:n.client}:{},...i?{cost_slices:i.slices,cost_context_ok:i.context_ok}:{}}};return t&&t.started_at&&(o.session_span=n?{...t,...n}:t),o}var Rd=_(()=>{"use strict";s(Co,"parseIngestResponse");s(No,"describeSliceVerdict");s(Po,"ingestBody")});import{isAbsolute as Td,relative as Cb,resolve as Ad,sep as Id}from"node:path";function wr(e){if(typeof e!="string"||!e)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null}function Mo(e){let t=e;if(typeof e=="string")try{t=JSON.parse(e)}catch{return null}if(!t||typeof t!="object")return null;let n=t;if(n.ok!==!0)return null;let r=s(a=>{if(!Array.isArray(a))return[];let c=[];for(let l of a){if(!l||typeof l!="object")continue;let u=l,d=wr(u.from);typeof u.object_id!="string"||!Oo.test(u.object_id)||d===null||c.push({object_id:u.object_id.toLowerCase(),from:d,to:wr(u.to)})}return c},"windows"),i=[];if(Array.isArray(n.claims))for(let a of n.claims){if(!a||typeof a!="object")continue;let c=a,l=wr(c.from);typeof c.path_prefix!="string"||l===null||i.push({path_prefix:c.path_prefix,from:l,to:wr(c.to)})}let o=[];if(Array.isArray(n.anchors))for(let a of n.anchors){if(!a||typeof a!="object")continue;let c=a;typeof c.object_id!="string"||!Oo.test(c.object_id)||typeof c.path_prefix=="string"&&o.push({object_id:c.object_id.toLowerCase(),path_prefix:c.path_prefix})}return{canonical_session_id:typeof n.canonical_session_id=="string"&&Oo.test(n.canonical_session_id)?n.canonical_session_id.toLowerCase():null,session_row:n.session_row===!0,leases:r(n.leases),bindings:r(n.bindings),claims:i,anchors:o}}function Nd(e,t){if(!Td(e))return null;let n=Cb(Ad(t),Ad(e));return!n||n==="."||n.startsWith("..")||Td(n)?null:Id==="/"?n:n.split(Id).join("/")}function Nb(e,t){return t===""||e===t||e.startsWith(t+"/")}function Fo(e,t){return e===t||e===""||t===""||e.startsWith(t+"/")||t.startsWith(e+"/")}function Pd(e){return[...e].sort((t,n)=>n.path_prefix.length-t.path_prefix.length||t.object_id.localeCompare(n.object_id))}function Lo(e,t){for(let n of Pd(t))if(Nb(e,n.path_prefix))return n.object_id;return null}function Pb(e,t){for(let n of Pd(t))if(Fo(e,n.path_prefix))return n.object_id;return null}function Do(e,t){return e>=t.from&&(t.to===null||e<t.to)}function Od(e,t,n,r){let i=e.ts,o=r?.anchors??[],a=t.map(c=>Lo(c,o)).filter(c=>c!==null);if(r&&i>0){let c=r.leases.filter(d=>Do(i,d));if(c.length)return c.sort((d,p)=>p.from-d.from||d.object_id.localeCompare(p.object_id)),{object_id:c[0].object_id,source:"lease"};let l=r.bindings.filter(d=>Do(i,d));if(l.length)return{object_id:(l.find(p=>a.includes(p.object_id))??l.find(p=>n!==null&&p.object_id===n.object_id)??[...l].sort((p,f)=>p.object_id.localeCompare(f.object_id))[0]).object_id,source:"binding"};let u=r.claims.filter(d=>Do(i,d));if(u.length){let d=t[0]??n?.rel??null,p=(d===null?u:u.filter(f=>Fo(f.path_prefix,d))).sort((f,m)=>m.path_prefix.length-f.path_prefix.length);for(let f of p){let m=Pb(f.path_prefix,o);if(m)return{object_id:m,source:"claim"}}}}return a.length?{object_id:a[0],source:"path"}:n?{object_id:n.object_id,source:"path"}:{object_id:null,source:"none"}}function $o(e,t,n){let r=t?.anchors??[],i=s(h=>{if(!n.repoRoot)return[];let g=[];for(let y of h.edited_paths){let b=Nd(y,n.repoRoot);b!==null&&!g.includes(b)&&g.push(b)}return g},"relOf"),o=s(h=>{for(let g of h){let y=Lo(g,r);if(y)return{object_id:y,rel:g}}return null},"firstAnchoredEdit"),a=new Map;for(let h of e){let g=a.get(h.stream)??[];g.push(h),a.set(h.stream,g)}let c=[...a.entries()].sort(([h],[g])=>h===Fe?-1:g===Fe?1:0),l=[],u=s(h=>{let g=null;for(let y of l){if(y.ts>h&&h>0)break;g=y.seg}return g},"mainSegmentAt"),d=new Map;for(let[h,g]of c){let y=g.map((w,v)=>({t:w,i:v,rels:i(w)})).sort((w,v)=>w.t.ts-v.t.ts||w.i-v.i),b=null;for(let w of y){let v=o(w.rels);if(v){b=v;break}}!b&&h!==Fe&&y.length&&(b=u(y[0].t.ts));for(let w of y){let v=o(w.rels);v&&(b=v),h===Fe&&l.push({ts:w.t.ts,seg:b});let k=w.t;if(k.input_tokens+k.output_tokens+k.cache_read_tokens+k.cache_creation_tokens===0)continue;let R=Od(k,w.rels,b,t),I=k.input_tokens+k.cache_read_tokens+k.cache_creation_tokens>Cd?"above_200k":"standard",A=`${R.object_id??""}|${R.source}|${k.model}|${I}`,T=d.get(A);T||(T={object_id:R.object_id,attribution_source:R.source,model:k.model,context_tier:I,input_tokens:0,output_tokens:0,cache_read_tokens:0,cache_creation_tokens:0,cache_creation_1h_tokens:0,first_ts:"",last_ts:"",turns:0,firstMs:0,lastMs:0},d.set(A,T)),T.input_tokens+=k.input_tokens,T.output_tokens+=k.output_tokens,T.cache_read_tokens+=k.cache_read_tokens,T.cache_creation_tokens+=k.cache_creation_tokens,T.cache_creation_1h_tokens+=k.cache_creation_1h_tokens,T.turns+=1,k.ts>0&&((T.firstMs===0||k.ts<T.firstMs)&&(T.firstMs=k.ts),k.ts>T.lastMs&&(T.lastMs=k.ts))}}let p=n.nowMs??Date.now(),f=[];for(let h of d.values()){let{firstMs:g,lastMs:y,...b}=h;b.first_ts=new Date(g>0?g:p).toISOString(),b.last_ts=new Date(y>0?y:p).toISOString(),f.push(b)}let m={lease:0,binding:1,claim:2,path:3,none:4};return f.sort((h,g)=>m[h.attribution_source]-m[g.attribution_source]||(h.object_id??"").localeCompare(g.object_id??"")||h.model.localeCompare(g.model)||h.context_tier.localeCompare(g.context_tier)),f}var Cd,Oo,Dd=_(()=>{"use strict";_r();Cd=2e5,Oo=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;s(wr,"msOf");s(Mo,"parseCostContext");s(Nd,"toRepoRelative");s(Nb,"underPrefix");s(Fo,"prefixesOverlap");s(Pd,"sortedAnchors");s(Lo,"anchorFor");s(Pb,"bestAnchorOverlapping");s(Do,"inWindow");s(Od,"assignTurn");s($o,"sliceSession")});import{createReadStream as Ob,existsSync as Db}from"node:fs";import{createInterface as Mb}from"node:readline";function Md(e){return typeof e=="string"?[{type:"text",text:e}]:Array.isArray(e)?e.filter(t=>typeof t=="object"&&t!==null):[]}function $b(e){return e.filter(t=>t.type==="text"&&typeof t.text=="string").map(t=>t.text).join(`
|
|
125
125
|
`)}function $d(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 jb(e){let t=e.message?.role;if(t==="assistant")return{holder:Md(e.message?.content).some(c=>c.type==="tool_use")?"agent":"human",genuine:!1};if(t!=="user")return null;let n=Md(e.message?.content),r=$b(n);return r.includes(Fb)?{holder:"human",genuine:!1}:n.some(o=>o.type==="tool_result"&&o.is_error===!0&&typeof o.content=="string"&&o.content.includes(Lb))?{holder:"agent",genuine:!1}:n.some(o=>o.type==="tool_result")?{holder:"agent",genuine:!1}:r.trim()?{holder:"agent",genuine:!0}:null}async function jo(e){let t=$d("");if(!e||!Db(e))return t;let n=null,r=0,i=0,o=null,a="human",c=[];return await new Promise(l=>{let u=Ob(e,{encoding:"utf-8"}),d=Mb({input:u}),p=s(f=>{let m=f.trim();if(!m)return;let h;try{h=JSON.parse(m)}catch{return}if(!t.session_id){let b=h.sessionId??h.session_id;typeof b=="string"&&b&&(t.session_id=b)}if(h.isSidechain===!0)return;let g=typeof h.timestamp=="string"?Date.parse(h.timestamp):NaN;if(!Number.isFinite(g)||o!==null&&g<o)return;let y=jb(h);if(y!==null){if(t.event_count++,y.genuine&&t.turn_count++,n===null&&(n=g),r=g,o!==null){let b=g-o;a==="agent"?i+=b:b>=Fd*1e3&&(t.pause_count++,t.pause_seconds+=Math.round(b/1e3),c.length<Ld&&c.push({offset_seconds:Math.round((o-n)/1e3),duration_seconds:Math.round(b/1e3)}))}o=g,a=y.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 Fb,Lb,Fd,Ld,jd=_(()=>{"use strict";Fb="[Request interrupted by user",Lb="The user doesn't want to proceed with this tool use",Fd=60,Ld=200;s(Md,"asBlocks");s($b,"textOf");s($d,"emptySpan");s(jb,"classify");s(jo,"analyzeSpan")});import{createReadStream as Hb,existsSync as Ub}from"node:fs";import{createInterface as Gb}from"node:readline";function Bb(e){return e==="ultracode"?"ultracode":e==="plan"?"planMode":"autoMode"}function kr(e){return typeof e=="number"&&Number.isFinite(e)?e:0}function Wb(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
|
-
`)}return""}async function Ho(e,t={}){if(!e||!Ub(e))return{events:[],bytesRead:t.start??0,effortAtEnd:t.initialEffort??null,modesAtEnd:t.initialModes?{...t.initialModes}:Eo()};let n=[],r=t.initialEffort??null,
|
|
126
|
+
`)}return""}async function Ho(e,t={}){if(!e||!Ub(e))return{events:[],bytesRead:t.start??0,effortAtEnd:t.initialEffort??null,modesAtEnd:t.initialModes?{...t.initialModes}:Eo(),seenMessagesAtEnd:new Set(t.initialSeenMessages??[])};let n=[],r=new Set(t.initialSeenMessages??[]),i=t.initialEffort??null,o=t.initialModes?{...t.initialModes}:Eo(),a=t.start??0;return await new Promise(c=>{let l=Hb(e,{encoding:"utf-8",start:t.start??0}),u=Gb({input:l});u.on("line",p=>{a+=Buffer.byteLength(p,"utf-8")+1;let f=p.trim();if(!f)return;let m;try{m=JSON.parse(f)}catch{return}let h=m.sessionId??m.session_id??"",g=m.timestamp?Date.parse(m.timestamp):Date.now(),y=m.message?.role;if(m.type==="ai-title"&&typeof m.aiTitle=="string"){n.push({kind:"title",session_id:h,ts:g,title:m.aiTitle});return}if(m.type==="attachment"&&m.attachment?.type){let b=Kb[m.attachment.type];b&&(o[Bb(b.mode)]=b.active,n.push({kind:"mode",session_id:h,ts:g,mode:b.mode,active:b.active}));return}if(y==="user"){let b=Wb(m.message?.content),w=Zt(b);w&&(i=w);let v={session_id:h,ts:g,text:b,effort_directive:w};n.push({kind:"user",...v});return}if(y==="assistant"){let b=m.message?.usage,w=typeof m.message?.id=="string"&&m.message.id?m.message.id:null,v=typeof m.requestId=="string"&&m.requestId?m.requestId:null,k=w??v,E=k!==null&&r.has(k);k!==null&&!E&&r.add(k);let R={session_id:h,ts:g,model:m.message?.model??null,input_tokens:E?0:kr(b?.input_tokens),output_tokens:E?0:kr(b?.output_tokens),cache_read_input_tokens:E?0:kr(b?.cache_read_input_tokens),cache_creation_input_tokens:E?0:kr(b?.cache_creation_input_tokens),effort:i,isSidechain:m.isSidechain===!0,...o.ultracode?{ultracode:!0}:{},...o.planMode?{planMode:!0}:{},...o.autoMode?{autoMode:!0}:{}};n.push({kind:"assistant",...R})}});let d=s(()=>({events:n,bytesRead:a,effortAtEnd:i,modesAtEnd:{...o},seenMessagesAtEnd:new Set(r)}),"finalResult");u.on("close",()=>c(d())),u.on("error",()=>c(d())),l.on("error",()=>c(d()))})}var Kb,Hd=_(()=>{"use strict";br();xo();Kb={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(Bb,"modeFlagKey");s(kr,"num");s(Wb,"extractUserText");s(Ho,"streamTranscript")});var Ud=_(()=>{"use strict"});import{homedir as Vb}from"node:os";import{join as qb}from"node:path";function Go(e){return e.replace(/[/.]/g,"-")}var Jb,Uo,Gd=_(()=>{"use strict";Jb=Vb(),Uo=qb(Jb,".claude","projects");s(Go,"projectPathFromCwd")});var tn=_(()=>{"use strict";xo();yd();bd();xd();Rd();_r();Dd();jd();Hd();br();Ud();Gd()});async function Wd(e){return Le("get_session_briefing",{tools:["claude-code"]},e)}async function Le(e,t,n){let r=n.mcpUrl??process.env.MAIND_MCP_URL??Ko,i=new AbortController,o=setTimeout(()=>i.abort(),n.timeoutMs??3e3);try{let a={"content-type":"application/json",accept:"application/json, text/event-stream",authorization:`Bearer ${n.apiKey}`,"x-maind-client-family":n.clientFamily??"claude-code","x-maind-client-version":n.bridgeVersion,"x-maind-bridge-version":n.bridgeVersion};n.deviceId&&(a["x-maind-device-id"]=n.deviceId),n.projectKey&&(a["x-maind-project-key"]=n.projectKey);let c=await fetch(r,{method:"POST",headers:a,signal:i.signal,body:JSON.stringify({jsonrpc:"2.0",id:"guard-init",method:"initialize",params:{protocolVersion:r_,capabilities:{},clientInfo:{name:"maind-mcp-bridge-guard",version:n.bridgeVersion}}})}),l=c.headers.get("mcp-session-id");if(await c.text().catch(()=>""),!c.ok||!l)return null;let u={...a,"mcp-session-id":l};await fetch(r,{method:"POST",headers:u,signal:i.signal,body:JSON.stringify({jsonrpc:"2.0",method:"notifications/initialized"})}).then(g=>g.text().catch(()=>"")).catch(()=>"");let d=await fetch(r,{method:"POST",headers:u,signal:i.signal,body:JSON.stringify({jsonrpc:"2.0",id:"guard-briefing",method:"tools/call",params:{name:e,arguments:t}})});if(!d.ok)return null;let f=(d.headers.get("content-type")??"").startsWith("text/event-stream")?await i_(d):await d.text();if(f.trim().length===0)return null;let m=JSON.parse(f);if(m.error||m.result?.isError)return null;let h=m.result?.content?.find(g=>g.type==="text"&&typeof g.text=="string")?.text;return typeof h=="string"&&h.trim().length>0?h:null}catch{return null}finally{clearTimeout(o)}}async function i_(e){if(!e.body)return"";let t=e.body.getReader(),n=new TextDecoder,r="",i=[],o="",a=s(()=>{if(i.length===0)return;let c=i.join(`
|
|
127
127
|
`).trim();i=[],c.length>0&&(o=c)},"flush");for(;;){let{value:c,done:l}=await t.read();if(l)break;r+=n.decode(c,{stream:!0});let u;for(;(u=r.indexOf(`
|
|
128
128
|
`))!==-1;){let d=r.slice(0,u);r=r.slice(u+1);let p=d.endsWith("\r")?d.slice(0,-1):d;if(p===""){a();continue}p.startsWith(":")||p.startsWith("data:")&&i.push(p.slice(5).replace(/^\s/,""))}}return a(),o}var Ko,r_,nn=_(()=>{"use strict";Ko="https://mcp.maind.dev/mcp",r_="2025-06-18";s(Wd,"fetchSessionBriefing");s(Le,"fetchToolText");s(i_,"readSseMessage")});function o_(e){return{"content-type":"application/json",authorization:`Bearer ${e}`,"x-maind-device-id":U()}}async function Vd(e,t,n){if(n.length===0)return{ok:!0,inserted:0};try{let r=await fetch(e,{method:"POST",headers:o_(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 Sr,Bo=_(()=>{"use strict";B();Sr=process.env.MAIND_ENDPOINT??"https://vsddmiosisvfrairepxv.supabase.co/functions/v1/mcp-client-metrics-ingest";s(o_,"ingestHeaders");s(Vd,"postMetrics")});function qd(e,t){return e===t||e===""||t===""?!0:e.startsWith(t+"/")||t.startsWith(e+"/")}function zd(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 bt(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 rn(e){return e<90?`${Math.max(1,Math.round(e))}s`:`${Math.round(e/60)}m`}function Yd(e,t,n){let r=n.maxAgeMs??Jd,i=n.nowMs-Date.parse(e.written_at);if(!Number.isFinite(i)||i<0||i>r)return null;let o=i/1e3,a=zd(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)qd(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 ${rn(l.last_seen_seconds+o)} ago)${u.note?` \u2014 note: "${u.note}"`:""}, claim expires in ${rn(u.remaining_seconds)}`);if(n.via==="ppid"&&l.is_own_user){for(let u of l.working_paths)if(qd(t,u)){c.push(`'${u}' has recent changes by your own peer session ${l.session_id_short}${l.branch?` (branch ${l.branch})`:""}, last seen ${rn(l.last_seen_seconds+o)} ago`);break}}}return c.length===0?null:`[maind coordination] Editing '${t}' overlaps parallel work (view as of ${rn(o)} ago, advisory \u2014 never a lock):
|
|
129
129
|
`+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":29480,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"../../packages/code-index/build/repo-health/supabase-migrations.js","kind":"import-statement","original":"./supabase-migrations.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/theme-class-drift.js":{"bytes":18006,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/detector-adapter.js":{"bytes":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/turns.js":{"bytes":7881,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/session-analysis.js":{"bytes":18347,"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/turns.js","kind":"import-statement","original":"./turns.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/ingest.js":{"bytes":6050,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/cost-slices.js":{"bytes":13582,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/turns.js","kind":"import-statement","original":"./turns.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/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":1169,"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/turns.js","kind":"import-statement","original":"./turns.js"},{"path":"../../packages/claude-code-telemetry/dist/cost-slices.js","kind":"import-statement","original":"./cost-slices.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/guard/mcp-client.ts":{"bytes":6343,"imports":[{"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/cost.ts":{"bytes":1705,"imports":[{"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/session-end/identity.ts":{"bytes":1349,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/session-end/index.ts":{"bytes":10854,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"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/guard/mcp-client.ts","kind":"import-statement","original":"../guard/mcp-client.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":"src/session-end/cost.ts","kind":"import-statement","original":"./cost.js"},{"path":"src/session-end/identity.ts","kind":"import-statement","original":"./identity.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/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:path","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:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node: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: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: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":1298},"src/install/atomic-write.ts":{"bytesInOutput":1131},"src/install/hook-wiring.ts":{"bytesInOutput":10993},"src/install/hook-merge.ts":{"bytesInOutput":3898},"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":9751},"../../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/turns.js":{"bytesInOutput":2701},"../../packages/claude-code-telemetry/dist/session-analysis.js":{"bytesInOutput":5667},"../../packages/claude-code-telemetry/dist/ingest.js":{"bytesInOutput":1072},"../../packages/claude-code-telemetry/dist/cost-slices.js":{"bytesInOutput":5268},"../../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":89},"src/guard/mcp-client.ts":{"bytesInOutput":2341},"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/cost.ts":{"bytesInOutput":214},"src/session-end/identity.ts":{"bytesInOutput":266},"src/session-end/index.ts":{"bytesInOutput":2453},"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/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":3395},"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":3683},"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":2078},"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":372129}}}
|
|
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":29480,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"../../packages/code-index/build/repo-health/supabase-migrations.js","kind":"import-statement","original":"./supabase-migrations.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/theme-class-drift.js":{"bytes":18006,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/code-index/build/repo-health/detector-adapter.js":{"bytes":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":2979,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/decisions.js":{"bytes":6845,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/effort.js":{"bytes":1858,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/turns.js":{"bytes":7881,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/session-analysis.js":{"bytes":18347,"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/turns.js","kind":"import-statement","original":"./turns.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/ingest.js":{"bytes":6050,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/cost-slices.js":{"bytes":13582,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/turns.js","kind":"import-statement","original":"./turns.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/session-span.js":{"bytes":10271,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/parse.js":{"bytes":9292,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/effort.js","kind":"import-statement","original":"./effort.js"},{"path":"../../packages/claude-code-telemetry/dist/types.js","kind":"import-statement","original":"./types.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/windows.js":{"bytes":3963,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/projects.js":{"bytes":3166,"imports":[{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/index.js":{"bytes":1169,"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/turns.js","kind":"import-statement","original":"./turns.js"},{"path":"../../packages/claude-code-telemetry/dist/cost-slices.js","kind":"import-statement","original":"./cost-slices.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/guard/mcp-client.ts":{"bytes":6343,"imports":[{"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/cost.ts":{"bytes":1705,"imports":[{"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/session-end/identity.ts":{"bytes":1349,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/session-end/index.ts":{"bytes":10854,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"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/guard/mcp-client.ts","kind":"import-statement","original":"../guard/mcp-client.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":"src/session-end/cost.ts","kind":"import-statement","original":"./cost.js"},{"path":"src/session-end/identity.ts","kind":"import-statement","original":"./identity.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/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:path","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:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node: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: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: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":1298},"src/install/atomic-write.ts":{"bytesInOutput":1131},"src/install/hook-wiring.ts":{"bytesInOutput":10993},"src/install/hook-merge.ts":{"bytesInOutput":3898},"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":9751},"../../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":960},"../../packages/claude-code-telemetry/dist/decisions.js":{"bytesInOutput":29},"../../packages/claude-code-telemetry/dist/effort.js":{"bytesInOutput":297},"../../packages/claude-code-telemetry/dist/turns.js":{"bytesInOutput":2701},"../../packages/claude-code-telemetry/dist/session-analysis.js":{"bytesInOutput":5667},"../../packages/claude-code-telemetry/dist/ingest.js":{"bytesInOutput":1072},"../../packages/claude-code-telemetry/dist/cost-slices.js":{"bytesInOutput":5268},"../../packages/claude-code-telemetry/dist/session-span.js":{"bytesInOutput":2423},"../../packages/claude-code-telemetry/dist/parse.js":{"bytesInOutput":2801},"../../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":89},"src/guard/mcp-client.ts":{"bytesInOutput":2341},"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/cost.ts":{"bytesInOutput":214},"src/session-end/identity.ts":{"bytesInOutput":266},"src/session-end/index.ts":{"bytesInOutput":2453},"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/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":3395},"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":3683},"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":2078},"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":372637}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maind-dev/mcp-bridge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.64.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",
|