@fusengine/harness 0.1.42 → 0.1.43

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 (2) hide show
  1. package/dist/cli/bin.mjs +6 -4
  2. package/package.json +1 -1
package/dist/cli/bin.mjs CHANGED
@@ -178,7 +178,7 @@ function runningVersion(moduleUrl) {
178
178
  path: found?.path ?? "unknown"
179
179
  };
180
180
  }
181
- /** One-line `pkg vX.Y.Z` banner (written to stderr on every CLI invocation). */
181
+ /** One-line `pkg vX.Y.Z` banner (stderr, only on explicit `--version`/`doctor` commands — never on `hook`, to avoid spamming automated invocations). */
182
182
  function versionBanner(moduleUrl) {
183
183
  return `${PKG} v${runningVersion(moduleUrl).version}`;
184
184
  }
@@ -244,12 +244,14 @@ async function readStdin() {
244
244
  }
245
245
  }
246
246
  const cmd = process.argv[2];
247
- process.stderr.write(versionBanner(import.meta.url) + "\n");
248
247
  if (cmd === "--version" || cmd === "-v") {
248
+ process.stderr.write(versionBanner(import.meta.url) + "\n");
249
249
  process.stdout.write(runningVersion(import.meta.url).version + "\n");
250
250
  process.exit(0);
251
- } else if (cmd === "doctor") process.exit(await runDoctor(import.meta.url));
252
- else if (cmd === "hook") {
251
+ } else if (cmd === "doctor") {
252
+ process.stderr.write(versionBanner(import.meta.url) + "\n");
253
+ process.exit(await runDoctor(import.meta.url));
254
+ } else if (cmd === "hook") {
253
255
  const id = process.argv[3] ?? detectHarness().id;
254
256
  loadDotenv(id);
255
257
  const scopeArg = process.argv[4];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fusengine/harness",
3
- "version": "0.1.42",
3
+ "version": "0.1.43",
4
4
  "description": "Harness-agnostic toolkit for AI coding agents: runtime harness detection (Claude Code, Codex, Cursor, Cline, Gemini, Aider...), pure policy core (env config, project/framework detection, SOLID/file-size limits, APEX freshness, guard patterns, portable prompts), cache, project memory, ref routing, state/locks, statusline, per-harness adapters (Claude/Cursor/Cline/Gemini) and a cli-mode harness-check binary. Bun-native, with a built dist for Node + bundlers.",
5
5
  "type": "module",
6
6
  "module": "src/index.ts",