@harness-engineering/cli 1.9.0 → 1.11.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.
Files changed (86) hide show
  1. package/dist/agents/skills/claude-code/enforce-architecture/SKILL.md +4 -0
  2. package/dist/agents/skills/claude-code/harness-autopilot/SKILL.md +7 -2
  3. package/dist/agents/skills/claude-code/harness-brainstorming/SKILL.md +10 -1
  4. package/dist/agents/skills/claude-code/harness-execution/SKILL.md +2 -2
  5. package/dist/agents/skills/claude-code/harness-parallel-agents/SKILL.md +105 -20
  6. package/dist/agents/skills/claude-code/harness-pre-commit-review/SKILL.md +37 -0
  7. package/dist/agents/skills/gemini-cli/enforce-architecture/SKILL.md +4 -0
  8. package/dist/agents/skills/gemini-cli/harness-autopilot/SKILL.md +7 -2
  9. package/dist/agents/skills/gemini-cli/harness-brainstorming/SKILL.md +10 -1
  10. package/dist/agents/skills/gemini-cli/harness-execution/SKILL.md +2 -2
  11. package/dist/agents/skills/gemini-cli/harness-parallel-agents/SKILL.md +105 -20
  12. package/dist/agents/skills/gemini-cli/harness-pre-commit-review/SKILL.md +37 -0
  13. package/dist/agents-md-ZFV6RR5J.js +8 -0
  14. package/dist/architecture-EXNUMH5R.js +13 -0
  15. package/dist/bin/harness-mcp.d.ts +1 -0
  16. package/dist/bin/harness-mcp.js +28 -0
  17. package/dist/bin/harness.js +42 -8
  18. package/dist/check-phase-gate-VZFOY2PO.js +12 -0
  19. package/dist/chunk-2NCIKJES.js +470 -0
  20. package/dist/chunk-2YPZKGAG.js +62 -0
  21. package/dist/{chunk-CGSHUJES.js → chunk-2YSQOUHO.js} +4484 -2688
  22. package/dist/chunk-3WGJMBKH.js +45 -0
  23. package/dist/{chunk-ULSRSP53.js → chunk-6N4R6FVX.js} +11 -112
  24. package/dist/{chunk-6JIT7CEM.js → chunk-72GHBOL2.js} +1 -1
  25. package/dist/chunk-BM3PWGXQ.js +14 -0
  26. package/dist/chunk-C2ERUR3L.js +255 -0
  27. package/dist/chunk-EBJQ6N4M.js +39 -0
  28. package/dist/chunk-GNGELAXY.js +293 -0
  29. package/dist/chunk-GSIVNYVJ.js +187 -0
  30. package/dist/chunk-HD4IBGLA.js +80 -0
  31. package/dist/chunk-I6JZYEGT.js +4361 -0
  32. package/dist/chunk-IDZNPTYD.js +16 -0
  33. package/dist/chunk-JSTQ3AWB.js +31 -0
  34. package/dist/chunk-K6XAPGML.js +27 -0
  35. package/dist/chunk-KET4QQZB.js +8 -0
  36. package/dist/chunk-L2KLU56K.js +125 -0
  37. package/dist/chunk-MHBMTPW7.js +29 -0
  38. package/dist/chunk-NC6PXVWT.js +116 -0
  39. package/dist/chunk-NKDM3FMH.js +52 -0
  40. package/dist/chunk-PA2XHK75.js +248 -0
  41. package/dist/chunk-Q6AB7W5Z.js +135 -0
  42. package/dist/chunk-QPEH2QPG.js +347 -0
  43. package/dist/chunk-TEFCFC4H.js +15 -0
  44. package/dist/chunk-TI4TGEX6.js +85 -0
  45. package/dist/chunk-TRAPF4IX.js +185 -0
  46. package/dist/chunk-VRFZWGMS.js +68 -0
  47. package/dist/chunk-VUCPTQ6G.js +67 -0
  48. package/dist/chunk-W6Y7ZW3Y.js +13 -0
  49. package/dist/chunk-WJZDO6OY.js +103 -0
  50. package/dist/chunk-WUJTCNOU.js +122 -0
  51. package/dist/chunk-X3MN5UQJ.js +89 -0
  52. package/dist/chunk-Z75JC6I2.js +189 -0
  53. package/dist/chunk-ZOAWBDWU.js +72 -0
  54. package/dist/{chunk-RTPHUDZS.js → chunk-ZWC3MN5E.js} +1944 -2779
  55. package/dist/ci-workflow-K5RCRNYR.js +8 -0
  56. package/dist/constants-5JGUXPEK.js +6 -0
  57. package/dist/create-skill-WPXHSLX2.js +11 -0
  58. package/dist/dist-D4RYGUZE.js +14 -0
  59. package/dist/{dist-C5PYIQPF.js → dist-JVZ2MKBC.js} +108 -6
  60. package/dist/dist-L7LAAQAS.js +18 -0
  61. package/dist/{dist-I7DB5VKB.js → dist-M6BQODWC.js} +1145 -0
  62. package/dist/docs-PWCUVYWU.js +12 -0
  63. package/dist/engine-6XUP6GAK.js +8 -0
  64. package/dist/entropy-4I6JEYAC.js +12 -0
  65. package/dist/feedback-TNIW534S.js +18 -0
  66. package/dist/generate-agent-definitions-MWKEA5NU.js +15 -0
  67. package/dist/glob-helper-5OHBUQAI.js +52 -0
  68. package/dist/graph-loader-KO4GJ5N2.js +8 -0
  69. package/dist/index.d.ts +328 -12
  70. package/dist/index.js +93 -34
  71. package/dist/loader-4FIPIFII.js +10 -0
  72. package/dist/mcp-MOKLYNZL.js +34 -0
  73. package/dist/performance-BTOJCPXU.js +24 -0
  74. package/dist/review-pipeline-3YTW3463.js +9 -0
  75. package/dist/runner-VMYLHWOC.js +6 -0
  76. package/dist/runtime-GO7K2PJE.js +9 -0
  77. package/dist/security-4P2GGFF6.js +9 -0
  78. package/dist/skill-executor-RG45LUO5.js +8 -0
  79. package/dist/templates/orchestrator/WORKFLOW.md +48 -0
  80. package/dist/templates/orchestrator/template.json +6 -0
  81. package/dist/validate-JN44D2Q7.js +12 -0
  82. package/dist/validate-cross-check-DB7RIFFF.js +8 -0
  83. package/dist/version-KFFPOQAX.js +6 -0
  84. package/package.json +13 -7
  85. package/dist/create-skill-UZOHMXRU.js +0 -8
  86. package/dist/validate-cross-check-VG573VZO.js +0 -7
@@ -0,0 +1,45 @@
1
+ // src/utils/errors.ts
2
+ var ExitCode = {
3
+ /** Command completed successfully */
4
+ SUCCESS: 0,
5
+ /** Command failed because of a validation error (e.g. check-docs found issues) */
6
+ VALIDATION_FAILED: 1,
7
+ /** Command failed because of an unexpected error or misconfiguration */
8
+ ERROR: 2
9
+ };
10
+ var CLIError = class extends Error {
11
+ /** The exit code associated with this error */
12
+ exitCode;
13
+ /**
14
+ * Creates a new CLIError.
15
+ *
16
+ * @param message - Human-readable error message.
17
+ * @param exitCode - Exit code to use when process terminates. Defaults to ExitCode.ERROR.
18
+ */
19
+ constructor(message, exitCode = ExitCode.ERROR) {
20
+ super(message);
21
+ this.name = "CLIError";
22
+ this.exitCode = exitCode;
23
+ }
24
+ };
25
+ function formatError(error) {
26
+ if (error instanceof CLIError) {
27
+ return `Error: ${error.message}`;
28
+ }
29
+ if (error instanceof Error) {
30
+ return `Error: ${error.message}`;
31
+ }
32
+ return `Error: ${String(error)}`;
33
+ }
34
+ function handleError(error) {
35
+ const message = formatError(error);
36
+ console.error(message);
37
+ const exitCode = error instanceof CLIError ? error.exitCode : ExitCode.ERROR;
38
+ process.exit(exitCode);
39
+ }
40
+
41
+ export {
42
+ ExitCode,
43
+ CLIError,
44
+ handleError
45
+ };
@@ -1,115 +1,19 @@
1
+ import {
2
+ logger
3
+ } from "./chunk-EBJQ6N4M.js";
4
+ import {
5
+ CLIError,
6
+ ExitCode
7
+ } from "./chunk-3WGJMBKH.js";
8
+ import {
9
+ ALLOWED_COGNITIVE_MODES
10
+ } from "./chunk-VRFZWGMS.js";
11
+
1
12
  // src/commands/create-skill.ts
2
13
  import { Command } from "commander";
3
14
  import * as path from "path";
4
15
  import * as fs from "fs";
5
16
  import YAML from "yaml";
6
-
7
- // src/skill/schema.ts
8
- import { z } from "zod";
9
- var SkillPhaseSchema = z.object({
10
- name: z.string(),
11
- description: z.string(),
12
- required: z.boolean().default(true)
13
- });
14
- var SkillCliSchema = z.object({
15
- command: z.string(),
16
- args: z.array(
17
- z.object({
18
- name: z.string(),
19
- description: z.string(),
20
- required: z.boolean().default(false)
21
- })
22
- ).default([])
23
- });
24
- var SkillMcpSchema = z.object({
25
- tool: z.string(),
26
- input: z.record(z.string())
27
- });
28
- var SkillStateSchema = z.object({
29
- persistent: z.boolean().default(false),
30
- files: z.array(z.string()).default([])
31
- });
32
- var ALLOWED_TRIGGERS = [
33
- "manual",
34
- "on_pr",
35
- "on_commit",
36
- "on_new_feature",
37
- "on_bug_fix",
38
- "on_refactor",
39
- "on_project_init",
40
- "on_review",
41
- "on_milestone",
42
- "on_task_complete",
43
- "on_doc_check"
44
- ];
45
- var ALLOWED_PLATFORMS = ["claude-code", "gemini-cli"];
46
- var ALLOWED_COGNITIVE_MODES = [
47
- "adversarial-reviewer",
48
- "constructive-architect",
49
- "meticulous-implementer",
50
- "diagnostic-investigator",
51
- "advisory-guide",
52
- "meticulous-verifier"
53
- ];
54
- var SkillMetadataSchema = z.object({
55
- name: z.string().regex(/^[a-z][a-z0-9-]*$/, "Name must be lowercase with hyphens"),
56
- version: z.string().regex(/^\d+\.\d+\.\d+$/, "Version must be semver format"),
57
- description: z.string(),
58
- cognitive_mode: z.string().regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "Cognitive mode must be kebab-case").optional(),
59
- triggers: z.array(z.enum(ALLOWED_TRIGGERS)),
60
- platforms: z.array(z.enum(ALLOWED_PLATFORMS)),
61
- tools: z.array(z.string()),
62
- cli: SkillCliSchema.optional(),
63
- mcp: SkillMcpSchema.optional(),
64
- type: z.enum(["rigid", "flexible"]),
65
- phases: z.array(SkillPhaseSchema).optional(),
66
- state: SkillStateSchema.default({}),
67
- depends_on: z.array(z.string()).default([])
68
- });
69
-
70
- // src/output/logger.ts
71
- import chalk from "chalk";
72
- var logger = {
73
- info: (message) => console.log(chalk.blue("i"), message),
74
- success: (message) => console.log(chalk.green("v"), message),
75
- warn: (message) => console.log(chalk.yellow("!"), message),
76
- error: (message) => console.error(chalk.red("x"), message),
77
- dim: (message) => console.log(chalk.dim(message)),
78
- // For JSON output mode
79
- raw: (data) => console.log(JSON.stringify(data, null, 2))
80
- };
81
-
82
- // src/utils/errors.ts
83
- var ExitCode = {
84
- SUCCESS: 0,
85
- VALIDATION_FAILED: 1,
86
- ERROR: 2
87
- };
88
- var CLIError = class extends Error {
89
- exitCode;
90
- constructor(message, exitCode = ExitCode.ERROR) {
91
- super(message);
92
- this.name = "CLIError";
93
- this.exitCode = exitCode;
94
- }
95
- };
96
- function formatError(error) {
97
- if (error instanceof CLIError) {
98
- return `Error: ${error.message}`;
99
- }
100
- if (error instanceof Error) {
101
- return `Error: ${error.message}`;
102
- }
103
- return `Error: ${String(error)}`;
104
- }
105
- function handleError(error) {
106
- const message = formatError(error);
107
- console.error(message);
108
- const exitCode = error instanceof CLIError ? error.exitCode : ExitCode.ERROR;
109
- process.exit(exitCode);
110
- }
111
-
112
- // src/commands/create-skill.ts
113
17
  var KEBAB_CASE_RE = /^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;
114
18
  function buildSkillYaml(opts) {
115
19
  const doc = {
@@ -258,11 +162,6 @@ function createCreateSkillCommand() {
258
162
  }
259
163
 
260
164
  export {
261
- ExitCode,
262
- CLIError,
263
- handleError,
264
- logger,
265
- SkillMetadataSchema,
266
165
  generateSkillFiles,
267
166
  createCreateSkillCommand
268
167
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Ok
3
- } from "./chunk-CGSHUJES.js";
3
+ } from "./chunk-MHBMTPW7.js";
4
4
 
5
5
  // src/commands/validate-cross-check.ts
6
6
  import * as fs from "fs";
@@ -0,0 +1,14 @@
1
+ // src/version.ts
2
+ import { createRequire } from "module";
3
+ var require_ = createRequire(import.meta.url);
4
+ var resolved;
5
+ try {
6
+ resolved = require_("../package.json").version ?? "0.0.0";
7
+ } catch {
8
+ resolved = "0.0.0";
9
+ }
10
+ var CLI_VERSION = resolved;
11
+
12
+ export {
13
+ CLI_VERSION
14
+ };
@@ -0,0 +1,255 @@
1
+ import {
2
+ Err,
3
+ Ok
4
+ } from "./chunk-MHBMTPW7.js";
5
+
6
+ // src/templates/engine.ts
7
+ import * as fs from "fs";
8
+ import * as path from "path";
9
+ import Handlebars from "handlebars";
10
+
11
+ // src/templates/schema.ts
12
+ import { z } from "zod";
13
+ var MergeStrategySchema = z.object({
14
+ json: z.enum(["deep-merge", "overlay-wins"]).default("deep-merge"),
15
+ files: z.literal("overlay-wins").default("overlay-wins")
16
+ });
17
+ var TemplateMetadataSchema = z.object({
18
+ name: z.string(),
19
+ description: z.string(),
20
+ level: z.enum(["basic", "intermediate", "advanced"]).optional(),
21
+ framework: z.string().optional(),
22
+ extends: z.string().optional(),
23
+ mergeStrategy: MergeStrategySchema.default({}),
24
+ version: z.literal(1)
25
+ });
26
+
27
+ // src/templates/merger.ts
28
+ function isPlainObject(val) {
29
+ return typeof val === "object" && val !== null && !Array.isArray(val);
30
+ }
31
+ function deepMergeJson(base, overlay) {
32
+ const result = { ...base };
33
+ for (const key of Object.keys(overlay)) {
34
+ if (isPlainObject(result[key]) && isPlainObject(overlay[key])) {
35
+ result[key] = deepMergeJson(
36
+ result[key],
37
+ overlay[key]
38
+ );
39
+ } else {
40
+ result[key] = overlay[key];
41
+ }
42
+ }
43
+ return result;
44
+ }
45
+ var CONCAT_KEYS = /* @__PURE__ */ new Set(["dependencies", "devDependencies", "peerDependencies"]);
46
+ function mergePackageJson(base, overlay) {
47
+ const result = { ...base };
48
+ for (const key of Object.keys(overlay)) {
49
+ if (CONCAT_KEYS.has(key) && isPlainObject(result[key]) && isPlainObject(overlay[key])) {
50
+ result[key] = {
51
+ ...result[key],
52
+ ...overlay[key]
53
+ };
54
+ } else if (isPlainObject(result[key]) && isPlainObject(overlay[key])) {
55
+ result[key] = deepMergeJson(
56
+ result[key],
57
+ overlay[key]
58
+ );
59
+ } else {
60
+ result[key] = overlay[key];
61
+ }
62
+ }
63
+ return result;
64
+ }
65
+
66
+ // src/templates/engine.ts
67
+ var TemplateEngine = class {
68
+ constructor(templatesDir) {
69
+ this.templatesDir = templatesDir;
70
+ }
71
+ listTemplates() {
72
+ try {
73
+ const entries = fs.readdirSync(this.templatesDir, { withFileTypes: true });
74
+ const templates = [];
75
+ for (const entry of entries) {
76
+ if (!entry.isDirectory()) continue;
77
+ const metaPath = path.join(this.templatesDir, entry.name, "template.json");
78
+ if (!fs.existsSync(metaPath)) continue;
79
+ const raw = JSON.parse(fs.readFileSync(metaPath, "utf-8"));
80
+ const parsed = TemplateMetadataSchema.safeParse(raw);
81
+ if (parsed.success) templates.push(parsed.data);
82
+ }
83
+ return Ok(templates);
84
+ } catch (error) {
85
+ return Err(
86
+ new Error(
87
+ `Failed to list templates: ${error instanceof Error ? error.message : String(error)}`
88
+ )
89
+ );
90
+ }
91
+ }
92
+ resolveTemplate(level, framework) {
93
+ const levelDir = this.findTemplateDir(level, "level");
94
+ if (!levelDir) return Err(new Error(`Template not found for level: ${level}`));
95
+ const metaPath = path.join(levelDir, "template.json");
96
+ const metaRaw = JSON.parse(fs.readFileSync(metaPath, "utf-8"));
97
+ const metaResult = TemplateMetadataSchema.safeParse(metaRaw);
98
+ if (!metaResult.success)
99
+ return Err(new Error(`Invalid template.json in ${level}: ${metaResult.error.message}`));
100
+ const metadata = metaResult.data;
101
+ let files = [];
102
+ if (metadata.extends) {
103
+ const baseDir = path.join(this.templatesDir, metadata.extends);
104
+ if (fs.existsSync(baseDir)) files = this.collectFiles(baseDir, metadata.extends);
105
+ }
106
+ const levelFiles = this.collectFiles(levelDir, level);
107
+ files = this.mergeFileLists(files, levelFiles);
108
+ let overlayMetadata;
109
+ if (framework) {
110
+ const frameworkDir = this.findTemplateDir(framework, "framework");
111
+ if (!frameworkDir) return Err(new Error(`Framework template not found: ${framework}`));
112
+ const fMetaPath = path.join(frameworkDir, "template.json");
113
+ const fMetaRaw = JSON.parse(fs.readFileSync(fMetaPath, "utf-8"));
114
+ const fMetaResult = TemplateMetadataSchema.safeParse(fMetaRaw);
115
+ if (fMetaResult.success) overlayMetadata = fMetaResult.data;
116
+ const frameworkFiles = this.collectFiles(frameworkDir, framework);
117
+ files = this.mergeFileLists(files, frameworkFiles);
118
+ }
119
+ files = files.filter((f) => f.relativePath !== "template.json");
120
+ const resolved = { metadata, files };
121
+ if (overlayMetadata !== void 0) resolved.overlayMetadata = overlayMetadata;
122
+ return Ok(resolved);
123
+ }
124
+ render(template, context) {
125
+ const rendered = [];
126
+ const jsonBuffers = /* @__PURE__ */ new Map();
127
+ for (const file of template.files) {
128
+ const outputPath = file.relativePath.replace(/\.hbs$/, "");
129
+ if (file.isHandlebars) {
130
+ try {
131
+ const raw = fs.readFileSync(file.absolutePath, "utf-8");
132
+ const compiled = Handlebars.compile(raw, { strict: true });
133
+ const content = compiled(context);
134
+ if (outputPath.endsWith(".json") && file.relativePath.endsWith(".json.hbs")) {
135
+ if (!jsonBuffers.has(outputPath)) jsonBuffers.set(outputPath, []);
136
+ jsonBuffers.get(outputPath).push(JSON.parse(content));
137
+ } else {
138
+ rendered.push({ relativePath: outputPath, content });
139
+ }
140
+ } catch (error) {
141
+ const msg = error instanceof Error ? error.message : String(error);
142
+ return Err(
143
+ new Error(
144
+ `Template render failed in ${file.sourceTemplate}/${file.relativePath}: ${msg}`
145
+ )
146
+ );
147
+ }
148
+ } else {
149
+ try {
150
+ const content = fs.readFileSync(file.absolutePath, "utf-8");
151
+ rendered.push({ relativePath: file.relativePath, content });
152
+ } catch (error) {
153
+ const msg = error instanceof Error ? error.message : String(error);
154
+ return Err(
155
+ new Error(
156
+ `Template render failed in ${file.sourceTemplate}/${file.relativePath}: ${msg}`
157
+ )
158
+ );
159
+ }
160
+ }
161
+ }
162
+ try {
163
+ for (const [outputPath, jsons] of jsonBuffers) {
164
+ let merged = {};
165
+ for (const json of jsons) {
166
+ merged = outputPath === "package.json" ? mergePackageJson(merged, json) : deepMergeJson(merged, json);
167
+ }
168
+ rendered.push({ relativePath: outputPath, content: JSON.stringify(merged, null, 2) });
169
+ }
170
+ } catch (error) {
171
+ const msg = error instanceof Error ? error.message : String(error);
172
+ return Err(new Error(`JSON merge failed: ${msg}`));
173
+ }
174
+ return Ok({ files: rendered });
175
+ }
176
+ write(files, targetDir, options) {
177
+ try {
178
+ const written = [];
179
+ for (const file of files.files) {
180
+ const targetPath = path.join(targetDir, file.relativePath);
181
+ const dir = path.dirname(targetPath);
182
+ if (!options.overwrite && fs.existsSync(targetPath)) continue;
183
+ fs.mkdirSync(dir, { recursive: true });
184
+ fs.writeFileSync(targetPath, file.content);
185
+ written.push(file.relativePath);
186
+ }
187
+ return Ok(written);
188
+ } catch (error) {
189
+ return Err(
190
+ new Error(
191
+ `Failed to write files: ${error instanceof Error ? error.message : String(error)}`
192
+ )
193
+ );
194
+ }
195
+ }
196
+ findTemplateDir(name, type) {
197
+ const entries = fs.readdirSync(this.templatesDir, { withFileTypes: true });
198
+ for (const entry of entries) {
199
+ if (!entry.isDirectory()) continue;
200
+ const metaPath = path.join(this.templatesDir, entry.name, "template.json");
201
+ if (!fs.existsSync(metaPath)) continue;
202
+ const raw = JSON.parse(fs.readFileSync(metaPath, "utf-8"));
203
+ const parsed = TemplateMetadataSchema.safeParse(raw);
204
+ if (!parsed.success) continue;
205
+ if (type === "level" && parsed.data.level === name)
206
+ return path.join(this.templatesDir, entry.name);
207
+ if (type === "framework" && parsed.data.framework === name)
208
+ return path.join(this.templatesDir, entry.name);
209
+ if (parsed.data.name === name) return path.join(this.templatesDir, entry.name);
210
+ }
211
+ return null;
212
+ }
213
+ collectFiles(dir, sourceName) {
214
+ const files = [];
215
+ const walk = (currentDir) => {
216
+ const entries = fs.readdirSync(currentDir, { withFileTypes: true });
217
+ for (const entry of entries) {
218
+ const fullPath = path.join(currentDir, entry.name);
219
+ if (entry.isDirectory()) {
220
+ walk(fullPath);
221
+ } else {
222
+ files.push({
223
+ relativePath: path.relative(dir, fullPath).replace(/\\/g, "/"),
224
+ absolutePath: fullPath,
225
+ isHandlebars: entry.name.endsWith(".hbs"),
226
+ sourceTemplate: sourceName
227
+ });
228
+ }
229
+ }
230
+ };
231
+ walk(dir);
232
+ return files;
233
+ }
234
+ mergeFileLists(base, overlay) {
235
+ const map = /* @__PURE__ */ new Map();
236
+ for (const file of base) map.set(file.relativePath, file);
237
+ for (const file of overlay) {
238
+ if (file.relativePath.endsWith(".json.hbs")) {
239
+ const baseKey = base.find((f) => f.relativePath === file.relativePath);
240
+ if (baseKey) {
241
+ map.set(`__overlay__${file.relativePath}`, file);
242
+ } else {
243
+ map.set(file.relativePath, file);
244
+ }
245
+ } else {
246
+ map.set(file.relativePath, file);
247
+ }
248
+ }
249
+ return Array.from(map.values());
250
+ }
251
+ };
252
+
253
+ export {
254
+ TemplateEngine
255
+ };
@@ -0,0 +1,39 @@
1
+ // src/output/logger.ts
2
+ import chalk from "chalk";
3
+ var logger = {
4
+ /**
5
+ * Logs an informational message with a blue 'i' icon.
6
+ * @param message - The message to log.
7
+ */
8
+ info: (message) => console.log(chalk.blue("i"), message),
9
+ /**
10
+ * Logs a success message with a green 'v' icon.
11
+ * @param message - The message to log.
12
+ */
13
+ success: (message) => console.log(chalk.green("v"), message),
14
+ /**
15
+ * Logs a warning message with a yellow '!' icon.
16
+ * @param message - The message to log.
17
+ */
18
+ warn: (message) => console.log(chalk.yellow("!"), message),
19
+ /**
20
+ * Logs an error message with a red 'x' icon to stderr.
21
+ * @param message - The message to log.
22
+ */
23
+ error: (message) => console.error(chalk.red("x"), message),
24
+ /**
25
+ * Logs a dimmed message.
26
+ * @param message - The message to log.
27
+ */
28
+ dim: (message) => console.log(chalk.dim(message)),
29
+ /**
30
+ * Logs raw data as a formatted JSON string.
31
+ * Useful for JSON output mode.
32
+ * @param data - The data to log.
33
+ */
34
+ raw: (data) => console.log(JSON.stringify(data, null, 2))
35
+ };
36
+
37
+ export {
38
+ logger
39
+ };