@maind-dev/mcp-bridge 0.25.1 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -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.1";
205
+ BRIDGE_VERSION = "0.26.0";
206
206
  }
207
207
  });
208
208
 
@@ -491,6 +491,43 @@ var init_hook_wiring = __esm({
491
491
  }
492
492
  });
493
493
 
494
+ // src/bridge-config.ts
495
+ import { existsSync as existsSync3, readFileSync as readFileSync3 } from "node:fs";
496
+ import { join as join8 } from "node:path";
497
+ function bridgeConfigPath() {
498
+ return join8(configDir(), "config.json");
499
+ }
500
+ function readBridgeConfig() {
501
+ try {
502
+ const file = bridgeConfigPath();
503
+ if (!existsSync3(file)) return null;
504
+ const raw = JSON.parse(readFileSync3(file, "utf8"));
505
+ if (typeof raw !== "object" || raw === null || Array.isArray(raw)) {
506
+ return null;
507
+ }
508
+ const o = raw;
509
+ const config = {};
510
+ if (typeof o.auto_announce === "boolean") {
511
+ config.auto_announce = o.auto_announce;
512
+ }
513
+ if (typeof o.machine_label === "string") {
514
+ config.machine_label = o.machine_label;
515
+ }
516
+ if (typeof o.auto_working_paths === "boolean") {
517
+ config.auto_working_paths = o.auto_working_paths;
518
+ }
519
+ return config;
520
+ } catch {
521
+ return null;
522
+ }
523
+ }
524
+ var init_bridge_config = __esm({
525
+ "src/bridge-config.ts"() {
526
+ "use strict";
527
+ init_device_id();
528
+ }
529
+ });
530
+
494
531
  // ../../packages/code-index/build/parse/keys.js
495
532
  function moduleKey(filePath) {
496
533
  return `${filePath}#<module>`;
@@ -2565,6 +2602,204 @@ var init_build = __esm({
2565
2602
  }
2566
2603
  });
2567
2604
 
2605
+ // src/presence.ts
2606
+ import { execFile } from "node:child_process";
2607
+ import { randomUUID as randomUUID2 } from "node:crypto";
2608
+ function resolveClientSessionId(env) {
2609
+ const fromEnv = (env.MAIND_SESSION_ID ?? "").trim().toLowerCase();
2610
+ return UUID_RE2.test(fromEnv) ? fromEnv : randomUUID2();
2611
+ }
2612
+ function autoAnnounceDisabled(env, config) {
2613
+ const raw = (env.MAIND_AUTO_ANNOUNCE ?? "").trim().toLowerCase();
2614
+ if (raw === "off" || raw === "0" || raw === "false") return true;
2615
+ return config?.auto_announce === false;
2616
+ }
2617
+ function autoWorkingPathsEnabled(env, config) {
2618
+ const raw = (env.MAIND_AUTO_WORKING_PATHS ?? "").trim().toLowerCase();
2619
+ if (raw === "on" || raw === "1" || raw === "true") return true;
2620
+ if (raw === "off" || raw === "0" || raw === "false") return false;
2621
+ return config?.auto_working_paths === true;
2622
+ }
2623
+ async function defaultGitBranch() {
2624
+ return await new Promise((resolve3) => {
2625
+ execFile(
2626
+ "git",
2627
+ ["rev-parse", "--abbrev-ref", "HEAD"],
2628
+ { timeout: 2e3, encoding: "utf8" },
2629
+ (err, stdout) => {
2630
+ if (err) return resolve3(null);
2631
+ const branch = stdout.trim();
2632
+ resolve3(branch.length > 0 && branch !== "HEAD" ? branch : null);
2633
+ }
2634
+ );
2635
+ });
2636
+ }
2637
+ function normalizeMachineLabel(raw) {
2638
+ if (typeof raw !== "string") return null;
2639
+ const v = raw.trim().slice(0, 100);
2640
+ return v.length > 0 ? v : null;
2641
+ }
2642
+ var REFRESH_THROTTLE_MS, TTL_MINUTES, BACKOFF_BASE_MS, BACKOFF_CAP_MS, END_TIMEOUT_MS, UUID_RE2, PresenceAnnouncer;
2643
+ var init_presence = __esm({
2644
+ "src/presence.ts"() {
2645
+ "use strict";
2646
+ init_bridge_config();
2647
+ REFRESH_THROTTLE_MS = 45e3;
2648
+ TTL_MINUTES = 120;
2649
+ BACKOFF_BASE_MS = 3e4;
2650
+ BACKOFF_CAP_MS = 15 * 6e4;
2651
+ END_TIMEOUT_MS = 1500;
2652
+ UUID_RE2 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
2653
+ PresenceAnnouncer = class {
2654
+ projectKey;
2655
+ postToolCall;
2656
+ now;
2657
+ gitBranch;
2658
+ log;
2659
+ machineLabel;
2660
+ enabled;
2661
+ // ADR-277: consented enrichment + snapshot sink (both optional, fail-open).
2662
+ workingPathsEnabled;
2663
+ deriveWorkingPaths;
2664
+ snapshot;
2665
+ lastBranch = null;
2666
+ sessionId;
2667
+ lastAnnounceAt = 0;
2668
+ inFlight = false;
2669
+ consecutiveFailures = 0;
2670
+ nextAttemptAt = 0;
2671
+ ended = false;
2672
+ constructor(deps) {
2673
+ const env = deps.env ?? process.env;
2674
+ const config = (deps.readConfig ?? readBridgeConfig)();
2675
+ this.projectKey = deps.projectKey;
2676
+ this.postToolCall = deps.postToolCall;
2677
+ this.now = deps.now ?? Date.now;
2678
+ this.gitBranch = deps.gitBranch ?? defaultGitBranch;
2679
+ this.log = deps.log ?? ((msg) => process.stderr.write(msg + "\n"));
2680
+ this.machineLabel = normalizeMachineLabel(config?.machine_label);
2681
+ this.enabled = this.projectKey !== null && !autoAnnounceDisabled(env, config);
2682
+ this.workingPathsEnabled = autoWorkingPathsEnabled(env, config);
2683
+ this.deriveWorkingPaths = deps.deriveWorkingPaths ?? null;
2684
+ this.snapshot = deps.snapshot ?? null;
2685
+ this.sessionId = resolveClientSessionId(env);
2686
+ }
2687
+ get isEnabled() {
2688
+ return this.enabled;
2689
+ }
2690
+ /**
2691
+ * Called once the forwarder's MCP session is established (initialize
2692
+ * response captured). Fires the first announce — the session becomes visible
2693
+ * on /planning without any agent involvement (C1).
2694
+ */
2695
+ onSessionReady() {
2696
+ if (!this.enabled || this.ended) return;
2697
+ if (this.lastAnnounceAt > 0) return;
2698
+ void this.announce("active");
2699
+ }
2700
+ /**
2701
+ * Called on every real tool-call passing through the bridge. Throttled
2702
+ * re-announce keeps the session fresh WHILE it is actually working; an idle
2703
+ * session stops refreshing and goes stale on the renderer — honest freshness.
2704
+ */
2705
+ onActivity() {
2706
+ if (!this.enabled || this.ended) return;
2707
+ if (this.lastAnnounceAt === 0) return;
2708
+ if (this.now() - this.lastAnnounceAt < REFRESH_THROTTLE_MS) return;
2709
+ void this.announce("active");
2710
+ }
2711
+ /**
2712
+ * Best-effort `status:'ended'` on shutdown, bounded by END_TIMEOUT_MS so it
2713
+ * can never hold the process open. The server TTL is the fallback.
2714
+ */
2715
+ async end() {
2716
+ if (!this.enabled || this.ended) return;
2717
+ this.ended = true;
2718
+ if (this.lastAnnounceAt === 0) return;
2719
+ const timeout = new Promise(
2720
+ (resolve3) => setTimeout(resolve3, END_TIMEOUT_MS).unref()
2721
+ );
2722
+ await Promise.race([this.send("ended"), timeout]);
2723
+ }
2724
+ async announce(status) {
2725
+ if (this.inFlight) return;
2726
+ if (this.now() < this.nextAttemptAt) return;
2727
+ this.inFlight = true;
2728
+ try {
2729
+ await this.send(status);
2730
+ if (this.consecutiveFailures > 0) {
2731
+ this.log("[maind-mcp-bridge] presence announce recovered.");
2732
+ }
2733
+ this.consecutiveFailures = 0;
2734
+ this.nextAttemptAt = 0;
2735
+ this.lastAnnounceAt = this.now();
2736
+ } catch (err) {
2737
+ this.consecutiveFailures += 1;
2738
+ const backoff = Math.min(
2739
+ BACKOFF_BASE_MS * 2 ** (this.consecutiveFailures - 1),
2740
+ BACKOFF_CAP_MS
2741
+ );
2742
+ this.nextAttemptAt = this.now() + backoff;
2743
+ if (this.consecutiveFailures === 1) {
2744
+ this.log(
2745
+ `[maind-mcp-bridge] presence announce failed (advisory, backing off): ${err instanceof Error ? err.message : String(err)}`
2746
+ );
2747
+ }
2748
+ } finally {
2749
+ this.inFlight = false;
2750
+ }
2751
+ }
2752
+ async send(status) {
2753
+ if (this.projectKey === null) return;
2754
+ const args = {
2755
+ project_key: this.projectKey,
2756
+ session_id: this.sessionId,
2757
+ status,
2758
+ ttl_minutes: TTL_MINUTES,
2759
+ // Self-declaration (migration 20260801120000). The server CANNOT derive
2760
+ // this: our announce rides the very same forwarder — headers included —
2761
+ // as an `announce_session` the agent writes itself, so the two requests
2762
+ // are byte-identical apart from these args. Without the marker a
2763
+ // skeleton row is indistinguishable from a sloppy agent session, which
2764
+ // is how 16 of 23 rows came to say nothing AND not say why. Display hint
2765
+ // only; the server keeps 'agent' once an agent has enriched the row.
2766
+ // ADR-277: the server ALSO keys its consent enforcement on this
2767
+ // self-declaration — infra-supplied working_paths are consent-gated,
2768
+ // deliberate agent declarations are not.
2769
+ announce_source: "bridge"
2770
+ };
2771
+ if (status === "active") {
2772
+ const branch = await this.gitBranch();
2773
+ if (branch) args.branch = branch;
2774
+ this.lastBranch = branch;
2775
+ if (this.machineLabel) args.machine_label = this.machineLabel;
2776
+ if (this.workingPathsEnabled && this.deriveWorkingPaths) {
2777
+ try {
2778
+ const wp = await this.deriveWorkingPaths();
2779
+ if (wp && wp.length > 0) args.working_paths = wp;
2780
+ } catch {
2781
+ }
2782
+ }
2783
+ }
2784
+ const payload = await this.postToolCall("announce_session", args);
2785
+ if (this.snapshot) {
2786
+ try {
2787
+ if (status === "ended") {
2788
+ this.snapshot.endSession();
2789
+ } else if (payload !== null && payload !== void 0) {
2790
+ this.snapshot.write(payload, {
2791
+ sessionId: this.sessionId,
2792
+ branch: this.lastBranch
2793
+ });
2794
+ }
2795
+ } catch {
2796
+ }
2797
+ }
2798
+ }
2799
+ };
2800
+ }
2801
+ });
2802
+
2568
2803
  // src/presence-snapshot.ts
2569
2804
  import {
2570
2805
  mkdirSync as mkdirSync4,
@@ -2890,6 +3125,8 @@ function emptyAnalysis(sessionId) {
2890
3125
  model_mix: [],
2891
3126
  ai_title: null,
2892
3127
  session_slug: null,
3128
+ maind_tool_calls: {},
3129
+ maind_connected: "unknown",
2893
3130
  lines_seen: 0,
2894
3131
  analyzer_version: ANALYZER_VERSION
2895
3132
  };
@@ -2940,6 +3177,18 @@ async function analyzeSession(path8) {
2940
3177
  const rawTs = parsed.timestamp ? Date.parse(parsed.timestamp) : Number.NaN;
2941
3178
  bumpModel(modelMix, parsed.message.model, isSide, num2(usage?.output_tokens), Number.isFinite(rawTs) ? rawTs : 0);
2942
3179
  }
3180
+ if (role === "assistant") {
3181
+ for (const b of asBlocks(parsed.message?.content)) {
3182
+ if (b.type !== "tool_use" || typeof b.name !== "string")
3183
+ continue;
3184
+ if (!b.name.startsWith(MAIND_TOOL_PREFIX))
3185
+ continue;
3186
+ const tool = b.name.slice(MAIND_TOOL_PREFIX.length);
3187
+ if (!tool)
3188
+ continue;
3189
+ a.maind_tool_calls[tool] = (a.maind_tool_calls[tool] ?? 0) + 1;
3190
+ }
3191
+ }
2943
3192
  if (isSide)
2944
3193
  return;
2945
3194
  if (role === "assistant") {
@@ -3034,14 +3283,17 @@ async function analyzeSession(path8) {
3034
3283
  a.momentum_final = series.length ? series[series.length - 1].value : 0;
3035
3284
  a.momentum_auc = Number(auc.toFixed(3));
3036
3285
  a.ended_positive = a.momentum_final > 0;
3286
+ if (Object.keys(a.maind_tool_calls).length > 0)
3287
+ a.maind_connected = "connected";
3037
3288
  return a;
3038
3289
  }
3039
- var ANALYZER_VERSION, REWORK_RE, CORRECTION_RE, ACCEPTANCE_RE, INTERRUPT_MARKER, DENIAL_MARKER, SYNTHETIC_MODEL, MOMENTUM_DECAY, MAG;
3290
+ var MAIND_TOOL_PREFIX, ANALYZER_VERSION, REWORK_RE, CORRECTION_RE, ACCEPTANCE_RE, INTERRUPT_MARKER, DENIAL_MARKER, SYNTHETIC_MODEL, MOMENTUM_DECAY, MAG;
3040
3291
  var init_session_analysis = __esm({
3041
3292
  "../../packages/claude-code-telemetry/dist/session-analysis.js"() {
3042
3293
  "use strict";
3043
3294
  init_effort();
3044
- ANALYZER_VERSION = "2026-08-04";
3295
+ MAIND_TOOL_PREFIX = "mcp__maind__";
3296
+ ANALYZER_VERSION = "2026-08-16";
3045
3297
  REWORK_RE = /(\brückgängig\b|zurücknehmen|\bnochmal(s)?\b|noch mal|\brevert\b|\bundo\b|\bredo\b|stattdessen|\binstead\b|mach(e)? das (nochmal|neu)|try again)/i;
3046
3298
  CORRECTION_RE = /(\bnein\b|\bfalsch\b|stimmt nicht|das ist nicht|so nicht|\bnicht so\b|warum hast du|wieso hast du|\bno\b|\bnope\b|\bwrong\b|\bincorrect\b|that'?s not|that is not|\bdon'?t\b|\bdoesn'?t\b|shouldn'?t)/i;
3047
3299
  ACCEPTANCE_RE = /(\bdanke\b|\bperfekt\b|\bsuper\b|\bpasst\b|\bgenau\b|sieht gut|\bcommit\b|\bship\b|\bmerge\b|\bpush\b|looks good|\blgtm\b|\bthanks\b|thank you|\bperfect\b|\bgreat\b|\bexactly\b|\bnice\b|well done|👍|✅|🎉)/i;
@@ -3315,48 +3567,6 @@ var init_api = __esm({
3315
3567
  }
3316
3568
  });
3317
3569
 
3318
- // src/hooks/hook-input.ts
3319
- async function readHookInput() {
3320
- if (process.stdin.isTTY) return {};
3321
- const chunks = [];
3322
- return await new Promise((resolve3) => {
3323
- let settled = false;
3324
- const settle = (value) => {
3325
- if (settled) return;
3326
- settled = true;
3327
- clearTimeout(timer);
3328
- resolve3(value);
3329
- };
3330
- const timer = setTimeout(() => settle({}), STDIN_TIMEOUT_MS);
3331
- process.stdin.on("data", (c) => chunks.push(c));
3332
- process.stdin.on("end", () => {
3333
- try {
3334
- const text = Buffer.concat(chunks).toString("utf-8").trim();
3335
- settle(text ? JSON.parse(text) : {});
3336
- } catch {
3337
- settle({});
3338
- }
3339
- });
3340
- process.stdin.on("error", () => settle({}));
3341
- });
3342
- }
3343
- function transcriptPathOf(input) {
3344
- return typeof input.transcript_path === "string" ? input.transcript_path : "";
3345
- }
3346
- function toolFilePathOf(input) {
3347
- const args = input.tool_input;
3348
- if (args === null || typeof args !== "object") return "";
3349
- const p = args.file_path;
3350
- return typeof p === "string" ? p : "";
3351
- }
3352
- var STDIN_TIMEOUT_MS;
3353
- var init_hook_input = __esm({
3354
- "src/hooks/hook-input.ts"() {
3355
- "use strict";
3356
- STDIN_TIMEOUT_MS = 200;
3357
- }
3358
- });
3359
-
3360
3570
  // src/hooks/edit-guard.ts
3361
3571
  function prefixConflict(a, b) {
3362
3572
  if (a === b) return true;
@@ -3465,6 +3675,48 @@ var init_edit_guard = __esm({
3465
3675
  }
3466
3676
  });
3467
3677
 
3678
+ // src/hooks/hook-input.ts
3679
+ async function readHookInput() {
3680
+ if (process.stdin.isTTY) return {};
3681
+ const chunks = [];
3682
+ return await new Promise((resolve3) => {
3683
+ let settled = false;
3684
+ const settle = (value) => {
3685
+ if (settled) return;
3686
+ settled = true;
3687
+ clearTimeout(timer);
3688
+ resolve3(value);
3689
+ };
3690
+ const timer = setTimeout(() => settle({}), STDIN_TIMEOUT_MS);
3691
+ process.stdin.on("data", (c) => chunks.push(c));
3692
+ process.stdin.on("end", () => {
3693
+ try {
3694
+ const text = Buffer.concat(chunks).toString("utf-8").trim();
3695
+ settle(text ? JSON.parse(text) : {});
3696
+ } catch {
3697
+ settle({});
3698
+ }
3699
+ });
3700
+ process.stdin.on("error", () => settle({}));
3701
+ });
3702
+ }
3703
+ function transcriptPathOf(input) {
3704
+ return typeof input.transcript_path === "string" ? input.transcript_path : "";
3705
+ }
3706
+ function toolFilePathOf(input) {
3707
+ const args = input.tool_input;
3708
+ if (args === null || typeof args !== "object") return "";
3709
+ const p = args.file_path;
3710
+ return typeof p === "string" ? p : "";
3711
+ }
3712
+ var STDIN_TIMEOUT_MS;
3713
+ var init_hook_input = __esm({
3714
+ "src/hooks/hook-input.ts"() {
3715
+ "use strict";
3716
+ STDIN_TIMEOUT_MS = 200;
3717
+ }
3718
+ });
3719
+
3468
3720
  // src/hooks/state.ts
3469
3721
  import { mkdir as mkdir2, readFile as readFile2, writeFile as writeFile2, rename as rename2 } from "node:fs/promises";
3470
3722
  import { existsSync as existsSync9 } from "node:fs";
@@ -3522,6 +3774,7 @@ var init_state = __esm({
3522
3774
  var hooks_exports = {};
3523
3775
  __export(hooks_exports, {
3524
3776
  effectiveConfig: () => effectiveConfig,
3777
+ grandparentPid: () => grandparentPid,
3525
3778
  runFlush: () => runFlush,
3526
3779
  runHookStatus: () => runHookStatus,
3527
3780
  runOnFileEdit: () => runOnFileEdit,
@@ -4006,11 +4259,48 @@ var init_hooks2 = __esm({
4006
4259
  }
4007
4260
  });
4008
4261
 
4262
+ // src/session-end/connection.ts
4263
+ function resolveConnection(e) {
4264
+ if (e.ownSnapshotAgeMs !== null && e.ownSnapshotAgeMs <= SNAPSHOT_EVIDENCE_MAX_AGE_MS) {
4265
+ return "connected";
4266
+ }
4267
+ if (e.sawMaindCall) return "connected";
4268
+ if (e.presenceUsable) return "not_connected";
4269
+ return "unknown";
4270
+ }
4271
+ var SNAPSHOT_EVIDENCE_MAX_AGE_MS;
4272
+ var init_connection = __esm({
4273
+ "src/session-end/connection.ts"() {
4274
+ "use strict";
4275
+ SNAPSHOT_EVIDENCE_MAX_AGE_MS = 30 * 6e4;
4276
+ }
4277
+ });
4278
+
4009
4279
  // src/session-end/index.ts
4010
4280
  var session_end_exports = {};
4011
4281
  __export(session_end_exports, {
4012
4282
  runOnSessionEnd: () => runOnSessionEnd
4013
4283
  });
4284
+ function connectionVerdict(sawMaindCall, nowMs) {
4285
+ try {
4286
+ const projectKey = computeProjectKey();
4287
+ const presenceUsable = projectKey !== null && !autoAnnounceDisabled(process.env, readBridgeConfig());
4288
+ let ownSnapshotAgeMs = null;
4289
+ if (projectKey !== null) {
4290
+ const own = selectOwnSnapshot(readSnapshots(projectKey), {
4291
+ grandparentPid: grandparentPid(),
4292
+ cwd: process.cwd()
4293
+ });
4294
+ if (own) {
4295
+ const written = Date.parse(own.snap.written_at);
4296
+ ownSnapshotAgeMs = Number.isFinite(written) ? Math.max(0, nowMs - written) : null;
4297
+ }
4298
+ }
4299
+ return resolveConnection({ ownSnapshotAgeMs, sawMaindCall, presenceUsable });
4300
+ } catch {
4301
+ return sawMaindCall ? "connected" : "unknown";
4302
+ }
4303
+ }
4014
4304
  function presenceSessionId() {
4015
4305
  const raw = (process.env.MAIND_SESSION_ID ?? "").trim().toLowerCase();
4016
4306
  return /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(raw) ? raw : null;
@@ -4045,6 +4335,10 @@ async function runOnSessionEnd() {
4045
4335
  analytics.session_id = sessionId;
4046
4336
  span.session_id = sessionId;
4047
4337
  }
4338
+ analytics.maind_connected = connectionVerdict(
4339
+ analytics.maind_connected === "connected",
4340
+ Date.now()
4341
+ );
4048
4342
  if (analytics.session_id) {
4049
4343
  const body = ingestBody(analytics, span, {
4050
4344
  client_session_id: presenceSessionId(),
@@ -4067,11 +4361,17 @@ var init_session_end = __esm({
4067
4361
  "src/session-end/index.ts"() {
4068
4362
  "use strict";
4069
4363
  init_dist();
4364
+ init_bridge_config();
4070
4365
  init_device_id();
4071
4366
  init_api();
4367
+ init_edit_guard();
4072
4368
  init_hook_input();
4073
4369
  init_hooks2();
4370
+ init_presence();
4371
+ init_presence_snapshot();
4372
+ init_project_key();
4074
4373
  init_version();
4374
+ init_connection();
4075
4375
  INGEST_ENDPOINT = DEFAULT_INGEST_ENDPOINT;
4076
4376
  }
4077
4377
  });
@@ -6574,41 +6874,8 @@ function errMessage(err) {
6574
6874
  }
6575
6875
 
6576
6876
  // src/install/working-paths-consent.ts
6877
+ init_bridge_config();
6577
6878
  import * as readline3 from "node:readline";
6578
-
6579
- // src/bridge-config.ts
6580
- init_device_id();
6581
- import { existsSync as existsSync3, readFileSync as readFileSync3 } from "node:fs";
6582
- import { join as join8 } from "node:path";
6583
- function bridgeConfigPath() {
6584
- return join8(configDir(), "config.json");
6585
- }
6586
- function readBridgeConfig() {
6587
- try {
6588
- const file = bridgeConfigPath();
6589
- if (!existsSync3(file)) return null;
6590
- const raw = JSON.parse(readFileSync3(file, "utf8"));
6591
- if (typeof raw !== "object" || raw === null || Array.isArray(raw)) {
6592
- return null;
6593
- }
6594
- const o = raw;
6595
- const config = {};
6596
- if (typeof o.auto_announce === "boolean") {
6597
- config.auto_announce = o.auto_announce;
6598
- }
6599
- if (typeof o.machine_label === "string") {
6600
- config.machine_label = o.machine_label;
6601
- }
6602
- if (typeof o.auto_working_paths === "boolean") {
6603
- config.auto_working_paths = o.auto_working_paths;
6604
- }
6605
- return config;
6606
- } catch {
6607
- return null;
6608
- }
6609
- }
6610
-
6611
- // src/install/working-paths-consent.ts
6612
6879
  var TARGET_KEY = "config:auto_working_paths";
6613
6880
  var WORKING_PATHS_CONSENT_PROMPT = '\nEnable presence enrichment (auto working_paths)?\nWith this ON, the bridge includes the repo-relative PARENT DIRECTORIES of your\nlocally changed files (from `git status`, max 8, re-derived at most every 45s)\nin its presence announce \u2014 so your own parallel sessions can warn each other\nbefore editing the same area. Directory names only: never file contents, never\nabsolute paths. Server-side these paths are account-private (org members never\nsee them) and revocable any time on the dashboard consent page or via\n{"auto_working_paths": false} in the bridge config.\n[y/N]: ';
6614
6881
  async function applyWorkingPathsConsent(opts) {
@@ -8682,198 +8949,8 @@ async function postSavingsMetric(input) {
8682
8949
  }
8683
8950
  }
8684
8951
 
8685
- // src/presence.ts
8686
- import { execFile } from "node:child_process";
8687
- import { randomUUID as randomUUID2 } from "node:crypto";
8688
- var REFRESH_THROTTLE_MS = 45e3;
8689
- var TTL_MINUTES = 120;
8690
- var BACKOFF_BASE_MS = 3e4;
8691
- var BACKOFF_CAP_MS = 15 * 6e4;
8692
- var END_TIMEOUT_MS = 1500;
8693
- var UUID_RE2 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
8694
- function resolveClientSessionId(env) {
8695
- const fromEnv = (env.MAIND_SESSION_ID ?? "").trim().toLowerCase();
8696
- return UUID_RE2.test(fromEnv) ? fromEnv : randomUUID2();
8697
- }
8698
- function autoAnnounceDisabled(env, config) {
8699
- const raw = (env.MAIND_AUTO_ANNOUNCE ?? "").trim().toLowerCase();
8700
- if (raw === "off" || raw === "0" || raw === "false") return true;
8701
- return config?.auto_announce === false;
8702
- }
8703
- function autoWorkingPathsEnabled(env, config) {
8704
- const raw = (env.MAIND_AUTO_WORKING_PATHS ?? "").trim().toLowerCase();
8705
- if (raw === "on" || raw === "1" || raw === "true") return true;
8706
- if (raw === "off" || raw === "0" || raw === "false") return false;
8707
- return config?.auto_working_paths === true;
8708
- }
8709
- var PresenceAnnouncer = class {
8710
- projectKey;
8711
- postToolCall;
8712
- now;
8713
- gitBranch;
8714
- log;
8715
- machineLabel;
8716
- enabled;
8717
- // ADR-277: consented enrichment + snapshot sink (both optional, fail-open).
8718
- workingPathsEnabled;
8719
- deriveWorkingPaths;
8720
- snapshot;
8721
- lastBranch = null;
8722
- sessionId;
8723
- lastAnnounceAt = 0;
8724
- inFlight = false;
8725
- consecutiveFailures = 0;
8726
- nextAttemptAt = 0;
8727
- ended = false;
8728
- constructor(deps) {
8729
- const env = deps.env ?? process.env;
8730
- const config = (deps.readConfig ?? readBridgeConfig)();
8731
- this.projectKey = deps.projectKey;
8732
- this.postToolCall = deps.postToolCall;
8733
- this.now = deps.now ?? Date.now;
8734
- this.gitBranch = deps.gitBranch ?? defaultGitBranch;
8735
- this.log = deps.log ?? ((msg) => process.stderr.write(msg + "\n"));
8736
- this.machineLabel = normalizeMachineLabel(config?.machine_label);
8737
- this.enabled = this.projectKey !== null && !autoAnnounceDisabled(env, config);
8738
- this.workingPathsEnabled = autoWorkingPathsEnabled(env, config);
8739
- this.deriveWorkingPaths = deps.deriveWorkingPaths ?? null;
8740
- this.snapshot = deps.snapshot ?? null;
8741
- this.sessionId = resolveClientSessionId(env);
8742
- }
8743
- get isEnabled() {
8744
- return this.enabled;
8745
- }
8746
- /**
8747
- * Called once the forwarder's MCP session is established (initialize
8748
- * response captured). Fires the first announce — the session becomes visible
8749
- * on /planning without any agent involvement (C1).
8750
- */
8751
- onSessionReady() {
8752
- if (!this.enabled || this.ended) return;
8753
- if (this.lastAnnounceAt > 0) return;
8754
- void this.announce("active");
8755
- }
8756
- /**
8757
- * Called on every real tool-call passing through the bridge. Throttled
8758
- * re-announce keeps the session fresh WHILE it is actually working; an idle
8759
- * session stops refreshing and goes stale on the renderer — honest freshness.
8760
- */
8761
- onActivity() {
8762
- if (!this.enabled || this.ended) return;
8763
- if (this.lastAnnounceAt === 0) return;
8764
- if (this.now() - this.lastAnnounceAt < REFRESH_THROTTLE_MS) return;
8765
- void this.announce("active");
8766
- }
8767
- /**
8768
- * Best-effort `status:'ended'` on shutdown, bounded by END_TIMEOUT_MS so it
8769
- * can never hold the process open. The server TTL is the fallback.
8770
- */
8771
- async end() {
8772
- if (!this.enabled || this.ended) return;
8773
- this.ended = true;
8774
- if (this.lastAnnounceAt === 0) return;
8775
- const timeout = new Promise(
8776
- (resolve3) => setTimeout(resolve3, END_TIMEOUT_MS).unref()
8777
- );
8778
- await Promise.race([this.send("ended"), timeout]);
8779
- }
8780
- async announce(status) {
8781
- if (this.inFlight) return;
8782
- if (this.now() < this.nextAttemptAt) return;
8783
- this.inFlight = true;
8784
- try {
8785
- await this.send(status);
8786
- if (this.consecutiveFailures > 0) {
8787
- this.log("[maind-mcp-bridge] presence announce recovered.");
8788
- }
8789
- this.consecutiveFailures = 0;
8790
- this.nextAttemptAt = 0;
8791
- this.lastAnnounceAt = this.now();
8792
- } catch (err) {
8793
- this.consecutiveFailures += 1;
8794
- const backoff = Math.min(
8795
- BACKOFF_BASE_MS * 2 ** (this.consecutiveFailures - 1),
8796
- BACKOFF_CAP_MS
8797
- );
8798
- this.nextAttemptAt = this.now() + backoff;
8799
- if (this.consecutiveFailures === 1) {
8800
- this.log(
8801
- `[maind-mcp-bridge] presence announce failed (advisory, backing off): ${err instanceof Error ? err.message : String(err)}`
8802
- );
8803
- }
8804
- } finally {
8805
- this.inFlight = false;
8806
- }
8807
- }
8808
- async send(status) {
8809
- if (this.projectKey === null) return;
8810
- const args = {
8811
- project_key: this.projectKey,
8812
- session_id: this.sessionId,
8813
- status,
8814
- ttl_minutes: TTL_MINUTES,
8815
- // Self-declaration (migration 20260801120000). The server CANNOT derive
8816
- // this: our announce rides the very same forwarder — headers included —
8817
- // as an `announce_session` the agent writes itself, so the two requests
8818
- // are byte-identical apart from these args. Without the marker a
8819
- // skeleton row is indistinguishable from a sloppy agent session, which
8820
- // is how 16 of 23 rows came to say nothing AND not say why. Display hint
8821
- // only; the server keeps 'agent' once an agent has enriched the row.
8822
- // ADR-277: the server ALSO keys its consent enforcement on this
8823
- // self-declaration — infra-supplied working_paths are consent-gated,
8824
- // deliberate agent declarations are not.
8825
- announce_source: "bridge"
8826
- };
8827
- if (status === "active") {
8828
- const branch = await this.gitBranch();
8829
- if (branch) args.branch = branch;
8830
- this.lastBranch = branch;
8831
- if (this.machineLabel) args.machine_label = this.machineLabel;
8832
- if (this.workingPathsEnabled && this.deriveWorkingPaths) {
8833
- try {
8834
- const wp = await this.deriveWorkingPaths();
8835
- if (wp && wp.length > 0) args.working_paths = wp;
8836
- } catch {
8837
- }
8838
- }
8839
- }
8840
- const payload = await this.postToolCall("announce_session", args);
8841
- if (this.snapshot) {
8842
- try {
8843
- if (status === "ended") {
8844
- this.snapshot.endSession();
8845
- } else if (payload !== null && payload !== void 0) {
8846
- this.snapshot.write(payload, {
8847
- sessionId: this.sessionId,
8848
- branch: this.lastBranch
8849
- });
8850
- }
8851
- } catch {
8852
- }
8853
- }
8854
- }
8855
- };
8856
- async function defaultGitBranch() {
8857
- return await new Promise((resolve3) => {
8858
- execFile(
8859
- "git",
8860
- ["rev-parse", "--abbrev-ref", "HEAD"],
8861
- { timeout: 2e3, encoding: "utf8" },
8862
- (err, stdout) => {
8863
- if (err) return resolve3(null);
8864
- const branch = stdout.trim();
8865
- resolve3(branch.length > 0 && branch !== "HEAD" ? branch : null);
8866
- }
8867
- );
8868
- });
8869
- }
8870
- function normalizeMachineLabel(raw) {
8871
- if (typeof raw !== "string") return null;
8872
- const v = raw.trim().slice(0, 100);
8873
- return v.length > 0 ? v : null;
8874
- }
8875
-
8876
8952
  // src/index.ts
8953
+ init_presence();
8877
8954
  init_presence_snapshot();
8878
8955
 
8879
8956
  // src/working-paths.ts
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/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}}}
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":18118,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/effort.js","kind":"import-statement","original":"./effort.js"}],"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/edit-guard.ts":{"bytes":8754,"imports":[],"format":"esm"},"src/hooks/hook-input.ts":{"bytes":2481,"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":29888,"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/connection.ts":{"bytes":3229,"imports":[],"format":"esm"},"src/session-end/index.ts":{"bytes":6114,"imports":[{"path":"../../packages/claude-code-telemetry/dist/index.js","kind":"import-statement","original":"@maind/claude-code-telemetry"},{"path":"src/bridge-config.ts","kind":"import-statement","original":"../bridge-config.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/hooks/api.ts","kind":"import-statement","original":"../hooks/api.js"},{"path":"src/hooks/edit-guard.ts","kind":"import-statement","original":"../hooks/edit-guard.js"},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/hooks/index.ts","kind":"import-statement","original":"../hooks/index.js"},{"path":"src/presence.ts","kind":"import-statement","original":"../presence.js"},{"path":"src/presence-snapshot.ts","kind":"import-statement","original":"../presence-snapshot.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"},{"path":"src/session-end/connection.ts","kind":"import-statement","original":"./connection.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: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:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node: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: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}],"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},"src/bridge-config.ts":{"bytesInOutput":994},"../../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.ts":{"bytesInOutput":7606},"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":9943},"../../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/edit-guard.ts":{"bytesInOutput":5068},"src/hooks/hook-input.ts":{"bytesInOutput":1142},"src/hooks/state.ts":{"bytesInOutput":1728},"src/hooks/index.ts":{"bytesInOutput":16549},"src/session-end/connection.ts":{"bytesInOutput":436},"src/session-end/index.ts":{"bytesInOutput":3176},"src/index.ts":{"bytesInOutput":8578},"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":3391},"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/working-paths.ts":{"bytesInOutput":1317}},"bytes":320492}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maind-dev/mcp-bridge",
3
- "version": "0.25.1",
3
+ "version": "0.26.0",
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",