@harness-engineering/cli 2.3.0 → 2.3.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 (52) hide show
  1. package/dist/{agents-md-N7YBQPE3.js → agents-md-5JG3AE5A.js} +3 -3
  2. package/dist/{architecture-PP7WERSV.js → architecture-544ISXDI.js} +4 -4
  3. package/dist/{assess-project-WXFCJQTX.js → assess-project-PBO6XFJC.js} +1 -1
  4. package/dist/bin/harness-mcp.js +15 -15
  5. package/dist/bin/harness.js +25 -25
  6. package/dist/{check-phase-gate-R3KQFBAH.js → check-phase-gate-BZU4DGF3.js} +4 -4
  7. package/dist/{chunk-MT2MMBUA.js → chunk-22OKI5QI.js} +9 -9
  8. package/dist/{chunk-6CHNY3NJ.js → chunk-2564TBT6.js} +1 -1
  9. package/dist/{chunk-YG4ZBGEH.js → chunk-7BNK4M23.js} +1 -1
  10. package/dist/{chunk-3LPOTTPX.js → chunk-A36MGB3V.js} +92 -92
  11. package/dist/{chunk-PW3U4YJV.js → chunk-DBJC4ULT.js} +9 -4
  12. package/dist/{chunk-MKPRB4PL.js → chunk-DHWFOHPX.js} +1 -1
  13. package/dist/{chunk-4NFV5UZO.js → chunk-EMJFHTPZ.js} +3 -3
  14. package/dist/{chunk-DLBMYLYR.js → chunk-IYA3NS5P.js} +1 -1
  15. package/dist/{chunk-LM4F5KBK.js → chunk-J4MX5DIA.js} +5 -5
  16. package/dist/{chunk-5KTTKXQN.js → chunk-JMACX5FN.js} +1 -1
  17. package/dist/{chunk-KWD6FF7M.js → chunk-KJR4Z2YC.js} +8 -8
  18. package/dist/{chunk-L3CEN42B.js → chunk-KT5PWWWO.js} +1 -1
  19. package/dist/{chunk-GUIX2TMZ.js → chunk-LBYGGNEZ.js} +1 -1
  20. package/dist/{chunk-YEBUFRTT.js → chunk-LYMPKO6N.js} +2 -2
  21. package/dist/{chunk-35FI23SO.js → chunk-N6DVSOLZ.js} +118 -112
  22. package/dist/{chunk-7PGYJO3L.js → chunk-QZ67TDLJ.js} +3 -3
  23. package/dist/{chunk-GTXUUGFG.js → chunk-R6GLLMRZ.js} +9 -9
  24. package/dist/{chunk-NP2ZI6E3.js → chunk-T2ZMHXCX.js} +1 -1
  25. package/dist/{chunk-EJPR5VCT.js → chunk-TIJXG4UB.js} +6 -6
  26. package/dist/{chunk-KTWKW6KJ.js → chunk-TIQU5VY7.js} +1 -1
  27. package/dist/{chunk-D2LZUJLP.js → chunk-U2SF3KAQ.js} +2 -2
  28. package/dist/{chunk-KUVPSUG4.js → chunk-WMZKZCCE.js} +1 -1
  29. package/dist/{chunk-BMM3GXV6.js → chunk-XPRGWHBL.js} +80 -37
  30. package/dist/{chunk-5PPV4WYY.js → chunk-YI6NTL72.js} +5 -5
  31. package/dist/{chunk-4DWOMGUM.js → chunk-YNG7BWGB.js} +396 -79
  32. package/dist/{ci-workflow-GFCXFJ4G.js → ci-workflow-ZO6FPO3V.js} +3 -3
  33. package/dist/{dist-D27LJR2T.js → dist-SQAOKWXM.js} +5 -3
  34. package/dist/{dist-I4LWG3IN.js → dist-ZS3Y3YWP.js} +8 -2
  35. package/dist/{docs-UXKDKPJF.js → docs-VW2KDPI3.js} +4 -4
  36. package/dist/{engine-A63FRDLF.js → engine-LFQ2JSHY.js} +3 -3
  37. package/dist/{entropy-IFIP4ZP4.js → entropy-P62LCVJI.js} +3 -3
  38. package/dist/{feedback-W36DSJQA.js → feedback-O3TZAPGX.js} +1 -1
  39. package/dist/{generate-agent-definitions-F4YMKQLP.js → generate-agent-definitions-WVCOZDKI.js} +4 -4
  40. package/dist/{glob-helper-FZPPTGJN.js → glob-helper-JE3MO4UD.js} +1 -1
  41. package/dist/{graph-loader-5MKHAJJF.js → graph-loader-TJU4E7KL.js} +1 -1
  42. package/dist/index.js +25 -25
  43. package/dist/{loader-4UAOGUSS.js → loader-UB2A65DN.js} +3 -3
  44. package/dist/{mcp-YW7PLXVQ.js → mcp-ST26QMDK.js} +15 -15
  45. package/dist/{performance-AZ5UYPOQ.js → performance-5HQG3IU6.js} +4 -4
  46. package/dist/{review-pipeline-OLQVGBWJ.js → review-pipeline-VRDL5A7J.js} +3 -3
  47. package/dist/{runtime-GG3U5HH5.js → runtime-TQQT2MWQ.js} +3 -3
  48. package/dist/{scan-BIJYHOE7.js → scan-SFX5U3TE.js} +1 -1
  49. package/dist/{security-MYTRFSR7.js → security-IMFAE6MW.js} +1 -1
  50. package/dist/{validate-QI4V4JY6.js → validate-GW2DG64P.js} +4 -4
  51. package/dist/{validate-cross-check-XRSSAXJP.js → validate-cross-check-F5YQVXLT.js} +3 -3
  52. package/package.json +6 -6
@@ -3,23 +3,28 @@ import {
3
3
  } from "./chunk-ZCZD7FHU.js";
4
4
  import {
5
5
  ArchConfigSchema,
6
- init_dist
7
- } from "./chunk-4DWOMGUM.js";
6
+ init_dist as init_dist2
7
+ } from "./chunk-YNG7BWGB.js";
8
8
  import {
9
9
  Err,
10
10
  Ok
11
11
  } from "./chunk-RL4VMEXL.js";
12
+ import {
13
+ init_dist,
14
+ skipDirGlobs
15
+ } from "./chunk-XPRGWHBL.js";
12
16
  import {
13
17
  CLIError,
14
18
  ExitCode
15
19
  } from "./chunk-3WGJMBKH.js";
16
20
 
17
21
  // src/config/loader.ts
18
- init_dist();
22
+ init_dist2();
19
23
  import * as fs from "fs";
20
24
  import * as path from "path";
21
25
 
22
26
  // src/config/schema.ts
27
+ init_dist2();
23
28
  init_dist();
24
29
  import { z } from "zod";
25
30
  var LayerSchema = z.object({
@@ -54,7 +59,7 @@ var EntropyConfigSchema = z.object({
54
59
  /** Explicit entry points for reachability analysis (overrides auto-detection) */
55
60
  entryPoints: z.array(z.string()).optional(),
56
61
  /** Patterns to exclude from entropy analysis */
57
- excludePatterns: z.array(z.string()).default(["**/node_modules/**", "**/*.test.ts"]),
62
+ excludePatterns: z.array(z.string()).default([...skipDirGlobs(), "**/*.test.ts"]),
58
63
  /** Whether to automatically attempt to fix simple entropy issues */
59
64
  autoFix: z.boolean().default(false)
60
65
  });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_dist
3
- } from "./chunk-4DWOMGUM.js";
3
+ } from "./chunk-YNG7BWGB.js";
4
4
  import {
5
5
  Err,
6
6
  Ok
@@ -27,7 +27,7 @@ var runSecurityScanDefinition = {
27
27
  };
28
28
  async function handleRunSecurityScan(input) {
29
29
  try {
30
- const core = await import("./dist-I4LWG3IN.js");
30
+ const core = await import("./dist-ZS3Y3YWP.js");
31
31
  const projectRoot = sanitizePath(input.path);
32
32
  let configData = {};
33
33
  try {
@@ -50,7 +50,7 @@ async function handleRunSecurityScan(input) {
50
50
  if (input.files && input.files.length > 0) {
51
51
  filesToScan = input.files.map((f) => path.resolve(projectRoot, f));
52
52
  } else {
53
- const { globFiles } = await import("./glob-helper-FZPPTGJN.js");
53
+ const { globFiles } = await import("./glob-helper-JE3MO4UD.js");
54
54
  filesToScan = await globFiles(projectRoot, securityConfig.exclude);
55
55
  }
56
56
  const result = await scanner.scanFiles(filesToScan);
@@ -114,7 +114,7 @@ var getSecurityTrendsDefinition = {
114
114
  };
115
115
  async function handleGetSecurityTrends(input) {
116
116
  try {
117
- const core = await import("./dist-I4LWG3IN.js");
117
+ const core = await import("./dist-ZS3Y3YWP.js");
118
118
  const projectRoot = sanitizePath(input.path);
119
119
  const manager = new core.SecurityTimelineManager(projectRoot);
120
120
  const trendOptions = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_dist
3
- } from "./chunk-4DWOMGUM.js";
3
+ } from "./chunk-YNG7BWGB.js";
4
4
  import {
5
5
  Err,
6
6
  Ok
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveProjectConfig
3
- } from "./chunk-6CHNY3NJ.js";
3
+ } from "./chunk-2564TBT6.js";
4
4
  import {
5
5
  resultToMcpResponse
6
6
  } from "./chunk-EPUKTTJZ.js";
@@ -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-I4LWG3IN.js");
41
+ const { validateDependencies, TypeScriptParser } = await import("./dist-ZS3Y3YWP.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-5MKHAJJF.js");
50
+ const { loadGraphStore } = await import("./graph-loader-TJU4E7KL.js");
51
51
  const store = await loadGraphStore(projectPath);
52
52
  let graphDependencyData;
53
53
  if (store) {
54
- const { GraphConstraintAdapter } = await import("./dist-D27LJR2T.js");
54
+ const { GraphConstraintAdapter } = await import("./dist-SQAOKWXM.js");
55
55
  const adapter = new GraphConstraintAdapter(store);
56
56
  const graphData = adapter.computeDependencyGraph();
57
57
  graphDependencyData = {
@@ -69,7 +69,7 @@ async function handleCheckDependencies(input) {
69
69
  if (store) {
70
70
  const designTokenNodes = store.findNodes({ type: "design_token" });
71
71
  if (designTokenNodes.length > 0) {
72
- const { DesignConstraintAdapter } = await import("./dist-D27LJR2T.js");
72
+ const { DesignConstraintAdapter } = await import("./dist-SQAOKWXM.js");
73
73
  const designAdapter = new DesignConstraintAdapter(store);
74
74
  const fileNodes = store.findNodes({ type: "file" });
75
75
  for (const fileNode of fileNodes) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_dist
3
- } from "./chunk-4DWOMGUM.js";
3
+ } from "./chunk-YNG7BWGB.js";
4
4
  import {
5
5
  Err,
6
6
  Ok
@@ -7,10 +7,10 @@ import {
7
7
  import {
8
8
  findConfigFile,
9
9
  loadConfig
10
- } from "./chunk-PW3U4YJV.js";
10
+ } from "./chunk-DBJC4ULT.js";
11
11
  import {
12
12
  init_dist
13
- } from "./chunk-4DWOMGUM.js";
13
+ } from "./chunk-YNG7BWGB.js";
14
14
  import {
15
15
  Ok
16
16
  } from "./chunk-RL4VMEXL.js";
@@ -35,7 +35,7 @@ var checkPerformanceDefinition = {
35
35
  };
36
36
  async function handleCheckPerformance(input) {
37
37
  try {
38
- const { EntropyAnalyzer } = await import("./dist-I4LWG3IN.js");
38
+ const { EntropyAnalyzer } = await import("./dist-ZS3Y3YWP.js");
39
39
  const typeFilter = input.type ?? "all";
40
40
  const projectPath = sanitizePath(input.path);
41
41
  let entryPoints;
@@ -58,10 +58,10 @@ async function handleCheckPerformance(input) {
58
58
  });
59
59
  let graphOptions;
60
60
  try {
61
- const { loadGraphStore } = await import("./graph-loader-5MKHAJJF.js");
61
+ const { loadGraphStore } = await import("./graph-loader-TJU4E7KL.js");
62
62
  const store = await loadGraphStore(projectPath);
63
63
  if (store) {
64
- const { GraphComplexityAdapter, GraphCouplingAdapter } = await import("./dist-D27LJR2T.js");
64
+ const { GraphComplexityAdapter, GraphCouplingAdapter } = await import("./dist-SQAOKWXM.js");
65
65
  const complexityAdapter = new GraphComplexityAdapter(store);
66
66
  const couplingAdapter = new GraphCouplingAdapter(store);
67
67
  graphOptions = {
@@ -98,7 +98,7 @@ var getPerfBaselinesDefinition = {
98
98
  };
99
99
  async function handleGetPerfBaselines(input) {
100
100
  try {
101
- const { BaselineManager } = await import("./dist-I4LWG3IN.js");
101
+ const { BaselineManager } = await import("./dist-ZS3Y3YWP.js");
102
102
  const manager = new BaselineManager(sanitizePath(input.path));
103
103
  const baselines = manager.load();
104
104
  return resultToMcpResponse(
@@ -146,7 +146,7 @@ var updatePerfBaselinesDefinition = {
146
146
  };
147
147
  async function handleUpdatePerfBaselines(input) {
148
148
  try {
149
- const { BaselineManager } = await import("./dist-I4LWG3IN.js");
149
+ const { BaselineManager } = await import("./dist-ZS3Y3YWP.js");
150
150
  const manager = new BaselineManager(sanitizePath(input.path));
151
151
  manager.save(input.results, input.commitHash);
152
152
  const updated = manager.load();
@@ -176,7 +176,7 @@ var getCriticalPathsDefinition = {
176
176
  };
177
177
  async function handleGetCriticalPaths(input) {
178
178
  try {
179
- const { CriticalPathResolver } = await import("./dist-I4LWG3IN.js");
179
+ const { CriticalPathResolver } = await import("./dist-ZS3Y3YWP.js");
180
180
  const resolver = new CriticalPathResolver(sanitizePath(input.path));
181
181
  const result = await resolver.resolve();
182
182
  return resultToMcpResponse(Ok(result));
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_dist
3
- } from "./chunk-4DWOMGUM.js";
3
+ } from "./chunk-YNG7BWGB.js";
4
4
  import {
5
5
  Err,
6
6
  Ok
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  listPersonas,
6
6
  loadPersona
7
- } from "./chunk-L3CEN42B.js";
7
+ } from "./chunk-KT5PWWWO.js";
8
8
  import {
9
9
  GENERATED_HEADER_AGENT,
10
10
  VALID_PLATFORMS,
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  init_dist,
6
6
  paginate
7
- } from "./chunk-4DWOMGUM.js";
7
+ } from "./chunk-YNG7BWGB.js";
8
8
 
9
9
  // src/mcp/tools/review-pipeline.ts
10
10
  init_dist();
@@ -79,7 +79,7 @@ var runCodeReviewDefinition = {
79
79
  };
80
80
  async function handleRunCodeReview(input) {
81
81
  try {
82
- const { parseDiff, runReviewPipeline } = await import("./dist-I4LWG3IN.js");
82
+ const { parseDiff, runReviewPipeline } = await import("./dist-ZS3Y3YWP.js");
83
83
  const parseResult = parseDiff(input.diff);
84
84
  if (!parseResult.ok) {
85
85
  return {