@dv.nghiem/flowdeck 0.4.3 → 0.4.5

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 (139) hide show
  1. package/dist/agents/risk-analyst.d.ts.map +1 -1
  2. package/dist/dashboard/lib/state-reader.d.ts.map +1 -1
  3. package/dist/dashboard/server.mjs +22 -73
  4. package/dist/hooks/approval-hook.d.ts.map +1 -1
  5. package/dist/hooks/event-log-hook.d.ts +12 -0
  6. package/dist/hooks/event-log-hook.d.ts.map +1 -0
  7. package/dist/hooks/orchestrator-guard-hook.d.ts.map +1 -1
  8. package/dist/hooks/patch-trust.d.ts +0 -1
  9. package/dist/hooks/patch-trust.d.ts.map +1 -1
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +634 -823
  12. package/dist/lib/impact-radar.d.ts.map +1 -1
  13. package/dist/services/agent-validator.d.ts +1 -1
  14. package/dist/services/agent-validator.d.ts.map +1 -1
  15. package/dist/services/event-logger.d.ts +18 -0
  16. package/dist/services/event-logger.d.ts.map +1 -0
  17. package/dist/services/supervisor-binding.d.ts.map +1 -1
  18. package/dist/services/token-metrics.d.ts +1 -1
  19. package/dist/services/workflow-scorecard.d.ts.map +1 -1
  20. package/dist/tools/delegate.d.ts.map +1 -1
  21. package/dist/tools/run-pipeline.d.ts.map +1 -1
  22. package/docs/commands/fd-deploy-check.md +1 -5
  23. package/docs/commands/fd-reflect.md +8 -9
  24. package/docs/commands/fd-suggest.md +3 -4
  25. package/docs/concepts/architecture.md +0 -3
  26. package/docs/concepts/intelligence.md +2 -36
  27. package/docs/skills/index.md +0 -2
  28. package/package.json +2 -2
  29. package/src/commands/fd-deploy-check.md +1 -5
  30. package/src/commands/fd-reflect.md +4 -6
  31. package/src/commands/fd-suggest.md +3 -4
  32. package/src/skills/change-impact-radar/SKILL.md +3 -4
  33. package/src/skills/confidence-aware-planning/SKILL.md +0 -1
  34. package/src/skills/patch-trust-score/SKILL.md +3 -5
  35. package/dist/dashboard/lib/port-finder.test.d.ts +0 -2
  36. package/dist/dashboard/lib/port-finder.test.d.ts.map +0 -1
  37. package/dist/hooks/notifications.test.d.ts +0 -14
  38. package/dist/hooks/notifications.test.d.ts.map +0 -1
  39. package/dist/hooks/patch-trust.test.d.ts +0 -2
  40. package/dist/hooks/patch-trust.test.d.ts.map +0 -1
  41. package/dist/hooks/telemetry-hook.d.ts +0 -32
  42. package/dist/hooks/telemetry-hook.d.ts.map +0 -1
  43. package/dist/hooks/telemetry-hook.test.d.ts +0 -2
  44. package/dist/hooks/telemetry-hook.test.d.ts.map +0 -1
  45. package/dist/hooks/tool-guard.test.d.ts +0 -2
  46. package/dist/hooks/tool-guard.test.d.ts.map +0 -1
  47. package/dist/lib/research-gate.test.d.ts +0 -2
  48. package/dist/lib/research-gate.test.d.ts.map +0 -1
  49. package/dist/services/artifact-store.d.ts +0 -39
  50. package/dist/services/artifact-store.d.ts.map +0 -1
  51. package/dist/services/artifact-store.test.d.ts +0 -2
  52. package/dist/services/artifact-store.test.d.ts.map +0 -1
  53. package/dist/services/codegraph.test.d.ts +0 -2
  54. package/dist/services/codegraph.test.d.ts.map +0 -1
  55. package/dist/services/command-validator.test.d.ts +0 -2
  56. package/dist/services/command-validator.test.d.ts.map +0 -1
  57. package/dist/services/context-assembler.d.ts +0 -29
  58. package/dist/services/context-assembler.d.ts.map +0 -1
  59. package/dist/services/context-assembler.test.d.ts +0 -2
  60. package/dist/services/context-assembler.test.d.ts.map +0 -1
  61. package/dist/services/cost-budget.d.ts +0 -53
  62. package/dist/services/cost-budget.d.ts.map +0 -1
  63. package/dist/services/cost-budget.test.d.ts +0 -2
  64. package/dist/services/cost-budget.test.d.ts.map +0 -1
  65. package/dist/services/cost-estimator.test.d.ts +0 -2
  66. package/dist/services/cost-estimator.test.d.ts.map +0 -1
  67. package/dist/services/draft-verifier.d.ts +0 -48
  68. package/dist/services/draft-verifier.d.ts.map +0 -1
  69. package/dist/services/draft-verifier.test.d.ts +0 -2
  70. package/dist/services/draft-verifier.test.d.ts.map +0 -1
  71. package/dist/services/governance.test.d.ts +0 -11
  72. package/dist/services/governance.test.d.ts.map +0 -1
  73. package/dist/services/index.d.ts +0 -25
  74. package/dist/services/index.d.ts.map +0 -1
  75. package/dist/services/lazy-rule-loader.test.d.ts +0 -23
  76. package/dist/services/lazy-rule-loader.test.d.ts.map +0 -1
  77. package/dist/services/model-router-ext.test.d.ts +0 -2
  78. package/dist/services/model-router-ext.test.d.ts.map +0 -1
  79. package/dist/services/model-router.test.d.ts +0 -2
  80. package/dist/services/model-router.test.d.ts.map +0 -1
  81. package/dist/services/policy-compiler.d.ts +0 -27
  82. package/dist/services/policy-compiler.d.ts.map +0 -1
  83. package/dist/services/preflight-explorer.test.d.ts +0 -25
  84. package/dist/services/preflight-explorer.test.d.ts.map +0 -1
  85. package/dist/services/prompt-cache-ext.test.d.ts +0 -2
  86. package/dist/services/prompt-cache-ext.test.d.ts.map +0 -1
  87. package/dist/services/prompt-cache.test.d.ts +0 -2
  88. package/dist/services/prompt-cache.test.d.ts.map +0 -1
  89. package/dist/services/quick-router.test.d.ts +0 -13
  90. package/dist/services/quick-router.test.d.ts.map +0 -1
  91. package/dist/services/recommended-question.test.d.ts +0 -2
  92. package/dist/services/recommended-question.test.d.ts.map +0 -1
  93. package/dist/services/rtk-manager.test.d.ts +0 -2
  94. package/dist/services/rtk-manager.test.d.ts.map +0 -1
  95. package/dist/services/rtk-policy.test.d.ts +0 -2
  96. package/dist/services/rtk-policy.test.d.ts.map +0 -1
  97. package/dist/services/rule-engine.d.ts +0 -29
  98. package/dist/services/rule-engine.d.ts.map +0 -1
  99. package/dist/services/rule-engine.test.d.ts +0 -2
  100. package/dist/services/rule-engine.test.d.ts.map +0 -1
  101. package/dist/services/services.test.d.ts +0 -2
  102. package/dist/services/services.test.d.ts.map +0 -1
  103. package/dist/services/supervisor.test.d.ts +0 -14
  104. package/dist/services/supervisor.test.d.ts.map +0 -1
  105. package/dist/services/task-batcher.d.ts +0 -48
  106. package/dist/services/task-batcher.d.ts.map +0 -1
  107. package/dist/services/task-batcher.test.d.ts +0 -2
  108. package/dist/services/task-batcher.test.d.ts.map +0 -1
  109. package/dist/services/telemetry.d.ts +0 -40
  110. package/dist/services/telemetry.d.ts.map +0 -1
  111. package/dist/services/token-budget.d.ts +0 -44
  112. package/dist/services/token-budget.d.ts.map +0 -1
  113. package/dist/services/token-budget.test.d.ts +0 -2
  114. package/dist/services/token-budget.test.d.ts.map +0 -1
  115. package/dist/services/token-metrics-ext.test.d.ts +0 -2
  116. package/dist/services/token-metrics-ext.test.d.ts.map +0 -1
  117. package/dist/services/token-metrics.test.d.ts +0 -2
  118. package/dist/services/token-metrics.test.d.ts.map +0 -1
  119. package/dist/tools/agent-dispatch.test.d.ts +0 -2
  120. package/dist/tools/agent-dispatch.test.d.ts.map +0 -1
  121. package/dist/tools/codebase-index.test.d.ts +0 -2
  122. package/dist/tools/codebase-index.test.d.ts.map +0 -1
  123. package/dist/tools/context-generator.d.ts +0 -3
  124. package/dist/tools/context-generator.d.ts.map +0 -1
  125. package/dist/tools/create-skill.d.ts +0 -3
  126. package/dist/tools/create-skill.d.ts.map +0 -1
  127. package/dist/tools/dispatch-routing.test.d.ts +0 -2
  128. package/dist/tools/dispatch-routing.test.d.ts.map +0 -1
  129. package/dist/tools/failure-replay.test.d.ts +0 -2
  130. package/dist/tools/failure-replay.test.d.ts.map +0 -1
  131. package/dist/tools/repo-memory.test.d.ts +0 -2
  132. package/dist/tools/repo-memory.test.d.ts.map +0 -1
  133. package/dist/tools/volatility-map.d.ts +0 -18
  134. package/dist/tools/volatility-map.d.ts.map +0 -1
  135. package/dist/tools/volatility-map.test.d.ts +0 -2
  136. package/dist/tools/volatility-map.test.d.ts.map +0 -1
  137. package/dist/tools/workspace-state.d.ts +0 -3
  138. package/dist/tools/workspace-state.d.ts.map +0 -1
  139. package/src/skills/volatility-map/SKILL.md +0 -52
@@ -1 +1 @@
1
- {"version":3,"file":"impact-radar.d.ts","sourceRoot":"","sources":["../../src/lib/impact-radar.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAE3D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACpD,cAAc,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,EAAE,CAAC;QAAC,gBAAgB,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC9G,eAAe,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACtE,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAOD,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,iBAAiB,CAuDjF;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,EAAE,CAa1E;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,KAAK,SAAI,GACR,YAAY,EAAE,CA0BhB"}
1
+ {"version":3,"file":"impact-radar.d.ts","sourceRoot":"","sources":["../../src/lib/impact-radar.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAE3D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACpD,cAAc,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,EAAE,CAAC;QAAC,gBAAgB,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC9G,eAAe,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACtE,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAOD,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,iBAAiB,CA2CjF;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,EAAE,CAU1E;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,KAAK,SAAI,GACR,YAAY,EAAE,CA0BhB"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Agent Validator
3
3
  * Validates agent behavior against capability contracts.
4
- * Emits policy violations to telemetry and returns a decision (allow/warn/block/escalate).
4
+ * Returns a decision (allow/warn/block/escalate).
5
5
  */
6
6
  export type ValidatorMode = "off" | "advisory" | "strict";
7
7
  export type ValidatorAction = "allow" | "warn" | "block" | "escalate";
@@ -1 +1 @@
1
- {"version":3,"file":"agent-validator.d.ts","sourceRoot":"","sources":["../../src/services/agent-validator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,UAAU,GAAG,QAAQ,CAAA;AACzD,MAAM,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AAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa,CAQrE;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,qBAAqB,GACzB,gBAAgB,CAuFlB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAChB,IAAI,GAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAO,GAClD,gBAAgB,CAElB"}
@@ -0,0 +1,18 @@
1
+ export interface ToolEvent {
2
+ timestamp: string;
3
+ type: "tool.before" | "tool.after" | "session.created" | "session.idle" | "session.error" | "agent.delegated";
4
+ agent?: string;
5
+ tool?: string;
6
+ args?: Record<string, unknown>;
7
+ thinking?: string;
8
+ duration_ms?: number;
9
+ status?: "success" | "error" | "blocked";
10
+ error?: string;
11
+ session_id?: string;
12
+ }
13
+ export declare function getCurrentAgent(): string | null;
14
+ export declare function setCurrentAgent(agent: string | null): void;
15
+ export declare function sanitizeArgs(args: unknown): Record<string, unknown>;
16
+ export declare function logEvent(directory: string, event: ToolEvent): void;
17
+ export declare function formatEventForStderr(event: ToolEvent): string;
18
+ //# sourceMappingURL=event-logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-logger.d.ts","sourceRoot":"","sources":["../../src/services/event-logger.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,aAAa,GAAG,YAAY,GAAG,iBAAiB,GAAG,cAAc,GAAG,eAAe,GAAG,iBAAiB,CAAA;IAC7G,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,Q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qBAAqB,CAAA;IACnC,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,UAAU,GAAG,QAAQ,CAAA;IAC3B,8DAA8D;IAC9D,eAAe,EAAE,MAAM,EAAE,CAAA;IACzB,QAAQ,EAAE,OAAO,CAAA;IACjB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,mBAAmB,EAAE,OAAO,CAAA;CAC7B;AAID,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,wBAAwB,CAsBnF;AAID,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,oBAAoB,CAAA;CAAE,CAIhG;AA6LD;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,GAAG,GAAE,iBAAsB,EAC3B,qBAAqB,CAAC,EAAE,MAAM,GAC7B,kBAAkB,CA4FpB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,kBAAkB,EAC5B,IAAI,EAAE,UAAU,GAAG,QAAQ,EAC3B,QAAQ,EAAE,OAAO,GAChB,OAAO,CAWT"}
@@ -78,7 +78,7 @@ export declare function recordDuplicateSuppressed(dir: string, workflow_id: stri
78
78
  export declare function recordRetryCall(dir: string, workflow_id: string, stage: WorkflowStage, inputText: string, outputText: string, agent?: string, duration_ms?: number, model?: string, est_cost_usd?: number): void;
79
79
  /**
80
80
  * Record a rule-based bypass — a check answered deterministically without a model call.
81
- * `check_type` identifies which rule-engine check was used.
81
+ * `check_type` identifies which rule-based check was used.
82
82
  */
83
83
  export declare function recordRuleBypass(dir: string, workflow_id: string, stage: WorkflowStage, check_type: string, agent?: string): void;
84
84
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-scorecard.d.ts","sourceRoot":"","sources":["../../src/services/workflow-scorecard.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAM3C,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,eAAe,EAAE,MAAM,CAAA;IACvB,uDAAuD;IACvD,qBAAqB,EAAE,MAAM,CAAA;IAC7B,uDAAuD;IACvD,aAAa,EAAE,MAAM,CAAA;IACrB,oDAAoD;IACpD,kBAAkB,EAAE,MAAM,CAAA;IAC1B,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAA;IACrB,iDAAiD;IACjD,eAAe,EAAE,MAAM,CAAA;IACvB,wCAAwC;IACxC,gBAAgB,EAAE,MAAM,CAAA;IACxB,0CAA0C;IAC1C,eAAe,EAAE,MAAM,CAAA;IACvB,uDAAuD;IACvD,cAAc,EAAE,MAAM,CAAA;IACtB,mCAAmC;IACnC,kBAAkB,EAAE,MAAM,CAAA;IAC1B;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAA;CAC7B;AAED,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,EAAE,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAA;IAClE,UAAU,EAAE,mBAAmB,CAAA;IAC/B,oDAAoD;IACpD,aAAa,EAAE,MAAM,CAAA;IACrB,iBAAiB,EAAE,MAAM,CAAA;IACzB,mBAAmB,EAAE,MAAM,CAAA;IA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,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAIhF"}
@@ -1 +1 @@
1
- {"version":3,"file":"delegate.d.ts","sourceRoot":"","sources":["../../src/tools/delegate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAmBtD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,CAmPzE"}
1
+ {"version":3,"file":"delegate.d.ts","sourceRoot":"","sources":["../../src/tools/delegate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAkBtD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,CAqPzE"}
@@ -1 +1 @@
1
- {"version":3,"file":"run-pipeline.d.ts","sourceRoot":"","sources":["../../src/tools/run-pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AA8BtD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,CAkI5E"}
1
+ {"version":3,"file":"run-pipeline.d.ts","sourceRoot":"","sources":["../../src/tools/run-pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AA8BtD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,CAuI5E"}
@@ -88,8 +88,7 @@ Determine scope (files changed since last commit or provided scope). Spawn three
88
88
  2. **Blast Radius** — downstream consequences and hidden couplings
89
89
  3. **Regression Predict** — most likely regression categories
90
90
  4. **Test Gap** — coverage gaps to fill before implementing
91
- 5. **Volatility** — check hotspot scores on affected files
92
- 6. **Review Route** — who should review this change
91
+ 5. **Review Route** — who should review this change
93
92
 
94
93
  ```
95
94
  ════════════════════════════════════════════════════
@@ -110,9 +109,6 @@ TEST GAPS (<N> gaps found)
110
109
  - CRITICAL: <gap>
111
110
  - HIGH: <gap>
112
111
 
113
- VOLATILITY
114
- Hot zones touched: <list or "none">
115
-
116
112
  REVIEW ROUTING
117
113
  → <reviewer type> (<reason>)
118
114
 
@@ -19,13 +19,11 @@
19
19
  - What knowledge was absent and had to be worked out from scratch?
20
20
 
21
21
  3. **Produce improvement proposals.**
22
- - **New skill** → call `create-skill` to capture it in `src/skills/`
22
+ - **New skill** → write it manually to `src/skills/<name>/SKILL.md` (see Skill File Structure below)
23
23
  - **Policy** → propose a new entry in `.codebase/POLICIES.json` for user review
24
24
  - **Workflow change** → note it clearly for user to decide
25
25
 
26
- 4. **Execute skill creation** for any new skills identified.
27
-
28
- 5. **Final report.** Provide:
26
+ 4. **Final report.** Provide:
29
27
  - What was captured (new skills created)
30
28
  - What requires human review (policy proposals, workflow changes)
31
29
  - 3-5 bullet summary of the session's most impactful learnings
@@ -48,11 +46,12 @@
48
46
 
49
47
  3. **Choose a name.** Use `$ARGUMENTS` if provided as skill name; otherwise derive a kebab-case name from the pattern.
50
48
 
51
- 4. **Write the skill** using the `create-skill` tool with:
52
- - `name`: kebab-case identifier
53
- - `description`: one sentence summary
54
- - `content`: full Markdown body
55
- - `tags`: 2-4 relevant tags
49
+ 4. **Write the skill** to `src/skills/<name>/SKILL.md` with:
50
+ - YAML frontmatter (`name`, `description`, `origin`)
51
+ - `## When to Activate` concrete triggers (e.g., "when X file pattern exists", "when user asks about Y")
52
+ - `## Steps` ordered, concrete steps to apply the skill
53
+ - `## Examples` at least one short concrete example
54
+ - `## Pitfalls` — common mistakes to avoid
56
55
 
57
56
  5. **Report** what was captured, why it is useful, and remind the user to restart OpenCode to activate it.
58
57
 
@@ -23,10 +23,9 @@ Check if `.planning/` directory exists:
23
23
 
24
24
  Execute tools to gather insight data:
25
25
 
26
- 1. **Volatility Map** — `volatility-map` tool to find high-change areas (instability signals)
27
- 2. **Decision Trace** — `decision-trace` tool to find incomplete or TODO decisions
28
- 3. **Failure Replay** — `failure-replay` tool to find recurring failure patterns
29
- 4. **Codebase State** — `codebase-state` tool to get overall project structure
26
+ 1. **Decision Trace** — `decision-trace` tool to find incomplete or TODO decisions
27
+ 2. **Failure Replay** — `failure-replay` tool to find recurring failure patterns
28
+ 3. **Codebase State** — `codebase-state` tool to get overall project structure
30
29
 
31
30
  ### Step 3: Scan for Gaps
32
31
 
@@ -136,17 +136,14 @@ FlowDeck registers these tools for use by agents and commands:
136
136
  |------|---------|
137
137
  | `planning-state` | Read/write `.planning/STATE.md` |
138
138
  | `codebase-state` | Read/write `.codebase/` state files |
139
- | `workspace-state` | Snapshot workspace files and git status |
140
139
  | `run-pipeline` | Execute a defined pipeline of agent steps |
141
140
  | `delegate` | Invoke a named specialist agent |
142
141
  | `council` | Run multiple agents and synthesize consensus |
143
- | `volatility-map` | Compute change frequency per file |
144
142
  | `failure-replay` | Reproduce and trace a prior failure |
145
143
  | `decision-trace` | Record and replay decision rationale |
146
144
  | `hash-edit` | Compute a content hash for an edit |
147
145
  | `policy-engine` | Evaluate agent actions against project rules |
148
146
  | `repo-memory` | Persistent memory across sessions |
149
- | `context-generator` | Generate focused context summaries |
150
147
  | `codegraph` | Query codebase structure from indexed graph |
151
148
 
152
149
  ## Plugin Initialization
@@ -12,7 +12,6 @@ The score is computed from:
12
12
 
13
13
  | Factor | Weight | What it measures |
14
14
  |--------|--------|-----------------|
15
- | File volatility | 25% | Historical change frequency from `.codebase/VOLATILITY.json` |
16
15
  | Edit scope | 20% | Lines changed vs. file total — large rewrites score lower |
17
16
  | Context window pressure | 15% | Remaining context space — edits under pressure score lower |
18
17
  | Agent history | 20% | Historical failure rate of the calling agent on this file |
@@ -28,37 +27,6 @@ The `@policy-enforcer` agent is invoked automatically when the score is below th
28
27
 
29
28
  ---
30
29
 
31
- ## Volatility Map
32
-
33
- The **volatility map** tracks change frequency per file over the session and across sessions. It is maintained by the `volatility-map` tool and stored in `.codebase/VOLATILITY.json`.
34
-
35
- ```json
36
- {
37
- "src/auth/login.ts": {
38
- "changeCount": 7,
39
- "lastChanged": "2026-05-26T09:30:00Z",
40
- "avgRevisionsPerSession": 3.2,
41
- "risk": "high"
42
- },
43
- "src/config/default.ts": {
44
- "changeCount": 1,
45
- "lastChanged": "2026-05-25T14:00:00Z",
46
- "avgRevisionsPerSession": 0.4,
47
- "risk": "low"
48
- }
49
- }
50
- ```
51
-
52
- Files with high volatility:
53
-
54
- - Receive lower Patch Trust Scores automatically
55
- - Trigger `@risk-analyst` review before large refactors
56
- - Are flagged in the Workflow Scorecard under `context_preserved` if they change frequently within a single session
57
-
58
- The volatility map is rebuilt on first session start and incrementally updated on each `edit` tool call.
59
-
60
- ---
61
-
62
30
  ## Failure Replay
63
31
 
64
32
  When a task fails (test failure, build error, runtime crash), the **failure replay** service can reproduce the failure in isolation to generate a clean diagnostic trace.
@@ -95,9 +63,8 @@ Before a plan is executed, the **regression predictor** evaluates the planned ch
95
63
 
96
64
  The predictor runs as a pre-execution check in `/fd-execute`:
97
65
 
98
- 1. For each task in the plan, look up every file the task will modify in `VOLATILITY.json`
99
- 2. Cross-reference with historical failure data in `SCORECARDS.jsonl` if similar changes broke tests before, flag the task
100
- 3. Assign a regression probability score (0.0–1.0) per task and per wave
66
+ 1. Cross-reference with historical failure data in `SCORECARDS.jsonl` if similar changes broke tests before, flag the task
67
+ 2. Assign a regression probability score (0.0–1.0) per task and per wave
101
68
 
102
69
  **Output appended to PLAN.md:**
103
70
 
@@ -137,7 +104,6 @@ Phase gating is implemented by the `guard-rails` hook running in `tool.execute.b
137
104
  | Tool / Hook | Service | Purpose |
138
105
  |-------------|---------|---------|
139
106
  | `patch-trust` hook | Patch Trust Score | Score edits before application |
140
- | `volatility-map` tool + hook | Volatility Map | Track per-file change frequency |
141
107
  | `failure-replay` tool | Failure Replay | Reproduce and trace prior failures |
142
108
  | Regression predictor (in `/fd-plan`) | Regression Prediction | Score planned changes for breakage risk |
143
109
  | `guard-rails` hook | Phase Gating | Enforce workflow discipline at phase boundaries |
@@ -67,7 +67,6 @@ Source files live in `src/skills/<name>/SKILL.md` in the project repository.
67
67
  | Skill | Description |
68
68
  |-------|-------------|
69
69
  | `performance-profiling` | Identifies hot paths and memory bottlenecks from profiling data |
70
- | `volatility-map` | Maps codebase areas by change frequency to predict impact zones |
71
70
  | `blast-radius-preview` | Estimates blast radius of a proposed change before it is merged |
72
71
  | `dependency-audit` | Scans for outdated, vulnerable, or circular dependencies |
73
72
 
@@ -108,7 +107,6 @@ Source files live in `src/skills/<name>/SKILL.md` in the project repository.
108
107
  | `regression-prediction` | Predicts which files are likely to break from a given change |
109
108
  | `repo-memory-graph` | Builds a semantic graph of codebase knowledge |
110
109
  | `decision-trace` | Records decision rationale for future review |
111
- | `volatility-map` | Maps change frequency to identify stable vs. volatile areas |
112
110
 
113
111
  ### Workflow
114
112
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dv.nghiem/flowdeck",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "FlowDeck — structured planning and execution workflows for OpenCode",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,7 +25,7 @@
25
25
  ],
26
26
  "scripts": {
27
27
  "clean": "rm -rf dist",
28
- "build": "bun build src/index.ts --outdir dist --target node --format esm --external @opencode-ai/plugin --external @opencode-ai/sdk && tsc --emitDeclarationOnly && bun build src/dashboard/server.ts --outfile dist/dashboard/server.mjs --target bun --format esm && cp -r src/dashboard/views dist/dashboard/views",
28
+ "build": "bun build src/index.ts --outdir dist --target node --format esm --external @opencode-ai/plugin --external @opencode-ai/sdk && tsc --emitDeclarationOnly --project tsconfig.build.json && bun build src/dashboard/server.ts --outfile dist/dashboard/server.mjs --target bun --format esm && cp -r src/dashboard/views dist/dashboard/views",
29
29
  "postinstall": "node postinstall.mjs",
30
30
  "prepublishOnly": "bun run clean && bun run build",
31
31
  "test": "bun test",
@@ -164,8 +164,7 @@ Run all analyses in parallel:
164
164
  2. **Blast Radius** — downstream consequences and hidden couplings
165
165
  3. **Regression Predict** — most likely regression categories
166
166
  4. **Test Gap** — coverage gaps to fill before implementing
167
- 5. **Volatility** — check hotspot scores on affected files
168
- 6. **Review Route** — who should review this change
167
+ 5. **Review Route** — who should review this change
169
168
 
170
169
  ## Consolidated Analysis Report
171
170
 
@@ -188,9 +187,6 @@ TEST GAPS (<N> gaps found)
188
187
  - CRITICAL: <gap>
189
188
  - HIGH: <gap>
190
189
 
191
- VOLATILITY
192
- Hot zones touched: <list or "none">
193
-
194
190
  REVIEW ROUTING
195
191
  → <reviewer type> (<reason>)
196
192
 
@@ -29,7 +29,7 @@ Capture a repeatable pattern from this session as a reusable FlowDeck skill.
29
29
 
30
30
  3. **Produce improvement proposals.** For each pattern or gap found:
31
31
 
32
- - **New skill** → call `create-skill` to capture it in `src/skills/`
32
+ - **New skill** → manually write it to `src/skills/<name>/SKILL.md`
33
33
  - **Policy** → propose a new entry in `.codebase/POLICIES.json` for the user to review
34
34
  - **Workflow change** → note it clearly so the user can decide
35
35
 
@@ -60,10 +60,8 @@ When `--mode=learn`:
60
60
 
61
61
  3. **Choose the skill name.** Use `$ARGUMENTS` if provided as skill name, otherwise derive a kebab-case name from the pattern.
62
62
 
63
- 4. **Write the skill** using the `create-skill` tool with:
64
- - `name`: kebab-case identifier
65
- - `description`: one sentence summarising what the skill does
66
- - `content`: the full Markdown body from step 2
67
- - `tags`: 2–4 relevant tags
63
+ 4. **Write the skill** manually to `src/skills/<name>/SKILL.md` with:
64
+ - YAML frontmatter (`name`, `description`, `origin`)
65
+ - The full Markdown body from step 2
68
66
 
69
67
  5. **Report** what was captured, why it is useful, and remind the user to restart OpenCode to activate it.
@@ -21,10 +21,9 @@ Check if `.planning/` directory exists:
21
21
 
22
22
  Execute tools to gather insight data:
23
23
 
24
- 1. **Volatility Map** — `volatility-map` tool to find high-change areas (instability signals)
25
- 2. **Decision Trace** — `decision-trace` tool to find incomplete orTODO decisions
26
- 3. **Failure Replay** — `failure-replay` tool to find recurring failure patterns
27
- 4. **Codebase State** — `codebase-state` tool to get overall project structure
24
+ 1. **Decision Trace** — `decision-trace` tool to find incomplete or TODO decisions
25
+ 2. **Failure Replay** — `failure-replay` tool to find recurring failure patterns
26
+ 3. **Codebase State** — `codebase-state` tool to get overall project structure
28
27
 
29
28
  ### Step 3: Scan for Gaps
30
29
 
@@ -23,10 +23,9 @@ Activate before:
23
23
  2. Read `.codebase/MEMORY.json` to trace the module dependency graph
24
24
  3. From the change description, identify all directly affected files
25
25
  4. Walk the dependency graph outward from affected files (depth ≤ 3 hops)
26
- 5. Cross-reference against `.codebase/VOLATILITY.json` for fragile zones
27
- 6. Identify test files that cover the affected modules
28
- 7. Flag any database schema, API contracts, or config changes
29
- 8. Produce the impact map report
26
+ 5. Identify test files that cover the affected modules
27
+ 6. Flag any database schema, API contracts, or config changes
28
+ 7. Produce the impact map report
30
29
 
31
30
  ## Impact Map Report Format
32
31
 
@@ -23,7 +23,6 @@ Not every task comes with complete information. This skill enforces honest uncer
23
23
  - Request touches 5+ files with unclear dependencies
24
24
  - Request uses domain jargon that doesn't appear in codebase
25
25
  - No test coverage in the affected area (no test files found)
26
- - File is in a volatile or critical zone per `.codebase/VOLATILITY.json`
27
26
 
28
27
  ## Workflow
29
28
 
@@ -20,7 +20,6 @@ Every AI-generated patch gets a trust score before it is applied. The score gate
20
20
 
21
21
  | Signal | Deduction |
22
22
  |--------|-----------|
23
- | File in volatile/critical volatility zone | −25 to −40 |
24
23
  | File has prior failure history | −20 |
25
24
  | Edit contains auth/crypto/payment keywords | −8 per keyword (max −30) |
26
25
  | File in arch-constrained zone | −20 |
@@ -29,10 +28,9 @@ Every AI-generated patch gets a trust score before it is applied. The score gate
29
28
  ## Workflow
30
29
 
31
30
  1. For every proposed write or edit:
32
- a. Look up the file in `.codebase/VOLATILITY.json`
33
- b. Check `.codebase/FAILURES.json` for prior failures on this file
34
- c. Scan the patch content for high-risk keywords
35
- d. Check `.codebase/CONSTRAINTS.md` for boundary violations
31
+ a. Check `.codebase/FAILURES.json` for prior failures on this file
32
+ b. Scan the patch content for high-risk keywords
33
+ c. Check `.codebase/CONSTRAINTS.md` for boundary violations
36
34
  2. Compute score (0–100, start at 100)
37
35
  3. Emit verdict with signals
38
36
  4. Route accordingly (auto / warn / block)
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=port-finder.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"port-finder.test.d.ts","sourceRoot":"","sources":["../../../src/dashboard/lib/port-finder.test.ts"],"names":[],"mappings":""}
@@ -1,14 +0,0 @@
1
- /**
2
- * NotificationController Tests
3
- *
4
- * Covers the core timing contract:
5
- * - No notification when a command is merely entered (command.execute.before)
6
- * - Notification fires on session.idle after a completion command
7
- * - Notification fires on session.idle after an interactive command
8
- * - Notification fires on session.error
9
- * - Duplicate notifications are suppressed
10
- * - Long-running command only notifies at the correct lifecycle point
11
- * - Generic (non-command) idle notification fires only when edits exist
12
- */
13
- export {};
14
- //# sourceMappingURL=notifications.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notifications.test.d.ts","sourceRoot":"","sources":["../../src/hooks/notifications.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=patch-trust.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"patch-trust.test.d.ts","sourceRoot":"","sources":["../../src/hooks/patch-trust.test.ts"],"names":[],"mappings":""}
@@ -1,32 +0,0 @@
1
- export declare function telemetryHook(context: {
2
- directory?: string;
3
- }, toolInput: {
4
- name?: string;
5
- tool?: string;
6
- sessionID?: string;
7
- sessionId?: string;
8
- messageID?: string;
9
- messageId?: string;
10
- runID?: string;
11
- runId?: string;
12
- }, output: {
13
- args?: Record<string, unknown>;
14
- }): Promise<void>;
15
- export declare function telemetryAfterHook(context: {
16
- directory?: string;
17
- }, toolInput: {
18
- name?: string;
19
- tool?: string;
20
- sessionID?: string;
21
- sessionId?: string;
22
- messageID?: string;
23
- messageId?: string;
24
- runID?: string;
25
- runId?: string;
26
- }, output: {
27
- title?: string;
28
- output?: string;
29
- metadata?: unknown;
30
- error?: unknown;
31
- }): Promise<void>;
32
- //# sourceMappingURL=telemetry-hook.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"telemetry-hook.d.ts","sourceRoot":"","sources":["../../src/hooks/telemetry-hook.ts"],"names":[],"mappings":"AAsCA,wBAAsB,aAAa,CACjC,OAAO,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,EAC/B,SAAS,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,EAC3J,MAAM,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,GACzC,OAAO,CAAC,IAAI,CAAC,CAaf;AAED,wBAAsB,kBAAkB,CACtC,OAAO,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,EAC/B,SAAS,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,EAC3J,MAAM,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,GAC/E,OAAO,CAAC,IAAI,CAAC,CAaf"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=telemetry-hook.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"telemetry-hook.test.d.ts","sourceRoot":"","sources":["../../src/hooks/telemetry-hook.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=tool-guard.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tool-guard.test.d.ts","sourceRoot":"","sources":["../../src/hooks/tool-guard.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=research-gate.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"research-gate.test.d.ts","sourceRoot":"","sources":["../../src/lib/research-gate.test.ts"],"names":[],"mappings":""}
@@ -1,39 +0,0 @@
1
- export declare const ARTIFACT_SUMMARY_MAX_CHARS = 500;
2
- export interface Artifact {
3
- id: string;
4
- agent: string;
5
- stage: string;
6
- summary: string;
7
- content: string;
8
- content_chars: number;
9
- state_version: number;
10
- index_version: number;
11
- created_at: string;
12
- }
13
- export interface ArtifactRef {
14
- id: string;
15
- summary: string;
16
- }
17
- /** Content-hash of the output text (24-char hex prefix). */
18
- export declare function contentHash(content: string): string;
19
- /** Auto-generate a short summary from content (first ARTIFACT_SUMMARY_MAX_CHARS chars, stripped). */
20
- export declare function summarizeContent(content: string): string;
21
- /**
22
- * Store an artifact and return a ref (id + summary) for carry-forward.
23
- * On storage failure, returns a ref with the summary only (id may be recomputed later).
24
- */
25
- export declare function storeArtifact(dir: string, agent: string, stage: string, content: string, stateVersion: number, indexVersion: number): ArtifactRef;
26
- /**
27
- * Retrieve an artifact by ID, enforcing version consistency.
28
- * Returns null when: not found, stateVersion/indexVersion mismatch, or corrupt file.
29
- */
30
- export declare function getArtifact(dir: string, id: string, stateVersion: number, indexVersion: number): Artifact | null;
31
- /**
32
- * Resolve `artifact:<id>` tokens in a text string, replacing each with the
33
- * artifact's full content. Tokens whose artifact is not found or stale are
34
- * replaced with a `[artifact:<id> not found]` placeholder.
35
- */
36
- export declare function resolveArtifactRefs(dir: string, text: string, stateVersion: number, indexVersion: number): string;
37
- /** Format an ArtifactRef for carry-forward in pipeline prompts. */
38
- export declare function formatArtifactRef(ref: ArtifactRef): string;
39
- //# sourceMappingURL=artifact-store.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"artifact-store.d.ts","sourceRoot":"","sources":["../../src/services/artifact-store.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,0BAA0B,MAAM,CAAA;AAE7C,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;CAChB;AAUD,4DAA4D;AAC5D,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,qGAAqG;AACrG,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAIxD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,GACnB,WAAW,CAsBb;AAED;;;GAGG;AACH,wBAAgB,WAAW,CACzB,GAAG,EAAE,MAAM,EACX,EAAE,EAAE,MAAM,EACV,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,GACnB,QAAQ,GAAG,IAAI,CAUjB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,GACnB,MAAM,CAKR;AAED,mEAAmE;AACnE,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,WAAW,GAAG,MAAM,CAE1D"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=artifact-store.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"artifact-store.test.d.ts","sourceRoot":"","sources":["../../src/services/artifact-store.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=codegraph.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"codegraph.test.d.ts","sourceRoot":"","sources":["../../src/services/codegraph.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=command-validator.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command-validator.test.d.ts","sourceRoot":"","sources":["../../src/services/command-validator.test.ts"],"names":[],"mappings":""}
@@ -1,29 +0,0 @@
1
- export interface StageContext {
2
- stage: string;
3
- /** Concise human-readable summary for injection into model prompts */
4
- compact_summary: string;
5
- /** Current state version — for cache invalidation */
6
- state_version: number;
7
- /** Current codebase index version — for cache invalidation */
8
- index_version: number;
9
- /** Structured fields relevant to this stage */
10
- fields: Record<string, unknown>;
11
- /** Was this loaded from cache (same summaryVersions as last call)? */
12
- from_cache: boolean;
13
- }
14
- /**
15
- * Assembles a minimal, stage-specific context for prompt injection.
16
- *
17
- * Uses in-memory cache keyed by (stage, dir) + (stateVersion, indexVersion).
18
- * Safe for concurrent readers — no file writes.
19
- *
20
- * @param dir - project root directory
21
- * @param stage - current workflow stage
22
- * @returns StageContext with compact_summary and fields
23
- */
24
- export declare function assembleStageContext(dir: string, stage: string): StageContext;
25
- /** Explicitly invalidate the context cache for a directory (call after state writes). */
26
- export declare function invalidateContextCache(dir: string): void;
27
- /** Return current cache entry count (for tests/telemetry). */
28
- export declare function getContextCacheSize(): number;
29
- //# sourceMappingURL=context-assembler.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context-assembler.d.ts","sourceRoot":"","sources":["../../src/services/context-assembler.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,sEAAsE;IACtE,eAAe,EAAE,MAAM,CAAA;IACvB,qDAAqD;IACrD,aAAa,EAAE,MAAM,CAAA;IACrB,8DAA8D;IAC9D,aAAa,EAAE,MAAM,CAAA;IACrB,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,sEAAsE;IACtE,UAAU,EAAE,OAAO,CAAA;CACpB;AAuGD;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,YAAY,CAmC7E;AAED,yFAAyF;AACzF,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAIxD;AAED,8DAA8D;AAC9D,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=context-assembler.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context-assembler.test.d.ts","sourceRoot":"","sources":["../../src/services/context-assembler.test.ts"],"names":[],"mappings":""}