@harness-engineering/cli 1.1.0 → 1.1.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.
- package/dist/bin/harness.js +2 -1
- package/dist/chunk-2HRQODJF.js +2744 -0
- package/dist/chunk-3U5VZYR7.js +70 -0
- package/dist/chunk-NHLJNFKV.js +2758 -0
- package/dist/index.d.ts +49 -1
- package/dist/index.js +9 -1
- package/dist/validate-cross-check-LNIZ7KGZ.js +6 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -39,6 +39,54 @@ declare class CLIError extends Error {
|
|
|
39
39
|
*/
|
|
40
40
|
declare function handleError(error: unknown): never;
|
|
41
41
|
|
|
42
|
+
interface CheckPhaseGateOptions {
|
|
43
|
+
cwd?: string;
|
|
44
|
+
configPath?: string;
|
|
45
|
+
json?: boolean;
|
|
46
|
+
verbose?: boolean;
|
|
47
|
+
quiet?: boolean;
|
|
48
|
+
}
|
|
49
|
+
interface CheckPhaseGateResult {
|
|
50
|
+
pass: boolean;
|
|
51
|
+
skipped: boolean;
|
|
52
|
+
severity?: 'error' | 'warning';
|
|
53
|
+
missingSpecs: Array<{
|
|
54
|
+
implFile: string;
|
|
55
|
+
expectedSpec: string;
|
|
56
|
+
}>;
|
|
57
|
+
checkedFiles: number;
|
|
58
|
+
}
|
|
59
|
+
declare function runCheckPhaseGate(options: CheckPhaseGateOptions): Promise<Result<CheckPhaseGateResult, CLIError>>;
|
|
60
|
+
|
|
61
|
+
interface CrossCheckResult {
|
|
62
|
+
specToPlan: string[];
|
|
63
|
+
planToImpl: string[];
|
|
64
|
+
staleness: string[];
|
|
65
|
+
warnings: number;
|
|
66
|
+
}
|
|
67
|
+
interface CrossCheckOptions {
|
|
68
|
+
specsDir: string;
|
|
69
|
+
plansDir: string;
|
|
70
|
+
projectPath: string;
|
|
71
|
+
}
|
|
72
|
+
declare function runCrossCheck(options: CrossCheckOptions): Promise<Result<CrossCheckResult, CLIError>>;
|
|
73
|
+
|
|
74
|
+
interface CreateSkillOptions {
|
|
75
|
+
name: string;
|
|
76
|
+
description: string;
|
|
77
|
+
cognitiveMode?: string;
|
|
78
|
+
reads?: string[];
|
|
79
|
+
produces?: string;
|
|
80
|
+
preChecks?: string[];
|
|
81
|
+
postChecks?: string[];
|
|
82
|
+
outputDir?: string;
|
|
83
|
+
}
|
|
84
|
+
interface GeneratedFiles {
|
|
85
|
+
skillYamlPath: string;
|
|
86
|
+
skillMdPath: string;
|
|
87
|
+
}
|
|
88
|
+
declare function generateSkillFiles(opts: CreateSkillOptions): GeneratedFiles;
|
|
89
|
+
|
|
42
90
|
declare const OutputMode: {
|
|
43
91
|
readonly JSON: "json";
|
|
44
92
|
readonly TEXT: "text";
|
|
@@ -540,4 +588,4 @@ declare function runPersona(persona: Persona, executor: CommandExecutor): Promis
|
|
|
540
588
|
|
|
541
589
|
declare function createProgram(): Command;
|
|
542
590
|
|
|
543
|
-
export { CLIError, type CommandExecutor, ExitCode, type HarnessConfig, OutputFormatter, OutputMode, type Persona, type PersonaMetadata, type PersonaRunReport, type RenderedFiles, type TemplateContext, TemplateEngine, buildPreamble, createProgram, findConfigFile, generateAgentsMd, generateCIWorkflow, generateRuntime, handleError, listPersonas, loadConfig, loadPersona, logger, resolveConfig, runPersona };
|
|
591
|
+
export { CLIError, type CommandExecutor, type CreateSkillOptions, ExitCode, type HarnessConfig, OutputFormatter, OutputMode, type Persona, type PersonaMetadata, type PersonaRunReport, type RenderedFiles, type TemplateContext, TemplateEngine, buildPreamble, createProgram, findConfigFile, generateAgentsMd, generateCIWorkflow, generateRuntime, generateSkillFiles, handleError, listPersonas, loadConfig, loadPersona, logger, resolveConfig, runCheckPhaseGate, runCrossCheck, runPersona };
|
package/dist/index.js
CHANGED
|
@@ -12,11 +12,16 @@ import {
|
|
|
12
12
|
loadConfig,
|
|
13
13
|
loadPersona,
|
|
14
14
|
resolveConfig,
|
|
15
|
+
runCheckPhaseGate,
|
|
15
16
|
runPersona
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NHLJNFKV.js";
|
|
18
|
+
import {
|
|
19
|
+
runCrossCheck
|
|
20
|
+
} from "./chunk-3U5VZYR7.js";
|
|
17
21
|
import {
|
|
18
22
|
CLIError,
|
|
19
23
|
ExitCode,
|
|
24
|
+
generateSkillFiles,
|
|
20
25
|
handleError,
|
|
21
26
|
logger
|
|
22
27
|
} from "./chunk-EFZOLZFB.js";
|
|
@@ -32,11 +37,14 @@ export {
|
|
|
32
37
|
generateAgentsMd,
|
|
33
38
|
generateCIWorkflow,
|
|
34
39
|
generateRuntime,
|
|
40
|
+
generateSkillFiles,
|
|
35
41
|
handleError,
|
|
36
42
|
listPersonas,
|
|
37
43
|
loadConfig,
|
|
38
44
|
loadPersona,
|
|
39
45
|
logger,
|
|
40
46
|
resolveConfig,
|
|
47
|
+
runCheckPhaseGate,
|
|
48
|
+
runCrossCheck,
|
|
41
49
|
runPersona
|
|
42
50
|
};
|