@harness-engineering/cli 2.4.5 → 2.6.0
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-2JUQ4FE2.js +13 -0
- package/dist/analyzer-VY6DJVOU-4AHIJLNS.js +26 -0
- package/dist/{architecture-NX7FWQD3.js → architecture-CXAVNB5X.js} +7 -4
- package/dist/{assess-project-PLY6ZWMW.js → assess-project-M626SSPN.js} +1 -1
- package/dist/bin/harness-mcp.js +20 -17
- package/dist/bin/harness.js +38 -35
- package/dist/{check-phase-gate-WFIEJKMN.js → check-phase-gate-XMU6LLUQ.js} +8 -5
- package/dist/{chunk-OPDIMKUZ.js → chunk-24KCOJJG.js} +2 -2
- package/dist/{chunk-72TZ2GZR.js → chunk-43M3RLFQ.js} +7 -7
- package/dist/{chunk-7TRTU7JL.js → chunk-5JNSFYZU.js} +2 -2
- package/dist/{chunk-PGY57ABC.js → chunk-6AX6R3LM.js} +7 -7
- package/dist/{chunk-TC4GQBIK.js → chunk-GWE5LL3R.js} +6 -6
- package/dist/{chunk-LJTQVJEP.js → chunk-GWF2OILZ.js} +2 -2
- package/dist/{chunk-FPUNXFJG.js → chunk-HFOB2MPQ.js} +2 -2
- package/dist/{chunk-Z6PF2YXB.js → chunk-HMW3VKUF.js} +3 -3
- package/dist/{chunk-NSLFLGUB.js → chunk-HYTRDAHV.js} +2 -2
- package/dist/{chunk-3XFFGAX4.js → chunk-I6K43QQS.js} +3 -3
- package/dist/{chunk-YL2N4OZQ.js → chunk-JFZOWO7D.js} +2 -2
- package/dist/{chunk-4H2KIQ3I.js → chunk-K246XQ2L.js} +2 -2
- package/dist/{chunk-ZEKY6PQQ.js → chunk-L5BCZ5XS.js} +2 -2
- package/dist/{chunk-4PO2QAXO.js → chunk-NX6A24DS.js} +2153 -985
- package/dist/{chunk-A5GXGRW6.js → chunk-OA6SWTU4.js} +6 -6
- package/dist/chunk-OH3NXXUY.js +383 -0
- package/dist/{chunk-DUK6C7I7.js → chunk-ORNMAYHB.js} +611 -300
- package/dist/{chunk-73ACYXIS.js → chunk-PFZEADQM.js} +1 -1
- package/dist/{chunk-M5TJOV3A.js → chunk-Q6ZR2L6Q.js} +2 -2
- package/dist/chunk-QCLOIUMX.js +395 -0
- package/dist/{chunk-DUCVDDZO.js → chunk-QOKMDDBJ.js} +4 -4
- package/dist/chunk-SZEFU6XC.js +3337 -0
- package/dist/{chunk-KEF624FQ.js → chunk-VTTNIZJL.js} +27 -6
- package/dist/chunk-XARGEOJV.js +21 -0
- package/dist/{chunk-HCTXLKAH.js → chunk-YP7I25SL.js} +2 -2
- package/dist/{chunk-65M5R3X6.js → chunk-YYRQCQPZ.js} +4204 -7347
- package/dist/ci-workflow-3JNDZQYD.js +13 -0
- package/dist/dist-E3SAAHCM.js +93 -0
- package/dist/{dist-SVZHSOLP.js → dist-OHDQBTSO.js} +119 -48
- package/dist/{docs-7LXCR62T.js → docs-5RYMDHN3.js} +8 -5
- package/dist/engine-KZ3PPUYE.js +13 -0
- package/dist/{entropy-LMOXWMR4.js → entropy-DQTAPSSE.js} +6 -3
- package/dist/{feedback-CLBC3IMP.js → feedback-WH6XPQJS.js} +1 -1
- package/dist/{generate-agent-definitions-5FDIGEVZ.js → generate-agent-definitions-SZA4QIHN.js} +8 -5
- package/dist/index.d.ts +47 -0
- package/dist/index.js +49 -46
- package/dist/loader-BNKGM23C.js +15 -0
- package/dist/{mcp-4W45E6OH.js → mcp-GZH4EYGD.js} +20 -17
- package/dist/{performance-WZQIUHLR.js → performance-54TMJOEU.js} +8 -5
- package/dist/{review-pipeline-YPRUHKM7.js → review-pipeline-OTDDVPNY.js} +6 -3
- package/dist/runtime-W5THSNAL.js +14 -0
- package/dist/{security-AZNLX3N6.js → security-27HW7CYT.js} +1 -1
- package/dist/timeline-manager-FPYKJRHR-VVX7CSGW.js +24 -0
- package/dist/{tool-tiers-QVWKAZX4.js → tool-tiers-B7JC2XC3.js} +9 -2
- package/dist/{validate-S7G6H7F4.js → validate-QRVCD4GP.js} +7 -4
- package/dist/validate-cross-check-BUAGBAPO.js +13 -0
- package/package.json +6 -6
- package/dist/agents-md-KJVGWF2S.js +0 -10
- package/dist/chunk-O63AAPIZ.js +0 -190
- package/dist/ci-workflow-XDIKOFSN.js +0 -10
- package/dist/dist-O733ZU6I.js +0 -49
- package/dist/engine-MMQF2ZW5.js +0 -10
- package/dist/loader-WTWR2CWT.js +0 -12
- package/dist/runtime-WC2IWI2X.js +0 -11
- package/dist/validate-cross-check-Z73SCHXZ.js +0 -10
package/dist/index.d.ts
CHANGED
|
@@ -1038,6 +1038,37 @@ declare const HarnessConfigSchema: z.ZodObject<{
|
|
|
1038
1038
|
}, {
|
|
1039
1039
|
connectors?: Record<string, Record<string, unknown>> | undefined;
|
|
1040
1040
|
}>>;
|
|
1041
|
+
/**
|
|
1042
|
+
* Hermes Phase 2 — Disk-hygiene rules consumed by `harness cleanup-sessions --all`.
|
|
1043
|
+
* Keys correspond to registered target names (sessions, cache, maintenance,
|
|
1044
|
+
* dashboard-state, snapshots, analyzer-output); values override the default
|
|
1045
|
+
* TTL in hours. Unknown keys are ignored (forward-compatible).
|
|
1046
|
+
*/
|
|
1047
|
+
cleanup: z.ZodOptional<z.ZodObject<{
|
|
1048
|
+
ttlHours: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1049
|
+
}, "strip", z.ZodTypeAny, {
|
|
1050
|
+
ttlHours?: Record<string, number> | undefined;
|
|
1051
|
+
}, {
|
|
1052
|
+
ttlHours?: Record<string, number> | undefined;
|
|
1053
|
+
}>>;
|
|
1054
|
+
/**
|
|
1055
|
+
* Hermes Phase 2 — Pre-launch OSV malware guard configuration.
|
|
1056
|
+
* `enabled: false` disables the guard; `strict: true` reverses the default
|
|
1057
|
+
* fail-open posture on OSV.dev network errors.
|
|
1058
|
+
*/
|
|
1059
|
+
osvGuard: z.ZodOptional<z.ZodObject<{
|
|
1060
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1061
|
+
strict: z.ZodDefault<z.ZodBoolean>;
|
|
1062
|
+
cacheTtlHours: z.ZodDefault<z.ZodNumber>;
|
|
1063
|
+
}, "strip", z.ZodTypeAny, {
|
|
1064
|
+
enabled: boolean;
|
|
1065
|
+
strict: boolean;
|
|
1066
|
+
cacheTtlHours: number;
|
|
1067
|
+
}, {
|
|
1068
|
+
enabled?: boolean | undefined;
|
|
1069
|
+
strict?: boolean | undefined;
|
|
1070
|
+
cacheTtlHours?: number | undefined;
|
|
1071
|
+
}>>;
|
|
1041
1072
|
}, "strip", z.ZodTypeAny, {
|
|
1042
1073
|
version: 1;
|
|
1043
1074
|
rootDir: string;
|
|
@@ -1215,6 +1246,14 @@ declare const HarnessConfigSchema: z.ZodObject<{
|
|
|
1215
1246
|
graph?: {
|
|
1216
1247
|
connectors: Record<string, Record<string, unknown>>;
|
|
1217
1248
|
} | undefined;
|
|
1249
|
+
cleanup?: {
|
|
1250
|
+
ttlHours?: Record<string, number> | undefined;
|
|
1251
|
+
} | undefined;
|
|
1252
|
+
osvGuard?: {
|
|
1253
|
+
enabled: boolean;
|
|
1254
|
+
strict: boolean;
|
|
1255
|
+
cacheTtlHours: number;
|
|
1256
|
+
} | undefined;
|
|
1218
1257
|
}, {
|
|
1219
1258
|
version: 1;
|
|
1220
1259
|
name?: string | undefined;
|
|
@@ -1392,6 +1431,14 @@ declare const HarnessConfigSchema: z.ZodObject<{
|
|
|
1392
1431
|
graph?: {
|
|
1393
1432
|
connectors?: Record<string, Record<string, unknown>> | undefined;
|
|
1394
1433
|
} | undefined;
|
|
1434
|
+
cleanup?: {
|
|
1435
|
+
ttlHours?: Record<string, number> | undefined;
|
|
1436
|
+
} | undefined;
|
|
1437
|
+
osvGuard?: {
|
|
1438
|
+
enabled?: boolean | undefined;
|
|
1439
|
+
strict?: boolean | undefined;
|
|
1440
|
+
cacheTtlHours?: number | undefined;
|
|
1441
|
+
} | undefined;
|
|
1395
1442
|
}>;
|
|
1396
1443
|
/**
|
|
1397
1444
|
* Type representing the full Harness configuration.
|
package/dist/index.js
CHANGED
|
@@ -12,23 +12,43 @@ import {
|
|
|
12
12
|
runSnapshotCapture,
|
|
13
13
|
runUninstall,
|
|
14
14
|
runUninstallConstraints
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NX6A24DS.js";
|
|
16
16
|
import {
|
|
17
17
|
generateRuntime
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-L5BCZ5XS.js";
|
|
19
19
|
import {
|
|
20
20
|
generateAgentsMd
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JFZOWO7D.js";
|
|
22
22
|
import {
|
|
23
23
|
generateCIWorkflow
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YP7I25SL.js";
|
|
25
25
|
import {
|
|
26
26
|
runCrossCheck
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-24KCOJJG.js";
|
|
28
|
+
import {
|
|
29
|
+
AGENT_DESCRIPTIONS,
|
|
30
|
+
DEFAULT_TOOLS,
|
|
31
|
+
GEMINI_TOOL_MAP,
|
|
32
|
+
generateAgentDefinition,
|
|
33
|
+
generateAgentDefinitions,
|
|
34
|
+
renderClaudeCodeAgent,
|
|
35
|
+
renderGeminiAgent
|
|
36
|
+
} from "./chunk-PFZEADQM.js";
|
|
37
|
+
import "./chunk-KET4QQZB.js";
|
|
38
|
+
import {
|
|
39
|
+
runScan
|
|
40
|
+
} from "./chunk-5XLLIYYL.js";
|
|
28
41
|
import {
|
|
29
42
|
TemplateEngine
|
|
30
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-HYTRDAHV.js";
|
|
31
44
|
import "./chunk-CQ553GZO.js";
|
|
45
|
+
import {
|
|
46
|
+
generateSkillFiles
|
|
47
|
+
} from "./chunk-ZP5E7YET.js";
|
|
48
|
+
import {
|
|
49
|
+
listPersonas,
|
|
50
|
+
loadPersona
|
|
51
|
+
} from "./chunk-K246XQ2L.js";
|
|
32
52
|
import {
|
|
33
53
|
detectTrigger,
|
|
34
54
|
runPersona
|
|
@@ -43,61 +63,37 @@ import {
|
|
|
43
63
|
OutputFormatter,
|
|
44
64
|
OutputMode,
|
|
45
65
|
runCheckPhaseGate
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import {
|
|
48
|
-
AGENT_DESCRIPTIONS,
|
|
49
|
-
DEFAULT_TOOLS,
|
|
50
|
-
GEMINI_TOOL_MAP,
|
|
51
|
-
generateAgentDefinition,
|
|
52
|
-
generateAgentDefinitions,
|
|
53
|
-
renderClaudeCodeAgent,
|
|
54
|
-
renderGeminiAgent
|
|
55
|
-
} from "./chunk-73ACYXIS.js";
|
|
56
|
-
import "./chunk-KET4QQZB.js";
|
|
57
|
-
import {
|
|
58
|
-
listPersonas,
|
|
59
|
-
loadPersona
|
|
60
|
-
} from "./chunk-4H2KIQ3I.js";
|
|
61
|
-
import {
|
|
62
|
-
runScan
|
|
63
|
-
} from "./chunk-5XLLIYYL.js";
|
|
66
|
+
} from "./chunk-43M3RLFQ.js";
|
|
64
67
|
import {
|
|
65
68
|
createHarnessServer,
|
|
66
69
|
generateSlashCommands,
|
|
67
70
|
getToolDefinitions,
|
|
68
71
|
startServer
|
|
69
|
-
} from "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
+
} from "./chunk-ORNMAYHB.js";
|
|
73
|
+
import "./chunk-HFOB2MPQ.js";
|
|
74
|
+
import "./chunk-Q6ZR2L6Q.js";
|
|
75
|
+
import "./chunk-OA6SWTU4.js";
|
|
76
|
+
import "./chunk-QOKMDDBJ.js";
|
|
77
|
+
import "./chunk-6AX6R3LM.js";
|
|
72
78
|
import "./chunk-IOW3MW2K.js";
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
79
|
+
import "./chunk-HMW3VKUF.js";
|
|
80
|
+
import "./chunk-3ISINLYT.js";
|
|
75
81
|
import "./chunk-5FDBXUFW.js";
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-DUCVDDZO.js";
|
|
81
|
-
import "./chunk-PGY57ABC.js";
|
|
82
|
+
import "./chunk-I6K43QQS.js";
|
|
83
|
+
import "./chunk-5JNSFYZU.js";
|
|
84
|
+
import "./chunk-GWF2OILZ.js";
|
|
85
|
+
import "./chunk-GWE5LL3R.js";
|
|
82
86
|
import "./chunk-EPUKTTJZ.js";
|
|
83
87
|
import "./chunk-W6Y7ZW3Y.js";
|
|
84
88
|
import "./chunk-27AJKSQY.js";
|
|
89
|
+
import "./chunk-6B6UN6SG.js";
|
|
90
|
+
import "./chunk-HIK6OEUF.js";
|
|
85
91
|
import {
|
|
86
92
|
findConfigFile,
|
|
87
93
|
loadConfig,
|
|
88
94
|
resolveConfig
|
|
89
|
-
} from "./chunk-
|
|
90
|
-
import "./chunk-3ISINLYT.js";
|
|
91
|
-
import "./chunk-6B6UN6SG.js";
|
|
95
|
+
} from "./chunk-VTTNIZJL.js";
|
|
92
96
|
import "./chunk-ZCZD7FHU.js";
|
|
93
|
-
import "./chunk-BM3PWGXQ.js";
|
|
94
|
-
import "./chunk-65M5R3X6.js";
|
|
95
|
-
import "./chunk-O63AAPIZ.js";
|
|
96
|
-
import "./chunk-BCFDGOMA.js";
|
|
97
|
-
import {
|
|
98
|
-
generateSkillFiles
|
|
99
|
-
} from "./chunk-ZP5E7YET.js";
|
|
100
|
-
import "./chunk-HIK6OEUF.js";
|
|
101
97
|
import {
|
|
102
98
|
logger
|
|
103
99
|
} from "./chunk-EBJQ6N4M.js";
|
|
@@ -106,6 +102,13 @@ import {
|
|
|
106
102
|
ExitCode,
|
|
107
103
|
handleError
|
|
108
104
|
} from "./chunk-3WGJMBKH.js";
|
|
105
|
+
import "./chunk-YYRQCQPZ.js";
|
|
106
|
+
import "./chunk-BM3PWGXQ.js";
|
|
107
|
+
import "./chunk-SZEFU6XC.js";
|
|
108
|
+
import "./chunk-OH3NXXUY.js";
|
|
109
|
+
import "./chunk-BCFDGOMA.js";
|
|
110
|
+
import "./chunk-QCLOIUMX.js";
|
|
111
|
+
import "./chunk-XARGEOJV.js";
|
|
109
112
|
import "./chunk-KFQGP6VL.js";
|
|
110
113
|
export {
|
|
111
114
|
AGENT_DESCRIPTIONS,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
listPersonas,
|
|
3
|
+
loadPersona
|
|
4
|
+
} from "./chunk-K246XQ2L.js";
|
|
5
|
+
import "./chunk-YYRQCQPZ.js";
|
|
6
|
+
import "./chunk-SZEFU6XC.js";
|
|
7
|
+
import "./chunk-OH3NXXUY.js";
|
|
8
|
+
import "./chunk-BCFDGOMA.js";
|
|
9
|
+
import "./chunk-QCLOIUMX.js";
|
|
10
|
+
import "./chunk-XARGEOJV.js";
|
|
11
|
+
import "./chunk-KFQGP6VL.js";
|
|
12
|
+
export {
|
|
13
|
+
listPersonas,
|
|
14
|
+
loadPersona
|
|
15
|
+
};
|
|
@@ -2,36 +2,39 @@ import {
|
|
|
2
2
|
createHarnessServer,
|
|
3
3
|
getToolDefinitions,
|
|
4
4
|
startServer
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-ORNMAYHB.js";
|
|
6
|
+
import "./chunk-HFOB2MPQ.js";
|
|
7
|
+
import "./chunk-Q6ZR2L6Q.js";
|
|
8
|
+
import "./chunk-OA6SWTU4.js";
|
|
9
|
+
import "./chunk-QOKMDDBJ.js";
|
|
10
|
+
import "./chunk-6AX6R3LM.js";
|
|
8
11
|
import "./chunk-IOW3MW2K.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-HMW3VKUF.js";
|
|
13
|
+
import "./chunk-3ISINLYT.js";
|
|
11
14
|
import "./chunk-5FDBXUFW.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-I6K43QQS.js";
|
|
16
|
+
import "./chunk-5JNSFYZU.js";
|
|
14
17
|
import {
|
|
15
18
|
resolveProjectConfig
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-DUCVDDZO.js";
|
|
19
|
-
import "./chunk-PGY57ABC.js";
|
|
19
|
+
} from "./chunk-GWF2OILZ.js";
|
|
20
|
+
import "./chunk-GWE5LL3R.js";
|
|
20
21
|
import {
|
|
21
22
|
resultToMcpResponse
|
|
22
23
|
} from "./chunk-EPUKTTJZ.js";
|
|
23
24
|
import "./chunk-W6Y7ZW3Y.js";
|
|
24
25
|
import "./chunk-27AJKSQY.js";
|
|
25
|
-
import "./chunk-KEF624FQ.js";
|
|
26
|
-
import "./chunk-3ISINLYT.js";
|
|
27
26
|
import "./chunk-6B6UN6SG.js";
|
|
28
|
-
import "./chunk-ZCZD7FHU.js";
|
|
29
|
-
import "./chunk-65M5R3X6.js";
|
|
30
|
-
import "./chunk-O63AAPIZ.js";
|
|
31
|
-
import "./chunk-BCFDGOMA.js";
|
|
32
27
|
import "./chunk-HIK6OEUF.js";
|
|
28
|
+
import "./chunk-VTTNIZJL.js";
|
|
29
|
+
import "./chunk-ZCZD7FHU.js";
|
|
33
30
|
import "./chunk-EBJQ6N4M.js";
|
|
34
31
|
import "./chunk-3WGJMBKH.js";
|
|
32
|
+
import "./chunk-YYRQCQPZ.js";
|
|
33
|
+
import "./chunk-SZEFU6XC.js";
|
|
34
|
+
import "./chunk-OH3NXXUY.js";
|
|
35
|
+
import "./chunk-BCFDGOMA.js";
|
|
36
|
+
import "./chunk-QCLOIUMX.js";
|
|
37
|
+
import "./chunk-XARGEOJV.js";
|
|
35
38
|
import "./chunk-KFQGP6VL.js";
|
|
36
39
|
export {
|
|
37
40
|
createHarnessServer,
|
|
@@ -7,15 +7,18 @@ import {
|
|
|
7
7
|
handleGetPerfBaselines,
|
|
8
8
|
handleUpdatePerfBaselines,
|
|
9
9
|
updatePerfBaselinesDefinition
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6AX6R3LM.js";
|
|
11
11
|
import "./chunk-EPUKTTJZ.js";
|
|
12
12
|
import "./chunk-W6Y7ZW3Y.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-VTTNIZJL.js";
|
|
14
14
|
import "./chunk-ZCZD7FHU.js";
|
|
15
|
-
import "./chunk-65M5R3X6.js";
|
|
16
|
-
import "./chunk-O63AAPIZ.js";
|
|
17
|
-
import "./chunk-BCFDGOMA.js";
|
|
18
15
|
import "./chunk-3WGJMBKH.js";
|
|
16
|
+
import "./chunk-YYRQCQPZ.js";
|
|
17
|
+
import "./chunk-SZEFU6XC.js";
|
|
18
|
+
import "./chunk-OH3NXXUY.js";
|
|
19
|
+
import "./chunk-BCFDGOMA.js";
|
|
20
|
+
import "./chunk-QCLOIUMX.js";
|
|
21
|
+
import "./chunk-XARGEOJV.js";
|
|
19
22
|
import "./chunk-KFQGP6VL.js";
|
|
20
23
|
export {
|
|
21
24
|
checkPerformanceDefinition,
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleRunCodeReview,
|
|
3
3
|
runCodeReviewDefinition
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Q6ZR2L6Q.js";
|
|
5
5
|
import "./chunk-W6Y7ZW3Y.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-YYRQCQPZ.js";
|
|
7
|
+
import "./chunk-SZEFU6XC.js";
|
|
8
|
+
import "./chunk-OH3NXXUY.js";
|
|
8
9
|
import "./chunk-BCFDGOMA.js";
|
|
10
|
+
import "./chunk-QCLOIUMX.js";
|
|
11
|
+
import "./chunk-XARGEOJV.js";
|
|
9
12
|
import "./chunk-KFQGP6VL.js";
|
|
10
13
|
export {
|
|
11
14
|
handleRunCodeReview,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
generateRuntime
|
|
3
|
+
} from "./chunk-L5BCZ5XS.js";
|
|
4
|
+
import "./chunk-KET4QQZB.js";
|
|
5
|
+
import "./chunk-YYRQCQPZ.js";
|
|
6
|
+
import "./chunk-SZEFU6XC.js";
|
|
7
|
+
import "./chunk-OH3NXXUY.js";
|
|
8
|
+
import "./chunk-BCFDGOMA.js";
|
|
9
|
+
import "./chunk-QCLOIUMX.js";
|
|
10
|
+
import "./chunk-XARGEOJV.js";
|
|
11
|
+
import "./chunk-KFQGP6VL.js";
|
|
12
|
+
export {
|
|
13
|
+
generateRuntime
|
|
14
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TimelineManager,
|
|
3
|
+
init_chunk_IIEDD47I,
|
|
4
|
+
init_chunk_XKLVJIPL
|
|
5
|
+
} from "./chunk-QCLOIUMX.js";
|
|
6
|
+
import {
|
|
7
|
+
init_chunk_7P6ASYW6
|
|
8
|
+
} from "./chunk-XARGEOJV.js";
|
|
9
|
+
import {
|
|
10
|
+
__esm
|
|
11
|
+
} from "./chunk-KFQGP6VL.js";
|
|
12
|
+
|
|
13
|
+
// ../core/dist/timeline-manager-FPYKJRHR.mjs
|
|
14
|
+
var init_timeline_manager_FPYKJRHR = __esm({
|
|
15
|
+
"../core/dist/timeline-manager-FPYKJRHR.mjs"() {
|
|
16
|
+
init_chunk_XKLVJIPL();
|
|
17
|
+
init_chunk_IIEDD47I();
|
|
18
|
+
init_chunk_7P6ASYW6();
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
init_timeline_manager_FPYKJRHR();
|
|
22
|
+
export {
|
|
23
|
+
TimelineManager
|
|
24
|
+
};
|
|
@@ -12,7 +12,10 @@ var CORE_TOOL_NAMES = [
|
|
|
12
12
|
"run_skill",
|
|
13
13
|
"code_search",
|
|
14
14
|
"code_outline",
|
|
15
|
-
"compact"
|
|
15
|
+
"compact",
|
|
16
|
+
// Hermes Phase 1 — read-only, cheap, high-value
|
|
17
|
+
"search_sessions",
|
|
18
|
+
"insights_summary"
|
|
16
19
|
];
|
|
17
20
|
var STANDARD_EXTRA = [
|
|
18
21
|
// Review / scan / analysis
|
|
@@ -38,7 +41,11 @@ var STANDARD_EXTRA = [
|
|
|
38
41
|
"code_unfold",
|
|
39
42
|
// Gateway tools (Phase 2 Task 11 + Phase 3 Task 9)
|
|
40
43
|
"trigger_maintenance_job",
|
|
41
|
-
"subscribe_webhook"
|
|
44
|
+
"subscribe_webhook",
|
|
45
|
+
// Hermes Phase 1 — has LLM-spend implication, kept out of core
|
|
46
|
+
"summarize_session",
|
|
47
|
+
// Hermes Phase 4 — agents emit skill proposals into the review queue
|
|
48
|
+
"emit_skill_proposal"
|
|
42
49
|
];
|
|
43
50
|
var STANDARD_TOOL_NAMES = [...CORE_TOOL_NAMES, ...STANDARD_EXTRA];
|
|
44
51
|
var DEFAULT_CHARS_PER_TOKEN = 4;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleValidateProject,
|
|
3
3
|
validateToolDefinition
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-I6K43QQS.js";
|
|
5
|
+
import "./chunk-GWF2OILZ.js";
|
|
6
6
|
import "./chunk-W6Y7ZW3Y.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-YYRQCQPZ.js";
|
|
8
|
+
import "./chunk-SZEFU6XC.js";
|
|
9
|
+
import "./chunk-OH3NXXUY.js";
|
|
9
10
|
import "./chunk-BCFDGOMA.js";
|
|
11
|
+
import "./chunk-QCLOIUMX.js";
|
|
12
|
+
import "./chunk-XARGEOJV.js";
|
|
10
13
|
import "./chunk-KFQGP6VL.js";
|
|
11
14
|
export {
|
|
12
15
|
handleValidateProject,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runCrossCheck
|
|
3
|
+
} from "./chunk-24KCOJJG.js";
|
|
4
|
+
import "./chunk-YYRQCQPZ.js";
|
|
5
|
+
import "./chunk-SZEFU6XC.js";
|
|
6
|
+
import "./chunk-OH3NXXUY.js";
|
|
7
|
+
import "./chunk-BCFDGOMA.js";
|
|
8
|
+
import "./chunk-QCLOIUMX.js";
|
|
9
|
+
import "./chunk-XARGEOJV.js";
|
|
10
|
+
import "./chunk-KFQGP6VL.js";
|
|
11
|
+
export {
|
|
12
|
+
runCrossCheck
|
|
13
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harness-engineering/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "CLI for Harness Engineering toolkit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"web-tree-sitter": "^0.24.7",
|
|
39
39
|
"yaml": "^2.8.3",
|
|
40
40
|
"zod": "^3.25.76",
|
|
41
|
-
"@harness-engineering/core": "0.
|
|
42
|
-
"@harness-engineering/dashboard": "0.
|
|
41
|
+
"@harness-engineering/core": "0.28.0",
|
|
42
|
+
"@harness-engineering/dashboard": "0.7.0",
|
|
43
43
|
"@harness-engineering/graph": "0.9.0",
|
|
44
44
|
"@harness-engineering/linter-gen": "0.1.7",
|
|
45
|
-
"@harness-engineering/orchestrator": "0.
|
|
46
|
-
"@harness-engineering/types": "0.
|
|
45
|
+
"@harness-engineering/orchestrator": "0.6.0",
|
|
46
|
+
"@harness-engineering/types": "0.14.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@harness-engineering/intelligence": "0.2.
|
|
49
|
+
"@harness-engineering/intelligence": "0.2.5"
|
|
50
50
|
},
|
|
51
51
|
"peerDependenciesMeta": {
|
|
52
52
|
"@harness-engineering/intelligence": {
|
package/dist/chunk-O63AAPIZ.js
DELETED
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__esm
|
|
3
|
-
} from "./chunk-KFQGP6VL.js";
|
|
4
|
-
|
|
5
|
-
// ../types/dist/index.mjs
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
import { z as z2 } from "zod";
|
|
8
|
-
import { z as z3 } from "zod";
|
|
9
|
-
function Ok(value) {
|
|
10
|
-
return { ok: true, value };
|
|
11
|
-
}
|
|
12
|
-
function Err(error) {
|
|
13
|
-
return { ok: false, error };
|
|
14
|
-
}
|
|
15
|
-
function isOk(result) {
|
|
16
|
-
return result.ok === true;
|
|
17
|
-
}
|
|
18
|
-
function isErr(result) {
|
|
19
|
-
return result.ok === false;
|
|
20
|
-
}
|
|
21
|
-
var STANDARD_COGNITIVE_MODES, DEFAULT_SKILL_CONTEXT_BUDGET, SESSION_SECTION_NAMES, TrajectoryMetadataSchema, PromptCacheStatsSchema, OTLPKeyValueSchema, OTLPSpanSchema, TokenScopeSchema, BridgeKindSchema, AuthTokenSchema, AuthTokenPublicSchema, AuthAuditEntrySchema, WebhookSubscriptionSchema, WebhookSubscriptionPublicSchema, GatewayEventSchema, WebhookDeliveryStatusSchema, WebhookDeliverySchema;
|
|
22
|
-
var init_dist = __esm({
|
|
23
|
-
"../types/dist/index.mjs"() {
|
|
24
|
-
STANDARD_COGNITIVE_MODES = [
|
|
25
|
-
"adversarial-reviewer",
|
|
26
|
-
"constructive-architect",
|
|
27
|
-
"meticulous-implementer",
|
|
28
|
-
"diagnostic-investigator",
|
|
29
|
-
"advisory-guide",
|
|
30
|
-
"meticulous-verifier"
|
|
31
|
-
];
|
|
32
|
-
DEFAULT_SKILL_CONTEXT_BUDGET = {
|
|
33
|
-
max_tokens: 4e3,
|
|
34
|
-
priority: 3
|
|
35
|
-
};
|
|
36
|
-
SESSION_SECTION_NAMES = [
|
|
37
|
-
"terminology",
|
|
38
|
-
"decisions",
|
|
39
|
-
"constraints",
|
|
40
|
-
"risks",
|
|
41
|
-
"openQuestions",
|
|
42
|
-
"evidence"
|
|
43
|
-
];
|
|
44
|
-
TrajectoryMetadataSchema = z.object({
|
|
45
|
-
turnsCount: z.number().int().nonnegative(),
|
|
46
|
-
toolCallCount: z.number().int().nonnegative(),
|
|
47
|
-
modelTokenSpend: z.object({
|
|
48
|
-
input: z.number().int().nonnegative(),
|
|
49
|
-
output: z.number().int().nonnegative(),
|
|
50
|
-
cacheRead: z.number().int().nonnegative(),
|
|
51
|
-
cacheCreation: z.number().int().nonnegative()
|
|
52
|
-
}),
|
|
53
|
-
promptCacheHit: z.number().int().nonnegative(),
|
|
54
|
-
promptCacheMiss: z.number().int().nonnegative(),
|
|
55
|
-
totalDurationMs: z.number().int().nonnegative(),
|
|
56
|
-
phasesReached: z.array(z.string())
|
|
57
|
-
});
|
|
58
|
-
PromptCacheStatsSchema = z.object({
|
|
59
|
-
totalRequests: z.number().int().nonnegative(),
|
|
60
|
-
hits: z.number().int().nonnegative(),
|
|
61
|
-
misses: z.number().int().nonnegative(),
|
|
62
|
-
hitRate: z.number().min(0).max(1),
|
|
63
|
-
byBackend: z.record(
|
|
64
|
-
z.string(),
|
|
65
|
-
z.object({
|
|
66
|
-
hits: z.number().int().nonnegative(),
|
|
67
|
-
misses: z.number().int().nonnegative()
|
|
68
|
-
})
|
|
69
|
-
),
|
|
70
|
-
windowStartedAt: z.number().int()
|
|
71
|
-
});
|
|
72
|
-
OTLPKeyValueSchema = z.object({
|
|
73
|
-
key: z.string(),
|
|
74
|
-
value: z.object({
|
|
75
|
-
stringValue: z.string().optional(),
|
|
76
|
-
intValue: z.string().optional(),
|
|
77
|
-
doubleValue: z.number().optional(),
|
|
78
|
-
boolValue: z.boolean().optional()
|
|
79
|
-
})
|
|
80
|
-
});
|
|
81
|
-
OTLPSpanSchema = z.object({
|
|
82
|
-
traceId: z.string().length(32),
|
|
83
|
-
// 16-byte hex
|
|
84
|
-
spanId: z.string().length(16),
|
|
85
|
-
// 8-byte hex
|
|
86
|
-
parentSpanId: z.string().length(16).optional(),
|
|
87
|
-
name: z.string(),
|
|
88
|
-
kind: z.number().int(),
|
|
89
|
-
// SpanKind enum (1=INTERNAL, 2=SERVER, 3=CLIENT, 4=PRODUCER, 5=CONSUMER)
|
|
90
|
-
startTimeUnixNano: z.string(),
|
|
91
|
-
// decimal nanoseconds as string (int64 unsafe in JSON)
|
|
92
|
-
endTimeUnixNano: z.string(),
|
|
93
|
-
attributes: z.array(OTLPKeyValueSchema),
|
|
94
|
-
status: z.object({ code: z.number().int() }).optional()
|
|
95
|
-
});
|
|
96
|
-
TokenScopeSchema = z2.enum([
|
|
97
|
-
"admin",
|
|
98
|
-
"trigger-job",
|
|
99
|
-
"read-status",
|
|
100
|
-
"resolve-interaction",
|
|
101
|
-
"subscribe-webhook",
|
|
102
|
-
"modify-roadmap",
|
|
103
|
-
"read-telemetry"
|
|
104
|
-
]);
|
|
105
|
-
BridgeKindSchema = z2.enum(["slack", "discord", "github-app", "custom"]);
|
|
106
|
-
AuthTokenSchema = z2.object({
|
|
107
|
-
id: z2.string().regex(/^tok_[a-f0-9]{16}$/),
|
|
108
|
-
name: z2.string().min(1).max(100),
|
|
109
|
-
scopes: z2.array(TokenScopeSchema).min(1),
|
|
110
|
-
bridgeKind: BridgeKindSchema.optional(),
|
|
111
|
-
tenantId: z2.string().optional(),
|
|
112
|
-
hashedSecret: z2.string().min(1),
|
|
113
|
-
createdAt: z2.string().datetime(),
|
|
114
|
-
lastUsedAt: z2.string().datetime().optional(),
|
|
115
|
-
expiresAt: z2.string().datetime().optional()
|
|
116
|
-
});
|
|
117
|
-
AuthTokenPublicSchema = AuthTokenSchema.omit({ hashedSecret: true });
|
|
118
|
-
AuthAuditEntrySchema = z2.object({
|
|
119
|
-
timestamp: z2.string().datetime(),
|
|
120
|
-
tokenId: z2.string(),
|
|
121
|
-
tenantId: z2.string().optional(),
|
|
122
|
-
route: z2.string(),
|
|
123
|
-
method: z2.string(),
|
|
124
|
-
status: z2.number().int()
|
|
125
|
-
});
|
|
126
|
-
WebhookSubscriptionSchema = z3.object({
|
|
127
|
-
id: z3.string().regex(/^whk_[a-f0-9]{16}$/),
|
|
128
|
-
tokenId: z3.string(),
|
|
129
|
-
// owning auth token (audit / revocation chain)
|
|
130
|
-
url: z3.string().url().startsWith("https://"),
|
|
131
|
-
// https-only at registration
|
|
132
|
-
events: z3.array(z3.string().min(1)).min(1),
|
|
133
|
-
// glob patterns: "maintenance.completed", "interaction.*"
|
|
134
|
-
secret: z3.string().min(32),
|
|
135
|
-
// 32-byte base64url (44 chars)
|
|
136
|
-
createdAt: z3.string().datetime()
|
|
137
|
-
});
|
|
138
|
-
WebhookSubscriptionPublicSchema = WebhookSubscriptionSchema.omit({ secret: true });
|
|
139
|
-
GatewayEventSchema = z3.object({
|
|
140
|
-
id: z3.string().regex(/^evt_[a-f0-9]+$/),
|
|
141
|
-
type: z3.string().min(1),
|
|
142
|
-
timestamp: z3.string().datetime(),
|
|
143
|
-
data: z3.unknown(),
|
|
144
|
-
correlationId: z3.string().optional()
|
|
145
|
-
});
|
|
146
|
-
WebhookDeliveryStatusSchema = z3.enum([
|
|
147
|
-
"pending",
|
|
148
|
-
"in_flight",
|
|
149
|
-
"failed",
|
|
150
|
-
"delivered",
|
|
151
|
-
"dead"
|
|
152
|
-
]);
|
|
153
|
-
WebhookDeliverySchema = z3.object({
|
|
154
|
-
id: z3.string().regex(/^dlv_[a-f0-9]{16}$/),
|
|
155
|
-
subscriptionId: z3.string(),
|
|
156
|
-
eventType: z3.string(),
|
|
157
|
-
payload: z3.string(),
|
|
158
|
-
attempt: z3.number().int().min(0).max(5),
|
|
159
|
-
status: WebhookDeliveryStatusSchema,
|
|
160
|
-
nextAttemptAt: z3.number().int().nullable(),
|
|
161
|
-
lastError: z3.string().nullable().optional(),
|
|
162
|
-
deliveredAt: z3.number().int().nullable().optional()
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
|
|
167
|
-
export {
|
|
168
|
-
Ok,
|
|
169
|
-
Err,
|
|
170
|
-
isOk,
|
|
171
|
-
isErr,
|
|
172
|
-
STANDARD_COGNITIVE_MODES,
|
|
173
|
-
DEFAULT_SKILL_CONTEXT_BUDGET,
|
|
174
|
-
SESSION_SECTION_NAMES,
|
|
175
|
-
TrajectoryMetadataSchema,
|
|
176
|
-
PromptCacheStatsSchema,
|
|
177
|
-
OTLPKeyValueSchema,
|
|
178
|
-
OTLPSpanSchema,
|
|
179
|
-
TokenScopeSchema,
|
|
180
|
-
BridgeKindSchema,
|
|
181
|
-
AuthTokenSchema,
|
|
182
|
-
AuthTokenPublicSchema,
|
|
183
|
-
AuthAuditEntrySchema,
|
|
184
|
-
WebhookSubscriptionSchema,
|
|
185
|
-
WebhookSubscriptionPublicSchema,
|
|
186
|
-
GatewayEventSchema,
|
|
187
|
-
WebhookDeliveryStatusSchema,
|
|
188
|
-
WebhookDeliverySchema,
|
|
189
|
-
init_dist
|
|
190
|
-
};
|