@harness-engineering/cli 1.9.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-autopilot/SKILL.md +7 -2
- package/dist/agents/skills/claude-code/harness-brainstorming/SKILL.md +10 -1
- package/dist/agents/skills/claude-code/harness-execution/SKILL.md +2 -2
- 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-autopilot/SKILL.md +7 -2
- package/dist/agents/skills/gemini-cli/harness-brainstorming/SKILL.md +10 -1
- package/dist/agents/skills/gemini-cli/harness-execution/SKILL.md +2 -2
- 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-ZFV6RR5J.js +8 -0
- package/dist/architecture-EXNUMH5R.js +13 -0
- package/dist/bin/harness-mcp.d.ts +1 -0
- package/dist/bin/harness-mcp.js +28 -0
- package/dist/bin/harness.js +42 -8
- package/dist/check-phase-gate-VZFOY2PO.js +12 -0
- package/dist/chunk-2NCIKJES.js +470 -0
- package/dist/chunk-2YPZKGAG.js +62 -0
- package/dist/{chunk-CGSHUJES.js → chunk-2YSQOUHO.js} +4484 -2688
- package/dist/chunk-3WGJMBKH.js +45 -0
- package/dist/{chunk-ULSRSP53.js → chunk-6N4R6FVX.js} +11 -112
- package/dist/{chunk-6JIT7CEM.js → chunk-72GHBOL2.js} +1 -1
- package/dist/chunk-BM3PWGXQ.js +14 -0
- package/dist/chunk-C2ERUR3L.js +255 -0
- package/dist/chunk-EBJQ6N4M.js +39 -0
- package/dist/chunk-GNGELAXY.js +293 -0
- package/dist/chunk-GSIVNYVJ.js +187 -0
- package/dist/chunk-HD4IBGLA.js +80 -0
- package/dist/chunk-I6JZYEGT.js +4361 -0
- package/dist/chunk-IDZNPTYD.js +16 -0
- package/dist/chunk-JSTQ3AWB.js +31 -0
- package/dist/chunk-K6XAPGML.js +27 -0
- package/dist/chunk-KET4QQZB.js +8 -0
- package/dist/chunk-L2KLU56K.js +125 -0
- package/dist/chunk-MHBMTPW7.js +29 -0
- package/dist/chunk-NC6PXVWT.js +116 -0
- package/dist/chunk-NKDM3FMH.js +52 -0
- package/dist/chunk-PA2XHK75.js +248 -0
- package/dist/chunk-Q6AB7W5Z.js +135 -0
- package/dist/chunk-QPEH2QPG.js +347 -0
- package/dist/chunk-TEFCFC4H.js +15 -0
- package/dist/chunk-TI4TGEX6.js +85 -0
- package/dist/chunk-TRAPF4IX.js +185 -0
- package/dist/chunk-VRFZWGMS.js +68 -0
- package/dist/chunk-VUCPTQ6G.js +67 -0
- package/dist/chunk-W6Y7ZW3Y.js +13 -0
- package/dist/chunk-WJZDO6OY.js +103 -0
- package/dist/chunk-WUJTCNOU.js +122 -0
- package/dist/chunk-X3MN5UQJ.js +89 -0
- package/dist/chunk-Z75JC6I2.js +189 -0
- package/dist/chunk-ZOAWBDWU.js +72 -0
- package/dist/{chunk-RTPHUDZS.js → chunk-ZWC3MN5E.js} +1944 -2779
- package/dist/ci-workflow-K5RCRNYR.js +8 -0
- package/dist/constants-5JGUXPEK.js +6 -0
- package/dist/create-skill-WPXHSLX2.js +11 -0
- package/dist/dist-D4RYGUZE.js +14 -0
- package/dist/{dist-C5PYIQPF.js → dist-JVZ2MKBC.js} +108 -6
- package/dist/dist-L7LAAQAS.js +18 -0
- package/dist/{dist-I7DB5VKB.js → dist-M6BQODWC.js} +1145 -0
- package/dist/docs-PWCUVYWU.js +12 -0
- package/dist/engine-6XUP6GAK.js +8 -0
- package/dist/entropy-4I6JEYAC.js +12 -0
- package/dist/feedback-TNIW534S.js +18 -0
- package/dist/generate-agent-definitions-MWKEA5NU.js +15 -0
- package/dist/glob-helper-5OHBUQAI.js +52 -0
- package/dist/graph-loader-KO4GJ5N2.js +8 -0
- package/dist/index.d.ts +328 -12
- package/dist/index.js +93 -34
- package/dist/loader-4FIPIFII.js +10 -0
- package/dist/mcp-MOKLYNZL.js +34 -0
- package/dist/performance-BTOJCPXU.js +24 -0
- package/dist/review-pipeline-3YTW3463.js +9 -0
- package/dist/runner-VMYLHWOC.js +6 -0
- package/dist/runtime-GO7K2PJE.js +9 -0
- package/dist/security-4P2GGFF6.js +9 -0
- 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-JN44D2Q7.js +12 -0
- package/dist/validate-cross-check-DB7RIFFF.js +8 -0
- package/dist/version-KFFPOQAX.js +6 -0
- package/package.json +13 -7
- package/dist/create-skill-UZOHMXRU.js +0 -8
- package/dist/validate-cross-check-VG573VZO.js +0 -7
package/dist/index.js
CHANGED
|
@@ -1,47 +1,99 @@
|
|
|
1
1
|
import {
|
|
2
|
-
AGENT_DESCRIPTIONS,
|
|
3
|
-
ALLOWED_PERSONA_COMMANDS,
|
|
4
|
-
DEFAULT_TOOLS,
|
|
5
|
-
GEMINI_TOOL_MAP,
|
|
6
|
-
OutputFormatter,
|
|
7
|
-
OutputMode,
|
|
8
|
-
TemplateEngine,
|
|
9
2
|
buildPreamble,
|
|
10
3
|
createProgram,
|
|
11
|
-
|
|
12
|
-
executeSkill,
|
|
13
|
-
findConfigFile,
|
|
14
|
-
generateAgentDefinition,
|
|
15
|
-
generateAgentDefinitions,
|
|
16
|
-
generateAgentsMd,
|
|
17
|
-
generateCIWorkflow,
|
|
18
|
-
generateRuntime,
|
|
19
|
-
generateSlashCommands,
|
|
20
|
-
listPersonas,
|
|
21
|
-
loadConfig,
|
|
22
|
-
loadPersona,
|
|
23
|
-
renderClaudeCodeAgent,
|
|
24
|
-
renderGeminiAgent,
|
|
25
|
-
resolveConfig,
|
|
26
|
-
runCheckPhaseGate,
|
|
4
|
+
runCheckArch,
|
|
27
5
|
runGraphExport,
|
|
28
6
|
runGraphStatus,
|
|
7
|
+
runImpactPreview,
|
|
29
8
|
runIngest,
|
|
30
|
-
|
|
9
|
+
runInstall,
|
|
31
10
|
runQuery,
|
|
32
|
-
runScan
|
|
33
|
-
|
|
11
|
+
runScan,
|
|
12
|
+
runUninstall
|
|
13
|
+
} from "./chunk-ZWC3MN5E.js";
|
|
34
14
|
import {
|
|
35
|
-
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import
|
|
15
|
+
generateCIWorkflow
|
|
16
|
+
} from "./chunk-VUCPTQ6G.js";
|
|
17
|
+
import {
|
|
18
|
+
OutputFormatter,
|
|
19
|
+
OutputMode,
|
|
20
|
+
findConfigFile,
|
|
21
|
+
loadConfig,
|
|
22
|
+
resolveConfig,
|
|
23
|
+
runCheckPhaseGate
|
|
24
|
+
} from "./chunk-2NCIKJES.js";
|
|
25
|
+
import {
|
|
26
|
+
AGENT_DESCRIPTIONS,
|
|
27
|
+
DEFAULT_TOOLS,
|
|
28
|
+
GEMINI_TOOL_MAP,
|
|
29
|
+
generateAgentDefinition,
|
|
30
|
+
generateAgentDefinitions,
|
|
31
|
+
renderClaudeCodeAgent,
|
|
32
|
+
renderGeminiAgent
|
|
33
|
+
} from "./chunk-GNGELAXY.js";
|
|
34
|
+
import {
|
|
35
|
+
listPersonas,
|
|
36
|
+
loadPersona
|
|
37
|
+
} from "./chunk-Q6AB7W5Z.js";
|
|
38
|
+
import {
|
|
39
|
+
detectTrigger,
|
|
40
|
+
runPersona
|
|
41
|
+
} from "./chunk-TRAPF4IX.js";
|
|
42
|
+
import {
|
|
43
|
+
executeSkill
|
|
44
|
+
} from "./chunk-L2KLU56K.js";
|
|
45
|
+
import {
|
|
46
|
+
ALLOWED_PERSONA_COMMANDS
|
|
47
|
+
} from "./chunk-TEFCFC4H.js";
|
|
48
|
+
import {
|
|
49
|
+
generateSkillFiles
|
|
50
|
+
} from "./chunk-6N4R6FVX.js";
|
|
51
|
+
import {
|
|
52
|
+
logger
|
|
53
|
+
} from "./chunk-EBJQ6N4M.js";
|
|
54
|
+
import "./chunk-QPEH2QPG.js";
|
|
55
|
+
import {
|
|
56
|
+
generateRuntime
|
|
57
|
+
} from "./chunk-JSTQ3AWB.js";
|
|
58
|
+
import "./chunk-KET4QQZB.js";
|
|
59
|
+
import {
|
|
60
|
+
generateAgentsMd
|
|
61
|
+
} from "./chunk-NKDM3FMH.js";
|
|
62
|
+
import {
|
|
63
|
+
createHarnessServer,
|
|
64
|
+
generateSlashCommands,
|
|
65
|
+
getToolDefinitions,
|
|
66
|
+
startServer
|
|
67
|
+
} from "./chunk-I6JZYEGT.js";
|
|
68
|
+
import "./chunk-Z75JC6I2.js";
|
|
69
|
+
import "./chunk-GSIVNYVJ.js";
|
|
70
|
+
import "./chunk-PA2XHK75.js";
|
|
71
|
+
import "./chunk-X3MN5UQJ.js";
|
|
72
|
+
import "./chunk-WUJTCNOU.js";
|
|
73
|
+
import "./chunk-ZOAWBDWU.js";
|
|
74
|
+
import "./chunk-WJZDO6OY.js";
|
|
75
|
+
import "./chunk-2YPZKGAG.js";
|
|
76
|
+
import "./chunk-TI4TGEX6.js";
|
|
77
|
+
import "./chunk-K6XAPGML.js";
|
|
78
|
+
import "./chunk-NC6PXVWT.js";
|
|
79
|
+
import "./chunk-IDZNPTYD.js";
|
|
80
|
+
import "./chunk-W6Y7ZW3Y.js";
|
|
81
|
+
import "./chunk-HD4IBGLA.js";
|
|
38
82
|
import {
|
|
39
83
|
CLIError,
|
|
40
84
|
ExitCode,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
85
|
+
handleError
|
|
86
|
+
} from "./chunk-3WGJMBKH.js";
|
|
87
|
+
import "./chunk-VRFZWGMS.js";
|
|
88
|
+
import "./chunk-BM3PWGXQ.js";
|
|
89
|
+
import {
|
|
90
|
+
runCrossCheck
|
|
91
|
+
} from "./chunk-72GHBOL2.js";
|
|
92
|
+
import {
|
|
93
|
+
TemplateEngine
|
|
94
|
+
} from "./chunk-C2ERUR3L.js";
|
|
95
|
+
import "./chunk-2YSQOUHO.js";
|
|
96
|
+
import "./chunk-MHBMTPW7.js";
|
|
45
97
|
export {
|
|
46
98
|
AGENT_DESCRIPTIONS,
|
|
47
99
|
ALLOWED_PERSONA_COMMANDS,
|
|
@@ -53,6 +105,7 @@ export {
|
|
|
53
105
|
OutputMode,
|
|
54
106
|
TemplateEngine,
|
|
55
107
|
buildPreamble,
|
|
108
|
+
createHarnessServer,
|
|
56
109
|
createProgram,
|
|
57
110
|
detectTrigger,
|
|
58
111
|
executeSkill,
|
|
@@ -64,6 +117,7 @@ export {
|
|
|
64
117
|
generateRuntime,
|
|
65
118
|
generateSkillFiles,
|
|
66
119
|
generateSlashCommands,
|
|
120
|
+
getToolDefinitions,
|
|
67
121
|
handleError,
|
|
68
122
|
listPersonas,
|
|
69
123
|
loadConfig,
|
|
@@ -72,12 +126,17 @@ export {
|
|
|
72
126
|
renderClaudeCodeAgent,
|
|
73
127
|
renderGeminiAgent,
|
|
74
128
|
resolveConfig,
|
|
129
|
+
runCheckArch,
|
|
75
130
|
runCheckPhaseGate,
|
|
76
131
|
runCrossCheck,
|
|
77
132
|
runGraphExport,
|
|
78
133
|
runGraphStatus,
|
|
134
|
+
runImpactPreview,
|
|
79
135
|
runIngest,
|
|
136
|
+
runInstall,
|
|
80
137
|
runPersona,
|
|
81
138
|
runQuery,
|
|
82
|
-
runScan
|
|
139
|
+
runScan,
|
|
140
|
+
runUninstall,
|
|
141
|
+
startServer
|
|
83
142
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createHarnessServer,
|
|
3
|
+
getToolDefinitions,
|
|
4
|
+
startServer
|
|
5
|
+
} from "./chunk-I6JZYEGT.js";
|
|
6
|
+
import "./chunk-Z75JC6I2.js";
|
|
7
|
+
import "./chunk-GSIVNYVJ.js";
|
|
8
|
+
import "./chunk-PA2XHK75.js";
|
|
9
|
+
import "./chunk-X3MN5UQJ.js";
|
|
10
|
+
import "./chunk-WUJTCNOU.js";
|
|
11
|
+
import "./chunk-ZOAWBDWU.js";
|
|
12
|
+
import "./chunk-WJZDO6OY.js";
|
|
13
|
+
import "./chunk-2YPZKGAG.js";
|
|
14
|
+
import "./chunk-TI4TGEX6.js";
|
|
15
|
+
import {
|
|
16
|
+
resolveProjectConfig
|
|
17
|
+
} from "./chunk-K6XAPGML.js";
|
|
18
|
+
import "./chunk-NC6PXVWT.js";
|
|
19
|
+
import {
|
|
20
|
+
resultToMcpResponse
|
|
21
|
+
} from "./chunk-IDZNPTYD.js";
|
|
22
|
+
import "./chunk-W6Y7ZW3Y.js";
|
|
23
|
+
import "./chunk-HD4IBGLA.js";
|
|
24
|
+
import "./chunk-3WGJMBKH.js";
|
|
25
|
+
import "./chunk-VRFZWGMS.js";
|
|
26
|
+
import "./chunk-2YSQOUHO.js";
|
|
27
|
+
import "./chunk-MHBMTPW7.js";
|
|
28
|
+
export {
|
|
29
|
+
createHarnessServer,
|
|
30
|
+
getToolDefinitions,
|
|
31
|
+
resolveProjectConfig,
|
|
32
|
+
resultToMcpResponse,
|
|
33
|
+
startServer
|
|
34
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
checkPerformanceDefinition,
|
|
3
|
+
getCriticalPathsDefinition,
|
|
4
|
+
getPerfBaselinesDefinition,
|
|
5
|
+
handleCheckPerformance,
|
|
6
|
+
handleGetCriticalPaths,
|
|
7
|
+
handleGetPerfBaselines,
|
|
8
|
+
handleUpdatePerfBaselines,
|
|
9
|
+
updatePerfBaselinesDefinition
|
|
10
|
+
} from "./chunk-GSIVNYVJ.js";
|
|
11
|
+
import "./chunk-IDZNPTYD.js";
|
|
12
|
+
import "./chunk-W6Y7ZW3Y.js";
|
|
13
|
+
import "./chunk-2YSQOUHO.js";
|
|
14
|
+
import "./chunk-MHBMTPW7.js";
|
|
15
|
+
export {
|
|
16
|
+
checkPerformanceDefinition,
|
|
17
|
+
getCriticalPathsDefinition,
|
|
18
|
+
getPerfBaselinesDefinition,
|
|
19
|
+
handleCheckPerformance,
|
|
20
|
+
handleGetCriticalPaths,
|
|
21
|
+
handleGetPerfBaselines,
|
|
22
|
+
handleUpdatePerfBaselines,
|
|
23
|
+
updatePerfBaselinesDefinition
|
|
24
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
tracker:
|
|
3
|
+
kind: roadmap
|
|
4
|
+
filePath: docs/roadmap.md
|
|
5
|
+
activeStates: [planned, in-progress]
|
|
6
|
+
terminalStates: [done]
|
|
7
|
+
polling:
|
|
8
|
+
intervalMs: 30000
|
|
9
|
+
workspace:
|
|
10
|
+
root: .harness/workspaces
|
|
11
|
+
hooks:
|
|
12
|
+
afterCreate: null
|
|
13
|
+
beforeRun: null
|
|
14
|
+
afterRun: null
|
|
15
|
+
beforeRemove: null
|
|
16
|
+
timeoutMs: 60000
|
|
17
|
+
agent:
|
|
18
|
+
backend: claude
|
|
19
|
+
command: claude
|
|
20
|
+
maxConcurrentAgents: 1
|
|
21
|
+
maxTurns: 10
|
|
22
|
+
maxRetryBackoffMs: 5000
|
|
23
|
+
maxConcurrentAgentsByState: {}
|
|
24
|
+
turnTimeoutMs: 300000
|
|
25
|
+
readTimeoutMs: 30000
|
|
26
|
+
stallTimeoutMs: 60000
|
|
27
|
+
server:
|
|
28
|
+
port: 8080
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
# Prompt Template
|
|
32
|
+
|
|
33
|
+
You are an expert coding agent working on the Harness Engineering project.
|
|
34
|
+
Your goal is to implement the following issue:
|
|
35
|
+
|
|
36
|
+
## Issue: {{ issue.title }}
|
|
37
|
+
|
|
38
|
+
**Identifier:** {{ issue.identifier }}
|
|
39
|
+
**Summary:** {{ issue.summary }}
|
|
40
|
+
|
|
41
|
+
## Instructions
|
|
42
|
+
|
|
43
|
+
1. Research the codebase to understand the requirements.
|
|
44
|
+
2. Implement the changes following the project's engineering standards.
|
|
45
|
+
3. Write tests to verify your changes.
|
|
46
|
+
4. Ensure `harness validate` passes.
|
|
47
|
+
|
|
48
|
+
Attempt Number: {{ attempt }}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
handleValidateProject,
|
|
3
|
+
validateToolDefinition
|
|
4
|
+
} from "./chunk-WJZDO6OY.js";
|
|
5
|
+
import "./chunk-K6XAPGML.js";
|
|
6
|
+
import "./chunk-W6Y7ZW3Y.js";
|
|
7
|
+
import "./chunk-2YSQOUHO.js";
|
|
8
|
+
import "./chunk-MHBMTPW7.js";
|
|
9
|
+
export {
|
|
10
|
+
handleValidateProject,
|
|
11
|
+
validateToolDefinition
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harness-engineering/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "CLI for Harness Engineering toolkit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"harness": "./dist/bin/harness.js"
|
|
7
|
+
"harness": "./dist/bin/harness.js",
|
|
8
|
+
"harness-mcp": "./dist/bin/harness-mcp.js"
|
|
8
9
|
},
|
|
9
10
|
"main": "./dist/index.js",
|
|
10
11
|
"types": "./dist/index.d.ts",
|
|
@@ -21,25 +22,30 @@
|
|
|
21
22
|
"README.md"
|
|
22
23
|
],
|
|
23
24
|
"dependencies": {
|
|
25
|
+
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
24
26
|
"@typescript-eslint/typescript-estree": "^7.0.0",
|
|
25
27
|
"chalk": "^5.3.0",
|
|
26
28
|
"commander": "^12.0.0",
|
|
29
|
+
"ejs": "^3.1.10",
|
|
27
30
|
"glob": "^11.0.0",
|
|
28
31
|
"handlebars": "^4.7.0",
|
|
29
32
|
"lokijs": "^1.5.12",
|
|
30
33
|
"minimatch": "^10.2.4",
|
|
34
|
+
"semver": "^7.7.4",
|
|
31
35
|
"yaml": "^2.3.0",
|
|
32
36
|
"zod": "^3.22.0",
|
|
33
|
-
"@harness-engineering/core": "0.
|
|
34
|
-
"@harness-engineering/graph": "0.3.
|
|
35
|
-
"@harness-engineering/linter-gen": "0.1.
|
|
37
|
+
"@harness-engineering/core": "0.11.0",
|
|
38
|
+
"@harness-engineering/graph": "0.3.2",
|
|
39
|
+
"@harness-engineering/linter-gen": "0.1.3",
|
|
40
|
+
"@harness-engineering/orchestrator": "0.2.0",
|
|
41
|
+
"@harness-engineering/types": "0.3.0"
|
|
36
42
|
},
|
|
37
43
|
"devDependencies": {
|
|
38
44
|
"@types/node": "^22.0.0",
|
|
45
|
+
"@types/semver": "^7.7.1",
|
|
39
46
|
"@vitest/coverage-v8": "^4.0.18",
|
|
40
47
|
"tsup": "^8.0.0",
|
|
41
|
-
"vitest": "^4.0.18"
|
|
42
|
-
"@harness-engineering/types": "0.2.0"
|
|
48
|
+
"vitest": "^4.0.18"
|
|
43
49
|
},
|
|
44
50
|
"license": "MIT",
|
|
45
51
|
"publishConfig": {
|