@harness-engineering/cli 2.6.0 → 2.6.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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  startServer
4
- } from "../chunk-ORNMAYHB.js";
4
+ } from "../chunk-372MGNTI.js";
5
5
  import "../chunk-HFOB2MPQ.js";
6
6
  import "../chunk-Q6ZR2L6Q.js";
7
7
  import "../chunk-OA6SWTU4.js";
@@ -3,7 +3,7 @@ import {
3
3
  createProgram,
4
4
  installCommandTelemetry,
5
5
  printFirstRunWelcome
6
- } from "../chunk-NX6A24DS.js";
6
+ } from "../chunk-CQOMVZDC.js";
7
7
  import "../chunk-L5BCZ5XS.js";
8
8
  import "../chunk-JFZOWO7D.js";
9
9
  import "../chunk-YP7I25SL.js";
@@ -11,7 +11,7 @@ import "../chunk-24KCOJJG.js";
11
11
  import "../chunk-PFZEADQM.js";
12
12
  import "../chunk-KET4QQZB.js";
13
13
  import "../chunk-5XLLIYYL.js";
14
- import "../chunk-HYTRDAHV.js";
14
+ import "../chunk-VUCGB2KH.js";
15
15
  import "../chunk-CQ553GZO.js";
16
16
  import "../chunk-ZP5E7YET.js";
17
17
  import "../chunk-K246XQ2L.js";
@@ -21,7 +21,7 @@ import "../chunk-TEFCFC4H.js";
21
21
  import "../chunk-43M3RLFQ.js";
22
22
  import {
23
23
  dispatchSkillsFromGit
24
- } from "../chunk-ORNMAYHB.js";
24
+ } from "../chunk-372MGNTI.js";
25
25
  import "../chunk-HFOB2MPQ.js";
26
26
  import "../chunk-Q6ZR2L6Q.js";
27
27
  import "../chunk-OA6SWTU4.js";
@@ -331,7 +331,17 @@ security/*
331
331
  !security/timeline.json
332
332
  `;
333
333
  fs.mkdirSync(path.dirname(gitignorePath), { recursive: true });
334
- fs.writeFileSync(gitignorePath, content);
334
+ if (!fs.existsSync(gitignorePath)) {
335
+ fs.writeFileSync(gitignorePath, content);
336
+ return;
337
+ }
338
+ const existing = fs.readFileSync(gitignorePath, "utf8");
339
+ const existingLines = new Set(existing.split("\n").map((l) => l.trim()));
340
+ const missing = content.split("\n").filter((l) => l.trim() && !l.startsWith("#") && !existingLines.has(l.trim()));
341
+ if (missing.length > 0) {
342
+ const prefix = existing.endsWith("\n") ? "" : "\n";
343
+ fs.appendFileSync(gitignorePath, prefix + missing.join("\n") + "\n");
344
+ }
335
345
  }
336
346
  function appendFrameworkAgents(targetDir, framework, language) {
337
347
  if (!framework) return;
@@ -901,7 +911,7 @@ ${skippedMsg}`
901
911
  async function handleInitProject(input) {
902
912
  const i = input;
903
913
  try {
904
- const { TemplateEngine } = await import("./engine-KZ3PPUYE.js");
914
+ const { TemplateEngine } = await import("./engine-GKGT5ULT.js");
905
915
  const engine = new TemplateEngine(resolveTemplatesDir());
906
916
  const safePath = sanitizePath(i.path);
907
917
  const detected = tryDetectFramework(engine, safePath, i);
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-5XLLIYYL.js";
21
21
  import {
22
22
  TemplateEngine
23
- } from "./chunk-HYTRDAHV.js";
23
+ } from "./chunk-VUCGB2KH.js";
24
24
  import {
25
25
  generate,
26
26
  validate
@@ -60,7 +60,7 @@ import {
60
60
  loadCachedSnapshot,
61
61
  persistToolingConfig,
62
62
  recommend
63
- } from "./chunk-ORNMAYHB.js";
63
+ } from "./chunk-372MGNTI.js";
64
64
  import {
65
65
  VALID_PLATFORMS
66
66
  } from "./chunk-3ISINLYT.js";
@@ -6727,7 +6727,7 @@ function createMcpCommand() {
6727
6727
  parseBudget
6728
6728
  ).action(async (opts) => {
6729
6729
  const [{ startServer: startServer2, getToolDefinitions: getToolDefinitions2 }, { selectTier }] = await Promise.all([
6730
- import("./mcp-GZH4EYGD.js"),
6730
+ import("./mcp-YKKPWUMH.js"),
6731
6731
  import("./tool-tiers-B7JC2XC3.js")
6732
6732
  ]);
6733
6733
  if (opts.tools && opts.tools.length > 0) {
@@ -93,6 +93,7 @@ var NON_JSON_PACKAGE_CONFIGS = /* @__PURE__ */ new Set([
93
93
  "build.gradle.kts"
94
94
  ]);
95
95
  var HARNESS_CONFIG_FILES = /* @__PURE__ */ new Set(["harness.config.json", "AGENTS.md", ".harness/.gitignore"]);
96
+ var IGNORED_TEMPLATE_FILES = /* @__PURE__ */ new Set([".DS_Store", "Thumbs.db", "desktop.ini"]);
96
97
  function isHarnessConfigFile(relativePath) {
97
98
  return HARNESS_CONFIG_FILES.has(relativePath);
98
99
  }
@@ -372,6 +373,7 @@ var TemplateEngine = class {
372
373
  const walk = (currentDir) => {
373
374
  const entries = fs.readdirSync(currentDir, { withFileTypes: true });
374
375
  for (const entry of entries) {
376
+ if (IGNORED_TEMPLATE_FILES.has(entry.name)) continue;
375
377
  const fullPath = path.join(currentDir, entry.name);
376
378
  if (entry.isDirectory()) {
377
379
  walk(fullPath);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TemplateEngine
3
- } from "./chunk-HYTRDAHV.js";
3
+ } from "./chunk-VUCGB2KH.js";
4
4
  import "./chunk-YYRQCQPZ.js";
5
5
  import "./chunk-SZEFU6XC.js";
6
6
  import "./chunk-OH3NXXUY.js";
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  runSnapshotCapture,
13
13
  runUninstall,
14
14
  runUninstallConstraints
15
- } from "./chunk-NX6A24DS.js";
15
+ } from "./chunk-CQOMVZDC.js";
16
16
  import {
17
17
  generateRuntime
18
18
  } from "./chunk-L5BCZ5XS.js";
@@ -40,7 +40,7 @@ import {
40
40
  } from "./chunk-5XLLIYYL.js";
41
41
  import {
42
42
  TemplateEngine
43
- } from "./chunk-HYTRDAHV.js";
43
+ } from "./chunk-VUCGB2KH.js";
44
44
  import "./chunk-CQ553GZO.js";
45
45
  import {
46
46
  generateSkillFiles
@@ -69,7 +69,7 @@ import {
69
69
  generateSlashCommands,
70
70
  getToolDefinitions,
71
71
  startServer
72
- } from "./chunk-ORNMAYHB.js";
72
+ } from "./chunk-372MGNTI.js";
73
73
  import "./chunk-HFOB2MPQ.js";
74
74
  import "./chunk-Q6ZR2L6Q.js";
75
75
  import "./chunk-OA6SWTU4.js";
@@ -2,7 +2,7 @@ import {
2
2
  createHarnessServer,
3
3
  getToolDefinitions,
4
4
  startServer
5
- } from "./chunk-ORNMAYHB.js";
5
+ } from "./chunk-372MGNTI.js";
6
6
  import "./chunk-HFOB2MPQ.js";
7
7
  import "./chunk-Q6ZR2L6Q.js";
8
8
  import "./chunk-OA6SWTU4.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harness-engineering/cli",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "CLI for Harness Engineering toolkit",
5
5
  "type": "module",
6
6
  "bin": {
@@ -38,11 +38,11 @@
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.28.0",
42
41
  "@harness-engineering/dashboard": "0.7.0",
43
- "@harness-engineering/graph": "0.9.0",
42
+ "@harness-engineering/core": "0.28.0",
44
43
  "@harness-engineering/linter-gen": "0.1.7",
45
44
  "@harness-engineering/orchestrator": "0.6.0",
45
+ "@harness-engineering/graph": "0.9.0",
46
46
  "@harness-engineering/types": "0.14.0"
47
47
  },
48
48
  "peerDependencies": {