opencode-matrixx 1.1.1 → 2.0.0

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 (575) hide show
  1. package/README.md +162 -127
  2. package/bin/matrixx.js +4 -4
  3. package/dist/agents/agent-builder.d.ts +2 -3
  4. package/dist/agents/architect/agent.d.ts +2 -2
  5. package/dist/agents/architect/index.d.ts +4 -4
  6. package/dist/agents/builtin-agents/agent-overrides.d.ts +1 -1
  7. package/dist/agents/builtin-agents/atlas-agent.d.ts +1 -1
  8. package/dist/agents/builtin-agents/available-skills.d.ts +2 -2
  9. package/dist/agents/builtin-agents/general-agents.d.ts +2 -4
  10. package/dist/agents/builtin-agents/hephaestus-agent.d.ts +1 -1
  11. package/dist/agents/builtin-agents/sisyphus-agent.d.ts +1 -1
  12. package/dist/agents/builtin-agents.d.ts +3 -4
  13. package/dist/agents/env-context.d.ts +1 -1
  14. package/dist/agents/index.d.ts +6 -7
  15. package/dist/agents/keymaker.d.ts +1 -1
  16. package/dist/agents/morpheus.d.ts +1 -3
  17. package/dist/agents/mouse/index.d.ts +2 -2
  18. package/dist/agents/oracle/index.d.ts +3 -3
  19. package/dist/agents/sati.d.ts +7 -0
  20. package/dist/agents/seraph.d.ts +1 -1
  21. package/dist/agents/types.d.ts +6 -6
  22. package/dist/cli/config-manager/config-context.d.ts +1 -1
  23. package/dist/cli/config-manager/generate-matrixx-config.d.ts +2 -0
  24. package/dist/cli/config-manager/opencode-config-format.d.ts +2 -1
  25. package/dist/cli/config-manager/write-matrixx-config.d.ts +2 -0
  26. package/dist/cli/config-manager.d.ts +10 -10
  27. package/dist/cli/doctor/checks/index.d.ts +1 -1
  28. package/dist/cli/doctor/checks/model-resolution-config.d.ts +2 -2
  29. package/dist/cli/doctor/checks/model-resolution-details.d.ts +2 -2
  30. package/dist/cli/doctor/checks/model-resolution-types.d.ts +1 -1
  31. package/dist/cli/doctor/checks/model-resolution-variant.d.ts +3 -3
  32. package/dist/cli/doctor/checks/model-resolution.d.ts +2 -2
  33. package/dist/cli/doctor/checks/system-binary.d.ts +2 -7
  34. package/dist/cli/doctor/checks/system-loaded-version.d.ts +2 -1
  35. package/dist/cli/doctor/checks/tools-gh.d.ts +2 -1
  36. package/dist/cli/doctor/formatter.d.ts +1 -1
  37. package/dist/cli/doctor/index.d.ts +2 -2
  38. package/dist/cli/doctor/runner.d.ts +1 -1
  39. package/dist/cli/doctor/types.d.ts +2 -30
  40. package/dist/cli/index.js +16735 -14492
  41. package/dist/cli/mcp-oauth/login.d.ts +2 -1
  42. package/dist/cli/mcp-oauth/logout.d.ts +2 -1
  43. package/dist/cli/model-fallback-types.d.ts +1 -1
  44. package/dist/cli/model-fallback.d.ts +3 -4
  45. package/dist/cli/provider-availability.d.ts +1 -1
  46. package/dist/cli/run/agent-resolver.d.ts +1 -1
  47. package/dist/cli/run/event-formatting.d.ts +1 -1
  48. package/dist/cli/run/event-handlers.d.ts +1 -1
  49. package/dist/cli/run/event-stream-processor.d.ts +1 -1
  50. package/dist/cli/run/events.d.ts +1 -1
  51. package/dist/cli/run/index.d.ts +6 -6
  52. package/dist/cli/run/json-output.d.ts +1 -1
  53. package/dist/cli/run/opencode-binary-resolver.d.ts +0 -1
  54. package/dist/cli/run/poll-for-completion.d.ts +3 -2
  55. package/dist/cli/run/runner.d.ts +1 -1
  56. package/dist/config/index.d.ts +3 -3
  57. package/dist/config/profiles.d.ts +1 -1
  58. package/dist/config/schema/agent-definitions.d.ts +0 -1
  59. package/dist/config/schema/agent-names.d.ts +6 -39
  60. package/dist/config/schema/agent-overrides.d.ts +2 -2
  61. package/dist/config/schema/claude-code.d.ts +0 -1
  62. package/dist/config/schema/commands.d.ts +2 -0
  63. package/dist/config/schema/experimental.d.ts +0 -26
  64. package/dist/config/schema/hooks.d.ts +3 -1
  65. package/dist/config/schema/matrixx-config.d.ts +22 -51
  66. package/dist/config/schema/matrixx-self-config.d.ts +6 -0
  67. package/dist/config/schema/morpheus.d.ts +2 -1
  68. package/dist/config/schema/security.d.ts +4 -3
  69. package/dist/config/schema/skills.d.ts +2 -20
  70. package/dist/config/schema/websearch.d.ts +0 -5
  71. package/dist/config/schema.d.ts +10 -12
  72. package/dist/create-hooks.d.ts +4 -2
  73. package/dist/create-managers.d.ts +2 -2
  74. package/dist/create-tools.d.ts +3 -2
  75. package/dist/features/background-agent/background-task-notification-template.d.ts +2 -1
  76. package/dist/features/background-agent/constants.d.ts +1 -5
  77. package/dist/features/background-agent/index.d.ts +3 -3
  78. package/dist/features/background-agent/loop-detector.d.ts +2 -2
  79. package/dist/features/background-agent/manager.d.ts +13 -2
  80. package/dist/features/background-agent/state.d.ts +1 -1
  81. package/dist/features/background-agent/task-poller.d.ts +3 -2
  82. package/dist/features/background-agent/types.d.ts +4 -1
  83. package/dist/features/builtin-commands/index.d.ts +1 -1
  84. package/dist/features/builtin-commands/templates/end-ultrawork.d.ts +1 -0
  85. package/dist/features/builtin-commands/templates/handoff.d.ts +1 -1
  86. package/dist/features/builtin-commands/templates/pickup.d.ts +1 -1
  87. package/dist/features/builtin-commands/templates/profile.d.ts +1 -0
  88. package/dist/features/builtin-commands/templates/refactor.d.ts +1 -1
  89. package/dist/features/builtin-commands/types.d.ts +1 -4
  90. package/dist/features/builtin-skills/index.d.ts +1 -1
  91. package/dist/features/builtin-skills/skills/document-reader.d.ts +0 -2
  92. package/dist/features/builtin-skills/skills/dsl-codegen.d.ts +0 -1
  93. package/dist/features/builtin-skills/skills/dsl-composition.d.ts +0 -1
  94. package/dist/features/builtin-skills/skills/dsl-core.d.ts +0 -1
  95. package/dist/features/builtin-skills/skills/dsl-grammar.d.ts +0 -1
  96. package/dist/features/builtin-skills/skills/dsl-metamodel.d.ts +0 -1
  97. package/dist/features/builtin-skills/skills/dsl-model-transformation.d.ts +0 -1
  98. package/dist/features/builtin-skills/skills/dsl-pyecore-advanced.d.ts +0 -1
  99. package/dist/features/builtin-skills/skills/dsl-testing.d.ts +0 -1
  100. package/dist/features/builtin-skills/skills/dsl-textx-ecosystem.d.ts +0 -1
  101. package/dist/features/builtin-skills/skills/dsl-tooling.d.ts +0 -1
  102. package/dist/features/builtin-skills/skills/dsl-validation.d.ts +0 -1
  103. package/dist/features/builtin-skills/skills/frontend-a11y.d.ts +3 -0
  104. package/dist/features/builtin-skills/skills/frontend-build-tooling.d.ts +3 -0
  105. package/dist/features/builtin-skills/skills/frontend-perf.d.ts +3 -0
  106. package/dist/features/builtin-skills/skills/frontend-react-nextjs.d.ts +3 -0
  107. package/dist/features/builtin-skills/skills/frontend-state-data.d.ts +3 -0
  108. package/dist/features/builtin-skills/skills/frontend-svelte-sveltekit.d.ts +3 -0
  109. package/dist/features/builtin-skills/skills/frontend-testing.d.ts +3 -0
  110. package/dist/features/builtin-skills/skills/index.d.ts +25 -30
  111. package/dist/features/builtin-skills/skills/matrixx-self-config.d.ts +3 -0
  112. package/dist/features/builtin-skills/skills/quality-gate.d.ts +2 -0
  113. package/dist/features/builtin-skills/skills/review-work.d.ts +0 -2
  114. package/dist/features/builtin-skills/skills/security-api.d.ts +0 -1
  115. package/dist/features/builtin-skills/skills/security-core.d.ts +0 -1
  116. package/dist/features/builtin-skills/skills/security-crypto.d.ts +0 -1
  117. package/dist/features/builtin-skills/skills/security-dast.d.ts +0 -1
  118. package/dist/features/builtin-skills/skills/security-dependencies.d.ts +0 -1
  119. package/dist/features/builtin-skills/skills/security-infra.d.ts +0 -1
  120. package/dist/features/builtin-skills/skills/security-review.d.ts +0 -1
  121. package/dist/features/builtin-skills/skills/security-sast.d.ts +0 -1
  122. package/dist/features/builtin-skills/skills/security-secrets.d.ts +0 -1
  123. package/dist/features/builtin-skills/skills/software-dev.d.ts +2 -0
  124. package/dist/features/builtin-skills/skills/tdd-enforcer.d.ts +0 -2
  125. package/dist/features/builtin-skills/skills.d.ts +1 -1
  126. package/dist/features/claude-code-agent-loader/index.d.ts +1 -1
  127. package/dist/features/claude-code-command-loader/index.d.ts +1 -1
  128. package/dist/features/claude-code-command-loader/types.d.ts +2 -1
  129. package/dist/features/claude-code-mcp-loader/env-expander.d.ts +0 -1
  130. package/dist/features/claude-code-mcp-loader/index.d.ts +2 -2
  131. package/dist/features/claude-code-mcp-loader/loader.d.ts +1 -2
  132. package/dist/features/claude-code-plugin-loader/discovery.d.ts +1 -1
  133. package/dist/features/claude-code-plugin-loader/index.d.ts +7 -7
  134. package/dist/features/claude-code-plugin-loader/loader.d.ts +5 -5
  135. package/dist/features/claude-code-plugin-loader/plugin-path-resolver.d.ts +0 -1
  136. package/dist/features/claude-code-plugin-loader/types.d.ts +10 -9
  137. package/dist/features/claude-tasks/index.d.ts +2 -2
  138. package/dist/features/claude-tasks/session-storage.d.ts +2 -1
  139. package/dist/features/claude-tasks/storage.d.ts +0 -1
  140. package/dist/features/claude-tasks/types.d.ts +4 -4
  141. package/dist/features/context-injector/index.d.ts +1 -1
  142. package/dist/features/context-injector/injector.d.ts +1 -27
  143. package/dist/features/handoff/constants.d.ts +8 -0
  144. package/dist/features/handoff/index.d.ts +4 -0
  145. package/dist/features/handoff/schema.d.ts +90 -0
  146. package/dist/{hooks/handoff-injector → features/handoff}/storage.d.ts +2 -0
  147. package/dist/features/handoff/validate.d.ts +22 -0
  148. package/dist/features/hook-message-injector/constants.d.ts +1 -1
  149. package/dist/features/hook-message-injector/index.d.ts +2 -2
  150. package/dist/features/hook-message-injector/injector.d.ts +2 -2
  151. package/dist/features/mcp-oauth/dcr.d.ts +3 -9
  152. package/dist/features/mcp-oauth/index.d.ts +1 -1
  153. package/dist/features/mcp-oauth/provider.d.ts +4 -4
  154. package/dist/features/mcp-oauth/schema.d.ts +0 -1
  155. package/dist/features/mcp-oauth/step-up.d.ts +2 -1
  156. package/dist/features/mission-state/constants.d.ts +0 -3
  157. package/dist/features/mission-state/index.d.ts +1 -1
  158. package/dist/features/mission-state/storage.d.ts +0 -1
  159. package/dist/features/opencode-skill-loader/index.d.ts +6 -7
  160. package/dist/features/opencode-skill-loader/loaded-skill-from-path.d.ts +1 -1
  161. package/dist/features/opencode-skill-loader/loader.d.ts +2 -2
  162. package/dist/features/opencode-skill-loader/merger/config-skill-entry-loader.d.ts +1 -1
  163. package/dist/features/opencode-skill-loader/merger/skill-definition-merger.d.ts +1 -1
  164. package/dist/features/opencode-skill-loader/merger/skills-config-normalizer.d.ts +1 -1
  165. package/dist/features/opencode-skill-loader/merger.d.ts +3 -2
  166. package/dist/features/opencode-skill-loader/skill-content.d.ts +3 -4
  167. package/dist/features/opencode-skill-loader/skill-discovery.d.ts +1 -1
  168. package/dist/features/opencode-skill-loader/skill-resolution-options.d.ts +1 -2
  169. package/dist/features/run-continuation-state/index.d.ts +1 -1
  170. package/dist/features/run-continuation-state/types.d.ts +2 -1
  171. package/dist/features/skill-mcp-manager/cleanup.d.ts +0 -1
  172. package/dist/features/skill-mcp-manager/index.d.ts +1 -1
  173. package/dist/features/skill-mcp-manager/oauth-handler.d.ts +0 -1
  174. package/dist/features/skill-mcp-manager/types.d.ts +5 -4
  175. package/dist/features/task-toast-manager/index.d.ts +2 -2
  176. package/dist/features/task-toast-manager/manager.d.ts +1 -1
  177. package/dist/features/tmux-subagent/action-executor.d.ts +2 -2
  178. package/dist/features/tmux-subagent/cleanup.d.ts +1 -9
  179. package/dist/features/tmux-subagent/decision-engine.d.ts +3 -3
  180. package/dist/features/tmux-subagent/event-handlers.d.ts +3 -3
  181. package/dist/features/tmux-subagent/index.d.ts +7 -8
  182. package/dist/features/tmux-subagent/manager.d.ts +1 -1
  183. package/dist/features/tmux-subagent/polling.d.ts +0 -18
  184. package/dist/features/tmux-subagent/session-created-handler.d.ts +1 -1
  185. package/dist/features/tmux-subagent/session-deleted-handler.d.ts +1 -1
  186. package/dist/features/tmux-subagent/spawn-action-decider.d.ts +1 -1
  187. package/dist/features/tool-metadata-store/index.d.ts +1 -1
  188. package/dist/hooks/anthropic-context-window-limit-recovery/aggressive-truncation-strategy.d.ts +1 -1
  189. package/dist/hooks/anthropic-context-window-limit-recovery/empty-content-recovery.d.ts +1 -1
  190. package/dist/hooks/anthropic-context-window-limit-recovery/executor.d.ts +3 -2
  191. package/dist/hooks/anthropic-context-window-limit-recovery/index.d.ts +5 -5
  192. package/dist/hooks/anthropic-context-window-limit-recovery/message-builder.d.ts +1 -1
  193. package/dist/hooks/anthropic-context-window-limit-recovery/message-storage-directory.d.ts +0 -3
  194. package/dist/hooks/anthropic-context-window-limit-recovery/storage.d.ts +1 -1
  195. package/dist/hooks/anthropic-context-window-limit-recovery/summarize-retry-strategy.d.ts +1 -1
  196. package/dist/hooks/architect/index.d.ts +1 -1
  197. package/dist/hooks/auto-slash-command/executor.d.ts +2 -1
  198. package/dist/hooks/auto-slash-command/hook.d.ts +1 -1
  199. package/dist/hooks/auto-slash-command/index.d.ts +3 -3
  200. package/dist/hooks/auto-slash-command/types.d.ts +0 -5
  201. package/dist/hooks/auto-update-checker/checker.d.ts +6 -6
  202. package/dist/hooks/auto-update-checker/constants.d.ts +0 -2
  203. package/dist/hooks/auto-update-checker/index.d.ts +4 -4
  204. package/dist/hooks/comment-checker/cli-runner.d.ts +2 -1
  205. package/dist/hooks/comment-checker/downloader.d.ts +0 -5
  206. package/dist/hooks/comment-checker/types.d.ts +0 -18
  207. package/dist/hooks/delegate-task-retry/index.d.ts +2 -2
  208. package/dist/hooks/design-intent-preserver/constants.d.ts +6 -0
  209. package/dist/hooks/design-intent-preserver/hook.d.ts +19 -0
  210. package/dist/hooks/design-intent-preserver/index.d.ts +1 -0
  211. package/dist/hooks/design-intent-preserver/phase-detector.d.ts +8 -0
  212. package/dist/hooks/directory-agents-injector/finder.d.ts +1 -1
  213. package/dist/hooks/directory-agents-injector/hook.d.ts +3 -23
  214. package/dist/hooks/directory-injector/factory.d.ts +40 -0
  215. package/dist/hooks/directory-injector/index.d.ts +1 -0
  216. package/dist/hooks/directory-readme-injector/finder.d.ts +1 -1
  217. package/dist/hooks/directory-readme-injector/hook.d.ts +3 -23
  218. package/dist/hooks/env-file-write-guard/hook.d.ts +2 -1
  219. package/dist/hooks/index.d.ts +43 -41
  220. package/dist/hooks/interactive-bash-session/constants.d.ts +1 -1
  221. package/dist/hooks/interactive-bash-session/index.d.ts +0 -2
  222. package/dist/hooks/interactive-bash-session/parser.d.ts +2 -2
  223. package/dist/hooks/json-error-recovery/index.d.ts +1 -1
  224. package/dist/hooks/keyword-detector/analyze/index.d.ts +1 -1
  225. package/dist/hooks/keyword-detector/constants.d.ts +5 -6
  226. package/dist/hooks/keyword-detector/detector.d.ts +2 -2
  227. package/dist/hooks/keyword-detector/index.d.ts +1 -2
  228. package/dist/hooks/keyword-detector/search/index.d.ts +1 -1
  229. package/dist/hooks/keyword-detector/ultrawork/index.d.ts +4 -4
  230. package/dist/hooks/matrix-loop/completion-promise-detector.d.ts +10 -0
  231. package/dist/hooks/matrix-loop/completion-verifier.d.ts +4 -1
  232. package/dist/hooks/matrix-loop/constants.d.ts +0 -1
  233. package/dist/hooks/matrix-loop/index.d.ts +3 -3
  234. package/dist/hooks/matrix-loop/storage.d.ts +0 -1
  235. package/dist/hooks/non-interactive-env/index.d.ts +0 -1
  236. package/dist/hooks/non-interactive-env/non-interactive-env-hook.d.ts +0 -1
  237. package/dist/hooks/preemptive-compaction-types.d.ts +2 -1
  238. package/dist/hooks/prometheus-md-only/constants.d.ts +0 -1
  239. package/dist/hooks/quality-gate/hook.d.ts +18 -0
  240. package/dist/hooks/rules-injector/index.d.ts +1 -1
  241. package/dist/hooks/rules-injector/injector.d.ts +1 -0
  242. package/dist/hooks/rules-injector/matcher.d.ts +2 -1
  243. package/dist/hooks/rules-injector/output-path.d.ts +2 -1
  244. package/dist/hooks/rules-injector/parser.d.ts +2 -1
  245. package/dist/hooks/rules-injector/types.d.ts +0 -21
  246. package/dist/hooks/runtime-fallback/agent-resolver.d.ts +0 -2
  247. package/dist/hooks/runtime-fallback/auto-retry-signal.d.ts +2 -1
  248. package/dist/hooks/runtime-fallback/event-handler.d.ts +1 -1
  249. package/dist/hooks/runtime-fallback/fallback-retry-dispatcher.d.ts +1 -1
  250. package/dist/hooks/runtime-fallback/fallback-state.d.ts +1 -3
  251. package/dist/hooks/runtime-fallback/index.d.ts +1 -1
  252. package/dist/hooks/runtime-fallback/message-update-handler.d.ts +1 -1
  253. package/dist/hooks/runtime-fallback/session-status-handler.d.ts +1 -1
  254. package/dist/hooks/runtime-fallback/types.d.ts +1 -1
  255. package/dist/hooks/runtime-fallback/visible-assistant-response.d.ts +1 -1
  256. package/dist/hooks/secret-leak-guard/gitleaks-runner.d.ts +4 -3
  257. package/dist/hooks/secret-leak-guard/hook.d.ts +2 -1
  258. package/dist/hooks/session-recovery/constants.d.ts +1 -2
  259. package/dist/hooks/session-recovery/index.d.ts +3 -3
  260. package/dist/hooks/session-recovery/storage.d.ts +9 -17
  261. package/dist/hooks/session-recovery/types.d.ts +3 -5
  262. package/dist/hooks/start-work/index.d.ts +1 -1
  263. package/dist/hooks/stop-continuation-guard/hook.d.ts +2 -1
  264. package/dist/hooks/stop-continuation-guard/index.d.ts +1 -1
  265. package/dist/hooks/task-notepad/constants.d.ts +10 -0
  266. package/dist/hooks/task-notepad/hook.d.ts +12 -0
  267. package/dist/hooks/task-notepad/index.d.ts +3 -0
  268. package/dist/hooks/task-notepad/types.d.ts +16 -0
  269. package/dist/hooks/tasks-todowrite-disabler/index.d.ts +1 -1
  270. package/dist/hooks/think-mode/hook.d.ts +5 -1
  271. package/dist/hooks/think-mode/index.d.ts +1 -1
  272. package/dist/hooks/think-mode/switcher.d.ts +1 -0
  273. package/dist/hooks/think-mode/types.d.ts +3 -2
  274. package/dist/hooks/todo-continuation-enforcer/continuation-injection.d.ts +1 -1
  275. package/dist/hooks/todo-continuation-enforcer/countdown.d.ts +1 -1
  276. package/dist/hooks/unstable-agent-babysitter/index.d.ts +1 -1
  277. package/dist/hooks/webfetch-redirect-guard/redirect-resolution.d.ts +1 -1
  278. package/dist/index.d.ts +1 -1
  279. package/dist/index.js +64716 -51265
  280. package/dist/mcp/index.d.ts +1 -1
  281. package/dist/plugin/chat-message.d.ts +1 -1
  282. package/dist/plugin/event.d.ts +1 -1
  283. package/dist/plugin/hooks/create-continuation-hooks.d.ts +1 -1
  284. package/dist/plugin/hooks/create-core-hooks.d.ts +3 -1
  285. package/dist/plugin/hooks/create-session-hooks.d.ts +3 -3
  286. package/dist/plugin/hooks/create-skill-hooks.d.ts +1 -1
  287. package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +3 -1
  288. package/dist/plugin/hooks/create-transform-hooks.d.ts +3 -3
  289. package/dist/plugin/messages-transform.d.ts +1 -0
  290. package/dist/plugin/session-agent-resolver.d.ts +1 -1
  291. package/dist/plugin/tool-execute-before.bench.d.ts +1 -0
  292. package/dist/plugin/tool-execute-before.d.ts +1 -1
  293. package/dist/plugin/tool-registry.d.ts +1 -1
  294. package/dist/plugin/unstable-agent-babysitter.d.ts +1 -1
  295. package/dist/plugin-config.d.ts +24 -1
  296. package/dist/plugin-handlers/agent-config-handler.d.ts +1 -1
  297. package/dist/plugin-handlers/config-handler.d.ts +1 -1
  298. package/dist/plugin-handlers/index.d.ts +6 -6
  299. package/dist/plugin-interface.d.ts +1 -1
  300. package/dist/shared/agent-tool-restrictions.d.ts +0 -1
  301. package/dist/shared/code-patterns.d.ts +2 -0
  302. package/dist/shared/command-executor/embedded-commands.d.ts +2 -1
  303. package/dist/shared/command-executor/execute-command.d.ts +1 -1
  304. package/dist/shared/command-executor.d.ts +0 -2
  305. package/dist/shared/dynamic-truncator.d.ts +3 -9
  306. package/dist/shared/error-formatting.d.ts +27 -0
  307. package/dist/shared/external-plugin-detector.d.ts +2 -1
  308. package/dist/shared/frontmatter.d.ts +2 -1
  309. package/dist/shared/git-worktree/index.d.ts +3 -3
  310. package/dist/shared/index.d.ts +36 -35
  311. package/dist/shared/is-object.d.ts +1 -0
  312. package/dist/shared/jsonc-parser.d.ts +2 -1
  313. package/dist/shared/logger.d.ts +0 -1
  314. package/dist/shared/migration.d.ts +2 -2
  315. package/dist/shared/model-availability.d.ts +24 -2
  316. package/dist/shared/model-suggestion-retry.d.ts +1 -1
  317. package/dist/shared/normalize-sdk-response.d.ts +2 -1
  318. package/dist/shared/opencode-config-dir-types.d.ts +0 -1
  319. package/dist/shared/permission-compat.d.ts +2 -1
  320. package/dist/shared/port-utils.d.ts +1 -1
  321. package/dist/shared/session-cursor.d.ts +1 -1
  322. package/dist/shared/session-injected-paths.d.ts +0 -5
  323. package/dist/shared/session-model-state.d.ts +2 -3
  324. package/dist/shared/session-temperature-store.d.ts +3 -0
  325. package/dist/shared/shell-env.d.ts +2 -18
  326. package/dist/shared/skill-path-resolver.d.ts +1 -1
  327. package/dist/shared/system-directive.d.ts +0 -1
  328. package/dist/shared/tmux/index.d.ts +1 -1
  329. package/dist/shared/tmux/tmux-utils.d.ts +6 -6
  330. package/dist/shared/token-cache.d.ts +23 -0
  331. package/dist/shared/transcript-path.d.ts +1 -0
  332. package/dist/tools/ast-grep/cli-binary-path-resolution.d.ts +0 -1
  333. package/dist/tools/ast-grep/constants.d.ts +1 -2
  334. package/dist/tools/ast-grep/downloader.d.ts +0 -1
  335. package/dist/tools/ast-grep/index.d.ts +4 -4
  336. package/dist/tools/ast-grep/result-formatter.d.ts +1 -3
  337. package/dist/tools/ast-grep/types.d.ts +1 -24
  338. package/dist/tools/background-task/index.d.ts +2 -2
  339. package/dist/tools/background-task/time-format.d.ts +0 -1
  340. package/dist/tools/background-task/tools.d.ts +2 -2
  341. package/dist/tools/background-task/types.d.ts +0 -19
  342. package/dist/tools/delegate-agent/background-agent-executor.d.ts +5 -0
  343. package/dist/tools/{call-omo-agent → delegate-agent}/background-executor.d.ts +3 -3
  344. package/dist/tools/delegate-agent/constants.d.ts +2 -0
  345. package/dist/tools/{call-omo-agent → delegate-agent}/index.d.ts +2 -2
  346. package/dist/tools/{call-omo-agent → delegate-agent}/session-creator.d.ts +2 -2
  347. package/dist/tools/{call-omo-agent → delegate-agent}/subagent-session-creator.d.ts +2 -2
  348. package/dist/tools/{call-omo-agent → delegate-agent}/sync-executor.d.ts +3 -3
  349. package/dist/tools/{call-omo-agent → delegate-agent}/tools.d.ts +1 -1
  350. package/dist/tools/{call-omo-agent → delegate-agent}/types.d.ts +1 -16
  351. package/dist/tools/delegate-task/background-continuation.d.ts +1 -1
  352. package/dist/tools/delegate-task/background-task.d.ts +2 -1
  353. package/dist/tools/delegate-task/categories.d.ts +5 -3
  354. package/dist/tools/delegate-task/category-resolver.d.ts +2 -1
  355. package/dist/tools/delegate-task/constants.d.ts +6 -18
  356. package/dist/tools/delegate-task/error-formatting.d.ts +4 -13
  357. package/dist/tools/delegate-task/executor-types.d.ts +1 -2
  358. package/dist/tools/delegate-task/executor.d.ts +7 -7
  359. package/dist/tools/delegate-task/index.d.ts +3 -3
  360. package/dist/tools/delegate-task/parent-context-resolver.d.ts +1 -2
  361. package/dist/tools/delegate-task/prompt-builder.d.ts +0 -1
  362. package/dist/tools/delegate-task/skill-resolver.d.ts +1 -2
  363. package/dist/tools/delegate-task/subagent-resolver.d.ts +1 -1
  364. package/dist/tools/delegate-task/sync-continuation-deps.d.ts +1 -1
  365. package/dist/tools/delegate-task/sync-continuation.d.ts +1 -1
  366. package/dist/tools/delegate-task/sync-prompt-sender.d.ts +2 -1
  367. package/dist/tools/delegate-task/sync-result-fetcher.d.ts +6 -1
  368. package/dist/tools/delegate-task/sync-session-poller.d.ts +5 -1
  369. package/dist/tools/delegate-task/sync-task-deps.d.ts +2 -2
  370. package/dist/tools/delegate-task/sync-task.d.ts +2 -1
  371. package/dist/tools/delegate-task/tools.d.ts +1 -1
  372. package/dist/tools/delegate-task/types.d.ts +2 -3
  373. package/dist/tools/delegate-task/unstable-agent-task.d.ts +2 -1
  374. package/dist/tools/glob/cli.d.ts +1 -1
  375. package/dist/tools/glob/constants.d.ts +1 -1
  376. package/dist/tools/grep/cli.d.ts +1 -2
  377. package/dist/tools/grep/constants.d.ts +0 -1
  378. package/dist/tools/grep/result-formatter.d.ts +1 -2
  379. package/dist/tools/grep/types.d.ts +0 -4
  380. package/dist/tools/handoff/archive-handler.d.ts +9 -0
  381. package/dist/tools/handoff/body-formatter.d.ts +9 -0
  382. package/dist/tools/handoff/constants.d.ts +17 -0
  383. package/dist/tools/handoff/create-handler.d.ts +34 -0
  384. package/dist/tools/handoff/git.d.ts +12 -0
  385. package/dist/tools/handoff/index.d.ts +3 -0
  386. package/dist/tools/handoff/list-handler.d.ts +8 -0
  387. package/dist/tools/handoff/read-handler.d.ts +8 -0
  388. package/dist/tools/handoff/tools.d.ts +11 -0
  389. package/dist/tools/hashline-edit/autocorrect-replacement-lines.d.ts +0 -5
  390. package/dist/tools/hashline-edit/edit-operations.d.ts +2 -1
  391. package/dist/tools/hashline-edit/edit-text-normalization.d.ts +0 -2
  392. package/dist/tools/hashline-edit/file-text-canonicalization.d.ts +2 -1
  393. package/dist/tools/hashline-edit/hash-computation.d.ts +2 -1
  394. package/dist/tools/hashline-edit/hashline-chunk-formatter.d.ts +1 -1
  395. package/dist/tools/hashline-edit/hashline-edit-executor.d.ts +1 -1
  396. package/dist/tools/hashline-edit/index.d.ts +4 -5
  397. package/dist/tools/hashline-edit/validation.d.ts +0 -2
  398. package/dist/tools/index.d.ts +8 -7
  399. package/dist/tools/interactive-bash/constants.d.ts +1 -1
  400. package/dist/tools/interactive-bash/index.d.ts +1 -1
  401. package/dist/tools/look-at/index.d.ts +1 -1
  402. package/dist/tools/lsp/client.d.ts +1 -1
  403. package/dist/tools/lsp/config.d.ts +1 -1
  404. package/dist/tools/lsp/constants.d.ts +1 -1
  405. package/dist/tools/lsp/index.d.ts +4 -4
  406. package/dist/tools/lsp/lsp-client-transport.d.ts +1 -1
  407. package/dist/tools/lsp/lsp-client-wrapper.d.ts +1 -5
  408. package/dist/tools/lsp/lsp-formatters.d.ts +1 -5
  409. package/dist/tools/lsp/lsp-server.d.ts +1 -1
  410. package/dist/tools/lsp/tools.d.ts +3 -3
  411. package/dist/tools/lsp/types.d.ts +8 -7
  412. package/dist/tools/session-manager/constants.d.ts +1 -1
  413. package/dist/tools/session-manager/index.d.ts +1 -1
  414. package/dist/tools/session-manager/session-formatter.d.ts +1 -1
  415. package/dist/tools/session-manager/storage.d.ts +2 -3
  416. package/dist/tools/session-manager/types.d.ts +0 -4
  417. package/dist/tools/skill/constants.d.ts +0 -1
  418. package/dist/tools/skill/index.d.ts +1 -1
  419. package/dist/tools/skill/types.d.ts +1 -4
  420. package/dist/tools/skill-mcp/constants.d.ts +0 -1
  421. package/dist/tools/skill-mcp/index.d.ts +1 -1
  422. package/dist/tools/skill-mcp/tools.d.ts +1 -1
  423. package/dist/tools/slashcommand/index.d.ts +1 -1
  424. package/dist/tools/slashcommand/types.d.ts +1 -1
  425. package/dist/tools/task/constants.d.ts +1 -0
  426. package/dist/tools/task/index.d.ts +1 -2
  427. package/dist/tools/task/types.d.ts +10 -10
  428. package/package.json +13 -9
  429. package/dist/agents/niobe.d.ts +0 -7
  430. package/dist/agents/zion.d.ts +0 -7
  431. package/dist/cli/config-manager/generate-omo-config.d.ts +0 -2
  432. package/dist/cli/config-manager/write-omo-config.d.ts +0 -2
  433. package/dist/config/schema/dynamic-context-pruning.d.ts +0 -28
  434. package/dist/config/schema/git-master.d.ts +0 -6
  435. package/dist/features/background-agent/background-event-handler.d.ts +0 -26
  436. package/dist/features/background-agent/background-manager-shutdown.d.ts +0 -25
  437. package/dist/features/background-agent/background-task-completer.d.ts +0 -3
  438. package/dist/features/background-agent/duration-formatter.d.ts +0 -1
  439. package/dist/features/background-agent/error-classifier.d.ts +0 -2
  440. package/dist/features/background-agent/format-duration.d.ts +0 -1
  441. package/dist/features/background-agent/message-dir.d.ts +0 -1
  442. package/dist/features/background-agent/notification-builder.d.ts +0 -8
  443. package/dist/features/background-agent/notification-tracker.d.ts +0 -6
  444. package/dist/features/background-agent/notify-parent-session.d.ts +0 -10
  445. package/dist/features/background-agent/parent-session-context-resolver.d.ts +0 -14
  446. package/dist/features/background-agent/parent-session-notifier.d.ts +0 -3
  447. package/dist/features/background-agent/poll-running-tasks.d.ts +0 -15
  448. package/dist/features/background-agent/process-signal.d.ts +0 -2
  449. package/dist/features/background-agent/result-handler-context.d.ts +0 -8
  450. package/dist/features/background-agent/result-handler.d.ts +0 -7
  451. package/dist/features/background-agent/session-idle-event-handler.d.ts +0 -10
  452. package/dist/features/background-agent/session-output-validator.d.ts +0 -2
  453. package/dist/features/background-agent/session-task-cleanup.d.ts +0 -10
  454. package/dist/features/background-agent/session-todo-checker.d.ts +0 -2
  455. package/dist/features/background-agent/session-validator.d.ts +0 -7
  456. package/dist/features/background-agent/spawner/background-session-creator.d.ts +0 -10
  457. package/dist/features/background-agent/spawner/concurrency-key-from-launch-input.d.ts +0 -2
  458. package/dist/features/background-agent/spawner/parent-directory-resolver.d.ts +0 -6
  459. package/dist/features/background-agent/spawner/spawner-context.d.ts +0 -11
  460. package/dist/features/background-agent/spawner/task-factory.d.ts +0 -2
  461. package/dist/features/background-agent/spawner/task-resumer.d.ts +0 -3
  462. package/dist/features/background-agent/spawner/task-starter.d.ts +0 -3
  463. package/dist/features/background-agent/spawner/tmux-callback-invoker.d.ts +0 -8
  464. package/dist/features/background-agent/spawner.d.ts +0 -14
  465. package/dist/features/background-agent/stale-task-pruner.d.ts +0 -15
  466. package/dist/features/background-agent/task-canceller.d.ts +0 -27
  467. package/dist/features/background-agent/task-completer.d.ts +0 -13
  468. package/dist/features/background-agent/task-launch.d.ts +0 -15
  469. package/dist/features/background-agent/task-queries.d.ts +0 -7
  470. package/dist/features/background-agent/task-queue-processor.d.ts +0 -14
  471. package/dist/features/background-agent/task-resumer.d.ts +0 -14
  472. package/dist/features/background-agent/task-starter.d.ts +0 -27
  473. package/dist/features/background-agent/task-tracker.d.ts +0 -18
  474. package/dist/features/builtin-skills/skills/academic-review.d.ts +0 -4
  475. package/dist/features/builtin-skills/skills/academic-writing.d.ts +0 -4
  476. package/dist/features/builtin-skills/skills/crypto-market-analysis.d.ts +0 -4
  477. package/dist/features/builtin-skills/skills/crypto-onchain.d.ts +0 -4
  478. package/dist/features/builtin-skills/skills/crypto-trading.d.ts +0 -4
  479. package/dist/features/builtin-skills/skills/data-management-plan.d.ts +0 -4
  480. package/dist/features/builtin-skills/skills/deliverable-writing.d.ts +0 -4
  481. package/dist/features/builtin-skills/skills/eu-horizon.d.ts +0 -4
  482. package/dist/features/builtin-skills/skills/git-master-skill-metadata.d.ts +0 -2
  483. package/dist/features/builtin-skills/skills/grant-writing.d.ts +0 -4
  484. package/dist/features/builtin-skills/skills/ip-exploitation.d.ts +0 -4
  485. package/dist/features/builtin-skills/skills/literature-review.d.ts +0 -4
  486. package/dist/features/builtin-skills/skills/project-management.d.ts +0 -4
  487. package/dist/features/builtin-skills/skills/research-methodology.d.ts +0 -4
  488. package/dist/features/builtin-skills/skills/scientific-presentation.d.ts +0 -4
  489. package/dist/features/builtin-skills/skills/technical-lead.d.ts +0 -4
  490. package/dist/features/mcp-oauth/resource-indicator.d.ts +0 -2
  491. package/dist/features/opencode-skill-loader/async-loader.d.ts +0 -6
  492. package/dist/features/opencode-skill-loader/blocking.d.ts +0 -2
  493. package/dist/features/opencode-skill-loader/git-master-template-injection.d.ts +0 -2
  494. package/dist/features/team-mode/index.d.ts +0 -2
  495. package/dist/features/team-mode/team-layout-tmux/index.d.ts +0 -1
  496. package/dist/features/team-mode/team-layout-tmux/layout.d.ts +0 -15
  497. package/dist/features/team-mode/team-worktree/cleanup.d.ts +0 -3
  498. package/dist/features/team-mode/team-worktree/index.d.ts +0 -2
  499. package/dist/features/team-mode/team-worktree/manager.d.ts +0 -15
  500. package/dist/features/team-mode/types.d.ts +0 -210
  501. package/dist/features/tmux-subagent/manager-cleanup.d.ts +0 -12
  502. package/dist/features/tmux-subagent/session-cleaner.d.ts +0 -23
  503. package/dist/features/tmux-subagent/session-message-count.d.ts +0 -1
  504. package/dist/features/tmux-subagent/session-spawner.d.ts +0 -34
  505. package/dist/hooks/anthropic-context-window-limit-recovery/deduplication-recovery.d.ts +0 -6
  506. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.d.ts +0 -10
  507. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-tool-output-truncation.d.ts +0 -6
  508. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-types.d.ts +0 -36
  509. package/dist/hooks/claude-code-hooks/claude-code-hooks-hook.d.ts +0 -48
  510. package/dist/hooks/claude-code-hooks/config-loader.d.ts +0 -13
  511. package/dist/hooks/claude-code-hooks/config.d.ts +0 -3
  512. package/dist/hooks/claude-code-hooks/handlers/chat-message-handler.d.ts +0 -19
  513. package/dist/hooks/claude-code-hooks/handlers/pre-compact-handler.d.ts +0 -7
  514. package/dist/hooks/claude-code-hooks/handlers/session-event-handler.d.ts +0 -8
  515. package/dist/hooks/claude-code-hooks/handlers/tool-execute-after-handler.d.ts +0 -11
  516. package/dist/hooks/claude-code-hooks/handlers/tool-execute-before-handler.d.ts +0 -9
  517. package/dist/hooks/claude-code-hooks/index.d.ts +0 -1
  518. package/dist/hooks/claude-code-hooks/plugin-config.d.ts +0 -8
  519. package/dist/hooks/claude-code-hooks/post-tool-use.d.ts +0 -40
  520. package/dist/hooks/claude-code-hooks/pre-compact.d.ts +0 -16
  521. package/dist/hooks/claude-code-hooks/pre-tool-use.d.ts +0 -25
  522. package/dist/hooks/claude-code-hooks/session-hook-state.d.ts +0 -9
  523. package/dist/hooks/claude-code-hooks/stop.d.ts +0 -20
  524. package/dist/hooks/claude-code-hooks/todo.d.ts +0 -12
  525. package/dist/hooks/claude-code-hooks/tool-input-cache.d.ts +0 -5
  526. package/dist/hooks/claude-code-hooks/transcript.d.ts +0 -29
  527. package/dist/hooks/claude-code-hooks/types.d.ts +0 -183
  528. package/dist/hooks/claude-code-hooks/user-prompt-submit.d.ts +0 -22
  529. package/dist/hooks/handoff-injector/constants.d.ts +0 -4
  530. package/dist/hooks/interactive-bash-session/interactive-bash-session-hook.d.ts +0 -23
  531. package/dist/hooks/interactive-bash-session/interactive-bash-session-tracker.d.ts +0 -21
  532. package/dist/hooks/interactive-bash-session/tmux-command-parser.d.ts +0 -4
  533. package/dist/hooks/keyword-detector/types.d.ts +0 -4
  534. package/dist/hooks/non-interactive-env/types.d.ts +0 -3
  535. package/dist/hooks/session-recovery/recover-empty-content-message.d.ts +0 -5
  536. package/dist/plugin-handlers/agent-key-remapper.d.ts +0 -1
  537. package/dist/shared/available-models-fetcher.d.ts +0 -4
  538. package/dist/shared/command-executor/execute-hook-command.d.ts +0 -10
  539. package/dist/shared/command-executor/home-directory.d.ts +0 -1
  540. package/dist/shared/command-executor/shell-path.d.ts +0 -2
  541. package/dist/shared/fallback-model-availability.d.ts +0 -5
  542. package/dist/shared/hook-disabled.d.ts +0 -2
  543. package/dist/shared/model-cache-availability.d.ts +0 -2
  544. package/dist/shared/model-name-matcher.d.ts +0 -1
  545. package/dist/shared/models-json-cache-reader.d.ts +0 -1
  546. package/dist/shared/open-code-client-accessors.d.ts +0 -3
  547. package/dist/shared/open-code-client-shapes.d.ts +0 -13
  548. package/dist/shared/pattern-matcher.d.ts +0 -3
  549. package/dist/shared/provider-models-cache-model-reader.d.ts +0 -1
  550. package/dist/shared/snake-case.d.ts +0 -5
  551. package/dist/shared/tmux/tmux-utils/spawn-process.d.ts +0 -1
  552. package/dist/shared/tool-name.d.ts +0 -1
  553. package/dist/tools/background-task/modules/background-cancel.d.ts +0 -4
  554. package/dist/tools/background-task/modules/background-output.d.ts +0 -3
  555. package/dist/tools/background-task/modules/background-task.d.ts +0 -3
  556. package/dist/tools/background-task/modules/formatters.d.ts +0 -11
  557. package/dist/tools/background-task/modules/message-processing.d.ts +0 -59
  558. package/dist/tools/background-task/modules/utils.d.ts +0 -16
  559. package/dist/tools/call-omo-agent/agent-type-normalizer.d.ts +0 -2
  560. package/dist/tools/call-omo-agent/background-agent-executor.d.ts +0 -5
  561. package/dist/tools/call-omo-agent/constants.d.ts +0 -2
  562. package/dist/tools/call-omo-agent/session-completion-poller.d.ts +0 -13
  563. package/dist/tools/call-omo-agent/session-message-output-extractor.d.ts +0 -17
  564. package/dist/tools/call-omo-agent/subagent-session-prompter.d.ts +0 -11
  565. package/dist/tools/call-omo-agent/sync-agent-executor.d.ts +0 -4
  566. package/dist/tools/delegate-task/skill-content-resolver.d.ts +0 -9
  567. package/dist/tools/hashline-edit/hashline-edit-diff.d.ts +0 -1
  568. package/dist/tools/look-at/session-poller.d.ts +0 -8
  569. /package/dist/features/{opencode-skill-loader/discover-worker.d.ts → background-agent/manager.bench.d.ts} +0 -0
  570. /package/dist/{tools/delegate-task/time-formatter.d.ts → shared/format-duration.d.ts} +0 -0
  571. /package/dist/tools/{call-omo-agent → delegate-agent}/completion-poller.d.ts +0 -0
  572. /package/dist/tools/{call-omo-agent → delegate-agent}/message-dir.d.ts +0 -0
  573. /package/dist/tools/{call-omo-agent → delegate-agent}/message-processor.d.ts +0 -0
  574. /package/dist/tools/{call-omo-agent → delegate-agent}/message-storage-directory.d.ts +0 -0
  575. /package/dist/tools/{call-omo-agent → delegate-agent}/tool-context-with-metadata.d.ts +0 -0
@@ -1,27 +0,0 @@
1
- import type { BackgroundTask } from "./types";
2
- import type { LaunchInput } from "./types";
3
- import type { ConcurrencyManager } from "./concurrency";
4
- import type { OpencodeClient } from "./opencode-client";
5
- type QueueItem = {
6
- task: BackgroundTask;
7
- input: LaunchInput;
8
- };
9
- export declare function startQueuedTask(args: {
10
- item: QueueItem;
11
- client: OpencodeClient;
12
- defaultDirectory: string;
13
- tmuxEnabled: boolean;
14
- onSubagentSessionCreated?: (event: {
15
- sessionID: string;
16
- parentID: string;
17
- title: string;
18
- }) => Promise<void>;
19
- startPolling: () => void;
20
- getConcurrencyKeyFromInput: (input: LaunchInput) => string;
21
- concurrencyManager: ConcurrencyManager;
22
- findBySession: (sessionID: string) => BackgroundTask | undefined;
23
- markForNotification: (task: BackgroundTask) => void;
24
- cleanupPendingByParent: (task: BackgroundTask) => void;
25
- notifyParentSession: (task: BackgroundTask) => Promise<void>;
26
- }): Promise<void>;
27
- export {};
@@ -1,18 +0,0 @@
1
- import type { BackgroundTask } from "./types";
2
- import type { ConcurrencyManager } from "./concurrency";
3
- export declare function trackExternalTask(args: {
4
- input: {
5
- taskId: string;
6
- sessionID: string;
7
- parentSessionID: string;
8
- description: string;
9
- agent?: string;
10
- parentAgent?: string;
11
- concurrencyKey?: string;
12
- };
13
- tasks: Map<string, BackgroundTask>;
14
- pendingByParent: Map<string, Set<string>>;
15
- concurrencyManager: ConcurrencyManager;
16
- startPolling: () => void;
17
- cleanupPendingByParent: (task: BackgroundTask) => void;
18
- }): Promise<BackgroundTask>;
@@ -1,4 +0,0 @@
1
- import type { BuiltinSkill } from "../types";
2
- export declare const ACADEMIC_REVIEW_SKILL_NAME = "academic-review";
3
- export declare const ACADEMIC_REVIEW_SKILL_DESCRIPTION = "Academic paper review expertise: IMRaD analysis, review criteria, common weakness detection, structured review output, major vs minor revisions, conference vs journal conventions, and constructive feedback guidelines. Triggers: 'paper review', 'manuscript', 'peer review', 'academic review', 'journal submission'.";
4
- export declare const academicReviewSkill: BuiltinSkill;
@@ -1,4 +0,0 @@
1
- import type { BuiltinSkill } from "../types";
2
- export declare const ACADEMIC_WRITING_SKILL_NAME = "academic-writing";
3
- export declare const ACADEMIC_WRITING_SKILL_DESCRIPTION = "Academic paper writing for journals and conferences: IMRaD structure, abstract crafting, argumentation flow, citation practices, venue-specific formatting (IEEE/ACM/Springer/Elsevier), camera-ready preparation, cover letters, rebuttals. Triggers: 'write paper', 'journal article', 'conference paper', 'abstract', 'rebuttal', 'camera-ready'.";
4
- export declare const academicWritingSkill: BuiltinSkill;
@@ -1,4 +0,0 @@
1
- import type { BuiltinSkill } from "../types";
2
- export declare const CRYPTO_MARKET_ANALYSIS_SKILL_NAME = "crypto-market-analysis";
3
- export declare const CRYPTO_MARKET_ANALYSIS_SKILL_DESCRIPTION = "Professional crypto market analysis: technical analysis (RSI, MACD, Bollinger Bands, volume, Fibonacci), chart patterns, market structure (S/R, order blocks, FVG), candlestick patterns, multi-timeframe analysis. Triggers: 'technical analysis', 'TA', 'chart', 'indicators', 'price action', 'market structure', 'support resistance'.";
4
- export declare const cryptoMarketAnalysisSkill: BuiltinSkill;
@@ -1,4 +0,0 @@
1
- import type { BuiltinSkill } from "../types";
2
- export declare const CRYPTO_ONCHAIN_SKILL_NAME = "crypto-onchain";
3
- export declare const CRYPTO_ONCHAIN_SKILL_DESCRIPTION = "Crypto on-chain analysis and DeFi expertise: MVRV, NVT, SOPR, exchange flows, whale tracking, network health metrics, tokenomics analysis, DeFi protocol assessment (TVL, yield, impermanent loss, protocol risk), and blockchain fundamentals. Triggers: 'on-chain', 'onchain', 'blockchain metrics', 'DeFi', 'TVL', 'tokenomics', 'whale', 'exchange inflow', 'MVRV', 'NVT'.";
4
- export declare const cryptoOnchainSkill: BuiltinSkill;
@@ -1,4 +0,0 @@
1
- import type { BuiltinSkill } from "../types";
2
- export declare const CRYPTO_TRADING_SKILL_NAME = "crypto-trading";
3
- export declare const CRYPTO_TRADING_SKILL_DESCRIPTION = "Professional crypto trading strategies and risk management: trend following, mean reversion, breakout, swing/scalping, position sizing, stop-loss placement, portfolio allocation, futures/perpetuals (funding rates, basis), options strategies. Triggers: 'trading strategy', 'position sizing', 'risk management', 'futures', 'perpetuals', 'stop loss', 'take profit', 'entry exit'.";
4
- export declare const cryptoTradingSkill: BuiltinSkill;
@@ -1,4 +0,0 @@
1
- import type { BuiltinSkill } from "../types";
2
- export declare const DATA_MANAGEMENT_PLAN_SKILL_NAME = "data-management-plan";
3
- export declare const DATA_MANAGEMENT_PLAN_SKILL_DESCRIPTION = "Data management planning: FAIR principles, DMP templates (Horizon Europe, NSF, UKRI), data governance, open data repositories, metadata standards, data lifecycle management, GDPR compliance for research data. Triggers: 'DMP', 'data management plan', 'FAIR data', 'open data', 'data governance', 'metadata', 'data repository'.";
4
- export declare const dataManagementPlanSkill: BuiltinSkill;
@@ -1,4 +0,0 @@
1
- import type { BuiltinSkill } from "../types";
2
- export declare const DELIVERABLE_WRITING_SKILL_NAME = "deliverable-writing";
3
- export declare const DELIVERABLE_WRITING_SKILL_DESCRIPTION = "EU project deliverable writing expertise: deliverable types (R/DEM/DEC/DATA/DMP/ETHICS), dissemination levels, document structure, reporting periods, KPI tracking, risk registers, D&E plans, periodic vs final reports, and amendment procedures. Triggers: 'deliverable', 'EU report', 'periodic report', 'DMP', 'dissemination plan', 'work package report'.";
4
- export declare const deliverableWritingSkill: BuiltinSkill;
@@ -1,4 +0,0 @@
1
- import type { BuiltinSkill } from "../types";
2
- export declare const EU_HORIZON_SKILL_NAME = "eu-horizon";
3
- export declare const EU_HORIZON_SKILL_DESCRIPTION = "Horizon Europe proposal expertise: programme structure, funding instruments (RIA/IA/CSA/ERC/MSCA), evaluation criteria, Part B structure, budget rules, consortium requirements, WP conventions, TRL levels, ethics, and Open Science. Triggers: 'Horizon Europe', 'EU proposal', 'ERC', 'MSCA', 'RIA', 'work programme'.";
4
- export declare const euHorizonSkill: BuiltinSkill;
@@ -1,2 +0,0 @@
1
- export declare const GIT_MASTER_SKILL_NAME = "git-master";
2
- export declare const GIT_MASTER_SKILL_DESCRIPTION = "MUST USE for ANY git operations. Atomic commits, rebase/squash, history search (blame, bisect, log -S). STRONGLY RECOMMENDED: Use with task(category='quick', load_skills=['git-master'], ...) to save context. Triggers: 'commit', 'rebase', 'squash', 'who wrote', 'when was X added', 'find the commit that'.";
@@ -1,4 +0,0 @@
1
- import type { BuiltinSkill } from "../types";
2
- export declare const GRANT_WRITING_SKILL_NAME = "grant-writing";
3
- export declare const GRANT_WRITING_SKILL_DESCRIPTION = "General grant and funding proposal writing beyond EU: NSF, NIH, ERC individual grants, national agencies, industry calls. Budget narratives, biosketches, broader impacts, evaluation criteria alignment, panel review processes. Triggers: 'grant proposal', 'NSF', 'NIH', 'funding application', 'research grant', 'budget narrative', 'broader impacts'.";
4
- export declare const grantWritingSkill: BuiltinSkill;
@@ -1,4 +0,0 @@
1
- import type { BuiltinSkill } from "../types";
2
- export declare const IP_EXPLOITATION_SKILL_NAME = "ip-exploitation";
3
- export declare const IP_EXPLOITATION_SKILL_DESCRIPTION = "Intellectual property and exploitation strategy: patent landscaping, licensing models, TRL advancement plans, commercialization roadmaps, spin-off creation, technology transfer, IP management in consortia, exploitation plans for funded projects. Triggers: 'IP', 'patent', 'licensing', 'TRL', 'commercialization', 'spin-off', 'technology transfer', 'exploitation plan'.";
4
- export declare const ipExploitationSkill: BuiltinSkill;
@@ -1,4 +0,0 @@
1
- import type { BuiltinSkill } from "../types";
2
- export declare const LITERATURE_REVIEW_SKILL_NAME = "literature-review";
3
- export declare const LITERATURE_REVIEW_SKILL_DESCRIPTION = "Systematic literature review methodology: PRISMA guidelines, search strategy design, bibliometric analysis, gap identification, synthesis writing, scoping reviews, meta-analysis frameworks, reference management. Triggers: 'literature review', 'systematic review', 'PRISMA', 'bibliometric', 'state of the art', 'survey paper', 'meta-analysis'.";
4
- export declare const literatureReviewSkill: BuiltinSkill;
@@ -1,4 +0,0 @@
1
- import type { BuiltinSkill } from "../types";
2
- export declare const PROJECT_MANAGEMENT_SKILL_NAME = "project-management";
3
- export declare const PROJECT_MANAGEMENT_SKILL_DESCRIPTION = "Project management expertise: Agile/Scrum/Kanban, Waterfall, risk management, stakeholder engagement, resource planning, WBS, Gantt charts, earned value management, team coordination, status reporting. Triggers: 'project plan', 'sprint', 'stakeholder', 'risk register', 'Gantt', 'WBS', 'resource allocation'.";
4
- export declare const projectManagementSkill: BuiltinSkill;
@@ -1,4 +0,0 @@
1
- import type { BuiltinSkill } from "../types";
2
- export declare const RESEARCH_METHODOLOGY_SKILL_NAME = "research-methodology";
3
- export declare const RESEARCH_METHODOLOGY_SKILL_DESCRIPTION = "Research design and methodology: quantitative/qualitative/mixed methods, hypothesis formulation, experimental design, statistical analysis, sampling strategies, validity/reliability, survey design, ethical considerations. Triggers: 'research design', 'methodology', 'hypothesis', 'statistical analysis', 'experiment design', 'sampling', 'survey'.";
4
- export declare const researchMethodologySkill: BuiltinSkill;
@@ -1,4 +0,0 @@
1
- import type { BuiltinSkill } from "../types";
2
- export declare const SCIENTIFIC_PRESENTATION_SKILL_NAME = "scientific-presentation";
3
- export declare const SCIENTIFIC_PRESENTATION_SKILL_DESCRIPTION = "Scientific presentation design: conference talks, poster sessions, pitch decks for reviewers/investors, keynote structure, visual storytelling for technical audiences, demo preparation, slide design principles. Triggers: 'presentation', 'conference talk', 'poster', 'pitch deck', 'keynote', 'slides', 'demo'.";
4
- export declare const scientificPresentationSkill: BuiltinSkill;
@@ -1,4 +0,0 @@
1
- import type { BuiltinSkill } from "../types";
2
- export declare const TECHNICAL_LEAD_SKILL_NAME = "technical-lead";
3
- export declare const TECHNICAL_LEAD_SKILL_DESCRIPTION = "Technical leadership expertise: architecture decision records (ADRs), code review strategy, tech debt management, system design, team mentoring, technical roadmaps, incident management, build/release engineering. Triggers: 'tech lead', 'architecture decision', 'ADR', 'tech debt', 'code review', 'system design', 'technical roadmap'.";
4
- export declare const technicalLeadSkill: BuiltinSkill;
@@ -1,2 +0,0 @@
1
- export declare function getResourceIndicator(url: string): string;
2
- export declare function addResourceToParams(params: URLSearchParams, resource: string): void;
@@ -1,6 +0,0 @@
1
- import type { SkillScope, LoadedSkill } from "./types";
2
- import type { SkillMcpConfig } from "../skill-mcp-manager/types";
3
- export declare function mapWithConcurrency<T, R>(items: T[], mapper: (item: T) => Promise<R>, concurrency: number): Promise<R[]>;
4
- export declare function loadMcpJsonFromDirAsync(skillDir: string): Promise<SkillMcpConfig | undefined>;
5
- export declare function loadSkillFromPathAsync(skillPath: string, resolvedPath: string, defaultName: string, scope: SkillScope): Promise<LoadedSkill | null>;
6
- export declare function discoverSkillsInDirAsync(skillsDir: string): Promise<LoadedSkill[]>;
@@ -1,2 +0,0 @@
1
- import type { LoadedSkill, SkillScope } from "./types";
2
- export declare function discoverAllSkillsBlocking(dirs: string[], scopes: SkillScope[]): LoadedSkill[];
@@ -1,2 +0,0 @@
1
- import type { GitMasterConfig } from "../../config/schema";
2
- export declare function injectGitMasterConfig(template: string, config?: GitMasterConfig): string;
@@ -1,2 +0,0 @@
1
- export * from "./types";
2
- export * from "./team-worktree";
@@ -1 +0,0 @@
1
- export { canVisualize, createTeamLayout, removeTeamLayout } from "./layout";
@@ -1,15 +0,0 @@
1
- import type { TmuxSessionManager } from "../../tmux-subagent/manager";
2
- type TeamLayoutMember = {
3
- name: string;
4
- sessionId: string;
5
- color?: string;
6
- };
7
- type TeamLayoutResult = {
8
- focusWindowId: string;
9
- gridWindowId: string;
10
- panesByMember: Record<string, string>;
11
- };
12
- export declare function canVisualize(): boolean;
13
- export declare function createTeamLayout(teamRunId: string, members: Array<TeamLayoutMember>, tmuxMgr: TmuxSessionManager): Promise<TeamLayoutResult | null>;
14
- export declare function removeTeamLayout(teamRunId: string, tmuxMgr: TmuxSessionManager): Promise<void>;
15
- export {};
@@ -1,3 +0,0 @@
1
- import type { TeamModeConfig } from "./manager";
2
- export declare function removeWorktree(worktreePath: string): Promise<void>;
3
- export declare function findOrphanWorktrees(baseDir: string, _config: TeamModeConfig): Promise<string[]>;
@@ -1,2 +0,0 @@
1
- export { GitUnavailableError, createWorktree, isGitAvailable, validateWorktreeSpec } from "./manager";
2
- export { findOrphanWorktrees, removeWorktree } from "./cleanup";
@@ -1,15 +0,0 @@
1
- export type TeamModeConfig = {
2
- worktreeBaseDir?: string;
3
- };
4
- export declare class GitUnavailableError extends Error {
5
- constructor();
6
- }
7
- declare function runGit(args: string[], cwd?: string): Promise<{
8
- code: number;
9
- stderr: string;
10
- }>;
11
- export declare function setGitCommandRunnerForTests(runner: typeof runGit): void;
12
- export declare function isGitAvailable(): Promise<boolean>;
13
- export declare function validateWorktreeSpec(spec: string): void;
14
- export declare function createWorktree(repoRoot: string, _teamRunId: string, _memberName: string, worktreePath: string, _config: TeamModeConfig): Promise<string>;
15
- export {};
@@ -1,210 +0,0 @@
1
- import { z } from "zod";
2
- export declare const MESSAGE_KINDS: readonly ["message", "shutdown_request", "shutdown_approved", "shutdown_rejected", "announcement"];
3
- export declare const MEMBER_KINDS: readonly ["category", "subagent_type"];
4
- export declare const TASK_STATUSES: readonly ["pending", "claimed", "in_progress", "completed", "deleted"];
5
- export declare const RUNTIME_STATUSES: readonly ["creating", "active", "shutdown_requested", "deleting", "deleted", "failed", "orphaned"];
6
- export declare const CategoryMemberSchema: z.ZodObject<{
7
- name: z.ZodString;
8
- cwd: z.ZodOptional<z.ZodString>;
9
- worktreePath: z.ZodOptional<z.ZodString>;
10
- subscriptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
- backendType: z.ZodDefault<z.ZodEnum<{
12
- tmux: "tmux";
13
- "in-process": "in-process";
14
- }>>;
15
- color: z.ZodOptional<z.ZodString>;
16
- isActive: z.ZodDefault<z.ZodBoolean>;
17
- kind: z.ZodLiteral<"category">;
18
- category: z.ZodString;
19
- prompt: z.ZodString;
20
- }, z.core.$strict>;
21
- export declare const SubagentMemberSchema: z.ZodObject<{
22
- name: z.ZodString;
23
- cwd: z.ZodOptional<z.ZodString>;
24
- worktreePath: z.ZodOptional<z.ZodString>;
25
- subscriptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
26
- backendType: z.ZodDefault<z.ZodEnum<{
27
- tmux: "tmux";
28
- "in-process": "in-process";
29
- }>>;
30
- color: z.ZodOptional<z.ZodString>;
31
- isActive: z.ZodDefault<z.ZodBoolean>;
32
- kind: z.ZodLiteral<"subagent_type">;
33
- subagent_type: z.ZodString;
34
- prompt: z.ZodOptional<z.ZodString>;
35
- }, z.core.$strict>;
36
- export declare const MemberSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
37
- name: z.ZodString;
38
- cwd: z.ZodOptional<z.ZodString>;
39
- worktreePath: z.ZodOptional<z.ZodString>;
40
- subscriptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
41
- backendType: z.ZodDefault<z.ZodEnum<{
42
- tmux: "tmux";
43
- "in-process": "in-process";
44
- }>>;
45
- color: z.ZodOptional<z.ZodString>;
46
- isActive: z.ZodDefault<z.ZodBoolean>;
47
- kind: z.ZodLiteral<"category">;
48
- category: z.ZodString;
49
- prompt: z.ZodString;
50
- }, z.core.$strict>, z.ZodObject<{
51
- name: z.ZodString;
52
- cwd: z.ZodOptional<z.ZodString>;
53
- worktreePath: z.ZodOptional<z.ZodString>;
54
- subscriptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
55
- backendType: z.ZodDefault<z.ZodEnum<{
56
- tmux: "tmux";
57
- "in-process": "in-process";
58
- }>>;
59
- color: z.ZodOptional<z.ZodString>;
60
- isActive: z.ZodDefault<z.ZodBoolean>;
61
- kind: z.ZodLiteral<"subagent_type">;
62
- subagent_type: z.ZodString;
63
- prompt: z.ZodOptional<z.ZodString>;
64
- }, z.core.$strict>], "kind">;
65
- export declare const TeamSpecSchema: z.ZodObject<{
66
- version: z.ZodLiteral<1>;
67
- name: z.ZodString;
68
- description: z.ZodOptional<z.ZodString>;
69
- createdAt: z.ZodNumber;
70
- leadAgentId: z.ZodString;
71
- teamAllowedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
72
- sessionPermission: z.ZodOptional<z.ZodString>;
73
- members: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
74
- name: z.ZodString;
75
- cwd: z.ZodOptional<z.ZodString>;
76
- worktreePath: z.ZodOptional<z.ZodString>;
77
- subscriptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
78
- backendType: z.ZodDefault<z.ZodEnum<{
79
- tmux: "tmux";
80
- "in-process": "in-process";
81
- }>>;
82
- color: z.ZodOptional<z.ZodString>;
83
- isActive: z.ZodDefault<z.ZodBoolean>;
84
- kind: z.ZodLiteral<"category">;
85
- category: z.ZodString;
86
- prompt: z.ZodString;
87
- }, z.core.$strict>, z.ZodObject<{
88
- name: z.ZodString;
89
- cwd: z.ZodOptional<z.ZodString>;
90
- worktreePath: z.ZodOptional<z.ZodString>;
91
- subscriptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
92
- backendType: z.ZodDefault<z.ZodEnum<{
93
- tmux: "tmux";
94
- "in-process": "in-process";
95
- }>>;
96
- color: z.ZodOptional<z.ZodString>;
97
- isActive: z.ZodDefault<z.ZodBoolean>;
98
- kind: z.ZodLiteral<"subagent_type">;
99
- subagent_type: z.ZodString;
100
- prompt: z.ZodOptional<z.ZodString>;
101
- }, z.core.$strict>], "kind">>;
102
- }, z.core.$strip>;
103
- export declare const MessageSchema: z.ZodObject<{
104
- version: z.ZodLiteral<1>;
105
- messageId: z.ZodString;
106
- from: z.ZodString;
107
- to: z.ZodString;
108
- kind: z.ZodEnum<{
109
- message: "message";
110
- shutdown_request: "shutdown_request";
111
- shutdown_approved: "shutdown_approved";
112
- shutdown_rejected: "shutdown_rejected";
113
- announcement: "announcement";
114
- }>;
115
- body: z.ZodString;
116
- summary: z.ZodOptional<z.ZodString>;
117
- references: z.ZodOptional<z.ZodArray<z.ZodObject<{
118
- path: z.ZodString;
119
- description: z.ZodOptional<z.ZodString>;
120
- }, z.core.$strict>>>;
121
- timestamp: z.ZodNumber;
122
- correlationId: z.ZodOptional<z.ZodString>;
123
- color: z.ZodOptional<z.ZodString>;
124
- }, z.core.$strip>;
125
- export declare const TaskSchema: z.ZodObject<{
126
- version: z.ZodLiteral<1>;
127
- id: z.ZodString;
128
- subject: z.ZodString;
129
- description: z.ZodString;
130
- activeForm: z.ZodOptional<z.ZodString>;
131
- status: z.ZodEnum<{
132
- pending: "pending";
133
- in_progress: "in_progress";
134
- completed: "completed";
135
- deleted: "deleted";
136
- claimed: "claimed";
137
- }>;
138
- owner: z.ZodOptional<z.ZodString>;
139
- blocks: z.ZodDefault<z.ZodArray<z.ZodString>>;
140
- blockedBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
141
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
142
- createdAt: z.ZodNumber;
143
- updatedAt: z.ZodNumber;
144
- claimedAt: z.ZodOptional<z.ZodNumber>;
145
- }, z.core.$strip>;
146
- export declare const RuntimeStateSchema: z.ZodObject<{
147
- version: z.ZodLiteral<1>;
148
- teamRunId: z.ZodString;
149
- teamName: z.ZodString;
150
- specSource: z.ZodEnum<{
151
- user: "user";
152
- project: "project";
153
- }>;
154
- createdAt: z.ZodNumber;
155
- status: z.ZodEnum<{
156
- deleted: "deleted";
157
- active: "active";
158
- failed: "failed";
159
- creating: "creating";
160
- shutdown_requested: "shutdown_requested";
161
- deleting: "deleting";
162
- orphaned: "orphaned";
163
- }>;
164
- leadSessionId: z.ZodOptional<z.ZodString>;
165
- members: z.ZodArray<z.ZodObject<{
166
- name: z.ZodString;
167
- sessionId: z.ZodOptional<z.ZodString>;
168
- tmuxPaneId: z.ZodOptional<z.ZodString>;
169
- agentType: z.ZodEnum<{
170
- leader: "leader";
171
- "general-purpose": "general-purpose";
172
- }>;
173
- status: z.ZodEnum<{
174
- pending: "pending";
175
- completed: "completed";
176
- running: "running";
177
- idle: "idle";
178
- shutdown_approved: "shutdown_approved";
179
- errored: "errored";
180
- }>;
181
- color: z.ZodOptional<z.ZodString>;
182
- worktreePath: z.ZodOptional<z.ZodString>;
183
- lastInjectedTurnMarker: z.ZodOptional<z.ZodString>;
184
- pendingInjectedMessageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
185
- }, z.core.$strict>>;
186
- shutdownRequests: z.ZodDefault<z.ZodArray<z.ZodObject<{
187
- memberId: z.ZodString;
188
- requestedAt: z.ZodNumber;
189
- approvedAt: z.ZodOptional<z.ZodNumber>;
190
- rejectedReason: z.ZodOptional<z.ZodString>;
191
- }, z.core.$strict>>>;
192
- bounds: z.ZodObject<{
193
- maxMembers: z.ZodDefault<z.ZodNumber>;
194
- maxParallelMembers: z.ZodDefault<z.ZodNumber>;
195
- maxMessagesPerRun: z.ZodDefault<z.ZodNumber>;
196
- maxWallClockMinutes: z.ZodDefault<z.ZodNumber>;
197
- maxMemberTurns: z.ZodDefault<z.ZodNumber>;
198
- }, z.core.$strict>;
199
- }, z.core.$strip>;
200
- export declare const AGENT_ELIGIBILITY_REGISTRY: Readonly<Record<string, {
201
- verdict: "eligible" | "conditional" | "hard-reject";
202
- rejectionMessage?: string;
203
- }>>;
204
- export type TeamSpec = z.infer<typeof TeamSpecSchema>;
205
- export type Member = z.infer<typeof MemberSchema>;
206
- export type CategoryMember = z.infer<typeof CategoryMemberSchema>;
207
- export type SubagentMember = z.infer<typeof SubagentMemberSchema>;
208
- export type Message = z.infer<typeof MessageSchema>;
209
- export type Task = z.infer<typeof TaskSchema>;
210
- export type RuntimeState = z.infer<typeof RuntimeStateSchema>;
@@ -1,12 +0,0 @@
1
- import type { TmuxConfig } from "../../config/schema";
2
- import type { TrackedSession } from "./types";
3
- import { TmuxPollingManager } from "./polling-manager";
4
- export declare class ManagerCleanup {
5
- private sessions;
6
- private sourcePaneId;
7
- private pollingManager;
8
- private tmuxConfig;
9
- private serverUrl;
10
- constructor(sessions: Map<string, TrackedSession>, sourcePaneId: string | undefined, pollingManager: TmuxPollingManager, tmuxConfig: TmuxConfig, serverUrl: string);
11
- cleanup(): Promise<void>;
12
- }
@@ -1,23 +0,0 @@
1
- import type { TmuxConfig } from "../../config/schema";
2
- import type { TrackedSession } from "./types";
3
- import type { SessionMapping } from "./decision-engine";
4
- import { TmuxPollingManager } from "./polling-manager";
5
- export interface TmuxUtilDeps {
6
- isInsideTmux: () => boolean;
7
- getCurrentPaneId: () => string | undefined;
8
- }
9
- export declare class SessionCleaner {
10
- private tmuxConfig;
11
- private deps;
12
- private sessions;
13
- private sourcePaneId;
14
- private getSessionMappings;
15
- private pollingManager;
16
- private serverUrl;
17
- constructor(tmuxConfig: TmuxConfig, deps: TmuxUtilDeps, sessions: Map<string, TrackedSession>, sourcePaneId: string | undefined, getSessionMappings: () => SessionMapping[], pollingManager: TmuxPollingManager, serverUrl: string);
18
- private isEnabled;
19
- onSessionDeleted(event: {
20
- sessionID: string;
21
- }): Promise<void>;
22
- closeSessionById(sessionId: string): Promise<void>;
23
- }
@@ -1 +0,0 @@
1
- export declare function getMessageCount(data: unknown): number;
@@ -1,34 +0,0 @@
1
- import type { TmuxConfig } from "../../config/schema";
2
- import type { TrackedSession, CapacityConfig } from "./types";
3
- import { type SessionMapping } from "./decision-engine";
4
- import { TmuxPollingManager } from "./polling-manager";
5
- interface SessionCreatedEvent {
6
- type: string;
7
- properties?: {
8
- info?: {
9
- id?: string;
10
- parentID?: string;
11
- title?: string;
12
- };
13
- };
14
- }
15
- export interface TmuxUtilDeps {
16
- isInsideTmux: () => boolean;
17
- getCurrentPaneId: () => string | undefined;
18
- }
19
- export declare class SessionSpawner {
20
- private tmuxConfig;
21
- private deps;
22
- private sessions;
23
- private pendingSessions;
24
- private sourcePaneId;
25
- private getCapacityConfig;
26
- private getSessionMappings;
27
- private waitForSessionReady;
28
- private pollingManager;
29
- private serverUrl;
30
- constructor(tmuxConfig: TmuxConfig, deps: TmuxUtilDeps, sessions: Map<string, TrackedSession>, pendingSessions: Set<string>, sourcePaneId: string | undefined, getCapacityConfig: () => CapacityConfig, getSessionMappings: () => SessionMapping[], waitForSessionReady: (sessionId: string) => Promise<boolean>, pollingManager: TmuxPollingManager, serverUrl: string);
31
- private isEnabled;
32
- onSessionCreated(event: SessionCreatedEvent): Promise<void>;
33
- }
34
- export {};
@@ -1,6 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- import type { ParsedTokenLimitError } from "./types";
3
- import type { ExperimentalConfig } from "../../config";
4
- type OpencodeClient = PluginInput["client"];
5
- export declare function attemptDeduplicationRecovery(sessionID: string, parsed: ParsedTokenLimitError, experimental: ExperimentalConfig | undefined, client?: OpencodeClient): Promise<void>;
6
- export {};
@@ -1,10 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- import type { PruningState } from "./pruning-types";
3
- type OpencodeClient = PluginInput["client"];
4
- export interface DeduplicationConfig {
5
- enabled: boolean;
6
- protectedTools?: string[];
7
- }
8
- export declare function createToolSignature(toolName: string, input: unknown): string;
9
- export declare function executeDeduplication(sessionID: string, state: PruningState, config: DeduplicationConfig, protectedTools: Set<string>, client?: OpencodeClient): Promise<number>;
10
- export {};
@@ -1,6 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- type OpencodeClient = PluginInput["client"];
3
- export declare function truncateToolOutputsByCallId(sessionID: string, callIds: Set<string>, client?: OpencodeClient): Promise<{
4
- truncatedCount: number;
5
- }>;
6
- export {};
@@ -1,36 +0,0 @@
1
- export interface ToolCallSignature {
2
- toolName: string;
3
- signature: string;
4
- callID: string;
5
- turn: number;
6
- }
7
- export interface FileOperation {
8
- callID: string;
9
- tool: string;
10
- filePath: string;
11
- turn: number;
12
- }
13
- export interface ErroredToolCall {
14
- callID: string;
15
- toolName: string;
16
- turn: number;
17
- errorAge: number;
18
- }
19
- export interface PruningResult {
20
- itemsPruned: number;
21
- totalTokensSaved: number;
22
- strategies: {
23
- deduplication: number;
24
- supersedeWrites: number;
25
- purgeErrors: number;
26
- };
27
- }
28
- export interface PruningState {
29
- toolIdsToPrune: Set<string>;
30
- currentTurn: number;
31
- fileOperations: Map<string, FileOperation[]>;
32
- toolSignatures: Map<string, ToolCallSignature[]>;
33
- erroredTools: Map<string, ErroredToolCall>;
34
- }
35
- export declare const CHARS_PER_TOKEN = 4;
36
- export declare function estimateTokens(text: string): number;
@@ -1,48 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- import type { PluginConfig } from "./types";
3
- import type { ContextCollector } from "../../features/context-injector";
4
- export declare function createClaudeCodeHooksHook(ctx: PluginInput, config?: PluginConfig, contextCollector?: ContextCollector): {
5
- "experimental.session.compacting": (input: {
6
- sessionID: string;
7
- }, output: {
8
- context: string[];
9
- }) => Promise<void>;
10
- "chat.message": (input: {
11
- sessionID: string;
12
- agent?: string;
13
- model?: {
14
- providerID: string;
15
- modelID: string;
16
- };
17
- messageID?: string;
18
- }, output: {
19
- message: Record<string, unknown>;
20
- parts: Array<{
21
- type: string;
22
- text?: string;
23
- [key: string]: unknown;
24
- }>;
25
- }) => Promise<void>;
26
- "tool.execute.before": (input: {
27
- tool: string;
28
- sessionID: string;
29
- callID: string;
30
- }, output: {
31
- args: Record<string, unknown>;
32
- }) => Promise<void>;
33
- "tool.execute.after": (input: {
34
- tool: string;
35
- sessionID: string;
36
- callID: string;
37
- }, output: {
38
- title: string;
39
- output: string;
40
- metadata: unknown;
41
- } | undefined) => Promise<void>;
42
- event: (input: {
43
- event: {
44
- type: string;
45
- properties?: unknown;
46
- };
47
- }) => Promise<void>;
48
- };
@@ -1,13 +0,0 @@
1
- import type { ClaudeHookEvent } from "./types";
2
- export interface DisabledHooksConfig {
3
- Stop?: string[];
4
- PreToolUse?: string[];
5
- PostToolUse?: string[];
6
- UserPromptSubmit?: string[];
7
- PreCompact?: string[];
8
- }
9
- export interface PluginExtendedConfig {
10
- disabledHooks?: DisabledHooksConfig;
11
- }
12
- export declare function loadPluginExtendedConfig(): Promise<PluginExtendedConfig>;
13
- export declare function isHookCommandDisabled(eventType: ClaudeHookEvent, command: string, config: PluginExtendedConfig | null): boolean;