Commit Graph

3167 Commits

Author SHA1 Message Date
Fusion
0c8089b1d2 feat(FN-1644): rename default global data directory from ~/.pi/fusion to ~/.fusion
- Change default global directory from ~/.pi/fusion to ~/.fusion
- Add migration logic to copy existing data from old directory to new location
- Update all core packages (store, settings, central-core, central-db) to use new default path
- Update all documentation references from ~/.pi/fusion to ~/.fusion
- Add test for ~/.pi/fusion migration path with updated mock paths
- Include changeset for @gsxdsm/fusion minor version bump
2026-04-15 13:33:27 -07:00
Fusion
af4df19e94 fix(FN-1879): add roadmaps and project_insights tables to SCHEMA_SQL
- Add roadmaps table for roadmap persistence with id, title, description, timestamps
- Add roadmap_milestones table with FK cascade to roadmaps and orderIndex for deterministic sorting
- Add roadmap_features table with FK cascade to milestones and orderIndex for feature ordering
- Add project_insights table for normalized insight entities with category, status, fingerprint fields
- Add project_insight_runs table for insight-generation run records with trigger, status, counts
- Add covering indexes for milestone/feature ordering and insight filtering by projectId, category, fingerprint
2026-04-15 13:21:37 -07:00
Fusion
7f972c7535 feat(FN-1672): add AI feature suggestion UI to roadmaps
- Add dashboard API endpoints for roadmap feature suggestions
- Create useRoadmaps hook for fetching and managing roadmap data with suggestions
- Add feature suggestion UI to RoadmapsView with Accept All / Accept Individual buttons
- Render AI suggestions in MilestoneCard component
- Add CSS styling for suggestion buttons and interaction states
- Write comprehensive tests for useRoadmaps hook and RoadmapsView component
- Update dashboard guide documentation with feature suggestion usage
2026-04-15 12:50:08 -07:00
gsxdsm
1391b237d0 fix: add missing /api prefix in fetchAgentLogsWithMeta causing empty agent logs
fetchAgentLogsWithMeta was calling fetch(url) directly instead of
fetch(buildApiUrl(url)), so requests hit the SPA fallback instead of
the /api/tasks/:id/logs endpoint, returning HTML that silently failed
JSON parsing and resulted in empty agent log entries.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 12:20:03 -07:00
Fusion
7f06467f1d docs(FN-1732): remove changeset for docs-only task 2026-04-15 11:37:15 -07:00
Fusion
7ef3737378 feat(FN-1877): add auto-compaction on context window errors to promptWithFallback
- Detect context-window-limit errors from AI sessions and automatically compact
  the session conversation history before retrying (one attempt per session)
- Centralize auto-compaction in promptWithFallback (pi.ts) so executor, merger,
  and step-session-executor all benefit from the same mechanism
- Remove scattered context-limit error handling from executor.ts, merger.ts, and
  step-session-executor.ts in favor of the centralized approach
- Add comprehensive tests for auto-compaction retry behavior in pi.test.ts
- Remove unused compactSessionContext import from step-session-executor.ts
- Add memory note documenting the centralized auto-compaction design
2026-04-15 10:42:20 -07:00
Fusion
0c948f5074 feat(FN-1671): add AI milestone suggestion feature
- Add milestone suggestion generation backend contract with scoring algorithm
- Add milestone suggestion hook actions (generate, accept, dismiss) in useRoadmaps
- Add RoadmapsView UI with suggestion panel, cards, and accept/dismiss buttons
- Document AI milestone suggestion feature in dashboard guide
- Add roadmap-suggestions unit tests covering generation and UX flows
2026-04-15 09:49:45 -07:00
gsxdsm
e5fac0f9b6 feat(FN-1876): merge fusion/fn-1876 2026-04-15 09:46:36 -07:00
gsxdsm
72076c65d1 feat(FN-1875): merge fusion/fn-1875 2026-04-15 09:45:57 -07:00
Fusion
85f6bf1b5e feat(FN-1732): document model scope hierarchy in README and storage docs
- Add Model System section to README.md with five-lane dual-scope overview
- Add new global fields to docs/storage.md (8 *GlobalProvider/*GlobalModelId keys)
- Add new project fields to docs/storage.md (defaultProviderOverride, defaultModelIdOverride, executionProvider, executionModelId)
- Add scope isolation note clarifying *Global* keys are project-settings-exclusive
- Note: docs/settings-reference.md already had complete Model Selection Hierarchy with all five lanes
- All model lane hierarchy engine and dashboard changes already merged via fusion/fn-1678
2026-04-15 09:43:28 -07:00
gsxdsm
84c42e4f26 feat(FN-1872): merge fusion/fn-1872 2026-04-15 09:31:20 -07:00
gsxdsm
d5f802ea1e feat(FN-1729): merge fusion/fn-1729 2026-04-15 09:31:09 -07:00
gsxdsm
dc39fa82d5 feat(FN-1678): merge fusion/fn-1678 2026-04-15 09:31:03 -07:00
Fusion
13b80f89e4 feat(FN-1330): consolidate mobile Board/List tabs into Tasks tab with header toggle
- Merge mobile Board and List tabs into unified Tasks tab in MobileNavBar
- Add Board/List toggle to Header component for switching views within Tasks tab
- Add comprehensive Header tests covering toggle functionality and keyboard navigation
- Update mobile feature access tests to reflect new tab structure
- Add mobile task view toggle CSS styles
2026-04-15 09:10:38 -07:00
Fusion
9c31c1136f feat(FN-1874): add command/AI prompt type toggle to schedule form simple mode
- Add type toggle buttons (Command/AI Prompt) in simple schedule mode
- Show command input or AI prompt textarea based on selected type
- Add model provider/model ID fields for AI Prompt mode
- Restore simple type when editing existing schedules with single step
- Add comprehensive tests for type toggle behavior and validation
- Fix missing mocks in ScheduledTasksModal test
2026-04-15 08:58:21 -07:00
gsxdsm
5d90a1c09e fix(FN-1854): add changeset for stale triage processing eviction fix 2026-04-15 08:35:24 -07:00
Fusion
ebfab59d7e feat(FN-1873): replace model provider/ID inputs with standard model selector in schedule steps
- Replace manual provider/modelId text inputs in schedule step forms with the standard CustomModelDropdown component
- Add model loading state (loading, error) in StepEditor with graceful error handling
- Fetch available models via fetchModels() API on mount for model selection dropdown
- Add comprehensive tests for model selector integration in schedule steps editor
- Add ScheduleForm tests covering multi-step mode with model selector validation
2026-04-15 08:31:55 -07:00
Fusion
8b631a98df feat(FN-1854): send tasks back to in-progress when verification fails
- Add sendTaskBackForFix() method that encapsulates the 'verification failed
  — send back to in-progress' pattern
- Replace all 4 hard failure locations with sendTaskBackForFix() calls
- Update failure feedback template to mention 'sent back to in-progress'
- Update test assertions for workflow step failure cases
- Rename test that verifies passing workflow step behavior
- Add new test for verification failure send-back flow
- Add addTaskComment mock to store factories for testing

The task executor now sends tasks back to in-progress (instead of 'in-review'
with 'failed' status) when workflow step verification fails and retries are
exhausted. This allows the executor to attempt to fix the issues on the
next pass, mirroring the existing deterministic verification failure behavior
in project-engine.ts.
2026-04-15 08:28:51 -07:00
Fusion
ed35b494fe feat(FN-1634): promote mailbox to first-class navigation view
- Add MailboxView as a full-page navigation view replacing the modal-based approach
- Migrate MessageStore from filesystem to SQLite backend for message persistence
- Implement conversation grouping for inbox display with unread badge state
- Remove modal plumbing (useModalManager, AppModals exports) and simplify App.tsx
- Add evictStaleProcessing() to TriageProcessor for self-healing hung triage sessions
- Add comprehensive MailboxView tests and Header mailbox tests
- Update README documentation with MailboxView features
- Add CSS styles for MailboxView component
- Fix MobileNavBar tests for mailbox tab visibility
2026-04-15 08:04:02 -07:00
Fusion
618de9c766 feat(FN-1662): fix project overview stats for non-first projects
- Always compute live task counts from the project-scoped store via getOrCreateProjectStore()
- Remove broken path-comparison logic that only worked for the default project
- Endpoint /api/projects/:id/health now returns accurate stats for all projects
- Add tests covering multi-project health endpoint scenarios
2026-04-15 07:19:41 -07:00
Fusion
121edc7556 docs(FN-1867): add Dashboard UI Styling Guide to AGENTS.md
- Document design tokens (colors, spacing, shadows, transitions)
- Define component CSS classes (buttons, modals, forms, cards)
- Document theme system (dark/light modes + 54 color themes)
- Add mobile responsive guidelines and breakpoints
- Include common pitfalls and accessibility requirements
2026-04-15 07:08:54 -07:00
Fusion
d234c99c3b refactor(FN-1633): migrate MessageStore from filesystem to SQLite backend
- Replace filesystem-based message storage with SQLite backend
- Add MessageStore class using better-sqlite3 with WAL mode
- Update message.ts CLI command to use new MessageStore API
- Update dashboard routes and engine runtime for SQLite integration
- Update all related tests for new storage implementation
2026-04-15 07:02:38 -07:00
Fusion
6d853036ff feat(FN-1670): add roadmap drag-and-drop with milestone and feature reordering
- Implement RoadmapsView component with drag-and-drop support for milestones and features
- Add milestone reorder via drag-and-drop with optimistic UI updates and API persistence
- Add feature reorder within milestones and cross-milestone move support
- Add useRoadmaps hook with full CRUD API for roadmaps, milestones, and features
- Add /roadmaps route with sidebar navigation to roadmap views
- Add comprehensive tests for API, useRoadmaps hook, and RoadmapsView component
- Update dashboard guide with roadmap management documentation
- Harden API with race-condition safety and proper error handling
2026-04-15 06:55:34 -07:00
Fusion
8c0d16a283 feat(FN-1791): add SkillsView component for dashboard
- Add SkillsView component displaying discovered skills with enable/disable toggle
- Add skills catalog section with search functionality and debounced query
- Add dashboard API client wrappers for skills endpoints (fetchDiscoveredSkills, toggleExecutionSkill, fetchSkillsCatalog)
- Add comprehensive tests for SkillsView component (rendering, loading states, error handling, search, toggle)
- Remove unused imports and stats variable (useMemo, CatalogFetchResult)
2026-04-15 06:23:00 -07:00
Fusion
cd3acff886 feat(FN-1832): add daemon mode and auth middleware integration tests
- Add --daemon flag to fn serve command for headless node mode
- Add daemon-aware messaging to fn node connect showing authentication status
- Add auth middleware integration tests covering subpath /api/health
- Fix test isolation issues in node.test.ts with proper mock cleanup
- Fix SkillsView onClose prop type issue
- Add CLI integration tests for daemon mode validation
2026-04-15 06:14:53 -07:00
Fusion
5cbe135769 fix(FN-1614): fix git show --format argument for execFile
- Clarify git show --format usage in getCommitDiff function
- Document difference between --format= (empty) and --format="" (quoted empty)
- No functional changes - actual git command was already correct
2026-04-15 05:44:40 -07:00
Fusion
65c9c2f6c8 feat(FN-1832): add daemon mode and auth-aware node connect
- Add --daemon flag to fn serve command for headless node operation
- Add daemon-aware messaging to fn node connect (shows auth status)
- Add CLI integration tests for daemon mode (serve.test.ts)
- Add auth middleware integration tests (auth-middleware-integration.test.ts)
- Fix auth middleware test for /api/health subpath
- Update bin.test.ts with daemon mode test coverage
2026-04-15 05:27:07 -07:00
Fusion
37de651b7e fix(FN-1843): add onClose prop to SkillsView and anchor node selector dropdown
- Add missing onClose prop to SkillsView component in App.tsx for proper close navigation
- Anchor node selector dropdown to left edge to prevent off-screen rendering
2026-04-15 05:07:16 -07:00
gsxdsm
949f9576de feat(FN-1731): merge fusion/fn-1731 2026-04-15 05:00:56 -07:00
gsxdsm
1c555af4fa feat(FN-1816): merge fusion/fn-1816 2026-04-15 04:46:02 -07:00
gsxdsm
14f7ab559d feat(FN-1800): merge fusion/fn-1800 2026-04-15 04:45:56 -07:00
Fusion
3f61d6433d feat(FN-1614): merge fusion/fn-1614 - convert git helper functions to async
- Convert git helper functions to async with runGitCommand wrapper
- Remove blocking execSync from task retry and git management endpoints
- Await async helpers in all route handlers
- Use --format= for git show commands (not --format= with quotes)
- Include all branch changes from fusion/fn-1614
2026-04-15 04:34:11 -07:00
gsxdsm
a876332d4a feat(FN-1794): merge fusion/fn-1794 2026-04-15 04:30:56 -07:00
gsxdsm
abd51a77f7 feat(FN-1837): merge fusion/fn-1837 2026-04-15 04:16:32 -07:00
gsxdsm
2a13a0d249 feat(FN-1712): merge fusion/fn-1712 2026-04-15 04:15:57 -07:00
Fusion
a406608f7e feat(FN-1614): convert blocking execSync to async in route handlers
- Convert git helper functions to async with runGitCommand wrapper
- Remove blocking execSync from task retry and git management endpoints
- Add await calls for async helpers in all affected route handlers
- Fix git format flag to use --format= without quotes (execFile passes args directly unlike shell)
2026-04-15 04:15:37 -07:00
gsxdsm
7f86f704b4 feat(FN-1831): merge fusion/fn-1831 2026-04-15 04:01:02 -07:00
gsxdsm
8287730d63 feat(FN-1792): merge fusion/fn-1792 2026-04-15 04:00:56 -07:00
Fusion
49ae54d6b6 feat(FN-1790): add dashboard skills API client wrappers
- Add fetchDiscoveredSkills() to fetch all discovered skills with enabled state
- Add toggleExecutionSkill() to toggle skill enabled/disabled state
- Add fetchSkillsCatalog() to search the skills.sh catalog with query and limit
- Export skills types (DiscoveredSkill, CatalogEntry, CatalogFetchResult, ToggleSkillResult) for use by hooks/components
- Add comprehensive test coverage for all three API functions
2026-04-15 03:48:14 -07:00
Fusion
18e3724c92 feat(FN-1762): fix typecheck errors in engine test files
- Add SignalListener type definition to child-process-worker.test.ts
- Update mockImplementation callbacks to use unknown type instead of any
- Add proper TypeScript types to createAgentWithTaskDone opts parameter
- Use optional chaining for safer customTools access
- Use () => void | undefined type for resolvePrompt variables
2026-04-15 03:40:21 -07:00
gsxdsm
8dc8fd7dec feat(FN-1830): merge fusion/fn-1830 2026-04-15 03:30:56 -07:00
Fusion
fa9c2e79d0 fix(FN-1801): plugin settings UX and theme awareness improvements
- Add new input types for plugin settings (password, textarea, array fields)
- Render toggle switch inside .toggle-switch label for theme-aware styling
- Update STATE_COLORS to use CSS variable references instead of hardcoded hex values
- Add SSE live updates for plugin lifecycle events (enabled, disabled, uninstalled, settings-updated)
- Project-scoped SSE subscription when projectId is provided
- Expand PluginManager tests with 32 passing tests covering new functionality
2026-04-15 03:29:08 -07:00
Fusion
ebdfee2ebc feat(FN-1614): remove execSync from task retry endpoint
Converted inline execSync calls in POST /tasks/:id/retry to use
runGitCommand. Also removed the now-unused execSync import.
2026-04-15 03:28:29 -07:00
Fusion
c20c7dddb2 feat(FN-1614): await async helpers in route handlers
Updated all route handlers to use await for async git helper functions:
- GET /git/remotes
- GET /git/remotes/detailed
- GET /git/status
- GET /git/commits
- GET /git/commits/:hash/diff
- GET /git/commits/ahead
- GET /git/branches
- GET /git/branches/:name/commits
- GET /git/worktrees
- GET /git/stashes
- POST /git/remotes
- DELETE /git/remotes/:name
- PATCH /git/remotes/:name
- PUT /git/remotes/:name/url
- GET /git/remotes/:name/commits
- POST /git/branches
- POST /git/branches/:name/checkout
- DELETE /git/branches/:name
- POST /git/fetch
- POST /git/pull
- POST /git/push
- POST /git/stashes
- POST /git/stashes/:index/apply
- DELETE /git/stashes/:index
- GET /git/diff
- GET /git/changes
2026-04-15 03:27:43 -07:00
Fusion
aab990e2a8 feat(FN-1614): convert git helper functions to async
Convert all 11 git helper functions from sync execSync calls to async runGitCommand:
- getGitHubRemotes
- isGitRepo
- getGitStatus
- getGitCommits
- getGitCommitsForBranch
- getAheadCommits
- getCommitDiff
- getGitBranches
- getGitWorktrees
- listGitRemotes
- getGitStashList

Each function now uses await runGitCommand([...args], cwd, timeout) instead of execSync.
2026-04-15 03:23:56 -07:00
Fusion
3cd5d2c610 fix(FN-1761): fix test lint with type-safe eslint-disable comments
- restart.integration.test.ts: add eslint-disable for Function/any types in mocks
- child-process-worker.test.ts: add eslint-disable for Function[] in baseline arrays
- Restore build to passing by avoiding overly strict type changes
- All tests pass
2026-04-15 03:08:58 -07:00
Fusion
b53883cad4 feat(FN-1761): fix lint errors in remaining test files
- child-process-worker.test.ts: replace Function[] with SignalListener type
- remote-node-runtime.test.ts: add yield statement to idleStream generator
- All 57 test files pass with 0 errors
2026-04-15 03:02:55 -07:00
gsxdsm
cfcefa5ce6 feat(FN-1759): merge fusion/fn-1759 2026-04-15 03:00:56 -07:00
Fusion
f2259282ea feat(FN-1761): fix lint errors in executor.test.ts and restart.integration.test.ts
- executor.test.ts: remove unused imports (Column, StuckTaskDetector),
  replace Function type with EventListener, add MockTaskStore interface
- restart.integration.test.ts: replace require() with ESM import,
  replace Function types with proper function signatures
- All tests pass
2026-04-15 03:00:54 -07:00
Fusion
0d6535a952 feat(FN-1629): add pagination to agent logs
- Add pagination support to TaskStore.getAgentLogs() with limit/offset parameters
- Add GET /tasks/:id/logs API route with pagination support
- Add fetchAgentLogs API client with pagination parameters
- Refactor useAgentLogs hook for incremental loading with loadMore callback
- Update useMultiAgentLogs for pagination consistency across multiple task IDs
- Add Load More UI to AgentLogViewer component
- Wire up Load More in TaskDetailModal agent log section
- Fix offset slice direction bug in getAgentLogs
- Remove incorrect reverse() call in getAgentLogs offset logic
- Add comprehensive tests for useAgentLogs and useMultiAgentLogs pagination
2026-04-15 02:53:06 -07:00