@harness-engineering/cli 1.6.1 → 1.6.2

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.
@@ -0,0 +1,242 @@
1
+ import {
2
+ AgentActionEmitter,
3
+ BaselineManager,
4
+ BenchmarkRunner,
5
+ ChecklistBuilder,
6
+ ConsoleSink,
7
+ CriticalPathResolver,
8
+ DEFAULT_SECURITY_CONFIG,
9
+ DEFAULT_STATE,
10
+ DEFAULT_STREAM_INDEX,
11
+ EntropyAnalyzer,
12
+ EntropyConfigSchema,
13
+ Err,
14
+ FailureEntrySchema,
15
+ FileSink,
16
+ GateConfigSchema,
17
+ GateResultSchema,
18
+ HandoffSchema,
19
+ HarnessStateSchema,
20
+ NoOpExecutor,
21
+ NoOpSink,
22
+ NoOpTelemetryAdapter,
23
+ Ok,
24
+ PatternConfigSchema,
25
+ REQUIRED_SECTIONS,
26
+ RegressionDetector,
27
+ RuleRegistry,
28
+ STANDARD_COGNITIVE_MODES,
29
+ SecurityConfigSchema,
30
+ SecurityScanner,
31
+ StreamIndexSchema,
32
+ StreamInfoSchema,
33
+ TypeScriptParser,
34
+ VERSION,
35
+ analyzeDiff,
36
+ appendFailure,
37
+ appendLearning,
38
+ applyFixes,
39
+ archiveFailures,
40
+ archiveStream,
41
+ buildDependencyGraph,
42
+ buildSnapshot,
43
+ checkDocCoverage,
44
+ configureFeedback,
45
+ contextBudget,
46
+ contextFilter,
47
+ createBoundaryValidator,
48
+ createError,
49
+ createFixes,
50
+ createParseError,
51
+ createSelfReview,
52
+ createStream,
53
+ cryptoRules,
54
+ defineLayer,
55
+ deserializationRules,
56
+ detectCircularDeps,
57
+ detectCircularDepsInFiles,
58
+ detectComplexityViolations,
59
+ detectCouplingViolations,
60
+ detectDeadCode,
61
+ detectDocDrift,
62
+ detectPatternViolations,
63
+ detectSizeBudgetViolations,
64
+ detectStack,
65
+ executeWorkflow,
66
+ expressRules,
67
+ extractMarkdownLinks,
68
+ extractSections,
69
+ generateAgentsMap,
70
+ generateSuggestions,
71
+ getActionEmitter,
72
+ getFeedbackConfig,
73
+ getPhaseCategories,
74
+ getStreamForBranch,
75
+ goRules,
76
+ injectionRules,
77
+ isErr,
78
+ isOk,
79
+ listStreams,
80
+ loadFailures,
81
+ loadHandoff,
82
+ loadRelevantLearnings,
83
+ loadState,
84
+ loadStreamIndex,
85
+ logAgentAction,
86
+ migrateToStreams,
87
+ networkRules,
88
+ nodeRules,
89
+ parseDiff,
90
+ parseSecurityConfig,
91
+ parseSize,
92
+ pathTraversalRules,
93
+ previewFix,
94
+ reactRules,
95
+ requestMultiplePeerReviews,
96
+ requestPeerReview,
97
+ resetFeedbackConfig,
98
+ resolveFileToLayer,
99
+ resolveRuleSeverity,
100
+ resolveStreamPath,
101
+ runCIChecks,
102
+ runMechanicalGate,
103
+ runMultiTurnPipeline,
104
+ runPipeline,
105
+ saveHandoff,
106
+ saveState,
107
+ saveStreamIndex,
108
+ secretRules,
109
+ setActiveStream,
110
+ touchStream,
111
+ trackAction,
112
+ validateAgentsMap,
113
+ validateBoundaries,
114
+ validateCommitMessage,
115
+ validateConfig,
116
+ validateDependencies,
117
+ validateFileStructure,
118
+ validateKnowledgeMap,
119
+ validatePatternConfig,
120
+ xssRules
121
+ } from "./chunk-USEYPS7F.js";
122
+ export {
123
+ AgentActionEmitter,
124
+ BaselineManager,
125
+ BenchmarkRunner,
126
+ ChecklistBuilder,
127
+ ConsoleSink,
128
+ CriticalPathResolver,
129
+ DEFAULT_SECURITY_CONFIG,
130
+ DEFAULT_STATE,
131
+ DEFAULT_STREAM_INDEX,
132
+ EntropyAnalyzer,
133
+ EntropyConfigSchema,
134
+ Err,
135
+ FailureEntrySchema,
136
+ FileSink,
137
+ GateConfigSchema,
138
+ GateResultSchema,
139
+ HandoffSchema,
140
+ HarnessStateSchema,
141
+ NoOpExecutor,
142
+ NoOpSink,
143
+ NoOpTelemetryAdapter,
144
+ Ok,
145
+ PatternConfigSchema,
146
+ REQUIRED_SECTIONS,
147
+ RegressionDetector,
148
+ RuleRegistry,
149
+ STANDARD_COGNITIVE_MODES,
150
+ SecurityConfigSchema,
151
+ SecurityScanner,
152
+ StreamIndexSchema,
153
+ StreamInfoSchema,
154
+ TypeScriptParser,
155
+ VERSION,
156
+ analyzeDiff,
157
+ appendFailure,
158
+ appendLearning,
159
+ applyFixes,
160
+ archiveFailures,
161
+ archiveStream,
162
+ buildDependencyGraph,
163
+ buildSnapshot,
164
+ checkDocCoverage,
165
+ configureFeedback,
166
+ contextBudget,
167
+ contextFilter,
168
+ createBoundaryValidator,
169
+ createError,
170
+ createFixes,
171
+ createParseError,
172
+ createSelfReview,
173
+ createStream,
174
+ cryptoRules,
175
+ defineLayer,
176
+ deserializationRules,
177
+ detectCircularDeps,
178
+ detectCircularDepsInFiles,
179
+ detectComplexityViolations,
180
+ detectCouplingViolations,
181
+ detectDeadCode,
182
+ detectDocDrift,
183
+ detectPatternViolations,
184
+ detectSizeBudgetViolations,
185
+ detectStack,
186
+ executeWorkflow,
187
+ expressRules,
188
+ extractMarkdownLinks,
189
+ extractSections,
190
+ generateAgentsMap,
191
+ generateSuggestions,
192
+ getActionEmitter,
193
+ getFeedbackConfig,
194
+ getPhaseCategories,
195
+ getStreamForBranch,
196
+ goRules,
197
+ injectionRules,
198
+ isErr,
199
+ isOk,
200
+ listStreams,
201
+ loadFailures,
202
+ loadHandoff,
203
+ loadRelevantLearnings,
204
+ loadState,
205
+ loadStreamIndex,
206
+ logAgentAction,
207
+ migrateToStreams,
208
+ networkRules,
209
+ nodeRules,
210
+ parseDiff,
211
+ parseSecurityConfig,
212
+ parseSize,
213
+ pathTraversalRules,
214
+ previewFix,
215
+ reactRules,
216
+ requestMultiplePeerReviews,
217
+ requestPeerReview,
218
+ resetFeedbackConfig,
219
+ resolveFileToLayer,
220
+ resolveRuleSeverity,
221
+ resolveStreamPath,
222
+ runCIChecks,
223
+ runMechanicalGate,
224
+ runMultiTurnPipeline,
225
+ runPipeline,
226
+ saveHandoff,
227
+ saveState,
228
+ saveStreamIndex,
229
+ secretRules,
230
+ setActiveStream,
231
+ touchStream,
232
+ trackAction,
233
+ validateAgentsMap,
234
+ validateBoundaries,
235
+ validateCommitMessage,
236
+ validateConfig,
237
+ validateDependencies,
238
+ validateFileStructure,
239
+ validateKnowledgeMap,
240
+ validatePatternConfig,
241
+ xssRules
242
+ };
package/dist/index.js CHANGED
@@ -28,10 +28,11 @@ import {
28
28
  runPersona,
29
29
  runQuery,
30
30
  runScan
31
- } from "./chunk-O6NEKDYP.js";
31
+ } from "./chunk-IUFFBBYV.js";
32
32
  import {
33
33
  runCrossCheck
34
- } from "./chunk-3U5VZYR7.js";
34
+ } from "./chunk-UDWGSL3T.js";
35
+ import "./chunk-USEYPS7F.js";
35
36
  import {
36
37
  CLIError,
37
38
  ExitCode,
@@ -0,0 +1,7 @@
1
+ import {
2
+ runCrossCheck
3
+ } from "./chunk-UDWGSL3T.js";
4
+ import "./chunk-USEYPS7F.js";
5
+ export {
6
+ runCrossCheck
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harness-engineering/cli",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "CLI for Harness Engineering toolkit",
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,21 +20,25 @@
20
20
  "README.md"
21
21
  ],
22
22
  "dependencies": {
23
+ "@typescript-eslint/typescript-estree": "^7.0.0",
23
24
  "chalk": "^5.3.0",
24
25
  "commander": "^12.0.0",
25
26
  "glob": "^10.3.0",
26
27
  "handlebars": "^4.7.0",
28
+ "lokijs": "^1.5.12",
29
+ "minimatch": "^10.2.4",
27
30
  "yaml": "^2.3.0",
28
- "zod": "^3.22.0",
29
- "@harness-engineering/core": "0.8.0",
30
- "@harness-engineering/graph": "0.2.1",
31
- "@harness-engineering/linter-gen": "0.1.0"
31
+ "zod": "^3.22.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^22.0.0",
35
35
  "@vitest/coverage-v8": "^4.0.18",
36
36
  "tsup": "^8.0.0",
37
- "vitest": "^4.0.18"
37
+ "vitest": "^4.0.18",
38
+ "@harness-engineering/core": "0.8.0",
39
+ "@harness-engineering/types": "0.1.0",
40
+ "@harness-engineering/linter-gen": "0.1.0",
41
+ "@harness-engineering/graph": "0.2.1"
38
42
  },
39
43
  "license": "MIT",
40
44
  "publishConfig": {
@@ -50,8 +54,8 @@
50
54
  },
51
55
  "homepage": "https://github.com/Intense-Visions/harness-engineering/tree/main/packages/cli#readme",
52
56
  "scripts": {
53
- "build": "tsup src/index.ts src/bin/harness.ts --format esm --dts --outDir dist && cp -r ../../templates dist/templates && cp -r ../../agents dist/agents",
54
- "dev": "tsup src/index.ts src/bin/harness.ts --format esm --dts --watch",
57
+ "build": "tsup && cp -r ../../templates dist/templates && cp -r ../../agents dist/agents",
58
+ "dev": "tsup --watch",
55
59
  "lint": "eslint src",
56
60
  "typecheck": "tsc --noEmit",
57
61
  "test": "vitest run",
@@ -1,6 +0,0 @@
1
- import {
2
- runCrossCheck
3
- } from "./chunk-3U5VZYR7.js";
4
- export {
5
- runCrossCheck
6
- };