@vectorize-io/hindsight-coding-agents 0.8.5 → 0.8.7

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 +36 -30
  2. package/dist/antigravity-hook.js +130 -135
  3. package/dist/antigravity-statusline.js +1 -1
  4. package/dist/antigravity-stop-hook.js +113 -114
  5. package/dist/claude-hook.js +130 -135
  6. package/dist/claude-sessionstart-hook.js +205 -215
  7. package/dist/claude-stop-hook.js +113 -114
  8. package/dist/cline.js +206 -211
  9. package/dist/codebuddy-hook.js +130 -135
  10. package/dist/codebuddy-sessionstart-hook.js +205 -215
  11. package/dist/codebuddy-stop-hook.js +113 -114
  12. package/dist/codex-hook.js +130 -135
  13. package/dist/codex-sessionstart-hook.js +205 -215
  14. package/dist/codex-stop-hook.js +113 -114
  15. package/dist/copilot-hook.js +130 -135
  16. package/dist/copilot-sessionstart-hook.js +205 -215
  17. package/dist/copilot-stop-hook.js +113 -114
  18. package/dist/cursor-hook.js +130 -135
  19. package/dist/cursor-sessionstart-hook.js +205 -215
  20. package/dist/cursor-stop-hook.js +113 -114
  21. package/dist/daemon-start.js +1 -1
  22. package/dist/dcode-hook.js +130 -135
  23. package/dist/dcode-sessionstart-hook.js +205 -215
  24. package/dist/dcode-stop-hook.js +113 -114
  25. package/dist/deepen.js +80 -79
  26. package/dist/devin-hook.js +130 -135
  27. package/dist/devin-sessionstart-hook.js +205 -215
  28. package/dist/devin-stop-hook.js +113 -114
  29. package/dist/droid-hook.js +130 -135
  30. package/dist/droid-sessionstart-hook.js +205 -215
  31. package/dist/droid-stop-hook.js +113 -114
  32. package/dist/dsh.js +235 -248
  33. package/dist/grok-hook.js +130 -135
  34. package/dist/grok-sessionstart-hook.js +205 -215
  35. package/dist/grok-stop-hook.js +113 -114
  36. package/dist/hindsight-seed.js +1 -1
  37. package/dist/index.js +236 -249
  38. package/dist/installer.js +30 -28
  39. package/dist/kilo.js +236 -249
  40. package/dist/kimi-hook.js +130 -135
  41. package/dist/kimi-sessionstart-hook.js +205 -215
  42. package/dist/kimi-stop-hook.js +113 -114
  43. package/dist/mcp-server.js +94 -93
  44. package/dist/opencode2.js +236 -249
  45. package/dist/pi.js +235 -248
  46. package/dist/prime-agent.js +235 -248
  47. package/dist/qwen-hook.js +130 -135
  48. package/dist/qwen-sessionstart-hook.js +205 -215
  49. package/dist/qwen-stop-hook.js +113 -114
  50. package/dist/status.js +80 -79
  51. package/dist/traecode-hook.js +130 -135
  52. package/dist/traecode-sessionstart-hook.js +205 -215
  53. package/dist/traecode-stop-hook.js +113 -114
  54. package/dist/workbuddy-hook.js +130 -135
  55. package/dist/workbuddy-sessionstart-hook.js +205 -215
  56. package/dist/workbuddy-stop-hook.js +113 -114
  57. package/dist/zcode-hook.js +130 -135
  58. package/dist/zcode-sessionstart-hook.js +205 -215
  59. package/dist/zcode-stop-hook.js +113 -114
  60. package/package.json +2 -1
  61. package/plugin.json +1 -1
  62. package/skill/SKILL.md +26 -26
package/dist/installer.js CHANGED
@@ -2217,7 +2217,7 @@ var PAGE_TAXONOMY = [
2217
2217
  var PAGE_NAMES = PAGE_TAXONOMY.map((page) => page.name);
2218
2218
 
2219
2219
  // package.json
2220
- var version = "0.8.5";
2220
+ var version = "0.8.7";
2221
2221
 
2222
2222
  // src/core/util.ts
2223
2223
  import { accessSync, constants, statSync as statSync2 } from "fs";
@@ -2241,32 +2241,8 @@ var RETRY_AFTER_CEILING_MS = 60 * 1e3;
2241
2241
  var CONFIG_PATH = process.env.HINDSIGHT_CONFIG || join7(homedir3(), ".hindsight", "coding-agent.json");
2242
2242
  var DEFAULT_DAEMON_PORT = 9077;
2243
2243
 
2244
- // src/core/brand.ts
2245
- function brandWord() {
2246
- const start = [0, 116, 217];
2247
- const end = [0, 146, 150];
2248
- const word = "Hindsight";
2249
- let out = "";
2250
- for (let i = 0; i < word.length; i++) {
2251
- const t = i / (word.length - 1);
2252
- const [r, g, b] = start.map((s, k) => Math.round(s + (end[k] - s) * t));
2253
- out += `\x1B[38;2;${r};${g};${b}m${word[i]}`;
2254
- }
2255
- return `${out}\x1B[0m`;
2256
- }
2257
-
2258
- // src/core/session-cache.ts
2259
- import { mkdirSync as mkdirSync2, readFileSync as readFileSync4, renameSync as renameSync2, rmSync, writeFileSync } from "fs";
2260
- import { tmpdir } from "os";
2261
- import { dirname as dirname5, join as join8 } from "path";
2262
-
2263
- // src/core/turn-journal.ts
2264
- import { appendFileSync as appendFileSync2, mkdirSync as mkdirSync3, readFileSync as readFileSync5, statSync as statSync3 } from "fs";
2265
- import { tmpdir as tmpdir2 } from "os";
2266
- import { dirname as dirname6, join as join9 } from "path";
2267
-
2268
2244
  // src/core/transcript-util.ts
2269
- var MEMORY_TAG_RE = /<(hook_prompt|task-notification|system-reminder|hindsight_memory|hindsight_memories|hindsight_bank|relevant_memories|user_feedback|hindsight_knowledge|hindsight_knowledge_refresh)\b[\s\S]*?<\/\1>/g;
2245
+ var MEMORY_TAG_RE = /<(hook_prompt|task-notification|system-reminder|hindsight_memory|hindsight_memories|hindsight_bank|relevant_memories|user_feedback|hindsight_pages|hindsight_page_refresh|hindsight_knowledge|hindsight_knowledge_refresh)\b[\s\S]*?<\/\1>/g;
2270
2246
  function stripInjectedMemory(s) {
2271
2247
  return s.replace(MEMORY_TAG_RE, "");
2272
2248
  }
@@ -2300,7 +2276,29 @@ function actionLine(tool, input) {
2300
2276
  return target ? `${tool} ${target}` : tool;
2301
2277
  }
2302
2278
 
2279
+ // src/core/brand.ts
2280
+ function brandWord() {
2281
+ const start = [0, 116, 217];
2282
+ const end = [0, 146, 150];
2283
+ const word = "Hindsight";
2284
+ let out = "";
2285
+ for (let i = 0; i < word.length; i++) {
2286
+ const t = i / (word.length - 1);
2287
+ const [r, g, b] = start.map((s, k) => Math.round(s + (end[k] - s) * t));
2288
+ out += `\x1B[38;2;${r};${g};${b}m${word[i]}`;
2289
+ }
2290
+ return `${out}\x1B[0m`;
2291
+ }
2292
+
2293
+ // src/core/session-cache.ts
2294
+ import { mkdirSync as mkdirSync2, readFileSync as readFileSync4, renameSync as renameSync2, rmSync, writeFileSync } from "fs";
2295
+ import { tmpdir } from "os";
2296
+ import { dirname as dirname5, join as join8 } from "path";
2297
+
2303
2298
  // src/core/turn-journal.ts
2299
+ import { appendFileSync as appendFileSync2, mkdirSync as mkdirSync3, readFileSync as readFileSync5, statSync as statSync3 } from "fs";
2300
+ import { tmpdir as tmpdir2 } from "os";
2301
+ import { dirname as dirname6, join as join9 } from "path";
2304
2302
  var JOURNAL_MAX_BYTES = 8 * 1024 * 1024;
2305
2303
 
2306
2304
  // src/core/retain-cursor.ts
@@ -2472,10 +2470,14 @@ function usageFilePath() {
2472
2470
  return process.env.HINDSIGHT_USAGE_FILE || join11(logsDir(), "usage.jsonl");
2473
2471
  }
2474
2472
  var RETRIEVAL_TOOLS = /* @__PURE__ */ new Set([
2473
+ "hindsight_search_pages",
2474
+ "hindsight_list_pages",
2475
+ "hindsight_read_page",
2476
+ "hindsight_reflect",
2477
+ // Pre-rename names, still in transcripts recorded before the page tools were renamed. Remove in 2.x.
2475
2478
  "hindsight_search_knowledge_pages",
2476
2479
  "hindsight_list_knowledge_pages",
2477
- "hindsight_read_knowledge_page",
2478
- "hindsight_reflect"
2480
+ "hindsight_read_knowledge_page"
2479
2481
  ]);
2480
2482
  function isUsageLine(v) {
2481
2483
  const r = v;