@zhixuan92/multi-model-agent-core 4.0.3 → 4.0.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.
Files changed (122) hide show
  1. package/README.md +11 -9
  2. package/dist/intake/brief-compiler-slots/delegate.d.ts.map +1 -1
  3. package/dist/intake/brief-compiler-slots/delegate.js +8 -1
  4. package/dist/intake/brief-compiler-slots/delegate.js.map +1 -1
  5. package/dist/lifecycle/diff-tracker.d.ts +72 -0
  6. package/dist/lifecycle/diff-tracker.d.ts.map +1 -0
  7. package/dist/lifecycle/diff-tracker.js +316 -0
  8. package/dist/lifecycle/diff-tracker.js.map +1 -0
  9. package/dist/lifecycle/handlers/prepare-execution-context-handler.d.ts +1 -1
  10. package/dist/lifecycle/handlers/prepare-execution-context-handler.d.ts.map +1 -1
  11. package/dist/lifecycle/handlers/prepare-execution-context-handler.js +23 -1
  12. package/dist/lifecycle/handlers/prepare-execution-context-handler.js.map +1 -1
  13. package/dist/lifecycle/handlers/quality-chain-handlers.d.ts.map +1 -1
  14. package/dist/lifecycle/handlers/quality-chain-handlers.js +57 -6
  15. package/dist/lifecycle/handlers/quality-chain-handlers.js.map +1 -1
  16. package/dist/lifecycle/handlers/review-diff-handler.d.ts.map +1 -1
  17. package/dist/lifecycle/handlers/review-diff-handler.js +38 -12
  18. package/dist/lifecycle/handlers/review-diff-handler.js.map +1 -1
  19. package/dist/lifecycle/handlers/spec-chain-handlers.d.ts.map +1 -1
  20. package/dist/lifecycle/handlers/spec-chain-handlers.js +38 -10
  21. package/dist/lifecycle/handlers/spec-chain-handlers.js.map +1 -1
  22. package/dist/lifecycle/merge-stage-stats.d.ts +27 -0
  23. package/dist/lifecycle/merge-stage-stats.d.ts.map +1 -1
  24. package/dist/lifecycle/merge-stage-stats.js +56 -0
  25. package/dist/lifecycle/merge-stage-stats.js.map +1 -1
  26. package/dist/lifecycle/stage-plan-types.d.ts +15 -0
  27. package/dist/lifecycle/stage-plan-types.d.ts.map +1 -1
  28. package/dist/providers/provider-factory.d.ts.map +1 -1
  29. package/dist/providers/provider-factory.js +6 -0
  30. package/dist/providers/provider-factory.js.map +1 -1
  31. package/dist/reporting/headline-templates/audit.d.ts.map +1 -1
  32. package/dist/reporting/headline-templates/audit.js +17 -8
  33. package/dist/reporting/headline-templates/audit.js.map +1 -1
  34. package/dist/reporting/headline-templates/debug.d.ts +22 -3
  35. package/dist/reporting/headline-templates/debug.d.ts.map +1 -1
  36. package/dist/reporting/headline-templates/debug.js +38 -8
  37. package/dist/reporting/headline-templates/debug.js.map +1 -1
  38. package/dist/reporting/headline-templates/delegate.d.ts.map +1 -1
  39. package/dist/reporting/headline-templates/delegate.js +14 -3
  40. package/dist/reporting/headline-templates/delegate.js.map +1 -1
  41. package/dist/reporting/headline-templates/execute-plan.d.ts.map +1 -1
  42. package/dist/reporting/headline-templates/execute-plan.js +17 -8
  43. package/dist/reporting/headline-templates/execute-plan.js.map +1 -1
  44. package/dist/reporting/headline-templates/review.d.ts.map +1 -1
  45. package/dist/reporting/headline-templates/review.js +23 -6
  46. package/dist/reporting/headline-templates/review.js.map +1 -1
  47. package/dist/reporting/headline-templates/verify.d.ts.map +1 -1
  48. package/dist/reporting/headline-templates/verify.js +23 -6
  49. package/dist/reporting/headline-templates/verify.js.map +1 -1
  50. package/dist/reporting/headline-text.d.ts +5 -0
  51. package/dist/reporting/headline-text.d.ts.map +1 -1
  52. package/dist/reporting/headline-text.js +36 -5
  53. package/dist/reporting/headline-text.js.map +1 -1
  54. package/dist/reporting/report-parser-slots/verify-report.d.ts +17 -0
  55. package/dist/reporting/report-parser-slots/verify-report.d.ts.map +1 -1
  56. package/dist/reporting/report-parser-slots/verify-report.js +45 -3
  57. package/dist/reporting/report-parser-slots/verify-report.js.map +1 -1
  58. package/dist/reporting/severity.d.ts +22 -0
  59. package/dist/reporting/severity.d.ts.map +1 -1
  60. package/dist/reporting/severity.js +36 -0
  61. package/dist/reporting/severity.js.map +1 -1
  62. package/dist/review/annotator-output-parser.d.ts.map +1 -1
  63. package/dist/review/annotator-output-parser.js +94 -14
  64. package/dist/review/annotator-output-parser.js.map +1 -1
  65. package/dist/review/annotator-prompt-builder.d.ts +20 -0
  66. package/dist/review/annotator-prompt-builder.d.ts.map +1 -1
  67. package/dist/review/annotator-prompt-builder.js +52 -1
  68. package/dist/review/annotator-prompt-builder.js.map +1 -1
  69. package/dist/review/reviewer-engine.d.ts +14 -0
  70. package/dist/review/reviewer-engine.d.ts.map +1 -1
  71. package/dist/review/reviewer-engine.js.map +1 -1
  72. package/dist/review/reviewer-output-parser.d.ts.map +1 -1
  73. package/dist/review/reviewer-output-parser.js +171 -16
  74. package/dist/review/reviewer-output-parser.js.map +1 -1
  75. package/dist/review/reviewer-prompt-builder.d.ts +4 -12
  76. package/dist/review/reviewer-prompt-builder.d.ts.map +1 -1
  77. package/dist/review/reviewer-prompt-builder.js.map +1 -1
  78. package/dist/review/templates/diff-review.d.ts +8 -0
  79. package/dist/review/templates/diff-review.d.ts.map +1 -1
  80. package/dist/review/templates/diff-review.js +34 -2
  81. package/dist/review/templates/diff-review.js.map +1 -1
  82. package/dist/review/templates/finding-criteria.d.ts +39 -0
  83. package/dist/review/templates/finding-criteria.d.ts.map +1 -0
  84. package/dist/review/templates/finding-criteria.js +80 -0
  85. package/dist/review/templates/finding-criteria.js.map +1 -0
  86. package/dist/review/templates/quality-review-artifact.d.ts +13 -0
  87. package/dist/review/templates/quality-review-artifact.d.ts.map +1 -1
  88. package/dist/review/templates/quality-review-artifact.js +41 -3
  89. package/dist/review/templates/quality-review-artifact.js.map +1 -1
  90. package/dist/review/templates/shared.d.ts +22 -5
  91. package/dist/review/templates/shared.d.ts.map +1 -1
  92. package/dist/review/templates/spec-review.d.ts +15 -0
  93. package/dist/review/templates/spec-review.d.ts.map +1 -1
  94. package/dist/review/templates/spec-review.js +43 -3
  95. package/dist/review/templates/spec-review.js.map +1 -1
  96. package/dist/tools/audit/tool-config.d.ts.map +1 -1
  97. package/dist/tools/audit/tool-config.js +23 -6
  98. package/dist/tools/audit/tool-config.js.map +1 -1
  99. package/dist/tools/debug/tool-config.d.ts.map +1 -1
  100. package/dist/tools/debug/tool-config.js +17 -4
  101. package/dist/tools/debug/tool-config.js.map +1 -1
  102. package/dist/tools/execute-plan/tool-config.d.ts.map +1 -1
  103. package/dist/tools/execute-plan/tool-config.js +5 -1
  104. package/dist/tools/execute-plan/tool-config.js.map +1 -1
  105. package/dist/tools/investigate/tool-config.d.ts +13 -1
  106. package/dist/tools/investigate/tool-config.d.ts.map +1 -1
  107. package/dist/tools/investigate/tool-config.js +34 -4
  108. package/dist/tools/investigate/tool-config.js.map +1 -1
  109. package/dist/tools/retry/tool-config.d.ts.map +1 -1
  110. package/dist/tools/retry/tool-config.js +27 -4
  111. package/dist/tools/retry/tool-config.js.map +1 -1
  112. package/dist/tools/review/tool-config.d.ts.map +1 -1
  113. package/dist/tools/review/tool-config.js +19 -4
  114. package/dist/tools/review/tool-config.js.map +1 -1
  115. package/dist/tools/verify/tool-config.d.ts.map +1 -1
  116. package/dist/tools/verify/tool-config.js +17 -4
  117. package/dist/tools/verify/tool-config.js.map +1 -1
  118. package/package.json +1 -1
  119. package/dist/intake/brief-compiler-slots/investigate.d.ts +0 -26
  120. package/dist/intake/brief-compiler-slots/investigate.d.ts.map +0 -1
  121. package/dist/intake/brief-compiler-slots/investigate.js +0 -42
  122. package/dist/intake/brief-compiler-slots/investigate.js.map +0 -1
package/README.md CHANGED
@@ -229,15 +229,17 @@ mmagent logs --follow --batch=<id> # tail + filter
229
229
 
230
230
  As of 3.4.0 every task-execution event the worker emits to the verbose stderr stream is also written to the JSONL log via a single `emit(TaskEvent)` writer — schema parity across both sinks. Crash/disconnect events (`startup`, `request_start`, `request_complete`, `shutdown`, `error`) are written unconditionally; per-task events (`heartbeat`, `stage_change`, `tool_call`, `turn_complete`, etc.) flow through the same writer.
231
231
 
232
- ## What's new in 4.0.3
233
-
234
- - **Wire field rename:** `parentModel*` `mainModel*`. `costDeltaVsParentUSD` `costDeltaVsMainUSD`, `parentEquivalentCostUSD` `mainEquivalentCostUSD`. Internal record now matches wire shape 1:1 (no more rename shim in `buildWirePayload`).
235
- - **`config.defaults.mainModel` removed.** Library callers should pass `mainModel` per-task on the `TaskSpec`. The standalone daemon reads it from the `X-MMA-Main-Model` header.
236
- - **Canonical model-name preservation.** `extractCanonicalModelName('claude-opus-4-7')` now returns `'claude-opus-4-7'` (was: `'claude-opus'`). Best-effort extraction handles arbitrary wrappers.
237
- - **`HeadlineTemplate.compose` signature** added optional `runResult: RunResult` and `task: TaskSpec` params (backwards-compatible). Audit/review/delegate composers use them to fall back to `runResult.annotatedFindings` / `runResult.filesWritten` when the structured report doesn't carry them.
238
- - **`ContextBlockStore` interface** extended with `size`, `pin`/`unpin`/`refcount`, `clear`, `ttlMs`. New `FileBackedContextBlockStore` implementation persists to `<projectCwd>/.mma/context-blocks/` (the daemon's default; tests use `createInMemoryProjectContext`).
239
- - **`totalDurationMs` reflects real wall-clock.** `event-builder.ts` now uses `max(runResult.durationMs, Σ stageDurations)`. The proportional scale-down was masking the implementer-only bug gone.
240
- - **New shared modules** under `core/`: `lifecycle/stage-progression`, `reporting/severity`, `reporting/headline-text`, `providers/tool-name-sets`. Each centralizes a previously-duplicated concern.
232
+ ## What's new in 4.0.4
233
+
234
+ - **`DiffTracker` (NEW: `lifecycle/diff-tracker.ts`).** Snapshot-based unified-diff helper used by spec / quality / diff reviewers. Captures pre-task baseline of declared `task.filePaths` (works in non-git directories), produces a Myers-style line-LCS unified diff at any review point, capped at 50KB with truncation marker. Reviewer templates and engine extended to receive the diff plus `priorConcerns` so verdicts must point to specific diff lines.
235
+ - **`finding-criteria.ts` (NEW shared module).** Single source of truth for `SEVERITY_LADDER`, `EVIDENCE_GROUNDING`, `SCOPE_DISCIPLINE`, `ANNOTATOR_CHECK_AWARENESS_RO` (read-only), `REVIEWER_AWARENESS_AP` (artifact-producing). Per-tool implementer prompts include the criteria so workers self-align with what each reviewer will validate.
236
+ - **Lenient JSON output parsers.** Both `reviewer-output-parser` and `annotator-output-parser` now accept ` ```json ` fenced, ` ``` ` (no language tag), bare JSON, and embedded objects/arrays via balanced-brace counting (string-literal aware).
237
+ - **`replaceLastRunResultPreservingTrackers` (`merge-stage-stats.ts`).** Spec/quality chain handlers now union `filesRead` / `filesWritten` / `toolCalls` arrays across rework rounds rather than wiping them when a no-op rework round overwrites `lastRunResult`.
238
+ - **`HeadlineTemplate.compose`** ergonomics: every artifact-producing tool's headline now follows `[<status>] <route>: <summary>` (delegate / execute-plan / retry / debug). Verify, audit, review composers now also propagate `task.filePaths[0]` for clean-run path display.
239
+ - **Verify report parser accepts narrative + JSON.** `verifyReportSchema.parse` accepts both ` ```json ` blocks and `## Finding N:` narrative — matches the implementer prompt's "Do NOT emit JSON" instruction.
240
+ - **Investigate prompt rewritten to match parser.** `## Summary` / `## Citations` / `## Confidence` sections — pre-fix the prompt asked for numbered narrative which the parser couldn't extract (every investigation reported `0 citations, confidence unparseable`).
241
+ - **`priorSpecConcerns` / `priorQualityConcerns` slots on `LifecycleState`** carry concerns from earlier rework rounds into later ones, so round N+1's reviewer can verify prior issues are addressed.
242
+ - **`firstSentenceOrTruncate`** hardened (off-by-one regex fix, newline collapse before sentence detection, defense against invalid `max` values).
241
243
 
242
244
  Full history: [CHANGELOG](https://github.com/zhixuan312/multi-model-agent/blob/master/CHANGELOG.md).
243
245
 
@@ -1 +1 @@
1
- {"version":3,"file":"delegate.d.ts","sourceRoot":"","sources":["../../../src/intake/brief-compiler-slots/delegate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,aAAa,CAAC;AAG7D,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,cAAc,GAAG,WAAW,GAAG,MAAM,CAAC;AAE1E,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAA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B,SAAS,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AAID,wBAAgB,qBAAqB,CAAC,KAAK,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,MAAM,CAgB7F;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,iBAAiB,EAAE,GAAG,IAAI,GAAG,SAAS,EAC7C,SAAS,EAAE,MAAM,GAChB,SAAS,EAAE,CA0Bb;AAID,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,UAAU,GAAG,SAAS,CAAC;IAClC,YAAY,EAAE,YAAY,CAAC;IAC3B,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,EAAE,CAWlE"}
@@ -1,4 +1,5 @@
1
1
  import { createDraftId } from '../draft-id.js';
2
+ import { REVIEWER_AWARENESS_AP } from '../../review/templates/finding-criteria.js';
2
3
  const SCOPE_CONTRACT = `Stay scoped to the explicit task description. Do NOT enlarge the task. If the task references files, read those files first; do not enumerate adjacent ones.`;
3
4
  export function compileDelegatePrompt(input) {
4
5
  // When the caller pinned filePaths, surface them as a hard constraint
@@ -9,7 +10,13 @@ export function compileDelegatePrompt(input) {
9
10
  const filePathsClause = input.filePaths && input.filePaths.length > 0
10
11
  ? `\n\nFILE CONSTRAINT: write your code to exactly these file path(s), no others, no renames: ${input.filePaths.map((p) => `\`${p}\``).join(', ')}.`
11
12
  : '';
12
- return `${input.prompt}\n\n${SCOPE_CONTRACT}${filePathsClause}`;
13
+ // Tool sweep #12: tell the worker what the spec + quality reviewers
14
+ // will judge AGAINST so the worker self-aligns. Pre-fix the worker
15
+ // wrote code blind to the rubric, the reviewer flagged spec mismatches
16
+ // the worker could have caught itself, and the rework loop spiraled.
17
+ // Now: worker calibrates against the same criteria → first-round
18
+ // approvals are the norm, rework triggers only on real mistakes.
19
+ return `${input.prompt}\n\n${SCOPE_CONTRACT}${filePathsClause}\n\n${REVIEWER_AWARENESS_AP}`;
13
20
  }
14
21
  export function compileDelegateTasks(tasks, requestId) {
15
22
  if (tasks == null) {
@@ -1 +1 @@
1
- {"version":3,"file":"delegate.js","sourceRoot":"","sources":["../../../src/intake/brief-compiler-slots/delegate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAc/C,MAAM,cAAc,GAAG,8JAA8J,CAAC;AAEtL,MAAM,UAAU,qBAAqB,CAAC,KAA+C;IACnF,sEAAsE;IACtE,sEAAsE;IACtE,iEAAiE;IACjE,qEAAqE;IACrE,uEAAuE;IACvE,MAAM,eAAe,GAAG,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC;QACnE,CAAC,CAAC,8FAA8F,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG;QACpJ,CAAC,CAAC,EAAE,CAAC;IACP,OAAO,GAAG,KAAK,CAAC,MAAM,OAAO,cAAc,GAAG,eAAe,EAAE,CAAC;AAClE,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,KAA6C,EAC7C,SAAiB;IAEjB,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,OAAO,CAAC,IAAI,CAAC,oEAAoE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E;KAC7C,CAAC,CAAC,CAAC;AACN,CAAC"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * DiffTracker — snapshot files at task start, produce a cumulative
3
+ * unified diff at any point during the lifecycle.
4
+ *
5
+ * Tool sweep #6 motivation: every reviewer template (spec / quality /
6
+ * diff) was reviewing the worker's TEXT CLAIM about its work, not the
7
+ * actual change on disk. Result:
8
+ * - Spec reviewers defaulted to "changes_required" because they
9
+ * could not verify a claim they couldn't see → endless rework
10
+ * spirals on already-correct work.
11
+ * - Quality findings were rooted in the worker's prose summary
12
+ * rather than diff lines → false positives, missed regressions.
13
+ * - The "diff reviewer" did not actually receive a diff (a misnomer).
14
+ *
15
+ * Fix: every reviewer prompt now receives `cumulativeDiff` — the
16
+ * unified diff of every change made since task start, regardless of
17
+ * which rework round produced it. With evidence in hand the reviewer
18
+ * can be precise: "diff matches brief? approve" — single round, no
19
+ * spiral, no waste.
20
+ *
21
+ * "Cumulative" matters: across spec_rework rounds 1..N, the reviewer
22
+ * needs to see the totality of edits so it can confirm prior reworks'
23
+ * additions are still present. A latest-round-only diff would make
24
+ * the round-2 reviewer say "you didn't add Y" when round-1 actually
25
+ * did.
26
+ *
27
+ * Implementation choice: snapshot-based, NOT git-based.
28
+ * - Works in non-git directories (test fixtures, sandboxes,
29
+ * fresh-scaffold projects).
30
+ * - No assumption about HEAD state.
31
+ * - No mutation of `.git/` (no `add -N`, no temporary index entries).
32
+ * - Captures new files cleanly (baseline=null → full new-file diff).
33
+ *
34
+ * Diff format: unified diff (`@@ -before,count +after,count @@`)
35
+ * generated via Myers-style line LCS. The LLM is the consumer; the
36
+ * format is what every model has been trained on.
37
+ *
38
+ * Output cap: 50KB total. Excess is truncated with a "[diff truncated
39
+ * at 50KB — N more bytes elided]" marker so the LLM knows the diff is
40
+ * incomplete and can react accordingly (rather than silently judging
41
+ * a partial picture).
42
+ */
43
+ export declare class DiffTracker {
44
+ private cwd;
45
+ private baselines;
46
+ constructor(cwd: string);
47
+ /**
48
+ * Capture current file content as the baseline. Idempotent: if a
49
+ * path was already snapshotted, the existing baseline wins (the
50
+ * earliest-known content is the canonical pre-task state).
51
+ *
52
+ * Call once at task start with all `task.filePaths`; call again
53
+ * lazily (via `ensureSnapshotted`) if a worker writes a path that
54
+ * wasn't pre-declared.
55
+ */
56
+ snapshot(relativePaths: ReadonlyArray<string>): Promise<void>;
57
+ /**
58
+ * Defensive: if the worker writes a file that wasn't pre-declared
59
+ * in `task.filePaths`, we don't have a baseline for it. Capture
60
+ * one NOW (whatever the file's current state) so subsequent diffs
61
+ * show only what THIS rework round changed for it. This is a
62
+ * best-effort fallback; the operator should declare filePaths.
63
+ */
64
+ ensureSnapshotted(relativePath: string): Promise<void>;
65
+ /** Return the unified diff of every snapshotted path against its
66
+ * current on-disk content. Empty string when nothing changed.
67
+ * Capped at MAX_DIFF_BYTES with a truncation marker. */
68
+ cumulativeDiff(): Promise<string>;
69
+ /** Test hook: how many baselines have been captured. */
70
+ size(): number;
71
+ }
72
+ //# sourceMappingURL=diff-tracker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diff-tracker.d.ts","sourceRoot":"","sources":["../../src/lifecycle/diff-tracker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAYH,qBAAa,WAAW;IAGV,OAAO,CAAC,GAAG;IAFvB,OAAO,CAAC,SAAS,CAA+B;gBAE5B,GAAG,EAAE,MAAM;IAE/B;;;;;;;;OAQG;IACG,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAmBnE;;;;;;OAMG;IACG,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAK5D;;6DAEyD;IACnD,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC;IAkBvC,wDAAwD;IACxD,IAAI,IAAI,MAAM;CAGf"}
@@ -0,0 +1,316 @@
1
+ /**
2
+ * DiffTracker — snapshot files at task start, produce a cumulative
3
+ * unified diff at any point during the lifecycle.
4
+ *
5
+ * Tool sweep #6 motivation: every reviewer template (spec / quality /
6
+ * diff) was reviewing the worker's TEXT CLAIM about its work, not the
7
+ * actual change on disk. Result:
8
+ * - Spec reviewers defaulted to "changes_required" because they
9
+ * could not verify a claim they couldn't see → endless rework
10
+ * spirals on already-correct work.
11
+ * - Quality findings were rooted in the worker's prose summary
12
+ * rather than diff lines → false positives, missed regressions.
13
+ * - The "diff reviewer" did not actually receive a diff (a misnomer).
14
+ *
15
+ * Fix: every reviewer prompt now receives `cumulativeDiff` — the
16
+ * unified diff of every change made since task start, regardless of
17
+ * which rework round produced it. With evidence in hand the reviewer
18
+ * can be precise: "diff matches brief? approve" — single round, no
19
+ * spiral, no waste.
20
+ *
21
+ * "Cumulative" matters: across spec_rework rounds 1..N, the reviewer
22
+ * needs to see the totality of edits so it can confirm prior reworks'
23
+ * additions are still present. A latest-round-only diff would make
24
+ * the round-2 reviewer say "you didn't add Y" when round-1 actually
25
+ * did.
26
+ *
27
+ * Implementation choice: snapshot-based, NOT git-based.
28
+ * - Works in non-git directories (test fixtures, sandboxes,
29
+ * fresh-scaffold projects).
30
+ * - No assumption about HEAD state.
31
+ * - No mutation of `.git/` (no `add -N`, no temporary index entries).
32
+ * - Captures new files cleanly (baseline=null → full new-file diff).
33
+ *
34
+ * Diff format: unified diff (`@@ -before,count +after,count @@`)
35
+ * generated via Myers-style line LCS. The LLM is the consumer; the
36
+ * format is what every model has been trained on.
37
+ *
38
+ * Output cap: 50KB total. Excess is truncated with a "[diff truncated
39
+ * at 50KB — N more bytes elided]" marker so the LLM knows the diff is
40
+ * incomplete and can react accordingly (rather than silently judging
41
+ * a partial picture).
42
+ */
43
+ import * as fs from 'node:fs/promises';
44
+ import * as path from 'node:path';
45
+ const MAX_DIFF_BYTES = 50 * 1024; // 50KB cap to protect reviewer context window
46
+ const CONTEXT_LINES = 3; // unified-diff convention
47
+ export class DiffTracker {
48
+ cwd;
49
+ baselines = new Map();
50
+ constructor(cwd) {
51
+ this.cwd = cwd;
52
+ }
53
+ /**
54
+ * Capture current file content as the baseline. Idempotent: if a
55
+ * path was already snapshotted, the existing baseline wins (the
56
+ * earliest-known content is the canonical pre-task state).
57
+ *
58
+ * Call once at task start with all `task.filePaths`; call again
59
+ * lazily (via `ensureSnapshotted`) if a worker writes a path that
60
+ * wasn't pre-declared.
61
+ */
62
+ async snapshot(relativePaths) {
63
+ for (const rel of relativePaths) {
64
+ if (this.baselines.has(rel))
65
+ continue;
66
+ const abs = path.resolve(this.cwd, rel);
67
+ try {
68
+ const content = await fs.readFile(abs, 'utf-8');
69
+ this.baselines.set(rel, content);
70
+ }
71
+ catch (e) {
72
+ if (e.code === 'ENOENT') {
73
+ // File didn't exist at task start. Worker may create it →
74
+ // diff later will show as a full new-file diff.
75
+ this.baselines.set(rel, null);
76
+ }
77
+ else {
78
+ throw e;
79
+ }
80
+ }
81
+ }
82
+ }
83
+ /**
84
+ * Defensive: if the worker writes a file that wasn't pre-declared
85
+ * in `task.filePaths`, we don't have a baseline for it. Capture
86
+ * one NOW (whatever the file's current state) so subsequent diffs
87
+ * show only what THIS rework round changed for it. This is a
88
+ * best-effort fallback; the operator should declare filePaths.
89
+ */
90
+ async ensureSnapshotted(relativePath) {
91
+ if (this.baselines.has(relativePath))
92
+ return;
93
+ await this.snapshot([relativePath]);
94
+ }
95
+ /** Return the unified diff of every snapshotted path against its
96
+ * current on-disk content. Empty string when nothing changed.
97
+ * Capped at MAX_DIFF_BYTES with a truncation marker. */
98
+ async cumulativeDiff() {
99
+ const segments = [];
100
+ for (const [rel, before] of this.baselines.entries()) {
101
+ const abs = path.resolve(this.cwd, rel);
102
+ let after;
103
+ try {
104
+ after = await fs.readFile(abs, 'utf-8');
105
+ }
106
+ catch (e) {
107
+ if (e.code === 'ENOENT')
108
+ after = null;
109
+ else
110
+ throw e;
111
+ }
112
+ if (before === after)
113
+ continue;
114
+ const seg = formatUnifiedDiff(rel, before, after);
115
+ if (seg)
116
+ segments.push(seg);
117
+ }
118
+ return capWithMarker(segments.join('\n\n'));
119
+ }
120
+ /** Test hook: how many baselines have been captured. */
121
+ size() {
122
+ return this.baselines.size;
123
+ }
124
+ }
125
+ function capWithMarker(s) {
126
+ if (s.length <= MAX_DIFF_BYTES)
127
+ return s;
128
+ const elided = s.length - MAX_DIFF_BYTES;
129
+ return s.slice(0, MAX_DIFF_BYTES) + `\n\n[diff truncated at ${MAX_DIFF_BYTES} bytes — ${elided} more bytes elided]`;
130
+ }
131
+ /** Unified-diff for one file. */
132
+ function formatUnifiedDiff(relPath, before, after) {
133
+ if (before === after)
134
+ return '';
135
+ const beforeLines = before === null ? [] : splitKeepNewlines(before);
136
+ const afterLines = after === null ? [] : splitKeepNewlines(after);
137
+ const aLabel = before === null ? '/dev/null' : `a/${relPath}`;
138
+ const bLabel = after === null ? '/dev/null' : `b/${relPath}`;
139
+ const ops = lineDiff(beforeLines, afterLines);
140
+ const hunks = collectHunks(ops, CONTEXT_LINES);
141
+ if (hunks.length === 0)
142
+ return '';
143
+ const out = [];
144
+ out.push(`--- ${aLabel}`);
145
+ out.push(`+++ ${bLabel}`);
146
+ for (const h of hunks) {
147
+ out.push(`@@ -${h.beforeStart + 1},${h.beforeCount} +${h.afterStart + 1},${h.afterCount} @@`);
148
+ for (const line of h.lines)
149
+ out.push(line);
150
+ }
151
+ return out.join('\n');
152
+ }
153
+ function splitKeepNewlines(s) {
154
+ // Split into logical lines. Trailing newline is preserved on each
155
+ // line except the last (which may or may not have one, like POSIX).
156
+ if (s === '')
157
+ return [];
158
+ const out = s.split('\n');
159
+ // If original ended with \n, the split produces a trailing '' which
160
+ // represents "the final newline" — drop it (unified diff lines DON'T
161
+ // include the trailing newline; it's implicit).
162
+ if (out.length > 0 && out[out.length - 1] === '')
163
+ out.pop();
164
+ return out;
165
+ }
166
+ /**
167
+ * Line-level diff using a simple LCS (Hirschberg / dynamic-programming).
168
+ * Returns ops in document order. For typical edits (a few lines changed
169
+ * in a file of hundreds of lines) this is O(N×M) but with N×M small.
170
+ * For huge files it's still bounded — the result is line-count
171
+ * sensitive, not byte-count sensitive.
172
+ */
173
+ function lineDiff(a, b) {
174
+ const n = a.length;
175
+ const m = b.length;
176
+ // Build LCS length matrix.
177
+ const dp = Array.from({ length: n + 1 }, () => new Array(m + 1).fill(0));
178
+ for (let i = n - 1; i >= 0; i--) {
179
+ for (let j = m - 1; j >= 0; j--) {
180
+ if (a[i] === b[j])
181
+ dp[i][j] = dp[i + 1][j + 1] + 1;
182
+ else
183
+ dp[i][j] = Math.max(dp[i + 1][j], dp[i][j + 1]);
184
+ }
185
+ }
186
+ // Backtrack to produce ops.
187
+ const ops = [];
188
+ let i = 0, j = 0;
189
+ while (i < n && j < m) {
190
+ if (a[i] === b[j]) {
191
+ ops.push({ kind: 'equal', text: a[i] });
192
+ i++;
193
+ j++;
194
+ }
195
+ else if (dp[i + 1][j] >= dp[i][j + 1]) {
196
+ ops.push({ kind: 'delete', text: a[i] });
197
+ i++;
198
+ }
199
+ else {
200
+ ops.push({ kind: 'insert', text: b[j] });
201
+ j++;
202
+ }
203
+ }
204
+ while (i < n)
205
+ ops.push({ kind: 'delete', text: a[i++] });
206
+ while (j < m)
207
+ ops.push({ kind: 'insert', text: b[j++] });
208
+ return ops;
209
+ }
210
+ /**
211
+ * Group ops into unified-diff hunks with `context` lines of unchanged
212
+ * surrounding code. Skip pure-equal stretches longer than 2×context.
213
+ */
214
+ function collectHunks(ops, context) {
215
+ const hunks = [];
216
+ let i = 0;
217
+ let beforeIdx = 0; // 0-based line index into the "before" file
218
+ let afterIdx = 0;
219
+ while (i < ops.length) {
220
+ // Skip purely-equal runs up to first change.
221
+ while (i < ops.length && ops[i].kind === 'equal') {
222
+ // Tentatively advance — but if a change is within `context`
223
+ // ahead, we'll back off to include it as preceding-context.
224
+ let lookahead = i;
225
+ while (lookahead < ops.length && lookahead < i + context && ops[lookahead].kind === 'equal')
226
+ lookahead++;
227
+ if (lookahead < ops.length && ops[lookahead].kind !== 'equal')
228
+ break;
229
+ beforeIdx++;
230
+ afterIdx++;
231
+ i++;
232
+ }
233
+ if (i >= ops.length)
234
+ break;
235
+ // Start a hunk. Include up to `context` preceding equal lines.
236
+ const hunkLines = [];
237
+ let preStart = Math.max(0, i - context);
238
+ // Walk back to preStart, but only include 'equal' ops on the way.
239
+ // Use bookkeeping: how many equal lines we step back.
240
+ const preLines = [];
241
+ let walkBack = i - 1;
242
+ while (walkBack >= preStart && ops[walkBack].kind === 'equal' && preLines.length < context) {
243
+ preLines.unshift(' ' + ops[walkBack].text);
244
+ walkBack--;
245
+ }
246
+ const hunkBeforeStart = beforeIdx - preLines.length;
247
+ const hunkAfterStart = afterIdx - preLines.length;
248
+ hunkLines.push(...preLines);
249
+ // Walk forward, collecting changes + interleaved equals (up to
250
+ // 2×context equals before splitting into a new hunk).
251
+ let beforeCount = preLines.length;
252
+ let afterCount = preLines.length;
253
+ let trailingEqualCount = 0;
254
+ while (i < ops.length) {
255
+ const op = ops[i];
256
+ if (op.kind === 'equal') {
257
+ if (trailingEqualCount >= 2 * context) {
258
+ // Decide whether to split: peek to see if more changes coming.
259
+ let look = i;
260
+ while (look < ops.length && ops[look].kind === 'equal')
261
+ look++;
262
+ if (look >= ops.length || look - i > context) {
263
+ // No more changes within range — close the hunk with `context` trailing.
264
+ break;
265
+ }
266
+ }
267
+ hunkLines.push(' ' + op.text);
268
+ beforeCount++;
269
+ afterCount++;
270
+ beforeIdx++;
271
+ afterIdx++;
272
+ trailingEqualCount++;
273
+ i++;
274
+ }
275
+ else if (op.kind === 'delete') {
276
+ hunkLines.push('-' + op.text);
277
+ beforeCount++;
278
+ beforeIdx++;
279
+ trailingEqualCount = 0;
280
+ i++;
281
+ }
282
+ else {
283
+ // insert
284
+ hunkLines.push('+' + op.text);
285
+ afterCount++;
286
+ afterIdx++;
287
+ trailingEqualCount = 0;
288
+ i++;
289
+ }
290
+ }
291
+ // Trim trailing context to exactly `context` lines if we accumulated more.
292
+ while (trailingEqualCount > context) {
293
+ const last = hunkLines[hunkLines.length - 1];
294
+ if (last.startsWith(' ')) {
295
+ hunkLines.pop();
296
+ beforeCount--;
297
+ afterCount--;
298
+ trailingEqualCount--;
299
+ beforeIdx--;
300
+ afterIdx--;
301
+ i--;
302
+ }
303
+ else
304
+ break;
305
+ }
306
+ hunks.push({
307
+ beforeStart: hunkBeforeStart,
308
+ beforeCount,
309
+ afterStart: hunkAfterStart,
310
+ afterCount,
311
+ lines: hunkLines,
312
+ });
313
+ }
314
+ return hunks;
315
+ }
316
+ //# sourceMappingURL=diff-tracker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diff-tracker.js","sourceRoot":"","sources":["../../src/lifecycle/diff-tracker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,MAAM,cAAc,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,8CAA8C;AAChF,MAAM,aAAa,GAAG,CAAC,CAAC,CAAU,0BAA0B;AAM5D,MAAM,OAAO,WAAW;IAGF;IAFZ,SAAS,GAAG,IAAI,GAAG,EAAoB,CAAC;IAEhD,YAAoB,GAAW;QAAX,QAAG,GAAH,GAAG,CAAQ;IAAG,CAAC;IAEnC;;;;;;;;OAQG;IACH,KAAK,CAAC,QAAQ,CAAC,aAAoC;QACjD,KAAK,MAAM,GAAG,IAAI,aAAa,EAAE,CAAC;YAChC,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC;gBAAE,SAAS;YACtC,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;YACxC,IAAI,CAAC;gBACH,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC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,CAAC,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;gBAC9B,UAAU,EAAE,CAAC;gBACb,QAAQ,EAAE,CAAC;gBACX,kBAAkB,GAAG,CAAC,CAAC;gBACvB,CAAC,EAAE,CAAC;YACN,CAAC;QACH,CAAC;QAED,2EAA2E;QAC3E,OAAO,kBAAkB,GAAG,OAAO,EAAE,CAAC;YACpC,MAAM,IAAI,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YAC7C,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;gBACzB,SAAS,CAAC,GAAG,EAAE,CAAC;gBAChB,WAAW,EAAE,CAAC;gBAAC,UAAU,EAAE,CAAC;gBAAC,kBAAkB,EAAE,CAAC;gBAClD,SAAS,EAAE,CAAC;gBAAC,QAAQ,EAAE,CAAC;gBACxB,CAAC,EAAE,CAAC;YACN,CAAC;;gBAAM,MAAM;QACf,CAAC;QAED,KAAK,CAAC,IAAI,CAAC;YACT,WAAW,EAAE,eAAe;YAC5B,WAAW;YACX,UAAU,EAAE,cAAc;YAC1B,UAAU;YACV,KAAK,EAAE,SAAS;SACjB,CAAC,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -15,5 +15,5 @@ import type { LifecycleState } from '../stage-plan-types.js';
15
15
  * so state.task is the per-dispatch task. This handler surfaces task[0]
16
16
  * as a fallback for downstream handlers that need a TaskSpec.
17
17
  */
18
- export declare function prepareExecutionContextHandler(state: LifecycleState): void;
18
+ export declare function prepareExecutionContextHandler(state: LifecycleState): Promise<void>;
19
19
  //# sourceMappingURL=prepare-execution-context-handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepare-execution-context-handler.d.ts","sourceRoot":"","sources":["../../../src/lifecycle/handlers/prepare-execution-context-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,CAqB1E"}
1
+ {"version":3,"file":"prepare-execution-context-handler.d.ts","sourceRoot":"","sources":["../../../src/lifecycle/handlers/prepare-execution-context-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAI7D;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,8BAA8B,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAyCzF"}
@@ -1,3 +1,4 @@
1
+ import { DiffTracker } from '../diff-tracker.js';
1
2
  /**
2
3
  * StageHandler for row 2.5 (prepare_execution_context).
3
4
  *
@@ -14,7 +15,7 @@
14
15
  * so state.task is the per-dispatch task. This handler surfaces task[0]
15
16
  * as a fallback for downstream handlers that need a TaskSpec.
16
17
  */
17
- export function prepareExecutionContextHandler(state) {
18
+ export async function prepareExecutionContextHandler(state) {
18
19
  // Fallback: if rawRequest carries a TaskSpec[] and state.task is empty,
19
20
  // surface the first task so per-task handlers have something to read.
20
21
  if (!state.task) {
@@ -34,5 +35,26 @@ export function prepareExecutionContextHandler(state) {
34
35
  if (task && task.reviewPolicy) {
35
36
  state.reviewPolicy = task.reviewPolicy;
36
37
  }
38
+ // Tool sweep #6: snapshot the worker's declared filePaths BEFORE the
39
+ // implementer runs so reviewer stages can produce a cumulative diff
40
+ // against the pre-task baseline. Skip read-only routes (audit / review
41
+ // / verify / debug / investigate / explore) — they don't write files
42
+ // by sandbox policy, so a tracker would just be empty noise.
43
+ if (!state.diffTracker && task && state.toolCategory !== 'read_only') {
44
+ const cwd = task.cwd;
45
+ const filePaths = Array.isArray(task.filePaths) ? task.filePaths : [];
46
+ if (cwd && filePaths.length > 0) {
47
+ const tracker = new DiffTracker(cwd);
48
+ try {
49
+ await tracker.snapshot(filePaths);
50
+ state.diffTracker = tracker;
51
+ }
52
+ catch {
53
+ // Snapshot failures (permission, unreadable) shouldn't block the
54
+ // task. Reviewer just sees an empty diff and falls back to the
55
+ // worker-output-only path — degraded but not broken.
56
+ }
57
+ }
58
+ }
37
59
  }
38
60
  //# sourceMappingURL=prepare-execution-context-handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepare-execution-context-handler.js","sourceRoot":"","sources":["../../../src/lifecycle/handlers/prepare-execution-context-handler.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,8BAA8B,CAAC,KAAqB;IAClE,wEAAwE;IACxE,sEAAsE;IACtE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QAChB,MAAM,GAAG,GAAG,KAAK,CAAC,OAA6C,CAAC;QAChE,MAAM,KAAK,GAAG,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,KAAK;YAAE,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC;IAChC,CAAC;IAED,4EAA4E;IAC5E,yEAAyE;IACzE,sEAAsE;IACtE,2DAA2D;IAC3D,4EAA4E;IAC5E,4EAA4E;IAC5E,mEAAmE;IACnE,MAAM,IAAI,GAAG,KAAK,CAAC,IAA4B,CAAC;IAChD,IAAI,IAAI,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;QAC9B,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;IACzC,CAAC;AAEH,CAAC"}
1
+ {"version":3,"file":"prepare-execution-context-handler.js","sourceRoot":"","sources":["../../../src/lifecycle/handlers/prepare-execution-context-handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAAC,KAAqB;IACxE,wEAAwE;IACxE,sEAAsE;IACtE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QAChB,MAAM,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ceRoot":"","sources":["../../../src/lifecycle/handlers/quality-chain-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAqU7D,eAAO,MAAM,0BAA0B,UAtIkB,cAAc,KAAG,OAAO,CAAC,IAAI,CAsIjB,CAAC;AACtE,eAAO,MAAM,0BAA0B,UAvIkB,cAAc,KAAG,OAAO,CAAC,IAAI,CAuIjB,CAAC;AACtE,eAAO,MAAM,0BAA0B,UAxIkB,cAAc,KAAG,OAAO,CAAC,IAAI,CAwIjB,CAAC;AACtE,eAAO,MAAM,0BAA0B,UAjDa,cAAc,KAAG,OAAO,CAAC,IAAI,CAiDZ,CAAC;AACtE,eAAO,MAAM,0BAA0B,UAlDa,cAAc,KAAG,OAAO,CAAC,IAAI,CAkDZ,CAAC;AAEtE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,CAmBrE"}
1
+ {"version":3,"file":"quality-chain-handlers.d.ts","sourceRoot":"","sources":["../../../src/lifecycle/handlers/quality-chain-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAmW7D,eAAO,MAAM,0BAA0B,UApJkB,cAAc,KAAG,OAAO,CAAC,IAAI,CAoJjB,CAAC;AACtE,eAAO,MAAM,0BAA0B,UArJkB,cAAc,KAAG,OAAO,CAAC,IAAI,CAqJjB,CAAC;AACtE,eAAO,MAAM,0BAA0B,UAtJkB,cAAc,KAAG,OAAO,CAAC,IAAI,CAsJjB,CAAC;AACtE,eAAO,MAAM,0BAA0B,UAhDa,cAAc,KAAG,OAAO,CAAC,IAAI,CAgDZ,CAAC;AACtE,eAAO,MAAM,0BAA0B,UAjDa,cAAc,KAAG,OAAO,CAAC,IAAI,CAiDZ,CAAC;AAEtE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,CAyCrE"}