@harness-engineering/cli 1.10.0 → 1.11.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/dist/agents/skills/claude-code/enforce-architecture/SKILL.md +4 -0
- package/dist/agents/skills/claude-code/harness-parallel-agents/SKILL.md +105 -20
- package/dist/agents/skills/claude-code/harness-pre-commit-review/SKILL.md +37 -0
- package/dist/agents/skills/gemini-cli/enforce-architecture/SKILL.md +4 -0
- package/dist/agents/skills/gemini-cli/harness-parallel-agents/SKILL.md +105 -20
- package/dist/agents/skills/gemini-cli/harness-pre-commit-review/SKILL.md +37 -0
- package/dist/{agents-md-EMRFLNBC.js → agents-md-ZFV6RR5J.js} +1 -1
- package/dist/{architecture-5JNN5L3M.js → architecture-EXNUMH5R.js} +2 -2
- package/dist/bin/harness-mcp.js +14 -14
- package/dist/bin/harness.js +20 -20
- package/dist/{check-phase-gate-WOKIYGAM.js → check-phase-gate-VZFOY2PO.js} +4 -4
- package/dist/{chunk-7X7ZAYMY.js → chunk-2NCIKJES.js} +102 -5
- package/dist/{chunk-OPXH4CQN.js → chunk-2YPZKGAG.js} +1 -1
- package/dist/{chunk-NX6DSZSM.js → chunk-2YSQOUHO.js} +4483 -2668
- package/dist/{chunk-B7HFEHWP.js → chunk-3WGJMBKH.js} +10 -0
- package/dist/{chunk-ECUJQS3B.js → chunk-6N4R6FVX.js} +3 -3
- package/dist/chunk-EBJQ6N4M.js +39 -0
- package/dist/{chunk-46YA6FI3.js → chunk-GNGELAXY.js} +2 -2
- package/dist/{chunk-FPIPT36X.js → chunk-GSIVNYVJ.js} +6 -6
- package/dist/{chunk-EOLRW32Q.js → chunk-HD4IBGLA.js} +9 -1
- package/dist/{chunk-LXU5M77O.js → chunk-I6JZYEGT.js} +390 -57
- package/dist/{chunk-F3YDAJFQ.js → chunk-L2KLU56K.js} +2 -2
- package/dist/{chunk-F4PTVZWA.js → chunk-NC6PXVWT.js} +7 -7
- package/dist/{chunk-4PFMY3H7.js → chunk-PA2XHK75.js} +9 -9
- package/dist/{chunk-MO4YQOMB.js → chunk-TI4TGEX6.js} +3 -3
- package/dist/{chunk-MDUK2J2O.js → chunk-VRFZWGMS.js} +2 -1
- package/dist/{chunk-FX7SQHGD.js → chunk-WJZDO6OY.js} +2 -2
- package/dist/{chunk-PMTFPOCT.js → chunk-WUJTCNOU.js} +1 -1
- package/dist/{chunk-PSXF277V.js → chunk-X3MN5UQJ.js} +1 -1
- package/dist/{chunk-CWZ4Y2PO.js → chunk-Z75JC6I2.js} +4 -4
- package/dist/{chunk-PAHHT2IK.js → chunk-ZWC3MN5E.js} +1707 -294
- package/dist/{ci-workflow-ZBBUNTHQ.js → ci-workflow-K5RCRNYR.js} +1 -1
- package/dist/create-skill-WPXHSLX2.js +11 -0
- package/dist/{dist-PBTNVK6K.js → dist-JVZ2MKBC.js} +101 -1
- package/dist/{dist-I7DB5VKB.js → dist-M6BQODWC.js} +1145 -0
- package/dist/{docs-PTJGD6XI.js → docs-PWCUVYWU.js} +2 -2
- package/dist/{engine-SCMZ3G3E.js → engine-6XUP6GAK.js} +1 -1
- package/dist/{entropy-YIUBGKY7.js → entropy-4I6JEYAC.js} +2 -2
- package/dist/{feedback-WEVQSLAA.js → feedback-TNIW534S.js} +1 -1
- package/dist/{generate-agent-definitions-BU5LOJTI.js → generate-agent-definitions-MWKEA5NU.js} +4 -4
- package/dist/{graph-loader-RLO3KRIX.js → graph-loader-KO4GJ5N2.js} +1 -1
- package/dist/index.d.ts +318 -12
- package/dist/index.js +29 -21
- package/dist/{loader-6S6PVGSF.js → loader-4FIPIFII.js} +1 -1
- package/dist/mcp-MOKLYNZL.js +34 -0
- package/dist/{performance-5TVW6SA6.js → performance-BTOJCPXU.js} +2 -2
- package/dist/{review-pipeline-4JTQAWKW.js → review-pipeline-3YTW3463.js} +1 -1
- package/dist/{runtime-PXIM7UV6.js → runtime-GO7K2PJE.js} +1 -1
- package/dist/{security-URYTKLGK.js → security-4P2GGFF6.js} +1 -1
- package/dist/skill-executor-RG45LUO5.js +8 -0
- package/dist/templates/orchestrator/WORKFLOW.md +48 -0
- package/dist/templates/orchestrator/template.json +6 -0
- package/dist/{validate-KSDUUK2M.js → validate-JN44D2Q7.js} +2 -2
- package/dist/{validate-cross-check-WZAX357V.js → validate-cross-check-DB7RIFFF.js} +1 -1
- package/package.json +10 -6
- package/dist/chunk-HIOXKZYF.js +0 -15
- package/dist/create-skill-LUWO46WF.js +0 -11
- package/dist/mcp-BNLBTCXZ.js +0 -34
- package/dist/skill-executor-KVS47DAU.js +0 -8
|
@@ -32,18 +32,18 @@ async function handleCheckDocs(input) {
|
|
|
32
32
|
const projectPath = sanitizePath(input.path);
|
|
33
33
|
const scope = input.scope ?? "coverage";
|
|
34
34
|
if (scope === "integrity") {
|
|
35
|
-
const { validateKnowledgeMap } = await import("./dist-
|
|
35
|
+
const { validateKnowledgeMap } = await import("./dist-JVZ2MKBC.js");
|
|
36
36
|
const result2 = await validateKnowledgeMap(projectPath);
|
|
37
37
|
return resultToMcpResponse(result2);
|
|
38
38
|
}
|
|
39
39
|
if (scope === "all") {
|
|
40
|
-
const { checkDocCoverage: checkDocCoverage2, validateKnowledgeMap } = await import("./dist-
|
|
40
|
+
const { checkDocCoverage: checkDocCoverage2, validateKnowledgeMap } = await import("./dist-JVZ2MKBC.js");
|
|
41
41
|
const domain2 = input.domain ?? "src";
|
|
42
|
-
const { loadGraphStore: loadGraphStore2 } = await import("./graph-loader-
|
|
42
|
+
const { loadGraphStore: loadGraphStore2 } = await import("./graph-loader-KO4GJ5N2.js");
|
|
43
43
|
const store2 = await loadGraphStore2(projectPath);
|
|
44
44
|
let graphCoverage2;
|
|
45
45
|
if (store2) {
|
|
46
|
-
const { Assembler } = await import("./dist-
|
|
46
|
+
const { Assembler } = await import("./dist-M6BQODWC.js");
|
|
47
47
|
const assembler = new Assembler(store2);
|
|
48
48
|
const report = assembler.checkCoverage();
|
|
49
49
|
graphCoverage2 = {
|
|
@@ -76,13 +76,13 @@ async function handleCheckDocs(input) {
|
|
|
76
76
|
}
|
|
77
77
|
return resultToMcpResponse(Ok({ coverage, integrity }));
|
|
78
78
|
}
|
|
79
|
-
const { checkDocCoverage } = await import("./dist-
|
|
79
|
+
const { checkDocCoverage } = await import("./dist-JVZ2MKBC.js");
|
|
80
80
|
const domain = input.domain ?? "src";
|
|
81
|
-
const { loadGraphStore } = await import("./graph-loader-
|
|
81
|
+
const { loadGraphStore } = await import("./graph-loader-KO4GJ5N2.js");
|
|
82
82
|
const store = await loadGraphStore(projectPath);
|
|
83
83
|
let graphCoverage;
|
|
84
84
|
if (store) {
|
|
85
|
-
const { Assembler } = await import("./dist-
|
|
85
|
+
const { Assembler } = await import("./dist-M6BQODWC.js");
|
|
86
86
|
const assembler = new Assembler(store);
|
|
87
87
|
const report = assembler.checkCoverage();
|
|
88
88
|
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-JVZ2MKBC.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-KO4GJ5N2.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-M6BQODWC.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-JVZ2MKBC.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-KO4GJ5N2.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-M6BQODWC.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-JVZ2MKBC.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-KO4GJ5N2.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-M6BQODWC.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);
|
|
@@ -38,7 +38,7 @@ async function handleCheckDependencies(input) {
|
|
|
38
38
|
const configResult = resolveProjectConfig(projectPath);
|
|
39
39
|
if (!configResult.ok) return resultToMcpResponse(configResult);
|
|
40
40
|
try {
|
|
41
|
-
const { validateDependencies, TypeScriptParser } = await import("./dist-
|
|
41
|
+
const { validateDependencies, TypeScriptParser } = await import("./dist-JVZ2MKBC.js");
|
|
42
42
|
const config = configResult.value;
|
|
43
43
|
const rawLayers = Array.isArray(config.layers) ? config.layers : [];
|
|
44
44
|
const layers = rawLayers.map((l) => ({
|
|
@@ -47,11 +47,11 @@ async function handleCheckDependencies(input) {
|
|
|
47
47
|
allowedDependencies: l.allowedDependencies
|
|
48
48
|
}));
|
|
49
49
|
const parser = new TypeScriptParser();
|
|
50
|
-
const { loadGraphStore } = await import("./graph-loader-
|
|
50
|
+
const { loadGraphStore } = await import("./graph-loader-KO4GJ5N2.js");
|
|
51
51
|
const store = await loadGraphStore(projectPath);
|
|
52
52
|
let graphDependencyData;
|
|
53
53
|
if (store) {
|
|
54
|
-
const { GraphConstraintAdapter } = await import("./dist-
|
|
54
|
+
const { GraphConstraintAdapter } = await import("./dist-M6BQODWC.js");
|
|
55
55
|
const adapter = new GraphConstraintAdapter(store);
|
|
56
56
|
const graphData = adapter.computeDependencyGraph();
|
|
57
57
|
graphDependencyData = {
|
|
@@ -58,7 +58,8 @@ var SkillMetadataSchema = z.object({
|
|
|
58
58
|
type: z.enum(["rigid", "flexible"]),
|
|
59
59
|
phases: z.array(SkillPhaseSchema).optional(),
|
|
60
60
|
state: SkillStateSchema.default({}),
|
|
61
|
-
depends_on: z.array(z.string()).default([])
|
|
61
|
+
depends_on: z.array(z.string()).default([]),
|
|
62
|
+
repository: z.string().url().optional()
|
|
62
63
|
});
|
|
63
64
|
|
|
64
65
|
export {
|
|
@@ -49,7 +49,7 @@ async function handleValidateProject(input) {
|
|
|
49
49
|
checks.config = "pass";
|
|
50
50
|
const config = configResult.value;
|
|
51
51
|
try {
|
|
52
|
-
const core = await import("./dist-
|
|
52
|
+
const core = await import("./dist-JVZ2MKBC.js");
|
|
53
53
|
if (typeof core.validateFileStructure === "function" && Array.isArray(config.conventions)) {
|
|
54
54
|
const conventions = config.conventions;
|
|
55
55
|
const structureResult = await core.validateFileStructure(projectPath, conventions);
|
|
@@ -68,7 +68,7 @@ async function handleValidateProject(input) {
|
|
|
68
68
|
} catch {
|
|
69
69
|
}
|
|
70
70
|
try {
|
|
71
|
-
const core = await import("./dist-
|
|
71
|
+
const core = await import("./dist-JVZ2MKBC.js");
|
|
72
72
|
if (typeof core.validateAgentsMap === "function") {
|
|
73
73
|
const agentsMapPath = path.join(projectPath, "AGENTS.md");
|
|
74
74
|
const agentsResult = await core.validateAgentsMap(agentsMapPath);
|
|
@@ -45,7 +45,7 @@ var runCodeReviewDefinition = {
|
|
|
45
45
|
};
|
|
46
46
|
async function handleRunCodeReview(input) {
|
|
47
47
|
try {
|
|
48
|
-
const { parseDiff, runReviewPipeline } = await import("./dist-
|
|
48
|
+
const { parseDiff, runReviewPipeline } = await import("./dist-JVZ2MKBC.js");
|
|
49
49
|
const parseResult = parseDiff(input.diff);
|
|
50
50
|
if (!parseResult.ok) {
|
|
51
51
|
return {
|
|
@@ -26,7 +26,7 @@ var runSecurityScanDefinition = {
|
|
|
26
26
|
};
|
|
27
27
|
async function handleRunSecurityScan(input) {
|
|
28
28
|
try {
|
|
29
|
-
const core = await import("./dist-
|
|
29
|
+
const core = await import("./dist-JVZ2MKBC.js");
|
|
30
30
|
const projectRoot = sanitizePath(input.path);
|
|
31
31
|
let configData = {};
|
|
32
32
|
try {
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
|
|
11
11
|
// src/mcp/tools/entropy.ts
|
|
12
12
|
async function loadEntropyGraphOptions(projectPath) {
|
|
13
|
-
const { loadGraphStore } = await import("./graph-loader-
|
|
13
|
+
const { loadGraphStore } = await import("./graph-loader-KO4GJ5N2.js");
|
|
14
14
|
const store = await loadGraphStore(projectPath);
|
|
15
15
|
if (!store) return void 0;
|
|
16
|
-
const { GraphEntropyAdapter } = await import("./dist-
|
|
16
|
+
const { GraphEntropyAdapter } = await import("./dist-M6BQODWC.js");
|
|
17
17
|
const adapter = new GraphEntropyAdapter(store);
|
|
18
18
|
const driftData = adapter.computeDriftData();
|
|
19
19
|
const deadCodeData = adapter.computeDeadCodeData();
|
|
@@ -84,7 +84,7 @@ var detectEntropyDefinition = {
|
|
|
84
84
|
};
|
|
85
85
|
async function handleDetectEntropy(input) {
|
|
86
86
|
try {
|
|
87
|
-
const { EntropyAnalyzer } = await import("./dist-
|
|
87
|
+
const { EntropyAnalyzer } = await import("./dist-JVZ2MKBC.js");
|
|
88
88
|
const typeFilter = input.type ?? "all";
|
|
89
89
|
const analyzer = new EntropyAnalyzer({
|
|
90
90
|
rootDir: sanitizePath(input.path),
|
|
@@ -144,7 +144,7 @@ async function handleDetectEntropy(input) {
|
|
|
144
144
|
return resultToMcpResponse(result);
|
|
145
145
|
}
|
|
146
146
|
if (!result.ok) return resultToMcpResponse(result);
|
|
147
|
-
const { createFixes, applyFixes, generateSuggestions } = await import("./dist-
|
|
147
|
+
const { createFixes, applyFixes, generateSuggestions } = await import("./dist-JVZ2MKBC.js");
|
|
148
148
|
const report = result.value;
|
|
149
149
|
const deadCode = report.deadCode;
|
|
150
150
|
const fixTypesConfig = input.fixTypes ? { fixTypes: input.fixTypes } : void 0;
|