@vectorize-io/hindsight-coding-agents 0.8.0 → 0.8.2
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 +73 -8
- package/dist/antigravity-hook.js +444 -80
- package/dist/antigravity-statusline.js +9 -4
- package/dist/antigravity-stop-hook.js +444 -95
- package/dist/claude-hook.js +444 -80
- package/dist/claude-sessionstart-hook.js +476 -93
- package/dist/claude-stop-hook.js +444 -95
- package/dist/cline.js +322 -122
- package/dist/codebuddy-hook.js +4273 -0
- package/dist/codebuddy-sessionstart-hook.js +5033 -0
- package/dist/codebuddy-stop-hook.js +4567 -0
- package/dist/codex-hook.js +444 -80
- package/dist/codex-sessionstart-hook.js +476 -93
- package/dist/codex-stop-hook.js +444 -95
- package/dist/copilot-hook.js +444 -80
- package/dist/copilot-sessionstart-hook.js +476 -93
- package/dist/copilot-stop-hook.js +444 -95
- package/dist/cursor-hook.js +444 -80
- package/dist/cursor-sessionstart-hook.js +476 -93
- package/dist/cursor-stop-hook.js +444 -95
- package/dist/daemon-start.js +16 -8
- package/dist/dcode-hook.js +444 -80
- package/dist/dcode-sessionstart-hook.js +476 -93
- package/dist/dcode-stop-hook.js +444 -95
- package/dist/deepen.js +252 -79
- package/dist/devin-hook.js +444 -80
- package/dist/devin-sessionstart-hook.js +476 -93
- package/dist/devin-stop-hook.js +444 -95
- package/dist/droid-hook.js +444 -80
- package/dist/droid-sessionstart-hook.js +476 -93
- package/dist/droid-stop-hook.js +444 -95
- package/dist/dsh.js +329 -122
- package/dist/grok-hook.js +444 -80
- package/dist/grok-sessionstart-hook.js +476 -93
- package/dist/grok-stop-hook.js +444 -95
- package/dist/hindsight-seed.js +9 -4
- package/dist/index.js +331 -131
- package/dist/installer.js +1046 -647
- package/dist/kilo.js +331 -131
- package/dist/kimi-hook.js +444 -80
- package/dist/kimi-sessionstart-hook.js +476 -93
- package/dist/kimi-stop-hook.js +444 -95
- package/dist/mcp-server.js +272 -89
- package/dist/opencode2.js +328 -128
- package/dist/pi.js +384 -134
- package/dist/prime-agent.js +384 -134
- package/dist/qwen-hook.js +444 -80
- package/dist/qwen-sessionstart-hook.js +476 -93
- package/dist/qwen-stop-hook.js +444 -95
- package/dist/status.js +124 -43
- package/dist/traecode-hook.js +444 -80
- package/dist/traecode-sessionstart-hook.js +476 -93
- package/dist/traecode-stop-hook.js +444 -95
- package/dist/workbuddy-hook.js +4273 -0
- package/dist/workbuddy-sessionstart-hook.js +5033 -0
- package/dist/workbuddy-stop-hook.js +4567 -0
- package/dist/zcode-hook.js +444 -80
- package/dist/zcode-sessionstart-hook.js +476 -93
- package/dist/zcode-stop-hook.js +444 -95
- package/package.json +9 -3
- package/plugin.json +1 -1
- package/skill/SKILL.md +10 -6
package/dist/daemon-start.js
CHANGED
|
@@ -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
|
|
31
|
-
return ["uvx", `hindsight-embed@${
|
|
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
|
|
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.2";
|
|
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(
|
|
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`, {
|
|
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;
|