opencode-orchestrator 1.5.1 → 1.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (554) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +1 -1
  3. package/dist/agents/commander.d.ts +1 -1
  4. package/dist/agents/definitions.d.ts +1 -1
  5. package/dist/agents/prompts/01_philosophy/anti_hallucination.d.ts +0 -0
  6. package/dist/agents/prompts/01_philosophy/core.d.ts +0 -0
  7. package/dist/agents/prompts/01_philosophy/execution_assurance.d.ts +0 -0
  8. package/dist/agents/prompts/01_philosophy/index.d.ts +0 -0
  9. package/dist/agents/prompts/01_philosophy/metadata.d.ts +0 -0
  10. package/dist/agents/prompts/01_philosophy/modularity.d.ts +0 -0
  11. package/dist/agents/prompts/02_discovery/agents/discovery_commander.d.ts +0 -0
  12. package/dist/agents/prompts/02_discovery/agents/discovery_planner.d.ts +0 -0
  13. package/dist/agents/prompts/02_discovery/agents/index.d.ts +0 -0
  14. package/dist/agents/prompts/02_discovery/discovery_core.d.ts +0 -0
  15. package/dist/agents/prompts/02_discovery/discovery_environment.d.ts +0 -0
  16. package/dist/agents/prompts/02_discovery/discovery_skills.d.ts +0 -0
  17. package/dist/agents/prompts/02_discovery/discovery_workspace.d.ts +0 -0
  18. package/dist/agents/prompts/02_discovery/index.d.ts +0 -0
  19. package/dist/agents/prompts/03_planning/agents/index.d.ts +0 -0
  20. package/dist/agents/prompts/03_planning/agents/planning_commander.d.ts +0 -0
  21. package/dist/agents/prompts/03_planning/agents/planning_planner.d.ts +0 -0
  22. package/dist/agents/prompts/03_planning/agents/planning_reviewer.d.ts +0 -0
  23. package/dist/agents/prompts/03_planning/index.d.ts +0 -0
  24. package/dist/agents/prompts/03_planning/planning_core.d.ts +0 -0
  25. package/dist/agents/prompts/03_planning/planning_decomposition.d.ts +0 -0
  26. package/dist/agents/prompts/03_planning/planning_file_planning.d.ts +0 -0
  27. package/dist/agents/prompts/03_planning/planning_parallel.d.ts +0 -0
  28. package/dist/agents/prompts/03_planning/planning_research.d.ts +0 -0
  29. package/dist/agents/prompts/03_planning/planning_todo_format.d.ts +0 -0
  30. package/dist/agents/prompts/03_planning/planning_todo_rules.d.ts +0 -0
  31. package/dist/agents/prompts/03_planning/planning_todo_sync.d.ts +0 -0
  32. package/dist/agents/prompts/04_execution/agents/execution_commander.d.ts +0 -0
  33. package/dist/agents/prompts/04_execution/agents/execution_worker.d.ts +0 -0
  34. package/dist/agents/prompts/04_execution/agents/index.d.ts +0 -0
  35. package/dist/agents/prompts/04_execution/execution_core.d.ts +0 -0
  36. package/dist/agents/prompts/04_execution/execution_delegation.d.ts +0 -0
  37. package/dist/agents/prompts/04_execution/execution_error_handling.d.ts +0 -0
  38. package/dist/agents/prompts/04_execution/execution_file_assignment.d.ts +0 -0
  39. package/dist/agents/prompts/04_execution/execution_hyper_parallel.d.ts +0 -0
  40. package/dist/agents/prompts/04_execution/execution_isolation.d.ts +0 -0
  41. package/dist/agents/prompts/04_execution/execution_quality.d.ts +0 -0
  42. package/dist/agents/prompts/04_execution/execution_strategy.d.ts +0 -0
  43. package/dist/agents/prompts/04_execution/execution_tdd.d.ts +0 -0
  44. package/dist/agents/prompts/04_execution/execution_workflow.d.ts +0 -0
  45. package/dist/agents/prompts/04_execution/index.d.ts +0 -0
  46. package/dist/agents/prompts/05_verification/agents/index.d.ts +0 -0
  47. package/dist/agents/prompts/05_verification/agents/verification_commander.d.ts +0 -0
  48. package/dist/agents/prompts/05_verification/agents/verification_reviewer.d.ts +0 -0
  49. package/dist/agents/prompts/05_verification/index.d.ts +0 -0
  50. package/dist/agents/prompts/05_verification/verification_async_monitoring.d.ts +0 -0
  51. package/dist/agents/prompts/05_verification/verification_build.d.ts +0 -0
  52. package/dist/agents/prompts/05_verification/verification_core.d.ts +0 -0
  53. package/dist/agents/prompts/05_verification/verification_evidence.d.ts +0 -0
  54. package/dist/agents/prompts/05_verification/verification_integration.d.ts +0 -0
  55. package/dist/agents/prompts/05_verification/verification_strategy.d.ts +0 -0
  56. package/dist/agents/prompts/05_verification/verification_sync_check.d.ts +0 -0
  57. package/dist/agents/prompts/05_verification/verification_sync_handling.d.ts +0 -0
  58. package/dist/agents/prompts/05_verification/verification_test.d.ts +0 -0
  59. package/dist/agents/prompts/06_mission/agents/index.d.ts +0 -0
  60. package/dist/agents/prompts/06_mission/agents/mission_commander.d.ts +0 -0
  61. package/dist/agents/prompts/06_mission/index.d.ts +0 -0
  62. package/dist/agents/prompts/06_mission/mission_completion_conditions.d.ts +0 -0
  63. package/dist/agents/prompts/06_mission/mission_core.d.ts +0 -0
  64. package/dist/agents/prompts/06_mission/mission_lifecycle.d.ts +0 -0
  65. package/dist/agents/prompts/06_mission/mission_loop_continuation.d.ts +0 -0
  66. package/dist/agents/prompts/06_mission/mission_recovery.d.ts +0 -0
  67. package/dist/agents/prompts/06_mission/mission_status_tracking.d.ts +0 -0
  68. package/dist/agents/prompts/07_agents/commander/commander_forbidden.d.ts +0 -0
  69. package/dist/agents/prompts/07_agents/commander/commander_identity.d.ts +0 -0
  70. package/dist/agents/prompts/07_agents/commander/commander_mandate.d.ts +0 -0
  71. package/dist/agents/prompts/07_agents/commander/commander_required.d.ts +0 -0
  72. package/dist/agents/prompts/07_agents/commander/commander_role.d.ts +0 -0
  73. package/dist/agents/prompts/07_agents/commander/index.d.ts +0 -0
  74. package/dist/agents/prompts/07_agents/planner/index.d.ts +0 -0
  75. package/dist/agents/prompts/07_agents/planner/planner_forbidden.d.ts +0 -0
  76. package/dist/agents/prompts/07_agents/planner/planner_identity.d.ts +0 -0
  77. package/dist/agents/prompts/07_agents/planner/planner_mandate.d.ts +0 -0
  78. package/dist/agents/prompts/07_agents/planner/planner_required.d.ts +0 -0
  79. package/dist/agents/prompts/07_agents/reviewer/index.d.ts +0 -0
  80. package/dist/agents/prompts/07_agents/reviewer/reviewer_forbidden.d.ts +0 -0
  81. package/dist/agents/prompts/07_agents/reviewer/reviewer_identity.d.ts +0 -0
  82. package/dist/agents/prompts/07_agents/reviewer/reviewer_mandate.d.ts +0 -0
  83. package/dist/agents/prompts/07_agents/reviewer/reviewer_required.d.ts +0 -0
  84. package/dist/agents/prompts/07_agents/worker/index.d.ts +0 -0
  85. package/dist/agents/prompts/07_agents/worker/worker_forbidden.d.ts +0 -0
  86. package/dist/agents/prompts/07_agents/worker/worker_identity.d.ts +0 -0
  87. package/dist/agents/prompts/07_agents/worker/worker_mandate.d.ts +0 -0
  88. package/dist/agents/prompts/07_agents/worker/worker_required.d.ts +0 -0
  89. package/dist/agents/prompts/08_tools/agents/index.d.ts +0 -0
  90. package/dist/agents/prompts/08_tools/agents/tools_reviewer.d.ts +0 -0
  91. package/dist/agents/prompts/08_tools/agents/tools_worker.d.ts +0 -0
  92. package/dist/agents/prompts/08_tools/index.d.ts +0 -0
  93. package/dist/agents/prompts/08_tools/tools_ast.d.ts +0 -0
  94. package/dist/agents/prompts/08_tools/tools_code_editing.d.ts +0 -0
  95. package/dist/agents/prompts/08_tools/tools_core.d.ts +0 -0
  96. package/dist/agents/prompts/08_tools/tools_lsp.d.ts +0 -0
  97. package/dist/agents/prompts/08_tools/tools_search.d.ts +0 -0
  98. package/dist/agents/prompts/08_tools/tools_testing.d.ts +0 -0
  99. package/dist/agents/prompts/index.d.ts +0 -0
  100. package/dist/agents/subagents/planner.d.ts +1 -1
  101. package/dist/agents/subagents/reviewer.d.ts +1 -1
  102. package/dist/agents/subagents/worker.d.ts +1 -1
  103. package/dist/core/agents/agent-registry.d.ts +1 -1
  104. package/dist/core/agents/concurrency-config.d.ts +0 -0
  105. package/dist/core/agents/concurrency-token.d.ts +0 -0
  106. package/dist/core/agents/concurrency.d.ts +2 -2
  107. package/dist/core/agents/config.d.ts +0 -0
  108. package/dist/core/agents/consts/index.d.ts +0 -0
  109. package/dist/core/agents/consts/task-status.const.d.ts +2 -2
  110. package/dist/core/agents/format.d.ts +0 -0
  111. package/dist/core/agents/index.d.ts +0 -0
  112. package/dist/core/agents/interfaces/index.d.ts +3 -3
  113. package/dist/core/agents/interfaces/launch-input.interface.d.ts +0 -0
  114. package/dist/core/agents/interfaces/resume-input.interface.d.ts +0 -0
  115. package/dist/core/agents/interfaces/session-pool.interface.d.ts +0 -0
  116. package/dist/core/agents/logger.d.ts +0 -0
  117. package/dist/core/agents/manager/event-handler.d.ts +0 -0
  118. package/dist/core/agents/manager/index.d.ts +0 -0
  119. package/dist/core/agents/manager/task-cleaner.d.ts +0 -0
  120. package/dist/core/agents/manager/task-launcher.d.ts +0 -0
  121. package/dist/core/agents/manager/task-poller.d.ts +0 -0
  122. package/dist/core/agents/manager/task-resumer.d.ts +0 -0
  123. package/dist/core/agents/manager.d.ts +0 -0
  124. package/dist/core/agents/session-pool.d.ts +0 -0
  125. package/dist/core/agents/task-store.d.ts +0 -0
  126. package/dist/core/agents/types/index.d.ts +0 -0
  127. package/dist/core/agents/types/parallel-task-status.type.d.ts +0 -0
  128. package/dist/core/cache/constants.d.ts +0 -0
  129. package/dist/core/cache/document-cache.d.ts +0 -0
  130. package/dist/core/cache/index.d.ts +0 -0
  131. package/dist/core/cache/interfaces/cache-document-entry.d.ts +0 -0
  132. package/dist/core/cache/interfaces/cache-list-entry.d.ts +0 -0
  133. package/dist/core/cache/interfaces/cache-metadata.d.ts +0 -0
  134. package/dist/core/cache/interfaces/cache-stats.d.ts +0 -0
  135. package/dist/core/cache/interfaces/cached-document.d.ts +0 -0
  136. package/dist/core/cache/interfaces/index.d.ts +0 -0
  137. package/dist/core/cache/interfaces.d.ts +0 -0
  138. package/dist/core/cache/operations.d.ts +0 -0
  139. package/dist/core/cache/utils.d.ts +0 -0
  140. package/dist/core/cleanup/cleanup-scheduler.d.ts +0 -0
  141. package/dist/core/commands/index.d.ts +0 -0
  142. package/dist/core/commands/interfaces/background-task.d.ts +0 -0
  143. package/dist/core/commands/interfaces/index.d.ts +0 -0
  144. package/dist/core/commands/interfaces/run-background-options.d.ts +0 -0
  145. package/dist/core/commands/manager.d.ts +0 -0
  146. package/dist/core/commands/types/background-task-status.d.ts +0 -0
  147. package/dist/core/commands/types/index.d.ts +0 -0
  148. package/dist/core/config/plugin-options.d.ts +0 -0
  149. package/dist/core/context/context-window-monitor.d.ts +0 -0
  150. package/dist/core/context/index.d.ts +0 -0
  151. package/dist/core/knowledge/context-provider.d.ts +0 -0
  152. package/dist/core/knowledge/graph-parser.d.ts +0 -0
  153. package/dist/core/knowledge/hybrid-search.d.ts +0 -0
  154. package/dist/core/knowledge/index.d.ts +0 -0
  155. package/dist/core/knowledge/memory-consolidation.d.ts +0 -0
  156. package/dist/core/knowledge/mission-memory.d.ts +1 -1
  157. package/dist/core/knowledge/safety-guards.d.ts +0 -0
  158. package/dist/core/knowledge/scratchpad.d.ts +0 -0
  159. package/dist/core/knowledge/tag-indexer.d.ts +0 -0
  160. package/dist/core/loop/circuit-breaker.d.ts +0 -0
  161. package/dist/core/loop/compaction-guard.d.ts +0 -0
  162. package/dist/core/loop/formatters.d.ts +0 -0
  163. package/dist/core/loop/interfaces/index.d.ts +0 -0
  164. package/dist/core/loop/interfaces/todo-stats.d.ts +0 -0
  165. package/dist/core/loop/interfaces/todo.d.ts +0 -0
  166. package/dist/core/loop/interfaces.d.ts +0 -0
  167. package/dist/core/loop/mission-ledger.d.ts +0 -0
  168. package/dist/core/loop/mission-loop-handler.d.ts +0 -0
  169. package/dist/core/loop/mission-loop.d.ts +1 -1
  170. package/dist/core/loop/mission-runtime-options.d.ts +0 -0
  171. package/dist/core/loop/parser.d.ts +0 -0
  172. package/dist/core/loop/progress-tracker.d.ts +0 -0
  173. package/dist/core/loop/session-state-store.d.ts +0 -0
  174. package/dist/core/loop/stats.d.ts +0 -0
  175. package/dist/core/loop/todo-continuation.d.ts +0 -0
  176. package/dist/core/loop/todo-enforcer.d.ts +0 -0
  177. package/dist/core/loop/todo-manager.d.ts +0 -0
  178. package/dist/core/loop/types/index.d.ts +0 -0
  179. package/dist/core/loop/types/todo-priority.d.ts +0 -0
  180. package/dist/core/loop/types/todo-status.d.ts +0 -0
  181. package/dist/core/loop/verification.d.ts +0 -0
  182. package/dist/core/memory/interfaces.d.ts +0 -0
  183. package/dist/core/memory/memory-manager.d.ts +0 -0
  184. package/dist/core/metrics/collector.d.ts +0 -0
  185. package/dist/core/notification/os-notify/index.d.ts +0 -0
  186. package/dist/core/notification/os-notify/notifier.d.ts +0 -0
  187. package/dist/core/notification/os-notify/platform-resolver.d.ts +0 -0
  188. package/dist/core/notification/os-notify/platform.d.ts +0 -0
  189. package/dist/core/notification/os-notify/sound-player.d.ts +0 -0
  190. package/dist/core/notification/os-notify/todo-checker.d.ts +0 -0
  191. package/dist/core/notification/task-toast-manager.d.ts +0 -0
  192. package/dist/core/notification/toast-core.d.ts +0 -0
  193. package/dist/core/notification/toast-sanitizer.d.ts +0 -0
  194. package/dist/core/notification/toast.d.ts +0 -0
  195. package/dist/core/orchestrator/index.d.ts +0 -0
  196. package/dist/core/orchestrator/interfaces/index.d.ts +0 -0
  197. package/dist/core/orchestrator/interfaces/session-state.d.ts +0 -0
  198. package/dist/core/orchestrator/session-manager.d.ts +0 -0
  199. package/dist/core/orchestrator/state.d.ts +0 -0
  200. package/dist/core/orchestrator/types/index.d.ts +0 -0
  201. package/dist/core/orchestrator/types/task-status.d.ts +1 -1
  202. package/dist/core/plugins/interfaces.d.ts +0 -0
  203. package/dist/core/plugins/plugin-manager.d.ts +0 -0
  204. package/dist/core/pool/buffer-pool.d.ts +0 -0
  205. package/dist/core/pool/object-pool.d.ts +0 -0
  206. package/dist/core/pool/string-pool.d.ts +0 -0
  207. package/dist/core/pool/task-pool.d.ts +1 -1
  208. package/dist/core/progress/calculator.d.ts +0 -0
  209. package/dist/core/progress/formatters.d.ts +0 -0
  210. package/dist/core/progress/interfaces/index.d.ts +0 -0
  211. package/dist/core/progress/interfaces/progress-snapshot.d.ts +0 -0
  212. package/dist/core/progress/interfaces/snapshot-input.d.ts +0 -0
  213. package/dist/core/progress/interfaces/step-progress.d.ts +0 -0
  214. package/dist/core/progress/interfaces/task-progress.d.ts +0 -0
  215. package/dist/core/progress/interfaces/todo-progress.d.ts +0 -0
  216. package/dist/core/progress/interfaces.d.ts +0 -0
  217. package/dist/core/progress/progress-notifier.d.ts +0 -0
  218. package/dist/core/progress/state-broadcaster.d.ts +0 -0
  219. package/dist/core/progress/store.d.ts +0 -0
  220. package/dist/core/progress/tracker.d.ts +0 -0
  221. package/dist/core/queue/async-queue.d.ts +0 -0
  222. package/dist/core/queue/async-utils.d.ts +0 -0
  223. package/dist/core/queue/index.d.ts +0 -0
  224. package/dist/core/queue/work-pool.d.ts +0 -0
  225. package/dist/core/queue/work-stealing-deque.d.ts +0 -0
  226. package/dist/core/queue/worker-pool.d.ts +0 -0
  227. package/dist/core/recovery/auto-recovery.d.ts +0 -0
  228. package/dist/core/recovery/constants.d.ts +0 -0
  229. package/dist/core/recovery/handler.d.ts +0 -0
  230. package/dist/core/recovery/interfaces/error-context.d.ts +0 -0
  231. package/dist/core/recovery/interfaces/error-pattern.d.ts +0 -0
  232. package/dist/core/recovery/interfaces/index.d.ts +0 -0
  233. package/dist/core/recovery/interfaces/recovery-action.d.ts +0 -0
  234. package/dist/core/recovery/interfaces/recovery-record.d.ts +0 -0
  235. package/dist/core/recovery/interfaces/recovery-stats.d.ts +0 -0
  236. package/dist/core/recovery/interfaces.d.ts +0 -0
  237. package/dist/core/recovery/patterns.d.ts +0 -0
  238. package/dist/core/recovery/retry.d.ts +0 -0
  239. package/dist/core/recovery/session-recovery.d.ts +0 -0
  240. package/dist/core/session/interfaces/context-stats.d.ts +0 -0
  241. package/dist/core/session/interfaces/index.d.ts +0 -0
  242. package/dist/core/session/interfaces/shared-context.d.ts +0 -0
  243. package/dist/core/session/interfaces/shared-decision.d.ts +0 -0
  244. package/dist/core/session/interfaces/shared-document.d.ts +0 -0
  245. package/dist/core/session/interfaces/shared-finding.d.ts +0 -0
  246. package/dist/core/session/interfaces.d.ts +0 -0
  247. package/dist/core/session/shared-context.d.ts +0 -0
  248. package/dist/core/session/store.d.ts +0 -0
  249. package/dist/core/session/summary.d.ts +0 -0
  250. package/dist/core/sync/todo-parser.d.ts +0 -0
  251. package/dist/core/sync/todo-sync-service.d.ts +0 -0
  252. package/dist/core/task/interfaces/index.d.ts +0 -0
  253. package/dist/core/task/interfaces/task-hierarchy.d.ts +0 -0
  254. package/dist/core/task/interfaces/task-input.d.ts +0 -0
  255. package/dist/core/task/interfaces/task-node.d.ts +1 -1
  256. package/dist/core/task/interfaces/task-progress.d.ts +0 -0
  257. package/dist/core/task/interfaces.d.ts +0 -0
  258. package/dist/core/task/parser.d.ts +0 -0
  259. package/dist/core/task/scheduler.d.ts +0 -0
  260. package/dist/core/task/store.d.ts +0 -0
  261. package/dist/core/task/summary.d.ts +0 -0
  262. package/dist/core/task/task-decomposer.d.ts +0 -0
  263. package/dist/core/todo/todo-manager.d.ts +0 -0
  264. package/dist/hooks/compatibility/external-plugin.d.ts +0 -0
  265. package/dist/hooks/constants.d.ts +0 -0
  266. package/dist/hooks/custom/agent-ui.d.ts +0 -0
  267. package/dist/hooks/custom/memory-gate.d.ts +0 -0
  268. package/dist/hooks/custom/metrics.d.ts +0 -0
  269. package/dist/hooks/custom/resource-control.d.ts +0 -0
  270. package/dist/hooks/custom/secret-scanner.d.ts +0 -0
  271. package/dist/hooks/custom/strict-role-guard.d.ts +0 -0
  272. package/dist/hooks/custom/user-activity.d.ts +0 -0
  273. package/dist/hooks/features/mission-loop.d.ts +0 -0
  274. package/dist/hooks/features/sanity-check.d.ts +0 -0
  275. package/dist/hooks/index.d.ts +0 -0
  276. package/dist/hooks/registry.d.ts +0 -0
  277. package/dist/hooks/types.d.ts +0 -0
  278. package/dist/index.d.ts +0 -0
  279. package/dist/index.js +624 -1454
  280. package/dist/index.js.map +7 -0
  281. package/dist/plugin-handlers/assistant-done-handler.d.ts +0 -0
  282. package/dist/plugin-handlers/chat-message-handler.d.ts +0 -0
  283. package/dist/plugin-handlers/config-handler.d.ts +0 -0
  284. package/dist/plugin-handlers/event-handler.d.ts +0 -0
  285. package/dist/plugin-handlers/index.d.ts +0 -0
  286. package/dist/plugin-handlers/interfaces/assistant-done-context.d.ts +0 -0
  287. package/dist/plugin-handlers/interfaces/chat-message-context.d.ts +0 -0
  288. package/dist/plugin-handlers/interfaces/event-handler-context.d.ts +0 -0
  289. package/dist/plugin-handlers/interfaces/index.d.ts +0 -0
  290. package/dist/plugin-handlers/interfaces/orchestrator-state.d.ts +0 -0
  291. package/dist/plugin-handlers/interfaces/session-compacting.d.ts +0 -0
  292. package/dist/plugin-handlers/interfaces/session-state.d.ts +0 -0
  293. package/dist/plugin-handlers/interfaces/system-transform.d.ts +0 -0
  294. package/dist/plugin-handlers/interfaces/tool-execute-context.d.ts +0 -0
  295. package/dist/plugin-handlers/interfaces/tool-hook.d.ts +0 -0
  296. package/dist/plugin-handlers/session-compacting-handler.d.ts +0 -0
  297. package/dist/plugin-handlers/system-transform-handler.d.ts +0 -0
  298. package/dist/plugin-handlers/tool-execute-handler.d.ts +0 -0
  299. package/dist/plugin-handlers/tool-execute-pre-handler.d.ts +0 -0
  300. package/dist/scripts/postinstall.js +1 -0
  301. package/dist/scripts/postinstall.js.map +7 -0
  302. package/dist/scripts/preuninstall.js +1 -0
  303. package/dist/scripts/preuninstall.js.map +7 -0
  304. package/dist/shared/agent/{constants/names.d.ts → constants.d.ts} +5 -2
  305. package/dist/shared/agent/index.d.ts +3 -4
  306. package/dist/shared/agent/types.d.ts +27 -0
  307. package/dist/shared/agent/{utils/index.d.ts → utils.d.ts} +1 -1
  308. package/dist/shared/cache/constants.d.ts +27 -0
  309. package/dist/shared/cache/index.d.ts +1 -1
  310. package/dist/shared/command/index.d.ts +1 -2
  311. package/dist/shared/command/{interfaces/background-task.d.ts → types.d.ts} +14 -2
  312. package/dist/shared/constants/security-patterns.d.ts +0 -0
  313. package/dist/shared/constants/system-messages.d.ts +0 -0
  314. package/dist/shared/core/constants.d.ts +322 -0
  315. package/dist/shared/core/index.d.ts +1 -1
  316. package/dist/shared/core/poolable.d.ts +0 -0
  317. package/dist/shared/errors/constants.d.ts +24 -0
  318. package/dist/shared/errors/detection.d.ts +1 -1
  319. package/dist/shared/errors/index.d.ts +1 -2
  320. package/dist/shared/errors/retry.d.ts +1 -1
  321. package/dist/shared/index.d.ts +0 -0
  322. package/dist/shared/lifecycle/index.d.ts +0 -0
  323. package/dist/shared/lifecycle/registration.d.ts +0 -0
  324. package/dist/shared/lifecycle/shutdown-manager.d.ts +0 -0
  325. package/dist/shared/loop/constants.d.ts +88 -0
  326. package/dist/shared/loop/index.d.ts +2 -3
  327. package/dist/shared/loop/{interfaces/mission-loop.d.ts → types.d.ts} +34 -0
  328. package/dist/shared/message/constants.d.ts +75 -0
  329. package/dist/shared/message/index.d.ts +1 -1
  330. package/dist/shared/notification/{constants/tui.const.d.ts → constants.d.ts} +28 -0
  331. package/dist/shared/notification/index.d.ts +3 -4
  332. package/dist/shared/notification/os-notify/constants.d.ts +30 -0
  333. package/dist/shared/notification/os-notify/index.d.ts +2 -3
  334. package/dist/shared/notification/os-notify/types.d.ts +36 -0
  335. package/dist/shared/notification/presets.d.ts +37 -0
  336. package/dist/shared/notification/types.d.ts +46 -0
  337. package/dist/shared/os/{constants/platform.d.ts → constants.d.ts} +1 -1
  338. package/dist/shared/os/index.d.ts +2 -2
  339. package/dist/shared/os/types.d.ts +5 -0
  340. package/dist/shared/prompt/constants.d.ts +449 -0
  341. package/dist/shared/prompt/index.d.ts +1 -1
  342. package/dist/shared/recovery/constants.d.ts +39 -0
  343. package/dist/shared/recovery/index.d.ts +2 -3
  344. package/dist/shared/recovery/types.d.ts +26 -0
  345. package/dist/shared/session/constants.d.ts +80 -0
  346. package/dist/shared/session/index.d.ts +1 -1
  347. package/dist/shared/task/{constants/parallel-task.d.ts → constants.d.ts} +28 -1
  348. package/dist/shared/task/index.d.ts +2 -3
  349. package/dist/shared/task/types.d.ts +69 -0
  350. package/dist/shared/tool/constants.d.ts +105 -0
  351. package/dist/shared/tool/index.d.ts +3 -2
  352. package/dist/shared/tool/{constants/tool-names.d.ts → tool-names.d.ts} +0 -0
  353. package/dist/shared/tool/types.d.ts +117 -0
  354. package/dist/shared/verification/{constants/categories.d.ts → constants.d.ts} +45 -0
  355. package/dist/shared/verification/index.d.ts +2 -5
  356. package/dist/shared/verification/types.d.ts +112 -0
  357. package/dist/tools/ast/index.d.ts +0 -0
  358. package/dist/tools/background-cmd/check.d.ts +0 -0
  359. package/dist/tools/background-cmd/index.d.ts +0 -0
  360. package/dist/tools/background-cmd/kill.d.ts +0 -0
  361. package/dist/tools/background-cmd/list.d.ts +0 -0
  362. package/dist/tools/background-cmd/run.d.ts +0 -0
  363. package/dist/tools/callAgent.d.ts +0 -0
  364. package/dist/tools/lsp/diagnostics-cache.d.ts +0 -0
  365. package/dist/tools/lsp/index.d.ts +0 -0
  366. package/dist/tools/parallel/cancel-task.d.ts +0 -0
  367. package/dist/tools/parallel/delegate-task.d.ts +0 -0
  368. package/dist/tools/parallel/get-task-result.d.ts +0 -0
  369. package/dist/tools/parallel/index.d.ts +0 -0
  370. package/dist/tools/parallel/list-agents.d.ts +0 -0
  371. package/dist/tools/parallel/list-tasks.d.ts +0 -0
  372. package/dist/tools/parallel/show-metrics.d.ts +0 -0
  373. package/dist/tools/parallel/update-todo.d.ts +0 -0
  374. package/dist/tools/registry.d.ts +0 -0
  375. package/dist/tools/rust-pool.d.ts +0 -0
  376. package/dist/tools/rust.d.ts +0 -0
  377. package/dist/tools/search.d.ts +0 -0
  378. package/dist/tools/slashCommand.d.ts +0 -0
  379. package/dist/tools/web/cache-docs.d.ts +0 -0
  380. package/dist/tools/web/codesearch.d.ts +0 -0
  381. package/dist/tools/web/index.d.ts +0 -0
  382. package/dist/tools/web/webfetch.d.ts +0 -0
  383. package/dist/tools/web/websearch.d.ts +0 -0
  384. package/dist/utils/binary.d.ts +0 -0
  385. package/dist/utils/common.d.ts +0 -0
  386. package/dist/utils/compatibility/claude.d.ts +0 -0
  387. package/dist/utils/formatting/elapsed-time.d.ts +0 -0
  388. package/dist/utils/formatting/index.d.ts +0 -0
  389. package/dist/utils/formatting/timestamp.d.ts +0 -0
  390. package/dist/utils/parsing/index.d.ts +0 -0
  391. package/dist/utils/parsing/slash-command.d.ts +0 -0
  392. package/dist/utils/sanity/checker.d.ts +0 -0
  393. package/dist/utils/sanity/constants/escalation-prompt.d.ts +0 -0
  394. package/dist/utils/sanity/constants/index.d.ts +0 -0
  395. package/dist/utils/sanity/constants/recovery-prompt.d.ts +0 -0
  396. package/dist/utils/sanity/constants/severity.d.ts +0 -0
  397. package/dist/utils/sanity/index.d.ts +0 -0
  398. package/dist/utils/sanity/interfaces/index.d.ts +0 -0
  399. package/dist/utils/sanity/interfaces/sanity-result.d.ts +0 -0
  400. package/dist/utils/sanity/types/index.d.ts +0 -0
  401. package/dist/utils/sanity/types/severity.d.ts +0 -0
  402. package/package.json +1 -1
  403. package/scripts/run-install-hook.mjs +66 -66
  404. package/dist/shared/agent/constants/index.d.ts +0 -4
  405. package/dist/shared/agent/interfaces/agent-definition.d.ts +0 -10
  406. package/dist/shared/agent/interfaces/concurrency-config.d.ts +0 -9
  407. package/dist/shared/agent/interfaces/index.d.ts +0 -5
  408. package/dist/shared/agent/types/agent-name.d.ts +0 -5
  409. package/dist/shared/agent/types/index.d.ts +0 -4
  410. package/dist/shared/cache/constants/cache-actions.d.ts +0 -10
  411. package/dist/shared/cache/constants/cache.d.ts +0 -11
  412. package/dist/shared/cache/constants/filter-status.d.ts +0 -12
  413. package/dist/shared/cache/constants/index.d.ts +0 -8
  414. package/dist/shared/command/interfaces/index.d.ts +0 -5
  415. package/dist/shared/command/interfaces/run-background-options.d.ts +0 -9
  416. package/dist/shared/command/types/background-task-status.d.ts +0 -4
  417. package/dist/shared/command/types/index.d.ts +0 -4
  418. package/dist/shared/core/constants/cli.d.ts +0 -26
  419. package/dist/shared/core/constants/id-prefix.d.ts +0 -14
  420. package/dist/shared/core/constants/index.d.ts +0 -15
  421. package/dist/shared/core/constants/lifecycle.d.ts +0 -22
  422. package/dist/shared/core/constants/limits.d.ts +0 -19
  423. package/dist/shared/core/constants/logging.d.ts +0 -39
  424. package/dist/shared/core/constants/memory-hooks.d.ts +0 -70
  425. package/dist/shared/core/constants/memory-limits.d.ts +0 -12
  426. package/dist/shared/core/constants/paths.d.ts +0 -21
  427. package/dist/shared/core/constants/phases.d.ts +0 -47
  428. package/dist/shared/core/constants/status-labels.d.ts +0 -34
  429. package/dist/shared/core/constants/time.d.ts +0 -8
  430. package/dist/shared/core/constants/wal-actions.d.ts +0 -10
  431. package/dist/shared/errors/constants/error-patterns.d.ts +0 -13
  432. package/dist/shared/errors/constants/error-type.d.ts +0 -13
  433. package/dist/shared/errors/constants/index.d.ts +0 -5
  434. package/dist/shared/errors/types/error-pattern-type.d.ts +0 -5
  435. package/dist/shared/errors/types/index.d.ts +0 -4
  436. package/dist/shared/loop/constants/index.d.ts +0 -8
  437. package/dist/shared/loop/constants/labels.d.ts +0 -33
  438. package/dist/shared/loop/constants/loop.d.ts +0 -17
  439. package/dist/shared/loop/constants/mission-control.d.ts +0 -20
  440. package/dist/shared/loop/constants/task-status.d.ts +0 -9
  441. package/dist/shared/loop/constants/todo-status.d.ts +0 -9
  442. package/dist/shared/loop/interfaces/index.d.ts +0 -6
  443. package/dist/shared/loop/interfaces/todo-stats.d.ts +0 -11
  444. package/dist/shared/loop/interfaces/todo.d.ts +0 -13
  445. package/dist/shared/loop/types/index.d.ts +0 -5
  446. package/dist/shared/loop/types/todo-priority.d.ts +0 -4
  447. package/dist/shared/loop/types/todo-status.d.ts +0 -4
  448. package/dist/shared/message/constants/index.d.ts +0 -8
  449. package/dist/shared/message/constants/message-roles.d.ts +0 -23
  450. package/dist/shared/message/constants/part-types.d.ts +0 -13
  451. package/dist/shared/message/constants/plugin-hooks.d.ts +0 -19
  452. package/dist/shared/message/constants/prompts.d.ts +0 -8
  453. package/dist/shared/message/constants/slash-commands.d.ts +0 -21
  454. package/dist/shared/notification/constants/index.d.ts +0 -3
  455. package/dist/shared/notification/constants/toast-duration.d.ts +0 -19
  456. package/dist/shared/notification/constants/toast-variants.d.ts +0 -10
  457. package/dist/shared/notification/interfaces/index.d.ts +0 -6
  458. package/dist/shared/notification/interfaces/task-toast.interface.d.ts +0 -18
  459. package/dist/shared/notification/interfaces/toast-message.d.ts +0 -13
  460. package/dist/shared/notification/interfaces/toast-options.d.ts +0 -10
  461. package/dist/shared/notification/os-notify/constants/index.d.ts +0 -6
  462. package/dist/shared/notification/os-notify/constants/notification-command-keys.d.ts +0 -11
  463. package/dist/shared/notification/os-notify/constants/notification-commands.d.ts +0 -11
  464. package/dist/shared/notification/os-notify/constants/notification-defaults.d.ts +0 -5
  465. package/dist/shared/notification/os-notify/interfaces/index.d.ts +0 -5
  466. package/dist/shared/notification/os-notify/interfaces/notification-config.d.ts +0 -15
  467. package/dist/shared/notification/os-notify/interfaces/notification-state.d.ts +0 -13
  468. package/dist/shared/notification/os-notify/types/index.d.ts +0 -4
  469. package/dist/shared/notification/os-notify/types/notification-commands.d.ts +0 -5
  470. package/dist/shared/notification/presets/index.d.ts +0 -9
  471. package/dist/shared/notification/presets/mission.d.ts +0 -5
  472. package/dist/shared/notification/presets/parallel.d.ts +0 -6
  473. package/dist/shared/notification/presets/session.d.ts +0 -6
  474. package/dist/shared/notification/presets/task-lifecycle.d.ts +0 -7
  475. package/dist/shared/notification/presets/tools.d.ts +0 -6
  476. package/dist/shared/notification/presets/warnings.d.ts +0 -7
  477. package/dist/shared/notification/types/index.d.ts +0 -4
  478. package/dist/shared/notification/types/toast-variant.d.ts +0 -4
  479. package/dist/shared/os/constants/index.d.ts +0 -4
  480. package/dist/shared/os/types/index.d.ts +0 -4
  481. package/dist/shared/os/types/platform.d.ts +0 -5
  482. package/dist/shared/prompt/constants/architecture.d.ts +0 -64
  483. package/dist/shared/prompt/constants/index.d.ts +0 -9
  484. package/dist/shared/prompt/constants/mandates.d.ts +0 -26
  485. package/dist/shared/prompt/constants/philosophy.d.ts +0 -29
  486. package/dist/shared/prompt/constants/scouts.d.ts +0 -32
  487. package/dist/shared/prompt/constants/status.d.ts +0 -83
  488. package/dist/shared/prompt/constants/tags.d.ts +0 -215
  489. package/dist/shared/recovery/constants/history.d.ts +0 -11
  490. package/dist/shared/recovery/constants/index.d.ts +0 -6
  491. package/dist/shared/recovery/constants/recovery-level.d.ts +0 -15
  492. package/dist/shared/recovery/constants/recovery.d.ts +0 -13
  493. package/dist/shared/recovery/interfaces/error-context.d.ts +0 -11
  494. package/dist/shared/recovery/interfaces/index.d.ts +0 -5
  495. package/dist/shared/recovery/interfaces/recovery-record.d.ts +0 -10
  496. package/dist/shared/recovery/types/index.d.ts +0 -4
  497. package/dist/shared/recovery/types/recovery-action.d.ts +0 -4
  498. package/dist/shared/session/constants/events/document-events.d.ts +0 -7
  499. package/dist/shared/session/constants/events/index.d.ts +0 -30
  500. package/dist/shared/session/constants/events/message-events.d.ts +0 -6
  501. package/dist/shared/session/constants/events/mission-events.d.ts +0 -8
  502. package/dist/shared/session/constants/events/session-events.d.ts +0 -13
  503. package/dist/shared/session/constants/events/special-events.d.ts +0 -6
  504. package/dist/shared/session/constants/events/task-events.d.ts +0 -9
  505. package/dist/shared/session/constants/events/todo-events.d.ts +0 -8
  506. package/dist/shared/session/constants/index.d.ts +0 -4
  507. package/dist/shared/task/base-task.d.ts +0 -31
  508. package/dist/shared/task/constants/background-status.d.ts +0 -10
  509. package/dist/shared/task/constants/background-task.d.ts +0 -10
  510. package/dist/shared/task/constants/index.d.ts +0 -8
  511. package/dist/shared/task/constants/metadata-keys.d.ts +0 -10
  512. package/dist/shared/task/interfaces/index.d.ts +0 -7
  513. package/dist/shared/task/interfaces/launch-input.d.ts +0 -11
  514. package/dist/shared/task/interfaces/parallel-task.d.ts +0 -28
  515. package/dist/shared/task/interfaces/resume-input.d.ts +0 -16
  516. package/dist/shared/task/interfaces/task-progress.d.ts +0 -9
  517. package/dist/shared/task/types/index.d.ts +0 -4
  518. package/dist/shared/task/types/parallel-task-status.d.ts +0 -4
  519. package/dist/shared/tool/constants/common/index.d.ts +0 -7
  520. package/dist/shared/tool/constants/common/labels.d.ts +0 -16
  521. package/dist/shared/tool/constants/common/languages.d.ts +0 -9
  522. package/dist/shared/tool/constants/common/output-labels.d.ts +0 -20
  523. package/dist/shared/tool/constants/common/sources.d.ts +0 -8
  524. package/dist/shared/tool/constants/index.d.ts +0 -8
  525. package/dist/shared/tool/constants/lsp/index.d.ts +0 -5
  526. package/dist/shared/tool/constants/lsp/lsp-severity-labels.d.ts +0 -9
  527. package/dist/shared/tool/constants/lsp/lsp-severity.d.ts +0 -9
  528. package/dist/shared/tool/constants/parallel/index.d.ts +0 -5
  529. package/dist/shared/tool/constants/parallel/logging.d.ts +0 -6
  530. package/dist/shared/tool/constants/parallel/parameters.d.ts +0 -19
  531. package/dist/shared/tool/constants/tool-output.d.ts +0 -9
  532. package/dist/shared/tool/interfaces/ast/ast-replace-result.d.ts +0 -8
  533. package/dist/shared/tool/interfaces/ast/ast-search-result.d.ts +0 -13
  534. package/dist/shared/tool/interfaces/ast/index.d.ts +0 -5
  535. package/dist/shared/tool/interfaces/index.d.ts +0 -6
  536. package/dist/shared/tool/interfaces/lsp/index.d.ts +0 -7
  537. package/dist/shared/tool/interfaces/lsp/lsp-command-result.d.ts +0 -8
  538. package/dist/shared/tool/interfaces/lsp/lsp-diagnostic.d.ts +0 -11
  539. package/dist/shared/tool/interfaces/lsp/lsp-rename-location.d.ts +0 -9
  540. package/dist/shared/tool/interfaces/lsp/lsp-rename-result.d.ts +0 -9
  541. package/dist/shared/tool/interfaces/parallel/index.d.ts +0 -5
  542. package/dist/shared/tool/interfaces/parallel/poll-result.d.ts +0 -10
  543. package/dist/shared/tool/interfaces/parallel/session-client.d.ts +0 -47
  544. package/dist/shared/verification/constants/checklist.d.ts +0 -16
  545. package/dist/shared/verification/constants/index.d.ts +0 -7
  546. package/dist/shared/verification/constants/patterns.d.ts +0 -19
  547. package/dist/shared/verification/constants/signals.d.ts +0 -10
  548. package/dist/shared/verification/interfaces/checklist-item.d.ts +0 -21
  549. package/dist/shared/verification/interfaces/checklist-verification-result.d.ts +0 -24
  550. package/dist/shared/verification/interfaces/index.d.ts +0 -7
  551. package/dist/shared/verification/interfaces/verification-checklist.d.ts +0 -19
  552. package/dist/shared/verification/interfaces/verification-result.d.ts +0 -29
  553. package/dist/shared/verification/types/checklist-category.d.ts +0 -18
  554. package/dist/shared/verification/types/index.d.ts +0 -4
@@ -0,0 +1,322 @@
1
+ /**
2
+ * Time Constants
3
+ */
4
+ export declare const TIME: {
5
+ readonly SECOND: 1000;
6
+ readonly MINUTE: number;
7
+ readonly HOUR: number;
8
+ };
9
+ /**
10
+ * Memory Limits
11
+ */
12
+ export declare const MEMORY_LIMITS: {
13
+ readonly MAX_TASKS_IN_MEMORY: 1000;
14
+ readonly MAX_NOTIFICATIONS_PER_PARENT: 100;
15
+ readonly MAX_EVENT_HISTORY: 100;
16
+ readonly MAX_TOAST_HISTORY: 50;
17
+ readonly MAX_PROGRESS_HISTORY_PER_SESSION: 100;
18
+ readonly ARCHIVE_AGE_MS: number;
19
+ readonly ERROR_CLEANUP_AGE_MS: number;
20
+ };
21
+ /**
22
+ * CLI Tool Names
23
+ */
24
+ export declare const CLI_NAME: {
25
+ readonly NPX: "npx";
26
+ readonly TSC: "tsc";
27
+ readonly ESLINT: "eslint";
28
+ readonly RG: "rg";
29
+ readonly SED: "sed";
30
+ readonly AST_GREP: "ast-grep";
31
+ readonly GIT: "git";
32
+ readonly JQ: "jq";
33
+ readonly NODE: "node";
34
+ readonly SH: "sh";
35
+ };
36
+ /**
37
+ * Node Process Events
38
+ */
39
+ export declare const PROC_EVENT: {
40
+ readonly CLOSE: "close";
41
+ readonly ERROR: "error";
42
+ readonly EXIT: "exit";
43
+ readonly DATA: "data";
44
+ readonly MESSAGE: "message";
45
+ readonly DISCONNECT: "disconnect";
46
+ };
47
+ /**
48
+ * ID Prefixes
49
+ *
50
+ * Format: PREFIX + number (e.g., ses_1, SYNC-42, UT-100)
51
+ * No fixed digit limit - use any positive integer.
52
+ */
53
+ export declare const ID_PREFIX: {
54
+ readonly TASK: "task_";
55
+ readonly JOB: "job_";
56
+ readonly SESSION: "ses_";
57
+ readonly SYNC_ISSUE: "SYNC-";
58
+ readonly UNIT_TEST: "UT-";
59
+ readonly WORKER: "wrk_";
60
+ };
61
+ /**
62
+ * File Paths
63
+ */
64
+ export declare const PATHS: {
65
+ readonly OPENCODE: ".opencode";
66
+ readonly DOCS: ".opencode/docs";
67
+ readonly ARCHIVE: ".opencode/archive";
68
+ readonly TASK_ARCHIVE: ".opencode/archive/tasks";
69
+ readonly DOC_ARCHIVE: ".opencode/archive/docs";
70
+ readonly TODO: ".opencode/todo.md";
71
+ readonly CONTEXT: ".opencode/context.md";
72
+ readonly SUMMARY: ".opencode/summary.md";
73
+ readonly DOC_METADATA: ".opencode/docs/_metadata.json";
74
+ readonly WORK_LOG: ".opencode/work-log.md";
75
+ readonly UNIT_TESTS: ".opencode/unit-tests";
76
+ readonly SYNC_ISSUES: ".opencode/sync-issues.md";
77
+ readonly INTEGRATION_STATUS: ".opencode/integration-status.md";
78
+ readonly STATUS: ".opencode/status.md";
79
+ readonly AGENTS_CONFIG: ".opencode/agents.json";
80
+ readonly PLUGINS: ".opencode/plugins";
81
+ };
82
+ /**
83
+ * Mission Phase Constants
84
+ */
85
+ export declare const PHASES: {
86
+ readonly PHASE_0: {
87
+ readonly ID: "PHASE_0";
88
+ readonly NAME: "DISCOVERY";
89
+ readonly DESCRIPTION: "Parallel intelligence gathering and project mapping";
90
+ readonly MANDATORY: true;
91
+ };
92
+ readonly PHASE_1: {
93
+ readonly ID: "PHASE_1";
94
+ readonly NAME: "THINK";
95
+ readonly DESCRIPTION: "Analyze scope, decomposition, and delegation";
96
+ readonly MANDATORY: true;
97
+ };
98
+ readonly PHASE_2: {
99
+ readonly ID: "PHASE_2";
100
+ readonly NAME: "TRIAGE";
101
+ readonly DESCRIPTION: "Complexity assessment and execution path selection";
102
+ readonly MANDATORY: true;
103
+ };
104
+ readonly PHASE_3: {
105
+ readonly ID: "PHASE_3";
106
+ readonly NAME: "PLAN";
107
+ readonly DESCRIPTION: "Architectural roadmap and task grid creation";
108
+ readonly MANDATORY: true;
109
+ };
110
+ readonly PHASE_4: {
111
+ readonly ID: "PHASE_4";
112
+ readonly NAME: "EXECUTE";
113
+ readonly DESCRIPTION: "HPFA grid execution and worker coordination";
114
+ readonly MANDATORY: true;
115
+ };
116
+ readonly PHASE_5: {
117
+ readonly ID: "PHASE_5";
118
+ readonly NAME: "VERIFY";
119
+ readonly DESCRIPTION: "MSVP final gate and E2E system validation";
120
+ readonly MANDATORY: true;
121
+ };
122
+ readonly PHASE_6: {
123
+ readonly ID: "PHASE_6";
124
+ readonly NAME: "CONCLUDE";
125
+ readonly DESCRIPTION: "Mission completion and deterministic output";
126
+ readonly MANDATORY: true;
127
+ };
128
+ };
129
+ /**
130
+ * System Limits
131
+ */
132
+ export declare const LIMITS: {
133
+ /** Maximum mission loop iterations */
134
+ readonly MAX_ITERATIONS: 1000000000;
135
+ /** Default scan limit for file listing */
136
+ readonly DEFAULT_SCAN_LIMIT: 20;
137
+ /** Max message history to check for conclusion */
138
+ readonly CONCLUDE_CHECK_HISTORY: 3;
139
+ /** Max concurrent tasks per agent */
140
+ readonly MAX_TASKS_PER_AGENT: 10;
141
+ /** Default history/list limit for UI */
142
+ readonly DEFAULT_LIST_LIMIT: 20;
143
+ /** Default progress bar width */
144
+ readonly DEFAULT_PROGRESS_WIDTH: 20;
145
+ /** Maximum time for atomic task (minutes) */
146
+ readonly TASK_TIME_LIMIT_MIN: 10;
147
+ };
148
+ /**
149
+ * WAL (Write-Ahead Log) Action constants
150
+ */
151
+ export declare const WAL_ACTIONS: {
152
+ readonly LAUNCH: "LAUNCH";
153
+ readonly UPDATE: "UPDATE";
154
+ readonly COMPLETE: "COMPLETE";
155
+ readonly DELETE: "DELETE";
156
+ };
157
+ export type WALAction = typeof WAL_ACTIONS[keyof typeof WAL_ACTIONS];
158
+ /**
159
+ * Unified Status Labels
160
+ *
161
+ * Primitive string values for all status indicators across the system.
162
+ * Casing is standardized to lowercase for consistent internal communication.
163
+ */
164
+ export declare const STATUS_LABEL: {
165
+ readonly PENDING: "pending";
166
+ readonly QUEUED: "queued";
167
+ readonly RUNNING: "running";
168
+ readonly IN_PROGRESS: "in_progress";
169
+ readonly COMPLETED: "completed";
170
+ readonly DONE: "done";
171
+ readonly SUCCESS: "success";
172
+ readonly FAILED: "failed";
173
+ readonly ERROR: "error";
174
+ readonly TIMEOUT: "timeout";
175
+ readonly CANCELLED: "cancelled";
176
+ readonly BLOCKED: "blocked";
177
+ readonly PASS: "pass";
178
+ readonly FAIL: "fail";
179
+ readonly SKIP: "skip";
180
+ readonly CLEAN: "clean";
181
+ readonly OK: "ok";
182
+ readonly VERIFIED: "verified";
183
+ readonly WARNING: "warning";
184
+ readonly INFO: "info";
185
+ readonly HINT: "hint";
186
+ readonly ALL: "all";
187
+ readonly HIGH: "high";
188
+ readonly MEDIUM: "medium";
189
+ readonly LOW: "low";
190
+ };
191
+ export type TaskStatus = typeof STATUS_LABEL[keyof typeof STATUS_LABEL];
192
+ /**
193
+ * Logging Constants
194
+ *
195
+ * Centralized log prefixes used throughout the application to ensure
196
+ * consistent formatting and easier log filtering.
197
+ */
198
+ export declare const LOG_PREFIX: {
199
+ /** Rust Tool pool operations */
200
+ readonly RUST_TOOL: "RustTool";
201
+ readonly RUST_POOL: "RustPool";
202
+ /** LSP diagnostics caching */
203
+ readonly DIAGNOSTICS_CACHE: "DiagnosticsCache";
204
+ /** Context window monitoring */
205
+ readonly CONTEXT_WINDOW_MONITOR: "context-window-monitor";
206
+ /** Memory management */
207
+ readonly MEMORY_MANAGER: "MemoryManager";
208
+ /** Plugin system */
209
+ readonly PLUGIN_MANAGER: "PluginManager";
210
+ /** OS notifications */
211
+ readonly SESSION_NOTIFY: "session-notify";
212
+ /** Session recovery */
213
+ readonly SESSION_RECOVERY: "session-recovery";
214
+ /** Lifecycle management */
215
+ readonly SHUTDOWN_MANAGER: "ShutdownManager";
216
+ /** Agent registry */
217
+ readonly AGENT_REGISTRY: "AgentRegistry";
218
+ /** Task synchronization */
219
+ readonly TODO_SYNC: "TodoSync";
220
+ /** Cleanup scheduler */
221
+ readonly CLEANUP_SCHEDULER: "CleanupScheduler";
222
+ /** Background task management */
223
+ readonly BACKGROUND_TASK_MANAGER: "BackgroundTaskManager";
224
+ /** Parallel agent management */
225
+ readonly PARALLEL_AGENT_MANAGER: "ParallelAgentManager";
226
+ /** File watching */
227
+ readonly FILE_WATCHER: "FileWatcher";
228
+ };
229
+ /** Type for log prefixes */
230
+ export type LogPrefix = typeof LOG_PREFIX[keyof typeof LOG_PREFIX];
231
+ /**
232
+ * Lifecycle & Shutdown Handler Constants
233
+ *
234
+ * Centralized constant definitions for all shutdown handler names used
235
+ * throughout the application to ensure consistency and maintainability.
236
+ */
237
+ export declare const SHUTDOWN_HANDLERS: {
238
+ /** TodoSyncService - Syncs TODO state via file watching */
239
+ readonly TODO_SYNC_SERVICE: "TodoSyncService";
240
+ /** CleanupScheduler - Manages periodic cleanup tasks */
241
+ readonly CLEANUP_SCHEDULER: "CleanupScheduler";
242
+ /** RustToolPool - Manages Rust tool instances */
243
+ readonly RUST_TOOL_POOL: "RustToolPool";
244
+ /** BackgroundTaskManager - Manages background command execution */
245
+ readonly BACKGROUND_TASK_MANAGER: "BackgroundTaskManager";
246
+ /** ParallelAgentManager - Manages parallel agent task execution */
247
+ readonly PARALLEL_AGENT_MANAGER: "ParallelAgentManager";
248
+ /** PluginManager - Manages dynamic plugin lifecycle */
249
+ readonly PLUGIN_MANAGER: "PluginManager";
250
+ };
251
+ /** Type for shutdown handler names */
252
+ export type ShutdownHandlerName = typeof SHUTDOWN_HANDLERS[keyof typeof SHUTDOWN_HANDLERS];
253
+ export declare const MEMORY_CONSTANTS: {
254
+ readonly ID_PREFIX: "mem_";
255
+ readonly LEVELS: {
256
+ readonly SYSTEM: "system";
257
+ readonly PROJECT: "project";
258
+ readonly MISSION: "mission";
259
+ readonly TASK: "task";
260
+ };
261
+ readonly IMPORTANCE: {
262
+ readonly LOW: 0.3;
263
+ readonly NORMAL: 0.5;
264
+ readonly HIGH: 0.7;
265
+ readonly CRITICAL: 0.9;
266
+ };
267
+ readonly NOISY_TOOLS: string[];
268
+ readonly KEYWORDS: {
269
+ readonly DONE: "DONE";
270
+ readonly SUCCESS: "SUCCESS";
271
+ readonly ERROR: "ERROR";
272
+ readonly FAIL: "FAIL";
273
+ };
274
+ readonly MAX_CONTENT_LENGTH: 1000;
275
+ };
276
+ export declare const HOOK_NAMES: {
277
+ readonly MEMORY_GATE: "MemoryGate";
278
+ readonly METRICS_TELEMETRY: "MetricsTelemetry";
279
+ readonly SANITY_CHECK: "SanityCheck";
280
+ readonly MISSION_LOOP: "MissionLoop";
281
+ readonly MISSION_CONTROL: "MissionControl";
282
+ readonly STRICT_ROLE_GUARD: "StrictRoleGuard";
283
+ readonly SECRET_SCANNER: "SecretScanner";
284
+ readonly AGENT_UI: "AgentUI";
285
+ readonly RESOURCE_CONTROL: "ResourceControl";
286
+ readonly USER_ACTIVITY: "UserActivity";
287
+ readonly SLASH_COMMAND: "SlashCommandDispatcher";
288
+ };
289
+ export declare const TODO_CONSTANTS: {
290
+ readonly MARKERS: {
291
+ readonly PENDING: "[ ]";
292
+ readonly COMPLETED: "[x]";
293
+ readonly PROGRESS: "[/]";
294
+ readonly FAILED: "[-]";
295
+ };
296
+ readonly STATUS: {
297
+ readonly PENDING: "pending";
298
+ readonly COMPLETED: "completed";
299
+ readonly PROGRESS: "progress";
300
+ readonly FAILED: "failed";
301
+ };
302
+ readonly PREFIX: {
303
+ readonly TASK: "task-";
304
+ readonly FILE: "file-task-";
305
+ };
306
+ };
307
+ export declare const TUI_CONSTANTS: {
308
+ readonly BAR_WIDTH: 30;
309
+ readonly COLORS: {
310
+ readonly PROGRESS: "\u001B[36m";
311
+ readonly AGENT: "\u001B[32m";
312
+ readonly RESET: "\u001B[0m";
313
+ readonly BOLD: "\u001B[1m";
314
+ readonly DIM: "\u001B[2m";
315
+ };
316
+ readonly LABELS: {
317
+ readonly IDLE: "Idle";
318
+ readonly WAITING: "Waiting for tasks...";
319
+ readonly PROGRESS_TITLE: "MISSION PROGRESS";
320
+ readonly AGENT_TITLE: "ACTIVE AGENTS";
321
+ };
322
+ };
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Core Domain
3
3
  */
4
- export * from "./constants/index.js";
4
+ export * from "./constants.js";
5
5
  export { Poolable } from "./poolable.js";
File without changes
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Error constants and derived types
3
+ */
4
+ export declare const ERROR_PATTERNS: {
5
+ readonly TOOL_RESULT_MISSING: RegExp;
6
+ readonly THINKING_BLOCK_ORDER: RegExp;
7
+ readonly THINKING_DISABLED: RegExp;
8
+ readonly RATE_LIMIT: RegExp;
9
+ readonly CONTEXT_OVERFLOW: RegExp;
10
+ readonly MESSAGE_ABORTED: RegExp;
11
+ readonly NETWORK_ERROR: RegExp;
12
+ readonly AUTH_ERROR: RegExp;
13
+ };
14
+ export type ErrorPatternType = keyof typeof ERROR_PATTERNS;
15
+ export declare const ERROR_TYPE: {
16
+ readonly TOOL_RESULT_MISSING: "TOOL_RESULT_MISSING";
17
+ readonly THINKING_BLOCK_ORDER: "THINKING_BLOCK_ORDER";
18
+ readonly THINKING_DISABLED: "THINKING_DISABLED";
19
+ readonly RATE_LIMIT: "RATE_LIMIT";
20
+ readonly CONTEXT_OVERFLOW: "CONTEXT_OVERFLOW";
21
+ readonly MESSAGE_ABORTED: "MESSAGE_ABORTED";
22
+ readonly NETWORK_ERROR: "NETWORK_ERROR";
23
+ readonly AUTH_ERROR: "AUTH_ERROR";
24
+ };
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Error Detection
3
3
  */
4
- import type { ErrorPatternType } from "./types/error-pattern-type.js";
4
+ import type { ErrorPatternType } from "./constants.js";
5
5
  export declare function detectErrorType(error: unknown): ErrorPatternType | null;
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * Errors - Index
3
3
  */
4
- export * from "./constants/index.js";
5
- export * from "./types/index.js";
4
+ export * from "./constants.js";
6
5
  export { detectErrorType } from "./detection.js";
7
6
  export { isRetryableError, shouldAbortOnError, getRetryDelay } from "./retry.js";
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Error Retry Logic
3
3
  */
4
- import type { ErrorPatternType } from "./types/error-pattern-type.js";
4
+ import type { ErrorPatternType } from "./constants.js";
5
5
  export declare function isRetryableError(errorType: ErrorPatternType | null): boolean;
6
6
  export declare function shouldAbortOnError(errorType: ErrorPatternType | null): boolean;
7
7
  export declare function getRetryDelay(errorType: ErrorPatternType | null, attempt: number): number;
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,88 @@
1
+ /**
2
+ * Loop Continuation Configuration
3
+ */
4
+ export declare const LOOP: {
5
+ /** Countdown seconds before auto-continuation */
6
+ readonly COUNTDOWN_SECONDS: 3;
7
+ /** Minimum time between continuation checks */
8
+ readonly MIN_TIME_BETWEEN_CHECKS_MS: number;
9
+ /** Grace period after countdown starts (ignore messages) */
10
+ readonly COUNTDOWN_GRACE_PERIOD_MS: 500;
11
+ /** Window to consider abort as recent */
12
+ readonly ABORT_WINDOW_MS: number;
13
+ /** Maximum iterations for mission loop */
14
+ readonly DEFAULT_MAX_ITERATIONS: 1000000000;
15
+ /** Rust tool timeout */
16
+ readonly RUST_TOOL_TIMEOUT_MS: number;
17
+ };
18
+ /**
19
+ * Mission Control Configuration
20
+ */
21
+ export declare const MISSION_CONTROL: {
22
+ readonly DEFAULT_MAX_ITERATIONS: 1000000000;
23
+ readonly DEFAULT_COUNTDOWN_SECONDS: 3;
24
+ readonly STATE_FILE: "loop-state.json";
25
+ readonly STOP_COMMAND: "/stop";
26
+ readonly CANCEL_COMMAND: "/cancel";
27
+ readonly LOG_SOURCE: "mission-loop";
28
+ };
29
+ /** @deprecated Use MISSION_CONTROL instead */
30
+ export declare const MISSION: {
31
+ readonly DEFAULT_MAX_ITERATIONS: 1000000000;
32
+ readonly DEFAULT_COUNTDOWN_SECONDS: 3;
33
+ readonly STATE_FILE: "loop-state.json";
34
+ readonly STOP_COMMAND: "/stop";
35
+ readonly CANCEL_COMMAND: "/cancel";
36
+ readonly LOG_SOURCE: "mission-loop";
37
+ };
38
+ export declare const TASK_STATUS: {
39
+ readonly PENDING: "pending";
40
+ readonly RUNNING: "running";
41
+ readonly COMPLETED: "completed";
42
+ readonly FAILED: "failed";
43
+ readonly ERROR: "error";
44
+ readonly TIMEOUT: "timeout";
45
+ readonly CANCELLED: "cancelled";
46
+ };
47
+ /**
48
+ * Todo Status Constants
49
+ */
50
+ export declare const TODO_STATUS: {
51
+ readonly PENDING: "pending";
52
+ readonly IN_PROGRESS: "in_progress";
53
+ readonly COMPLETED: "completed";
54
+ readonly CANCELLED: "cancelled";
55
+ };
56
+ /**
57
+ * Status and Progress Labels for UI and Logging
58
+ */
59
+ export declare const LOOP_LABELS: {
60
+ readonly PROGRESS_PREFIX: "[TODO Progress]:";
61
+ readonly INCOMPLETE_TASKS: "Incomplete Tasks";
62
+ readonly NEXT_TASK: "Next Task";
63
+ readonly STATUS_TITLE: "Status";
64
+ readonly STATUS: {
65
+ readonly RUNNING: "[RUN]";
66
+ readonly WAITING: "[WAIT]";
67
+ };
68
+ readonly PRIORITY: {
69
+ readonly HIGH: "[H]";
70
+ readonly MEDIUM: "[M]";
71
+ readonly LOW: "[L]";
72
+ };
73
+ readonly PARALLEL_REQUIRED: "[PARALLEL DISPATCH REQUIRED]";
74
+ readonly EXECUTE_NOW: "// EXECUTE NOW - Launch all $COUNT tasks simultaneously:";
75
+ readonly PARALLEL_NOTICE: "NOTICE: Do NOT run these sequentially. Use background=true for ALL.";
76
+ readonly MONITOR_PROGRESS: "After launching, use list_tasks to monitor progress.";
77
+ readonly ACTION_REQUIRED: "**Action Required**:";
78
+ readonly ACTION_CONTINUE: "1. Continue working on incomplete todos";
79
+ readonly ACTION_MARK_COMPLETE: "2. Mark each task complete when finished";
80
+ readonly ACTION_DONT_STOP: "3. Do NOT stop until all todos are completed or cancelled";
81
+ readonly VERIFIED_COMPLETE: "[Verified Complete]";
82
+ readonly FINAL_STATUS: "**Final Status**:";
83
+ readonly TOTAL_TASKS: "Total Tasks";
84
+ readonly COMPLETED: "Completed";
85
+ readonly CANCELLED: "Cancelled";
86
+ readonly SUCCESS_RATE: "Success Rate";
87
+ readonly MISSION_ACCOMPLISHED: "All tasks have been processed and verified. Mission accomplished!";
88
+ };
@@ -1,6 +1,5 @@
1
1
  /**
2
2
  * Loop Domain
3
3
  */
4
- export * from "./constants/index.js";
5
- export * from "./interfaces/index.js";
6
- export * from "./types/index.js";
4
+ export * from "./constants.js";
5
+ export * from "./types.js";
@@ -1,3 +1,25 @@
1
+ /**
2
+ * Loop types and interfaces (consolidated)
3
+ */
4
+ /**
5
+ * Todo status values
6
+ */
7
+ export type TodoStatus = "pending" | "in_progress" | "completed" | "cancelled";
8
+ /**
9
+ * Todo priority values
10
+ */
11
+ export type TodoPriority = "high" | "medium" | "low";
12
+ /**
13
+ * Todo statistics
14
+ */
15
+ export interface TodoStats {
16
+ total: number;
17
+ pending: number;
18
+ inProgress: number;
19
+ completed: number;
20
+ cancelled: number;
21
+ percentComplete: number;
22
+ }
1
23
  /**
2
24
  * Mission Loop Interfaces
3
25
  */
@@ -35,3 +57,15 @@ export interface MissionLoopOptions {
35
57
  /** Countdown seconds before auto-continue (default: 3) */
36
58
  countdownSeconds?: number;
37
59
  }
60
+ /**
61
+ * Todo item
62
+ */
63
+ export interface Todo {
64
+ id: string;
65
+ content: string;
66
+ status: TodoStatus;
67
+ priority: TodoPriority;
68
+ parentId?: string;
69
+ createdAt: Date;
70
+ completedAt?: Date;
71
+ }
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Message constants
3
+ */
4
+ export declare const PART_TYPES: {
5
+ readonly TEXT: "text";
6
+ readonly REASONING: "reasoning";
7
+ readonly TOOL_CALL: "tool_call";
8
+ readonly TOOL_RESULT: "tool_result";
9
+ /** Anthropic-style tool reference */
10
+ readonly TOOL: "tool";
11
+ /** Anthropic-style tool invocation */
12
+ readonly TOOL_USE: "tool_use";
13
+ };
14
+ export declare const PROMPTS: {
15
+ readonly CONTINUE: "continue";
16
+ readonly CONTINUE_PREVIOUS: "continue previous work";
17
+ readonly CONTINUE_DEFAULT: "continue from where we left off";
18
+ };
19
+ /**
20
+ * Slash Commands (with slash prefix)
21
+ */
22
+ export declare const SLASH_COMMANDS: {
23
+ readonly TASK: "/task";
24
+ readonly PLAN: "/plan";
25
+ readonly STATUS: "/status";
26
+ readonly STOP: "/stop";
27
+ readonly CANCEL: "/cancel";
28
+ };
29
+ /**
30
+ * Command Names (without slash prefix, for comparison after parsing)
31
+ */
32
+ export declare const COMMAND_NAMES: {
33
+ readonly TASK: "task";
34
+ readonly PLAN: "plan";
35
+ readonly STATUS: "status";
36
+ readonly STOP: "stop";
37
+ readonly CANCEL: "cancel";
38
+ };
39
+ export type CommandName = (typeof COMMAND_NAMES)[keyof typeof COMMAND_NAMES];
40
+ /**
41
+ * Plugin Hook Constants (OpenCode plugin hook names from @opencode-ai/plugin).
42
+ */
43
+ export declare const PLUGIN_HOOKS: {
44
+ /** Intercepts user messages before sending to LLM */
45
+ readonly CHAT_MESSAGE: "chat.message";
46
+ /** Runs before any tool call */
47
+ readonly TOOL_EXECUTE_BEFORE: "tool.execute.before";
48
+ /** Runs after any tool call completes */
49
+ readonly TOOL_EXECUTE_AFTER: "tool.execute.after";
50
+ /** Preserves custom compaction context */
51
+ readonly EXPERIMENTAL_SESSION_COMPACTING: "experimental.session.compacting";
52
+ /** Injects dynamic system prompt additions */
53
+ readonly EXPERIMENTAL_CHAT_SYSTEM_TRANSFORM: "experimental.chat.system.transform";
54
+ };
55
+ export type PluginHookName = (typeof PLUGIN_HOOKS)[keyof typeof PLUGIN_HOOKS];
56
+ /**
57
+ * Message Role Constants (OpenCode message roles).
58
+ */
59
+ export declare const MESSAGE_ROLES: {
60
+ /** AI assistant message */
61
+ readonly ASSISTANT: "assistant";
62
+ /** User message */
63
+ readonly USER: "user";
64
+ /** System message */
65
+ readonly SYSTEM: "system";
66
+ };
67
+ export type MessageRole = (typeof MESSAGE_ROLES)[keyof typeof MESSAGE_ROLES];
68
+ /**
69
+ * Session Status Types
70
+ */
71
+ export declare const SESSION_STATUS: {
72
+ readonly IDLE: "idle";
73
+ readonly BUSY: "busy";
74
+ };
75
+ export type SessionStatus = (typeof SESSION_STATUS)[keyof typeof SESSION_STATUS];
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Message Domain
3
3
  */
4
- export * from "./constants/index.js";
4
+ export * from "./constants.js";
@@ -1,3 +1,31 @@
1
+ /**
2
+ * Toast Duration Constants
3
+ */
4
+ export declare const TOAST_DURATION: {
5
+ /** Extra short: 1.5 seconds */
6
+ readonly EXTRA_SHORT: 1500;
7
+ /** Short: 2 seconds */
8
+ readonly SHORT: number;
9
+ /** Medium: 3 seconds */
10
+ readonly MEDIUM: number;
11
+ /** Default: 4 seconds */
12
+ readonly DEFAULT: number;
13
+ /** Long: 5 seconds */
14
+ readonly LONG: number;
15
+ /** Extended: 7 seconds */
16
+ readonly EXTENDED: number;
17
+ /** Persistent: 0 (stays until dismissed) */
18
+ readonly PERSISTENT: 0;
19
+ };
20
+ /**
21
+ * Toast Variants
22
+ */
23
+ export declare const TOAST_VARIANTS: {
24
+ readonly INFO: "info";
25
+ readonly SUCCESS: "success";
26
+ readonly WARNING: "warning";
27
+ readonly ERROR: "error";
28
+ };
1
29
  /**
2
30
  * TUI Constants for Notification System
3
31
  */
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * Notification Domain
3
3
  */
4
- export * from "./constants/index.js";
5
- export * from "./interfaces/index.js";
6
- export * from "./types/index.js";
7
- export * as presets from "./presets/index.js";
4
+ export * from "./constants.js";
5
+ export * from "./types.js";
6
+ export * as presets from "./presets.js";