@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.
- package/dist/bin/harness.js +7 -7
- package/dist/{chunk-RT2LYQHF.js → chunk-LB4GRDDV.js} +1 -1
- package/dist/{chunk-E2RTDBMG.js → chunk-SAB3VXOW.js} +1 -1
- package/dist/{chunk-ACMDUQJG.js → chunk-ULSRSP53.js} +2 -1
- package/dist/{chunk-KJANDVVC.js → chunk-Y7U5AYAL.js} +23 -12
- package/dist/{create-skill-NZDLMMR6.js → create-skill-UZOHMXRU.js} +1 -1
- package/dist/{dist-CCM3L3UE.js → dist-ZODQVGC4.js} +1 -1
- package/dist/index.js +4 -4
- package/dist/validate-cross-check-DLNK423G.js +7 -0
- package/package.json +4 -3
- package/dist/validate-cross-check-ZGKFQY57.js +0 -7
package/dist/bin/harness.js
CHANGED
|
@@ -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-
|
|
7
|
-
import "../chunk-
|
|
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-
|
|
15
|
+
} from "../chunk-SAB3VXOW.js";
|
|
16
16
|
import {
|
|
17
17
|
handleError
|
|
18
|
-
} from "../chunk-
|
|
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(
|
|
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(
|
|
59
|
+
const message = getUpdateNotification(CLI_VERSION);
|
|
60
60
|
if (message) {
|
|
61
61
|
process.stderr.write(`
|
|
62
62
|
${message}
|
|
@@ -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 = "
|
|
8203
|
+
var VERSION = "1.8.2";
|
|
8204
8204
|
|
|
8205
8205
|
export {
|
|
8206
8206
|
Ok,
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
1099
|
-
if (overlayMetadata !== void 0)
|
|
1100
|
-
return Ok(
|
|
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-
|
|
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(
|
|
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,
|
package/dist/index.js
CHANGED
|
@@ -30,18 +30,18 @@ import {
|
|
|
30
30
|
runPersona,
|
|
31
31
|
runQuery,
|
|
32
32
|
runScan
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-Y7U5AYAL.js";
|
|
34
34
|
import {
|
|
35
35
|
runCrossCheck
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
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-
|
|
44
|
+
} from "./chunk-ULSRSP53.js";
|
|
45
45
|
export {
|
|
46
46
|
AGENT_DESCRIPTIONS,
|
|
47
47
|
ALLOWED_PERSONA_COMMANDS,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harness-engineering/cli",
|
|
3
|
-
"version": "1.8.
|
|
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": {
|