@aion0/forge 0.6.3 → 0.8.1

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 (3089) hide show
  1. package/.forge/agent-context.json +3 -3
  2. package/.forge/mcp.json +9 -1
  3. package/.forge/memory/graph.json +1 -0
  4. package/.forge/memory/knowledge.json +18 -0
  5. package/.forge/memory/meta.json +7 -0
  6. package/.forge/migration/endpoints.json +1 -0
  7. package/.forge/worktrees/pipeline-0a33c50d/CLAUDE.md +86 -0
  8. package/.forge/worktrees/pipeline-0a33c50d/README.md +136 -0
  9. package/.forge/worktrees/pipeline-0a33c50d/RELEASE_NOTES.md +11 -0
  10. package/.forge/worktrees/pipeline-0a33c50d/app/api/agents/route.ts +17 -0
  11. package/.forge/worktrees/pipeline-0a33c50d/app/api/auth/[...nextauth]/route.ts +3 -0
  12. package/.forge/worktrees/pipeline-0a33c50d/app/api/auth/verify/route.ts +46 -0
  13. package/.forge/worktrees/pipeline-0a33c50d/app/api/claude/[id]/route.ts +31 -0
  14. package/.forge/worktrees/pipeline-0a33c50d/app/api/claude/[id]/stream/route.ts +63 -0
  15. package/.forge/worktrees/pipeline-0a33c50d/app/api/claude/route.ts +28 -0
  16. package/.forge/worktrees/pipeline-0a33c50d/app/api/claude-sessions/[projectName]/entries/route.ts +23 -0
  17. package/.forge/worktrees/pipeline-0a33c50d/app/api/claude-sessions/[projectName]/live/route.ts +72 -0
  18. package/.forge/worktrees/pipeline-0a33c50d/app/api/claude-sessions/[projectName]/route.ts +37 -0
  19. package/.forge/worktrees/pipeline-0a33c50d/app/api/claude-sessions/sync/route.ts +17 -0
  20. package/.forge/worktrees/pipeline-0a33c50d/app/api/claude-templates/route.ts +145 -0
  21. package/.forge/worktrees/pipeline-0a33c50d/app/api/code/route.ts +299 -0
  22. package/.forge/worktrees/pipeline-0a33c50d/app/api/delivery/[id]/route.ts +62 -0
  23. package/.forge/worktrees/pipeline-0a33c50d/app/api/delivery/route.ts +40 -0
  24. package/.forge/worktrees/pipeline-0a33c50d/app/api/detect-cli/route.ts +46 -0
  25. package/.forge/worktrees/pipeline-0a33c50d/app/api/docs/route.ts +176 -0
  26. package/.forge/worktrees/pipeline-0a33c50d/app/api/docs/sessions/route.ts +54 -0
  27. package/.forge/worktrees/pipeline-0a33c50d/app/api/favorites/route.ts +26 -0
  28. package/.forge/worktrees/pipeline-0a33c50d/app/api/flows/route.ts +6 -0
  29. package/.forge/worktrees/pipeline-0a33c50d/app/api/flows/run/route.ts +19 -0
  30. package/.forge/worktrees/pipeline-0a33c50d/app/api/git/route.ts +149 -0
  31. package/.forge/worktrees/pipeline-0a33c50d/app/api/help/route.ts +84 -0
  32. package/.forge/worktrees/pipeline-0a33c50d/app/api/issue-scanner/route.ts +116 -0
  33. package/.forge/worktrees/pipeline-0a33c50d/app/api/logs/route.ts +100 -0
  34. package/.forge/worktrees/pipeline-0a33c50d/app/api/mobile-chat/route.ts +115 -0
  35. package/.forge/worktrees/pipeline-0a33c50d/app/api/monitor/route.ts +74 -0
  36. package/.forge/worktrees/pipeline-0a33c50d/app/api/notifications/route.ts +42 -0
  37. package/.forge/worktrees/pipeline-0a33c50d/app/api/notify/test/route.ts +33 -0
  38. package/.forge/worktrees/pipeline-0a33c50d/app/api/online/route.ts +40 -0
  39. package/.forge/worktrees/pipeline-0a33c50d/app/api/pipelines/[id]/route.ts +41 -0
  40. package/.forge/worktrees/pipeline-0a33c50d/app/api/pipelines/route.ts +90 -0
  41. package/.forge/worktrees/pipeline-0a33c50d/app/api/plugins/route.ts +75 -0
  42. package/.forge/worktrees/pipeline-0a33c50d/app/api/preview/[...path]/route.ts +64 -0
  43. package/.forge/worktrees/pipeline-0a33c50d/app/api/preview/route.ts +156 -0
  44. package/.forge/worktrees/pipeline-0a33c50d/app/api/project-pipelines/route.ts +91 -0
  45. package/.forge/worktrees/pipeline-0a33c50d/app/api/project-sessions/route.ts +61 -0
  46. package/.forge/worktrees/pipeline-0a33c50d/app/api/projects/route.ts +26 -0
  47. package/.forge/worktrees/pipeline-0a33c50d/app/api/sessions/[id]/chat/route.ts +64 -0
  48. package/.forge/worktrees/pipeline-0a33c50d/app/api/sessions/[id]/messages/route.ts +9 -0
  49. package/.forge/worktrees/pipeline-0a33c50d/app/api/sessions/[id]/route.ts +17 -0
  50. package/.forge/worktrees/pipeline-0a33c50d/app/api/sessions/route.ts +20 -0
  51. package/.forge/worktrees/pipeline-0a33c50d/app/api/settings/route.ts +64 -0
  52. package/.forge/worktrees/pipeline-0a33c50d/app/api/skills/local/route.ts +228 -0
  53. package/.forge/worktrees/pipeline-0a33c50d/app/api/skills/route.ts +182 -0
  54. package/.forge/worktrees/pipeline-0a33c50d/app/api/smith-templates/route.ts +81 -0
  55. package/.forge/worktrees/pipeline-0a33c50d/app/api/status/route.ts +12 -0
  56. package/.forge/worktrees/pipeline-0a33c50d/app/api/tabs/route.ts +25 -0
  57. package/.forge/worktrees/pipeline-0a33c50d/app/api/tasks/[id]/route.ts +51 -0
  58. package/.forge/worktrees/pipeline-0a33c50d/app/api/tasks/[id]/stream/route.ts +77 -0
  59. package/.forge/worktrees/pipeline-0a33c50d/app/api/tasks/link/route.ts +37 -0
  60. package/.forge/worktrees/pipeline-0a33c50d/app/api/tasks/route.ts +44 -0
  61. package/.forge/worktrees/pipeline-0a33c50d/app/api/tasks/session/route.ts +14 -0
  62. package/.forge/worktrees/pipeline-0a33c50d/app/api/telegram/route.ts +23 -0
  63. package/.forge/worktrees/pipeline-0a33c50d/app/api/templates/route.ts +6 -0
  64. package/.forge/worktrees/pipeline-0a33c50d/app/api/terminal-bell/route.ts +35 -0
  65. package/.forge/worktrees/pipeline-0a33c50d/app/api/terminal-cwd/route.ts +19 -0
  66. package/.forge/worktrees/pipeline-0a33c50d/app/api/terminal-state/route.ts +15 -0
  67. package/.forge/worktrees/pipeline-0a33c50d/app/api/tunnel/route.ts +26 -0
  68. package/.forge/worktrees/pipeline-0a33c50d/app/api/upgrade/route.ts +43 -0
  69. package/.forge/worktrees/pipeline-0a33c50d/app/api/usage/route.ts +20 -0
  70. package/.forge/worktrees/pipeline-0a33c50d/app/api/version/route.ts +78 -0
  71. package/.forge/worktrees/pipeline-0a33c50d/app/api/watchers/route.ts +33 -0
  72. package/.forge/worktrees/pipeline-0a33c50d/app/api/workspace/[id]/agents/route.ts +35 -0
  73. package/.forge/worktrees/pipeline-0a33c50d/app/api/workspace/[id]/memory/route.ts +23 -0
  74. package/.forge/worktrees/pipeline-0a33c50d/app/api/workspace/[id]/smith/route.ts +22 -0
  75. package/.forge/worktrees/pipeline-0a33c50d/app/api/workspace/[id]/stream/route.ts +28 -0
  76. package/.forge/worktrees/pipeline-0a33c50d/app/api/workspace/route.ts +100 -0
  77. package/.forge/worktrees/pipeline-0a33c50d/app/global-error.tsx +21 -0
  78. package/.forge/worktrees/pipeline-0a33c50d/app/globals.css +52 -0
  79. package/.forge/worktrees/pipeline-0a33c50d/app/icon.ico +0 -0
  80. package/.forge/worktrees/pipeline-0a33c50d/app/icon.png +0 -0
  81. package/.forge/worktrees/pipeline-0a33c50d/app/icon.svg +106 -0
  82. package/.forge/worktrees/pipeline-0a33c50d/app/layout.tsx +17 -0
  83. package/.forge/worktrees/pipeline-0a33c50d/app/login/LoginForm.tsx +96 -0
  84. package/.forge/worktrees/pipeline-0a33c50d/app/login/page.tsx +10 -0
  85. package/.forge/worktrees/pipeline-0a33c50d/app/mobile/page.tsx +9 -0
  86. package/.forge/worktrees/pipeline-0a33c50d/app/page.tsx +21 -0
  87. package/.forge/worktrees/pipeline-0a33c50d/bin/forge-server.mjs +484 -0
  88. package/.forge/worktrees/pipeline-0a33c50d/check-forge-status.sh +71 -0
  89. package/.forge/worktrees/pipeline-0a33c50d/cli/mw.ts +579 -0
  90. package/.forge/worktrees/pipeline-0a33c50d/components/BrowserPanel.tsx +175 -0
  91. package/.forge/worktrees/pipeline-0a33c50d/components/ChatPanel.tsx +191 -0
  92. package/.forge/worktrees/pipeline-0a33c50d/components/ClaudeTerminal.tsx +267 -0
  93. package/.forge/worktrees/pipeline-0a33c50d/components/CodeViewer.tsx +787 -0
  94. package/.forge/worktrees/pipeline-0a33c50d/components/ConversationEditor.tsx +411 -0
  95. package/.forge/worktrees/pipeline-0a33c50d/components/ConversationGraphView.tsx +347 -0
  96. package/.forge/worktrees/pipeline-0a33c50d/components/ConversationTerminalView.tsx +303 -0
  97. package/.forge/worktrees/pipeline-0a33c50d/components/Dashboard.tsx +807 -0
  98. package/.forge/worktrees/pipeline-0a33c50d/components/DashboardWrapper.tsx +9 -0
  99. package/.forge/worktrees/pipeline-0a33c50d/components/DeliveryFlowEditor.tsx +491 -0
  100. package/.forge/worktrees/pipeline-0a33c50d/components/DeliveryList.tsx +230 -0
  101. package/.forge/worktrees/pipeline-0a33c50d/components/DeliveryWorkspace.tsx +589 -0
  102. package/.forge/worktrees/pipeline-0a33c50d/components/DocTerminal.tsx +187 -0
  103. package/.forge/worktrees/pipeline-0a33c50d/components/DocsViewer.tsx +574 -0
  104. package/.forge/worktrees/pipeline-0a33c50d/components/HelpDialog.tsx +169 -0
  105. package/.forge/worktrees/pipeline-0a33c50d/components/HelpTerminal.tsx +141 -0
  106. package/.forge/worktrees/pipeline-0a33c50d/components/InlinePipelineView.tsx +111 -0
  107. package/.forge/worktrees/pipeline-0a33c50d/components/LogViewer.tsx +194 -0
  108. package/.forge/worktrees/pipeline-0a33c50d/components/MarkdownContent.tsx +73 -0
  109. package/.forge/worktrees/pipeline-0a33c50d/components/MobileView.tsx +385 -0
  110. package/.forge/worktrees/pipeline-0a33c50d/components/MonitorPanel.tsx +122 -0
  111. package/.forge/worktrees/pipeline-0a33c50d/components/NewSessionModal.tsx +93 -0
  112. package/.forge/worktrees/pipeline-0a33c50d/components/NewTaskModal.tsx +492 -0
  113. package/.forge/worktrees/pipeline-0a33c50d/components/PipelineEditor.tsx +570 -0
  114. package/.forge/worktrees/pipeline-0a33c50d/components/PipelineView.tsx +1018 -0
  115. package/.forge/worktrees/pipeline-0a33c50d/components/PluginsPanel.tsx +472 -0
  116. package/.forge/worktrees/pipeline-0a33c50d/components/ProjectDetail.tsx +1618 -0
  117. package/.forge/worktrees/pipeline-0a33c50d/components/ProjectList.tsx +108 -0
  118. package/.forge/worktrees/pipeline-0a33c50d/components/ProjectManager.tsx +401 -0
  119. package/.forge/worktrees/pipeline-0a33c50d/components/SessionList.tsx +74 -0
  120. package/.forge/worktrees/pipeline-0a33c50d/components/SessionView.tsx +726 -0
  121. package/.forge/worktrees/pipeline-0a33c50d/components/SettingsModal.tsx +1647 -0
  122. package/.forge/worktrees/pipeline-0a33c50d/components/SkillsPanel.tsx +969 -0
  123. package/.forge/worktrees/pipeline-0a33c50d/components/StatusBar.tsx +99 -0
  124. package/.forge/worktrees/pipeline-0a33c50d/components/TabBar.tsx +46 -0
  125. package/.forge/worktrees/pipeline-0a33c50d/components/TaskBoard.tsx +113 -0
  126. package/.forge/worktrees/pipeline-0a33c50d/components/TaskDetail.tsx +372 -0
  127. package/.forge/worktrees/pipeline-0a33c50d/components/TerminalLauncher.tsx +398 -0
  128. package/.forge/worktrees/pipeline-0a33c50d/components/TunnelToggle.tsx +206 -0
  129. package/.forge/worktrees/pipeline-0a33c50d/components/UsagePanel.tsx +207 -0
  130. package/.forge/worktrees/pipeline-0a33c50d/components/WebTerminal.tsx +1683 -0
  131. package/.forge/worktrees/pipeline-0a33c50d/components/WorkspaceTree.tsx +221 -0
  132. package/.forge/worktrees/pipeline-0a33c50d/components/WorkspaceView.tsx +4048 -0
  133. package/.forge/worktrees/pipeline-0a33c50d/dev-test.sh +5 -0
  134. package/.forge/worktrees/pipeline-0a33c50d/docs/Forge_Memory_Layer_Design.docx +0 -0
  135. package/.forge/worktrees/pipeline-0a33c50d/docs/Forge_Strategy_Research_2026.docx +0 -0
  136. package/.forge/worktrees/pipeline-0a33c50d/docs/LOCAL-DEPLOY.md +144 -0
  137. package/.forge/worktrees/pipeline-0a33c50d/docs/roadmap-multi-agent-workflow.md +330 -0
  138. package/.forge/worktrees/pipeline-0a33c50d/forge-logo.png +0 -0
  139. package/.forge/worktrees/pipeline-0a33c50d/forge-logo.svg +106 -0
  140. package/.forge/worktrees/pipeline-0a33c50d/hooks/useSidebarResize.ts +52 -0
  141. package/.forge/worktrees/pipeline-0a33c50d/install.sh +29 -0
  142. package/.forge/worktrees/pipeline-0a33c50d/instrumentation.ts +35 -0
  143. package/.forge/worktrees/pipeline-0a33c50d/lib/agents/claude-adapter.ts +104 -0
  144. package/.forge/worktrees/pipeline-0a33c50d/lib/agents/generic-adapter.ts +64 -0
  145. package/.forge/worktrees/pipeline-0a33c50d/lib/agents/index.ts +245 -0
  146. package/.forge/worktrees/pipeline-0a33c50d/lib/agents/types.ts +70 -0
  147. package/.forge/worktrees/pipeline-0a33c50d/lib/artifacts.ts +106 -0
  148. package/.forge/worktrees/pipeline-0a33c50d/lib/auth.ts +62 -0
  149. package/.forge/worktrees/pipeline-0a33c50d/lib/builtin-plugins/docker.yaml +70 -0
  150. package/.forge/worktrees/pipeline-0a33c50d/lib/builtin-plugins/http.yaml +66 -0
  151. package/.forge/worktrees/pipeline-0a33c50d/lib/builtin-plugins/jenkins.yaml +92 -0
  152. package/.forge/worktrees/pipeline-0a33c50d/lib/builtin-plugins/llm-vision.yaml +85 -0
  153. package/.forge/worktrees/pipeline-0a33c50d/lib/builtin-plugins/playwright.yaml +111 -0
  154. package/.forge/worktrees/pipeline-0a33c50d/lib/builtin-plugins/shell-command.yaml +60 -0
  155. package/.forge/worktrees/pipeline-0a33c50d/lib/builtin-plugins/slack.yaml +48 -0
  156. package/.forge/worktrees/pipeline-0a33c50d/lib/builtin-plugins/webhook.yaml +56 -0
  157. package/.forge/worktrees/pipeline-0a33c50d/lib/claude-process.ts +352 -0
  158. package/.forge/worktrees/pipeline-0a33c50d/lib/claude-sessions.ts +266 -0
  159. package/.forge/worktrees/pipeline-0a33c50d/lib/claude-templates.ts +227 -0
  160. package/.forge/worktrees/pipeline-0a33c50d/lib/cloudflared.ts +424 -0
  161. package/.forge/worktrees/pipeline-0a33c50d/lib/crypto.ts +67 -0
  162. package/.forge/worktrees/pipeline-0a33c50d/lib/delivery.ts +787 -0
  163. package/.forge/worktrees/pipeline-0a33c50d/lib/dirs.ts +99 -0
  164. package/.forge/worktrees/pipeline-0a33c50d/lib/flows.ts +86 -0
  165. package/.forge/worktrees/pipeline-0a33c50d/lib/forge-mcp-server.ts +717 -0
  166. package/.forge/worktrees/pipeline-0a33c50d/lib/forge-skills/forge-inbox.md +38 -0
  167. package/.forge/worktrees/pipeline-0a33c50d/lib/forge-skills/forge-send.md +47 -0
  168. package/.forge/worktrees/pipeline-0a33c50d/lib/forge-skills/forge-status.md +32 -0
  169. package/.forge/worktrees/pipeline-0a33c50d/lib/forge-skills/forge-workspace-sync.md +37 -0
  170. package/.forge/worktrees/pipeline-0a33c50d/lib/help-docs/00-overview.md +40 -0
  171. package/.forge/worktrees/pipeline-0a33c50d/lib/help-docs/01-settings.md +194 -0
  172. package/.forge/worktrees/pipeline-0a33c50d/lib/help-docs/02-telegram.md +41 -0
  173. package/.forge/worktrees/pipeline-0a33c50d/lib/help-docs/03-tunnel.md +31 -0
  174. package/.forge/worktrees/pipeline-0a33c50d/lib/help-docs/04-tasks.md +52 -0
  175. package/.forge/worktrees/pipeline-0a33c50d/lib/help-docs/05-pipelines.md +460 -0
  176. package/.forge/worktrees/pipeline-0a33c50d/lib/help-docs/06-skills.md +43 -0
  177. package/.forge/worktrees/pipeline-0a33c50d/lib/help-docs/07-projects.md +73 -0
  178. package/.forge/worktrees/pipeline-0a33c50d/lib/help-docs/08-rules.md +53 -0
  179. package/.forge/worktrees/pipeline-0a33c50d/lib/help-docs/09-issue-autofix.md +55 -0
  180. package/.forge/worktrees/pipeline-0a33c50d/lib/help-docs/10-troubleshooting.md +89 -0
  181. package/.forge/worktrees/pipeline-0a33c50d/lib/help-docs/11-workspace.md +810 -0
  182. package/.forge/worktrees/pipeline-0a33c50d/lib/help-docs/CLAUDE.md +62 -0
  183. package/.forge/worktrees/pipeline-0a33c50d/lib/init.ts +266 -0
  184. package/.forge/worktrees/pipeline-0a33c50d/lib/issue-scanner.ts +298 -0
  185. package/.forge/worktrees/pipeline-0a33c50d/lib/logger.ts +79 -0
  186. package/.forge/worktrees/pipeline-0a33c50d/lib/notifications.ts +75 -0
  187. package/.forge/worktrees/pipeline-0a33c50d/lib/notify.ts +108 -0
  188. package/.forge/worktrees/pipeline-0a33c50d/lib/password.ts +97 -0
  189. package/.forge/worktrees/pipeline-0a33c50d/lib/pipeline-scheduler.ts +373 -0
  190. package/.forge/worktrees/pipeline-0a33c50d/lib/pipeline.ts +1438 -0
  191. package/.forge/worktrees/pipeline-0a33c50d/lib/plugins/executor.ts +347 -0
  192. package/.forge/worktrees/pipeline-0a33c50d/lib/plugins/registry.ts +228 -0
  193. package/.forge/worktrees/pipeline-0a33c50d/lib/plugins/types.ts +103 -0
  194. package/.forge/worktrees/pipeline-0a33c50d/lib/project-sessions.ts +53 -0
  195. package/.forge/worktrees/pipeline-0a33c50d/lib/projects.ts +86 -0
  196. package/.forge/worktrees/pipeline-0a33c50d/lib/session-manager.ts +156 -0
  197. package/.forge/worktrees/pipeline-0a33c50d/lib/session-utils.ts +53 -0
  198. package/.forge/worktrees/pipeline-0a33c50d/lib/session-watcher.ts +345 -0
  199. package/.forge/worktrees/pipeline-0a33c50d/lib/settings.ts +195 -0
  200. package/.forge/worktrees/pipeline-0a33c50d/lib/skills.ts +458 -0
  201. package/.forge/worktrees/pipeline-0a33c50d/lib/task-manager.ts +949 -0
  202. package/.forge/worktrees/pipeline-0a33c50d/lib/telegram-bot.ts +1477 -0
  203. package/.forge/worktrees/pipeline-0a33c50d/lib/telegram-standalone.ts +83 -0
  204. package/.forge/worktrees/pipeline-0a33c50d/lib/terminal-server.ts +70 -0
  205. package/.forge/worktrees/pipeline-0a33c50d/lib/terminal-standalone.ts +421 -0
  206. package/.forge/worktrees/pipeline-0a33c50d/lib/usage-scanner.ts +249 -0
  207. package/.forge/worktrees/pipeline-0a33c50d/lib/workspace/__tests__/state-machine.test.ts +388 -0
  208. package/.forge/worktrees/pipeline-0a33c50d/lib/workspace/__tests__/workspace.test.ts +311 -0
  209. package/.forge/worktrees/pipeline-0a33c50d/lib/workspace/agent-bus.ts +416 -0
  210. package/.forge/worktrees/pipeline-0a33c50d/lib/workspace/agent-worker.ts +655 -0
  211. package/.forge/worktrees/pipeline-0a33c50d/lib/workspace/backends/api-backend.ts +262 -0
  212. package/.forge/worktrees/pipeline-0a33c50d/lib/workspace/backends/cli-backend.ts +491 -0
  213. package/.forge/worktrees/pipeline-0a33c50d/lib/workspace/index.ts +82 -0
  214. package/.forge/worktrees/pipeline-0a33c50d/lib/workspace/manager.ts +136 -0
  215. package/.forge/worktrees/pipeline-0a33c50d/lib/workspace/orchestrator.ts +3400 -0
  216. package/.forge/worktrees/pipeline-0a33c50d/lib/workspace/persistence.ts +309 -0
  217. package/.forge/worktrees/pipeline-0a33c50d/lib/workspace/presets.ts +649 -0
  218. package/.forge/worktrees/pipeline-0a33c50d/lib/workspace/requests.ts +287 -0
  219. package/.forge/worktrees/pipeline-0a33c50d/lib/workspace/session-monitor.ts +240 -0
  220. package/.forge/worktrees/pipeline-0a33c50d/lib/workspace/skill-installer.ts +275 -0
  221. package/.forge/worktrees/pipeline-0a33c50d/lib/workspace/smith-memory.ts +498 -0
  222. package/.forge/worktrees/pipeline-0a33c50d/lib/workspace/types.ts +241 -0
  223. package/.forge/worktrees/pipeline-0a33c50d/lib/workspace/watch-manager.ts +560 -0
  224. package/.forge/worktrees/pipeline-0a33c50d/lib/workspace-standalone.ts +911 -0
  225. package/.forge/worktrees/pipeline-0a33c50d/middleware.ts +51 -0
  226. package/.forge/worktrees/pipeline-0a33c50d/next.config.ts +26 -0
  227. package/.forge/worktrees/pipeline-0a33c50d/package.json +74 -0
  228. package/.forge/worktrees/pipeline-0a33c50d/pnpm-lock.yaml +3719 -0
  229. package/.forge/worktrees/pipeline-0a33c50d/pnpm-workspace.yaml +1 -0
  230. package/.forge/worktrees/pipeline-0a33c50d/postcss.config.mjs +7 -0
  231. package/.forge/worktrees/pipeline-0a33c50d/publish.sh +133 -0
  232. package/.forge/worktrees/pipeline-0a33c50d/scripts/bench/README.md +66 -0
  233. package/.forge/worktrees/pipeline-0a33c50d/scripts/bench/results/.gitignore +2 -0
  234. package/.forge/worktrees/pipeline-0a33c50d/scripts/bench/run.ts +635 -0
  235. package/.forge/worktrees/pipeline-0a33c50d/scripts/bench/tasks/01-text-utils/task.md +26 -0
  236. package/.forge/worktrees/pipeline-0a33c50d/scripts/bench/tasks/01-text-utils/validator.sh +46 -0
  237. package/.forge/worktrees/pipeline-0a33c50d/scripts/bench/tasks/02-pagination/setup.sh +19 -0
  238. package/.forge/worktrees/pipeline-0a33c50d/scripts/bench/tasks/02-pagination/task.md +48 -0
  239. package/.forge/worktrees/pipeline-0a33c50d/scripts/bench/tasks/02-pagination/validator.sh +69 -0
  240. package/.forge/worktrees/pipeline-0a33c50d/scripts/bench/tasks/03-bug-fix/setup.sh +82 -0
  241. package/.forge/worktrees/pipeline-0a33c50d/scripts/bench/tasks/03-bug-fix/task.md +30 -0
  242. package/.forge/worktrees/pipeline-0a33c50d/scripts/bench/tasks/03-bug-fix/validator.sh +29 -0
  243. package/.forge/worktrees/pipeline-0a33c50d/scripts/verify-usage.ts +178 -0
  244. package/.forge/worktrees/pipeline-0a33c50d/src/config/index.ts +129 -0
  245. package/.forge/worktrees/pipeline-0a33c50d/src/core/db/database.ts +259 -0
  246. package/.forge/worktrees/pipeline-0a33c50d/src/core/memory/strategy.ts +32 -0
  247. package/.forge/worktrees/pipeline-0a33c50d/src/core/providers/chat.ts +65 -0
  248. package/.forge/worktrees/pipeline-0a33c50d/src/core/providers/registry.ts +60 -0
  249. package/.forge/worktrees/pipeline-0a33c50d/src/core/session/manager.ts +190 -0
  250. package/.forge/worktrees/pipeline-0a33c50d/src/types/index.ts +129 -0
  251. package/.forge/worktrees/pipeline-0a33c50d/start.sh +31 -0
  252. package/.forge/worktrees/pipeline-0a33c50d/templates/smith-lead.json +45 -0
  253. package/.forge/worktrees/pipeline-0a33c50d/tsconfig.json +42 -0
  254. package/.forge/worktrees/pipeline-2ba01c10/CLAUDE.md +86 -0
  255. package/.forge/worktrees/pipeline-2ba01c10/README.md +136 -0
  256. package/.forge/worktrees/pipeline-2ba01c10/RELEASE_NOTES.md +11 -0
  257. package/.forge/worktrees/pipeline-2ba01c10/app/api/agents/route.ts +17 -0
  258. package/.forge/worktrees/pipeline-2ba01c10/app/api/auth/[...nextauth]/route.ts +3 -0
  259. package/.forge/worktrees/pipeline-2ba01c10/app/api/auth/verify/route.ts +46 -0
  260. package/.forge/worktrees/pipeline-2ba01c10/app/api/claude/[id]/route.ts +31 -0
  261. package/.forge/worktrees/pipeline-2ba01c10/app/api/claude/[id]/stream/route.ts +63 -0
  262. package/.forge/worktrees/pipeline-2ba01c10/app/api/claude/route.ts +28 -0
  263. package/.forge/worktrees/pipeline-2ba01c10/app/api/claude-sessions/[projectName]/entries/route.ts +23 -0
  264. package/.forge/worktrees/pipeline-2ba01c10/app/api/claude-sessions/[projectName]/live/route.ts +72 -0
  265. package/.forge/worktrees/pipeline-2ba01c10/app/api/claude-sessions/[projectName]/route.ts +37 -0
  266. package/.forge/worktrees/pipeline-2ba01c10/app/api/claude-sessions/sync/route.ts +17 -0
  267. package/.forge/worktrees/pipeline-2ba01c10/app/api/claude-templates/route.ts +145 -0
  268. package/.forge/worktrees/pipeline-2ba01c10/app/api/code/route.ts +299 -0
  269. package/.forge/worktrees/pipeline-2ba01c10/app/api/delivery/[id]/route.ts +62 -0
  270. package/.forge/worktrees/pipeline-2ba01c10/app/api/delivery/route.ts +40 -0
  271. package/.forge/worktrees/pipeline-2ba01c10/app/api/detect-cli/route.ts +46 -0
  272. package/.forge/worktrees/pipeline-2ba01c10/app/api/docs/route.ts +176 -0
  273. package/.forge/worktrees/pipeline-2ba01c10/app/api/docs/sessions/route.ts +54 -0
  274. package/.forge/worktrees/pipeline-2ba01c10/app/api/favorites/route.ts +26 -0
  275. package/.forge/worktrees/pipeline-2ba01c10/app/api/flows/route.ts +6 -0
  276. package/.forge/worktrees/pipeline-2ba01c10/app/api/flows/run/route.ts +19 -0
  277. package/.forge/worktrees/pipeline-2ba01c10/app/api/git/route.ts +149 -0
  278. package/.forge/worktrees/pipeline-2ba01c10/app/api/help/route.ts +84 -0
  279. package/.forge/worktrees/pipeline-2ba01c10/app/api/issue-scanner/route.ts +116 -0
  280. package/.forge/worktrees/pipeline-2ba01c10/app/api/logs/route.ts +100 -0
  281. package/.forge/worktrees/pipeline-2ba01c10/app/api/mobile-chat/route.ts +115 -0
  282. package/.forge/worktrees/pipeline-2ba01c10/app/api/monitor/route.ts +74 -0
  283. package/.forge/worktrees/pipeline-2ba01c10/app/api/notifications/route.ts +42 -0
  284. package/.forge/worktrees/pipeline-2ba01c10/app/api/notify/test/route.ts +33 -0
  285. package/.forge/worktrees/pipeline-2ba01c10/app/api/online/route.ts +40 -0
  286. package/.forge/worktrees/pipeline-2ba01c10/app/api/pipelines/[id]/route.ts +41 -0
  287. package/.forge/worktrees/pipeline-2ba01c10/app/api/pipelines/route.ts +90 -0
  288. package/.forge/worktrees/pipeline-2ba01c10/app/api/plugins/route.ts +75 -0
  289. package/.forge/worktrees/pipeline-2ba01c10/app/api/preview/[...path]/route.ts +64 -0
  290. package/.forge/worktrees/pipeline-2ba01c10/app/api/preview/route.ts +156 -0
  291. package/.forge/worktrees/pipeline-2ba01c10/app/api/project-pipelines/route.ts +91 -0
  292. package/.forge/worktrees/pipeline-2ba01c10/app/api/project-sessions/route.ts +61 -0
  293. package/.forge/worktrees/pipeline-2ba01c10/app/api/projects/route.ts +26 -0
  294. package/.forge/worktrees/pipeline-2ba01c10/app/api/sessions/[id]/chat/route.ts +64 -0
  295. package/.forge/worktrees/pipeline-2ba01c10/app/api/sessions/[id]/messages/route.ts +9 -0
  296. package/.forge/worktrees/pipeline-2ba01c10/app/api/sessions/[id]/route.ts +17 -0
  297. package/.forge/worktrees/pipeline-2ba01c10/app/api/sessions/route.ts +20 -0
  298. package/.forge/worktrees/pipeline-2ba01c10/app/api/settings/route.ts +64 -0
  299. package/.forge/worktrees/pipeline-2ba01c10/app/api/skills/local/route.ts +228 -0
  300. package/.forge/worktrees/pipeline-2ba01c10/app/api/skills/route.ts +182 -0
  301. package/.forge/worktrees/pipeline-2ba01c10/app/api/smith-templates/route.ts +81 -0
  302. package/.forge/worktrees/pipeline-2ba01c10/app/api/status/route.ts +12 -0
  303. package/.forge/worktrees/pipeline-2ba01c10/app/api/tabs/route.ts +25 -0
  304. package/.forge/worktrees/pipeline-2ba01c10/app/api/tasks/[id]/route.ts +51 -0
  305. package/.forge/worktrees/pipeline-2ba01c10/app/api/tasks/[id]/stream/route.ts +77 -0
  306. package/.forge/worktrees/pipeline-2ba01c10/app/api/tasks/link/route.ts +37 -0
  307. package/.forge/worktrees/pipeline-2ba01c10/app/api/tasks/route.ts +44 -0
  308. package/.forge/worktrees/pipeline-2ba01c10/app/api/tasks/session/route.ts +14 -0
  309. package/.forge/worktrees/pipeline-2ba01c10/app/api/telegram/route.ts +23 -0
  310. package/.forge/worktrees/pipeline-2ba01c10/app/api/templates/route.ts +6 -0
  311. package/.forge/worktrees/pipeline-2ba01c10/app/api/terminal-bell/route.ts +35 -0
  312. package/.forge/worktrees/pipeline-2ba01c10/app/api/terminal-cwd/route.ts +19 -0
  313. package/.forge/worktrees/pipeline-2ba01c10/app/api/terminal-state/route.ts +15 -0
  314. package/.forge/worktrees/pipeline-2ba01c10/app/api/tunnel/route.ts +26 -0
  315. package/.forge/worktrees/pipeline-2ba01c10/app/api/upgrade/route.ts +43 -0
  316. package/.forge/worktrees/pipeline-2ba01c10/app/api/usage/route.ts +20 -0
  317. package/.forge/worktrees/pipeline-2ba01c10/app/api/version/route.ts +78 -0
  318. package/.forge/worktrees/pipeline-2ba01c10/app/api/watchers/route.ts +33 -0
  319. package/.forge/worktrees/pipeline-2ba01c10/app/api/workspace/[id]/agents/route.ts +35 -0
  320. package/.forge/worktrees/pipeline-2ba01c10/app/api/workspace/[id]/memory/route.ts +23 -0
  321. package/.forge/worktrees/pipeline-2ba01c10/app/api/workspace/[id]/smith/route.ts +22 -0
  322. package/.forge/worktrees/pipeline-2ba01c10/app/api/workspace/[id]/stream/route.ts +28 -0
  323. package/.forge/worktrees/pipeline-2ba01c10/app/api/workspace/route.ts +100 -0
  324. package/.forge/worktrees/pipeline-2ba01c10/app/global-error.tsx +21 -0
  325. package/.forge/worktrees/pipeline-2ba01c10/app/globals.css +52 -0
  326. package/.forge/worktrees/pipeline-2ba01c10/app/icon.ico +0 -0
  327. package/.forge/worktrees/pipeline-2ba01c10/app/icon.png +0 -0
  328. package/.forge/worktrees/pipeline-2ba01c10/app/icon.svg +106 -0
  329. package/.forge/worktrees/pipeline-2ba01c10/app/layout.tsx +17 -0
  330. package/.forge/worktrees/pipeline-2ba01c10/app/login/LoginForm.tsx +96 -0
  331. package/.forge/worktrees/pipeline-2ba01c10/app/login/page.tsx +10 -0
  332. package/.forge/worktrees/pipeline-2ba01c10/app/mobile/page.tsx +9 -0
  333. package/.forge/worktrees/pipeline-2ba01c10/app/page.tsx +21 -0
  334. package/.forge/worktrees/pipeline-2ba01c10/bin/forge-server.mjs +484 -0
  335. package/.forge/worktrees/pipeline-2ba01c10/check-forge-status.sh +71 -0
  336. package/.forge/worktrees/pipeline-2ba01c10/cli/mw.ts +579 -0
  337. package/.forge/worktrees/pipeline-2ba01c10/components/BrowserPanel.tsx +175 -0
  338. package/.forge/worktrees/pipeline-2ba01c10/components/ChatPanel.tsx +191 -0
  339. package/.forge/worktrees/pipeline-2ba01c10/components/ClaudeTerminal.tsx +267 -0
  340. package/.forge/worktrees/pipeline-2ba01c10/components/CodeViewer.tsx +787 -0
  341. package/.forge/worktrees/pipeline-2ba01c10/components/ConversationEditor.tsx +411 -0
  342. package/.forge/worktrees/pipeline-2ba01c10/components/ConversationGraphView.tsx +347 -0
  343. package/.forge/worktrees/pipeline-2ba01c10/components/ConversationTerminalView.tsx +303 -0
  344. package/.forge/worktrees/pipeline-2ba01c10/components/Dashboard.tsx +807 -0
  345. package/.forge/worktrees/pipeline-2ba01c10/components/DashboardWrapper.tsx +9 -0
  346. package/.forge/worktrees/pipeline-2ba01c10/components/DeliveryFlowEditor.tsx +491 -0
  347. package/.forge/worktrees/pipeline-2ba01c10/components/DeliveryList.tsx +230 -0
  348. package/.forge/worktrees/pipeline-2ba01c10/components/DeliveryWorkspace.tsx +589 -0
  349. package/.forge/worktrees/pipeline-2ba01c10/components/DocTerminal.tsx +187 -0
  350. package/.forge/worktrees/pipeline-2ba01c10/components/DocsViewer.tsx +574 -0
  351. package/.forge/worktrees/pipeline-2ba01c10/components/HelpDialog.tsx +169 -0
  352. package/.forge/worktrees/pipeline-2ba01c10/components/HelpTerminal.tsx +141 -0
  353. package/.forge/worktrees/pipeline-2ba01c10/components/InlinePipelineView.tsx +111 -0
  354. package/.forge/worktrees/pipeline-2ba01c10/components/LogViewer.tsx +194 -0
  355. package/.forge/worktrees/pipeline-2ba01c10/components/MarkdownContent.tsx +73 -0
  356. package/.forge/worktrees/pipeline-2ba01c10/components/MobileView.tsx +385 -0
  357. package/.forge/worktrees/pipeline-2ba01c10/components/MonitorPanel.tsx +122 -0
  358. package/.forge/worktrees/pipeline-2ba01c10/components/NewSessionModal.tsx +93 -0
  359. package/.forge/worktrees/pipeline-2ba01c10/components/NewTaskModal.tsx +492 -0
  360. package/.forge/worktrees/pipeline-2ba01c10/components/PipelineEditor.tsx +570 -0
  361. package/.forge/worktrees/pipeline-2ba01c10/components/PipelineView.tsx +1018 -0
  362. package/.forge/worktrees/pipeline-2ba01c10/components/PluginsPanel.tsx +472 -0
  363. package/.forge/worktrees/pipeline-2ba01c10/components/ProjectDetail.tsx +1618 -0
  364. package/.forge/worktrees/pipeline-2ba01c10/components/ProjectList.tsx +108 -0
  365. package/.forge/worktrees/pipeline-2ba01c10/components/ProjectManager.tsx +401 -0
  366. package/.forge/worktrees/pipeline-2ba01c10/components/SessionList.tsx +74 -0
  367. package/.forge/worktrees/pipeline-2ba01c10/components/SessionView.tsx +726 -0
  368. package/.forge/worktrees/pipeline-2ba01c10/components/SettingsModal.tsx +1647 -0
  369. package/.forge/worktrees/pipeline-2ba01c10/components/SkillsPanel.tsx +969 -0
  370. package/.forge/worktrees/pipeline-2ba01c10/components/StatusBar.tsx +99 -0
  371. package/.forge/worktrees/pipeline-2ba01c10/components/TabBar.tsx +46 -0
  372. package/.forge/worktrees/pipeline-2ba01c10/components/TaskBoard.tsx +113 -0
  373. package/.forge/worktrees/pipeline-2ba01c10/components/TaskDetail.tsx +372 -0
  374. package/.forge/worktrees/pipeline-2ba01c10/components/TerminalLauncher.tsx +398 -0
  375. package/.forge/worktrees/pipeline-2ba01c10/components/TunnelToggle.tsx +206 -0
  376. package/.forge/worktrees/pipeline-2ba01c10/components/UsagePanel.tsx +207 -0
  377. package/.forge/worktrees/pipeline-2ba01c10/components/WebTerminal.tsx +1683 -0
  378. package/.forge/worktrees/pipeline-2ba01c10/components/WorkspaceTree.tsx +221 -0
  379. package/.forge/worktrees/pipeline-2ba01c10/components/WorkspaceView.tsx +4048 -0
  380. package/.forge/worktrees/pipeline-2ba01c10/dev-test.sh +5 -0
  381. package/.forge/worktrees/pipeline-2ba01c10/docs/Forge_Memory_Layer_Design.docx +0 -0
  382. package/.forge/worktrees/pipeline-2ba01c10/docs/Forge_Strategy_Research_2026.docx +0 -0
  383. package/.forge/worktrees/pipeline-2ba01c10/docs/LOCAL-DEPLOY.md +144 -0
  384. package/.forge/worktrees/pipeline-2ba01c10/docs/roadmap-multi-agent-workflow.md +330 -0
  385. package/.forge/worktrees/pipeline-2ba01c10/forge-logo.png +0 -0
  386. package/.forge/worktrees/pipeline-2ba01c10/forge-logo.svg +106 -0
  387. package/.forge/worktrees/pipeline-2ba01c10/hooks/useSidebarResize.ts +52 -0
  388. package/.forge/worktrees/pipeline-2ba01c10/install.sh +29 -0
  389. package/.forge/worktrees/pipeline-2ba01c10/instrumentation.ts +35 -0
  390. package/.forge/worktrees/pipeline-2ba01c10/lib/agents/claude-adapter.ts +104 -0
  391. package/.forge/worktrees/pipeline-2ba01c10/lib/agents/generic-adapter.ts +64 -0
  392. package/.forge/worktrees/pipeline-2ba01c10/lib/agents/index.ts +245 -0
  393. package/.forge/worktrees/pipeline-2ba01c10/lib/agents/types.ts +70 -0
  394. package/.forge/worktrees/pipeline-2ba01c10/lib/artifacts.ts +106 -0
  395. package/.forge/worktrees/pipeline-2ba01c10/lib/auth.ts +62 -0
  396. package/.forge/worktrees/pipeline-2ba01c10/lib/builtin-plugins/docker.yaml +70 -0
  397. package/.forge/worktrees/pipeline-2ba01c10/lib/builtin-plugins/http.yaml +66 -0
  398. package/.forge/worktrees/pipeline-2ba01c10/lib/builtin-plugins/jenkins.yaml +92 -0
  399. package/.forge/worktrees/pipeline-2ba01c10/lib/builtin-plugins/llm-vision.yaml +85 -0
  400. package/.forge/worktrees/pipeline-2ba01c10/lib/builtin-plugins/playwright.yaml +111 -0
  401. package/.forge/worktrees/pipeline-2ba01c10/lib/builtin-plugins/shell-command.yaml +60 -0
  402. package/.forge/worktrees/pipeline-2ba01c10/lib/builtin-plugins/slack.yaml +48 -0
  403. package/.forge/worktrees/pipeline-2ba01c10/lib/builtin-plugins/webhook.yaml +56 -0
  404. package/.forge/worktrees/pipeline-2ba01c10/lib/claude-process.ts +352 -0
  405. package/.forge/worktrees/pipeline-2ba01c10/lib/claude-sessions.ts +266 -0
  406. package/.forge/worktrees/pipeline-2ba01c10/lib/claude-templates.ts +227 -0
  407. package/.forge/worktrees/pipeline-2ba01c10/lib/cloudflared.ts +424 -0
  408. package/.forge/worktrees/pipeline-2ba01c10/lib/crypto.ts +67 -0
  409. package/.forge/worktrees/pipeline-2ba01c10/lib/delivery.ts +787 -0
  410. package/.forge/worktrees/pipeline-2ba01c10/lib/dirs.ts +99 -0
  411. package/.forge/worktrees/pipeline-2ba01c10/lib/flows.ts +86 -0
  412. package/.forge/worktrees/pipeline-2ba01c10/lib/forge-mcp-server.ts +717 -0
  413. package/.forge/worktrees/pipeline-2ba01c10/lib/forge-skills/forge-inbox.md +38 -0
  414. package/.forge/worktrees/pipeline-2ba01c10/lib/forge-skills/forge-send.md +47 -0
  415. package/.forge/worktrees/pipeline-2ba01c10/lib/forge-skills/forge-status.md +32 -0
  416. package/.forge/worktrees/pipeline-2ba01c10/lib/forge-skills/forge-workspace-sync.md +37 -0
  417. package/.forge/worktrees/pipeline-2ba01c10/lib/help-docs/00-overview.md +40 -0
  418. package/.forge/worktrees/pipeline-2ba01c10/lib/help-docs/01-settings.md +194 -0
  419. package/.forge/worktrees/pipeline-2ba01c10/lib/help-docs/02-telegram.md +41 -0
  420. package/.forge/worktrees/pipeline-2ba01c10/lib/help-docs/03-tunnel.md +31 -0
  421. package/.forge/worktrees/pipeline-2ba01c10/lib/help-docs/04-tasks.md +52 -0
  422. package/.forge/worktrees/pipeline-2ba01c10/lib/help-docs/05-pipelines.md +460 -0
  423. package/.forge/worktrees/pipeline-2ba01c10/lib/help-docs/06-skills.md +43 -0
  424. package/.forge/worktrees/pipeline-2ba01c10/lib/help-docs/07-projects.md +73 -0
  425. package/.forge/worktrees/pipeline-2ba01c10/lib/help-docs/08-rules.md +53 -0
  426. package/.forge/worktrees/pipeline-2ba01c10/lib/help-docs/09-issue-autofix.md +55 -0
  427. package/.forge/worktrees/pipeline-2ba01c10/lib/help-docs/10-troubleshooting.md +89 -0
  428. package/.forge/worktrees/pipeline-2ba01c10/lib/help-docs/11-workspace.md +810 -0
  429. package/.forge/worktrees/pipeline-2ba01c10/lib/help-docs/CLAUDE.md +62 -0
  430. package/.forge/worktrees/pipeline-2ba01c10/lib/init.ts +266 -0
  431. package/.forge/worktrees/pipeline-2ba01c10/lib/issue-scanner.ts +298 -0
  432. package/.forge/worktrees/pipeline-2ba01c10/lib/logger.ts +79 -0
  433. package/.forge/worktrees/pipeline-2ba01c10/lib/notifications.ts +75 -0
  434. package/.forge/worktrees/pipeline-2ba01c10/lib/notify.ts +108 -0
  435. package/.forge/worktrees/pipeline-2ba01c10/lib/password.ts +97 -0
  436. package/.forge/worktrees/pipeline-2ba01c10/lib/pipeline-scheduler.ts +373 -0
  437. package/.forge/worktrees/pipeline-2ba01c10/lib/pipeline.ts +1438 -0
  438. package/.forge/worktrees/pipeline-2ba01c10/lib/plugins/executor.ts +347 -0
  439. package/.forge/worktrees/pipeline-2ba01c10/lib/plugins/registry.ts +228 -0
  440. package/.forge/worktrees/pipeline-2ba01c10/lib/plugins/types.ts +103 -0
  441. package/.forge/worktrees/pipeline-2ba01c10/lib/project-sessions.ts +53 -0
  442. package/.forge/worktrees/pipeline-2ba01c10/lib/projects.ts +86 -0
  443. package/.forge/worktrees/pipeline-2ba01c10/lib/session-manager.ts +156 -0
  444. package/.forge/worktrees/pipeline-2ba01c10/lib/session-utils.ts +53 -0
  445. package/.forge/worktrees/pipeline-2ba01c10/lib/session-watcher.ts +345 -0
  446. package/.forge/worktrees/pipeline-2ba01c10/lib/settings.ts +195 -0
  447. package/.forge/worktrees/pipeline-2ba01c10/lib/skills.ts +458 -0
  448. package/.forge/worktrees/pipeline-2ba01c10/lib/task-manager.ts +949 -0
  449. package/.forge/worktrees/pipeline-2ba01c10/lib/telegram-bot.ts +1477 -0
  450. package/.forge/worktrees/pipeline-2ba01c10/lib/telegram-standalone.ts +83 -0
  451. package/.forge/worktrees/pipeline-2ba01c10/lib/terminal-server.ts +70 -0
  452. package/.forge/worktrees/pipeline-2ba01c10/lib/terminal-standalone.ts +421 -0
  453. package/.forge/worktrees/pipeline-2ba01c10/lib/usage-scanner.ts +249 -0
  454. package/.forge/worktrees/pipeline-2ba01c10/lib/workspace/__tests__/state-machine.test.ts +388 -0
  455. package/.forge/worktrees/pipeline-2ba01c10/lib/workspace/__tests__/workspace.test.ts +311 -0
  456. package/.forge/worktrees/pipeline-2ba01c10/lib/workspace/agent-bus.ts +416 -0
  457. package/.forge/worktrees/pipeline-2ba01c10/lib/workspace/agent-worker.ts +655 -0
  458. package/.forge/worktrees/pipeline-2ba01c10/lib/workspace/backends/api-backend.ts +262 -0
  459. package/.forge/worktrees/pipeline-2ba01c10/lib/workspace/backends/cli-backend.ts +491 -0
  460. package/.forge/worktrees/pipeline-2ba01c10/lib/workspace/index.ts +82 -0
  461. package/.forge/worktrees/pipeline-2ba01c10/lib/workspace/manager.ts +136 -0
  462. package/.forge/worktrees/pipeline-2ba01c10/lib/workspace/orchestrator.ts +3400 -0
  463. package/.forge/worktrees/pipeline-2ba01c10/lib/workspace/persistence.ts +309 -0
  464. package/.forge/worktrees/pipeline-2ba01c10/lib/workspace/presets.ts +649 -0
  465. package/.forge/worktrees/pipeline-2ba01c10/lib/workspace/requests.ts +287 -0
  466. package/.forge/worktrees/pipeline-2ba01c10/lib/workspace/session-monitor.ts +240 -0
  467. package/.forge/worktrees/pipeline-2ba01c10/lib/workspace/skill-installer.ts +275 -0
  468. package/.forge/worktrees/pipeline-2ba01c10/lib/workspace/smith-memory.ts +498 -0
  469. package/.forge/worktrees/pipeline-2ba01c10/lib/workspace/types.ts +241 -0
  470. package/.forge/worktrees/pipeline-2ba01c10/lib/workspace/watch-manager.ts +560 -0
  471. package/.forge/worktrees/pipeline-2ba01c10/lib/workspace-standalone.ts +911 -0
  472. package/.forge/worktrees/pipeline-2ba01c10/middleware.ts +51 -0
  473. package/.forge/worktrees/pipeline-2ba01c10/next.config.ts +26 -0
  474. package/.forge/worktrees/pipeline-2ba01c10/package.json +74 -0
  475. package/.forge/worktrees/pipeline-2ba01c10/pnpm-lock.yaml +3719 -0
  476. package/.forge/worktrees/pipeline-2ba01c10/pnpm-workspace.yaml +1 -0
  477. package/.forge/worktrees/pipeline-2ba01c10/postcss.config.mjs +7 -0
  478. package/.forge/worktrees/pipeline-2ba01c10/publish.sh +133 -0
  479. package/.forge/worktrees/pipeline-2ba01c10/scripts/bench/README.md +66 -0
  480. package/.forge/worktrees/pipeline-2ba01c10/scripts/bench/results/.gitignore +2 -0
  481. package/.forge/worktrees/pipeline-2ba01c10/scripts/bench/run.ts +635 -0
  482. package/.forge/worktrees/pipeline-2ba01c10/scripts/bench/tasks/01-text-utils/task.md +26 -0
  483. package/.forge/worktrees/pipeline-2ba01c10/scripts/bench/tasks/01-text-utils/validator.sh +46 -0
  484. package/.forge/worktrees/pipeline-2ba01c10/scripts/bench/tasks/02-pagination/setup.sh +19 -0
  485. package/.forge/worktrees/pipeline-2ba01c10/scripts/bench/tasks/02-pagination/task.md +48 -0
  486. package/.forge/worktrees/pipeline-2ba01c10/scripts/bench/tasks/02-pagination/validator.sh +69 -0
  487. package/.forge/worktrees/pipeline-2ba01c10/scripts/bench/tasks/03-bug-fix/setup.sh +82 -0
  488. package/.forge/worktrees/pipeline-2ba01c10/scripts/bench/tasks/03-bug-fix/task.md +30 -0
  489. package/.forge/worktrees/pipeline-2ba01c10/scripts/bench/tasks/03-bug-fix/validator.sh +29 -0
  490. package/.forge/worktrees/pipeline-2ba01c10/scripts/verify-usage.ts +178 -0
  491. package/.forge/worktrees/pipeline-2ba01c10/src/config/index.ts +129 -0
  492. package/.forge/worktrees/pipeline-2ba01c10/src/core/db/database.ts +259 -0
  493. package/.forge/worktrees/pipeline-2ba01c10/src/core/memory/strategy.ts +32 -0
  494. package/.forge/worktrees/pipeline-2ba01c10/src/core/providers/chat.ts +65 -0
  495. package/.forge/worktrees/pipeline-2ba01c10/src/core/providers/registry.ts +60 -0
  496. package/.forge/worktrees/pipeline-2ba01c10/src/core/session/manager.ts +190 -0
  497. package/.forge/worktrees/pipeline-2ba01c10/src/types/index.ts +129 -0
  498. package/.forge/worktrees/pipeline-2ba01c10/start.sh +31 -0
  499. package/.forge/worktrees/pipeline-2ba01c10/templates/smith-lead.json +45 -0
  500. package/.forge/worktrees/pipeline-2ba01c10/tsconfig.json +42 -0
  501. package/.forge/worktrees/pipeline-3156a8b3/CLAUDE.md +86 -0
  502. package/.forge/worktrees/pipeline-3156a8b3/README.md +136 -0
  503. package/.forge/worktrees/pipeline-3156a8b3/RELEASE_NOTES.md +11 -0
  504. package/.forge/worktrees/pipeline-3156a8b3/app/api/agents/route.ts +17 -0
  505. package/.forge/worktrees/pipeline-3156a8b3/app/api/auth/[...nextauth]/route.ts +3 -0
  506. package/.forge/worktrees/pipeline-3156a8b3/app/api/auth/verify/route.ts +46 -0
  507. package/.forge/worktrees/pipeline-3156a8b3/app/api/claude/[id]/route.ts +31 -0
  508. package/.forge/worktrees/pipeline-3156a8b3/app/api/claude/[id]/stream/route.ts +63 -0
  509. package/.forge/worktrees/pipeline-3156a8b3/app/api/claude/route.ts +28 -0
  510. package/.forge/worktrees/pipeline-3156a8b3/app/api/claude-sessions/[projectName]/entries/route.ts +23 -0
  511. package/.forge/worktrees/pipeline-3156a8b3/app/api/claude-sessions/[projectName]/live/route.ts +72 -0
  512. package/.forge/worktrees/pipeline-3156a8b3/app/api/claude-sessions/[projectName]/route.ts +37 -0
  513. package/.forge/worktrees/pipeline-3156a8b3/app/api/claude-sessions/sync/route.ts +17 -0
  514. package/.forge/worktrees/pipeline-3156a8b3/app/api/claude-templates/route.ts +145 -0
  515. package/.forge/worktrees/pipeline-3156a8b3/app/api/code/route.ts +299 -0
  516. package/.forge/worktrees/pipeline-3156a8b3/app/api/delivery/[id]/route.ts +62 -0
  517. package/.forge/worktrees/pipeline-3156a8b3/app/api/delivery/route.ts +40 -0
  518. package/.forge/worktrees/pipeline-3156a8b3/app/api/detect-cli/route.ts +46 -0
  519. package/.forge/worktrees/pipeline-3156a8b3/app/api/docs/route.ts +176 -0
  520. package/.forge/worktrees/pipeline-3156a8b3/app/api/docs/sessions/route.ts +54 -0
  521. package/.forge/worktrees/pipeline-3156a8b3/app/api/favorites/route.ts +26 -0
  522. package/.forge/worktrees/pipeline-3156a8b3/app/api/flows/route.ts +6 -0
  523. package/.forge/worktrees/pipeline-3156a8b3/app/api/flows/run/route.ts +19 -0
  524. package/.forge/worktrees/pipeline-3156a8b3/app/api/git/route.ts +149 -0
  525. package/.forge/worktrees/pipeline-3156a8b3/app/api/help/route.ts +84 -0
  526. package/.forge/worktrees/pipeline-3156a8b3/app/api/issue-scanner/route.ts +116 -0
  527. package/.forge/worktrees/pipeline-3156a8b3/app/api/logs/route.ts +100 -0
  528. package/.forge/worktrees/pipeline-3156a8b3/app/api/mobile-chat/route.ts +115 -0
  529. package/.forge/worktrees/pipeline-3156a8b3/app/api/monitor/route.ts +74 -0
  530. package/.forge/worktrees/pipeline-3156a8b3/app/api/notifications/route.ts +42 -0
  531. package/.forge/worktrees/pipeline-3156a8b3/app/api/notify/test/route.ts +33 -0
  532. package/.forge/worktrees/pipeline-3156a8b3/app/api/online/route.ts +40 -0
  533. package/.forge/worktrees/pipeline-3156a8b3/app/api/pipelines/[id]/route.ts +41 -0
  534. package/.forge/worktrees/pipeline-3156a8b3/app/api/pipelines/route.ts +90 -0
  535. package/.forge/worktrees/pipeline-3156a8b3/app/api/plugins/route.ts +75 -0
  536. package/.forge/worktrees/pipeline-3156a8b3/app/api/preview/[...path]/route.ts +64 -0
  537. package/.forge/worktrees/pipeline-3156a8b3/app/api/preview/route.ts +156 -0
  538. package/.forge/worktrees/pipeline-3156a8b3/app/api/project-pipelines/route.ts +91 -0
  539. package/.forge/worktrees/pipeline-3156a8b3/app/api/project-sessions/route.ts +61 -0
  540. package/.forge/worktrees/pipeline-3156a8b3/app/api/projects/route.ts +26 -0
  541. package/.forge/worktrees/pipeline-3156a8b3/app/api/sessions/[id]/chat/route.ts +64 -0
  542. package/.forge/worktrees/pipeline-3156a8b3/app/api/sessions/[id]/messages/route.ts +9 -0
  543. package/.forge/worktrees/pipeline-3156a8b3/app/api/sessions/[id]/route.ts +17 -0
  544. package/.forge/worktrees/pipeline-3156a8b3/app/api/sessions/route.ts +20 -0
  545. package/.forge/worktrees/pipeline-3156a8b3/app/api/settings/route.ts +64 -0
  546. package/.forge/worktrees/pipeline-3156a8b3/app/api/skills/local/route.ts +228 -0
  547. package/.forge/worktrees/pipeline-3156a8b3/app/api/skills/route.ts +182 -0
  548. package/.forge/worktrees/pipeline-3156a8b3/app/api/smith-templates/route.ts +81 -0
  549. package/.forge/worktrees/pipeline-3156a8b3/app/api/status/route.ts +12 -0
  550. package/.forge/worktrees/pipeline-3156a8b3/app/api/tabs/route.ts +25 -0
  551. package/.forge/worktrees/pipeline-3156a8b3/app/api/tasks/[id]/route.ts +51 -0
  552. package/.forge/worktrees/pipeline-3156a8b3/app/api/tasks/[id]/stream/route.ts +77 -0
  553. package/.forge/worktrees/pipeline-3156a8b3/app/api/tasks/link/route.ts +37 -0
  554. package/.forge/worktrees/pipeline-3156a8b3/app/api/tasks/route.ts +44 -0
  555. package/.forge/worktrees/pipeline-3156a8b3/app/api/tasks/session/route.ts +14 -0
  556. package/.forge/worktrees/pipeline-3156a8b3/app/api/telegram/route.ts +23 -0
  557. package/.forge/worktrees/pipeline-3156a8b3/app/api/templates/route.ts +6 -0
  558. package/.forge/worktrees/pipeline-3156a8b3/app/api/terminal-bell/route.ts +35 -0
  559. package/.forge/worktrees/pipeline-3156a8b3/app/api/terminal-cwd/route.ts +19 -0
  560. package/.forge/worktrees/pipeline-3156a8b3/app/api/terminal-state/route.ts +15 -0
  561. package/.forge/worktrees/pipeline-3156a8b3/app/api/tunnel/route.ts +26 -0
  562. package/.forge/worktrees/pipeline-3156a8b3/app/api/upgrade/route.ts +43 -0
  563. package/.forge/worktrees/pipeline-3156a8b3/app/api/usage/route.ts +20 -0
  564. package/.forge/worktrees/pipeline-3156a8b3/app/api/version/route.ts +78 -0
  565. package/.forge/worktrees/pipeline-3156a8b3/app/api/watchers/route.ts +33 -0
  566. package/.forge/worktrees/pipeline-3156a8b3/app/api/workspace/[id]/agents/route.ts +35 -0
  567. package/.forge/worktrees/pipeline-3156a8b3/app/api/workspace/[id]/memory/route.ts +23 -0
  568. package/.forge/worktrees/pipeline-3156a8b3/app/api/workspace/[id]/smith/route.ts +22 -0
  569. package/.forge/worktrees/pipeline-3156a8b3/app/api/workspace/[id]/stream/route.ts +28 -0
  570. package/.forge/worktrees/pipeline-3156a8b3/app/api/workspace/route.ts +100 -0
  571. package/.forge/worktrees/pipeline-3156a8b3/app/global-error.tsx +21 -0
  572. package/.forge/worktrees/pipeline-3156a8b3/app/globals.css +52 -0
  573. package/.forge/worktrees/pipeline-3156a8b3/app/icon.ico +0 -0
  574. package/.forge/worktrees/pipeline-3156a8b3/app/icon.png +0 -0
  575. package/.forge/worktrees/pipeline-3156a8b3/app/icon.svg +106 -0
  576. package/.forge/worktrees/pipeline-3156a8b3/app/layout.tsx +17 -0
  577. package/.forge/worktrees/pipeline-3156a8b3/app/login/LoginForm.tsx +96 -0
  578. package/.forge/worktrees/pipeline-3156a8b3/app/login/page.tsx +10 -0
  579. package/.forge/worktrees/pipeline-3156a8b3/app/mobile/page.tsx +9 -0
  580. package/.forge/worktrees/pipeline-3156a8b3/app/page.tsx +21 -0
  581. package/.forge/worktrees/pipeline-3156a8b3/bin/forge-server.mjs +484 -0
  582. package/.forge/worktrees/pipeline-3156a8b3/check-forge-status.sh +71 -0
  583. package/.forge/worktrees/pipeline-3156a8b3/cli/mw.ts +579 -0
  584. package/.forge/worktrees/pipeline-3156a8b3/components/BrowserPanel.tsx +175 -0
  585. package/.forge/worktrees/pipeline-3156a8b3/components/ChatPanel.tsx +191 -0
  586. package/.forge/worktrees/pipeline-3156a8b3/components/ClaudeTerminal.tsx +267 -0
  587. package/.forge/worktrees/pipeline-3156a8b3/components/CodeViewer.tsx +787 -0
  588. package/.forge/worktrees/pipeline-3156a8b3/components/ConversationEditor.tsx +411 -0
  589. package/.forge/worktrees/pipeline-3156a8b3/components/ConversationGraphView.tsx +347 -0
  590. package/.forge/worktrees/pipeline-3156a8b3/components/ConversationTerminalView.tsx +303 -0
  591. package/.forge/worktrees/pipeline-3156a8b3/components/Dashboard.tsx +807 -0
  592. package/.forge/worktrees/pipeline-3156a8b3/components/DashboardWrapper.tsx +9 -0
  593. package/.forge/worktrees/pipeline-3156a8b3/components/DeliveryFlowEditor.tsx +491 -0
  594. package/.forge/worktrees/pipeline-3156a8b3/components/DeliveryList.tsx +230 -0
  595. package/.forge/worktrees/pipeline-3156a8b3/components/DeliveryWorkspace.tsx +589 -0
  596. package/.forge/worktrees/pipeline-3156a8b3/components/DocTerminal.tsx +187 -0
  597. package/.forge/worktrees/pipeline-3156a8b3/components/DocsViewer.tsx +574 -0
  598. package/.forge/worktrees/pipeline-3156a8b3/components/HelpDialog.tsx +169 -0
  599. package/.forge/worktrees/pipeline-3156a8b3/components/HelpTerminal.tsx +141 -0
  600. package/.forge/worktrees/pipeline-3156a8b3/components/InlinePipelineView.tsx +111 -0
  601. package/.forge/worktrees/pipeline-3156a8b3/components/LogViewer.tsx +194 -0
  602. package/.forge/worktrees/pipeline-3156a8b3/components/MarkdownContent.tsx +73 -0
  603. package/.forge/worktrees/pipeline-3156a8b3/components/MobileView.tsx +385 -0
  604. package/.forge/worktrees/pipeline-3156a8b3/components/MonitorPanel.tsx +122 -0
  605. package/.forge/worktrees/pipeline-3156a8b3/components/NewSessionModal.tsx +93 -0
  606. package/.forge/worktrees/pipeline-3156a8b3/components/NewTaskModal.tsx +492 -0
  607. package/.forge/worktrees/pipeline-3156a8b3/components/PipelineEditor.tsx +570 -0
  608. package/.forge/worktrees/pipeline-3156a8b3/components/PipelineView.tsx +1018 -0
  609. package/.forge/worktrees/pipeline-3156a8b3/components/PluginsPanel.tsx +472 -0
  610. package/.forge/worktrees/pipeline-3156a8b3/components/ProjectDetail.tsx +1618 -0
  611. package/.forge/worktrees/pipeline-3156a8b3/components/ProjectList.tsx +108 -0
  612. package/.forge/worktrees/pipeline-3156a8b3/components/ProjectManager.tsx +401 -0
  613. package/.forge/worktrees/pipeline-3156a8b3/components/SessionList.tsx +74 -0
  614. package/.forge/worktrees/pipeline-3156a8b3/components/SessionView.tsx +726 -0
  615. package/.forge/worktrees/pipeline-3156a8b3/components/SettingsModal.tsx +1647 -0
  616. package/.forge/worktrees/pipeline-3156a8b3/components/SkillsPanel.tsx +969 -0
  617. package/.forge/worktrees/pipeline-3156a8b3/components/StatusBar.tsx +99 -0
  618. package/.forge/worktrees/pipeline-3156a8b3/components/TabBar.tsx +46 -0
  619. package/.forge/worktrees/pipeline-3156a8b3/components/TaskBoard.tsx +113 -0
  620. package/.forge/worktrees/pipeline-3156a8b3/components/TaskDetail.tsx +372 -0
  621. package/.forge/worktrees/pipeline-3156a8b3/components/TerminalLauncher.tsx +398 -0
  622. package/.forge/worktrees/pipeline-3156a8b3/components/TunnelToggle.tsx +206 -0
  623. package/.forge/worktrees/pipeline-3156a8b3/components/UsagePanel.tsx +207 -0
  624. package/.forge/worktrees/pipeline-3156a8b3/components/WebTerminal.tsx +1683 -0
  625. package/.forge/worktrees/pipeline-3156a8b3/components/WorkspaceTree.tsx +221 -0
  626. package/.forge/worktrees/pipeline-3156a8b3/components/WorkspaceView.tsx +4048 -0
  627. package/.forge/worktrees/pipeline-3156a8b3/dev-test.sh +5 -0
  628. package/.forge/worktrees/pipeline-3156a8b3/docs/Forge_Memory_Layer_Design.docx +0 -0
  629. package/.forge/worktrees/pipeline-3156a8b3/docs/Forge_Strategy_Research_2026.docx +0 -0
  630. package/.forge/worktrees/pipeline-3156a8b3/docs/LOCAL-DEPLOY.md +144 -0
  631. package/.forge/worktrees/pipeline-3156a8b3/docs/roadmap-multi-agent-workflow.md +330 -0
  632. package/.forge/worktrees/pipeline-3156a8b3/forge-logo.png +0 -0
  633. package/.forge/worktrees/pipeline-3156a8b3/forge-logo.svg +106 -0
  634. package/.forge/worktrees/pipeline-3156a8b3/hooks/useSidebarResize.ts +52 -0
  635. package/.forge/worktrees/pipeline-3156a8b3/install.sh +29 -0
  636. package/.forge/worktrees/pipeline-3156a8b3/instrumentation.ts +35 -0
  637. package/.forge/worktrees/pipeline-3156a8b3/lib/agents/claude-adapter.ts +104 -0
  638. package/.forge/worktrees/pipeline-3156a8b3/lib/agents/generic-adapter.ts +64 -0
  639. package/.forge/worktrees/pipeline-3156a8b3/lib/agents/index.ts +245 -0
  640. package/.forge/worktrees/pipeline-3156a8b3/lib/agents/types.ts +70 -0
  641. package/.forge/worktrees/pipeline-3156a8b3/lib/artifacts.ts +106 -0
  642. package/.forge/worktrees/pipeline-3156a8b3/lib/auth.ts +62 -0
  643. package/.forge/worktrees/pipeline-3156a8b3/lib/builtin-plugins/docker.yaml +70 -0
  644. package/.forge/worktrees/pipeline-3156a8b3/lib/builtin-plugins/http.yaml +66 -0
  645. package/.forge/worktrees/pipeline-3156a8b3/lib/builtin-plugins/jenkins.yaml +92 -0
  646. package/.forge/worktrees/pipeline-3156a8b3/lib/builtin-plugins/llm-vision.yaml +85 -0
  647. package/.forge/worktrees/pipeline-3156a8b3/lib/builtin-plugins/playwright.yaml +111 -0
  648. package/.forge/worktrees/pipeline-3156a8b3/lib/builtin-plugins/shell-command.yaml +60 -0
  649. package/.forge/worktrees/pipeline-3156a8b3/lib/builtin-plugins/slack.yaml +48 -0
  650. package/.forge/worktrees/pipeline-3156a8b3/lib/builtin-plugins/webhook.yaml +56 -0
  651. package/.forge/worktrees/pipeline-3156a8b3/lib/claude-process.ts +351 -0
  652. package/.forge/worktrees/pipeline-3156a8b3/lib/claude-sessions.ts +266 -0
  653. package/.forge/worktrees/pipeline-3156a8b3/lib/claude-templates.ts +227 -0
  654. package/.forge/worktrees/pipeline-3156a8b3/lib/cloudflared.ts +424 -0
  655. package/.forge/worktrees/pipeline-3156a8b3/lib/crypto.ts +67 -0
  656. package/.forge/worktrees/pipeline-3156a8b3/lib/delivery.ts +787 -0
  657. package/.forge/worktrees/pipeline-3156a8b3/lib/dirs.ts +99 -0
  658. package/.forge/worktrees/pipeline-3156a8b3/lib/flows.ts +86 -0
  659. package/.forge/worktrees/pipeline-3156a8b3/lib/forge-mcp-server.ts +717 -0
  660. package/.forge/worktrees/pipeline-3156a8b3/lib/forge-skills/forge-inbox.md +38 -0
  661. package/.forge/worktrees/pipeline-3156a8b3/lib/forge-skills/forge-send.md +47 -0
  662. package/.forge/worktrees/pipeline-3156a8b3/lib/forge-skills/forge-status.md +32 -0
  663. package/.forge/worktrees/pipeline-3156a8b3/lib/forge-skills/forge-workspace-sync.md +37 -0
  664. package/.forge/worktrees/pipeline-3156a8b3/lib/help-docs/00-overview.md +40 -0
  665. package/.forge/worktrees/pipeline-3156a8b3/lib/help-docs/01-settings.md +194 -0
  666. package/.forge/worktrees/pipeline-3156a8b3/lib/help-docs/02-telegram.md +41 -0
  667. package/.forge/worktrees/pipeline-3156a8b3/lib/help-docs/03-tunnel.md +31 -0
  668. package/.forge/worktrees/pipeline-3156a8b3/lib/help-docs/04-tasks.md +52 -0
  669. package/.forge/worktrees/pipeline-3156a8b3/lib/help-docs/05-pipelines.md +460 -0
  670. package/.forge/worktrees/pipeline-3156a8b3/lib/help-docs/06-skills.md +43 -0
  671. package/.forge/worktrees/pipeline-3156a8b3/lib/help-docs/07-projects.md +73 -0
  672. package/.forge/worktrees/pipeline-3156a8b3/lib/help-docs/08-rules.md +53 -0
  673. package/.forge/worktrees/pipeline-3156a8b3/lib/help-docs/09-issue-autofix.md +55 -0
  674. package/.forge/worktrees/pipeline-3156a8b3/lib/help-docs/10-troubleshooting.md +89 -0
  675. package/.forge/worktrees/pipeline-3156a8b3/lib/help-docs/11-workspace.md +810 -0
  676. package/.forge/worktrees/pipeline-3156a8b3/lib/help-docs/CLAUDE.md +62 -0
  677. package/.forge/worktrees/pipeline-3156a8b3/lib/init.ts +266 -0
  678. package/.forge/worktrees/pipeline-3156a8b3/lib/issue-scanner.ts +298 -0
  679. package/.forge/worktrees/pipeline-3156a8b3/lib/logger.ts +79 -0
  680. package/.forge/worktrees/pipeline-3156a8b3/lib/notifications.ts +75 -0
  681. package/.forge/worktrees/pipeline-3156a8b3/lib/notify.ts +108 -0
  682. package/.forge/worktrees/pipeline-3156a8b3/lib/password.ts +97 -0
  683. package/.forge/worktrees/pipeline-3156a8b3/lib/pipeline-scheduler.ts +373 -0
  684. package/.forge/worktrees/pipeline-3156a8b3/lib/pipeline.ts +1441 -0
  685. package/.forge/worktrees/pipeline-3156a8b3/lib/plugins/executor.ts +347 -0
  686. package/.forge/worktrees/pipeline-3156a8b3/lib/plugins/registry.ts +228 -0
  687. package/.forge/worktrees/pipeline-3156a8b3/lib/plugins/types.ts +103 -0
  688. package/.forge/worktrees/pipeline-3156a8b3/lib/project-sessions.ts +53 -0
  689. package/.forge/worktrees/pipeline-3156a8b3/lib/projects.ts +86 -0
  690. package/.forge/worktrees/pipeline-3156a8b3/lib/session-manager.ts +156 -0
  691. package/.forge/worktrees/pipeline-3156a8b3/lib/session-utils.ts +53 -0
  692. package/.forge/worktrees/pipeline-3156a8b3/lib/session-watcher.ts +345 -0
  693. package/.forge/worktrees/pipeline-3156a8b3/lib/settings.ts +195 -0
  694. package/.forge/worktrees/pipeline-3156a8b3/lib/skills.ts +458 -0
  695. package/.forge/worktrees/pipeline-3156a8b3/lib/task-manager.ts +949 -0
  696. package/.forge/worktrees/pipeline-3156a8b3/lib/telegram-bot.ts +1477 -0
  697. package/.forge/worktrees/pipeline-3156a8b3/lib/telegram-standalone.ts +83 -0
  698. package/.forge/worktrees/pipeline-3156a8b3/lib/terminal-server.ts +70 -0
  699. package/.forge/worktrees/pipeline-3156a8b3/lib/terminal-standalone.ts +421 -0
  700. package/.forge/worktrees/pipeline-3156a8b3/lib/usage-scanner.ts +249 -0
  701. package/.forge/worktrees/pipeline-3156a8b3/lib/workspace/__tests__/state-machine.test.ts +388 -0
  702. package/.forge/worktrees/pipeline-3156a8b3/lib/workspace/__tests__/workspace.test.ts +311 -0
  703. package/.forge/worktrees/pipeline-3156a8b3/lib/workspace/agent-bus.ts +416 -0
  704. package/.forge/worktrees/pipeline-3156a8b3/lib/workspace/agent-worker.ts +655 -0
  705. package/.forge/worktrees/pipeline-3156a8b3/lib/workspace/backends/api-backend.ts +262 -0
  706. package/.forge/worktrees/pipeline-3156a8b3/lib/workspace/backends/cli-backend.ts +491 -0
  707. package/.forge/worktrees/pipeline-3156a8b3/lib/workspace/index.ts +82 -0
  708. package/.forge/worktrees/pipeline-3156a8b3/lib/workspace/manager.ts +136 -0
  709. package/.forge/worktrees/pipeline-3156a8b3/lib/workspace/orchestrator.ts +3400 -0
  710. package/.forge/worktrees/pipeline-3156a8b3/lib/workspace/persistence.ts +309 -0
  711. package/.forge/worktrees/pipeline-3156a8b3/lib/workspace/presets.ts +649 -0
  712. package/.forge/worktrees/pipeline-3156a8b3/lib/workspace/requests.ts +287 -0
  713. package/.forge/worktrees/pipeline-3156a8b3/lib/workspace/session-monitor.ts +240 -0
  714. package/.forge/worktrees/pipeline-3156a8b3/lib/workspace/skill-installer.ts +275 -0
  715. package/.forge/worktrees/pipeline-3156a8b3/lib/workspace/smith-memory.ts +498 -0
  716. package/.forge/worktrees/pipeline-3156a8b3/lib/workspace/types.ts +241 -0
  717. package/.forge/worktrees/pipeline-3156a8b3/lib/workspace/watch-manager.ts +560 -0
  718. package/.forge/worktrees/pipeline-3156a8b3/lib/workspace-standalone.ts +911 -0
  719. package/.forge/worktrees/pipeline-3156a8b3/middleware.ts +51 -0
  720. package/.forge/worktrees/pipeline-3156a8b3/next.config.ts +26 -0
  721. package/.forge/worktrees/pipeline-3156a8b3/package.json +74 -0
  722. package/.forge/worktrees/pipeline-3156a8b3/pnpm-lock.yaml +3719 -0
  723. package/.forge/worktrees/pipeline-3156a8b3/pnpm-workspace.yaml +1 -0
  724. package/.forge/worktrees/pipeline-3156a8b3/postcss.config.mjs +7 -0
  725. package/.forge/worktrees/pipeline-3156a8b3/publish.sh +133 -0
  726. package/.forge/worktrees/pipeline-3156a8b3/scripts/bench/README.md +66 -0
  727. package/.forge/worktrees/pipeline-3156a8b3/scripts/bench/results/.gitignore +2 -0
  728. package/.forge/worktrees/pipeline-3156a8b3/scripts/bench/run.ts +635 -0
  729. package/.forge/worktrees/pipeline-3156a8b3/scripts/bench/tasks/01-text-utils/task.md +26 -0
  730. package/.forge/worktrees/pipeline-3156a8b3/scripts/bench/tasks/01-text-utils/validator.sh +46 -0
  731. package/.forge/worktrees/pipeline-3156a8b3/scripts/bench/tasks/02-pagination/setup.sh +19 -0
  732. package/.forge/worktrees/pipeline-3156a8b3/scripts/bench/tasks/02-pagination/task.md +48 -0
  733. package/.forge/worktrees/pipeline-3156a8b3/scripts/bench/tasks/02-pagination/validator.sh +69 -0
  734. package/.forge/worktrees/pipeline-3156a8b3/scripts/bench/tasks/03-bug-fix/setup.sh +82 -0
  735. package/.forge/worktrees/pipeline-3156a8b3/scripts/bench/tasks/03-bug-fix/task.md +30 -0
  736. package/.forge/worktrees/pipeline-3156a8b3/scripts/bench/tasks/03-bug-fix/validator.sh +29 -0
  737. package/.forge/worktrees/pipeline-3156a8b3/scripts/verify-usage.ts +178 -0
  738. package/.forge/worktrees/pipeline-3156a8b3/src/config/index.ts +129 -0
  739. package/.forge/worktrees/pipeline-3156a8b3/src/core/db/database.ts +259 -0
  740. package/.forge/worktrees/pipeline-3156a8b3/src/core/memory/strategy.ts +32 -0
  741. package/.forge/worktrees/pipeline-3156a8b3/src/core/providers/chat.ts +65 -0
  742. package/.forge/worktrees/pipeline-3156a8b3/src/core/providers/registry.ts +60 -0
  743. package/.forge/worktrees/pipeline-3156a8b3/src/core/session/manager.ts +190 -0
  744. package/.forge/worktrees/pipeline-3156a8b3/src/types/index.ts +129 -0
  745. package/.forge/worktrees/pipeline-3156a8b3/start.sh +31 -0
  746. package/.forge/worktrees/pipeline-3156a8b3/templates/smith-lead.json +45 -0
  747. package/.forge/worktrees/pipeline-3156a8b3/tsconfig.json +42 -0
  748. package/.forge/worktrees/pipeline-316c6574/CLAUDE.md +86 -0
  749. package/.forge/worktrees/pipeline-316c6574/README.md +136 -0
  750. package/.forge/worktrees/pipeline-316c6574/RELEASE_NOTES.md +11 -0
  751. package/.forge/worktrees/pipeline-316c6574/app/api/agents/route.ts +17 -0
  752. package/.forge/worktrees/pipeline-316c6574/app/api/auth/[...nextauth]/route.ts +3 -0
  753. package/.forge/worktrees/pipeline-316c6574/app/api/auth/verify/route.ts +46 -0
  754. package/.forge/worktrees/pipeline-316c6574/app/api/claude/[id]/route.ts +31 -0
  755. package/.forge/worktrees/pipeline-316c6574/app/api/claude/[id]/stream/route.ts +63 -0
  756. package/.forge/worktrees/pipeline-316c6574/app/api/claude/route.ts +28 -0
  757. package/.forge/worktrees/pipeline-316c6574/app/api/claude-sessions/[projectName]/entries/route.ts +23 -0
  758. package/.forge/worktrees/pipeline-316c6574/app/api/claude-sessions/[projectName]/live/route.ts +72 -0
  759. package/.forge/worktrees/pipeline-316c6574/app/api/claude-sessions/[projectName]/route.ts +37 -0
  760. package/.forge/worktrees/pipeline-316c6574/app/api/claude-sessions/sync/route.ts +17 -0
  761. package/.forge/worktrees/pipeline-316c6574/app/api/claude-templates/route.ts +145 -0
  762. package/.forge/worktrees/pipeline-316c6574/app/api/code/route.ts +299 -0
  763. package/.forge/worktrees/pipeline-316c6574/app/api/delivery/[id]/route.ts +62 -0
  764. package/.forge/worktrees/pipeline-316c6574/app/api/delivery/route.ts +40 -0
  765. package/.forge/worktrees/pipeline-316c6574/app/api/detect-cli/route.ts +46 -0
  766. package/.forge/worktrees/pipeline-316c6574/app/api/docs/route.ts +176 -0
  767. package/.forge/worktrees/pipeline-316c6574/app/api/docs/sessions/route.ts +54 -0
  768. package/.forge/worktrees/pipeline-316c6574/app/api/favorites/route.ts +26 -0
  769. package/.forge/worktrees/pipeline-316c6574/app/api/flows/route.ts +6 -0
  770. package/.forge/worktrees/pipeline-316c6574/app/api/flows/run/route.ts +19 -0
  771. package/.forge/worktrees/pipeline-316c6574/app/api/git/route.ts +149 -0
  772. package/.forge/worktrees/pipeline-316c6574/app/api/help/route.ts +84 -0
  773. package/.forge/worktrees/pipeline-316c6574/app/api/issue-scanner/route.ts +116 -0
  774. package/.forge/worktrees/pipeline-316c6574/app/api/logs/route.ts +100 -0
  775. package/.forge/worktrees/pipeline-316c6574/app/api/mobile-chat/route.ts +115 -0
  776. package/.forge/worktrees/pipeline-316c6574/app/api/monitor/route.ts +74 -0
  777. package/.forge/worktrees/pipeline-316c6574/app/api/notifications/route.ts +42 -0
  778. package/.forge/worktrees/pipeline-316c6574/app/api/notify/test/route.ts +33 -0
  779. package/.forge/worktrees/pipeline-316c6574/app/api/online/route.ts +40 -0
  780. package/.forge/worktrees/pipeline-316c6574/app/api/pipelines/[id]/route.ts +41 -0
  781. package/.forge/worktrees/pipeline-316c6574/app/api/pipelines/route.ts +90 -0
  782. package/.forge/worktrees/pipeline-316c6574/app/api/plugins/route.ts +75 -0
  783. package/.forge/worktrees/pipeline-316c6574/app/api/preview/[...path]/route.ts +64 -0
  784. package/.forge/worktrees/pipeline-316c6574/app/api/preview/route.ts +156 -0
  785. package/.forge/worktrees/pipeline-316c6574/app/api/project-pipelines/route.ts +91 -0
  786. package/.forge/worktrees/pipeline-316c6574/app/api/project-sessions/route.ts +61 -0
  787. package/.forge/worktrees/pipeline-316c6574/app/api/projects/route.ts +26 -0
  788. package/.forge/worktrees/pipeline-316c6574/app/api/sessions/[id]/chat/route.ts +64 -0
  789. package/.forge/worktrees/pipeline-316c6574/app/api/sessions/[id]/messages/route.ts +9 -0
  790. package/.forge/worktrees/pipeline-316c6574/app/api/sessions/[id]/route.ts +17 -0
  791. package/.forge/worktrees/pipeline-316c6574/app/api/sessions/route.ts +20 -0
  792. package/.forge/worktrees/pipeline-316c6574/app/api/settings/route.ts +64 -0
  793. package/.forge/worktrees/pipeline-316c6574/app/api/skills/local/route.ts +228 -0
  794. package/.forge/worktrees/pipeline-316c6574/app/api/skills/route.ts +182 -0
  795. package/.forge/worktrees/pipeline-316c6574/app/api/smith-templates/route.ts +81 -0
  796. package/.forge/worktrees/pipeline-316c6574/app/api/status/route.ts +12 -0
  797. package/.forge/worktrees/pipeline-316c6574/app/api/tabs/route.ts +25 -0
  798. package/.forge/worktrees/pipeline-316c6574/app/api/tasks/[id]/route.ts +51 -0
  799. package/.forge/worktrees/pipeline-316c6574/app/api/tasks/[id]/stream/route.ts +77 -0
  800. package/.forge/worktrees/pipeline-316c6574/app/api/tasks/link/route.ts +37 -0
  801. package/.forge/worktrees/pipeline-316c6574/app/api/tasks/route.ts +44 -0
  802. package/.forge/worktrees/pipeline-316c6574/app/api/tasks/session/route.ts +14 -0
  803. package/.forge/worktrees/pipeline-316c6574/app/api/telegram/route.ts +23 -0
  804. package/.forge/worktrees/pipeline-316c6574/app/api/templates/route.ts +6 -0
  805. package/.forge/worktrees/pipeline-316c6574/app/api/terminal-bell/route.ts +35 -0
  806. package/.forge/worktrees/pipeline-316c6574/app/api/terminal-cwd/route.ts +19 -0
  807. package/.forge/worktrees/pipeline-316c6574/app/api/terminal-state/route.ts +15 -0
  808. package/.forge/worktrees/pipeline-316c6574/app/api/tunnel/route.ts +26 -0
  809. package/.forge/worktrees/pipeline-316c6574/app/api/upgrade/route.ts +43 -0
  810. package/.forge/worktrees/pipeline-316c6574/app/api/usage/route.ts +20 -0
  811. package/.forge/worktrees/pipeline-316c6574/app/api/version/route.ts +78 -0
  812. package/.forge/worktrees/pipeline-316c6574/app/api/watchers/route.ts +33 -0
  813. package/.forge/worktrees/pipeline-316c6574/app/api/workspace/[id]/agents/route.ts +35 -0
  814. package/.forge/worktrees/pipeline-316c6574/app/api/workspace/[id]/memory/route.ts +23 -0
  815. package/.forge/worktrees/pipeline-316c6574/app/api/workspace/[id]/smith/route.ts +22 -0
  816. package/.forge/worktrees/pipeline-316c6574/app/api/workspace/[id]/stream/route.ts +28 -0
  817. package/.forge/worktrees/pipeline-316c6574/app/api/workspace/route.ts +100 -0
  818. package/.forge/worktrees/pipeline-316c6574/app/global-error.tsx +21 -0
  819. package/.forge/worktrees/pipeline-316c6574/app/globals.css +52 -0
  820. package/.forge/worktrees/pipeline-316c6574/app/icon.ico +0 -0
  821. package/.forge/worktrees/pipeline-316c6574/app/icon.png +0 -0
  822. package/.forge/worktrees/pipeline-316c6574/app/icon.svg +106 -0
  823. package/.forge/worktrees/pipeline-316c6574/app/layout.tsx +17 -0
  824. package/.forge/worktrees/pipeline-316c6574/app/login/LoginForm.tsx +96 -0
  825. package/.forge/worktrees/pipeline-316c6574/app/login/page.tsx +10 -0
  826. package/.forge/worktrees/pipeline-316c6574/app/mobile/page.tsx +9 -0
  827. package/.forge/worktrees/pipeline-316c6574/app/page.tsx +21 -0
  828. package/.forge/worktrees/pipeline-316c6574/bin/forge-server.mjs +484 -0
  829. package/.forge/worktrees/pipeline-316c6574/check-forge-status.sh +71 -0
  830. package/.forge/worktrees/pipeline-316c6574/cli/mw.ts +579 -0
  831. package/.forge/worktrees/pipeline-316c6574/components/BrowserPanel.tsx +175 -0
  832. package/.forge/worktrees/pipeline-316c6574/components/ChatPanel.tsx +191 -0
  833. package/.forge/worktrees/pipeline-316c6574/components/ClaudeTerminal.tsx +267 -0
  834. package/.forge/worktrees/pipeline-316c6574/components/CodeViewer.tsx +787 -0
  835. package/.forge/worktrees/pipeline-316c6574/components/ConversationEditor.tsx +411 -0
  836. package/.forge/worktrees/pipeline-316c6574/components/ConversationGraphView.tsx +347 -0
  837. package/.forge/worktrees/pipeline-316c6574/components/ConversationTerminalView.tsx +303 -0
  838. package/.forge/worktrees/pipeline-316c6574/components/Dashboard.tsx +807 -0
  839. package/.forge/worktrees/pipeline-316c6574/components/DashboardWrapper.tsx +9 -0
  840. package/.forge/worktrees/pipeline-316c6574/components/DeliveryFlowEditor.tsx +491 -0
  841. package/.forge/worktrees/pipeline-316c6574/components/DeliveryList.tsx +230 -0
  842. package/.forge/worktrees/pipeline-316c6574/components/DeliveryWorkspace.tsx +589 -0
  843. package/.forge/worktrees/pipeline-316c6574/components/DocTerminal.tsx +187 -0
  844. package/.forge/worktrees/pipeline-316c6574/components/DocsViewer.tsx +574 -0
  845. package/.forge/worktrees/pipeline-316c6574/components/HelpDialog.tsx +169 -0
  846. package/.forge/worktrees/pipeline-316c6574/components/HelpTerminal.tsx +141 -0
  847. package/.forge/worktrees/pipeline-316c6574/components/InlinePipelineView.tsx +111 -0
  848. package/.forge/worktrees/pipeline-316c6574/components/LogViewer.tsx +194 -0
  849. package/.forge/worktrees/pipeline-316c6574/components/MarkdownContent.tsx +73 -0
  850. package/.forge/worktrees/pipeline-316c6574/components/MobileView.tsx +385 -0
  851. package/.forge/worktrees/pipeline-316c6574/components/MonitorPanel.tsx +122 -0
  852. package/.forge/worktrees/pipeline-316c6574/components/NewSessionModal.tsx +93 -0
  853. package/.forge/worktrees/pipeline-316c6574/components/NewTaskModal.tsx +492 -0
  854. package/.forge/worktrees/pipeline-316c6574/components/PipelineEditor.tsx +570 -0
  855. package/.forge/worktrees/pipeline-316c6574/components/PipelineView.tsx +1018 -0
  856. package/.forge/worktrees/pipeline-316c6574/components/PluginsPanel.tsx +472 -0
  857. package/.forge/worktrees/pipeline-316c6574/components/ProjectDetail.tsx +1618 -0
  858. package/.forge/worktrees/pipeline-316c6574/components/ProjectList.tsx +108 -0
  859. package/.forge/worktrees/pipeline-316c6574/components/ProjectManager.tsx +401 -0
  860. package/.forge/worktrees/pipeline-316c6574/components/SessionList.tsx +74 -0
  861. package/.forge/worktrees/pipeline-316c6574/components/SessionView.tsx +726 -0
  862. package/.forge/worktrees/pipeline-316c6574/components/SettingsModal.tsx +1647 -0
  863. package/.forge/worktrees/pipeline-316c6574/components/SkillsPanel.tsx +969 -0
  864. package/.forge/worktrees/pipeline-316c6574/components/StatusBar.tsx +99 -0
  865. package/.forge/worktrees/pipeline-316c6574/components/TabBar.tsx +46 -0
  866. package/.forge/worktrees/pipeline-316c6574/components/TaskBoard.tsx +113 -0
  867. package/.forge/worktrees/pipeline-316c6574/components/TaskDetail.tsx +372 -0
  868. package/.forge/worktrees/pipeline-316c6574/components/TerminalLauncher.tsx +398 -0
  869. package/.forge/worktrees/pipeline-316c6574/components/TunnelToggle.tsx +206 -0
  870. package/.forge/worktrees/pipeline-316c6574/components/UsagePanel.tsx +207 -0
  871. package/.forge/worktrees/pipeline-316c6574/components/WebTerminal.tsx +1683 -0
  872. package/.forge/worktrees/pipeline-316c6574/components/WorkspaceTree.tsx +221 -0
  873. package/.forge/worktrees/pipeline-316c6574/components/WorkspaceView.tsx +4048 -0
  874. package/.forge/worktrees/pipeline-316c6574/dev-test.sh +5 -0
  875. package/.forge/worktrees/pipeline-316c6574/docs/Forge_Memory_Layer_Design.docx +0 -0
  876. package/.forge/worktrees/pipeline-316c6574/docs/Forge_Strategy_Research_2026.docx +0 -0
  877. package/.forge/worktrees/pipeline-316c6574/docs/LOCAL-DEPLOY.md +144 -0
  878. package/.forge/worktrees/pipeline-316c6574/docs/roadmap-multi-agent-workflow.md +330 -0
  879. package/.forge/worktrees/pipeline-316c6574/forge-logo.png +0 -0
  880. package/.forge/worktrees/pipeline-316c6574/forge-logo.svg +106 -0
  881. package/.forge/worktrees/pipeline-316c6574/hooks/useSidebarResize.ts +52 -0
  882. package/.forge/worktrees/pipeline-316c6574/install.sh +29 -0
  883. package/.forge/worktrees/pipeline-316c6574/instrumentation.ts +35 -0
  884. package/.forge/worktrees/pipeline-316c6574/lib/agents/claude-adapter.ts +104 -0
  885. package/.forge/worktrees/pipeline-316c6574/lib/agents/generic-adapter.ts +64 -0
  886. package/.forge/worktrees/pipeline-316c6574/lib/agents/index.ts +245 -0
  887. package/.forge/worktrees/pipeline-316c6574/lib/agents/types.ts +70 -0
  888. package/.forge/worktrees/pipeline-316c6574/lib/artifacts.ts +106 -0
  889. package/.forge/worktrees/pipeline-316c6574/lib/auth.ts +62 -0
  890. package/.forge/worktrees/pipeline-316c6574/lib/builtin-plugins/docker.yaml +70 -0
  891. package/.forge/worktrees/pipeline-316c6574/lib/builtin-plugins/http.yaml +66 -0
  892. package/.forge/worktrees/pipeline-316c6574/lib/builtin-plugins/jenkins.yaml +92 -0
  893. package/.forge/worktrees/pipeline-316c6574/lib/builtin-plugins/llm-vision.yaml +85 -0
  894. package/.forge/worktrees/pipeline-316c6574/lib/builtin-plugins/playwright.yaml +111 -0
  895. package/.forge/worktrees/pipeline-316c6574/lib/builtin-plugins/shell-command.yaml +60 -0
  896. package/.forge/worktrees/pipeline-316c6574/lib/builtin-plugins/slack.yaml +48 -0
  897. package/.forge/worktrees/pipeline-316c6574/lib/builtin-plugins/webhook.yaml +56 -0
  898. package/.forge/worktrees/pipeline-316c6574/lib/claude-process.ts +361 -0
  899. package/.forge/worktrees/pipeline-316c6574/lib/claude-sessions.ts +266 -0
  900. package/.forge/worktrees/pipeline-316c6574/lib/claude-templates.ts +227 -0
  901. package/.forge/worktrees/pipeline-316c6574/lib/cloudflared.ts +424 -0
  902. package/.forge/worktrees/pipeline-316c6574/lib/crypto.ts +67 -0
  903. package/.forge/worktrees/pipeline-316c6574/lib/delivery.ts +787 -0
  904. package/.forge/worktrees/pipeline-316c6574/lib/dirs.ts +99 -0
  905. package/.forge/worktrees/pipeline-316c6574/lib/flows.ts +86 -0
  906. package/.forge/worktrees/pipeline-316c6574/lib/forge-mcp-server.ts +717 -0
  907. package/.forge/worktrees/pipeline-316c6574/lib/forge-skills/forge-inbox.md +38 -0
  908. package/.forge/worktrees/pipeline-316c6574/lib/forge-skills/forge-send.md +47 -0
  909. package/.forge/worktrees/pipeline-316c6574/lib/forge-skills/forge-status.md +32 -0
  910. package/.forge/worktrees/pipeline-316c6574/lib/forge-skills/forge-workspace-sync.md +37 -0
  911. package/.forge/worktrees/pipeline-316c6574/lib/help-docs/00-overview.md +40 -0
  912. package/.forge/worktrees/pipeline-316c6574/lib/help-docs/01-settings.md +194 -0
  913. package/.forge/worktrees/pipeline-316c6574/lib/help-docs/02-telegram.md +41 -0
  914. package/.forge/worktrees/pipeline-316c6574/lib/help-docs/03-tunnel.md +31 -0
  915. package/.forge/worktrees/pipeline-316c6574/lib/help-docs/04-tasks.md +52 -0
  916. package/.forge/worktrees/pipeline-316c6574/lib/help-docs/05-pipelines.md +460 -0
  917. package/.forge/worktrees/pipeline-316c6574/lib/help-docs/06-skills.md +43 -0
  918. package/.forge/worktrees/pipeline-316c6574/lib/help-docs/07-projects.md +73 -0
  919. package/.forge/worktrees/pipeline-316c6574/lib/help-docs/08-rules.md +53 -0
  920. package/.forge/worktrees/pipeline-316c6574/lib/help-docs/09-issue-autofix.md +55 -0
  921. package/.forge/worktrees/pipeline-316c6574/lib/help-docs/10-troubleshooting.md +89 -0
  922. package/.forge/worktrees/pipeline-316c6574/lib/help-docs/11-workspace.md +810 -0
  923. package/.forge/worktrees/pipeline-316c6574/lib/help-docs/CLAUDE.md +62 -0
  924. package/.forge/worktrees/pipeline-316c6574/lib/init.ts +266 -0
  925. package/.forge/worktrees/pipeline-316c6574/lib/issue-scanner.ts +298 -0
  926. package/.forge/worktrees/pipeline-316c6574/lib/logger.ts +79 -0
  927. package/.forge/worktrees/pipeline-316c6574/lib/notifications.ts +75 -0
  928. package/.forge/worktrees/pipeline-316c6574/lib/notify.ts +108 -0
  929. package/.forge/worktrees/pipeline-316c6574/lib/password.ts +97 -0
  930. package/.forge/worktrees/pipeline-316c6574/lib/pipeline-scheduler.ts +373 -0
  931. package/.forge/worktrees/pipeline-316c6574/lib/pipeline.ts +1441 -0
  932. package/.forge/worktrees/pipeline-316c6574/lib/plugins/executor.ts +347 -0
  933. package/.forge/worktrees/pipeline-316c6574/lib/plugins/registry.ts +228 -0
  934. package/.forge/worktrees/pipeline-316c6574/lib/plugins/types.ts +103 -0
  935. package/.forge/worktrees/pipeline-316c6574/lib/project-sessions.ts +53 -0
  936. package/.forge/worktrees/pipeline-316c6574/lib/projects.ts +86 -0
  937. package/.forge/worktrees/pipeline-316c6574/lib/session-manager.ts +156 -0
  938. package/.forge/worktrees/pipeline-316c6574/lib/session-utils.ts +53 -0
  939. package/.forge/worktrees/pipeline-316c6574/lib/session-watcher.ts +345 -0
  940. package/.forge/worktrees/pipeline-316c6574/lib/settings.ts +195 -0
  941. package/.forge/worktrees/pipeline-316c6574/lib/skills.ts +458 -0
  942. package/.forge/worktrees/pipeline-316c6574/lib/task-manager.ts +949 -0
  943. package/.forge/worktrees/pipeline-316c6574/lib/telegram-bot.ts +1477 -0
  944. package/.forge/worktrees/pipeline-316c6574/lib/telegram-standalone.ts +83 -0
  945. package/.forge/worktrees/pipeline-316c6574/lib/terminal-server.ts +70 -0
  946. package/.forge/worktrees/pipeline-316c6574/lib/terminal-standalone.ts +421 -0
  947. package/.forge/worktrees/pipeline-316c6574/lib/usage-scanner.ts +249 -0
  948. package/.forge/worktrees/pipeline-316c6574/lib/workspace/__tests__/state-machine.test.ts +388 -0
  949. package/.forge/worktrees/pipeline-316c6574/lib/workspace/__tests__/workspace.test.ts +311 -0
  950. package/.forge/worktrees/pipeline-316c6574/lib/workspace/agent-bus.ts +416 -0
  951. package/.forge/worktrees/pipeline-316c6574/lib/workspace/agent-worker.ts +655 -0
  952. package/.forge/worktrees/pipeline-316c6574/lib/workspace/backends/api-backend.ts +262 -0
  953. package/.forge/worktrees/pipeline-316c6574/lib/workspace/backends/cli-backend.ts +491 -0
  954. package/.forge/worktrees/pipeline-316c6574/lib/workspace/index.ts +82 -0
  955. package/.forge/worktrees/pipeline-316c6574/lib/workspace/manager.ts +136 -0
  956. package/.forge/worktrees/pipeline-316c6574/lib/workspace/orchestrator.ts +3400 -0
  957. package/.forge/worktrees/pipeline-316c6574/lib/workspace/persistence.ts +309 -0
  958. package/.forge/worktrees/pipeline-316c6574/lib/workspace/presets.ts +649 -0
  959. package/.forge/worktrees/pipeline-316c6574/lib/workspace/requests.ts +287 -0
  960. package/.forge/worktrees/pipeline-316c6574/lib/workspace/session-monitor.ts +240 -0
  961. package/.forge/worktrees/pipeline-316c6574/lib/workspace/skill-installer.ts +275 -0
  962. package/.forge/worktrees/pipeline-316c6574/lib/workspace/smith-memory.ts +498 -0
  963. package/.forge/worktrees/pipeline-316c6574/lib/workspace/types.ts +241 -0
  964. package/.forge/worktrees/pipeline-316c6574/lib/workspace/watch-manager.ts +560 -0
  965. package/.forge/worktrees/pipeline-316c6574/lib/workspace-standalone.ts +911 -0
  966. package/.forge/worktrees/pipeline-316c6574/middleware.ts +51 -0
  967. package/.forge/worktrees/pipeline-316c6574/next.config.ts +26 -0
  968. package/.forge/worktrees/pipeline-316c6574/package.json +74 -0
  969. package/.forge/worktrees/pipeline-316c6574/pnpm-lock.yaml +3719 -0
  970. package/.forge/worktrees/pipeline-316c6574/pnpm-workspace.yaml +1 -0
  971. package/.forge/worktrees/pipeline-316c6574/postcss.config.mjs +7 -0
  972. package/.forge/worktrees/pipeline-316c6574/publish.sh +133 -0
  973. package/.forge/worktrees/pipeline-316c6574/scripts/bench/README.md +66 -0
  974. package/.forge/worktrees/pipeline-316c6574/scripts/bench/results/.gitignore +2 -0
  975. package/.forge/worktrees/pipeline-316c6574/scripts/bench/run.ts +635 -0
  976. package/.forge/worktrees/pipeline-316c6574/scripts/bench/tasks/01-text-utils/task.md +26 -0
  977. package/.forge/worktrees/pipeline-316c6574/scripts/bench/tasks/01-text-utils/validator.sh +46 -0
  978. package/.forge/worktrees/pipeline-316c6574/scripts/bench/tasks/02-pagination/setup.sh +19 -0
  979. package/.forge/worktrees/pipeline-316c6574/scripts/bench/tasks/02-pagination/task.md +48 -0
  980. package/.forge/worktrees/pipeline-316c6574/scripts/bench/tasks/02-pagination/validator.sh +69 -0
  981. package/.forge/worktrees/pipeline-316c6574/scripts/bench/tasks/03-bug-fix/setup.sh +82 -0
  982. package/.forge/worktrees/pipeline-316c6574/scripts/bench/tasks/03-bug-fix/task.md +30 -0
  983. package/.forge/worktrees/pipeline-316c6574/scripts/bench/tasks/03-bug-fix/validator.sh +29 -0
  984. package/.forge/worktrees/pipeline-316c6574/scripts/verify-usage.ts +178 -0
  985. package/.forge/worktrees/pipeline-316c6574/src/config/index.ts +129 -0
  986. package/.forge/worktrees/pipeline-316c6574/src/core/db/database.ts +259 -0
  987. package/.forge/worktrees/pipeline-316c6574/src/core/memory/strategy.ts +32 -0
  988. package/.forge/worktrees/pipeline-316c6574/src/core/providers/chat.ts +65 -0
  989. package/.forge/worktrees/pipeline-316c6574/src/core/providers/registry.ts +60 -0
  990. package/.forge/worktrees/pipeline-316c6574/src/core/session/manager.ts +190 -0
  991. package/.forge/worktrees/pipeline-316c6574/src/types/index.ts +129 -0
  992. package/.forge/worktrees/pipeline-316c6574/start.sh +31 -0
  993. package/.forge/worktrees/pipeline-316c6574/templates/smith-lead.json +45 -0
  994. package/.forge/worktrees/pipeline-316c6574/tsconfig.json +42 -0
  995. package/.forge/worktrees/pipeline-44a94121/CLAUDE.md +86 -0
  996. package/.forge/worktrees/pipeline-44a94121/README.md +136 -0
  997. package/.forge/worktrees/pipeline-44a94121/RELEASE_NOTES.md +11 -0
  998. package/.forge/worktrees/pipeline-44a94121/app/api/agents/route.ts +17 -0
  999. package/.forge/worktrees/pipeline-44a94121/app/api/auth/[...nextauth]/route.ts +3 -0
  1000. package/.forge/worktrees/pipeline-44a94121/app/api/auth/verify/route.ts +46 -0
  1001. package/.forge/worktrees/pipeline-44a94121/app/api/claude/[id]/route.ts +31 -0
  1002. package/.forge/worktrees/pipeline-44a94121/app/api/claude/[id]/stream/route.ts +63 -0
  1003. package/.forge/worktrees/pipeline-44a94121/app/api/claude/route.ts +28 -0
  1004. package/.forge/worktrees/pipeline-44a94121/app/api/claude-sessions/[projectName]/entries/route.ts +23 -0
  1005. package/.forge/worktrees/pipeline-44a94121/app/api/claude-sessions/[projectName]/live/route.ts +72 -0
  1006. package/.forge/worktrees/pipeline-44a94121/app/api/claude-sessions/[projectName]/route.ts +37 -0
  1007. package/.forge/worktrees/pipeline-44a94121/app/api/claude-sessions/sync/route.ts +17 -0
  1008. package/.forge/worktrees/pipeline-44a94121/app/api/claude-templates/route.ts +145 -0
  1009. package/.forge/worktrees/pipeline-44a94121/app/api/code/route.ts +299 -0
  1010. package/.forge/worktrees/pipeline-44a94121/app/api/delivery/[id]/route.ts +62 -0
  1011. package/.forge/worktrees/pipeline-44a94121/app/api/delivery/route.ts +40 -0
  1012. package/.forge/worktrees/pipeline-44a94121/app/api/detect-cli/route.ts +46 -0
  1013. package/.forge/worktrees/pipeline-44a94121/app/api/docs/route.ts +176 -0
  1014. package/.forge/worktrees/pipeline-44a94121/app/api/docs/sessions/route.ts +54 -0
  1015. package/.forge/worktrees/pipeline-44a94121/app/api/favorites/route.ts +26 -0
  1016. package/.forge/worktrees/pipeline-44a94121/app/api/flows/route.ts +6 -0
  1017. package/.forge/worktrees/pipeline-44a94121/app/api/flows/run/route.ts +19 -0
  1018. package/.forge/worktrees/pipeline-44a94121/app/api/git/route.ts +149 -0
  1019. package/.forge/worktrees/pipeline-44a94121/app/api/help/route.ts +84 -0
  1020. package/.forge/worktrees/pipeline-44a94121/app/api/issue-scanner/route.ts +116 -0
  1021. package/.forge/worktrees/pipeline-44a94121/app/api/logs/route.ts +100 -0
  1022. package/.forge/worktrees/pipeline-44a94121/app/api/mobile-chat/route.ts +115 -0
  1023. package/.forge/worktrees/pipeline-44a94121/app/api/monitor/route.ts +74 -0
  1024. package/.forge/worktrees/pipeline-44a94121/app/api/notifications/route.ts +42 -0
  1025. package/.forge/worktrees/pipeline-44a94121/app/api/notify/test/route.ts +33 -0
  1026. package/.forge/worktrees/pipeline-44a94121/app/api/online/route.ts +40 -0
  1027. package/.forge/worktrees/pipeline-44a94121/app/api/pipelines/[id]/route.ts +41 -0
  1028. package/.forge/worktrees/pipeline-44a94121/app/api/pipelines/route.ts +90 -0
  1029. package/.forge/worktrees/pipeline-44a94121/app/api/plugins/route.ts +75 -0
  1030. package/.forge/worktrees/pipeline-44a94121/app/api/preview/[...path]/route.ts +64 -0
  1031. package/.forge/worktrees/pipeline-44a94121/app/api/preview/route.ts +156 -0
  1032. package/.forge/worktrees/pipeline-44a94121/app/api/project-pipelines/route.ts +91 -0
  1033. package/.forge/worktrees/pipeline-44a94121/app/api/project-sessions/route.ts +61 -0
  1034. package/.forge/worktrees/pipeline-44a94121/app/api/projects/route.ts +26 -0
  1035. package/.forge/worktrees/pipeline-44a94121/app/api/sessions/[id]/chat/route.ts +64 -0
  1036. package/.forge/worktrees/pipeline-44a94121/app/api/sessions/[id]/messages/route.ts +9 -0
  1037. package/.forge/worktrees/pipeline-44a94121/app/api/sessions/[id]/route.ts +17 -0
  1038. package/.forge/worktrees/pipeline-44a94121/app/api/sessions/route.ts +20 -0
  1039. package/.forge/worktrees/pipeline-44a94121/app/api/settings/route.ts +64 -0
  1040. package/.forge/worktrees/pipeline-44a94121/app/api/skills/local/route.ts +228 -0
  1041. package/.forge/worktrees/pipeline-44a94121/app/api/skills/route.ts +182 -0
  1042. package/.forge/worktrees/pipeline-44a94121/app/api/smith-templates/route.ts +81 -0
  1043. package/.forge/worktrees/pipeline-44a94121/app/api/status/route.ts +12 -0
  1044. package/.forge/worktrees/pipeline-44a94121/app/api/tabs/route.ts +25 -0
  1045. package/.forge/worktrees/pipeline-44a94121/app/api/tasks/[id]/route.ts +51 -0
  1046. package/.forge/worktrees/pipeline-44a94121/app/api/tasks/[id]/stream/route.ts +77 -0
  1047. package/.forge/worktrees/pipeline-44a94121/app/api/tasks/link/route.ts +37 -0
  1048. package/.forge/worktrees/pipeline-44a94121/app/api/tasks/route.ts +44 -0
  1049. package/.forge/worktrees/pipeline-44a94121/app/api/tasks/session/route.ts +14 -0
  1050. package/.forge/worktrees/pipeline-44a94121/app/api/telegram/route.ts +23 -0
  1051. package/.forge/worktrees/pipeline-44a94121/app/api/templates/route.ts +6 -0
  1052. package/.forge/worktrees/pipeline-44a94121/app/api/terminal-bell/route.ts +35 -0
  1053. package/.forge/worktrees/pipeline-44a94121/app/api/terminal-cwd/route.ts +19 -0
  1054. package/.forge/worktrees/pipeline-44a94121/app/api/terminal-state/route.ts +15 -0
  1055. package/.forge/worktrees/pipeline-44a94121/app/api/tunnel/route.ts +26 -0
  1056. package/.forge/worktrees/pipeline-44a94121/app/api/upgrade/route.ts +43 -0
  1057. package/.forge/worktrees/pipeline-44a94121/app/api/usage/route.ts +20 -0
  1058. package/.forge/worktrees/pipeline-44a94121/app/api/version/route.ts +78 -0
  1059. package/.forge/worktrees/pipeline-44a94121/app/api/watchers/route.ts +33 -0
  1060. package/.forge/worktrees/pipeline-44a94121/app/api/workspace/[id]/agents/route.ts +35 -0
  1061. package/.forge/worktrees/pipeline-44a94121/app/api/workspace/[id]/memory/route.ts +23 -0
  1062. package/.forge/worktrees/pipeline-44a94121/app/api/workspace/[id]/smith/route.ts +22 -0
  1063. package/.forge/worktrees/pipeline-44a94121/app/api/workspace/[id]/stream/route.ts +28 -0
  1064. package/.forge/worktrees/pipeline-44a94121/app/api/workspace/route.ts +100 -0
  1065. package/.forge/worktrees/pipeline-44a94121/app/global-error.tsx +21 -0
  1066. package/.forge/worktrees/pipeline-44a94121/app/globals.css +52 -0
  1067. package/.forge/worktrees/pipeline-44a94121/app/icon.ico +0 -0
  1068. package/.forge/worktrees/pipeline-44a94121/app/icon.png +0 -0
  1069. package/.forge/worktrees/pipeline-44a94121/app/icon.svg +106 -0
  1070. package/.forge/worktrees/pipeline-44a94121/app/layout.tsx +17 -0
  1071. package/.forge/worktrees/pipeline-44a94121/app/login/LoginForm.tsx +96 -0
  1072. package/.forge/worktrees/pipeline-44a94121/app/login/page.tsx +10 -0
  1073. package/.forge/worktrees/pipeline-44a94121/app/mobile/page.tsx +9 -0
  1074. package/.forge/worktrees/pipeline-44a94121/app/page.tsx +21 -0
  1075. package/.forge/worktrees/pipeline-44a94121/bin/forge-server.mjs +484 -0
  1076. package/.forge/worktrees/pipeline-44a94121/check-forge-status.sh +71 -0
  1077. package/.forge/worktrees/pipeline-44a94121/cli/mw.ts +579 -0
  1078. package/.forge/worktrees/pipeline-44a94121/components/BrowserPanel.tsx +175 -0
  1079. package/.forge/worktrees/pipeline-44a94121/components/ChatPanel.tsx +191 -0
  1080. package/.forge/worktrees/pipeline-44a94121/components/ClaudeTerminal.tsx +267 -0
  1081. package/.forge/worktrees/pipeline-44a94121/components/CodeViewer.tsx +787 -0
  1082. package/.forge/worktrees/pipeline-44a94121/components/ConversationEditor.tsx +411 -0
  1083. package/.forge/worktrees/pipeline-44a94121/components/ConversationGraphView.tsx +347 -0
  1084. package/.forge/worktrees/pipeline-44a94121/components/ConversationTerminalView.tsx +303 -0
  1085. package/.forge/worktrees/pipeline-44a94121/components/Dashboard.tsx +807 -0
  1086. package/.forge/worktrees/pipeline-44a94121/components/DashboardWrapper.tsx +9 -0
  1087. package/.forge/worktrees/pipeline-44a94121/components/DeliveryFlowEditor.tsx +491 -0
  1088. package/.forge/worktrees/pipeline-44a94121/components/DeliveryList.tsx +230 -0
  1089. package/.forge/worktrees/pipeline-44a94121/components/DeliveryWorkspace.tsx +589 -0
  1090. package/.forge/worktrees/pipeline-44a94121/components/DocTerminal.tsx +187 -0
  1091. package/.forge/worktrees/pipeline-44a94121/components/DocsViewer.tsx +574 -0
  1092. package/.forge/worktrees/pipeline-44a94121/components/HelpDialog.tsx +169 -0
  1093. package/.forge/worktrees/pipeline-44a94121/components/HelpTerminal.tsx +141 -0
  1094. package/.forge/worktrees/pipeline-44a94121/components/InlinePipelineView.tsx +111 -0
  1095. package/.forge/worktrees/pipeline-44a94121/components/LogViewer.tsx +194 -0
  1096. package/.forge/worktrees/pipeline-44a94121/components/MarkdownContent.tsx +73 -0
  1097. package/.forge/worktrees/pipeline-44a94121/components/MobileView.tsx +385 -0
  1098. package/.forge/worktrees/pipeline-44a94121/components/MonitorPanel.tsx +122 -0
  1099. package/.forge/worktrees/pipeline-44a94121/components/NewSessionModal.tsx +93 -0
  1100. package/.forge/worktrees/pipeline-44a94121/components/NewTaskModal.tsx +492 -0
  1101. package/.forge/worktrees/pipeline-44a94121/components/PipelineEditor.tsx +570 -0
  1102. package/.forge/worktrees/pipeline-44a94121/components/PipelineView.tsx +1018 -0
  1103. package/.forge/worktrees/pipeline-44a94121/components/PluginsPanel.tsx +472 -0
  1104. package/.forge/worktrees/pipeline-44a94121/components/ProjectDetail.tsx +1618 -0
  1105. package/.forge/worktrees/pipeline-44a94121/components/ProjectList.tsx +108 -0
  1106. package/.forge/worktrees/pipeline-44a94121/components/ProjectManager.tsx +401 -0
  1107. package/.forge/worktrees/pipeline-44a94121/components/SessionList.tsx +74 -0
  1108. package/.forge/worktrees/pipeline-44a94121/components/SessionView.tsx +726 -0
  1109. package/.forge/worktrees/pipeline-44a94121/components/SettingsModal.tsx +1647 -0
  1110. package/.forge/worktrees/pipeline-44a94121/components/SkillsPanel.tsx +969 -0
  1111. package/.forge/worktrees/pipeline-44a94121/components/StatusBar.tsx +99 -0
  1112. package/.forge/worktrees/pipeline-44a94121/components/TabBar.tsx +46 -0
  1113. package/.forge/worktrees/pipeline-44a94121/components/TaskBoard.tsx +113 -0
  1114. package/.forge/worktrees/pipeline-44a94121/components/TaskDetail.tsx +372 -0
  1115. package/.forge/worktrees/pipeline-44a94121/components/TerminalLauncher.tsx +398 -0
  1116. package/.forge/worktrees/pipeline-44a94121/components/TunnelToggle.tsx +206 -0
  1117. package/.forge/worktrees/pipeline-44a94121/components/UsagePanel.tsx +207 -0
  1118. package/.forge/worktrees/pipeline-44a94121/components/WebTerminal.tsx +1683 -0
  1119. package/.forge/worktrees/pipeline-44a94121/components/WorkspaceTree.tsx +221 -0
  1120. package/.forge/worktrees/pipeline-44a94121/components/WorkspaceView.tsx +4048 -0
  1121. package/.forge/worktrees/pipeline-44a94121/dev-test.sh +5 -0
  1122. package/.forge/worktrees/pipeline-44a94121/docs/Forge_Memory_Layer_Design.docx +0 -0
  1123. package/.forge/worktrees/pipeline-44a94121/docs/Forge_Strategy_Research_2026.docx +0 -0
  1124. package/.forge/worktrees/pipeline-44a94121/docs/LOCAL-DEPLOY.md +144 -0
  1125. package/.forge/worktrees/pipeline-44a94121/docs/roadmap-multi-agent-workflow.md +330 -0
  1126. package/.forge/worktrees/pipeline-44a94121/forge-logo.png +0 -0
  1127. package/.forge/worktrees/pipeline-44a94121/forge-logo.svg +106 -0
  1128. package/.forge/worktrees/pipeline-44a94121/hooks/useSidebarResize.ts +52 -0
  1129. package/.forge/worktrees/pipeline-44a94121/install.sh +29 -0
  1130. package/.forge/worktrees/pipeline-44a94121/instrumentation.ts +35 -0
  1131. package/.forge/worktrees/pipeline-44a94121/lib/agents/claude-adapter.ts +104 -0
  1132. package/.forge/worktrees/pipeline-44a94121/lib/agents/generic-adapter.ts +64 -0
  1133. package/.forge/worktrees/pipeline-44a94121/lib/agents/index.ts +245 -0
  1134. package/.forge/worktrees/pipeline-44a94121/lib/agents/types.ts +70 -0
  1135. package/.forge/worktrees/pipeline-44a94121/lib/artifacts.ts +106 -0
  1136. package/.forge/worktrees/pipeline-44a94121/lib/auth.ts +62 -0
  1137. package/.forge/worktrees/pipeline-44a94121/lib/builtin-plugins/docker.yaml +70 -0
  1138. package/.forge/worktrees/pipeline-44a94121/lib/builtin-plugins/http.yaml +66 -0
  1139. package/.forge/worktrees/pipeline-44a94121/lib/builtin-plugins/jenkins.yaml +92 -0
  1140. package/.forge/worktrees/pipeline-44a94121/lib/builtin-plugins/llm-vision.yaml +85 -0
  1141. package/.forge/worktrees/pipeline-44a94121/lib/builtin-plugins/playwright.yaml +111 -0
  1142. package/.forge/worktrees/pipeline-44a94121/lib/builtin-plugins/shell-command.yaml +60 -0
  1143. package/.forge/worktrees/pipeline-44a94121/lib/builtin-plugins/slack.yaml +48 -0
  1144. package/.forge/worktrees/pipeline-44a94121/lib/builtin-plugins/webhook.yaml +56 -0
  1145. package/.forge/worktrees/pipeline-44a94121/lib/claude-process.ts +351 -0
  1146. package/.forge/worktrees/pipeline-44a94121/lib/claude-sessions.ts +266 -0
  1147. package/.forge/worktrees/pipeline-44a94121/lib/claude-templates.ts +227 -0
  1148. package/.forge/worktrees/pipeline-44a94121/lib/cloudflared.ts +424 -0
  1149. package/.forge/worktrees/pipeline-44a94121/lib/crypto.ts +67 -0
  1150. package/.forge/worktrees/pipeline-44a94121/lib/delivery.ts +787 -0
  1151. package/.forge/worktrees/pipeline-44a94121/lib/dirs.ts +99 -0
  1152. package/.forge/worktrees/pipeline-44a94121/lib/flows.ts +86 -0
  1153. package/.forge/worktrees/pipeline-44a94121/lib/forge-mcp-server.ts +717 -0
  1154. package/.forge/worktrees/pipeline-44a94121/lib/forge-skills/forge-inbox.md +38 -0
  1155. package/.forge/worktrees/pipeline-44a94121/lib/forge-skills/forge-send.md +47 -0
  1156. package/.forge/worktrees/pipeline-44a94121/lib/forge-skills/forge-status.md +32 -0
  1157. package/.forge/worktrees/pipeline-44a94121/lib/forge-skills/forge-workspace-sync.md +37 -0
  1158. package/.forge/worktrees/pipeline-44a94121/lib/help-docs/00-overview.md +40 -0
  1159. package/.forge/worktrees/pipeline-44a94121/lib/help-docs/01-settings.md +194 -0
  1160. package/.forge/worktrees/pipeline-44a94121/lib/help-docs/02-telegram.md +41 -0
  1161. package/.forge/worktrees/pipeline-44a94121/lib/help-docs/03-tunnel.md +31 -0
  1162. package/.forge/worktrees/pipeline-44a94121/lib/help-docs/04-tasks.md +52 -0
  1163. package/.forge/worktrees/pipeline-44a94121/lib/help-docs/05-pipelines.md +460 -0
  1164. package/.forge/worktrees/pipeline-44a94121/lib/help-docs/06-skills.md +43 -0
  1165. package/.forge/worktrees/pipeline-44a94121/lib/help-docs/07-projects.md +73 -0
  1166. package/.forge/worktrees/pipeline-44a94121/lib/help-docs/08-rules.md +53 -0
  1167. package/.forge/worktrees/pipeline-44a94121/lib/help-docs/09-issue-autofix.md +55 -0
  1168. package/.forge/worktrees/pipeline-44a94121/lib/help-docs/10-troubleshooting.md +89 -0
  1169. package/.forge/worktrees/pipeline-44a94121/lib/help-docs/11-workspace.md +810 -0
  1170. package/.forge/worktrees/pipeline-44a94121/lib/help-docs/CLAUDE.md +62 -0
  1171. package/.forge/worktrees/pipeline-44a94121/lib/init.ts +266 -0
  1172. package/.forge/worktrees/pipeline-44a94121/lib/issue-scanner.ts +298 -0
  1173. package/.forge/worktrees/pipeline-44a94121/lib/logger.ts +79 -0
  1174. package/.forge/worktrees/pipeline-44a94121/lib/notifications.ts +75 -0
  1175. package/.forge/worktrees/pipeline-44a94121/lib/notify.ts +108 -0
  1176. package/.forge/worktrees/pipeline-44a94121/lib/password.ts +97 -0
  1177. package/.forge/worktrees/pipeline-44a94121/lib/pipeline-scheduler.ts +373 -0
  1178. package/.forge/worktrees/pipeline-44a94121/lib/pipeline.ts +1441 -0
  1179. package/.forge/worktrees/pipeline-44a94121/lib/plugins/executor.ts +347 -0
  1180. package/.forge/worktrees/pipeline-44a94121/lib/plugins/registry.ts +228 -0
  1181. package/.forge/worktrees/pipeline-44a94121/lib/plugins/types.ts +103 -0
  1182. package/.forge/worktrees/pipeline-44a94121/lib/project-sessions.ts +53 -0
  1183. package/.forge/worktrees/pipeline-44a94121/lib/projects.ts +86 -0
  1184. package/.forge/worktrees/pipeline-44a94121/lib/session-manager.ts +156 -0
  1185. package/.forge/worktrees/pipeline-44a94121/lib/session-utils.ts +53 -0
  1186. package/.forge/worktrees/pipeline-44a94121/lib/session-watcher.ts +345 -0
  1187. package/.forge/worktrees/pipeline-44a94121/lib/settings.ts +195 -0
  1188. package/.forge/worktrees/pipeline-44a94121/lib/skills.ts +458 -0
  1189. package/.forge/worktrees/pipeline-44a94121/lib/task-manager.ts +949 -0
  1190. package/.forge/worktrees/pipeline-44a94121/lib/telegram-bot.ts +1477 -0
  1191. package/.forge/worktrees/pipeline-44a94121/lib/telegram-standalone.ts +83 -0
  1192. package/.forge/worktrees/pipeline-44a94121/lib/terminal-server.ts +70 -0
  1193. package/.forge/worktrees/pipeline-44a94121/lib/terminal-standalone.ts +421 -0
  1194. package/.forge/worktrees/pipeline-44a94121/lib/usage-scanner.ts +249 -0
  1195. package/.forge/worktrees/pipeline-44a94121/lib/workspace/__tests__/state-machine.test.ts +388 -0
  1196. package/.forge/worktrees/pipeline-44a94121/lib/workspace/__tests__/workspace.test.ts +311 -0
  1197. package/.forge/worktrees/pipeline-44a94121/lib/workspace/agent-bus.ts +416 -0
  1198. package/.forge/worktrees/pipeline-44a94121/lib/workspace/agent-worker.ts +655 -0
  1199. package/.forge/worktrees/pipeline-44a94121/lib/workspace/backends/api-backend.ts +262 -0
  1200. package/.forge/worktrees/pipeline-44a94121/lib/workspace/backends/cli-backend.ts +491 -0
  1201. package/.forge/worktrees/pipeline-44a94121/lib/workspace/index.ts +82 -0
  1202. package/.forge/worktrees/pipeline-44a94121/lib/workspace/manager.ts +136 -0
  1203. package/.forge/worktrees/pipeline-44a94121/lib/workspace/orchestrator.ts +3400 -0
  1204. package/.forge/worktrees/pipeline-44a94121/lib/workspace/persistence.ts +309 -0
  1205. package/.forge/worktrees/pipeline-44a94121/lib/workspace/presets.ts +649 -0
  1206. package/.forge/worktrees/pipeline-44a94121/lib/workspace/requests.ts +287 -0
  1207. package/.forge/worktrees/pipeline-44a94121/lib/workspace/session-monitor.ts +240 -0
  1208. package/.forge/worktrees/pipeline-44a94121/lib/workspace/skill-installer.ts +275 -0
  1209. package/.forge/worktrees/pipeline-44a94121/lib/workspace/smith-memory.ts +498 -0
  1210. package/.forge/worktrees/pipeline-44a94121/lib/workspace/types.ts +241 -0
  1211. package/.forge/worktrees/pipeline-44a94121/lib/workspace/watch-manager.ts +560 -0
  1212. package/.forge/worktrees/pipeline-44a94121/lib/workspace-standalone.ts +911 -0
  1213. package/.forge/worktrees/pipeline-44a94121/middleware.ts +51 -0
  1214. package/.forge/worktrees/pipeline-44a94121/next.config.ts +26 -0
  1215. package/.forge/worktrees/pipeline-44a94121/package.json +74 -0
  1216. package/.forge/worktrees/pipeline-44a94121/pnpm-lock.yaml +3719 -0
  1217. package/.forge/worktrees/pipeline-44a94121/pnpm-workspace.yaml +1 -0
  1218. package/.forge/worktrees/pipeline-44a94121/postcss.config.mjs +7 -0
  1219. package/.forge/worktrees/pipeline-44a94121/publish.sh +133 -0
  1220. package/.forge/worktrees/pipeline-44a94121/scripts/bench/README.md +66 -0
  1221. package/.forge/worktrees/pipeline-44a94121/scripts/bench/results/.gitignore +2 -0
  1222. package/.forge/worktrees/pipeline-44a94121/scripts/bench/run.ts +635 -0
  1223. package/.forge/worktrees/pipeline-44a94121/scripts/bench/tasks/01-text-utils/task.md +26 -0
  1224. package/.forge/worktrees/pipeline-44a94121/scripts/bench/tasks/01-text-utils/validator.sh +46 -0
  1225. package/.forge/worktrees/pipeline-44a94121/scripts/bench/tasks/02-pagination/setup.sh +19 -0
  1226. package/.forge/worktrees/pipeline-44a94121/scripts/bench/tasks/02-pagination/task.md +48 -0
  1227. package/.forge/worktrees/pipeline-44a94121/scripts/bench/tasks/02-pagination/validator.sh +69 -0
  1228. package/.forge/worktrees/pipeline-44a94121/scripts/bench/tasks/03-bug-fix/setup.sh +82 -0
  1229. package/.forge/worktrees/pipeline-44a94121/scripts/bench/tasks/03-bug-fix/task.md +30 -0
  1230. package/.forge/worktrees/pipeline-44a94121/scripts/bench/tasks/03-bug-fix/validator.sh +29 -0
  1231. package/.forge/worktrees/pipeline-44a94121/scripts/verify-usage.ts +178 -0
  1232. package/.forge/worktrees/pipeline-44a94121/src/config/index.ts +129 -0
  1233. package/.forge/worktrees/pipeline-44a94121/src/core/db/database.ts +259 -0
  1234. package/.forge/worktrees/pipeline-44a94121/src/core/memory/strategy.ts +32 -0
  1235. package/.forge/worktrees/pipeline-44a94121/src/core/providers/chat.ts +65 -0
  1236. package/.forge/worktrees/pipeline-44a94121/src/core/providers/registry.ts +60 -0
  1237. package/.forge/worktrees/pipeline-44a94121/src/core/session/manager.ts +190 -0
  1238. package/.forge/worktrees/pipeline-44a94121/src/types/index.ts +129 -0
  1239. package/.forge/worktrees/pipeline-44a94121/start.sh +31 -0
  1240. package/.forge/worktrees/pipeline-44a94121/templates/smith-lead.json +45 -0
  1241. package/.forge/worktrees/pipeline-44a94121/tsconfig.json +42 -0
  1242. package/.forge/worktrees/pipeline-4dd8dc2d/CLAUDE.md +86 -0
  1243. package/.forge/worktrees/pipeline-4dd8dc2d/README.md +136 -0
  1244. package/.forge/worktrees/pipeline-4dd8dc2d/RELEASE_NOTES.md +36 -0
  1245. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/agents/route.ts +17 -0
  1246. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/auth/[...nextauth]/route.ts +3 -0
  1247. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/auth/verify/route.ts +46 -0
  1248. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/claude/[id]/route.ts +31 -0
  1249. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/claude/[id]/stream/route.ts +63 -0
  1250. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/claude/route.ts +28 -0
  1251. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/claude-sessions/[projectName]/entries/route.ts +23 -0
  1252. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/claude-sessions/[projectName]/live/route.ts +72 -0
  1253. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/claude-sessions/[projectName]/route.ts +37 -0
  1254. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/claude-sessions/sync/route.ts +17 -0
  1255. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/claude-templates/route.ts +145 -0
  1256. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/code/route.ts +299 -0
  1257. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/delivery/[id]/route.ts +62 -0
  1258. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/delivery/route.ts +40 -0
  1259. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/detect-cli/route.ts +46 -0
  1260. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/docs/route.ts +176 -0
  1261. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/docs/sessions/route.ts +54 -0
  1262. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/favorites/route.ts +26 -0
  1263. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/flows/route.ts +6 -0
  1264. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/flows/run/route.ts +19 -0
  1265. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/git/route.ts +149 -0
  1266. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/help/route.ts +84 -0
  1267. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/issue-scanner/route.ts +116 -0
  1268. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/logs/route.ts +100 -0
  1269. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/mobile-chat/route.ts +115 -0
  1270. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/monitor/route.ts +74 -0
  1271. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/notifications/route.ts +42 -0
  1272. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/notify/test/route.ts +33 -0
  1273. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/online/route.ts +40 -0
  1274. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/pipelines/[id]/route.ts +41 -0
  1275. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/pipelines/route.ts +90 -0
  1276. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/plugins/route.ts +75 -0
  1277. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/preview/[...path]/route.ts +64 -0
  1278. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/preview/route.ts +156 -0
  1279. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/project-pipelines/route.ts +91 -0
  1280. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/project-sessions/route.ts +61 -0
  1281. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/projects/route.ts +26 -0
  1282. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/sessions/[id]/chat/route.ts +64 -0
  1283. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/sessions/[id]/messages/route.ts +9 -0
  1284. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/sessions/[id]/route.ts +17 -0
  1285. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/sessions/route.ts +20 -0
  1286. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/settings/route.ts +64 -0
  1287. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/skills/local/route.ts +228 -0
  1288. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/skills/route.ts +182 -0
  1289. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/smith-templates/route.ts +81 -0
  1290. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/status/route.ts +12 -0
  1291. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/tabs/route.ts +25 -0
  1292. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/tasks/[id]/route.ts +51 -0
  1293. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/tasks/[id]/stream/route.ts +77 -0
  1294. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/tasks/link/route.ts +37 -0
  1295. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/tasks/route.ts +44 -0
  1296. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/tasks/session/route.ts +14 -0
  1297. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/telegram/route.ts +23 -0
  1298. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/templates/route.ts +6 -0
  1299. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/terminal-bell/route.ts +39 -0
  1300. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/terminal-cwd/route.ts +19 -0
  1301. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/terminal-state/route.ts +15 -0
  1302. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/tunnel/route.ts +26 -0
  1303. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/upgrade/route.ts +43 -0
  1304. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/usage/route.ts +20 -0
  1305. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/version/route.ts +78 -0
  1306. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/watchers/route.ts +33 -0
  1307. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/workspace/[id]/agents/route.ts +35 -0
  1308. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/workspace/[id]/memory/route.ts +23 -0
  1309. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/workspace/[id]/smith/route.ts +22 -0
  1310. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/workspace/[id]/stream/route.ts +31 -0
  1311. package/.forge/worktrees/pipeline-4dd8dc2d/app/api/workspace/route.ts +79 -0
  1312. package/.forge/worktrees/pipeline-4dd8dc2d/app/global-error.tsx +21 -0
  1313. package/.forge/worktrees/pipeline-4dd8dc2d/app/globals.css +52 -0
  1314. package/.forge/worktrees/pipeline-4dd8dc2d/app/icon.ico +0 -0
  1315. package/.forge/worktrees/pipeline-4dd8dc2d/app/icon.png +0 -0
  1316. package/.forge/worktrees/pipeline-4dd8dc2d/app/icon.svg +106 -0
  1317. package/.forge/worktrees/pipeline-4dd8dc2d/app/layout.tsx +17 -0
  1318. package/.forge/worktrees/pipeline-4dd8dc2d/app/login/LoginForm.tsx +96 -0
  1319. package/.forge/worktrees/pipeline-4dd8dc2d/app/login/page.tsx +10 -0
  1320. package/.forge/worktrees/pipeline-4dd8dc2d/app/mobile/page.tsx +10 -0
  1321. package/.forge/worktrees/pipeline-4dd8dc2d/app/page.tsx +22 -0
  1322. package/.forge/worktrees/pipeline-4dd8dc2d/bin/forge-server.mjs +484 -0
  1323. package/.forge/worktrees/pipeline-4dd8dc2d/check-forge-status.sh +71 -0
  1324. package/.forge/worktrees/pipeline-4dd8dc2d/cli/mw.ts +579 -0
  1325. package/.forge/worktrees/pipeline-4dd8dc2d/components/BrowserPanel.tsx +175 -0
  1326. package/.forge/worktrees/pipeline-4dd8dc2d/components/ChatPanel.tsx +191 -0
  1327. package/.forge/worktrees/pipeline-4dd8dc2d/components/ClaudeTerminal.tsx +267 -0
  1328. package/.forge/worktrees/pipeline-4dd8dc2d/components/CodeViewer.tsx +787 -0
  1329. package/.forge/worktrees/pipeline-4dd8dc2d/components/ConversationEditor.tsx +411 -0
  1330. package/.forge/worktrees/pipeline-4dd8dc2d/components/ConversationGraphView.tsx +347 -0
  1331. package/.forge/worktrees/pipeline-4dd8dc2d/components/ConversationTerminalView.tsx +303 -0
  1332. package/.forge/worktrees/pipeline-4dd8dc2d/components/Dashboard.tsx +807 -0
  1333. package/.forge/worktrees/pipeline-4dd8dc2d/components/DashboardWrapper.tsx +9 -0
  1334. package/.forge/worktrees/pipeline-4dd8dc2d/components/DeliveryFlowEditor.tsx +491 -0
  1335. package/.forge/worktrees/pipeline-4dd8dc2d/components/DeliveryList.tsx +230 -0
  1336. package/.forge/worktrees/pipeline-4dd8dc2d/components/DeliveryWorkspace.tsx +589 -0
  1337. package/.forge/worktrees/pipeline-4dd8dc2d/components/DocTerminal.tsx +187 -0
  1338. package/.forge/worktrees/pipeline-4dd8dc2d/components/DocsViewer.tsx +574 -0
  1339. package/.forge/worktrees/pipeline-4dd8dc2d/components/HelpDialog.tsx +169 -0
  1340. package/.forge/worktrees/pipeline-4dd8dc2d/components/HelpTerminal.tsx +141 -0
  1341. package/.forge/worktrees/pipeline-4dd8dc2d/components/InlinePipelineView.tsx +111 -0
  1342. package/.forge/worktrees/pipeline-4dd8dc2d/components/LogViewer.tsx +194 -0
  1343. package/.forge/worktrees/pipeline-4dd8dc2d/components/MarkdownContent.tsx +73 -0
  1344. package/.forge/worktrees/pipeline-4dd8dc2d/components/MobileView.tsx +385 -0
  1345. package/.forge/worktrees/pipeline-4dd8dc2d/components/MonitorPanel.tsx +122 -0
  1346. package/.forge/worktrees/pipeline-4dd8dc2d/components/NewSessionModal.tsx +93 -0
  1347. package/.forge/worktrees/pipeline-4dd8dc2d/components/NewTaskModal.tsx +492 -0
  1348. package/.forge/worktrees/pipeline-4dd8dc2d/components/PipelineEditor.tsx +570 -0
  1349. package/.forge/worktrees/pipeline-4dd8dc2d/components/PipelineView.tsx +1018 -0
  1350. package/.forge/worktrees/pipeline-4dd8dc2d/components/PluginsPanel.tsx +472 -0
  1351. package/.forge/worktrees/pipeline-4dd8dc2d/components/ProjectDetail.tsx +1618 -0
  1352. package/.forge/worktrees/pipeline-4dd8dc2d/components/ProjectList.tsx +108 -0
  1353. package/.forge/worktrees/pipeline-4dd8dc2d/components/ProjectManager.tsx +401 -0
  1354. package/.forge/worktrees/pipeline-4dd8dc2d/components/SessionList.tsx +74 -0
  1355. package/.forge/worktrees/pipeline-4dd8dc2d/components/SessionView.tsx +726 -0
  1356. package/.forge/worktrees/pipeline-4dd8dc2d/components/SettingsModal.tsx +1647 -0
  1357. package/.forge/worktrees/pipeline-4dd8dc2d/components/SkillsPanel.tsx +969 -0
  1358. package/.forge/worktrees/pipeline-4dd8dc2d/components/StatusBar.tsx +99 -0
  1359. package/.forge/worktrees/pipeline-4dd8dc2d/components/TabBar.tsx +46 -0
  1360. package/.forge/worktrees/pipeline-4dd8dc2d/components/TaskBoard.tsx +113 -0
  1361. package/.forge/worktrees/pipeline-4dd8dc2d/components/TaskDetail.tsx +372 -0
  1362. package/.forge/worktrees/pipeline-4dd8dc2d/components/TerminalLauncher.tsx +398 -0
  1363. package/.forge/worktrees/pipeline-4dd8dc2d/components/TunnelToggle.tsx +206 -0
  1364. package/.forge/worktrees/pipeline-4dd8dc2d/components/UsagePanel.tsx +207 -0
  1365. package/.forge/worktrees/pipeline-4dd8dc2d/components/WebTerminal.tsx +1743 -0
  1366. package/.forge/worktrees/pipeline-4dd8dc2d/components/WorkspaceTree.tsx +221 -0
  1367. package/.forge/worktrees/pipeline-4dd8dc2d/components/WorkspaceView.tsx +4048 -0
  1368. package/.forge/worktrees/pipeline-4dd8dc2d/dev-test.sh +5 -0
  1369. package/.forge/worktrees/pipeline-4dd8dc2d/docs/Forge_Memory_Layer_Design.docx +0 -0
  1370. package/.forge/worktrees/pipeline-4dd8dc2d/docs/Forge_Strategy_Research_2026.docx +0 -0
  1371. package/.forge/worktrees/pipeline-4dd8dc2d/docs/LOCAL-DEPLOY.md +144 -0
  1372. package/.forge/worktrees/pipeline-4dd8dc2d/docs/roadmap-multi-agent-workflow.md +330 -0
  1373. package/.forge/worktrees/pipeline-4dd8dc2d/forge-logo.png +0 -0
  1374. package/.forge/worktrees/pipeline-4dd8dc2d/forge-logo.svg +106 -0
  1375. package/.forge/worktrees/pipeline-4dd8dc2d/hooks/useSidebarResize.ts +52 -0
  1376. package/.forge/worktrees/pipeline-4dd8dc2d/install.sh +29 -0
  1377. package/.forge/worktrees/pipeline-4dd8dc2d/instrumentation.ts +35 -0
  1378. package/.forge/worktrees/pipeline-4dd8dc2d/lib/agents/claude-adapter.ts +104 -0
  1379. package/.forge/worktrees/pipeline-4dd8dc2d/lib/agents/generic-adapter.ts +64 -0
  1380. package/.forge/worktrees/pipeline-4dd8dc2d/lib/agents/index.ts +245 -0
  1381. package/.forge/worktrees/pipeline-4dd8dc2d/lib/agents/types.ts +70 -0
  1382. package/.forge/worktrees/pipeline-4dd8dc2d/lib/artifacts.ts +106 -0
  1383. package/.forge/worktrees/pipeline-4dd8dc2d/lib/auth.ts +62 -0
  1384. package/.forge/worktrees/pipeline-4dd8dc2d/lib/builtin-plugins/docker.yaml +70 -0
  1385. package/.forge/worktrees/pipeline-4dd8dc2d/lib/builtin-plugins/http.yaml +66 -0
  1386. package/.forge/worktrees/pipeline-4dd8dc2d/lib/builtin-plugins/jenkins.yaml +92 -0
  1387. package/.forge/worktrees/pipeline-4dd8dc2d/lib/builtin-plugins/llm-vision.yaml +85 -0
  1388. package/.forge/worktrees/pipeline-4dd8dc2d/lib/builtin-plugins/playwright.yaml +111 -0
  1389. package/.forge/worktrees/pipeline-4dd8dc2d/lib/builtin-plugins/shell-command.yaml +60 -0
  1390. package/.forge/worktrees/pipeline-4dd8dc2d/lib/builtin-plugins/slack.yaml +48 -0
  1391. package/.forge/worktrees/pipeline-4dd8dc2d/lib/builtin-plugins/webhook.yaml +56 -0
  1392. package/.forge/worktrees/pipeline-4dd8dc2d/lib/claude-process.ts +361 -0
  1393. package/.forge/worktrees/pipeline-4dd8dc2d/lib/claude-sessions.ts +266 -0
  1394. package/.forge/worktrees/pipeline-4dd8dc2d/lib/claude-templates.ts +227 -0
  1395. package/.forge/worktrees/pipeline-4dd8dc2d/lib/cloudflared.ts +424 -0
  1396. package/.forge/worktrees/pipeline-4dd8dc2d/lib/crypto.ts +67 -0
  1397. package/.forge/worktrees/pipeline-4dd8dc2d/lib/delivery.ts +787 -0
  1398. package/.forge/worktrees/pipeline-4dd8dc2d/lib/dirs.ts +99 -0
  1399. package/.forge/worktrees/pipeline-4dd8dc2d/lib/flows.ts +86 -0
  1400. package/.forge/worktrees/pipeline-4dd8dc2d/lib/forge-mcp-server.ts +732 -0
  1401. package/.forge/worktrees/pipeline-4dd8dc2d/lib/forge-skills/forge-inbox.md +38 -0
  1402. package/.forge/worktrees/pipeline-4dd8dc2d/lib/forge-skills/forge-send.md +47 -0
  1403. package/.forge/worktrees/pipeline-4dd8dc2d/lib/forge-skills/forge-status.md +32 -0
  1404. package/.forge/worktrees/pipeline-4dd8dc2d/lib/forge-skills/forge-workspace-sync.md +37 -0
  1405. package/.forge/worktrees/pipeline-4dd8dc2d/lib/help-docs/00-overview.md +40 -0
  1406. package/.forge/worktrees/pipeline-4dd8dc2d/lib/help-docs/01-settings.md +194 -0
  1407. package/.forge/worktrees/pipeline-4dd8dc2d/lib/help-docs/02-telegram.md +41 -0
  1408. package/.forge/worktrees/pipeline-4dd8dc2d/lib/help-docs/03-tunnel.md +31 -0
  1409. package/.forge/worktrees/pipeline-4dd8dc2d/lib/help-docs/04-tasks.md +52 -0
  1410. package/.forge/worktrees/pipeline-4dd8dc2d/lib/help-docs/05-pipelines.md +460 -0
  1411. package/.forge/worktrees/pipeline-4dd8dc2d/lib/help-docs/06-skills.md +43 -0
  1412. package/.forge/worktrees/pipeline-4dd8dc2d/lib/help-docs/07-projects.md +73 -0
  1413. package/.forge/worktrees/pipeline-4dd8dc2d/lib/help-docs/08-rules.md +53 -0
  1414. package/.forge/worktrees/pipeline-4dd8dc2d/lib/help-docs/09-issue-autofix.md +55 -0
  1415. package/.forge/worktrees/pipeline-4dd8dc2d/lib/help-docs/10-troubleshooting.md +89 -0
  1416. package/.forge/worktrees/pipeline-4dd8dc2d/lib/help-docs/11-workspace.md +810 -0
  1417. package/.forge/worktrees/pipeline-4dd8dc2d/lib/help-docs/CLAUDE.md +62 -0
  1418. package/.forge/worktrees/pipeline-4dd8dc2d/lib/init.ts +266 -0
  1419. package/.forge/worktrees/pipeline-4dd8dc2d/lib/issue-scanner.ts +298 -0
  1420. package/.forge/worktrees/pipeline-4dd8dc2d/lib/logger.ts +79 -0
  1421. package/.forge/worktrees/pipeline-4dd8dc2d/lib/notifications.ts +75 -0
  1422. package/.forge/worktrees/pipeline-4dd8dc2d/lib/notify.ts +108 -0
  1423. package/.forge/worktrees/pipeline-4dd8dc2d/lib/password.ts +97 -0
  1424. package/.forge/worktrees/pipeline-4dd8dc2d/lib/pipeline-scheduler.ts +373 -0
  1425. package/.forge/worktrees/pipeline-4dd8dc2d/lib/pipeline.ts +1565 -0
  1426. package/.forge/worktrees/pipeline-4dd8dc2d/lib/plugins/executor.ts +347 -0
  1427. package/.forge/worktrees/pipeline-4dd8dc2d/lib/plugins/registry.ts +228 -0
  1428. package/.forge/worktrees/pipeline-4dd8dc2d/lib/plugins/types.ts +103 -0
  1429. package/.forge/worktrees/pipeline-4dd8dc2d/lib/project-sessions.ts +53 -0
  1430. package/.forge/worktrees/pipeline-4dd8dc2d/lib/projects.ts +86 -0
  1431. package/.forge/worktrees/pipeline-4dd8dc2d/lib/session-manager.ts +156 -0
  1432. package/.forge/worktrees/pipeline-4dd8dc2d/lib/session-utils.ts +53 -0
  1433. package/.forge/worktrees/pipeline-4dd8dc2d/lib/session-watcher.ts +345 -0
  1434. package/.forge/worktrees/pipeline-4dd8dc2d/lib/settings.ts +195 -0
  1435. package/.forge/worktrees/pipeline-4dd8dc2d/lib/skills.ts +458 -0
  1436. package/.forge/worktrees/pipeline-4dd8dc2d/lib/task-manager.ts +951 -0
  1437. package/.forge/worktrees/pipeline-4dd8dc2d/lib/telegram-bot.ts +1477 -0
  1438. package/.forge/worktrees/pipeline-4dd8dc2d/lib/telegram-standalone.ts +83 -0
  1439. package/.forge/worktrees/pipeline-4dd8dc2d/lib/terminal-server.ts +70 -0
  1440. package/.forge/worktrees/pipeline-4dd8dc2d/lib/terminal-standalone.ts +438 -0
  1441. package/.forge/worktrees/pipeline-4dd8dc2d/lib/usage-scanner.ts +249 -0
  1442. package/.forge/worktrees/pipeline-4dd8dc2d/lib/workspace/__tests__/state-machine.test.ts +388 -0
  1443. package/.forge/worktrees/pipeline-4dd8dc2d/lib/workspace/__tests__/workspace.test.ts +311 -0
  1444. package/.forge/worktrees/pipeline-4dd8dc2d/lib/workspace/agent-bus.ts +416 -0
  1445. package/.forge/worktrees/pipeline-4dd8dc2d/lib/workspace/agent-worker.ts +655 -0
  1446. package/.forge/worktrees/pipeline-4dd8dc2d/lib/workspace/backends/api-backend.ts +262 -0
  1447. package/.forge/worktrees/pipeline-4dd8dc2d/lib/workspace/backends/cli-backend.ts +491 -0
  1448. package/.forge/worktrees/pipeline-4dd8dc2d/lib/workspace/index.ts +84 -0
  1449. package/.forge/worktrees/pipeline-4dd8dc2d/lib/workspace/manager.ts +136 -0
  1450. package/.forge/worktrees/pipeline-4dd8dc2d/lib/workspace/orchestrator.ts +3415 -0
  1451. package/.forge/worktrees/pipeline-4dd8dc2d/lib/workspace/persistence.ts +309 -0
  1452. package/.forge/worktrees/pipeline-4dd8dc2d/lib/workspace/presets.ts +649 -0
  1453. package/.forge/worktrees/pipeline-4dd8dc2d/lib/workspace/requests.ts +287 -0
  1454. package/.forge/worktrees/pipeline-4dd8dc2d/lib/workspace/session-monitor.ts +240 -0
  1455. package/.forge/worktrees/pipeline-4dd8dc2d/lib/workspace/skill-installer.ts +275 -0
  1456. package/.forge/worktrees/pipeline-4dd8dc2d/lib/workspace/smith-memory.ts +498 -0
  1457. package/.forge/worktrees/pipeline-4dd8dc2d/lib/workspace/types.ts +241 -0
  1458. package/.forge/worktrees/pipeline-4dd8dc2d/lib/workspace/watch-manager.ts +560 -0
  1459. package/.forge/worktrees/pipeline-4dd8dc2d/lib/workspace-standalone.ts +978 -0
  1460. package/.forge/worktrees/pipeline-4dd8dc2d/middleware.ts +51 -0
  1461. package/.forge/worktrees/pipeline-4dd8dc2d/next.config.ts +26 -0
  1462. package/.forge/worktrees/pipeline-4dd8dc2d/package.json +74 -0
  1463. package/.forge/worktrees/pipeline-4dd8dc2d/pnpm-lock.yaml +3719 -0
  1464. package/.forge/worktrees/pipeline-4dd8dc2d/pnpm-workspace.yaml +1 -0
  1465. package/.forge/worktrees/pipeline-4dd8dc2d/postcss.config.mjs +7 -0
  1466. package/.forge/worktrees/pipeline-4dd8dc2d/publish.sh +133 -0
  1467. package/.forge/worktrees/pipeline-4dd8dc2d/scripts/bench/README.md +66 -0
  1468. package/.forge/worktrees/pipeline-4dd8dc2d/scripts/bench/results/.gitignore +2 -0
  1469. package/.forge/worktrees/pipeline-4dd8dc2d/scripts/bench/run.ts +635 -0
  1470. package/.forge/worktrees/pipeline-4dd8dc2d/scripts/bench/tasks/01-text-utils/task.md +26 -0
  1471. package/.forge/worktrees/pipeline-4dd8dc2d/scripts/bench/tasks/01-text-utils/validator.sh +46 -0
  1472. package/.forge/worktrees/pipeline-4dd8dc2d/scripts/bench/tasks/02-pagination/setup.sh +19 -0
  1473. package/.forge/worktrees/pipeline-4dd8dc2d/scripts/bench/tasks/02-pagination/task.md +48 -0
  1474. package/.forge/worktrees/pipeline-4dd8dc2d/scripts/bench/tasks/02-pagination/validator.sh +69 -0
  1475. package/.forge/worktrees/pipeline-4dd8dc2d/scripts/bench/tasks/03-bug-fix/setup.sh +82 -0
  1476. package/.forge/worktrees/pipeline-4dd8dc2d/scripts/bench/tasks/03-bug-fix/task.md +30 -0
  1477. package/.forge/worktrees/pipeline-4dd8dc2d/scripts/bench/tasks/03-bug-fix/validator.sh +29 -0
  1478. package/.forge/worktrees/pipeline-4dd8dc2d/scripts/verify-usage.ts +178 -0
  1479. package/.forge/worktrees/pipeline-4dd8dc2d/src/config/index.ts +129 -0
  1480. package/.forge/worktrees/pipeline-4dd8dc2d/src/core/db/database.ts +259 -0
  1481. package/.forge/worktrees/pipeline-4dd8dc2d/src/core/memory/strategy.ts +32 -0
  1482. package/.forge/worktrees/pipeline-4dd8dc2d/src/core/providers/chat.ts +65 -0
  1483. package/.forge/worktrees/pipeline-4dd8dc2d/src/core/providers/registry.ts +60 -0
  1484. package/.forge/worktrees/pipeline-4dd8dc2d/src/core/session/manager.ts +190 -0
  1485. package/.forge/worktrees/pipeline-4dd8dc2d/src/types/index.ts +129 -0
  1486. package/.forge/worktrees/pipeline-4dd8dc2d/start.sh +32 -0
  1487. package/.forge/worktrees/pipeline-4dd8dc2d/templates/smith-lead.json +45 -0
  1488. package/.forge/worktrees/pipeline-4dd8dc2d/tsconfig.json +42 -0
  1489. package/.forge/worktrees/pipeline-d1757a50/CLAUDE.md +86 -0
  1490. package/.forge/worktrees/pipeline-d1757a50/README.md +136 -0
  1491. package/.forge/worktrees/pipeline-d1757a50/RELEASE_NOTES.md +11 -0
  1492. package/.forge/worktrees/pipeline-d1757a50/app/api/agents/route.ts +17 -0
  1493. package/.forge/worktrees/pipeline-d1757a50/app/api/auth/[...nextauth]/route.ts +3 -0
  1494. package/.forge/worktrees/pipeline-d1757a50/app/api/auth/verify/route.ts +46 -0
  1495. package/.forge/worktrees/pipeline-d1757a50/app/api/claude/[id]/route.ts +31 -0
  1496. package/.forge/worktrees/pipeline-d1757a50/app/api/claude/[id]/stream/route.ts +63 -0
  1497. package/.forge/worktrees/pipeline-d1757a50/app/api/claude/route.ts +28 -0
  1498. package/.forge/worktrees/pipeline-d1757a50/app/api/claude-sessions/[projectName]/entries/route.ts +23 -0
  1499. package/.forge/worktrees/pipeline-d1757a50/app/api/claude-sessions/[projectName]/live/route.ts +72 -0
  1500. package/.forge/worktrees/pipeline-d1757a50/app/api/claude-sessions/[projectName]/route.ts +37 -0
  1501. package/.forge/worktrees/pipeline-d1757a50/app/api/claude-sessions/sync/route.ts +17 -0
  1502. package/.forge/worktrees/pipeline-d1757a50/app/api/claude-templates/route.ts +145 -0
  1503. package/.forge/worktrees/pipeline-d1757a50/app/api/code/route.ts +299 -0
  1504. package/.forge/worktrees/pipeline-d1757a50/app/api/delivery/[id]/route.ts +62 -0
  1505. package/.forge/worktrees/pipeline-d1757a50/app/api/delivery/route.ts +40 -0
  1506. package/.forge/worktrees/pipeline-d1757a50/app/api/detect-cli/route.ts +46 -0
  1507. package/.forge/worktrees/pipeline-d1757a50/app/api/docs/route.ts +176 -0
  1508. package/.forge/worktrees/pipeline-d1757a50/app/api/docs/sessions/route.ts +54 -0
  1509. package/.forge/worktrees/pipeline-d1757a50/app/api/favorites/route.ts +26 -0
  1510. package/.forge/worktrees/pipeline-d1757a50/app/api/flows/route.ts +6 -0
  1511. package/.forge/worktrees/pipeline-d1757a50/app/api/flows/run/route.ts +19 -0
  1512. package/.forge/worktrees/pipeline-d1757a50/app/api/git/route.ts +149 -0
  1513. package/.forge/worktrees/pipeline-d1757a50/app/api/help/route.ts +84 -0
  1514. package/.forge/worktrees/pipeline-d1757a50/app/api/issue-scanner/route.ts +116 -0
  1515. package/.forge/worktrees/pipeline-d1757a50/app/api/logs/route.ts +100 -0
  1516. package/.forge/worktrees/pipeline-d1757a50/app/api/mobile-chat/route.ts +115 -0
  1517. package/.forge/worktrees/pipeline-d1757a50/app/api/monitor/route.ts +74 -0
  1518. package/.forge/worktrees/pipeline-d1757a50/app/api/notifications/route.ts +42 -0
  1519. package/.forge/worktrees/pipeline-d1757a50/app/api/notify/test/route.ts +33 -0
  1520. package/.forge/worktrees/pipeline-d1757a50/app/api/online/route.ts +40 -0
  1521. package/.forge/worktrees/pipeline-d1757a50/app/api/pipelines/[id]/route.ts +41 -0
  1522. package/.forge/worktrees/pipeline-d1757a50/app/api/pipelines/route.ts +90 -0
  1523. package/.forge/worktrees/pipeline-d1757a50/app/api/plugins/route.ts +75 -0
  1524. package/.forge/worktrees/pipeline-d1757a50/app/api/preview/[...path]/route.ts +64 -0
  1525. package/.forge/worktrees/pipeline-d1757a50/app/api/preview/route.ts +156 -0
  1526. package/.forge/worktrees/pipeline-d1757a50/app/api/project-pipelines/route.ts +91 -0
  1527. package/.forge/worktrees/pipeline-d1757a50/app/api/project-sessions/route.ts +61 -0
  1528. package/.forge/worktrees/pipeline-d1757a50/app/api/projects/route.ts +26 -0
  1529. package/.forge/worktrees/pipeline-d1757a50/app/api/sessions/[id]/chat/route.ts +64 -0
  1530. package/.forge/worktrees/pipeline-d1757a50/app/api/sessions/[id]/messages/route.ts +9 -0
  1531. package/.forge/worktrees/pipeline-d1757a50/app/api/sessions/[id]/route.ts +17 -0
  1532. package/.forge/worktrees/pipeline-d1757a50/app/api/sessions/route.ts +20 -0
  1533. package/.forge/worktrees/pipeline-d1757a50/app/api/settings/route.ts +64 -0
  1534. package/.forge/worktrees/pipeline-d1757a50/app/api/skills/local/route.ts +228 -0
  1535. package/.forge/worktrees/pipeline-d1757a50/app/api/skills/route.ts +182 -0
  1536. package/.forge/worktrees/pipeline-d1757a50/app/api/smith-templates/route.ts +81 -0
  1537. package/.forge/worktrees/pipeline-d1757a50/app/api/status/route.ts +12 -0
  1538. package/.forge/worktrees/pipeline-d1757a50/app/api/tabs/route.ts +25 -0
  1539. package/.forge/worktrees/pipeline-d1757a50/app/api/tasks/[id]/route.ts +51 -0
  1540. package/.forge/worktrees/pipeline-d1757a50/app/api/tasks/[id]/stream/route.ts +77 -0
  1541. package/.forge/worktrees/pipeline-d1757a50/app/api/tasks/link/route.ts +37 -0
  1542. package/.forge/worktrees/pipeline-d1757a50/app/api/tasks/route.ts +44 -0
  1543. package/.forge/worktrees/pipeline-d1757a50/app/api/tasks/session/route.ts +14 -0
  1544. package/.forge/worktrees/pipeline-d1757a50/app/api/telegram/route.ts +23 -0
  1545. package/.forge/worktrees/pipeline-d1757a50/app/api/templates/route.ts +6 -0
  1546. package/.forge/worktrees/pipeline-d1757a50/app/api/terminal-bell/route.ts +35 -0
  1547. package/.forge/worktrees/pipeline-d1757a50/app/api/terminal-cwd/route.ts +19 -0
  1548. package/.forge/worktrees/pipeline-d1757a50/app/api/terminal-state/route.ts +15 -0
  1549. package/.forge/worktrees/pipeline-d1757a50/app/api/tunnel/route.ts +26 -0
  1550. package/.forge/worktrees/pipeline-d1757a50/app/api/upgrade/route.ts +43 -0
  1551. package/.forge/worktrees/pipeline-d1757a50/app/api/usage/route.ts +20 -0
  1552. package/.forge/worktrees/pipeline-d1757a50/app/api/version/route.ts +78 -0
  1553. package/.forge/worktrees/pipeline-d1757a50/app/api/watchers/route.ts +33 -0
  1554. package/.forge/worktrees/pipeline-d1757a50/app/api/workspace/[id]/agents/route.ts +35 -0
  1555. package/.forge/worktrees/pipeline-d1757a50/app/api/workspace/[id]/memory/route.ts +23 -0
  1556. package/.forge/worktrees/pipeline-d1757a50/app/api/workspace/[id]/smith/route.ts +22 -0
  1557. package/.forge/worktrees/pipeline-d1757a50/app/api/workspace/[id]/stream/route.ts +28 -0
  1558. package/.forge/worktrees/pipeline-d1757a50/app/api/workspace/route.ts +100 -0
  1559. package/.forge/worktrees/pipeline-d1757a50/app/global-error.tsx +21 -0
  1560. package/.forge/worktrees/pipeline-d1757a50/app/globals.css +52 -0
  1561. package/.forge/worktrees/pipeline-d1757a50/app/icon.ico +0 -0
  1562. package/.forge/worktrees/pipeline-d1757a50/app/icon.png +0 -0
  1563. package/.forge/worktrees/pipeline-d1757a50/app/icon.svg +106 -0
  1564. package/.forge/worktrees/pipeline-d1757a50/app/layout.tsx +17 -0
  1565. package/.forge/worktrees/pipeline-d1757a50/app/login/LoginForm.tsx +96 -0
  1566. package/.forge/worktrees/pipeline-d1757a50/app/login/page.tsx +10 -0
  1567. package/.forge/worktrees/pipeline-d1757a50/app/mobile/page.tsx +9 -0
  1568. package/.forge/worktrees/pipeline-d1757a50/app/page.tsx +21 -0
  1569. package/.forge/worktrees/pipeline-d1757a50/bin/forge-server.mjs +484 -0
  1570. package/.forge/worktrees/pipeline-d1757a50/check-forge-status.sh +71 -0
  1571. package/.forge/worktrees/pipeline-d1757a50/cli/mw.ts +579 -0
  1572. package/.forge/worktrees/pipeline-d1757a50/components/BrowserPanel.tsx +175 -0
  1573. package/.forge/worktrees/pipeline-d1757a50/components/ChatPanel.tsx +191 -0
  1574. package/.forge/worktrees/pipeline-d1757a50/components/ClaudeTerminal.tsx +267 -0
  1575. package/.forge/worktrees/pipeline-d1757a50/components/CodeViewer.tsx +787 -0
  1576. package/.forge/worktrees/pipeline-d1757a50/components/ConversationEditor.tsx +411 -0
  1577. package/.forge/worktrees/pipeline-d1757a50/components/ConversationGraphView.tsx +347 -0
  1578. package/.forge/worktrees/pipeline-d1757a50/components/ConversationTerminalView.tsx +303 -0
  1579. package/.forge/worktrees/pipeline-d1757a50/components/Dashboard.tsx +807 -0
  1580. package/.forge/worktrees/pipeline-d1757a50/components/DashboardWrapper.tsx +9 -0
  1581. package/.forge/worktrees/pipeline-d1757a50/components/DeliveryFlowEditor.tsx +491 -0
  1582. package/.forge/worktrees/pipeline-d1757a50/components/DeliveryList.tsx +230 -0
  1583. package/.forge/worktrees/pipeline-d1757a50/components/DeliveryWorkspace.tsx +589 -0
  1584. package/.forge/worktrees/pipeline-d1757a50/components/DocTerminal.tsx +187 -0
  1585. package/.forge/worktrees/pipeline-d1757a50/components/DocsViewer.tsx +574 -0
  1586. package/.forge/worktrees/pipeline-d1757a50/components/HelpDialog.tsx +169 -0
  1587. package/.forge/worktrees/pipeline-d1757a50/components/HelpTerminal.tsx +141 -0
  1588. package/.forge/worktrees/pipeline-d1757a50/components/InlinePipelineView.tsx +111 -0
  1589. package/.forge/worktrees/pipeline-d1757a50/components/LogViewer.tsx +194 -0
  1590. package/.forge/worktrees/pipeline-d1757a50/components/MarkdownContent.tsx +73 -0
  1591. package/.forge/worktrees/pipeline-d1757a50/components/MobileView.tsx +385 -0
  1592. package/.forge/worktrees/pipeline-d1757a50/components/MonitorPanel.tsx +122 -0
  1593. package/.forge/worktrees/pipeline-d1757a50/components/NewSessionModal.tsx +93 -0
  1594. package/.forge/worktrees/pipeline-d1757a50/components/NewTaskModal.tsx +492 -0
  1595. package/.forge/worktrees/pipeline-d1757a50/components/PipelineEditor.tsx +570 -0
  1596. package/.forge/worktrees/pipeline-d1757a50/components/PipelineView.tsx +1018 -0
  1597. package/.forge/worktrees/pipeline-d1757a50/components/PluginsPanel.tsx +472 -0
  1598. package/.forge/worktrees/pipeline-d1757a50/components/ProjectDetail.tsx +1618 -0
  1599. package/.forge/worktrees/pipeline-d1757a50/components/ProjectList.tsx +108 -0
  1600. package/.forge/worktrees/pipeline-d1757a50/components/ProjectManager.tsx +401 -0
  1601. package/.forge/worktrees/pipeline-d1757a50/components/SessionList.tsx +74 -0
  1602. package/.forge/worktrees/pipeline-d1757a50/components/SessionView.tsx +726 -0
  1603. package/.forge/worktrees/pipeline-d1757a50/components/SettingsModal.tsx +1647 -0
  1604. package/.forge/worktrees/pipeline-d1757a50/components/SkillsPanel.tsx +969 -0
  1605. package/.forge/worktrees/pipeline-d1757a50/components/StatusBar.tsx +99 -0
  1606. package/.forge/worktrees/pipeline-d1757a50/components/TabBar.tsx +46 -0
  1607. package/.forge/worktrees/pipeline-d1757a50/components/TaskBoard.tsx +113 -0
  1608. package/.forge/worktrees/pipeline-d1757a50/components/TaskDetail.tsx +372 -0
  1609. package/.forge/worktrees/pipeline-d1757a50/components/TerminalLauncher.tsx +398 -0
  1610. package/.forge/worktrees/pipeline-d1757a50/components/TunnelToggle.tsx +206 -0
  1611. package/.forge/worktrees/pipeline-d1757a50/components/UsagePanel.tsx +207 -0
  1612. package/.forge/worktrees/pipeline-d1757a50/components/WebTerminal.tsx +1683 -0
  1613. package/.forge/worktrees/pipeline-d1757a50/components/WorkspaceTree.tsx +221 -0
  1614. package/.forge/worktrees/pipeline-d1757a50/components/WorkspaceView.tsx +4048 -0
  1615. package/.forge/worktrees/pipeline-d1757a50/dev-test.sh +5 -0
  1616. package/.forge/worktrees/pipeline-d1757a50/docs/Forge_Memory_Layer_Design.docx +0 -0
  1617. package/.forge/worktrees/pipeline-d1757a50/docs/Forge_Strategy_Research_2026.docx +0 -0
  1618. package/.forge/worktrees/pipeline-d1757a50/docs/LOCAL-DEPLOY.md +144 -0
  1619. package/.forge/worktrees/pipeline-d1757a50/docs/roadmap-multi-agent-workflow.md +330 -0
  1620. package/.forge/worktrees/pipeline-d1757a50/forge-logo.png +0 -0
  1621. package/.forge/worktrees/pipeline-d1757a50/forge-logo.svg +106 -0
  1622. package/.forge/worktrees/pipeline-d1757a50/hooks/useSidebarResize.ts +52 -0
  1623. package/.forge/worktrees/pipeline-d1757a50/install.sh +29 -0
  1624. package/.forge/worktrees/pipeline-d1757a50/instrumentation.ts +35 -0
  1625. package/.forge/worktrees/pipeline-d1757a50/lib/agents/claude-adapter.ts +104 -0
  1626. package/.forge/worktrees/pipeline-d1757a50/lib/agents/generic-adapter.ts +64 -0
  1627. package/.forge/worktrees/pipeline-d1757a50/lib/agents/index.ts +245 -0
  1628. package/.forge/worktrees/pipeline-d1757a50/lib/agents/types.ts +70 -0
  1629. package/.forge/worktrees/pipeline-d1757a50/lib/artifacts.ts +106 -0
  1630. package/.forge/worktrees/pipeline-d1757a50/lib/auth.ts +62 -0
  1631. package/.forge/worktrees/pipeline-d1757a50/lib/builtin-plugins/docker.yaml +70 -0
  1632. package/.forge/worktrees/pipeline-d1757a50/lib/builtin-plugins/http.yaml +66 -0
  1633. package/.forge/worktrees/pipeline-d1757a50/lib/builtin-plugins/jenkins.yaml +92 -0
  1634. package/.forge/worktrees/pipeline-d1757a50/lib/builtin-plugins/llm-vision.yaml +85 -0
  1635. package/.forge/worktrees/pipeline-d1757a50/lib/builtin-plugins/playwright.yaml +111 -0
  1636. package/.forge/worktrees/pipeline-d1757a50/lib/builtin-plugins/shell-command.yaml +60 -0
  1637. package/.forge/worktrees/pipeline-d1757a50/lib/builtin-plugins/slack.yaml +48 -0
  1638. package/.forge/worktrees/pipeline-d1757a50/lib/builtin-plugins/webhook.yaml +56 -0
  1639. package/.forge/worktrees/pipeline-d1757a50/lib/claude-process.ts +361 -0
  1640. package/.forge/worktrees/pipeline-d1757a50/lib/claude-sessions.ts +266 -0
  1641. package/.forge/worktrees/pipeline-d1757a50/lib/claude-templates.ts +227 -0
  1642. package/.forge/worktrees/pipeline-d1757a50/lib/cloudflared.ts +424 -0
  1643. package/.forge/worktrees/pipeline-d1757a50/lib/crypto.ts +67 -0
  1644. package/.forge/worktrees/pipeline-d1757a50/lib/delivery.ts +787 -0
  1645. package/.forge/worktrees/pipeline-d1757a50/lib/dirs.ts +99 -0
  1646. package/.forge/worktrees/pipeline-d1757a50/lib/flows.ts +86 -0
  1647. package/.forge/worktrees/pipeline-d1757a50/lib/forge-mcp-server.ts +717 -0
  1648. package/.forge/worktrees/pipeline-d1757a50/lib/forge-skills/forge-inbox.md +38 -0
  1649. package/.forge/worktrees/pipeline-d1757a50/lib/forge-skills/forge-send.md +47 -0
  1650. package/.forge/worktrees/pipeline-d1757a50/lib/forge-skills/forge-status.md +32 -0
  1651. package/.forge/worktrees/pipeline-d1757a50/lib/forge-skills/forge-workspace-sync.md +37 -0
  1652. package/.forge/worktrees/pipeline-d1757a50/lib/help-docs/00-overview.md +40 -0
  1653. package/.forge/worktrees/pipeline-d1757a50/lib/help-docs/01-settings.md +194 -0
  1654. package/.forge/worktrees/pipeline-d1757a50/lib/help-docs/02-telegram.md +41 -0
  1655. package/.forge/worktrees/pipeline-d1757a50/lib/help-docs/03-tunnel.md +31 -0
  1656. package/.forge/worktrees/pipeline-d1757a50/lib/help-docs/04-tasks.md +52 -0
  1657. package/.forge/worktrees/pipeline-d1757a50/lib/help-docs/05-pipelines.md +460 -0
  1658. package/.forge/worktrees/pipeline-d1757a50/lib/help-docs/06-skills.md +43 -0
  1659. package/.forge/worktrees/pipeline-d1757a50/lib/help-docs/07-projects.md +73 -0
  1660. package/.forge/worktrees/pipeline-d1757a50/lib/help-docs/08-rules.md +53 -0
  1661. package/.forge/worktrees/pipeline-d1757a50/lib/help-docs/09-issue-autofix.md +55 -0
  1662. package/.forge/worktrees/pipeline-d1757a50/lib/help-docs/10-troubleshooting.md +89 -0
  1663. package/.forge/worktrees/pipeline-d1757a50/lib/help-docs/11-workspace.md +810 -0
  1664. package/.forge/worktrees/pipeline-d1757a50/lib/help-docs/CLAUDE.md +62 -0
  1665. package/.forge/worktrees/pipeline-d1757a50/lib/init.ts +266 -0
  1666. package/.forge/worktrees/pipeline-d1757a50/lib/issue-scanner.ts +298 -0
  1667. package/.forge/worktrees/pipeline-d1757a50/lib/logger.ts +79 -0
  1668. package/.forge/worktrees/pipeline-d1757a50/lib/notifications.ts +75 -0
  1669. package/.forge/worktrees/pipeline-d1757a50/lib/notify.ts +108 -0
  1670. package/.forge/worktrees/pipeline-d1757a50/lib/password.ts +97 -0
  1671. package/.forge/worktrees/pipeline-d1757a50/lib/pipeline-scheduler.ts +373 -0
  1672. package/.forge/worktrees/pipeline-d1757a50/lib/pipeline.ts +1441 -0
  1673. package/.forge/worktrees/pipeline-d1757a50/lib/plugins/executor.ts +347 -0
  1674. package/.forge/worktrees/pipeline-d1757a50/lib/plugins/registry.ts +228 -0
  1675. package/.forge/worktrees/pipeline-d1757a50/lib/plugins/types.ts +103 -0
  1676. package/.forge/worktrees/pipeline-d1757a50/lib/project-sessions.ts +53 -0
  1677. package/.forge/worktrees/pipeline-d1757a50/lib/projects.ts +86 -0
  1678. package/.forge/worktrees/pipeline-d1757a50/lib/session-manager.ts +156 -0
  1679. package/.forge/worktrees/pipeline-d1757a50/lib/session-utils.ts +53 -0
  1680. package/.forge/worktrees/pipeline-d1757a50/lib/session-watcher.ts +345 -0
  1681. package/.forge/worktrees/pipeline-d1757a50/lib/settings.ts +195 -0
  1682. package/.forge/worktrees/pipeline-d1757a50/lib/skills.ts +458 -0
  1683. package/.forge/worktrees/pipeline-d1757a50/lib/task-manager.ts +949 -0
  1684. package/.forge/worktrees/pipeline-d1757a50/lib/telegram-bot.ts +1477 -0
  1685. package/.forge/worktrees/pipeline-d1757a50/lib/telegram-standalone.ts +83 -0
  1686. package/.forge/worktrees/pipeline-d1757a50/lib/terminal-server.ts +70 -0
  1687. package/.forge/worktrees/pipeline-d1757a50/lib/terminal-standalone.ts +421 -0
  1688. package/.forge/worktrees/pipeline-d1757a50/lib/usage-scanner.ts +249 -0
  1689. package/.forge/worktrees/pipeline-d1757a50/lib/workspace/__tests__/state-machine.test.ts +388 -0
  1690. package/.forge/worktrees/pipeline-d1757a50/lib/workspace/__tests__/workspace.test.ts +311 -0
  1691. package/.forge/worktrees/pipeline-d1757a50/lib/workspace/agent-bus.ts +416 -0
  1692. package/.forge/worktrees/pipeline-d1757a50/lib/workspace/agent-worker.ts +655 -0
  1693. package/.forge/worktrees/pipeline-d1757a50/lib/workspace/backends/api-backend.ts +262 -0
  1694. package/.forge/worktrees/pipeline-d1757a50/lib/workspace/backends/cli-backend.ts +491 -0
  1695. package/.forge/worktrees/pipeline-d1757a50/lib/workspace/index.ts +82 -0
  1696. package/.forge/worktrees/pipeline-d1757a50/lib/workspace/manager.ts +136 -0
  1697. package/.forge/worktrees/pipeline-d1757a50/lib/workspace/orchestrator.ts +3400 -0
  1698. package/.forge/worktrees/pipeline-d1757a50/lib/workspace/persistence.ts +309 -0
  1699. package/.forge/worktrees/pipeline-d1757a50/lib/workspace/presets.ts +649 -0
  1700. package/.forge/worktrees/pipeline-d1757a50/lib/workspace/requests.ts +287 -0
  1701. package/.forge/worktrees/pipeline-d1757a50/lib/workspace/session-monitor.ts +240 -0
  1702. package/.forge/worktrees/pipeline-d1757a50/lib/workspace/skill-installer.ts +275 -0
  1703. package/.forge/worktrees/pipeline-d1757a50/lib/workspace/smith-memory.ts +498 -0
  1704. package/.forge/worktrees/pipeline-d1757a50/lib/workspace/types.ts +241 -0
  1705. package/.forge/worktrees/pipeline-d1757a50/lib/workspace/watch-manager.ts +560 -0
  1706. package/.forge/worktrees/pipeline-d1757a50/lib/workspace-standalone.ts +911 -0
  1707. package/.forge/worktrees/pipeline-d1757a50/middleware.ts +51 -0
  1708. package/.forge/worktrees/pipeline-d1757a50/next.config.ts +26 -0
  1709. package/.forge/worktrees/pipeline-d1757a50/package.json +74 -0
  1710. package/.forge/worktrees/pipeline-d1757a50/pnpm-lock.yaml +3719 -0
  1711. package/.forge/worktrees/pipeline-d1757a50/pnpm-workspace.yaml +1 -0
  1712. package/.forge/worktrees/pipeline-d1757a50/postcss.config.mjs +7 -0
  1713. package/.forge/worktrees/pipeline-d1757a50/publish.sh +133 -0
  1714. package/.forge/worktrees/pipeline-d1757a50/scripts/bench/README.md +66 -0
  1715. package/.forge/worktrees/pipeline-d1757a50/scripts/bench/results/.gitignore +2 -0
  1716. package/.forge/worktrees/pipeline-d1757a50/scripts/bench/run.ts +635 -0
  1717. package/.forge/worktrees/pipeline-d1757a50/scripts/bench/tasks/01-text-utils/task.md +26 -0
  1718. package/.forge/worktrees/pipeline-d1757a50/scripts/bench/tasks/01-text-utils/validator.sh +46 -0
  1719. package/.forge/worktrees/pipeline-d1757a50/scripts/bench/tasks/02-pagination/setup.sh +19 -0
  1720. package/.forge/worktrees/pipeline-d1757a50/scripts/bench/tasks/02-pagination/task.md +48 -0
  1721. package/.forge/worktrees/pipeline-d1757a50/scripts/bench/tasks/02-pagination/validator.sh +69 -0
  1722. package/.forge/worktrees/pipeline-d1757a50/scripts/bench/tasks/03-bug-fix/setup.sh +82 -0
  1723. package/.forge/worktrees/pipeline-d1757a50/scripts/bench/tasks/03-bug-fix/task.md +30 -0
  1724. package/.forge/worktrees/pipeline-d1757a50/scripts/bench/tasks/03-bug-fix/validator.sh +29 -0
  1725. package/.forge/worktrees/pipeline-d1757a50/scripts/verify-usage.ts +178 -0
  1726. package/.forge/worktrees/pipeline-d1757a50/src/config/index.ts +129 -0
  1727. package/.forge/worktrees/pipeline-d1757a50/src/core/db/database.ts +259 -0
  1728. package/.forge/worktrees/pipeline-d1757a50/src/core/memory/strategy.ts +32 -0
  1729. package/.forge/worktrees/pipeline-d1757a50/src/core/providers/chat.ts +65 -0
  1730. package/.forge/worktrees/pipeline-d1757a50/src/core/providers/registry.ts +60 -0
  1731. package/.forge/worktrees/pipeline-d1757a50/src/core/session/manager.ts +190 -0
  1732. package/.forge/worktrees/pipeline-d1757a50/src/types/index.ts +129 -0
  1733. package/.forge/worktrees/pipeline-d1757a50/start.sh +31 -0
  1734. package/.forge/worktrees/pipeline-d1757a50/templates/smith-lead.json +45 -0
  1735. package/.forge/worktrees/pipeline-d1757a50/tsconfig.json +42 -0
  1736. package/.forge/worktrees/pipeline-d59c2fe2/CLAUDE.md +86 -0
  1737. package/.forge/worktrees/pipeline-d59c2fe2/README.md +136 -0
  1738. package/.forge/worktrees/pipeline-d59c2fe2/RELEASE_NOTES.md +11 -0
  1739. package/.forge/worktrees/pipeline-d59c2fe2/app/api/agents/route.ts +17 -0
  1740. package/.forge/worktrees/pipeline-d59c2fe2/app/api/auth/[...nextauth]/route.ts +3 -0
  1741. package/.forge/worktrees/pipeline-d59c2fe2/app/api/auth/verify/route.ts +46 -0
  1742. package/.forge/worktrees/pipeline-d59c2fe2/app/api/claude/[id]/route.ts +31 -0
  1743. package/.forge/worktrees/pipeline-d59c2fe2/app/api/claude/[id]/stream/route.ts +63 -0
  1744. package/.forge/worktrees/pipeline-d59c2fe2/app/api/claude/route.ts +28 -0
  1745. package/.forge/worktrees/pipeline-d59c2fe2/app/api/claude-sessions/[projectName]/entries/route.ts +23 -0
  1746. package/.forge/worktrees/pipeline-d59c2fe2/app/api/claude-sessions/[projectName]/live/route.ts +72 -0
  1747. package/.forge/worktrees/pipeline-d59c2fe2/app/api/claude-sessions/[projectName]/route.ts +37 -0
  1748. package/.forge/worktrees/pipeline-d59c2fe2/app/api/claude-sessions/sync/route.ts +17 -0
  1749. package/.forge/worktrees/pipeline-d59c2fe2/app/api/claude-templates/route.ts +145 -0
  1750. package/.forge/worktrees/pipeline-d59c2fe2/app/api/code/route.ts +299 -0
  1751. package/.forge/worktrees/pipeline-d59c2fe2/app/api/delivery/[id]/route.ts +62 -0
  1752. package/.forge/worktrees/pipeline-d59c2fe2/app/api/delivery/route.ts +40 -0
  1753. package/.forge/worktrees/pipeline-d59c2fe2/app/api/detect-cli/route.ts +46 -0
  1754. package/.forge/worktrees/pipeline-d59c2fe2/app/api/docs/route.ts +176 -0
  1755. package/.forge/worktrees/pipeline-d59c2fe2/app/api/docs/sessions/route.ts +54 -0
  1756. package/.forge/worktrees/pipeline-d59c2fe2/app/api/favorites/route.ts +26 -0
  1757. package/.forge/worktrees/pipeline-d59c2fe2/app/api/flows/route.ts +6 -0
  1758. package/.forge/worktrees/pipeline-d59c2fe2/app/api/flows/run/route.ts +19 -0
  1759. package/.forge/worktrees/pipeline-d59c2fe2/app/api/git/route.ts +149 -0
  1760. package/.forge/worktrees/pipeline-d59c2fe2/app/api/help/route.ts +84 -0
  1761. package/.forge/worktrees/pipeline-d59c2fe2/app/api/issue-scanner/route.ts +116 -0
  1762. package/.forge/worktrees/pipeline-d59c2fe2/app/api/logs/route.ts +100 -0
  1763. package/.forge/worktrees/pipeline-d59c2fe2/app/api/mobile-chat/route.ts +115 -0
  1764. package/.forge/worktrees/pipeline-d59c2fe2/app/api/monitor/route.ts +74 -0
  1765. package/.forge/worktrees/pipeline-d59c2fe2/app/api/notifications/route.ts +42 -0
  1766. package/.forge/worktrees/pipeline-d59c2fe2/app/api/notify/test/route.ts +33 -0
  1767. package/.forge/worktrees/pipeline-d59c2fe2/app/api/online/route.ts +40 -0
  1768. package/.forge/worktrees/pipeline-d59c2fe2/app/api/pipelines/[id]/route.ts +41 -0
  1769. package/.forge/worktrees/pipeline-d59c2fe2/app/api/pipelines/route.ts +90 -0
  1770. package/.forge/worktrees/pipeline-d59c2fe2/app/api/plugins/route.ts +75 -0
  1771. package/.forge/worktrees/pipeline-d59c2fe2/app/api/preview/[...path]/route.ts +64 -0
  1772. package/.forge/worktrees/pipeline-d59c2fe2/app/api/preview/route.ts +156 -0
  1773. package/.forge/worktrees/pipeline-d59c2fe2/app/api/project-pipelines/route.ts +91 -0
  1774. package/.forge/worktrees/pipeline-d59c2fe2/app/api/project-sessions/route.ts +61 -0
  1775. package/.forge/worktrees/pipeline-d59c2fe2/app/api/projects/route.ts +26 -0
  1776. package/.forge/worktrees/pipeline-d59c2fe2/app/api/sessions/[id]/chat/route.ts +64 -0
  1777. package/.forge/worktrees/pipeline-d59c2fe2/app/api/sessions/[id]/messages/route.ts +9 -0
  1778. package/.forge/worktrees/pipeline-d59c2fe2/app/api/sessions/[id]/route.ts +17 -0
  1779. package/.forge/worktrees/pipeline-d59c2fe2/app/api/sessions/route.ts +20 -0
  1780. package/.forge/worktrees/pipeline-d59c2fe2/app/api/settings/route.ts +64 -0
  1781. package/.forge/worktrees/pipeline-d59c2fe2/app/api/skills/local/route.ts +228 -0
  1782. package/.forge/worktrees/pipeline-d59c2fe2/app/api/skills/route.ts +182 -0
  1783. package/.forge/worktrees/pipeline-d59c2fe2/app/api/smith-templates/route.ts +81 -0
  1784. package/.forge/worktrees/pipeline-d59c2fe2/app/api/status/route.ts +12 -0
  1785. package/.forge/worktrees/pipeline-d59c2fe2/app/api/tabs/route.ts +25 -0
  1786. package/.forge/worktrees/pipeline-d59c2fe2/app/api/tasks/[id]/route.ts +51 -0
  1787. package/.forge/worktrees/pipeline-d59c2fe2/app/api/tasks/[id]/stream/route.ts +77 -0
  1788. package/.forge/worktrees/pipeline-d59c2fe2/app/api/tasks/link/route.ts +37 -0
  1789. package/.forge/worktrees/pipeline-d59c2fe2/app/api/tasks/route.ts +44 -0
  1790. package/.forge/worktrees/pipeline-d59c2fe2/app/api/tasks/session/route.ts +14 -0
  1791. package/.forge/worktrees/pipeline-d59c2fe2/app/api/telegram/route.ts +23 -0
  1792. package/.forge/worktrees/pipeline-d59c2fe2/app/api/templates/route.ts +6 -0
  1793. package/.forge/worktrees/pipeline-d59c2fe2/app/api/terminal-bell/route.ts +35 -0
  1794. package/.forge/worktrees/pipeline-d59c2fe2/app/api/terminal-cwd/route.ts +19 -0
  1795. package/.forge/worktrees/pipeline-d59c2fe2/app/api/terminal-state/route.ts +15 -0
  1796. package/.forge/worktrees/pipeline-d59c2fe2/app/api/tunnel/route.ts +26 -0
  1797. package/.forge/worktrees/pipeline-d59c2fe2/app/api/upgrade/route.ts +43 -0
  1798. package/.forge/worktrees/pipeline-d59c2fe2/app/api/usage/route.ts +20 -0
  1799. package/.forge/worktrees/pipeline-d59c2fe2/app/api/version/route.ts +78 -0
  1800. package/.forge/worktrees/pipeline-d59c2fe2/app/api/watchers/route.ts +33 -0
  1801. package/.forge/worktrees/pipeline-d59c2fe2/app/api/workspace/[id]/agents/route.ts +35 -0
  1802. package/.forge/worktrees/pipeline-d59c2fe2/app/api/workspace/[id]/memory/route.ts +23 -0
  1803. package/.forge/worktrees/pipeline-d59c2fe2/app/api/workspace/[id]/smith/route.ts +22 -0
  1804. package/.forge/worktrees/pipeline-d59c2fe2/app/api/workspace/[id]/stream/route.ts +28 -0
  1805. package/.forge/worktrees/pipeline-d59c2fe2/app/api/workspace/route.ts +100 -0
  1806. package/.forge/worktrees/pipeline-d59c2fe2/app/global-error.tsx +21 -0
  1807. package/.forge/worktrees/pipeline-d59c2fe2/app/globals.css +52 -0
  1808. package/.forge/worktrees/pipeline-d59c2fe2/app/icon.ico +0 -0
  1809. package/.forge/worktrees/pipeline-d59c2fe2/app/icon.png +0 -0
  1810. package/.forge/worktrees/pipeline-d59c2fe2/app/icon.svg +106 -0
  1811. package/.forge/worktrees/pipeline-d59c2fe2/app/layout.tsx +17 -0
  1812. package/.forge/worktrees/pipeline-d59c2fe2/app/login/LoginForm.tsx +96 -0
  1813. package/.forge/worktrees/pipeline-d59c2fe2/app/login/page.tsx +10 -0
  1814. package/.forge/worktrees/pipeline-d59c2fe2/app/mobile/page.tsx +9 -0
  1815. package/.forge/worktrees/pipeline-d59c2fe2/app/page.tsx +21 -0
  1816. package/.forge/worktrees/pipeline-d59c2fe2/bin/forge-server.mjs +484 -0
  1817. package/.forge/worktrees/pipeline-d59c2fe2/check-forge-status.sh +71 -0
  1818. package/.forge/worktrees/pipeline-d59c2fe2/cli/mw.ts +579 -0
  1819. package/.forge/worktrees/pipeline-d59c2fe2/components/BrowserPanel.tsx +175 -0
  1820. package/.forge/worktrees/pipeline-d59c2fe2/components/ChatPanel.tsx +191 -0
  1821. package/.forge/worktrees/pipeline-d59c2fe2/components/ClaudeTerminal.tsx +267 -0
  1822. package/.forge/worktrees/pipeline-d59c2fe2/components/CodeViewer.tsx +787 -0
  1823. package/.forge/worktrees/pipeline-d59c2fe2/components/ConversationEditor.tsx +411 -0
  1824. package/.forge/worktrees/pipeline-d59c2fe2/components/ConversationGraphView.tsx +347 -0
  1825. package/.forge/worktrees/pipeline-d59c2fe2/components/ConversationTerminalView.tsx +303 -0
  1826. package/.forge/worktrees/pipeline-d59c2fe2/components/Dashboard.tsx +807 -0
  1827. package/.forge/worktrees/pipeline-d59c2fe2/components/DashboardWrapper.tsx +9 -0
  1828. package/.forge/worktrees/pipeline-d59c2fe2/components/DeliveryFlowEditor.tsx +491 -0
  1829. package/.forge/worktrees/pipeline-d59c2fe2/components/DeliveryList.tsx +230 -0
  1830. package/.forge/worktrees/pipeline-d59c2fe2/components/DeliveryWorkspace.tsx +589 -0
  1831. package/.forge/worktrees/pipeline-d59c2fe2/components/DocTerminal.tsx +187 -0
  1832. package/.forge/worktrees/pipeline-d59c2fe2/components/DocsViewer.tsx +574 -0
  1833. package/.forge/worktrees/pipeline-d59c2fe2/components/HelpDialog.tsx +169 -0
  1834. package/.forge/worktrees/pipeline-d59c2fe2/components/HelpTerminal.tsx +141 -0
  1835. package/.forge/worktrees/pipeline-d59c2fe2/components/InlinePipelineView.tsx +111 -0
  1836. package/.forge/worktrees/pipeline-d59c2fe2/components/LogViewer.tsx +194 -0
  1837. package/.forge/worktrees/pipeline-d59c2fe2/components/MarkdownContent.tsx +73 -0
  1838. package/.forge/worktrees/pipeline-d59c2fe2/components/MobileView.tsx +385 -0
  1839. package/.forge/worktrees/pipeline-d59c2fe2/components/MonitorPanel.tsx +122 -0
  1840. package/.forge/worktrees/pipeline-d59c2fe2/components/NewSessionModal.tsx +93 -0
  1841. package/.forge/worktrees/pipeline-d59c2fe2/components/NewTaskModal.tsx +492 -0
  1842. package/.forge/worktrees/pipeline-d59c2fe2/components/PipelineEditor.tsx +570 -0
  1843. package/.forge/worktrees/pipeline-d59c2fe2/components/PipelineView.tsx +1018 -0
  1844. package/.forge/worktrees/pipeline-d59c2fe2/components/PluginsPanel.tsx +472 -0
  1845. package/.forge/worktrees/pipeline-d59c2fe2/components/ProjectDetail.tsx +1618 -0
  1846. package/.forge/worktrees/pipeline-d59c2fe2/components/ProjectList.tsx +108 -0
  1847. package/.forge/worktrees/pipeline-d59c2fe2/components/ProjectManager.tsx +401 -0
  1848. package/.forge/worktrees/pipeline-d59c2fe2/components/SessionList.tsx +74 -0
  1849. package/.forge/worktrees/pipeline-d59c2fe2/components/SessionView.tsx +726 -0
  1850. package/.forge/worktrees/pipeline-d59c2fe2/components/SettingsModal.tsx +1647 -0
  1851. package/.forge/worktrees/pipeline-d59c2fe2/components/SkillsPanel.tsx +969 -0
  1852. package/.forge/worktrees/pipeline-d59c2fe2/components/StatusBar.tsx +99 -0
  1853. package/.forge/worktrees/pipeline-d59c2fe2/components/TabBar.tsx +46 -0
  1854. package/.forge/worktrees/pipeline-d59c2fe2/components/TaskBoard.tsx +113 -0
  1855. package/.forge/worktrees/pipeline-d59c2fe2/components/TaskDetail.tsx +372 -0
  1856. package/.forge/worktrees/pipeline-d59c2fe2/components/TerminalLauncher.tsx +398 -0
  1857. package/.forge/worktrees/pipeline-d59c2fe2/components/TunnelToggle.tsx +206 -0
  1858. package/.forge/worktrees/pipeline-d59c2fe2/components/UsagePanel.tsx +207 -0
  1859. package/.forge/worktrees/pipeline-d59c2fe2/components/WebTerminal.tsx +1683 -0
  1860. package/.forge/worktrees/pipeline-d59c2fe2/components/WorkspaceTree.tsx +221 -0
  1861. package/.forge/worktrees/pipeline-d59c2fe2/components/WorkspaceView.tsx +4048 -0
  1862. package/.forge/worktrees/pipeline-d59c2fe2/dev-test.sh +5 -0
  1863. package/.forge/worktrees/pipeline-d59c2fe2/docs/Forge_Memory_Layer_Design.docx +0 -0
  1864. package/.forge/worktrees/pipeline-d59c2fe2/docs/Forge_Strategy_Research_2026.docx +0 -0
  1865. package/.forge/worktrees/pipeline-d59c2fe2/docs/LOCAL-DEPLOY.md +144 -0
  1866. package/.forge/worktrees/pipeline-d59c2fe2/docs/roadmap-multi-agent-workflow.md +330 -0
  1867. package/.forge/worktrees/pipeline-d59c2fe2/forge-logo.png +0 -0
  1868. package/.forge/worktrees/pipeline-d59c2fe2/forge-logo.svg +106 -0
  1869. package/.forge/worktrees/pipeline-d59c2fe2/hooks/useSidebarResize.ts +52 -0
  1870. package/.forge/worktrees/pipeline-d59c2fe2/install.sh +29 -0
  1871. package/.forge/worktrees/pipeline-d59c2fe2/instrumentation.ts +35 -0
  1872. package/.forge/worktrees/pipeline-d59c2fe2/lib/agents/claude-adapter.ts +104 -0
  1873. package/.forge/worktrees/pipeline-d59c2fe2/lib/agents/generic-adapter.ts +64 -0
  1874. package/.forge/worktrees/pipeline-d59c2fe2/lib/agents/index.ts +245 -0
  1875. package/.forge/worktrees/pipeline-d59c2fe2/lib/agents/types.ts +70 -0
  1876. package/.forge/worktrees/pipeline-d59c2fe2/lib/artifacts.ts +106 -0
  1877. package/.forge/worktrees/pipeline-d59c2fe2/lib/auth.ts +62 -0
  1878. package/.forge/worktrees/pipeline-d59c2fe2/lib/builtin-plugins/docker.yaml +70 -0
  1879. package/.forge/worktrees/pipeline-d59c2fe2/lib/builtin-plugins/http.yaml +66 -0
  1880. package/.forge/worktrees/pipeline-d59c2fe2/lib/builtin-plugins/jenkins.yaml +92 -0
  1881. package/.forge/worktrees/pipeline-d59c2fe2/lib/builtin-plugins/llm-vision.yaml +85 -0
  1882. package/.forge/worktrees/pipeline-d59c2fe2/lib/builtin-plugins/playwright.yaml +111 -0
  1883. package/.forge/worktrees/pipeline-d59c2fe2/lib/builtin-plugins/shell-command.yaml +60 -0
  1884. package/.forge/worktrees/pipeline-d59c2fe2/lib/builtin-plugins/slack.yaml +48 -0
  1885. package/.forge/worktrees/pipeline-d59c2fe2/lib/builtin-plugins/webhook.yaml +56 -0
  1886. package/.forge/worktrees/pipeline-d59c2fe2/lib/claude-process.ts +361 -0
  1887. package/.forge/worktrees/pipeline-d59c2fe2/lib/claude-sessions.ts +266 -0
  1888. package/.forge/worktrees/pipeline-d59c2fe2/lib/claude-templates.ts +227 -0
  1889. package/.forge/worktrees/pipeline-d59c2fe2/lib/cloudflared.ts +424 -0
  1890. package/.forge/worktrees/pipeline-d59c2fe2/lib/crypto.ts +67 -0
  1891. package/.forge/worktrees/pipeline-d59c2fe2/lib/delivery.ts +787 -0
  1892. package/.forge/worktrees/pipeline-d59c2fe2/lib/dirs.ts +99 -0
  1893. package/.forge/worktrees/pipeline-d59c2fe2/lib/flows.ts +86 -0
  1894. package/.forge/worktrees/pipeline-d59c2fe2/lib/forge-mcp-server.ts +717 -0
  1895. package/.forge/worktrees/pipeline-d59c2fe2/lib/forge-skills/forge-inbox.md +38 -0
  1896. package/.forge/worktrees/pipeline-d59c2fe2/lib/forge-skills/forge-send.md +47 -0
  1897. package/.forge/worktrees/pipeline-d59c2fe2/lib/forge-skills/forge-status.md +32 -0
  1898. package/.forge/worktrees/pipeline-d59c2fe2/lib/forge-skills/forge-workspace-sync.md +37 -0
  1899. package/.forge/worktrees/pipeline-d59c2fe2/lib/help-docs/00-overview.md +40 -0
  1900. package/.forge/worktrees/pipeline-d59c2fe2/lib/help-docs/01-settings.md +194 -0
  1901. package/.forge/worktrees/pipeline-d59c2fe2/lib/help-docs/02-telegram.md +41 -0
  1902. package/.forge/worktrees/pipeline-d59c2fe2/lib/help-docs/03-tunnel.md +31 -0
  1903. package/.forge/worktrees/pipeline-d59c2fe2/lib/help-docs/04-tasks.md +52 -0
  1904. package/.forge/worktrees/pipeline-d59c2fe2/lib/help-docs/05-pipelines.md +460 -0
  1905. package/.forge/worktrees/pipeline-d59c2fe2/lib/help-docs/06-skills.md +43 -0
  1906. package/.forge/worktrees/pipeline-d59c2fe2/lib/help-docs/07-projects.md +73 -0
  1907. package/.forge/worktrees/pipeline-d59c2fe2/lib/help-docs/08-rules.md +53 -0
  1908. package/.forge/worktrees/pipeline-d59c2fe2/lib/help-docs/09-issue-autofix.md +55 -0
  1909. package/.forge/worktrees/pipeline-d59c2fe2/lib/help-docs/10-troubleshooting.md +89 -0
  1910. package/.forge/worktrees/pipeline-d59c2fe2/lib/help-docs/11-workspace.md +810 -0
  1911. package/.forge/worktrees/pipeline-d59c2fe2/lib/help-docs/CLAUDE.md +62 -0
  1912. package/.forge/worktrees/pipeline-d59c2fe2/lib/init.ts +266 -0
  1913. package/.forge/worktrees/pipeline-d59c2fe2/lib/issue-scanner.ts +298 -0
  1914. package/.forge/worktrees/pipeline-d59c2fe2/lib/logger.ts +79 -0
  1915. package/.forge/worktrees/pipeline-d59c2fe2/lib/notifications.ts +75 -0
  1916. package/.forge/worktrees/pipeline-d59c2fe2/lib/notify.ts +108 -0
  1917. package/.forge/worktrees/pipeline-d59c2fe2/lib/password.ts +97 -0
  1918. package/.forge/worktrees/pipeline-d59c2fe2/lib/pipeline-scheduler.ts +373 -0
  1919. package/.forge/worktrees/pipeline-d59c2fe2/lib/pipeline.ts +1441 -0
  1920. package/.forge/worktrees/pipeline-d59c2fe2/lib/plugins/executor.ts +347 -0
  1921. package/.forge/worktrees/pipeline-d59c2fe2/lib/plugins/registry.ts +228 -0
  1922. package/.forge/worktrees/pipeline-d59c2fe2/lib/plugins/types.ts +103 -0
  1923. package/.forge/worktrees/pipeline-d59c2fe2/lib/project-sessions.ts +53 -0
  1924. package/.forge/worktrees/pipeline-d59c2fe2/lib/projects.ts +86 -0
  1925. package/.forge/worktrees/pipeline-d59c2fe2/lib/session-manager.ts +156 -0
  1926. package/.forge/worktrees/pipeline-d59c2fe2/lib/session-utils.ts +53 -0
  1927. package/.forge/worktrees/pipeline-d59c2fe2/lib/session-watcher.ts +345 -0
  1928. package/.forge/worktrees/pipeline-d59c2fe2/lib/settings.ts +195 -0
  1929. package/.forge/worktrees/pipeline-d59c2fe2/lib/skills.ts +458 -0
  1930. package/.forge/worktrees/pipeline-d59c2fe2/lib/task-manager.ts +949 -0
  1931. package/.forge/worktrees/pipeline-d59c2fe2/lib/telegram-bot.ts +1477 -0
  1932. package/.forge/worktrees/pipeline-d59c2fe2/lib/telegram-standalone.ts +83 -0
  1933. package/.forge/worktrees/pipeline-d59c2fe2/lib/terminal-server.ts +70 -0
  1934. package/.forge/worktrees/pipeline-d59c2fe2/lib/terminal-standalone.ts +421 -0
  1935. package/.forge/worktrees/pipeline-d59c2fe2/lib/usage-scanner.ts +249 -0
  1936. package/.forge/worktrees/pipeline-d59c2fe2/lib/workspace/__tests__/state-machine.test.ts +388 -0
  1937. package/.forge/worktrees/pipeline-d59c2fe2/lib/workspace/__tests__/workspace.test.ts +311 -0
  1938. package/.forge/worktrees/pipeline-d59c2fe2/lib/workspace/agent-bus.ts +416 -0
  1939. package/.forge/worktrees/pipeline-d59c2fe2/lib/workspace/agent-worker.ts +655 -0
  1940. package/.forge/worktrees/pipeline-d59c2fe2/lib/workspace/backends/api-backend.ts +262 -0
  1941. package/.forge/worktrees/pipeline-d59c2fe2/lib/workspace/backends/cli-backend.ts +491 -0
  1942. package/.forge/worktrees/pipeline-d59c2fe2/lib/workspace/index.ts +82 -0
  1943. package/.forge/worktrees/pipeline-d59c2fe2/lib/workspace/manager.ts +136 -0
  1944. package/.forge/worktrees/pipeline-d59c2fe2/lib/workspace/orchestrator.ts +3400 -0
  1945. package/.forge/worktrees/pipeline-d59c2fe2/lib/workspace/persistence.ts +309 -0
  1946. package/.forge/worktrees/pipeline-d59c2fe2/lib/workspace/presets.ts +649 -0
  1947. package/.forge/worktrees/pipeline-d59c2fe2/lib/workspace/requests.ts +287 -0
  1948. package/.forge/worktrees/pipeline-d59c2fe2/lib/workspace/session-monitor.ts +240 -0
  1949. package/.forge/worktrees/pipeline-d59c2fe2/lib/workspace/skill-installer.ts +275 -0
  1950. package/.forge/worktrees/pipeline-d59c2fe2/lib/workspace/smith-memory.ts +498 -0
  1951. package/.forge/worktrees/pipeline-d59c2fe2/lib/workspace/types.ts +241 -0
  1952. package/.forge/worktrees/pipeline-d59c2fe2/lib/workspace/watch-manager.ts +560 -0
  1953. package/.forge/worktrees/pipeline-d59c2fe2/lib/workspace-standalone.ts +911 -0
  1954. package/.forge/worktrees/pipeline-d59c2fe2/middleware.ts +51 -0
  1955. package/.forge/worktrees/pipeline-d59c2fe2/next.config.ts +26 -0
  1956. package/.forge/worktrees/pipeline-d59c2fe2/package.json +74 -0
  1957. package/.forge/worktrees/pipeline-d59c2fe2/pnpm-lock.yaml +3719 -0
  1958. package/.forge/worktrees/pipeline-d59c2fe2/pnpm-workspace.yaml +1 -0
  1959. package/.forge/worktrees/pipeline-d59c2fe2/postcss.config.mjs +7 -0
  1960. package/.forge/worktrees/pipeline-d59c2fe2/publish.sh +133 -0
  1961. package/.forge/worktrees/pipeline-d59c2fe2/scripts/bench/README.md +66 -0
  1962. package/.forge/worktrees/pipeline-d59c2fe2/scripts/bench/results/.gitignore +2 -0
  1963. package/.forge/worktrees/pipeline-d59c2fe2/scripts/bench/run.ts +635 -0
  1964. package/.forge/worktrees/pipeline-d59c2fe2/scripts/bench/tasks/01-text-utils/task.md +26 -0
  1965. package/.forge/worktrees/pipeline-d59c2fe2/scripts/bench/tasks/01-text-utils/validator.sh +46 -0
  1966. package/.forge/worktrees/pipeline-d59c2fe2/scripts/bench/tasks/02-pagination/setup.sh +19 -0
  1967. package/.forge/worktrees/pipeline-d59c2fe2/scripts/bench/tasks/02-pagination/task.md +48 -0
  1968. package/.forge/worktrees/pipeline-d59c2fe2/scripts/bench/tasks/02-pagination/validator.sh +69 -0
  1969. package/.forge/worktrees/pipeline-d59c2fe2/scripts/bench/tasks/03-bug-fix/setup.sh +82 -0
  1970. package/.forge/worktrees/pipeline-d59c2fe2/scripts/bench/tasks/03-bug-fix/task.md +30 -0
  1971. package/.forge/worktrees/pipeline-d59c2fe2/scripts/bench/tasks/03-bug-fix/validator.sh +29 -0
  1972. package/.forge/worktrees/pipeline-d59c2fe2/scripts/verify-usage.ts +178 -0
  1973. package/.forge/worktrees/pipeline-d59c2fe2/src/config/index.ts +129 -0
  1974. package/.forge/worktrees/pipeline-d59c2fe2/src/core/db/database.ts +259 -0
  1975. package/.forge/worktrees/pipeline-d59c2fe2/src/core/memory/strategy.ts +32 -0
  1976. package/.forge/worktrees/pipeline-d59c2fe2/src/core/providers/chat.ts +65 -0
  1977. package/.forge/worktrees/pipeline-d59c2fe2/src/core/providers/registry.ts +60 -0
  1978. package/.forge/worktrees/pipeline-d59c2fe2/src/core/session/manager.ts +190 -0
  1979. package/.forge/worktrees/pipeline-d59c2fe2/src/types/index.ts +129 -0
  1980. package/.forge/worktrees/pipeline-d59c2fe2/start.sh +31 -0
  1981. package/.forge/worktrees/pipeline-d59c2fe2/templates/smith-lead.json +45 -0
  1982. package/.forge/worktrees/pipeline-d59c2fe2/tsconfig.json +42 -0
  1983. package/.forge/worktrees/pipeline-d6a6ef23/CLAUDE.md +86 -0
  1984. package/.forge/worktrees/pipeline-d6a6ef23/README.md +136 -0
  1985. package/.forge/worktrees/pipeline-d6a6ef23/RELEASE_NOTES.md +11 -0
  1986. package/.forge/worktrees/pipeline-d6a6ef23/app/api/agents/route.ts +17 -0
  1987. package/.forge/worktrees/pipeline-d6a6ef23/app/api/auth/[...nextauth]/route.ts +3 -0
  1988. package/.forge/worktrees/pipeline-d6a6ef23/app/api/auth/verify/route.ts +46 -0
  1989. package/.forge/worktrees/pipeline-d6a6ef23/app/api/claude/[id]/route.ts +31 -0
  1990. package/.forge/worktrees/pipeline-d6a6ef23/app/api/claude/[id]/stream/route.ts +63 -0
  1991. package/.forge/worktrees/pipeline-d6a6ef23/app/api/claude/route.ts +28 -0
  1992. package/.forge/worktrees/pipeline-d6a6ef23/app/api/claude-sessions/[projectName]/entries/route.ts +23 -0
  1993. package/.forge/worktrees/pipeline-d6a6ef23/app/api/claude-sessions/[projectName]/live/route.ts +72 -0
  1994. package/.forge/worktrees/pipeline-d6a6ef23/app/api/claude-sessions/[projectName]/route.ts +37 -0
  1995. package/.forge/worktrees/pipeline-d6a6ef23/app/api/claude-sessions/sync/route.ts +17 -0
  1996. package/.forge/worktrees/pipeline-d6a6ef23/app/api/claude-templates/route.ts +145 -0
  1997. package/.forge/worktrees/pipeline-d6a6ef23/app/api/code/route.ts +299 -0
  1998. package/.forge/worktrees/pipeline-d6a6ef23/app/api/delivery/[id]/route.ts +62 -0
  1999. package/.forge/worktrees/pipeline-d6a6ef23/app/api/delivery/route.ts +40 -0
  2000. package/.forge/worktrees/pipeline-d6a6ef23/app/api/detect-cli/route.ts +46 -0
  2001. package/.forge/worktrees/pipeline-d6a6ef23/app/api/docs/route.ts +176 -0
  2002. package/.forge/worktrees/pipeline-d6a6ef23/app/api/docs/sessions/route.ts +54 -0
  2003. package/.forge/worktrees/pipeline-d6a6ef23/app/api/favorites/route.ts +26 -0
  2004. package/.forge/worktrees/pipeline-d6a6ef23/app/api/flows/route.ts +6 -0
  2005. package/.forge/worktrees/pipeline-d6a6ef23/app/api/flows/run/route.ts +19 -0
  2006. package/.forge/worktrees/pipeline-d6a6ef23/app/api/git/route.ts +149 -0
  2007. package/.forge/worktrees/pipeline-d6a6ef23/app/api/help/route.ts +84 -0
  2008. package/.forge/worktrees/pipeline-d6a6ef23/app/api/issue-scanner/route.ts +116 -0
  2009. package/.forge/worktrees/pipeline-d6a6ef23/app/api/logs/route.ts +100 -0
  2010. package/.forge/worktrees/pipeline-d6a6ef23/app/api/mobile-chat/route.ts +115 -0
  2011. package/.forge/worktrees/pipeline-d6a6ef23/app/api/monitor/route.ts +74 -0
  2012. package/.forge/worktrees/pipeline-d6a6ef23/app/api/notifications/route.ts +42 -0
  2013. package/.forge/worktrees/pipeline-d6a6ef23/app/api/notify/test/route.ts +33 -0
  2014. package/.forge/worktrees/pipeline-d6a6ef23/app/api/online/route.ts +40 -0
  2015. package/.forge/worktrees/pipeline-d6a6ef23/app/api/pipelines/[id]/route.ts +41 -0
  2016. package/.forge/worktrees/pipeline-d6a6ef23/app/api/pipelines/route.ts +90 -0
  2017. package/.forge/worktrees/pipeline-d6a6ef23/app/api/plugins/route.ts +75 -0
  2018. package/.forge/worktrees/pipeline-d6a6ef23/app/api/preview/[...path]/route.ts +64 -0
  2019. package/.forge/worktrees/pipeline-d6a6ef23/app/api/preview/route.ts +156 -0
  2020. package/.forge/worktrees/pipeline-d6a6ef23/app/api/project-pipelines/route.ts +91 -0
  2021. package/.forge/worktrees/pipeline-d6a6ef23/app/api/project-sessions/route.ts +61 -0
  2022. package/.forge/worktrees/pipeline-d6a6ef23/app/api/projects/route.ts +26 -0
  2023. package/.forge/worktrees/pipeline-d6a6ef23/app/api/sessions/[id]/chat/route.ts +64 -0
  2024. package/.forge/worktrees/pipeline-d6a6ef23/app/api/sessions/[id]/messages/route.ts +9 -0
  2025. package/.forge/worktrees/pipeline-d6a6ef23/app/api/sessions/[id]/route.ts +17 -0
  2026. package/.forge/worktrees/pipeline-d6a6ef23/app/api/sessions/route.ts +20 -0
  2027. package/.forge/worktrees/pipeline-d6a6ef23/app/api/settings/route.ts +64 -0
  2028. package/.forge/worktrees/pipeline-d6a6ef23/app/api/skills/local/route.ts +228 -0
  2029. package/.forge/worktrees/pipeline-d6a6ef23/app/api/skills/route.ts +182 -0
  2030. package/.forge/worktrees/pipeline-d6a6ef23/app/api/smith-templates/route.ts +81 -0
  2031. package/.forge/worktrees/pipeline-d6a6ef23/app/api/status/route.ts +12 -0
  2032. package/.forge/worktrees/pipeline-d6a6ef23/app/api/tabs/route.ts +25 -0
  2033. package/.forge/worktrees/pipeline-d6a6ef23/app/api/tasks/[id]/route.ts +51 -0
  2034. package/.forge/worktrees/pipeline-d6a6ef23/app/api/tasks/[id]/stream/route.ts +77 -0
  2035. package/.forge/worktrees/pipeline-d6a6ef23/app/api/tasks/link/route.ts +37 -0
  2036. package/.forge/worktrees/pipeline-d6a6ef23/app/api/tasks/route.ts +44 -0
  2037. package/.forge/worktrees/pipeline-d6a6ef23/app/api/tasks/session/route.ts +14 -0
  2038. package/.forge/worktrees/pipeline-d6a6ef23/app/api/telegram/route.ts +23 -0
  2039. package/.forge/worktrees/pipeline-d6a6ef23/app/api/templates/route.ts +6 -0
  2040. package/.forge/worktrees/pipeline-d6a6ef23/app/api/terminal-bell/route.ts +35 -0
  2041. package/.forge/worktrees/pipeline-d6a6ef23/app/api/terminal-cwd/route.ts +19 -0
  2042. package/.forge/worktrees/pipeline-d6a6ef23/app/api/terminal-state/route.ts +15 -0
  2043. package/.forge/worktrees/pipeline-d6a6ef23/app/api/tunnel/route.ts +26 -0
  2044. package/.forge/worktrees/pipeline-d6a6ef23/app/api/upgrade/route.ts +43 -0
  2045. package/.forge/worktrees/pipeline-d6a6ef23/app/api/usage/route.ts +20 -0
  2046. package/.forge/worktrees/pipeline-d6a6ef23/app/api/version/route.ts +78 -0
  2047. package/.forge/worktrees/pipeline-d6a6ef23/app/api/watchers/route.ts +33 -0
  2048. package/.forge/worktrees/pipeline-d6a6ef23/app/api/workspace/[id]/agents/route.ts +35 -0
  2049. package/.forge/worktrees/pipeline-d6a6ef23/app/api/workspace/[id]/memory/route.ts +23 -0
  2050. package/.forge/worktrees/pipeline-d6a6ef23/app/api/workspace/[id]/smith/route.ts +22 -0
  2051. package/.forge/worktrees/pipeline-d6a6ef23/app/api/workspace/[id]/stream/route.ts +28 -0
  2052. package/.forge/worktrees/pipeline-d6a6ef23/app/api/workspace/route.ts +100 -0
  2053. package/.forge/worktrees/pipeline-d6a6ef23/app/global-error.tsx +21 -0
  2054. package/.forge/worktrees/pipeline-d6a6ef23/app/globals.css +52 -0
  2055. package/.forge/worktrees/pipeline-d6a6ef23/app/icon.ico +0 -0
  2056. package/.forge/worktrees/pipeline-d6a6ef23/app/icon.png +0 -0
  2057. package/.forge/worktrees/pipeline-d6a6ef23/app/icon.svg +106 -0
  2058. package/.forge/worktrees/pipeline-d6a6ef23/app/layout.tsx +17 -0
  2059. package/.forge/worktrees/pipeline-d6a6ef23/app/login/LoginForm.tsx +96 -0
  2060. package/.forge/worktrees/pipeline-d6a6ef23/app/login/page.tsx +10 -0
  2061. package/.forge/worktrees/pipeline-d6a6ef23/app/mobile/page.tsx +9 -0
  2062. package/.forge/worktrees/pipeline-d6a6ef23/app/page.tsx +21 -0
  2063. package/.forge/worktrees/pipeline-d6a6ef23/bin/forge-server.mjs +484 -0
  2064. package/.forge/worktrees/pipeline-d6a6ef23/check-forge-status.sh +71 -0
  2065. package/.forge/worktrees/pipeline-d6a6ef23/cli/mw.ts +579 -0
  2066. package/.forge/worktrees/pipeline-d6a6ef23/components/BrowserPanel.tsx +175 -0
  2067. package/.forge/worktrees/pipeline-d6a6ef23/components/ChatPanel.tsx +191 -0
  2068. package/.forge/worktrees/pipeline-d6a6ef23/components/ClaudeTerminal.tsx +267 -0
  2069. package/.forge/worktrees/pipeline-d6a6ef23/components/CodeViewer.tsx +787 -0
  2070. package/.forge/worktrees/pipeline-d6a6ef23/components/ConversationEditor.tsx +411 -0
  2071. package/.forge/worktrees/pipeline-d6a6ef23/components/ConversationGraphView.tsx +347 -0
  2072. package/.forge/worktrees/pipeline-d6a6ef23/components/ConversationTerminalView.tsx +303 -0
  2073. package/.forge/worktrees/pipeline-d6a6ef23/components/Dashboard.tsx +807 -0
  2074. package/.forge/worktrees/pipeline-d6a6ef23/components/DashboardWrapper.tsx +9 -0
  2075. package/.forge/worktrees/pipeline-d6a6ef23/components/DeliveryFlowEditor.tsx +491 -0
  2076. package/.forge/worktrees/pipeline-d6a6ef23/components/DeliveryList.tsx +230 -0
  2077. package/.forge/worktrees/pipeline-d6a6ef23/components/DeliveryWorkspace.tsx +589 -0
  2078. package/.forge/worktrees/pipeline-d6a6ef23/components/DocTerminal.tsx +187 -0
  2079. package/.forge/worktrees/pipeline-d6a6ef23/components/DocsViewer.tsx +574 -0
  2080. package/.forge/worktrees/pipeline-d6a6ef23/components/HelpDialog.tsx +169 -0
  2081. package/.forge/worktrees/pipeline-d6a6ef23/components/HelpTerminal.tsx +141 -0
  2082. package/.forge/worktrees/pipeline-d6a6ef23/components/InlinePipelineView.tsx +111 -0
  2083. package/.forge/worktrees/pipeline-d6a6ef23/components/LogViewer.tsx +194 -0
  2084. package/.forge/worktrees/pipeline-d6a6ef23/components/MarkdownContent.tsx +73 -0
  2085. package/.forge/worktrees/pipeline-d6a6ef23/components/MobileView.tsx +385 -0
  2086. package/.forge/worktrees/pipeline-d6a6ef23/components/MonitorPanel.tsx +122 -0
  2087. package/.forge/worktrees/pipeline-d6a6ef23/components/NewSessionModal.tsx +93 -0
  2088. package/.forge/worktrees/pipeline-d6a6ef23/components/NewTaskModal.tsx +492 -0
  2089. package/.forge/worktrees/pipeline-d6a6ef23/components/PipelineEditor.tsx +570 -0
  2090. package/.forge/worktrees/pipeline-d6a6ef23/components/PipelineView.tsx +1018 -0
  2091. package/.forge/worktrees/pipeline-d6a6ef23/components/PluginsPanel.tsx +472 -0
  2092. package/.forge/worktrees/pipeline-d6a6ef23/components/ProjectDetail.tsx +1618 -0
  2093. package/.forge/worktrees/pipeline-d6a6ef23/components/ProjectList.tsx +108 -0
  2094. package/.forge/worktrees/pipeline-d6a6ef23/components/ProjectManager.tsx +401 -0
  2095. package/.forge/worktrees/pipeline-d6a6ef23/components/SessionList.tsx +74 -0
  2096. package/.forge/worktrees/pipeline-d6a6ef23/components/SessionView.tsx +726 -0
  2097. package/.forge/worktrees/pipeline-d6a6ef23/components/SettingsModal.tsx +1647 -0
  2098. package/.forge/worktrees/pipeline-d6a6ef23/components/SkillsPanel.tsx +969 -0
  2099. package/.forge/worktrees/pipeline-d6a6ef23/components/StatusBar.tsx +99 -0
  2100. package/.forge/worktrees/pipeline-d6a6ef23/components/TabBar.tsx +46 -0
  2101. package/.forge/worktrees/pipeline-d6a6ef23/components/TaskBoard.tsx +113 -0
  2102. package/.forge/worktrees/pipeline-d6a6ef23/components/TaskDetail.tsx +372 -0
  2103. package/.forge/worktrees/pipeline-d6a6ef23/components/TerminalLauncher.tsx +398 -0
  2104. package/.forge/worktrees/pipeline-d6a6ef23/components/TunnelToggle.tsx +206 -0
  2105. package/.forge/worktrees/pipeline-d6a6ef23/components/UsagePanel.tsx +207 -0
  2106. package/.forge/worktrees/pipeline-d6a6ef23/components/WebTerminal.tsx +1683 -0
  2107. package/.forge/worktrees/pipeline-d6a6ef23/components/WorkspaceTree.tsx +221 -0
  2108. package/.forge/worktrees/pipeline-d6a6ef23/components/WorkspaceView.tsx +4048 -0
  2109. package/.forge/worktrees/pipeline-d6a6ef23/dev-test.sh +5 -0
  2110. package/.forge/worktrees/pipeline-d6a6ef23/docs/Forge_Memory_Layer_Design.docx +0 -0
  2111. package/.forge/worktrees/pipeline-d6a6ef23/docs/Forge_Strategy_Research_2026.docx +0 -0
  2112. package/.forge/worktrees/pipeline-d6a6ef23/docs/LOCAL-DEPLOY.md +144 -0
  2113. package/.forge/worktrees/pipeline-d6a6ef23/docs/roadmap-multi-agent-workflow.md +330 -0
  2114. package/.forge/worktrees/pipeline-d6a6ef23/forge-logo.png +0 -0
  2115. package/.forge/worktrees/pipeline-d6a6ef23/forge-logo.svg +106 -0
  2116. package/.forge/worktrees/pipeline-d6a6ef23/hooks/useSidebarResize.ts +52 -0
  2117. package/.forge/worktrees/pipeline-d6a6ef23/install.sh +29 -0
  2118. package/.forge/worktrees/pipeline-d6a6ef23/instrumentation.ts +35 -0
  2119. package/.forge/worktrees/pipeline-d6a6ef23/lib/agents/claude-adapter.ts +104 -0
  2120. package/.forge/worktrees/pipeline-d6a6ef23/lib/agents/generic-adapter.ts +64 -0
  2121. package/.forge/worktrees/pipeline-d6a6ef23/lib/agents/index.ts +245 -0
  2122. package/.forge/worktrees/pipeline-d6a6ef23/lib/agents/types.ts +70 -0
  2123. package/.forge/worktrees/pipeline-d6a6ef23/lib/artifacts.ts +106 -0
  2124. package/.forge/worktrees/pipeline-d6a6ef23/lib/auth.ts +62 -0
  2125. package/.forge/worktrees/pipeline-d6a6ef23/lib/builtin-plugins/docker.yaml +70 -0
  2126. package/.forge/worktrees/pipeline-d6a6ef23/lib/builtin-plugins/http.yaml +66 -0
  2127. package/.forge/worktrees/pipeline-d6a6ef23/lib/builtin-plugins/jenkins.yaml +92 -0
  2128. package/.forge/worktrees/pipeline-d6a6ef23/lib/builtin-plugins/llm-vision.yaml +85 -0
  2129. package/.forge/worktrees/pipeline-d6a6ef23/lib/builtin-plugins/playwright.yaml +111 -0
  2130. package/.forge/worktrees/pipeline-d6a6ef23/lib/builtin-plugins/shell-command.yaml +60 -0
  2131. package/.forge/worktrees/pipeline-d6a6ef23/lib/builtin-plugins/slack.yaml +48 -0
  2132. package/.forge/worktrees/pipeline-d6a6ef23/lib/builtin-plugins/webhook.yaml +56 -0
  2133. package/.forge/worktrees/pipeline-d6a6ef23/lib/claude-process.ts +352 -0
  2134. package/.forge/worktrees/pipeline-d6a6ef23/lib/claude-sessions.ts +266 -0
  2135. package/.forge/worktrees/pipeline-d6a6ef23/lib/claude-templates.ts +227 -0
  2136. package/.forge/worktrees/pipeline-d6a6ef23/lib/cloudflared.ts +424 -0
  2137. package/.forge/worktrees/pipeline-d6a6ef23/lib/crypto.ts +67 -0
  2138. package/.forge/worktrees/pipeline-d6a6ef23/lib/delivery.ts +787 -0
  2139. package/.forge/worktrees/pipeline-d6a6ef23/lib/dirs.ts +99 -0
  2140. package/.forge/worktrees/pipeline-d6a6ef23/lib/flows.ts +86 -0
  2141. package/.forge/worktrees/pipeline-d6a6ef23/lib/forge-mcp-server.ts +717 -0
  2142. package/.forge/worktrees/pipeline-d6a6ef23/lib/forge-skills/forge-inbox.md +38 -0
  2143. package/.forge/worktrees/pipeline-d6a6ef23/lib/forge-skills/forge-send.md +47 -0
  2144. package/.forge/worktrees/pipeline-d6a6ef23/lib/forge-skills/forge-status.md +32 -0
  2145. package/.forge/worktrees/pipeline-d6a6ef23/lib/forge-skills/forge-workspace-sync.md +37 -0
  2146. package/.forge/worktrees/pipeline-d6a6ef23/lib/help-docs/00-overview.md +40 -0
  2147. package/.forge/worktrees/pipeline-d6a6ef23/lib/help-docs/01-settings.md +194 -0
  2148. package/.forge/worktrees/pipeline-d6a6ef23/lib/help-docs/02-telegram.md +41 -0
  2149. package/.forge/worktrees/pipeline-d6a6ef23/lib/help-docs/03-tunnel.md +31 -0
  2150. package/.forge/worktrees/pipeline-d6a6ef23/lib/help-docs/04-tasks.md +52 -0
  2151. package/.forge/worktrees/pipeline-d6a6ef23/lib/help-docs/05-pipelines.md +460 -0
  2152. package/.forge/worktrees/pipeline-d6a6ef23/lib/help-docs/06-skills.md +43 -0
  2153. package/.forge/worktrees/pipeline-d6a6ef23/lib/help-docs/07-projects.md +73 -0
  2154. package/.forge/worktrees/pipeline-d6a6ef23/lib/help-docs/08-rules.md +53 -0
  2155. package/.forge/worktrees/pipeline-d6a6ef23/lib/help-docs/09-issue-autofix.md +55 -0
  2156. package/.forge/worktrees/pipeline-d6a6ef23/lib/help-docs/10-troubleshooting.md +89 -0
  2157. package/.forge/worktrees/pipeline-d6a6ef23/lib/help-docs/11-workspace.md +810 -0
  2158. package/.forge/worktrees/pipeline-d6a6ef23/lib/help-docs/CLAUDE.md +62 -0
  2159. package/.forge/worktrees/pipeline-d6a6ef23/lib/init.ts +266 -0
  2160. package/.forge/worktrees/pipeline-d6a6ef23/lib/issue-scanner.ts +298 -0
  2161. package/.forge/worktrees/pipeline-d6a6ef23/lib/logger.ts +79 -0
  2162. package/.forge/worktrees/pipeline-d6a6ef23/lib/notifications.ts +75 -0
  2163. package/.forge/worktrees/pipeline-d6a6ef23/lib/notify.ts +108 -0
  2164. package/.forge/worktrees/pipeline-d6a6ef23/lib/password.ts +97 -0
  2165. package/.forge/worktrees/pipeline-d6a6ef23/lib/pipeline-scheduler.ts +373 -0
  2166. package/.forge/worktrees/pipeline-d6a6ef23/lib/pipeline.ts +1438 -0
  2167. package/.forge/worktrees/pipeline-d6a6ef23/lib/plugins/executor.ts +347 -0
  2168. package/.forge/worktrees/pipeline-d6a6ef23/lib/plugins/registry.ts +228 -0
  2169. package/.forge/worktrees/pipeline-d6a6ef23/lib/plugins/types.ts +103 -0
  2170. package/.forge/worktrees/pipeline-d6a6ef23/lib/project-sessions.ts +53 -0
  2171. package/.forge/worktrees/pipeline-d6a6ef23/lib/projects.ts +86 -0
  2172. package/.forge/worktrees/pipeline-d6a6ef23/lib/session-manager.ts +156 -0
  2173. package/.forge/worktrees/pipeline-d6a6ef23/lib/session-utils.ts +53 -0
  2174. package/.forge/worktrees/pipeline-d6a6ef23/lib/session-watcher.ts +345 -0
  2175. package/.forge/worktrees/pipeline-d6a6ef23/lib/settings.ts +195 -0
  2176. package/.forge/worktrees/pipeline-d6a6ef23/lib/skills.ts +458 -0
  2177. package/.forge/worktrees/pipeline-d6a6ef23/lib/task-manager.ts +949 -0
  2178. package/.forge/worktrees/pipeline-d6a6ef23/lib/telegram-bot.ts +1477 -0
  2179. package/.forge/worktrees/pipeline-d6a6ef23/lib/telegram-standalone.ts +83 -0
  2180. package/.forge/worktrees/pipeline-d6a6ef23/lib/terminal-server.ts +70 -0
  2181. package/.forge/worktrees/pipeline-d6a6ef23/lib/terminal-standalone.ts +421 -0
  2182. package/.forge/worktrees/pipeline-d6a6ef23/lib/usage-scanner.ts +249 -0
  2183. package/.forge/worktrees/pipeline-d6a6ef23/lib/workspace/__tests__/state-machine.test.ts +388 -0
  2184. package/.forge/worktrees/pipeline-d6a6ef23/lib/workspace/__tests__/workspace.test.ts +311 -0
  2185. package/.forge/worktrees/pipeline-d6a6ef23/lib/workspace/agent-bus.ts +416 -0
  2186. package/.forge/worktrees/pipeline-d6a6ef23/lib/workspace/agent-worker.ts +655 -0
  2187. package/.forge/worktrees/pipeline-d6a6ef23/lib/workspace/backends/api-backend.ts +262 -0
  2188. package/.forge/worktrees/pipeline-d6a6ef23/lib/workspace/backends/cli-backend.ts +491 -0
  2189. package/.forge/worktrees/pipeline-d6a6ef23/lib/workspace/index.ts +82 -0
  2190. package/.forge/worktrees/pipeline-d6a6ef23/lib/workspace/manager.ts +136 -0
  2191. package/.forge/worktrees/pipeline-d6a6ef23/lib/workspace/orchestrator.ts +3400 -0
  2192. package/.forge/worktrees/pipeline-d6a6ef23/lib/workspace/persistence.ts +309 -0
  2193. package/.forge/worktrees/pipeline-d6a6ef23/lib/workspace/presets.ts +649 -0
  2194. package/.forge/worktrees/pipeline-d6a6ef23/lib/workspace/requests.ts +287 -0
  2195. package/.forge/worktrees/pipeline-d6a6ef23/lib/workspace/session-monitor.ts +240 -0
  2196. package/.forge/worktrees/pipeline-d6a6ef23/lib/workspace/skill-installer.ts +275 -0
  2197. package/.forge/worktrees/pipeline-d6a6ef23/lib/workspace/smith-memory.ts +498 -0
  2198. package/.forge/worktrees/pipeline-d6a6ef23/lib/workspace/types.ts +241 -0
  2199. package/.forge/worktrees/pipeline-d6a6ef23/lib/workspace/watch-manager.ts +560 -0
  2200. package/.forge/worktrees/pipeline-d6a6ef23/lib/workspace-standalone.ts +911 -0
  2201. package/.forge/worktrees/pipeline-d6a6ef23/middleware.ts +51 -0
  2202. package/.forge/worktrees/pipeline-d6a6ef23/next.config.ts +26 -0
  2203. package/.forge/worktrees/pipeline-d6a6ef23/package.json +74 -0
  2204. package/.forge/worktrees/pipeline-d6a6ef23/pnpm-lock.yaml +3719 -0
  2205. package/.forge/worktrees/pipeline-d6a6ef23/pnpm-workspace.yaml +1 -0
  2206. package/.forge/worktrees/pipeline-d6a6ef23/postcss.config.mjs +7 -0
  2207. package/.forge/worktrees/pipeline-d6a6ef23/publish.sh +133 -0
  2208. package/.forge/worktrees/pipeline-d6a6ef23/scripts/bench/README.md +66 -0
  2209. package/.forge/worktrees/pipeline-d6a6ef23/scripts/bench/results/.gitignore +2 -0
  2210. package/.forge/worktrees/pipeline-d6a6ef23/scripts/bench/run.ts +635 -0
  2211. package/.forge/worktrees/pipeline-d6a6ef23/scripts/bench/tasks/01-text-utils/task.md +26 -0
  2212. package/.forge/worktrees/pipeline-d6a6ef23/scripts/bench/tasks/01-text-utils/validator.sh +46 -0
  2213. package/.forge/worktrees/pipeline-d6a6ef23/scripts/bench/tasks/02-pagination/setup.sh +19 -0
  2214. package/.forge/worktrees/pipeline-d6a6ef23/scripts/bench/tasks/02-pagination/task.md +48 -0
  2215. package/.forge/worktrees/pipeline-d6a6ef23/scripts/bench/tasks/02-pagination/validator.sh +69 -0
  2216. package/.forge/worktrees/pipeline-d6a6ef23/scripts/bench/tasks/03-bug-fix/setup.sh +82 -0
  2217. package/.forge/worktrees/pipeline-d6a6ef23/scripts/bench/tasks/03-bug-fix/task.md +30 -0
  2218. package/.forge/worktrees/pipeline-d6a6ef23/scripts/bench/tasks/03-bug-fix/validator.sh +29 -0
  2219. package/.forge/worktrees/pipeline-d6a6ef23/scripts/verify-usage.ts +178 -0
  2220. package/.forge/worktrees/pipeline-d6a6ef23/src/config/index.ts +129 -0
  2221. package/.forge/worktrees/pipeline-d6a6ef23/src/core/db/database.ts +259 -0
  2222. package/.forge/worktrees/pipeline-d6a6ef23/src/core/memory/strategy.ts +32 -0
  2223. package/.forge/worktrees/pipeline-d6a6ef23/src/core/providers/chat.ts +65 -0
  2224. package/.forge/worktrees/pipeline-d6a6ef23/src/core/providers/registry.ts +60 -0
  2225. package/.forge/worktrees/pipeline-d6a6ef23/src/core/session/manager.ts +190 -0
  2226. package/.forge/worktrees/pipeline-d6a6ef23/src/types/index.ts +129 -0
  2227. package/.forge/worktrees/pipeline-d6a6ef23/start.sh +31 -0
  2228. package/.forge/worktrees/pipeline-d6a6ef23/templates/smith-lead.json +45 -0
  2229. package/.forge/worktrees/pipeline-d6a6ef23/tsconfig.json +42 -0
  2230. package/.forge/worktrees/pipeline-e7f78b7a/CLAUDE.md +86 -0
  2231. package/.forge/worktrees/pipeline-e7f78b7a/README.md +136 -0
  2232. package/.forge/worktrees/pipeline-e7f78b7a/RELEASE_NOTES.md +11 -0
  2233. package/.forge/worktrees/pipeline-e7f78b7a/app/api/agents/route.ts +17 -0
  2234. package/.forge/worktrees/pipeline-e7f78b7a/app/api/auth/[...nextauth]/route.ts +3 -0
  2235. package/.forge/worktrees/pipeline-e7f78b7a/app/api/auth/verify/route.ts +46 -0
  2236. package/.forge/worktrees/pipeline-e7f78b7a/app/api/claude/[id]/route.ts +31 -0
  2237. package/.forge/worktrees/pipeline-e7f78b7a/app/api/claude/[id]/stream/route.ts +63 -0
  2238. package/.forge/worktrees/pipeline-e7f78b7a/app/api/claude/route.ts +28 -0
  2239. package/.forge/worktrees/pipeline-e7f78b7a/app/api/claude-sessions/[projectName]/entries/route.ts +23 -0
  2240. package/.forge/worktrees/pipeline-e7f78b7a/app/api/claude-sessions/[projectName]/live/route.ts +72 -0
  2241. package/.forge/worktrees/pipeline-e7f78b7a/app/api/claude-sessions/[projectName]/route.ts +37 -0
  2242. package/.forge/worktrees/pipeline-e7f78b7a/app/api/claude-sessions/sync/route.ts +17 -0
  2243. package/.forge/worktrees/pipeline-e7f78b7a/app/api/claude-templates/route.ts +145 -0
  2244. package/.forge/worktrees/pipeline-e7f78b7a/app/api/code/route.ts +299 -0
  2245. package/.forge/worktrees/pipeline-e7f78b7a/app/api/delivery/[id]/route.ts +62 -0
  2246. package/.forge/worktrees/pipeline-e7f78b7a/app/api/delivery/route.ts +40 -0
  2247. package/.forge/worktrees/pipeline-e7f78b7a/app/api/detect-cli/route.ts +46 -0
  2248. package/.forge/worktrees/pipeline-e7f78b7a/app/api/docs/route.ts +176 -0
  2249. package/.forge/worktrees/pipeline-e7f78b7a/app/api/docs/sessions/route.ts +54 -0
  2250. package/.forge/worktrees/pipeline-e7f78b7a/app/api/favorites/route.ts +26 -0
  2251. package/.forge/worktrees/pipeline-e7f78b7a/app/api/flows/route.ts +6 -0
  2252. package/.forge/worktrees/pipeline-e7f78b7a/app/api/flows/run/route.ts +19 -0
  2253. package/.forge/worktrees/pipeline-e7f78b7a/app/api/git/route.ts +149 -0
  2254. package/.forge/worktrees/pipeline-e7f78b7a/app/api/help/route.ts +84 -0
  2255. package/.forge/worktrees/pipeline-e7f78b7a/app/api/issue-scanner/route.ts +116 -0
  2256. package/.forge/worktrees/pipeline-e7f78b7a/app/api/logs/route.ts +100 -0
  2257. package/.forge/worktrees/pipeline-e7f78b7a/app/api/mobile-chat/route.ts +115 -0
  2258. package/.forge/worktrees/pipeline-e7f78b7a/app/api/monitor/route.ts +74 -0
  2259. package/.forge/worktrees/pipeline-e7f78b7a/app/api/notifications/route.ts +42 -0
  2260. package/.forge/worktrees/pipeline-e7f78b7a/app/api/notify/test/route.ts +33 -0
  2261. package/.forge/worktrees/pipeline-e7f78b7a/app/api/online/route.ts +40 -0
  2262. package/.forge/worktrees/pipeline-e7f78b7a/app/api/pipelines/[id]/route.ts +41 -0
  2263. package/.forge/worktrees/pipeline-e7f78b7a/app/api/pipelines/route.ts +90 -0
  2264. package/.forge/worktrees/pipeline-e7f78b7a/app/api/plugins/route.ts +75 -0
  2265. package/.forge/worktrees/pipeline-e7f78b7a/app/api/preview/[...path]/route.ts +64 -0
  2266. package/.forge/worktrees/pipeline-e7f78b7a/app/api/preview/route.ts +156 -0
  2267. package/.forge/worktrees/pipeline-e7f78b7a/app/api/project-pipelines/route.ts +91 -0
  2268. package/.forge/worktrees/pipeline-e7f78b7a/app/api/project-sessions/route.ts +61 -0
  2269. package/.forge/worktrees/pipeline-e7f78b7a/app/api/projects/route.ts +26 -0
  2270. package/.forge/worktrees/pipeline-e7f78b7a/app/api/sessions/[id]/chat/route.ts +64 -0
  2271. package/.forge/worktrees/pipeline-e7f78b7a/app/api/sessions/[id]/messages/route.ts +9 -0
  2272. package/.forge/worktrees/pipeline-e7f78b7a/app/api/sessions/[id]/route.ts +17 -0
  2273. package/.forge/worktrees/pipeline-e7f78b7a/app/api/sessions/route.ts +20 -0
  2274. package/.forge/worktrees/pipeline-e7f78b7a/app/api/settings/route.ts +64 -0
  2275. package/.forge/worktrees/pipeline-e7f78b7a/app/api/skills/local/route.ts +228 -0
  2276. package/.forge/worktrees/pipeline-e7f78b7a/app/api/skills/route.ts +182 -0
  2277. package/.forge/worktrees/pipeline-e7f78b7a/app/api/smith-templates/route.ts +81 -0
  2278. package/.forge/worktrees/pipeline-e7f78b7a/app/api/status/route.ts +12 -0
  2279. package/.forge/worktrees/pipeline-e7f78b7a/app/api/tabs/route.ts +25 -0
  2280. package/.forge/worktrees/pipeline-e7f78b7a/app/api/tasks/[id]/route.ts +51 -0
  2281. package/.forge/worktrees/pipeline-e7f78b7a/app/api/tasks/[id]/stream/route.ts +77 -0
  2282. package/.forge/worktrees/pipeline-e7f78b7a/app/api/tasks/link/route.ts +37 -0
  2283. package/.forge/worktrees/pipeline-e7f78b7a/app/api/tasks/route.ts +44 -0
  2284. package/.forge/worktrees/pipeline-e7f78b7a/app/api/tasks/session/route.ts +14 -0
  2285. package/.forge/worktrees/pipeline-e7f78b7a/app/api/telegram/route.ts +23 -0
  2286. package/.forge/worktrees/pipeline-e7f78b7a/app/api/templates/route.ts +6 -0
  2287. package/.forge/worktrees/pipeline-e7f78b7a/app/api/terminal-bell/route.ts +35 -0
  2288. package/.forge/worktrees/pipeline-e7f78b7a/app/api/terminal-cwd/route.ts +19 -0
  2289. package/.forge/worktrees/pipeline-e7f78b7a/app/api/terminal-state/route.ts +15 -0
  2290. package/.forge/worktrees/pipeline-e7f78b7a/app/api/tunnel/route.ts +26 -0
  2291. package/.forge/worktrees/pipeline-e7f78b7a/app/api/upgrade/route.ts +43 -0
  2292. package/.forge/worktrees/pipeline-e7f78b7a/app/api/usage/route.ts +20 -0
  2293. package/.forge/worktrees/pipeline-e7f78b7a/app/api/version/route.ts +78 -0
  2294. package/.forge/worktrees/pipeline-e7f78b7a/app/api/watchers/route.ts +33 -0
  2295. package/.forge/worktrees/pipeline-e7f78b7a/app/api/workspace/[id]/agents/route.ts +35 -0
  2296. package/.forge/worktrees/pipeline-e7f78b7a/app/api/workspace/[id]/memory/route.ts +23 -0
  2297. package/.forge/worktrees/pipeline-e7f78b7a/app/api/workspace/[id]/smith/route.ts +22 -0
  2298. package/.forge/worktrees/pipeline-e7f78b7a/app/api/workspace/[id]/stream/route.ts +28 -0
  2299. package/.forge/worktrees/pipeline-e7f78b7a/app/api/workspace/route.ts +100 -0
  2300. package/.forge/worktrees/pipeline-e7f78b7a/app/global-error.tsx +21 -0
  2301. package/.forge/worktrees/pipeline-e7f78b7a/app/globals.css +52 -0
  2302. package/.forge/worktrees/pipeline-e7f78b7a/app/icon.ico +0 -0
  2303. package/.forge/worktrees/pipeline-e7f78b7a/app/icon.png +0 -0
  2304. package/.forge/worktrees/pipeline-e7f78b7a/app/icon.svg +106 -0
  2305. package/.forge/worktrees/pipeline-e7f78b7a/app/layout.tsx +17 -0
  2306. package/.forge/worktrees/pipeline-e7f78b7a/app/login/LoginForm.tsx +96 -0
  2307. package/.forge/worktrees/pipeline-e7f78b7a/app/login/page.tsx +10 -0
  2308. package/.forge/worktrees/pipeline-e7f78b7a/app/mobile/page.tsx +9 -0
  2309. package/.forge/worktrees/pipeline-e7f78b7a/app/page.tsx +21 -0
  2310. package/.forge/worktrees/pipeline-e7f78b7a/bin/forge-server.mjs +484 -0
  2311. package/.forge/worktrees/pipeline-e7f78b7a/check-forge-status.sh +71 -0
  2312. package/.forge/worktrees/pipeline-e7f78b7a/cli/mw.ts +579 -0
  2313. package/.forge/worktrees/pipeline-e7f78b7a/components/BrowserPanel.tsx +175 -0
  2314. package/.forge/worktrees/pipeline-e7f78b7a/components/ChatPanel.tsx +191 -0
  2315. package/.forge/worktrees/pipeline-e7f78b7a/components/ClaudeTerminal.tsx +267 -0
  2316. package/.forge/worktrees/pipeline-e7f78b7a/components/CodeViewer.tsx +787 -0
  2317. package/.forge/worktrees/pipeline-e7f78b7a/components/ConversationEditor.tsx +411 -0
  2318. package/.forge/worktrees/pipeline-e7f78b7a/components/ConversationGraphView.tsx +347 -0
  2319. package/.forge/worktrees/pipeline-e7f78b7a/components/ConversationTerminalView.tsx +303 -0
  2320. package/.forge/worktrees/pipeline-e7f78b7a/components/Dashboard.tsx +807 -0
  2321. package/.forge/worktrees/pipeline-e7f78b7a/components/DashboardWrapper.tsx +9 -0
  2322. package/.forge/worktrees/pipeline-e7f78b7a/components/DeliveryFlowEditor.tsx +491 -0
  2323. package/.forge/worktrees/pipeline-e7f78b7a/components/DeliveryList.tsx +230 -0
  2324. package/.forge/worktrees/pipeline-e7f78b7a/components/DeliveryWorkspace.tsx +589 -0
  2325. package/.forge/worktrees/pipeline-e7f78b7a/components/DocTerminal.tsx +187 -0
  2326. package/.forge/worktrees/pipeline-e7f78b7a/components/DocsViewer.tsx +574 -0
  2327. package/.forge/worktrees/pipeline-e7f78b7a/components/HelpDialog.tsx +169 -0
  2328. package/.forge/worktrees/pipeline-e7f78b7a/components/HelpTerminal.tsx +141 -0
  2329. package/.forge/worktrees/pipeline-e7f78b7a/components/InlinePipelineView.tsx +111 -0
  2330. package/.forge/worktrees/pipeline-e7f78b7a/components/LogViewer.tsx +194 -0
  2331. package/.forge/worktrees/pipeline-e7f78b7a/components/MarkdownContent.tsx +73 -0
  2332. package/.forge/worktrees/pipeline-e7f78b7a/components/MobileView.tsx +385 -0
  2333. package/.forge/worktrees/pipeline-e7f78b7a/components/MonitorPanel.tsx +122 -0
  2334. package/.forge/worktrees/pipeline-e7f78b7a/components/NewSessionModal.tsx +93 -0
  2335. package/.forge/worktrees/pipeline-e7f78b7a/components/NewTaskModal.tsx +492 -0
  2336. package/.forge/worktrees/pipeline-e7f78b7a/components/PipelineEditor.tsx +570 -0
  2337. package/.forge/worktrees/pipeline-e7f78b7a/components/PipelineView.tsx +1018 -0
  2338. package/.forge/worktrees/pipeline-e7f78b7a/components/PluginsPanel.tsx +472 -0
  2339. package/.forge/worktrees/pipeline-e7f78b7a/components/ProjectDetail.tsx +1618 -0
  2340. package/.forge/worktrees/pipeline-e7f78b7a/components/ProjectList.tsx +108 -0
  2341. package/.forge/worktrees/pipeline-e7f78b7a/components/ProjectManager.tsx +401 -0
  2342. package/.forge/worktrees/pipeline-e7f78b7a/components/SessionList.tsx +74 -0
  2343. package/.forge/worktrees/pipeline-e7f78b7a/components/SessionView.tsx +726 -0
  2344. package/.forge/worktrees/pipeline-e7f78b7a/components/SettingsModal.tsx +1647 -0
  2345. package/.forge/worktrees/pipeline-e7f78b7a/components/SkillsPanel.tsx +969 -0
  2346. package/.forge/worktrees/pipeline-e7f78b7a/components/StatusBar.tsx +99 -0
  2347. package/.forge/worktrees/pipeline-e7f78b7a/components/TabBar.tsx +46 -0
  2348. package/.forge/worktrees/pipeline-e7f78b7a/components/TaskBoard.tsx +113 -0
  2349. package/.forge/worktrees/pipeline-e7f78b7a/components/TaskDetail.tsx +372 -0
  2350. package/.forge/worktrees/pipeline-e7f78b7a/components/TerminalLauncher.tsx +398 -0
  2351. package/.forge/worktrees/pipeline-e7f78b7a/components/TunnelToggle.tsx +206 -0
  2352. package/.forge/worktrees/pipeline-e7f78b7a/components/UsagePanel.tsx +207 -0
  2353. package/.forge/worktrees/pipeline-e7f78b7a/components/WebTerminal.tsx +1683 -0
  2354. package/.forge/worktrees/pipeline-e7f78b7a/components/WorkspaceTree.tsx +221 -0
  2355. package/.forge/worktrees/pipeline-e7f78b7a/components/WorkspaceView.tsx +4048 -0
  2356. package/.forge/worktrees/pipeline-e7f78b7a/dev-test.sh +5 -0
  2357. package/.forge/worktrees/pipeline-e7f78b7a/docs/Forge_Memory_Layer_Design.docx +0 -0
  2358. package/.forge/worktrees/pipeline-e7f78b7a/docs/Forge_Strategy_Research_2026.docx +0 -0
  2359. package/.forge/worktrees/pipeline-e7f78b7a/docs/LOCAL-DEPLOY.md +144 -0
  2360. package/.forge/worktrees/pipeline-e7f78b7a/docs/roadmap-multi-agent-workflow.md +330 -0
  2361. package/.forge/worktrees/pipeline-e7f78b7a/forge-logo.png +0 -0
  2362. package/.forge/worktrees/pipeline-e7f78b7a/forge-logo.svg +106 -0
  2363. package/.forge/worktrees/pipeline-e7f78b7a/hooks/useSidebarResize.ts +52 -0
  2364. package/.forge/worktrees/pipeline-e7f78b7a/install.sh +29 -0
  2365. package/.forge/worktrees/pipeline-e7f78b7a/instrumentation.ts +35 -0
  2366. package/.forge/worktrees/pipeline-e7f78b7a/lib/agents/claude-adapter.ts +104 -0
  2367. package/.forge/worktrees/pipeline-e7f78b7a/lib/agents/generic-adapter.ts +64 -0
  2368. package/.forge/worktrees/pipeline-e7f78b7a/lib/agents/index.ts +245 -0
  2369. package/.forge/worktrees/pipeline-e7f78b7a/lib/agents/types.ts +70 -0
  2370. package/.forge/worktrees/pipeline-e7f78b7a/lib/artifacts.ts +106 -0
  2371. package/.forge/worktrees/pipeline-e7f78b7a/lib/auth.ts +62 -0
  2372. package/.forge/worktrees/pipeline-e7f78b7a/lib/builtin-plugins/docker.yaml +70 -0
  2373. package/.forge/worktrees/pipeline-e7f78b7a/lib/builtin-plugins/http.yaml +66 -0
  2374. package/.forge/worktrees/pipeline-e7f78b7a/lib/builtin-plugins/jenkins.yaml +92 -0
  2375. package/.forge/worktrees/pipeline-e7f78b7a/lib/builtin-plugins/llm-vision.yaml +85 -0
  2376. package/.forge/worktrees/pipeline-e7f78b7a/lib/builtin-plugins/playwright.yaml +111 -0
  2377. package/.forge/worktrees/pipeline-e7f78b7a/lib/builtin-plugins/shell-command.yaml +60 -0
  2378. package/.forge/worktrees/pipeline-e7f78b7a/lib/builtin-plugins/slack.yaml +48 -0
  2379. package/.forge/worktrees/pipeline-e7f78b7a/lib/builtin-plugins/webhook.yaml +56 -0
  2380. package/.forge/worktrees/pipeline-e7f78b7a/lib/claude-process.ts +352 -0
  2381. package/.forge/worktrees/pipeline-e7f78b7a/lib/claude-sessions.ts +266 -0
  2382. package/.forge/worktrees/pipeline-e7f78b7a/lib/claude-templates.ts +227 -0
  2383. package/.forge/worktrees/pipeline-e7f78b7a/lib/cloudflared.ts +424 -0
  2384. package/.forge/worktrees/pipeline-e7f78b7a/lib/crypto.ts +67 -0
  2385. package/.forge/worktrees/pipeline-e7f78b7a/lib/delivery.ts +787 -0
  2386. package/.forge/worktrees/pipeline-e7f78b7a/lib/dirs.ts +99 -0
  2387. package/.forge/worktrees/pipeline-e7f78b7a/lib/flows.ts +86 -0
  2388. package/.forge/worktrees/pipeline-e7f78b7a/lib/forge-mcp-server.ts +717 -0
  2389. package/.forge/worktrees/pipeline-e7f78b7a/lib/forge-skills/forge-inbox.md +38 -0
  2390. package/.forge/worktrees/pipeline-e7f78b7a/lib/forge-skills/forge-send.md +47 -0
  2391. package/.forge/worktrees/pipeline-e7f78b7a/lib/forge-skills/forge-status.md +32 -0
  2392. package/.forge/worktrees/pipeline-e7f78b7a/lib/forge-skills/forge-workspace-sync.md +37 -0
  2393. package/.forge/worktrees/pipeline-e7f78b7a/lib/help-docs/00-overview.md +40 -0
  2394. package/.forge/worktrees/pipeline-e7f78b7a/lib/help-docs/01-settings.md +194 -0
  2395. package/.forge/worktrees/pipeline-e7f78b7a/lib/help-docs/02-telegram.md +41 -0
  2396. package/.forge/worktrees/pipeline-e7f78b7a/lib/help-docs/03-tunnel.md +31 -0
  2397. package/.forge/worktrees/pipeline-e7f78b7a/lib/help-docs/04-tasks.md +52 -0
  2398. package/.forge/worktrees/pipeline-e7f78b7a/lib/help-docs/05-pipelines.md +460 -0
  2399. package/.forge/worktrees/pipeline-e7f78b7a/lib/help-docs/06-skills.md +43 -0
  2400. package/.forge/worktrees/pipeline-e7f78b7a/lib/help-docs/07-projects.md +73 -0
  2401. package/.forge/worktrees/pipeline-e7f78b7a/lib/help-docs/08-rules.md +53 -0
  2402. package/.forge/worktrees/pipeline-e7f78b7a/lib/help-docs/09-issue-autofix.md +55 -0
  2403. package/.forge/worktrees/pipeline-e7f78b7a/lib/help-docs/10-troubleshooting.md +89 -0
  2404. package/.forge/worktrees/pipeline-e7f78b7a/lib/help-docs/11-workspace.md +810 -0
  2405. package/.forge/worktrees/pipeline-e7f78b7a/lib/help-docs/CLAUDE.md +62 -0
  2406. package/.forge/worktrees/pipeline-e7f78b7a/lib/init.ts +266 -0
  2407. package/.forge/worktrees/pipeline-e7f78b7a/lib/issue-scanner.ts +298 -0
  2408. package/.forge/worktrees/pipeline-e7f78b7a/lib/logger.ts +79 -0
  2409. package/.forge/worktrees/pipeline-e7f78b7a/lib/notifications.ts +75 -0
  2410. package/.forge/worktrees/pipeline-e7f78b7a/lib/notify.ts +108 -0
  2411. package/.forge/worktrees/pipeline-e7f78b7a/lib/password.ts +97 -0
  2412. package/.forge/worktrees/pipeline-e7f78b7a/lib/pipeline-scheduler.ts +373 -0
  2413. package/.forge/worktrees/pipeline-e7f78b7a/lib/pipeline.ts +1441 -0
  2414. package/.forge/worktrees/pipeline-e7f78b7a/lib/plugins/executor.ts +347 -0
  2415. package/.forge/worktrees/pipeline-e7f78b7a/lib/plugins/registry.ts +228 -0
  2416. package/.forge/worktrees/pipeline-e7f78b7a/lib/plugins/types.ts +103 -0
  2417. package/.forge/worktrees/pipeline-e7f78b7a/lib/project-sessions.ts +53 -0
  2418. package/.forge/worktrees/pipeline-e7f78b7a/lib/projects.ts +86 -0
  2419. package/.forge/worktrees/pipeline-e7f78b7a/lib/session-manager.ts +156 -0
  2420. package/.forge/worktrees/pipeline-e7f78b7a/lib/session-utils.ts +53 -0
  2421. package/.forge/worktrees/pipeline-e7f78b7a/lib/session-watcher.ts +345 -0
  2422. package/.forge/worktrees/pipeline-e7f78b7a/lib/settings.ts +195 -0
  2423. package/.forge/worktrees/pipeline-e7f78b7a/lib/skills.ts +458 -0
  2424. package/.forge/worktrees/pipeline-e7f78b7a/lib/task-manager.ts +949 -0
  2425. package/.forge/worktrees/pipeline-e7f78b7a/lib/telegram-bot.ts +1477 -0
  2426. package/.forge/worktrees/pipeline-e7f78b7a/lib/telegram-standalone.ts +83 -0
  2427. package/.forge/worktrees/pipeline-e7f78b7a/lib/terminal-server.ts +70 -0
  2428. package/.forge/worktrees/pipeline-e7f78b7a/lib/terminal-standalone.ts +421 -0
  2429. package/.forge/worktrees/pipeline-e7f78b7a/lib/usage-scanner.ts +249 -0
  2430. package/.forge/worktrees/pipeline-e7f78b7a/lib/workspace/__tests__/state-machine.test.ts +388 -0
  2431. package/.forge/worktrees/pipeline-e7f78b7a/lib/workspace/__tests__/workspace.test.ts +311 -0
  2432. package/.forge/worktrees/pipeline-e7f78b7a/lib/workspace/agent-bus.ts +416 -0
  2433. package/.forge/worktrees/pipeline-e7f78b7a/lib/workspace/agent-worker.ts +655 -0
  2434. package/.forge/worktrees/pipeline-e7f78b7a/lib/workspace/backends/api-backend.ts +262 -0
  2435. package/.forge/worktrees/pipeline-e7f78b7a/lib/workspace/backends/cli-backend.ts +491 -0
  2436. package/.forge/worktrees/pipeline-e7f78b7a/lib/workspace/index.ts +82 -0
  2437. package/.forge/worktrees/pipeline-e7f78b7a/lib/workspace/manager.ts +136 -0
  2438. package/.forge/worktrees/pipeline-e7f78b7a/lib/workspace/orchestrator.ts +3400 -0
  2439. package/.forge/worktrees/pipeline-e7f78b7a/lib/workspace/persistence.ts +309 -0
  2440. package/.forge/worktrees/pipeline-e7f78b7a/lib/workspace/presets.ts +649 -0
  2441. package/.forge/worktrees/pipeline-e7f78b7a/lib/workspace/requests.ts +287 -0
  2442. package/.forge/worktrees/pipeline-e7f78b7a/lib/workspace/session-monitor.ts +240 -0
  2443. package/.forge/worktrees/pipeline-e7f78b7a/lib/workspace/skill-installer.ts +275 -0
  2444. package/.forge/worktrees/pipeline-e7f78b7a/lib/workspace/smith-memory.ts +498 -0
  2445. package/.forge/worktrees/pipeline-e7f78b7a/lib/workspace/types.ts +241 -0
  2446. package/.forge/worktrees/pipeline-e7f78b7a/lib/workspace/watch-manager.ts +560 -0
  2447. package/.forge/worktrees/pipeline-e7f78b7a/lib/workspace-standalone.ts +911 -0
  2448. package/.forge/worktrees/pipeline-e7f78b7a/middleware.ts +51 -0
  2449. package/.forge/worktrees/pipeline-e7f78b7a/next.config.ts +26 -0
  2450. package/.forge/worktrees/pipeline-e7f78b7a/package.json +74 -0
  2451. package/.forge/worktrees/pipeline-e7f78b7a/pnpm-lock.yaml +3719 -0
  2452. package/.forge/worktrees/pipeline-e7f78b7a/pnpm-workspace.yaml +1 -0
  2453. package/.forge/worktrees/pipeline-e7f78b7a/postcss.config.mjs +7 -0
  2454. package/.forge/worktrees/pipeline-e7f78b7a/publish.sh +133 -0
  2455. package/.forge/worktrees/pipeline-e7f78b7a/scripts/bench/README.md +66 -0
  2456. package/.forge/worktrees/pipeline-e7f78b7a/scripts/bench/results/.gitignore +2 -0
  2457. package/.forge/worktrees/pipeline-e7f78b7a/scripts/bench/run.ts +635 -0
  2458. package/.forge/worktrees/pipeline-e7f78b7a/scripts/bench/tasks/01-text-utils/task.md +26 -0
  2459. package/.forge/worktrees/pipeline-e7f78b7a/scripts/bench/tasks/01-text-utils/validator.sh +46 -0
  2460. package/.forge/worktrees/pipeline-e7f78b7a/scripts/bench/tasks/02-pagination/setup.sh +19 -0
  2461. package/.forge/worktrees/pipeline-e7f78b7a/scripts/bench/tasks/02-pagination/task.md +48 -0
  2462. package/.forge/worktrees/pipeline-e7f78b7a/scripts/bench/tasks/02-pagination/validator.sh +69 -0
  2463. package/.forge/worktrees/pipeline-e7f78b7a/scripts/bench/tasks/03-bug-fix/setup.sh +82 -0
  2464. package/.forge/worktrees/pipeline-e7f78b7a/scripts/bench/tasks/03-bug-fix/task.md +30 -0
  2465. package/.forge/worktrees/pipeline-e7f78b7a/scripts/bench/tasks/03-bug-fix/validator.sh +29 -0
  2466. package/.forge/worktrees/pipeline-e7f78b7a/scripts/verify-usage.ts +178 -0
  2467. package/.forge/worktrees/pipeline-e7f78b7a/src/config/index.ts +129 -0
  2468. package/.forge/worktrees/pipeline-e7f78b7a/src/core/db/database.ts +259 -0
  2469. package/.forge/worktrees/pipeline-e7f78b7a/src/core/memory/strategy.ts +32 -0
  2470. package/.forge/worktrees/pipeline-e7f78b7a/src/core/providers/chat.ts +65 -0
  2471. package/.forge/worktrees/pipeline-e7f78b7a/src/core/providers/registry.ts +60 -0
  2472. package/.forge/worktrees/pipeline-e7f78b7a/src/core/session/manager.ts +190 -0
  2473. package/.forge/worktrees/pipeline-e7f78b7a/src/types/index.ts +129 -0
  2474. package/.forge/worktrees/pipeline-e7f78b7a/start.sh +31 -0
  2475. package/.forge/worktrees/pipeline-e7f78b7a/templates/smith-lead.json +45 -0
  2476. package/.forge/worktrees/pipeline-e7f78b7a/tsconfig.json +42 -0
  2477. package/.forge/worktrees/pipeline-e97c13c7/CLAUDE.md +86 -0
  2478. package/.forge/worktrees/pipeline-e97c13c7/README.md +136 -0
  2479. package/.forge/worktrees/pipeline-e97c13c7/RELEASE_NOTES.md +11 -0
  2480. package/.forge/worktrees/pipeline-e97c13c7/app/api/agents/route.ts +17 -0
  2481. package/.forge/worktrees/pipeline-e97c13c7/app/api/auth/[...nextauth]/route.ts +3 -0
  2482. package/.forge/worktrees/pipeline-e97c13c7/app/api/auth/verify/route.ts +46 -0
  2483. package/.forge/worktrees/pipeline-e97c13c7/app/api/claude/[id]/route.ts +31 -0
  2484. package/.forge/worktrees/pipeline-e97c13c7/app/api/claude/[id]/stream/route.ts +63 -0
  2485. package/.forge/worktrees/pipeline-e97c13c7/app/api/claude/route.ts +28 -0
  2486. package/.forge/worktrees/pipeline-e97c13c7/app/api/claude-sessions/[projectName]/entries/route.ts +23 -0
  2487. package/.forge/worktrees/pipeline-e97c13c7/app/api/claude-sessions/[projectName]/live/route.ts +72 -0
  2488. package/.forge/worktrees/pipeline-e97c13c7/app/api/claude-sessions/[projectName]/route.ts +37 -0
  2489. package/.forge/worktrees/pipeline-e97c13c7/app/api/claude-sessions/sync/route.ts +17 -0
  2490. package/.forge/worktrees/pipeline-e97c13c7/app/api/claude-templates/route.ts +145 -0
  2491. package/.forge/worktrees/pipeline-e97c13c7/app/api/code/route.ts +299 -0
  2492. package/.forge/worktrees/pipeline-e97c13c7/app/api/delivery/[id]/route.ts +62 -0
  2493. package/.forge/worktrees/pipeline-e97c13c7/app/api/delivery/route.ts +40 -0
  2494. package/.forge/worktrees/pipeline-e97c13c7/app/api/detect-cli/route.ts +46 -0
  2495. package/.forge/worktrees/pipeline-e97c13c7/app/api/docs/route.ts +176 -0
  2496. package/.forge/worktrees/pipeline-e97c13c7/app/api/docs/sessions/route.ts +54 -0
  2497. package/.forge/worktrees/pipeline-e97c13c7/app/api/favorites/route.ts +26 -0
  2498. package/.forge/worktrees/pipeline-e97c13c7/app/api/flows/route.ts +6 -0
  2499. package/.forge/worktrees/pipeline-e97c13c7/app/api/flows/run/route.ts +19 -0
  2500. package/.forge/worktrees/pipeline-e97c13c7/app/api/git/route.ts +149 -0
  2501. package/.forge/worktrees/pipeline-e97c13c7/app/api/help/route.ts +84 -0
  2502. package/.forge/worktrees/pipeline-e97c13c7/app/api/issue-scanner/route.ts +116 -0
  2503. package/.forge/worktrees/pipeline-e97c13c7/app/api/logs/route.ts +100 -0
  2504. package/.forge/worktrees/pipeline-e97c13c7/app/api/mobile-chat/route.ts +115 -0
  2505. package/.forge/worktrees/pipeline-e97c13c7/app/api/monitor/route.ts +74 -0
  2506. package/.forge/worktrees/pipeline-e97c13c7/app/api/notifications/route.ts +42 -0
  2507. package/.forge/worktrees/pipeline-e97c13c7/app/api/notify/test/route.ts +33 -0
  2508. package/.forge/worktrees/pipeline-e97c13c7/app/api/online/route.ts +40 -0
  2509. package/.forge/worktrees/pipeline-e97c13c7/app/api/pipelines/[id]/route.ts +41 -0
  2510. package/.forge/worktrees/pipeline-e97c13c7/app/api/pipelines/route.ts +90 -0
  2511. package/.forge/worktrees/pipeline-e97c13c7/app/api/plugins/route.ts +75 -0
  2512. package/.forge/worktrees/pipeline-e97c13c7/app/api/preview/[...path]/route.ts +64 -0
  2513. package/.forge/worktrees/pipeline-e97c13c7/app/api/preview/route.ts +156 -0
  2514. package/.forge/worktrees/pipeline-e97c13c7/app/api/project-pipelines/route.ts +91 -0
  2515. package/.forge/worktrees/pipeline-e97c13c7/app/api/project-sessions/route.ts +61 -0
  2516. package/.forge/worktrees/pipeline-e97c13c7/app/api/projects/route.ts +26 -0
  2517. package/.forge/worktrees/pipeline-e97c13c7/app/api/sessions/[id]/chat/route.ts +64 -0
  2518. package/.forge/worktrees/pipeline-e97c13c7/app/api/sessions/[id]/messages/route.ts +9 -0
  2519. package/.forge/worktrees/pipeline-e97c13c7/app/api/sessions/[id]/route.ts +17 -0
  2520. package/.forge/worktrees/pipeline-e97c13c7/app/api/sessions/route.ts +20 -0
  2521. package/.forge/worktrees/pipeline-e97c13c7/app/api/settings/route.ts +64 -0
  2522. package/.forge/worktrees/pipeline-e97c13c7/app/api/skills/local/route.ts +228 -0
  2523. package/.forge/worktrees/pipeline-e97c13c7/app/api/skills/route.ts +182 -0
  2524. package/.forge/worktrees/pipeline-e97c13c7/app/api/smith-templates/route.ts +81 -0
  2525. package/.forge/worktrees/pipeline-e97c13c7/app/api/status/route.ts +12 -0
  2526. package/.forge/worktrees/pipeline-e97c13c7/app/api/tabs/route.ts +25 -0
  2527. package/.forge/worktrees/pipeline-e97c13c7/app/api/tasks/[id]/route.ts +51 -0
  2528. package/.forge/worktrees/pipeline-e97c13c7/app/api/tasks/[id]/stream/route.ts +77 -0
  2529. package/.forge/worktrees/pipeline-e97c13c7/app/api/tasks/link/route.ts +37 -0
  2530. package/.forge/worktrees/pipeline-e97c13c7/app/api/tasks/route.ts +44 -0
  2531. package/.forge/worktrees/pipeline-e97c13c7/app/api/tasks/session/route.ts +14 -0
  2532. package/.forge/worktrees/pipeline-e97c13c7/app/api/telegram/route.ts +23 -0
  2533. package/.forge/worktrees/pipeline-e97c13c7/app/api/templates/route.ts +6 -0
  2534. package/.forge/worktrees/pipeline-e97c13c7/app/api/terminal-bell/route.ts +35 -0
  2535. package/.forge/worktrees/pipeline-e97c13c7/app/api/terminal-cwd/route.ts +19 -0
  2536. package/.forge/worktrees/pipeline-e97c13c7/app/api/terminal-state/route.ts +15 -0
  2537. package/.forge/worktrees/pipeline-e97c13c7/app/api/tunnel/route.ts +26 -0
  2538. package/.forge/worktrees/pipeline-e97c13c7/app/api/upgrade/route.ts +43 -0
  2539. package/.forge/worktrees/pipeline-e97c13c7/app/api/usage/route.ts +20 -0
  2540. package/.forge/worktrees/pipeline-e97c13c7/app/api/version/route.ts +78 -0
  2541. package/.forge/worktrees/pipeline-e97c13c7/app/api/watchers/route.ts +33 -0
  2542. package/.forge/worktrees/pipeline-e97c13c7/app/api/workspace/[id]/agents/route.ts +35 -0
  2543. package/.forge/worktrees/pipeline-e97c13c7/app/api/workspace/[id]/memory/route.ts +23 -0
  2544. package/.forge/worktrees/pipeline-e97c13c7/app/api/workspace/[id]/smith/route.ts +22 -0
  2545. package/.forge/worktrees/pipeline-e97c13c7/app/api/workspace/[id]/stream/route.ts +28 -0
  2546. package/.forge/worktrees/pipeline-e97c13c7/app/api/workspace/route.ts +100 -0
  2547. package/.forge/worktrees/pipeline-e97c13c7/app/global-error.tsx +21 -0
  2548. package/.forge/worktrees/pipeline-e97c13c7/app/globals.css +52 -0
  2549. package/.forge/worktrees/pipeline-e97c13c7/app/icon.ico +0 -0
  2550. package/.forge/worktrees/pipeline-e97c13c7/app/icon.png +0 -0
  2551. package/.forge/worktrees/pipeline-e97c13c7/app/icon.svg +106 -0
  2552. package/.forge/worktrees/pipeline-e97c13c7/app/layout.tsx +17 -0
  2553. package/.forge/worktrees/pipeline-e97c13c7/app/login/LoginForm.tsx +96 -0
  2554. package/.forge/worktrees/pipeline-e97c13c7/app/login/page.tsx +10 -0
  2555. package/.forge/worktrees/pipeline-e97c13c7/app/mobile/page.tsx +9 -0
  2556. package/.forge/worktrees/pipeline-e97c13c7/app/page.tsx +21 -0
  2557. package/.forge/worktrees/pipeline-e97c13c7/bin/forge-server.mjs +484 -0
  2558. package/.forge/worktrees/pipeline-e97c13c7/check-forge-status.sh +71 -0
  2559. package/.forge/worktrees/pipeline-e97c13c7/cli/mw.ts +579 -0
  2560. package/.forge/worktrees/pipeline-e97c13c7/components/BrowserPanel.tsx +175 -0
  2561. package/.forge/worktrees/pipeline-e97c13c7/components/ChatPanel.tsx +191 -0
  2562. package/.forge/worktrees/pipeline-e97c13c7/components/ClaudeTerminal.tsx +267 -0
  2563. package/.forge/worktrees/pipeline-e97c13c7/components/CodeViewer.tsx +787 -0
  2564. package/.forge/worktrees/pipeline-e97c13c7/components/ConversationEditor.tsx +411 -0
  2565. package/.forge/worktrees/pipeline-e97c13c7/components/ConversationGraphView.tsx +347 -0
  2566. package/.forge/worktrees/pipeline-e97c13c7/components/ConversationTerminalView.tsx +303 -0
  2567. package/.forge/worktrees/pipeline-e97c13c7/components/Dashboard.tsx +807 -0
  2568. package/.forge/worktrees/pipeline-e97c13c7/components/DashboardWrapper.tsx +9 -0
  2569. package/.forge/worktrees/pipeline-e97c13c7/components/DeliveryFlowEditor.tsx +491 -0
  2570. package/.forge/worktrees/pipeline-e97c13c7/components/DeliveryList.tsx +230 -0
  2571. package/.forge/worktrees/pipeline-e97c13c7/components/DeliveryWorkspace.tsx +589 -0
  2572. package/.forge/worktrees/pipeline-e97c13c7/components/DocTerminal.tsx +187 -0
  2573. package/.forge/worktrees/pipeline-e97c13c7/components/DocsViewer.tsx +574 -0
  2574. package/.forge/worktrees/pipeline-e97c13c7/components/HelpDialog.tsx +169 -0
  2575. package/.forge/worktrees/pipeline-e97c13c7/components/HelpTerminal.tsx +141 -0
  2576. package/.forge/worktrees/pipeline-e97c13c7/components/InlinePipelineView.tsx +111 -0
  2577. package/.forge/worktrees/pipeline-e97c13c7/components/LogViewer.tsx +194 -0
  2578. package/.forge/worktrees/pipeline-e97c13c7/components/MarkdownContent.tsx +73 -0
  2579. package/.forge/worktrees/pipeline-e97c13c7/components/MobileView.tsx +385 -0
  2580. package/.forge/worktrees/pipeline-e97c13c7/components/MonitorPanel.tsx +122 -0
  2581. package/.forge/worktrees/pipeline-e97c13c7/components/NewSessionModal.tsx +93 -0
  2582. package/.forge/worktrees/pipeline-e97c13c7/components/NewTaskModal.tsx +492 -0
  2583. package/.forge/worktrees/pipeline-e97c13c7/components/PipelineEditor.tsx +570 -0
  2584. package/.forge/worktrees/pipeline-e97c13c7/components/PipelineView.tsx +1018 -0
  2585. package/.forge/worktrees/pipeline-e97c13c7/components/PluginsPanel.tsx +472 -0
  2586. package/.forge/worktrees/pipeline-e97c13c7/components/ProjectDetail.tsx +1618 -0
  2587. package/.forge/worktrees/pipeline-e97c13c7/components/ProjectList.tsx +108 -0
  2588. package/.forge/worktrees/pipeline-e97c13c7/components/ProjectManager.tsx +401 -0
  2589. package/.forge/worktrees/pipeline-e97c13c7/components/SessionList.tsx +74 -0
  2590. package/.forge/worktrees/pipeline-e97c13c7/components/SessionView.tsx +726 -0
  2591. package/.forge/worktrees/pipeline-e97c13c7/components/SettingsModal.tsx +1647 -0
  2592. package/.forge/worktrees/pipeline-e97c13c7/components/SkillsPanel.tsx +969 -0
  2593. package/.forge/worktrees/pipeline-e97c13c7/components/StatusBar.tsx +99 -0
  2594. package/.forge/worktrees/pipeline-e97c13c7/components/TabBar.tsx +46 -0
  2595. package/.forge/worktrees/pipeline-e97c13c7/components/TaskBoard.tsx +113 -0
  2596. package/.forge/worktrees/pipeline-e97c13c7/components/TaskDetail.tsx +372 -0
  2597. package/.forge/worktrees/pipeline-e97c13c7/components/TerminalLauncher.tsx +398 -0
  2598. package/.forge/worktrees/pipeline-e97c13c7/components/TunnelToggle.tsx +206 -0
  2599. package/.forge/worktrees/pipeline-e97c13c7/components/UsagePanel.tsx +207 -0
  2600. package/.forge/worktrees/pipeline-e97c13c7/components/WebTerminal.tsx +1683 -0
  2601. package/.forge/worktrees/pipeline-e97c13c7/components/WorkspaceTree.tsx +221 -0
  2602. package/.forge/worktrees/pipeline-e97c13c7/components/WorkspaceView.tsx +4048 -0
  2603. package/.forge/worktrees/pipeline-e97c13c7/dev-test.sh +5 -0
  2604. package/.forge/worktrees/pipeline-e97c13c7/docs/Forge_Memory_Layer_Design.docx +0 -0
  2605. package/.forge/worktrees/pipeline-e97c13c7/docs/Forge_Strategy_Research_2026.docx +0 -0
  2606. package/.forge/worktrees/pipeline-e97c13c7/docs/LOCAL-DEPLOY.md +144 -0
  2607. package/.forge/worktrees/pipeline-e97c13c7/docs/roadmap-multi-agent-workflow.md +330 -0
  2608. package/.forge/worktrees/pipeline-e97c13c7/forge-logo.png +0 -0
  2609. package/.forge/worktrees/pipeline-e97c13c7/forge-logo.svg +106 -0
  2610. package/.forge/worktrees/pipeline-e97c13c7/hooks/useSidebarResize.ts +52 -0
  2611. package/.forge/worktrees/pipeline-e97c13c7/install.sh +29 -0
  2612. package/.forge/worktrees/pipeline-e97c13c7/instrumentation.ts +35 -0
  2613. package/.forge/worktrees/pipeline-e97c13c7/lib/agents/claude-adapter.ts +104 -0
  2614. package/.forge/worktrees/pipeline-e97c13c7/lib/agents/generic-adapter.ts +64 -0
  2615. package/.forge/worktrees/pipeline-e97c13c7/lib/agents/index.ts +245 -0
  2616. package/.forge/worktrees/pipeline-e97c13c7/lib/agents/types.ts +70 -0
  2617. package/.forge/worktrees/pipeline-e97c13c7/lib/artifacts.ts +106 -0
  2618. package/.forge/worktrees/pipeline-e97c13c7/lib/auth.ts +62 -0
  2619. package/.forge/worktrees/pipeline-e97c13c7/lib/builtin-plugins/docker.yaml +70 -0
  2620. package/.forge/worktrees/pipeline-e97c13c7/lib/builtin-plugins/http.yaml +66 -0
  2621. package/.forge/worktrees/pipeline-e97c13c7/lib/builtin-plugins/jenkins.yaml +92 -0
  2622. package/.forge/worktrees/pipeline-e97c13c7/lib/builtin-plugins/llm-vision.yaml +85 -0
  2623. package/.forge/worktrees/pipeline-e97c13c7/lib/builtin-plugins/playwright.yaml +111 -0
  2624. package/.forge/worktrees/pipeline-e97c13c7/lib/builtin-plugins/shell-command.yaml +60 -0
  2625. package/.forge/worktrees/pipeline-e97c13c7/lib/builtin-plugins/slack.yaml +48 -0
  2626. package/.forge/worktrees/pipeline-e97c13c7/lib/builtin-plugins/webhook.yaml +56 -0
  2627. package/.forge/worktrees/pipeline-e97c13c7/lib/claude-process.ts +352 -0
  2628. package/.forge/worktrees/pipeline-e97c13c7/lib/claude-sessions.ts +266 -0
  2629. package/.forge/worktrees/pipeline-e97c13c7/lib/claude-templates.ts +227 -0
  2630. package/.forge/worktrees/pipeline-e97c13c7/lib/cloudflared.ts +424 -0
  2631. package/.forge/worktrees/pipeline-e97c13c7/lib/crypto.ts +67 -0
  2632. package/.forge/worktrees/pipeline-e97c13c7/lib/delivery.ts +787 -0
  2633. package/.forge/worktrees/pipeline-e97c13c7/lib/dirs.ts +99 -0
  2634. package/.forge/worktrees/pipeline-e97c13c7/lib/flows.ts +86 -0
  2635. package/.forge/worktrees/pipeline-e97c13c7/lib/forge-mcp-server.ts +717 -0
  2636. package/.forge/worktrees/pipeline-e97c13c7/lib/forge-skills/forge-inbox.md +38 -0
  2637. package/.forge/worktrees/pipeline-e97c13c7/lib/forge-skills/forge-send.md +47 -0
  2638. package/.forge/worktrees/pipeline-e97c13c7/lib/forge-skills/forge-status.md +32 -0
  2639. package/.forge/worktrees/pipeline-e97c13c7/lib/forge-skills/forge-workspace-sync.md +37 -0
  2640. package/.forge/worktrees/pipeline-e97c13c7/lib/help-docs/00-overview.md +40 -0
  2641. package/.forge/worktrees/pipeline-e97c13c7/lib/help-docs/01-settings.md +194 -0
  2642. package/.forge/worktrees/pipeline-e97c13c7/lib/help-docs/02-telegram.md +41 -0
  2643. package/.forge/worktrees/pipeline-e97c13c7/lib/help-docs/03-tunnel.md +31 -0
  2644. package/.forge/worktrees/pipeline-e97c13c7/lib/help-docs/04-tasks.md +52 -0
  2645. package/.forge/worktrees/pipeline-e97c13c7/lib/help-docs/05-pipelines.md +460 -0
  2646. package/.forge/worktrees/pipeline-e97c13c7/lib/help-docs/06-skills.md +43 -0
  2647. package/.forge/worktrees/pipeline-e97c13c7/lib/help-docs/07-projects.md +73 -0
  2648. package/.forge/worktrees/pipeline-e97c13c7/lib/help-docs/08-rules.md +53 -0
  2649. package/.forge/worktrees/pipeline-e97c13c7/lib/help-docs/09-issue-autofix.md +55 -0
  2650. package/.forge/worktrees/pipeline-e97c13c7/lib/help-docs/10-troubleshooting.md +89 -0
  2651. package/.forge/worktrees/pipeline-e97c13c7/lib/help-docs/11-workspace.md +810 -0
  2652. package/.forge/worktrees/pipeline-e97c13c7/lib/help-docs/CLAUDE.md +62 -0
  2653. package/.forge/worktrees/pipeline-e97c13c7/lib/init.ts +266 -0
  2654. package/.forge/worktrees/pipeline-e97c13c7/lib/issue-scanner.ts +298 -0
  2655. package/.forge/worktrees/pipeline-e97c13c7/lib/logger.ts +79 -0
  2656. package/.forge/worktrees/pipeline-e97c13c7/lib/notifications.ts +75 -0
  2657. package/.forge/worktrees/pipeline-e97c13c7/lib/notify.ts +108 -0
  2658. package/.forge/worktrees/pipeline-e97c13c7/lib/password.ts +97 -0
  2659. package/.forge/worktrees/pipeline-e97c13c7/lib/pipeline-scheduler.ts +373 -0
  2660. package/.forge/worktrees/pipeline-e97c13c7/lib/pipeline.ts +1438 -0
  2661. package/.forge/worktrees/pipeline-e97c13c7/lib/plugins/executor.ts +347 -0
  2662. package/.forge/worktrees/pipeline-e97c13c7/lib/plugins/registry.ts +228 -0
  2663. package/.forge/worktrees/pipeline-e97c13c7/lib/plugins/types.ts +103 -0
  2664. package/.forge/worktrees/pipeline-e97c13c7/lib/project-sessions.ts +53 -0
  2665. package/.forge/worktrees/pipeline-e97c13c7/lib/projects.ts +86 -0
  2666. package/.forge/worktrees/pipeline-e97c13c7/lib/session-manager.ts +156 -0
  2667. package/.forge/worktrees/pipeline-e97c13c7/lib/session-utils.ts +53 -0
  2668. package/.forge/worktrees/pipeline-e97c13c7/lib/session-watcher.ts +345 -0
  2669. package/.forge/worktrees/pipeline-e97c13c7/lib/settings.ts +195 -0
  2670. package/.forge/worktrees/pipeline-e97c13c7/lib/skills.ts +458 -0
  2671. package/.forge/worktrees/pipeline-e97c13c7/lib/task-manager.ts +949 -0
  2672. package/.forge/worktrees/pipeline-e97c13c7/lib/telegram-bot.ts +1477 -0
  2673. package/.forge/worktrees/pipeline-e97c13c7/lib/telegram-standalone.ts +83 -0
  2674. package/.forge/worktrees/pipeline-e97c13c7/lib/terminal-server.ts +70 -0
  2675. package/.forge/worktrees/pipeline-e97c13c7/lib/terminal-standalone.ts +421 -0
  2676. package/.forge/worktrees/pipeline-e97c13c7/lib/usage-scanner.ts +249 -0
  2677. package/.forge/worktrees/pipeline-e97c13c7/lib/workspace/__tests__/state-machine.test.ts +388 -0
  2678. package/.forge/worktrees/pipeline-e97c13c7/lib/workspace/__tests__/workspace.test.ts +311 -0
  2679. package/.forge/worktrees/pipeline-e97c13c7/lib/workspace/agent-bus.ts +416 -0
  2680. package/.forge/worktrees/pipeline-e97c13c7/lib/workspace/agent-worker.ts +655 -0
  2681. package/.forge/worktrees/pipeline-e97c13c7/lib/workspace/backends/api-backend.ts +262 -0
  2682. package/.forge/worktrees/pipeline-e97c13c7/lib/workspace/backends/cli-backend.ts +491 -0
  2683. package/.forge/worktrees/pipeline-e97c13c7/lib/workspace/index.ts +82 -0
  2684. package/.forge/worktrees/pipeline-e97c13c7/lib/workspace/manager.ts +136 -0
  2685. package/.forge/worktrees/pipeline-e97c13c7/lib/workspace/orchestrator.ts +3400 -0
  2686. package/.forge/worktrees/pipeline-e97c13c7/lib/workspace/persistence.ts +309 -0
  2687. package/.forge/worktrees/pipeline-e97c13c7/lib/workspace/presets.ts +649 -0
  2688. package/.forge/worktrees/pipeline-e97c13c7/lib/workspace/requests.ts +287 -0
  2689. package/.forge/worktrees/pipeline-e97c13c7/lib/workspace/session-monitor.ts +240 -0
  2690. package/.forge/worktrees/pipeline-e97c13c7/lib/workspace/skill-installer.ts +275 -0
  2691. package/.forge/worktrees/pipeline-e97c13c7/lib/workspace/smith-memory.ts +498 -0
  2692. package/.forge/worktrees/pipeline-e97c13c7/lib/workspace/types.ts +241 -0
  2693. package/.forge/worktrees/pipeline-e97c13c7/lib/workspace/watch-manager.ts +560 -0
  2694. package/.forge/worktrees/pipeline-e97c13c7/lib/workspace-standalone.ts +911 -0
  2695. package/.forge/worktrees/pipeline-e97c13c7/middleware.ts +51 -0
  2696. package/.forge/worktrees/pipeline-e97c13c7/next.config.ts +26 -0
  2697. package/.forge/worktrees/pipeline-e97c13c7/package.json +74 -0
  2698. package/.forge/worktrees/pipeline-e97c13c7/pnpm-lock.yaml +3719 -0
  2699. package/.forge/worktrees/pipeline-e97c13c7/pnpm-workspace.yaml +1 -0
  2700. package/.forge/worktrees/pipeline-e97c13c7/postcss.config.mjs +7 -0
  2701. package/.forge/worktrees/pipeline-e97c13c7/publish.sh +133 -0
  2702. package/.forge/worktrees/pipeline-e97c13c7/scripts/bench/README.md +66 -0
  2703. package/.forge/worktrees/pipeline-e97c13c7/scripts/bench/results/.gitignore +2 -0
  2704. package/.forge/worktrees/pipeline-e97c13c7/scripts/bench/run.ts +635 -0
  2705. package/.forge/worktrees/pipeline-e97c13c7/scripts/bench/tasks/01-text-utils/task.md +26 -0
  2706. package/.forge/worktrees/pipeline-e97c13c7/scripts/bench/tasks/01-text-utils/validator.sh +46 -0
  2707. package/.forge/worktrees/pipeline-e97c13c7/scripts/bench/tasks/02-pagination/setup.sh +19 -0
  2708. package/.forge/worktrees/pipeline-e97c13c7/scripts/bench/tasks/02-pagination/task.md +48 -0
  2709. package/.forge/worktrees/pipeline-e97c13c7/scripts/bench/tasks/02-pagination/validator.sh +69 -0
  2710. package/.forge/worktrees/pipeline-e97c13c7/scripts/bench/tasks/03-bug-fix/setup.sh +82 -0
  2711. package/.forge/worktrees/pipeline-e97c13c7/scripts/bench/tasks/03-bug-fix/task.md +30 -0
  2712. package/.forge/worktrees/pipeline-e97c13c7/scripts/bench/tasks/03-bug-fix/validator.sh +29 -0
  2713. package/.forge/worktrees/pipeline-e97c13c7/scripts/verify-usage.ts +178 -0
  2714. package/.forge/worktrees/pipeline-e97c13c7/src/config/index.ts +129 -0
  2715. package/.forge/worktrees/pipeline-e97c13c7/src/core/db/database.ts +259 -0
  2716. package/.forge/worktrees/pipeline-e97c13c7/src/core/memory/strategy.ts +32 -0
  2717. package/.forge/worktrees/pipeline-e97c13c7/src/core/providers/chat.ts +65 -0
  2718. package/.forge/worktrees/pipeline-e97c13c7/src/core/providers/registry.ts +60 -0
  2719. package/.forge/worktrees/pipeline-e97c13c7/src/core/session/manager.ts +190 -0
  2720. package/.forge/worktrees/pipeline-e97c13c7/src/types/index.ts +129 -0
  2721. package/.forge/worktrees/pipeline-e97c13c7/start.sh +31 -0
  2722. package/.forge/worktrees/pipeline-e97c13c7/templates/smith-lead.json +45 -0
  2723. package/.forge/worktrees/pipeline-e97c13c7/tsconfig.json +42 -0
  2724. package/.forge/worktrees/pipeline-ecd7cb0f/CLAUDE.md +86 -0
  2725. package/.forge/worktrees/pipeline-ecd7cb0f/README.md +136 -0
  2726. package/.forge/worktrees/pipeline-ecd7cb0f/RELEASE_NOTES.md +11 -0
  2727. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/agents/route.ts +17 -0
  2728. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/auth/[...nextauth]/route.ts +3 -0
  2729. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/auth/verify/route.ts +46 -0
  2730. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/claude/[id]/route.ts +31 -0
  2731. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/claude/[id]/stream/route.ts +63 -0
  2732. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/claude/route.ts +28 -0
  2733. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/claude-sessions/[projectName]/entries/route.ts +23 -0
  2734. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/claude-sessions/[projectName]/live/route.ts +72 -0
  2735. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/claude-sessions/[projectName]/route.ts +37 -0
  2736. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/claude-sessions/sync/route.ts +17 -0
  2737. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/claude-templates/route.ts +145 -0
  2738. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/code/route.ts +299 -0
  2739. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/delivery/[id]/route.ts +62 -0
  2740. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/delivery/route.ts +40 -0
  2741. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/detect-cli/route.ts +46 -0
  2742. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/docs/route.ts +176 -0
  2743. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/docs/sessions/route.ts +54 -0
  2744. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/favorites/route.ts +26 -0
  2745. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/flows/route.ts +6 -0
  2746. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/flows/run/route.ts +19 -0
  2747. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/git/route.ts +149 -0
  2748. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/help/route.ts +84 -0
  2749. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/issue-scanner/route.ts +116 -0
  2750. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/logs/route.ts +100 -0
  2751. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/mobile-chat/route.ts +115 -0
  2752. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/monitor/route.ts +74 -0
  2753. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/notifications/route.ts +42 -0
  2754. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/notify/test/route.ts +33 -0
  2755. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/online/route.ts +40 -0
  2756. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/pipelines/[id]/route.ts +41 -0
  2757. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/pipelines/route.ts +90 -0
  2758. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/plugins/route.ts +75 -0
  2759. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/preview/[...path]/route.ts +64 -0
  2760. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/preview/route.ts +156 -0
  2761. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/project-pipelines/route.ts +91 -0
  2762. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/project-sessions/route.ts +61 -0
  2763. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/projects/route.ts +26 -0
  2764. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/sessions/[id]/chat/route.ts +64 -0
  2765. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/sessions/[id]/messages/route.ts +9 -0
  2766. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/sessions/[id]/route.ts +17 -0
  2767. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/sessions/route.ts +20 -0
  2768. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/settings/route.ts +64 -0
  2769. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/skills/local/route.ts +228 -0
  2770. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/skills/route.ts +182 -0
  2771. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/smith-templates/route.ts +81 -0
  2772. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/status/route.ts +12 -0
  2773. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/tabs/route.ts +25 -0
  2774. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/tasks/[id]/route.ts +51 -0
  2775. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/tasks/[id]/stream/route.ts +77 -0
  2776. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/tasks/link/route.ts +37 -0
  2777. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/tasks/route.ts +44 -0
  2778. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/tasks/session/route.ts +14 -0
  2779. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/telegram/route.ts +23 -0
  2780. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/templates/route.ts +6 -0
  2781. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/terminal-bell/route.ts +35 -0
  2782. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/terminal-cwd/route.ts +19 -0
  2783. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/terminal-state/route.ts +15 -0
  2784. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/tunnel/route.ts +26 -0
  2785. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/upgrade/route.ts +43 -0
  2786. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/usage/route.ts +20 -0
  2787. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/version/route.ts +78 -0
  2788. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/watchers/route.ts +33 -0
  2789. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/workspace/[id]/agents/route.ts +35 -0
  2790. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/workspace/[id]/memory/route.ts +23 -0
  2791. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/workspace/[id]/smith/route.ts +22 -0
  2792. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/workspace/[id]/stream/route.ts +28 -0
  2793. package/.forge/worktrees/pipeline-ecd7cb0f/app/api/workspace/route.ts +100 -0
  2794. package/.forge/worktrees/pipeline-ecd7cb0f/app/global-error.tsx +21 -0
  2795. package/.forge/worktrees/pipeline-ecd7cb0f/app/globals.css +52 -0
  2796. package/.forge/worktrees/pipeline-ecd7cb0f/app/icon.ico +0 -0
  2797. package/.forge/worktrees/pipeline-ecd7cb0f/app/icon.png +0 -0
  2798. package/.forge/worktrees/pipeline-ecd7cb0f/app/icon.svg +106 -0
  2799. package/.forge/worktrees/pipeline-ecd7cb0f/app/layout.tsx +17 -0
  2800. package/.forge/worktrees/pipeline-ecd7cb0f/app/login/LoginForm.tsx +96 -0
  2801. package/.forge/worktrees/pipeline-ecd7cb0f/app/login/page.tsx +10 -0
  2802. package/.forge/worktrees/pipeline-ecd7cb0f/app/mobile/page.tsx +9 -0
  2803. package/.forge/worktrees/pipeline-ecd7cb0f/app/page.tsx +21 -0
  2804. package/.forge/worktrees/pipeline-ecd7cb0f/bin/forge-server.mjs +484 -0
  2805. package/.forge/worktrees/pipeline-ecd7cb0f/check-forge-status.sh +71 -0
  2806. package/.forge/worktrees/pipeline-ecd7cb0f/cli/mw.ts +579 -0
  2807. package/.forge/worktrees/pipeline-ecd7cb0f/components/BrowserPanel.tsx +175 -0
  2808. package/.forge/worktrees/pipeline-ecd7cb0f/components/ChatPanel.tsx +191 -0
  2809. package/.forge/worktrees/pipeline-ecd7cb0f/components/ClaudeTerminal.tsx +267 -0
  2810. package/.forge/worktrees/pipeline-ecd7cb0f/components/CodeViewer.tsx +787 -0
  2811. package/.forge/worktrees/pipeline-ecd7cb0f/components/ConversationEditor.tsx +411 -0
  2812. package/.forge/worktrees/pipeline-ecd7cb0f/components/ConversationGraphView.tsx +347 -0
  2813. package/.forge/worktrees/pipeline-ecd7cb0f/components/ConversationTerminalView.tsx +303 -0
  2814. package/.forge/worktrees/pipeline-ecd7cb0f/components/Dashboard.tsx +807 -0
  2815. package/.forge/worktrees/pipeline-ecd7cb0f/components/DashboardWrapper.tsx +9 -0
  2816. package/.forge/worktrees/pipeline-ecd7cb0f/components/DeliveryFlowEditor.tsx +491 -0
  2817. package/.forge/worktrees/pipeline-ecd7cb0f/components/DeliveryList.tsx +230 -0
  2818. package/.forge/worktrees/pipeline-ecd7cb0f/components/DeliveryWorkspace.tsx +589 -0
  2819. package/.forge/worktrees/pipeline-ecd7cb0f/components/DocTerminal.tsx +187 -0
  2820. package/.forge/worktrees/pipeline-ecd7cb0f/components/DocsViewer.tsx +574 -0
  2821. package/.forge/worktrees/pipeline-ecd7cb0f/components/HelpDialog.tsx +169 -0
  2822. package/.forge/worktrees/pipeline-ecd7cb0f/components/HelpTerminal.tsx +141 -0
  2823. package/.forge/worktrees/pipeline-ecd7cb0f/components/InlinePipelineView.tsx +111 -0
  2824. package/.forge/worktrees/pipeline-ecd7cb0f/components/LogViewer.tsx +194 -0
  2825. package/.forge/worktrees/pipeline-ecd7cb0f/components/MarkdownContent.tsx +73 -0
  2826. package/.forge/worktrees/pipeline-ecd7cb0f/components/MobileView.tsx +385 -0
  2827. package/.forge/worktrees/pipeline-ecd7cb0f/components/MonitorPanel.tsx +122 -0
  2828. package/.forge/worktrees/pipeline-ecd7cb0f/components/NewSessionModal.tsx +93 -0
  2829. package/.forge/worktrees/pipeline-ecd7cb0f/components/NewTaskModal.tsx +492 -0
  2830. package/.forge/worktrees/pipeline-ecd7cb0f/components/PipelineEditor.tsx +570 -0
  2831. package/.forge/worktrees/pipeline-ecd7cb0f/components/PipelineView.tsx +1018 -0
  2832. package/.forge/worktrees/pipeline-ecd7cb0f/components/PluginsPanel.tsx +472 -0
  2833. package/.forge/worktrees/pipeline-ecd7cb0f/components/ProjectDetail.tsx +1618 -0
  2834. package/.forge/worktrees/pipeline-ecd7cb0f/components/ProjectList.tsx +108 -0
  2835. package/.forge/worktrees/pipeline-ecd7cb0f/components/ProjectManager.tsx +401 -0
  2836. package/.forge/worktrees/pipeline-ecd7cb0f/components/SessionList.tsx +74 -0
  2837. package/.forge/worktrees/pipeline-ecd7cb0f/components/SessionView.tsx +726 -0
  2838. package/.forge/worktrees/pipeline-ecd7cb0f/components/SettingsModal.tsx +1647 -0
  2839. package/.forge/worktrees/pipeline-ecd7cb0f/components/SkillsPanel.tsx +969 -0
  2840. package/.forge/worktrees/pipeline-ecd7cb0f/components/StatusBar.tsx +99 -0
  2841. package/.forge/worktrees/pipeline-ecd7cb0f/components/TabBar.tsx +46 -0
  2842. package/.forge/worktrees/pipeline-ecd7cb0f/components/TaskBoard.tsx +113 -0
  2843. package/.forge/worktrees/pipeline-ecd7cb0f/components/TaskDetail.tsx +372 -0
  2844. package/.forge/worktrees/pipeline-ecd7cb0f/components/TerminalLauncher.tsx +398 -0
  2845. package/.forge/worktrees/pipeline-ecd7cb0f/components/TunnelToggle.tsx +206 -0
  2846. package/.forge/worktrees/pipeline-ecd7cb0f/components/UsagePanel.tsx +207 -0
  2847. package/.forge/worktrees/pipeline-ecd7cb0f/components/WebTerminal.tsx +1683 -0
  2848. package/.forge/worktrees/pipeline-ecd7cb0f/components/WorkspaceTree.tsx +221 -0
  2849. package/.forge/worktrees/pipeline-ecd7cb0f/components/WorkspaceView.tsx +4048 -0
  2850. package/.forge/worktrees/pipeline-ecd7cb0f/dev-test.sh +5 -0
  2851. package/.forge/worktrees/pipeline-ecd7cb0f/docs/Forge_Memory_Layer_Design.docx +0 -0
  2852. package/.forge/worktrees/pipeline-ecd7cb0f/docs/Forge_Strategy_Research_2026.docx +0 -0
  2853. package/.forge/worktrees/pipeline-ecd7cb0f/docs/LOCAL-DEPLOY.md +144 -0
  2854. package/.forge/worktrees/pipeline-ecd7cb0f/docs/roadmap-multi-agent-workflow.md +330 -0
  2855. package/.forge/worktrees/pipeline-ecd7cb0f/forge-logo.png +0 -0
  2856. package/.forge/worktrees/pipeline-ecd7cb0f/forge-logo.svg +106 -0
  2857. package/.forge/worktrees/pipeline-ecd7cb0f/hooks/useSidebarResize.ts +52 -0
  2858. package/.forge/worktrees/pipeline-ecd7cb0f/install.sh +29 -0
  2859. package/.forge/worktrees/pipeline-ecd7cb0f/instrumentation.ts +35 -0
  2860. package/.forge/worktrees/pipeline-ecd7cb0f/lib/agents/claude-adapter.ts +104 -0
  2861. package/.forge/worktrees/pipeline-ecd7cb0f/lib/agents/generic-adapter.ts +64 -0
  2862. package/.forge/worktrees/pipeline-ecd7cb0f/lib/agents/index.ts +245 -0
  2863. package/.forge/worktrees/pipeline-ecd7cb0f/lib/agents/types.ts +70 -0
  2864. package/.forge/worktrees/pipeline-ecd7cb0f/lib/artifacts.ts +106 -0
  2865. package/.forge/worktrees/pipeline-ecd7cb0f/lib/auth.ts +62 -0
  2866. package/.forge/worktrees/pipeline-ecd7cb0f/lib/builtin-plugins/docker.yaml +70 -0
  2867. package/.forge/worktrees/pipeline-ecd7cb0f/lib/builtin-plugins/http.yaml +66 -0
  2868. package/.forge/worktrees/pipeline-ecd7cb0f/lib/builtin-plugins/jenkins.yaml +92 -0
  2869. package/.forge/worktrees/pipeline-ecd7cb0f/lib/builtin-plugins/llm-vision.yaml +85 -0
  2870. package/.forge/worktrees/pipeline-ecd7cb0f/lib/builtin-plugins/playwright.yaml +111 -0
  2871. package/.forge/worktrees/pipeline-ecd7cb0f/lib/builtin-plugins/shell-command.yaml +60 -0
  2872. package/.forge/worktrees/pipeline-ecd7cb0f/lib/builtin-plugins/slack.yaml +48 -0
  2873. package/.forge/worktrees/pipeline-ecd7cb0f/lib/builtin-plugins/webhook.yaml +56 -0
  2874. package/.forge/worktrees/pipeline-ecd7cb0f/lib/claude-process.ts +352 -0
  2875. package/.forge/worktrees/pipeline-ecd7cb0f/lib/claude-sessions.ts +266 -0
  2876. package/.forge/worktrees/pipeline-ecd7cb0f/lib/claude-templates.ts +227 -0
  2877. package/.forge/worktrees/pipeline-ecd7cb0f/lib/cloudflared.ts +424 -0
  2878. package/.forge/worktrees/pipeline-ecd7cb0f/lib/crypto.ts +67 -0
  2879. package/.forge/worktrees/pipeline-ecd7cb0f/lib/delivery.ts +787 -0
  2880. package/.forge/worktrees/pipeline-ecd7cb0f/lib/dirs.ts +99 -0
  2881. package/.forge/worktrees/pipeline-ecd7cb0f/lib/flows.ts +86 -0
  2882. package/.forge/worktrees/pipeline-ecd7cb0f/lib/forge-mcp-server.ts +717 -0
  2883. package/.forge/worktrees/pipeline-ecd7cb0f/lib/forge-skills/forge-inbox.md +38 -0
  2884. package/.forge/worktrees/pipeline-ecd7cb0f/lib/forge-skills/forge-send.md +47 -0
  2885. package/.forge/worktrees/pipeline-ecd7cb0f/lib/forge-skills/forge-status.md +32 -0
  2886. package/.forge/worktrees/pipeline-ecd7cb0f/lib/forge-skills/forge-workspace-sync.md +37 -0
  2887. package/.forge/worktrees/pipeline-ecd7cb0f/lib/help-docs/00-overview.md +40 -0
  2888. package/.forge/worktrees/pipeline-ecd7cb0f/lib/help-docs/01-settings.md +194 -0
  2889. package/.forge/worktrees/pipeline-ecd7cb0f/lib/help-docs/02-telegram.md +41 -0
  2890. package/.forge/worktrees/pipeline-ecd7cb0f/lib/help-docs/03-tunnel.md +31 -0
  2891. package/.forge/worktrees/pipeline-ecd7cb0f/lib/help-docs/04-tasks.md +52 -0
  2892. package/.forge/worktrees/pipeline-ecd7cb0f/lib/help-docs/05-pipelines.md +460 -0
  2893. package/.forge/worktrees/pipeline-ecd7cb0f/lib/help-docs/06-skills.md +43 -0
  2894. package/.forge/worktrees/pipeline-ecd7cb0f/lib/help-docs/07-projects.md +73 -0
  2895. package/.forge/worktrees/pipeline-ecd7cb0f/lib/help-docs/08-rules.md +53 -0
  2896. package/.forge/worktrees/pipeline-ecd7cb0f/lib/help-docs/09-issue-autofix.md +55 -0
  2897. package/.forge/worktrees/pipeline-ecd7cb0f/lib/help-docs/10-troubleshooting.md +89 -0
  2898. package/.forge/worktrees/pipeline-ecd7cb0f/lib/help-docs/11-workspace.md +810 -0
  2899. package/.forge/worktrees/pipeline-ecd7cb0f/lib/help-docs/CLAUDE.md +62 -0
  2900. package/.forge/worktrees/pipeline-ecd7cb0f/lib/init.ts +266 -0
  2901. package/.forge/worktrees/pipeline-ecd7cb0f/lib/issue-scanner.ts +298 -0
  2902. package/.forge/worktrees/pipeline-ecd7cb0f/lib/logger.ts +79 -0
  2903. package/.forge/worktrees/pipeline-ecd7cb0f/lib/notifications.ts +75 -0
  2904. package/.forge/worktrees/pipeline-ecd7cb0f/lib/notify.ts +108 -0
  2905. package/.forge/worktrees/pipeline-ecd7cb0f/lib/password.ts +97 -0
  2906. package/.forge/worktrees/pipeline-ecd7cb0f/lib/pipeline-scheduler.ts +373 -0
  2907. package/.forge/worktrees/pipeline-ecd7cb0f/lib/pipeline.ts +1441 -0
  2908. package/.forge/worktrees/pipeline-ecd7cb0f/lib/plugins/executor.ts +347 -0
  2909. package/.forge/worktrees/pipeline-ecd7cb0f/lib/plugins/registry.ts +228 -0
  2910. package/.forge/worktrees/pipeline-ecd7cb0f/lib/plugins/types.ts +103 -0
  2911. package/.forge/worktrees/pipeline-ecd7cb0f/lib/project-sessions.ts +53 -0
  2912. package/.forge/worktrees/pipeline-ecd7cb0f/lib/projects.ts +86 -0
  2913. package/.forge/worktrees/pipeline-ecd7cb0f/lib/session-manager.ts +156 -0
  2914. package/.forge/worktrees/pipeline-ecd7cb0f/lib/session-utils.ts +53 -0
  2915. package/.forge/worktrees/pipeline-ecd7cb0f/lib/session-watcher.ts +345 -0
  2916. package/.forge/worktrees/pipeline-ecd7cb0f/lib/settings.ts +195 -0
  2917. package/.forge/worktrees/pipeline-ecd7cb0f/lib/skills.ts +458 -0
  2918. package/.forge/worktrees/pipeline-ecd7cb0f/lib/task-manager.ts +949 -0
  2919. package/.forge/worktrees/pipeline-ecd7cb0f/lib/telegram-bot.ts +1477 -0
  2920. package/.forge/worktrees/pipeline-ecd7cb0f/lib/telegram-standalone.ts +83 -0
  2921. package/.forge/worktrees/pipeline-ecd7cb0f/lib/terminal-server.ts +70 -0
  2922. package/.forge/worktrees/pipeline-ecd7cb0f/lib/terminal-standalone.ts +421 -0
  2923. package/.forge/worktrees/pipeline-ecd7cb0f/lib/usage-scanner.ts +249 -0
  2924. package/.forge/worktrees/pipeline-ecd7cb0f/lib/workspace/__tests__/state-machine.test.ts +388 -0
  2925. package/.forge/worktrees/pipeline-ecd7cb0f/lib/workspace/__tests__/workspace.test.ts +311 -0
  2926. package/.forge/worktrees/pipeline-ecd7cb0f/lib/workspace/agent-bus.ts +416 -0
  2927. package/.forge/worktrees/pipeline-ecd7cb0f/lib/workspace/agent-worker.ts +655 -0
  2928. package/.forge/worktrees/pipeline-ecd7cb0f/lib/workspace/backends/api-backend.ts +262 -0
  2929. package/.forge/worktrees/pipeline-ecd7cb0f/lib/workspace/backends/cli-backend.ts +491 -0
  2930. package/.forge/worktrees/pipeline-ecd7cb0f/lib/workspace/index.ts +82 -0
  2931. package/.forge/worktrees/pipeline-ecd7cb0f/lib/workspace/manager.ts +136 -0
  2932. package/.forge/worktrees/pipeline-ecd7cb0f/lib/workspace/orchestrator.ts +3400 -0
  2933. package/.forge/worktrees/pipeline-ecd7cb0f/lib/workspace/persistence.ts +309 -0
  2934. package/.forge/worktrees/pipeline-ecd7cb0f/lib/workspace/presets.ts +649 -0
  2935. package/.forge/worktrees/pipeline-ecd7cb0f/lib/workspace/requests.ts +287 -0
  2936. package/.forge/worktrees/pipeline-ecd7cb0f/lib/workspace/session-monitor.ts +240 -0
  2937. package/.forge/worktrees/pipeline-ecd7cb0f/lib/workspace/skill-installer.ts +275 -0
  2938. package/.forge/worktrees/pipeline-ecd7cb0f/lib/workspace/smith-memory.ts +498 -0
  2939. package/.forge/worktrees/pipeline-ecd7cb0f/lib/workspace/types.ts +241 -0
  2940. package/.forge/worktrees/pipeline-ecd7cb0f/lib/workspace/watch-manager.ts +560 -0
  2941. package/.forge/worktrees/pipeline-ecd7cb0f/lib/workspace-standalone.ts +911 -0
  2942. package/.forge/worktrees/pipeline-ecd7cb0f/middleware.ts +51 -0
  2943. package/.forge/worktrees/pipeline-ecd7cb0f/next.config.ts +26 -0
  2944. package/.forge/worktrees/pipeline-ecd7cb0f/package.json +74 -0
  2945. package/.forge/worktrees/pipeline-ecd7cb0f/pnpm-lock.yaml +3719 -0
  2946. package/.forge/worktrees/pipeline-ecd7cb0f/pnpm-workspace.yaml +1 -0
  2947. package/.forge/worktrees/pipeline-ecd7cb0f/postcss.config.mjs +7 -0
  2948. package/.forge/worktrees/pipeline-ecd7cb0f/publish.sh +133 -0
  2949. package/.forge/worktrees/pipeline-ecd7cb0f/scripts/bench/README.md +66 -0
  2950. package/.forge/worktrees/pipeline-ecd7cb0f/scripts/bench/results/.gitignore +2 -0
  2951. package/.forge/worktrees/pipeline-ecd7cb0f/scripts/bench/run.ts +635 -0
  2952. package/.forge/worktrees/pipeline-ecd7cb0f/scripts/bench/tasks/01-text-utils/task.md +26 -0
  2953. package/.forge/worktrees/pipeline-ecd7cb0f/scripts/bench/tasks/01-text-utils/validator.sh +46 -0
  2954. package/.forge/worktrees/pipeline-ecd7cb0f/scripts/bench/tasks/02-pagination/setup.sh +19 -0
  2955. package/.forge/worktrees/pipeline-ecd7cb0f/scripts/bench/tasks/02-pagination/task.md +48 -0
  2956. package/.forge/worktrees/pipeline-ecd7cb0f/scripts/bench/tasks/02-pagination/validator.sh +69 -0
  2957. package/.forge/worktrees/pipeline-ecd7cb0f/scripts/bench/tasks/03-bug-fix/setup.sh +82 -0
  2958. package/.forge/worktrees/pipeline-ecd7cb0f/scripts/bench/tasks/03-bug-fix/task.md +30 -0
  2959. package/.forge/worktrees/pipeline-ecd7cb0f/scripts/bench/tasks/03-bug-fix/validator.sh +29 -0
  2960. package/.forge/worktrees/pipeline-ecd7cb0f/scripts/verify-usage.ts +178 -0
  2961. package/.forge/worktrees/pipeline-ecd7cb0f/src/config/index.ts +129 -0
  2962. package/.forge/worktrees/pipeline-ecd7cb0f/src/core/db/database.ts +259 -0
  2963. package/.forge/worktrees/pipeline-ecd7cb0f/src/core/memory/strategy.ts +32 -0
  2964. package/.forge/worktrees/pipeline-ecd7cb0f/src/core/providers/chat.ts +65 -0
  2965. package/.forge/worktrees/pipeline-ecd7cb0f/src/core/providers/registry.ts +60 -0
  2966. package/.forge/worktrees/pipeline-ecd7cb0f/src/core/session/manager.ts +190 -0
  2967. package/.forge/worktrees/pipeline-ecd7cb0f/src/types/index.ts +129 -0
  2968. package/.forge/worktrees/pipeline-ecd7cb0f/start.sh +31 -0
  2969. package/.forge/worktrees/pipeline-ecd7cb0f/templates/smith-lead.json +45 -0
  2970. package/.forge/worktrees/pipeline-ecd7cb0f/tsconfig.json +42 -0
  2971. package/CLAUDE.md +2 -2
  2972. package/RELEASE_NOTES.md +7 -6
  2973. package/app/api/auth/check/route.ts +18 -0
  2974. package/app/api/browser-bridge/route.ts +70 -0
  2975. package/app/api/chat/sessions/[id]/events/route.ts +17 -0
  2976. package/app/api/chat/sessions/[id]/fork/route.ts +15 -0
  2977. package/app/api/chat/sessions/[id]/messages/route.ts +21 -0
  2978. package/app/api/chat/sessions/[id]/route.ts +23 -0
  2979. package/app/api/chat/sessions/route.ts +12 -0
  2980. package/app/api/chat/temper-ping/route.ts +18 -0
  2981. package/app/api/chat-proxy/[...path]/route.ts +83 -0
  2982. package/app/api/connector-tool/route.ts +38 -0
  2983. package/app/api/connectors/[id]/settings/route.ts +112 -0
  2984. package/app/api/connectors/route.ts +108 -0
  2985. package/app/api/health/tools/route.ts +14 -0
  2986. package/app/api/issue-scanner-gitlab/route.ts +95 -0
  2987. package/app/api/jobs/[id]/reset_dedup/route.ts +15 -0
  2988. package/app/api/jobs/[id]/route.ts +31 -0
  2989. package/app/api/jobs/[id]/run/route.ts +44 -0
  2990. package/app/api/jobs/[id]/runs/[runId]/route.ts +15 -0
  2991. package/app/api/jobs/[id]/runs/route.ts +15 -0
  2992. package/app/api/jobs/preview/route.ts +193 -0
  2993. package/app/api/jobs/route.ts +36 -0
  2994. package/app/api/monitor/route.ts +26 -0
  2995. package/app/api/notify/test/route.ts +39 -7
  2996. package/app/api/pipelines/[id]/route.ts +10 -1
  2997. package/app/api/pipelines/route.ts +16 -2
  2998. package/app/api/plugins/route.ts +40 -8
  2999. package/app/api/project-sessions/route.ts +50 -10
  3000. package/app/api/settings/route.ts +13 -0
  3001. package/app/chat/page.tsx +531 -0
  3002. package/bin/forge-server.mjs +3 -1
  3003. package/cli/chat.ts +283 -0
  3004. package/cli/jobs.ts +176 -0
  3005. package/cli/mw.ts +28 -1
  3006. package/cli/worktree.ts +245 -0
  3007. package/components/ConnectorsPanel.tsx +275 -0
  3008. package/components/Dashboard.tsx +90 -37
  3009. package/components/JobsView.tsx +361 -0
  3010. package/components/LogViewer.tsx +12 -2
  3011. package/components/MonitorPanel.tsx +43 -0
  3012. package/components/PipelineView.tsx +275 -56
  3013. package/components/PluginsPanel.tsx +3 -1
  3014. package/components/SettingsModal.tsx +227 -38
  3015. package/components/SkillsPanel.tsx +12 -4
  3016. package/components/WebTerminal.tsx +32 -9
  3017. package/docs/Connector-DeclarativeExtract-Handoff.md +471 -0
  3018. package/docs/Connector-DeclarativeExtract-Spec.md +364 -0
  3019. package/docs/Implementation-Plan-Browser-Agent.md +487 -0
  3020. package/docs/Jobs-Design.md +240 -0
  3021. package/docs/LOCAL-DEPLOY.md +3 -3
  3022. package/docs/RFC-Browser-Connectors.md +509 -0
  3023. package/lib/browser-bridge-standalone.ts +317 -0
  3024. package/lib/builtin-plugins/github-api.yaml +93 -0
  3025. package/lib/builtin-plugins/gitlab.yaml +860 -0
  3026. package/lib/builtin-plugins/mantis.probe.js +176 -0
  3027. package/lib/builtin-plugins/mantis.yaml +964 -0
  3028. package/lib/builtin-plugins/pmdb.yaml +178 -0
  3029. package/lib/builtin-plugins/teams.yaml +913 -0
  3030. package/lib/chat/__test__/smoke.ts +30 -0
  3031. package/lib/chat/agent-loop.ts +523 -0
  3032. package/lib/chat/bridge-client.ts +59 -0
  3033. package/lib/chat/llm/anthropic.ts +99 -0
  3034. package/lib/chat/llm/index.ts +20 -0
  3035. package/lib/chat/llm/openai.ts +215 -0
  3036. package/lib/chat/llm/types.ts +42 -0
  3037. package/lib/chat/local-memory.ts +300 -0
  3038. package/lib/chat/memory-store.ts +87 -0
  3039. package/lib/chat/memory-tools.ts +157 -0
  3040. package/lib/chat/protocols/http.ts +118 -0
  3041. package/lib/chat/protocols/shell.ts +101 -0
  3042. package/lib/chat/proxy.ts +51 -0
  3043. package/lib/chat/session-store.ts +272 -0
  3044. package/lib/chat/telegram-bridge.ts +276 -0
  3045. package/lib/chat/temper.ts +281 -0
  3046. package/lib/chat/tool-dispatcher.ts +190 -0
  3047. package/lib/chat/types.ts +50 -0
  3048. package/lib/chat-standalone.ts +286 -0
  3049. package/lib/crypto.ts +1 -1
  3050. package/lib/health.ts +131 -0
  3051. package/lib/help-docs/00-overview.md +2 -1
  3052. package/lib/help-docs/01-settings.md +44 -23
  3053. package/lib/help-docs/07-projects.md +1 -1
  3054. package/lib/help-docs/16-gitlab-autofix.md +114 -0
  3055. package/lib/help-docs/17-connectors.md +322 -0
  3056. package/lib/help-docs/18-chrome-mcp.md +134 -0
  3057. package/lib/help-docs/19-jobs.md +140 -0
  3058. package/lib/help-docs/20-mantis-bug-fix.md +115 -0
  3059. package/lib/help-docs/CLAUDE.md +10 -0
  3060. package/lib/init.ts +137 -50
  3061. package/lib/iso-time.ts +30 -0
  3062. package/lib/issue-scanner-gitlab.ts +281 -0
  3063. package/lib/jobs/dispatcher.ts +217 -0
  3064. package/lib/jobs/scheduler.ts +334 -0
  3065. package/lib/jobs/store.ts +319 -0
  3066. package/lib/jobs/types.ts +117 -0
  3067. package/lib/pipeline-scheduler.ts +1 -6
  3068. package/lib/pipeline.ts +790 -10
  3069. package/lib/plugins/registry.ts +133 -8
  3070. package/lib/plugins/templates.ts +83 -0
  3071. package/lib/plugins/types.ts +140 -1
  3072. package/lib/session-watcher.ts +36 -10
  3073. package/lib/settings.ts +65 -33
  3074. package/lib/skills.ts +3 -1
  3075. package/lib/task-manager.ts +50 -22
  3076. package/lib/telegram-bot.ts +71 -0
  3077. package/middleware.ts +10 -0
  3078. package/next-env.d.ts +1 -1
  3079. package/package.json +3 -2
  3080. package/qa/.forge/agent-context.json +6 -0
  3081. package/qa/.forge/mcp.json +8 -0
  3082. package/scripts/bench/README.md +1 -1
  3083. package/scripts/bench/tasks/01-text-utils/validator.sh +1 -1
  3084. package/scripts/bench/tasks/02-pagination/setup.sh +1 -1
  3085. package/scripts/bench/tasks/02-pagination/validator.sh +1 -1
  3086. package/scripts/bench/tasks/03-bug-fix/setup.sh +1 -1
  3087. package/scripts/bench/tasks/03-bug-fix/validator.sh +1 -1
  3088. package/src/core/db/database.ts +21 -12
  3089. package/reviewer/.forge/agent-context.json +0 -6
package/lib/pipeline.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import { randomUUID } from 'node:crypto';
9
- import { existsSync, readdirSync, readFileSync, writeFileSync, mkdirSync } from 'node:fs';
9
+ import { existsSync, readdirSync, readFileSync, writeFileSync, mkdirSync, statSync } from 'node:fs';
10
10
  import { join } from 'node:path';
11
11
  import YAML from 'yaml';
12
12
  import { createTask, getTask, onTaskEvent, taskModelOverrides } from './task-manager';
@@ -35,6 +35,9 @@ export interface WorkflowNode {
35
35
  agent?: string; // agent ID (default: from settings)
36
36
  branch?: string; // auto checkout this branch before running (supports templates)
37
37
  worktree?: boolean; // default: true. Set false to skip worktree isolation (run in project dir directly)
38
+ workdir?: string; // explicit cwd override (template). Wins over auto-worktree. Use when one node
39
+ // produces a worktree path that a later node needs to execute inside —
40
+ // e.g. worktree-setup → fix-code via `workdir: "{{nodes.worktree-setup.outputs.wt}}"`.
38
41
  // Plugin mode fields
39
42
  plugin?: string; // plugin ID (e.g., 'jenkins', 'docker')
40
43
  pluginAction?: string; // action name (e.g., 'trigger', 'build'), defaults to plugin's defaultAction
@@ -242,6 +245,597 @@ nodes:
242
245
  outputs:
243
246
  - name: result
244
247
  extract: stdout
248
+ `,
249
+ 'mantis-bug-fix-and-mr': `
250
+ name: mantis-bug-fix-and-mr
251
+ description: "Fetch Mantis bug context → worktree → fix code via headless Claude → push branch → open GitLab MR via glab CLI → notify assignee + reporter on Teams."
252
+ input:
253
+ bug_id: "Mantis bug id (number)"
254
+ project: "Forge project name"
255
+ base_branch: "Target branch the MR will be opened against (e.g. release/25.4). Required — set in the Job's input_template from the bug's product_version or target_branch field."
256
+ summary: "Bug summary (one line)"
257
+ description: "Full bug description (free text)"
258
+ priority: "Bug priority (optional)"
259
+ category: "Bug category (optional)"
260
+ reporter: "Mantis reporter username — used to notify them on Teams"
261
+ assignee: "Mantis assignee username — used to notify them on Teams"
262
+ extra_context: "Extra hints for Claude (optional)"
263
+ mr_title_template: "MR title template. Vars: {bug_id} {summary}. Default: 'Fix Mantis #{bug_id}: {summary}'"
264
+ mr_body_template: "MR body. Vars: {bug_id} {summary} {description} {claude_summary}. Default closes-reference + Claude summary."
265
+ teams_message_template: "Teams DM template. Vars: {bug_id} {summary} {mr_url} {role}. Default: '🤖 Mantis #{bug_id} fixed — review MR: {mr_url}'"
266
+ nodes:
267
+ resolve:
268
+ mode: shell
269
+ project: "{{input.project}}"
270
+ worktree: false
271
+ prompt: |
272
+ set -e
273
+ cd "$(git rev-parse --show-toplevel)"
274
+ command -v glab >/dev/null || { echo "ERROR: glab CLI not installed. brew install glab && glab auth login" >&2; exit 1; }
275
+ BUG_ID="{{input.bug_id}}"
276
+ BASE="{{input.base_branch}}"
277
+ [ -z "$BUG_ID" ] && { echo "ERROR: bug_id is required" >&2; exit 1; }
278
+ [ -z "$BASE" ] && { echo "ERROR: base_branch is required (set via Job input_template)" >&2; exit 1; }
279
+ REMOTE=$(git remote get-url origin)
280
+ RAW=$(echo "$REMOTE" | sed -E 's#^(https?://[^/]+/|git@[^:]+:)##; s#\\.git$##')
281
+ HOST=$(echo "$REMOTE" | sed -E 's#^https?://##; s#git@##; s#[:/].*##')
282
+ PROJECT_PATH="$RAW"
283
+ echo "HOST=$HOST"
284
+ echo "PROJECT_PATH=$PROJECT_PATH"
285
+ echo "BUG_ID=$BUG_ID"
286
+ echo "BASE=$BASE"
287
+ git fetch origin "$BASE" --quiet 2>/dev/null || true
288
+ outputs:
289
+ - name: info
290
+ extract: stdout
291
+ worktree-setup:
292
+ mode: shell
293
+ project: "{{input.project}}"
294
+ worktree: false
295
+ depends_on: [resolve]
296
+ prompt: |
297
+ set -e
298
+ INFO=$'{{nodes.resolve.outputs.info}}'
299
+ eval "$(echo "$INFO" | grep -E '^[A-Za-z_][A-Za-z0-9_]*=' | sed 's/^/export /')"
300
+ # worktree: false above keeps us in the project root, so this is fine.
301
+ # Falls back to FORGE_PROJECT_ROOT just in case auto-worktree gets
302
+ # re-enabled in the future.
303
+ ROOT="\${FORGE_PROJECT_ROOT:-$(git rev-parse --show-toplevel)}"
304
+ cd "$ROOT"
305
+ WORKTREE_DIR="$ROOT/.forge/worktrees/mantis-$BUG_ID"
306
+ BRANCH="fix/mantis-\${BUG_ID}"
307
+
308
+ # ALL the noisy git operations route to stderr — downstream nodes
309
+ # consume \`wt\` via \`eval "$(echo … | grep -E '^[A-Za-z_][A-Za-z0-9_]*=' | sed 's/^/export /')"\` inside
310
+ # \`$'…'\` quoting. ANY apostrophe / paren / space-ID-paren in the
311
+ # captured stdout (e.g. "Deleted branch fix/X (was abc1234).",
312
+ # "Preparing worktree (resetting branch 'X')") breaks bash with
313
+ # "syntax error near unexpected token '('".
314
+ {
315
+ # 1. Remove the on-disk worktree for THIS bug (idempotent).
316
+ if [ -d "$WORKTREE_DIR" ]; then
317
+ git worktree remove --force "$WORKTREE_DIR" 2>/dev/null || rm -rf "$WORKTREE_DIR"
318
+ fi
319
+ # 2. Drop stale worktree registrations + any other worktree pinning
320
+ # our branch. Without (3), "fatal: <branch> already used by
321
+ # worktree at <path>" can fire on the next add.
322
+ git worktree prune
323
+ git worktree list --porcelain | awk -v b="refs/heads/$BRANCH" '
324
+ /^worktree /{w=$2}
325
+ $0=="branch "b{print w}
326
+ ' | while read w; do
327
+ [ -n "$w" ] && git worktree remove --force "$w" 2>/dev/null || true
328
+ done
329
+ git branch -D "$BRANCH" 2>/dev/null || true
330
+ mkdir -p "$ROOT/.forge/worktrees"
331
+ # -B (capital) = create-or-reset; --force lets us reuse an existing dir.
332
+ git worktree add --force -B "$BRANCH" "$WORKTREE_DIR" "origin/$BASE"
333
+ } 1>&2
334
+
335
+ # IMPORTANT: emit ONLY the worktree path on stdout — nothing else.
336
+ # fix-code uses \`workdir: {{nodes.worktree-setup.outputs.wt}}\` and the
337
+ # task runner needs a clean path. If we echo'd "WORKTREE=…\\nBRANCH=…"
338
+ # the multi-line string became an invalid workdir → Claude silently
339
+ # ran in the pipeline's parent worktree, made its changes there, and
340
+ # nothing showed up in the inner branch when push-and-mr cd'd in.
341
+ # Downstream nodes get the branch by asking git from inside the
342
+ # worktree (git symbolic-ref --short HEAD) — no out-of-band passing.
343
+ echo "$WORKTREE_DIR"
344
+ outputs:
345
+ - name: wt
346
+ extract: stdout
347
+ fetch-bug-details:
348
+ mode: shell
349
+ project: "{{input.project}}"
350
+ worktree: false
351
+ depends_on: [resolve]
352
+ prompt: |
353
+ # Pull the FULL mantis bug — summary, description, additional_information,
354
+ # reproducibility, all notes with author/date, history — via Forge's
355
+ # loopback connector-tool endpoint. search_bugs (when used as the Job
356
+ # source) only returns list-page columns; this node fills the gap so
357
+ # fix-code has every field it could possibly want.
358
+ set -e
359
+ INFO=$'{{nodes.resolve.outputs.info}}'
360
+ eval "$(echo "$INFO" | grep -E '^[A-Za-z_][A-Za-z0-9_]*=' | sed 's/^/export /')"
361
+ PAYLOAD="{\\"plugin_id\\":\\"mantis\\",\\"tool\\":\\"get_bug\\",\\"input\\":{\\"id\\":$BUG_ID}}"
362
+ RESP=$(curl -sS -X POST http://127.0.0.1:8403/api/connector-tool \\
363
+ -H 'content-type: application/json' --data "$PAYLOAD")
364
+ IS_ERR=$(echo "$RESP" | jq -r '.is_error // false')
365
+ if [ "$IS_ERR" = "true" ]; then
366
+ echo "WARN: mantis.get_bug failed: $(echo "$RESP" | jq -r '.content // .error // "(unknown)"' | head -c 300)" >&2
367
+ echo "BUG_ID=$BUG_ID"
368
+ echo "BUG_JSON_B64="
369
+ echo "SUMMARY="
370
+ echo "CATEGORY="
371
+ echo "DESCRIPTION_B64="
372
+ echo "ADDITIONAL_INFO_B64="
373
+ echo "NOTES_B64="
374
+ exit 0
375
+ fi
376
+ # .content is itself a JSON string (the bug object); decode once.
377
+ BUG=$(echo "$RESP" | jq -r '.content' | jq -c '.')
378
+
379
+ # Whole bug as base64 — gives fix-code an escape hatch to read any
380
+ # field we didn't bother to enumerate (history, _fields_raw, etc).
381
+ BUG_JSON_B64=$(echo -n "$BUG" | base64 | tr -d '\\n')
382
+
383
+ # Convenience extracts. Multi-line fields (description, notes,
384
+ # additional_information) → base64'd so newlines / quotes / shell
385
+ # metachars survive transport. Single-line stays plain for the
386
+ # KEY=value eval pattern downstream nodes already use.
387
+ SUMMARY=$(echo "$BUG" | jq -r '.summary // ""' | head -c 500 | tr -d '\\n')
388
+ CAT=$(echo "$BUG" | jq -r '.category // ""' | tr -d '\\n')
389
+ REPRO=$(echo "$BUG" | jq -r '.reproducibility // ""' | tr -d '\\n')
390
+ DESC_B64=$(echo "$BUG" | jq -r '.description // ""' | base64 | tr -d '\\n')
391
+ ADDL_B64=$(echo "$BUG" | jq -r '.additional_information // ""' | base64 | tr -d '\\n')
392
+ # Notes with author + date + body, separated by ─── for readability.
393
+ NOTES_B64=$(echo "$BUG" | jq -r '[.notes[]? | "[\\(.author // "?") @ \\(.date // "?")]\\n\\(.body // "")"] | join("\\n\\n─────────────\\n\\n")' 2>/dev/null | base64 | tr -d '\\n')
394
+
395
+ echo "BUG_ID=$BUG_ID"
396
+ echo "SUMMARY=$SUMMARY"
397
+ echo "CATEGORY=$CAT"
398
+ echo "REPRODUCIBILITY=$REPRO"
399
+ echo "DESCRIPTION_B64=$DESC_B64"
400
+ echo "ADDITIONAL_INFO_B64=$ADDL_B64"
401
+ echo "NOTES_B64=$NOTES_B64"
402
+ echo "BUG_JSON_B64=$BUG_JSON_B64"
403
+
404
+ # ── Human-readable preview to stderr ──
405
+ # Goes into the task log so the user can see what we actually got
406
+ # from Mantis without having to manually base64 -d. Truncated at
407
+ # 800 chars per field to keep the log tractable. Stdout above keeps
408
+ # the clean KEY=value pairs downstream nodes parse.
409
+ DESC_PLAIN=$(echo "$BUG" | jq -r '.description // ""')
410
+ ADDL_PLAIN=$(echo "$BUG" | jq -r '.additional_information // ""')
411
+ NOTES_COUNT=$(echo "$BUG" | jq -r '.notes | length // 0')
412
+ NOTES_FIRST=$(echo "$BUG" | jq -r '.notes[0]? | "[\\(.author // "?") @ \\(.date // "?")] \\(.body // "")"' 2>/dev/null | head -c 400)
413
+ NOTES_LAST=$(echo "$BUG" | jq -r '.notes[-1]? | "[\\(.author // "?") @ \\(.date // "?")] \\(.body // "")"' 2>/dev/null | head -c 400)
414
+ DESC_LEN=$(printf %s "$DESC_PLAIN" | wc -c | tr -d ' ')
415
+ ADDL_LEN=$(printf %s "$ADDL_PLAIN" | wc -c | tr -d ' ')
416
+ {
417
+ echo ""
418
+ echo "─── fetch-bug-details — what we got from Mantis #$BUG_ID ───"
419
+ echo "Summary: $SUMMARY"
420
+ echo "Category: $CAT"
421
+ echo "Reproducibility:$REPRO"
422
+ echo ""
423
+ echo "Description (\${DESC_LEN} chars, showing first 800):"
424
+ printf %s "$DESC_PLAIN" | head -c 800
425
+ [ "$DESC_LEN" -gt 800 ] && echo "… [truncated]"
426
+ echo ""
427
+ echo ""
428
+ echo "Additional Information (\${ADDL_LEN} chars, showing first 800):"
429
+ printf %s "$ADDL_PLAIN" | head -c 800
430
+ [ "$ADDL_LEN" -gt 800 ] && echo "… [truncated]"
431
+ echo ""
432
+ echo ""
433
+ echo "Notes: $NOTES_COUNT total"
434
+ if [ "$NOTES_COUNT" -gt 0 ]; then
435
+ echo " First: $NOTES_FIRST"
436
+ [ "$NOTES_COUNT" -gt 1 ] && echo " Last: $NOTES_LAST"
437
+ fi
438
+ echo "──────────────────────────────────────────────────────"
439
+ } >&2
440
+ outputs:
441
+ - name: details
442
+ extract: stdout
443
+ download-attachments:
444
+ mode: shell
445
+ project: "{{input.project}}"
446
+ worktree: false
447
+ depends_on: [resolve, worktree-setup]
448
+ prompt: |
449
+ # Download all Attached Files from the Mantis bug into the worktree's
450
+ # .attachments/ directory so fix-code (Claude with vision) can read
451
+ # screenshots, logs, and any other supporting material. Skips files
452
+ # larger than 5 MB (see download_attachment's max_size_bytes default).
453
+ set -e
454
+ INFO=$'{{nodes.resolve.outputs.info}}'
455
+ eval "$(echo "$INFO" | grep -E '^[A-Za-z_][A-Za-z0-9_]*=' | sed 's/^/export /')"
456
+ WORKTREE_DIR=$'{{nodes.worktree-setup.outputs.wt}}'
457
+ WORKTREE_DIR=$(echo "$WORKTREE_DIR" | head -1 | tr -d '[:space:]')
458
+ ATTACH_DIR="$WORKTREE_DIR/.attachments"
459
+ mkdir -p "$ATTACH_DIR"
460
+
461
+ # 1. List attachments.
462
+ LIST=$(curl -sS -X POST http://127.0.0.1:8403/api/connector-tool \\
463
+ -H 'content-type: application/json' \\
464
+ --data "{\\"plugin_id\\":\\"mantis\\",\\"tool\\":\\"list_attachments\\",\\"input\\":{\\"id\\":$BUG_ID,\\"bug_id\\":$BUG_ID}}" )
465
+ IS_ERR=$(echo "$LIST" | jq -r '.is_error // false')
466
+ if [ "$IS_ERR" = "true" ]; then
467
+ echo "ATTACH_COUNT=0"
468
+ echo "ATTACH_DIR=$ATTACH_DIR"
469
+ echo "WARN: list_attachments failed: $(echo "$LIST" | jq -r '.content' | head -c 200)" >&2
470
+ exit 0
471
+ fi
472
+ ATTACHMENTS=$(echo "$LIST" | jq -r '.content' | jq -c '.attachments // []')
473
+ TOTAL=$(echo "$ATTACHMENTS" | jq 'length')
474
+ echo "Found $TOTAL attachment(s) on bug $BUG_ID"
475
+
476
+ COUNT=0
477
+ SKIPPED=0
478
+ # 2. Iterate + download each. jq stream the ids/filenames.
479
+ echo "$ATTACHMENTS" | jq -c '.[]' | while read -r ATT; do
480
+ FID=$(echo "$ATT" | jq -r '.file_id')
481
+ FN=$(echo "$ATT" | jq -r '.filename')
482
+ SZ=$(echo "$ATT" | jq -r '.size')
483
+ # Sanitize filename to avoid path traversal.
484
+ SAFE=$(echo "$FN" | tr -d '\\\\/:*?"<>|' | head -c 200)
485
+ [ -z "$SAFE" ] && SAFE="file-$FID"
486
+ echo " → $SAFE ($SZ bytes)"
487
+ RESP=$(curl -sS -X POST http://127.0.0.1:8403/api/connector-tool \\
488
+ -H 'content-type: application/json' \\
489
+ --data "{\\"plugin_id\\":\\"mantis\\",\\"tool\\":\\"download_attachment\\",\\"input\\":{\\"file_id\\":$FID}}")
490
+ if [ "$(echo "$RESP" | jq -r '.is_error // false')" = "true" ]; then
491
+ echo " WARN: download failed for $SAFE" >&2
492
+ continue
493
+ fi
494
+ BODY=$(echo "$RESP" | jq -r '.content')
495
+ SKIP=$(echo "$BODY" | jq -r '.skipped // false')
496
+ if [ "$SKIP" = "true" ]; then
497
+ REASON=$(echo "$BODY" | jq -r '.reason // ""')
498
+ echo " SKIPPED $SAFE — $REASON" >&2
499
+ SKIPPED=$((SKIPPED+1))
500
+ continue
501
+ fi
502
+ B64=$(echo "$BODY" | jq -r '.content_b64')
503
+ [ -z "$B64" ] && { echo " WARN: empty content_b64 for $SAFE" >&2; continue; }
504
+ echo "$B64" | base64 -d > "$ATTACH_DIR/$SAFE"
505
+ COUNT=$((COUNT+1))
506
+ done
507
+
508
+ echo "ATTACH_COUNT=$COUNT"
509
+ echo "ATTACH_SKIPPED=$SKIPPED"
510
+ echo "ATTACH_DIR=$ATTACH_DIR"
511
+
512
+ # Human-readable directory listing into stderr so the log shows
513
+ # what's actually on disk for the next node.
514
+ {
515
+ echo ""
516
+ echo "─── download-attachments — files in $ATTACH_DIR ───"
517
+ if [ -d "$ATTACH_DIR" ] && [ -n "$(ls -A "$ATTACH_DIR" 2>/dev/null)" ]; then
518
+ ls -lhS "$ATTACH_DIR" 2>/dev/null | tail -n +2
519
+ else
520
+ echo "(no files)"
521
+ fi
522
+ echo "──────────────────────────────────────────────────────"
523
+ } >&2
524
+ outputs:
525
+ - name: attach
526
+ extract: stdout
527
+ fix-code:
528
+ project: "{{input.project}}"
529
+ worktree: false
530
+ depends_on: [worktree-setup, fetch-bug-details, download-attachments]
531
+ workdir: "{{nodes.worktree-setup.outputs.wt}}"
532
+ prompt: |
533
+ A Mantis bug needs to be fixed in this worktree (already checked out
534
+ from the target base branch). You are running headless — make the fix
535
+ yourself, stage + commit.
536
+
537
+ ## Bug
538
+ ID: {{input.bug_id}}
539
+ Priority: {{input.priority}}
540
+ Category (from get_bug, full): see DETAILS below
541
+ Assignee: {{input.assignee}}
542
+ Reporter: {{input.reporter}}
543
+
544
+ ## Summary
545
+ {{input.summary}}
546
+
547
+ ## Full bug details (fetched via mantis.get_bug)
548
+ The fetch-bug-details node ran \`mantis.get_bug\` and exported these
549
+ key=value lines. _B64 fields are base64-encoded multi-line strings:
550
+
551
+ {{nodes.fetch-bug-details.outputs.details}}
552
+
553
+ Decode any _B64 field with:
554
+ \`echo "<value>" | base64 -d\`
555
+
556
+ Available fields (READ ALL of them before deciding on a fix):
557
+ SUMMARY one-line title (plain)
558
+ CATEGORY Mantis category (plain)
559
+ REPRODUCIBILITY always / sometimes / random / N/A (plain)
560
+ DESCRIPTION_B64 full bug description (base64; often the most
561
+ important field — repro steps live here)
562
+ ADDITIONAL_INFO_B64 "Additional Information" custom field —
563
+ FortiNAC bug reports usually put stack traces,
564
+ env details, log snippets here. Decode + read.
565
+ NOTES_B64 all comments concatenated, with author + date
566
+ headers ([author @ date]). Use to see what
567
+ QA + reporter already discussed.
568
+ BUG_JSON_B64 escape hatch — the whole bug object as JSON
569
+ (decoded, this has every field including
570
+ history[] and _fields_raw if you need it).
571
+
572
+ ## Description (search_bugs-supplied, may be empty)
573
+ {{input.description}}
574
+
575
+ ## Attached Files
576
+ {{nodes.download-attachments.outputs.attach}}
577
+
578
+ Files (if any) were saved under \`.attachments/\` in this worktree.
579
+ List them with \`ls -la .attachments/\`. For images, USE THE READ
580
+ TOOL on the file — your vision can analyze screenshots / error
581
+ dialogs / network diagrams directly. For text-like attachments
582
+ (log snippets, .txt, .json, small .pcap text exports) just open
583
+ them. Files larger than 5 MB were skipped — if a critical one is
584
+ missing, mention it in your fix notes; don't try to re-fetch.
585
+
586
+ ## Extra context
587
+ {{input.extra_context}}
588
+
589
+ ## HARD RULES — read before tool use
590
+ - **Never call mcp__* tools.** Pipeline tasks do not have interactive
591
+ auth; any MCP call that needs SSO/TOTP (mantis_auth, gitlab, pmdb,
592
+ …) will hang and fail the pipeline. The bug context above is the
593
+ only Mantis data you get.
594
+ - If a field above is empty or truncated, **work with what is given**.
595
+ Do NOT try to fetch more from Mantis. The pipeline owns Mantis access
596
+ upstream — re-running mantis lookup here is wasted effort and breaks
597
+ the design contract (Job → Pipeline data flow).
598
+ - If you ABSOLUTELY need supplemental data from another Forge connector
599
+ (rare), use the Forge HTTP API instead of MCP. POST
600
+ http://127.0.0.1:8403/api/connector-tool with JSON body
601
+ {"plugin_id":"<plugin>","tool":"<tool>","input":{...}}
602
+
603
+ ## Steps
604
+ 1. Read the bug carefully — identify the affected component.
605
+ 2. Find the relevant file(s) via git grep + reading the code.
606
+ 3. Implement a minimal fix.
607
+ 4. Add tests if the codebase has a test suite.
608
+ 5. Stage + commit with message: 'Fix Mantis #{{input.bug_id}}: <one-line>'.
609
+ **DO NOT add a "Co-Authored-By: Claude …" or "Generated with Claude
610
+ Code" trailer.** Plain commit message only — the MR is going into a
611
+ corporate repo and the AI co-authorship attribution is not wanted.
612
+
613
+ Do NOT push — the next pipeline node handles push + MR.
614
+ outputs:
615
+ - name: summary
616
+ extract: result
617
+ - name: diff
618
+ extract: git_diff
619
+ push-and-mr:
620
+ mode: shell
621
+ project: "{{input.project}}"
622
+ worktree: false
623
+ workdir: "{{nodes.worktree-setup.outputs.wt}}"
624
+ depends_on: [fix-code]
625
+ prompt: |
626
+ set -e
627
+ INFO=$'{{nodes.resolve.outputs.info}}'
628
+ eval "$(echo "$INFO" | grep -E '^[A-Za-z_][A-Za-z0-9_]*=' | sed 's/^/export /')"
629
+ # workdir already cd'd us into the mantis worktree. Derive BRANCH.
630
+ BRANCH=$(git symbolic-ref --short HEAD)
631
+ # Bail if Claude didn't actually commit anything
632
+ AHEAD=$(git rev-list --count "origin/$BASE..HEAD" 2>/dev/null || echo 0)
633
+ if [ "$AHEAD" -lt 1 ]; then
634
+ echo "NO_CHANGES — Claude did not commit; aborting MR creation"
635
+ echo "MR_URL="
636
+ exit 0
637
+ fi
638
+ git push -u origin "$BRANCH" --force-with-lease 2>&1
639
+ # Heredoc keeps Claude's summary intact (apostrophes, parens, $, …).
640
+ SUMMARY=$(cat <<'FORGE_SUMMARY_EOF'
641
+ {{nodes.fix-code.outputs.summary}}
642
+ FORGE_SUMMARY_EOF
643
+ )
644
+ # ALL pipeline-templated values must enter via \`$'…'\` ANSI-C quoting,
645
+ # NOT plain "…". The pipeline engine ANSI-C-escapes substituted values
646
+ # (\\n / \\t / \\' etc.); inside "…" bash treats those as literal text
647
+ # and the MR description ends up showing "\\n" instead of real
648
+ # newlines, breaking the markdown.
649
+ TITLE_TPL=$'{{input.mr_title_template}}'
650
+ [ -z "$TITLE_TPL" ] && TITLE_TPL="Fix Mantis #{bug_id}: {summary}"
651
+ BODY_TPL=$'{{input.mr_body_template}}'
652
+ [ -z "$BODY_TPL" ] && BODY_TPL="Auto-fix for Mantis bug #{bug_id}.
653
+
654
+ ## Summary
655
+ {summary}
656
+
657
+ ## Original description
658
+ {description}
659
+
660
+ ## Claude's fix notes
661
+ {claude_summary}
662
+
663
+ ## Files changed
664
+ {diff_stat}
665
+
666
+ _Opened by Forge mantis-bug-fix-and-mr pipeline._"
667
+ BUG_ID_VAR=$'{{input.bug_id}}'
668
+ SUMMARY_VAR=$'{{input.summary}}'
669
+ DESCRIPTION_VAR=$'{{input.description}}'
670
+ # Compact list of files touched. --stat gives "N files changed, X+/Y-"
671
+ # which is small but tells the reviewer what's in the MR at a glance.
672
+ DIFF_STAT=$(git diff --stat "origin/$BASE..HEAD" 2>/dev/null || echo "")
673
+ MR_TITLE=$(python3 - "$TITLE_TPL" "$BUG_ID_VAR" "$SUMMARY_VAR" <<'PY'
674
+ import sys
675
+ tpl, bug_id, summary = sys.argv[1], sys.argv[2], sys.argv[3]
676
+ print(tpl.replace('{bug_id}', bug_id).replace('{summary}', summary))
677
+ PY
678
+ )
679
+ MR_BODY=$(python3 - "$BODY_TPL" "$BUG_ID_VAR" "$SUMMARY_VAR" "$DESCRIPTION_VAR" "$SUMMARY" "$DIFF_STAT" <<'PY'
680
+ import sys
681
+ tpl, bug_id, summary, description, claude, diff_stat = sys.argv[1:7]
682
+ out = (tpl.replace('{bug_id}', bug_id)
683
+ .replace('{summary}', summary)
684
+ .replace('{description}', description)
685
+ .replace('{claude_summary}', claude)
686
+ .replace('{diff_stat}', diff_stat))
687
+ print(out)
688
+ PY
689
+ )
690
+ # Bug assignee → MR reviewer. Mantis assignee comes as "Jane Doe (jdoe)";
691
+ # extract the (username) and pass to glab. If parens absent or empty,
692
+ # skip the flag — glab errors on --reviewer "" .
693
+ ASSIGNEE_RAW=$'{{input.assignee}}'
694
+ REVIEWER_USERNAME=$(echo "$ASSIGNEE_RAW" | grep -oE '\\(([a-zA-Z0-9._-]+)\\)' | tail -1 | tr -d '()')
695
+ REVIEWER_FLAGS=()
696
+ if [ -n "$REVIEWER_USERNAME" ]; then
697
+ REVIEWER_FLAGS+=(--reviewer "$REVIEWER_USERNAME")
698
+ echo "Setting MR reviewer: $REVIEWER_USERNAME (from assignee '$ASSIGNEE_RAW')"
699
+ else
700
+ echo "No (username) found in assignee '$ASSIGNEE_RAW' — skipping --reviewer"
701
+ fi
702
+ # Capture glab output AND exit code so we can debug failures. Old
703
+ # pipeline that just grep'd for the URL ate everything if the
704
+ # regex didn't match — leaving MR_URL empty with no clue why
705
+ # (auth refresh needed, reviewer username wrong, MR already exists
706
+ # at a non-canonical URL, etc).
707
+ set +e
708
+ GLAB_OUT=$(glab mr create -R "$PROJECT_PATH" --target-branch "$BASE" --source-branch "$BRANCH" \\
709
+ --title "$MR_TITLE" --description "$MR_BODY" \\
710
+ "\${REVIEWER_FLAGS[@]}" \\
711
+ --yes 2>&1)
712
+ GLAB_RC=$?
713
+ set -e
714
+ # Surface glab's output to the task log (truncated) so a failed
715
+ # retry doesn't disappear into the void.
716
+ echo "--- glab mr create (rc=$GLAB_RC) ---"
717
+ echo "$GLAB_OUT" | head -50
718
+ echo "--- end glab output ---"
719
+
720
+ # Common, very actionable failure: corp GitLab revoked the glab
721
+ # token. Detect + give the exact command to fix instead of making
722
+ # the user dig through stack-trace-like output.
723
+ if echo "$GLAB_OUT" | grep -qE '401|invalid_token|Token was revoked|unauthorized'; then
724
+ HOST=$(echo "$PROJECT_PATH" | sed -E 's#^.+@?##; s#:.*##' || true)
725
+ REMOTE_HOST=$(git config --get remote.origin.url 2>/dev/null | sed -E 's#^(https?://)?(git@)?([^:/]+).*#\\3#')
726
+ echo "ERROR: glab token revoked / expired for \${REMOTE_HOST:-this GitLab server}." >&2
727
+ echo "Fix: glab auth login --hostname \${REMOTE_HOST:-<gitlab-host>}" >&2
728
+ echo "Then retry this node from the pipeline UI." >&2
729
+ fi
730
+
731
+ MR_URL=$(echo "$GLAB_OUT" | grep -oE 'https://[^[:space:]]+/-/merge_requests/[0-9]+' | head -1)
732
+
733
+ # If glab succeeded but we didn't parse a URL (output format
734
+ # variant), OR if the MR already existed (glab errors on conflict),
735
+ # fall back to looking up the MR by source branch.
736
+ if [ -z "$MR_URL" ]; then
737
+ echo "Fallback: looking up existing MR for branch $BRANCH"
738
+ MR_URL=$(glab mr view "$BRANCH" -R "$PROJECT_PATH" --output json 2>/dev/null | jq -r '.web_url // empty')
739
+ if [ -z "$MR_URL" ]; then
740
+ # Last resort: glab mr list with our source branch.
741
+ MR_URL=$(glab mr list -R "$PROJECT_PATH" --source-branch "$BRANCH" --output json 2>/dev/null \\
742
+ | jq -r '.[0].web_url // empty')
743
+ fi
744
+ fi
745
+
746
+ if [ -z "$MR_URL" ]; then
747
+ echo "ERROR: could not create OR find MR for $BRANCH. See glab output above." >&2
748
+ # Don't fail the node hard — push succeeded, the user can create
749
+ # the MR manually via the GitLab "create MR" hint in the push
750
+ # output. notify-teams will see empty MR_URL and skip.
751
+ fi
752
+
753
+ echo "MR_URL=$MR_URL"
754
+ echo "REVIEWER=$REVIEWER_USERNAME"
755
+ outputs:
756
+ - name: mr
757
+ extract: stdout
758
+ notify-teams:
759
+ mode: shell
760
+ project: "{{input.project}}"
761
+ worktree: false
762
+ depends_on: [push-and-mr]
763
+ prompt: |
764
+ set -e
765
+ MR_OUT=$'{{nodes.push-and-mr.outputs.mr}}'
766
+ eval "$(echo "$MR_OUT" | grep -E '^[A-Za-z_][A-Za-z0-9_]*=' | sed 's/^/export /')"
767
+ if [ -z "$MR_URL" ]; then
768
+ echo "SKIP — no MR URL (Claude likely made no changes)"
769
+ exit 0
770
+ fi
771
+ MSG_TPL="{{input.teams_message_template}}"
772
+ [ -z "$MSG_TPL" ] && MSG_TPL="🤖 Mantis #{bug_id} fixed — please review MR: {mr_url}"$'\\n'"Bug: {summary}"
773
+ # Forge exposes /api/connector-tool on loopback (no auth) — pipelines
774
+ # call connector tools through it. teams.send_message takes name (fuzzy
775
+ # match against any chat the user is in) + text.
776
+ send_to() {
777
+ local who="$1"
778
+ local role="$2"
779
+ if [ -z "$who" ]; then echo "SKIP — no $role name"; return 0; fi
780
+ # Render template + build JSON payload in one Python invocation so we
781
+ # never have to worry about shell quoting of summary / description /
782
+ # MR URL when they contain |, $, backticks, etc.
783
+ local payload
784
+ payload=$(python3 - "$MSG_TPL" "{{input.bug_id}}" "{{input.summary}}" "$role" "$MR_URL" "$who" <<'PY'
785
+ import json, sys
786
+ tpl, bug_id, summary, role, mr_url, who = sys.argv[1:7]
787
+ text = (tpl.replace('{bug_id}', bug_id)
788
+ .replace('{summary}', summary)
789
+ .replace('{role}', role)
790
+ .replace('{mr_url}', mr_url))
791
+ print(json.dumps({'plugin_id': 'teams', 'tool': 'send_message',
792
+ 'input': {'name': who, 'text': text}}))
793
+ PY
794
+ )
795
+ echo "Sending to Teams chat '$who' ($role)…"
796
+ curl -sS -X POST http://127.0.0.1:8403/api/connector-tool \\
797
+ -H 'content-type: application/json' \\
798
+ --data-binary "$payload" \\
799
+ | jq .
800
+ }
801
+ send_to "{{input.assignee}}" "assignee"
802
+ send_to "{{input.reporter}}" "reporter"
803
+ echo "DONE — MR: $MR_URL"
804
+ outputs:
805
+ - name: result
806
+ extract: stdout
807
+ cleanup:
808
+ mode: shell
809
+ project: "{{input.project}}"
810
+ worktree: false
811
+ depends_on: [notify-teams]
812
+ prompt: |
813
+ # Best-effort cleanup so the project working tree doesn't pile up
814
+ # one full checkout per fixed bug. Runs only after notify-teams
815
+ # succeeded — if anything upstream failed, the worktree is kept
816
+ # for inspection. The remote branch + MR still live on GitLab.
817
+ set +e
818
+ WORKTREE_DIR=$'{{nodes.worktree-setup.outputs.wt}}'
819
+ WORKTREE_DIR=$(echo "$WORKTREE_DIR" | head -1 | tr -d '[:space:]')
820
+ # Derive BRANCH from inside the worktree before we delete it.
821
+ BRANCH=$(git -C "$WORKTREE_DIR" symbolic-ref --short HEAD 2>/dev/null)
822
+ cd "$(git rev-parse --show-toplevel 2>/dev/null || echo .)"
823
+ ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
824
+ [ -z "$ROOT" ] && { echo "SKIP — not in a git repo"; exit 0; }
825
+ # Paranoia — only clean under our .forge/worktrees/.
826
+ case "$WORKTREE_DIR" in
827
+ "$ROOT/.forge/worktrees/"*) : ;;
828
+ *) echo "SKIP — WORKTREE_DIR=$WORKTREE_DIR not under .forge/worktrees/"; exit 0 ;;
829
+ esac
830
+ echo "removing worktree $WORKTREE_DIR …"
831
+ git worktree remove --force "$WORKTREE_DIR" 2>&1 || rm -rf "$WORKTREE_DIR"
832
+ git worktree prune
833
+ # Drop the local branch too — remote copy is on GitLab + the MR.
834
+ [ -n "$BRANCH" ] && git branch -D "$BRANCH" 2>/dev/null && echo "deleted local branch $BRANCH"
835
+ echo "cleanup done"
836
+ outputs:
837
+ - name: result
838
+ extract: stdout
245
839
  `,
246
840
  'multi-agent-collaboration': `
247
841
  name: multi-agent-collaboration
@@ -439,6 +1033,7 @@ function parseWorkflow(raw: string): Workflow {
439
1033
  agent: n.agent || undefined,
440
1034
  branch: n.branch || undefined,
441
1035
  worktree: n.worktree !== undefined ? n.worktree : undefined,
1036
+ workdir: n.workdir || undefined,
442
1037
  plugin: n.plugin || undefined,
443
1038
  pluginAction: n.plugin_action || n.pluginAction || undefined,
444
1039
  pluginParams: n.plugin_params || n.pluginParams || n.params || undefined,
@@ -511,24 +1106,102 @@ export function deletePipeline(id: string): boolean {
511
1106
  if (existsSync(filePath)) {
512
1107
  const { unlinkSync } = require('node:fs');
513
1108
  unlinkSync(filePath);
1109
+ __pipelineCache.delete(filePath);
514
1110
  return true;
515
1111
  }
516
1112
  } catch {}
517
1113
  return false;
518
1114
  }
519
1115
 
1116
+ // Parsed-pipeline cache keyed by absolute path → { mtime, pipeline }.
1117
+ // Pipeline files only change when a pipeline run advances (savePipeline) —
1118
+ // re-reading + JSON.parse on every list call was burning 1-3s with 200
1119
+ // runs accumulated (largest file 136KB, conversation history + node
1120
+ // outputs blow up). With this cache, subsequent listPipelines() calls
1121
+ // only re-parse files whose mtime changed since the last read.
1122
+ const __pipelineCache = new Map<string, { mtimeMs: number; pipeline: Pipeline }>();
1123
+
520
1124
  export function listPipelines(): Pipeline[] {
521
1125
  ensureDir();
522
- return readdirSync(PIPELINES_DIR)
523
- .filter(f => f.endsWith('.json'))
524
- .map(f => {
525
- try {
526
- return JSON.parse(readFileSync(join(PIPELINES_DIR, f), 'utf-8')) as Pipeline;
527
- } catch {
528
- return null;
1126
+ const files = readdirSync(PIPELINES_DIR).filter(f => f.endsWith('.json'));
1127
+ const out: Pipeline[] = [];
1128
+ for (const f of files) {
1129
+ const path = join(PIPELINES_DIR, f);
1130
+ try {
1131
+ const stat = statSync(path);
1132
+ const cached = __pipelineCache.get(path);
1133
+ if (cached && cached.mtimeMs === stat.mtimeMs) {
1134
+ out.push(cached.pipeline);
1135
+ continue;
529
1136
  }
530
- })
531
- .filter(Boolean) as Pipeline[];
1137
+ const pipeline = JSON.parse(readFileSync(path, 'utf-8')) as Pipeline;
1138
+ __pipelineCache.set(path, { mtimeMs: stat.mtimeMs, pipeline });
1139
+ out.push(pipeline);
1140
+ } catch { /* skip unreadable */ }
1141
+ }
1142
+ return out;
1143
+ }
1144
+
1145
+ /**
1146
+ * Light summary for the pipeline LIST UI — strips the heavy fields
1147
+ * (node outputs, conversation message bodies, errors). The full pipeline
1148
+ * is fetched via GET /api/pipelines/:id when the user opens a specific
1149
+ * run. Cuts /api/pipelines payload from ~1.6MB to <50KB with 200 runs.
1150
+ */
1151
+ export interface PipelineSummary {
1152
+ id: string;
1153
+ workflowName: string;
1154
+ status: Pipeline['status'];
1155
+ type?: Pipeline['type'];
1156
+ createdAt: string;
1157
+ completedAt?: string;
1158
+ nodeOrder: string[];
1159
+ nodes: Record<string, { status: PipelineNodeState['status']; iterations?: number }>;
1160
+ conversation?: { currentRound?: number; config?: { maxRounds?: number } };
1161
+ input?: Record<string, string>;
1162
+ }
1163
+
1164
+ export interface ListPipelinesOptions {
1165
+ /** Newest-first limit. Defaults to 100. Hard ceiling 500 (the heavy
1166
+ * pipeline detail view fetches one run at a time anyway, so a
1167
+ * five-hundred-deep list covers every practical workflow grouping). */
1168
+ limit?: number;
1169
+ /** Filter to a single workflow. Combine with a higher limit when the
1170
+ * user expands one workflow and wants its full history. */
1171
+ workflow?: string;
1172
+ /** Cursor for "Load more" — return runs with createdAt < before. */
1173
+ before?: string;
1174
+ }
1175
+
1176
+ export function listPipelinesSummary(opts: ListPipelinesOptions = {}): PipelineSummary[] {
1177
+ const limit = Math.min(Math.max(1, opts.limit ?? 100), 500);
1178
+ // listPipelines already builds parsed objects (cached). Sort by
1179
+ // createdAt desc, optionally filter, then slice. Avoids serializing the
1180
+ // hundreds of older runs the UI never shows.
1181
+ let all = listPipelines();
1182
+ if (opts.workflow) {
1183
+ const target = opts.workflow;
1184
+ all = all.filter(p => p.workflowName === target);
1185
+ }
1186
+ all.sort((a, b) => b.createdAt.localeCompare(a.createdAt));
1187
+ if (opts.before) all = all.filter(p => p.createdAt < opts.before!);
1188
+ const slice = all.slice(0, limit);
1189
+ return slice.map(p => ({
1190
+ id: p.id,
1191
+ workflowName: p.workflowName,
1192
+ status: p.status,
1193
+ type: p.type,
1194
+ createdAt: p.createdAt,
1195
+ completedAt: p.completedAt,
1196
+ nodeOrder: p.nodeOrder,
1197
+ nodes: Object.fromEntries(
1198
+ Object.entries(p.nodes).map(([k, v]) => [k, { status: v.status, iterations: v.iterations }]),
1199
+ ),
1200
+ conversation: p.conversation
1201
+ ? { currentRound: p.conversation.currentRound, config: { maxRounds: p.conversation.config?.maxRounds } }
1202
+ : undefined,
1203
+ input: p.input,
1204
+ }));
532
1205
  }
533
1206
 
534
1207
  // ─── Template Resolution ──────────────────────────────────
@@ -1135,6 +1808,80 @@ setInterval(recoverStuckPipelines, 30_000);
1135
1808
  // Also run once on load
1136
1809
  setTimeout(recoverStuckPipelines, 5000);
1137
1810
 
1811
+ /**
1812
+ * Retry a single failed node. Cascades-reset to any downstream nodes that
1813
+ * got marked 'skipped' (because this one failed) so they re-run too. The
1814
+ * pipeline flips back to 'running' if it had completed as failed.
1815
+ *
1816
+ * Use case: pipeline failed at push-and-mr because of a shell quoting bug;
1817
+ * fix-code already produced a valid commit in the worktree. Retry push-and-mr
1818
+ * without re-running the 15-minute fix-code.
1819
+ *
1820
+ * Returns { ok, error? }. Validation:
1821
+ * - node must exist + be in failed status
1822
+ * - all of the node's *dependencies* must be 'done' (we don't retry into
1823
+ * a broken upstream — fix the upstream first)
1824
+ */
1825
+ export async function retryNode(pipelineId: string, nodeId: string): Promise<{ ok: boolean; error?: string }> {
1826
+ const pipeline = getPipeline(pipelineId);
1827
+ if (!pipeline) return { ok: false, error: 'pipeline not found' };
1828
+
1829
+ const nodeState = pipeline.nodes[nodeId];
1830
+ if (!nodeState) return { ok: false, error: `node '${nodeId}' is not in this pipeline` };
1831
+ if (nodeState.status !== 'failed') {
1832
+ return { ok: false, error: `node is in status '${nodeState.status}' — only failed nodes can be retried` };
1833
+ }
1834
+
1835
+ const workflow = getWorkflow(pipeline.workflowName);
1836
+ if (!workflow) return { ok: false, error: `workflow '${pipeline.workflowName}' not found` };
1837
+
1838
+ const nodeDef = workflow.nodes[nodeId];
1839
+ if (!nodeDef) return { ok: false, error: `node '${nodeId}' is not in workflow definition` };
1840
+
1841
+ for (const dep of nodeDef.dependsOn) {
1842
+ const depState = pipeline.nodes[dep];
1843
+ if (!depState || depState.status !== 'done') {
1844
+ return { ok: false, error: `dependency '${dep}' is in status '${depState?.status || 'missing'}' — retry upstream first` };
1845
+ }
1846
+ }
1847
+
1848
+ // BFS downstream — any node whose chain of dependencies reaches `nodeId`
1849
+ // needs to be reset too (it likely got marked 'skipped' when this failed).
1850
+ const toReset = new Set<string>([nodeId]);
1851
+ let added = true;
1852
+ while (added) {
1853
+ added = false;
1854
+ for (const [otherId, otherDef] of Object.entries(workflow.nodes)) {
1855
+ if (toReset.has(otherId)) continue;
1856
+ if (otherDef.dependsOn.some(d => toReset.has(d))) {
1857
+ toReset.add(otherId);
1858
+ added = true;
1859
+ }
1860
+ }
1861
+ }
1862
+
1863
+ for (const rid of toReset) {
1864
+ const s = pipeline.nodes[rid];
1865
+ if (!s) continue;
1866
+ s.status = 'pending';
1867
+ s.error = undefined;
1868
+ s.taskId = undefined;
1869
+ s.startedAt = undefined;
1870
+ s.completedAt = undefined;
1871
+ s.outputs = {};
1872
+ // Don't reset s.iterations — keep monotonic so retries show up in history.
1873
+ }
1874
+
1875
+ if (pipeline.status === 'failed' || pipeline.status === 'done') {
1876
+ pipeline.status = 'running';
1877
+ pipeline.completedAt = undefined;
1878
+ }
1879
+
1880
+ savePipeline(pipeline);
1881
+ await scheduleReadyNodes(pipeline, workflow);
1882
+ return { ok: true };
1883
+ }
1884
+
1138
1885
  export function cancelPipeline(id: string): boolean {
1139
1886
  const pipeline = getPipeline(id);
1140
1887
  if (!pipeline || pipeline.status !== 'running') return false;
@@ -1243,6 +1990,32 @@ async function scheduleReadyNodes(pipeline: Pipeline, workflow: Workflow) {
1243
1990
  console.warn(`[pipeline] Worktree creation failed, falling back to project dir: ${e.message}`);
1244
1991
  }
1245
1992
 
1993
+ // Explicit workdir override — wins over auto-worktree. Use case:
1994
+ // worktree-setup emits a path on stdout; downstream nodes (fix-code,
1995
+ // push-and-mr) declare workdir: "{{nodes.worktree-setup.outputs.wt}}"
1996
+ // to actually execute inside that worktree instead of the auto one.
1997
+ // Before this support existed, the YAML's workdir was silently ignored
1998
+ // and Claude wrote its changes into the wrong tree.
1999
+ if (nodeDef.workdir) {
2000
+ const resolved = resolveTemplate(nodeDef.workdir, ctx).trim();
2001
+ // Reject empties + multi-line strings — those are signs of malformed
2002
+ // upstream output (e.g. accidentally including KEY=value lines).
2003
+ if (resolved && !resolved.includes('\n')) {
2004
+ try {
2005
+ const { statSync } = require('node:fs');
2006
+ if (statSync(resolved).isDirectory()) {
2007
+ effectivePath = resolved;
2008
+ } else {
2009
+ console.warn(`[pipeline] workdir resolved to non-directory '${resolved}', keeping ${effectivePath}`);
2010
+ }
2011
+ } catch (e: any) {
2012
+ console.warn(`[pipeline] workdir '${resolved}' not accessible (${e.code || e.message}), keeping ${effectivePath}`);
2013
+ }
2014
+ } else if (resolved) {
2015
+ console.warn(`[pipeline] workdir resolved to a multi-line value — ignoring (upstream likely emitted KEY=value pairs instead of a clean path)`);
2016
+ }
2017
+ }
2018
+
1246
2019
  // ── Plugin mode: execute plugin action directly ──
1247
2020
  if (nodeDef.mode === 'plugin' && nodeDef.plugin) {
1248
2021
  nodeState.status = 'running';
@@ -1306,6 +2079,13 @@ async function scheduleReadyNodes(pipeline: Pipeline, workflow: Workflow) {
1306
2079
  prompt: effectivePrompt,
1307
2080
  mode: taskMode as any,
1308
2081
  agent: nodeDef.agent || undefined,
2082
+ // Pipeline nodes always start a fresh Claude session. Without this,
2083
+ // createTask falls back to getProjectConversationId() which returns
2084
+ // the project's last interactive session id — but pipeline nodes
2085
+ // often run in a per-node worktree where that session file doesn't
2086
+ // exist, producing 'No conversation found with session ID ...' on
2087
+ // first execution.
2088
+ conversationId: '',
1309
2089
  });
1310
2090
  pipelineTaskIds.add(task.id);
1311
2091
  // Pipeline tasks use the same model selection as normal tasks: