gsxdsm
599a509d22
refactor: package code organization (god-file peels, wave 1) (#2139)
## Summary
First wave of package-internal code organization: split oversized
modules into domain-named files/folders while preserving public import
paths via re-exports, and refresh the line-count ratchet scoreboard.
- **Plan:**
`docs/plans/2026-07-14-001-refactor-package-code-organization-plan.md`
(multi-wave program; this PR lands U1–U4 + first U3/U6 slices)
- **Core types:** peel `types.ts` into
`types/{board,merge-queue,execution-and-ui,merge-policy,workflow-steps}.ts`
with browser-safe Vite alias preserved
- **Core TaskStore:** rename `remaining-ops-9` →
`task-commit-associations` (domain-named, not ordinal dump)
- **Engine executor:** peel pure helpers into
`executor/{browser-probe,requeue-loop,pseudo-pause,workflow-step-failures}.ts`
- **Engine heartbeat:** peel system prompts/procedures into
`agent-heartbeat-prompts.ts`
- **Ratchet:** one-time baseline truth-up + ratchet-down for touched
files
### Deferred to follow-up PRs (plan U5, U7–U9 + remaining waves)
- Self-healing folder split
- Further remaining-ops domain peels
- Dashboard `legacy.ts` / routes / UI monofiles
- CLI extension + TUI peels
## Test plan
- [x] `pnpm --filter @fusion/core exec tsc --noEmit`
- [x] `pnpm --filter @fusion/engine exec tsc --noEmit`
- [x] Focused vitest: `detect-pseudo-pause`,
`executor-browser-verification`, `clear-terminal-workflow-step-failures`
- [x] `node scripts/check-file-line-count.mjs` clean against updated
baseline
- [ ] CI merge gate (lint/typecheck/build/gate)
- [ ] Browser smoke: N/A for this PR (no dashboard UI route changes)
## Residual Review Findings
None. Review autofix applied dual-home wiring for
`clearTerminalWorkflowStepFailures` only.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added configurable heartbeat procedures for task and no-task scenarios
(including patrol-aware rendering).
* Improved agent-browser availability verification with clearer
availability/status reporting.
* Added detection for pseudo-pauses and review-handoff requests.
* Expanded core configuration/contract options for
execution/UI/localization, merges, merge queues, and workflow steps.
* **Bug Fixes**
* Improved handling of transient execute-requeue and workflow-step
retry/cleanup behavior, including better Windows path support.
* Preserved existing public interfaces during internal restructuring.
* **Documentation**
* Added a multi-phase roadmap for future package reorganization.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-15 13:34:30 -07:00
..
2026-06-11 08:43:28 -07:00
2026-06-02 20:57:06 -07:00
2026-06-03 09:45:32 -07:00
2026-06-03 12:43:59 -07:00
2026-06-03 09:59:12 -07:00
2026-06-03 12:29:02 -07:00
2026-06-03 19:32:48 -07:00
2026-06-04 00:05:15 -07:00
2026-06-04 02:16:55 -07:00
2026-06-04 11:20:50 -07:00
2026-06-05 09:41:32 -07:00
2026-06-05 03:27:37 -07:00
2026-06-05 00:33:20 -07:00
2026-06-05 01:06:03 -07:00
2026-06-26 10:18:04 -07:00
2026-06-05 01:06:03 -07:00
2026-06-05 22:42:36 -07:00
2026-06-06 00:38:28 -07:00
2026-07-02 11:38:31 -07:00
2026-06-07 20:43:44 -07:00
2026-06-07 22:07:47 -07:00
2026-06-07 23:56:25 -07:00
2026-06-08 19:13:14 -07:00
2026-06-09 08:30:35 -07:00
2026-06-09 11:51:30 -07:00
2026-06-09 12:41:29 -07:00
2026-06-09 13:27:43 -07:00
2026-06-11 23:14:36 -07:00
2026-06-13 15:21:00 -07:00
2026-06-13 16:08:51 -07:00
2026-06-15 05:56:47 -07:00
2026-06-15 19:05:15 -07:00
2026-06-21 00:02:31 -07:00
2026-06-20 23:01:09 -07:00
2026-06-20 21:54:10 -07:00
2026-06-21 20:47:31 -07:00
2026-06-22 00:21:49 -07:00
2026-06-22 00:21:49 -07:00
2026-06-21 21:07:32 -07:00
2026-06-21 22:44:53 -07:00
2026-06-21 23:15:38 -07:00
2026-06-22 03:48:08 -07:00
2026-06-22 01:19:29 -07:00
2026-07-13 19:07:58 -07:00
2026-07-13 19:07:58 -07:00
2026-06-22 21:45:05 -07:00
2026-06-24 19:25:51 -07:00
2026-06-24 19:25:51 -07:00
2026-06-23 22:18:07 -07:00
2026-06-25 00:13:29 -07:00
2026-06-25 22:17:44 -07:00
2026-07-13 19:07:58 -07:00
2026-06-29 00:10:27 -07:00
2026-06-29 11:07:11 -07:00
2026-07-01 00:51:01 -07:00
2026-06-30 22:20:00 -07:00
2026-07-14 08:23:11 -07:00
2026-07-14 20:27:35 -07:00
2026-07-15 13:34:30 -07:00
2026-07-15 13:32:33 -07:00