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,30 @@
1
+ /**
2
+ * OS notification constants (consolidated)
3
+ */
4
+ import type { NotificationConfig } from "./types.js";
5
+ /**
6
+ * OS Notification Command Keys
7
+ */
8
+ export declare const NOTIFICATION_COMMAND_KEYS: {
9
+ readonly OSASCRIPT: "osascript";
10
+ readonly NOTIFY_SEND: "notifySend";
11
+ readonly POWERSHELL: "powershell";
12
+ readonly AFPLAY: "afplay";
13
+ readonly PAPLAY: "paplay";
14
+ readonly APLAY: "aplay";
15
+ };
16
+ /**
17
+ * OS Notification Commands
18
+ */
19
+ export declare const NOTIFICATION_COMMANDS: {
20
+ readonly OSASCRIPT: "osascript";
21
+ readonly NOTIFY_SEND: "notify-send";
22
+ readonly POWERSHELL: "powershell";
23
+ readonly AFPLAY: "afplay";
24
+ readonly PAPLAY: "paplay";
25
+ readonly APLAY: "aplay";
26
+ };
27
+ /**
28
+ * OS Notification Default Constants
29
+ */
30
+ export declare const NOTIFICATION_DEFAULTS: Required<NotificationConfig>;
@@ -1,6 +1,5 @@
1
1
  /**
2
2
  * OS Notification Shared Module
3
3
  */
4
- export * from "./types/index.js";
5
- export * from "./interfaces/index.js";
6
- export * from "./constants/index.js";
4
+ export * from "./types.js";
5
+ export * from "./constants.js";
@@ -0,0 +1,36 @@
1
+ /**
2
+ * OS notification types (consolidated)
3
+ */
4
+ import { NOTIFICATION_COMMAND_KEYS } from "./constants.js";
5
+ /**
6
+ * Notification Config Interface
7
+ */
8
+ export interface NotificationConfig {
9
+ /** Notification title (default: "OpenCode Orchestrator") */
10
+ title?: string;
11
+ /** Notification message (default: "Task completed") */
12
+ message?: string;
13
+ /** Play sound with notification (default: true) */
14
+ playSound?: boolean;
15
+ /** Custom sound file path */
16
+ soundPath?: string;
17
+ /** Maximum number of sessions to track before cleanup (default: 100) */
18
+ maxTrackedSessions?: number;
19
+ }
20
+ /**
21
+ * Notification State Interface
22
+ */
23
+ export interface NotificationState {
24
+ /** Sessions that have already been notified */
25
+ notifiedSessions: Set<string>;
26
+ /** Pending notification timers */
27
+ pendingTimers: Map<string, ReturnType<typeof setTimeout>>;
28
+ /** Version tracking for race condition handling */
29
+ notificationVersions: Map<string, number>;
30
+ /** Sessions currently executing notification */
31
+ executingNotifications: Set<string>;
32
+ }
33
+ /**
34
+ * OS Notification Command Types
35
+ */
36
+ export type NotificationCommandKey = typeof NOTIFICATION_COMMAND_KEYS[keyof typeof NOTIFICATION_COMMAND_KEYS];
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Task Lifecycle Presets
3
+ */
4
+ export declare const taskStarted: (taskId: string, agent: string) => import("./types.js").ToastMessage;
5
+ export declare const taskCompleted: (taskId: string, agent: string) => import("./types.js").ToastMessage;
6
+ export declare const taskFailed: (taskId: string, error: string) => import("./types.js").ToastMessage;
7
+ export declare const allTasksComplete: (count: number) => import("./types.js").ToastMessage;
8
+ /**
9
+ * Session Management Presets
10
+ */
11
+ export declare const sessionCreated: (sessionId: string, agent: string) => import("./types.js").ToastMessage;
12
+ export declare const sessionResumed: (sessionId: string, agent: string) => import("./types.js").ToastMessage;
13
+ export declare const sessionCompleted: (sessionId: string, duration: string) => import("./types.js").ToastMessage;
14
+ /**
15
+ * Parallel Processing Presets
16
+ */
17
+ export declare const parallelTasksLaunched: (count: number, agents: string[]) => import("./types.js").ToastMessage;
18
+ export declare const concurrencyAcquired: (agent: string, slot: string) => import("./types.js").ToastMessage;
19
+ export declare const concurrencyReleased: (agent: string) => import("./types.js").ToastMessage;
20
+ /**
21
+ * Mission & Progress Presets
22
+ */
23
+ export declare const missionComplete: (summary: string) => import("./types.js").ToastMessage;
24
+ export declare const missionStarted: (description: string) => import("./types.js").ToastMessage;
25
+ /**
26
+ * Tools & Research Presets
27
+ */
28
+ export declare const toolExecuted: (toolName: string, target: string) => import("./types.js").ToastMessage;
29
+ export declare const documentCached: (filename: string) => import("./types.js").ToastMessage;
30
+ export declare const researchStarted: (topic: string) => import("./types.js").ToastMessage;
31
+ /**
32
+ * Warnings & Errors Presets
33
+ */
34
+ export declare const warningRateLimited: () => import("./types.js").ToastMessage;
35
+ export declare const errorRecovery: (action: string) => import("./types.js").ToastMessage;
36
+ export declare const warningMaxDepth: (depth: number) => import("./types.js").ToastMessage;
37
+ export declare const warningMaxRetries: () => import("./types.js").ToastMessage;
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Notification types and interfaces (consolidated)
3
+ */
4
+ import type { TaskStatus } from "../core/index.js";
5
+ /**
6
+ * Toast variant type
7
+ */
8
+ export type ToastVariant = "info" | "success" | "warning" | "error";
9
+ /**
10
+ * Toast display options
11
+ */
12
+ export interface ToastOptions {
13
+ title: string;
14
+ message: string;
15
+ variant?: ToastVariant;
16
+ duration?: number;
17
+ }
18
+ /**
19
+ * Toast message with metadata
20
+ */
21
+ export interface ToastMessage {
22
+ id: string;
23
+ title: string;
24
+ message: string;
25
+ variant: ToastVariant;
26
+ timestamp: Date;
27
+ duration: number;
28
+ dismissed: boolean;
29
+ }
30
+ export interface TrackedTask {
31
+ id: string;
32
+ description: string;
33
+ agent: string;
34
+ status: TaskStatus;
35
+ startedAt: Date;
36
+ isBackground: boolean;
37
+ parentSessionID?: string;
38
+ sessionID?: string;
39
+ }
40
+ export interface TaskCompletionInfo {
41
+ id: string;
42
+ description: string;
43
+ duration: string;
44
+ status: TaskStatus;
45
+ error?: string;
46
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * OS Platform Constants
2
+ * OS constants
3
3
  */
4
4
  export declare const PLATFORM: {
5
5
  readonly DARWIN: "darwin";
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * OS Shared Domain
3
3
  */
4
- export * from "./constants/index.js";
5
- export * from "./types/index.js";
4
+ export * from "./constants.js";
5
+ export * from "./types.js";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * OS types
3
+ */
4
+ import { PLATFORM } from "./constants.js";
5
+ export type Platform = (typeof PLATFORM)[keyof typeof PLATFORM];
@@ -0,0 +1,449 @@
1
+ /**
2
+ * Architecture Rules - Core system behavior constants
3
+ *
4
+ * These define the immutable rules about agent hierarchy and spawning.
5
+ * Used by prompts to ensure consistent messaging across all agents.
6
+ */
7
+ /**
8
+ * Agent hierarchy roles
9
+ */
10
+ export declare const AGENT_ROLES: {
11
+ /** Only Commander can spawn other agents */
12
+ readonly SPAWNER: "Commander";
13
+ /** Terminal agents cannot spawn any sub-agents */
14
+ readonly TERMINAL_AGENTS: readonly ["Planner", "Worker", "Reviewer"];
15
+ };
16
+ /**
17
+ * Terminal node messaging - used in forbidden actions
18
+ */
19
+ export declare const TERMINAL_NODE: {
20
+ /** Label for terminal node concept */
21
+ readonly LABEL: "TERMINAL node";
22
+ /** Reason why terminal nodes can't spawn */
23
+ readonly REASON: "prevents infinite recursion";
24
+ /** What to do instead of spawning */
25
+ readonly ALTERNATIVE: "Report back to Commander with specific blockers";
26
+ };
27
+ /**
28
+ * Spawning restriction messages
29
+ */
30
+ export declare const SPAWNING_RULES: {
31
+ /** Who can spawn */
32
+ readonly SPAWNER_ONLY: "Commander is the ONLY agent who can spawn other agents";
33
+ /** What terminal nodes should do */
34
+ readonly TERMINAL_BEHAVIOR: "Complete your assigned task directly without delegation";
35
+ /** Error message for blocked spawn attempts */
36
+ readonly BLOCKED_MESSAGE: "You are a TERMINAL node - prevents infinite recursion";
37
+ };
38
+ /**
39
+ * Core architecture rules as a single exportable constant
40
+ */
41
+ export declare const ARCHITECTURE_RULES: {
42
+ readonly AGENT_ROLES: {
43
+ /** Only Commander can spawn other agents */
44
+ readonly SPAWNER: "Commander";
45
+ /** Terminal agents cannot spawn any sub-agents */
46
+ readonly TERMINAL_AGENTS: readonly ["Planner", "Worker", "Reviewer"];
47
+ };
48
+ readonly TERMINAL_NODE: {
49
+ /** Label for terminal node concept */
50
+ readonly LABEL: "TERMINAL node";
51
+ /** Reason why terminal nodes can't spawn */
52
+ readonly REASON: "prevents infinite recursion";
53
+ /** What to do instead of spawning */
54
+ readonly ALTERNATIVE: "Report back to Commander with specific blockers";
55
+ };
56
+ readonly SPAWNING_RULES: {
57
+ /** Who can spawn */
58
+ readonly SPAWNER_ONLY: "Commander is the ONLY agent who can spawn other agents";
59
+ /** What terminal nodes should do */
60
+ readonly TERMINAL_BEHAVIOR: "Complete your assigned task directly without delegation";
61
+ /** Error message for blocked spawn attempts */
62
+ readonly BLOCKED_MESSAGE: "You are a TERMINAL node - prevents infinite recursion";
63
+ };
64
+ };
65
+ /**
66
+ * Architectural Mandates - Immutable Core Logic
67
+ *
68
+ * These constants define the non-negotiable architectural requirements
69
+ * that ensure the orchestrator operates according to the verified diagram.
70
+ */
71
+ /**
72
+ * Phase 0: Direct Discovery
73
+ */
74
+ export declare const PHASE_0_DIRECT_DISCOVERY: string;
75
+ /**
76
+ * Phase 1: THINK (Strategic Mandate)
77
+ */
78
+ export declare const PHASE_1_THINK_ANALYSIS = "### 1.1 ANALYZE & SCOPE\n- **Define FULL scope** based on user request and discovered context.\n- **Hierarchical Breakdown**: Milestones -> Tasks -> Sub-tasks.\n\n### 1.2 STRATEGIC DECOMPOSITION\n- **Independent Items**: Identify what can run in parallel.\n- **Dependency Map**: Clearly define `depends:` links.\n\n### 1.3 DELEGATION\n- **Parallel Workers**: Assign workers for independent branches.\n- **Granular Review**: Assign reviewers for verification.";
79
+ /**
80
+ * Phase 5: MSVP (Multi-Stage Verification Pipeline)
81
+ */
82
+ export declare const PHASE_5_MSVP: string;
83
+ /**
84
+ * HPFA (Hyper-Parallel Fractal Architecture) Rules
85
+ */
86
+ export declare const HPFA_RULES = "1. **Commander-Only Spawning**: All agents are spawned by the Commander.\n2. **Parallel Branches**: Execute non-dependent milestones/tasks simultaneously.\n3. **Recursive Breakdown**: Continue subdividing until tasks are atomic.\n4. **Autonomous Termination**: You only finish when the verification checklist and TODOs are 100% complete.";
87
+ /**
88
+ * Autonomous Completion Mandate
89
+ */
90
+ export declare const AUTONOMOUS_MANDATE = "\n## AUTONOMOUS COMPLETION MANDATE (MANDATORY)\n1. **ZERO TOLERANCE**: Finishing with incomplete `[ ]` items is a FAILURE.\n2. **FORCED CONTINUATION**: If you stop prematurely, the system will inject a \"CONTINUE\" prompt and iteration count.\n3. **HIERARCHICAL PROOF**: You must provide evidence (tool output) for every `[x]` mark.\n4. **NO PERMISSION**: Do not ask \"Should I continue?\". The answer is always YES until `.opencode/todo.md` is 100% checked.\n";
91
+ /**
92
+ * Core Philosophy Phases
93
+ *
94
+ * The 4-phase cycle: Explore → Learn → Adapt → Act
95
+ */
96
+ export declare const PHILOSOPHY_PHASES: {
97
+ readonly EXPLORE: "EXPLORE";
98
+ readonly LEARN: "LEARN";
99
+ readonly ADAPT: "ADAPT";
100
+ readonly ACT: "ACT";
101
+ };
102
+ /**
103
+ * Execution Cycle Phases
104
+ *
105
+ * The 4-step execution pattern: THINK → ACT → OBSERVE → ADJUST
106
+ */
107
+ export declare const EXECUTION_CYCLE: {
108
+ readonly THINK: "THINK";
109
+ readonly ACT: "ACT";
110
+ readonly OBSERVE: "OBSERVE";
111
+ readonly ADJUST: "ADJUST";
112
+ };
113
+ export declare const EXECUTION_CYCLE_STEPS: string;
114
+ /**
115
+ * Core philosophy tagline
116
+ */
117
+ export declare const PHILOSOPHY_TAGLINE = "Explore \u2192 Learn \u2192 Adapt \u2192 Act";
118
+ export declare const PHILOSOPHY_QUOTE = "Like an astronaut landing on unknown planets \u2014 never assume, always discover.";
119
+ export declare const PHILOSOPHY_LEARN_PRINCIPLE = "LEARN = DOCUMENT: What you discover, you record. Your learnings become the team's knowledge.";
120
+ /**
121
+ * Discovery Scouters - Phase 0 Specialized Roles
122
+ */
123
+ /**
124
+ * Basic identifier for discovery agents
125
+ */
126
+ export declare const SCOUT_LABEL = "Scout";
127
+ export declare const SCOUT_STRUCTURE: {
128
+ readonly ID: "STRUCTURE";
129
+ readonly NAME: "Scout: Structure";
130
+ readonly PROMPT: "Analyze the project folder structure. Locate source code (src, lib), tests, and documentation directories. Map out the tree at depth 2-3.";
131
+ };
132
+ export declare const SCOUT_STACK: {
133
+ readonly ID: "STACK";
134
+ readonly NAME: "Scout: Stack";
135
+ readonly PROMPT: "Identify the technology stack. Parse package.json, Cargo.toml, go.mod, or pyproject.toml. Determine build and test commands.";
136
+ };
137
+ export declare const SCOUT_DOCS: {
138
+ readonly ID: "DOCS";
139
+ readonly NAME: "Scout: Docs";
140
+ readonly PROMPT: "Digest the project documentation. Read README.md, CONTRIBUTING.md, and any files in docs/ to understand the core architecture and mission.";
141
+ };
142
+ export declare const SCOUT_INFRA: {
143
+ readonly ID: "INFRA";
144
+ readonly NAME: "Scout: Infra";
145
+ readonly PROMPT: "Detect infrastructure and environment configs. Search for Dockerfiles, CI/CD workflows (.github, .gitlab), and environment variable templates.";
146
+ };
147
+ export declare const SCOUT_INTEGRATION: {
148
+ readonly ID: "INTEGRATION";
149
+ readonly NAME: "Scout: Integration";
150
+ readonly PROMPT: "Read all modified files and their cross-module dependencies in parallel. Map the actual integration surface and identify potential consistency issues.";
151
+ };
152
+ /**
153
+ * Work Status Constants
154
+ *
155
+ * All status values used in work-log.md, todo.md, sync-issues.md, status.md.
156
+ */
157
+ export declare const WORK_STATUS: {
158
+ readonly ACTION: {
159
+ readonly CREATE: "CREATE";
160
+ readonly MODIFY: "MODIFY";
161
+ readonly DELETE: "DELETE";
162
+ readonly FIX: "FIX";
163
+ };
164
+ readonly STATUS: {
165
+ readonly PENDING: "pending";
166
+ readonly IN_PROGRESS: "in_progress";
167
+ readonly DONE: "done";
168
+ readonly FAILED: "failed";
169
+ };
170
+ readonly TEST_RESULT: {
171
+ readonly PASS: "pass";
172
+ readonly FAIL: "fail";
173
+ readonly SKIP: "skip";
174
+ };
175
+ readonly E2E_STATUS: {
176
+ readonly NOT_STARTED: "NOT_STARTED";
177
+ readonly RUNNING: "running";
178
+ readonly PASS: "pass";
179
+ readonly FAIL: "fail";
180
+ };
181
+ readonly PHASE: {
182
+ readonly PLANNING: "PLANNING";
183
+ readonly IMPLEMENTATION: "IMPLEMENTATION";
184
+ readonly E2E: "E2E";
185
+ readonly FIXING: "FIXING";
186
+ readonly VERIFYING: "VERIFYING";
187
+ };
188
+ readonly SEVERITY: {
189
+ readonly HIGH: "HIGH";
190
+ readonly MEDIUM: "MEDIUM";
191
+ readonly LOW: "LOW";
192
+ };
193
+ readonly CONFIDENCE: {
194
+ readonly HIGH: "HIGH";
195
+ readonly MEDIUM: "MEDIUM";
196
+ readonly LOW: "LOW";
197
+ };
198
+ readonly SESSION: {
199
+ readonly STARTED: "pending";
200
+ readonly COMPLETED: "done";
201
+ readonly CANCELLED: "cancelled";
202
+ };
203
+ readonly TRIAGE: {
204
+ readonly TYPE: {
205
+ readonly SIMPLE: "Simple";
206
+ readonly MEDIUM: "Medium";
207
+ readonly COMPLEX: "Complex";
208
+ };
209
+ readonly SIGNAL: {
210
+ readonly ONE_FILE: "One file";
211
+ readonly MULTI_FILE: "Multi-file";
212
+ readonly LARGE_SCOPE: "Large scope";
213
+ };
214
+ readonly APPROACH: {
215
+ readonly DIRECT: "Direct action";
216
+ readonly PLAN_EXECUTE_VERIFY: "Plan - Execute - Verify";
217
+ readonly RESEARCH_PLAN_PARALLEL: "Research - Plan - Parallel Execute";
218
+ };
219
+ };
220
+ readonly TODO_STATUS: {
221
+ readonly PENDING: "pending";
222
+ readonly IN_PROGRESS: "in_progress";
223
+ readonly COMPLETE: "completed";
224
+ readonly BLOCKED: "blocked";
225
+ readonly DONE: "done";
226
+ readonly VERIFIED: "verified";
227
+ };
228
+ readonly TASK_SIZE: {
229
+ readonly XS: "XS";
230
+ readonly S: "S";
231
+ readonly M: "M";
232
+ readonly L: "L";
233
+ };
234
+ };
235
+ /**
236
+ * Prompt XML Tags
237
+ *
238
+ * All XML tags used in agent prompts MUST be defined here.
239
+ * Tags come in pairs: open and close.
240
+ */
241
+ export declare const PROMPT_TAGS: {
242
+ readonly ROLE: {
243
+ readonly open: "<role>";
244
+ readonly close: "</role>";
245
+ };
246
+ readonly IDENTITY: {
247
+ readonly open: "<identity>";
248
+ readonly close: "</identity>";
249
+ };
250
+ readonly FORBIDDEN_ACTIONS: {
251
+ readonly open: "<forbidden_actions>";
252
+ readonly close: "</forbidden_actions>";
253
+ };
254
+ readonly REQUIRED_ACTIONS: {
255
+ readonly open: "<required_actions>";
256
+ readonly close: "</required_actions>";
257
+ };
258
+ readonly VERIFICATION: {
259
+ readonly open: "<verification>";
260
+ readonly close: "</verification>";
261
+ };
262
+ readonly ENVIRONMENT_DISCOVERY: {
263
+ readonly open: "<environment_discovery>";
264
+ readonly close: "</environment_discovery>";
265
+ };
266
+ readonly ANTI_HALLUCINATION: {
267
+ readonly open: "<anti_hallucination>";
268
+ readonly close: "</anti_hallucination>";
269
+ };
270
+ readonly TODO_RULES: {
271
+ readonly open: "<todo_rules>";
272
+ readonly close: "</todo_rules>";
273
+ };
274
+ readonly COMPLETE_SIGNAL: {
275
+ readonly open: "<complete_signal>";
276
+ readonly close: "</complete_signal>";
277
+ };
278
+ readonly SHARED_WORKSPACE: {
279
+ readonly open: "<shared_workspace>";
280
+ readonly close: "</shared_workspace>";
281
+ };
282
+ readonly CORE_PHILOSOPHY: {
283
+ readonly open: "<core_philosophy>";
284
+ readonly close: "</core_philosophy>";
285
+ };
286
+ readonly SYSTEM: {
287
+ readonly open: "<system>";
288
+ readonly close: "</system>";
289
+ };
290
+ readonly TASK: {
291
+ readonly open: "<task>";
292
+ readonly close: "</task>";
293
+ };
294
+ readonly CONTEXT: {
295
+ readonly open: "<context>";
296
+ readonly close: "</context>";
297
+ };
298
+ readonly EXECUTION: {
299
+ readonly open: "<execution>";
300
+ readonly close: "</execution>";
301
+ };
302
+ readonly MODE: {
303
+ readonly open: "<mode>";
304
+ readonly close: "</mode>";
305
+ };
306
+ readonly RESUME: {
307
+ readonly open: "<resume>";
308
+ readonly close: "</resume>";
309
+ };
310
+ readonly SAFETY: {
311
+ readonly open: "<safety>";
312
+ readonly close: "</safety>";
313
+ };
314
+ readonly AST_TOOLS: {
315
+ readonly open: "<ast_tools>";
316
+ readonly close: "</ast_tools>";
317
+ };
318
+ readonly LSP_TOOLS: {
319
+ readonly open: "<lsp_tools>";
320
+ readonly close: "</lsp_tools>";
321
+ };
322
+ readonly SKILLS_CAPABILITIES: {
323
+ readonly open: "<skills_capabilities>";
324
+ readonly close: "</skills_capabilities>";
325
+ };
326
+ readonly DECOMPOSITION_RULES: {
327
+ readonly open: "<decomposition_rules>";
328
+ readonly close: "</decomposition_rules>";
329
+ };
330
+ readonly EXECUTION_ASSURANCE: {
331
+ readonly open: "<execution_assurance>";
332
+ readonly close: "</execution_assurance>";
333
+ };
334
+ readonly TOOLS: {
335
+ readonly open: "<tools>";
336
+ readonly close: "</tools>";
337
+ };
338
+ readonly AGENTS: {
339
+ readonly open: "<agents>";
340
+ readonly close: "</agents>";
341
+ };
342
+ readonly EXECUTION_RULES: {
343
+ readonly open: "<execution_rules>";
344
+ readonly close: "</execution_rules>";
345
+ };
346
+ readonly EXECUTION_STRATEGY: {
347
+ readonly open: "<execution_strategy>";
348
+ readonly close: "</execution_strategy>";
349
+ };
350
+ readonly PARALLEL_EXECUTION: {
351
+ readonly open: "<parallel_execution>";
352
+ readonly close: "</parallel_execution>";
353
+ };
354
+ readonly TODO_FORMAT: {
355
+ readonly open: "<todo_format>";
356
+ readonly close: "</todo_format>";
357
+ };
358
+ readonly SYNC_ISSUE_HANDLING: {
359
+ readonly open: "<sync_issue_handling>";
360
+ readonly close: "</sync_issue_handling>";
361
+ };
362
+ readonly LOOP_CONTINUATION: {
363
+ readonly open: "<loop_continuation>";
364
+ readonly close: "</loop_continuation>";
365
+ };
366
+ readonly RECOVERY: {
367
+ readonly open: "<recovery>";
368
+ readonly close: "</recovery>";
369
+ };
370
+ readonly FILE_LEVEL_PLANNING: {
371
+ readonly open: "<file_level_planning>";
372
+ readonly close: "</file_level_planning>";
373
+ };
374
+ readonly TODO_SYNC: {
375
+ readonly open: "<todo_sync>";
376
+ readonly close: "</todo_sync>";
377
+ };
378
+ readonly PLANNING_FORMAT: {
379
+ readonly open: "<planning_format>";
380
+ readonly close: "</planning_format>";
381
+ };
382
+ readonly RESEARCH_WORKFLOW: {
383
+ readonly open: "<research_workflow>";
384
+ readonly close: "</research_workflow>";
385
+ };
386
+ readonly FILE_ASSIGNMENT: {
387
+ readonly open: "<file_assignment>";
388
+ readonly close: "</file_assignment>";
389
+ };
390
+ readonly TDD_WORKFLOW: {
391
+ readonly open: "<tdd_workflow>";
392
+ readonly close: "</tdd_workflow>";
393
+ };
394
+ readonly ISOLATION_TESTING: {
395
+ readonly open: "<isolation_testing>";
396
+ readonly close: "</isolation_testing>";
397
+ };
398
+ readonly WORKFLOW: {
399
+ readonly open: "<workflow>";
400
+ readonly close: "</workflow>";
401
+ };
402
+ readonly QUALITY_CHECKLIST: {
403
+ readonly open: "<quality_checklist>";
404
+ readonly close: "</quality_checklist>";
405
+ };
406
+ readonly SYNC_VERIFICATION: {
407
+ readonly open: "<sync_verification>";
408
+ readonly close: "</sync_verification>";
409
+ };
410
+ readonly ASYNC_MONITORING: {
411
+ readonly open: "<async_monitoring>";
412
+ readonly close: "</async_monitoring>";
413
+ };
414
+ readonly INTEGRATION_TESTING: {
415
+ readonly open: "<integration_testing>";
416
+ readonly close: "</integration_testing>";
417
+ };
418
+ readonly VERIFICATION_PROCESS: {
419
+ readonly open: "<verification_process>";
420
+ readonly close: "</verification_process>";
421
+ };
422
+ readonly TODO_MANAGEMENT: {
423
+ readonly open: "<todo_management>";
424
+ readonly close: "</todo_management>";
425
+ };
426
+ readonly OUTPUT_FORMAT: {
427
+ readonly open: "<output_format>";
428
+ readonly close: "</output_format>";
429
+ };
430
+ readonly MISSION_LOOP: {
431
+ readonly open: "<mission_loop>";
432
+ readonly close: "</mission_loop>";
433
+ };
434
+ readonly TODO_CONTINUATION: {
435
+ readonly open: "<todo_continuation>";
436
+ readonly close: "</todo_continuation>";
437
+ };
438
+ readonly AUTONOMOUS_MODE: {
439
+ readonly open: "<autonomous_mode>";
440
+ readonly close: "</autonomous_mode>";
441
+ };
442
+ };
443
+ /**
444
+ * Helper to wrap content in tags
445
+ */
446
+ export declare const wrapTag: (tag: {
447
+ open: string;
448
+ close: string;
449
+ }, content: string) => string;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Prompt Domain
3
3
  */
4
- export * from "./constants/index.js";
4
+ export * from "./constants.js";
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Recovery Configuration Constants
3
+ */
4
+ export declare const RECOVERY: {
5
+ /** Maximum recovery attempts per session */
6
+ readonly MAX_ATTEMPTS: 3;
7
+ /** Minimum time between recovery attempts */
8
+ readonly MIN_INTERVAL_MS: number;
9
+ /** Base delay for retry backoff calculation */
10
+ readonly BASE_DELAY_MS: number;
11
+ /** Maximum retry multiplier */
12
+ readonly MAX_RETRY_MULTIPLIER: 5;
13
+ };
14
+ /**
15
+ * History & Storage Limits
16
+ */
17
+ export declare const HISTORY: {
18
+ /** Recovery history max entries */
19
+ readonly MAX_RECOVERY: 100;
20
+ /** Toast history max entries */
21
+ readonly MAX_TOAST: 50;
22
+ /** Progress store max entries */
23
+ readonly MAX_PROGRESS: 100;
24
+ };
25
+ /**
26
+ * Recovery Level Constants
27
+ *
28
+ * Escalation levels for agent failure handling.
29
+ */
30
+ export declare const RECOVERY_LEVEL: {
31
+ /** Level 1: Split task into smaller units */
32
+ readonly DECOMPOSE: "DECOMPOSE";
33
+ /** Level 2: Step back and create new strategy */
34
+ readonly RE_PLAN: "RE-PLAN";
35
+ /** Level 3: Ask user for direction */
36
+ readonly ASK_USER: "ASK USER";
37
+ };
38
+ export declare const RECOVERY_PRINCIPLE = "DECOMPOSE \u2192 RE-PLAN \u2192 ASK. Never give up silently.";
39
+ export type RecoveryLevel = (typeof RECOVERY_LEVEL)[keyof typeof RECOVERY_LEVEL];