@vectorize-io/hindsight-coding-agents 0.8.3 → 0.8.5
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/dist/antigravity-hook.js +1 -1
- package/dist/antigravity-statusline.js +1 -1
- package/dist/antigravity-stop-hook.js +1 -1
- package/dist/claude-hook.js +1 -1
- package/dist/claude-sessionstart-hook.js +10 -3
- package/dist/claude-stop-hook.js +1 -1
- package/dist/cline.js +11 -4
- package/dist/codebuddy-hook.js +1 -1
- package/dist/codebuddy-sessionstart-hook.js +10 -3
- package/dist/codebuddy-stop-hook.js +1 -1
- package/dist/codex-hook.js +1 -1
- package/dist/codex-sessionstart-hook.js +10 -3
- package/dist/codex-stop-hook.js +1 -1
- package/dist/copilot-hook.js +1 -1
- package/dist/copilot-sessionstart-hook.js +10 -3
- package/dist/copilot-stop-hook.js +1 -1
- package/dist/cursor-hook.js +1 -1
- package/dist/cursor-sessionstart-hook.js +10 -3
- package/dist/cursor-stop-hook.js +1 -1
- package/dist/daemon-start.js +1 -1
- package/dist/dcode-hook.js +1 -1
- package/dist/dcode-sessionstart-hook.js +10 -3
- package/dist/dcode-stop-hook.js +1 -1
- package/dist/deepen.js +1 -1
- package/dist/devin-hook.js +1 -1
- package/dist/devin-sessionstart-hook.js +10 -3
- package/dist/devin-stop-hook.js +1 -1
- package/dist/droid-hook.js +1 -1
- package/dist/droid-sessionstart-hook.js +10 -3
- package/dist/droid-stop-hook.js +1 -1
- package/dist/dsh.js +11 -4
- package/dist/grok-hook.js +1 -1
- package/dist/grok-sessionstart-hook.js +10 -3
- package/dist/grok-stop-hook.js +1 -1
- package/dist/hindsight-seed.js +1 -1
- package/dist/index.js +11 -4
- package/dist/installer.js +1 -1
- package/dist/kilo.js +11 -4
- package/dist/kimi-hook.js +1 -1
- package/dist/kimi-sessionstart-hook.js +10 -3
- package/dist/kimi-stop-hook.js +1 -1
- package/dist/mcp-server.js +1 -1
- package/dist/opencode2.js +11 -4
- package/dist/pi.js +12 -5
- package/dist/prime-agent.js +12 -5
- package/dist/qwen-hook.js +1 -1
- package/dist/qwen-sessionstart-hook.js +10 -3
- package/dist/qwen-stop-hook.js +1 -1
- package/dist/status.js +1 -1
- package/dist/traecode-hook.js +1 -1
- package/dist/traecode-sessionstart-hook.js +10 -3
- package/dist/traecode-stop-hook.js +1 -1
- package/dist/workbuddy-hook.js +1 -1
- package/dist/workbuddy-sessionstart-hook.js +10 -3
- package/dist/workbuddy-stop-hook.js +1 -1
- package/dist/zcode-hook.js +1 -1
- package/dist/zcode-sessionstart-hook.js +10 -3
- package/dist/zcode-stop-hook.js +1 -1
- package/package.json +2 -1
- package/plugin.json +1 -1
package/dist/droid-stop-hook.js
CHANGED
|
@@ -633,7 +633,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
// package.json
|
|
636
|
-
var version = "0.8.
|
|
636
|
+
var version = "0.8.5";
|
|
637
637
|
|
|
638
638
|
// src/core/util.ts
|
|
639
639
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
package/dist/dsh.js
CHANGED
|
@@ -656,7 +656,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
// package.json
|
|
659
|
-
var version = "0.8.
|
|
659
|
+
var version = "0.8.5";
|
|
660
660
|
|
|
661
661
|
// src/core/util.ts
|
|
662
662
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
|
@@ -2109,7 +2109,8 @@ async function npmViewVersion(pkg, spawnImpl = realSpawn2) {
|
|
|
2109
2109
|
child.on("close", (code, signal) => {
|
|
2110
2110
|
if (code !== 0) return done("", `npm view exited ${code ?? signal}`);
|
|
2111
2111
|
try {
|
|
2112
|
-
const
|
|
2112
|
+
const parsed = JSON.parse(out.trim());
|
|
2113
|
+
const v = Array.isArray(parsed) && parsed.length === 1 ? parsed[0] : parsed;
|
|
2113
2114
|
if (typeof v !== "string")
|
|
2114
2115
|
return done("", `unparsable npm output: ${out.trim().slice(0, 80)}`);
|
|
2115
2116
|
if (!RELEASE_RE.test(v)) return done("", `not a release: ${v.slice(0, 40)}`);
|
|
@@ -17310,6 +17311,8 @@ function resolveAgentBin(harness, claudeBin) {
|
|
|
17310
17311
|
return process.env.HINDSIGHT_ANTIGRAVITY_BIN || "agy";
|
|
17311
17312
|
case "opencode":
|
|
17312
17313
|
return process.env.HINDSIGHT_OPENCODE_BIN || "opencode";
|
|
17314
|
+
default:
|
|
17315
|
+
return void 0;
|
|
17313
17316
|
}
|
|
17314
17317
|
}
|
|
17315
17318
|
function opencodeCanDefineSurveyAgent(bin) {
|
|
@@ -17338,7 +17341,10 @@ var SURVEY_DISALLOWED_TOOLS = [
|
|
|
17338
17341
|
var tomlValue = (value) => stringify({ v: value }).slice("v = ".length).trim();
|
|
17339
17342
|
function buildSurveyPlan(harness, bin, repoDir, opts) {
|
|
17340
17343
|
const env = {
|
|
17341
|
-
|
|
17344
|
+
// Terminal managers name the user's pane in env vars and hook the agent's Stop: inherited,
|
|
17345
|
+
// they made the survey's run look like the user's, so Orca closed the pane and Herdr rebound
|
|
17346
|
+
// it to the survey's session (#6075).
|
|
17347
|
+
...Object.fromEntries(Object.entries(process.env).filter(([k]) => !/^(ORCA|HERDR)_/.test(k))),
|
|
17342
17348
|
// Anti-recursion: the survey's own agent session must not fire our hooks (session-start,
|
|
17343
17349
|
// UserPromptSubmit/BeforeAgent, Stop/SessionEnd) or re-seed — see the HINDSIGHT_DISABLE_HOOKS
|
|
17344
17350
|
// guard in hook.ts / retain-hook.ts / session-start.ts / runtime.ts.
|
|
@@ -17447,6 +17453,7 @@ async function startCodebaseSurvey(repoDir, opts = {}) {
|
|
|
17447
17453
|
if (seen.has(harness)) continue;
|
|
17448
17454
|
seen.add(harness);
|
|
17449
17455
|
const name2 = resolveAgentBin(harness, opts.claudeBin);
|
|
17456
|
+
if (!name2) continue;
|
|
17450
17457
|
const bin = resolveBin(name2);
|
|
17451
17458
|
if (!bin) {
|
|
17452
17459
|
log.info("survey", `${harness}: ${name2} not found, trying the next agent`);
|
|
@@ -18899,7 +18906,7 @@ var RuntimeCore = class {
|
|
|
18899
18906
|
}
|
|
18900
18907
|
if (output.context) blocks.push(output.context);
|
|
18901
18908
|
if (output.notice) {
|
|
18902
|
-
const preview = output.notice.replace(/\s+/g, " ").trim().slice(0, 140);
|
|
18909
|
+
const preview = output.notice.replace(/\x1b\[[0-9;]*m/g, "").replace(/\s+/g, " ").trim().slice(0, 140);
|
|
18903
18910
|
log.info(this.harness, "reflect goal", { preview });
|
|
18904
18911
|
this.notify?.("Hindsight \xB7 recalled past decisions", preview);
|
|
18905
18912
|
}
|
package/dist/grok-hook.js
CHANGED
|
@@ -657,7 +657,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
// package.json
|
|
660
|
-
var version = "0.8.
|
|
660
|
+
var version = "0.8.5";
|
|
661
661
|
|
|
662
662
|
// src/core/util.ts
|
|
663
663
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
|
@@ -673,7 +673,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
673
673
|
}
|
|
674
674
|
|
|
675
675
|
// package.json
|
|
676
|
-
var version = "0.8.
|
|
676
|
+
var version = "0.8.5";
|
|
677
677
|
|
|
678
678
|
// src/core/util.ts
|
|
679
679
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
|
@@ -2737,6 +2737,8 @@ function resolveAgentBin(harness, claudeBin) {
|
|
|
2737
2737
|
return process.env.HINDSIGHT_ANTIGRAVITY_BIN || "agy";
|
|
2738
2738
|
case "opencode":
|
|
2739
2739
|
return process.env.HINDSIGHT_OPENCODE_BIN || "opencode";
|
|
2740
|
+
default:
|
|
2741
|
+
return void 0;
|
|
2740
2742
|
}
|
|
2741
2743
|
}
|
|
2742
2744
|
function opencodeCanDefineSurveyAgent(bin) {
|
|
@@ -2765,7 +2767,10 @@ var SURVEY_DISALLOWED_TOOLS = [
|
|
|
2765
2767
|
var tomlValue = (value) => stringify({ v: value }).slice("v = ".length).trim();
|
|
2766
2768
|
function buildSurveyPlan(harness, bin, repoDir, opts) {
|
|
2767
2769
|
const env = {
|
|
2768
|
-
|
|
2770
|
+
// Terminal managers name the user's pane in env vars and hook the agent's Stop: inherited,
|
|
2771
|
+
// they made the survey's run look like the user's, so Orca closed the pane and Herdr rebound
|
|
2772
|
+
// it to the survey's session (#6075).
|
|
2773
|
+
...Object.fromEntries(Object.entries(process.env).filter(([k]) => !/^(ORCA|HERDR)_/.test(k))),
|
|
2769
2774
|
// Anti-recursion: the survey's own agent session must not fire our hooks (session-start,
|
|
2770
2775
|
// UserPromptSubmit/BeforeAgent, Stop/SessionEnd) or re-seed — see the HINDSIGHT_DISABLE_HOOKS
|
|
2771
2776
|
// guard in hook.ts / retain-hook.ts / session-start.ts / runtime.ts.
|
|
@@ -2874,6 +2879,7 @@ async function startCodebaseSurvey(repoDir, opts = {}) {
|
|
|
2874
2879
|
if (seen.has(harness)) continue;
|
|
2875
2880
|
seen.add(harness);
|
|
2876
2881
|
const name = resolveAgentBin(harness, opts.claudeBin);
|
|
2882
|
+
if (!name) continue;
|
|
2877
2883
|
const bin = resolveBin(name);
|
|
2878
2884
|
if (!bin) {
|
|
2879
2885
|
log.info("survey", `${harness}: ${name} not found, trying the next agent`);
|
|
@@ -3111,7 +3117,8 @@ async function npmViewVersion(pkg, spawnImpl = realSpawn5) {
|
|
|
3111
3117
|
child.on("close", (code, signal) => {
|
|
3112
3118
|
if (code !== 0) return done("", `npm view exited ${code ?? signal}`);
|
|
3113
3119
|
try {
|
|
3114
|
-
const
|
|
3120
|
+
const parsed = JSON.parse(out.trim());
|
|
3121
|
+
const v = Array.isArray(parsed) && parsed.length === 1 ? parsed[0] : parsed;
|
|
3115
3122
|
if (typeof v !== "string")
|
|
3116
3123
|
return done("", `unparsable npm output: ${out.trim().slice(0, 80)}`);
|
|
3117
3124
|
if (!RELEASE_RE.test(v)) return done("", `not a release: ${v.slice(0, 40)}`);
|
package/dist/grok-stop-hook.js
CHANGED
|
@@ -633,7 +633,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
// package.json
|
|
636
|
-
var version = "0.8.
|
|
636
|
+
var version = "0.8.5";
|
|
637
637
|
|
|
638
638
|
// src/core/util.ts
|
|
639
639
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
package/dist/hindsight-seed.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -656,7 +656,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
// package.json
|
|
659
|
-
var version = "0.8.
|
|
659
|
+
var version = "0.8.5";
|
|
660
660
|
|
|
661
661
|
// src/core/util.ts
|
|
662
662
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
|
@@ -2109,7 +2109,8 @@ async function npmViewVersion(pkg, spawnImpl = realSpawn2) {
|
|
|
2109
2109
|
child.on("close", (code, signal) => {
|
|
2110
2110
|
if (code !== 0) return done("", `npm view exited ${code ?? signal}`);
|
|
2111
2111
|
try {
|
|
2112
|
-
const
|
|
2112
|
+
const parsed = JSON.parse(out.trim());
|
|
2113
|
+
const v = Array.isArray(parsed) && parsed.length === 1 ? parsed[0] : parsed;
|
|
2113
2114
|
if (typeof v !== "string")
|
|
2114
2115
|
return done("", `unparsable npm output: ${out.trim().slice(0, 80)}`);
|
|
2115
2116
|
if (!RELEASE_RE.test(v)) return done("", `not a release: ${v.slice(0, 40)}`);
|
|
@@ -17321,6 +17322,8 @@ function resolveAgentBin(harness, claudeBin) {
|
|
|
17321
17322
|
return process.env.HINDSIGHT_ANTIGRAVITY_BIN || "agy";
|
|
17322
17323
|
case "opencode":
|
|
17323
17324
|
return process.env.HINDSIGHT_OPENCODE_BIN || "opencode";
|
|
17325
|
+
default:
|
|
17326
|
+
return void 0;
|
|
17324
17327
|
}
|
|
17325
17328
|
}
|
|
17326
17329
|
function opencodeCanDefineSurveyAgent(bin) {
|
|
@@ -17349,7 +17352,10 @@ var SURVEY_DISALLOWED_TOOLS = [
|
|
|
17349
17352
|
var tomlValue = (value) => stringify({ v: value }).slice("v = ".length).trim();
|
|
17350
17353
|
function buildSurveyPlan(harness, bin, repoDir, opts) {
|
|
17351
17354
|
const env = {
|
|
17352
|
-
|
|
17355
|
+
// Terminal managers name the user's pane in env vars and hook the agent's Stop: inherited,
|
|
17356
|
+
// they made the survey's run look like the user's, so Orca closed the pane and Herdr rebound
|
|
17357
|
+
// it to the survey's session (#6075).
|
|
17358
|
+
...Object.fromEntries(Object.entries(process.env).filter(([k]) => !/^(ORCA|HERDR)_/.test(k))),
|
|
17353
17359
|
// Anti-recursion: the survey's own agent session must not fire our hooks (session-start,
|
|
17354
17360
|
// UserPromptSubmit/BeforeAgent, Stop/SessionEnd) or re-seed — see the HINDSIGHT_DISABLE_HOOKS
|
|
17355
17361
|
// guard in hook.ts / retain-hook.ts / session-start.ts / runtime.ts.
|
|
@@ -17458,6 +17464,7 @@ async function startCodebaseSurvey(repoDir, opts = {}) {
|
|
|
17458
17464
|
if (seen.has(harness)) continue;
|
|
17459
17465
|
seen.add(harness);
|
|
17460
17466
|
const name = resolveAgentBin(harness, opts.claudeBin);
|
|
17467
|
+
if (!name) continue;
|
|
17461
17468
|
const bin = resolveBin(name);
|
|
17462
17469
|
if (!bin) {
|
|
17463
17470
|
log.info("survey", `${harness}: ${name} not found, trying the next agent`);
|
|
@@ -18910,7 +18917,7 @@ var RuntimeCore = class {
|
|
|
18910
18917
|
}
|
|
18911
18918
|
if (output.context) blocks.push(output.context);
|
|
18912
18919
|
if (output.notice) {
|
|
18913
|
-
const preview = output.notice.replace(/\s+/g, " ").trim().slice(0, 140);
|
|
18920
|
+
const preview = output.notice.replace(/\x1b\[[0-9;]*m/g, "").replace(/\s+/g, " ").trim().slice(0, 140);
|
|
18914
18921
|
log.info(this.harness, "reflect goal", { preview });
|
|
18915
18922
|
this.notify?.("Hindsight \xB7 recalled past decisions", preview);
|
|
18916
18923
|
}
|
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.5";
|
|
2221
2221
|
|
|
2222
2222
|
// src/core/util.ts
|
|
2223
2223
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
package/dist/kilo.js
CHANGED
|
@@ -656,7 +656,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
// package.json
|
|
659
|
-
var version = "0.8.
|
|
659
|
+
var version = "0.8.5";
|
|
660
660
|
|
|
661
661
|
// src/core/util.ts
|
|
662
662
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
|
@@ -2109,7 +2109,8 @@ async function npmViewVersion(pkg, spawnImpl = realSpawn2) {
|
|
|
2109
2109
|
child.on("close", (code, signal) => {
|
|
2110
2110
|
if (code !== 0) return done("", `npm view exited ${code ?? signal}`);
|
|
2111
2111
|
try {
|
|
2112
|
-
const
|
|
2112
|
+
const parsed = JSON.parse(out.trim());
|
|
2113
|
+
const v = Array.isArray(parsed) && parsed.length === 1 ? parsed[0] : parsed;
|
|
2113
2114
|
if (typeof v !== "string")
|
|
2114
2115
|
return done("", `unparsable npm output: ${out.trim().slice(0, 80)}`);
|
|
2115
2116
|
if (!RELEASE_RE.test(v)) return done("", `not a release: ${v.slice(0, 40)}`);
|
|
@@ -17321,6 +17322,8 @@ function resolveAgentBin(harness, claudeBin) {
|
|
|
17321
17322
|
return process.env.HINDSIGHT_ANTIGRAVITY_BIN || "agy";
|
|
17322
17323
|
case "opencode":
|
|
17323
17324
|
return process.env.HINDSIGHT_OPENCODE_BIN || "opencode";
|
|
17325
|
+
default:
|
|
17326
|
+
return void 0;
|
|
17324
17327
|
}
|
|
17325
17328
|
}
|
|
17326
17329
|
function opencodeCanDefineSurveyAgent(bin) {
|
|
@@ -17349,7 +17352,10 @@ var SURVEY_DISALLOWED_TOOLS = [
|
|
|
17349
17352
|
var tomlValue = (value) => stringify({ v: value }).slice("v = ".length).trim();
|
|
17350
17353
|
function buildSurveyPlan(harness, bin, repoDir, opts) {
|
|
17351
17354
|
const env = {
|
|
17352
|
-
|
|
17355
|
+
// Terminal managers name the user's pane in env vars and hook the agent's Stop: inherited,
|
|
17356
|
+
// they made the survey's run look like the user's, so Orca closed the pane and Herdr rebound
|
|
17357
|
+
// it to the survey's session (#6075).
|
|
17358
|
+
...Object.fromEntries(Object.entries(process.env).filter(([k]) => !/^(ORCA|HERDR)_/.test(k))),
|
|
17353
17359
|
// Anti-recursion: the survey's own agent session must not fire our hooks (session-start,
|
|
17354
17360
|
// UserPromptSubmit/BeforeAgent, Stop/SessionEnd) or re-seed — see the HINDSIGHT_DISABLE_HOOKS
|
|
17355
17361
|
// guard in hook.ts / retain-hook.ts / session-start.ts / runtime.ts.
|
|
@@ -17458,6 +17464,7 @@ async function startCodebaseSurvey(repoDir, opts = {}) {
|
|
|
17458
17464
|
if (seen.has(harness)) continue;
|
|
17459
17465
|
seen.add(harness);
|
|
17460
17466
|
const name = resolveAgentBin(harness, opts.claudeBin);
|
|
17467
|
+
if (!name) continue;
|
|
17461
17468
|
const bin = resolveBin(name);
|
|
17462
17469
|
if (!bin) {
|
|
17463
17470
|
log.info("survey", `${harness}: ${name} not found, trying the next agent`);
|
|
@@ -18910,7 +18917,7 @@ var RuntimeCore = class {
|
|
|
18910
18917
|
}
|
|
18911
18918
|
if (output.context) blocks.push(output.context);
|
|
18912
18919
|
if (output.notice) {
|
|
18913
|
-
const preview = output.notice.replace(/\s+/g, " ").trim().slice(0, 140);
|
|
18920
|
+
const preview = output.notice.replace(/\x1b\[[0-9;]*m/g, "").replace(/\s+/g, " ").trim().slice(0, 140);
|
|
18914
18921
|
log.info(this.harness, "reflect goal", { preview });
|
|
18915
18922
|
this.notify?.("Hindsight \xB7 recalled past decisions", preview);
|
|
18916
18923
|
}
|
package/dist/kimi-hook.js
CHANGED
|
@@ -657,7 +657,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
// package.json
|
|
660
|
-
var version = "0.8.
|
|
660
|
+
var version = "0.8.5";
|
|
661
661
|
|
|
662
662
|
// src/core/util.ts
|
|
663
663
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
|
@@ -673,7 +673,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
673
673
|
}
|
|
674
674
|
|
|
675
675
|
// package.json
|
|
676
|
-
var version = "0.8.
|
|
676
|
+
var version = "0.8.5";
|
|
677
677
|
|
|
678
678
|
// src/core/util.ts
|
|
679
679
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
|
@@ -2737,6 +2737,8 @@ function resolveAgentBin(harness, claudeBin) {
|
|
|
2737
2737
|
return process.env.HINDSIGHT_ANTIGRAVITY_BIN || "agy";
|
|
2738
2738
|
case "opencode":
|
|
2739
2739
|
return process.env.HINDSIGHT_OPENCODE_BIN || "opencode";
|
|
2740
|
+
default:
|
|
2741
|
+
return void 0;
|
|
2740
2742
|
}
|
|
2741
2743
|
}
|
|
2742
2744
|
function opencodeCanDefineSurveyAgent(bin) {
|
|
@@ -2765,7 +2767,10 @@ var SURVEY_DISALLOWED_TOOLS = [
|
|
|
2765
2767
|
var tomlValue = (value) => stringify({ v: value }).slice("v = ".length).trim();
|
|
2766
2768
|
function buildSurveyPlan(harness, bin, repoDir, opts) {
|
|
2767
2769
|
const env = {
|
|
2768
|
-
|
|
2770
|
+
// Terminal managers name the user's pane in env vars and hook the agent's Stop: inherited,
|
|
2771
|
+
// they made the survey's run look like the user's, so Orca closed the pane and Herdr rebound
|
|
2772
|
+
// it to the survey's session (#6075).
|
|
2773
|
+
...Object.fromEntries(Object.entries(process.env).filter(([k]) => !/^(ORCA|HERDR)_/.test(k))),
|
|
2769
2774
|
// Anti-recursion: the survey's own agent session must not fire our hooks (session-start,
|
|
2770
2775
|
// UserPromptSubmit/BeforeAgent, Stop/SessionEnd) or re-seed — see the HINDSIGHT_DISABLE_HOOKS
|
|
2771
2776
|
// guard in hook.ts / retain-hook.ts / session-start.ts / runtime.ts.
|
|
@@ -2874,6 +2879,7 @@ async function startCodebaseSurvey(repoDir, opts = {}) {
|
|
|
2874
2879
|
if (seen.has(harness)) continue;
|
|
2875
2880
|
seen.add(harness);
|
|
2876
2881
|
const name = resolveAgentBin(harness, opts.claudeBin);
|
|
2882
|
+
if (!name) continue;
|
|
2877
2883
|
const bin = resolveBin(name);
|
|
2878
2884
|
if (!bin) {
|
|
2879
2885
|
log.info("survey", `${harness}: ${name} not found, trying the next agent`);
|
|
@@ -3111,7 +3117,8 @@ async function npmViewVersion(pkg, spawnImpl = realSpawn5) {
|
|
|
3111
3117
|
child.on("close", (code, signal) => {
|
|
3112
3118
|
if (code !== 0) return done("", `npm view exited ${code ?? signal}`);
|
|
3113
3119
|
try {
|
|
3114
|
-
const
|
|
3120
|
+
const parsed = JSON.parse(out.trim());
|
|
3121
|
+
const v = Array.isArray(parsed) && parsed.length === 1 ? parsed[0] : parsed;
|
|
3115
3122
|
if (typeof v !== "string")
|
|
3116
3123
|
return done("", `unparsable npm output: ${out.trim().slice(0, 80)}`);
|
|
3117
3124
|
if (!RELEASE_RE.test(v)) return done("", `not a release: ${v.slice(0, 40)}`);
|
package/dist/kimi-stop-hook.js
CHANGED
|
@@ -633,7 +633,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
// package.json
|
|
636
|
-
var version = "0.8.
|
|
636
|
+
var version = "0.8.5";
|
|
637
637
|
|
|
638
638
|
// src/core/util.ts
|
|
639
639
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
package/dist/mcp-server.js
CHANGED
|
@@ -32025,7 +32025,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
32025
32025
|
}
|
|
32026
32026
|
|
|
32027
32027
|
// package.json
|
|
32028
|
-
var version2 = "0.8.
|
|
32028
|
+
var version2 = "0.8.5";
|
|
32029
32029
|
|
|
32030
32030
|
// src/core/util.ts
|
|
32031
32031
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
package/dist/opencode2.js
CHANGED
|
@@ -15167,7 +15167,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
15167
15167
|
}
|
|
15168
15168
|
|
|
15169
15169
|
// package.json
|
|
15170
|
-
var version2 = "0.8.
|
|
15170
|
+
var version2 = "0.8.5";
|
|
15171
15171
|
|
|
15172
15172
|
// src/core/util.ts
|
|
15173
15173
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
|
@@ -16620,7 +16620,8 @@ async function npmViewVersion(pkg, spawnImpl = realSpawn2) {
|
|
|
16620
16620
|
child.on("close", (code, signal) => {
|
|
16621
16621
|
if (code !== 0) return done("", `npm view exited ${code ?? signal}`);
|
|
16622
16622
|
try {
|
|
16623
|
-
const
|
|
16623
|
+
const parsed = JSON.parse(out.trim());
|
|
16624
|
+
const v = Array.isArray(parsed) && parsed.length === 1 ? parsed[0] : parsed;
|
|
16624
16625
|
if (typeof v !== "string")
|
|
16625
16626
|
return done("", `unparsable npm output: ${out.trim().slice(0, 80)}`);
|
|
16626
16627
|
if (!RELEASE_RE.test(v)) return done("", `not a release: ${v.slice(0, 40)}`);
|
|
@@ -17318,6 +17319,8 @@ function resolveAgentBin(harness, claudeBin) {
|
|
|
17318
17319
|
return process.env.HINDSIGHT_ANTIGRAVITY_BIN || "agy";
|
|
17319
17320
|
case "opencode":
|
|
17320
17321
|
return process.env.HINDSIGHT_OPENCODE_BIN || "opencode";
|
|
17322
|
+
default:
|
|
17323
|
+
return void 0;
|
|
17321
17324
|
}
|
|
17322
17325
|
}
|
|
17323
17326
|
function opencodeCanDefineSurveyAgent(bin) {
|
|
@@ -17346,7 +17349,10 @@ var SURVEY_DISALLOWED_TOOLS = [
|
|
|
17346
17349
|
var tomlValue = (value) => stringify({ v: value }).slice("v = ".length).trim();
|
|
17347
17350
|
function buildSurveyPlan(harness, bin, repoDir, opts) {
|
|
17348
17351
|
const env = {
|
|
17349
|
-
|
|
17352
|
+
// Terminal managers name the user's pane in env vars and hook the agent's Stop: inherited,
|
|
17353
|
+
// they made the survey's run look like the user's, so Orca closed the pane and Herdr rebound
|
|
17354
|
+
// it to the survey's session (#6075).
|
|
17355
|
+
...Object.fromEntries(Object.entries(process.env).filter(([k]) => !/^(ORCA|HERDR)_/.test(k))),
|
|
17350
17356
|
// Anti-recursion: the survey's own agent session must not fire our hooks (session-start,
|
|
17351
17357
|
// UserPromptSubmit/BeforeAgent, Stop/SessionEnd) or re-seed — see the HINDSIGHT_DISABLE_HOOKS
|
|
17352
17358
|
// guard in hook.ts / retain-hook.ts / session-start.ts / runtime.ts.
|
|
@@ -17455,6 +17461,7 @@ async function startCodebaseSurvey(repoDir, opts = {}) {
|
|
|
17455
17461
|
if (seen.has(harness)) continue;
|
|
17456
17462
|
seen.add(harness);
|
|
17457
17463
|
const name = resolveAgentBin(harness, opts.claudeBin);
|
|
17464
|
+
if (!name) continue;
|
|
17458
17465
|
const bin = resolveBin(name);
|
|
17459
17466
|
if (!bin) {
|
|
17460
17467
|
log.info("survey", `${harness}: ${name} not found, trying the next agent`);
|
|
@@ -18922,7 +18929,7 @@ var RuntimeCore = class {
|
|
|
18922
18929
|
}
|
|
18923
18930
|
if (output.context) blocks.push(output.context);
|
|
18924
18931
|
if (output.notice) {
|
|
18925
|
-
const preview = output.notice.replace(/\s+/g, " ").trim().slice(0, 140);
|
|
18932
|
+
const preview = output.notice.replace(/\x1b\[[0-9;]*m/g, "").replace(/\s+/g, " ").trim().slice(0, 140);
|
|
18926
18933
|
log.info(this.harness, "reflect goal", { preview });
|
|
18927
18934
|
this.notify?.("Hindsight \xB7 recalled past decisions", preview);
|
|
18928
18935
|
}
|
package/dist/pi.js
CHANGED
|
@@ -15167,7 +15167,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
15167
15167
|
}
|
|
15168
15168
|
|
|
15169
15169
|
// package.json
|
|
15170
|
-
var version2 = "0.8.
|
|
15170
|
+
var version2 = "0.8.5";
|
|
15171
15171
|
|
|
15172
15172
|
// src/core/util.ts
|
|
15173
15173
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
|
@@ -16620,7 +16620,8 @@ async function npmViewVersion(pkg, spawnImpl = realSpawn2) {
|
|
|
16620
16620
|
child.on("close", (code, signal) => {
|
|
16621
16621
|
if (code !== 0) return done("", `npm view exited ${code ?? signal}`);
|
|
16622
16622
|
try {
|
|
16623
|
-
const
|
|
16623
|
+
const parsed = JSON.parse(out.trim());
|
|
16624
|
+
const v = Array.isArray(parsed) && parsed.length === 1 ? parsed[0] : parsed;
|
|
16624
16625
|
if (typeof v !== "string")
|
|
16625
16626
|
return done("", `unparsable npm output: ${out.trim().slice(0, 80)}`);
|
|
16626
16627
|
if (!RELEASE_RE.test(v)) return done("", `not a release: ${v.slice(0, 40)}`);
|
|
@@ -17307,6 +17308,8 @@ function resolveAgentBin(harness, claudeBin) {
|
|
|
17307
17308
|
return process.env.HINDSIGHT_ANTIGRAVITY_BIN || "agy";
|
|
17308
17309
|
case "opencode":
|
|
17309
17310
|
return process.env.HINDSIGHT_OPENCODE_BIN || "opencode";
|
|
17311
|
+
default:
|
|
17312
|
+
return void 0;
|
|
17310
17313
|
}
|
|
17311
17314
|
}
|
|
17312
17315
|
function opencodeCanDefineSurveyAgent(bin) {
|
|
@@ -17335,7 +17338,10 @@ var SURVEY_DISALLOWED_TOOLS = [
|
|
|
17335
17338
|
var tomlValue = (value) => stringify({ v: value }).slice("v = ".length).trim();
|
|
17336
17339
|
function buildSurveyPlan(harness, bin, repoDir, opts) {
|
|
17337
17340
|
const env = {
|
|
17338
|
-
|
|
17341
|
+
// Terminal managers name the user's pane in env vars and hook the agent's Stop: inherited,
|
|
17342
|
+
// they made the survey's run look like the user's, so Orca closed the pane and Herdr rebound
|
|
17343
|
+
// it to the survey's session (#6075).
|
|
17344
|
+
...Object.fromEntries(Object.entries(process.env).filter(([k]) => !/^(ORCA|HERDR)_/.test(k))),
|
|
17339
17345
|
// Anti-recursion: the survey's own agent session must not fire our hooks (session-start,
|
|
17340
17346
|
// UserPromptSubmit/BeforeAgent, Stop/SessionEnd) or re-seed — see the HINDSIGHT_DISABLE_HOOKS
|
|
17341
17347
|
// guard in hook.ts / retain-hook.ts / session-start.ts / runtime.ts.
|
|
@@ -17444,6 +17450,7 @@ async function startCodebaseSurvey(repoDir, opts = {}) {
|
|
|
17444
17450
|
if (seen.has(harness)) continue;
|
|
17445
17451
|
seen.add(harness);
|
|
17446
17452
|
const name = resolveAgentBin(harness, opts.claudeBin);
|
|
17453
|
+
if (!name) continue;
|
|
17447
17454
|
const bin = resolveBin(name);
|
|
17448
17455
|
if (!bin) {
|
|
17449
17456
|
log.info("survey", `${harness}: ${name} not found, trying the next agent`);
|
|
@@ -18896,7 +18903,7 @@ var RuntimeCore = class {
|
|
|
18896
18903
|
}
|
|
18897
18904
|
if (output.context) blocks.push(output.context);
|
|
18898
18905
|
if (output.notice) {
|
|
18899
|
-
const preview = output.notice.replace(/\s+/g, " ").trim().slice(0, 140);
|
|
18906
|
+
const preview = output.notice.replace(/\x1b\[[0-9;]*m/g, "").replace(/\s+/g, " ").trim().slice(0, 140);
|
|
18900
18907
|
log.info(this.harness, "reflect goal", { preview });
|
|
18901
18908
|
this.notify?.("Hindsight \xB7 recalled past decisions", preview);
|
|
18902
18909
|
}
|
|
@@ -19118,7 +19125,7 @@ function createPiHooks(core, harness, sessionStart) {
|
|
|
19118
19125
|
sessionStartAwaited = true;
|
|
19119
19126
|
await sessionStart;
|
|
19120
19127
|
}
|
|
19121
|
-
await core.onPrompt(sessionId, event.prompt.trim());
|
|
19128
|
+
await core.onPrompt(sessionId, typeof event.prompt === "string" ? event.prompt.trim() : "");
|
|
19122
19129
|
const injection = core.getInjection(sessionId);
|
|
19123
19130
|
if (!injection) {
|
|
19124
19131
|
diag(harness, "inject_empty", { session: sessionId });
|
package/dist/prime-agent.js
CHANGED
|
@@ -15167,7 +15167,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
15167
15167
|
}
|
|
15168
15168
|
|
|
15169
15169
|
// package.json
|
|
15170
|
-
var version2 = "0.8.
|
|
15170
|
+
var version2 = "0.8.5";
|
|
15171
15171
|
|
|
15172
15172
|
// src/core/util.ts
|
|
15173
15173
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
|
@@ -16620,7 +16620,8 @@ async function npmViewVersion(pkg, spawnImpl = realSpawn2) {
|
|
|
16620
16620
|
child.on("close", (code, signal) => {
|
|
16621
16621
|
if (code !== 0) return done("", `npm view exited ${code ?? signal}`);
|
|
16622
16622
|
try {
|
|
16623
|
-
const
|
|
16623
|
+
const parsed = JSON.parse(out.trim());
|
|
16624
|
+
const v = Array.isArray(parsed) && parsed.length === 1 ? parsed[0] : parsed;
|
|
16624
16625
|
if (typeof v !== "string")
|
|
16625
16626
|
return done("", `unparsable npm output: ${out.trim().slice(0, 80)}`);
|
|
16626
16627
|
if (!RELEASE_RE.test(v)) return done("", `not a release: ${v.slice(0, 40)}`);
|
|
@@ -17307,6 +17308,8 @@ function resolveAgentBin(harness, claudeBin) {
|
|
|
17307
17308
|
return process.env.HINDSIGHT_ANTIGRAVITY_BIN || "agy";
|
|
17308
17309
|
case "opencode":
|
|
17309
17310
|
return process.env.HINDSIGHT_OPENCODE_BIN || "opencode";
|
|
17311
|
+
default:
|
|
17312
|
+
return void 0;
|
|
17310
17313
|
}
|
|
17311
17314
|
}
|
|
17312
17315
|
function opencodeCanDefineSurveyAgent(bin) {
|
|
@@ -17335,7 +17338,10 @@ var SURVEY_DISALLOWED_TOOLS = [
|
|
|
17335
17338
|
var tomlValue = (value) => stringify({ v: value }).slice("v = ".length).trim();
|
|
17336
17339
|
function buildSurveyPlan(harness, bin, repoDir, opts) {
|
|
17337
17340
|
const env = {
|
|
17338
|
-
|
|
17341
|
+
// Terminal managers name the user's pane in env vars and hook the agent's Stop: inherited,
|
|
17342
|
+
// they made the survey's run look like the user's, so Orca closed the pane and Herdr rebound
|
|
17343
|
+
// it to the survey's session (#6075).
|
|
17344
|
+
...Object.fromEntries(Object.entries(process.env).filter(([k]) => !/^(ORCA|HERDR)_/.test(k))),
|
|
17339
17345
|
// Anti-recursion: the survey's own agent session must not fire our hooks (session-start,
|
|
17340
17346
|
// UserPromptSubmit/BeforeAgent, Stop/SessionEnd) or re-seed — see the HINDSIGHT_DISABLE_HOOKS
|
|
17341
17347
|
// guard in hook.ts / retain-hook.ts / session-start.ts / runtime.ts.
|
|
@@ -17444,6 +17450,7 @@ async function startCodebaseSurvey(repoDir, opts = {}) {
|
|
|
17444
17450
|
if (seen.has(harness)) continue;
|
|
17445
17451
|
seen.add(harness);
|
|
17446
17452
|
const name = resolveAgentBin(harness, opts.claudeBin);
|
|
17453
|
+
if (!name) continue;
|
|
17447
17454
|
const bin = resolveBin(name);
|
|
17448
17455
|
if (!bin) {
|
|
17449
17456
|
log.info("survey", `${harness}: ${name} not found, trying the next agent`);
|
|
@@ -18896,7 +18903,7 @@ var RuntimeCore = class {
|
|
|
18896
18903
|
}
|
|
18897
18904
|
if (output.context) blocks.push(output.context);
|
|
18898
18905
|
if (output.notice) {
|
|
18899
|
-
const preview = output.notice.replace(/\s+/g, " ").trim().slice(0, 140);
|
|
18906
|
+
const preview = output.notice.replace(/\x1b\[[0-9;]*m/g, "").replace(/\s+/g, " ").trim().slice(0, 140);
|
|
18900
18907
|
log.info(this.harness, "reflect goal", { preview });
|
|
18901
18908
|
this.notify?.("Hindsight \xB7 recalled past decisions", preview);
|
|
18902
18909
|
}
|
|
@@ -19118,7 +19125,7 @@ function createPiHooks(core, harness, sessionStart) {
|
|
|
19118
19125
|
sessionStartAwaited = true;
|
|
19119
19126
|
await sessionStart;
|
|
19120
19127
|
}
|
|
19121
|
-
await core.onPrompt(sessionId, event.prompt.trim());
|
|
19128
|
+
await core.onPrompt(sessionId, typeof event.prompt === "string" ? event.prompt.trim() : "");
|
|
19122
19129
|
const injection = core.getInjection(sessionId);
|
|
19123
19130
|
if (!injection) {
|
|
19124
19131
|
diag(harness, "inject_empty", { session: sessionId });
|
package/dist/qwen-hook.js
CHANGED
|
@@ -657,7 +657,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
// package.json
|
|
660
|
-
var version = "0.8.
|
|
660
|
+
var version = "0.8.5";
|
|
661
661
|
|
|
662
662
|
// src/core/util.ts
|
|
663
663
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
|
@@ -673,7 +673,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
673
673
|
}
|
|
674
674
|
|
|
675
675
|
// package.json
|
|
676
|
-
var version = "0.8.
|
|
676
|
+
var version = "0.8.5";
|
|
677
677
|
|
|
678
678
|
// src/core/util.ts
|
|
679
679
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
|
@@ -2737,6 +2737,8 @@ function resolveAgentBin(harness, claudeBin) {
|
|
|
2737
2737
|
return process.env.HINDSIGHT_ANTIGRAVITY_BIN || "agy";
|
|
2738
2738
|
case "opencode":
|
|
2739
2739
|
return process.env.HINDSIGHT_OPENCODE_BIN || "opencode";
|
|
2740
|
+
default:
|
|
2741
|
+
return void 0;
|
|
2740
2742
|
}
|
|
2741
2743
|
}
|
|
2742
2744
|
function opencodeCanDefineSurveyAgent(bin) {
|
|
@@ -2765,7 +2767,10 @@ var SURVEY_DISALLOWED_TOOLS = [
|
|
|
2765
2767
|
var tomlValue = (value) => stringify({ v: value }).slice("v = ".length).trim();
|
|
2766
2768
|
function buildSurveyPlan(harness, bin, repoDir, opts) {
|
|
2767
2769
|
const env = {
|
|
2768
|
-
|
|
2770
|
+
// Terminal managers name the user's pane in env vars and hook the agent's Stop: inherited,
|
|
2771
|
+
// they made the survey's run look like the user's, so Orca closed the pane and Herdr rebound
|
|
2772
|
+
// it to the survey's session (#6075).
|
|
2773
|
+
...Object.fromEntries(Object.entries(process.env).filter(([k]) => !/^(ORCA|HERDR)_/.test(k))),
|
|
2769
2774
|
// Anti-recursion: the survey's own agent session must not fire our hooks (session-start,
|
|
2770
2775
|
// UserPromptSubmit/BeforeAgent, Stop/SessionEnd) or re-seed — see the HINDSIGHT_DISABLE_HOOKS
|
|
2771
2776
|
// guard in hook.ts / retain-hook.ts / session-start.ts / runtime.ts.
|
|
@@ -2874,6 +2879,7 @@ async function startCodebaseSurvey(repoDir, opts = {}) {
|
|
|
2874
2879
|
if (seen.has(harness)) continue;
|
|
2875
2880
|
seen.add(harness);
|
|
2876
2881
|
const name = resolveAgentBin(harness, opts.claudeBin);
|
|
2882
|
+
if (!name) continue;
|
|
2877
2883
|
const bin = resolveBin(name);
|
|
2878
2884
|
if (!bin) {
|
|
2879
2885
|
log.info("survey", `${harness}: ${name} not found, trying the next agent`);
|
|
@@ -3111,7 +3117,8 @@ async function npmViewVersion(pkg, spawnImpl = realSpawn5) {
|
|
|
3111
3117
|
child.on("close", (code, signal) => {
|
|
3112
3118
|
if (code !== 0) return done("", `npm view exited ${code ?? signal}`);
|
|
3113
3119
|
try {
|
|
3114
|
-
const
|
|
3120
|
+
const parsed = JSON.parse(out.trim());
|
|
3121
|
+
const v = Array.isArray(parsed) && parsed.length === 1 ? parsed[0] : parsed;
|
|
3115
3122
|
if (typeof v !== "string")
|
|
3116
3123
|
return done("", `unparsable npm output: ${out.trim().slice(0, 80)}`);
|
|
3117
3124
|
if (!RELEASE_RE.test(v)) return done("", `not a release: ${v.slice(0, 40)}`);
|
package/dist/qwen-stop-hook.js
CHANGED
|
@@ -633,7 +633,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
// package.json
|
|
636
|
-
var version = "0.8.
|
|
636
|
+
var version = "0.8.5";
|
|
637
637
|
|
|
638
638
|
// src/core/util.ts
|
|
639
639
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
package/dist/status.js
CHANGED
|
@@ -592,7 +592,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
592
592
|
}
|
|
593
593
|
|
|
594
594
|
// package.json
|
|
595
|
-
var version = "0.8.
|
|
595
|
+
var version = "0.8.5";
|
|
596
596
|
|
|
597
597
|
// src/core/util.ts
|
|
598
598
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
package/dist/traecode-hook.js
CHANGED
|
@@ -657,7 +657,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
// package.json
|
|
660
|
-
var version = "0.8.
|
|
660
|
+
var version = "0.8.5";
|
|
661
661
|
|
|
662
662
|
// src/core/util.ts
|
|
663
663
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|