@vectorize-io/hindsight-coding-agents 0.8.0 → 0.8.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.
Files changed (62) hide show
  1. package/README.md +67 -6
  2. package/dist/antigravity-hook.js +441 -80
  3. package/dist/antigravity-statusline.js +9 -4
  4. package/dist/antigravity-stop-hook.js +441 -95
  5. package/dist/claude-hook.js +441 -80
  6. package/dist/claude-sessionstart-hook.js +473 -93
  7. package/dist/claude-stop-hook.js +441 -95
  8. package/dist/cline.js +290 -95
  9. package/dist/codebuddy-hook.js +4270 -0
  10. package/dist/codebuddy-sessionstart-hook.js +5030 -0
  11. package/dist/codebuddy-stop-hook.js +4564 -0
  12. package/dist/codex-hook.js +441 -80
  13. package/dist/codex-sessionstart-hook.js +473 -93
  14. package/dist/codex-stop-hook.js +441 -95
  15. package/dist/copilot-hook.js +441 -80
  16. package/dist/copilot-sessionstart-hook.js +473 -93
  17. package/dist/copilot-stop-hook.js +441 -95
  18. package/dist/cursor-hook.js +441 -80
  19. package/dist/cursor-sessionstart-hook.js +473 -93
  20. package/dist/cursor-stop-hook.js +441 -95
  21. package/dist/daemon-start.js +16 -8
  22. package/dist/dcode-hook.js +441 -80
  23. package/dist/dcode-sessionstart-hook.js +473 -93
  24. package/dist/dcode-stop-hook.js +441 -95
  25. package/dist/deepen.js +140 -49
  26. package/dist/devin-hook.js +441 -80
  27. package/dist/devin-sessionstart-hook.js +473 -93
  28. package/dist/devin-stop-hook.js +441 -95
  29. package/dist/droid-hook.js +441 -80
  30. package/dist/droid-sessionstart-hook.js +473 -93
  31. package/dist/droid-stop-hook.js +441 -95
  32. package/dist/dsh.js +297 -95
  33. package/dist/grok-hook.js +441 -80
  34. package/dist/grok-sessionstart-hook.js +473 -93
  35. package/dist/grok-stop-hook.js +441 -95
  36. package/dist/hindsight-seed.js +9 -4
  37. package/dist/index.js +299 -104
  38. package/dist/installer.js +1043 -647
  39. package/dist/kilo.js +299 -104
  40. package/dist/kimi-hook.js +441 -80
  41. package/dist/kimi-sessionstart-hook.js +473 -93
  42. package/dist/kimi-stop-hook.js +441 -95
  43. package/dist/mcp-server.js +261 -86
  44. package/dist/opencode2.js +296 -101
  45. package/dist/pi.js +352 -107
  46. package/dist/prime-agent.js +352 -107
  47. package/dist/qwen-hook.js +441 -80
  48. package/dist/qwen-sessionstart-hook.js +473 -93
  49. package/dist/qwen-stop-hook.js +441 -95
  50. package/dist/status.js +115 -42
  51. package/dist/traecode-hook.js +441 -80
  52. package/dist/traecode-sessionstart-hook.js +473 -93
  53. package/dist/traecode-stop-hook.js +441 -95
  54. package/dist/workbuddy-hook.js +4270 -0
  55. package/dist/workbuddy-sessionstart-hook.js +5030 -0
  56. package/dist/workbuddy-stop-hook.js +4564 -0
  57. package/dist/zcode-hook.js +441 -80
  58. package/dist/zcode-sessionstart-hook.js +473 -93
  59. package/dist/zcode-stop-hook.js +441 -95
  60. package/package.json +9 -3
  61. package/plugin.json +1 -1
  62. package/skill/SKILL.md +4 -4
@@ -27,8 +27,8 @@ function getEmbedCommand(opts = {}) {
27
27
  if (opts.embedPackagePath) {
28
28
  return ["uv", "run", "--directory", opts.embedPackagePath, "hindsight-embed"];
29
29
  }
30
- const version = opts.embedVersion && opts.embedVersion.length > 0 ? opts.embedVersion : "latest";
31
- return ["uvx", `hindsight-embed@${version}`];
30
+ const version2 = opts.embedVersion && opts.embedVersion.length > 0 ? opts.embedVersion : "latest";
31
+ return ["uvx", `hindsight-embed@${version2}`];
32
32
  }
33
33
  var silentLogger, consoleLogger, DEFAULT_PORT, DEFAULT_HOST, DEFAULT_PROFILE, DEFAULT_READY_TIMEOUT_MS, DEFAULT_READY_POLL_INTERVAL_MS, HindsightServer;
34
34
  var init_dist = __esm({
@@ -112,7 +112,7 @@ var init_dist = __esm({
112
112
  embedPackagePath: this.embedPackagePath
113
113
  });
114
114
  const args = [...baseArgs, "daemon", "--profile", this.profile, "stop"];
115
- const child = spawn(cmd, args, { stdio: "pipe" });
115
+ const child = spawn(cmd, args, { stdio: "pipe", windowsHide: true });
116
116
  this.pipeOutput(child, "daemon.stop");
117
117
  await new Promise((resolve2) => {
118
118
  const timeout = setTimeout(() => {
@@ -231,7 +231,7 @@ var init_dist = __esm({
231
231
  * once it exits with code 0. Rejects on non-zero exit or spawn error.
232
232
  */
233
233
  async runCommand(cmd, args, env, label) {
234
- const child = spawn(cmd, args, { stdio: "pipe", env });
234
+ const child = spawn(cmd, args, { stdio: "pipe", env, windowsHide: true });
235
235
  let output = "";
236
236
  child.stdout?.on("data", (data) => {
237
237
  const text = data.toString();
@@ -300,7 +300,7 @@ var init_dist = __esm({
300
300
  });
301
301
 
302
302
  // src/core/config.ts
303
- import { readFileSync as readFileSync2 } from "fs";
303
+ import { readFileSync as readFileSync3 } from "fs";
304
304
  import { homedir as homedir3 } from "os";
305
305
  import { join as join7 } from "path";
306
306
 
@@ -316,6 +316,7 @@ import { homedir as homedir2 } from "os";
316
316
  import { basename, dirname as dirname4, join as join5, normalize, sep } from "path";
317
317
 
318
318
  // src/core/diag.ts
319
+ import { readFileSync } from "fs";
319
320
  import { join as join3 } from "path";
320
321
 
321
322
  // src/core/log.ts
@@ -377,7 +378,7 @@ function diag(harness, event, extra = {}) {
377
378
  }
378
379
 
379
380
  // src/core/git-layout.ts
380
- import { lstatSync, readFileSync, realpathSync } from "fs";
381
+ import { lstatSync, readFileSync as readFileSync2, realpathSync } from "fs";
381
382
  import { dirname as dirname3, isAbsolute, join as join4, resolve } from "path";
382
383
 
383
384
  // src/core/missions.ts
@@ -449,11 +450,15 @@ var PLUGIN_GOVERNED_BANK_FIELDS = [
449
450
  "retain_extraction_mode"
450
451
  ];
451
452
 
453
+ // package.json
454
+ var version = "0.8.1";
455
+
452
456
  // src/core/util.ts
453
457
  import { accessSync, constants } from "fs";
454
458
  import { delimiter, join as join6 } from "path";
455
459
 
456
460
  // src/core/hindsight.ts
461
+ var USER_AGENT = `hindsight-coding-agents/${version}`;
457
462
  var DEFAULT_OBSERVATION_SCOPES = "shared";
458
463
  var DEFAULT_PAGE_SEARCH_LIMIT = 10;
459
464
  var RETRY_AFTER_FLOOR_MS = 10 * 1e3;
@@ -669,7 +674,7 @@ function resolveConfig(raw = {}) {
669
674
  }
670
675
  function readRaw(path) {
671
676
  try {
672
- return JSON.parse(readFileSync2(path, "utf8"));
677
+ return JSON.parse(readFileSync3(path, "utf8"));
673
678
  } catch (e) {
674
679
  if (e?.code !== "ENOENT") {
675
680
  console.error(`hindsight: ignoring invalid config at ${path}: ${e?.message || e}`);
@@ -802,7 +807,10 @@ import { dirname as dirname5, join as join8 } from "path";
802
807
  import { fileURLToPath as fileURLToPath2 } from "url";
803
808
  async function isServerHealthy(baseUrl, timeoutMs = 2e3) {
804
809
  try {
805
- const res = await fetch(`${baseUrl}/health`, { signal: AbortSignal.timeout(timeoutMs) });
810
+ const res = await fetch(`${baseUrl}/health`, {
811
+ headers: { "User-Agent": USER_AGENT },
812
+ signal: AbortSignal.timeout(timeoutMs)
813
+ });
806
814
  return res.ok;
807
815
  } catch {
808
816
  return false;