@harness-engineering/cli 1.8.1 → 1.8.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.
@@ -1,21 +1,21 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
+ CLI_VERSION,
3
4
  createProgram,
4
5
  findConfigFile,
5
6
  loadConfig
6
- } from "../chunk-KJANDVVC.js";
7
- import "../chunk-RT2LYQHF.js";
7
+ } from "../chunk-Y7U5AYAL.js";
8
+ import "../chunk-LB4GRDDV.js";
8
9
  import {
9
- VERSION,
10
10
  getUpdateNotification,
11
11
  isUpdateCheckEnabled,
12
12
  readCheckState,
13
13
  shouldRunCheck,
14
14
  spawnBackgroundCheck
15
- } from "../chunk-E2RTDBMG.js";
15
+ } from "../chunk-SAB3VXOW.js";
16
16
  import {
17
17
  handleError
18
- } from "../chunk-ACMDUQJG.js";
18
+ } from "../chunk-ULSRSP53.js";
19
19
 
20
20
  // src/bin/update-check-hooks.ts
21
21
  var DEFAULT_INTERVAL_MS = 864e5;
@@ -48,7 +48,7 @@ function runUpdateCheckAtStartup() {
48
48
  const state = readCheckState();
49
49
  const interval = configInterval ?? DEFAULT_INTERVAL_MS;
50
50
  if (!shouldRunCheck(state, interval)) return;
51
- spawnBackgroundCheck(VERSION);
51
+ spawnBackgroundCheck(CLI_VERSION);
52
52
  } catch {
53
53
  }
54
54
  }
@@ -56,7 +56,7 @@ function printUpdateNotification() {
56
56
  try {
57
57
  const configInterval = readConfigInterval();
58
58
  if (!isUpdateCheckEnabled(configInterval)) return;
59
- const message = getUpdateNotification(VERSION);
59
+ const message = getUpdateNotification(CLI_VERSION);
60
60
  if (message) {
61
61
  process.stderr.write(`
62
62
  ${message}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Ok
3
- } from "./chunk-E2RTDBMG.js";
3
+ } from "./chunk-SAB3VXOW.js";
4
4
 
5
5
  // src/commands/validate-cross-check.ts
6
6
  import * as fs from "fs";
@@ -8200,7 +8200,7 @@ function getUpdateNotification(currentVersion) {
8200
8200
  return `Update available: v${currentVersion} -> v${state.latestVersion}
8201
8201
  Run "harness update" to upgrade.`;
8202
8202
  }
8203
- var VERSION = "0.8.0";
8203
+ var VERSION = "1.8.2";
8204
8204
 
8205
8205
  export {
8206
8206
  Ok,
@@ -39,7 +39,8 @@ var ALLOWED_TRIGGERS = [
39
39
  "on_project_init",
40
40
  "on_review",
41
41
  "on_milestone",
42
- "on_task_complete"
42
+ "on_task_complete",
43
+ "on_doc_check"
43
44
  ];
44
45
  var ALLOWED_PLATFORMS = ["claude-code", "gemini-cli"];
45
46
  var ALLOWED_COGNITIVE_MODES = [
@@ -6,7 +6,6 @@ import {
6
6
  Ok,
7
7
  SecurityScanner,
8
8
  TypeScriptParser,
9
- VERSION,
10
9
  appendLearning,
11
10
  applyFixes,
12
11
  archiveStream,
@@ -32,7 +31,7 @@ import {
32
31
  validateAgentsMap,
33
32
  validateDependencies,
34
33
  validateKnowledgeMap
35
- } from "./chunk-E2RTDBMG.js";
34
+ } from "./chunk-SAB3VXOW.js";
36
35
  import {
37
36
  CLIError,
38
37
  ExitCode,
@@ -40,11 +39,22 @@ import {
40
39
  createCreateSkillCommand,
41
40
  handleError,
42
41
  logger
43
- } from "./chunk-ACMDUQJG.js";
42
+ } from "./chunk-ULSRSP53.js";
44
43
 
45
44
  // src/index.ts
46
45
  import { Command as Command43 } from "commander";
47
46
 
47
+ // src/version.ts
48
+ import { createRequire } from "module";
49
+ var require_ = createRequire(import.meta.url);
50
+ var resolved;
51
+ try {
52
+ resolved = require_("../package.json").version ?? "0.0.0";
53
+ } catch {
54
+ resolved = "0.0.0";
55
+ }
56
+ var CLI_VERSION = resolved;
57
+
48
58
  // src/commands/validate.ts
49
59
  import { Command } from "commander";
50
60
  import * as path2 from "path";
@@ -359,7 +369,7 @@ function createValidateCommand() {
359
369
  process.exit(result.error.exitCode);
360
370
  }
361
371
  if (opts.crossCheck) {
362
- const { runCrossCheck: runCrossCheck2 } = await import("./validate-cross-check-ZGKFQY57.js");
372
+ const { runCrossCheck: runCrossCheck2 } = await import("./validate-cross-check-DLNK423G.js");
363
373
  const cwd = process.cwd();
364
374
  const specsDir = path2.join(cwd, "docs", "specs");
365
375
  const plansDir = path2.join(cwd, "docs", "plans");
@@ -725,7 +735,7 @@ function createPerfCommand() {
725
735
  perf.command("bench [glob]").description("Run benchmarks via vitest bench").action(async (glob2, _opts, cmd) => {
726
736
  const globalOpts = cmd.optsWithGlobals();
727
737
  const cwd = process.cwd();
728
- const { BenchmarkRunner } = await import("./dist-CCM3L3UE.js");
738
+ const { BenchmarkRunner } = await import("./dist-ZODQVGC4.js");
729
739
  const runner = new BenchmarkRunner();
730
740
  const benchFiles = runner.discover(cwd, glob2);
731
741
  if (benchFiles.length === 0) {
@@ -794,7 +804,7 @@ Results (${result.results.length} benchmarks):`);
794
804
  baselines.command("update").description("Update baselines from latest benchmark run").action(async (_opts, cmd) => {
795
805
  const globalOpts = cmd.optsWithGlobals();
796
806
  const cwd = process.cwd();
797
- const { BenchmarkRunner } = await import("./dist-CCM3L3UE.js");
807
+ const { BenchmarkRunner } = await import("./dist-ZODQVGC4.js");
798
808
  const runner = new BenchmarkRunner();
799
809
  const manager = new BaselineManager(cwd);
800
810
  logger.info("Running benchmarks to update baselines...");
@@ -822,7 +832,7 @@ Results (${result.results.length} benchmarks):`);
822
832
  perf.command("report").description("Full performance report with metrics, trends, and hotspots").action(async (_opts, cmd) => {
823
833
  const globalOpts = cmd.optsWithGlobals();
824
834
  const cwd = process.cwd();
825
- const { EntropyAnalyzer: EntropyAnalyzer2 } = await import("./dist-CCM3L3UE.js");
835
+ const { EntropyAnalyzer: EntropyAnalyzer2 } = await import("./dist-ZODQVGC4.js");
826
836
  const analyzer = new EntropyAnalyzer2({
827
837
  rootDir: path6.resolve(cwd),
828
838
  analyze: { complexity: true, coupling: true }
@@ -1095,9 +1105,9 @@ var TemplateEngine = class {
1095
1105
  files = this.mergeFileLists(files, frameworkFiles);
1096
1106
  }
1097
1107
  files = files.filter((f) => f.relativePath !== "template.json");
1098
- const resolved = { metadata, files };
1099
- if (overlayMetadata !== void 0) resolved.overlayMetadata = overlayMetadata;
1100
- return Ok(resolved);
1108
+ const resolved2 = { metadata, files };
1109
+ if (overlayMetadata !== void 0) resolved2.overlayMetadata = overlayMetadata;
1110
+ return Ok(resolved2);
1101
1111
  }
1102
1112
  render(template, context) {
1103
1113
  const rendered = [];
@@ -2514,7 +2524,7 @@ async function runAdd(componentType, name, options) {
2514
2524
  break;
2515
2525
  }
2516
2526
  case "skill": {
2517
- const { generateSkillFiles: generateSkillFiles2 } = await import("./create-skill-NZDLMMR6.js");
2527
+ const { generateSkillFiles: generateSkillFiles2 } = await import("./create-skill-UZOHMXRU.js");
2518
2528
  generateSkillFiles2({
2519
2529
  name,
2520
2530
  description: `${name} skill`,
@@ -5425,7 +5435,7 @@ function createGraphCommand() {
5425
5435
  // src/index.ts
5426
5436
  function createProgram() {
5427
5437
  const program = new Command43();
5428
- program.name("harness").description("CLI for Harness Engineering toolkit").version(VERSION).option("-c, --config <path>", "Path to config file").option("--json", "Output as JSON").option("--verbose", "Verbose output").option("--quiet", "Minimal output");
5438
+ program.name("harness").description("CLI for Harness Engineering toolkit").version(CLI_VERSION).option("-c, --config <path>", "Path to config file").option("--json", "Output as JSON").option("--verbose", "Verbose output").option("--quiet", "Minimal output");
5429
5439
  program.addCommand(createValidateCommand());
5430
5440
  program.addCommand(createCheckDepsCommand());
5431
5441
  program.addCommand(createCheckDocsCommand());
@@ -5457,6 +5467,7 @@ function createProgram() {
5457
5467
  }
5458
5468
 
5459
5469
  export {
5470
+ CLI_VERSION,
5460
5471
  findConfigFile,
5461
5472
  loadConfig,
5462
5473
  resolveConfig,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createCreateSkillCommand,
3
3
  generateSkillFiles
4
- } from "./chunk-ACMDUQJG.js";
4
+ } from "./chunk-ULSRSP53.js";
5
5
  export {
6
6
  createCreateSkillCommand,
7
7
  generateSkillFiles
@@ -165,7 +165,7 @@ import {
165
165
  validateKnowledgeMap,
166
166
  validatePatternConfig,
167
167
  xssRules
168
- } from "./chunk-E2RTDBMG.js";
168
+ } from "./chunk-SAB3VXOW.js";
169
169
  export {
170
170
  AGENT_DESCRIPTORS,
171
171
  ARCHITECTURE_DESCRIPTOR,
package/dist/index.js CHANGED
@@ -30,18 +30,18 @@ import {
30
30
  runPersona,
31
31
  runQuery,
32
32
  runScan
33
- } from "./chunk-KJANDVVC.js";
33
+ } from "./chunk-Y7U5AYAL.js";
34
34
  import {
35
35
  runCrossCheck
36
- } from "./chunk-RT2LYQHF.js";
37
- import "./chunk-E2RTDBMG.js";
36
+ } from "./chunk-LB4GRDDV.js";
37
+ import "./chunk-SAB3VXOW.js";
38
38
  import {
39
39
  CLIError,
40
40
  ExitCode,
41
41
  generateSkillFiles,
42
42
  handleError,
43
43
  logger
44
- } from "./chunk-ACMDUQJG.js";
44
+ } from "./chunk-ULSRSP53.js";
45
45
  export {
46
46
  AGENT_DESCRIPTIONS,
47
47
  ALLOWED_PERSONA_COMMANDS,
@@ -0,0 +1,7 @@
1
+ import {
2
+ runCrossCheck
3
+ } from "./chunk-LB4GRDDV.js";
4
+ import "./chunk-SAB3VXOW.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.8.1",
3
+ "version": "1.8.2",
4
4
  "description": "CLI for Harness Engineering toolkit",
5
5
  "type": "module",
6
6
  "bin": {
@@ -12,7 +12,8 @@
12
12
  ".": {
13
13
  "types": "./dist/index.d.ts",
14
14
  "import": "./dist/index.js"
15
- }
15
+ },
16
+ "./package.json": "./package.json"
16
17
  },
17
18
  "files": [
18
19
  "dist",
@@ -29,8 +30,8 @@
29
30
  "minimatch": "^10.2.4",
30
31
  "yaml": "^2.3.0",
31
32
  "zod": "^3.22.0",
33
+ "@harness-engineering/core": "0.9.2",
32
34
  "@harness-engineering/linter-gen": "0.1.2",
33
- "@harness-engineering/core": "0.9.1",
34
35
  "@harness-engineering/graph": "0.2.3"
35
36
  },
36
37
  "devDependencies": {
@@ -1,7 +0,0 @@
1
- import {
2
- runCrossCheck
3
- } from "./chunk-RT2LYQHF.js";
4
- import "./chunk-E2RTDBMG.js";
5
- export {
6
- runCrossCheck
7
- };