@vectorize-io/hindsight-coding-agents 0.3.3 → 0.4.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectorize-io/hindsight-coding-agents",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/vectorize-io/hindsight.git",
@@ -27,10 +27,26 @@
27
27
  "hindsight-antigravity-statusline": "dist/antigravity-statusline.js",
28
28
  "hindsight-devin-hook": "dist/devin-hook.js"
29
29
  },
30
+ "exports": {
31
+ ".": {
32
+ "types": "./dist/index.d.ts",
33
+ "default": "./dist/index.js"
34
+ },
35
+ "./dsh": "./dist/dsh.js",
36
+ "./cordis.patch.yml": "./cordis.patch.yml",
37
+ "./package.json": "./package.json",
38
+ "./dist/*": "./dist/*"
39
+ },
30
40
  "files": [
31
41
  "skill",
32
- "dist"
42
+ "dist",
43
+ "cordis.patch.yml"
33
44
  ],
45
+ "dsh": {
46
+ "bundle": {
47
+ "patch": "./cordis.patch.yml"
48
+ }
49
+ },
34
50
  "cline": {
35
51
  "plugins": [
36
52
  {
@@ -66,6 +82,14 @@
66
82
  "@types/node": "^26.1.0",
67
83
  "tsup": "^8.3.0",
68
84
  "typescript": "^5.6.0",
69
- "vitest": "^2.1.0"
85
+ "vitest": "^3.2.6"
86
+ },
87
+ "overrides": {
88
+ "esbuild": ">=0.25.0 <1.0.0",
89
+ "fast-uri": ">=3.1.5 <4.0.0",
90
+ "hono": ">=4.12.34 <5.0.0",
91
+ "ip-address": ">=10.3.1 <11.0.0",
92
+ "postcss": ">=8.5.23 <9.0.0",
93
+ "vite": ">=6.4.3 <7.0.0"
70
94
  }
71
95
  }
package/skill/SKILL.md CHANGED
@@ -28,7 +28,11 @@ When the user says "store this in hindsight" / "remember this":
28
28
  - The **current conversation** is captured automatically at session end — say so; no tool needed.
29
29
  - An **external document, notes, or durable findings** → `hindsight_ingest_document(title, content)`.
30
30
  - A **new feature/initiative being started** → `hindsight_capture_initiative(title, summary)`,
31
- once, right after the plan is agreed and before code is written.
31
+ right after the plan is agreed and before code is written.
32
+ - A **plan that materially changed** (goal, scope, or rationale — including mid-implementation) →
33
+ call `hindsight_capture_initiative` again with `relates_to_page_id` set to that initiative's page
34
+ id, summarising the _current_ intent. Same page, updated plan — never a second page. Trivial
35
+ course-corrections don't count.
32
36
 
33
37
  ## Retrieving
34
38
 
@@ -77,12 +81,24 @@ Layering, later wins: defaults → file → `harnesses.<name>` → `banks.<resol
77
81
  ```
78
82
 
79
83
  Key behavioral fields (any of them valid per-harness or per-bank): `disabled`,
80
- `retainSessions` (write-back opt-out), `gitIngest`, `reflectTimeoutMs` (default 120000; hooks cap
81
- at 25s), `autoReflect` (true; false = no injected first-prompt synthesis — the agent is instead
82
- told to call `hindsight_reflect` on new goals), `pageRefreshEveryTurns` (10), `autoSeed`/`seedLimit` (true/300),
84
+ `retainSessions` (transcript write-back opt-out, history import included — recall and git ingest keep working), `gitIngest`,
85
+ `reflectTimeoutMs` (AUTOMATIC session reflect, default 120000; hooks cap at 25s),
86
+ `reflectToolTimeoutMs`/`reflectBudget` (the agent-invoked `hindsight_reflect` tool: default 330000 —
87
+ above the server's 300s reflect wall timeout — and "high"), `autoReflect` (true; false = no injected
88
+ first-prompt synthesis — the agent is instead told to call `hindsight_reflect` on new goals),
89
+ `pageRefreshEveryTurns` (10),
90
+ `pageTriggerType`/`pageTriggerCron` (when NEW knowledge pages refresh: `auto-refresh` (default) after
91
+ each consolidation, `cron` on a schedule, `manual` never — existing pages keep the trigger they were
92
+ created with), `autoSeed`/`seedLimit` (true/300),
83
93
  `codebaseSurvey`/`surveyModel`/`surveyBudgetUsd` (true/haiku/2), `surveyRefreshCommits` (0=off),
84
94
  `logLevel` ("info").
85
95
 
96
+ Config is read at process start, not watched: a hook harness picks an edit up on the next prompt, a
97
+ persistent plugin (opencode, Kilo, Cline, Prime Agent, dsh) only after the agent restarts, and the
98
+ MCP server in the next session. `apiToken` is the exception — re-read whenever the server rejects a
99
+ request, so rotating it needs no restart. `hindsight_diagnose` reports the file's token and the
100
+ running client's separately, which is how you tell a stale credential from a wrong one.
101
+
86
102
  Blacklist a whole directory tree: map it to one bank and disable that bank —
87
103
  `"mapPathToBank": {"~/scratch": "scratch"}` + `"banks": {"scratch": {"disabled": true}}`.
88
104