@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/antigravity-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";
|
|
@@ -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/claude-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/claude-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/cline.js
CHANGED
|
@@ -653,7 +653,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
653
653
|
}
|
|
654
654
|
|
|
655
655
|
// package.json
|
|
656
|
-
var version = "0.8.
|
|
656
|
+
var version = "0.8.5";
|
|
657
657
|
|
|
658
658
|
// src/core/util.ts
|
|
659
659
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
|
@@ -2106,7 +2106,8 @@ async function npmViewVersion(pkg, spawnImpl = realSpawn2) {
|
|
|
2106
2106
|
child.on("close", (code, signal) => {
|
|
2107
2107
|
if (code !== 0) return done("", `npm view exited ${code ?? signal}`);
|
|
2108
2108
|
try {
|
|
2109
|
-
const
|
|
2109
|
+
const parsed = JSON.parse(out.trim());
|
|
2110
|
+
const v = Array.isArray(parsed) && parsed.length === 1 ? parsed[0] : parsed;
|
|
2110
2111
|
if (typeof v !== "string")
|
|
2111
2112
|
return done("", `unparsable npm output: ${out.trim().slice(0, 80)}`);
|
|
2112
2113
|
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`);
|
|
@@ -18859,7 +18866,7 @@ var RuntimeCore = class {
|
|
|
18859
18866
|
}
|
|
18860
18867
|
if (output.context) blocks.push(output.context);
|
|
18861
18868
|
if (output.notice) {
|
|
18862
|
-
const preview = output.notice.replace(/\s+/g, " ").trim().slice(0, 140);
|
|
18869
|
+
const preview = output.notice.replace(/\x1b\[[0-9;]*m/g, "").replace(/\s+/g, " ").trim().slice(0, 140);
|
|
18863
18870
|
log.info(this.harness, "reflect goal", { preview });
|
|
18864
18871
|
this.notify?.("Hindsight \xB7 recalled past decisions", preview);
|
|
18865
18872
|
}
|
package/dist/codebuddy-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)}`);
|
|
@@ -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/codex-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/codex-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/copilot-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)}`);
|
|
@@ -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/cursor-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/cursor-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/daemon-start.js
CHANGED
package/dist/dcode-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/dcode-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/deepen.js
CHANGED
|
@@ -616,7 +616,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
// package.json
|
|
619
|
-
var version = "0.8.
|
|
619
|
+
var version = "0.8.5";
|
|
620
620
|
|
|
621
621
|
// src/core/util.ts
|
|
622
622
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
package/dist/devin-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/devin-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/droid-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)}`);
|