@harness-engineering/cli 2.0.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/skills/claude-code/harness-compound/SKILL.md +153 -0
- package/dist/agents/skills/claude-code/harness-compound/skill.yaml +60 -0
- package/dist/agents/skills/claude-code/harness-knowledge-pipeline/SKILL.md +12 -1
- package/dist/agents/skills/claude-code/harness-observability/SKILL.md +2 -0
- package/dist/agents/skills/claude-code/harness-pulse/SKILL.md +138 -0
- package/dist/agents/skills/claude-code/harness-pulse/references/interview.md +77 -0
- package/dist/agents/skills/claude-code/harness-pulse/skill.yaml +61 -0
- package/dist/agents/skills/claude-code/harness-roadmap-pilot/SKILL.md +25 -1
- package/dist/agents/skills/codex/harness-compound/SKILL.md +153 -0
- package/dist/agents/skills/codex/harness-compound/skill.yaml +60 -0
- package/dist/agents/skills/codex/harness-knowledge-pipeline/SKILL.md +12 -1
- package/dist/agents/skills/codex/harness-observability/SKILL.md +2 -0
- package/dist/agents/skills/codex/harness-pulse/SKILL.md +138 -0
- package/dist/agents/skills/codex/harness-pulse/references/interview.md +77 -0
- package/dist/agents/skills/codex/harness-pulse/skill.yaml +61 -0
- package/dist/agents/skills/codex/harness-roadmap-pilot/SKILL.md +25 -1
- package/dist/agents/skills/cursor/harness-compound/SKILL.md +153 -0
- package/dist/agents/skills/cursor/harness-compound/skill.yaml +60 -0
- package/dist/agents/skills/cursor/harness-knowledge-pipeline/SKILL.md +12 -1
- package/dist/agents/skills/cursor/harness-observability/SKILL.md +2 -0
- package/dist/agents/skills/cursor/harness-pulse/SKILL.md +138 -0
- package/dist/agents/skills/cursor/harness-pulse/references/interview.md +77 -0
- package/dist/agents/skills/cursor/harness-pulse/skill.yaml +61 -0
- package/dist/agents/skills/cursor/harness-roadmap-pilot/SKILL.md +25 -1
- package/dist/agents/skills/gemini-cli/harness-compound/SKILL.md +153 -0
- package/dist/agents/skills/gemini-cli/harness-compound/skill.yaml +60 -0
- package/dist/agents/skills/gemini-cli/harness-knowledge-pipeline/SKILL.md +12 -1
- package/dist/agents/skills/gemini-cli/harness-observability/SKILL.md +2 -0
- package/dist/agents/skills/gemini-cli/harness-pulse/SKILL.md +138 -0
- package/dist/agents/skills/gemini-cli/harness-pulse/references/interview.md +77 -0
- package/dist/agents/skills/gemini-cli/harness-pulse/skill.yaml +61 -0
- package/dist/agents/skills/gemini-cli/harness-roadmap-pilot/SKILL.md +25 -1
- package/dist/agents/skills/package.json +1 -0
- package/dist/agents/skills/tests/fixtures/harness-compound/bug-track-fixture/input.json +10 -0
- package/dist/agents/skills/tests/fixtures/harness-compound/duplicate-detection-fixture/docs/solutions/bug-track/integration-issues/stalled-lease-cleanup.md +28 -0
- package/dist/agents/skills/tests/fixtures/harness-compound/duplicate-detection-fixture/expected.json +4 -0
- package/dist/agents/skills/tests/fixtures/harness-compound/duplicate-detection-fixture/input.json +10 -0
- package/dist/agents/skills/tests/fixtures/harness-compound/knowledge-track-fixture/input.json +10 -0
- package/dist/agents/skills/tests/harness-compound.test.ts +86 -0
- package/dist/{agents-md-6SAMHE7H.js → agents-md-L4X4MOWT.js} +3 -3
- package/dist/{architecture-5YR52NSV.js → architecture-WJRIYQ45.js} +4 -4
- package/dist/{assess-project-5X7TYQFM.js → assess-project-PHC2HO3V.js} +1 -1
- package/dist/bin/harness-mcp.js +16 -15
- package/dist/bin/harness.js +26 -25
- package/dist/{check-phase-gate-PLV2VDOL.js → check-phase-gate-646KY67H.js} +5 -4
- package/dist/{chunk-ZYLBIDLE.js → chunk-224XKVLP.js} +1 -1
- package/dist/{chunk-ELJ2MXMO.js → chunk-2QPHCR22.js} +9 -9
- package/dist/{chunk-SITVRO7K.js → chunk-2ZURBWEV.js} +9 -9
- package/dist/{chunk-2IBXUG6J.js → chunk-36X7TRUI.js} +2 -2
- package/dist/{chunk-6L2BU4BP.js → chunk-4HKVZO7R.js} +1 -1
- package/dist/{chunk-74YADB7T.js → chunk-7XQYOXTB.js} +96 -94
- package/dist/{chunk-S2WB4LE7.js → chunk-BMM3GXV6.js} +384 -28
- package/dist/{chunk-BYS3TQOO.js → chunk-CPYL6LJR.js} +1 -1
- package/dist/{chunk-QDRBWVVY.js → chunk-E7W3YOXL.js} +2 -2
- package/dist/{chunk-MTPHNOJW.js → chunk-FNCJ3UCU.js} +507 -244
- package/dist/{chunk-RYDPFIJY.js → chunk-JPWICLXQ.js} +1 -1
- package/dist/{chunk-RFYF7TJS.js → chunk-K4WRQTEF.js} +1835 -805
- package/dist/{chunk-DXGI7DL3.js → chunk-KTWKW6KJ.js} +1 -1
- package/dist/{chunk-JNKALGRM.js → chunk-KV7A5OZT.js} +5 -5
- package/dist/{chunk-KJD4J54I.js → chunk-LO7ZLV7S.js} +6 -1
- package/dist/{chunk-XHOGGZS7.js → chunk-QTUPHTTK.js} +1 -1
- package/dist/{chunk-R2CBBZA6.js → chunk-SVC7THFK.js} +1 -1
- package/dist/{chunk-PFM3BVVU.js → chunk-TNZYQTEE.js} +1 -1
- package/dist/{chunk-HT7HYYGT.js → chunk-VJQLUS5I.js} +1 -1
- package/dist/{chunk-6GXSJGSW.js → chunk-VKDBM3RX.js} +3 -3
- package/dist/{chunk-JZST2WZS.js → chunk-W4AFGFFB.js} +3 -3
- package/dist/{chunk-YJE23GRZ.js → chunk-YG4ZBGEH.js} +39 -5
- package/dist/{chunk-5ME3WG3G.js → chunk-YLOAQZLA.js} +5 -5
- package/dist/{chunk-7JQ7HLM4.js → chunk-YLTRFZAT.js} +8 -8
- package/dist/{chunk-BFBZK6BC.js → chunk-YWD6WXXM.js} +6 -6
- package/dist/chunk-ZCZD7FHU.js +16 -0
- package/dist/{ci-workflow-7T2XKB3P.js → ci-workflow-TOS5X527.js} +3 -3
- package/dist/{dist-77VNTHWV.js → dist-6RT2AVYU.js} +78 -2
- package/dist/{dist-42AYXCAK.js → dist-D27LJR2T.js} +7 -1
- package/dist/{docs-MSIJ6SDO.js → docs-HOJMQYDZ.js} +5 -4
- package/dist/{engine-F4P5RBE4.js → engine-D6UYH6DB.js} +3 -3
- package/dist/{entropy-GSUTIORR.js → entropy-LZ4IDGZR.js} +3 -3
- package/dist/{feedback-NST6T4HI.js → feedback-WV7EQVK7.js} +1 -1
- package/dist/{generate-agent-definitions-BOUGQIPA.js → generate-agent-definitions-ZHFFS6YG.js} +4 -4
- package/dist/glob-helper-FZPPTGJN.js +62 -0
- package/dist/{graph-loader-IAUPGLRV.js → graph-loader-5MKHAJJF.js} +1 -1
- package/dist/index.d.ts +44 -6
- package/dist/index.js +26 -25
- package/dist/{loader-6QTJC7IN.js → loader-Z23JTXIZ.js} +3 -3
- package/dist/{mcp-QFBGTUX6.js → mcp-QFZDPFNP.js} +16 -15
- package/dist/{performance-B2NAAIE5.js → performance-7ATLHTQU.js} +5 -4
- package/dist/{review-pipeline-6EYMBS6B.js → review-pipeline-COBGGXHJ.js} +3 -3
- package/dist/{runtime-VFZK6BCZ.js → runtime-KCBNQUXK.js} +3 -3
- package/dist/{scan-DB6FNYGG.js → scan-BIJYHOE7.js} +2 -1
- package/dist/{security-HRNTYHPM.js → security-MAPRIFQT.js} +1 -1
- package/dist/templates/orchestrator/harness.orchestrator.md +9 -1
- package/dist/{validate-YEMAFWJE.js → validate-74XTQR7Q.js} +4 -4
- package/dist/{validate-cross-check-DGHTJFVH.js → validate-cross-check-MI5MZ7MB.js} +3 -3
- package/package.json +7 -6
- package/dist/glob-helper-VCQXK5XY.js +0 -54
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// agents/skills/tests/harness-compound.test.ts
|
|
2
|
+
//
|
|
3
|
+
// Contract tests for the harness-compound skill. The skill prose itself is
|
|
4
|
+
// executed by an agent (not by node), so e2e correctness is human-judged.
|
|
5
|
+
// Phase 2 owns:
|
|
6
|
+
// - the lock-primitive contract (machine-testable)
|
|
7
|
+
// - fixture artifacts for the four scenarios called out by Phase 7's
|
|
8
|
+
// end-to-end tests (bug-track / knowledge-track / duplicate-detection)
|
|
9
|
+
//
|
|
10
|
+
// Generic structure, schema, and platform-parity tests live in sibling files.
|
|
11
|
+
|
|
12
|
+
import { describe, it, expect } from 'vitest';
|
|
13
|
+
import * as fs from 'node:fs';
|
|
14
|
+
import * as path from 'node:path';
|
|
15
|
+
import * as os from 'node:os';
|
|
16
|
+
import { dirname } from 'path';
|
|
17
|
+
import { fileURLToPath } from 'url';
|
|
18
|
+
import { acquireCompoundLock, CompoundLockHeldError } from '@harness-engineering/core';
|
|
19
|
+
|
|
20
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
21
|
+
|
|
22
|
+
describe('harness-compound integration', () => {
|
|
23
|
+
describe('lock primitive', () => {
|
|
24
|
+
it('serializes same-category invocations', () => {
|
|
25
|
+
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'hc-'));
|
|
26
|
+
const a = acquireCompoundLock('integration-issues', { cwd: tmp });
|
|
27
|
+
expect(() => acquireCompoundLock('integration-issues', { cwd: tmp })).toThrow(
|
|
28
|
+
CompoundLockHeldError
|
|
29
|
+
);
|
|
30
|
+
a.release();
|
|
31
|
+
// Now a fresh acquire succeeds
|
|
32
|
+
const b = acquireCompoundLock('integration-issues', { cwd: tmp });
|
|
33
|
+
b.release();
|
|
34
|
+
fs.rmSync(tmp, { recursive: true, force: true });
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
it('parallelizes different-category invocations', () => {
|
|
38
|
+
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'hc-'));
|
|
39
|
+
const a = acquireCompoundLock('integration-issues', { cwd: tmp });
|
|
40
|
+
const b = acquireCompoundLock('test-failures', { cwd: tmp });
|
|
41
|
+
a.release();
|
|
42
|
+
b.release();
|
|
43
|
+
fs.rmSync(tmp, { recursive: true, force: true });
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
describe('fixtures', () => {
|
|
48
|
+
const fixturesRoot = path.resolve(__dirname, 'fixtures', 'harness-compound');
|
|
49
|
+
|
|
50
|
+
it('bug-track fixture has expected shape', () => {
|
|
51
|
+
const input = JSON.parse(
|
|
52
|
+
fs.readFileSync(path.join(fixturesRoot, 'bug-track-fixture', 'input.json'), 'utf-8')
|
|
53
|
+
);
|
|
54
|
+
expect(input.expected.track).toBe('bug-track');
|
|
55
|
+
expect(input.expected.category).toBe('integration-issues');
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
it('knowledge-track fixture has expected shape', () => {
|
|
59
|
+
const input = JSON.parse(
|
|
60
|
+
fs.readFileSync(path.join(fixturesRoot, 'knowledge-track-fixture', 'input.json'), 'utf-8')
|
|
61
|
+
);
|
|
62
|
+
expect(input.expected.track).toBe('knowledge-track');
|
|
63
|
+
expect(input.expected.category).toBe('conventions');
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it('duplicate-detection fixture seeds an existing doc', () => {
|
|
67
|
+
const seedPath = path.join(
|
|
68
|
+
fixturesRoot,
|
|
69
|
+
'duplicate-detection-fixture',
|
|
70
|
+
'docs',
|
|
71
|
+
'solutions',
|
|
72
|
+
'bug-track',
|
|
73
|
+
'integration-issues',
|
|
74
|
+
'stalled-lease-cleanup.md'
|
|
75
|
+
);
|
|
76
|
+
expect(fs.existsSync(seedPath)).toBe(true);
|
|
77
|
+
const expected = JSON.parse(
|
|
78
|
+
fs.readFileSync(
|
|
79
|
+
path.join(fixturesRoot, 'duplicate-detection-fixture', 'expected.json'),
|
|
80
|
+
'utf-8'
|
|
81
|
+
)
|
|
82
|
+
);
|
|
83
|
+
expect(expected.mode).toBe('update');
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateAgentsMd
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-4HKVZO7R.js";
|
|
4
|
+
import "./chunk-K4WRQTEF.js";
|
|
5
5
|
import "./chunk-RL4VMEXL.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-BMM3GXV6.js";
|
|
7
7
|
import "./chunk-KFQGP6VL.js";
|
|
8
8
|
export {
|
|
9
9
|
generateAgentsMd
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
checkDependenciesDefinition,
|
|
3
3
|
handleCheckDependencies
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-YLOAQZLA.js";
|
|
5
|
+
import "./chunk-CPYL6LJR.js";
|
|
6
6
|
import "./chunk-EPUKTTJZ.js";
|
|
7
7
|
import "./chunk-W6Y7ZW3Y.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-K4WRQTEF.js";
|
|
9
9
|
import "./chunk-RL4VMEXL.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-BMM3GXV6.js";
|
|
11
11
|
import "./chunk-KFQGP6VL.js";
|
|
12
12
|
export {
|
|
13
13
|
checkDependenciesDefinition,
|
package/dist/bin/harness-mcp.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
startServer
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-7XQYOXTB.js";
|
|
5
|
+
import "../chunk-36X7TRUI.js";
|
|
6
|
+
import "../chunk-YWD6WXXM.js";
|
|
7
7
|
import "../chunk-IOW3MW2K.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-2ZURBWEV.js";
|
|
9
|
+
import "../chunk-W4AFGFFB.js";
|
|
10
|
+
import "../chunk-KTWKW6KJ.js";
|
|
11
|
+
import "../chunk-VKDBM3RX.js";
|
|
12
|
+
import "../chunk-YLOAQZLA.js";
|
|
13
|
+
import "../chunk-CPYL6LJR.js";
|
|
14
|
+
import "../chunk-2QPHCR22.js";
|
|
15
|
+
import "../chunk-KV7A5OZT.js";
|
|
16
|
+
import "../chunk-YLTRFZAT.js";
|
|
17
17
|
import "../chunk-EPUKTTJZ.js";
|
|
18
18
|
import "../chunk-W6Y7ZW3Y.js";
|
|
19
19
|
import "../chunk-27AJKSQY.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-LO7ZLV7S.js";
|
|
21
21
|
import "../chunk-3ISINLYT.js";
|
|
22
22
|
import "../chunk-6B6UN6SG.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-ZCZD7FHU.js";
|
|
24
|
+
import "../chunk-K4WRQTEF.js";
|
|
24
25
|
import "../chunk-RL4VMEXL.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-BMM3GXV6.js";
|
|
26
27
|
import "../chunk-HIK6OEUF.js";
|
|
27
28
|
import "../chunk-EBJQ6N4M.js";
|
|
28
29
|
import "../chunk-3WGJMBKH.js";
|
package/dist/bin/harness.js
CHANGED
|
@@ -3,45 +3,46 @@ import {
|
|
|
3
3
|
createProgram,
|
|
4
4
|
installCommandTelemetry,
|
|
5
5
|
printFirstRunWelcome
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-FNCJ3UCU.js";
|
|
7
|
+
import "../chunk-TNZYQTEE.js";
|
|
8
|
+
import "../chunk-4HKVZO7R.js";
|
|
9
|
+
import "../chunk-JPWICLXQ.js";
|
|
10
|
+
import "../chunk-QTUPHTTK.js";
|
|
11
|
+
import "../chunk-224XKVLP.js";
|
|
12
12
|
import "../chunk-CQ553GZO.js";
|
|
13
13
|
import "../chunk-GISMXMVL.js";
|
|
14
14
|
import "../chunk-WWACIIBA.js";
|
|
15
15
|
import "../chunk-TEFCFC4H.js";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-E7W3YOXL.js";
|
|
17
|
+
import "../chunk-SVC7THFK.js";
|
|
18
18
|
import "../chunk-KET4QQZB.js";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-VJQLUS5I.js";
|
|
20
|
+
import "../chunk-YG4ZBGEH.js";
|
|
21
21
|
import {
|
|
22
22
|
dispatchSkillsFromGit
|
|
23
|
-
} from "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
23
|
+
} from "../chunk-7XQYOXTB.js";
|
|
24
|
+
import "../chunk-36X7TRUI.js";
|
|
25
|
+
import "../chunk-YWD6WXXM.js";
|
|
26
26
|
import "../chunk-IOW3MW2K.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-2ZURBWEV.js";
|
|
28
|
+
import "../chunk-W4AFGFFB.js";
|
|
29
|
+
import "../chunk-KTWKW6KJ.js";
|
|
30
|
+
import "../chunk-VKDBM3RX.js";
|
|
31
|
+
import "../chunk-YLOAQZLA.js";
|
|
32
|
+
import "../chunk-CPYL6LJR.js";
|
|
33
|
+
import "../chunk-2QPHCR22.js";
|
|
34
|
+
import "../chunk-KV7A5OZT.js";
|
|
35
|
+
import "../chunk-YLTRFZAT.js";
|
|
36
36
|
import "../chunk-EPUKTTJZ.js";
|
|
37
37
|
import "../chunk-W6Y7ZW3Y.js";
|
|
38
38
|
import "../chunk-27AJKSQY.js";
|
|
39
39
|
import {
|
|
40
40
|
findConfigFile,
|
|
41
41
|
loadConfig
|
|
42
|
-
} from "../chunk-
|
|
42
|
+
} from "../chunk-LO7ZLV7S.js";
|
|
43
43
|
import "../chunk-3ISINLYT.js";
|
|
44
44
|
import "../chunk-6B6UN6SG.js";
|
|
45
|
+
import "../chunk-ZCZD7FHU.js";
|
|
45
46
|
import {
|
|
46
47
|
CLI_VERSION
|
|
47
48
|
} from "../chunk-BM3PWGXQ.js";
|
|
@@ -52,9 +53,9 @@ import {
|
|
|
52
53
|
readCheckState,
|
|
53
54
|
shouldRunCheck,
|
|
54
55
|
spawnBackgroundCheck
|
|
55
|
-
} from "../chunk-
|
|
56
|
+
} from "../chunk-K4WRQTEF.js";
|
|
56
57
|
import "../chunk-RL4VMEXL.js";
|
|
57
|
-
import "../chunk-
|
|
58
|
+
import "../chunk-BMM3GXV6.js";
|
|
58
59
|
import "../chunk-ZP5E7YET.js";
|
|
59
60
|
import "../chunk-HIK6OEUF.js";
|
|
60
61
|
import "../chunk-EBJQ6N4M.js";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCheckPhaseGateCommand,
|
|
3
3
|
runCheckPhaseGate
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-E7W3YOXL.js";
|
|
5
|
+
import "./chunk-LO7ZLV7S.js";
|
|
6
|
+
import "./chunk-ZCZD7FHU.js";
|
|
7
|
+
import "./chunk-K4WRQTEF.js";
|
|
7
8
|
import "./chunk-RL4VMEXL.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-BMM3GXV6.js";
|
|
9
10
|
import "./chunk-EBJQ6N4M.js";
|
|
10
11
|
import "./chunk-3WGJMBKH.js";
|
|
11
12
|
import "./chunk-KFQGP6VL.js";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
findConfigFile,
|
|
9
9
|
loadConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LO7ZLV7S.js";
|
|
11
11
|
import {
|
|
12
12
|
init_dist
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-K4WRQTEF.js";
|
|
14
14
|
import {
|
|
15
15
|
Ok
|
|
16
16
|
} from "./chunk-RL4VMEXL.js";
|
|
@@ -50,18 +50,18 @@ async function handleCheckDocs(input) {
|
|
|
50
50
|
const projectPath = sanitizePath(input.path);
|
|
51
51
|
const scope = input.scope ?? "coverage";
|
|
52
52
|
if (scope === "integrity") {
|
|
53
|
-
const { validateKnowledgeMap } = await import("./dist-
|
|
53
|
+
const { validateKnowledgeMap } = await import("./dist-6RT2AVYU.js");
|
|
54
54
|
const result2 = await validateKnowledgeMap(projectPath);
|
|
55
55
|
return resultToMcpResponse(result2);
|
|
56
56
|
}
|
|
57
57
|
if (scope === "all") {
|
|
58
|
-
const { checkDocCoverage: checkDocCoverage2, validateKnowledgeMap } = await import("./dist-
|
|
58
|
+
const { checkDocCoverage: checkDocCoverage2, validateKnowledgeMap } = await import("./dist-6RT2AVYU.js");
|
|
59
59
|
const domain2 = input.domain ?? "src";
|
|
60
|
-
const { loadGraphStore: loadGraphStore2 } = await import("./graph-loader-
|
|
60
|
+
const { loadGraphStore: loadGraphStore2 } = await import("./graph-loader-5MKHAJJF.js");
|
|
61
61
|
const store2 = await loadGraphStore2(projectPath);
|
|
62
62
|
let graphCoverage2;
|
|
63
63
|
if (store2) {
|
|
64
|
-
const { Assembler } = await import("./dist-
|
|
64
|
+
const { Assembler } = await import("./dist-D27LJR2T.js");
|
|
65
65
|
const assembler = new Assembler(store2);
|
|
66
66
|
const report = assembler.checkCoverage();
|
|
67
67
|
graphCoverage2 = {
|
|
@@ -94,13 +94,13 @@ async function handleCheckDocs(input) {
|
|
|
94
94
|
}
|
|
95
95
|
return resultToMcpResponse(Ok({ coverage, integrity }));
|
|
96
96
|
}
|
|
97
|
-
const { checkDocCoverage } = await import("./dist-
|
|
97
|
+
const { checkDocCoverage } = await import("./dist-6RT2AVYU.js");
|
|
98
98
|
const domain = input.domain ?? "src";
|
|
99
|
-
const { loadGraphStore } = await import("./graph-loader-
|
|
99
|
+
const { loadGraphStore } = await import("./graph-loader-5MKHAJJF.js");
|
|
100
100
|
const store = await loadGraphStore(projectPath);
|
|
101
101
|
let graphCoverage;
|
|
102
102
|
if (store) {
|
|
103
|
-
const { Assembler } = await import("./dist-
|
|
103
|
+
const { Assembler } = await import("./dist-D27LJR2T.js");
|
|
104
104
|
const assembler = new Assembler(store);
|
|
105
105
|
const report = assembler.checkCoverage();
|
|
106
106
|
graphCoverage = {
|
|
@@ -33,7 +33,7 @@ var createSelfReviewDefinition = {
|
|
|
33
33
|
};
|
|
34
34
|
async function handleCreateSelfReview(input) {
|
|
35
35
|
try {
|
|
36
|
-
const { parseDiff, createSelfReview } = await import("./dist-
|
|
36
|
+
const { parseDiff, createSelfReview } = await import("./dist-6RT2AVYU.js");
|
|
37
37
|
const parseResult = parseDiff(input.diff);
|
|
38
38
|
if (!parseResult.ok) {
|
|
39
39
|
return resultToMcpResponse(parseResult);
|
|
@@ -53,11 +53,11 @@ async function handleCreateSelfReview(input) {
|
|
|
53
53
|
...input.maxFileCount !== void 0 ? { maxChangedFiles: input.maxFileCount } : {}
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
const { loadGraphStore } = await import("./graph-loader-
|
|
56
|
+
const { loadGraphStore } = await import("./graph-loader-5MKHAJJF.js");
|
|
57
57
|
const store = await loadGraphStore(projectPath);
|
|
58
58
|
let graphData;
|
|
59
59
|
if (store) {
|
|
60
|
-
const { GraphFeedbackAdapter } = await import("./dist-
|
|
60
|
+
const { GraphFeedbackAdapter } = await import("./dist-D27LJR2T.js");
|
|
61
61
|
const adapter = new GraphFeedbackAdapter(store);
|
|
62
62
|
const changedFiles = parseResult.value.files.map((f) => f.path);
|
|
63
63
|
const impact = adapter.computeImpactData(changedFiles);
|
|
@@ -119,7 +119,7 @@ var analyzeDiffDefinition = {
|
|
|
119
119
|
};
|
|
120
120
|
async function handleAnalyzeDiff(input) {
|
|
121
121
|
try {
|
|
122
|
-
const { parseDiff, analyzeDiff } = await import("./dist-
|
|
122
|
+
const { parseDiff, analyzeDiff } = await import("./dist-6RT2AVYU.js");
|
|
123
123
|
const parseResult = parseDiff(input.diff);
|
|
124
124
|
if (!parseResult.ok) {
|
|
125
125
|
return resultToMcpResponse(parseResult);
|
|
@@ -139,10 +139,10 @@ async function handleAnalyzeDiff(input) {
|
|
|
139
139
|
let graphImpactData;
|
|
140
140
|
if (input.path) {
|
|
141
141
|
try {
|
|
142
|
-
const { loadGraphStore } = await import("./graph-loader-
|
|
142
|
+
const { loadGraphStore } = await import("./graph-loader-5MKHAJJF.js");
|
|
143
143
|
const store = await loadGraphStore(sanitizePath(input.path));
|
|
144
144
|
if (store) {
|
|
145
|
-
const { GraphFeedbackAdapter } = await import("./dist-
|
|
145
|
+
const { GraphFeedbackAdapter } = await import("./dist-D27LJR2T.js");
|
|
146
146
|
const adapter = new GraphFeedbackAdapter(store);
|
|
147
147
|
const changedFiles = parseResult.value.files.map((f) => f.path);
|
|
148
148
|
const impact = adapter.computeImpactData(changedFiles);
|
|
@@ -195,7 +195,7 @@ var requestPeerReviewDefinition = {
|
|
|
195
195
|
};
|
|
196
196
|
async function handleRequestPeerReview(input) {
|
|
197
197
|
try {
|
|
198
|
-
const { parseDiff, requestPeerReview } = await import("./dist-
|
|
198
|
+
const { parseDiff, requestPeerReview } = await import("./dist-6RT2AVYU.js");
|
|
199
199
|
const parseResult = parseDiff(input.diff);
|
|
200
200
|
if (!parseResult.ok) {
|
|
201
201
|
return resultToMcpResponse(parseResult);
|
|
@@ -206,10 +206,10 @@ async function handleRequestPeerReview(input) {
|
|
|
206
206
|
...input.context ? { metadata: { context: input.context } } : {}
|
|
207
207
|
};
|
|
208
208
|
try {
|
|
209
|
-
const { loadGraphStore } = await import("./graph-loader-
|
|
209
|
+
const { loadGraphStore } = await import("./graph-loader-5MKHAJJF.js");
|
|
210
210
|
const store = await loadGraphStore(sanitizePath(input.path));
|
|
211
211
|
if (store) {
|
|
212
|
-
const { GraphFeedbackAdapter } = await import("./dist-
|
|
212
|
+
const { GraphFeedbackAdapter } = await import("./dist-D27LJR2T.js");
|
|
213
213
|
const adapter = new GraphFeedbackAdapter(store);
|
|
214
214
|
const changedFiles = parseResult.value.files.map((f) => f.path);
|
|
215
215
|
const impactData = adapter.computeImpactData(changedFiles);
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
init_dist,
|
|
6
6
|
paginate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-K4WRQTEF.js";
|
|
8
8
|
|
|
9
9
|
// src/mcp/tools/review-pipeline.ts
|
|
10
10
|
init_dist();
|
|
@@ -79,7 +79,7 @@ var runCodeReviewDefinition = {
|
|
|
79
79
|
};
|
|
80
80
|
async function handleRunCodeReview(input) {
|
|
81
81
|
try {
|
|
82
|
-
const { parseDiff, runReviewPipeline } = await import("./dist-
|
|
82
|
+
const { parseDiff, runReviewPipeline } = await import("./dist-6RT2AVYU.js");
|
|
83
83
|
const parseResult = parseDiff(input.diff);
|
|
84
84
|
if (!parseResult.ok) {
|
|
85
85
|
return {
|