@kl-c/matrixos 0.1.26 → 0.1.31

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 (397) hide show
  1. package/dist/agents/builtin-agents/model-resolution.d.ts +1 -1
  2. package/dist/agents/types.d.ts +1 -1
  3. package/dist/cli/generate.d.ts +2 -2
  4. package/dist/cli/index.js +206 -49
  5. package/dist/cli/install-ast-grep-sg.d.ts +1 -1
  6. package/dist/cli/mcp-oauth/login.d.ts +1 -1
  7. package/dist/cli/migrate.d.ts +15 -0
  8. package/dist/cli/profile.d.ts +23 -0
  9. package/dist/cli/provider-model-id-transform.d.ts +1 -1
  10. package/dist/cli/skills/frontend/ATTRIBUTION.md +1 -1
  11. package/dist/cli/skills/ultimate-browsing/ATTRIBUTION.md +1 -1
  12. package/dist/cli/skills/ulw-research/ATTRIBUTION.md +1 -1
  13. package/dist/cli-node/index.js +206 -49
  14. package/dist/config/schema/gateway.d.ts +1 -1
  15. package/dist/config/schema/git-env-prefix.d.ts +1 -1
  16. package/dist/config/schema/team-mode.d.ts +1 -1
  17. package/dist/config/schema/tmux.d.ts +1 -1
  18. package/dist/features/background-agent/error-classifier.d.ts +1 -1
  19. package/dist/features/boulder-state/constants.d.ts +1 -1
  20. package/dist/features/boulder-state/format-duration.d.ts +1 -1
  21. package/dist/features/boulder-state/storage.d.ts +1 -1
  22. package/dist/features/boulder-state/top-level-task.d.ts +1 -1
  23. package/dist/features/boulder-state/types.d.ts +1 -1
  24. package/dist/features/builtin-skills/index.d.ts +1 -1
  25. package/dist/features/builtin-skills/skill-file-loader.d.ts +1 -1
  26. package/dist/features/builtin-skills/skills/agent-browser-skill.d.ts +1 -1
  27. package/dist/features/builtin-skills/skills/agent-browser-template.d.ts +1 -1
  28. package/dist/features/builtin-skills/skills/debugging.d.ts +1 -1
  29. package/dist/features/builtin-skills/skills/dev-browser.d.ts +1 -1
  30. package/dist/features/builtin-skills/skills/frontend.d.ts +1 -1
  31. package/dist/features/builtin-skills/skills/git-master-sections/commit-atomic-planning.d.ts +1 -1
  32. package/dist/features/builtin-skills/skills/git-master-sections/commit-context-analysis.d.ts +1 -1
  33. package/dist/features/builtin-skills/skills/git-master-sections/commit-execution-verification.d.ts +1 -1
  34. package/dist/features/builtin-skills/skills/git-master-sections/commit-workflow.d.ts +1 -1
  35. package/dist/features/builtin-skills/skills/git-master-sections/history-search-workflow.d.ts +1 -1
  36. package/dist/features/builtin-skills/skills/git-master-sections/overview.d.ts +1 -1
  37. package/dist/features/builtin-skills/skills/git-master-sections/quick-reference.d.ts +1 -1
  38. package/dist/features/builtin-skills/skills/git-master-sections/rebase-workflow.d.ts +1 -1
  39. package/dist/features/builtin-skills/skills/git-master-skill-metadata.d.ts +1 -1
  40. package/dist/features/builtin-skills/skills/git-master.d.ts +1 -1
  41. package/dist/features/builtin-skills/skills/index.d.ts +1 -1
  42. package/dist/features/builtin-skills/skills/init-deep.d.ts +1 -1
  43. package/dist/features/builtin-skills/skills/playwright-cli.d.ts +1 -1
  44. package/dist/features/builtin-skills/skills/playwright-mcp-skill.d.ts +1 -1
  45. package/dist/features/builtin-skills/skills/playwright.d.ts +1 -1
  46. package/dist/features/builtin-skills/skills/remove-ai-slops.d.ts +1 -1
  47. package/dist/features/builtin-skills/skills/review-work.d.ts +1 -1
  48. package/dist/features/builtin-skills/skills/security-research.d.ts +1 -1
  49. package/dist/features/builtin-skills/skills/security-review.d.ts +1 -1
  50. package/dist/features/builtin-skills/skills/team-mode.d.ts +1 -1
  51. package/dist/features/builtin-skills/skills/visual-qa.d.ts +1 -1
  52. package/dist/features/builtin-skills/skills.d.ts +1 -1
  53. package/dist/features/builtin-skills/types.d.ts +1 -1
  54. package/dist/features/claude-code-agent-loader/agent-definitions-loader.d.ts +1 -1
  55. package/dist/features/claude-code-agent-loader/claude-model-mapper.d.ts +1 -1
  56. package/dist/features/claude-code-agent-loader/index.d.ts +1 -1
  57. package/dist/features/claude-code-agent-loader/json-agent-loader.d.ts +1 -1
  58. package/dist/features/claude-code-agent-loader/loader.d.ts +1 -1
  59. package/dist/features/claude-code-agent-loader/opencode-config-agents-reader.d.ts +1 -1
  60. package/dist/features/claude-code-agent-loader/types.d.ts +1 -1
  61. package/dist/features/claude-code-command-loader/index.d.ts +1 -1
  62. package/dist/features/claude-code-command-loader/loader-cache.d.ts +1 -1
  63. package/dist/features/claude-code-command-loader/loader.d.ts +1 -1
  64. package/dist/features/claude-code-command-loader/types.d.ts +1 -1
  65. package/dist/features/claude-code-mcp-loader/configure-allowed-env-vars.d.ts +1 -1
  66. package/dist/features/claude-code-mcp-loader/index.d.ts +1 -1
  67. package/dist/features/claude-code-mcp-loader/loader.d.ts +1 -1
  68. package/dist/features/claude-code-mcp-loader/scope-filter.d.ts +1 -1
  69. package/dist/features/claude-code-mcp-loader/transformer.d.ts +1 -1
  70. package/dist/features/claude-code-mcp-loader/types.d.ts +1 -1
  71. package/dist/features/claude-code-plugin-loader/agent-loader.d.ts +1 -1
  72. package/dist/features/claude-code-plugin-loader/command-loader.d.ts +1 -1
  73. package/dist/features/claude-code-plugin-loader/discovery-core.d.ts +1 -1
  74. package/dist/features/claude-code-plugin-loader/discovery-paths.d.ts +1 -1
  75. package/dist/features/claude-code-plugin-loader/discovery.d.ts +1 -1
  76. package/dist/features/claude-code-plugin-loader/hook-loader.d.ts +1 -1
  77. package/dist/features/claude-code-plugin-loader/index.d.ts +1 -1
  78. package/dist/features/claude-code-plugin-loader/install-path-resolver.d.ts +1 -1
  79. package/dist/features/claude-code-plugin-loader/installed-plugin-database.d.ts +1 -1
  80. package/dist/features/claude-code-plugin-loader/loaded-plugin.d.ts +1 -1
  81. package/dist/features/claude-code-plugin-loader/loader.d.ts +1 -1
  82. package/dist/features/claude-code-plugin-loader/mcp-server-loader.d.ts +1 -1
  83. package/dist/features/claude-code-plugin-loader/plugin-key.d.ts +1 -1
  84. package/dist/features/claude-code-plugin-loader/plugin-manifest.d.ts +1 -1
  85. package/dist/features/claude-code-plugin-loader/plugin-path-resolver.d.ts +1 -1
  86. package/dist/features/claude-code-plugin-loader/plugin-settings.d.ts +1 -1
  87. package/dist/features/claude-code-plugin-loader/scope-filter.d.ts +1 -1
  88. package/dist/features/claude-code-plugin-loader/skill-loader.d.ts +1 -1
  89. package/dist/features/claude-code-plugin-loader/types.d.ts +1 -1
  90. package/dist/features/kanban/sqlite-store.d.ts +2 -0
  91. package/dist/features/mcp-oauth/callback-server.d.ts +1 -1
  92. package/dist/features/mcp-oauth/dcr.d.ts +1 -1
  93. package/dist/features/mcp-oauth/discovery.d.ts +1 -1
  94. package/dist/features/mcp-oauth/oauth-authorization-flow.d.ts +1 -1
  95. package/dist/features/mcp-oauth/provider.d.ts +1 -1
  96. package/dist/features/mcp-oauth/refresh-mutex.d.ts +1 -1
  97. package/dist/features/mcp-oauth/resource-indicator.d.ts +1 -1
  98. package/dist/features/mcp-oauth/schema.d.ts +1 -1
  99. package/dist/features/mcp-oauth/step-up.d.ts +1 -1
  100. package/dist/features/mcp-oauth/storage.d.ts +1 -1
  101. package/dist/features/opencode-runtime-skills/index.d.ts +1 -1
  102. package/dist/features/opencode-runtime-skills/runtime-skill-config.d.ts +1 -1
  103. package/dist/features/opencode-runtime-skills/skill-markdown.d.ts +1 -1
  104. package/dist/features/opencode-runtime-skills/source-server.d.ts +1 -1
  105. package/dist/features/opencode-skill-loader/allowed-tools-parser.d.ts +1 -1
  106. package/dist/features/opencode-skill-loader/config-source-discovery.d.ts +1 -1
  107. package/dist/features/opencode-skill-loader/git-master-template-injection.d.ts +1 -1
  108. package/dist/features/opencode-skill-loader/index.d.ts +1 -1
  109. package/dist/features/opencode-skill-loader/loaded-skill-from-path.d.ts +1 -1
  110. package/dist/features/opencode-skill-loader/loaded-skill-template-extractor.d.ts +1 -1
  111. package/dist/features/opencode-skill-loader/loader.d.ts +1 -1
  112. package/dist/features/opencode-skill-loader/merger/builtin-skill-converter.d.ts +1 -1
  113. package/dist/features/opencode-skill-loader/merger/config-skill-entry-loader.d.ts +1 -1
  114. package/dist/features/opencode-skill-loader/merger/scope-priority.d.ts +1 -1
  115. package/dist/features/opencode-skill-loader/merger/skill-definition-merger.d.ts +1 -1
  116. package/dist/features/opencode-skill-loader/merger/skills-config-normalizer.d.ts +1 -1
  117. package/dist/features/opencode-skill-loader/merger.d.ts +1 -1
  118. package/dist/features/opencode-skill-loader/opencode-config-skills-reader.d.ts +1 -1
  119. package/dist/features/opencode-skill-loader/skill-content.d.ts +1 -1
  120. package/dist/features/opencode-skill-loader/skill-deduplication.d.ts +1 -1
  121. package/dist/features/opencode-skill-loader/skill-definition-record.d.ts +1 -1
  122. package/dist/features/opencode-skill-loader/skill-directory-loader.d.ts +1 -1
  123. package/dist/features/opencode-skill-loader/skill-discovery.d.ts +1 -1
  124. package/dist/features/opencode-skill-loader/skill-mcp-config.d.ts +1 -1
  125. package/dist/features/opencode-skill-loader/skill-resolution-options.d.ts +1 -1
  126. package/dist/features/opencode-skill-loader/skill-template-resolver.d.ts +1 -1
  127. package/dist/features/opencode-skill-loader/types.d.ts +1 -1
  128. package/dist/features/skill-curator/audit.d.ts +1 -1
  129. package/dist/features/skill-mcp-manager/cleanup.d.ts +1 -1
  130. package/dist/features/skill-mcp-manager/connection-type.d.ts +1 -1
  131. package/dist/features/skill-mcp-manager/connection.d.ts +1 -1
  132. package/dist/features/skill-mcp-manager/env-cleaner.d.ts +1 -1
  133. package/dist/features/skill-mcp-manager/error-redaction.d.ts +1 -1
  134. package/dist/features/skill-mcp-manager/http-client.d.ts +1 -1
  135. package/dist/features/skill-mcp-manager/index.d.ts +1 -1
  136. package/dist/features/skill-mcp-manager/manager.d.ts +1 -1
  137. package/dist/features/skill-mcp-manager/oauth-handler.d.ts +1 -1
  138. package/dist/features/skill-mcp-manager/stdio-client.d.ts +1 -1
  139. package/dist/features/skill-mcp-manager/types.d.ts +1 -1
  140. package/dist/features/team-mode/member-parser.d.ts +1 -1
  141. package/dist/features/team-mode/team-layout-tmux/close-team-member-pane.d.ts +1 -1
  142. package/dist/features/team-mode/team-layout-tmux/index.d.ts +1 -1
  143. package/dist/features/team-mode/team-layout-tmux/layout.d.ts +1 -1
  144. package/dist/features/team-mode/team-layout-tmux/rebalance-team-window.d.ts +1 -1
  145. package/dist/features/team-mode/team-layout-tmux/resolve-caller-tmux-session.d.ts +1 -1
  146. package/dist/features/team-mode/team-layout-tmux/sweep-stale-team-sessions.d.ts +1 -1
  147. package/dist/features/team-mode/team-mailbox/ack.d.ts +1 -1
  148. package/dist/features/team-mode/team-mailbox/inbox.d.ts +1 -1
  149. package/dist/features/team-mode/team-mailbox/index.d.ts +1 -1
  150. package/dist/features/team-mode/team-mailbox/pending-delivery-recovery.d.ts +1 -1
  151. package/dist/features/team-mode/team-mailbox/poll.d.ts +1 -1
  152. package/dist/features/team-mode/team-mailbox/reservation.d.ts +1 -1
  153. package/dist/features/team-mode/team-mailbox/send.d.ts +1 -1
  154. package/dist/features/team-mode/team-registry/index.d.ts +1 -1
  155. package/dist/features/team-mode/team-registry/loader.d.ts +1 -1
  156. package/dist/features/team-mode/team-registry/paths.d.ts +1 -1
  157. package/dist/features/team-mode/team-registry/team-spec-input-normalizer.d.ts +1 -1
  158. package/dist/features/team-mode/team-registry/validator.d.ts +1 -1
  159. package/dist/features/team-mode/team-state-store/active-resume.d.ts +1 -1
  160. package/dist/features/team-mode/team-state-store/creating-resume.d.ts +1 -1
  161. package/dist/features/team-mode/team-state-store/deleting-resume.d.ts +1 -1
  162. package/dist/features/team-mode/team-state-store/error-normalization.d.ts +1 -1
  163. package/dist/features/team-mode/team-state-store/index.d.ts +1 -1
  164. package/dist/features/team-mode/team-state-store/locks.d.ts +1 -1
  165. package/dist/features/team-mode/team-state-store/reservation-reconciliation.d.ts +1 -1
  166. package/dist/features/team-mode/team-state-store/resume-report.d.ts +1 -1
  167. package/dist/features/team-mode/team-state-store/resume.d.ts +1 -1
  168. package/dist/features/team-mode/team-state-store/runtime-cleanup.d.ts +1 -1
  169. package/dist/features/team-mode/team-state-store/session-liveness.d.ts +1 -1
  170. package/dist/features/team-mode/team-state-store/store.d.ts +1 -1
  171. package/dist/features/team-mode/team-state-store/worker-resume-status.d.ts +1 -1
  172. package/dist/features/team-mode/team-tasklist/claim.d.ts +1 -1
  173. package/dist/features/team-mode/team-tasklist/dependencies.d.ts +1 -1
  174. package/dist/features/team-mode/team-tasklist/get.d.ts +1 -1
  175. package/dist/features/team-mode/team-tasklist/index.d.ts +1 -1
  176. package/dist/features/team-mode/team-tasklist/list.d.ts +1 -1
  177. package/dist/features/team-mode/team-tasklist/store.d.ts +1 -1
  178. package/dist/features/team-mode/team-tasklist/test-support.d.ts +1 -1
  179. package/dist/features/team-mode/team-tasklist/update.d.ts +1 -1
  180. package/dist/features/team-mode/team-worktree/cleanup.d.ts +1 -1
  181. package/dist/features/team-mode/team-worktree/index.d.ts +1 -1
  182. package/dist/features/team-mode/team-worktree/manager.d.ts +1 -1
  183. package/dist/features/team-mode/tools/lifecycle-create-tool.d.ts +2 -2
  184. package/dist/features/team-mode/tools/lifecycle-inline-spec.d.ts +2 -2
  185. package/dist/features/team-mode/tools/lifecycle-participant.d.ts +2 -2
  186. package/dist/features/team-mode/tools/lifecycle-test-fixture.d.ts +1 -1
  187. package/dist/features/team-mode/tools/messaging-live-delivery-recipient.d.ts +2 -2
  188. package/dist/features/team-mode/tools/messaging-live-delivery-reservation.d.ts +1 -1
  189. package/dist/features/team-mode/tools/messaging-live-delivery-state.d.ts +1 -1
  190. package/dist/features/team-mode/tools/messaging-live-delivery.d.ts +1 -1
  191. package/dist/features/team-mode/tools/messaging-runtime.d.ts +2 -2
  192. package/dist/features/team-mode/tools/query.d.ts +3 -3
  193. package/dist/features/team-mode/tools/tasks.d.ts +2 -2
  194. package/dist/features/team-mode/types.d.ts +1 -1
  195. package/dist/hooks/ast-grep-sg-provision/hook.d.ts +1 -1
  196. package/dist/hooks/auto-slash-command/constants.d.ts +1 -1
  197. package/dist/hooks/auto-slash-command/detector.d.ts +1 -1
  198. package/dist/hooks/auto-slash-command/processed-command-store.d.ts +1 -1
  199. package/dist/hooks/auto-slash-command/types.d.ts +1 -1
  200. package/dist/hooks/codegraph-bootstrap/hook.d.ts +1 -1
  201. package/dist/hooks/comment-checker/cli.d.ts +1 -1
  202. package/dist/hooks/comment-checker/types.d.ts +1 -1
  203. package/dist/hooks/delegate-task-retry/guidance.d.ts +1 -1
  204. package/dist/hooks/delegate-task-retry/patterns.d.ts +2 -2
  205. package/dist/hooks/directory-agents-injector/finder.d.ts +2 -2
  206. package/dist/hooks/directory-agents-injector/injector.d.ts +1 -1
  207. package/dist/hooks/dreamer-trigger/index.d.ts +2 -2
  208. package/dist/hooks/rules-injector/constants.d.ts +1 -1
  209. package/dist/hooks/rules-injector/matcher.d.ts +2 -2
  210. package/dist/hooks/rules-injector/parser.d.ts +2 -2
  211. package/dist/hooks/rules-injector/project-root-finder.d.ts +1 -1
  212. package/dist/hooks/rules-injector/rule-distance.d.ts +1 -1
  213. package/dist/hooks/rules-injector/rule-file-finder.d.ts +2 -2
  214. package/dist/hooks/rules-injector/rule-file-scanner.d.ts +1 -1
  215. package/dist/hooks/rules-injector/rule-scan-cache.d.ts +2 -2
  216. package/dist/hooks/rules-injector/types.d.ts +1 -1
  217. package/dist/hooks/runtime-fallback/auto-retry-signal.d.ts +1 -1
  218. package/dist/hooks/runtime-fallback/error-classifier.d.ts +1 -1
  219. package/dist/hooks/runtime-fallback/fallback-state.d.ts +1 -1
  220. package/dist/hooks/tank-agents-md-injector/hook.d.ts +1 -1
  221. package/dist/hooks/tool-pair-validator/tool-part-ids.d.ts +1 -1
  222. package/dist/index.js +207 -53
  223. package/dist/mcp/codegraph.d.ts +1 -1
  224. package/dist/plugin/event-error-utils.d.ts +1 -1
  225. package/dist/plugin/record-session-end-episode.d.ts +1 -1
  226. package/dist/plugin/session-memory-recorder.d.ts +1 -1
  227. package/dist/plugin/types.d.ts +1 -1
  228. package/dist/profile-adapters.d.ts +1 -1
  229. package/dist/shared/archive-entry-validator.d.ts +1 -1
  230. package/dist/shared/bun-file-shim.d.ts +1 -1
  231. package/dist/shared/bun-spawn-shim.d.ts +1 -1
  232. package/dist/shared/bun-which-shim.d.ts +1 -1
  233. package/dist/shared/classify-path-environment.d.ts +1 -1
  234. package/dist/shared/command-executor/embedded-commands.d.ts +1 -1
  235. package/dist/shared/command-executor/execute-command.d.ts +1 -1
  236. package/dist/shared/command-executor/execute-hook-command.d.ts +1 -1
  237. package/dist/shared/command-executor/home-directory.d.ts +1 -1
  238. package/dist/shared/command-executor/resolve-commands-in-text.d.ts +1 -1
  239. package/dist/shared/command-executor/shell-path.d.ts +1 -1
  240. package/dist/shared/command-executor.d.ts +1 -1
  241. package/dist/shared/contains-path.d.ts +1 -1
  242. package/dist/shared/context-limit-resolver.d.ts +2 -2
  243. package/dist/shared/deep-merge.d.ts +1 -1
  244. package/dist/shared/extract-semver.d.ts +1 -1
  245. package/dist/shared/fallback-chain-from-models.d.ts +1 -1
  246. package/dist/shared/file-utils.d.ts +1 -1
  247. package/dist/shared/frontmatter.d.ts +1 -1
  248. package/dist/shared/git-worktree/collect-git-diff-stats.d.ts +1 -1
  249. package/dist/shared/git-worktree/format-file-changes.d.ts +1 -1
  250. package/dist/shared/git-worktree/index.d.ts +1 -1
  251. package/dist/shared/git-worktree/parse-diff-numstat.d.ts +1 -1
  252. package/dist/shared/git-worktree/parse-status-porcelain-line.d.ts +1 -1
  253. package/dist/shared/git-worktree/parse-status-porcelain.d.ts +1 -1
  254. package/dist/shared/git-worktree/types.d.ts +1 -1
  255. package/dist/shared/internal-initiator-marker.d.ts +1 -1
  256. package/dist/shared/jsonc-parser.d.ts +1 -1
  257. package/dist/shared/logger.d.ts +1 -1
  258. package/dist/shared/migration/agent-category.d.ts +1 -1
  259. package/dist/shared/migration/agent-names.d.ts +1 -1
  260. package/dist/shared/migration/config-migration.d.ts +1 -1
  261. package/dist/shared/migration/hook-names.d.ts +1 -1
  262. package/dist/shared/migration/migrations-sidecar.d.ts +1 -1
  263. package/dist/shared/migration/model-versions.d.ts +1 -1
  264. package/dist/shared/migration.d.ts +1 -1
  265. package/dist/shared/model-capabilities/index.d.ts +3 -3
  266. package/dist/shared/model-capabilities-cache.d.ts +1 -1
  267. package/dist/shared/model-error-classifier.d.ts +2 -2
  268. package/dist/shared/model-format-normalizer.d.ts +1 -1
  269. package/dist/shared/model-normalization.d.ts +1 -1
  270. package/dist/shared/model-requirements.d.ts +2 -2
  271. package/dist/shared/model-resolution-pipeline.d.ts +3 -3
  272. package/dist/shared/model-resolution-types.d.ts +1 -1
  273. package/dist/shared/model-resolver.d.ts +2 -2
  274. package/dist/shared/model-sanitizer.d.ts +1 -1
  275. package/dist/shared/model-settings-compatibility.d.ts +2 -2
  276. package/dist/shared/model-string-parser.d.ts +1 -1
  277. package/dist/shared/model-suggestion-retry.d.ts +2 -2
  278. package/dist/shared/port-utils.d.ts +1 -1
  279. package/dist/shared/posthog.d.ts +1 -1
  280. package/dist/shared/process-stream-reader.d.ts +1 -1
  281. package/dist/shared/prompt-async-gate/message-inspection-error.d.ts +1 -1
  282. package/dist/shared/prompt-async-gate/pending-tool-turn.d.ts +1 -1
  283. package/dist/shared/prompt-async-gate/prompt-message-state.d.ts +1 -1
  284. package/dist/shared/prompt-async-gate/queue.d.ts +1 -1
  285. package/dist/shared/prompt-async-gate/recent-dispatches.d.ts +1 -1
  286. package/dist/shared/prompt-async-gate/reservations.d.ts +1 -1
  287. package/dist/shared/prompt-async-gate/semantic-dedupe.d.ts +1 -1
  288. package/dist/shared/prompt-async-gate/session-idle-dispatch.d.ts +1 -1
  289. package/dist/shared/prompt-async-gate/timing.d.ts +1 -1
  290. package/dist/shared/prompt-async-gate/types.d.ts +1 -1
  291. package/dist/shared/prompt-async-gate.d.ts +2 -2
  292. package/dist/shared/prompt-failure-classifier.d.ts +1 -1
  293. package/dist/shared/provider-model-id-transform.d.ts +1 -1
  294. package/dist/shared/record-type-guard.d.ts +1 -1
  295. package/dist/shared/replace-tool-args.d.ts +1 -1
  296. package/dist/shared/session-idle-settle.d.ts +1 -1
  297. package/dist/shared/shell-env.d.ts +1 -1
  298. package/dist/shared/skill-path-resolver.d.ts +1 -1
  299. package/dist/shared/snake-case.d.ts +1 -1
  300. package/dist/shared/telemetry-product-identity.d.ts +1 -1
  301. package/dist/shared/tmux/cmux-detect.d.ts +1 -1
  302. package/dist/shared/tmux/constants.d.ts +1 -1
  303. package/dist/shared/tmux/runner.d.ts +2 -2
  304. package/dist/shared/tmux/tmux-utils/adapter-deps.d.ts +1 -1
  305. package/dist/shared/tmux/tmux-utils/environment.d.ts +2 -2
  306. package/dist/shared/tmux/tmux-utils/layout.d.ts +2 -2
  307. package/dist/shared/tmux/tmux-utils/pane-close.d.ts +1 -1
  308. package/dist/shared/tmux/tmux-utils/pane-command.d.ts +1 -1
  309. package/dist/shared/tmux/tmux-utils/pane-dimensions.d.ts +1 -1
  310. package/dist/shared/tmux/tmux-utils/pane-replace.d.ts +1 -1
  311. package/dist/shared/tmux/tmux-utils/pane-spawn.d.ts +1 -1
  312. package/dist/shared/tmux/tmux-utils/server-health.d.ts +2 -2
  313. package/dist/shared/tmux/tmux-utils/session-spawn.d.ts +2 -2
  314. package/dist/shared/tmux/tmux-utils/spawn-process.d.ts +1 -1
  315. package/dist/shared/tmux/tmux-utils/stale-session-sweep.d.ts +2 -2
  316. package/dist/shared/tmux/tmux-utils/window-spawn.d.ts +1 -1
  317. package/dist/shared/tmux/types.d.ts +1 -1
  318. package/dist/shared/tool-name.d.ts +1 -1
  319. package/dist/shared/zip-entry-listing/powershell-zip-entry-listing.d.ts +1 -1
  320. package/dist/shared/zip-entry-listing/python-zip-entry-listing.d.ts +1 -1
  321. package/dist/shared/zip-entry-listing/read-zip-symlink-target.d.ts +1 -1
  322. package/dist/shared/zip-entry-listing/tar-zip-entry-listing.d.ts +1 -1
  323. package/dist/shared/zip-entry-listing/zipinfo-zip-entry-listing.d.ts +1 -1
  324. package/dist/shared/zip-entry-listing.d.ts +1 -1
  325. package/dist/skills/frontend/ATTRIBUTION.md +1 -1
  326. package/dist/skills/ultimate-browsing/ATTRIBUTION.md +1 -1
  327. package/dist/skills/ulw-research/ATTRIBUTION.md +1 -1
  328. package/dist/testing/create-gateway-relay.d.ts +5 -1
  329. package/dist/tools/delegate-task/model-selection.d.ts +1 -1
  330. package/dist/tools/delegate-task/model-string-parser.d.ts +1 -1
  331. package/dist/tools/delegate-task/sync-task-deps.d.ts +1 -1
  332. package/dist/tools/hashline-edit/autocorrect-replacement-lines.d.ts +1 -1
  333. package/dist/tools/hashline-edit/constants.d.ts +1 -1
  334. package/dist/tools/hashline-edit/diff-utils.d.ts +1 -1
  335. package/dist/tools/hashline-edit/edit-deduplication.d.ts +1 -1
  336. package/dist/tools/hashline-edit/edit-operation-primitives.d.ts +1 -1
  337. package/dist/tools/hashline-edit/edit-operations.d.ts +2 -2
  338. package/dist/tools/hashline-edit/edit-ordering.d.ts +1 -1
  339. package/dist/tools/hashline-edit/edit-text-normalization.d.ts +1 -1
  340. package/dist/tools/hashline-edit/file-text-canonicalization.d.ts +2 -2
  341. package/dist/tools/hashline-edit/hash-computation.d.ts +2 -2
  342. package/dist/tools/hashline-edit/hashline-chunk-formatter.d.ts +2 -2
  343. package/dist/tools/hashline-edit/hashline-edit-diff.d.ts +1 -1
  344. package/dist/tools/hashline-edit/normalize-edits.d.ts +2 -2
  345. package/dist/tools/hashline-edit/types.d.ts +1 -1
  346. package/dist/tools/hashline-edit/validation.d.ts +2 -2
  347. package/dist/tools/skill/scope-priority.d.ts +1 -1
  348. package/dist/tools/skill/skill-matcher.d.ts +1 -1
  349. package/dist/tui.js +4 -0
  350. package/package.json +27 -24
  351. package/packages/git-bash-mcp/package.json +3 -3
  352. package/packages/lsp-core/package.json +3 -3
  353. package/packages/lsp-core/src/mcp.ts +1 -1
  354. package/packages/lsp-daemon/dist/daemon-client.d.ts +2 -2
  355. package/packages/lsp-daemon/dist/daemon-client.js +2 -2
  356. package/packages/lsp-daemon/dist/daemon-server.js +1 -1
  357. package/packages/lsp-daemon/dist/index.d.ts +1 -1
  358. package/packages/lsp-daemon/dist/ipc-protocol.js +1 -1
  359. package/packages/lsp-daemon/dist/package.json +1 -1
  360. package/packages/lsp-daemon/dist/proxy.js +4 -4
  361. package/packages/lsp-daemon/dist/request-routing.d.ts +1 -1
  362. package/packages/lsp-daemon/dist/request-routing.js +3 -3
  363. package/packages/lsp-daemon/package.json +3 -3
  364. package/packages/lsp-tools-mcp/dist/lsp/cleanup-errors.d.ts +1 -1
  365. package/packages/lsp-tools-mcp/dist/lsp/client-wrapper.d.ts +1 -1
  366. package/packages/lsp-tools-mcp/dist/lsp/client.d.ts +1 -1
  367. package/packages/lsp-tools-mcp/dist/lsp/config-loader.d.ts +1 -1
  368. package/packages/lsp-tools-mcp/dist/lsp/connection.d.ts +1 -1
  369. package/packages/lsp-tools-mcp/dist/lsp/constants.d.ts +1 -1
  370. package/packages/lsp-tools-mcp/dist/lsp/directory-diagnostics.d.ts +1 -1
  371. package/packages/lsp-tools-mcp/dist/lsp/effective-extension.d.ts +1 -1
  372. package/packages/lsp-tools-mcp/dist/lsp/errors.d.ts +1 -1
  373. package/packages/lsp-tools-mcp/dist/lsp/formatters.d.ts +1 -1
  374. package/packages/lsp-tools-mcp/dist/lsp/infer-extension.d.ts +1 -1
  375. package/packages/lsp-tools-mcp/dist/lsp/json-rpc-connection.d.ts +1 -1
  376. package/packages/lsp-tools-mcp/dist/lsp/language-mappings.d.ts +1 -1
  377. package/packages/lsp-tools-mcp/dist/lsp/manager.d.ts +1 -1
  378. package/packages/lsp-tools-mcp/dist/lsp/process-signal-cleanup.d.ts +1 -1
  379. package/packages/lsp-tools-mcp/dist/lsp/process.d.ts +1 -1
  380. package/packages/lsp-tools-mcp/dist/lsp/server-definitions.d.ts +1 -1
  381. package/packages/lsp-tools-mcp/dist/lsp/server-install-state.d.ts +1 -1
  382. package/packages/lsp-tools-mcp/dist/lsp/server-installation.d.ts +1 -1
  383. package/packages/lsp-tools-mcp/dist/lsp/server-resolution.d.ts +1 -1
  384. package/packages/lsp-tools-mcp/dist/lsp/startup-failure.d.ts +1 -1
  385. package/packages/lsp-tools-mcp/dist/lsp/transport.d.ts +1 -1
  386. package/packages/lsp-tools-mcp/dist/lsp/types.d.ts +1 -1
  387. package/packages/lsp-tools-mcp/dist/lsp/utils.d.ts +1 -1
  388. package/packages/lsp-tools-mcp/dist/lsp/workspace-edit.d.ts +1 -1
  389. package/packages/lsp-tools-mcp/dist/mcp.d.ts +1 -1
  390. package/packages/lsp-tools-mcp/dist/missing-dependency-result.d.ts +1 -1
  391. package/packages/lsp-tools-mcp/dist/request-context.d.ts +1 -1
  392. package/packages/lsp-tools-mcp/dist/tools.d.ts +1 -1
  393. package/packages/lsp-tools-mcp/package.json +3 -3
  394. package/packages/shared-skills/package.json +2 -2
  395. package/packages/shared-skills/skills/frontend/ATTRIBUTION.md +1 -1
  396. package/packages/shared-skills/skills/ultimate-browsing/ATTRIBUTION.md +1 -1
  397. package/packages/shared-skills/skills/ulw-research/ATTRIBUTION.md +1 -1
package/dist/index.js CHANGED
@@ -7017,7 +7017,16 @@ var init_execute_hook_command = __esm(() => {
7017
7017
  // packages/utils/src/command-executor/execute-command.ts
7018
7018
  import { exec } from "child_process";
7019
7019
  import { promisify as promisify2 } from "util";
7020
- async function executeCommand(command) {
7020
+ async function executeCommand(command, enforcer) {
7021
+ const eff = enforcer ?? globalEnforcer;
7022
+ if (eff) {
7023
+ const decision = eff.checkBash("matrixos-cli", command);
7024
+ if (!decision.allowed) {
7025
+ throw new Error(`Egress blocked: ${decision.reason}`);
7026
+ }
7027
+ } else {
7028
+ console.warn("[egress] executeCommand running WITHOUT bash denylist (no enforcer set)");
7029
+ }
7021
7030
  try {
7022
7031
  const { stdout, stderr } = await execAsync(command);
7023
7032
  const out = stdout?.toString().trim() ?? "";
@@ -7036,7 +7045,7 @@ async function executeCommand(command) {
7036
7045
  [stderr: ${errorMessage}]` : `[stderr: ${errorMessage}]`;
7037
7046
  }
7038
7047
  }
7039
- var execAsync;
7048
+ var execAsync, globalEnforcer = null;
7040
7049
  var init_execute_command = __esm(() => {
7041
7050
  execAsync = promisify2(exec);
7042
7051
  });
@@ -233068,7 +233077,7 @@ var init_audio_decode = __esm(() => {
233068
233077
  });
233069
233078
 
233070
233079
  // node_modules/.bun/@whiskeysockets+baileys@7.0.0-rc13+13d21a63c79191a3/node_modules/@whiskeysockets/baileys/lib/Utils/messages-media.js
233071
- import { exec as exec2 } from "child_process";
233080
+ import { exec as exec3 } from "child_process";
233072
233081
  import * as Crypto from "crypto";
233073
233082
  import { once } from "events";
233074
233083
  import { createReadStream, createWriteStream, promises as fs26, WriteStream } from "fs";
@@ -233225,7 +233234,7 @@ var import_boom5, getTmpFilesDirectory = () => tmpdir8(), getImageProcessingLibr
233225
233234
  }
233226
233235
  }, extractVideoThumb = async (path28, destPath, time, size) => new Promise((resolve42, reject2) => {
233227
233236
  const cmd = `ffmpeg -ss ${time} -i ${path28} -y -vf scale=${size.width}:-1 -vframes 1 -f image2 ${destPath}`;
233228
- exec2(cmd, (err) => {
233237
+ exec3(cmd, (err) => {
233229
233238
  if (err) {
233230
233239
  reject2(err);
233231
233240
  } else {
@@ -272659,12 +272668,12 @@ var import_boom18, import_long, ENFORCEMENT_TYPE_VALUES, makeMessagesRecvSocket
272659
272668
  ]);
272660
272669
  }
272661
272670
  };
272662
- const processNodeWithBuffer = async (node, identifier, exec3) => {
272671
+ const processNodeWithBuffer = async (node, identifier, exec4) => {
272663
272672
  ev.buffer();
272664
272673
  await execTask();
272665
272674
  ev.flush();
272666
272675
  function execTask() {
272667
- return exec3(node, false).catch((err) => onUnexpectedError(err, identifier));
272676
+ return exec4(node, false).catch((err) => onUnexpectedError(err, identifier));
272668
272677
  }
272669
272678
  };
272670
272679
  const offlineNodeProcessor = makeOfflineNodeProcessor(new Map([
@@ -272677,7 +272686,7 @@ var import_boom18, import_long, ENFORCEMENT_TYPE_VALUES, makeMessagesRecvSocket
272677
272686
  onUnexpectedError,
272678
272687
  yieldToEventLoop: () => new Promise((resolve42) => setImmediate(resolve42))
272679
272688
  });
272680
- const processNode = async (type2, node, identifier, exec3) => {
272689
+ const processNode = async (type2, node, identifier, exec4) => {
272681
272690
  const from = node.attrs.from;
272682
272691
  let ignoreJid = from;
272683
272692
  if (type2 === "receipt" && from) {
@@ -272694,7 +272703,7 @@ var import_boom18, import_long, ENFORCEMENT_TYPE_VALUES, makeMessagesRecvSocket
272694
272703
  if (isOffline) {
272695
272704
  offlineNodeProcessor.enqueue(type2, node);
272696
272705
  } else {
272697
- await processNodeWithBuffer(node, identifier, exec3);
272706
+ await processNodeWithBuffer(node, identifier, exec4);
272698
272707
  }
272699
272708
  };
272700
272709
  ws.on("CB:message", async (node) => {
@@ -297791,7 +297800,7 @@ var defaultFS, TPL_PACKAGE_JSON = (name, displayName, version3, description2, ex
297791
297800
  "test": "bun test"
297792
297801
  },
297793
297802
  "dependencies": {
297794
- "@oh-my-opencode/omo-config-core": "workspace:*"
297803
+ "@matrixos/omo-config-core": "workspace:*"
297795
297804
  },
297796
297805
  "peerDependencies": {
297797
297806
  "matrixos": ">=0.1.0"
@@ -297814,7 +297823,7 @@ var defaultFS, TPL_PACKAGE_JSON = (name, displayName, version3, description2, ex
297814
297823
  * ${displayName} \u2014 ${description2}
297815
297824
  * Generated by MaTrixOS Mini-OS Profile Generator.
297816
297825
  */
297817
- import type { Profile } from "@oh-my-opencode/omo-config-core"
297826
+ import type { Profile } from "@matrixos/omo-config-core"
297818
297827
 
297819
297828
  export const profile: Profile = {
297820
297829
  name: ${JSON.stringify(name)},
@@ -297971,17 +297980,17 @@ var require_task = __commonJS((exports2, module) => {
297971
297980
  this._execution = execution;
297972
297981
  }
297973
297982
  execute(now) {
297974
- let exec3;
297983
+ let exec4;
297975
297984
  try {
297976
- exec3 = this._execution(now);
297985
+ exec4 = this._execution(now);
297977
297986
  } catch (error) {
297978
297987
  return this.emit("task-failed", error);
297979
297988
  }
297980
- if (exec3 instanceof Promise) {
297981
- return exec3.then(() => this.emit("task-finished")).catch((error) => this.emit("task-failed", error));
297989
+ if (exec4 instanceof Promise) {
297990
+ return exec4.then(() => this.emit("task-finished")).catch((error) => this.emit("task-failed", error));
297982
297991
  } else {
297983
297992
  this.emit("task-finished");
297984
- return exec3;
297993
+ return exec4;
297985
297994
  }
297986
297995
  }
297987
297996
  }
@@ -367997,7 +368006,7 @@ function getCachedVersion(options = {}) {
367997
368006
  // package.json
367998
368007
  var package_default = {
367999
368008
  name: "@kl-c/matrixos",
368000
- version: "0.1.26",
368009
+ version: "0.1.31",
368001
368010
  description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
368002
368011
  main: "./dist/index.js",
368003
368012
  types: "dist/index.d.ts",
@@ -368029,6 +368038,9 @@ var package_default = {
368029
368038
  "packages/daily-brief-core",
368030
368039
  "packages/task-ledger-core",
368031
368040
  "packages/rgpd-compliance-core",
368041
+ "packages/dashboard-core",
368042
+ "packages/http-server-core",
368043
+ "packages/webhook-core",
368032
368044
  "packages/omo-opencode"
368033
368045
  ],
368034
368046
  bin: {
@@ -368147,30 +368159,30 @@ var package_default = {
368147
368159
  zod: "^4.4.3"
368148
368160
  },
368149
368161
  devDependencies: {
368150
- "@oh-my-opencode/agents-md-core": "workspace:*",
368151
- "@oh-my-opencode/boulder-state": "workspace:*",
368152
- "@oh-my-opencode/claude-code-compat-core": "workspace:*",
368153
- "@oh-my-opencode/comment-checker-core": "workspace:*",
368154
- "@oh-my-opencode/delegate-core": "workspace:*",
368162
+ "@matrixos/agents-md-core": "workspace:*",
368163
+ "@matrixos/boulder-state": "workspace:*",
368164
+ "@matrixos/claude-code-compat-core": "workspace:*",
368165
+ "@matrixos/comment-checker-core": "workspace:*",
368166
+ "@matrixos/delegate-core": "workspace:*",
368155
368167
  "@matrixos/egress-core": "workspace:*",
368156
- "@oh-my-opencode/git-bash-mcp": "workspace:*",
368157
- "@oh-my-opencode/hashline-core": "workspace:*",
368158
- "@oh-my-opencode/learning-loop": "workspace:*",
368159
- "@oh-my-opencode/lsp-core": "workspace:*",
368160
- "@oh-my-opencode/mcp-client-core": "workspace:*",
368161
- "@oh-my-opencode/mcp-stdio-core": "workspace:*",
368162
- "@oh-my-opencode/model-core": "workspace:*",
368163
- "@oh-my-opencode/omo-config-core": "workspace:*",
368164
- "@oh-my-opencode/matrix-gateway-core": "workspace:*",
368165
- "@oh-my-opencode/prompts-core": "workspace:*",
368166
- "@oh-my-opencode/rules-engine": "workspace:*",
368167
- "@oh-my-opencode/rgpd-compliance-core": "workspace:*",
368168
- "@oh-my-opencode/shared-skills": "workspace:*",
368169
- "@oh-my-opencode/skills-loader-core": "workspace:*",
368170
- "@oh-my-opencode/team-core": "workspace:*",
368171
- "@oh-my-opencode/telemetry-core": "workspace:*",
368172
- "@oh-my-opencode/tmux-core": "workspace:*",
368173
- "@oh-my-opencode/utils": "workspace:*",
368168
+ "@matrixos/git-bash-mcp": "workspace:*",
368169
+ "@matrixos/hashline-core": "workspace:*",
368170
+ "@matrixos/learning-loop": "workspace:*",
368171
+ "@matrixos/lsp-core": "workspace:*",
368172
+ "@matrixos/mcp-client-core": "workspace:*",
368173
+ "@matrixos/mcp-stdio-core": "workspace:*",
368174
+ "@matrixos/model-core": "workspace:*",
368175
+ "@matrixos/omo-config-core": "workspace:*",
368176
+ "@matrixos/matrix-gateway-core": "workspace:*",
368177
+ "@matrixos/prompts-core": "workspace:*",
368178
+ "@matrixos/rules-engine": "workspace:*",
368179
+ "@matrixos/rgpd-compliance-core": "workspace:*",
368180
+ "@matrixos/shared-skills": "workspace:*",
368181
+ "@matrixos/skills-loader-core": "workspace:*",
368182
+ "@matrixos/team-core": "workspace:*",
368183
+ "@matrixos/telemetry-core": "workspace:*",
368184
+ "@matrixos/tmux-core": "workspace:*",
368185
+ "@matrixos/utils": "workspace:*",
368174
368186
  "@types/js-yaml": "^4.0.9",
368175
368187
  "@types/picomatch": "^4.0.3",
368176
368188
  "@typescript/native-preview": "7.0.0-dev.20260518.1",
@@ -442647,6 +442659,105 @@ function checkTool(enforcer, agentName, tool3, args, cwd) {
442647
442659
  }
442648
442660
  }
442649
442661
 
442662
+ // packages/egress-core/src/fetch-wrapper.ts
442663
+ function createFetchWrapper(enforcer, defaultAgent) {
442664
+ let installed2 = false;
442665
+ let savedFetch = null;
442666
+ let savedBunFetch = null;
442667
+ return {
442668
+ install() {
442669
+ if (installed2)
442670
+ return;
442671
+ installed2 = true;
442672
+ savedFetch = globalThis.fetch;
442673
+ globalThis.fetch = wrappedFetch;
442674
+ const anyBun = globalThis.Bun;
442675
+ if (anyBun && typeof anyBun.fetch === "function") {
442676
+ savedBunFetch = anyBun.fetch;
442677
+ anyBun.fetch = wrappedFetch;
442678
+ }
442679
+ },
442680
+ uninstall() {
442681
+ if (!installed2)
442682
+ return;
442683
+ installed2 = false;
442684
+ if (savedFetch) {
442685
+ globalThis.fetch = savedFetch;
442686
+ savedFetch = null;
442687
+ }
442688
+ const anyBun = globalThis.Bun;
442689
+ if (anyBun && savedBunFetch) {
442690
+ anyBun.fetch = savedBunFetch;
442691
+ savedBunFetch = null;
442692
+ }
442693
+ }
442694
+ };
442695
+ async function wrappedFetch(input, init) {
442696
+ const url2 = typeof input === "string" ? input : input instanceof URL ? input.href : input.url;
442697
+ const decision = enforcer.checkFetch(defaultAgent, url2);
442698
+ if (!decision.allowed) {
442699
+ throw new EgressBlockedError(decision.reason, url2);
442700
+ }
442701
+ return savedFetch(input, init);
442702
+ }
442703
+ }
442704
+
442705
+ class EgressBlockedError extends Error {
442706
+ url;
442707
+ constructor(message, url2) {
442708
+ super(message);
442709
+ this.name = "EgressBlockedError";
442710
+ this.url = url2;
442711
+ }
442712
+ }
442713
+
442714
+ // packages/egress-core/src/bash-wrapper.ts
442715
+ import { exec as exec2, spawn as spawn6 } from "child_process";
442716
+ function createBashWrapper(enforcer, defaultAgent) {
442717
+ let installed2 = false;
442718
+ let savedExec = null;
442719
+ let savedSpawn = null;
442720
+ return {
442721
+ install() {
442722
+ if (installed2)
442723
+ return;
442724
+ installed2 = true;
442725
+ savedExec = exec2;
442726
+ savedSpawn = spawn6;
442727
+ const wrappedExec = (command, ...rest) => {
442728
+ const decision = enforcer.checkBash(defaultAgent, command);
442729
+ if (!decision.allowed) {
442730
+ throw new EgressBlockedError(decision.reason, `bash:${command}`);
442731
+ }
442732
+ return savedExec(command, ...rest);
442733
+ };
442734
+ __require("child_process").exec = wrappedExec;
442735
+ const wrappedSpawn = (command, ...rest) => {
442736
+ const cmdStr = Array.isArray(command) ? command.join(" ") : command;
442737
+ const decision = enforcer.checkBash(defaultAgent, cmdStr);
442738
+ if (!decision.allowed) {
442739
+ throw new EgressBlockedError(decision.reason, `bash:${cmdStr}`);
442740
+ }
442741
+ return savedSpawn(command, ...rest);
442742
+ };
442743
+ __require("child_process").spawn = wrappedSpawn;
442744
+ },
442745
+ uninstall() {
442746
+ if (!installed2)
442747
+ return;
442748
+ installed2 = false;
442749
+ if (savedExec) {
442750
+ __require("child_process").exec = savedExec;
442751
+ savedExec = null;
442752
+ }
442753
+ if (savedSpawn) {
442754
+ __require("child_process").spawn = savedSpawn;
442755
+ savedSpawn = null;
442756
+ }
442757
+ }
442758
+ };
442759
+ }
442760
+
442650
442761
  // packages/omo-opencode/src/config/schema/egress.ts
442651
442762
  var EgressConfigSectionSchema = EgressConfigSchema.optional();
442652
442763
  // packages/omo-opencode/src/config/schema/experimental.ts
@@ -443157,14 +443268,36 @@ class TelegramAdapter {
443157
443268
  this.handleUpdate(ctx);
443158
443269
  });
443159
443270
  if (this.config.polling) {
443160
- this.bot.start({ drop_pending_updates: false, onStart: () => {} }).catch((err) => {
443161
- console.error("Telegram polling error:", err);
443162
- });
443271
+ const startWithRetry = (attempt) => {
443272
+ this.bot.start({ drop_pending_updates: false, onStart: () => {} }).catch((err) => {
443273
+ const detail = err instanceof Error ? err.message : String(err);
443274
+ const is409 = detail.includes("409") || detail.includes("Conflict");
443275
+ console.error("Telegram polling error:", detail);
443276
+ if (is409) {
443277
+ const backoffMs = Math.min(30000, 1000 * Math.pow(2, attempt));
443278
+ console.warn(`[telegram] 409 detected, retrying polling in ${backoffMs}ms (attempt ${attempt + 1})`);
443279
+ setTimeout(() => startWithRetry(attempt + 1), backoffMs);
443280
+ }
443281
+ });
443282
+ };
443283
+ startWithRetry(0);
443163
443284
  }
443164
443285
  }
443165
443286
  async disconnect() {
443166
443287
  if (typeof this.bot.stop === "function") {
443167
- await this.bot.stop();
443288
+ try {
443289
+ await this.bot.stop();
443290
+ } catch {}
443291
+ if (typeof this.bot.isRunning === "function") {
443292
+ let tries = 0;
443293
+ while (this.bot.isRunning() && tries < 10) {
443294
+ await new Promise((r) => setTimeout(r, 150));
443295
+ try {
443296
+ await this.bot.stop();
443297
+ } catch {}
443298
+ tries++;
443299
+ }
443300
+ }
443168
443301
  }
443169
443302
  }
443170
443303
  normalize(raw) {
@@ -444556,7 +444689,7 @@ function writePostHogActivityState(stateDir, nextState, diagnostics) {
444556
444689
 
444557
444690
  // packages/telemetry-core/src/constants.ts
444558
444691
  var DEFAULT_POSTHOG_HOST = "https://us.i.posthog.com";
444559
- var DEFAULT_POSTHOG_API_KEY = "phc_CFJhj5HyvA62QPhvyaUCtaq23aUfznnijg5VaaGkNk74";
444692
+ var DEFAULT_POSTHOG_API_KEY = "";
444560
444693
 
444561
444694
  // packages/telemetry-core/src/env.ts
444562
444695
  var TRUTHY_DISABLE_VALUES = ["1", "true", "yes"];
@@ -451279,7 +451412,7 @@ function recordPluginTelemetry(input2) {
451279
451412
 
451280
451413
  // packages/omo-opencode/src/testing/create-gateway-relay.ts
451281
451414
  function createGatewayRelayHandler(deps) {
451282
- const { input: input2, gateway, log: log8 } = deps;
451415
+ const { input: input2, gateway, log: log8, relayModel } = deps;
451283
451416
  return async (env2) => {
451284
451417
  const inboundText = env2.content.text;
451285
451418
  if (!inboundText) {
@@ -451305,6 +451438,7 @@ function createGatewayRelayHandler(deps) {
451305
451438
  path: { id: sessionID },
451306
451439
  body: {
451307
451440
  agent: "morpheus",
451441
+ ...relayModel ? { model: { providerID: relayModel.providerID, modelID: relayModel.modelID } } : {},
451308
451442
  parts: [{ type: "text", text: inboundText }]
451309
451443
  },
451310
451444
  query: { directory: input2.directory }
@@ -452131,6 +452265,10 @@ function createPluginModule(overrides2 = {}) {
452131
452265
  try {
452132
452266
  const enforcer = createEgressEnforcer(pluginConfig.egress);
452133
452267
  egressHook = createEgressHook(enforcer);
452268
+ const fetchWrapper = createFetchWrapper(enforcer, "matrixos-cli");
452269
+ const bashWrapper = createBashWrapper(enforcer, "matrixos-cli");
452270
+ fetchWrapper.install();
452271
+ bashWrapper.install();
452134
452272
  deps.log("[egress] active", {
452135
452273
  agents: pluginConfig.egress.agents ? Object.keys(pluginConfig.egress.agents).length : 0
452136
452274
  });
@@ -452171,6 +452309,14 @@ function createPluginModule(overrides2 = {}) {
452171
452309
  });
452172
452310
  let gatewayWatcher;
452173
452311
  let gatewayReloadInFlight = false;
452312
+ function parseRelayModel(raw) {
452313
+ if (typeof raw !== "string" || raw.length === 0)
452314
+ return;
452315
+ const slash = raw.indexOf("/");
452316
+ if (slash < 1 || slash === raw.length - 1)
452317
+ return;
452318
+ return { providerID: raw.slice(0, slash), modelID: raw.slice(slash + 1) };
452319
+ }
452174
452320
  function buildGwConfig() {
452175
452321
  const source = pluginConfig.gateway;
452176
452322
  if (!source) {
@@ -452193,16 +452339,23 @@ function createPluginModule(overrides2 = {}) {
452193
452339
  async function createAndStartGateway() {
452194
452340
  if (!pluginConfig.gateway?.enabled)
452195
452341
  return;
452342
+ if (gateway) {
452343
+ try {
452344
+ await gateway.stop();
452345
+ } catch {}
452346
+ await new Promise((resolve43) => setTimeout(resolve43, 3000));
452347
+ }
452196
452348
  try {
452197
452349
  const gwConfig = buildGwConfig();
452198
- let gwInstance;
452199
- gwInstance = new MatrixGateway(gwConfig, {
452200
- handler: createGatewayRelayHandler({
452201
- input: input2,
452202
- gateway: gwInstance,
452203
- log: deps.log
452204
- })
452205
- });
452350
+ const gwInstance = new MatrixGateway(gwConfig);
452351
+ const relayModel = parseRelayModel(pluginConfig.agents?.morpheus?.model);
452352
+ const relayHandler = createGatewayRelayHandler({
452353
+ input: input2,
452354
+ gateway: gwInstance,
452355
+ log: deps.log,
452356
+ relayModel
452357
+ });
452358
+ gwInstance.setHandler(relayHandler);
452206
452359
  gateway = gwInstance;
452207
452360
  for (const ch of gwConfig.channels) {
452208
452361
  if (ch.type === "telegram") {
@@ -452233,6 +452386,7 @@ function createPluginModule(overrides2 = {}) {
452233
452386
  loadGatewayEnvFile(undefined, true);
452234
452387
  if (gateway) {
452235
452388
  await gateway.stop();
452389
+ await new Promise((resolve43) => setTimeout(resolve43, 1000));
452236
452390
  }
452237
452391
  await createAndStartGateway();
452238
452392
  } catch (error) {
@@ -1,4 +1,4 @@
1
- import type { ResolveCodegraphCommandOptions } from "@oh-my-opencode/utils";
1
+ import type { ResolveCodegraphCommandOptions } from "@matrixos/utils";
2
2
  import type { CodegraphConfig } from "../config/schema/codegraph";
3
3
  import type { LocalMcpConfig } from "./lsp";
4
4
  import { type RuntimeExecutableResolver } from "./runtime-executable";
@@ -1,4 +1,4 @@
1
- import { isRecord } from "@oh-my-opencode/utils";
1
+ import { isRecord } from "@matrixos/utils";
2
2
  export { isRecord };
3
3
  export declare function normalizeFallbackModelID(modelID: string): string;
4
4
  export declare function extractErrorName(error: unknown): string | undefined;
@@ -4,7 +4,7 @@
4
4
  * state tracking (duration, messageCount, errorCount).
5
5
  * Backward-compat: accepts an injected memoryStore for isolated use.
6
6
  */
7
- import { type Episode, type MemoryStore } from "@oh-my-opencode/learning-loop";
7
+ import { type Episode, type MemoryStore } from "@matrixos/learning-loop";
8
8
  export interface RecordSessionEndOptions {
9
9
  sessionId: string;
10
10
  reason?: string;
@@ -5,7 +5,7 @@
5
5
  * to build a continuous episodic memory instead of a single end-of-session
6
6
  * snapshot.
7
7
  */
8
- import { type Episode, type MemoryStore } from "@oh-my-opencode/learning-loop";
8
+ import { type Episode, type MemoryStore } from "@matrixos/learning-loop";
9
9
  export interface SessionMemoryRecorder {
10
10
  /** The underlying store (exposed so callers can retrieve it for backward-compat return shapes). */
11
11
  memoryStore: MemoryStore;
@@ -1,5 +1,5 @@
1
1
  import type { Plugin, ToolDefinition } from "@opencode-ai/plugin";
2
- import type { TmuxConfig } from "@oh-my-opencode/tmux-core";
2
+ import type { TmuxConfig } from "@matrixos/tmux-core";
3
3
  export type PluginContext = Parameters<Plugin>[0];
4
4
  export type PluginInstance = Awaited<ReturnType<Plugin>>;
5
5
  type ChatHeadersHook = PluginInstance extends {
@@ -1,4 +1,4 @@
1
- import type { ResolvedProfile } from "@oh-my-opencode/omo-config-core";
1
+ import type { ResolvedProfile } from "@matrixos/omo-config-core";
2
2
  /**
3
3
  * Merge multiple resolved profiles into one, last-wins.
4
4
  *
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/archive-entry-validator";
1
+ export * from "@matrixos/utils/archive-entry-validator";
@@ -1 +1 @@
1
- export { bunFile, bunWrite, type BunFileLike } from "@oh-my-opencode/utils/runtime";
1
+ export { bunFile, bunWrite, type BunFileLike } from "@matrixos/utils/runtime";
@@ -1 +1 @@
1
- export { createNodeSpawnOptions, createNodeSpawnSyncOptions, spawn, spawnSync, type SpawnedProcess, type SpawnOptions, type SpawnSyncResult, } from "@oh-my-opencode/utils/runtime";
1
+ export { createNodeSpawnOptions, createNodeSpawnSyncOptions, spawn, spawnSync, type SpawnedProcess, type SpawnOptions, type SpawnSyncResult, } from "@matrixos/utils/runtime";
@@ -1 +1 @@
1
- export { bunWhich } from "@oh-my-opencode/utils/runtime";
1
+ export { bunWhich } from "@matrixos/utils/runtime";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/classify-path-environment";
1
+ export * from "@matrixos/utils/classify-path-environment";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/command-executor/embedded-commands";
1
+ export * from "@matrixos/utils/command-executor/embedded-commands";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/command-executor/execute-command";
1
+ export * from "@matrixos/utils/command-executor/execute-command";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/command-executor/execute-hook-command";
1
+ export * from "@matrixos/utils/command-executor/execute-hook-command";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/command-executor/home-directory";
1
+ export * from "@matrixos/utils/command-executor/home-directory";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/command-executor/resolve-commands-in-text";
1
+ export * from "@matrixos/utils/command-executor/resolve-commands-in-text";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/command-executor/shell-path";
1
+ export * from "@matrixos/utils/command-executor/shell-path";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/command-executor";
1
+ export * from "@matrixos/utils/command-executor";
@@ -1 +1 @@
1
- export { containsPath, isWithinProject } from "@oh-my-opencode/utils";
1
+ export { containsPath, isWithinProject } from "@matrixos/utils";
@@ -1,2 +1,2 @@
1
- export type { ContextLimitModelCacheState } from "@oh-my-opencode/model-core";
2
- export { resolveActualContextLimit } from "@oh-my-opencode/model-core";
1
+ export type { ContextLimitModelCacheState } from "@matrixos/model-core";
2
+ export { resolveActualContextLimit } from "@matrixos/model-core";
@@ -1 +1 @@
1
- export { deepMerge, isPlainObject } from "@oh-my-opencode/utils";
1
+ export { deepMerge, isPlainObject } from "@matrixos/utils";
@@ -1 +1 @@
1
- export { extractSemverFromOutput } from "@oh-my-opencode/utils";
1
+ export { extractSemverFromOutput } from "@matrixos/utils";
@@ -1 +1 @@
1
- export { parseFallbackModelEntry, parseFallbackModelObjectEntry, findMostSpecificFallbackEntry, buildFallbackChainFromModels, } from "@oh-my-opencode/model-core";
1
+ export { parseFallbackModelEntry, parseFallbackModelObjectEntry, findMostSpecificFallbackEntry, buildFallbackChainFromModels, } from "@matrixos/model-core";
@@ -1 +1 @@
1
- export { isMarkdownFile, isSymbolicLink, resolveSymlink, resolveSymlinkAsync } from "@oh-my-opencode/utils";
1
+ export { isMarkdownFile, isSymbolicLink, resolveSymlink, resolveSymlinkAsync } from "@matrixos/utils";
@@ -1 +1 @@
1
- export { parseFrontmatter, type FrontmatterResult } from "@oh-my-opencode/utils";
1
+ export { parseFrontmatter, type FrontmatterResult } from "@matrixos/utils";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/git-worktree/collect-git-diff-stats";
1
+ export * from "@matrixos/utils/git-worktree/collect-git-diff-stats";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/git-worktree/format-file-changes";
1
+ export * from "@matrixos/utils/git-worktree/format-file-changes";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/git-worktree/index";
1
+ export * from "@matrixos/utils/git-worktree/index";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/git-worktree/parse-diff-numstat";
1
+ export * from "@matrixos/utils/git-worktree/parse-diff-numstat";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/git-worktree/parse-status-porcelain-line";
1
+ export * from "@matrixos/utils/git-worktree/parse-status-porcelain-line";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/git-worktree/parse-status-porcelain";
1
+ export * from "@matrixos/utils/git-worktree/parse-status-porcelain";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/git-worktree/types";
1
+ export * from "@matrixos/utils/git-worktree/types";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/internal-initiator-marker";
1
+ export * from "@matrixos/utils/internal-initiator-marker";
@@ -1 +1 @@
1
- export { clearPluginConfigFileDetectionCache, detectConfigFile, detectPluginConfigFile, parseJsonc, parseJsoncSafe, readJsoncFile, type DetectPluginConfigFileOptions, type JsoncParseResult, } from "@oh-my-opencode/utils";
1
+ export { clearPluginConfigFileDetectionCache, detectConfigFile, detectPluginConfigFile, parseJsonc, parseJsoncSafe, readJsoncFile, type DetectPluginConfigFileOptions, type JsoncParseResult, } from "@matrixos/utils";
@@ -1,4 +1,4 @@
1
- import { type LoggerTestOverrides } from "@oh-my-opencode/utils";
1
+ import { type LoggerTestOverrides } from "@matrixos/utils";
2
2
  export declare const log: (message: string, data?: unknown) => void;
3
3
  export declare const getLogFilePath: () => string;
4
4
  export declare function _setLoggerForTesting(overrides: LoggerTestOverrides): void;
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/migration/agent-category";
1
+ export * from "@matrixos/utils/migration/agent-category";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/migration/agent-names";
1
+ export * from "@matrixos/utils/migration/agent-names";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/migration/config-migration";
1
+ export * from "@matrixos/utils/migration/config-migration";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/migration/hook-names";
1
+ export * from "@matrixos/utils/migration/hook-names";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/migration/migrations-sidecar";
1
+ export * from "@matrixos/utils/migration/migrations-sidecar";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/migration/model-versions";
1
+ export * from "@matrixos/utils/migration/model-versions";
@@ -1 +1 @@
1
- export * from "@oh-my-opencode/utils/migration";
1
+ export * from "@matrixos/utils/migration";