@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
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
// src/utils/errors.ts
|
|
2
2
|
var ExitCode = {
|
|
3
|
+
/** Command completed successfully */
|
|
3
4
|
SUCCESS: 0,
|
|
5
|
+
/** Command failed because of a validation error (e.g. check-docs found issues) */
|
|
4
6
|
VALIDATION_FAILED: 1,
|
|
7
|
+
/** Command failed because of an unexpected error or misconfiguration */
|
|
5
8
|
ERROR: 2
|
|
6
9
|
};
|
|
7
10
|
var CLIError = class extends Error {
|
|
11
|
+
/** The exit code associated with this error */
|
|
8
12
|
exitCode;
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new CLIError.
|
|
15
|
+
*
|
|
16
|
+
* @param message - Human-readable error message.
|
|
17
|
+
* @param exitCode - Exit code to use when process terminates. Defaults to ExitCode.ERROR.
|
|
18
|
+
*/
|
|
9
19
|
constructor(message, exitCode = ExitCode.ERROR) {
|
|
10
20
|
super(message);
|
|
11
21
|
this.name = "CLIError";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
logger
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EBJQ6N4M.js";
|
|
4
4
|
import {
|
|
5
5
|
CLIError,
|
|
6
6
|
ExitCode
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3WGJMBKH.js";
|
|
8
8
|
import {
|
|
9
9
|
ALLOWED_COGNITIVE_MODES
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VRFZWGMS.js";
|
|
11
11
|
|
|
12
12
|
// src/commands/create-skill.ts
|
|
13
13
|
import { Command } from "commander";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// src/output/logger.ts
|
|
2
|
+
import chalk from "chalk";
|
|
3
|
+
var logger = {
|
|
4
|
+
/**
|
|
5
|
+
* Logs an informational message with a blue 'i' icon.
|
|
6
|
+
* @param message - The message to log.
|
|
7
|
+
*/
|
|
8
|
+
info: (message) => console.log(chalk.blue("i"), message),
|
|
9
|
+
/**
|
|
10
|
+
* Logs a success message with a green 'v' icon.
|
|
11
|
+
* @param message - The message to log.
|
|
12
|
+
*/
|
|
13
|
+
success: (message) => console.log(chalk.green("v"), message),
|
|
14
|
+
/**
|
|
15
|
+
* Logs a warning message with a yellow '!' icon.
|
|
16
|
+
* @param message - The message to log.
|
|
17
|
+
*/
|
|
18
|
+
warn: (message) => console.log(chalk.yellow("!"), message),
|
|
19
|
+
/**
|
|
20
|
+
* Logs an error message with a red 'x' icon to stderr.
|
|
21
|
+
* @param message - The message to log.
|
|
22
|
+
*/
|
|
23
|
+
error: (message) => console.error(chalk.red("x"), message),
|
|
24
|
+
/**
|
|
25
|
+
* Logs a dimmed message.
|
|
26
|
+
* @param message - The message to log.
|
|
27
|
+
*/
|
|
28
|
+
dim: (message) => console.log(chalk.dim(message)),
|
|
29
|
+
/**
|
|
30
|
+
* Logs raw data as a formatted JSON string.
|
|
31
|
+
* Useful for JSON output mode.
|
|
32
|
+
* @param data - The data to log.
|
|
33
|
+
*/
|
|
34
|
+
raw: (data) => console.log(JSON.stringify(data, null, 2))
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
logger
|
|
39
|
+
};
|
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
resolvePersonasDir,
|
|
16
16
|
resolveSkillsDir
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HD4IBGLA.js";
|
|
18
18
|
import {
|
|
19
19
|
CLIError,
|
|
20
20
|
ExitCode,
|
|
21
21
|
handleError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3WGJMBKH.js";
|
|
23
23
|
|
|
24
24
|
// src/commands/generate-agent-definitions.ts
|
|
25
25
|
import { Command } from "commander";
|
|
@@ -27,7 +27,7 @@ var checkPerformanceDefinition = {
|
|
|
27
27
|
};
|
|
28
28
|
async function handleCheckPerformance(input) {
|
|
29
29
|
try {
|
|
30
|
-
const { EntropyAnalyzer } = await import("./dist-
|
|
30
|
+
const { EntropyAnalyzer } = await import("./dist-JVZ2MKBC.js");
|
|
31
31
|
const typeFilter = input.type ?? "all";
|
|
32
32
|
const projectPath = sanitizePath(input.path);
|
|
33
33
|
const analyzer = new EntropyAnalyzer({
|
|
@@ -40,10 +40,10 @@ async function handleCheckPerformance(input) {
|
|
|
40
40
|
});
|
|
41
41
|
let graphOptions;
|
|
42
42
|
try {
|
|
43
|
-
const { loadGraphStore } = await import("./graph-loader-
|
|
43
|
+
const { loadGraphStore } = await import("./graph-loader-KO4GJ5N2.js");
|
|
44
44
|
const store = await loadGraphStore(projectPath);
|
|
45
45
|
if (store) {
|
|
46
|
-
const { GraphComplexityAdapter, GraphCouplingAdapter } = await import("./dist-
|
|
46
|
+
const { GraphComplexityAdapter, GraphCouplingAdapter } = await import("./dist-M6BQODWC.js");
|
|
47
47
|
const complexityAdapter = new GraphComplexityAdapter(store);
|
|
48
48
|
const couplingAdapter = new GraphCouplingAdapter(store);
|
|
49
49
|
graphOptions = {
|
|
@@ -80,7 +80,7 @@ var getPerfBaselinesDefinition = {
|
|
|
80
80
|
};
|
|
81
81
|
async function handleGetPerfBaselines(input) {
|
|
82
82
|
try {
|
|
83
|
-
const { BaselineManager } = await import("./dist-
|
|
83
|
+
const { BaselineManager } = await import("./dist-JVZ2MKBC.js");
|
|
84
84
|
const manager = new BaselineManager(sanitizePath(input.path));
|
|
85
85
|
const baselines = manager.load();
|
|
86
86
|
return resultToMcpResponse(
|
|
@@ -128,7 +128,7 @@ var updatePerfBaselinesDefinition = {
|
|
|
128
128
|
};
|
|
129
129
|
async function handleUpdatePerfBaselines(input) {
|
|
130
130
|
try {
|
|
131
|
-
const { BaselineManager } = await import("./dist-
|
|
131
|
+
const { BaselineManager } = await import("./dist-JVZ2MKBC.js");
|
|
132
132
|
const manager = new BaselineManager(sanitizePath(input.path));
|
|
133
133
|
manager.save(input.results, input.commitHash);
|
|
134
134
|
const updated = manager.load();
|
|
@@ -158,7 +158,7 @@ var getCriticalPathsDefinition = {
|
|
|
158
158
|
};
|
|
159
159
|
async function handleGetCriticalPaths(input) {
|
|
160
160
|
try {
|
|
161
|
-
const { CriticalPathResolver } = await import("./dist-
|
|
161
|
+
const { CriticalPathResolver } = await import("./dist-JVZ2MKBC.js");
|
|
162
162
|
const resolver = new CriticalPathResolver(sanitizePath(input.path));
|
|
163
163
|
const result = await resolver.resolve();
|
|
164
164
|
return resultToMcpResponse(Ok(result));
|
|
@@ -62,11 +62,19 @@ function resolveGlobalSkillsDir() {
|
|
|
62
62
|
}
|
|
63
63
|
return path.join(__dirname, "agents", "skills", "claude-code");
|
|
64
64
|
}
|
|
65
|
+
function resolveCommunitySkillsDir(platform = "claude-code") {
|
|
66
|
+
const agentsDir = findUpDir("agents", "skills");
|
|
67
|
+
if (agentsDir) {
|
|
68
|
+
return path.join(agentsDir, "skills", "community", platform);
|
|
69
|
+
}
|
|
70
|
+
return path.join(__dirname, "agents", "skills", "community", platform);
|
|
71
|
+
}
|
|
65
72
|
|
|
66
73
|
export {
|
|
67
74
|
resolveTemplatesDir,
|
|
68
75
|
resolvePersonasDir,
|
|
69
76
|
resolveSkillsDir,
|
|
70
77
|
resolveProjectSkillsDir,
|
|
71
|
-
resolveGlobalSkillsDir
|
|
78
|
+
resolveGlobalSkillsDir,
|
|
79
|
+
resolveCommunitySkillsDir
|
|
72
80
|
};
|