@maind-dev/mcp-bridge 0.25.0 → 0.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -84,7 +84,7 @@ ${original}`
84
84
  return JSON.stringify({ jsonrpc: "2.0", id, result });
85
85
  }
86
86
  function fallbackMarker(cachedAt, now) {
87
- return `NOTE (maind cache fallback): the maind MCP server was unreachable, so these project conventions were served from a local snapshot taken ${relativeAge(cachedAt, now)}. They may be stale, and maind tools are unavailable until the server is reachable again.`;
87
+ return `NOTE (MAIND cache fallback): the MAIND MCP server was unreachable, so these project conventions were served from a local snapshot taken ${relativeAge(cachedAt, now)}. They may be stale, and MAIND tools are unavailable until the server is reachable again.`;
88
88
  }
89
89
  function relativeAge(cachedAt, now) {
90
90
  const then = Date.parse(cachedAt);
@@ -202,7 +202,7 @@ var BRIDGE_VERSION;
202
202
  var init_version = __esm({
203
203
  "src/version.ts"() {
204
204
  "use strict";
205
- BRIDGE_VERSION = "0.25.0";
205
+ BRIDGE_VERSION = "0.25.1";
206
206
  }
207
207
  });
208
208
 
@@ -1123,8 +1123,103 @@ var init_history = __esm({
1123
1123
  }
1124
1124
  });
1125
1125
 
1126
- // ../../packages/code-index/build/repo-health/divergence.js
1126
+ // ../../packages/code-index/build/repo-health/hooks.js
1127
1127
  import { execFileSync as execFileSync4 } from "node:child_process";
1128
+ import { readdirSync as readdirSync2, statSync as statSync2 } from "node:fs";
1129
+ import { isAbsolute as isAbsolute2, join as join11, relative, resolve as resolve2 } from "node:path";
1130
+ function isRealHook(name) {
1131
+ return !name.endsWith(".sample") && !name.startsWith(".");
1132
+ }
1133
+ function gitConfig(root, key) {
1134
+ try {
1135
+ const out2 = execFileSync4("git", ["-C", root, "config", "--get", key], {
1136
+ encoding: "utf-8",
1137
+ timeout: 5e3,
1138
+ stdio: ["ignore", "pipe", "ignore"]
1139
+ }).trim();
1140
+ return out2.length > 0 ? out2 : null;
1141
+ } catch {
1142
+ return null;
1143
+ }
1144
+ }
1145
+ function hasExecutableHook(dir) {
1146
+ let entries;
1147
+ try {
1148
+ entries = readdirSync2(dir);
1149
+ } catch {
1150
+ return null;
1151
+ }
1152
+ for (const name of entries.filter(isRealHook)) {
1153
+ try {
1154
+ const st = statSync2(join11(dir, name));
1155
+ if (st.isFile() && (st.mode & 73) !== 0)
1156
+ return true;
1157
+ } catch {
1158
+ }
1159
+ }
1160
+ return false;
1161
+ }
1162
+ function isDir(p) {
1163
+ try {
1164
+ return statSync2(p).isDirectory();
1165
+ } catch {
1166
+ return false;
1167
+ }
1168
+ }
1169
+ function displayPath(root, absolute) {
1170
+ const rel = relative(root, absolute);
1171
+ return !rel || rel.startsWith("..") ? absolute : rel;
1172
+ }
1173
+ function resolveHookState(root) {
1174
+ const hookDirs = VERSIONED_HOOK_DIRS.filter((d) => isDir(join11(root, d)));
1175
+ const hooksPath = gitConfig(root, "core.hooksPath");
1176
+ const effectiveAbs = hooksPath ? isAbsolute2(hooksPath) ? hooksPath : resolve2(root, hooksPath) : join11(root, ".git", "hooks");
1177
+ const effectiveDir = displayPath(root, effectiveAbs);
1178
+ const found = hasExecutableHook(effectiveAbs);
1179
+ if (found === true) {
1180
+ return {
1181
+ verdict: "wired",
1182
+ reason: hooksPath ? "wired" : "default_path",
1183
+ hookDirs,
1184
+ hooksPath,
1185
+ effectiveDir
1186
+ };
1187
+ }
1188
+ const reason = hooksPath ? found === null ? "path_missing" : "path_empty" : hookDirs.length > 0 ? "path_unset" : "no_hooks";
1189
+ return {
1190
+ verdict: hookDirs.length > 0 ? "present_unwired" : "absent",
1191
+ reason,
1192
+ hookDirs,
1193
+ hooksPath,
1194
+ effectiveDir
1195
+ };
1196
+ }
1197
+ function describeHookState(state) {
1198
+ switch (state.reason) {
1199
+ case "wired":
1200
+ return `Git-Gates aktiv (core.hooksPath \u2192 ${state.effectiveDir}).`;
1201
+ case "default_path":
1202
+ return "Git-Gates aktiv (.git/hooks, nicht versioniert).";
1203
+ case "path_unset":
1204
+ return `${state.hookDirs.join(", ")} liegt im Repo, aber core.hooksPath ist ungesetzt \u2014 kein Gate feuert.`;
1205
+ case "path_missing":
1206
+ return `core.hooksPath zeigt auf ${state.effectiveDir}, das es nicht gibt \u2014 git f\xFChrt keinen Hook aus.`;
1207
+ case "path_empty":
1208
+ return `core.hooksPath zeigt auf ${state.effectiveDir}, dort liegt kein ausf\xFChrbarer Hook.`;
1209
+ case "no_hooks":
1210
+ return "Keine Git-Hooks im Repo.";
1211
+ }
1212
+ }
1213
+ var VERSIONED_HOOK_DIRS;
1214
+ var init_hooks = __esm({
1215
+ "../../packages/code-index/build/repo-health/hooks.js"() {
1216
+ "use strict";
1217
+ VERSIONED_HOOK_DIRS = [".githooks", ".husky"];
1218
+ }
1219
+ });
1220
+
1221
+ // ../../packages/code-index/build/repo-health/divergence.js
1222
+ import { execFileSync as execFileSync5 } from "node:child_process";
1128
1223
  import { existsSync as existsSync4, readFileSync as readFileSync4 } from "node:fs";
1129
1224
  import { posix as posix3 } from "node:path";
1130
1225
  function computeDivergence(facts) {
@@ -1250,8 +1345,23 @@ function computeDivergence(facts) {
1250
1345
  hint: "Check the CI provider's billing/spending status before debugging code."
1251
1346
  });
1252
1347
  }
1348
+ const hookFinding = computeHookFinding(facts.hooks);
1349
+ if (hookFinding)
1350
+ out2.push(hookFinding);
1253
1351
  return sortFindings(out2);
1254
1352
  }
1353
+ function computeHookFinding(hooks) {
1354
+ if (!hooks || hooks.verdict !== "present_unwired")
1355
+ return null;
1356
+ return {
1357
+ id: "setup.hooks-unwired",
1358
+ status: "warn",
1359
+ scope: "setup",
1360
+ title: "Git-Hooks liegen im Repo, feuern aber nicht",
1361
+ detail: describeHookState(hooks),
1362
+ hint: hooks.reason === "path_missing" ? `core.hooksPath zeigt ins Leere. Korrigieren: git config core.hooksPath ${hooks.hookDirs[0] ?? ".githooks"}` : `git config core.hooksPath ${hooks.hookDirs[0] ?? ".githooks"} \u2014 git klont das Verzeichnis mit, den Pfad nie.`
1363
+ };
1364
+ }
1255
1365
  function sortFindings(f) {
1256
1366
  return [...f].sort((a, b) => STATUS_ORDER[a.status] - STATUS_ORDER[b.status] || a.id.localeCompare(b.id));
1257
1367
  }
@@ -1340,7 +1450,8 @@ async function gatherRepoHealthFacts(repoRoot, opts = {}) {
1340
1450
  otherWorktrees: 0,
1341
1451
  worktreeParity: null,
1342
1452
  release: null,
1343
- unmergedMigrations: []
1453
+ unmergedMigrations: [],
1454
+ hooks: null
1344
1455
  };
1345
1456
  }
1346
1457
  const branchRaw = trimOrNull(runGit(repoRoot, ["rev-parse", "--abbrev-ref", "HEAD"]));
@@ -1419,7 +1530,8 @@ async function gatherRepoHealthFacts(repoRoot, opts = {}) {
1419
1530
  otherWorktrees,
1420
1531
  worktreeParity,
1421
1532
  release: release2,
1422
- unmergedMigrations
1533
+ unmergedMigrations,
1534
+ hooks: resolveHookState(repoRoot)
1423
1535
  };
1424
1536
  }
1425
1537
  function samePath(a, b) {
@@ -1450,7 +1562,7 @@ function gatherReleaseFact(repoRoot, branch) {
1450
1562
  }
1451
1563
  function runGh(repoRoot, args) {
1452
1564
  try {
1453
- return execFileSync4("gh", args, {
1565
+ return execFileSync5("gh", args, {
1454
1566
  cwd: repoRoot,
1455
1567
  encoding: "utf8",
1456
1568
  stdio: ["ignore", "pipe", "ignore"],
@@ -1470,6 +1582,7 @@ var DEFAULT_WORKTREE_PROBE_PATHS, WORKTREE_REQUIREMENTS_RELPATH, STATUS_ORDER;
1470
1582
  var init_divergence = __esm({
1471
1583
  "../../packages/code-index/build/repo-health/divergence.js"() {
1472
1584
  "use strict";
1585
+ init_hooks();
1473
1586
  init_discover();
1474
1587
  DEFAULT_WORKTREE_PROBE_PATHS = [
1475
1588
  "supabase/config.toml",
@@ -1482,7 +1595,7 @@ var init_divergence = __esm({
1482
1595
  });
1483
1596
 
1484
1597
  // ../../packages/code-index/build/repo-health/number-collisions.js
1485
- import { existsSync as existsSync5, readdirSync as readdirSync2 } from "node:fs";
1598
+ import { existsSync as existsSync5, readdirSync as readdirSync3 } from "node:fs";
1486
1599
  import { posix as posix4 } from "node:path";
1487
1600
  function isCounterNamespace(numbers, opts = {}) {
1488
1601
  const minFiles = opts.minFiles ?? DEFAULT_MIN_FILES;
@@ -1689,7 +1802,7 @@ async function gatherNumberCollisionFacts(repoRoot, opts = {}) {
1689
1802
  if (!existsSync5(abs))
1690
1803
  continue;
1691
1804
  try {
1692
- for (const file of readdirSync2(abs))
1805
+ for (const file of readdirSync3(abs))
1693
1806
  record(`${dir}/${file}`, "self", "this worktree");
1694
1807
  } catch {
1695
1808
  skipped.push(`could not read ${dir}`);
@@ -1720,7 +1833,7 @@ async function gatherNumberCollisionFacts(repoRoot, opts = {}) {
1720
1833
  if (!existsSync5(abs))
1721
1834
  continue;
1722
1835
  try {
1723
- for (const file of readdirSync2(abs)) {
1836
+ for (const file of readdirSync3(abs)) {
1724
1837
  record(`${dir}/${file}`, "worktree", `Worktree ${root}`);
1725
1838
  }
1726
1839
  } catch {
@@ -2443,6 +2556,7 @@ var init_build = __esm({
2443
2556
  init_history();
2444
2557
  init_risk_rules();
2445
2558
  init_divergence();
2559
+ init_hooks();
2446
2560
  init_number_collisions();
2447
2561
  init_types();
2448
2562
  init_types2();
@@ -2454,20 +2568,20 @@ var init_build = __esm({
2454
2568
  // src/presence-snapshot.ts
2455
2569
  import {
2456
2570
  mkdirSync as mkdirSync4,
2457
- readdirSync as readdirSync3,
2571
+ readdirSync as readdirSync4,
2458
2572
  readFileSync as readFileSync7,
2459
2573
  renameSync as renameSync2,
2460
- statSync as statSync2,
2574
+ statSync as statSync3,
2461
2575
  unlinkSync,
2462
2576
  writeFileSync as writeFileSync3
2463
2577
  } from "node:fs";
2464
2578
  import { homedir as homedir3 } from "node:os";
2465
- import { join as join12 } from "node:path";
2579
+ import { join as join13 } from "node:path";
2466
2580
  function presenceSnapshotBaseDir() {
2467
- return join12(homedir3(), ".maind", "presence");
2581
+ return join13(homedir3(), ".maind", "presence");
2468
2582
  }
2469
2583
  function projectDir(baseDir, projectKey) {
2470
- return join12(baseDir, projectKey);
2584
+ return join13(baseDir, projectKey);
2471
2585
  }
2472
2586
  function createSnapshotStore(opts) {
2473
2587
  const baseDir = opts.baseDir ?? presenceSnapshotBaseDir();
@@ -2496,7 +2610,7 @@ function createSnapshotStore(opts) {
2496
2610
  conflicts: Array.isArray(p.conflicts) ? p.conflicts : []
2497
2611
  };
2498
2612
  mkdirSync4(dir, { recursive: true, mode: 448 });
2499
- ownFile = join12(dir, `${meta.sessionId}.json`);
2613
+ ownFile = join13(dir, `${meta.sessionId}.json`);
2500
2614
  const tmp = `${ownFile}.tmp-${pid}`;
2501
2615
  writeFileSync3(tmp, JSON.stringify(snapshot), { mode: 384 });
2502
2616
  renameSync2(tmp, ownFile);
@@ -2514,12 +2628,12 @@ function createSnapshotStore(opts) {
2514
2628
  }
2515
2629
  function pruneStale(dir, nowMs, keep) {
2516
2630
  try {
2517
- for (const name of readdirSync3(dir)) {
2631
+ for (const name of readdirSync4(dir)) {
2518
2632
  if (!name.endsWith(".json")) continue;
2519
- const file = join12(dir, name);
2633
+ const file = join13(dir, name);
2520
2634
  if (file === keep) continue;
2521
2635
  try {
2522
- const age = nowMs - statSync2(file).mtimeMs;
2636
+ const age = nowMs - statSync3(file).mtimeMs;
2523
2637
  if (age > SNAPSHOT_TTL_MS) unlinkSync(file);
2524
2638
  } catch {
2525
2639
  }
@@ -2531,11 +2645,11 @@ function readSnapshots(projectKey, baseDir = presenceSnapshotBaseDir()) {
2531
2645
  try {
2532
2646
  const dir = projectDir(baseDir, projectKey);
2533
2647
  const out2 = [];
2534
- for (const name of readdirSync3(dir)) {
2648
+ for (const name of readdirSync4(dir)) {
2535
2649
  if (!name.endsWith(".json")) continue;
2536
2650
  try {
2537
2651
  const raw = JSON.parse(
2538
- readFileSync7(join12(dir, name), "utf8")
2652
+ readFileSync7(join13(dir, name), "utf8")
2539
2653
  );
2540
2654
  const snap = parseSnapshot(raw);
2541
2655
  if (snap) out2.push(snap);
@@ -2603,7 +2717,7 @@ async function summariseTranscript(path8) {
2603
2717
  let input = 0;
2604
2718
  let output = 0;
2605
2719
  let lines2 = 0;
2606
- return await new Promise((resolve2) => {
2720
+ return await new Promise((resolve3) => {
2607
2721
  const stream = createReadStream(path8, { encoding: "utf-8" });
2608
2722
  const rl = createInterface5({ input: stream });
2609
2723
  rl.on("line", (line) => {
@@ -2624,7 +2738,7 @@ async function summariseTranscript(path8) {
2624
2738
  }
2625
2739
  });
2626
2740
  rl.on("close", () => {
2627
- resolve2({
2741
+ resolve3({
2628
2742
  input_tokens: input,
2629
2743
  output_tokens: output,
2630
2744
  total_tokens: input + output,
@@ -2632,8 +2746,8 @@ async function summariseTranscript(path8) {
2632
2746
  last_modified_ms: stats.mtimeMs
2633
2747
  });
2634
2748
  });
2635
- rl.on("error", () => resolve2(null));
2636
- stream.on("error", () => resolve2(null));
2749
+ rl.on("error", () => resolve3(null));
2750
+ stream.on("error", () => resolve3(null));
2637
2751
  });
2638
2752
  }
2639
2753
  var init_transcript = __esm({
@@ -2789,7 +2903,7 @@ async function analyzeSession(path8) {
2789
2903
  let effort = null;
2790
2904
  let priorAssistantWorked = false;
2791
2905
  let prevUserText = null;
2792
- await new Promise((resolve2) => {
2906
+ await new Promise((resolve3) => {
2793
2907
  const stream = createReadStream2(path8, { encoding: "utf-8" });
2794
2908
  const rl = createInterface6({ input: stream });
2795
2909
  const processLine = (line) => {
@@ -2887,9 +3001,9 @@ async function analyzeSession(path8) {
2887
3001
  } catch {
2888
3002
  }
2889
3003
  });
2890
- rl.on("close", () => resolve2());
2891
- rl.on("error", () => resolve2());
2892
- stream.on("error", () => resolve2());
3004
+ rl.on("close", () => resolve3());
3005
+ rl.on("error", () => resolve3());
3006
+ stream.on("error", () => resolve3());
2893
3007
  });
2894
3008
  a.effort_at_end = effort;
2895
3009
  a.model_mix = [...modelMix.values()].sort((x, y) => x.first_ts - y.first_ts || x.model.localeCompare(y.model));
@@ -3021,7 +3135,7 @@ async function analyzeSpan(path8) {
3021
3135
  let prevMs = null;
3022
3136
  let prevHolder = "human";
3023
3137
  const pauses = [];
3024
- await new Promise((resolve2) => {
3138
+ await new Promise((resolve3) => {
3025
3139
  const stream = createReadStream3(path8, { encoding: "utf-8" });
3026
3140
  const rl = createInterface7({ input: stream });
3027
3141
  const processLine = (line) => {
@@ -3079,9 +3193,9 @@ async function analyzeSpan(path8) {
3079
3193
  } catch {
3080
3194
  }
3081
3195
  });
3082
- rl.on("close", () => resolve2());
3083
- rl.on("error", () => resolve2());
3084
- stream.on("error", () => resolve2());
3196
+ rl.on("close", () => resolve3());
3197
+ rl.on("error", () => resolve3());
3198
+ stream.on("error", () => resolve3());
3085
3199
  });
3086
3200
  if (firstMs === null)
3087
3201
  return s;
@@ -3126,13 +3240,13 @@ var init_windows = __esm({
3126
3240
 
3127
3241
  // ../../packages/claude-code-telemetry/dist/projects.js
3128
3242
  import { homedir as homedir4 } from "node:os";
3129
- import { join as join13 } from "node:path";
3243
+ import { join as join14 } from "node:path";
3130
3244
  var HOME, DEFAULT_PROJECTS_DIR;
3131
3245
  var init_projects = __esm({
3132
3246
  "../../packages/claude-code-telemetry/dist/projects.js"() {
3133
3247
  "use strict";
3134
3248
  HOME = homedir4();
3135
- DEFAULT_PROJECTS_DIR = join13(HOME, ".claude", "projects");
3249
+ DEFAULT_PROJECTS_DIR = join14(HOME, ".claude", "projects");
3136
3250
  }
3137
3251
  });
3138
3252
 
@@ -3205,13 +3319,13 @@ var init_api = __esm({
3205
3319
  async function readHookInput() {
3206
3320
  if (process.stdin.isTTY) return {};
3207
3321
  const chunks = [];
3208
- return await new Promise((resolve2) => {
3322
+ return await new Promise((resolve3) => {
3209
3323
  let settled = false;
3210
3324
  const settle = (value) => {
3211
3325
  if (settled) return;
3212
3326
  settled = true;
3213
3327
  clearTimeout(timer);
3214
- resolve2(value);
3328
+ resolve3(value);
3215
3329
  };
3216
3330
  const timer = setTimeout(() => settle({}), STDIN_TIMEOUT_MS);
3217
3331
  process.stdin.on("data", (c) => chunks.push(c));
@@ -3355,7 +3469,7 @@ var init_edit_guard = __esm({
3355
3469
  import { mkdir as mkdir2, readFile as readFile2, writeFile as writeFile2, rename as rename2 } from "node:fs/promises";
3356
3470
  import { existsSync as existsSync9 } from "node:fs";
3357
3471
  import { homedir as homedir5 } from "node:os";
3358
- import { join as join14 } from "node:path";
3472
+ import { join as join15 } from "node:path";
3359
3473
  function emptyState() {
3360
3474
  return { config: null, sessions: {}, pending_metrics: [] };
3361
3475
  }
@@ -3394,8 +3508,8 @@ var STATE_DIR, STATE_FILE, DEFAULT_THRESHOLDS;
3394
3508
  var init_state = __esm({
3395
3509
  "src/hooks/state.ts"() {
3396
3510
  "use strict";
3397
- STATE_DIR = join14(homedir5(), ".maind");
3398
- STATE_FILE = join14(STATE_DIR, "state.json");
3511
+ STATE_DIR = join15(homedir5(), ".maind");
3512
+ STATE_FILE = join15(STATE_DIR, "state.json");
3399
3513
  DEFAULT_THRESHOLDS = {
3400
3514
  warn_at_pct: 60,
3401
3515
  handoff_at_pct: 85,
@@ -3417,11 +3531,11 @@ __export(hooks_exports, {
3417
3531
  runSessionEndMetrics: () => runSessionEndMetrics,
3418
3532
  runSyncConfig: () => runSyncConfig
3419
3533
  });
3420
- import { execFileSync as execFileSync6 } from "node:child_process";
3534
+ import { execFileSync as execFileSync7 } from "node:child_process";
3421
3535
  import { existsSync as existsSync10, readFileSync as readFileSync8, realpathSync } from "node:fs";
3422
3536
  import { writeFile as writeFile3 } from "node:fs/promises";
3423
3537
  import { homedir as homedir6 } from "node:os";
3424
- import { basename, dirname as dirname5, isAbsolute as isAbsolute2, join as join15, relative } from "node:path";
3538
+ import { basename, dirname as dirname5, isAbsolute as isAbsolute3, join as join16, relative as relative2 } from "node:path";
3425
3539
  function effectiveConfig(state) {
3426
3540
  if (state.config) return state.config;
3427
3541
  const key = readApiKey();
@@ -3478,7 +3592,7 @@ async function runOnSessionStart() {
3478
3592
  }
3479
3593
  function readSettingsRaw() {
3480
3594
  try {
3481
- const p = join15(homedir6(), ".claude", "settings.json");
3595
+ const p = join16(homedir6(), ".claude", "settings.json");
3482
3596
  return existsSync10(p) ? readFileSync8(p, "utf8") : null;
3483
3597
  } catch {
3484
3598
  return null;
@@ -3487,7 +3601,7 @@ function readSettingsRaw() {
3487
3601
  function grandparentPid() {
3488
3602
  try {
3489
3603
  if (process.platform === "win32") return null;
3490
- const out2 = execFileSync6("ps", ["-o", "ppid=", "-p", String(process.ppid)], {
3604
+ const out2 = execFileSync7("ps", ["-o", "ppid=", "-p", String(process.ppid)], {
3491
3605
  timeout: 1e3,
3492
3606
  encoding: "utf8"
3493
3607
  });
@@ -3528,7 +3642,7 @@ function realpathOfUnwritten(p) {
3528
3642
  for (; ; ) {
3529
3643
  try {
3530
3644
  const real = realpathSync(head);
3531
- return join15(real, ...tail.reverse());
3645
+ return join16(real, ...tail.reverse());
3532
3646
  } catch {
3533
3647
  const parent = dirname5(head);
3534
3648
  if (parent === head) return p;
@@ -3562,11 +3676,11 @@ async function runOnFileWrite() {
3562
3676
  const filePath = toolFilePathOf(input);
3563
3677
  if (!filePath) return 0;
3564
3678
  const cwd = typeof input.cwd === "string" && input.cwd.length > 0 ? input.cwd : process.cwd();
3565
- const abs = isAbsolute2(filePath) ? filePath : join15(cwd, filePath);
3679
+ const abs = isAbsolute3(filePath) ? filePath : join16(cwd, filePath);
3566
3680
  if (existsSync10(abs)) return 0;
3567
3681
  const repoRoot = resolveRepoRoot(cwd);
3568
- const rel = relative(repoRoot, realpathOfUnwritten(abs));
3569
- if (rel.length === 0 || rel.startsWith("..") || isAbsolute2(rel)) return 0;
3682
+ const rel = relative2(repoRoot, realpathOfUnwritten(abs));
3683
+ if (rel.length === 0 || rel.startsWith("..") || isAbsolute3(rel)) return 0;
3570
3684
  const verdict = await checkNumberForPath(repoRoot, rel);
3571
3685
  if (!verdict.taken || verdict.namespace === null) return 0;
3572
3686
  process.stdout.write(denyPayload(denyReason(verdict, verdict.namespace)));
@@ -3591,7 +3705,7 @@ async function runOnFileEdit() {
3591
3705
  const filePath = toolFilePathOf(input);
3592
3706
  if (!filePath) return 0;
3593
3707
  const cwd = typeof input.cwd === "string" && input.cwd.length > 0 ? input.cwd : process.cwd();
3594
- const abs = isAbsolute2(filePath) ? filePath : join15(cwd, filePath);
3708
+ const abs = isAbsolute3(filePath) ? filePath : join16(cwd, filePath);
3595
3709
  const projectKey = computeProjectKey();
3596
3710
  if (projectKey === null) return 0;
3597
3711
  const snaps = readSnapshots(projectKey);
@@ -3603,8 +3717,8 @@ async function runOnFileEdit() {
3603
3717
  if (own === null) return 0;
3604
3718
  const repoRoot = resolveRepoRoot(cwd);
3605
3719
  const real = existsSync10(abs) ? realpathSync(abs) : realpathOfUnwritten(abs);
3606
- const rel = relative(repoRoot, real).replace(/\\/g, "/");
3607
- if (rel.length === 0 || rel.startsWith("..") || isAbsolute2(rel)) return 0;
3720
+ const rel = relative2(repoRoot, real).replace(/\\/g, "/");
3721
+ if (rel.length === 0 || rel.startsWith("..") || isAbsolute3(rel)) return 0;
3608
3722
  const advice = adviseOnPath(own.snap, rel, {
3609
3723
  via: own.via,
3610
3724
  currentBranch: own.via === "cwd" ? currentGitBranch(cwd) : null,
@@ -3619,7 +3733,7 @@ async function runOnFileEdit() {
3619
3733
  }
3620
3734
  function currentGitBranch(cwd) {
3621
3735
  try {
3622
- const out2 = execFileSync6("git", ["rev-parse", "--abbrev-ref", "HEAD"], {
3736
+ const out2 = execFileSync7("git", ["rev-parse", "--abbrev-ref", "HEAD"], {
3623
3737
  cwd,
3624
3738
  timeout: 1e3,
3625
3739
  encoding: "utf8"
@@ -3654,7 +3768,7 @@ async function maybeEmitAdvisory(state, session) {
3654
3768
  };
3655
3769
  try {
3656
3770
  await writeFile3(
3657
- join15(STATE_DIR, `handoff_advisory_${session.session_id}.json`),
3771
+ join16(STATE_DIR, `handoff_advisory_${session.session_id}.json`),
3658
3772
  JSON.stringify(payload, null, 2)
3659
3773
  );
3660
3774
  } catch (err) {
@@ -3733,7 +3847,7 @@ async function flushPending(config, timeoutMs) {
3733
3847
  const batch = state.pending_metrics.slice(0, 100);
3734
3848
  const post = postMetrics(config.endpoint, config.api_key, batch);
3735
3849
  const timeout = new Promise(
3736
- (resolve2) => setTimeout(() => resolve2({ ok: false, inserted: 0, error: "timeout" }), timeoutMs)
3850
+ (resolve3) => setTimeout(() => resolve3({ ok: false, inserted: 0, error: "timeout" }), timeoutMs)
3737
3851
  );
3738
3852
  const result = await Promise.race([post, timeout]);
3739
3853
  if (result.ok) {
@@ -3793,7 +3907,7 @@ async function runHookStatus() {
3793
3907
  return 0;
3794
3908
  }
3795
3909
  function readHookWiring() {
3796
- const settingsPath = join15(homedir6(), ".claude", "settings.json");
3910
+ const settingsPath = join16(homedir6(), ".claude", "settings.json");
3797
3911
  let raw = null;
3798
3912
  try {
3799
3913
  if (existsSync10(settingsPath)) raw = readFileSync8(settingsPath, "utf8");
@@ -3871,7 +3985,7 @@ function sessionIdOf(input) {
3871
3985
  return id.length > 0 ? id : null;
3872
3986
  }
3873
3987
  var DEFAULT_THRESHOLDS_ENDPOINT, STOP_FLUSH_TIMEOUT_MS, MANUAL_FLUSH_TIMEOUT_MS, WIRING_REMEDY;
3874
- var init_hooks = __esm({
3988
+ var init_hooks2 = __esm({
3875
3989
  "src/hooks/index.ts"() {
3876
3990
  "use strict";
3877
3991
  init_dist();
@@ -3912,7 +4026,7 @@ async function postWithTimeout(apiKey, deviceId, body, timeoutMs) {
3912
4026
  },
3913
4027
  body: JSON.stringify(body)
3914
4028
  }).then(() => void 0).catch(() => void 0);
3915
- const timeout = new Promise((resolve2) => setTimeout(resolve2, timeoutMs));
4029
+ const timeout = new Promise((resolve3) => setTimeout(resolve3, timeoutMs));
3916
4030
  await Promise.race([post, timeout]);
3917
4031
  }
3918
4032
  async function runOnSessionEnd() {
@@ -3956,7 +4070,7 @@ var init_session_end = __esm({
3956
4070
  init_device_id();
3957
4071
  init_api();
3958
4072
  init_hook_input();
3959
- init_hooks();
4073
+ init_hooks2();
3960
4074
  init_version();
3961
4075
  INGEST_ENDPOINT = DEFAULT_INGEST_ENDPOINT;
3962
4076
  }
@@ -4633,7 +4747,7 @@ async function pollOnce(url, deviceCode) {
4633
4747
  return await res.json();
4634
4748
  }
4635
4749
  function sleep(ms) {
4636
- return new Promise((resolve2) => setTimeout(resolve2, ms));
4750
+ return new Promise((resolve3) => setTimeout(resolve3, ms));
4637
4751
  }
4638
4752
  function printAuthInstructions(start, out2) {
4639
4753
  const lines2 = [
@@ -4675,7 +4789,7 @@ async function openExternalBrowser(url) {
4675
4789
  args = [url];
4676
4790
  break;
4677
4791
  }
4678
- return new Promise((resolve2, reject) => {
4792
+ return new Promise((resolve3, reject) => {
4679
4793
  try {
4680
4794
  const child = spawn(cmd, args, {
4681
4795
  stdio: "ignore",
@@ -4683,7 +4797,7 @@ async function openExternalBrowser(url) {
4683
4797
  });
4684
4798
  child.on("error", reject);
4685
4799
  child.unref();
4686
- resolve2();
4800
+ resolve3();
4687
4801
  } catch (err) {
4688
4802
  reject(err);
4689
4803
  }
@@ -4808,11 +4922,11 @@ var InstallFlagError = class extends Error {
4808
4922
  function printInstallHelp() {
4809
4923
  const help = [
4810
4924
  "",
4811
- "@maind-dev/mcp-bridge install \u2014 one-shot setup for the maind MCP server.",
4925
+ "@maind-dev/mcp-bridge install \u2014 one-shot setup for the MAIND MCP server.",
4812
4926
  "",
4813
- "Detects your project root, pairs this device with maind, merges the",
4927
+ "Detects your project root, pairs this device with MAIND, merges the",
4814
4928
  "MCP-server entry into every supported AI-client config it finds, and",
4815
- "(optionally) writes the maind preamble block into CLAUDE.md / AGENTS.md /",
4929
+ "(optionally) writes the MAIND preamble block into CLAUDE.md / AGENTS.md /",
4816
4930
  "Cursor / Windsurf / Copilot files. Idempotent \u2014 re-running is safe.",
4817
4931
  "",
4818
4932
  "Usage:",
@@ -5012,8 +5126,8 @@ Which one should receive the MCP config and preamble files? [1-${candidates.leng
5012
5126
  output: process.stdout,
5013
5127
  terminal: true
5014
5128
  });
5015
- const answer = await new Promise((resolve2) => {
5016
- rl.question("", (input) => resolve2(input.trim()));
5129
+ const answer = await new Promise((resolve3) => {
5130
+ rl.question("", (input) => resolve3(input.trim()));
5017
5131
  });
5018
5132
  rl.close();
5019
5133
  if (answer === "") return candidates[0];
@@ -6445,8 +6559,8 @@ async function promptYesNo(out2, prompt) {
6445
6559
  output: out2,
6446
6560
  terminal: true
6447
6561
  });
6448
- const answer = await new Promise((resolve2) => {
6449
- rl.question("", (input) => resolve2(input.trim().toLowerCase()));
6562
+ const answer = await new Promise((resolve3) => {
6563
+ rl.question("", (input) => resolve3(input.trim().toLowerCase()));
6450
6564
  });
6451
6565
  rl.close();
6452
6566
  if (answer === "" || answer === "y" || answer === "yes") return true;
@@ -6576,8 +6690,8 @@ async function promptYesNoDefaultNo(out2, prompt) {
6576
6690
  output: out2,
6577
6691
  terminal: true
6578
6692
  });
6579
- const answer = await new Promise((resolve2) => {
6580
- rl.question("", (input) => resolve2(input.trim().toLowerCase()));
6693
+ const answer = await new Promise((resolve3) => {
6694
+ rl.question("", (input) => resolve3(input.trim().toLowerCase()));
6581
6695
  });
6582
6696
  rl.close();
6583
6697
  return answer === "y" || answer === "yes";
@@ -6770,7 +6884,7 @@ function validateTokenShape(token) {
6770
6884
  }
6771
6885
  if (!/^mnd_[A-Za-z0-9_]+$/.test(trimmed)) {
6772
6886
  throw new Error(
6773
- "--token does not match maind api-key shape (expected mnd_<\u2026>) \u2014 did you paste a URL instead of the token?"
6887
+ "--token does not match MAIND api-key shape (expected mnd_<\u2026>) \u2014 did you paste a URL instead of the token?"
6774
6888
  );
6775
6889
  }
6776
6890
  return trimmed;
@@ -6843,7 +6957,7 @@ function parseNodeMajor(version) {
6843
6957
  }
6844
6958
 
6845
6959
  // src/local-tools/engine.ts
6846
- import { execFileSync as execFileSync5 } from "node:child_process";
6960
+ import { execFileSync as execFileSync6 } from "node:child_process";
6847
6961
  import { createRequire as createRequire3 } from "node:module";
6848
6962
 
6849
6963
  // ../../packages/code-index/build/node.js
@@ -7658,7 +7772,7 @@ function isNativeStoreUnavailable(err) {
7658
7772
  var NATIVE_STORE_UNAVAILABLE_HINT = "codebase_* tools are unavailable on this machine: no usable SQLite backend (node:sqlite needs Node >= 22.16, and better-sqlite3 could not be loaded). The MCP bridge itself is unaffected. To enable the local codebase tools, update Node to a version with builtin SQLite (>= 22.16), or run `npm rebuild better-sqlite3` in the bridge's install prefix.";
7659
7773
  function resolveRepoRoot2(cwd = process.cwd()) {
7660
7774
  try {
7661
- const top = execFileSync5("git", ["rev-parse", "--show-toplevel"], {
7775
+ const top = execFileSync6("git", ["rev-parse", "--show-toplevel"], {
7662
7776
  cwd,
7663
7777
  encoding: "utf8",
7664
7778
  stdio: ["ignore", "pipe", "ignore"],
@@ -7875,7 +7989,7 @@ Finished in ${wallClockSec}s. Restart your MCP client so it picks up the new ser
7875
7989
 
7876
7990
  // src/local-tools/savings.ts
7877
7991
  import { readFileSync as readFileSync6 } from "node:fs";
7878
- import { join as join11 } from "node:path";
7992
+ import { join as join12 } from "node:path";
7879
7993
 
7880
7994
  // src/local-tools/token-estimate.ts
7881
7995
  var CHARS_PER_TOKEN = 4;
@@ -7930,14 +8044,14 @@ function measureLocalToolSaved(name, result, serialized, repoRoot) {
7930
8044
  if (files.length === 0) return 0;
7931
8045
  let wholeTokens = 0;
7932
8046
  for (const fp of files) {
7933
- wholeTokens += estimateTokens(readFileCapped(join11(repoRoot, fp)));
8047
+ wholeTokens += estimateTokens(readFileCapped(join12(repoRoot, fp)));
7934
8048
  }
7935
8049
  return Math.max(0, wholeTokens - resultTokens);
7936
8050
  }
7937
8051
  if (name === "codebase_snippet") {
7938
8052
  const fp = result?.filePath;
7939
8053
  if (typeof fp !== "string" || fp.length === 0) return 0;
7940
- const wholeTokens = estimateTokens(readFileCapped(join11(repoRoot, fp)));
8054
+ const wholeTokens = estimateTokens(readFileCapped(join12(repoRoot, fp)));
7941
8055
  return Math.max(0, wholeTokens - resultTokens);
7942
8056
  }
7943
8057
  return 0;
@@ -8659,7 +8773,7 @@ var PresenceAnnouncer = class {
8659
8773
  this.ended = true;
8660
8774
  if (this.lastAnnounceAt === 0) return;
8661
8775
  const timeout = new Promise(
8662
- (resolve2) => setTimeout(resolve2, END_TIMEOUT_MS).unref()
8776
+ (resolve3) => setTimeout(resolve3, END_TIMEOUT_MS).unref()
8663
8777
  );
8664
8778
  await Promise.race([this.send("ended"), timeout]);
8665
8779
  }
@@ -8740,15 +8854,15 @@ var PresenceAnnouncer = class {
8740
8854
  }
8741
8855
  };
8742
8856
  async function defaultGitBranch() {
8743
- return await new Promise((resolve2) => {
8857
+ return await new Promise((resolve3) => {
8744
8858
  execFile(
8745
8859
  "git",
8746
8860
  ["rev-parse", "--abbrev-ref", "HEAD"],
8747
8861
  { timeout: 2e3, encoding: "utf8" },
8748
8862
  (err, stdout) => {
8749
- if (err) return resolve2(null);
8863
+ if (err) return resolve3(null);
8750
8864
  const branch = stdout.trim();
8751
- resolve2(branch.length > 0 && branch !== "HEAD" ? branch : null);
8865
+ resolve3(branch.length > 0 && branch !== "HEAD" ? branch : null);
8752
8866
  }
8753
8867
  );
8754
8868
  });
@@ -8790,12 +8904,12 @@ async function deriveWorkingPaths(runGitStatus = defaultGitStatus) {
8790
8904
  return dirs.length > 0 ? dirs : null;
8791
8905
  }
8792
8906
  async function defaultGitStatus() {
8793
- return await new Promise((resolve2) => {
8907
+ return await new Promise((resolve3) => {
8794
8908
  execFile2(
8795
8909
  "git",
8796
8910
  ["status", "--porcelain"],
8797
8911
  { timeout: 2e3, encoding: "utf8", maxBuffer: 1024 * 1024 },
8798
- (err, stdout) => resolve2(err ? null : stdout)
8912
+ (err, stdout) => resolve3(err ? null : stdout)
8799
8913
  );
8800
8914
  });
8801
8915
  }
@@ -8858,7 +8972,7 @@ async function main() {
8858
8972
  process.exit(await runOnSessionEnd2());
8859
8973
  }
8860
8974
  if (firstPositional !== void 0 && isHookSubcommand(firstPositional)) {
8861
- const hooks = await Promise.resolve().then(() => (init_hooks(), hooks_exports));
8975
+ const hooks = await Promise.resolve().then(() => (init_hooks2(), hooks_exports));
8862
8976
  const run = {
8863
8977
  "on-session-start": hooks.runOnSessionStart,
8864
8978
  "on-tool-use": hooks.runOnToolUse,
package/build/meta.json CHANGED
@@ -1 +1 @@
1
- {"inputs":{"src/client-detect.ts":{"bytes":3979,"imports":[],"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}],"format":"esm"},"src/forward.ts":{"bytes":28604,"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/conventions-cache.ts","kind":"import-statement","original":"./conventions-cache.js"}],"format":"esm"},"src/device-id.ts":{"bytes":5476,"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}],"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"}],"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}],"format":"esm"},"src/install/flags.ts":{"bytes":7486,"imports":[],"format":"esm"},"src/install/report.ts":{"bytes":4292,"imports":[],"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}],"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}],"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"}],"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}],"format":"esm"},"src/install/json-merge.ts":{"bytes":6145,"imports":[{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"./atomic-write.js"}],"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"}],"format":"esm"},"../../packages/integration-snippets/build/index.js":{"bytes":35430,"imports":[],"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"}],"format":"esm"},"src/install/hook-wiring.ts":{"bytes":13184,"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"}],"format":"esm"},"src/install/hook-merge.ts":{"bytes":14134,"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"}],"format":"esm"},"src/bridge-config.ts":{"bytes":2104,"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"}],"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"}],"format":"esm"},"src/install/one-click-exchange.ts":{"bytes":2872,"imports":[],"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"}],"format":"esm"},"src/install/telemetry.ts":{"bytes":3027,"imports":[],"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}],"format":"esm"},"../../packages/code-index/build/parse/keys.js":{"bytes":448,"imports":[],"format":"esm"},"../../packages/code-index/build/parse/types.js":{"bytes":768,"imports":[],"format":"esm"},"../../packages/code-index/build/parse/lang/shared.js":{"bytes":2278,"imports":[],"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"}],"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"}],"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}],"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"}],"format":"esm"},"../../packages/code-index/build/embed/recipe.js":{"bytes":594,"imports":[],"format":"esm"},"../../packages/code-index/build/embed/types.js":{"bytes":505,"imports":[],"format":"esm"},"../../packages/code-index/build/util/vector.js":{"bytes":707,"imports":[],"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"}],"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"}],"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"}],"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"}],"format":"esm"},"../../packages/code-index/build/repo-health/divergence.js":{"bytes":18968,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"}],"format":"esm"},"../../packages/code-index/build/repo-health/number-collisions.js":{"bytes":19495,"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"}],"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"}],"format":"esm"},"../../packages/code-index/build/store/schema.js":{"bytes":3047,"imports":[],"format":"esm"},"../../packages/code-index/build/util/identifiers.js":{"bytes":2180,"imports":[],"format":"esm"},"../../packages/code-index/build/query/engine.js":{"bytes":21017,"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/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"}],"format":"esm"},"../../packages/code-index/build/store/sqlite-driver.js":{"bytes":5209,"imports":[{"path":"node:module","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"}],"format":"esm"},"../../packages/code-index/build/sync/types.js":{"bytes":1779,"imports":[{"path":"node:crypto","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"}],"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"}],"format":"esm"},"src/local-tools/engine.ts":{"bytes":3254,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/node.js","kind":"import-statement","original":"@maind/code-index/node"}],"format":"esm"},"src/install/index.ts":{"bytes":9896,"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"}],"format":"esm"},"src/local-tools/token-estimate.ts":{"bytes":898,"imports":[],"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"}],"format":"esm"},"../../packages/code-index/build/model/types.js":{"bytes":471,"imports":[],"format":"esm"},"../../packages/code-index/build/index.js":{"bytes":1957,"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/number-collisions.js","kind":"import-statement","original":"./repo-health/number-collisions.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":28311,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"}],"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"}],"format":"esm"},"src/functions-origin.ts":{"bytes":714,"imports":[],"format":"esm"},"src/metrics-post.ts":{"bytes":2619,"imports":[{"path":"src/functions-origin.ts","kind":"import-statement","original":"./functions-origin.js"}],"format":"esm"},"src/presence.ts":{"bytes":13886,"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"}],"format":"esm"},"src/presence-snapshot.ts":{"bytes":5976,"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}],"format":"esm"},"src/working-paths.ts":{"bytes":3016,"imports":[{"path":"node:child_process","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/types.js":{"bytes":338,"imports":[],"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}],"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}],"format":"esm"},"../../packages/claude-code-telemetry/dist/effort.js":{"bytes":1858,"imports":[],"format":"esm"},"../../packages/claude-code-telemetry/dist/session-analysis.js":{"bytes":15962,"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"}],"format":"esm"},"../../packages/claude-code-telemetry/dist/ingest.js":{"bytes":3096,"imports":[],"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}],"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"}],"format":"esm"},"../../packages/claude-code-telemetry/dist/windows.js":{"bytes":3963,"imports":[],"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}],"format":"esm"},"../../packages/claude-code-telemetry/dist/index.js":{"bytes":875,"imports":[{"path":"../../packages/claude-code-telemetry/dist/types.js","kind":"import-statement","original":"./types.js"},{"path":"../../packages/claude-code-telemetry/dist/transcript.js","kind":"import-statement","original":"./transcript.js"},{"path":"../../packages/claude-code-telemetry/dist/decisions.js","kind":"import-statement","original":"./decisions.js"},{"path":"../../packages/claude-code-telemetry/dist/session-analysis.js","kind":"import-statement","original":"./session-analysis.js"},{"path":"../../packages/claude-code-telemetry/dist/ingest.js","kind":"import-statement","original":"./ingest.js"},{"path":"../../packages/claude-code-telemetry/dist/session-span.js","kind":"import-statement","original":"./session-span.js"},{"path":"../../packages/claude-code-telemetry/dist/parse.js","kind":"import-statement","original":"./parse.js"},{"path":"../../packages/claude-code-telemetry/dist/effort.js","kind":"import-statement","original":"./effort.js"},{"path":"../../packages/claude-code-telemetry/dist/windows.js","kind":"import-statement","original":"./windows.js"},{"path":"../../packages/claude-code-telemetry/dist/projects.js","kind":"import-statement","original":"./projects.js"}],"format":"esm"},"src/hooks/api.ts":{"bytes":2311,"imports":[{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"}],"format":"esm"},"src/hooks/hook-input.ts":{"bytes":2481,"imports":[],"format":"esm"},"src/hooks/edit-guard.ts":{"bytes":8754,"imports":[],"format":"esm"},"src/hooks/state.ts":{"bytes":4970,"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}],"format":"esm"},"src/hooks/index.ts":{"bytes":29881,"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/hooks/hook-input.ts","kind":"import-statement","original":"./hook-input.js"},{"path":"src/hooks/state.ts","kind":"import-statement","original":"./state.js"}],"format":"esm"},"src/session-end/index.ts":{"bytes":4147,"imports":[{"path":"../../packages/claude-code-telemetry/dist/index.js","kind":"import-statement","original":"@maind/claude-code-telemetry"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/hooks/api.ts","kind":"import-statement","original":"../hooks/api.js"},{"path":"src/hooks/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/version.ts","kind":"import-statement","original":"../version.js"}],"format":"esm"},"src/index.ts":{"bytes":14685,"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/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/hooks/index.ts","kind":"dynamic-import","original":"./hooks/index.js"}],"format":"esm"}},"outputs":{"build/index.js":{"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":"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","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node: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:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:os","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: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: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":"node:fs/promises","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:path","kind":"import-statement","external":true},{"path":"node:readline","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:module","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"web-tree-sitter","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/conventions-cache.ts":{"bytesInOutput":3358},"src/device-id.ts":{"bytesInOutput":2542},"src/version.ts":{"bytesInOutput":127},"src/project-key.ts":{"bytesInOutput":1456},"src/install/bridge-entry.ts":{"bytesInOutput":1893},"src/install/hook-wiring.ts":{"bytesInOutput":6772},"../../packages/code-index/build/parse/keys.js":{"bytesInOutput":273},"../../packages/code-index/build/parse/types.js":{"bytesInOutput":652},"../../packages/code-index/build/embed/recipe.js":{"bytesInOutput":320},"../../packages/code-index/build/embed/types.js":{"bytesInOutput":262},"../../packages/code-index/build/util/vector.js":{"bytesInOutput":446},"../../packages/code-index/build/graph/resolve.js":{"bytesInOutput":2672},"../../packages/code-index/build/incremental/discover.js":{"bytesInOutput":5303},"../../packages/code-index/build/incremental/hunks.js":{"bytesInOutput":4218},"../../packages/code-index/build/incremental/history.js":{"bytesInOutput":3674},"../../packages/code-index/build/repo-health/divergence.js":{"bytesInOutput":13189},"../../packages/code-index/build/repo-health/number-collisions.js":{"bytesInOutput":11118},"../../packages/code-index/build/review/risk-rules.js":{"bytesInOutput":1137},"../../packages/code-index/build/review/risk-scan.js":{"bytesInOutput":940},"../../packages/code-index/build/store/schema.js":{"bytesInOutput":2434},"../../packages/code-index/build/util/identifiers.js":{"bytesInOutput":1211},"../../packages/code-index/build/query/engine.js":{"bytesInOutput":16598},"../../packages/code-index/build/model/types.js":{"bytesInOutput":107},"../../packages/code-index/build/index.js":{"bytesInOutput":348},"src/presence-snapshot.ts":{"bytesInOutput":3751},"../../packages/claude-code-telemetry/dist/types.js":{"bytesInOutput":111},"../../packages/claude-code-telemetry/dist/transcript.js":{"bytesInOutput":1496},"../../packages/claude-code-telemetry/dist/decisions.js":{"bytesInOutput":118},"../../packages/claude-code-telemetry/dist/effort.js":{"bytesInOutput":596},"../../packages/claude-code-telemetry/dist/session-analysis.js":{"bytesInOutput":9282},"../../packages/claude-code-telemetry/dist/ingest.js":{"bytesInOutput":317},"../../packages/claude-code-telemetry/dist/session-span.js":{"bytesInOutput":4537},"../../packages/claude-code-telemetry/dist/parse.js":{"bytesInOutput":148},"../../packages/claude-code-telemetry/dist/windows.js":{"bytesInOutput":219},"../../packages/claude-code-telemetry/dist/projects.js":{"bytesInOutput":326},"../../packages/claude-code-telemetry/dist/index.js":{"bytesInOutput":324},"src/hooks/api.ts":{"bytesInOutput":1234},"src/hooks/hook-input.ts":{"bytesInOutput":1142},"src/hooks/edit-guard.ts":{"bytesInOutput":5068},"src/hooks/state.ts":{"bytesInOutput":1728},"src/hooks/index.ts":{"bytesInOutput":16493},"src/session-end/index.ts":{"bytesInOutput":2150},"src/index.ts":{"bytesInOutput":8560},"src/forward.ts":{"bytesInOutput":18440},"src/client-detect.ts":{"bytesInOutput":2068},"src/auth.ts":{"bytesInOutput":5084},"src/install/index.ts":{"bytesInOutput":6278},"src/install/flags.ts":{"bytesInOutput":5309},"src/install/report.ts":{"bytesInOutput":3096},"src/install/project-root.ts":{"bytesInOutput":2188},"src/install/client-targets.ts":{"bytesInOutput":3239},"src/install/atomic-write.ts":{"bytesInOutput":1760},"src/install/json-merge.ts":{"bytesInOutput":3769},"src/install/toml-merge.ts":{"bytesInOutput":3529},"src/install/preamble.ts":{"bytesInOutput":2812},"../../packages/integration-snippets/build/index.js":{"bytesInOutput":27539},"src/install/hook-merge.ts":{"bytesInOutput":6794},"src/install/working-paths-consent.ts":{"bytesInOutput":3369},"src/bridge-config.ts":{"bytesInOutput":902},"src/install/browser-pair.ts":{"bytesInOutput":4115},"src/install/one-click-exchange.ts":{"bytesInOutput":1235},"src/install/telemetry.ts":{"bytesInOutput":1798},"src/local-tools/engine.ts":{"bytesInOutput":1704},"../../packages/code-index/build/node.js":{"bytesInOutput":545},"../../packages/code-index/build/parse/tree-sitter/parser.js":{"bytesInOutput":2072},"../../packages/code-index/build/parse/lang/python.js":{"bytesInOutput":3760},"../../packages/code-index/build/parse/lang/shared.js":{"bytesInOutput":1131},"../../packages/code-index/build/parse/lang/typescript.js":{"bytesInOutput":4729},"../../packages/code-index/build/parse/tree-sitter/grammars.js":{"bytesInOutput":523},"../../packages/code-index/build/store/sqlite-driver.js":{"bytesInOutput":2908},"../../packages/code-index/build/store/node-sqlite.js":{"bytesInOutput":9842},"../../packages/code-index/build/sync/client.js":{"bytesInOutput":15},"src/local-tools/savings.ts":{"bytesInOutput":1928},"src/local-tools/token-estimate.ts":{"bytesInOutput":133},"src/local-tools/tools.ts":{"bytesInOutput":24547},"src/local-tools/router.ts":{"bytesInOutput":3929},"src/functions-origin.ts":{"bytesInOutput":259},"src/metrics-post.ts":{"bytesInOutput":1285},"src/presence.ts":{"bytesInOutput":6802},"src/working-paths.ts":{"bytesInOutput":1317}},"bytes":313588}}}
1
+ {"inputs":{"src/client-detect.ts":{"bytes":3979,"imports":[],"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}],"format":"esm"},"src/forward.ts":{"bytes":28604,"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/conventions-cache.ts","kind":"import-statement","original":"./conventions-cache.js"}],"format":"esm"},"src/device-id.ts":{"bytes":5476,"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}],"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"}],"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}],"format":"esm"},"src/install/flags.ts":{"bytes":7486,"imports":[],"format":"esm"},"src/install/report.ts":{"bytes":4292,"imports":[],"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}],"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}],"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"}],"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}],"format":"esm"},"src/install/json-merge.ts":{"bytes":6145,"imports":[{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"./atomic-write.js"}],"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"}],"format":"esm"},"../../packages/integration-snippets/build/index.js":{"bytes":35430,"imports":[],"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"}],"format":"esm"},"src/install/hook-wiring.ts":{"bytes":13184,"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"}],"format":"esm"},"src/install/hook-merge.ts":{"bytes":14134,"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"}],"format":"esm"},"src/bridge-config.ts":{"bytes":2104,"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"}],"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"}],"format":"esm"},"src/install/one-click-exchange.ts":{"bytes":2872,"imports":[],"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"}],"format":"esm"},"src/install/telemetry.ts":{"bytes":3027,"imports":[],"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}],"format":"esm"},"../../packages/code-index/build/parse/keys.js":{"bytes":448,"imports":[],"format":"esm"},"../../packages/code-index/build/parse/types.js":{"bytes":768,"imports":[],"format":"esm"},"../../packages/code-index/build/parse/lang/shared.js":{"bytes":2278,"imports":[],"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"}],"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"}],"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}],"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"}],"format":"esm"},"../../packages/code-index/build/embed/recipe.js":{"bytes":594,"imports":[],"format":"esm"},"../../packages/code-index/build/embed/types.js":{"bytes":505,"imports":[],"format":"esm"},"../../packages/code-index/build/util/vector.js":{"bytes":707,"imports":[],"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"}],"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"}],"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"}],"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"}],"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}],"format":"esm"},"../../packages/code-index/build/repo-health/divergence.js":{"bytes":20406,"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"}],"format":"esm"},"../../packages/code-index/build/repo-health/number-collisions.js":{"bytes":19495,"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"}],"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"}],"format":"esm"},"../../packages/code-index/build/store/schema.js":{"bytes":3047,"imports":[],"format":"esm"},"../../packages/code-index/build/util/identifiers.js":{"bytes":2180,"imports":[],"format":"esm"},"../../packages/code-index/build/query/engine.js":{"bytes":21017,"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/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"}],"format":"esm"},"../../packages/code-index/build/store/sqlite-driver.js":{"bytes":5209,"imports":[{"path":"node:module","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"}],"format":"esm"},"../../packages/code-index/build/sync/types.js":{"bytes":1779,"imports":[{"path":"node:crypto","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"}],"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"}],"format":"esm"},"src/local-tools/engine.ts":{"bytes":3254,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/node.js","kind":"import-statement","original":"@maind/code-index/node"}],"format":"esm"},"src/install/index.ts":{"bytes":9896,"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"}],"format":"esm"},"src/local-tools/token-estimate.ts":{"bytes":898,"imports":[],"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"}],"format":"esm"},"../../packages/code-index/build/model/types.js":{"bytes":471,"imports":[],"format":"esm"},"../../packages/code-index/build/index.js":{"bytes":2036,"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/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":28311,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"}],"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"}],"format":"esm"},"src/functions-origin.ts":{"bytes":714,"imports":[],"format":"esm"},"src/metrics-post.ts":{"bytes":2619,"imports":[{"path":"src/functions-origin.ts","kind":"import-statement","original":"./functions-origin.js"}],"format":"esm"},"src/presence.ts":{"bytes":13886,"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"}],"format":"esm"},"src/presence-snapshot.ts":{"bytes":5976,"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}],"format":"esm"},"src/working-paths.ts":{"bytes":3016,"imports":[{"path":"node:child_process","kind":"import-statement","external":true}],"format":"esm"},"../../packages/claude-code-telemetry/dist/types.js":{"bytes":338,"imports":[],"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}],"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}],"format":"esm"},"../../packages/claude-code-telemetry/dist/effort.js":{"bytes":1858,"imports":[],"format":"esm"},"../../packages/claude-code-telemetry/dist/session-analysis.js":{"bytes":15962,"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"}],"format":"esm"},"../../packages/claude-code-telemetry/dist/ingest.js":{"bytes":3096,"imports":[],"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}],"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"}],"format":"esm"},"../../packages/claude-code-telemetry/dist/windows.js":{"bytes":3963,"imports":[],"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}],"format":"esm"},"../../packages/claude-code-telemetry/dist/index.js":{"bytes":875,"imports":[{"path":"../../packages/claude-code-telemetry/dist/types.js","kind":"import-statement","original":"./types.js"},{"path":"../../packages/claude-code-telemetry/dist/transcript.js","kind":"import-statement","original":"./transcript.js"},{"path":"../../packages/claude-code-telemetry/dist/decisions.js","kind":"import-statement","original":"./decisions.js"},{"path":"../../packages/claude-code-telemetry/dist/session-analysis.js","kind":"import-statement","original":"./session-analysis.js"},{"path":"../../packages/claude-code-telemetry/dist/ingest.js","kind":"import-statement","original":"./ingest.js"},{"path":"../../packages/claude-code-telemetry/dist/session-span.js","kind":"import-statement","original":"./session-span.js"},{"path":"../../packages/claude-code-telemetry/dist/parse.js","kind":"import-statement","original":"./parse.js"},{"path":"../../packages/claude-code-telemetry/dist/effort.js","kind":"import-statement","original":"./effort.js"},{"path":"../../packages/claude-code-telemetry/dist/windows.js","kind":"import-statement","original":"./windows.js"},{"path":"../../packages/claude-code-telemetry/dist/projects.js","kind":"import-statement","original":"./projects.js"}],"format":"esm"},"src/hooks/api.ts":{"bytes":2311,"imports":[{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"}],"format":"esm"},"src/hooks/hook-input.ts":{"bytes":2481,"imports":[],"format":"esm"},"src/hooks/edit-guard.ts":{"bytes":8754,"imports":[],"format":"esm"},"src/hooks/state.ts":{"bytes":4970,"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}],"format":"esm"},"src/hooks/index.ts":{"bytes":29881,"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/hooks/hook-input.ts","kind":"import-statement","original":"./hook-input.js"},{"path":"src/hooks/state.ts","kind":"import-statement","original":"./state.js"}],"format":"esm"},"src/session-end/index.ts":{"bytes":4147,"imports":[{"path":"../../packages/claude-code-telemetry/dist/index.js","kind":"import-statement","original":"@maind/claude-code-telemetry"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/hooks/api.ts","kind":"import-statement","original":"../hooks/api.js"},{"path":"src/hooks/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/version.ts","kind":"import-statement","original":"../version.js"}],"format":"esm"},"src/index.ts":{"bytes":14685,"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/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/hooks/index.ts","kind":"dynamic-import","original":"./hooks/index.js"}],"format":"esm"}},"outputs":{"build/index.js":{"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":"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","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:os","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: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: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":"node:fs/promises","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:path","kind":"import-statement","external":true},{"path":"node:readline","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:module","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"web-tree-sitter","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/conventions-cache.ts":{"bytesInOutput":3358},"src/device-id.ts":{"bytesInOutput":2542},"src/version.ts":{"bytesInOutput":127},"src/project-key.ts":{"bytesInOutput":1456},"src/install/bridge-entry.ts":{"bytesInOutput":1893},"src/install/hook-wiring.ts":{"bytesInOutput":6772},"../../packages/code-index/build/parse/keys.js":{"bytesInOutput":273},"../../packages/code-index/build/parse/types.js":{"bytesInOutput":652},"../../packages/code-index/build/embed/recipe.js":{"bytesInOutput":320},"../../packages/code-index/build/embed/types.js":{"bytesInOutput":262},"../../packages/code-index/build/util/vector.js":{"bytesInOutput":446},"../../packages/code-index/build/graph/resolve.js":{"bytesInOutput":2672},"../../packages/code-index/build/incremental/discover.js":{"bytesInOutput":5303},"../../packages/code-index/build/incremental/hunks.js":{"bytesInOutput":4218},"../../packages/code-index/build/incremental/history.js":{"bytesInOutput":3674},"../../packages/code-index/build/repo-health/hooks.js":{"bytesInOutput":2980},"../../packages/code-index/build/repo-health/divergence.js":{"bytesInOutput":13930},"../../packages/code-index/build/repo-health/number-collisions.js":{"bytesInOutput":11118},"../../packages/code-index/build/review/risk-rules.js":{"bytesInOutput":1137},"../../packages/code-index/build/review/risk-scan.js":{"bytesInOutput":940},"../../packages/code-index/build/store/schema.js":{"bytesInOutput":2434},"../../packages/code-index/build/util/identifiers.js":{"bytesInOutput":1211},"../../packages/code-index/build/query/engine.js":{"bytesInOutput":16598},"../../packages/code-index/build/model/types.js":{"bytesInOutput":107},"../../packages/code-index/build/index.js":{"bytesInOutput":366},"src/presence-snapshot.ts":{"bytesInOutput":3751},"../../packages/claude-code-telemetry/dist/types.js":{"bytesInOutput":111},"../../packages/claude-code-telemetry/dist/transcript.js":{"bytesInOutput":1496},"../../packages/claude-code-telemetry/dist/decisions.js":{"bytesInOutput":118},"../../packages/claude-code-telemetry/dist/effort.js":{"bytesInOutput":596},"../../packages/claude-code-telemetry/dist/session-analysis.js":{"bytesInOutput":9282},"../../packages/claude-code-telemetry/dist/ingest.js":{"bytesInOutput":317},"../../packages/claude-code-telemetry/dist/session-span.js":{"bytesInOutput":4537},"../../packages/claude-code-telemetry/dist/parse.js":{"bytesInOutput":148},"../../packages/claude-code-telemetry/dist/windows.js":{"bytesInOutput":219},"../../packages/claude-code-telemetry/dist/projects.js":{"bytesInOutput":326},"../../packages/claude-code-telemetry/dist/index.js":{"bytesInOutput":324},"src/hooks/api.ts":{"bytesInOutput":1234},"src/hooks/hook-input.ts":{"bytesInOutput":1142},"src/hooks/edit-guard.ts":{"bytesInOutput":5068},"src/hooks/state.ts":{"bytesInOutput":1728},"src/hooks/index.ts":{"bytesInOutput":16509},"src/session-end/index.ts":{"bytesInOutput":2151},"src/index.ts":{"bytesInOutput":8561},"src/forward.ts":{"bytesInOutput":18440},"src/client-detect.ts":{"bytesInOutput":2068},"src/auth.ts":{"bytesInOutput":5084},"src/install/index.ts":{"bytesInOutput":6278},"src/install/flags.ts":{"bytesInOutput":5309},"src/install/report.ts":{"bytesInOutput":3096},"src/install/project-root.ts":{"bytesInOutput":2188},"src/install/client-targets.ts":{"bytesInOutput":3239},"src/install/atomic-write.ts":{"bytesInOutput":1760},"src/install/json-merge.ts":{"bytesInOutput":3769},"src/install/toml-merge.ts":{"bytesInOutput":3529},"src/install/preamble.ts":{"bytesInOutput":2812},"../../packages/integration-snippets/build/index.js":{"bytesInOutput":27539},"src/install/hook-merge.ts":{"bytesInOutput":6794},"src/install/working-paths-consent.ts":{"bytesInOutput":3369},"src/bridge-config.ts":{"bytesInOutput":902},"src/install/browser-pair.ts":{"bytesInOutput":4115},"src/install/one-click-exchange.ts":{"bytesInOutput":1235},"src/install/telemetry.ts":{"bytesInOutput":1798},"src/local-tools/engine.ts":{"bytesInOutput":1704},"../../packages/code-index/build/node.js":{"bytesInOutput":545},"../../packages/code-index/build/parse/tree-sitter/parser.js":{"bytesInOutput":2072},"../../packages/code-index/build/parse/lang/python.js":{"bytesInOutput":3760},"../../packages/code-index/build/parse/lang/shared.js":{"bytesInOutput":1131},"../../packages/code-index/build/parse/lang/typescript.js":{"bytesInOutput":4729},"../../packages/code-index/build/parse/tree-sitter/grammars.js":{"bytesInOutput":523},"../../packages/code-index/build/store/sqlite-driver.js":{"bytesInOutput":2908},"../../packages/code-index/build/store/node-sqlite.js":{"bytesInOutput":9842},"../../packages/code-index/build/sync/client.js":{"bytesInOutput":15},"src/local-tools/savings.ts":{"bytesInOutput":1928},"src/local-tools/token-estimate.ts":{"bytesInOutput":133},"src/local-tools/tools.ts":{"bytesInOutput":24547},"src/local-tools/router.ts":{"bytesInOutput":3929},"src/functions-origin.ts":{"bytesInOutput":259},"src/metrics-post.ts":{"bytesInOutput":1285},"src/presence.ts":{"bytesInOutput":6802},"src/working-paths.ts":{"bytesInOutput":1317}},"bytes":317402}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maind-dev/mcp-bridge",
3
- "version": "0.25.0",
3
+ "version": "0.25.1",
4
4
  "description": "Local MCP bridge for maind.dev \u2014 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",