@vectorize-io/hindsight-coding-agents 0.5.2 → 0.5.4
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 +42 -8
- package/dist/antigravity-hook.js +335 -91
- package/dist/antigravity-statusline.js +17 -10
- package/dist/antigravity-stop-hook.js +340 -92
- package/dist/claude-hook.js +335 -91
- package/dist/claude-sessionstart-hook.js +459 -132
- package/dist/claude-stop-hook.js +340 -92
- package/dist/cline.js +283 -64
- package/dist/codex-hook.js +335 -91
- package/dist/codex-sessionstart-hook.js +459 -132
- package/dist/codex-stop-hook.js +340 -92
- package/dist/copilot-hook.js +335 -91
- package/dist/copilot-sessionstart-hook.js +459 -132
- package/dist/copilot-stop-hook.js +340 -92
- package/dist/cursor-hook.js +335 -91
- package/dist/cursor-sessionstart-hook.js +459 -132
- package/dist/cursor-stop-hook.js +340 -92
- package/dist/daemon-start.js +17 -10
- package/dist/dcode-hook.js +335 -91
- package/dist/dcode-sessionstart-hook.js +459 -132
- package/dist/dcode-stop-hook.js +340 -92
- package/dist/deepen.js +113 -32
- package/dist/devin-hook.js +335 -91
- package/dist/devin-sessionstart-hook.js +459 -132
- package/dist/devin-stop-hook.js +340 -92
- package/dist/droid-hook.js +335 -91
- package/dist/droid-sessionstart-hook.js +459 -132
- package/dist/droid-stop-hook.js +340 -92
- package/dist/dsh.js +322 -101
- package/dist/grok-hook.js +335 -91
- package/dist/grok-sessionstart-hook.js +459 -132
- package/dist/grok-stop-hook.js +340 -92
- package/dist/hindsight-seed.js +17 -10
- package/dist/index.js +322 -101
- package/dist/installer.js +1252 -325
- package/dist/kilo.js +322 -101
- package/dist/mcp-server.js +100 -23
- package/dist/opencode2.js +322 -101
- package/dist/pi.js +321 -100
- package/dist/prime-agent.js +321 -100
- package/dist/qwen-hook.js +335 -91
- package/dist/qwen-sessionstart-hook.js +459 -132
- package/dist/qwen-stop-hook.js +340 -92
- package/dist/status.js +98 -21
- package/dist/survey-supervisor.js +81 -0
- package/dist/zcode-hook.js +2954 -0
- package/dist/zcode-sessionstart-hook.js +3655 -0
- package/dist/zcode-stop-hook.js +3218 -0
- package/package.json +7 -3
- package/plugin.json +1 -1
- package/skill/SKILL.md +17 -7
|
@@ -313,6 +313,7 @@ function deriveBankIdOrSkip(config, directory, harness = "coding", sessionRoot)
|
|
|
313
313
|
|
|
314
314
|
// src/core/missions.ts
|
|
315
315
|
import { createHash } from "crypto";
|
|
316
|
+
var DEFAULT_PAGE_TRIGGER_CRON = "H * * * *";
|
|
316
317
|
var CRON_FIELD_RANGES = [
|
|
317
318
|
[0, 59],
|
|
318
319
|
// minute
|
|
@@ -357,17 +358,22 @@ var RETRY_AFTER_CEILING_MS = 60 * 1e3;
|
|
|
357
358
|
var CONFIG_PATH = process.env.HINDSIGHT_CONFIG || join6(homedir2(), ".hindsight", "coding-agent.json");
|
|
358
359
|
var DEFAULT_DAEMON_PORT = 9077;
|
|
359
360
|
var DEFAULT_DAEMON_PROFILE = "coding-agent";
|
|
360
|
-
function
|
|
361
|
-
if (raw.pageTriggerType === "manual") return "manual";
|
|
362
|
-
if (raw.pageTriggerType === "
|
|
363
|
-
|
|
364
|
-
if (cron && (!isHashedCron(cron) || parseHashedCron(cron))) return "cron";
|
|
361
|
+
function resolvePageTrigger(raw) {
|
|
362
|
+
if (raw.pageTriggerType === "manual") return { type: "manual" };
|
|
363
|
+
if (raw.pageTriggerType === "auto-refresh") return { type: "auto-refresh" };
|
|
364
|
+
if (raw.pageTriggerType !== void 0 && raw.pageTriggerType !== "cron")
|
|
365
365
|
log.warn(
|
|
366
366
|
"config",
|
|
367
|
-
|
|
367
|
+
`ignoring pageTriggerType=${JSON.stringify(raw.pageTriggerType)} \u2014 expected cron|auto-refresh|manual`
|
|
368
368
|
);
|
|
369
|
-
|
|
370
|
-
return "
|
|
369
|
+
const cron = raw.pageTriggerCron?.trim();
|
|
370
|
+
if (!cron) return { type: "cron", cron: DEFAULT_PAGE_TRIGGER_CRON };
|
|
371
|
+
if (!isHashedCron(cron) || parseHashedCron(cron)) return { type: "cron", cron };
|
|
372
|
+
log.warn(
|
|
373
|
+
"config",
|
|
374
|
+
`pageTriggerCron ${JSON.stringify(cron)} has a malformed hashed field \u2014 write \`H\` or \`H(<lo>-<hi>)\` within the field's own range, e.g. "H H(0-5) * * *" \u2014 falling back to ${JSON.stringify(DEFAULT_PAGE_TRIGGER_CRON)}`
|
|
375
|
+
);
|
|
376
|
+
return { type: "cron", cron: DEFAULT_PAGE_TRIGGER_CRON };
|
|
371
377
|
}
|
|
372
378
|
var DEFAULT_REFLECT_TOOL_TIMEOUT_MS = 33e4;
|
|
373
379
|
var REFLECT_BUDGETS = ["low", "mid", "high"];
|
|
@@ -399,6 +405,7 @@ function resolveObservationScopes(raw) {
|
|
|
399
405
|
function resolveConfig(raw = {}) {
|
|
400
406
|
const serverMode = ["cloud", "self-hosted", "daemon"].includes(raw.serverMode) ? raw.serverMode : "cloud";
|
|
401
407
|
const apiPort = raw.apiPort || DEFAULT_DAEMON_PORT;
|
|
408
|
+
const pageTrigger = resolvePageTrigger(raw);
|
|
402
409
|
return {
|
|
403
410
|
serverMode,
|
|
404
411
|
// Daemon mode resolves the URL HERE rather than at each call site: every entry point already
|
|
@@ -433,8 +440,8 @@ function resolveConfig(raw = {}) {
|
|
|
433
440
|
reflectBudget: resolveReflectBudget(raw),
|
|
434
441
|
autoReflect: raw.autoReflect ?? true,
|
|
435
442
|
pageRefreshEveryTurns: raw.pageRefreshEveryTurns || 10,
|
|
436
|
-
pageTriggerType:
|
|
437
|
-
pageTriggerCron:
|
|
443
|
+
pageTriggerType: pageTrigger.type,
|
|
444
|
+
pageTriggerCron: pageTrigger.cron,
|
|
438
445
|
autoSeed: raw.autoSeed ?? true,
|
|
439
446
|
seedLimit: raw.seedLimit || DEFAULT_SEED_LIMIT,
|
|
440
447
|
codebaseSurvey: raw.codebaseSurvey ?? true,
|