@dv.nghiem/flowdeck 0.3.8 → 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.
Files changed (136) hide show
  1. package/README.md +13 -122
  2. package/dist/agents/code-explorer.d.ts.map +1 -1
  3. package/dist/agents/mapper.d.ts.map +1 -1
  4. package/dist/agents/orchestrator.d.ts.map +1 -1
  5. package/dist/agents/planner.d.ts.map +1 -1
  6. package/dist/agents/specialist.d.ts.map +1 -1
  7. package/dist/dashboard/server.mjs +12 -2
  8. package/dist/hooks/compaction-hook.d.ts.map +1 -1
  9. package/dist/hooks/file-tracker.d.ts +6 -0
  10. package/dist/hooks/file-tracker.d.ts.map +1 -1
  11. package/dist/hooks/notifications.d.ts.map +1 -1
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +752 -785
  14. package/dist/lib/completion-validator.d.ts +51 -0
  15. package/dist/lib/completion-validator.d.ts.map +1 -0
  16. package/dist/lib/recommended-question.d.ts +24 -0
  17. package/dist/lib/recommended-question.d.ts.map +1 -0
  18. package/dist/lib/research-gate.d.ts +97 -0
  19. package/dist/lib/research-gate.d.ts.map +1 -0
  20. package/dist/lib/research-gate.test.d.ts +2 -0
  21. package/dist/lib/research-gate.test.d.ts.map +1 -0
  22. package/dist/mcp/index.d.ts +14 -3
  23. package/dist/mcp/index.d.ts.map +1 -1
  24. package/dist/services/codegraph.d.ts +36 -0
  25. package/dist/services/codegraph.d.ts.map +1 -0
  26. package/dist/services/codegraph.test.d.ts +2 -0
  27. package/dist/services/codegraph.test.d.ts.map +1 -0
  28. package/dist/services/command-validator.d.ts +11 -0
  29. package/dist/services/command-validator.d.ts.map +1 -1
  30. package/dist/services/preflight-explorer.d.ts +130 -0
  31. package/dist/services/preflight-explorer.d.ts.map +1 -0
  32. package/dist/services/preflight-explorer.test.d.ts +25 -0
  33. package/dist/services/preflight-explorer.test.d.ts.map +1 -0
  34. package/dist/services/question-guard.d.ts +96 -0
  35. package/dist/services/question-guard.d.ts.map +1 -0
  36. package/dist/services/quick-router.d.ts +40 -1
  37. package/dist/services/quick-router.d.ts.map +1 -1
  38. package/dist/services/recommended-question.test.d.ts +2 -0
  39. package/dist/services/recommended-question.test.d.ts.map +1 -0
  40. package/dist/services/supervisor-binding.d.ts +3 -1
  41. package/dist/services/supervisor-binding.d.ts.map +1 -1
  42. package/dist/tools/codebase-index.d.ts +30 -0
  43. package/dist/tools/codebase-index.d.ts.map +1 -0
  44. package/dist/tools/codebase-index.test.d.ts +2 -0
  45. package/dist/tools/codebase-index.test.d.ts.map +1 -0
  46. package/dist/tools/codegraph-tool.d.ts +3 -0
  47. package/dist/tools/codegraph-tool.d.ts.map +1 -0
  48. package/dist/tools/planning-state-lib.d.ts +23 -0
  49. package/dist/tools/planning-state-lib.d.ts.map +1 -1
  50. package/docs/agents/index.md +154 -0
  51. package/docs/commands/fd-ask.md +71 -39
  52. package/docs/commands/fd-checkpoint.md +63 -8
  53. package/docs/commands/fd-deploy-check.md +166 -9
  54. package/docs/commands/fd-design.md +101 -0
  55. package/docs/commands/fd-discuss.md +87 -20
  56. package/docs/commands/fd-doctor.md +100 -13
  57. package/docs/commands/fd-done.md +215 -0
  58. package/docs/commands/fd-execute.md +104 -0
  59. package/docs/commands/fd-fix-bug.md +144 -24
  60. package/docs/commands/fd-map-codebase.md +85 -21
  61. package/docs/commands/fd-multi-repo.md +155 -40
  62. package/docs/commands/fd-new-feature.md +63 -19
  63. package/docs/commands/fd-plan.md +80 -27
  64. package/docs/commands/fd-quick.md +143 -29
  65. package/docs/commands/fd-reflect.md +81 -13
  66. package/docs/commands/fd-resume.md +65 -8
  67. package/docs/commands/fd-status.md +80 -12
  68. package/docs/commands/fd-suggest.md +114 -0
  69. package/docs/commands/fd-translate-intent.md +69 -9
  70. package/docs/commands/fd-verify.md +71 -14
  71. package/docs/commands/fd-write-docs.md +121 -8
  72. package/docs/concepts/architecture.md +163 -0
  73. package/docs/concepts/governance.md +242 -0
  74. package/docs/concepts/intelligence.md +145 -0
  75. package/docs/concepts/multi-repo.md +227 -0
  76. package/docs/concepts/workflows.md +205 -0
  77. package/docs/configuration/index.md +208 -0
  78. package/docs/configuration/opencode-settings.md +98 -0
  79. package/docs/getting-started/first-project.md +126 -0
  80. package/docs/getting-started/installation.md +73 -0
  81. package/docs/getting-started/quick-start.md +74 -0
  82. package/docs/index.md +36 -72
  83. package/docs/reference/hooks.md +176 -0
  84. package/docs/reference/rules.md +109 -0
  85. package/docs/skills/code-review.md +47 -0
  86. package/docs/skills/index.md +148 -0
  87. package/docs/skills/planning.md +39 -0
  88. package/package.json +1 -1
  89. package/src/commands/fd-deploy-check.md +2 -2
  90. package/src/commands/fd-discuss.md +128 -7
  91. package/src/commands/fd-done.md +196 -0
  92. package/src/commands/fd-execute.md +43 -6
  93. package/src/commands/fd-fix-bug.md +43 -6
  94. package/src/commands/fd-map-codebase.md +100 -20
  95. package/src/commands/fd-multi-repo.md +1 -1
  96. package/src/commands/fd-new-feature.md +14 -5
  97. package/src/commands/fd-plan.md +38 -1
  98. package/src/commands/fd-quick.md +77 -14
  99. package/src/commands/fd-resume.md +1 -1
  100. package/src/commands/fd-status.md +1 -1
  101. package/src/commands/fd-verify.md +16 -2
  102. package/src/commands/fd-write-docs.md +30 -5
  103. package/src/rules/common/behavioral.md +63 -0
  104. package/src/skills/codebase-mapping/SKILL.md +1 -1
  105. package/src/skills/context-load/SKILL.md +1 -1
  106. package/src/skills/multi-repo/SKILL.md +1 -1
  107. package/src/skills/repo-memory-graph/SKILL.md +1 -1
  108. package/dist/hooks/memory-hook.d.ts +0 -28
  109. package/dist/hooks/memory-hook.d.ts.map +0 -1
  110. package/dist/services/memory-store.d.ts +0 -73
  111. package/dist/services/memory-store.d.ts.map +0 -1
  112. package/dist/services/memory-store.test.d.ts +0 -2
  113. package/dist/services/memory-store.test.d.ts.map +0 -1
  114. package/dist/tools/memory-search.d.ts +0 -3
  115. package/dist/tools/memory-search.d.ts.map +0 -1
  116. package/dist/tools/memory-status.d.ts +0 -3
  117. package/dist/tools/memory-status.d.ts.map +0 -1
  118. package/docs/USER_GUIDE.md +0 -20
  119. package/docs/agents.md +0 -544
  120. package/docs/best-practices.md +0 -47
  121. package/docs/commands/fd-new-project.md +0 -24
  122. package/docs/commands.md +0 -557
  123. package/docs/configuration.md +0 -325
  124. package/docs/design-first-workflow.md +0 -94
  125. package/docs/feature-integration-architecture.md +0 -227
  126. package/docs/installation.md +0 -123
  127. package/docs/intelligence.md +0 -370
  128. package/docs/memory.md +0 -69
  129. package/docs/multi-repo.md +0 -201
  130. package/docs/notifications.md +0 -170
  131. package/docs/optimization-baseline.md +0 -21
  132. package/docs/quick-start.md +0 -197
  133. package/docs/rules.md +0 -432
  134. package/docs/skills.md +0 -417
  135. package/docs/workflows.md +0 -134
  136. package/src/commands/fd-new-project.md +0 -114
package/README.md CHANGED
@@ -9,8 +9,8 @@ FlowDeck adds a structured, multi-agent development workflow to OpenCode. It coo
9
9
  ## Features
10
10
 
11
11
  - 🤖 **25 agents** — architect, planner, coder, reviewer, tester, debugger, risk-analyst, policy-enforcer, and more
12
- - 🛠️ **59 skills** — reusable workflow patterns (TDD, security scan, deploy check, code review, and more)
13
- - ⚡ **20 commands** — workflow commands for all project operations
12
+ - 🛠️ **64 skills** — reusable workflow patterns (TDD, security scan, deploy check, code review, and more)
13
+ - ⚡ **21 commands** — workflow commands for all project operations
14
14
  - 📋 **15 workflows** — pre-built orchestration flows including Spec-Driven Development (SDD)
15
15
  - 🔄 **Persistent state** — resume exactly where you left off across sessions via `.planning/STATE.md`
16
16
  - 🔀 **Parallel execution** — independent tasks run simultaneously in wave-structured batches
@@ -22,7 +22,7 @@ FlowDeck adds a structured, multi-agent development workflow to OpenCode. It coo
22
22
  - 🪝 **Deep System Hooks** — context window monitoring, session idle summaries, shell environment injection, and structured compaction to prevent context loss
23
23
  - 🌐 **Built-in MCPs** — Context7 (docs), Exa (web search), and Grep.app (code search) included and enabled by default
24
24
  - 💎 **Ensemble Reasoning** — `council` tool for synthesized consensus from multiple specialized agents
25
- - 🧠 **Persistent Memory** — SQLite-based memory stores tool executions, assistant messages, and session summaries. Agents can search past observations with `memory-search` tool.
25
+ - 🗺️ **Codegraph Integration** — Codegraph-backed code understanding maps the codebase at indexing time and serves as the shared intelligence layer for all commands and agents.
26
26
  - ⚙️ **Model-agnostic** — no model is hardcoded. Every agent uses your currently selected OpenCode model. Override per-agent in `flowdeck.json`.
27
27
 
28
28
  ---
@@ -50,16 +50,18 @@ See [Installation](docs/installation.md) for prerequisites, verification steps,
50
50
  FlowDeck structures every feature through a six-step cycle:
51
51
 
52
52
  ```
53
- /fd-new-project → /fd-new-feature → /fd-discuss → /fd-plan → /fd-execute → /fd-verify
53
+ /fd-map-codebase → /fd-new-feature → /fd-discuss → /fd-design → /fd-plan → /fd-execute → /fd-verify → /fd-done
54
54
  ```
55
55
 
56
56
  | Step | Command | What happens |
57
57
  |------|---------|--------------|
58
- | **Setup** | `/fd-new-project MyApp` | Creates `.planning/` directory with `PROJECT.md`, `STATE.md`, and `ROADMAP.md` |
58
+ | **Map** | `/fd-map-codebase` | Analyses and indexes the codebase into structured `.codebase/` files |
59
59
  | **Define Feature** | `/fd-new-feature "…"` | Initialize feature context, creates `FEATURE.md` in current phase |
60
60
  | **Discuss** | `/fd-discuss` | `@discusser` runs structured Q&A, saves decisions to `DISCUSS.md` |
61
+ | **Design** | `/fd-design` | `@design` produces UI artifacts — wireframes, visual system, approval gate |
61
62
  | **Plan** | `/fd-plan` | `@planner` builds a wave-structured `PLAN.md`; you type `CONFIRM` to proceed |
62
63
  | **Execute** | `/fd-execute` | `@orchestrator` delegates to `@architect`, `@backend-coder`, `@tester`, `@reviewer` via TDD |
64
+ | **Done** | `/fd-done` | Mark complete — validates readiness, finalizes state, refreshes mapping |
63
65
  | **Verify** | `/fd-verify` | Full test suite, code review, security scan, and deploy check |
64
66
 
65
67
  State is written to `.planning/STATE.md` after each phase. Use `/fd-checkpoint` to save mid-session and `/fd-resume` to reload context in a new session.
@@ -72,39 +74,29 @@ State is written to `.planning/STATE.md` after each phase. Use `/fd-checkpoint`
72
74
 
73
75
  | Command | Purpose |
74
76
  |---------|---------|
75
- | `/fd-new-project` | Bootstrap a new project with PROJECT.md, ROADMAP.md, STATE.md |
76
77
  | `/fd-map-codebase` | Analyse and index the codebase into structured `.codebase/` files |
77
78
  | `/fd-new-feature` | Define a new feature and initialize feature context |
78
79
  | `/fd-discuss` | Pre-planning structured Q&A to capture decisions |
80
+ | `/fd-design` | Design-first workflow for UI-heavy tasks — draft, review, or define design system rules |
79
81
  | `/fd-plan` | Generate a wave-structured execution plan from decisions |
80
82
  | `/fd-execute` | Implement feature with TDD discipline and parallel agents |
83
+ | `/fd-done` | Mark feature/phase complete — validates readiness, finalizes state, refreshes mapping |
81
84
  | `/fd-verify` | Full verification pipeline: tests, code review, security scan, deploy check |
82
85
  | `/fd-fix-bug` | Diagnose, fix, and verify a bug with regression test |
83
86
  | `/fd-write-docs` | Explore APIs and generate accurate documentation |
84
- | `/fd-deploy-check` | Pre-deploy safety check with test, security, and build verification |
87
+ | `/fd-deploy-check` | Pre-change release safety checks and review routing |
85
88
  | `/fd-status` | View project progress, roadmap, and workspace overview |
86
89
  | `/fd-checkpoint` | Save a session checkpoint to STATE.md |
87
90
  | `/fd-resume` | Reload STATE.md and PLAN.md to continue interrupted session |
88
91
  | `/fd-reflect` | Post-session reflection or capture patterns as reusable skills |
89
92
  | `/fd-multi-repo` | Multi-repo orchestration — list, add, remove, or status |
90
- | `/fd-translate-intent` | Convert vague requests into ranked implementation options |
91
- | `/fd-suggest` | Analyze the codebase and suggest high-value feature opportunities |
93
+ | `/fd-translate-intent` | Convert vague requests into ranked implementation options with tradeoffs |
94
+ | `/fd-suggest` | Combined opportunity and risk analysis (impact, volatility, failures, skill gaps) |
92
95
  | `/fd-ask` | Smart agent dispatch — routes to specialist by keyword |
93
96
  | `/fd-quick` | Focused task with automatic agent selection |
94
97
  | `/fd-doctor` | Check FlowDeck installation and environment health |
95
98
 
96
- ### Analysis commands
97
-
98
- These umbrella commands consolidate multiple analysis modules into focused entry points:
99
-
100
- | Command | Purpose |
101
- |---------|---------|
102
- | `/fd-translate-intent` | Convert vague requests into ranked implementation options with tradeoffs |
103
- | `/fd-suggest` | Combined opportunity and risk analysis (impact, volatility, failures, and skill gaps) |
104
- | `/fd-deploy-check` | Pre-change release safety checks and review routing |
105
- | `/fd-verify` | Standalone verification for tests, review, and security checks |
106
-
107
- See [docs/workflows.md](docs/workflows.md) for details on how analysis commands work.
99
+ See [docs/workflows.md](docs/workflows.md) for details on how commands work.
108
100
 
109
101
  ---
110
102
 
@@ -172,104 +164,3 @@ Agents not listed in `agents` inherit the active OpenCode model. See [Configurat
172
164
  ## License
173
165
 
174
166
  MIT
175
-
176
-
177
- ---
178
-
179
- ## Quick Install
180
-
181
- ### Method 1: curl (recommended)
182
-
183
- ```bash
184
- curl -fsSL https://raw.githubusercontent.com/DVNghiem/flowdeck/main/install.sh | bash
185
- ```
186
-
187
- ### Method 2: npx (no git required)
188
-
189
- ```bash
190
- npx @dv.nghiem/flowdeck install
191
- ```
192
-
193
- See [Installation](docs/installation.md) for prerequisites, verification steps, and environment variables.
194
-
195
- ---
196
-
197
- ## Core Workflow
198
-
199
- FlowDeck structures every feature through a six-step cycle:
200
-
201
- ```
202
- /fd-new-project → /fd-new-feature → /fd-discuss → /fd-plan → /fd-execute → /fd-verify
203
- ```
204
-
205
- | Step | Command | What happens |
206
- |------|---------|--------------|
207
- | **Setup** | `/fd-new-project MyApp` | Creates `.planning/` directory with `PROJECT.md`, `STATE.md`, and `ROADMAP.md` |
208
- | **Define Feature** | `/fd-new-feature "…"` | Initialize feature context, creates `FEATURE.md` in current phase |
209
- | **Discuss** | `/fd-discuss` | `@discusser` runs structured Q&A, saves decisions to `DISCUSS.md` |
210
- | **Plan** | `/fd-plan` | `@planner` builds a wave-structured `PLAN.md`; you type `CONFIRM` to proceed |
211
- | **Execute** | `/fd-execute` | `@orchestrator` delegates to `@architect`, `@backend-coder`, `@tester`, `@reviewer` via TDD |
212
- | **Verify** | `/fd-verify` | Full test suite, code review, security scan, and deploy check |
213
-
214
- State is written to `.planning/STATE.md` after each phase. Use `/fd-checkpoint` to save mid-session and `/fd-resume` to reload context in a new session.
215
-
216
- ---
217
-
218
- ## Command Reference
219
-
220
- ### Workflow commands
221
-
222
- | Command | Purpose |
223
- |---------|---------|
224
- | `/fd-new-project` | Bootstrap a new project with PROJECT.md, ROADMAP.md, STATE.md |
225
- | `/fd-map-codebase` | Analyse and index the codebase into structured `.codebase/` files |
226
- | `/fd-new-feature` | Define a new feature and initialize feature context |
227
- | `/fd-discuss` | Pre-planning structured Q&A to capture decisions |
228
- | `/fd-plan` | Generate a wave-structured execution plan from decisions |
229
- | `/fd-execute` | Implement feature with TDD discipline and parallel agents |
230
- | `/fd-verify` | Full verification pipeline: tests, code review, security scan, deploy check |
231
- | `/fd-fix-bug` | Diagnose, fix, and verify a bug with regression test |
232
- | `/fd-write-docs` | Explore APIs and generate accurate documentation |
233
- | `/fd-deploy-check` | Pre-deploy safety check with test, security, and build verification |
234
- | `/fd-status` | View project progress, roadmap, and workspace overview |
235
- | `/fd-checkpoint` | Save a session checkpoint to STATE.md |
236
- | `/fd-resume` | Reload STATE.md and PLAN.md to continue interrupted session |
237
- | `/fd-reflect` | Post-session reflection or capture patterns as reusable skills |
238
- | `/fd-multi-repo` | Multi-repo orchestration — list, add, remove, or status |
239
- | `/fd-translate-intent` | Convert vague requests into ranked implementation options |
240
- | `/fd-suggest` | Analyze the codebase and suggest high-value feature opportunities |
241
- | `/fd-ask` | Smart agent dispatch — routes to specialist by keyword |
242
- | `/fd-quick` | Focused task with automatic agent selection |
243
- | `/fd-doctor` | Check FlowDeck installation and environment health |
244
-
245
- ### Analysis commands
246
-
247
- These umbrella commands consolidate multiple analysis modules into focused entry points:
248
-
249
- | Command | Purpose |
250
- |---------|---------|
251
- | `/fd-translate-intent` | Convert vague requests into ranked implementation options with tradeoffs |
252
- | `/fd-suggest` | Combined opportunity and risk analysis (impact, volatility, failures, and skill gaps) |
253
- | `/fd-deploy-check` | Pre-change release safety checks and review routing |
254
- | `/fd-verify` | Standalone verification for tests, review, and security checks |
255
-
256
- See [docs/workflows.md](docs/workflows.md) for details on how analysis commands work.
257
-
258
- ---
259
-
260
- ## Documentation
261
-
262
- | File | Description |
263
- |------|-------------|
264
- | [docs/index.md](docs/index.md) | Full documentation table of contents |
265
- | [docs/installation.md](docs/installation.md) | Prerequisites, install methods, verification, and uninstall |
266
- | [docs/quick-start.md](docs/quick-start.md) | First 15 minutes — step-by-step walkthrough |
267
- | [docs/configuration.md](docs/configuration.md) | `opencode.json`, project config, environment variables, plugin tools |
268
- | [docs/USER_GUIDE.md](docs/USER_GUIDE.md) | Full agent and skill usage reference with examples |
269
- | [docs/workflows.md](docs/workflows.md) | Command architecture and workflow patterns |
270
-
271
- ---
272
-
273
- ## License
274
-
275
- MIT
@@ -1 +1 @@
1
- {"version":3,"file":"code-explorer.d.ts","sourceRoot":"","sources":["../../src/agents/code-explorer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,YAAY,EAAE,MAAM,SAAS,CAAC;AA8F7D,eAAO,MAAM,uBAAuB,EAAE,YAqBrC,CAAC"}
1
+ {"version":3,"file":"code-explorer.d.ts","sourceRoot":"","sources":["../../src/agents/code-explorer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,YAAY,EAAE,MAAM,SAAS,CAAC;AA6I7D,eAAO,MAAM,uBAAuB,EAAE,YAqBrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"mapper.d.ts","sourceRoot":"","sources":["../../src/agents/mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,YAAY,EAAE,MAAM,SAAS,CAAC;AAsE7D,eAAO,MAAM,iBAAiB,EAAE,YAiB/B,CAAC"}
1
+ {"version":3,"file":"mapper.d.ts","sourceRoot":"","sources":["../../src/agents/mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,YAAY,EAAE,MAAM,SAAS,CAAC;AA8F7D,eAAO,MAAM,iBAAiB,EAAE,YAiB/B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["../../src/agents/orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA2Q/C;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,CAsB5E;AAED,wBAAgB,uBAAuB,CACrC,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,EACjE,YAAY,CAAC,EAAE,MAAM,EACrB,kBAAkB,CAAC,EAAE,MAAM,EAC3B,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,GAC3B,eAAe,CAuBjB"}
1
+ {"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["../../src/agents/orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAmS/C;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,CAsB5E;AAED,wBAAgB,uBAAuB,CACrC,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,EACjE,YAAY,CAAC,EAAE,MAAM,EACrB,kBAAkB,CAAC,EAAE,MAAM,EAC3B,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,GAC3B,eAAe,CAuBjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"planner.d.ts","sourceRoot":"","sources":["../../src/agents/planner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,YAAY,EAAE,MAAM,SAAS,CAAC;AA+N7D,eAAO,MAAM,kBAAkB,EAAE,YAiBhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,YAqBpC,CAAC"}
1
+ {"version":3,"file":"planner.d.ts","sourceRoot":"","sources":["../../src/agents/planner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,YAAY,EAAE,MAAM,SAAS,CAAC;AAoO7D,eAAO,MAAM,kBAAkB,EAAE,YAiBhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,YAqBpC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"specialist.d.ts","sourceRoot":"","sources":["../../src/agents/specialist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,YAAY,EAAE,MAAM,SAAS,CAAC;AAuN7D,eAAO,MAAM,uBAAuB,EAAE,YAqBrC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,YAiBlC,CAAC"}
1
+ {"version":3,"file":"specialist.d.ts","sourceRoot":"","sources":["../../src/agents/specialist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,YAAY,EAAE,MAAM,SAAS,CAAC;AA2Q7D,eAAO,MAAM,uBAAuB,EAAE,YAqBrC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,YAiBlC,CAAC"}
@@ -12482,7 +12482,12 @@ function readPlanningState(dir) {
12482
12482
  last_action: "",
12483
12483
  next_action: "",
12484
12484
  blockers: [],
12485
- tdd: undefined
12485
+ tdd: undefined,
12486
+ lastUpdatedAt: "",
12487
+ lastUpdatedBy: "",
12488
+ lastUpdatedPhase: 1,
12489
+ summaryVersion: 0,
12490
+ freshnessStatus: "unknown"
12486
12491
  };
12487
12492
  }
12488
12493
  const content = readFileSync2(sp, "utf-8");
@@ -12503,7 +12508,12 @@ function readPlanningState(dir) {
12503
12508
  last_action: parsed.last_action || "",
12504
12509
  next_action: parsed.next_action || "",
12505
12510
  blockers: parsed.blockers || [],
12506
- tdd: parseTDDState(parsed)
12511
+ tdd: parseTDDState(parsed),
12512
+ lastUpdatedAt: parsed.lastUpdatedAt || "",
12513
+ lastUpdatedBy: parsed.lastUpdatedBy || "",
12514
+ lastUpdatedPhase: parsed.lastUpdatedPhase || 1,
12515
+ summaryVersion: parsed.summaryVersion || 0,
12516
+ freshnessStatus: parsed.freshnessStatus || "unknown"
12507
12517
  };
12508
12518
  }
12509
12519
  function parseTDDState(parsed) {
@@ -1 +1 @@
1
- {"version":3,"file":"compaction-hook.d.ts","sourceRoot":"","sources":["../../src/hooks/compaction-hook.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAoDxD,wBAAgB,oBAAoB,CAClC,GAAG,EAAE;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,EAC1B,OAAO,EAAE,kBAAkB,IAGzB,QAAQ;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,EAC7B,QAAQ;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,mBA8BjD"}
1
+ {"version":3,"file":"compaction-hook.d.ts","sourceRoot":"","sources":["../../src/hooks/compaction-hook.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAoDxD,wBAAgB,oBAAoB,CAClC,GAAG,EAAE;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,EAC1B,OAAO,EAAE,kBAAkB,IAGzB,QAAQ;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,EAC7B,QAAQ;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,mBA8CjD"}
@@ -12,6 +12,8 @@ export interface FileChange {
12
12
  }
13
13
  export declare class SessionFileTracker {
14
14
  private changes;
15
+ private onFileChange?;
16
+ setOnFileChange(callback: (path: string, type: ChangeType) => void): void;
15
17
  record(path: string, type: ChangeType): void;
16
18
  getChanges(): FileChange[];
17
19
  getEditedPaths(): string[];
@@ -26,4 +28,8 @@ export declare function createFileTrackerHooks(tracker: SessionFileTracker): {
26
28
  type: string;
27
29
  }) => void;
28
30
  };
31
+ export declare function createCodebaseIndexFileTracker(directory: string): {
32
+ tracker: SessionFileTracker;
33
+ publishToIndex: (agent: string, stage: string) => void;
34
+ };
29
35
  //# sourceMappingURL=file-tracker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-tracker.d.ts","sourceRoot":"","sources":["../../src/hooks/file-tracker.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;AAEzD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,UAAU,CAAA;CACjB;AAED,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,OAAO,CAAgC;IAE/C,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI;IAI5C,UAAU,IAAI,UAAU,EAAE;IAI1B,cAAc,IAAI,MAAM,EAAE;IAM1B,KAAK,IAAI,IAAI;CAGd;AAGD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,kBAAkB;wBACrC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;gCAIR;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;EAQlE"}
1
+ {"version":3,"file":"file-tracker.d.ts","sourceRoot":"","sources":["../../src/hooks/file-tracker.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;AAEzD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,UAAU,CAAA;CACjB;AAED,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,OAAO,CAAgC;IAC/C,OAAO,CAAC,YAAY,CAAC,CAA0C;IAE/D,eAAe,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,KAAK,IAAI,GAAG,IAAI;IAIzE,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI;IAO5C,UAAU,IAAI,UAAU,EAAE;IAI1B,cAAc,IAAI,MAAM,EAAE;IAM1B,KAAK,IAAI,IAAI;CAGd;AAGD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,kBAAkB;wBACrC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;gCAIR;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;EAQlE;AAED,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,MAAM,GAAG;IACjE,OAAO,EAAE,kBAAkB,CAAA;IAC3B,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACvD,CAkBA"}
@@ -1 +1 @@
1
- {"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/hooks/notifications.ts"],"names":[],"mappings":"AAmBA,KAAK,WAAW,GAAG,MAAM,GAAG,UAAU,CAAA;AAEtC;;;GAGG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,GAAE,WAAoB,GAAG,IAAI,CAoCrF;AAUD;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAgB9D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAMxC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAMzD"}
1
+ {"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/hooks/notifications.ts"],"names":[],"mappings":"AAsBA,KAAK,WAAW,GAAG,MAAM,GAAG,UAAU,CAAA;AAEtC;;;GAGG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,GAAE,WAAoB,GAAG,IAAI,CAoCrF;AAUD;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAiB9D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAMxC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAMzD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAmGjD,QAAA,MAAM,MAAM,EAAE,MA+Vb,CAAA;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAgGjD,QAAA,MAAM,MAAM,EAAE,MAqTb,CAAA;AAED,eAAe,MAAM,CAAA"}