@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
package/dist/hindsight-seed.js
CHANGED
|
@@ -337,6 +337,7 @@ function deriveBankIdOrSkip(config, directory, harness = "coding", sessionRoot)
|
|
|
337
337
|
|
|
338
338
|
// src/core/missions.ts
|
|
339
339
|
import { createHash } from "crypto";
|
|
340
|
+
var DEFAULT_PAGE_TRIGGER_CRON = "H * * * *";
|
|
340
341
|
var CRON_FIELD_RANGES = [
|
|
341
342
|
[0, 59],
|
|
342
343
|
// minute
|
|
@@ -381,17 +382,22 @@ var RETRY_AFTER_CEILING_MS = 60 * 1e3;
|
|
|
381
382
|
var CONFIG_PATH = process.env.HINDSIGHT_CONFIG || join6(homedir2(), ".hindsight", "coding-agent.json");
|
|
382
383
|
var DEFAULT_DAEMON_PORT = 9077;
|
|
383
384
|
var DEFAULT_DAEMON_PROFILE = "coding-agent";
|
|
384
|
-
function
|
|
385
|
-
if (raw.pageTriggerType === "manual") return "manual";
|
|
386
|
-
if (raw.pageTriggerType === "
|
|
387
|
-
|
|
388
|
-
if (cron && (!isHashedCron(cron) || parseHashedCron(cron))) return "cron";
|
|
385
|
+
function resolvePageTrigger(raw) {
|
|
386
|
+
if (raw.pageTriggerType === "manual") return { type: "manual" };
|
|
387
|
+
if (raw.pageTriggerType === "auto-refresh") return { type: "auto-refresh" };
|
|
388
|
+
if (raw.pageTriggerType !== void 0 && raw.pageTriggerType !== "cron")
|
|
389
389
|
log.warn(
|
|
390
390
|
"config",
|
|
391
|
-
|
|
391
|
+
`ignoring pageTriggerType=${JSON.stringify(raw.pageTriggerType)} \u2014 expected cron|auto-refresh|manual`
|
|
392
392
|
);
|
|
393
|
-
|
|
394
|
-
return "
|
|
393
|
+
const cron = raw.pageTriggerCron?.trim();
|
|
394
|
+
if (!cron) return { type: "cron", cron: DEFAULT_PAGE_TRIGGER_CRON };
|
|
395
|
+
if (!isHashedCron(cron) || parseHashedCron(cron)) return { type: "cron", cron };
|
|
396
|
+
log.warn(
|
|
397
|
+
"config",
|
|
398
|
+
`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)}`
|
|
399
|
+
);
|
|
400
|
+
return { type: "cron", cron: DEFAULT_PAGE_TRIGGER_CRON };
|
|
395
401
|
}
|
|
396
402
|
var DEFAULT_REFLECT_TOOL_TIMEOUT_MS = 33e4;
|
|
397
403
|
var REFLECT_BUDGETS = ["low", "mid", "high"];
|
|
@@ -423,6 +429,7 @@ function resolveObservationScopes(raw) {
|
|
|
423
429
|
function resolveConfig(raw = {}) {
|
|
424
430
|
const serverMode = ["cloud", "self-hosted", "daemon"].includes(raw.serverMode) ? raw.serverMode : "cloud";
|
|
425
431
|
const apiPort = raw.apiPort || DEFAULT_DAEMON_PORT;
|
|
432
|
+
const pageTrigger = resolvePageTrigger(raw);
|
|
426
433
|
return {
|
|
427
434
|
serverMode,
|
|
428
435
|
// Daemon mode resolves the URL HERE rather than at each call site: every entry point already
|
|
@@ -457,8 +464,8 @@ function resolveConfig(raw = {}) {
|
|
|
457
464
|
reflectBudget: resolveReflectBudget(raw),
|
|
458
465
|
autoReflect: raw.autoReflect ?? true,
|
|
459
466
|
pageRefreshEveryTurns: raw.pageRefreshEveryTurns || 10,
|
|
460
|
-
pageTriggerType:
|
|
461
|
-
pageTriggerCron:
|
|
467
|
+
pageTriggerType: pageTrigger.type,
|
|
468
|
+
pageTriggerCron: pageTrigger.cron,
|
|
462
469
|
autoSeed: raw.autoSeed ?? true,
|
|
463
470
|
seedLimit: raw.seedLimit || DEFAULT_SEED_LIMIT,
|
|
464
471
|
codebaseSurvey: raw.codebaseSurvey ?? true,
|