@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.
Files changed (57) hide show
  1. package/dist/{agents-md-GOFDOUEI.js → agents-md-OTKZE5HH.js} +4 -4
  2. package/dist/{analyzer-XRCV63KC-CUGBENHK.js → analyzer-XRCV63KC-FALMS3MO.js} +2 -2
  3. package/dist/{architecture-UJZTBKJ2.js → architecture-3VYDN7MQ.js} +5 -5
  4. package/dist/{assess-project-S3UOQUQW.js → assess-project-27X2FSZZ.js} +1 -1
  5. package/dist/bin/harness-mcp.js +15 -15
  6. package/dist/bin/harness.js +25 -25
  7. package/dist/{check-phase-gate-SQ2X2Q7T.js → check-phase-gate-IXLFZ6YH.js} +5 -5
  8. package/dist/{chunk-FXO3EODY.js → chunk-354MCPT3.js} +3 -3
  9. package/dist/{chunk-OIMJWYWF.js → chunk-3H7JA24B.js} +7 -7
  10. package/dist/{chunk-WHPZG5TX.js → chunk-3MKQKNY3.js} +6 -6
  11. package/dist/{chunk-DPG2WNSN.js → chunk-6Y6M3AZA.js} +3 -3
  12. package/dist/{chunk-JGW4CHIJ.js → chunk-BMNHLKBA.js} +2 -2
  13. package/dist/{chunk-CFK4RJFP.js → chunk-CTMHHMHQ.js} +15 -3
  14. package/dist/{chunk-RD75T4XK.js → chunk-D7QXGI6E.js} +2 -2
  15. package/dist/{chunk-4ITYAEOA.js → chunk-EFWRZHZ7.js} +101 -97
  16. package/dist/{chunk-V6QYVM6K.js → chunk-IOJGLIEQ.js} +2 -2
  17. package/dist/{chunk-DU6AUYTA.js → chunk-IXGYIQSR.js} +1 -1
  18. package/dist/{chunk-T2PQWRRK.js → chunk-JJLOWMGC.js} +2 -2
  19. package/dist/{chunk-YE7NZ44F.js → chunk-KPBGAB35.js} +2 -2
  20. package/dist/{chunk-OWJTMHVP.js → chunk-L5UKNGC5.js} +2 -2
  21. package/dist/{chunk-R5C7ZFON.js → chunk-LHWBQD7F.js} +10 -1
  22. package/dist/{chunk-KI64IQLS.js → chunk-LISEPDVT.js} +5 -5
  23. package/dist/{chunk-UJW4POA3.js → chunk-MEIUXTFY.js} +2 -2
  24. package/dist/{chunk-RPOBWUKV.js → chunk-NZ5AXKRA.js} +1 -1
  25. package/dist/{chunk-6RXT67Q4.js → chunk-QHFXVVUY.js} +2 -2
  26. package/dist/{chunk-SQDQMVNE.js → chunk-S2ETJDQJ.js} +6 -6
  27. package/dist/{chunk-AIFPI3UZ.js → chunk-TM4KFUWP.js} +2 -2
  28. package/dist/{chunk-PSFJ5YKQ.js → chunk-VGDZAWCJ.js} +335 -177
  29. package/dist/{chunk-DFWM2SNS.js → chunk-VRA64HYI.js} +2 -2
  30. package/dist/{chunk-DSXUS6KG.js → chunk-WAFTJFT3.js} +3 -3
  31. package/dist/{chunk-7BBQ5C7I.js → chunk-XF6RE3JQ.js} +2 -2
  32. package/dist/{chunk-XC7NR63Q.js → chunk-XNHKXELN.js} +2 -2
  33. package/dist/{ci-workflow-5WHUEHOF.js → ci-workflow-Y5GBKNZP.js} +4 -4
  34. package/dist/{dist-SOKOW7BC.js → dist-4CZLCE33.js} +5 -3
  35. package/dist/{dist-O7MTFDG5.js → dist-S3KCRI7X.js} +3 -1
  36. package/dist/{docs-AEHPPDKX.js → docs-3MWDPK4S.js} +5 -5
  37. package/dist/{engine-HYM5SLCD.js → engine-RJXQ5DHK.js} +4 -4
  38. package/dist/{entropy-6KH5G3NR.js → entropy-OX5LSM4S.js} +5 -5
  39. package/dist/{feedback-AUP2JK43.js → feedback-OODAP2G2.js} +1 -1
  40. package/dist/{generate-agent-definitions-OH4RF445.js → generate-agent-definitions-CCREQZEA.js} +5 -5
  41. package/dist/hooks/adoption-tracker.js +41 -25
  42. package/dist/hooks/pre-compact-state.js +45 -27
  43. package/dist/hooks/sentinel-post.js +125 -102
  44. package/dist/hooks/sentinel-pre.js +70 -53
  45. package/dist/hooks/telemetry-reporter.js +44 -25
  46. package/dist/index.d.ts +655 -0
  47. package/dist/index.js +25 -25
  48. package/dist/{loader-KWRPA7D5.js → loader-ZICOJBVX.js} +4 -4
  49. package/dist/{mcp-JTPO5RAK.js → mcp-XX6EIBLL.js} +15 -15
  50. package/dist/{performance-HW53ZIAF.js → performance-OLZVGMAY.js} +5 -5
  51. package/dist/{review-pipeline-2R7UBFTG.js → review-pipeline-3QPHMWPC.js} +4 -4
  52. package/dist/{runtime-BB35PFZY.js → runtime-ZFFIH76Z.js} +4 -4
  53. package/dist/{security-IDJHGBBH.js → security-7YW3UK2C.js} +1 -1
  54. package/dist/{state-events-H3GGBKTB.js → state-events-PTWAEGJ2.js} +4 -4
  55. package/dist/{validate-6SDGP7AH.js → validate-H5SB7X3Z.js} +5 -5
  56. package/dist/{validate-cross-check-OF3FPM32.js → validate-cross-check-YYVYMSPA.js} +4 -4
  57. 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-CFK4RJFP.js";
10
+ } from "./chunk-CTMHHMHQ.js";
11
11
  import {
12
12
  Err,
13
13
  Ok
14
- } from "./chunk-R5C7ZFON.js";
14
+ } from "./chunk-LHWBQD7F.js";
15
15
  import {
16
16
  init_dist,
17
17
  skipDirGlobs
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  listPersonas,
6
6
  loadPersona
7
- } from "./chunk-YE7NZ44F.js";
7
+ } from "./chunk-KPBGAB35.js";
8
8
  import {
9
9
  GENERATED_HEADER_AGENT,
10
10
  VALID_PLATFORMS,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  init_dist
3
- } from "./chunk-CFK4RJFP.js";
3
+ } from "./chunk-CTMHHMHQ.js";
4
4
  import {
5
5
  Err,
6
6
  Ok
7
- } from "./chunk-R5C7ZFON.js";
7
+ } from "./chunk-LHWBQD7F.js";
8
8
 
9
9
  // src/templates/engine.ts
10
10
  init_dist();
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  init_dist
3
- } from "./chunk-CFK4RJFP.js";
3
+ } from "./chunk-CTMHHMHQ.js";
4
4
  import {
5
5
  Err,
6
6
  Ok
7
- } from "./chunk-R5C7ZFON.js";
7
+ } from "./chunk-LHWBQD7F.js";
8
8
 
9
9
  // src/persona/loader.ts
10
10
  init_dist();
@@ -27,7 +27,7 @@ var runSecurityScanDefinition = {
27
27
  };
28
28
  async function handleRunSecurityScan(input) {
29
29
  try {
30
- const core = await import("./dist-SOKOW7BC.js");
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-SOKOW7BC.js");
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-V6QYVM6K.js";
10
+ } from "./chunk-IOJGLIEQ.js";
11
11
  import {
12
12
  init_dist
13
- } from "./chunk-CFK4RJFP.js";
13
+ } from "./chunk-CTMHHMHQ.js";
14
14
  import {
15
15
  Ok
16
- } from "./chunk-R5C7ZFON.js";
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-SOKOW7BC.js");
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-SOKOW7BC.js");
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;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  event_sourcing_exports,
3
3
  init_dist
4
- } from "./chunk-CFK4RJFP.js";
4
+ } from "./chunk-CTMHHMHQ.js";
5
5
  import {
6
6
  Ok
7
- } from "./chunk-R5C7ZFON.js";
7
+ } from "./chunk-LHWBQD7F.js";
8
8
 
9
9
  // src/shared/state-events.ts
10
10
  init_dist();
@@ -2,7 +2,7 @@ import {
2
2
  Err,
3
3
  Ok,
4
4
  init_dist
5
- } from "./chunk-R5C7ZFON.js";
5
+ } from "./chunk-LHWBQD7F.js";
6
6
  import {
7
7
  DEFAULT_SKIP_DIRS,
8
8
  init_dist as init_dist2,
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  init_dist,
6
6
  paginate
7
- } from "./chunk-CFK4RJFP.js";
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-SOKOW7BC.js");
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-6SDGP7AH.js");
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-UJZTBKJ2.js");
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-AEHPPDKX.js");
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-6KH5G3NR.js");
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-IDJHGBBH.js");
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-HW53ZIAF.js");
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-CFK4RJFP.js";
6
+ } from "./chunk-CTMHHMHQ.js";
7
7
  import {
8
8
  Err,
9
9
  Ok
10
- } from "./chunk-R5C7ZFON.js";
10
+ } from "./chunk-LHWBQD7F.js";
11
11
 
12
12
  // src/persona/generators/runtime.ts
13
13
  init_dist();