@mycadet/assistant 0.13.0-dev.202610311714.d661ca6 → 0.13.0-dev.202611012320.cea2f8a

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 (790) hide show
  1. package/Dockerfile +1 -0
  2. package/eslint.config.mjs +8 -0
  3. package/package.json +2 -2
  4. package/src/__tests__/add-message-preassigned-id.test.ts +1 -1
  5. package/src/__tests__/agent-loop-compacted-history-transform.test.ts +1 -1
  6. package/src/__tests__/agent-loop-compaction-events.test.ts +2 -2
  7. package/src/__tests__/agent-loop-compaction-strip.test.ts +1 -1
  8. package/src/__tests__/agent-loop-exit-reason.test.ts +2 -2
  9. package/src/__tests__/agent-loop-mutable-latest-user-message.test.ts +1 -1
  10. package/src/__tests__/agent-loop-output-hooks.test.ts +3 -5
  11. package/src/__tests__/agent-loop-override-profile.test.ts +1 -1
  12. package/src/__tests__/agent-loop-provider-error-recording.test.ts +1 -1
  13. package/src/__tests__/agent-loop-regrowth-guard.test.ts +1 -1
  14. package/src/__tests__/agent-loop-resume-interrupted.test.ts +1 -1
  15. package/src/__tests__/agent-loop.test.ts +5 -3
  16. package/src/__tests__/anthropic-provider.test.ts +2 -5
  17. package/src/__tests__/approval-message-composer.test.ts +2 -4
  18. package/src/__tests__/ask-question-resolver.test.ts +2 -1
  19. package/src/__tests__/assistant-attachments.test.ts +3 -2
  20. package/src/__tests__/assistant-event-targeting.test.ts +2 -1
  21. package/src/__tests__/attachments-store.test.ts +1 -1
  22. package/src/__tests__/browser-identifier-parity-guard.test.ts +1 -1
  23. package/src/__tests__/browser-skill-endstate.test.ts +1 -1
  24. package/src/__tests__/call-domain.test.ts +1 -1
  25. package/src/__tests__/call-setup-flow-name-capture.test.ts +2 -1
  26. package/src/__tests__/call-setup-flow-verification.test.ts +2 -1
  27. package/src/__tests__/call-setup-flow.test.ts +2 -1
  28. package/src/__tests__/call-site-routing-provider.test.ts +1 -1
  29. package/src/__tests__/call-start-guardian-guard.test.ts +2 -1
  30. package/src/__tests__/ces-rpc-credential-backend.test.ts +2 -1
  31. package/src/__tests__/ces-startup-timeout.test.ts +2 -1
  32. package/src/__tests__/channel-approval-routes.test.ts +2 -4
  33. package/src/__tests__/channel-inbound-disk-pressure.test.ts +2 -2
  34. package/src/__tests__/channel-invite-transport.test.ts +1 -1
  35. package/src/__tests__/channel-policy.test.ts +3 -1
  36. package/src/__tests__/channel-readiness-service.test.ts +2 -1
  37. package/src/__tests__/channel-setup-panel-ack.test.ts +1 -1
  38. package/src/__tests__/checker.test.ts +1 -1
  39. package/src/__tests__/computer-use-screenshot-attachments.test.ts +2 -4
  40. package/src/__tests__/computer-use-skill-manifest-regression.test.ts +1 -1
  41. package/src/__tests__/config-schema.test.ts +5 -7
  42. package/src/__tests__/context-window-manager-overflow-rung.test.ts +2 -1
  43. package/src/__tests__/conversation-agent-loop-disk-pressure.test.ts +1 -1
  44. package/src/__tests__/conversation-agent-loop-fatal-cleanup.test.ts +1 -1
  45. package/src/__tests__/conversation-agent-loop-inference-profile.test.ts +2 -1
  46. package/src/__tests__/conversation-agent-loop-overflow.test.ts +2 -1
  47. package/src/__tests__/conversation-agent-loop.test.ts +2 -2
  48. package/src/__tests__/conversation-attention-telegram.test.ts +2 -4
  49. package/src/__tests__/conversation-clean-command.test.ts +1 -1
  50. package/src/__tests__/conversation-disk-view-integration.test.ts +2 -4
  51. package/src/__tests__/conversation-disk-view.test.ts +2 -2
  52. package/src/__tests__/conversation-error.test.ts +1 -1
  53. package/src/__tests__/conversation-fork-crud.test.ts +1 -1
  54. package/src/__tests__/conversation-fork-retrospective.test.ts +1 -1
  55. package/src/__tests__/conversation-message-sync-tags.test.ts +2 -4
  56. package/src/__tests__/conversation-queue.test.ts +2 -1
  57. package/src/__tests__/conversation-routes-disk-view.test.ts +2 -4
  58. package/src/__tests__/conversation-runtime-assembly.test.ts +1 -1
  59. package/src/__tests__/conversation-runtime-workspace.test.ts +2 -1
  60. package/src/__tests__/conversation-skill-tools.test.ts +2 -2
  61. package/src/__tests__/conversation-slash-queue.test.ts +2 -4
  62. package/src/__tests__/conversation-surfaces-action-delivery.test.ts +2 -1
  63. package/src/__tests__/conversation-surfaces-app-open.test.ts +1 -1
  64. package/src/__tests__/conversation-surfaces-data-persist.test.ts +3 -5
  65. package/src/__tests__/conversation-surfaces-deselection.test.ts +5 -7
  66. package/src/__tests__/conversation-surfaces-history-restored-completion.test.ts +1 -1
  67. package/src/__tests__/conversation-surfaces-queued-emit.test.ts +1 -1
  68. package/src/__tests__/conversation-surfaces-settle-task-progress.test.ts +3 -5
  69. package/src/__tests__/conversation-surfaces-standalone.test.ts +1 -1
  70. package/src/__tests__/conversation-surfaces-state-update.test.ts +2 -2
  71. package/src/__tests__/conversation-surfaces-table-action.test.ts +1 -1
  72. package/src/__tests__/conversation-surfaces-task-progress.test.ts +5 -7
  73. package/src/__tests__/conversation-tool-setup-tools-disabled.test.ts +2 -1
  74. package/src/__tests__/conversation-undo.test.ts +3 -5
  75. package/src/__tests__/conversation-workspace-cache-state.test.ts +1 -1
  76. package/src/__tests__/conversations-defer-cli.test.ts +1 -1
  77. package/src/__tests__/credential-execution-api-key-propagation.test.ts +2 -4
  78. package/src/__tests__/credential-execution-client.test.ts +5 -7
  79. package/src/__tests__/cross-provider-web-search.test.ts +4 -9
  80. package/src/__tests__/db-conversation-tool-surface.test.ts +1 -1
  81. package/src/__tests__/db-mode-sessions-migration.test.ts +1 -1
  82. package/src/__tests__/delete-propagation.test.ts +2 -4
  83. package/src/__tests__/dictation-mode-detection.test.ts +1 -1
  84. package/src/__tests__/disk-pressure-policy.test.ts +1 -1
  85. package/src/__tests__/disk-pressure-tools.test.ts +2 -1
  86. package/src/__tests__/dm-backfill.test.ts +2 -4
  87. package/src/__tests__/dynamic-page-surface.test.ts +3 -5
  88. package/src/__tests__/dynamic-skill-background-guard.test.ts +1 -1
  89. package/src/__tests__/embedding-cloud-proxy-selection.test.ts +1 -1
  90. package/src/__tests__/empty-response-hook.test.ts +7 -10
  91. package/src/__tests__/exploration-drift-hook.test.ts +2 -1
  92. package/src/__tests__/gateway-client-cloud-outbound.test.ts +3 -4
  93. package/src/__tests__/gateway-only-enforcement.test.ts +2 -1
  94. package/src/__tests__/gemini-count-tokens.test.ts +2 -1
  95. package/src/__tests__/gemini-provider.test.ts +1 -1
  96. package/src/__tests__/guardian-expiry-notifier.test.ts +2 -1
  97. package/src/__tests__/guardian-reply-router-answer-mode.test.ts +2 -1
  98. package/src/__tests__/guardian-routing-state.test.ts +1 -1
  99. package/src/__tests__/handlers-user-message-approval-consumption.test.ts +1 -1
  100. package/src/__tests__/headless-browser-mode.test.ts +1 -1
  101. package/src/__tests__/helpers/channel-test-adapter.ts +4 -8
  102. package/src/__tests__/helpers/hub-clients.ts +5 -5
  103. package/src/__tests__/helpers/mock-provider.ts +1 -1
  104. package/src/__tests__/helpers/seed-contact-channel.ts +2 -1
  105. package/src/__tests__/hook-broadcast.test.ts +3 -2
  106. package/src/__tests__/host-proxy-interface.test.ts +2 -1
  107. package/src/__tests__/host-proxy-preactivation.test.ts +1 -1
  108. package/src/__tests__/identity-routes.test.ts +4 -4
  109. package/src/__tests__/image-recovery-hook.test.ts +3 -5
  110. package/src/__tests__/image-service-dispatcher.test.ts +2 -5
  111. package/src/__tests__/inbound-invite-redemption.test.ts +2 -4
  112. package/src/__tests__/inference-no-mode-boot-e2e.test.ts +1 -1
  113. package/src/__tests__/injector-disk-pressure.test.ts +2 -4
  114. package/src/__tests__/list-messages-system-card.test.ts +2 -2
  115. package/src/__tests__/max-tokens-continue-hook.test.ts +3 -5
  116. package/src/__tests__/mcp-tool-annotations-risk.test.ts +1 -1
  117. package/src/__tests__/memory-jobs-worker-cleanup-cadence.test.ts +1 -1
  118. package/src/__tests__/mode-session-recovery.test.ts +1 -1
  119. package/src/__tests__/native-web-search.test.ts +1 -1
  120. package/src/__tests__/openai-provider.test.ts +2 -2
  121. package/src/__tests__/openai-responses-provider.test.ts +3 -6
  122. package/src/__tests__/parallel-tool.benchmark.test.ts +1 -1
  123. package/src/__tests__/personal-memory-auth-bypass.test.ts +2 -1
  124. package/src/__tests__/platform-bash-auto-approve.test.ts +1 -1
  125. package/src/__tests__/plugin-bootstrap.test.ts +2 -1
  126. package/src/__tests__/plugin-disabled-state.test.ts +3 -6
  127. package/src/__tests__/plugin-effective-enabled-set.test.ts +2 -1
  128. package/src/__tests__/plugin-injector-contribution.test.ts +2 -1
  129. package/src/__tests__/plugin-secret-patterns.test.ts +0 -13
  130. package/src/__tests__/plugin-tool-contribution.test.ts +3 -2
  131. package/src/__tests__/plugin-types.test.ts +2 -2
  132. package/src/__tests__/pricing.test.ts +1 -1
  133. package/src/__tests__/process-message-display-content.test.ts +1 -1
  134. package/src/__tests__/ratelimit.test.ts +1 -1
  135. package/src/__tests__/reaction-persistence.test.ts +2 -4
  136. package/src/__tests__/registry.test.ts +1 -1
  137. package/src/__tests__/require-fresh-approval.test.ts +2 -1
  138. package/src/__tests__/resource-pressure-guard.test.ts +1 -1
  139. package/src/__tests__/runtime-attachment-metadata.test.ts +2 -4
  140. package/src/__tests__/schedule-tools.test.ts +1 -1
  141. package/src/__tests__/schema-transforms.test.ts +1 -1
  142. package/src/__tests__/secure-keys-cloud-failover.test.ts +2 -1
  143. package/src/__tests__/secure-keys.test.ts +4 -6
  144. package/src/__tests__/settings-routes.test.ts +1 -1
  145. package/src/__tests__/sight-frame-retention.test.ts +1 -1
  146. package/src/__tests__/skill-tool-factory.test.ts +1 -1
  147. package/src/__tests__/skillssh-registry.test.ts +3 -5
  148. package/src/__tests__/slack-inbound-verification.test.ts +2 -4
  149. package/src/__tests__/slack-notification-approval-card.test.ts +1 -1
  150. package/src/__tests__/starter-task-flow.test.ts +1 -1
  151. package/src/__tests__/subagent-tool-gate-mode.test.ts +3 -2
  152. package/src/__tests__/surface-completion-in-flight-snapshot.test.ts +1 -1
  153. package/src/__tests__/surface-completion-nudge-hook.test.ts +2 -4
  154. package/src/__tests__/sync-message-contract.test.ts +4 -6
  155. package/src/__tests__/system-prompt.test.ts +2 -1
  156. package/src/__tests__/task-progress-nudge-hook.test.ts +2 -1
  157. package/src/__tests__/telegram-invite-adapter.test.ts +1 -1
  158. package/src/__tests__/thread-backfill.test.ts +1 -1
  159. package/src/__tests__/title-generate-hook.test.ts +3 -5
  160. package/src/__tests__/token-estimator-accuracy.benchmark.test.ts +2 -1
  161. package/src/__tests__/tool-error-hook.test.ts +2 -1
  162. package/src/__tests__/tool-execution-pipeline.benchmark.test.ts +1 -1
  163. package/src/__tests__/tool-executor.test.ts +6 -11
  164. package/src/__tests__/tool-result-spool.test.ts +2 -5
  165. package/src/__tests__/tool-result-truncate-hook.test.ts +2 -1
  166. package/src/__tests__/tools-get-route.test.ts +1 -1
  167. package/src/__tests__/trusted-contact-approval-notifier.test.ts +2 -1
  168. package/src/__tests__/trusted-contact-lifecycle-notifications.test.ts +2 -4
  169. package/src/__tests__/trusted-contact-multichannel.test.ts +2 -4
  170. package/src/__tests__/turn-boundary-resolution.test.ts +1 -1
  171. package/src/__tests__/ui-choice-copy-surfaces.test.ts +5 -7
  172. package/src/__tests__/ui-file-upload-surface.test.ts +3 -5
  173. package/src/__tests__/ui-visual-surface.test.ts +2 -2
  174. package/src/__tests__/ui-voice-picker-surface.test.ts +2 -2
  175. package/src/__tests__/ui-work-result-surface.test.ts +5 -7
  176. package/src/__tests__/url-safety.test.ts +3 -2
  177. package/src/__tests__/workspace-migration-009-backfill-conversation-disk-view.test.ts +1 -1
  178. package/src/__tests__/workspace-migration-013-repair-conversation-disk-view.test.ts +1 -1
  179. package/src/__tests__/workspace-migration-133-collapse-provider-connections.test.ts +1 -1
  180. package/src/__tests__/workspace-tool-loader.test.ts +1 -1
  181. package/src/acp/__tests__/auth-required.test.ts +1 -1
  182. package/src/acp/agent-process.ts +2 -1
  183. package/src/acp/auth-required.ts +0 -2
  184. package/src/acp/client-handler.ts +2 -1
  185. package/src/acp/session-manager.ts +1 -1
  186. package/src/agent/loop-exclusive-tool.test.ts +1 -1
  187. package/src/agent/loop.ts +1 -3
  188. package/src/approvals/guardian-card-withdrawal.ts +2 -2
  189. package/src/approvals/guardian-decision-primitive.ts +2 -2
  190. package/src/approvals/guardian-expiry-notifier.ts +2 -1
  191. package/src/approvals/guardian-request-resolvers.ts +2 -4
  192. package/src/apps/app-store.ts +0 -2
  193. package/src/avatar/__tests__/avatar-manifest.test.ts +2 -1
  194. package/src/avatar/accent-backfill.ts +2 -1
  195. package/src/avatar/avatar-manifest.ts +0 -13
  196. package/src/avatar/avatar-store.ts +4 -3
  197. package/src/avatar/ensure-raster.ts +3 -1
  198. package/src/avatar/notification-avatar.ts +2 -1
  199. package/src/avatar/sync-avatar.test.ts +1 -1
  200. package/src/avatar/traits-png-sync.ts +0 -2
  201. package/src/browser/__tests__/operations.test.ts +1 -1
  202. package/src/browser/operations.ts +0 -2
  203. package/src/calls/__tests__/call-setup-router.test.ts +1 -1
  204. package/src/calls/__tests__/voice-triage-escalate.test.ts +2 -2
  205. package/src/calls/call-controller.ts +1 -1
  206. package/src/calls/call-domain.ts +2 -2
  207. package/src/calls/channel-admission-reader.ts +1 -1
  208. package/src/calls/inbound-trust-reader.ts +1 -1
  209. package/src/calls/progress-narration.ts +2 -5
  210. package/src/calls/telephony-synthesis-language.ts +1 -1
  211. package/src/calls/telephony-tts-capability.ts +1 -1
  212. package/src/calls/tts-call-strategy.ts +1 -1
  213. package/src/calls/twilio-provider.ts +4 -5
  214. package/src/calls/twilio-rest.ts +0 -2
  215. package/src/calls/voice-ingress-preflight.ts +1 -1
  216. package/src/calls/voice-session-bridge.ts +2 -5
  217. package/src/calls/voice-triage-escalate.ts +0 -2
  218. package/src/channels/config.ts +2 -1
  219. package/src/channels/gateway-guardian-requests.ts +0 -11
  220. package/src/channels/gateway-invites.ts +0 -2
  221. package/src/channels/gateway-verification-sessions.ts +0 -2
  222. package/src/channels/plugin-channel-declarations.ts +3 -1
  223. package/src/channels/types.ts +0 -11
  224. package/src/cli/commands/__tests__/browser.test.ts +1 -1
  225. package/src/cli/commands/contacts.ts +1 -1
  226. package/src/cli/commands/conversations-defer.ts +0 -2
  227. package/src/cli/commands/domain.ts +1 -1
  228. package/src/cli/commands/email.ts +1 -1
  229. package/src/cli/commands/inference-providers.ts +2 -1
  230. package/src/cli/commands/memory/__tests__/memory-ingest.test.ts +9 -12
  231. package/src/cli/commands/memory/memory-ingest.ts +1 -1
  232. package/src/cli/commands/notifications.ts +1 -1
  233. package/src/cli/commands/oauth/apps.ts +1 -1
  234. package/src/cli/commands/oauth/connect.ts +1 -1
  235. package/src/cli/commands/oauth/disconnect.ts +1 -1
  236. package/src/cli/commands/oauth/ping.ts +1 -1
  237. package/src/cli/commands/oauth/providers.ts +1 -1
  238. package/src/cli/commands/plugins.ts +1 -1
  239. package/src/cli/lib/cache-fs.ts +27 -3
  240. package/src/cli/lib/uninstall-plugin.ts +1 -7
  241. package/src/cli/logger.ts +0 -2
  242. package/src/config/__tests__/default-profile-catalog.test.ts +1 -1
  243. package/src/config/__tests__/default-provider.test.ts +1 -1
  244. package/src/config/bundled-skills/app-builder/tools/app-create.ts +1 -1
  245. package/src/config/bundled-skills/app-builder/tools/app-delete.ts +1 -1
  246. package/src/config/bundled-skills/app-builder/tools/app-generate-icon.ts +1 -1
  247. package/src/config/bundled-skills/app-builder/tools/app-open.ts +1 -1
  248. package/src/config/bundled-skills/app-builder/tools/app-refresh.ts +1 -1
  249. package/src/config/bundled-skills/app-builder/tools/app-update.ts +1 -1
  250. package/src/config/bundled-skills/contacts/tools/contact-merge.ts +1 -1
  251. package/src/config/bundled-skills/image-studio/tools/media-generate-image.ts +2 -4
  252. package/src/config/bundled-skills/media-processing/tools/analyze-keyframes.ts +2 -4
  253. package/src/config/bundled-skills/media-processing/tools/extract-keyframes.ts +2 -6
  254. package/src/config/bundled-skills/media-processing/tools/generate-clip.ts +2 -4
  255. package/src/config/bundled-skills/media-processing/tools/ingest-media.ts +1 -1
  256. package/src/config/bundled-skills/media-processing/tools/query-media-events.ts +2 -6
  257. package/src/config/bundled-skills/messaging/tools/messaging-analyze-style.ts +2 -4
  258. package/src/config/bundled-skills/messaging/tools/messaging-archive-by-sender.ts +2 -4
  259. package/src/config/bundled-skills/messaging/tools/messaging-draft.ts +1 -1
  260. package/src/config/bundled-skills/messaging/tools/messaging-mark-read.ts +2 -4
  261. package/src/config/bundled-skills/messaging/tools/messaging-send.ts +2 -4
  262. package/src/config/bundled-skills/phone-calls/tools/call-end.ts +61 -2
  263. package/src/config/bundled-skills/phone-calls/tools/call-start.ts +104 -2
  264. package/src/config/bundled-skills/phone-calls/tools/call-status.ts +77 -2
  265. package/src/config/bundled-skills/playbooks/tools/playbook-create.ts +2 -4
  266. package/src/config/bundled-skills/playbooks/tools/playbook-delete.ts +2 -4
  267. package/src/config/bundled-skills/playbooks/tools/playbook-update.ts +2 -4
  268. package/src/config/bundled-skills/sequences/tools/sequence-create.ts +2 -4
  269. package/src/config/bundled-skills/sequences/tools/sequence-delete.ts +2 -4
  270. package/src/config/bundled-skills/sequences/tools/sequence-enroll.ts +2 -4
  271. package/src/config/bundled-skills/sequences/tools/sequence-import.ts +2 -4
  272. package/src/config/bundled-skills/sequences/tools/sequence-update.ts +2 -4
  273. package/src/config/bundled-skills/settings/tools/navigate-settings-tab.ts +1 -1
  274. package/src/config/bundled-skills/settings/tools/open-system-settings.ts +1 -1
  275. package/src/config/bundled-skills/settings/tools/voice-config-update.ts +1 -1
  276. package/src/config/bundled-skills/transcribe/tools/transcribe-media.ts +2 -4
  277. package/src/config/default-profile-catalog.ts +0 -2
  278. package/src/config/default-provider.ts +0 -2
  279. package/src/config/defaults.ts +1 -1
  280. package/src/config/env-registry.ts +0 -1
  281. package/src/config/llm-context-resolution.ts +1 -1
  282. package/src/config/llm-resolver.ts +2 -4
  283. package/src/config/loader.ts +1 -1
  284. package/src/config/schema.ts +0 -9
  285. package/src/config/schemas/stt.ts +0 -2
  286. package/src/config/skill-state.ts +2 -1
  287. package/src/contacts/contact-store.ts +1 -1
  288. package/src/context/compactor.ts +3 -2
  289. package/src/context/token-estimator.ts +2 -6
  290. package/src/conversations/job-handlers/summarization.ts +1 -1
  291. package/src/credential-execution/ces-connect.ts +4 -5
  292. package/src/credential-execution/ces-runtime.ts +3 -1
  293. package/src/credential-execution/client.ts +0 -10
  294. package/src/credential-execution/process-manager.ts +2 -1
  295. package/src/credential-execution/startup-timeout.ts +1 -1
  296. package/src/daemon/__tests__/conversation-surfaces-launch.test.ts +1 -1
  297. package/src/daemon/__tests__/conversation-tool-setup-exclude.test.ts +1 -1
  298. package/src/daemon/__tests__/conversation-tool-setup-plugin-scope.test.ts +1 -1
  299. package/src/daemon/__tests__/embedding-reconcile.test.ts +1 -1
  300. package/src/daemon/__tests__/lifecycle-embedding-reconcile.test.ts +1 -1
  301. package/src/daemon/approval-generators.ts +1 -1
  302. package/src/daemon/assistant-attachments.ts +0 -2
  303. package/src/daemon/browser-mode-session.ts +0 -2
  304. package/src/daemon/conversation-agent-loop-handlers.ts +3 -5
  305. package/src/daemon/conversation-agent-loop.ts +7 -7
  306. package/src/daemon/conversation-attachments.ts +1 -1
  307. package/src/daemon/conversation-error.ts +1 -1
  308. package/src/daemon/conversation-lifecycle.ts +4 -2
  309. package/src/daemon/conversation-messaging.ts +2 -2
  310. package/src/daemon/conversation-process.ts +4 -4
  311. package/src/daemon/conversation-queue-manager.ts +1 -1
  312. package/src/daemon/conversation-runtime-assembly.ts +4 -4
  313. package/src/daemon/conversation-skill-tools.ts +2 -1
  314. package/src/daemon/conversation-surfaces.ts +16 -27
  315. package/src/daemon/conversation-tool-setup.ts +6 -14
  316. package/src/daemon/conversation-usage.ts +3 -3
  317. package/src/daemon/conversation.ts +14 -18
  318. package/src/daemon/disk-pressure-background-gate.ts +3 -5
  319. package/src/daemon/disk-pressure-guard.ts +0 -7
  320. package/src/daemon/disk-pressure-policy.ts +1 -1
  321. package/src/daemon/doordash-steps.ts +1 -1
  322. package/src/daemon/embedding-reconcile.ts +1 -1
  323. package/src/daemon/external-plugins-bootstrap.ts +2 -5
  324. package/src/daemon/handlers/config-channels.ts +2 -1
  325. package/src/daemon/handlers/conversations.ts +3 -3
  326. package/src/daemon/handlers/dictation.ts +1 -1
  327. package/src/daemon/handlers/recording.ts +2 -1
  328. package/src/daemon/handlers/shared.ts +1 -1
  329. package/src/daemon/handlers/skills.ts +2 -2
  330. package/src/daemon/host-proxy-base.ts +1 -1
  331. package/src/daemon/host-proxy-preactivation.ts +2 -1
  332. package/src/daemon/message-protocol.ts +0 -10
  333. package/src/daemon/message-types/computer-use.ts +0 -2
  334. package/src/daemon/message-types/conversations.ts +4 -5
  335. package/src/daemon/message-types/host-ui-snapshot.ts +0 -2
  336. package/src/daemon/message-types/messages.ts +3 -1
  337. package/src/daemon/message-types/skills.ts +0 -1
  338. package/src/daemon/message-types/surfaces.ts +1 -81
  339. package/src/daemon/message-types/sync.ts +0 -2
  340. package/src/daemon/process-message.ts +1 -1
  341. package/src/daemon/providers-setup.ts +1 -1
  342. package/src/daemon/reaction-record.ts +3 -5
  343. package/src/daemon/resource-pressure-guard.ts +1 -6
  344. package/src/daemon/trust-context-types.ts +2 -3
  345. package/src/daemon/trust-context.ts +2 -1
  346. package/src/daemon/wake-conversation-ops.ts +2 -1
  347. package/src/desktop/desktop-session-manager.ts +3 -1
  348. package/src/heartbeat/heartbeat-service.ts +1 -1
  349. package/src/home/__tests__/feed-types.test.ts +3 -1
  350. package/src/home/feed-types.ts +0 -21
  351. package/src/home/feed-writer.ts +4 -7
  352. package/src/home/post-connect-feed.ts +1 -1
  353. package/src/home/suggested-prompts-cache.ts +1 -1
  354. package/src/home/suggested-prompts.ts +1 -1
  355. package/src/hooks/registry.ts +2 -1
  356. package/src/ipc/__tests__/browser-ipc.test.ts +3 -2
  357. package/src/ipc/__tests__/ui-request-route.test.ts +1 -1
  358. package/src/live-voice/__tests__/live-voice-continuation-fork-hydration.test.ts +2 -1
  359. package/src/live-voice/__tests__/live-voice-sight-frame-inline.test.ts +1 -1
  360. package/src/live-voice/__tests__/live-voice-tts.test.ts +4 -5
  361. package/src/live-voice/__tests__/live-voice-vad.test.ts +1 -1
  362. package/src/live-voice/live-voice-credential-preflight.ts +1 -1
  363. package/src/live-voice/live-voice-tts.ts +0 -2
  364. package/src/mcp/startup.ts +0 -2
  365. package/src/media/__tests__/image-models.test.ts +1 -1
  366. package/src/media/image-service.ts +0 -2
  367. package/src/media/job-handlers/media-processing.ts +2 -2
  368. package/src/messaging/provider-message-metadata.ts +1 -2
  369. package/src/messaging/providers/callback-routing.ts +2 -1
  370. package/src/messaging/providers/channel-transport.ts +1 -1
  371. package/src/messaging/reaction-envelopes.ts +1 -1
  372. package/src/messaging/read-provider-metadata.ts +2 -1
  373. package/src/messaging/style-analyzer.ts +2 -1
  374. package/src/monitoring/log-retention-sweeper.ts +65 -0
  375. package/src/monitoring/worker.ts +9 -0
  376. package/src/notifications/__tests__/edit-notification.test.ts +1 -1
  377. package/src/notifications/__tests__/home-feed-side-effect.test.ts +9 -6
  378. package/src/notifications/adapters/slack.ts +1 -1
  379. package/src/notifications/approval-card-builder.ts +2 -4
  380. package/src/notifications/broadcaster.ts +2 -2
  381. package/src/notifications/conversation-pairing.ts +3 -1
  382. package/src/notifications/delivered-post-record.ts +2 -1
  383. package/src/notifications/destination-resolver.ts +1 -1
  384. package/src/notifications/edit-notification.ts +3 -5
  385. package/src/notifications/guardian-delivery-recorder.ts +1 -1
  386. package/src/notifications/guardian-feed-projection.ts +3 -2
  387. package/src/notifications/home-feed-side-effect.ts +6 -8
  388. package/src/permissions/approval-policy.test.ts +1 -1
  389. package/src/permissions/approval-policy.ts +1 -1
  390. package/src/permissions/checker.test.ts +1 -1
  391. package/src/permissions/checker.ts +3 -6
  392. package/src/permissions/prompter.ts +3 -1
  393. package/src/permissions/types.ts +0 -3
  394. package/src/persistence/__tests__/client-connection-events-store.test.ts +1 -1
  395. package/src/persistence/attachments-store.ts +3 -1
  396. package/src/persistence/bookmark-crud.ts +3 -1
  397. package/src/persistence/conversation-crud.ts +4 -16
  398. package/src/persistence/conversation-disk-view.ts +0 -3
  399. package/src/persistence/conversation-key-store.ts +1 -1
  400. package/src/persistence/conversation-mode-sessions.test.ts +1 -1
  401. package/src/persistence/conversation-plugin-facade.ts +1 -1
  402. package/src/persistence/conversation-title-service.ts +0 -2
  403. package/src/persistence/conversation-tool-surface.ts +1 -1
  404. package/src/persistence/conversation-types.ts +3 -1
  405. package/src/persistence/delivery-channels.ts +1 -1
  406. package/src/persistence/delivery-crud.ts +7 -9
  407. package/src/persistence/delivery-status.ts +2 -2
  408. package/src/persistence/embeddings/__tests__/embedding-identity.test.ts +1 -1
  409. package/src/persistence/embeddings/embed.ts +3 -2
  410. package/src/persistence/embeddings/embedding-backend.test.ts +1 -1
  411. package/src/persistence/embeddings/embedding-backend.ts +1 -5
  412. package/src/persistence/embeddings/embedding-cache.ts +1 -1
  413. package/src/persistence/embeddings/embedding-identity.ts +1 -1
  414. package/src/persistence/embeddings/plugin-facade.ts +0 -9
  415. package/src/persistence/embeddings/plugin-index.ts +1 -1
  416. package/src/persistence/embeddings/qdrant-client.test.ts +1 -1
  417. package/src/persistence/embeddings/qdrant-client.ts +1 -1
  418. package/src/persistence/job-handlers/__tests__/message-lexical-backfill.test.ts +1 -1
  419. package/src/persistence/job-handlers/__tests__/message-lexical.test.ts +1 -1
  420. package/src/persistence/job-handlers/cleanup.ts +1 -1
  421. package/src/persistence/job-handlers/message-lexical-backfill.ts +1 -1
  422. package/src/persistence/job-handlers/message-lexical.ts +1 -1
  423. package/src/persistence/job-utils.ts +1 -3
  424. package/src/persistence/media-store.ts +3 -1
  425. package/src/persistence/message-cursor.ts +0 -2
  426. package/src/persistence/migrations/229-delete-private-conversations.test.ts +1 -1
  427. package/src/persistence/migrations/275-tool-invocations-add-skill-id.test.ts +1 -1
  428. package/src/persistence/migrations/276-tool-invocations-created-at-id-index.test.ts +1 -1
  429. package/src/persistence/migrations/278-tool-invocations-telemetry-columns.test.ts +1 -1
  430. package/src/persistence/migrations/279-create-skill-loaded-events.test.ts +1 -1
  431. package/src/persistence/migrations/280-conversations-surfaced-at.test.ts +1 -1
  432. package/src/persistence/migrations/282-schedule-inference-profile.test.ts +1 -1
  433. package/src/persistence/migrations/283-memory-v3-selections-message-id-and-sections.test.ts +1 -1
  434. package/src/persistence/migrations/290-schedule-capabilities.test.ts +1 -1
  435. package/src/persistence/migrations/292-schedule-default-no-reuse-conversation.test.ts +1 -1
  436. package/src/persistence/migrations/296-rewrite-balanced-economy-profile-pins.test.ts +1 -1
  437. package/src/persistence/migrations/306-rewrite-frontier-profile-pins.test.ts +1 -1
  438. package/src/persistence/migrations/307-acp-session-history-usage-columns.test.ts +1 -1
  439. package/src/persistence/migrations/308-acp-session-history-token-columns.test.ts +1 -1
  440. package/src/persistence/migrations/323-delete-non-default-memory-scopes.test.ts +1 -1
  441. package/src/persistence/migrations/342-add-conversation-parent-id.test.ts +1 -1
  442. package/src/persistence/migrations/352-drop-schedule-skill-script-handoff.test.ts +1 -1
  443. package/src/persistence/migrations/353-add-llm-usage-conversation-type.test.ts +1 -1
  444. package/src/persistence/migrations/356-add-subagent-parent-tool-use-id.test.ts +1 -1
  445. package/src/persistence/migrations/360-add-document-workspace-path.test.ts +1 -1
  446. package/src/persistence/migrations/361-normalize-managed-connection-rows.test.ts +1 -1
  447. package/src/persistence/migrations/362-add-conversation-subagent-kind.test.ts +1 -1
  448. package/src/persistence/migrations/363-backfill-schedule-inference-profile.test.ts +1 -1
  449. package/src/persistence/migrations/364-add-schedule-source-key.test.ts +1 -1
  450. package/src/persistence/migrations/366-chatgpt-subscription-row-identity.test.ts +1 -1
  451. package/src/persistence/migrations/377-add-subagent-budget-stop-reason.test.ts +1 -1
  452. package/src/persistence/migrations/378-create-conversation-tool-surfaces.test.ts +1 -1
  453. package/src/persistence/migrations/379-oauth-providers-response-ok-field.test.ts +1 -1
  454. package/src/persistence/migrations/380-conversation-tool-surfaces-delegate-independent-tasks.test.ts +1 -1
  455. package/src/persistence/migrations/384-add-document-revision.test.ts +1 -1
  456. package/src/persistence/migrations/385-create-document-revisions.test.ts +1 -1
  457. package/src/persistence/migrations/__tests__/014-backfill-inbox-thread-state.test.ts +1 -1
  458. package/src/persistence/migrations/__tests__/131-drop-legacy-member-guardian-tables.test.ts +1 -1
  459. package/src/persistence/migrations/__tests__/136-drop-assistant-id-columns.test.ts +1 -1
  460. package/src/persistence/migrations/__tests__/157-invite-contact-id.test.ts +1 -1
  461. package/src/persistence/migrations/__tests__/234-memory-v2-activation-logs.test.ts +1 -1
  462. package/src/persistence/migrations/__tests__/244-provider-connection-status-label.test.ts +1 -1
  463. package/src/persistence/migrations/__tests__/245-memory-retrospective-state.test.ts +1 -1
  464. package/src/persistence/migrations/__tests__/246-backfill-provider-connection-label.test.ts +1 -1
  465. package/src/persistence/migrations/__tests__/267-llm-usage-events-add-assistant-version.test.ts +1 -1
  466. package/src/persistence/migrations/__tests__/281-memory-retrospective-remembered-log.test.ts +1 -1
  467. package/src/persistence/migrations/__tests__/289-contact-channels-unique-ext-user.test.ts +1 -1
  468. package/src/persistence/migrations/__tests__/291-contact-channels-renormalize-addresses.test.ts +1 -1
  469. package/src/persistence/migrations/__tests__/315-create-a2a-invites.test.ts +1 -1
  470. package/src/persistence/migrations/__tests__/316-drop-contact-channels-invite-id.test.ts +1 -1
  471. package/src/persistence/migrations/__tests__/318-drop-contact-channel-telemetry.test.ts +1 -1
  472. package/src/persistence/migrations/__tests__/319-remove-legacy-managed-connections.test.ts +1 -1
  473. package/src/persistence/migrations/__tests__/367-create-watch-timeline-entries.test.ts +1 -1
  474. package/src/persistence/migrations/__tests__/368-watch-timeline-screenshot-blob.test.ts +1 -1
  475. package/src/persistence/migrations/__tests__/370-acp-session-history-auth-error-code.test.ts +1 -1
  476. package/src/persistence/migrations/__tests__/371-acp-session-history-auth-error-credential.test.ts +1 -1
  477. package/src/persistence/migrations/__tests__/372-create-acp-refused-credentials.test.ts +1 -1
  478. package/src/persistence/migrations/__tests__/373-acp-auth-marker-index.test.ts +1 -1
  479. package/src/persistence/migrations/__tests__/375-create-channel-outbound-posts.test.ts +1 -1
  480. package/src/persistence/migrations/__tests__/382-create-client-connection-events.test.ts +1 -1
  481. package/src/persistence/migrations/__tests__/383-normalize-opencode-host-connections.test.ts +1 -1
  482. package/src/persistence/migrations/__tests__/387-drop-telemetry-tables.test.ts +1 -1
  483. package/src/persistence/migrations/__tests__/run-migrations.test.ts +1 -1
  484. package/src/plugin-api/conversation-turn.ts +2 -1
  485. package/src/plugin-api/index.ts +29 -25
  486. package/src/plugin-api/plugin-channel-turn-trust.ts +1 -1
  487. package/src/plugin-api/types.ts +0 -23
  488. package/src/plugins/defaults/compaction/compact.ts +1 -1
  489. package/src/plugins/defaults/compaction/context-overflow-reducer.ts +2 -2
  490. package/src/plugins/defaults/compaction/window-manager.ts +3 -4
  491. package/src/plugins/defaults/empty-response/hooks/post-model-call.ts +0 -1
  492. package/src/plugins/defaults/memory/__tests__/indexer-tier-dispatch.test.ts +1 -1
  493. package/src/plugins/defaults/memory/__tests__/jobs-worker-retrospective-sweep.test.ts +1 -1
  494. package/src/plugins/defaults/memory/__tests__/jobs-worker-v1-graph-substrate-noop.test.ts +1 -1
  495. package/src/plugins/defaults/memory/__tests__/memory-retrospective-sweep.test.ts +1 -1
  496. package/src/plugins/defaults/memory/__tests__/memory-retrospective-trigger-check.test.ts +1 -1
  497. package/src/plugins/defaults/memory/__tests__/memory-retrospective-wake-chain.test.ts +1 -1
  498. package/src/plugins/defaults/memory/embeddings.ts +1 -1
  499. package/src/plugins/defaults/memory/graph/__tests__/conversation-graph-memory-v2-routing.test.ts +1 -1
  500. package/src/plugins/defaults/memory/graph/conversation-graph-memory.ts +1 -1
  501. package/src/plugins/defaults/memory/graph/graph-search.ts +1 -1
  502. package/src/plugins/defaults/memory/graph/tool-handlers.test.ts +1 -1
  503. package/src/plugins/defaults/memory/graph/tool-handlers.ts +1 -1
  504. package/src/plugins/defaults/memory/graph-topology/build-memory-graph.ts +1 -1
  505. package/src/plugins/defaults/memory/hooks/shutdown.ts +1 -1
  506. package/src/plugins/defaults/memory/host-utils.ts +0 -3
  507. package/src/plugins/defaults/memory/indexer.ts +2 -2
  508. package/src/plugins/defaults/memory/job-handlers.ts +1 -1
  509. package/src/plugins/defaults/memory/jobs/embed-concept-page.ts +2 -2
  510. package/src/plugins/defaults/memory/jobs-worker.ts +2 -2
  511. package/src/plugins/defaults/memory/memory-retrospective-accounting.ts +1 -1
  512. package/src/plugins/defaults/memory/memory-retrospective-enqueue.ts +2 -1
  513. package/src/plugins/defaults/memory/memory-retrospective-job.ts +1 -1
  514. package/src/plugins/defaults/memory/memory-retrospective-sweep.ts +1 -1
  515. package/src/plugins/defaults/memory/memory-retrospective-trigger-check.ts +1 -1
  516. package/src/plugins/defaults/memory/src/__tests__/memory-ingest-routes.test.ts +1 -1
  517. package/src/plugins/defaults/memory/src/memory-eval-routes.ts +1 -1
  518. package/src/plugins/defaults/memory/src/memory-ingest-routes.ts +1 -6
  519. package/src/plugins/defaults/memory/src/memory-item-routes.ts +1 -1
  520. package/src/plugins/defaults/memory/src/memory-v2-routes.ts +1 -1
  521. package/src/plugins/defaults/memory/src/memory-v3-routes.ts +1 -1
  522. package/src/plugins/defaults/memory/substrate/__tests__/sim.test.ts +1 -1
  523. package/src/plugins/defaults/memory/substrate/consolidation-job.ts +1 -1
  524. package/src/plugins/defaults/memory/substrate/reembed-job.ts +1 -1
  525. package/src/plugins/defaults/memory/substrate/sim.ts +1 -1
  526. package/src/plugins/defaults/memory/substrate/sweep-job.ts +1 -1
  527. package/src/plugins/defaults/memory/substrate/tuning.ts +1 -1
  528. package/src/plugins/defaults/memory/tools.ts +1 -1
  529. package/src/plugins/defaults/memory/v1/graph/consolidation.ts +2 -2
  530. package/src/plugins/defaults/memory/v1/graph/extraction-job.ts +1 -1
  531. package/src/plugins/defaults/memory/v1/graph/extraction.ts +2 -2
  532. package/src/plugins/defaults/memory/v1/graph/narrative.ts +2 -2
  533. package/src/plugins/defaults/memory/v1/graph/pattern-scan.ts +2 -2
  534. package/src/plugins/defaults/memory/v1/graph/retriever.test.ts +1 -1
  535. package/src/plugins/defaults/memory/v1/graph/retriever.ts +1 -1
  536. package/src/plugins/defaults/memory/v1/job-handlers/backfill.ts +1 -1
  537. package/src/plugins/defaults/memory/v1/jobs/embed-pkb-file.test.ts +1 -1
  538. package/src/plugins/defaults/memory/v1/jobs/embed-pkb-file.ts +1 -1
  539. package/src/plugins/defaults/memory/v2/__tests__/activation.test.ts +1 -1
  540. package/src/plugins/defaults/memory/v2/__tests__/harness-compare.test.ts +1 -1
  541. package/src/plugins/defaults/memory/v2/__tests__/harness-replay-input.test.ts +1 -1
  542. package/src/plugins/defaults/memory/v2/__tests__/harness-runner.test.ts +1 -1
  543. package/src/plugins/defaults/memory/v2/__tests__/injection.test.ts +1 -1
  544. package/src/plugins/defaults/memory/v2/__tests__/reranker.test.ts +1 -1
  545. package/src/plugins/defaults/memory/v2/activation.ts +1 -1
  546. package/src/plugins/defaults/memory/v2/backfill-jobs.ts +1 -1
  547. package/src/plugins/defaults/memory/v2/harness/compare.ts +1 -1
  548. package/src/plugins/defaults/memory/v2/harness/replay-input.ts +1 -1
  549. package/src/plugins/defaults/memory/v2/harness/retriever.ts +1 -1
  550. package/src/plugins/defaults/memory/v2/injection.ts +1 -1
  551. package/src/plugins/defaults/memory/v2/migration.ts +1 -1
  552. package/src/plugins/defaults/memory/v2/rerank-local.ts +2 -5
  553. package/src/plugins/defaults/memory/v2/reranker.ts +1 -1
  554. package/src/plugins/defaults/memory/v2/router.ts +1 -1
  555. package/src/plugins/defaults/memory/v3/__tests__/dense.test.ts +1 -1
  556. package/src/plugins/defaults/memory/v3/__tests__/maintain-job.test.ts +1 -1
  557. package/src/plugins/defaults/memory/v3/__tests__/section-dense-store.test.ts +1 -1
  558. package/src/plugins/defaults/memory/v3/candidate-match.ts +1 -1
  559. package/src/plugins/defaults/memory/v3/dense.ts +1 -1
  560. package/src/plugins/defaults/memory/v3/maintain-job.ts +1 -1
  561. package/src/plugins/defaults/memory/v3/section-dense-store.ts +1 -1
  562. package/src/plugins/defaults/memory/v3-eval/eval-packets.ts +1 -1
  563. package/src/plugins/defaults/title-generate/hooks/stop.ts +1 -1
  564. package/src/plugins/external-plugin-loader.ts +1 -1
  565. package/src/plugins/types.ts +1 -7
  566. package/src/prompts/sections.ts +0 -1
  567. package/src/prompts/system-prompt.ts +0 -3
  568. package/src/providers/__tests__/cadet-mismatch-routing.test.ts +2 -4
  569. package/src/providers/__tests__/dispatch-connection-routing.test.ts +3 -5
  570. package/src/providers/__tests__/preflight-resolved-config.test.ts +2 -4
  571. package/src/providers/__tests__/satellite-connection-routing.test.ts +1 -1
  572. package/src/providers/anthropic/client.ts +1 -1
  573. package/src/providers/call-site-routing.ts +3 -3
  574. package/src/providers/connection-resolution.ts +0 -3
  575. package/src/providers/forced-tool-label.ts +2 -1
  576. package/src/providers/gemini/client.ts +1 -1
  577. package/src/providers/inference/__tests__/base-url-route-validation.test.ts +2 -2
  578. package/src/providers/inference/backfill.ts +1 -1
  579. package/src/providers/inference/chatgpt-subscription-auth.ts +1 -1
  580. package/src/providers/inference/chatgpt-subscription-credentials.ts +0 -3
  581. package/src/providers/inference/connections.ts +0 -2
  582. package/src/providers/inference/profile-probe.ts +1 -1
  583. package/src/providers/openai/__tests__/tool-choice-mapping.test.ts +2 -1
  584. package/src/providers/openai/client.ts +0 -22
  585. package/src/providers/provider-send-message.ts +2 -2
  586. package/src/providers/ratelimit.ts +1 -1
  587. package/src/providers/retry.ts +1 -1
  588. package/src/providers/types.ts +0 -1
  589. package/src/runtime/__tests__/agent-wake.test.ts +1 -1
  590. package/src/runtime/__tests__/interactive-ui.test.ts +3 -5
  591. package/src/runtime/__tests__/local-principal-trust.test.ts +1 -1
  592. package/src/runtime/__tests__/question-request-guardian-bridge.test.ts +1 -1
  593. package/src/runtime/access-request-helper.ts +2 -4
  594. package/src/runtime/actor-trust-resolver.ts +3 -3
  595. package/src/runtime/agent-wake.ts +3 -4
  596. package/src/runtime/anchored-guardian.ts +1 -1
  597. package/src/runtime/approval-message-composer.ts +0 -6
  598. package/src/runtime/assistant-event-hub.ts +3 -7
  599. package/src/runtime/assistant-event-publish-options.ts +2 -1
  600. package/src/runtime/assistant-event-targeting.ts +2 -1
  601. package/src/runtime/auth/route-policy.ts +2 -1
  602. package/src/runtime/auth/same-actor.ts +1 -1
  603. package/src/runtime/btw-sidechain.ts +1 -1
  604. package/src/runtime/capabilities.test.ts +2 -1
  605. package/src/runtime/capabilities.ts +1 -1
  606. package/src/runtime/channel-approval-types.ts +0 -9
  607. package/src/runtime/channel-approvals.ts +1 -1
  608. package/src/runtime/channel-invite-transport.ts +2 -5
  609. package/src/runtime/channel-invite-transports/discord.ts +2 -1
  610. package/src/runtime/channel-invite-transports/slack.ts +2 -1
  611. package/src/runtime/channel-invite-transports/telegram.ts +1 -1
  612. package/src/runtime/channel-invite-transports/voice.ts +2 -1
  613. package/src/runtime/channel-invite-transports/whatsapp.ts +2 -1
  614. package/src/runtime/channel-invite-types.ts +1 -2
  615. package/src/runtime/channel-readiness-service.ts +1 -1
  616. package/src/runtime/channel-readiness-types.ts +1 -3
  617. package/src/runtime/channel-reply-delivery.ts +3 -5
  618. package/src/runtime/channel-reply-session.ts +2 -4
  619. package/src/runtime/channel-retry-sweep.ts +6 -10
  620. package/src/runtime/channel-send.ts +3 -1
  621. package/src/runtime/channel-verification-service.ts +0 -1
  622. package/src/runtime/confirmation-request-guardian-bridge.ts +2 -1
  623. package/src/runtime/effective-capabilities.ts +2 -1
  624. package/src/runtime/gateway-client.ts +2 -7
  625. package/src/runtime/guardian-action-message-composer.ts +0 -5
  626. package/src/runtime/guardian-cadet-migration.ts +2 -1
  627. package/src/runtime/guardian-reply-router.ts +1 -1
  628. package/src/runtime/http-server.ts +3 -6
  629. package/src/runtime/http-types.ts +5 -10
  630. package/src/runtime/interactive-ui.ts +0 -6
  631. package/src/runtime/introduction-policy.test.ts +4 -3
  632. package/src/runtime/introduction-policy.ts +0 -6
  633. package/src/runtime/invite-service.ts +2 -1
  634. package/src/runtime/local-principal-trust.ts +2 -1
  635. package/src/runtime/member-verdict-cache.ts +1 -1
  636. package/src/runtime/pending-interactions.ts +0 -2
  637. package/src/runtime/question-request-guardian-bridge.ts +2 -1
  638. package/src/runtime/routes/__tests__/avatar-state-routes.test.ts +2 -1
  639. package/src/runtime/routes/approval-strategies/guardian-text-engine-strategy.ts +3 -2
  640. package/src/runtime/routes/avatar-routes.ts +2 -2
  641. package/src/runtime/routes/browser-routes.ts +0 -1
  642. package/src/runtime/routes/call-routes.ts +1 -1
  643. package/src/runtime/routes/channel-availability-routes.ts +1 -1
  644. package/src/runtime/routes/channel-delivery-routes.ts +0 -6
  645. package/src/runtime/routes/channel-readiness-routes.ts +2 -1
  646. package/src/runtime/routes/channel-route-definitions.ts +2 -4
  647. package/src/runtime/routes/channel-route-shared.ts +3 -2
  648. package/src/runtime/routes/channel-send-routes.ts +1 -1
  649. package/src/runtime/routes/channel-verification-routes.ts +1 -1
  650. package/src/runtime/routes/client-routes.ts +3 -5
  651. package/src/runtime/routes/contact-routes.ts +1 -1
  652. package/src/runtime/routes/conversation-list-routes.ts +1 -1
  653. package/src/runtime/routes/conversation-management-routes.ts +2 -2
  654. package/src/runtime/routes/conversation-query-routes.ts +1 -1
  655. package/src/runtime/routes/conversation-routes.ts +6 -6
  656. package/src/runtime/routes/events-routes.ts +2 -1
  657. package/src/runtime/routes/guardian-action-routes.ts +2 -4
  658. package/src/runtime/routes/guardian-approval-interception.ts +4 -6
  659. package/src/runtime/routes/guardian-approval-prompt.ts +6 -7
  660. package/src/runtime/routes/guardian-approval-reply-helpers.ts +3 -3
  661. package/src/runtime/routes/guardian-expiry-sweep.ts +2 -1
  662. package/src/runtime/routes/inbound-message-handler.ts +3 -6
  663. package/src/runtime/routes/inbound-stages/acl-enforcement.ts +2 -2
  664. package/src/runtime/routes/inbound-stages/admission-policy.ts +2 -2
  665. package/src/runtime/routes/inbound-stages/backfill-sender-provenance.ts +2 -1
  666. package/src/runtime/routes/inbound-stages/background-dispatch.test.ts +2 -1
  667. package/src/runtime/routes/inbound-stages/background-dispatch.ts +8 -8
  668. package/src/runtime/routes/inbound-stages/bootstrap-intercept.test.ts +2 -1
  669. package/src/runtime/routes/inbound-stages/bootstrap-intercept.ts +4 -5
  670. package/src/runtime/routes/inbound-stages/edit-intercept.ts +2 -1
  671. package/src/runtime/routes/inbound-stages/guardian-activation-intercept.ts +3 -2
  672. package/src/runtime/routes/inbound-stages/guardian-reply-intercept.ts +2 -1
  673. package/src/runtime/routes/inbound-stages/inbound-content-prep.ts +2 -1
  674. package/src/runtime/routes/inbound-stages/reaction-intercept.ts +2 -1
  675. package/src/runtime/routes/inbound-stages/secret-ingress-check.ts +2 -1
  676. package/src/runtime/routes/inference-callsites-routes.ts +2 -4
  677. package/src/runtime/routes/recording-routes.ts +2 -4
  678. package/src/runtime/routes/secret-routes.ts +1 -1
  679. package/src/runtime/routes/settings-routes.ts +1 -1
  680. package/src/runtime/routes/ui-snapshot-routes.ts +2 -4
  681. package/src/runtime/routes/watch-routes.ts +1 -1
  682. package/src/runtime/sync/sync-publisher.ts +1 -1
  683. package/src/runtime/tool-grant-request-helper.ts +1 -1
  684. package/src/runtime/trust-class.ts +0 -2
  685. package/src/runtime/trust-context-resolver.ts +2 -1
  686. package/src/runtime/trust-verdict-consumer.ts +1 -1
  687. package/src/runtime/verification-outbound-actions.ts +1 -1
  688. package/src/schedule/run-script.ts +4 -5
  689. package/src/schedule/scheduler.ts +2 -4
  690. package/src/schedule/worker-mcp.ts +0 -2
  691. package/src/security/ces-rpc-credential-backend.ts +1 -1
  692. package/src/security/ces-rpc-record-backend.ts +1 -1
  693. package/src/security/plugin-secret-patterns.ts +1 -2
  694. package/src/security/secret-ingress.ts +2 -4
  695. package/src/security/secret-scanner.ts +3 -4
  696. package/src/security/secure-keys.ts +2 -12
  697. package/src/skills/catalog-files.ts +0 -1
  698. package/src/skills/clawhub-files.ts +1 -1
  699. package/src/skills/inline-command-runner.ts +3 -4
  700. package/src/skills/skillssh-files.ts +1 -1
  701. package/src/skills/skillssh-registry.ts +0 -3
  702. package/src/subagent/consult-context.ts +2 -1
  703. package/src/subagent/types.ts +1 -1
  704. package/src/tools/__tests__/followup-call-acp-tool-input-schemas.test.ts +3 -3
  705. package/src/tools/acp/spawn.test.ts +3 -2
  706. package/src/tools/acp/spawn.ts +3 -2
  707. package/src/tools/acp/steer.ts +2 -1
  708. package/src/tools/ask-question/ask-question-tool.ts +1 -1
  709. package/src/tools/browser/__tests__/browser-mode.test.ts +1 -1
  710. package/src/tools/browser/__tests__/browser-status.test.ts +2 -2
  711. package/src/tools/browser/browser-execution.ts +4 -3
  712. package/src/tools/browser/browser-mode.ts +0 -1
  713. package/src/tools/browser/browser-status-constants.ts +0 -7
  714. package/src/tools/browser/jit-auth.ts +2 -4
  715. package/src/tools/channel/react-to-message.ts +2 -2
  716. package/src/tools/client-os.ts +1 -1
  717. package/src/tools/computer-use/skill-proxy-bridge.ts +1 -1
  718. package/src/tools/conversation-groups/group_create.ts +1 -1
  719. package/src/tools/conversation-groups/move_to_group.ts +1 -1
  720. package/src/tools/document/document-comment-tool.ts +1 -1
  721. package/src/tools/document/document-tool.ts +1 -1
  722. package/src/tools/executor.ts +0 -1
  723. package/src/tools/filesystem/edit.ts +2 -2
  724. package/src/tools/filesystem/list.ts +1 -1
  725. package/src/tools/filesystem/read.ts +1 -1
  726. package/src/tools/filesystem/search.ts +1 -1
  727. package/src/tools/filesystem/write.ts +2 -2
  728. package/src/tools/followups/followup_create.ts +2 -1
  729. package/src/tools/followups/followup_resolve.ts +2 -1
  730. package/src/tools/host-filesystem/edit.ts +1 -1
  731. package/src/tools/host-filesystem/read.ts +1 -1
  732. package/src/tools/host-filesystem/transfer.ts +1 -1
  733. package/src/tools/host-filesystem/write.ts +1 -1
  734. package/src/tools/host-terminal/host-shell.ts +4 -4
  735. package/src/tools/mcp/mcp-tool-factory.ts +1 -1
  736. package/src/tools/network/url-safety.ts +0 -1
  737. package/src/tools/network/web-fetch.ts +1 -1
  738. package/src/tools/network/web-search.ts +1 -1
  739. package/src/tools/permission-checker.ts +1 -1
  740. package/src/tools/schedule/create.ts +2 -1
  741. package/src/tools/schedule/delete.ts +1 -1
  742. package/src/tools/schedule/update.ts +2 -1
  743. package/src/tools/schema-transforms.ts +1 -1
  744. package/src/tools/shared/abort.ts +0 -1
  745. package/src/tools/skills/delete-cloud.ts +1 -1
  746. package/src/tools/skills/execute.ts +1 -1
  747. package/src/tools/skills/find-similar-skills.ts +1 -1
  748. package/src/tools/skills/load.ts +1 -1
  749. package/src/tools/skills/sandbox-runner.ts +3 -2
  750. package/src/tools/skills/scaffold-cloud.ts +1 -1
  751. package/src/tools/skills/skill-tool-factory.ts +1 -1
  752. package/src/tools/subagent/message.ts +1 -1
  753. package/src/tools/subagent/notify-parent.ts +2 -2
  754. package/src/tools/subagent/spawn.ts +2 -1
  755. package/src/tools/system/request-permission.ts +1 -1
  756. package/src/tools/terminal/__tests__/safe-env.test.ts +29 -0
  757. package/src/tools/terminal/safe-env.ts +27 -9
  758. package/src/tools/terminal/sanitized-bash.ts +3 -2
  759. package/src/tools/terminal/shell.ts +3 -3
  760. package/src/tools/tool-approval-handler.ts +2 -1
  761. package/src/tools/types.ts +1 -1
  762. package/src/tools/ui-surface/definitions.ts +2 -2
  763. package/src/tools/watch/watch-retro-report.ts +1 -1
  764. package/src/tools/workflows/manage-workflows.ts +2 -1
  765. package/src/tools/workflows/run-workflow.ts +2 -1
  766. package/src/tts/provider-catalog.ts +0 -7
  767. package/src/tts/tts-config-resolver.ts +1 -1
  768. package/src/usage/types.ts +0 -6
  769. package/src/util/canonicalize-identity.ts +2 -1
  770. package/src/util/host-process.ts +0 -7
  771. package/src/util/log-redact.ts +2 -1
  772. package/src/util/logger.ts +0 -12
  773. package/src/util/oom-priority.ts +0 -4
  774. package/src/util/pricing.ts +1 -1
  775. package/src/watch/watch-session-manager.ts +0 -2
  776. package/src/workflows/capabilities.test.ts +1 -1
  777. package/src/workflows/capabilities.ts +1 -1
  778. package/src/workflows/leaf-runner.ts +2 -1
  779. package/src/__tests__/gateway-only-guard.test.ts +0 -218
  780. package/src/__tests__/plugin-import-boundary-guard.test.ts +0 -632
  781. package/src/config/types.ts +0 -4
  782. package/src/persistence/schema.ts +0 -1
  783. package/src/plugins/defaults/memory/__tests__/memory-tier-boundary-guard.test.ts +0 -1161
  784. package/src/plugins/defaults/memory/skill-md-mtime-poll.ts +0 -9
  785. package/src/runtime/no-response.ts +0 -14
  786. package/src/runtime/routes/channel-inbound-routes.ts +0 -10
  787. package/src/security/secret-patterns.ts +0 -11
  788. package/src/tools/calls/call-end.ts +0 -59
  789. package/src/tools/calls/call-start.ts +0 -102
  790. package/src/tools/calls/call-status.ts +0 -75
package/Dockerfile CHANGED
@@ -26,6 +26,7 @@ COPY --parents clients/*/package.json ./
26
26
  COPY cli/package.json ./cli/
27
27
  COPY gateway/package.json ./gateway/
28
28
  COPY credential-executor/package.json ./credential-executor/
29
+ COPY qa/package.json ./qa/
29
30
  COPY assistant/package.json ./assistant/
30
31
  COPY assistant/src/api/package.json ./assistant/src/api/
31
32
  COPY --parents packages/*/package.json ./
package/eslint.config.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import { noReExports } from "@mycadet/shared/eslint/no-re-exports";
1
2
  import { defineConfig, globalIgnores } from "eslint/config";
2
3
  import simpleImportSort from "eslint-plugin-simple-import-sort";
3
4
  import tseslint from "typescript-eslint";
@@ -129,6 +130,13 @@ const eslintConfig = defineConfig([
129
130
  },
130
131
  rules: { "cli/no-daemon-internals": "error" },
131
132
  },
133
+ {
134
+ // Re-export shims are outlawed: consumers import from the defining
135
+ // module, and only index files aggregate a public surface. Warning
136
+ // level with a pinned count — each PR chips away at the remainder.
137
+ plugins: { "@mycadet": { rules: { "no-re-exports": noReExports } } },
138
+ rules: { "@mycadet/no-re-exports": "error" },
139
+ },
132
140
  ]);
133
141
 
134
142
  export default eslintConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mycadet/assistant",
3
- "version": "0.13.0-dev.202610311714.d661ca6",
3
+ "version": "0.13.0-dev.202611012320.cea2f8a",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/vargasjr-dev/mycadet-temp.git"
@@ -24,7 +24,7 @@
24
24
  "probe:skill-retrieval": "bun run scripts/probe-skill-retrieval.ts",
25
25
  "format": "prettier --write .",
26
26
  "format:check": "prettier --check .",
27
- "lint": "bun run lint:skills && bun run lint:openapi && eslint --max-warnings 2688",
27
+ "lint": "bun run lint:skills && bun run lint:openapi && eslint --max-warnings 2678",
28
28
  "lint:unused": "knip --include files,dependencies,unlisted",
29
29
  "lint:circular": "bun run scripts/check-circular-deps.ts",
30
30
  "lint:unused:production": "knip --production --include exports",
@@ -4,7 +4,7 @@ import { beforeEach, describe, expect, test } from "bun:test";
4
4
  import { addMessage, getMessages } from "../persistence/conversation-crud.js";
5
5
  import { getDb } from "../persistence/db-connection.js";
6
6
  import { initializeDb } from "../persistence/db-init.js";
7
- import { conversations } from "../persistence/schema.js";
7
+ import { conversations } from "../persistence/schema/index.js";
8
8
 
9
9
  await initializeDb();
10
10
 
@@ -14,7 +14,7 @@ import { afterEach, beforeEach, describe, expect, test } from "bun:test";
14
14
  import type { PostCompactContext } from "@mycadet/plugin-api";
15
15
 
16
16
  import { AgentLoop } from "../agent/loop.js";
17
- import type { ContextWindowConfig } from "../config/types.js";
17
+ import { ContextWindowConfig } from "../config/schemas/inference.js";
18
18
  import { stripAgedSightFrames } from "../daemon/conversation-sight-frames.js";
19
19
  import type { TrustContext } from "../daemon/trust-context-types.js";
20
20
  import { HOOKS } from "../plugin-api/constants.js";
@@ -14,7 +14,7 @@ import type { PostCompactContext } from "@mycadet/plugin-api";
14
14
 
15
15
  import type { AgentEvent } from "../agent/loop.js";
16
16
  import { AgentLoop } from "../agent/loop.js";
17
- import type { ContextWindowConfig } from "../config/types.js";
17
+ import { ContextWindowConfig } from "../config/schemas/inference.js";
18
18
  import type { TrustContext } from "../daemon/trust-context-types.js";
19
19
  import { HOOKS } from "../plugin-api/constants.js";
20
20
  import {
@@ -31,8 +31,8 @@ import type {
31
31
  Provider,
32
32
  ProviderResponse,
33
33
  SendMessageOptions,
34
- ToolDefinition,
35
34
  } from "../providers/types.js";
35
+ import { ToolDefinition } from "../tools/tool-types.js";
36
36
 
37
37
  // Identity post-compact hook: keeps the history the loop handed in, standing
38
38
  // in for the daemon-level re-injector these unit tests do not run.
@@ -15,7 +15,7 @@ import type { PostCompactContext } from "@mycadet/plugin-api";
15
15
 
16
16
  import type { AgentEvent } from "../agent/loop.js";
17
17
  import { AgentLoop } from "../agent/loop.js";
18
- import type { ContextWindowConfig } from "../config/types.js";
18
+ import { ContextWindowConfig } from "../config/schemas/inference.js";
19
19
  import type { TrustContext } from "../daemon/trust-context-types.js";
20
20
  import { HOOKS } from "../plugin-api/constants.js";
21
21
  import {
@@ -23,7 +23,7 @@ import type {
23
23
  CheckpointInfo,
24
24
  } from "../agent/loop.js";
25
25
  import { AgentLoop } from "../agent/loop.js";
26
- import type { ContextWindowConfig } from "../config/types.js";
26
+ import { ContextWindowConfig } from "../config/schemas/inference.js";
27
27
  import type { TrustContext } from "../daemon/trust-context-types.js";
28
28
  import { HOOKS } from "../plugin-api/constants.js";
29
29
  import {
@@ -41,8 +41,8 @@ import type {
41
41
  Provider,
42
42
  ProviderResponse,
43
43
  SendMessageOptions,
44
- ToolDefinition,
45
44
  } from "../providers/types.js";
45
+ import { ToolDefinition } from "../tools/tool-types.js";
46
46
 
47
47
  // The agent loop runs the default post-compaction re-injection through the
48
48
  // `post-compact` hook chain when it compacts in place. Register a test hook on
@@ -15,8 +15,8 @@ import type {
15
15
  Provider,
16
16
  ProviderResponse,
17
17
  SendMessageOptions,
18
- ToolDefinition,
19
18
  } from "../providers/types.js";
19
+ import { ToolDefinition } from "../tools/tool-types.js";
20
20
 
21
21
  const pointerText = wrapMemoryPointerBlock(
22
22
  "Already in context above, relevant again this turn:\nmemory/concepts/plans.md § Alpha",
@@ -8,18 +8,16 @@ import { beforeEach, describe, expect, test } from "bun:test";
8
8
 
9
9
  import type { AgentEvent, PreparedModelCall } from "../agent/loop.js";
10
10
  import { AgentLoop } from "../agent/loop.js";
11
- import type {
12
- PostModelCallContext,
13
- PreModelCallContext,
14
- } from "../plugin-api/types.js";
11
+ import { PostModelCallContext } from "../hooks/types.js";
12
+ import { PreModelCallContext } from "../hooks/types.js";
15
13
  import { resetPluginRegistryAndRegisterDefaults } from "../plugins/defaults/index.js";
16
14
  import { registerPlugin } from "../plugins/registry.js";
17
15
  import type {
18
16
  ContentBlock,
19
17
  Message,
20
18
  ProviderResponse,
21
- ToolDefinition,
22
19
  } from "../providers/types.js";
20
+ import { ToolDefinition } from "../tools/tool-types.js";
23
21
  import {
24
22
  createMockProvider,
25
23
  textResponse,
@@ -27,8 +27,8 @@ import type {
27
27
  Provider,
28
28
  ProviderResponse,
29
29
  SendMessageOptions,
30
- ToolDefinition,
31
30
  } from "../providers/types.js";
31
+ import { ToolDefinition } from "../tools/tool-types.js";
32
32
  import { setConfig } from "./helpers/set-config.js";
33
33
 
34
34
  const userMessage: Message = {
@@ -32,8 +32,8 @@ import type {
32
32
  Provider,
33
33
  ProviderResponse,
34
34
  SendMessageOptions,
35
- ToolDefinition,
36
35
  } from "../providers/types.js";
36
+ import { ToolDefinition } from "../tools/tool-types.js";
37
37
  import { ProviderError } from "../util/errors.js";
38
38
 
39
39
  /**
@@ -17,7 +17,7 @@ import type { PostCompactContext } from "@mycadet/plugin-api";
17
17
 
18
18
  import type { AgentEvent } from "../agent/loop.js";
19
19
  import { AgentLoop } from "../agent/loop.js";
20
- import type { ContextWindowConfig } from "../config/types.js";
20
+ import { ContextWindowConfig } from "../config/schemas/inference.js";
21
21
  import type { TrustContext } from "../daemon/trust-context-types.js";
22
22
  import { HOOKS } from "../plugin-api/constants.js";
23
23
  import {
@@ -24,8 +24,8 @@ import type {
24
24
  Provider,
25
25
  ProviderResponse,
26
26
  SendMessageOptions,
27
- ToolDefinition,
28
27
  } from "../providers/types.js";
28
+ import { ToolDefinition } from "../tools/tool-types.js";
29
29
  import { ProviderError } from "../util/errors.js";
30
30
 
31
31
  const tools: ToolDefinition[] = [
@@ -1,13 +1,15 @@
1
1
  import { beforeEach, describe, expect, test } from "bun:test";
2
2
 
3
+ import { REFUSAL_FALLBACK_TEXT } from "@mycadet/plugin-api";
4
+
3
5
  import type {
4
6
  AgentEvent,
5
7
  CheckpointDecision,
6
8
  CheckpointInfo,
7
9
  } from "../agent/loop.js";
8
10
  import { AgentLoop } from "../agent/loop.js";
9
- import type { PostToolUseContext, StopContext } from "../plugin-api/types.js";
10
- import { REFUSAL_FALLBACK_TEXT } from "../plugins/defaults/empty-response/hooks/post-model-call.js";
11
+ import { PostToolUseContext } from "../hooks/types.js";
12
+ import { StopContext } from "../hooks/types.js";
11
13
  import { resetPluginRegistryAndRegisterDefaults } from "../plugins/defaults/index.js";
12
14
  import { registerPlugin } from "../plugins/registry.js";
13
15
  import type {
@@ -15,13 +17,13 @@ import type {
15
17
  Message,
16
18
  Provider,
17
19
  ProviderResponse,
18
- ToolDefinition,
19
20
  } from "../providers/types.js";
20
21
  import { ContextOverflowError } from "../providers/types.js";
21
22
  import {
22
23
  CANCELLED_TOOL_RESULT,
23
24
  CANCELLED_UNSETTLED_TOOL_RESULT,
24
25
  } from "../tools/execution-timeout.js";
26
+ import { ToolDefinition } from "../tools/tool-types.js";
25
27
  import {
26
28
  createMockProvider,
27
29
  textResponse,
@@ -2,11 +2,8 @@ import { beforeEach, describe, expect, mock, test } from "bun:test";
2
2
 
3
3
  import type { Anthropic } from "@anthropic-ai/sdk";
4
4
 
5
- import type {
6
- ContentBlock,
7
- Message,
8
- ToolDefinition,
9
- } from "../providers/types.js";
5
+ import type { ContentBlock, Message } from "../providers/types.js";
6
+ import { ToolDefinition } from "../tools/tool-types.js";
10
7
 
11
8
  // ---------------------------------------------------------------------------
12
9
  // Mock Anthropic SDK — must be before importing the provider
@@ -1,13 +1,11 @@
1
1
  import { describe, expect, test } from "bun:test";
2
2
 
3
- import type {
4
- ApprovalMessageContext,
5
- ApprovalMessageScenario,
6
- } from "../runtime/approval-message-composer.js";
7
3
  import {
8
4
  composeApprovalMessage,
9
5
  getFallbackMessage,
10
6
  } from "../runtime/approval-message-composer.js";
7
+ import { ApprovalMessageContext } from "../runtime/message-composer-types.js";
8
+ import { ApprovalMessageScenario } from "../runtime/message-composer-types.js";
11
9
 
12
10
  // ---------------------------------------------------------------------------
13
11
  // Every scenario must produce a non-empty string
@@ -8,13 +8,14 @@
8
8
 
9
9
  import { afterEach, beforeEach, describe, expect, test } from "bun:test";
10
10
 
11
+ import { GuardianRequestWire } from "@mycadet/gateway-client";
12
+
11
13
  import type {
12
14
  ActorContext,
13
15
  ResolverContext,
14
16
  ResolverDecision,
15
17
  } from "../approvals/guardian-request-resolvers.js";
16
18
  import { getResolver } from "../approvals/guardian-request-resolvers.js";
17
- import type { GuardianRequestWire } from "../channels/gateway-guardian-requests.js";
18
19
  import type { QuestionPromptResult } from "../permissions/question-prompter.js";
19
20
  import * as pendingInteractions from "../runtime/pending-interactions.js";
20
21
 
@@ -1,5 +1,8 @@
1
1
  import { describe, expect, test } from "bun:test";
2
2
 
3
+ import { inferMimeType } from "@mycadet/service-contracts/attachment-naming";
4
+ import { resolveAttachmentFilename } from "@mycadet/service-contracts/attachment-naming";
5
+
3
6
  import {
4
7
  type AssistantAttachmentDraft,
5
8
  classifyKind,
@@ -10,9 +13,7 @@ import {
10
13
  estimateBase64Bytes,
11
14
  extractCadetLinks,
12
15
  incompleteCadetLinkSuffixLength,
13
- inferMimeType,
14
16
  MAX_ASSISTANT_ATTACHMENT_BYTES,
15
- resolveAttachmentFilename,
16
17
  stripCadetLinks,
17
18
  validateDrafts,
18
19
  } from "../daemon/assistant-attachments.js";
@@ -8,7 +8,7 @@
8
8
  import { beforeEach, describe, expect, test } from "bun:test";
9
9
 
10
10
  import type { AssistantEventEnvelope } from "../api/index.js";
11
- import type { HostProxyCapability, InterfaceId } from "../channels/types.js";
11
+ import type { InterfaceId } from "../channels/types.js";
12
12
  import { AssistantEventHub } from "../runtime/assistant-event-hub.js";
13
13
  import type { AssistantEventPublishOptions } from "../runtime/assistant-event-publish-options.js";
14
14
  import { matchesTargeting } from "../runtime/assistant-event-targeting.js";
@@ -17,6 +17,7 @@ import {
17
17
  getReplayWindow,
18
18
  stampAndBuffer,
19
19
  } from "../runtime/assistant-stream-state.js";
20
+ import { HostProxyCapability } from "../types/host-capabilities.js";
20
21
 
21
22
  const CONV = "conv-targeting";
22
23
 
@@ -29,7 +29,7 @@ import {
29
29
  createConversation,
30
30
  deleteMessageById,
31
31
  } from "../persistence/conversation-crud.js";
32
- import { getConversationDirPath } from "../persistence/conversation-disk-view.js";
32
+ import { getConversationDirPath } from "../persistence/conversation-directories.js";
33
33
  import { getDb } from "../persistence/db-connection.js";
34
34
  import { initializeDb } from "../persistence/db-init.js";
35
35
  import { rawGet, rawRun } from "../persistence/raw-query.js";
@@ -14,7 +14,7 @@
14
14
 
15
15
  import { describe, expect, test } from "bun:test";
16
16
 
17
- import { BROWSER_OPERATION_META } from "../browser/operations.js";
17
+ import { BROWSER_OPERATION_META } from "../browser/operation-meta.js";
18
18
  import { BROWSER_OPERATIONS } from "../browser/types.js";
19
19
 
20
20
  // ── Helpers ──────────────────────────────────────────────────────────
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import { afterAll, beforeAll, describe, expect, test } from "bun:test";
8
8
 
9
- import { BROWSER_OPERATION_META } from "../browser/operations.js";
9
+ import { BROWSER_OPERATION_META } from "../browser/operation-meta.js";
10
10
  import { BROWSER_OPERATIONS } from "../browser/types.js";
11
11
  import {
12
12
  projectSkillTools,
@@ -95,7 +95,7 @@ import {
95
95
  resolveCallerIdentity,
96
96
  startCall,
97
97
  } from "../calls/call-domain.js";
98
- import type { AssistantConfig } from "../config/types.js";
98
+ import { AssistantConfig } from "../config/schema.js";
99
99
  import { getMessages } from "../persistence/conversation-crud.js";
100
100
  import { getDb } from "../persistence/db-connection.js";
101
101
  import { initializeDb } from "../persistence/db-init.js";
@@ -1,5 +1,7 @@
1
1
  import { describe, expect, test } from "bun:test";
2
2
 
3
+ import { TrustClass } from "@mycadet/gateway-client";
4
+
3
5
  import {
4
6
  CallSetupFlow,
5
7
  type CallSetupFlowDeps,
@@ -21,7 +23,6 @@ import type {
21
23
  import type { CallSession } from "../calls/types.js";
22
24
  import type { ChannelStatus } from "../contacts/types.js";
23
25
  import type { TrustContext } from "../daemon/trust-context-types.js";
24
- import type { TrustClass } from "../runtime/trust-class.js";
25
26
 
26
27
  // ---------------------------------------------------------------------------
27
28
  // Fixtures
@@ -1,5 +1,7 @@
1
1
  import { describe, expect, test } from "bun:test";
2
2
 
3
+ import { TrustClass } from "@mycadet/gateway-client";
4
+
3
5
  import {
4
6
  CallSetupFlow,
5
7
  type CallSetupFlowDeps,
@@ -14,7 +16,6 @@ import type {
14
16
  } from "../calls/call-setup-router.js";
15
17
  import type { CallSession } from "../calls/types.js";
16
18
  import type { TrustContext } from "../daemon/trust-context-types.js";
17
- import type { TrustClass } from "../runtime/trust-class.js";
18
19
 
19
20
  // ---------------------------------------------------------------------------
20
21
  // Fixtures
@@ -1,5 +1,7 @@
1
1
  import { describe, expect, test } from "bun:test";
2
2
 
3
+ import { TrustClass } from "@mycadet/gateway-client";
4
+
3
5
  import {
4
6
  CallSetupFlow,
5
7
  type CallSetupFlowDeps,
@@ -16,7 +18,6 @@ import type {
16
18
  } from "../calls/call-setup-router.js";
17
19
  import type { MediaStreamOutput } from "../calls/media-stream-output.js";
18
20
  import type { TrustContext } from "../daemon/trust-context-types.js";
19
- import type { TrustClass } from "../runtime/trust-class.js";
20
21
 
21
22
  // ---------------------------------------------------------------------------
22
23
  // Fixtures
@@ -18,7 +18,7 @@
18
18
  import { beforeEach, describe, expect, test } from "bun:test";
19
19
 
20
20
  import { CallSiteRoutingProvider } from "../providers/call-site-routing.js";
21
- import { ConnectionResolutionError } from "../providers/connection-resolution.js";
21
+ import { ConnectionResolutionError } from "../providers/routing-identity.js";
22
22
  import type {
23
23
  Message,
24
24
  Provider,
@@ -60,7 +60,8 @@ mock.module("../channels/gateway-verification-sessions.js", () => ({
60
60
  },
61
61
  }));
62
62
 
63
- const { executeCallStart } = await import("../tools/calls/call-start.js");
63
+ const { run: executeCallStart } =
64
+ await import("../config/bundled-skills/phone-calls/tools/call-start.js");
64
65
 
65
66
  function makeContext(): ToolContext {
66
67
  return {
@@ -17,7 +17,8 @@ const isReadyFn = mock((): boolean => true);
17
17
  // ---------------------------------------------------------------------------
18
18
 
19
19
  // Import after mocking
20
- import type { CesClient } from "../credential-execution/client.js";
20
+ import { CesRpcClient as CesClient } from "@mycadet/ces-client/rpc-client";
21
+
21
22
  import { CesRpcCredentialBackend } from "../security/ces-rpc-credential-backend.js";
22
23
 
23
24
  // ---------------------------------------------------------------------------
@@ -1,6 +1,7 @@
1
1
  import { describe, expect, mock, test } from "bun:test";
2
2
 
3
- import type { CesClient } from "../credential-execution/client.js";
3
+ import { CesRpcClient as CesClient } from "@mycadet/ces-client/rpc-client";
4
+
4
5
  import {
5
6
  awaitCesClientWithTimeout,
6
7
  DEFAULT_CES_STARTUP_TIMEOUT_MS,
@@ -74,13 +74,11 @@ import * as gatewayClient from "../runtime/gateway-client.js";
74
74
  import * as pendingInteractions from "../runtime/pending-interactions.js";
75
75
  import { _setTestPollMaxWait } from "../runtime/routes/channel-route-shared.js";
76
76
  import { resetDbForTesting } from "./db-test-helpers.js";
77
- import {
78
- handleChannelInbound,
79
- seedContactChannel,
80
- } from "./helpers/channel-test-adapter.js";
77
+ import { handleChannelInbound } from "./helpers/channel-test-adapter.js";
81
78
  import { createGuardianBinding } from "./helpers/create-guardian-binding.js";
82
79
  import { resetGatewayAclStore } from "./helpers/gateway-acl-store.js";
83
80
  import { bridgeState } from "./helpers/gateway-guardian-requests-store-bridge.js";
81
+ import { seedContactChannel } from "./helpers/seed-contact-channel.js";
84
82
 
85
83
  await initializeDb();
86
84
 
@@ -2,7 +2,7 @@ import { afterAll, beforeEach, describe, expect, mock, test } from "bun:test";
2
2
 
3
3
  import { eq } from "drizzle-orm";
4
4
 
5
- import type { DiskPressureStatus } from "../daemon/disk-pressure-guard.js";
5
+ import { DiskPressureStatus } from "../api/events/disk-pressure-status-changed.js";
6
6
 
7
7
  const deliverChannelReplyMock = mock(
8
8
  async (_callbackUrl: string, _payload: Record<string, unknown>) => {},
@@ -59,11 +59,11 @@ import { channelInboundEvents, messages } from "../persistence/schema/index.js";
59
59
  import { sweepFailedEvents } from "../runtime/channel-retry-sweep.js";
60
60
  import {
61
61
  handleChannelInbound,
62
- seedContactChannel,
63
62
  setAdapterProcessMessage,
64
63
  } from "./helpers/channel-test-adapter.js";
65
64
  import { createGuardianBinding } from "./helpers/create-guardian-binding.js";
66
65
  import { bridgeState } from "./helpers/gateway-guardian-requests-store-bridge.js";
66
+ import { seedContactChannel } from "./helpers/seed-contact-channel.js";
67
67
 
68
68
  await initializeDb();
69
69
 
@@ -10,12 +10,12 @@
10
10
  import { describe, expect, test } from "bun:test";
11
11
 
12
12
  import {
13
- type ChannelInviteAdapter,
14
13
  createInviteAdapterRegistry,
15
14
  getInviteAdapterRegistry,
16
15
  InviteAdapterRegistry,
17
16
  resolveAdapterHandle,
18
17
  } from "../runtime/channel-invite-transport.js";
18
+ import type { ChannelInviteAdapter } from "../runtime/channel-invite-types.js";
19
19
 
20
20
  describe("resolveAdapterHandle", () => {
21
21
  test("returns sync handle when only resolveChannelHandle is defined", async () => {
@@ -8,6 +8,9 @@
8
8
 
9
9
  import { describe, expect, test } from "bun:test";
10
10
 
11
+ import type { ChannelId } from "@mycadet/service-contracts/channels";
12
+ import { CHANNEL_IDS } from "@mycadet/service-contracts/channels";
13
+
11
14
  import {
12
15
  type ConversationStrategy,
13
16
  getChannelPolicy,
@@ -15,7 +18,6 @@ import {
15
18
  getDeliverableChannels,
16
19
  isNotificationDeliverable,
17
20
  } from "../channels/config.js";
18
- import { CHANNEL_IDS, type ChannelId } from "../channels/types.js";
19
21
  import { getTransportForChannel } from "../messaging/providers/index.js";
20
22
 
21
23
  describe("channel policy registry", () => {
@@ -47,7 +47,8 @@ mock.module("../runtime/channel-invite-transports/whatsapp.js", () => ({
47
47
  resolveWhatsAppDisplayNumber: () => "",
48
48
  }));
49
49
 
50
- import type { ChannelId } from "../channels/types.js";
50
+ import { ChannelId } from "@mycadet/service-contracts/channels";
51
+
51
52
  import {
52
53
  ChannelReadinessService,
53
54
  createReadinessService,
@@ -12,6 +12,7 @@ import { describe, expect, test } from "bun:test";
12
12
 
13
13
  import type { OpenPanelEvent } from "../api/events/open-panel.js";
14
14
  import type { AssistantEvent } from "../api/index.js";
15
+ import { SurfaceType } from "../api/surfaces.js";
15
16
  import type { Conversation } from "../daemon/conversation.js";
16
17
  import {
17
18
  createSurfaceMutex,
@@ -19,7 +20,6 @@ import {
19
20
  openChannelSetupPanel,
20
21
  surfaceProxyResolver,
21
22
  } from "../daemon/conversation-surfaces.js";
22
- import type { SurfaceType } from "../daemon/message-protocol.js";
23
23
  import { asConversation } from "./helpers/mock-conversation.js";
24
24
 
25
25
  function makeContext(
@@ -71,8 +71,8 @@ import {
71
71
  SCOPE_AWARE_TOOLS,
72
72
  } from "../permissions/checker.js";
73
73
  import { _clearGlobalCacheForTesting } from "../permissions/gateway-threshold-reader.js";
74
- import { RiskLevel } from "../permissions/types.js";
75
74
  import { registerSkillTools, registerTool } from "../tools/registry.js";
75
+ import { RiskLevel } from "../tools/tool-types.js";
76
76
  import type { Tool } from "../tools/types.js";
77
77
  import * as platformModule from "../util/layout.js";
78
78
 
@@ -17,10 +17,8 @@ import {
17
17
  getMessageById,
18
18
  parseMessageMetadata,
19
19
  } from "../persistence/conversation-crud.js";
20
- import {
21
- getConversationDirPath,
22
- syncMessageToDisk,
23
- } from "../persistence/conversation-disk-view.js";
20
+ import { getConversationDirPath } from "../persistence/conversation-directories.js";
21
+ import { syncMessageToDisk } from "../persistence/conversation-disk-view.js";
24
22
  import { computerUseScreenshotAttachmentIdsFromMetadata } from "../persistence/conversation-types.js";
25
23
  import { getDb } from "../persistence/db-connection.js";
26
24
  import { initializeDb } from "../persistence/db-init.js";
@@ -2,7 +2,6 @@ import { readFileSync } from "node:fs";
2
2
  import { resolve } from "node:path";
3
3
  import { afterAll, describe, expect, test } from "bun:test";
4
4
 
5
- import { RiskLevel } from "../permissions/types.js";
6
5
  import {
7
6
  __resetRegistryForTesting,
8
7
  getTool,
@@ -10,6 +9,7 @@ import {
10
9
  registerSkillTools,
11
10
  unregisterSkillTools,
12
11
  } from "../tools/registry.js";
12
+ import { RiskLevel } from "../tools/tool-types.js";
13
13
  import type { Tool } from "../tools/types.js";
14
14
  import {
15
15
  COMPUTER_USE_TOOL_COUNT,
@@ -31,13 +31,11 @@ function ensureTestDir(): void {
31
31
  }
32
32
 
33
33
  import { getConfig, invalidateConfigCache } from "../config/loader.js";
34
- import {
35
- AssistantConfigSchema,
36
- DEFAULT_ELEVENLABS_VOICE_ID,
37
- } from "../config/schema.js";
34
+ import { AssistantConfigSchema } from "../config/schema.js";
35
+ import { AssistantConfig } from "../config/schema.js";
36
+ import { DEFAULT_ELEVENLABS_VOICE_ID } from "../config/schemas/elevenlabs.js";
38
37
  import { SttServiceSchema } from "../config/schemas/stt.js";
39
38
  import { TtsServiceSchema } from "../config/schemas/tts.js";
40
- import type { AssistantConfig } from "../config/types.js";
41
39
  import { listCatalogProviderIds } from "../tts/provider-catalog.js";
42
40
  import { resolveTtsConfig } from "../tts/tts-config-resolver.js";
43
41
  import { TTS_PROVIDER_IDS } from "../tts/types.js";
@@ -2683,8 +2681,8 @@ describe("Call entrypoint gating", () => {
2683
2681
  // Force config reload
2684
2682
  getConfig();
2685
2683
 
2686
- const { executeCallStart: _executeCallStart } =
2687
- await import("../tools/calls/call-start.js");
2684
+ const { run: _runCallStartModule } =
2685
+ await import("../config/bundled-skills/phone-calls/tools/call-start.js");
2688
2686
 
2689
2687
  // The tool is registered via side effect. We need to test the gating logic directly.
2690
2688
  // Since the module registers itself, we test by loading config and checking behavior.
@@ -85,7 +85,8 @@ mock.module(
85
85
  );
86
86
 
87
87
  import { ContextWindowManager } from "../plugins/defaults/compaction/window-manager.js";
88
- import type { Message, Provider, ToolDefinition } from "../providers/types.js";
88
+ import type { Message, Provider } from "../providers/types.js";
89
+ import { ToolDefinition } from "../tools/tool-types.js";
89
90
 
90
91
  function makeProvider(): Provider {
91
92
  return {