@harness-engineering/cli 5.0.0 → 6.0.1
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-md-GOFDOUEI.js → agents-md-OTKZE5HH.js} +4 -4
- package/dist/{analyzer-XRCV63KC-CUGBENHK.js → analyzer-XRCV63KC-FALMS3MO.js} +2 -2
- package/dist/{architecture-UJZTBKJ2.js → architecture-3VYDN7MQ.js} +5 -5
- package/dist/{assess-project-S3UOQUQW.js → assess-project-27X2FSZZ.js} +1 -1
- package/dist/bin/harness-mcp.js +15 -15
- package/dist/bin/harness.js +25 -25
- package/dist/{check-phase-gate-SQ2X2Q7T.js → check-phase-gate-IXLFZ6YH.js} +5 -5
- package/dist/{chunk-FXO3EODY.js → chunk-354MCPT3.js} +3 -3
- package/dist/{chunk-OIMJWYWF.js → chunk-3H7JA24B.js} +7 -7
- package/dist/{chunk-WHPZG5TX.js → chunk-3MKQKNY3.js} +6 -6
- package/dist/{chunk-DPG2WNSN.js → chunk-6Y6M3AZA.js} +3 -3
- package/dist/{chunk-JGW4CHIJ.js → chunk-BMNHLKBA.js} +2 -2
- package/dist/{chunk-CFK4RJFP.js → chunk-CTMHHMHQ.js} +15 -3
- package/dist/{chunk-RD75T4XK.js → chunk-D7QXGI6E.js} +2 -2
- package/dist/{chunk-4ITYAEOA.js → chunk-EFWRZHZ7.js} +101 -97
- package/dist/{chunk-V6QYVM6K.js → chunk-IOJGLIEQ.js} +2 -2
- package/dist/{chunk-DU6AUYTA.js → chunk-IXGYIQSR.js} +1 -1
- package/dist/{chunk-T2PQWRRK.js → chunk-JJLOWMGC.js} +2 -2
- package/dist/{chunk-YE7NZ44F.js → chunk-KPBGAB35.js} +2 -2
- package/dist/{chunk-OWJTMHVP.js → chunk-L5UKNGC5.js} +2 -2
- package/dist/{chunk-R5C7ZFON.js → chunk-LHWBQD7F.js} +10 -1
- package/dist/{chunk-KI64IQLS.js → chunk-LISEPDVT.js} +5 -5
- package/dist/{chunk-UJW4POA3.js → chunk-MEIUXTFY.js} +2 -2
- package/dist/{chunk-RPOBWUKV.js → chunk-NZ5AXKRA.js} +1 -1
- package/dist/{chunk-6RXT67Q4.js → chunk-QHFXVVUY.js} +2 -2
- package/dist/{chunk-SQDQMVNE.js → chunk-S2ETJDQJ.js} +6 -6
- package/dist/{chunk-AIFPI3UZ.js → chunk-TM4KFUWP.js} +2 -2
- package/dist/{chunk-PSFJ5YKQ.js → chunk-VGDZAWCJ.js} +335 -177
- package/dist/{chunk-DFWM2SNS.js → chunk-VRA64HYI.js} +2 -2
- package/dist/{chunk-DSXUS6KG.js → chunk-WAFTJFT3.js} +3 -3
- package/dist/{chunk-7BBQ5C7I.js → chunk-XF6RE3JQ.js} +2 -2
- package/dist/{chunk-XC7NR63Q.js → chunk-XNHKXELN.js} +2 -2
- package/dist/{ci-workflow-5WHUEHOF.js → ci-workflow-Y5GBKNZP.js} +4 -4
- package/dist/{dist-SOKOW7BC.js → dist-4CZLCE33.js} +5 -3
- package/dist/{dist-O7MTFDG5.js → dist-S3KCRI7X.js} +3 -1
- package/dist/{docs-AEHPPDKX.js → docs-3MWDPK4S.js} +5 -5
- package/dist/{engine-HYM5SLCD.js → engine-RJXQ5DHK.js} +4 -4
- package/dist/{entropy-6KH5G3NR.js → entropy-OX5LSM4S.js} +5 -5
- package/dist/{feedback-AUP2JK43.js → feedback-OODAP2G2.js} +1 -1
- package/dist/{generate-agent-definitions-OH4RF445.js → generate-agent-definitions-CCREQZEA.js} +5 -5
- package/dist/hooks/adoption-tracker.js +41 -25
- package/dist/hooks/pre-compact-state.js +45 -27
- package/dist/hooks/sentinel-post.js +125 -102
- package/dist/hooks/sentinel-pre.js +70 -53
- package/dist/hooks/telemetry-reporter.js +44 -25
- package/dist/index.d.ts +655 -0
- package/dist/index.js +25 -25
- package/dist/{loader-KWRPA7D5.js → loader-ZICOJBVX.js} +4 -4
- package/dist/{mcp-JTPO5RAK.js → mcp-XX6EIBLL.js} +15 -15
- package/dist/{performance-HW53ZIAF.js → performance-OLZVGMAY.js} +5 -5
- package/dist/{review-pipeline-2R7UBFTG.js → review-pipeline-3QPHMWPC.js} +4 -4
- package/dist/{runtime-BB35PFZY.js → runtime-ZFFIH76Z.js} +4 -4
- package/dist/{security-IDJHGBBH.js → security-7YW3UK2C.js} +1 -1
- package/dist/{state-events-H3GGBKTB.js → state-events-PTWAEGJ2.js} +4 -4
- package/dist/{validate-6SDGP7AH.js → validate-H5SB7X3Z.js} +5 -5
- package/dist/{validate-cross-check-OF3FPM32.js → validate-cross-check-YYVYMSPA.js} +4 -4
- package/package.json +8 -8
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
} from "./chunk-3WGJMBKH.js";
|
|
8
8
|
import {
|
|
9
9
|
init_dist as init_dist2
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CTMHHMHQ.js";
|
|
11
11
|
import {
|
|
12
12
|
Err,
|
|
13
13
|
Ok
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LHWBQD7F.js";
|
|
15
15
|
import {
|
|
16
16
|
init_dist,
|
|
17
17
|
skipDirGlobs
|
|
@@ -27,7 +27,7 @@ var runSecurityScanDefinition = {
|
|
|
27
27
|
};
|
|
28
28
|
async function handleRunSecurityScan(input) {
|
|
29
29
|
try {
|
|
30
|
-
const core = await import("./dist-
|
|
30
|
+
const core = await import("./dist-4CZLCE33.js");
|
|
31
31
|
const projectRoot = sanitizePath(input.path);
|
|
32
32
|
let configData = {};
|
|
33
33
|
try {
|
|
@@ -114,7 +114,7 @@ var getSecurityTrendsDefinition = {
|
|
|
114
114
|
};
|
|
115
115
|
async function handleGetSecurityTrends(input) {
|
|
116
116
|
try {
|
|
117
|
-
const core = await import("./dist-
|
|
117
|
+
const core = await import("./dist-4CZLCE33.js");
|
|
118
118
|
const projectRoot = sanitizePath(input.path);
|
|
119
119
|
const manager = new core.SecurityTimelineManager(projectRoot);
|
|
120
120
|
const trendOptions = {};
|
|
@@ -73,7 +73,7 @@ function migrateProposalRecord(raw) {
|
|
|
73
73
|
}
|
|
74
74
|
return raw;
|
|
75
75
|
}
|
|
76
|
-
var STANDARD_COGNITIVE_MODES, DEFAULT_SKILL_CONTEXT_BUDGET, SESSION_SECTION_NAMES, TrajectoryMetadataSchema, PromptCacheStatsSchema, OTLPKeyValueSchema, OTLPSpanSchema, REQUIRED_STRATEGY_SECTIONS, OPTIONAL_STRATEGY_SECTIONS, TokenScopeSchema, BridgeKindSchema, AuthTokenSchema, AuthTokenPublicSchema, AuthAuditEntrySchema, WebhookSubscriptionSchema, WebhookSubscriptionPublicSchema, GatewayEventSchema, WebhookDeliveryStatusSchema, WebhookDeliverySchema, INDEXED_FILE_KINDS, SessionSummarySchema, INSIGHTS_KEYS, SESSIONS_DEFAULTS, NotificationSinkKindSchema, NotificationSeveritySchema, NotificationActionSchema, NotificationEnvelopeSchema, NotificationSinkConfigSchema, NotificationsConfigSchema, NotificationDeliveryResultSchema, PlanTaskSchema, SkillProvenanceSchema, SkillKindSchema, ProposalKindSchema, ProposalTypeSchema, ProposalStatusSchema, ProposalGateFindingSchema, ProposalGateSchema, ProposalDecisionSchema, ProposalContentSchema, ProposalSourceSchema, SkillProposalObject, ModelProposalActionSchema, ModelProposalStatusSchema, ModelProposalContentSchema, ModelProposalObject, ProposalObjectUnion, ProposalSchema, SkillProposalSchema, EmitSkillProposalInputSchema, EditProposalInputSchema;
|
|
76
|
+
var STANDARD_COGNITIVE_MODES, DEFAULT_SKILL_CONTEXT_BUDGET, SESSION_SECTION_NAMES, TrajectoryMetadataSchema, PromptCacheStatsSchema, OTLPKeyValueSchema, OTLPSpanSchema, RoutingError, REQUIRED_STRATEGY_SECTIONS, OPTIONAL_STRATEGY_SECTIONS, TokenScopeSchema, BridgeKindSchema, AuthTokenSchema, AuthTokenPublicSchema, AuthAuditEntrySchema, WebhookSubscriptionSchema, WebhookSubscriptionPublicSchema, GatewayEventSchema, WebhookDeliveryStatusSchema, WebhookDeliverySchema, INDEXED_FILE_KINDS, SessionSummarySchema, INSIGHTS_KEYS, SESSIONS_DEFAULTS, NotificationSinkKindSchema, NotificationSeveritySchema, NotificationActionSchema, NotificationEnvelopeSchema, NotificationSinkConfigSchema, NotificationsConfigSchema, NotificationDeliveryResultSchema, PlanTaskSchema, SkillProvenanceSchema, SkillKindSchema, ProposalKindSchema, ProposalTypeSchema, ProposalStatusSchema, ProposalGateFindingSchema, ProposalGateSchema, ProposalDecisionSchema, ProposalContentSchema, ProposalSourceSchema, SkillProposalObject, ModelProposalActionSchema, ModelProposalStatusSchema, ModelProposalContentSchema, ModelProposalObject, ProposalObjectUnion, ProposalSchema, SkillProposalSchema, EmitSkillProposalInputSchema, EditProposalInputSchema;
|
|
77
77
|
var init_dist = __esm({
|
|
78
78
|
"../types/dist/index.mjs"() {
|
|
79
79
|
STANDARD_COGNITIVE_MODES = [
|
|
@@ -148,6 +148,14 @@ var init_dist = __esm({
|
|
|
148
148
|
attributes: z.array(OTLPKeyValueSchema),
|
|
149
149
|
status: z.object({ code: z.number().int() }).optional()
|
|
150
150
|
});
|
|
151
|
+
RoutingError = class extends Error {
|
|
152
|
+
constructor(code, message) {
|
|
153
|
+
super(message);
|
|
154
|
+
this.code = code;
|
|
155
|
+
this.name = "RoutingError";
|
|
156
|
+
}
|
|
157
|
+
code;
|
|
158
|
+
};
|
|
151
159
|
REQUIRED_STRATEGY_SECTIONS = [
|
|
152
160
|
"Target problem",
|
|
153
161
|
"Our approach",
|
|
@@ -435,6 +443,7 @@ export {
|
|
|
435
443
|
PromptCacheStatsSchema,
|
|
436
444
|
OTLPKeyValueSchema,
|
|
437
445
|
OTLPSpanSchema,
|
|
446
|
+
RoutingError,
|
|
438
447
|
REQUIRED_STRATEGY_SECTIONS,
|
|
439
448
|
OPTIONAL_STRATEGY_SECTIONS,
|
|
440
449
|
TokenScopeSchema,
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
findConfigFile,
|
|
9
9
|
loadConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IOJGLIEQ.js";
|
|
11
11
|
import {
|
|
12
12
|
init_dist
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CTMHHMHQ.js";
|
|
14
14
|
import {
|
|
15
15
|
Ok
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LHWBQD7F.js";
|
|
17
17
|
|
|
18
18
|
// src/mcp/tools/entropy.ts
|
|
19
19
|
init_dist();
|
|
@@ -138,7 +138,7 @@ function buildSummaryResponse(report) {
|
|
|
138
138
|
}
|
|
139
139
|
async function handleDetectEntropy(input) {
|
|
140
140
|
try {
|
|
141
|
-
const { EntropyAnalyzer } = await import("./dist-
|
|
141
|
+
const { EntropyAnalyzer } = await import("./dist-4CZLCE33.js");
|
|
142
142
|
const typeFilter = input.type ?? "all";
|
|
143
143
|
const projectPath = sanitizePath(input.path);
|
|
144
144
|
const entropy = loadEntropyConfig(projectPath);
|
|
@@ -164,7 +164,7 @@ async function handleDetectEntropy(input) {
|
|
|
164
164
|
return resultToMcpResponse(result);
|
|
165
165
|
}
|
|
166
166
|
if (!result.ok) return resultToMcpResponse(result);
|
|
167
|
-
const { createFixes, applyFixes, generateSuggestions } = await import("./dist-
|
|
167
|
+
const { createFixes, applyFixes, generateSuggestions } = await import("./dist-4CZLCE33.js");
|
|
168
168
|
const report = result.value;
|
|
169
169
|
const deadCode = report.deadCode;
|
|
170
170
|
const fixTypesConfig = input.fixTypes ? { fixTypes: input.fixTypes } : void 0;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
init_dist,
|
|
6
6
|
paginate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CTMHHMHQ.js";
|
|
8
8
|
|
|
9
9
|
// src/mcp/tools/review-pipeline.ts
|
|
10
10
|
init_dist();
|
|
@@ -84,7 +84,7 @@ var runCodeReviewDefinition = {
|
|
|
84
84
|
};
|
|
85
85
|
async function handleRunCodeReview(input) {
|
|
86
86
|
try {
|
|
87
|
-
const { parseDiff, runReviewPipeline } = await import("./dist-
|
|
87
|
+
const { parseDiff, runReviewPipeline } = await import("./dist-4CZLCE33.js");
|
|
88
88
|
const parseResult = parseDiff(input.diff);
|
|
89
89
|
if (!parseResult.ok) {
|
|
90
90
|
return {
|
|
@@ -98,7 +98,7 @@ async function handleAssessProject(input) {
|
|
|
98
98
|
let validateResult = null;
|
|
99
99
|
if (checksToRun.has("validate")) {
|
|
100
100
|
try {
|
|
101
|
-
const { handleValidateProject } = await import("./validate-
|
|
101
|
+
const { handleValidateProject } = await import("./validate-H5SB7X3Z.js");
|
|
102
102
|
const result = await handleValidateProject({ path: projectPath });
|
|
103
103
|
const out = parseToolResponse(result, "validate");
|
|
104
104
|
if ("error" in out) {
|
|
@@ -127,7 +127,7 @@ async function handleAssessProject(input) {
|
|
|
127
127
|
parallelChecks.push(
|
|
128
128
|
(async () => {
|
|
129
129
|
try {
|
|
130
|
-
const { handleCheckDependencies } = await import("./architecture-
|
|
130
|
+
const { handleCheckDependencies } = await import("./architecture-3VYDN7MQ.js");
|
|
131
131
|
const result = await handleCheckDependencies({ path: projectPath });
|
|
132
132
|
const out = parseToolResponse(result, "deps");
|
|
133
133
|
if ("error" in out) return out.error;
|
|
@@ -155,7 +155,7 @@ async function handleAssessProject(input) {
|
|
|
155
155
|
parallelChecks.push(
|
|
156
156
|
(async () => {
|
|
157
157
|
try {
|
|
158
|
-
const { handleCheckDocs } = await import("./docs-
|
|
158
|
+
const { handleCheckDocs } = await import("./docs-3MWDPK4S.js");
|
|
159
159
|
const result = await handleCheckDocs({ path: projectPath, scope: "coverage" });
|
|
160
160
|
const out = parseToolResponse(result, "docs");
|
|
161
161
|
if ("error" in out) return out.error;
|
|
@@ -183,7 +183,7 @@ async function handleAssessProject(input) {
|
|
|
183
183
|
parallelChecks.push(
|
|
184
184
|
(async () => {
|
|
185
185
|
try {
|
|
186
|
-
const { handleDetectEntropy } = await import("./entropy-
|
|
186
|
+
const { handleDetectEntropy } = await import("./entropy-OX5LSM4S.js");
|
|
187
187
|
const result = await handleDetectEntropy({ path: projectPath, type: "all" });
|
|
188
188
|
const out = parseToolResponse(result, "entropy");
|
|
189
189
|
if ("error" in out) return out.error;
|
|
@@ -214,7 +214,7 @@ async function handleAssessProject(input) {
|
|
|
214
214
|
parallelChecks.push(
|
|
215
215
|
(async () => {
|
|
216
216
|
try {
|
|
217
|
-
const { handleRunSecurityScan } = await import("./security-
|
|
217
|
+
const { handleRunSecurityScan } = await import("./security-7YW3UK2C.js");
|
|
218
218
|
const result = await handleRunSecurityScan({ path: projectPath });
|
|
219
219
|
const out = parseToolResponse(result, "security");
|
|
220
220
|
if ("error" in out) return out.error;
|
|
@@ -247,7 +247,7 @@ async function handleAssessProject(input) {
|
|
|
247
247
|
parallelChecks.push(
|
|
248
248
|
(async () => {
|
|
249
249
|
try {
|
|
250
|
-
const { handleCheckPerformance } = await import("./performance-
|
|
250
|
+
const { handleCheckPerformance } = await import("./performance-OLZVGMAY.js");
|
|
251
251
|
const result = await handleCheckPerformance({ path: projectPath });
|
|
252
252
|
if ("isError" in result && result.isError) {
|
|
253
253
|
const msg = result.content[0]?.text ?? "Performance check failed";
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-KET4QQZB.js";
|
|
4
4
|
import {
|
|
5
5
|
init_dist
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CTMHHMHQ.js";
|
|
7
7
|
import {
|
|
8
8
|
Err,
|
|
9
9
|
Ok
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LHWBQD7F.js";
|
|
11
11
|
|
|
12
12
|
// src/persona/generators/runtime.ts
|
|
13
13
|
init_dist();
|