@harness-engineering/cli 1.21.0 → 1.22.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/cleanup-dead-code/skill.yaml +3 -0
- package/dist/agents/skills/claude-code/detect-doc-drift/skill.yaml +5 -0
- package/dist/agents/skills/claude-code/enforce-architecture/skill.yaml +13 -0
- package/dist/agents/skills/claude-code/harness-code-review/skill.yaml +5 -0
- package/dist/agents/skills/claude-code/harness-codebase-cleanup/skill.yaml +5 -0
- package/dist/agents/skills/claude-code/harness-debugging/skill.yaml +5 -0
- package/dist/agents/skills/claude-code/harness-dependency-health/skill.yaml +9 -0
- package/dist/agents/skills/claude-code/harness-hotspot-detector/skill.yaml +9 -0
- package/dist/agents/skills/claude-code/harness-integrity/skill.yaml +5 -0
- package/dist/agents/skills/claude-code/harness-perf/skill.yaml +3 -0
- package/dist/agents/skills/claude-code/harness-refactoring/skill.yaml +9 -0
- package/dist/agents/skills/claude-code/harness-security-scan/skill.yaml +3 -0
- package/dist/agents/skills/claude-code/harness-soundness-review/skill.yaml +5 -0
- package/dist/agents/skills/claude-code/harness-supply-chain-audit/skill.yaml +3 -0
- package/dist/agents/skills/claude-code/harness-tdd/skill.yaml +3 -0
- package/dist/agents/skills/codex/cleanup-dead-code/skill.yaml +3 -0
- package/dist/agents/skills/codex/detect-doc-drift/skill.yaml +5 -0
- package/dist/agents/skills/codex/enforce-architecture/skill.yaml +13 -0
- package/dist/agents/skills/codex/harness-code-review/skill.yaml +5 -0
- package/dist/agents/skills/codex/harness-codebase-cleanup/skill.yaml +5 -0
- package/dist/agents/skills/codex/harness-debugging/skill.yaml +5 -0
- package/dist/agents/skills/codex/harness-dependency-health/skill.yaml +9 -0
- package/dist/agents/skills/codex/harness-hotspot-detector/skill.yaml +9 -0
- package/dist/agents/skills/codex/harness-integrity/skill.yaml +5 -0
- package/dist/agents/skills/codex/harness-perf/skill.yaml +3 -0
- package/dist/agents/skills/codex/harness-refactoring/skill.yaml +9 -0
- package/dist/agents/skills/codex/harness-security-scan/skill.yaml +3 -0
- package/dist/agents/skills/codex/harness-soundness-review/skill.yaml +5 -0
- package/dist/agents/skills/codex/harness-supply-chain-audit/skill.yaml +3 -0
- package/dist/agents/skills/codex/harness-tdd/skill.yaml +3 -0
- package/dist/agents/skills/cursor/cleanup-dead-code/skill.yaml +3 -0
- package/dist/agents/skills/cursor/detect-doc-drift/skill.yaml +5 -0
- package/dist/agents/skills/cursor/enforce-architecture/skill.yaml +13 -0
- package/dist/agents/skills/cursor/harness-code-review/skill.yaml +5 -0
- package/dist/agents/skills/cursor/harness-codebase-cleanup/skill.yaml +5 -0
- package/dist/agents/skills/cursor/harness-debugging/skill.yaml +5 -0
- package/dist/agents/skills/cursor/harness-dependency-health/skill.yaml +9 -0
- package/dist/agents/skills/cursor/harness-hotspot-detector/skill.yaml +9 -0
- package/dist/agents/skills/cursor/harness-integrity/skill.yaml +5 -0
- package/dist/agents/skills/cursor/harness-perf/skill.yaml +3 -0
- package/dist/agents/skills/cursor/harness-refactoring/skill.yaml +9 -0
- package/dist/agents/skills/cursor/harness-security-scan/skill.yaml +3 -0
- package/dist/agents/skills/cursor/harness-soundness-review/skill.yaml +5 -0
- package/dist/agents/skills/cursor/harness-supply-chain-audit/skill.yaml +3 -0
- package/dist/agents/skills/cursor/harness-tdd/skill.yaml +3 -0
- package/dist/agents/skills/gemini-cli/cleanup-dead-code/skill.yaml +3 -0
- package/dist/agents/skills/gemini-cli/detect-doc-drift/skill.yaml +5 -0
- package/dist/agents/skills/gemini-cli/enforce-architecture/skill.yaml +13 -0
- package/dist/agents/skills/gemini-cli/harness-code-review/skill.yaml +5 -0
- package/dist/agents/skills/gemini-cli/harness-codebase-cleanup/skill.yaml +5 -0
- package/dist/agents/skills/gemini-cli/harness-debugging/skill.yaml +5 -0
- package/dist/agents/skills/gemini-cli/harness-dependency-health/skill.yaml +9 -0
- package/dist/agents/skills/gemini-cli/harness-hotspot-detector/skill.yaml +9 -0
- package/dist/agents/skills/gemini-cli/harness-integrity/skill.yaml +5 -0
- package/dist/agents/skills/gemini-cli/harness-perf/skill.yaml +3 -0
- package/dist/agents/skills/gemini-cli/harness-refactoring/skill.yaml +9 -0
- package/dist/agents/skills/gemini-cli/harness-security-scan/skill.yaml +3 -0
- package/dist/agents/skills/gemini-cli/harness-soundness-review/skill.yaml +5 -0
- package/dist/agents/skills/gemini-cli/harness-supply-chain-audit/skill.yaml +3 -0
- package/dist/agents/skills/gemini-cli/harness-tdd/skill.yaml +3 -0
- package/dist/{agents-md-TDTLYAQU.js → agents-md-PM7LO74M.js} +2 -1
- package/dist/{architecture-NANP4XPE.js → architecture-OVOCDTI6.js} +3 -2
- package/dist/assess-project-R2OZIDDS.js +9 -0
- package/dist/bin/harness-mcp.js +15 -13
- package/dist/bin/harness.js +21 -19
- package/dist/{check-phase-gate-I4NQOCSU.js → check-phase-gate-7JQ6EW5R.js} +4 -3
- package/dist/{chunk-M6TIO6NF.js → chunk-2PAPHA77.js} +1 -1
- package/dist/chunk-5FBWWMY2.js +293 -0
- package/dist/{chunk-YF5ROTWR.js → chunk-5QTWFO24.js} +8 -8
- package/dist/{chunk-CZZXE6BL.js → chunk-ASS5TD2Y.js} +1 -1
- package/dist/{chunk-L6LTNZQZ.js → chunk-B4WHXHF7.js} +1 -1
- package/dist/{chunk-TMSGI27F.js → chunk-DJEBBENF.js} +967 -385
- package/dist/{chunk-H6LXAH66.js → chunk-DXYOAQQC.js} +1 -1
- package/dist/{chunk-UVJFBKCX.js → chunk-FSLFBLYW.js} +7 -7
- package/dist/{chunk-SZ5TGZMI.js → chunk-GRJ7A4WT.js} +17 -2
- package/dist/{chunk-WXI5ONCU.js → chunk-IK5GSLW6.js} +4 -4
- package/dist/{chunk-SPUK5W4W.js → chunk-J7W4LTRK.js} +2 -2
- package/dist/{chunk-7G2ZUTZA.js → chunk-PUOMFNRO.js} +26 -3
- package/dist/{chunk-HKUX2X7O.js → chunk-SE4YPMLH.js} +9 -1
- package/dist/{chunk-UEKQ5G3V.js → chunk-SOTTK27D.js} +459 -37
- package/dist/{chunk-LRG3B43J.js → chunk-T5QWCVGK.js} +1 -1
- package/dist/{dist-U7EAO6T2.js → chunk-TEZI27SA.js} +401 -60
- package/dist/{chunk-YZYBQZVL.js → chunk-U44JNY3Y.js} +1539 -587
- package/dist/{chunk-HUDEBSR2.js → chunk-W6MPLFXU.js} +3 -3
- package/dist/{chunk-6GEYPBDU.js → chunk-ZEIEUCZL.js} +9 -9
- package/dist/{ci-workflow-Z4IUJBZL.js → ci-workflow-OTTEERPF.js} +2 -1
- package/dist/{create-skill-NDXQSTIK.js → create-skill-U3XCFRZN.js} +2 -2
- package/dist/dist-IA6XYKNO.js +92 -0
- package/dist/{dist-KV2ICL5X.js → dist-LCR2IO7U.js} +56 -3
- package/dist/{docs-2PCZVSGB.js → docs-CHAYSGOP.js} +4 -3
- package/dist/{engine-EOXMI5MD.js → engine-4MY2U5RZ.js} +2 -1
- package/dist/{entropy-VGXXBIGX.js → entropy-AKSZG7G5.js} +3 -2
- package/dist/{feedback-VTSPL3O7.js → feedback-QGCSW7SB.js} +1 -1
- package/dist/{generate-agent-definitions-QICSCGXB.js → generate-agent-definitions-KU6X2UQN.js} +2 -1
- package/dist/{graph-loader-KMHDQYDT.js → graph-loader-FJN4H7Y4.js} +1 -1
- package/dist/index.d.ts +58 -2
- package/dist/index.js +27 -23
- package/dist/{loader-7S4FYAPP.js → loader-AV5XEMER.js} +2 -1
- package/dist/{mcp-DF25USTE.js → mcp-LWHVQRG7.js} +15 -13
- package/dist/{performance-RV4DUMFI.js → performance-ETZVXXGQ.js} +4 -3
- package/dist/{review-pipeline-7KQJB4SI.js → review-pipeline-3ZS3GJSP.js} +1 -1
- package/dist/{runtime-XKOHGGRC.js → runtime-KQTJRK3H.js} +2 -1
- package/dist/{security-NLWTMK3G.js → security-LJCLZES6.js} +1 -1
- package/dist/{skill-executor-XEVDGXUM.js → skill-executor-2BZQLHYN.js} +2 -2
- package/dist/{validate-VHFE6J6O.js → validate-4IA5RPEX.js} +3 -2
- package/dist/{validate-cross-check-PFRKABCS.js → validate-cross-check-VX2BAHQI.js} +2 -1
- package/package.json +4 -4
|
@@ -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-LCR2IO7U.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-FJN4H7Y4.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-IA6XYKNO.js");
|
|
55
55
|
const adapter = new GraphConstraintAdapter(store);
|
|
56
56
|
const graphData = adapter.computeDependencyGraph();
|
|
57
57
|
graphDependencyData = {
|
|
@@ -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-LCR2IO7U.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-FJN4H7Y4.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-IA6XYKNO.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-LCR2IO7U.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-FJN4H7Y4.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-IA6XYKNO.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-LCR2IO7U.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-FJN4H7Y4.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-IA6XYKNO.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);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCreateSkillCommand,
|
|
3
3
|
generateSkillFiles
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-T5QWCVGK.js";
|
|
5
5
|
import "./chunk-EBJQ6N4M.js";
|
|
6
6
|
import "./chunk-3WGJMBKH.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-SE4YPMLH.js";
|
|
8
8
|
export {
|
|
9
9
|
createCreateSkillCommand,
|
|
10
10
|
generateSkillFiles
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Assembler,
|
|
3
|
+
CIConnector,
|
|
4
|
+
CURRENT_SCHEMA_VERSION,
|
|
5
|
+
CodeIngestor,
|
|
6
|
+
ConflictPredictor,
|
|
7
|
+
ConfluenceConnector,
|
|
8
|
+
ContextQL,
|
|
9
|
+
DesignConstraintAdapter,
|
|
10
|
+
DesignIngestor,
|
|
11
|
+
EDGE_TYPES,
|
|
12
|
+
EntityExtractor,
|
|
13
|
+
EntityResolver,
|
|
14
|
+
FusionLayer,
|
|
15
|
+
GitIngestor,
|
|
16
|
+
GraphAnomalyAdapter,
|
|
17
|
+
GraphComplexityAdapter,
|
|
18
|
+
GraphConstraintAdapter,
|
|
19
|
+
GraphCouplingAdapter,
|
|
20
|
+
GraphEdgeSchema,
|
|
21
|
+
GraphEntropyAdapter,
|
|
22
|
+
GraphFeedbackAdapter,
|
|
23
|
+
GraphNodeSchema,
|
|
24
|
+
GraphStore,
|
|
25
|
+
INTENTS,
|
|
26
|
+
IntentClassifier,
|
|
27
|
+
JiraConnector,
|
|
28
|
+
KnowledgeIngestor,
|
|
29
|
+
NODE_TYPES,
|
|
30
|
+
OBSERVABILITY_TYPES,
|
|
31
|
+
RequirementIngestor,
|
|
32
|
+
ResponseFormatter,
|
|
33
|
+
SlackConnector,
|
|
34
|
+
SyncManager,
|
|
35
|
+
TaskIndependenceAnalyzer,
|
|
36
|
+
TopologicalLinker,
|
|
37
|
+
VERSION,
|
|
38
|
+
VectorStore,
|
|
39
|
+
askGraph,
|
|
40
|
+
groupNodesByImpact,
|
|
41
|
+
linkToCode,
|
|
42
|
+
loadGraph,
|
|
43
|
+
project,
|
|
44
|
+
queryTraceability,
|
|
45
|
+
saveGraph
|
|
46
|
+
} from "./chunk-TEZI27SA.js";
|
|
47
|
+
export {
|
|
48
|
+
Assembler,
|
|
49
|
+
CIConnector,
|
|
50
|
+
CURRENT_SCHEMA_VERSION,
|
|
51
|
+
CodeIngestor,
|
|
52
|
+
ConflictPredictor,
|
|
53
|
+
ConfluenceConnector,
|
|
54
|
+
ContextQL,
|
|
55
|
+
DesignConstraintAdapter,
|
|
56
|
+
DesignIngestor,
|
|
57
|
+
EDGE_TYPES,
|
|
58
|
+
EntityExtractor,
|
|
59
|
+
EntityResolver,
|
|
60
|
+
FusionLayer,
|
|
61
|
+
GitIngestor,
|
|
62
|
+
GraphAnomalyAdapter,
|
|
63
|
+
GraphComplexityAdapter,
|
|
64
|
+
GraphConstraintAdapter,
|
|
65
|
+
GraphCouplingAdapter,
|
|
66
|
+
GraphEdgeSchema,
|
|
67
|
+
GraphEntropyAdapter,
|
|
68
|
+
GraphFeedbackAdapter,
|
|
69
|
+
GraphNodeSchema,
|
|
70
|
+
GraphStore,
|
|
71
|
+
INTENTS,
|
|
72
|
+
IntentClassifier,
|
|
73
|
+
JiraConnector,
|
|
74
|
+
KnowledgeIngestor,
|
|
75
|
+
NODE_TYPES,
|
|
76
|
+
OBSERVABILITY_TYPES,
|
|
77
|
+
RequirementIngestor,
|
|
78
|
+
ResponseFormatter,
|
|
79
|
+
SlackConnector,
|
|
80
|
+
SyncManager,
|
|
81
|
+
TaskIndependenceAnalyzer,
|
|
82
|
+
TopologicalLinker,
|
|
83
|
+
VERSION,
|
|
84
|
+
VectorStore,
|
|
85
|
+
askGraph,
|
|
86
|
+
groupNodesByImpact,
|
|
87
|
+
linkToCode,
|
|
88
|
+
loadGraph,
|
|
89
|
+
project,
|
|
90
|
+
queryTraceability,
|
|
91
|
+
saveGraph
|
|
92
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AGENT_DESCRIPTORS,
|
|
3
3
|
ARCHITECTURE_DESCRIPTOR,
|
|
4
|
+
AdjustedForecastSchema,
|
|
4
5
|
AgentActionEmitter,
|
|
5
6
|
ArchBaselineManager,
|
|
6
7
|
ArchBaselineSchema,
|
|
@@ -16,23 +17,29 @@ import {
|
|
|
16
17
|
CACHE_TTL_MS,
|
|
17
18
|
COMPLIANCE_DESCRIPTOR,
|
|
18
19
|
CategoryBaselineSchema,
|
|
20
|
+
CategoryForecastSchema,
|
|
19
21
|
CategoryRegressionSchema,
|
|
22
|
+
CategorySnapshotSchema,
|
|
20
23
|
ChecklistBuilder,
|
|
21
24
|
CircularDepsCollector,
|
|
22
25
|
ComplexityCollector,
|
|
26
|
+
ConfidenceTierSchema,
|
|
23
27
|
ConfirmationSchema,
|
|
24
28
|
ConsoleSink,
|
|
25
29
|
ConstraintRuleSchema,
|
|
26
30
|
ContentPipeline,
|
|
31
|
+
ContributingFeatureSchema,
|
|
27
32
|
ContributionsSchema,
|
|
28
33
|
CouplingCollector,
|
|
29
34
|
CriticalPathResolver,
|
|
30
35
|
DEFAULT_PROVIDER_TIERS,
|
|
31
36
|
DEFAULT_SECURITY_CONFIG,
|
|
37
|
+
DEFAULT_STABILITY_THRESHOLDS,
|
|
32
38
|
DEFAULT_STATE,
|
|
33
39
|
DEFAULT_STREAM_INDEX,
|
|
34
40
|
DESTRUCTIVE_BASH,
|
|
35
41
|
DepDepthCollector,
|
|
42
|
+
DirectionSchema,
|
|
36
43
|
EXTENSION_MAP,
|
|
37
44
|
EmitInteractionInputSchema,
|
|
38
45
|
EntropyAnalyzer,
|
|
@@ -58,10 +65,15 @@ import {
|
|
|
58
65
|
NoOpSink,
|
|
59
66
|
NoOpTelemetryAdapter,
|
|
60
67
|
PatternConfigSchema,
|
|
68
|
+
PredictionEngine,
|
|
69
|
+
PredictionOptionsSchema,
|
|
70
|
+
PredictionResultSchema,
|
|
71
|
+
PredictionWarningSchema,
|
|
61
72
|
ProjectScanner,
|
|
62
73
|
QuestionSchema,
|
|
63
74
|
REQUIRED_SECTIONS,
|
|
64
75
|
RegressionDetector,
|
|
76
|
+
RegressionResultSchema,
|
|
65
77
|
RuleRegistry,
|
|
66
78
|
SECURITY_DESCRIPTOR,
|
|
67
79
|
STALENESS_WARNING_DAYS,
|
|
@@ -73,10 +85,19 @@ import {
|
|
|
73
85
|
SharableLayerSchema,
|
|
74
86
|
SharableSecurityRulesSchema,
|
|
75
87
|
SkillEventSchema,
|
|
88
|
+
SpecImpactEstimateSchema,
|
|
89
|
+
SpecImpactEstimator,
|
|
90
|
+
SpecImpactSignalsSchema,
|
|
91
|
+
StabilityForecastSchema,
|
|
76
92
|
StreamIndexSchema,
|
|
77
93
|
StreamInfoSchema,
|
|
78
94
|
ThresholdConfigSchema,
|
|
95
|
+
TimelineFileSchema,
|
|
96
|
+
TimelineManager,
|
|
97
|
+
TimelineSnapshotSchema,
|
|
79
98
|
TransitionSchema,
|
|
99
|
+
TrendLineSchema,
|
|
100
|
+
TrendResultSchema,
|
|
80
101
|
TypeScriptParser,
|
|
81
102
|
VERSION,
|
|
82
103
|
ViolationSchema,
|
|
@@ -91,6 +112,7 @@ import {
|
|
|
91
112
|
appendSessionEntry,
|
|
92
113
|
applyFixes,
|
|
93
114
|
applyHotspotDowngrade,
|
|
115
|
+
applyRecencyWeights,
|
|
94
116
|
applySyncChanges,
|
|
95
117
|
archMatchers,
|
|
96
118
|
archModule,
|
|
@@ -108,6 +130,7 @@ import {
|
|
|
108
130
|
checkEligibility,
|
|
109
131
|
checkEvidenceCoverage,
|
|
110
132
|
checkTaint,
|
|
133
|
+
classifyConfidence,
|
|
111
134
|
classifyFinding,
|
|
112
135
|
clearEventHashCache,
|
|
113
136
|
clearFailuresCache,
|
|
@@ -210,7 +233,7 @@ import {
|
|
|
210
233
|
parseDateFromEntry,
|
|
211
234
|
parseDiff,
|
|
212
235
|
parseFile,
|
|
213
|
-
|
|
236
|
+
parseFrontmatter2,
|
|
214
237
|
parseHarnessIgnore,
|
|
215
238
|
parseLiteLLMData,
|
|
216
239
|
parseManifest,
|
|
@@ -219,6 +242,7 @@ import {
|
|
|
219
242
|
parseSize,
|
|
220
243
|
pathTraversalRules,
|
|
221
244
|
previewFix,
|
|
245
|
+
projectValue,
|
|
222
246
|
promoteSessionLearnings,
|
|
223
247
|
pruneLearnings,
|
|
224
248
|
reactRules,
|
|
@@ -286,12 +310,14 @@ import {
|
|
|
286
310
|
validateKnowledgeMap,
|
|
287
311
|
validatePatternConfig,
|
|
288
312
|
violationId,
|
|
313
|
+
weeksUntilThreshold,
|
|
314
|
+
weightedLinearRegression,
|
|
289
315
|
writeConfig,
|
|
290
316
|
writeLockfile,
|
|
291
317
|
writeSessionSummary,
|
|
292
318
|
writeTaint,
|
|
293
319
|
xssRules
|
|
294
|
-
} from "./chunk-
|
|
320
|
+
} from "./chunk-U44JNY3Y.js";
|
|
295
321
|
import {
|
|
296
322
|
Err,
|
|
297
323
|
Ok,
|
|
@@ -300,9 +326,11 @@ import {
|
|
|
300
326
|
isErr,
|
|
301
327
|
isOk
|
|
302
328
|
} from "./chunk-ERS5EVUZ.js";
|
|
329
|
+
import "./chunk-TEZI27SA.js";
|
|
303
330
|
export {
|
|
304
331
|
AGENT_DESCRIPTORS,
|
|
305
332
|
ARCHITECTURE_DESCRIPTOR,
|
|
333
|
+
AdjustedForecastSchema,
|
|
306
334
|
AgentActionEmitter,
|
|
307
335
|
ArchBaselineManager,
|
|
308
336
|
ArchBaselineSchema,
|
|
@@ -318,23 +346,29 @@ export {
|
|
|
318
346
|
CACHE_TTL_MS,
|
|
319
347
|
COMPLIANCE_DESCRIPTOR,
|
|
320
348
|
CategoryBaselineSchema,
|
|
349
|
+
CategoryForecastSchema,
|
|
321
350
|
CategoryRegressionSchema,
|
|
351
|
+
CategorySnapshotSchema,
|
|
322
352
|
ChecklistBuilder,
|
|
323
353
|
CircularDepsCollector,
|
|
324
354
|
ComplexityCollector,
|
|
355
|
+
ConfidenceTierSchema,
|
|
325
356
|
ConfirmationSchema,
|
|
326
357
|
ConsoleSink,
|
|
327
358
|
ConstraintRuleSchema,
|
|
328
359
|
ContentPipeline,
|
|
360
|
+
ContributingFeatureSchema,
|
|
329
361
|
ContributionsSchema,
|
|
330
362
|
CouplingCollector,
|
|
331
363
|
CriticalPathResolver,
|
|
332
364
|
DEFAULT_PROVIDER_TIERS,
|
|
333
365
|
DEFAULT_SECURITY_CONFIG,
|
|
366
|
+
DEFAULT_STABILITY_THRESHOLDS,
|
|
334
367
|
DEFAULT_STATE,
|
|
335
368
|
DEFAULT_STREAM_INDEX,
|
|
336
369
|
DESTRUCTIVE_BASH,
|
|
337
370
|
DepDepthCollector,
|
|
371
|
+
DirectionSchema,
|
|
338
372
|
EXTENSION_MAP,
|
|
339
373
|
EmitInteractionInputSchema,
|
|
340
374
|
EntropyAnalyzer,
|
|
@@ -362,6 +396,11 @@ export {
|
|
|
362
396
|
NoOpTelemetryAdapter,
|
|
363
397
|
Ok,
|
|
364
398
|
PatternConfigSchema,
|
|
399
|
+
PredictionEngine,
|
|
400
|
+
PredictionOptionsSchema,
|
|
401
|
+
RegressionResultSchema as PredictionRegressionResultSchema,
|
|
402
|
+
PredictionResultSchema,
|
|
403
|
+
PredictionWarningSchema,
|
|
365
404
|
ProjectScanner,
|
|
366
405
|
QuestionSchema,
|
|
367
406
|
REQUIRED_SECTIONS,
|
|
@@ -379,10 +418,19 @@ export {
|
|
|
379
418
|
SharableLayerSchema,
|
|
380
419
|
SharableSecurityRulesSchema,
|
|
381
420
|
SkillEventSchema,
|
|
421
|
+
SpecImpactEstimateSchema,
|
|
422
|
+
SpecImpactEstimator,
|
|
423
|
+
SpecImpactSignalsSchema,
|
|
424
|
+
StabilityForecastSchema,
|
|
382
425
|
StreamIndexSchema,
|
|
383
426
|
StreamInfoSchema,
|
|
384
427
|
ThresholdConfigSchema,
|
|
428
|
+
TimelineFileSchema,
|
|
429
|
+
TimelineManager,
|
|
430
|
+
TimelineSnapshotSchema,
|
|
385
431
|
TransitionSchema,
|
|
432
|
+
TrendLineSchema,
|
|
433
|
+
TrendResultSchema,
|
|
386
434
|
TypeScriptParser,
|
|
387
435
|
VERSION,
|
|
388
436
|
ViolationSchema,
|
|
@@ -397,6 +445,7 @@ export {
|
|
|
397
445
|
appendSessionEntry,
|
|
398
446
|
applyFixes,
|
|
399
447
|
applyHotspotDowngrade,
|
|
448
|
+
applyRecencyWeights,
|
|
400
449
|
applySyncChanges,
|
|
401
450
|
archMatchers,
|
|
402
451
|
archModule,
|
|
@@ -414,6 +463,7 @@ export {
|
|
|
414
463
|
checkEligibility,
|
|
415
464
|
checkEvidenceCoverage,
|
|
416
465
|
checkTaint,
|
|
466
|
+
classifyConfidence,
|
|
417
467
|
classifyFinding,
|
|
418
468
|
clearEventHashCache,
|
|
419
469
|
clearFailuresCache,
|
|
@@ -518,7 +568,7 @@ export {
|
|
|
518
568
|
parseDateFromEntry,
|
|
519
569
|
parseDiff,
|
|
520
570
|
parseFile,
|
|
521
|
-
parseFrontmatter,
|
|
571
|
+
parseFrontmatter2 as parseFrontmatter,
|
|
522
572
|
parseHarnessIgnore,
|
|
523
573
|
parseLiteLLMData,
|
|
524
574
|
parseManifest,
|
|
@@ -527,6 +577,7 @@ export {
|
|
|
527
577
|
parseSize,
|
|
528
578
|
pathTraversalRules,
|
|
529
579
|
previewFix,
|
|
580
|
+
projectValue,
|
|
530
581
|
promoteSessionLearnings,
|
|
531
582
|
pruneLearnings,
|
|
532
583
|
reactRules,
|
|
@@ -594,6 +645,8 @@ export {
|
|
|
594
645
|
validateKnowledgeMap,
|
|
595
646
|
validatePatternConfig,
|
|
596
647
|
violationId,
|
|
648
|
+
weeksUntilThreshold,
|
|
649
|
+
weightedLinearRegression,
|
|
597
650
|
writeConfig,
|
|
598
651
|
writeLockfile,
|
|
599
652
|
writeSessionSummary,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
checkDocsDefinition,
|
|
3
3
|
handleCheckDocs
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-5QTWFO24.js";
|
|
5
|
+
import "./chunk-GRJ7A4WT.js";
|
|
6
6
|
import "./chunk-IDZNPTYD.js";
|
|
7
7
|
import "./chunk-W6Y7ZW3Y.js";
|
|
8
8
|
import "./chunk-3WGJMBKH.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-U44JNY3Y.js";
|
|
10
10
|
import "./chunk-ERS5EVUZ.js";
|
|
11
|
+
import "./chunk-TEZI27SA.js";
|
|
11
12
|
export {
|
|
12
13
|
checkDocsDefinition,
|
|
13
14
|
handleCheckDocs
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
detectEntropyDefinition,
|
|
3
3
|
handleDetectEntropy
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IK5GSLW6.js";
|
|
5
5
|
import "./chunk-IDZNPTYD.js";
|
|
6
6
|
import "./chunk-W6Y7ZW3Y.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-U44JNY3Y.js";
|
|
8
8
|
import "./chunk-ERS5EVUZ.js";
|
|
9
|
+
import "./chunk-TEZI27SA.js";
|
|
9
10
|
export {
|
|
10
11
|
detectEntropyDefinition,
|
|
11
12
|
handleDetectEntropy
|
package/dist/{generate-agent-definitions-QICSCGXB.js → generate-agent-definitions-KU6X2UQN.js}
RENAMED
|
@@ -7,8 +7,9 @@ import "./chunk-KET4QQZB.js";
|
|
|
7
7
|
import "./chunk-CJDVBBPB.js";
|
|
8
8
|
import "./chunk-N5G5QMS3.js";
|
|
9
9
|
import "./chunk-3WGJMBKH.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-U44JNY3Y.js";
|
|
11
11
|
import "./chunk-ERS5EVUZ.js";
|
|
12
|
+
import "./chunk-TEZI27SA.js";
|
|
12
13
|
export {
|
|
13
14
|
createGenerateAgentDefinitionsCommand,
|
|
14
15
|
generateAgentDefinitions
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
2
|
import { ContextQLResult, IngestResult } from '@harness-engineering/graph';
|
|
3
|
-
import { Result, Violation, ConflictReport } from '@harness-engineering/core';
|
|
3
|
+
import { Result, Violation, TimelineSnapshot, ConflictReport } from '@harness-engineering/core';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
6
6
|
import { Result as Result$1 } from '@harness-engineering/types';
|
|
@@ -197,6 +197,15 @@ interface CheckArchResult {
|
|
|
197
197
|
}
|
|
198
198
|
declare function runCheckArch(options: CheckArchOptions): Promise<Result<CheckArchResult, CLIError>>;
|
|
199
199
|
|
|
200
|
+
interface SnapshotCaptureResult {
|
|
201
|
+
snapshot: TimelineSnapshot;
|
|
202
|
+
previous: TimelineSnapshot | undefined;
|
|
203
|
+
}
|
|
204
|
+
declare function runSnapshotCapture(options: {
|
|
205
|
+
cwd?: string;
|
|
206
|
+
configPath?: string;
|
|
207
|
+
}): Promise<SnapshotCaptureResult>;
|
|
208
|
+
|
|
200
209
|
/**
|
|
201
210
|
* Supported output modes for the CLI.
|
|
202
211
|
*/
|
|
@@ -517,12 +526,16 @@ declare const HarnessConfigSchema: z.ZodObject<{
|
|
|
517
526
|
implPattern: z.ZodString;
|
|
518
527
|
/** Pattern for corresponding specification files */
|
|
519
528
|
specPattern: z.ZodString;
|
|
529
|
+
/** When true, validate that the spec file contains a numbered requirements section */
|
|
530
|
+
contentValidation: z.ZodDefault<z.ZodBoolean>;
|
|
520
531
|
}, "strip", z.ZodTypeAny, {
|
|
521
532
|
implPattern: string;
|
|
522
533
|
specPattern: string;
|
|
534
|
+
contentValidation: boolean;
|
|
523
535
|
}, {
|
|
524
536
|
implPattern: string;
|
|
525
537
|
specPattern: string;
|
|
538
|
+
contentValidation?: boolean | undefined;
|
|
526
539
|
}>, "many">>;
|
|
527
540
|
}, "strip", z.ZodTypeAny, {
|
|
528
541
|
enabled: boolean;
|
|
@@ -530,6 +543,7 @@ declare const HarnessConfigSchema: z.ZodObject<{
|
|
|
530
543
|
mappings: {
|
|
531
544
|
implPattern: string;
|
|
532
545
|
specPattern: string;
|
|
546
|
+
contentValidation: boolean;
|
|
533
547
|
}[];
|
|
534
548
|
}, {
|
|
535
549
|
enabled?: boolean | undefined;
|
|
@@ -537,6 +551,7 @@ declare const HarnessConfigSchema: z.ZodObject<{
|
|
|
537
551
|
mappings?: {
|
|
538
552
|
implPattern: string;
|
|
539
553
|
specPattern: string;
|
|
554
|
+
contentValidation?: boolean | undefined;
|
|
540
555
|
}[] | undefined;
|
|
541
556
|
}>>;
|
|
542
557
|
/** Design system consistency settings */
|
|
@@ -740,6 +755,31 @@ declare const HarnessConfigSchema: z.ZodObject<{
|
|
|
740
755
|
neverSuggest?: string[] | undefined;
|
|
741
756
|
tierOverrides?: Record<string, number> | undefined;
|
|
742
757
|
}>>;
|
|
758
|
+
/** Spec-to-implementation traceability check settings */
|
|
759
|
+
traceability: z.ZodOptional<z.ZodObject<{
|
|
760
|
+
/** Whether traceability checks are enabled */
|
|
761
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
762
|
+
/** Severity level when traceability coverage is below threshold */
|
|
763
|
+
severity: z.ZodDefault<z.ZodEnum<["error", "warning"]>>;
|
|
764
|
+
/** Minimum required coverage percentage (0-100) */
|
|
765
|
+
minCoverage: z.ZodDefault<z.ZodNumber>;
|
|
766
|
+
/** Glob patterns for specs to include in traceability checks */
|
|
767
|
+
includeSpecs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
768
|
+
/** Glob patterns for specs to exclude from traceability checks */
|
|
769
|
+
excludeSpecs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
770
|
+
}, "strip", z.ZodTypeAny, {
|
|
771
|
+
enabled: boolean;
|
|
772
|
+
severity: "error" | "warning";
|
|
773
|
+
minCoverage: number;
|
|
774
|
+
includeSpecs: string[];
|
|
775
|
+
excludeSpecs: string[];
|
|
776
|
+
}, {
|
|
777
|
+
enabled?: boolean | undefined;
|
|
778
|
+
severity?: "error" | "warning" | undefined;
|
|
779
|
+
minCoverage?: number | undefined;
|
|
780
|
+
includeSpecs?: string[] | undefined;
|
|
781
|
+
excludeSpecs?: string[] | undefined;
|
|
782
|
+
}>>;
|
|
743
783
|
/** Roadmap sync and tracker integration settings */
|
|
744
784
|
roadmap: z.ZodOptional<z.ZodObject<{
|
|
745
785
|
/** External tracker sync settings */
|
|
@@ -857,6 +897,7 @@ declare const HarnessConfigSchema: z.ZodObject<{
|
|
|
857
897
|
mappings: {
|
|
858
898
|
implPattern: string;
|
|
859
899
|
specPattern: string;
|
|
900
|
+
contentValidation: boolean;
|
|
860
901
|
}[];
|
|
861
902
|
} | undefined;
|
|
862
903
|
design?: {
|
|
@@ -905,6 +946,13 @@ declare const HarnessConfigSchema: z.ZodObject<{
|
|
|
905
946
|
enabled: boolean;
|
|
906
947
|
baselinePath: string;
|
|
907
948
|
} | undefined;
|
|
949
|
+
traceability?: {
|
|
950
|
+
enabled: boolean;
|
|
951
|
+
severity: "error" | "warning";
|
|
952
|
+
minCoverage: number;
|
|
953
|
+
includeSpecs: string[];
|
|
954
|
+
excludeSpecs: string[];
|
|
955
|
+
} | undefined;
|
|
908
956
|
roadmap?: {
|
|
909
957
|
tracker?: {
|
|
910
958
|
kind: "github";
|
|
@@ -986,6 +1034,7 @@ declare const HarnessConfigSchema: z.ZodObject<{
|
|
|
986
1034
|
mappings?: {
|
|
987
1035
|
implPattern: string;
|
|
988
1036
|
specPattern: string;
|
|
1037
|
+
contentValidation?: boolean | undefined;
|
|
989
1038
|
}[] | undefined;
|
|
990
1039
|
} | undefined;
|
|
991
1040
|
design?: {
|
|
@@ -1034,6 +1083,13 @@ declare const HarnessConfigSchema: z.ZodObject<{
|
|
|
1034
1083
|
enabled?: boolean | undefined;
|
|
1035
1084
|
baselinePath?: string | undefined;
|
|
1036
1085
|
} | undefined;
|
|
1086
|
+
traceability?: {
|
|
1087
|
+
enabled?: boolean | undefined;
|
|
1088
|
+
severity?: "error" | "warning" | undefined;
|
|
1089
|
+
minCoverage?: number | undefined;
|
|
1090
|
+
includeSpecs?: string[] | undefined;
|
|
1091
|
+
excludeSpecs?: string[] | undefined;
|
|
1092
|
+
} | undefined;
|
|
1037
1093
|
roadmap?: {
|
|
1038
1094
|
tracker?: {
|
|
1039
1095
|
kind: "github";
|
|
@@ -1590,4 +1646,4 @@ declare function runUninstall(skillName: string, options: UninstallOptions): Pro
|
|
|
1590
1646
|
*/
|
|
1591
1647
|
declare function createProgram(): Command;
|
|
1592
1648
|
|
|
1593
|
-
export { AGENT_DESCRIPTIONS, ALLOWED_PERSONA_COMMANDS, type AgentDefinition, CLIError, type CheckArchResult, type CommandExecutor, type CommandStep, type CreateSkillOptions, DEFAULT_TOOLS, ExitCode, GEMINI_TOOL_MAP, type GenerateAgentDefsOptions, type GenerateAgentDefsResult, type GenerateResult, type HandoffContext, type HarnessConfig, type InstallConstraintsOptions, type InstallConstraintsSuccess, type InstallResult, OutputFormatter, OutputMode, type Persona, type PersonaMetadata, type PersonaRunReport, type RenderedFiles, type SkillExecutionContext, type SkillExecutionResult, type SkillExecutor, type SkillSource, type SkillStep, type Step, type StepExecutionContext, type StepReport, type TemplateContext, TemplateEngine, type TriggerContext, type TriggerDetectionResult, type UninstallConstraintsOptions, type UninstallConstraintsSuccess, type UninstallResult, buildPreamble, createHarnessServer, createProgram, detectTrigger, executeSkill, findConfigFile, generateAgentDefinition, generateAgentDefinitions, generateAgentsMd, generateCIWorkflow, generateRuntime, generateSkillFiles, generateSlashCommands, getToolDefinitions, handleError, listPersonas, loadConfig, loadPersona, logger, renderClaudeCodeAgent, renderGeminiAgent, resolveConfig, runCheckArch, runCheckPhaseGate, runCrossCheck, runGraphExport, runGraphStatus, runImpactPreview, runIngest, runInstall, runInstallConstraints, runPersona, runQuery, runScan, runUninstall, runUninstallConstraints, startServer };
|
|
1649
|
+
export { AGENT_DESCRIPTIONS, ALLOWED_PERSONA_COMMANDS, type AgentDefinition, CLIError, type CheckArchResult, type CommandExecutor, type CommandStep, type CreateSkillOptions, DEFAULT_TOOLS, ExitCode, GEMINI_TOOL_MAP, type GenerateAgentDefsOptions, type GenerateAgentDefsResult, type GenerateResult, type HandoffContext, type HarnessConfig, type InstallConstraintsOptions, type InstallConstraintsSuccess, type InstallResult, OutputFormatter, OutputMode, type Persona, type PersonaMetadata, type PersonaRunReport, type RenderedFiles, type SkillExecutionContext, type SkillExecutionResult, type SkillExecutor, type SkillSource, type SkillStep, type SnapshotCaptureResult, type Step, type StepExecutionContext, type StepReport, type TemplateContext, TemplateEngine, type TriggerContext, type TriggerDetectionResult, type UninstallConstraintsOptions, type UninstallConstraintsSuccess, type UninstallResult, buildPreamble, createHarnessServer, createProgram, detectTrigger, executeSkill, findConfigFile, generateAgentDefinition, generateAgentDefinitions, generateAgentsMd, generateCIWorkflow, generateRuntime, generateSkillFiles, generateSlashCommands, getToolDefinitions, handleError, listPersonas, loadConfig, loadPersona, logger, renderClaudeCodeAgent, renderGeminiAgent, resolveConfig, runCheckArch, runCheckPhaseGate, runCrossCheck, runGraphExport, runGraphStatus, runImpactPreview, runIngest, runInstall, runInstallConstraints, runPersona, runQuery, runScan, runSnapshotCapture, runUninstall, runUninstallConstraints, startServer };
|