@maind-dev/mcp-bridge 0.39.0 → 0.40.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 +288 -69
- package/build/meta.json +1 -1
- package/package.json +16 -15
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.
|
|
205
|
+
BRIDGE_VERSION = "0.40.0";
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
208
|
|
|
@@ -2878,7 +2878,7 @@ function declaredPaths(manifest) {
|
|
|
2878
2878
|
return [...out2];
|
|
2879
2879
|
}
|
|
2880
2880
|
async function gatherSpecDriftFacts(repoRoot, opts = {}) {
|
|
2881
|
-
const
|
|
2881
|
+
const join29 = (a, b) => posix5.join(a, b);
|
|
2882
2882
|
const manifestPath = opts.manifestPath ?? DEFAULT_MANIFEST_RELPATH;
|
|
2883
2883
|
const skipped = [];
|
|
2884
2884
|
const empty = {
|
|
@@ -2895,7 +2895,7 @@ async function gatherSpecDriftFacts(repoRoot, opts = {}) {
|
|
|
2895
2895
|
if (trimOrNull3(runGit(repoRoot, ["rev-parse", "--is-inside-work-tree"])) !== "true") {
|
|
2896
2896
|
return { ...empty, manifestError: "not a git work tree" };
|
|
2897
2897
|
}
|
|
2898
|
-
const abs =
|
|
2898
|
+
const abs = join29(repoRoot, manifestPath);
|
|
2899
2899
|
if (!existsSync6(abs)) {
|
|
2900
2900
|
return {
|
|
2901
2901
|
...empty,
|
|
@@ -2916,7 +2916,7 @@ async function gatherSpecDriftFacts(repoRoot, opts = {}) {
|
|
|
2916
2916
|
const sources = /* @__PURE__ */ new Map();
|
|
2917
2917
|
for (const p of declaredPaths(manifest)) {
|
|
2918
2918
|
try {
|
|
2919
|
-
sources.set(p, readFileSync5(
|
|
2919
|
+
sources.set(p, readFileSync5(join29(repoRoot, p), "utf8"));
|
|
2920
2920
|
} catch {
|
|
2921
2921
|
sources.set(p, null);
|
|
2922
2922
|
skipped.push(`declared file unreadable in the working tree: ${p}`);
|
|
@@ -3610,6 +3610,157 @@ var init_types3 = __esm({
|
|
|
3610
3610
|
}
|
|
3611
3611
|
});
|
|
3612
3612
|
|
|
3613
|
+
// ../../packages/code-index/build/repo-health/theme-class-drift.js
|
|
3614
|
+
import { readFileSync as readFileSync8 } from "node:fs";
|
|
3615
|
+
import { join as join14 } from "node:path";
|
|
3616
|
+
function extractTokens(css) {
|
|
3617
|
+
const tokens = /* @__PURE__ */ new Set();
|
|
3618
|
+
for (const m of css.matchAll(TOKEN_DECL_RE))
|
|
3619
|
+
tokens.add(m[1]);
|
|
3620
|
+
return tokens;
|
|
3621
|
+
}
|
|
3622
|
+
function deriveNamespaces(tokens) {
|
|
3623
|
+
return new Set([...tokens].map((t) => t.split("-")[0]));
|
|
3624
|
+
}
|
|
3625
|
+
function stripCommentLines(content) {
|
|
3626
|
+
return content.split("\n").map((line) => {
|
|
3627
|
+
const t = line.trimStart();
|
|
3628
|
+
return t.startsWith("//") || t.startsWith("*") || t.startsWith("/*") ? "" : line;
|
|
3629
|
+
}).join("\n");
|
|
3630
|
+
}
|
|
3631
|
+
function evaluateThemeClasses(facts) {
|
|
3632
|
+
const namespaces = deriveNamespaces(facts.tokens);
|
|
3633
|
+
const findings = [];
|
|
3634
|
+
for (const { path: path8, content: raw } of facts.sources) {
|
|
3635
|
+
const content = stripCommentLines(raw);
|
|
3636
|
+
const seen = /* @__PURE__ */ new Set();
|
|
3637
|
+
for (const m of content.matchAll(CLASS_RE)) {
|
|
3638
|
+
const candidate = m[2];
|
|
3639
|
+
const namespace = candidate.split("-")[0];
|
|
3640
|
+
if (!namespaces.has(namespace))
|
|
3641
|
+
continue;
|
|
3642
|
+
if (facts.tokens.has(candidate))
|
|
3643
|
+
continue;
|
|
3644
|
+
const klass = `${m[1]}-${candidate}`;
|
|
3645
|
+
if (seen.has(klass))
|
|
3646
|
+
continue;
|
|
3647
|
+
seen.add(klass);
|
|
3648
|
+
findings.push({ file: path8, klass, token: candidate, namespace });
|
|
3649
|
+
}
|
|
3650
|
+
}
|
|
3651
|
+
return findings;
|
|
3652
|
+
}
|
|
3653
|
+
function deriveThemeClassVerdict(tokenCount, findingCount) {
|
|
3654
|
+
if (tokenCount === 0)
|
|
3655
|
+
return "no_opinion";
|
|
3656
|
+
return findingCount === 0 ? "clean" : "drift";
|
|
3657
|
+
}
|
|
3658
|
+
function isScannableSource(path8) {
|
|
3659
|
+
if (/\.(test|spec)\.[jt]sx?$/.test(path8))
|
|
3660
|
+
return false;
|
|
3661
|
+
if (/(^|\/)__(tests|mocks)__\//.test(path8))
|
|
3662
|
+
return false;
|
|
3663
|
+
return true;
|
|
3664
|
+
}
|
|
3665
|
+
function listTracked(repoRoot, patterns) {
|
|
3666
|
+
const out2 = runGit(repoRoot, ["ls-files", "--", ...patterns]);
|
|
3667
|
+
if (out2 === null)
|
|
3668
|
+
return [];
|
|
3669
|
+
return out2.split("\n").filter(Boolean);
|
|
3670
|
+
}
|
|
3671
|
+
function checkThemeClassDrift(repoRoot, opts = {}) {
|
|
3672
|
+
const maxBytes = opts.maxFileBytes ?? DEFAULT_MAX_FILE_BYTES;
|
|
3673
|
+
const tokens = /* @__PURE__ */ new Set();
|
|
3674
|
+
for (const rel of listTracked(repoRoot, ["*.css"])) {
|
|
3675
|
+
const css = safeRead(join14(repoRoot, rel), maxBytes);
|
|
3676
|
+
if (css === null)
|
|
3677
|
+
continue;
|
|
3678
|
+
for (const t of extractTokens(css))
|
|
3679
|
+
tokens.add(t);
|
|
3680
|
+
}
|
|
3681
|
+
if (tokens.size === 0) {
|
|
3682
|
+
return {
|
|
3683
|
+
ok: false,
|
|
3684
|
+
verdict: "no_opinion",
|
|
3685
|
+
tokenCount: 0,
|
|
3686
|
+
namespaceCount: 0,
|
|
3687
|
+
findings: [],
|
|
3688
|
+
scannedFiles: 0
|
|
3689
|
+
};
|
|
3690
|
+
}
|
|
3691
|
+
const sourcePatterns = opts.dirs !== void 0 && opts.dirs.length > 0 ? opts.dirs.flatMap((d) => SOURCE_PATTERNS.map((p) => `${d.replace(/\/+$/, "")}/**/${p}`)) : SOURCE_PATTERNS;
|
|
3692
|
+
const sources = [];
|
|
3693
|
+
for (const rel of listTracked(repoRoot, sourcePatterns)) {
|
|
3694
|
+
if (!isScannableSource(rel))
|
|
3695
|
+
continue;
|
|
3696
|
+
const content = safeRead(join14(repoRoot, rel), maxBytes);
|
|
3697
|
+
if (content === null)
|
|
3698
|
+
continue;
|
|
3699
|
+
sources.push({ path: rel, content });
|
|
3700
|
+
}
|
|
3701
|
+
const findings = evaluateThemeClasses({ tokens, sources });
|
|
3702
|
+
const verdict = deriveThemeClassVerdict(tokens.size, findings.length);
|
|
3703
|
+
return {
|
|
3704
|
+
ok: verdict === "clean",
|
|
3705
|
+
verdict,
|
|
3706
|
+
tokenCount: tokens.size,
|
|
3707
|
+
namespaceCount: deriveNamespaces(tokens).size,
|
|
3708
|
+
findings,
|
|
3709
|
+
scannedFiles: sources.length
|
|
3710
|
+
};
|
|
3711
|
+
}
|
|
3712
|
+
function safeRead(absPath, maxBytes) {
|
|
3713
|
+
try {
|
|
3714
|
+
const content = readFileSync8(absPath, "utf8");
|
|
3715
|
+
return content.length > maxBytes ? null : content;
|
|
3716
|
+
} catch {
|
|
3717
|
+
return null;
|
|
3718
|
+
}
|
|
3719
|
+
}
|
|
3720
|
+
var COLOR_PREFIXES, TOKEN_DECL_RE, CLASS_RE, SOURCE_PATTERNS, DEFAULT_MAX_FILE_BYTES;
|
|
3721
|
+
var init_theme_class_drift = __esm({
|
|
3722
|
+
"../../packages/code-index/build/repo-health/theme-class-drift.js"() {
|
|
3723
|
+
"use strict";
|
|
3724
|
+
init_discover();
|
|
3725
|
+
COLOR_PREFIXES = [
|
|
3726
|
+
"bg",
|
|
3727
|
+
"text",
|
|
3728
|
+
"border",
|
|
3729
|
+
"border-x",
|
|
3730
|
+
"border-y",
|
|
3731
|
+
"border-t",
|
|
3732
|
+
"border-r",
|
|
3733
|
+
"border-b",
|
|
3734
|
+
"border-l",
|
|
3735
|
+
"divide",
|
|
3736
|
+
"outline",
|
|
3737
|
+
"ring",
|
|
3738
|
+
"ring-offset",
|
|
3739
|
+
"fill",
|
|
3740
|
+
"stroke",
|
|
3741
|
+
"accent",
|
|
3742
|
+
"caret",
|
|
3743
|
+
"decoration",
|
|
3744
|
+
"placeholder",
|
|
3745
|
+
"shadow",
|
|
3746
|
+
"from",
|
|
3747
|
+
"via",
|
|
3748
|
+
"to"
|
|
3749
|
+
];
|
|
3750
|
+
TOKEN_DECL_RE = /--(?:color|background-image)-([a-z0-9-]+)\s*:/g;
|
|
3751
|
+
CLASS_RE = new RegExp(
|
|
3752
|
+
// Before the class: line start, whitespace, quotes, or the `:` of a variant
|
|
3753
|
+
// prefix (dark:, hover:, supports-[…]: …).
|
|
3754
|
+
String.raw`(?:^|[\s"'\`:])!?(` + COLOR_PREFIXES.join("|") + // `(?!-)`: a real class name never ends at a hyphen — this is what keeps
|
|
3755
|
+
// prose (`bg-brand-<hue>`) and interpolation (`bg-brand-${x}`) out.
|
|
3756
|
+
String.raw`)-([a-z][a-z0-9]*(?:-[a-z0-9]+)*)(?!-)`,
|
|
3757
|
+
"g"
|
|
3758
|
+
);
|
|
3759
|
+
SOURCE_PATTERNS = ["*.ts", "*.tsx", "*.js", "*.jsx"];
|
|
3760
|
+
DEFAULT_MAX_FILE_BYTES = 15e5;
|
|
3761
|
+
}
|
|
3762
|
+
});
|
|
3763
|
+
|
|
3613
3764
|
// ../../packages/code-index/build/index.js
|
|
3614
3765
|
var CODE_INDEX_VERSION;
|
|
3615
3766
|
var init_build = __esm({
|
|
@@ -3622,6 +3773,7 @@ var init_build = __esm({
|
|
|
3622
3773
|
init_divergence();
|
|
3623
3774
|
init_hooks();
|
|
3624
3775
|
init_number_collisions();
|
|
3776
|
+
init_theme_class_drift();
|
|
3625
3777
|
init_spec_drift();
|
|
3626
3778
|
init_types();
|
|
3627
3779
|
init_types2();
|
|
@@ -3868,19 +4020,19 @@ var init_presence = __esm({
|
|
|
3868
4020
|
import {
|
|
3869
4021
|
mkdirSync as mkdirSync4,
|
|
3870
4022
|
readdirSync as readdirSync4,
|
|
3871
|
-
readFileSync as
|
|
4023
|
+
readFileSync as readFileSync9,
|
|
3872
4024
|
renameSync as renameSync2,
|
|
3873
4025
|
statSync as statSync3,
|
|
3874
4026
|
unlinkSync,
|
|
3875
4027
|
writeFileSync as writeFileSync3
|
|
3876
4028
|
} from "node:fs";
|
|
3877
4029
|
import { homedir as homedir3 } from "node:os";
|
|
3878
|
-
import { join as
|
|
4030
|
+
import { join as join15 } from "node:path";
|
|
3879
4031
|
function presenceSnapshotBaseDir() {
|
|
3880
|
-
return
|
|
4032
|
+
return join15(homedir3(), ".maind", "presence");
|
|
3881
4033
|
}
|
|
3882
4034
|
function projectDir(baseDir, projectKey) {
|
|
3883
|
-
return
|
|
4035
|
+
return join15(baseDir, projectKey);
|
|
3884
4036
|
}
|
|
3885
4037
|
function createSnapshotStore(opts) {
|
|
3886
4038
|
const baseDir = opts.baseDir ?? presenceSnapshotBaseDir();
|
|
@@ -3909,7 +4061,7 @@ function createSnapshotStore(opts) {
|
|
|
3909
4061
|
conflicts: Array.isArray(p.conflicts) ? p.conflicts : []
|
|
3910
4062
|
};
|
|
3911
4063
|
mkdirSync4(dir, { recursive: true, mode: 448 });
|
|
3912
|
-
ownFile =
|
|
4064
|
+
ownFile = join15(dir, `${meta.sessionId}.json`);
|
|
3913
4065
|
const tmp = `${ownFile}.tmp-${pid}`;
|
|
3914
4066
|
writeFileSync3(tmp, JSON.stringify(snapshot), { mode: 384 });
|
|
3915
4067
|
renameSync2(tmp, ownFile);
|
|
@@ -3939,7 +4091,7 @@ function createSnapshotStore(opts) {
|
|
|
3939
4091
|
announce_error: errorCode
|
|
3940
4092
|
};
|
|
3941
4093
|
mkdirSync4(dir, { recursive: true, mode: 448 });
|
|
3942
|
-
ownFile =
|
|
4094
|
+
ownFile = join15(dir, `${meta.sessionId}.json`);
|
|
3943
4095
|
const tmp = `${ownFile}.tmp-${pid}`;
|
|
3944
4096
|
writeFileSync3(tmp, JSON.stringify(snapshot), { mode: 384 });
|
|
3945
4097
|
renameSync2(tmp, ownFile);
|
|
@@ -3953,7 +4105,7 @@ function pruneStale(dir, nowMs, keep) {
|
|
|
3953
4105
|
try {
|
|
3954
4106
|
for (const name of readdirSync4(dir)) {
|
|
3955
4107
|
if (!name.endsWith(".json")) continue;
|
|
3956
|
-
const file =
|
|
4108
|
+
const file = join15(dir, name);
|
|
3957
4109
|
if (file === keep) continue;
|
|
3958
4110
|
try {
|
|
3959
4111
|
const age = nowMs - statSync3(file).mtimeMs;
|
|
@@ -3972,7 +4124,7 @@ function readSnapshots(projectKey, baseDir = presenceSnapshotBaseDir()) {
|
|
|
3972
4124
|
if (!name.endsWith(".json")) continue;
|
|
3973
4125
|
try {
|
|
3974
4126
|
const raw = JSON.parse(
|
|
3975
|
-
|
|
4127
|
+
readFileSync9(join15(dir, name), "utf8")
|
|
3976
4128
|
);
|
|
3977
4129
|
const snap = parseSnapshot(raw);
|
|
3978
4130
|
if (snap) out2.push(snap);
|
|
@@ -4025,16 +4177,16 @@ import {
|
|
|
4025
4177
|
existsSync as existsSync8,
|
|
4026
4178
|
mkdirSync as mkdirSync5,
|
|
4027
4179
|
readdirSync as readdirSync5,
|
|
4028
|
-
readFileSync as
|
|
4180
|
+
readFileSync as readFileSync10,
|
|
4029
4181
|
renameSync as renameSync3,
|
|
4030
4182
|
statSync as statSync4,
|
|
4031
4183
|
unlinkSync as unlinkSync2,
|
|
4032
4184
|
writeFileSync as writeFileSync4
|
|
4033
4185
|
} from "node:fs";
|
|
4034
4186
|
import { homedir as homedir4 } from "node:os";
|
|
4035
|
-
import { basename as basename2, join as
|
|
4187
|
+
import { basename as basename2, join as join16 } from "node:path";
|
|
4036
4188
|
function identityDirPath(baseDir) {
|
|
4037
|
-
return
|
|
4189
|
+
return join16(baseDir ?? join16(homedir4(), ".maind", "presence"), "identity");
|
|
4038
4190
|
}
|
|
4039
4191
|
function transcriptStemOf(transcriptPath, sessionId) {
|
|
4040
4192
|
if (transcriptPath) {
|
|
@@ -4047,7 +4199,7 @@ function transcriptStemOf(transcriptPath, sessionId) {
|
|
|
4047
4199
|
function writeAgentIdentityFile(opts) {
|
|
4048
4200
|
const now = opts.nowMs ?? Date.now();
|
|
4049
4201
|
mkdirSync5(opts.dir, { recursive: true, mode: 448 });
|
|
4050
|
-
const file =
|
|
4202
|
+
const file = join16(opts.dir, `${opts.agentPid}.json`);
|
|
4051
4203
|
const tmp = `${file}.tmp-${process.pid}`;
|
|
4052
4204
|
const payload = {
|
|
4053
4205
|
v: 1,
|
|
@@ -4063,7 +4215,7 @@ function writeAgentIdentityFile(opts) {
|
|
|
4063
4215
|
}
|
|
4064
4216
|
function identityFileStale(dir, agentPid, maxAgeMs, nowMs = Date.now()) {
|
|
4065
4217
|
try {
|
|
4066
|
-
const st = statSync4(
|
|
4218
|
+
const st = statSync4(join16(dir, `${agentPid}.json`));
|
|
4067
4219
|
return nowMs - st.mtimeMs > maxAgeMs;
|
|
4068
4220
|
} catch {
|
|
4069
4221
|
return true;
|
|
@@ -4071,7 +4223,7 @@ function identityFileStale(dir, agentPid, maxAgeMs, nowMs = Date.now()) {
|
|
|
4071
4223
|
}
|
|
4072
4224
|
function deleteAgentIdentityFile(dir, agentPid) {
|
|
4073
4225
|
try {
|
|
4074
|
-
unlinkSync2(
|
|
4226
|
+
unlinkSync2(join16(dir, `${agentPid}.json`));
|
|
4075
4227
|
} catch {
|
|
4076
4228
|
}
|
|
4077
4229
|
}
|
|
@@ -4080,8 +4232,8 @@ function pruneIdentityDir(dir, nowMs) {
|
|
|
4080
4232
|
for (const f of readdirSync5(dir)) {
|
|
4081
4233
|
if (!f.endsWith(".json")) continue;
|
|
4082
4234
|
try {
|
|
4083
|
-
const st = statSync4(
|
|
4084
|
-
if (nowMs - st.mtimeMs > IDENTITY_TTL_MS) unlinkSync2(
|
|
4235
|
+
const st = statSync4(join16(dir, f));
|
|
4236
|
+
if (nowMs - st.mtimeMs > IDENTITY_TTL_MS) unlinkSync2(join16(dir, f));
|
|
4085
4237
|
} catch {
|
|
4086
4238
|
}
|
|
4087
4239
|
}
|
|
@@ -4089,14 +4241,14 @@ function pruneIdentityDir(dir, nowMs) {
|
|
|
4089
4241
|
}
|
|
4090
4242
|
}
|
|
4091
4243
|
function readAgentIdentityFile(opts) {
|
|
4092
|
-
const file =
|
|
4244
|
+
const file = join16(opts.dir, `${opts.agentPid}.json`);
|
|
4093
4245
|
try {
|
|
4094
4246
|
if (!existsSync8(file)) return null;
|
|
4095
4247
|
const st = statSync4(file);
|
|
4096
4248
|
if (st.mtimeMs < opts.bridgeStartMs - IDENTITY_MAX_AGE_SLACK_MS) {
|
|
4097
4249
|
return null;
|
|
4098
4250
|
}
|
|
4099
|
-
const parsed = JSON.parse(
|
|
4251
|
+
const parsed = JSON.parse(readFileSync10(file, "utf8"));
|
|
4100
4252
|
if (typeof parsed !== "object" || parsed === null) return null;
|
|
4101
4253
|
const o = parsed;
|
|
4102
4254
|
if (o.v !== 1) return null;
|
|
@@ -4802,13 +4954,13 @@ var init_windows = __esm({
|
|
|
4802
4954
|
|
|
4803
4955
|
// ../../packages/claude-code-telemetry/dist/projects.js
|
|
4804
4956
|
import { homedir as homedir5 } from "node:os";
|
|
4805
|
-
import { join as
|
|
4957
|
+
import { join as join17 } from "node:path";
|
|
4806
4958
|
var HOME, DEFAULT_PROJECTS_DIR;
|
|
4807
4959
|
var init_projects = __esm({
|
|
4808
4960
|
"../../packages/claude-code-telemetry/dist/projects.js"() {
|
|
4809
4961
|
"use strict";
|
|
4810
4962
|
HOME = homedir5();
|
|
4811
|
-
DEFAULT_PROJECTS_DIR =
|
|
4963
|
+
DEFAULT_PROJECTS_DIR = join17(HOME, ".claude", "projects");
|
|
4812
4964
|
}
|
|
4813
4965
|
});
|
|
4814
4966
|
|
|
@@ -5058,7 +5210,7 @@ var init_payloads = __esm({
|
|
|
5058
5210
|
import { mkdir as mkdir2, readFile as readFile2, writeFile as writeFile2, rename as rename2 } from "node:fs/promises";
|
|
5059
5211
|
import { existsSync as existsSync12 } from "node:fs";
|
|
5060
5212
|
import { homedir as homedir6 } from "node:os";
|
|
5061
|
-
import { join as
|
|
5213
|
+
import { join as join18 } from "node:path";
|
|
5062
5214
|
function emptyState() {
|
|
5063
5215
|
return { config: null, sessions: {}, pending_metrics: [] };
|
|
5064
5216
|
}
|
|
@@ -5098,8 +5250,8 @@ var STATE_DIR, STATE_FILE, DEFAULT_THRESHOLDS;
|
|
|
5098
5250
|
var init_state = __esm({
|
|
5099
5251
|
"src/hooks/state.ts"() {
|
|
5100
5252
|
"use strict";
|
|
5101
|
-
STATE_DIR =
|
|
5102
|
-
STATE_FILE =
|
|
5253
|
+
STATE_DIR = join18(homedir6(), ".maind");
|
|
5254
|
+
STATE_FILE = join18(STATE_DIR, "state.json");
|
|
5103
5255
|
DEFAULT_THRESHOLDS = {
|
|
5104
5256
|
warn_at_pct: 60,
|
|
5105
5257
|
handoff_at_pct: 85,
|
|
@@ -5125,10 +5277,10 @@ __export(hooks_exports, {
|
|
|
5125
5277
|
runSyncConfig: () => runSyncConfig
|
|
5126
5278
|
});
|
|
5127
5279
|
import { execFileSync as execFileSync8 } from "node:child_process";
|
|
5128
|
-
import { existsSync as existsSync13, readFileSync as
|
|
5280
|
+
import { existsSync as existsSync13, readFileSync as readFileSync11, realpathSync as realpathSync2 } from "node:fs";
|
|
5129
5281
|
import { writeFile as writeFile3 } from "node:fs/promises";
|
|
5130
5282
|
import { homedir as homedir7 } from "node:os";
|
|
5131
|
-
import { basename as basename3, dirname as dirname6, isAbsolute as isAbsolute4, join as
|
|
5283
|
+
import { basename as basename3, dirname as dirname6, isAbsolute as isAbsolute4, join as join19, relative as relative3 } from "node:path";
|
|
5132
5284
|
function recordGuardSignals(state, sessionId, toolName, nowMs = Date.now()) {
|
|
5133
5285
|
if (!toolName.includes("maind")) return;
|
|
5134
5286
|
const consulted = toolName.includes("search_lessons") || toolName.includes("get_session_briefing") || toolName.includes("get_lesson") || toolName.includes("get_conventions") || toolName.includes("activate_skill") || toolName.includes("suggest_skills") || toolName.includes("codebase_change_briefing");
|
|
@@ -5253,8 +5405,8 @@ async function runOnSessionStart() {
|
|
|
5253
5405
|
}
|
|
5254
5406
|
function readSettingsRaw() {
|
|
5255
5407
|
try {
|
|
5256
|
-
const p =
|
|
5257
|
-
return existsSync13(p) ?
|
|
5408
|
+
const p = join19(homedir7(), ".claude", "settings.json");
|
|
5409
|
+
return existsSync13(p) ? readFileSync11(p, "utf8") : null;
|
|
5258
5410
|
} catch {
|
|
5259
5411
|
return null;
|
|
5260
5412
|
}
|
|
@@ -5324,7 +5476,7 @@ function realpathOfUnwritten(p) {
|
|
|
5324
5476
|
for (; ; ) {
|
|
5325
5477
|
try {
|
|
5326
5478
|
const real = realpathSync2(head);
|
|
5327
|
-
return
|
|
5479
|
+
return join19(real, ...tail.reverse());
|
|
5328
5480
|
} catch {
|
|
5329
5481
|
const parent = dirname6(head);
|
|
5330
5482
|
if (parent === head) return p;
|
|
@@ -5349,7 +5501,7 @@ async function runOnFileWrite() {
|
|
|
5349
5501
|
const filePath = toolFilePathOf(input);
|
|
5350
5502
|
if (!filePath) return 0;
|
|
5351
5503
|
const cwd = typeof input.cwd === "string" && input.cwd.length > 0 ? input.cwd : process.cwd();
|
|
5352
|
-
const abs = isAbsolute4(filePath) ? filePath :
|
|
5504
|
+
const abs = isAbsolute4(filePath) ? filePath : join19(cwd, filePath);
|
|
5353
5505
|
if (existsSync13(abs)) return 0;
|
|
5354
5506
|
const repoRoot = resolveRepoRoot(cwd);
|
|
5355
5507
|
const rel = relative3(repoRoot, realpathOfUnwritten(abs));
|
|
@@ -5370,7 +5522,7 @@ async function runOnFileEdit() {
|
|
|
5370
5522
|
const filePath = toolFilePathOf(input);
|
|
5371
5523
|
if (!filePath) return 0;
|
|
5372
5524
|
const cwd = typeof input.cwd === "string" && input.cwd.length > 0 ? input.cwd : process.cwd();
|
|
5373
|
-
const abs = isAbsolute4(filePath) ? filePath :
|
|
5525
|
+
const abs = isAbsolute4(filePath) ? filePath : join19(cwd, filePath);
|
|
5374
5526
|
const projectKey = computeProjectKey();
|
|
5375
5527
|
if (projectKey === null) return 0;
|
|
5376
5528
|
const snaps = readSnapshots(projectKey);
|
|
@@ -5433,7 +5585,7 @@ async function maybeEmitAdvisory(state, session) {
|
|
|
5433
5585
|
};
|
|
5434
5586
|
try {
|
|
5435
5587
|
await writeFile3(
|
|
5436
|
-
|
|
5588
|
+
join19(STATE_DIR, `handoff_advisory_${session.session_id}.json`),
|
|
5437
5589
|
JSON.stringify(payload, null, 2)
|
|
5438
5590
|
);
|
|
5439
5591
|
} catch (err) {
|
|
@@ -5553,10 +5705,10 @@ async function runHookStatus() {
|
|
|
5553
5705
|
return 0;
|
|
5554
5706
|
}
|
|
5555
5707
|
function readHookWiring() {
|
|
5556
|
-
const settingsPath =
|
|
5708
|
+
const settingsPath = join19(homedir7(), ".claude", "settings.json");
|
|
5557
5709
|
let raw = null;
|
|
5558
5710
|
try {
|
|
5559
|
-
if (existsSync13(settingsPath)) raw =
|
|
5711
|
+
if (existsSync13(settingsPath)) raw = readFileSync11(settingsPath, "utf8");
|
|
5560
5712
|
} catch {
|
|
5561
5713
|
}
|
|
5562
5714
|
return { settingsPath, findings: inspectHookWiring(raw) };
|
|
@@ -5922,9 +6074,9 @@ var init_install = __esm({
|
|
|
5922
6074
|
// src/guard/session-file.ts
|
|
5923
6075
|
import { existsSync as existsSync14 } from "node:fs";
|
|
5924
6076
|
import { mkdir as mkdir3, readFile as readFile3, readdir, rename as rename3, stat as stat2, unlink as unlink2, writeFile as writeFile4 } from "node:fs/promises";
|
|
5925
|
-
import { join as
|
|
6077
|
+
import { join as join20 } from "node:path";
|
|
5926
6078
|
function sessionFile(sessionId) {
|
|
5927
|
-
return
|
|
6079
|
+
return join20(GUARD_SESSIONS_DIR, sessionId.replace(/[^a-zA-Z0-9._-]/g, "_") + ".json");
|
|
5928
6080
|
}
|
|
5929
6081
|
async function loadGuardSession(sessionId) {
|
|
5930
6082
|
try {
|
|
@@ -5953,7 +6105,7 @@ async function sweepOldGuardSessions(maxAgeMs = 7 * 24 * 60 * 60 * 1e3, nowMs =
|
|
|
5953
6105
|
if (!existsSync14(GUARD_SESSIONS_DIR)) return;
|
|
5954
6106
|
for (const name of await readdir(GUARD_SESSIONS_DIR)) {
|
|
5955
6107
|
if (!name.endsWith(".json")) continue;
|
|
5956
|
-
const file =
|
|
6108
|
+
const file = join20(GUARD_SESSIONS_DIR, name);
|
|
5957
6109
|
try {
|
|
5958
6110
|
const s = await stat2(file);
|
|
5959
6111
|
if (nowMs - s.mtimeMs > maxAgeMs) await unlink2(file);
|
|
@@ -5968,15 +6120,15 @@ var init_session_file = __esm({
|
|
|
5968
6120
|
"src/guard/session-file.ts"() {
|
|
5969
6121
|
"use strict";
|
|
5970
6122
|
init_state();
|
|
5971
|
-
GUARD_DIR =
|
|
5972
|
-
GUARD_SESSIONS_DIR =
|
|
6123
|
+
GUARD_DIR = join20(STATE_DIR, "guard");
|
|
6124
|
+
GUARD_SESSIONS_DIR = join20(GUARD_DIR, "sessions");
|
|
5973
6125
|
}
|
|
5974
6126
|
});
|
|
5975
6127
|
|
|
5976
6128
|
// src/guard/log.ts
|
|
5977
6129
|
import { existsSync as existsSync15 } from "node:fs";
|
|
5978
6130
|
import { appendFile, mkdir as mkdir4, open } from "node:fs/promises";
|
|
5979
|
-
import { join as
|
|
6131
|
+
import { join as join21 } from "node:path";
|
|
5980
6132
|
async function appendGuardEvent(event) {
|
|
5981
6133
|
try {
|
|
5982
6134
|
await mkdir4(GUARD_DIR, { recursive: true, mode: 448 });
|
|
@@ -6029,7 +6181,7 @@ var init_log = __esm({
|
|
|
6029
6181
|
"src/guard/log.ts"() {
|
|
6030
6182
|
"use strict";
|
|
6031
6183
|
init_session_file();
|
|
6032
|
-
GUARD_EVENTS_FILE =
|
|
6184
|
+
GUARD_EVENTS_FILE = join21(GUARD_DIR, "events.jsonl");
|
|
6033
6185
|
}
|
|
6034
6186
|
});
|
|
6035
6187
|
|
|
@@ -6038,9 +6190,9 @@ var cli_exports = {};
|
|
|
6038
6190
|
__export(cli_exports, {
|
|
6039
6191
|
runGuard: () => runGuard
|
|
6040
6192
|
});
|
|
6041
|
-
import { existsSync as existsSync16, readFileSync as
|
|
6193
|
+
import { existsSync as existsSync16, readFileSync as readFileSync12 } from "node:fs";
|
|
6042
6194
|
import { homedir as homedir8 } from "node:os";
|
|
6043
|
-
import { join as
|
|
6195
|
+
import { join as join22 } from "node:path";
|
|
6044
6196
|
async function runGuard(argv) {
|
|
6045
6197
|
const verb = argv[0];
|
|
6046
6198
|
const rest = argv.slice(1);
|
|
@@ -6117,10 +6269,10 @@ logged (auditable) in ${GUARD_EVENTS_FILE}
|
|
|
6117
6269
|
}
|
|
6118
6270
|
async function runGuardStatus() {
|
|
6119
6271
|
const config = resolveGuardConfig();
|
|
6120
|
-
const settingsPath =
|
|
6272
|
+
const settingsPath = join22(homedir8(), ".claude", "settings.json");
|
|
6121
6273
|
let raw = null;
|
|
6122
6274
|
try {
|
|
6123
|
-
if (existsSync16(settingsPath)) raw =
|
|
6275
|
+
if (existsSync16(settingsPath)) raw = readFileSync12(settingsPath, "utf8");
|
|
6124
6276
|
} catch {
|
|
6125
6277
|
}
|
|
6126
6278
|
const wiring = inspectHookWiring(raw, {}, GUARD_SUBCOMMAND_HOOKS);
|
|
@@ -6314,7 +6466,7 @@ __export(inject_exports, {
|
|
|
6314
6466
|
});
|
|
6315
6467
|
import { existsSync as existsSync17 } from "node:fs";
|
|
6316
6468
|
import { mkdir as mkdir5, readFile as readFile4, rename as rename4, writeFile as writeFile5 } from "node:fs/promises";
|
|
6317
|
-
import { dirname as dirname7, join as
|
|
6469
|
+
import { dirname as dirname7, join as join23 } from "node:path";
|
|
6318
6470
|
async function resolveBriefingInjection(projectKey, apiKey, deps = {}) {
|
|
6319
6471
|
const nowMs = deps.nowMs ?? Date.now();
|
|
6320
6472
|
const cacheFile = deps.cacheFile ?? BRIEFING_CACHE_FILE;
|
|
@@ -6440,7 +6592,7 @@ var init_inject = __esm({
|
|
|
6440
6592
|
init_log();
|
|
6441
6593
|
init_session_file();
|
|
6442
6594
|
init_mcp_client();
|
|
6443
|
-
BRIEFING_CACHE_FILE =
|
|
6595
|
+
BRIEFING_CACHE_FILE = join23(GUARD_DIR, "briefing-cache.json");
|
|
6444
6596
|
CACHE_TTL_MS = 12 * 60 * 60 * 1e3;
|
|
6445
6597
|
FETCH_BUDGET_MS = 3e3;
|
|
6446
6598
|
MAX_INJECT_BYTES = 10 * 1024;
|
|
@@ -6670,7 +6822,7 @@ var init_frames = __esm({
|
|
|
6670
6822
|
// src/gateway/attest.ts
|
|
6671
6823
|
import { appendFile as appendFile2, mkdir as mkdir6, readFile as readFile5, rename as rename5, writeFile as writeFile6 } from "node:fs/promises";
|
|
6672
6824
|
import { homedir as homedir9 } from "node:os";
|
|
6673
|
-
import { join as
|
|
6825
|
+
import { join as join24 } from "node:path";
|
|
6674
6826
|
function aggregateWindow(events, mode, serverLabel, projectKey) {
|
|
6675
6827
|
if (mode === "off" || events.length === 0) return null;
|
|
6676
6828
|
const counts = {};
|
|
@@ -6704,7 +6856,7 @@ function aggregateWindow(events, mode, serverLabel, projectKey) {
|
|
|
6704
6856
|
};
|
|
6705
6857
|
}
|
|
6706
6858
|
function attestSpoolPath() {
|
|
6707
|
-
return
|
|
6859
|
+
return join24(homedir9(), ".maind", "gateway", "attest-spool.jsonl");
|
|
6708
6860
|
}
|
|
6709
6861
|
async function postAttestation(payload) {
|
|
6710
6862
|
const apiKey = readApiKey();
|
|
@@ -6727,7 +6879,7 @@ async function postAttestation(payload) {
|
|
|
6727
6879
|
}
|
|
6728
6880
|
async function spoolAttestation(payload) {
|
|
6729
6881
|
try {
|
|
6730
|
-
await mkdir6(
|
|
6882
|
+
await mkdir6(join24(homedir9(), ".maind", "gateway"), { recursive: true });
|
|
6731
6883
|
await appendFile2(attestSpoolPath(), JSON.stringify(payload) + "\n", { mode: 384 });
|
|
6732
6884
|
await capSpool();
|
|
6733
6885
|
} catch {
|
|
@@ -6892,11 +7044,11 @@ var init_policy = __esm({
|
|
|
6892
7044
|
});
|
|
6893
7045
|
|
|
6894
7046
|
// src/gateway/policy-cache.ts
|
|
6895
|
-
import { mkdirSync as mkdirSync6, readFileSync as
|
|
7047
|
+
import { mkdirSync as mkdirSync6, readFileSync as readFileSync13, renameSync as renameSync4, writeFileSync as writeFileSync5 } from "node:fs";
|
|
6896
7048
|
import { homedir as homedir10 } from "node:os";
|
|
6897
|
-
import { dirname as dirname8, join as
|
|
7049
|
+
import { dirname as dirname8, join as join25 } from "node:path";
|
|
6898
7050
|
function policyCachePath() {
|
|
6899
|
-
return
|
|
7051
|
+
return join25(homedir10(), ".maind", "gateway", "policy-cache.json");
|
|
6900
7052
|
}
|
|
6901
7053
|
function writePolicyCache(identity, rules, nowIso = (/* @__PURE__ */ new Date()).toISOString()) {
|
|
6902
7054
|
try {
|
|
@@ -6917,7 +7069,7 @@ function writePolicyCache(identity, rules, nowIso = (/* @__PURE__ */ new Date())
|
|
|
6917
7069
|
}
|
|
6918
7070
|
function readPolicyCache(identity) {
|
|
6919
7071
|
try {
|
|
6920
|
-
const raw =
|
|
7072
|
+
const raw = readFileSync13(policyCachePath(), "utf8");
|
|
6921
7073
|
const parsed = JSON.parse(raw);
|
|
6922
7074
|
if (parsed.version !== CACHE_VERSION2 || parsed.mcp_url !== identity.mcpUrl || parsed.key_fp !== identity.keyFp || typeof parsed.cached_at !== "string" || !Array.isArray(parsed.rules)) {
|
|
6923
7075
|
return null;
|
|
@@ -7064,9 +7216,9 @@ __export(install_exports, {
|
|
|
7064
7216
|
runGatewayInstall: () => runGatewayInstall,
|
|
7065
7217
|
runGatewayUninstall: () => runGatewayUninstall
|
|
7066
7218
|
});
|
|
7067
|
-
import { existsSync as existsSync18, readFileSync as
|
|
7219
|
+
import { existsSync as existsSync18, readFileSync as readFileSync14 } from "node:fs";
|
|
7068
7220
|
import { homedir as homedir11 } from "node:os";
|
|
7069
|
-
import { join as
|
|
7221
|
+
import { join as join26 } from "node:path";
|
|
7070
7222
|
import { createInterface as createInterface8 } from "node:readline";
|
|
7071
7223
|
function parseFlags(argv) {
|
|
7072
7224
|
const f = { yes: false, dryRun: false };
|
|
@@ -7079,8 +7231,8 @@ function parseFlags(argv) {
|
|
|
7079
7231
|
}
|
|
7080
7232
|
function targets() {
|
|
7081
7233
|
return [
|
|
7082
|
-
{ label: "Claude Code (project .mcp.json)", path:
|
|
7083
|
-
{ label: "Claude Code (user ~/.claude.json)", path:
|
|
7234
|
+
{ label: "Claude Code (project .mcp.json)", path: join26(process.cwd(), ".mcp.json") },
|
|
7235
|
+
{ label: "Claude Code (user ~/.claude.json)", path: join26(homedir11(), ".claude.json") }
|
|
7084
7236
|
];
|
|
7085
7237
|
}
|
|
7086
7238
|
async function confirm(question) {
|
|
@@ -7111,7 +7263,7 @@ function loadConfig(path8) {
|
|
|
7111
7263
|
function readFileSafeSync(path8) {
|
|
7112
7264
|
try {
|
|
7113
7265
|
if (!existsSync18(path8)) return null;
|
|
7114
|
-
return
|
|
7266
|
+
return readFileSync14(path8, "utf8");
|
|
7115
7267
|
} catch {
|
|
7116
7268
|
return null;
|
|
7117
7269
|
}
|
|
@@ -7341,15 +7493,15 @@ __export(run_exports, {
|
|
|
7341
7493
|
import { spawn as spawn2 } from "node:child_process";
|
|
7342
7494
|
import { appendFile as appendFile3, mkdir as mkdir7 } from "node:fs/promises";
|
|
7343
7495
|
import { homedir as homedir12 } from "node:os";
|
|
7344
|
-
import { basename as basename4, join as
|
|
7496
|
+
import { basename as basename4, join as join27 } from "node:path";
|
|
7345
7497
|
import { createInterface as createInterface9 } from "node:readline";
|
|
7346
7498
|
function gatewayEventsFile() {
|
|
7347
|
-
return
|
|
7499
|
+
return join27(homedir12(), ".maind", "gateway", "events.jsonl");
|
|
7348
7500
|
}
|
|
7349
7501
|
async function logEvent(e) {
|
|
7350
7502
|
try {
|
|
7351
7503
|
const file = gatewayEventsFile();
|
|
7352
|
-
await mkdir7(
|
|
7504
|
+
await mkdir7(join27(homedir12(), ".maind", "gateway"), { recursive: true });
|
|
7353
7505
|
await appendFile3(file, JSON.stringify(e) + "\n", { mode: 384 });
|
|
7354
7506
|
} catch {
|
|
7355
7507
|
}
|
|
@@ -7537,9 +7689,9 @@ __export(cross_session_exports, {
|
|
|
7537
7689
|
});
|
|
7538
7690
|
import { mkdir as mkdir8, readFile as readFile6, readdir as readdir2, stat as stat3, unlink as unlink3, writeFile as writeFile7 } from "node:fs/promises";
|
|
7539
7691
|
import { homedir as homedir13 } from "node:os";
|
|
7540
|
-
import { join as
|
|
7692
|
+
import { join as join28 } from "node:path";
|
|
7541
7693
|
function crossSessionDir() {
|
|
7542
|
-
return
|
|
7694
|
+
return join28(homedir13(), ".maind", "cross-session");
|
|
7543
7695
|
}
|
|
7544
7696
|
function parseSessionDb(raw) {
|
|
7545
7697
|
const empty = { files: {}, warned: {} };
|
|
@@ -7581,7 +7733,7 @@ function staleReason(path8, v) {
|
|
|
7581
7733
|
async function dbPath(sessionId) {
|
|
7582
7734
|
const dir = crossSessionDir();
|
|
7583
7735
|
await mkdir8(dir, { recursive: true });
|
|
7584
|
-
return
|
|
7736
|
+
return join28(dir, `${sessionId}.json`);
|
|
7585
7737
|
}
|
|
7586
7738
|
async function loadDb(sessionId, now) {
|
|
7587
7739
|
try {
|
|
@@ -7602,7 +7754,7 @@ async function sweepStaleSessionFiles(now) {
|
|
|
7602
7754
|
const dir = crossSessionDir();
|
|
7603
7755
|
for (const name of await readdir2(dir)) {
|
|
7604
7756
|
if (!name.endsWith(".json")) continue;
|
|
7605
|
-
const p =
|
|
7757
|
+
const p = join28(dir, name);
|
|
7606
7758
|
const s = await stat3(p).catch(() => null);
|
|
7607
7759
|
if (s && now - s.mtimeMs > TTL_MS) await unlink3(p).catch(() => {
|
|
7608
7760
|
});
|
|
@@ -11636,6 +11788,19 @@ var LOCAL_TOOLS = [
|
|
|
11636
11788
|
}
|
|
11637
11789
|
}
|
|
11638
11790
|
}
|
|
11791
|
+
},
|
|
11792
|
+
{
|
|
11793
|
+
name: "check_theme_class_drift",
|
|
11794
|
+
description: "Local dead-theme-class detector (ADR-303): find Tailwind utility classes that point at a theme token which does NOT exist. In Tailwind v4 an unknown theme colour generates NO rule \u2014 no error, no warning, the class is a silent no-op and the element simply has no background or colour. Neither tsc nor eslint nor the build can see it; it surfaces on the finished product, and typically in only ONE of the two colour modes (the sibling `dark:` class usually exists, which is exactly why it hides). Real incident 2026-08-26: `bg-surface-white` sat in nine files with no `--color-surface-white` anywhere; light-mode menus rendered without a background and read as a z-index bug. Runs entirely on this machine (git + fs), nothing is uploaded. The rule is sharp enough to gate on: only HOUSE namespaces are checked, and the namespaces are DERIVED from the repo's own `--color-*` and `--background-image-*` tokens (from `--color-surface-alt` follows `surface`) \u2014 `bg-red-500` or `text-xs` can never enter the check, so there is no judgement call and no config. Prose and template interpolation are excluded (a real class name never ends at a hyphen). Verdicts: `clean` (every house class is covered), `drift` (dead classes found \u2014 the findings name file, class and the missing token), `no_opinion` (the repo declares NO theme tokens; that is an ABSTENTION, not a pass \u2014 `ok` is false, and a repo without tokens never gets a green tick). Call this WHEN: (a) you added or renamed a Tailwind theme token, or wrote a `bg-`/`text-`/`border-`-style class using a house palette name from memory; (b) a surface renders without background/colour in one mode while looking fine in the other \u2014 check for a dead class BEFORE reaching for z-index; (c) before merging a branch that touches styling or tokens.css; (d) auditing a repo you did not write. What it structurally cannot see: whether a token is used in the RIGHT place (a syntactically valid dark background on a light surface), and dynamically composed class names \u2014 the Tailwind JIT shares that blindness.",
|
|
11795
|
+
inputSchema: {
|
|
11796
|
+
type: "object",
|
|
11797
|
+
properties: {
|
|
11798
|
+
dir: {
|
|
11799
|
+
type: "string",
|
|
11800
|
+
description: 'Restrict the SOURCE scan to this directory (absolute, or relative to the workspace / cwd). The repository is resolved FROM THIS PATH, so nested checkouts work \u2014 give the prefix that locates the code, e.g. "Asgard/Maind". Token discovery always sweeps that whole repository: a scoped scan against a partial token set would fabricate findings. Omit to scan the workspace repo.'
|
|
11801
|
+
}
|
|
11802
|
+
}
|
|
11803
|
+
}
|
|
11639
11804
|
}
|
|
11640
11805
|
];
|
|
11641
11806
|
var LOCAL_TOOL_NAMES = new Set(LOCAL_TOOLS.map((t) => t.name));
|
|
@@ -11884,6 +12049,60 @@ async function dispatchLocalTool(engine, name, args) {
|
|
|
11884
12049
|
hint: (report.ok ? "The declared entries agree." : unreadable2.length > 0 ? `${unreadable2.length} contract(s) could NOT BE MEASURED (broken pointer, not drift) and ${open2.length - unreadable2.length} finding(s) are real drift. Repair the contract first \u2014 an unmeasured contract is not a passing one.` : `${open2.length} blocking finding(s) introduced by this branch. On a contradiction the specification wins: read the artefact rather than a summary of it.`) + " " + coverageNote
|
|
11885
12050
|
};
|
|
11886
12051
|
}
|
|
12052
|
+
case "check_theme_class_drift": {
|
|
12053
|
+
const dir = str(args.dir);
|
|
12054
|
+
let repoRoot;
|
|
12055
|
+
let scanDirs;
|
|
12056
|
+
if (dir !== void 0) {
|
|
12057
|
+
const anchored = resolveRepoRootForDir(dir);
|
|
12058
|
+
if (anchored === null) {
|
|
12059
|
+
return {
|
|
12060
|
+
ok: false,
|
|
12061
|
+
verdict: "no_opinion",
|
|
12062
|
+
reason: "dir_not_found",
|
|
12063
|
+
repo_root: null,
|
|
12064
|
+
token_count: null,
|
|
12065
|
+
findings: [],
|
|
12066
|
+
hint: "No opinion \u2014 this directory could not be located, so no repository was scanned. Do NOT read this as clean. Pass a path that exists relative to the repo you mean (nested checkouts need their own prefix, e.g. `Asgard/Maind`) or an absolute path."
|
|
12067
|
+
};
|
|
12068
|
+
}
|
|
12069
|
+
repoRoot = anchored.repoRoot;
|
|
12070
|
+
scanDirs = anchored.repoRelDir === "" ? void 0 : [anchored.repoRelDir];
|
|
12071
|
+
} else {
|
|
12072
|
+
repoRoot = resolveRepoRoot2();
|
|
12073
|
+
scanDirs = void 0;
|
|
12074
|
+
}
|
|
12075
|
+
const report = checkThemeClassDrift(repoRoot, { dirs: scanDirs });
|
|
12076
|
+
if (report.verdict === "no_opinion") {
|
|
12077
|
+
return {
|
|
12078
|
+
ok: false,
|
|
12079
|
+
verdict: "no_opinion",
|
|
12080
|
+
reason: "no_theme_tokens",
|
|
12081
|
+
repo_root: repoRoot,
|
|
12082
|
+
token_count: 0,
|
|
12083
|
+
findings: [],
|
|
12084
|
+
hint: "No opinion \u2014 this repository declares no `--color-*`/`--background-image-*` theme tokens, so there is nothing to check classes against. That is an ABSTENTION, not a pass: a repo without tokens never gets a green tick. If this repo uses Tailwind v4 theme tokens, they were not found in any tracked .css file."
|
|
12085
|
+
};
|
|
12086
|
+
}
|
|
12087
|
+
const coverage = "Checks house-namespace classes against declared theme tokens only. It cannot see whether a token is used in the RIGHT place, nor dynamically composed class names (the Tailwind JIT shares that blindness).";
|
|
12088
|
+
return {
|
|
12089
|
+
ok: report.ok,
|
|
12090
|
+
verdict: report.verdict,
|
|
12091
|
+
// Ausweis des tatsächlich gescannten Repos: verschachtelte Checkouts
|
|
12092
|
+
// darin sind eigene Repositories und werden hier NICHT erfasst.
|
|
12093
|
+
repo_root: repoRoot,
|
|
12094
|
+
token_count: report.tokenCount,
|
|
12095
|
+
namespace_count: report.namespaceCount,
|
|
12096
|
+
scanned_files: report.scannedFiles,
|
|
12097
|
+
findings: report.findings.map((f) => ({
|
|
12098
|
+
file: f.file,
|
|
12099
|
+
class: f.klass,
|
|
12100
|
+
missing_token: f.token,
|
|
12101
|
+
namespace: f.namespace
|
|
12102
|
+
})),
|
|
12103
|
+
hint: (report.ok ? `All house-namespace classes are covered (${report.tokenCount} tokens, ${report.namespaceCount} namespaces).` : `${report.findings.length} dead class(es): each generates NO CSS rule and fails silently on the finished product, typically in one colour mode only. Fix by defining the missing token or switching the class to an existing one.`) + " " + coverage
|
|
12104
|
+
};
|
|
12105
|
+
}
|
|
11887
12106
|
case "codebase_search": {
|
|
11888
12107
|
const query = str(args.query);
|
|
11889
12108
|
if (!query) throw new Error("codebase_search requires a 'query' string");
|
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":17952,"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":14340,"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":3931,"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/repo-health/spec-drift.js":{"bytes":35637,"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":21440,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/embed/recipe.js","kind":"import-statement","original":"../embed/recipe.js"},{"path":"../../packages/code-index/build/embed/types.js","kind":"import-statement","original":"../embed/types.js"},{"path":"../../packages/code-index/build/util/vector.js","kind":"import-statement","original":"../util/vector.js"},{"path":"../../packages/code-index/build/graph/resolve.js","kind":"import-statement","original":"../graph/resolve.js"},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"../../packages/code-index/build/incremental/hunks.js","kind":"import-statement","original":"../incremental/hunks.js"},{"path":"../../packages/code-index/build/incremental/history.js","kind":"import-statement","original":"../incremental/history.js"},{"path":"../../packages/code-index/build/repo-health/divergence.js","kind":"import-statement","original":"../repo-health/divergence.js"},{"path":"../../packages/code-index/build/repo-health/number-collisions.js","kind":"import-statement","original":"../repo-health/number-collisions.js"},{"path":"../../packages/code-index/build/repo-health/spec-drift.js","kind":"import-statement","original":"../repo-health/spec-drift.js"},{"path":"../../packages/code-index/build/review/risk-scan.js","kind":"import-statement","original":"../review/risk-scan.js"},{"path":"../../packages/code-index/build/store/schema.js","kind":"import-statement","original":"../store/schema.js"},{"path":"../../packages/code-index/build/util/identifiers.js","kind":"import-statement","original":"../util/identifiers.js"}],"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":7476,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/node.js","kind":"import-statement","original":"@maind/code-index/node"}],"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":2489,"imports":[{"path":"../../packages/code-index/build/model/types.js","kind":"import-statement","original":"./model/types.js"},{"path":"../../packages/code-index/build/query/engine.js","kind":"import-statement","original":"./query/engine.js"},{"path":"../../packages/code-index/build/incremental/history.js","kind":"import-statement","original":"./incremental/history.js"},{"path":"../../packages/code-index/build/review/risk-rules.js","kind":"import-statement","original":"./review/risk-rules.js"},{"path":"../../packages/code-index/build/repo-health/divergence.js","kind":"import-statement","original":"./repo-health/divergence.js"},{"path":"../../packages/code-index/build/repo-health/hooks.js","kind":"import-statement","original":"./repo-health/hooks.js"},{"path":"../../packages/code-index/build/repo-health/number-collisions.js","kind":"import-statement","original":"./repo-health/number-collisions.js"},{"path":"../../packages/code-index/build/repo-health/spec-drift.js","kind":"import-statement","original":"./repo-health/spec-drift.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":42231,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"src/local-tools/engine.ts","kind":"import-statement","original":"./engine.js"}],"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":17973,"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":7984,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true}],"format":"esm"},"src/session-identity.ts":{"bytes":12765,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/device-id.ts","kind":"import-statement","original":"./device-id.js"}],"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":3117,"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":10378,"imports":[],"format":"esm"},"src/hooks/hook-input.ts":{"bytes":2921,"imports":[],"format":"esm"},"src/hooks/payloads.ts":{"bytes":843,"imports":[],"format":"esm"},"src/hooks/state.ts":{"bytes":5855,"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":36420,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/index.js","kind":"import-statement","original":"@maind/claude-code-telemetry"},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"src/conventions-cache.ts","kind":"import-statement","original":"../conventions-cache.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/install/hook-wiring.ts","kind":"import-statement","original":"../install/hook-wiring.js"},{"path":"src/presence-snapshot.ts","kind":"import-statement","original":"../presence-snapshot.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/hooks/api.ts","kind":"import-statement","original":"./api.js"},{"path":"src/hooks/edit-guard.ts","kind":"import-statement","original":"./edit-guard.js"},{"path":"src/session-identity.ts","kind":"import-statement","original":"../session-identity.js"},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"./hook-input.js"},{"path":"src/hooks/payloads.ts","kind":"import-statement","original":"./payloads.js"},{"path":"src/hooks/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":7479,"imports":[{"path":"../../packages/claude-code-telemetry/dist/index.js","kind":"import-statement","original":"@maind/claude-code-telemetry"},{"path":"src/bridge-config.ts","kind":"import-statement","original":"../bridge-config.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/hooks/api.ts","kind":"import-statement","original":"../hooks/api.js"},{"path":"src/hooks/edit-guard.ts","kind":"import-statement","original":"../hooks/edit-guard.js"},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/hooks/index.ts","kind":"import-statement","original":"../hooks/index.js"},{"path":"src/presence.ts","kind":"import-statement","original":"../presence.js"},{"path":"src/presence-snapshot.ts","kind":"import-statement","original":"../presence-snapshot.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/session-identity.ts","kind":"import-statement","original":"../session-identity.js"},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"},{"path":"src/session-end/connection.ts","kind":"import-statement","original":"./connection.js"}],"format":"esm"},"src/guard/config.ts":{"bytes":2572,"imports":[{"path":"src/bridge-config.ts","kind":"import-statement","original":"../bridge-config.js"},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"../install/atomic-write.js"}],"format":"esm"},"src/guard/install.ts":{"bytes":3657,"imports":[{"path":"src/install/hook-wiring.ts","kind":"import-statement","original":"../install/hook-wiring.js"},{"path":"src/install/hook-merge.ts","kind":"import-statement","original":"../install/hook-merge.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"}],"format":"esm"},"src/guard/session-file.ts":{"bytes":3577,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/hooks/state.ts","kind":"import-statement","original":"../hooks/state.js"}],"format":"esm"},"src/guard/log.ts":{"bytes":3246,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"}],"format":"esm"},"src/guard/cli.ts":{"bytes":5916,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/install/hook-wiring.ts","kind":"import-statement","original":"../install/hook-wiring.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/install.ts","kind":"import-statement","original":"./install.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"}],"format":"esm"},"src/guard/mcp-client.ts":{"bytes":6343,"imports":[],"format":"esm"},"src/guard/inject.ts":{"bytes":8057,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"},{"path":"src/guard/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"}],"format":"esm"},"src/guard/gate.ts":{"bytes":6853,"imports":[{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/hooks/payloads.ts","kind":"import-statement","original":"../hooks/payloads.js"},{"path":"src/hooks/state.ts","kind":"import-statement","original":"../hooks/state.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"}],"format":"esm"},"src/guard/stop.ts":{"bytes":3134,"imports":[{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/hooks/state.ts","kind":"import-statement","original":"../hooks/state.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"}],"format":"esm"},"src/gateway/frames.ts":{"bytes":4747,"imports":[],"format":"esm"},"src/gateway/attest.ts":{"bytes":7320,"imports":[{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/guard/mcp-client.ts","kind":"import-statement","original":"../guard/mcp-client.js"},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"}],"format":"esm"},"src/gateway/config.ts":{"bytes":3334,"imports":[{"path":"src/bridge-config.ts","kind":"import-statement","original":"../bridge-config.js"},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"../install/atomic-write.js"}],"format":"esm"},"src/gateway/policy.ts":{"bytes":5948,"imports":[],"format":"esm"},"src/gateway/policy-cache.ts":{"bytes":3361,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/policy-fetch.ts":{"bytes":2357,"imports":[{"path":"src/conventions-cache.ts","kind":"import-statement","original":"../conventions-cache.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/guard/mcp-client.ts","kind":"import-statement","original":"../guard/mcp-client.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"},{"path":"src/gateway/policy.ts","kind":"import-statement","original":"./policy.js"}],"format":"esm"},"src/gateway/wrap.ts":{"bytes":5823,"imports":[],"format":"esm"},"src/gateway/install.ts":{"bytes":6383,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"../install/atomic-write.js"},{"path":"src/install/bridge-entry.ts","kind":"import-statement","original":"../install/bridge-entry.js"},{"path":"src/gateway/wrap.ts","kind":"import-statement","original":"./wrap.js"}],"format":"esm"},"src/gateway/policy-cli.ts":{"bytes":5422,"imports":[{"path":"src/gateway/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/gateway/policy-cache.ts","kind":"import-statement","original":"./policy-cache.js"},{"path":"src/gateway/policy-fetch.ts","kind":"import-statement","original":"./policy-fetch.js"}],"format":"esm"},"src/gateway/run.ts":{"bytes":11506,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"src/gateway/frames.ts","kind":"import-statement","original":"./frames.js"},{"path":"src/gateway/attest.ts","kind":"import-statement","original":"./attest.js"},{"path":"src/gateway/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/gateway/policy.ts","kind":"import-statement","original":"./policy.js"},{"path":"src/gateway/policy-cache.ts","kind":"import-statement","original":"./policy-cache.js"},{"path":"src/gateway/policy-fetch.ts","kind":"import-statement","original":"./policy-fetch.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/gateway/install.ts","kind":"dynamic-import","original":"./install.js"},{"path":"src/gateway/policy-cli.ts","kind":"dynamic-import","original":"./policy-cli.js"}],"format":"esm"},"src/guard/cross-session.ts":{"bytes":9693,"imports":[{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/hooks/payloads.ts","kind":"import-statement","original":"../hooks/payloads.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"}],"format":"esm"},"src/index.ts":{"bytes":17262,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"src/forward.ts","kind":"import-statement","original":"./forward.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"./device-id.js"},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"./project-key.js"},{"path":"src/install/index.ts","kind":"import-statement","original":"./install/index.js"},{"path":"src/local-tools/router.ts","kind":"import-statement","original":"./local-tools/router.js"},{"path":"src/local-tools/savings.ts","kind":"import-statement","original":"./local-tools/savings.js"},{"path":"src/metrics-post.ts","kind":"import-statement","original":"./metrics-post.js"},{"path":"src/presence.ts","kind":"import-statement","original":"./presence.js"},{"path":"src/presence-snapshot.ts","kind":"import-statement","original":"./presence-snapshot.js"},{"path":"src/session-identity.ts","kind":"import-statement","original":"./session-identity.js"},{"path":"src/working-paths.ts","kind":"import-statement","original":"./working-paths.js"},{"path":"src/session-end/index.ts","kind":"dynamic-import","original":"./session-end/index.js"},{"path":"src/guard/cli.ts","kind":"dynamic-import","original":"./guard/cli.js"},{"path":"src/guard/inject.ts","kind":"dynamic-import","original":"./guard/inject.js"},{"path":"src/guard/gate.ts","kind":"dynamic-import","original":"./guard/gate.js"},{"path":"src/guard/stop.ts","kind":"dynamic-import","original":"./guard/stop.js"},{"path":"src/gateway/run.ts","kind":"dynamic-import","original":"./gateway/run.js"},{"path":"src/guard/cross-session.ts","kind":"dynamic-import","original":"./guard/cross-session.js"},{"path":"src/guard/cross-session.ts","kind":"dynamic-import","original":"./guard/cross-session.js"},{"path":"src/hooks/index.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/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node: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:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node: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:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"smol-toml","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node: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/atomic-write.ts":{"bytesInOutput":1854},"src/install/hook-wiring.ts":{"bytesInOutput":10349},"src/install/hook-merge.ts":{"bytesInOutput":6940},"src/bridge-config.ts":{"bytesInOutput":1485},"../../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/repo-health/spec-drift.js":{"bytesInOutput":23805},"../../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":16721},"../../packages/code-index/build/model/types.js":{"bytesInOutput":107},"../../packages/code-index/build/index.js":{"bytesInOutput":389},"src/presence.ts":{"bytesInOutput":9120},"src/presence-snapshot.ts":{"bytesInOutput":4589},"src/session-identity.ts":{"bytesInOutput":7138},"../../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":9945},"../../packages/claude-code-telemetry/dist/ingest.js":{"bytesInOutput":373},"../../packages/claude-code-telemetry/dist/session-span.js":{"bytesInOutput":4539},"../../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":5665},"src/hooks/hook-input.ts":{"bytesInOutput":1142},"src/hooks/payloads.ts":{"bytesInOutput":459},"src/hooks/state.ts":{"bytesInOutput":1774},"src/hooks/index.ts":{"bytesInOutput":19134},"src/session-end/connection.ts":{"bytesInOutput":436},"src/session-end/index.ts":{"bytesInOutput":3803},"src/guard/config.ts":{"bytesInOutput":923},"src/guard/install.ts":{"bytesInOutput":2540},"src/guard/session-file.ts":{"bytesInOutput":1816},"src/guard/log.ts":{"bytesInOutput":1698},"src/guard/cli.ts":{"bytesInOutput":4997},"src/guard/mcp-client.ts":{"bytesInOutput":4036},"src/guard/inject.ts":{"bytesInOutput":5130},"src/guard/gate.ts":{"bytesInOutput":4234},"src/guard/stop.ts":{"bytesInOutput":1867},"src/gateway/frames.ts":{"bytesInOutput":1775},"src/gateway/attest.ts":{"bytesInOutput":3940},"src/gateway/config.ts":{"bytesInOutput":1418},"src/gateway/policy.ts":{"bytesInOutput":2895},"src/gateway/policy-cache.ts":{"bytesInOutput":1606},"src/gateway/policy-fetch.ts":{"bytesInOutput":1062},"src/gateway/wrap.ts":{"bytesInOutput":2470},"src/gateway/install.ts":{"bytesInOutput":5148},"src/gateway/policy-cli.ts":{"bytesInOutput":4396},"src/gateway/run.ts":{"bytesInOutput":6688},"src/guard/cross-session.ts":{"bytesInOutput":5722},"src/index.ts":{"bytesInOutput":11101},"src/forward.ts":{"bytesInOutput":18440},"src/client-detect.ts":{"bytesInOutput":2068},"src/auth.ts":{"bytesInOutput":5084},"src/install/index.ts":{"bytesInOutput":6304},"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":3244},"src/install/json-merge.ts":{"bytesInOutput":3790},"src/install/toml-merge.ts":{"bytesInOutput":3550},"src/install/preamble.ts":{"bytesInOutput":2835},"../../packages/integration-snippets/build/index.js":{"bytesInOutput":27539},"src/install/working-paths-consent.ts":{"bytesInOutput":3412},"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":3614},"../../packages/code-index/build/node.js":{"bytesInOutput":548},"../../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":2915},"../../packages/code-index/build/store/node-sqlite.js":{"bytesInOutput":9844},"../../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":35541},"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":443193}}}
|
|
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":17952,"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":14340,"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":3931,"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/repo-health/spec-drift.js":{"bytes":35637,"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":21440,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/embed/recipe.js","kind":"import-statement","original":"../embed/recipe.js"},{"path":"../../packages/code-index/build/embed/types.js","kind":"import-statement","original":"../embed/types.js"},{"path":"../../packages/code-index/build/util/vector.js","kind":"import-statement","original":"../util/vector.js"},{"path":"../../packages/code-index/build/graph/resolve.js","kind":"import-statement","original":"../graph/resolve.js"},{"path":"../../packages/code-index/build/incremental/discover.js","kind":"import-statement","original":"../incremental/discover.js"},{"path":"../../packages/code-index/build/incremental/hunks.js","kind":"import-statement","original":"../incremental/hunks.js"},{"path":"../../packages/code-index/build/incremental/history.js","kind":"import-statement","original":"../incremental/history.js"},{"path":"../../packages/code-index/build/repo-health/divergence.js","kind":"import-statement","original":"../repo-health/divergence.js"},{"path":"../../packages/code-index/build/repo-health/number-collisions.js","kind":"import-statement","original":"../repo-health/number-collisions.js"},{"path":"../../packages/code-index/build/repo-health/spec-drift.js","kind":"import-statement","original":"../repo-health/spec-drift.js"},{"path":"../../packages/code-index/build/review/risk-scan.js","kind":"import-statement","original":"../review/risk-scan.js"},{"path":"../../packages/code-index/build/store/schema.js","kind":"import-statement","original":"../store/schema.js"},{"path":"../../packages/code-index/build/util/identifiers.js","kind":"import-statement","original":"../util/identifiers.js"}],"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":7476,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/node.js","kind":"import-statement","original":"@maind/code-index/node"}],"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/repo-health/theme-class-drift.js":{"bytes":9803,"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/index.js":{"bytes":2986,"imports":[{"path":"../../packages/code-index/build/model/types.js","kind":"import-statement","original":"./model/types.js"},{"path":"../../packages/code-index/build/query/engine.js","kind":"import-statement","original":"./query/engine.js"},{"path":"../../packages/code-index/build/incremental/history.js","kind":"import-statement","original":"./incremental/history.js"},{"path":"../../packages/code-index/build/review/risk-rules.js","kind":"import-statement","original":"./review/risk-rules.js"},{"path":"../../packages/code-index/build/repo-health/divergence.js","kind":"import-statement","original":"./repo-health/divergence.js"},{"path":"../../packages/code-index/build/repo-health/hooks.js","kind":"import-statement","original":"./repo-health/hooks.js"},{"path":"../../packages/code-index/build/repo-health/number-collisions.js","kind":"import-statement","original":"./repo-health/number-collisions.js"},{"path":"../../packages/code-index/build/repo-health/theme-class-drift.js","kind":"import-statement","original":"./repo-health/theme-class-drift.js"},{"path":"../../packages/code-index/build/repo-health/spec-drift.js","kind":"import-statement","original":"./repo-health/spec-drift.js"},{"path":"../../packages/code-index/build/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":48253,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"src/local-tools/engine.ts","kind":"import-statement","original":"./engine.js"}],"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":17973,"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":7984,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true}],"format":"esm"},"src/session-identity.ts":{"bytes":12765,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/device-id.ts","kind":"import-statement","original":"./device-id.js"}],"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":3117,"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":10378,"imports":[],"format":"esm"},"src/hooks/hook-input.ts":{"bytes":2921,"imports":[],"format":"esm"},"src/hooks/payloads.ts":{"bytes":843,"imports":[],"format":"esm"},"src/hooks/state.ts":{"bytes":5855,"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":36420,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"../../packages/claude-code-telemetry/dist/index.js","kind":"import-statement","original":"@maind/claude-code-telemetry"},{"path":"../../packages/code-index/build/index.js","kind":"import-statement","original":"@maind/code-index"},{"path":"src/conventions-cache.ts","kind":"import-statement","original":"../conventions-cache.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/install/hook-wiring.ts","kind":"import-statement","original":"../install/hook-wiring.js"},{"path":"src/presence-snapshot.ts","kind":"import-statement","original":"../presence-snapshot.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/hooks/api.ts","kind":"import-statement","original":"./api.js"},{"path":"src/hooks/edit-guard.ts","kind":"import-statement","original":"./edit-guard.js"},{"path":"src/session-identity.ts","kind":"import-statement","original":"../session-identity.js"},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"./hook-input.js"},{"path":"src/hooks/payloads.ts","kind":"import-statement","original":"./payloads.js"},{"path":"src/hooks/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":7479,"imports":[{"path":"../../packages/claude-code-telemetry/dist/index.js","kind":"import-statement","original":"@maind/claude-code-telemetry"},{"path":"src/bridge-config.ts","kind":"import-statement","original":"../bridge-config.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/hooks/api.ts","kind":"import-statement","original":"../hooks/api.js"},{"path":"src/hooks/edit-guard.ts","kind":"import-statement","original":"../hooks/edit-guard.js"},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/hooks/index.ts","kind":"import-statement","original":"../hooks/index.js"},{"path":"src/presence.ts","kind":"import-statement","original":"../presence.js"},{"path":"src/presence-snapshot.ts","kind":"import-statement","original":"../presence-snapshot.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/session-identity.ts","kind":"import-statement","original":"../session-identity.js"},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"},{"path":"src/session-end/connection.ts","kind":"import-statement","original":"./connection.js"}],"format":"esm"},"src/guard/config.ts":{"bytes":2572,"imports":[{"path":"src/bridge-config.ts","kind":"import-statement","original":"../bridge-config.js"},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"../install/atomic-write.js"}],"format":"esm"},"src/guard/install.ts":{"bytes":3657,"imports":[{"path":"src/install/hook-wiring.ts","kind":"import-statement","original":"../install/hook-wiring.js"},{"path":"src/install/hook-merge.ts","kind":"import-statement","original":"../install/hook-merge.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"}],"format":"esm"},"src/guard/session-file.ts":{"bytes":3577,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/hooks/state.ts","kind":"import-statement","original":"../hooks/state.js"}],"format":"esm"},"src/guard/log.ts":{"bytes":3246,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"}],"format":"esm"},"src/guard/cli.ts":{"bytes":5916,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/install/hook-wiring.ts","kind":"import-statement","original":"../install/hook-wiring.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/install.ts","kind":"import-statement","original":"./install.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"}],"format":"esm"},"src/guard/mcp-client.ts":{"bytes":6343,"imports":[],"format":"esm"},"src/guard/inject.ts":{"bytes":8057,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"},{"path":"src/guard/mcp-client.ts","kind":"import-statement","original":"./mcp-client.js"}],"format":"esm"},"src/guard/gate.ts":{"bytes":6853,"imports":[{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/hooks/payloads.ts","kind":"import-statement","original":"../hooks/payloads.js"},{"path":"src/hooks/state.ts","kind":"import-statement","original":"../hooks/state.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"}],"format":"esm"},"src/guard/stop.ts":{"bytes":3134,"imports":[{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/hooks/state.ts","kind":"import-statement","original":"../hooks/state.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"},{"path":"src/guard/session-file.ts","kind":"import-statement","original":"./session-file.js"}],"format":"esm"},"src/gateway/frames.ts":{"bytes":4747,"imports":[],"format":"esm"},"src/gateway/attest.ts":{"bytes":7320,"imports":[{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/guard/mcp-client.ts","kind":"import-statement","original":"../guard/mcp-client.js"},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"}],"format":"esm"},"src/gateway/config.ts":{"bytes":3334,"imports":[{"path":"src/bridge-config.ts","kind":"import-statement","original":"../bridge-config.js"},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"../install/atomic-write.js"}],"format":"esm"},"src/gateway/policy.ts":{"bytes":5948,"imports":[],"format":"esm"},"src/gateway/policy-cache.ts":{"bytes":3361,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true}],"format":"esm"},"src/gateway/policy-fetch.ts":{"bytes":2357,"imports":[{"path":"src/conventions-cache.ts","kind":"import-statement","original":"../conventions-cache.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/guard/mcp-client.ts","kind":"import-statement","original":"../guard/mcp-client.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/version.ts","kind":"import-statement","original":"../version.js"},{"path":"src/gateway/policy.ts","kind":"import-statement","original":"./policy.js"}],"format":"esm"},"src/gateway/wrap.ts":{"bytes":5823,"imports":[],"format":"esm"},"src/gateway/install.ts":{"bytes":6383,"imports":[{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"src/install/atomic-write.ts","kind":"import-statement","original":"../install/atomic-write.js"},{"path":"src/install/bridge-entry.ts","kind":"import-statement","original":"../install/bridge-entry.js"},{"path":"src/gateway/wrap.ts","kind":"import-statement","original":"./wrap.js"}],"format":"esm"},"src/gateway/policy-cli.ts":{"bytes":5422,"imports":[{"path":"src/gateway/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/gateway/policy-cache.ts","kind":"import-statement","original":"./policy-cache.js"},{"path":"src/gateway/policy-fetch.ts","kind":"import-statement","original":"./policy-fetch.js"}],"format":"esm"},"src/gateway/run.ts":{"bytes":11506,"imports":[{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"src/gateway/frames.ts","kind":"import-statement","original":"./frames.js"},{"path":"src/gateway/attest.ts","kind":"import-statement","original":"./attest.js"},{"path":"src/gateway/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/gateway/policy.ts","kind":"import-statement","original":"./policy.js"},{"path":"src/gateway/policy-cache.ts","kind":"import-statement","original":"./policy-cache.js"},{"path":"src/gateway/policy-fetch.ts","kind":"import-statement","original":"./policy-fetch.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"../device-id.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"../project-key.js"},{"path":"src/gateway/install.ts","kind":"dynamic-import","original":"./install.js"},{"path":"src/gateway/policy-cli.ts","kind":"dynamic-import","original":"./policy-cli.js"}],"format":"esm"},"src/guard/cross-session.ts":{"bytes":9693,"imports":[{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/hooks/hook-input.ts","kind":"import-statement","original":"../hooks/hook-input.js"},{"path":"src/hooks/payloads.ts","kind":"import-statement","original":"../hooks/payloads.js"},{"path":"src/guard/config.ts","kind":"import-statement","original":"./config.js"},{"path":"src/guard/log.ts","kind":"import-statement","original":"./log.js"}],"format":"esm"},"src/index.ts":{"bytes":17262,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"src/forward.ts","kind":"import-statement","original":"./forward.js"},{"path":"src/device-id.ts","kind":"import-statement","original":"./device-id.js"},{"path":"src/auth.ts","kind":"import-statement","original":"./auth.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"},{"path":"src/project-key.ts","kind":"import-statement","original":"./project-key.js"},{"path":"src/install/index.ts","kind":"import-statement","original":"./install/index.js"},{"path":"src/local-tools/router.ts","kind":"import-statement","original":"./local-tools/router.js"},{"path":"src/local-tools/savings.ts","kind":"import-statement","original":"./local-tools/savings.js"},{"path":"src/metrics-post.ts","kind":"import-statement","original":"./metrics-post.js"},{"path":"src/presence.ts","kind":"import-statement","original":"./presence.js"},{"path":"src/presence-snapshot.ts","kind":"import-statement","original":"./presence-snapshot.js"},{"path":"src/session-identity.ts","kind":"import-statement","original":"./session-identity.js"},{"path":"src/working-paths.ts","kind":"import-statement","original":"./working-paths.js"},{"path":"src/session-end/index.ts","kind":"dynamic-import","original":"./session-end/index.js"},{"path":"src/guard/cli.ts","kind":"dynamic-import","original":"./guard/cli.js"},{"path":"src/guard/inject.ts","kind":"dynamic-import","original":"./guard/inject.js"},{"path":"src/guard/gate.ts","kind":"dynamic-import","original":"./guard/gate.js"},{"path":"src/guard/stop.ts","kind":"dynamic-import","original":"./guard/stop.js"},{"path":"src/gateway/run.ts","kind":"dynamic-import","original":"./gateway/run.js"},{"path":"src/guard/cross-session.ts","kind":"dynamic-import","original":"./guard/cross-session.js"},{"path":"src/guard/cross-session.ts","kind":"dynamic-import","original":"./guard/cross-session.js"},{"path":"src/hooks/index.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/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node: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: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: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:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:os","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"smol-toml","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:readline","kind":"import-statement","external":true},{"path":"node:child_process","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:module","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node: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/atomic-write.ts":{"bytesInOutput":1854},"src/install/hook-wiring.ts":{"bytesInOutput":10349},"src/install/hook-merge.ts":{"bytesInOutput":6940},"src/bridge-config.ts":{"bytesInOutput":1485},"../../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/repo-health/spec-drift.js":{"bytesInOutput":23805},"../../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":16721},"../../packages/code-index/build/model/types.js":{"bytesInOutput":107},"../../packages/code-index/build/repo-health/theme-class-drift.js":{"bytesInOutput":4641},"../../packages/code-index/build/index.js":{"bytesInOutput":419},"src/presence.ts":{"bytesInOutput":9120},"src/presence-snapshot.ts":{"bytesInOutput":4589},"src/session-identity.ts":{"bytesInOutput":7140},"../../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":9945},"../../packages/claude-code-telemetry/dist/ingest.js":{"bytesInOutput":373},"../../packages/claude-code-telemetry/dist/session-span.js":{"bytesInOutput":4539},"../../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":5665},"src/hooks/hook-input.ts":{"bytesInOutput":1142},"src/hooks/payloads.ts":{"bytesInOutput":459},"src/hooks/state.ts":{"bytesInOutput":1774},"src/hooks/index.ts":{"bytesInOutput":19134},"src/session-end/connection.ts":{"bytesInOutput":436},"src/session-end/index.ts":{"bytesInOutput":3803},"src/guard/config.ts":{"bytesInOutput":923},"src/guard/install.ts":{"bytesInOutput":2540},"src/guard/session-file.ts":{"bytesInOutput":1816},"src/guard/log.ts":{"bytesInOutput":1698},"src/guard/cli.ts":{"bytesInOutput":4997},"src/guard/mcp-client.ts":{"bytesInOutput":4036},"src/guard/inject.ts":{"bytesInOutput":5130},"src/guard/gate.ts":{"bytesInOutput":4234},"src/guard/stop.ts":{"bytesInOutput":1867},"src/gateway/frames.ts":{"bytesInOutput":1775},"src/gateway/attest.ts":{"bytesInOutput":3940},"src/gateway/config.ts":{"bytesInOutput":1418},"src/gateway/policy.ts":{"bytesInOutput":2895},"src/gateway/policy-cache.ts":{"bytesInOutput":1606},"src/gateway/policy-fetch.ts":{"bytesInOutput":1062},"src/gateway/wrap.ts":{"bytesInOutput":2470},"src/gateway/install.ts":{"bytesInOutput":5148},"src/gateway/policy-cli.ts":{"bytesInOutput":4396},"src/gateway/run.ts":{"bytesInOutput":6688},"src/guard/cross-session.ts":{"bytesInOutput":5722},"src/index.ts":{"bytesInOutput":11101},"src/forward.ts":{"bytesInOutput":18440},"src/client-detect.ts":{"bytesInOutput":2068},"src/auth.ts":{"bytesInOutput":5084},"src/install/index.ts":{"bytesInOutput":6304},"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":3244},"src/install/json-merge.ts":{"bytesInOutput":3790},"src/install/toml-merge.ts":{"bytesInOutput":3550},"src/install/preamble.ts":{"bytesInOutput":2835},"../../packages/integration-snippets/build/index.js":{"bytesInOutput":27539},"src/install/working-paths-consent.ts":{"bytesInOutput":3412},"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":3614},"../../packages/code-index/build/node.js":{"bytesInOutput":548},"../../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":2915},"../../packages/code-index/build/store/node-sqlite.js":{"bytesInOutput":9844},"../../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":40985},"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":453379}}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maind-dev/mcp-bridge",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Local MCP bridge for maind.dev
|
|
3
|
+
"version": "0.40.0",
|
|
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",
|
|
7
7
|
"bin": {
|
|
@@ -11,6 +11,15 @@
|
|
|
11
11
|
"build",
|
|
12
12
|
"README.md"
|
|
13
13
|
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "pnpm --filter \"@maind-dev/mcp-bridge^...\" build && node scripts/bundle.mjs",
|
|
16
|
+
"prepublishOnly": "pnpm build",
|
|
17
|
+
"start": "node build/index.js",
|
|
18
|
+
"dev": "node --watch --watch-path=src --import tsx src/index.ts",
|
|
19
|
+
"test": "node --import tsx --test 'test/**/*.test.ts'",
|
|
20
|
+
"type-check": "tsc --noEmit",
|
|
21
|
+
"typecheck": "tsc --noEmit"
|
|
22
|
+
},
|
|
14
23
|
"dependencies": {
|
|
15
24
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
16
25
|
"smol-toml": "^1.3.1",
|
|
@@ -21,13 +30,13 @@
|
|
|
21
30
|
"better-sqlite3": "^12.11.1"
|
|
22
31
|
},
|
|
23
32
|
"devDependencies": {
|
|
33
|
+
"@maind-dev/integration-snippets": "workspace:*",
|
|
34
|
+
"@maind/claude-code-telemetry": "workspace:*",
|
|
35
|
+
"@maind/code-index": "workspace:*",
|
|
24
36
|
"@types/node": "^20.11.0",
|
|
25
37
|
"esbuild": "^0.24.0",
|
|
26
38
|
"tsx": "^4.7.0",
|
|
27
|
-
"typescript": "^5.4.0"
|
|
28
|
-
"@maind-dev/integration-snippets": "0.1.0",
|
|
29
|
-
"@maind/code-index": "0.0.0",
|
|
30
|
-
"@maind/claude-code-telemetry": "0.0.0"
|
|
39
|
+
"typescript": "^5.4.0"
|
|
31
40
|
},
|
|
32
41
|
"engines": {
|
|
33
42
|
"node": ">=20.0.0"
|
|
@@ -42,13 +51,5 @@
|
|
|
42
51
|
"license": "MIT",
|
|
43
52
|
"publishConfig": {
|
|
44
53
|
"access": "public"
|
|
45
|
-
},
|
|
46
|
-
"scripts": {
|
|
47
|
-
"build": "pnpm --filter \"@maind-dev/mcp-bridge^...\" build && node scripts/bundle.mjs",
|
|
48
|
-
"start": "node build/index.js",
|
|
49
|
-
"dev": "node --watch --watch-path=src --import tsx src/index.ts",
|
|
50
|
-
"test": "node --import tsx --test 'test/**/*.test.ts'",
|
|
51
|
-
"type-check": "tsc --noEmit",
|
|
52
|
-
"typecheck": "tsc --noEmit"
|
|
53
54
|
}
|
|
54
|
-
}
|
|
55
|
+
}
|