@vectorize-io/hindsight-coding-agents 0.8.6 → 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.
- package/README.md +23 -18
- package/dist/antigravity-hook.js +130 -135
- package/dist/antigravity-statusline.js +1 -1
- package/dist/antigravity-stop-hook.js +113 -114
- package/dist/claude-hook.js +130 -135
- package/dist/claude-sessionstart-hook.js +127 -128
- package/dist/claude-stop-hook.js +113 -114
- package/dist/cline.js +128 -124
- package/dist/codebuddy-hook.js +130 -135
- package/dist/codebuddy-sessionstart-hook.js +127 -128
- package/dist/codebuddy-stop-hook.js +113 -114
- package/dist/codex-hook.js +130 -135
- package/dist/codex-sessionstart-hook.js +127 -128
- package/dist/codex-stop-hook.js +113 -114
- package/dist/copilot-hook.js +130 -135
- package/dist/copilot-sessionstart-hook.js +127 -128
- package/dist/copilot-stop-hook.js +113 -114
- package/dist/cursor-hook.js +130 -135
- package/dist/cursor-sessionstart-hook.js +127 -128
- package/dist/cursor-stop-hook.js +113 -114
- package/dist/daemon-start.js +1 -1
- package/dist/dcode-hook.js +130 -135
- package/dist/dcode-sessionstart-hook.js +127 -128
- package/dist/dcode-stop-hook.js +113 -114
- package/dist/deepen.js +80 -79
- package/dist/devin-hook.js +130 -135
- package/dist/devin-sessionstart-hook.js +127 -128
- package/dist/devin-stop-hook.js +113 -114
- package/dist/droid-hook.js +130 -135
- package/dist/droid-sessionstart-hook.js +127 -128
- package/dist/droid-stop-hook.js +113 -114
- package/dist/dsh.js +157 -161
- package/dist/grok-hook.js +130 -135
- package/dist/grok-sessionstart-hook.js +127 -128
- package/dist/grok-stop-hook.js +113 -114
- package/dist/hindsight-seed.js +1 -1
- package/dist/index.js +158 -162
- package/dist/installer.js +30 -28
- package/dist/kilo.js +158 -162
- package/dist/kimi-hook.js +130 -135
- package/dist/kimi-sessionstart-hook.js +127 -128
- package/dist/kimi-stop-hook.js +113 -114
- package/dist/mcp-server.js +94 -93
- package/dist/opencode2.js +158 -162
- package/dist/pi.js +157 -161
- package/dist/prime-agent.js +157 -161
- package/dist/qwen-hook.js +130 -135
- package/dist/qwen-sessionstart-hook.js +127 -128
- package/dist/qwen-stop-hook.js +113 -114
- package/dist/status.js +80 -79
- package/dist/traecode-hook.js +130 -135
- package/dist/traecode-sessionstart-hook.js +127 -128
- package/dist/traecode-stop-hook.js +113 -114
- package/dist/workbuddy-hook.js +130 -135
- package/dist/workbuddy-sessionstart-hook.js +127 -128
- package/dist/workbuddy-stop-hook.js +113 -114
- package/dist/zcode-hook.js +130 -135
- package/dist/zcode-sessionstart-hook.js +127 -128
- package/dist/zcode-stop-hook.js +113 -114
- package/package.json +2 -1
- package/plugin.json +1 -1
- package/skill/SKILL.md +23 -23
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.
|
|
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;
|