@vellumai/assistant 0.10.12-dev.202607282031.4f29afe → 0.10.12-dev.202607282129.b0efc32

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 (1287) hide show
  1. package/eslint.config.mjs +1 -1
  2. package/openapi.yaml +2 -0
  3. package/package.json +1 -1
  4. package/scripts/build-plugin-api.ts +11 -4
  5. package/scripts/capture-x-graphql.ts +54 -20
  6. package/scripts/generate-openapi.ts +7 -3
  7. package/scripts/memory-inspect.ts +17 -6
  8. package/scripts/sync-llm-catalog.ts +44 -19
  9. package/scripts/sync-web-search-catalog.ts +3 -1
  10. package/scripts/voice-ttft-spike.ts +6 -3
  11. package/src/__tests__/agent-loop-output-hooks.test.ts +35 -11
  12. package/src/__tests__/agent-loop-regrowth-guard.test.ts +3 -1
  13. package/src/__tests__/agent-loop.test.ts +5 -2
  14. package/src/__tests__/anthropic-error-formatting.test.ts +3 -1
  15. package/src/__tests__/app-control-flow.test.ts +3 -1
  16. package/src/__tests__/app-control-tool-schemas.test.ts +6 -2
  17. package/src/__tests__/app-dir-path-guard.test.ts +9 -3
  18. package/src/__tests__/app-routes-csp.test.ts +12 -4
  19. package/src/__tests__/app-source-watcher.test.ts +3 -1
  20. package/src/__tests__/approval-primitive.test.ts +66 -22
  21. package/src/__tests__/assistant-feature-flag-guard.test.ts +6 -2
  22. package/src/__tests__/assistant-feature-flag-guardrails.test.ts +12 -4
  23. package/src/__tests__/assistant-id-boundary-guard.test.ts +26 -9
  24. package/src/__tests__/attachments-store.test.ts +12 -4
  25. package/src/__tests__/avatar-generator.test.ts +3 -1
  26. package/src/__tests__/background-shell-bash.test.ts +3 -1
  27. package/src/__tests__/browser-fill-credential.test.ts +6 -2
  28. package/src/__tests__/browser-runtime-check.test.ts +3 -1
  29. package/src/__tests__/build-persisted-content.test.ts +3 -1
  30. package/src/__tests__/bundled-skill-retrieval-guard.test.ts +15 -5
  31. package/src/__tests__/call-controller.test.ts +9 -3
  32. package/src/__tests__/call-domain.test.ts +15 -8
  33. package/src/__tests__/call-setup-flow-midcall-trust.test.ts +3 -1
  34. package/src/__tests__/call-state-machine.test.ts +3 -1
  35. package/src/__tests__/channel-approval-routes.test.ts +2 -1
  36. package/src/__tests__/channel-approval.test.ts +9 -6
  37. package/src/__tests__/channel-guardian.test.ts +3 -1
  38. package/src/__tests__/channel-setup-panel-ack.test.ts +1 -3
  39. package/src/__tests__/clawhub.test.ts +3 -1
  40. package/src/__tests__/cli-memory-v2-reembed-skills.test.ts +3 -1
  41. package/src/__tests__/compact-event-conversation-id-guard.test.ts +3 -2
  42. package/src/__tests__/config-loader-corrupt.test.ts +3 -1
  43. package/src/__tests__/config-loader-platform-defaults.test.ts +3 -1
  44. package/src/__tests__/config-loader-quarantine-notice.test.ts +3 -1
  45. package/src/__tests__/config-loader-validation-reset-notice.test.ts +3 -1
  46. package/src/__tests__/config-model-image-provider.test.ts +3 -1
  47. package/src/__tests__/config-set-platform-guard.test.ts +3 -1
  48. package/src/__tests__/config-watcher.test.ts +3 -1
  49. package/src/__tests__/connection-model-compat.test.ts +3 -1
  50. package/src/__tests__/contact-store-user-file.test.ts +18 -6
  51. package/src/__tests__/contacts-relay-reads.test.ts +31 -22
  52. package/src/__tests__/contacts-tools.test.ts +3 -1
  53. package/src/__tests__/context-overflow-reducer.test.ts +3 -1
  54. package/src/__tests__/context-search-memory-v2-source.test.ts +3 -1
  55. package/src/__tests__/conversation-agent-loop-handlers-max-tokens.test.ts +3 -1
  56. package/src/__tests__/conversation-fork-route.test.ts +3 -1
  57. package/src/__tests__/conversation-inference-profile-list.test.ts +3 -1
  58. package/src/__tests__/conversation-list-source.test.ts +3 -1
  59. package/src/__tests__/conversation-loop-db-lock-resilience.test.ts +9 -8
  60. package/src/__tests__/conversation-pairing.test.ts +6 -2
  61. package/src/__tests__/conversation-routes-disk-view.test.ts +18 -6
  62. package/src/__tests__/conversation-slash-commands.test.ts +27 -9
  63. package/src/__tests__/conversation-starter-routes.test.ts +6 -2
  64. package/src/__tests__/conversation-surfaces-app-control.test.ts +3 -1
  65. package/src/__tests__/conversation-surfaces-app-open.test.ts +1 -3
  66. package/src/__tests__/conversation-surfaces-standalone.test.ts +6 -2
  67. package/src/__tests__/conversation-surfaces-state-update.test.ts +1 -3
  68. package/src/__tests__/conversation-surfaces-table-action.test.ts +1 -3
  69. package/src/__tests__/credential-broker-server-use.test.ts +21 -7
  70. package/src/__tests__/credential-broker.test.ts +30 -10
  71. package/src/__tests__/credential-execution-client.test.ts +17 -6
  72. package/src/__tests__/credential-security-invariants.test.ts +3 -1
  73. package/src/__tests__/db-migration-rollback.test.ts +21 -7
  74. package/src/__tests__/db-readiness-http-gate.test.ts +3 -1
  75. package/src/__tests__/disk-pressure-guard.test.ts +3 -1
  76. package/src/__tests__/dm-backfill.test.ts +3 -1
  77. package/src/__tests__/dm-persistence.test.ts +3 -1
  78. package/src/__tests__/docker-signing-key-bootstrap.test.ts +2 -1
  79. package/src/__tests__/edit-engine.test.ts +42 -14
  80. package/src/__tests__/events-dev-bypass-actor.test.ts +3 -1
  81. package/src/__tests__/file-ops-service.test.ts +60 -20
  82. package/src/__tests__/filesystem-tools.test.ts +90 -30
  83. package/src/__tests__/fixtures/mock-chrome-extension.ts +18 -6
  84. package/src/__tests__/fixtures/mock-signup-server.ts +6 -2
  85. package/src/__tests__/fuzzy-match-property.test.ts +18 -6
  86. package/src/__tests__/gateway-flag-listener.test.ts +9 -3
  87. package/src/__tests__/gateway-only-enforcement.test.ts +2 -1
  88. package/src/__tests__/gateway-only-guard.test.ts +12 -4
  89. package/src/__tests__/gemini-image-service.test.ts +3 -1
  90. package/src/__tests__/gemini-provider.test.ts +3 -1
  91. package/src/__tests__/get-skill-detail-audit.test.ts +9 -3
  92. package/src/__tests__/guardian-decision-primitive-canonical.test.ts +42 -14
  93. package/src/__tests__/guardian-expiry-notifier.test.ts +3 -1
  94. package/src/__tests__/guardian-question-mode.test.ts +12 -4
  95. package/src/__tests__/headless-browser-interactions.test.ts +6 -2
  96. package/src/__tests__/headless-browser-mode.test.ts +6 -2
  97. package/src/__tests__/headless-browser-navigate.test.ts +33 -11
  98. package/src/__tests__/headless-browser-read-tools.test.ts +24 -8
  99. package/src/__tests__/headless-browser-snapshot.test.ts +3 -1
  100. package/src/__tests__/helpers/channel-test-adapter.ts +17 -7
  101. package/src/__tests__/helpers/create-guardian-binding.ts +3 -1
  102. package/src/__tests__/helpers/derive-guardian-delivery.ts +3 -1
  103. package/src/__tests__/helpers/gateway-acl-store.ts +6 -2
  104. package/src/__tests__/helpers/gateway-classify-mock.ts +3 -1
  105. package/src/__tests__/helpers/seed-contact-channel.ts +3 -1
  106. package/src/__tests__/helpers/tar-fixtures.ts +3 -1
  107. package/src/__tests__/host-app-control-routes.test.ts +6 -2
  108. package/src/__tests__/host-cu-proxy.test.ts +7 -1
  109. package/src/__tests__/host-proxy-preactivation.test.ts +1 -5
  110. package/src/__tests__/host-transfer-proxy.test.ts +4 -4
  111. package/src/__tests__/host-transfer-routes-targeted.test.ts +3 -1
  112. package/src/__tests__/inbound-slack-persistence.test.ts +3 -1
  113. package/src/__tests__/injector-config-quarantine-notice.test.ts +3 -1
  114. package/src/__tests__/injector-config-validation-reset-notice.test.ts +3 -1
  115. package/src/__tests__/injector-disk-pressure.test.ts +3 -1
  116. package/src/__tests__/injector-document-comments.test.ts +3 -1
  117. package/src/__tests__/injector-v3-suppression.test.ts +6 -2
  118. package/src/__tests__/inline-skill-authoring-guard.test.ts +12 -4
  119. package/src/__tests__/internal-telemetry-routes.test.ts +3 -1
  120. package/src/__tests__/lexical-index-dual-write.test.ts +3 -1
  121. package/src/__tests__/lifecycle-memory-v2-seed.test.ts +9 -3
  122. package/src/__tests__/llm-callsite-catalog.test.ts +3 -1
  123. package/src/__tests__/llm-catalog-parity.test.ts +21 -7
  124. package/src/__tests__/mcp-cli.test.ts +10 -3
  125. package/src/__tests__/media-stream-output.test.ts +9 -3
  126. package/src/__tests__/media-stream-parser.test.ts +111 -37
  127. package/src/__tests__/media-stream-stt-session.test.ts +34 -11
  128. package/src/__tests__/migration-cross-version-compatibility.test.ts +3 -1
  129. package/src/__tests__/migration-export-http.test.ts +9 -3
  130. package/src/__tests__/migration-export-streaming.test.ts +9 -3
  131. package/src/__tests__/migration-import-commit-http.test.ts +21 -7
  132. package/src/__tests__/migration-import-preflight-http.test.ts +3 -1
  133. package/src/__tests__/migration-validate-http.test.ts +3 -1
  134. package/src/__tests__/mock-fetch.ts +3 -1
  135. package/src/__tests__/mock-gateway-ipc.ts +20 -7
  136. package/src/__tests__/mock-signup-server.test.ts +9 -3
  137. package/src/__tests__/native-web-search.test.ts +3 -1
  138. package/src/__tests__/no-is-trusted-guard.test.ts +3 -1
  139. package/src/__tests__/notification-broadcaster.test.ts +5 -3
  140. package/src/__tests__/notification-platform-adapter.test.ts +12 -4
  141. package/src/__tests__/oauth-apps-routes.test.ts +3 -1
  142. package/src/__tests__/oauth-commands-routes.test.ts +9 -3
  143. package/src/__tests__/oauth-connect-orchestrator.test.ts +33 -11
  144. package/src/__tests__/oauth-connect-routes.test.ts +3 -1
  145. package/src/__tests__/oauth-providers-routes.test.ts +15 -10
  146. package/src/__tests__/oauth2-refresh-retry.test.ts +3 -1
  147. package/src/__tests__/onboarding-persona-write.test.ts +12 -10
  148. package/src/__tests__/openai-image-service.test.ts +6 -2
  149. package/src/__tests__/openai-provider.test.ts +3 -1
  150. package/src/__tests__/openai-responses-cutover-guard.test.ts +3 -1
  151. package/src/__tests__/openai-responses-provider.test.ts +3 -1
  152. package/src/__tests__/outbound-slack-persistence.test.ts +18 -6
  153. package/src/__tests__/persist-media-references.test.ts +3 -1
  154. package/src/__tests__/persist-onboarding-artifacts.test.ts +3 -1
  155. package/src/__tests__/persist-user-message-set-processing-failure.test.ts +3 -1
  156. package/src/__tests__/persistence-secret-redaction.test.ts +9 -3
  157. package/src/__tests__/persona-resolver.test.ts +3 -1
  158. package/src/__tests__/plugin-api-tool-definition.test.ts +5 -8
  159. package/src/__tests__/post-turn-tool-result-truncation.test.ts +3 -1
  160. package/src/__tests__/prechat-onboarding-contract.test.ts +6 -2
  161. package/src/__tests__/process-message-background-slack.test.ts +3 -1
  162. package/src/__tests__/profiler-routes.test.ts +10 -12
  163. package/src/__tests__/provider-catalog-visibility.test.ts +12 -4
  164. package/src/__tests__/provider-error-scenarios.test.ts +27 -9
  165. package/src/__tests__/provider-streaming.benchmark.test.ts +12 -4
  166. package/src/__tests__/recording-handler.test.ts +7 -3
  167. package/src/__tests__/run-conversation-turn-persistence.test.ts +3 -1
  168. package/src/__tests__/runtime-events-sse-reconnect.test.ts +3 -1
  169. package/src/__tests__/schedule-retry.test.ts +3 -1
  170. package/src/__tests__/schedule-routes-workflow-validation.test.ts +9 -3
  171. package/src/__tests__/scheduler-reuse-conversation.test.ts +3 -1
  172. package/src/__tests__/script-proxy-injection-runtime.test.ts +14 -5
  173. package/src/__tests__/script-proxy-mitm-handler.test.ts +12 -4
  174. package/src/__tests__/script-proxy-rewrite-specificity.test.ts +12 -4
  175. package/src/__tests__/search-skills-unified.test.ts +27 -9
  176. package/src/__tests__/service-contracts-import-guard.test.ts +12 -4
  177. package/src/__tests__/settings-routes.test.ts +3 -1
  178. package/src/__tests__/shell-credential-ref.test.ts +6 -2
  179. package/src/__tests__/shell-observability.test.ts +3 -1
  180. package/src/__tests__/skill-cache-store.test.ts +3 -1
  181. package/src/__tests__/skill-feature-flags-integration.test.ts +3 -1
  182. package/src/__tests__/skill-secret-handling-guard.test.ts +11 -4
  183. package/src/__tests__/skills-file-content-endpoint.test.ts +93 -31
  184. package/src/__tests__/skills-files-catalog-fallback.test.ts +33 -11
  185. package/src/__tests__/skills.test.ts +33 -14
  186. package/src/__tests__/slack-channel-config.test.ts +6 -2
  187. package/src/__tests__/slack-messaging-token-resolution.test.ts +6 -2
  188. package/src/__tests__/sse-actor-principal-guardian-source.test.ts +3 -1
  189. package/src/__tests__/steer-on-enqueue-question.test.ts +3 -1
  190. package/src/__tests__/steer-tool-repair.test.ts +6 -2
  191. package/src/__tests__/subagent-allowlist-validation.test.ts +3 -1
  192. package/src/__tests__/subagent-fork-prompt-role.test.ts +3 -1
  193. package/src/__tests__/subagent-role-registry.test.ts +3 -1
  194. package/src/__tests__/system-prompt.test.ts +12 -5
  195. package/src/__tests__/task-progress-nudge-hook.test.ts +3 -1
  196. package/src/__tests__/telegram-bot-username-resolution.test.ts +3 -1
  197. package/src/__tests__/telegram-config.test.ts +3 -1
  198. package/src/__tests__/telemetry-routes.test.ts +8 -3
  199. package/src/__tests__/thinking-block-replay.test.ts +1 -2
  200. package/src/__tests__/thread-backfill.test.ts +24 -8
  201. package/src/__tests__/token-estimator-accuracy.benchmark.test.ts +6 -2
  202. package/src/__tests__/token-manager.test.ts +36 -12
  203. package/src/__tests__/tool-preview-lifecycle.test.ts +3 -6
  204. package/src/__tests__/tool-result-truncation.test.ts +3 -1
  205. package/src/__tests__/trusted-contact-approval-notifier.test.ts +6 -2
  206. package/src/__tests__/tts-catalog-parity.test.ts +6 -2
  207. package/src/__tests__/twilio-provider.test.ts +6 -2
  208. package/src/__tests__/unicode.test.ts +1 -3
  209. package/src/__tests__/usage-cli.test.ts +3 -1
  210. package/src/__tests__/usage-routes.test.ts +3 -1
  211. package/src/__tests__/validate-input.test.ts +27 -9
  212. package/src/__tests__/voice-approval-resolver-relay.test.ts +15 -5
  213. package/src/__tests__/voice-config-update.test.ts +3 -1
  214. package/src/__tests__/web-fetch.test.ts +21 -7
  215. package/src/__tests__/web-search-catalog-parity.test.ts +11 -4
  216. package/src/__tests__/web-search-history.test.ts +72 -78
  217. package/src/__tests__/web-search.test.ts +15 -5
  218. package/src/__tests__/workspace-greetings.test.ts +3 -1
  219. package/src/__tests__/workspace-migration-026-backfill-install-meta.test.ts +3 -1
  220. package/src/__tests__/workspace-migration-043-release-notes-latex-rendering.test.ts +3 -1
  221. package/src/__tests__/workspace-migration-082-backfill-managed-profile-labels.test.ts +1 -4
  222. package/src/__tests__/workspace-migration-130-speech-mode-to-provider.test.ts +3 -1
  223. package/src/__tests__/workspace-migration-down-functions.test.ts +5 -2
  224. package/src/__tests__/workspace-migration-meets.test.ts +4 -6
  225. package/src/__tests__/workspace-migration-memory-v2-init.test.ts +3 -1
  226. package/src/__tests__/workspace-migration-seed-device-id.test.ts +3 -1
  227. package/src/acp/__tests__/helpers/exec-file-stub.ts +3 -1
  228. package/src/acp/__tests__/prepare-agent-env.test.ts +3 -1
  229. package/src/acp/agent-process.ts +18 -6
  230. package/src/acp/auto-install.test.ts +9 -3
  231. package/src/acp/auto-install.ts +6 -2
  232. package/src/acp/failure-error.ts +8 -3
  233. package/src/acp/prepare-agent-env.ts +3 -1
  234. package/src/acp/resolve-agent.test.ts +81 -27
  235. package/src/acp/resolve-agent.ts +9 -3
  236. package/src/agent/image-optimize.ts +18 -6
  237. package/src/api/events/tool-result.ts +1 -0
  238. package/src/apps/app-store.ts +65 -22
  239. package/src/apps/shared-app-links-store.ts +9 -3
  240. package/src/avatar/__tests__/avatar-store.test.ts +6 -2
  241. package/src/avatar/avatar-manifest.ts +18 -6
  242. package/src/avatar/resvg-lazy.test.ts +6 -2
  243. package/src/background-wake/background-wake-routes.test.ts +9 -3
  244. package/src/background-wake/next-wake.ts +15 -5
  245. package/src/background-wake/platform-client.ts +18 -6
  246. package/src/background-wake/publisher.ts +3 -1
  247. package/src/backup/__tests__/paths.test.ts +0 -1
  248. package/src/backup/__tests__/restore.test.ts +1 -6
  249. package/src/backup/__tests__/snapshot-lock.test.ts +3 -2
  250. package/src/backup/list-snapshots.ts +15 -5
  251. package/src/backup/local-writer.ts +9 -3
  252. package/src/backup/paths.ts +6 -3
  253. package/src/backup/snapshot-lock.ts +18 -6
  254. package/src/browser-session/__tests__/manager.test.ts +6 -2
  255. package/src/browser-session/manager.ts +6 -2
  256. package/src/bundler/app-compiler.ts +44 -15
  257. package/src/bundler/bundle-scanner.ts +29 -10
  258. package/src/bundler/bundle-signer.ts +3 -1
  259. package/src/bundler/compiler-tools.ts +15 -5
  260. package/src/bundler/package-resolver.ts +3 -1
  261. package/src/bundler/signature-verifier.ts +3 -1
  262. package/src/calls/__tests__/inbound-trust-reader.test.ts +1 -4
  263. package/src/calls/__tests__/tts-text-sanitizer.test.ts +11 -11
  264. package/src/calls/access-request-wait.ts +9 -3
  265. package/src/calls/audio-store.ts +9 -3
  266. package/src/calls/call-constants.ts +6 -2
  267. package/src/calls/call-controller.ts +72 -25
  268. package/src/calls/call-pointer-message-composer.ts +11 -4
  269. package/src/calls/call-pointer-messages.ts +24 -8
  270. package/src/calls/call-store.ts +12 -4
  271. package/src/calls/guardian-action-sweep.ts +3 -1
  272. package/src/calls/inbound-trust-reader.ts +5 -1
  273. package/src/calls/media-stream-audio-transcode.ts +9 -3
  274. package/src/calls/media-stream-output.ts +41 -15
  275. package/src/calls/media-stream-stt-session.ts +21 -7
  276. package/src/calls/media-turn-detector.ts +9 -3
  277. package/src/calls/speaker-identification.ts +21 -7
  278. package/src/calls/telephony-credential-preflight.ts +1 -3
  279. package/src/calls/tts-text-sanitizer.ts +2 -8
  280. package/src/calls/twilio-config.ts +3 -1
  281. package/src/calls/twilio-provider.ts +3 -1
  282. package/src/calls/twilio-rest.ts +3 -1
  283. package/src/calls/voice-control-protocol.ts +12 -4
  284. package/src/channels/__tests__/gateway-verification-sessions.test.ts +2 -3
  285. package/src/channels/permission-profiles.ts +9 -3
  286. package/src/channels/slack-callback-url.ts +9 -3
  287. package/src/channels/types.ts +17 -6
  288. package/src/cli/__tests__/run-assistant-command.ts +3 -1
  289. package/src/cli/__tests__/unknown-command.test.ts +3 -1
  290. package/src/cli/commands/__tests__/attachment.test.ts +3 -1
  291. package/src/cli/commands/__tests__/avatar.test.ts +18 -10
  292. package/src/cli/commands/__tests__/backup.test.ts +30 -10
  293. package/src/cli/commands/__tests__/browser.test.ts +3 -1
  294. package/src/cli/commands/__tests__/cache.test.ts +3 -1
  295. package/src/cli/commands/__tests__/changelog.test.ts +3 -1
  296. package/src/cli/commands/__tests__/channel-verification-sessions.test.ts +11 -6
  297. package/src/cli/commands/__tests__/conversations-import.test.ts +3 -1
  298. package/src/cli/commands/__tests__/conversations-new.test.ts +9 -3
  299. package/src/cli/commands/__tests__/conversations-slack.test.ts +15 -5
  300. package/src/cli/commands/__tests__/conversations-wake.test.ts +13 -3
  301. package/src/cli/commands/__tests__/domain-register.test.ts +1 -3
  302. package/src/cli/commands/__tests__/domain-status.test.ts +13 -5
  303. package/src/cli/commands/__tests__/email-attachment.test.ts +61 -19
  304. package/src/cli/commands/__tests__/email-core.test.ts +126 -49
  305. package/src/cli/commands/__tests__/gateway.test.ts +6 -2
  306. package/src/cli/commands/__tests__/image-generation.test.ts +5 -2
  307. package/src/cli/commands/__tests__/inference-send.test.ts +3 -1
  308. package/src/cli/commands/__tests__/skills.test.ts +3 -1
  309. package/src/cli/commands/__tests__/status.test.ts +16 -3
  310. package/src/cli/commands/__tests__/stt.test.ts +23 -5
  311. package/src/cli/commands/__tests__/trust.test.ts +3 -1
  312. package/src/cli/commands/__tests__/tts.test.ts +6 -2
  313. package/src/cli/commands/__tests__/ui-confirm.test.ts +3 -1
  314. package/src/cli/commands/__tests__/ui.test.ts +3 -1
  315. package/src/cli/commands/__tests__/watchers.test.ts +3 -1
  316. package/src/cli/commands/__tests__/webhooks.test.ts +23 -5
  317. package/src/cli/commands/audit.ts +7 -3
  318. package/src/cli/commands/avatar.ts +14 -7
  319. package/src/cli/commands/backup.ts +42 -17
  320. package/src/cli/commands/cache.ts +9 -3
  321. package/src/cli/commands/changelog.ts +50 -18
  322. package/src/cli/commands/channel-verification-sessions.ts +25 -10
  323. package/src/cli/commands/channels/__tests__/channels.test.ts +8 -13
  324. package/src/cli/commands/channels/index.ts +12 -4
  325. package/src/cli/commands/clients.ts +12 -4
  326. package/src/cli/commands/contacts.ts +28 -12
  327. package/src/cli/commands/conversations-import.ts +2 -1
  328. package/src/cli/commands/conversations.ts +12 -4
  329. package/src/cli/commands/db/__tests__/repair.test.ts +6 -2
  330. package/src/cli/commands/db/format.ts +18 -6
  331. package/src/cli/commands/db/repair-steps.ts +3 -1
  332. package/src/cli/commands/db/status.ts +6 -2
  333. package/src/cli/commands/gateway.ts +25 -9
  334. package/src/cli/commands/image-generation.ts +5 -2
  335. package/src/cli/commands/inference-session.ts +6 -2
  336. package/src/cli/commands/memory/__tests__/memory-v2.test.ts +3 -1
  337. package/src/cli/commands/memory/__tests__/memory-v3.test.ts +3 -1
  338. package/src/cli/commands/memory/__tests__/worker.test.ts +3 -1
  339. package/src/cli/commands/memory/memory-v2-compare-render.ts +3 -1
  340. package/src/cli/commands/memory/memory-v2.ts +12 -4
  341. package/src/cli/commands/memory/memory-v3.ts +3 -1
  342. package/src/cli/commands/notifications.ts +56 -19
  343. package/src/cli/commands/oauth/apps.ts +15 -5
  344. package/src/cli/commands/oauth/disconnect.ts +9 -3
  345. package/src/cli/commands/oauth/mode.ts +6 -2
  346. package/src/cli/commands/oauth/ping.ts +9 -3
  347. package/src/cli/commands/oauth/providers.ts +223 -92
  348. package/src/cli/commands/oauth/request.ts +26 -9
  349. package/src/cli/commands/oauth/token.ts +9 -3
  350. package/src/cli/commands/platform/__tests__/callback-routes-list.test.ts +7 -8
  351. package/src/cli/commands/platform/connect.ts +2 -1
  352. package/src/cli/commands/platform/disconnect.ts +2 -1
  353. package/src/cli/commands/platform/index.ts +8 -4
  354. package/src/cli/commands/ps.ts +3 -1
  355. package/src/cli/commands/sequence.ts +43 -15
  356. package/src/cli/commands/skills.ts +103 -45
  357. package/src/cli/commands/status.ts +3 -1
  358. package/src/cli/commands/telemetry.ts +2 -1
  359. package/src/cli/commands/ui.ts +6 -2
  360. package/src/cli/commands/watchers.ts +31 -11
  361. package/src/cli/commands/webhooks.ts +4 -2
  362. package/src/cli/lib/__tests__/inspect-plugin.test.ts +3 -1
  363. package/src/cli/lib/__tests__/plugin-catalog-cache.test.ts +5 -2
  364. package/src/cli/lib/__tests__/plugin-catalog-resolve.test.ts +20 -11
  365. package/src/cli/lib/__tests__/plugin-details.test.ts +13 -7
  366. package/src/cli/lib/__tests__/plugin-pin-history.test.ts +3 -1
  367. package/src/cli/lib/__tests__/plugins-install-offline.test.ts +17 -5
  368. package/src/cli/lib/__tests__/search-plugins.test.ts +13 -6
  369. package/src/cli/lib/__tests__/upgrade-plugin.test.ts +9 -3
  370. package/src/cli/lib/cli-colors.ts +24 -8
  371. package/src/cli/lib/confirm-prompt.ts +3 -1
  372. package/src/cli/lib/install-from-github.ts +6 -2
  373. package/src/cli/lib/ipc-params.ts +6 -2
  374. package/src/cli/lib/list-installed-plugins.ts +21 -7
  375. package/src/cli/lib/parse-github-plugin-spec.ts +15 -5
  376. package/src/cli/lib/plugin-artifact.ts +9 -3
  377. package/src/cli/lib/plugin-catalog-platform.ts +7 -2
  378. package/src/cli/lib/plugin-catalog-resolve.ts +7 -5
  379. package/src/cli/lib/plugin-marketplace.ts +12 -4
  380. package/src/cli/lib/plugin-surfaces.ts +15 -5
  381. package/src/cli/lib/publish-plugin.ts +24 -8
  382. package/src/cli/lib/search-plugins.ts +3 -1
  383. package/src/cli/lib/time-ago.ts +18 -6
  384. package/src/cli/lib/unknown-command.ts +12 -4
  385. package/src/cli/output.ts +3 -1
  386. package/src/cli/program.ts +3 -1
  387. package/src/cli/utils/__tests__/conversation-id.test.ts +3 -3
  388. package/src/cli/utils/conversation-id.ts +9 -3
  389. package/src/cli/utils/parse-duration.ts +6 -2
  390. package/src/config/__tests__/deployment-context-defaults.test.ts +9 -3
  391. package/src/config/__tests__/feature-flag-registry-guard.test.ts +7 -2
  392. package/src/config/__tests__/loader-callsite-strip-fallback.test.ts +9 -3
  393. package/src/config/__tests__/plugin-resident-skill-discovery.test.ts +5 -2
  394. package/src/config/__tests__/sync-gated-profiles.test.ts +6 -2
  395. package/src/config/assistant-feature-flags.ts +32 -11
  396. package/src/config/bundled-skills/app-builder/references/DESIGN_SYSTEM.md +1 -1
  397. package/src/config/bundled-skills/app-builder/references/SLIDES.md +1 -0
  398. package/src/config/bundled-skills/app-builder/references/WIDGETS.md +1 -1
  399. package/src/config/bundled-skills/app-builder/tools/app-generate-icon.ts +3 -1
  400. package/src/config/bundled-skills/app-builder/tools/app-refresh.ts +3 -1
  401. package/src/config/bundled-skills/app-builder/tools/app-update.ts +3 -1
  402. package/src/config/bundled-skills/contacts/tools/contact-search.ts +11 -4
  403. package/src/config/bundled-skills/contacts/tools/google-contacts.ts +6 -2
  404. package/src/config/bundled-skills/media-processing/__tests__/extract-keyframes.test.ts +3 -1
  405. package/src/config/bundled-skills/media-processing/services/preprocess.ts +9 -3
  406. package/src/config/bundled-skills/media-processing/services/processing-pipeline.ts +9 -3
  407. package/src/config/bundled-skills/media-processing/services/reduce.ts +3 -1
  408. package/src/config/bundled-skills/media-processing/tools/generate-clip.ts +3 -1
  409. package/src/config/bundled-skills/media-processing/tools/ingest-media.ts +12 -4
  410. package/src/config/bundled-skills/messaging/tools/messaging-analyze-style.ts +6 -2
  411. package/src/config/bundled-skills/messaging/tools/messaging-draft.ts +23 -8
  412. package/src/config/bundled-skills/messaging/tools/messaging-send.ts +5 -2
  413. package/src/config/bundled-skills/messaging/tools/shared.ts +21 -7
  414. package/src/config/bundled-skills/phone-calls/references/TRANSCRIPTS.md +7 -7
  415. package/src/config/bundled-skills/playbooks/tools/playbook-list.ts +11 -4
  416. package/src/config/bundled-skills/sequences/tools/sequence-create.ts +8 -3
  417. package/src/config/bundled-skills/sequences/tools/sequence-delete.ts +6 -2
  418. package/src/config/bundled-skills/sequences/tools/sequence-enroll.ts +12 -4
  419. package/src/config/bundled-skills/sequences/tools/sequence-enrollment-list.ts +3 -1
  420. package/src/config/bundled-skills/sequences/tools/sequence-get.ts +6 -2
  421. package/src/config/bundled-skills/sequences/tools/sequence-import.ts +13 -5
  422. package/src/config/bundled-skills/sequences/tools/sequence-list.ts +3 -1
  423. package/src/config/bundled-skills/sequences/tools/sequence-update.ts +17 -7
  424. package/src/config/bundled-skills/transcribe/tools/transcribe-media.test.ts +3 -1
  425. package/src/config/bundled-skills/transcribe/tools/transcribe-media.ts +15 -5
  426. package/src/config/env-registry.ts +3 -1
  427. package/src/config/env.ts +6 -2
  428. package/src/config/loader.ts +42 -14
  429. package/src/config/prune-seeded-callsite-defaults.ts +30 -10
  430. package/src/config/schema-utils.ts +9 -3
  431. package/src/config/seed-inference-profiles.ts +27 -9
  432. package/src/config/skills.ts +93 -31
  433. package/src/config/sync-gated-profiles.ts +21 -7
  434. package/src/contacts/__tests__/guardian-contact-reader.test.ts +3 -1
  435. package/src/contacts/contact-store.ts +106 -37
  436. package/src/contacts/guardian-contact-reader.ts +3 -1
  437. package/src/contacts/guardian-delivery-reader.ts +15 -5
  438. package/src/context/compactor.ts +96 -32
  439. package/src/context/estimator-calibration.ts +9 -3
  440. package/src/context/image-dimensions.ts +75 -25
  441. package/src/context/post-turn-tool-result-truncation.ts +45 -15
  442. package/src/context/strip-injections.ts +15 -5
  443. package/src/context/token-estimator.ts +3 -1
  444. package/src/context/tool-result-spool.ts +3 -1
  445. package/src/context/tool-result-truncation.ts +6 -2
  446. package/src/conversations/job-handlers/summarization.ts +12 -4
  447. package/src/credential-execution/ces-runtime.ts +10 -10
  448. package/src/credential-execution/process-manager.test.ts +3 -1
  449. package/src/credential-execution/process-manager.ts +6 -2
  450. package/src/credential-health/credential-health-service.ts +30 -10
  451. package/src/daemon/__tests__/embedding-reconcile.test.ts +3 -1
  452. package/src/daemon/app-source-watcher.ts +21 -7
  453. package/src/daemon/assistant-attachments.ts +44 -15
  454. package/src/daemon/classifier.ts +9 -3
  455. package/src/daemon/connection-policy.ts +6 -2
  456. package/src/daemon/conversation-evictor.ts +12 -4
  457. package/src/daemon/conversation-media-retry.ts +18 -6
  458. package/src/daemon/conversation-messaging.ts +37 -15
  459. package/src/daemon/conversation-notices.ts +6 -2
  460. package/src/daemon/conversation-plugin-scope.ts +3 -1
  461. package/src/daemon/conversation-queue-manager.ts +16 -8
  462. package/src/daemon/conversation-registry.ts +9 -3
  463. package/src/daemon/conversation-slash.ts +45 -15
  464. package/src/daemon/conversation-usage.ts +27 -9
  465. package/src/daemon/conversation-workspace.ts +5 -2
  466. package/src/daemon/daemon-control.ts +42 -14
  467. package/src/daemon/date-context.ts +15 -5
  468. package/src/daemon/dictation-profile-store.ts +26 -10
  469. package/src/daemon/dictation-text-processing.ts +9 -3
  470. package/src/daemon/disk-pressure-guard.ts +12 -4
  471. package/src/daemon/disk-pressure-policy.ts +15 -5
  472. package/src/daemon/first-greeting.ts +9 -3
  473. package/src/daemon/handlers/__tests__/config-channels.test.ts +9 -3
  474. package/src/daemon/handlers/config-channels.ts +3 -1
  475. package/src/daemon/handlers/conversations.ts +6 -2
  476. package/src/daemon/handlers/identity.ts +6 -2
  477. package/src/daemon/handlers/skills.ts +138 -48
  478. package/src/daemon/host-app-control-proxy.ts +3 -1
  479. package/src/daemon/host-bash-proxy.ts +11 -4
  480. package/src/daemon/host-cu-proxy.ts +20 -7
  481. package/src/daemon/host-transfer-proxy.ts +24 -8
  482. package/src/daemon/identity-helpers.ts +3 -1
  483. package/src/daemon/install-symlink.ts +18 -6
  484. package/src/daemon/message-types/web-activity.ts +1 -0
  485. package/src/daemon/now-scratchpad.ts +3 -1
  486. package/src/daemon/orphan-reaper.test.ts +17 -6
  487. package/src/daemon/orphan-reaper.ts +24 -8
  488. package/src/daemon/parse-actual-tokens-from-error.ts +27 -9
  489. package/src/daemon/persist-media-references.ts +6 -2
  490. package/src/daemon/pkb-context-tracker.test.ts +37 -9
  491. package/src/daemon/pkb-context-tracker.ts +12 -4
  492. package/src/daemon/pointer-conversation-trust.ts +3 -1
  493. package/src/daemon/process-message.ts +3 -1
  494. package/src/daemon/profiler-run-store.ts +21 -7
  495. package/src/daemon/sqlite-corruption-watchdog.ts +6 -2
  496. package/src/daemon/summarize-boundary.ts +3 -1
  497. package/src/daemon/turn-latency-tracker.ts +33 -11
  498. package/src/daemon/verification-session-intent.ts +3 -1
  499. package/src/daemon/wake-conversation-ops.ts +3 -1
  500. package/src/daemon/web-search-history.ts +12 -4
  501. package/src/documents/document-store.ts +15 -5
  502. package/src/followups/followup-store.ts +9 -3
  503. package/src/heartbeat/heartbeat-run-store.ts +3 -1
  504. package/src/home/conversation-starter-checkpoints.ts +3 -1
  505. package/src/home/feed-source-enrichment.ts +6 -2
  506. package/src/home/feed-writer.ts +27 -9
  507. package/src/home/home-greeting-cache.ts +3 -1
  508. package/src/home/job-handlers/conversation-starters.ts +15 -5
  509. package/src/home/post-connect-feed.ts +3 -1
  510. package/src/home/progress-formula.ts +6 -2
  511. package/src/home/relationship-state-writer.ts +78 -25
  512. package/src/ipc/__tests__/exit-helper.test.ts +12 -8
  513. package/src/ipc/__tests__/streaming-client.test.ts +52 -15
  514. package/src/ipc/__tests__/streaming-framing.test.ts +27 -7
  515. package/src/ipc/__tests__/ui-request-route.test.ts +3 -1
  516. package/src/ipc/__tests__/watcher-ipc.test.ts +6 -2
  517. package/src/ipc/assistant-server.ts +6 -2
  518. package/src/ipc/cli-client.ts +36 -12
  519. package/src/ipc/gateway-client.ts +6 -2
  520. package/src/ipc/gateway-flag-listener.ts +9 -3
  521. package/src/ipc/ipc-framing.ts +21 -7
  522. package/src/ipc/routes/__tests__/contacts-mirror-apply-atomicity.test.ts +7 -4
  523. package/src/ipc/routes/__tests__/contacts-mirror-apply.test.ts +22 -10
  524. package/src/ipc/routes/__tests__/contacts-mirror-ipc-routes.test.ts +26 -13
  525. package/src/ipc/routes/__tests__/contacts-mirror-merge-contact.test.ts +35 -9
  526. package/src/ipc/routes/__tests__/contacts-mirror-upsert-full.test.ts +37 -20
  527. package/src/ipc/routes/__tests__/guardian-label-ipc-routes.test.ts +4 -6
  528. package/src/ipc/routes/contacts-info-ipc-routes.ts +9 -6
  529. package/src/ipc/routes/trust-rules.test.ts +6 -2
  530. package/src/ipc/socket-cleanup.ts +6 -2
  531. package/src/live-voice/__tests__/live-voice-archive.test.ts +24 -8
  532. package/src/live-voice/__tests__/live-voice-stt.test.ts +9 -3
  533. package/src/live-voice/__tests__/protocol.test.ts +45 -15
  534. package/src/live-voice/__tests__/runtime-websocket-shell.test.ts +6 -2
  535. package/src/live-voice/live-voice-archive.ts +18 -6
  536. package/src/live-voice/live-voice-metrics.ts +24 -8
  537. package/src/live-voice/protocol.ts +6 -2
  538. package/src/mcp/client.ts +9 -3
  539. package/src/mcp/manager.ts +3 -1
  540. package/src/mcp/mcp-auth-orchestrator.ts +3 -1
  541. package/src/mcp/mcp-header-store.ts +3 -1
  542. package/src/mcp/mcp-oauth-provider.ts +12 -4
  543. package/src/media/gemini-image-service.ts +15 -5
  544. package/src/media/openai-image-service.ts +9 -3
  545. package/src/messaging/draft-store.ts +3 -1
  546. package/src/messaging/providers/__tests__/transport-dispatch.test.ts +3 -1
  547. package/src/messaging/providers/a2a/__tests__/deliver.test.ts +3 -1
  548. package/src/messaging/providers/a2a/deliver.ts +3 -1
  549. package/src/messaging/providers/callback-routing.ts +3 -1
  550. package/src/messaging/providers/gmail/adapter.ts +36 -12
  551. package/src/messaging/providers/gmail/client.ts +71 -24
  552. package/src/messaging/providers/gmail/mime-builder.ts +6 -2
  553. package/src/messaging/providers/gmail/people-client.ts +3 -1
  554. package/src/messaging/providers/outlook/client.ts +30 -10
  555. package/src/messaging/providers/slack/__tests__/adapter-token-routing.test.ts +15 -6
  556. package/src/messaging/providers/slack/adapter.ts +51 -17
  557. package/src/messaging/providers/slack/api.ts +39 -13
  558. package/src/messaging/providers/slack/client.ts +9 -3
  559. package/src/messaging/providers/slack/deep-link.ts +15 -5
  560. package/src/messaging/providers/slack/message-metadata.ts +21 -7
  561. package/src/messaging/providers/slack/render-transcript.ts +54 -18
  562. package/src/messaging/providers/slack/render.ts +50 -17
  563. package/src/messaging/providers/slack/transport.ts +9 -3
  564. package/src/messaging/providers/telegram-bot/adapter.ts +6 -2
  565. package/src/messaging/providers/telegram-bot/api.ts +3 -1
  566. package/src/messaging/providers/telegram-bot/render.ts +33 -11
  567. package/src/messaging/providers/telegram-bot/send.ts +3 -1
  568. package/src/messaging/providers/whatsapp/adapter.ts +3 -1
  569. package/src/messaging/providers/whatsapp/api.ts +9 -3
  570. package/src/messaging/registry.ts +3 -1
  571. package/src/messaging/style-analyzer.ts +3 -1
  572. package/src/monitoring/__tests__/sample-ring-buffer.test.ts +12 -4
  573. package/src/monitoring/process-memory.ts +2 -1
  574. package/src/monitoring/sample-ring-buffer.ts +15 -5
  575. package/src/notifications/adapters/platform.ts +6 -7
  576. package/src/notifications/adapters/shared.ts +9 -3
  577. package/src/notifications/conversation-candidates.ts +21 -7
  578. package/src/notifications/conversation-seed-composer.ts +21 -7
  579. package/src/notifications/copy-composer.ts +12 -4
  580. package/src/notifications/decisions-store.ts +6 -2
  581. package/src/notifications/deferred-emit.ts +18 -6
  582. package/src/notifications/deliveries-store.ts +3 -1
  583. package/src/notifications/destination-resolver.ts +12 -6
  584. package/src/notifications/deterministic-checks.ts +6 -2
  585. package/src/notifications/edit-notification.ts +3 -1
  586. package/src/notifications/events-store.ts +3 -1
  587. package/src/notifications/guardian-question-mode.ts +15 -5
  588. package/src/notifications/home-feed-side-effect.ts +12 -4
  589. package/src/notifications/notification-utils.ts +8 -3
  590. package/src/notifications/preference-extractor.ts +5 -2
  591. package/src/notifications/preference-summary.ts +3 -1
  592. package/src/oauth/__tests__/oauth-connect-state.test.ts +4 -1
  593. package/src/oauth/byo-connection.test.ts +15 -5
  594. package/src/oauth/byo-connection.ts +6 -2
  595. package/src/oauth/connect-orchestrator.ts +3 -1
  596. package/src/oauth/connection-resolver.test.ts +6 -2
  597. package/src/oauth/connection-resolver.ts +12 -4
  598. package/src/oauth/identity-verifier.ts +30 -10
  599. package/src/oauth/manual-token-connection.ts +12 -4
  600. package/src/oauth/oauth-connect-state.ts +15 -3
  601. package/src/oauth/oauth-store.ts +132 -52
  602. package/src/oauth/provider-serializer.ts +9 -3
  603. package/src/oauth/provider-visibility.ts +3 -1
  604. package/src/oauth/scope-utils.ts +3 -1
  605. package/src/onboarding/checkin-event.ts +33 -11
  606. package/src/outbound-proxy/certs.ts +6 -2
  607. package/src/outbound-proxy/connect-tunnel.ts +15 -5
  608. package/src/outbound-proxy/host-pattern-match.ts +3 -1
  609. package/src/outbound-proxy/http-forwarder.ts +9 -3
  610. package/src/outbound-proxy/logging.ts +6 -2
  611. package/src/outbound-proxy/mitm-handler.ts +9 -3
  612. package/src/outbound-proxy/policy.ts +12 -4
  613. package/src/outbound-proxy/router.ts +3 -1
  614. package/src/outbound-proxy/server.ts +15 -5
  615. package/src/permissions/approval-provenance.test.ts +13 -4
  616. package/src/permissions/question-prompter.test.ts +12 -4
  617. package/src/permissions/question-prompter.ts +6 -2
  618. package/src/persistence/__tests__/raw-query-telemetry.test.ts +3 -1
  619. package/src/persistence/a2a-invite-store.ts +1 -4
  620. package/src/persistence/attachments-store.ts +60 -20
  621. package/src/persistence/bookmark-crud.ts +6 -2
  622. package/src/persistence/compaction-ledger-store.ts +6 -2
  623. package/src/persistence/compaction-log-store-clickhouse.ts +29 -10
  624. package/src/persistence/conversation-attention-store.ts +3 -1
  625. package/src/persistence/conversation-directories.ts +9 -3
  626. package/src/persistence/conversation-group-migration.ts +3 -1
  627. package/src/persistence/conversation-key-store.ts +3 -1
  628. package/src/persistence/conversation-search-lexical.ts +3 -1
  629. package/src/persistence/db-async-query.ts +9 -3
  630. package/src/persistence/delivery-channels.ts +3 -1
  631. package/src/persistence/embeddings/__tests__/embedding-identity.test.ts +9 -3
  632. package/src/persistence/embeddings/embed.ts +21 -7
  633. package/src/persistence/embeddings/embedding-backend.test.ts +12 -4
  634. package/src/persistence/embeddings/embedding-backend.ts +72 -24
  635. package/src/persistence/embeddings/embedding-billing-breaker.ts +21 -7
  636. package/src/persistence/embeddings/embedding-cache.ts +6 -2
  637. package/src/persistence/embeddings/embedding-gemini.ts +6 -2
  638. package/src/persistence/embeddings/embedding-identity.ts +12 -4
  639. package/src/persistence/embeddings/embedding-local.ts +54 -19
  640. package/src/persistence/embeddings/embedding-ollama.ts +6 -2
  641. package/src/persistence/embeddings/embedding-openai.ts +3 -1
  642. package/src/persistence/embeddings/embedding-runtime-manager.ts +25 -9
  643. package/src/persistence/embeddings/embedding-types.ts +3 -1
  644. package/src/persistence/embeddings/messages-lexical-index.ts +12 -4
  645. package/src/persistence/embeddings/qdrant-circuit-breaker.ts +6 -2
  646. package/src/persistence/embeddings/qdrant-client.test.ts +10 -4
  647. package/src/persistence/embeddings/qdrant-client.ts +24 -8
  648. package/src/persistence/embeddings/qdrant-manager.ts +21 -7
  649. package/src/persistence/external-conversation-store.ts +6 -2
  650. package/src/persistence/group-crud.ts +15 -5
  651. package/src/persistence/job-handlers/cleanup.ts +23 -8
  652. package/src/persistence/job-utils.ts +24 -8
  653. package/src/persistence/llm-request-log-sink-clickhouse.ts +12 -4
  654. package/src/persistence/llm-request-log-source-clickhouse.ts +18 -6
  655. package/src/persistence/llm-request-log-store.ts +26 -9
  656. package/src/persistence/migrations/001-job-deferrals.ts +3 -1
  657. package/src/persistence/migrations/002-tool-invocations-fk.ts +6 -2
  658. package/src/persistence/migrations/003-memory-fts-backfill.ts +3 -1
  659. package/src/persistence/migrations/004-entity-relation-dedup.ts +3 -1
  660. package/src/persistence/migrations/005-fingerprint-scope-unique.ts +3 -1
  661. package/src/persistence/migrations/006-scope-salted-fingerprints.ts +6 -2
  662. package/src/persistence/migrations/007-assistant-id-to-self.ts +3 -1
  663. package/src/persistence/migrations/008-remove-assistant-id-columns.ts +6 -2
  664. package/src/persistence/migrations/009-llm-usage-events-drop-assistant-id.ts +6 -2
  665. package/src/persistence/migrations/011-call-sessions-provider-sid-dedup.ts +9 -3
  666. package/src/persistence/migrations/014-backfill-inbox-thread-state.ts +3 -1
  667. package/src/persistence/migrations/015-drop-active-search-index.ts +3 -1
  668. package/src/persistence/migrations/019-notification-tables-schema-migration.ts +3 -1
  669. package/src/persistence/migrations/020-rename-macos-ios-channel-to-vellum.ts +3 -1
  670. package/src/persistence/migrations/024-embedding-vector-blob.ts +6 -2
  671. package/src/persistence/migrations/025-messages-fts-backfill.ts +3 -1
  672. package/src/persistence/migrations/026a-embeddings-nullable-vector-json.ts +9 -3
  673. package/src/persistence/migrations/036-normalize-phone-identities.ts +36 -12
  674. package/src/persistence/migrations/120-fk-cascade-rebuilds.ts +12 -4
  675. package/src/persistence/migrations/126-backfill-guardian-principal-id.ts +6 -2
  676. package/src/persistence/migrations/127-guardian-principal-id-not-null.ts +15 -5
  677. package/src/persistence/migrations/134-contacts-notes-column.ts +10 -4
  678. package/src/persistence/migrations/135-backfill-contact-interaction-stats.ts +6 -2
  679. package/src/persistence/migrations/136-drop-assistant-id-columns.ts +12 -4
  680. package/src/persistence/migrations/140-backfill-usage-cache-accounting.ts +24 -8
  681. package/src/persistence/migrations/141-rename-verification-table.ts +12 -4
  682. package/src/persistence/migrations/142-rename-verification-session-id-column.ts +6 -2
  683. package/src/persistence/migrations/147-migrate-reminders-to-schedules.ts +6 -2
  684. package/src/persistence/migrations/150-oauth-apps-client-secret-path.ts +12 -4
  685. package/src/persistence/migrations/157-invite-contact-id.ts +3 -1
  686. package/src/persistence/migrations/162-guardian-timestamps-epoch-ms.ts +21 -8
  687. package/src/persistence/migrations/174-rename-thread-starters-table.ts +12 -4
  688. package/src/persistence/migrations/180-backfill-inline-attachments-to-disk.ts +3 -1
  689. package/src/persistence/migrations/196-strip-integration-prefix-from-provider-keys.ts +6 -2
  690. package/src/persistence/migrations/206-scrub-corrupted-image-attachments.ts +3 -1
  691. package/src/persistence/migrations/209-strip-thinking-from-consolidated.ts +3 -1
  692. package/src/persistence/migrations/220-normalize-user-file-by-principal.ts +24 -8
  693. package/src/persistence/migrations/222-strip-placeholder-sentinels-from-messages.ts +3 -1
  694. package/src/persistence/migrations/231-repair-memory-graph-event-dates.ts +18 -6
  695. package/src/persistence/migrations/241-activation-state-fk-cascade.ts +6 -2
  696. package/src/persistence/migrations/246-backfill-provider-connection-label.ts +3 -1
  697. package/src/persistence/migrations/247-external-conversation-binding-thread-id.ts +3 -1
  698. package/src/persistence/migrations/249-normalize-slack-external-content.ts +30 -10
  699. package/src/persistence/migrations/256-memory-v2-injection-events.ts +24 -8
  700. package/src/persistence/migrations/296-rewrite-balanced-economy-profile-pins.test.ts +3 -1
  701. package/src/persistence/migrations/296-rewrite-balanced-economy-profile-pins.ts +6 -2
  702. package/src/persistence/migrations/297-move-llm-request-logs-to-logs-db.ts +3 -1
  703. package/src/persistence/migrations/302-create-compaction-events.ts +3 -1
  704. package/src/persistence/migrations/306-rewrite-frontier-profile-pins.test.ts +3 -1
  705. package/src/persistence/migrations/306-rewrite-frontier-profile-pins.ts +6 -2
  706. package/src/persistence/migrations/318-drop-contact-channel-telemetry.ts +3 -1
  707. package/src/persistence/migrations/319-remove-legacy-managed-connections.ts +3 -1
  708. package/src/persistence/migrations/329-move-onboarding-events-to-telemetry-db.ts +3 -1
  709. package/src/persistence/migrations/342-add-conversation-parent-id.test.ts +1 -3
  710. package/src/persistence/migrations/352-drop-schedule-skill-script-handoff.ts +3 -1
  711. package/src/persistence/migrations/__tests__/350-conversations-total-input-tokens-nullable.test.ts +3 -1
  712. package/src/persistence/migrations/run-migrations.ts +12 -4
  713. package/src/persistence/migrations/validate-migration-state.ts +12 -4
  714. package/src/persistence/raw-query.ts +9 -3
  715. package/src/persistence/slow-query-log.ts +27 -9
  716. package/src/persistence/slow-sync-log.ts +3 -1
  717. package/src/persistence/usage-buckets.ts +9 -3
  718. package/src/persistence/usage-grouped-buckets.ts +6 -2
  719. package/src/platform/feature-gate.ts +3 -1
  720. package/src/platform/sync-identity.ts +9 -3
  721. package/src/playbooks/playbook-compiler.ts +3 -1
  722. package/src/plugin-api/model-profiles.ts +6 -2
  723. package/src/plugins/defaults/channel/injectors.ts +12 -4
  724. package/src/plugins/defaults/compaction/window-manager.ts +30 -10
  725. package/src/plugins/defaults/documents/injectors.ts +18 -6
  726. package/src/plugins/defaults/empty-response/hooks/post-model-call.ts +9 -3
  727. package/src/plugins/defaults/exploration-drift/hooks/post-tool-use.ts +26 -8
  728. package/src/plugins/defaults/image-fallback/hooks/post-compact.ts +3 -1
  729. package/src/plugins/defaults/image-fallback/hooks/post-tool-use.ts +6 -2
  730. package/src/plugins/defaults/image-fallback/hooks/user-prompt-submit.ts +3 -1
  731. package/src/plugins/defaults/image-fallback/src/caption-blocks.ts +6 -2
  732. package/src/plugins/defaults/image-fallback/src/image-persist.ts +3 -1
  733. package/src/plugins/defaults/image-fallback/src/vision-caption.ts +6 -2
  734. package/src/plugins/defaults/injection-presence.ts +3 -1
  735. package/src/plugins/defaults/max-tokens-continue/hooks/post-model-call.ts +12 -4
  736. package/src/plugins/defaults/memory/__tests__/compaction-log-store-clickhouse.test.ts +6 -2
  737. package/src/plugins/defaults/memory/__tests__/db-async-query.test.ts +3 -1
  738. package/src/plugins/defaults/memory/__tests__/worker-control.test.ts +6 -2
  739. package/src/plugins/defaults/memory/anisotropy.test.ts +18 -6
  740. package/src/plugins/defaults/memory/anisotropy.ts +45 -15
  741. package/src/plugins/defaults/memory/context-search/agent-protocol.ts +3 -1
  742. package/src/plugins/defaults/memory/context-search/agent-runner.ts +6 -2
  743. package/src/plugins/defaults/memory/context-search/limits.ts +6 -2
  744. package/src/plugins/defaults/memory/context-search/search.ts +30 -10
  745. package/src/plugins/defaults/memory/context-search/sources/memory.ts +9 -3
  746. package/src/plugins/defaults/memory/context-search/sources/workspace.ts +33 -11
  747. package/src/plugins/defaults/memory/find-most-recent-retrospective-for.ts +3 -1
  748. package/src/plugins/defaults/memory/frontmatter.ts +3 -1
  749. package/src/plugins/defaults/memory/graph/graph-memory-state-store.ts +9 -3
  750. package/src/plugins/defaults/memory/graph/graph-search.ts +3 -1
  751. package/src/plugins/defaults/memory/graph/store.ts +113 -45
  752. package/src/plugins/defaults/memory/graph/types.ts +20 -7
  753. package/src/plugins/defaults/memory/memory-db.ts +3 -1
  754. package/src/plugins/defaults/memory/memory-retrospective-accounting.ts +18 -6
  755. package/src/plugins/defaults/memory/memory-retrospective-state.ts +30 -10
  756. package/src/plugins/defaults/memory/memory-retrospective-trigger-check.ts +18 -6
  757. package/src/plugins/defaults/memory/prompt-override.ts +6 -2
  758. package/src/plugins/defaults/memory/segmenter.ts +6 -2
  759. package/src/plugins/defaults/memory/src/__tests__/memory-worker-routes.test.ts +3 -1
  760. package/src/plugins/defaults/memory/task-memory-cleanup.ts +18 -6
  761. package/src/plugins/defaults/memory/v1/graph/bootstrap.ts +24 -8
  762. package/src/plugins/defaults/memory/v1/graph/consolidation.ts +57 -21
  763. package/src/plugins/defaults/memory/v1/graph/decay.ts +6 -2
  764. package/src/plugins/defaults/memory/v1/graph/extraction-job.ts +3 -1
  765. package/src/plugins/defaults/memory/v1/graph/injection.ts +24 -8
  766. package/src/plugins/defaults/memory/v1/graph/narrative.ts +3 -1
  767. package/src/plugins/defaults/memory/v1/graph/pattern-scan.ts +3 -1
  768. package/src/plugins/defaults/memory/v1/graph/scoring.ts +18 -6
  769. package/src/plugins/defaults/memory/v1/graph/serendipity.ts +9 -3
  770. package/src/plugins/defaults/memory/v1/graph/triggers.ts +30 -10
  771. package/src/plugins/defaults/memory/v1/jobs/embed-pkb-file.ts +9 -3
  772. package/src/plugins/defaults/memory/v1/pkb/autoinject.ts +3 -1
  773. package/src/plugins/defaults/memory/v1/pkb/context.ts +12 -4
  774. package/src/plugins/defaults/memory/v1/pkb/pkb-reconcile.test.ts +3 -1
  775. package/src/plugins/defaults/memory/v1/pkb/pkb-reconcile.ts +3 -1
  776. package/src/plugins/defaults/memory/v1/pkb/pkb-search.test.ts +6 -2
  777. package/src/plugins/defaults/memory/v1/pkb/pkb-search.ts +15 -5
  778. package/src/plugins/defaults/memory/v1/pkb-schedule.ts +3 -1
  779. package/src/plugins/defaults/memory/v1/semantic-search.ts +24 -9
  780. package/src/plugins/defaults/memory/v2/harness/metrics.ts +9 -3
  781. package/src/plugins/defaults/memory/v2/harness/runner.ts +9 -3
  782. package/src/plugins/defaults/memory/v2/injection-events.ts +21 -7
  783. package/src/plugins/defaults/memory/v3/__tests__/dense.test.ts +9 -3
  784. package/src/plugins/defaults/memory/v3/__tests__/injection.test.ts +6 -2
  785. package/src/plugins/defaults/memory/v3/__tests__/section-dense-store.test.ts +9 -3
  786. package/src/plugins/defaults/memory/v3/core-set.ts +6 -2
  787. package/src/plugins/defaults/memory/v3/dense.ts +15 -5
  788. package/src/plugins/defaults/memory/v3/entity-lane.ts +9 -3
  789. package/src/plugins/defaults/memory/v3/ever-injected-store.ts +39 -13
  790. package/src/plugins/defaults/memory/v3/fresh-set.ts +3 -1
  791. package/src/plugins/defaults/memory/v3/hot-set.ts +6 -2
  792. package/src/plugins/defaults/memory/v3/injector.ts +51 -17
  793. package/src/plugins/defaults/memory/v3/learned-edges.ts +21 -7
  794. package/src/plugins/defaults/memory/v3/llm-retry.ts +3 -1
  795. package/src/plugins/defaults/memory/v3/orchestrate.ts +15 -5
  796. package/src/plugins/defaults/memory/v3/pool-select.test.ts +3 -1
  797. package/src/plugins/defaults/memory/v3/pool-select.ts +15 -5
  798. package/src/plugins/defaults/memory/v3/render-injection.ts +6 -2
  799. package/src/plugins/defaults/memory/v3/section-dense-store.ts +36 -12
  800. package/src/plugins/defaults/memory/v3/section-needle.ts +27 -9
  801. package/src/plugins/defaults/memory/v3/sections.ts +6 -2
  802. package/src/plugins/defaults/memory/v3-eval/__tests__/eval-tally.test.ts +9 -3
  803. package/src/plugins/defaults/memory/v3-eval/eval-tally.ts +22 -9
  804. package/src/plugins/defaults/session/injectors.ts +15 -5
  805. package/src/plugins/defaults/surface-completion-nudge/hooks/post-model-call.ts +49 -17
  806. package/src/plugins/defaults/task-progress-nudge/hooks/post-tool-use.ts +33 -11
  807. package/src/plugins/defaults/title-generate/hooks/stop.ts +15 -5
  808. package/src/plugins/defaults/title-generate/hooks/user-prompt-submit.ts +6 -2
  809. package/src/plugins/defaults/tool-error/hooks/post-tool-use.ts +21 -7
  810. package/src/plugins/defaults/tool-result-truncate/terminal.ts +3 -1
  811. package/src/plugins/defaults/turn-context/injectors.ts +3 -1
  812. package/src/plugins/defaults/workspace/injectors.ts +52 -18
  813. package/src/plugins/external-plugin-loader.ts +21 -7
  814. package/src/plugins/injector-registry.ts +6 -2
  815. package/src/prompts/__tests__/system-prompt.test.ts +5 -2
  816. package/src/prompts/bootstrap-cleanup.ts +3 -1
  817. package/src/prompts/normalize-onboarding.ts +9 -3
  818. package/src/prompts/persona-resolver.ts +33 -11
  819. package/src/prompts/sections.ts +42 -14
  820. package/src/prompts/system-prompt.ts +30 -10
  821. package/src/prompts/template-detection.ts +6 -2
  822. package/src/prompts/templates/system-sections.ts +55 -20
  823. package/src/prompts/user-reference.ts +6 -2
  824. package/src/providers/__tests__/connection-model-compat.test.ts +3 -1
  825. package/src/providers/__tests__/inference.test.ts +24 -8
  826. package/src/providers/__tests__/search-provider-catalog.test.ts +4 -1
  827. package/src/providers/anthropic/client.ts +117 -41
  828. package/src/providers/connection-model-compat.ts +12 -4
  829. package/src/providers/fetch-provider-catalog.ts +3 -2
  830. package/src/providers/gemini/client.ts +30 -10
  831. package/src/providers/inference/codex-token-refresh.ts +6 -2
  832. package/src/providers/inference/connections.ts +34 -12
  833. package/src/providers/media-resolve.ts +21 -7
  834. package/src/providers/ollama/client.ts +3 -1
  835. package/src/providers/openai/__tests__/chat-completions-input-audio.test.ts +3 -1
  836. package/src/providers/openai/__tests__/chat-completions-provider-endpoint.test.ts +3 -1
  837. package/src/providers/openai/__tests__/chat-completions-provider-reasoning.test.ts +3 -1
  838. package/src/providers/openai/api-error-normalization.ts +75 -25
  839. package/src/providers/openai/chat-completions-provider.ts +44 -16
  840. package/src/providers/openai/coerce-object-args.ts +12 -4
  841. package/src/providers/openai/responses-provider.ts +29 -11
  842. package/src/providers/openrouter/client.ts +9 -3
  843. package/src/providers/platform-proxy/context.ts +9 -3
  844. package/src/providers/provider-catalog-visibility.ts +4 -4
  845. package/src/providers/ratelimit.ts +6 -2
  846. package/src/providers/retry.ts +48 -16
  847. package/src/providers/search-provider-catalog.ts +18 -0
  848. package/src/providers/speech-to-text/deepgram-realtime.test.ts +18 -6
  849. package/src/providers/speech-to-text/google-gemini-live-stream.test.ts +108 -129
  850. package/src/providers/speech-to-text/google-gemini-live-stream.ts +66 -22
  851. package/src/providers/speech-to-text/xai-realtime.test.ts +18 -6
  852. package/src/providers/speech-to-text/xai-realtime.ts +60 -20
  853. package/src/providers/stop-reasons.ts +3 -1
  854. package/src/providers/thinking-config.ts +3 -1
  855. package/src/providers/tool-progress-events.ts +15 -5
  856. package/src/providers/usage-tracking.ts +6 -2
  857. package/src/runtime/__tests__/agent-wake.test.ts +3 -1
  858. package/src/runtime/__tests__/interactive-ui.test.ts +3 -1
  859. package/src/runtime/__tests__/local-principal-trust.test.ts +10 -8
  860. package/src/runtime/anchored-guardian.test.ts +45 -8
  861. package/src/runtime/anchored-guardian.ts +4 -1
  862. package/src/runtime/approval-conversation-turn.ts +17 -7
  863. package/src/runtime/approval-message-composer.ts +6 -2
  864. package/src/runtime/auth/__tests__/guard-tests.test.ts +24 -8
  865. package/src/runtime/auth/middleware.ts +0 -2
  866. package/src/runtime/auth/same-actor.ts +12 -4
  867. package/src/runtime/background-job-runner.ts +12 -4
  868. package/src/runtime/channel-invite-transports/slack.ts +6 -2
  869. package/src/runtime/channel-invite-transports/telegram.ts +6 -2
  870. package/src/runtime/channel-verification-service.ts +9 -3
  871. package/src/runtime/decision-token.ts +3 -1
  872. package/src/runtime/guardian-action-message-composer.ts +6 -2
  873. package/src/runtime/guardian-vellum-migration.ts +18 -6
  874. package/src/runtime/http-router.ts +18 -6
  875. package/src/runtime/invite-service.ts +6 -2
  876. package/src/runtime/local-principal-trust.ts +6 -2
  877. package/src/runtime/member-verdict-cache.ts +18 -6
  878. package/src/runtime/middleware/__tests__/request-logger.test.ts +1 -3
  879. package/src/runtime/middleware/auth.ts +37 -13
  880. package/src/runtime/middleware/error-handler.ts +1 -4
  881. package/src/runtime/middleware/rate-limiter.ts +12 -4
  882. package/src/runtime/middleware/request-logger.ts +12 -4
  883. package/src/runtime/migrations/__tests__/rebind-secrets-credentials.test.ts +18 -6
  884. package/src/runtime/migrations/__tests__/vbundle-builder-credentials.test.ts +3 -1
  885. package/src/runtime/migrations/__tests__/vbundle-import-parity.test.ts +9 -3
  886. package/src/runtime/migrations/__tests__/vbundle-import-version-compat.test.ts +11 -4
  887. package/src/runtime/migrations/__tests__/vbundle-streaming-importer.test.ts +84 -28
  888. package/src/runtime/migrations/__tests__/vbundle-symlink-importer.test.ts +18 -6
  889. package/src/runtime/migrations/__tests__/vbundle-symlink-streaming-importer.test.ts +0 -0
  890. package/src/runtime/migrations/__tests__/vbundle-symlink-tar.test.ts +24 -8
  891. package/src/runtime/migrations/__tests__/vbundle-tar-stream.test.ts +3 -1
  892. package/src/runtime/migrations/__tests__/vbundle-validator-v1-schema.test.ts +6 -2
  893. package/src/runtime/migrations/gcs-signed-url.ts +21 -7
  894. package/src/runtime/migrations/job-registry.ts +24 -8
  895. package/src/runtime/migrations/migration-wizard.ts +9 -3
  896. package/src/runtime/migrations/transfer-progress-screen.ts +3 -1
  897. package/src/runtime/migrations/validation-results-screen.ts +3 -1
  898. package/src/runtime/migrations/vbundle-builder.ts +33 -11
  899. package/src/runtime/migrations/vbundle-import-analyzer.ts +3 -1
  900. package/src/runtime/migrations/vbundle-import-policy.ts +21 -7
  901. package/src/runtime/migrations/vbundle-importer.ts +9 -3
  902. package/src/runtime/migrations/vbundle-metadata-merge.ts +12 -4
  903. package/src/runtime/migrations/vbundle-streaming-importer.ts +57 -19
  904. package/src/runtime/migrations/vbundle-tar-stream.ts +15 -5
  905. package/src/runtime/migrations/vbundle-validator.ts +6 -2
  906. package/src/runtime/nl-approval-parser.ts +6 -3
  907. package/src/runtime/no-response.ts +12 -4
  908. package/src/runtime/pending-interactions.ts +9 -3
  909. package/src/runtime/pre-first-message-gate.ts +3 -1
  910. package/src/runtime/routes/__tests__/acp-routes.test.ts +24 -8
  911. package/src/runtime/routes/__tests__/avatar-state-routes.test.ts +9 -3
  912. package/src/runtime/routes/__tests__/backup-routes.test.ts +3 -1
  913. package/src/runtime/routes/__tests__/channel-verification-revoke.test.ts +9 -3
  914. package/src/runtime/routes/__tests__/client-routes.test.ts +3 -1
  915. package/src/runtime/routes/__tests__/connection-routes-vs-cli-parity.test.ts +12 -4
  916. package/src/runtime/routes/__tests__/consolidation-routes.test.ts +3 -1
  917. package/src/runtime/routes/__tests__/contact-routes-update-channel-relay.test.ts +3 -1
  918. package/src/runtime/routes/__tests__/contact-routes.test.ts +3 -1
  919. package/src/runtime/routes/__tests__/content-source-routes.test.ts +3 -1
  920. package/src/runtime/routes/__tests__/conversation-compaction-routes.test.ts +3 -1
  921. package/src/runtime/routes/__tests__/conversation-list-routes.test.ts +3 -1
  922. package/src/runtime/routes/__tests__/conversation-management-routes.test.ts +3 -1
  923. package/src/runtime/routes/__tests__/conversation-surface-routes.test.ts +3 -1
  924. package/src/runtime/routes/__tests__/gateway-log-routes.test.ts +3 -1
  925. package/src/runtime/routes/__tests__/gateway-status-routes.test.ts +3 -1
  926. package/src/runtime/routes/__tests__/heartbeat-routes.test.ts +3 -1
  927. package/src/runtime/routes/__tests__/home-feed-routes.test.ts +6 -3
  928. package/src/runtime/routes/__tests__/invite-relay-routes.test.ts +3 -1
  929. package/src/runtime/routes/__tests__/ps-routes.test.ts +12 -4
  930. package/src/runtime/routes/__tests__/question-routes.test.ts +6 -2
  931. package/src/runtime/routes/__tests__/retrospective-routes.test.ts +3 -1
  932. package/src/runtime/routes/__tests__/sanity-routes.test.ts +6 -2
  933. package/src/runtime/routes/__tests__/schedule-routes-create.test.ts +3 -1
  934. package/src/runtime/routes/__tests__/slack-channel-routes.test.ts +3 -1
  935. package/src/runtime/routes/__tests__/stt-routes.test.ts +9 -3
  936. package/src/runtime/routes/__tests__/surface-action-routes.test.ts +9 -3
  937. package/src/runtime/routes/__tests__/surface-content-routes.test.ts +3 -1
  938. package/src/runtime/routes/__tests__/tts-routes.test.ts +9 -3
  939. package/src/runtime/routes/__tests__/wake-conversation-routes.test.ts +3 -1
  940. package/src/runtime/routes/acp-routes-list.test.ts +9 -3
  941. package/src/runtime/routes/acp-routes.test.ts +18 -6
  942. package/src/runtime/routes/app-management-routes.ts +13 -5
  943. package/src/runtime/routes/app-routes.ts +3 -1
  944. package/src/runtime/routes/archive-utils.ts +3 -1
  945. package/src/runtime/routes/attachment-routes.ts +6 -2
  946. package/src/runtime/routes/background-wake-routes.ts +12 -4
  947. package/src/runtime/routes/backup-routes.ts +6 -2
  948. package/src/runtime/routes/browser-routes.ts +3 -1
  949. package/src/runtime/routes/call-routes.ts +3 -1
  950. package/src/runtime/routes/contact-routes.ts +9 -3
  951. package/src/runtime/routes/conversation-list-routes.ts +3 -1
  952. package/src/runtime/routes/conversation-management-routes.ts +3 -1
  953. package/src/runtime/routes/conversation-starter-routes.ts +12 -4
  954. package/src/runtime/routes/debug-bash-routes.ts +3 -1
  955. package/src/runtime/routes/defer-routes.ts +3 -1
  956. package/src/runtime/routes/diagnostics-routes.ts +3 -1
  957. package/src/runtime/routes/disk-pressure-routes.ts +12 -4
  958. package/src/runtime/routes/email-routes.ts +18 -6
  959. package/src/runtime/routes/events-routes.ts +9 -3
  960. package/src/runtime/routes/global-search-routes.ts +21 -7
  961. package/src/runtime/routes/group-routes.ts +6 -2
  962. package/src/runtime/routes/guardian-action-routes.ts +2 -1
  963. package/src/runtime/routes/heartbeat-routes.ts +12 -6
  964. package/src/runtime/routes/home-feed-routes.ts +51 -18
  965. package/src/runtime/routes/host-browser-routes.ts +6 -3
  966. package/src/runtime/routes/host-transfer-routes.ts +21 -9
  967. package/src/runtime/routes/http-adapter.ts +15 -5
  968. package/src/runtime/routes/identity-routes.ts +15 -5
  969. package/src/runtime/routes/inbound-stages/admission-policy.test.ts +9 -3
  970. package/src/runtime/routes/inbound-stages/guardian-activation-intercept.ts +12 -4
  971. package/src/runtime/routes/inference-profile-session-reaper.ts +6 -2
  972. package/src/runtime/routes/integrations/twilio.ts +3 -1
  973. package/src/runtime/routes/internal-oauth-routes.ts +6 -2
  974. package/src/runtime/routes/llm-context-normalization.ts +36 -12
  975. package/src/runtime/routes/log-export/__tests__/workspace-allowlist.test.ts +12 -4
  976. package/src/runtime/routes/log-export/workspace-allowlist.ts +33 -11
  977. package/src/runtime/routes/log-export-routes.ts +51 -17
  978. package/src/runtime/routes/mcp-auth-routes.ts +23 -8
  979. package/src/runtime/routes/migration-rollback-routes.ts +4 -2
  980. package/src/runtime/routes/migration-routes.ts +24 -8
  981. package/src/runtime/routes/oauth-apps.ts +3 -1
  982. package/src/runtime/routes/oauth-commands-routes.ts +66 -22
  983. package/src/runtime/routes/oauth-connect-routes.ts +14 -5
  984. package/src/runtime/routes/oauth-providers.ts +89 -34
  985. package/src/runtime/routes/onboarding-checkin-routes.ts +3 -1
  986. package/src/runtime/routes/playground/__tests__/force-compact.test.ts +6 -2
  987. package/src/runtime/routes/playground/__tests__/inject-failures.test.ts +9 -3
  988. package/src/runtime/routes/playground/__tests__/reset-circuit.test.ts +3 -1
  989. package/src/runtime/routes/playground/__tests__/seed-conversation.test.ts +3 -1
  990. package/src/runtime/routes/playground/__tests__/seeded-conversations.test.ts +3 -1
  991. package/src/runtime/routes/playground/__tests__/state.test.ts +3 -1
  992. package/src/runtime/routes/playground/helpers.ts +6 -2
  993. package/src/runtime/routes/playground/seeded-conversations.ts +3 -1
  994. package/src/runtime/routes/profiler-routes.ts +12 -4
  995. package/src/runtime/routes/question-routes.ts +3 -1
  996. package/src/runtime/routes/redact-staged-export.ts +15 -5
  997. package/src/runtime/routes/schedule-routes.ts +33 -11
  998. package/src/runtime/routes/sequence-routes.ts +23 -10
  999. package/src/runtime/routes/skills-routes.ts +45 -15
  1000. package/src/runtime/routes/slack-channel-routes.ts +6 -2
  1001. package/src/runtime/routes/sounds-config-routes.ts +15 -5
  1002. package/src/runtime/routes/stt-routes.ts +9 -3
  1003. package/src/runtime/routes/tool-call-question-enrichment.ts +6 -2
  1004. package/src/runtime/routes/user-routes-cli.ts +3 -1
  1005. package/src/runtime/routes/watcher-routes.ts +15 -5
  1006. package/src/runtime/routes/workflow-routes.test.ts +9 -3
  1007. package/src/runtime/routes/workflow-routes.ts +12 -4
  1008. package/src/runtime/routes/workspace-greetings.ts +12 -4
  1009. package/src/runtime/routes/workspace-routes.ts +12 -4
  1010. package/src/runtime/routes/workspace-utils.ts +6 -2
  1011. package/src/runtime/services/conversation-serializer.ts +9 -3
  1012. package/src/runtime/slack-reply-session.test.ts +3 -1
  1013. package/src/runtime/slack-reply-session.ts +42 -14
  1014. package/src/runtime/trust-verdict-consumer.ts +9 -3
  1015. package/src/runtime/verification-outbound-actions.ts +3 -1
  1016. package/src/runtime/verification-rate-limiter.ts +6 -2
  1017. package/src/schedule/integration-status.ts +6 -2
  1018. package/src/schedule/recurrence-engine.ts +35 -13
  1019. package/src/schedule/recurrence-types.ts +6 -2
  1020. package/src/schedule/run-script.ts +6 -2
  1021. package/src/schedule/schedule-recovery.ts +6 -2
  1022. package/src/schedule/schedule-store.ts +138 -49
  1023. package/src/security/__tests__/oauth2-exchange-body.test.ts +1 -4
  1024. package/src/security/__tests__/provider-key-env-fallback.test.ts +6 -2
  1025. package/src/security/ces-credential-client.ts +15 -5
  1026. package/src/security/ces-rpc-credential-backend.ts +6 -2
  1027. package/src/security/credential-key.ts +6 -2
  1028. package/src/security/encrypted-store.ts +47 -18
  1029. package/src/security/oauth-callback-registry.ts +6 -2
  1030. package/src/security/oauth2-device-code.ts +7 -2
  1031. package/src/security/oauth2.ts +36 -7
  1032. package/src/security/redact-json.ts +3 -1
  1033. package/src/security/redaction.ts +3 -1
  1034. package/src/security/secret-allowlist.ts +21 -7
  1035. package/src/security/secret-ingress.ts +3 -1
  1036. package/src/security/secret-scanner.ts +23 -8
  1037. package/src/security/token-manager.ts +4 -2
  1038. package/src/security/tool-approval-digest.ts +3 -1
  1039. package/src/sequence/analytics.ts +6 -2
  1040. package/src/sequence/guardrails.ts +6 -2
  1041. package/src/sequence/importer.ts +18 -6
  1042. package/src/sequence/reply-matcher.ts +18 -6
  1043. package/src/sequence/store.ts +40 -15
  1044. package/src/services/published-app-updater.ts +9 -3
  1045. package/src/signals/cancel.ts +3 -1
  1046. package/src/signals/conversation-undo.ts +3 -1
  1047. package/src/skills/active-skill-tools.ts +9 -3
  1048. package/src/skills/catalog-cache.ts +4 -1
  1049. package/src/skills/catalog-files.ts +93 -31
  1050. package/src/skills/catalog-install.ts +30 -10
  1051. package/src/skills/categories-cache.ts +9 -3
  1052. package/src/skills/clawhub-files.ts +21 -7
  1053. package/src/skills/clawhub.ts +18 -6
  1054. package/src/skills/frontmatter.ts +3 -1
  1055. package/src/skills/include-graph.ts +33 -11
  1056. package/src/skills/inline-command-expansions.ts +9 -3
  1057. package/src/skills/inline-command-runner.ts +6 -2
  1058. package/src/skills/install-meta.ts +17 -6
  1059. package/src/skills/managed-store.ts +3 -1
  1060. package/src/skills/remote-skill-policy.ts +6 -2
  1061. package/src/skills/skill-cache-store.ts +6 -2
  1062. package/src/skills/skillssh-files.ts +42 -14
  1063. package/src/skills/skillssh-registry.ts +18 -6
  1064. package/src/skills/validate-input.ts +60 -20
  1065. package/src/skills/version-hash.ts +6 -2
  1066. package/src/subagent/consult-prompt.ts +3 -1
  1067. package/src/subagent/consult-transcript.ts +6 -2
  1068. package/src/subagent/validate-allowlists.ts +6 -2
  1069. package/src/telemetry/tool-usage-store.ts +6 -2
  1070. package/src/telemetry/watchdog-direct-emit.ts +6 -2
  1071. package/src/tools/background-tool-registry.ts +6 -2
  1072. package/src/tools/browser/auth-cache.ts +6 -2
  1073. package/src/tools/browser/auth-detector.ts +5 -2
  1074. package/src/tools/browser/browser-manager.ts +66 -24
  1075. package/src/tools/browser/browser-screencast.ts +6 -2
  1076. package/src/tools/browser/cdp-client/__tests__/browser-tabs-factory.test.ts +75 -27
  1077. package/src/tools/browser/cdp-client/__tests__/cdp-dom-helpers.test.ts +39 -14
  1078. package/src/tools/browser/cdp-client/__tests__/cdp-inspect-client.test.ts +9 -3
  1079. package/src/tools/browser/cdp-client/__tests__/types.test.ts +4 -1
  1080. package/src/tools/browser/cdp-client/accessibility-snapshot.ts +48 -16
  1081. package/src/tools/browser/cdp-client/cdp-dom-helpers.ts +15 -5
  1082. package/src/tools/browser/cdp-client/cdp-inspect/__tests__/ws-transport.test.ts +9 -3
  1083. package/src/tools/browser/cdp-client/cdp-inspect/discovery.ts +33 -11
  1084. package/src/tools/browser/cdp-client/cdp-inspect/ws-transport.ts +42 -14
  1085. package/src/tools/browser/cdp-client/cdp-inspect-client.ts +36 -11
  1086. package/src/tools/browser/cdp-client/extension-cdp-client.ts +9 -3
  1087. package/src/tools/browser/cdp-client/factory.ts +45 -27
  1088. package/src/tools/browser/cdp-client/local-cdp-client.ts +21 -6
  1089. package/src/tools/browser/cdp-client/types.ts +5 -1
  1090. package/src/tools/browser/network-recorder.ts +45 -15
  1091. package/src/tools/browser/pinned-tabs.ts +28 -9
  1092. package/src/tools/browser/runtime-check.ts +21 -7
  1093. package/src/tools/credentials/broker.ts +3 -1
  1094. package/src/tools/credentials/domain-policy.ts +12 -4
  1095. package/src/tools/credentials/host-pattern-match.ts +3 -1
  1096. package/src/tools/credentials/post-connect-hooks.ts +6 -2
  1097. package/src/tools/credentials/resolve.ts +21 -7
  1098. package/src/tools/credentials/selection.ts +15 -5
  1099. package/src/tools/credentials/tool-policy.ts +6 -2
  1100. package/src/tools/execution-target.ts +3 -1
  1101. package/src/tools/filesystem/fuzzy-match.ts +54 -18
  1102. package/src/tools/filesystem/search.ts +34 -12
  1103. package/src/tools/filesystem/write.ts +12 -4
  1104. package/src/tools/network/__tests__/web-search-metadata.test.ts +9 -3
  1105. package/src/tools/network/__tests__/web-search.test.ts +111 -4
  1106. package/src/tools/network/domain-normalize.ts +12 -4
  1107. package/src/tools/network/managed-search-proxy.ts +24 -8
  1108. package/src/tools/network/script-proxy/session-manager.ts +39 -13
  1109. package/src/tools/network/url-safety.ts +63 -21
  1110. package/src/tools/network/web-fetch.ts +62 -21
  1111. package/src/tools/network/web-search-error.ts +30 -13
  1112. package/src/tools/network/web-search.ts +237 -10
  1113. package/src/tools/sensitive-output-placeholders.ts +15 -5
  1114. package/src/tools/shared/filesystem/file-ops-service.ts +6 -2
  1115. package/src/tools/shared/filesystem/image-read.ts +3 -1
  1116. package/src/tools/shared/filesystem/size-guard.ts +6 -2
  1117. package/src/tools/skills/execute.ts +24 -8
  1118. package/src/tools/skills/find-similar-skills.ts +6 -2
  1119. package/src/tools/skills/load.ts +25 -9
  1120. package/src/tools/skills/sandbox-runner.ts +6 -2
  1121. package/src/tools/tool-input-summary.ts +3 -1
  1122. package/src/tools/tool-name-aliases.ts +3 -1
  1123. package/src/tools/verification-control-plane-policy.ts +12 -4
  1124. package/src/tts/__tests__/provider-adapters.test.ts +9 -3
  1125. package/src/tts/__tests__/speakable-segments.test.ts +4 -4
  1126. package/src/tts/providers/__tests__/xai-tts-socket.test.ts +26 -12
  1127. package/src/tts/providers/deepgram-provider.ts +3 -1
  1128. package/src/tts/providers/elevenlabs-provider.ts +9 -3
  1129. package/src/tts/providers/fish-audio-provider.ts +3 -1
  1130. package/src/tts/providers/xai-provider.ts +3 -1
  1131. package/src/tts/providers/xai-tts-socket.ts +36 -11
  1132. package/src/tts/synthesize-text.ts +3 -1
  1133. package/src/usage/pricing.ts +27 -9
  1134. package/src/util/abort-reasons.ts +3 -1
  1135. package/src/util/bun-runtime.ts +9 -3
  1136. package/src/util/bundled-asset.ts +6 -2
  1137. package/src/util/canonicalize-identity.ts +3 -1
  1138. package/src/util/cgroup-memory.ts +12 -4
  1139. package/src/util/debounce.ts +11 -4
  1140. package/src/util/diff.ts +18 -6
  1141. package/src/util/disk-usage.ts +15 -5
  1142. package/src/util/favicon.ts +9 -3
  1143. package/src/util/fs.ts +3 -1
  1144. package/src/util/image-conversion.ts +15 -5
  1145. package/src/util/log-redact.ts +6 -2
  1146. package/src/util/logger.ts +15 -5
  1147. package/src/util/phone.ts +6 -2
  1148. package/src/util/platform.ts +18 -6
  1149. package/src/util/pricing.ts +30 -10
  1150. package/src/util/process-liveness.ts +6 -2
  1151. package/src/util/promise-guard.ts +3 -1
  1152. package/src/util/retry.ts +21 -7
  1153. package/src/util/row-mapper.ts +6 -2
  1154. package/src/util/spinner.ts +6 -2
  1155. package/src/util/strip-comment-lines.ts +3 -1
  1156. package/src/util/time.ts +18 -6
  1157. package/src/util/truncate.ts +6 -2
  1158. package/src/util/unicode.ts +9 -3
  1159. package/src/util/xml.ts +1 -4
  1160. package/src/version.ts +9 -3
  1161. package/src/watcher/__tests__/engine.test.ts +6 -2
  1162. package/src/watcher/providers/github.ts +17 -6
  1163. package/src/watcher/providers/google-calendar.ts +27 -9
  1164. package/src/watcher/providers/linear.ts +15 -5
  1165. package/src/watcher/providers/outlook-calendar.ts +3 -1
  1166. package/src/watcher/telemetry.ts +3 -1
  1167. package/src/watcher/watcher-store.ts +32 -12
  1168. package/src/workflows/deterministic-stringify.ts +6 -2
  1169. package/src/workflows/engine-integration.test.ts +3 -1
  1170. package/src/workflows/engine.test.ts +17 -6
  1171. package/src/workflows/engine.ts +88 -32
  1172. package/src/workflows/journal-store.ts +3 -1
  1173. package/src/workflows/library.test.ts +5 -2
  1174. package/src/workflows/library.ts +15 -5
  1175. package/src/workflows/run-manager.test.ts +9 -3
  1176. package/src/workflows/run-manager.ts +18 -6
  1177. package/src/workflows/sandbox.ts +6 -2
  1178. package/src/workspace/adaptive-thinking-repair.ts +33 -11
  1179. package/src/workspace/commit-message-enrichment-service.ts +15 -5
  1180. package/src/workspace/git-service.ts +12 -4
  1181. package/src/workspace/hatched-date.ts +12 -4
  1182. package/src/workspace/heartbeat-service.ts +3 -1
  1183. package/src/workspace/migrations/003-seed-device-id.ts +12 -4
  1184. package/src/workspace/migrations/004-extract-collect-usage-data.ts +27 -9
  1185. package/src/workspace/migrations/006-services-config.ts +17 -6
  1186. package/src/workspace/migrations/007-web-search-provider-rename.ts +34 -10
  1187. package/src/workspace/migrations/010-app-dir-rename.ts +21 -7
  1188. package/src/workspace/migrations/012-rename-conversation-disk-view-dirs.ts +30 -10
  1189. package/src/workspace/migrations/016-extract-feature-flags-to-protected.ts +12 -4
  1190. package/src/workspace/migrations/017-seed-persona-dirs.ts +15 -5
  1191. package/src/workspace/migrations/018-rekey-compound-credential-keys.ts +30 -10
  1192. package/src/workspace/migrations/019-scope-journal-to-guardian.ts +18 -6
  1193. package/src/workspace/migrations/020-rename-oauth-skill-dirs.ts +6 -2
  1194. package/src/workspace/migrations/021-move-signals-to-workspace.ts +6 -2
  1195. package/src/workspace/migrations/022-move-hooks-to-workspace.ts +6 -2
  1196. package/src/workspace/migrations/023-move-config-files-to-workspace.ts +6 -2
  1197. package/src/workspace/migrations/024-move-runtime-files-to-workspace.ts +6 -2
  1198. package/src/workspace/migrations/025-remove-oauth-app-setup-skills.ts +3 -1
  1199. package/src/workspace/migrations/026-backfill-install-meta.ts +27 -9
  1200. package/src/workspace/migrations/028-recover-conversations-from-disk-view.ts +9 -3
  1201. package/src/workspace/migrations/029-seed-pkb.ts +3 -1
  1202. package/src/workspace/migrations/030-seed-pkb-autoinject.ts +6 -2
  1203. package/src/workspace/migrations/031-drop-user-md.ts +25 -10
  1204. package/src/workspace/migrations/031-llm-log-retention-zero-to-null.ts +28 -10
  1205. package/src/workspace/migrations/032-tts-provider-unification.ts +33 -11
  1206. package/src/workspace/migrations/033-stt-service-explicit-config.ts +12 -4
  1207. package/src/workspace/migrations/034-remove-calls-voice-transcription-provider.ts +24 -8
  1208. package/src/workspace/migrations/036-update-pkb-index-bar.ts +6 -2
  1209. package/src/workspace/migrations/037-create-meets-dir.ts +3 -1
  1210. package/src/workspace/migrations/038-unify-llm-callsite-configs.ts +27 -9
  1211. package/src/workspace/migrations/039-drop-legacy-llm-keys.ts +9 -3
  1212. package/src/workspace/migrations/040-seed-latency-callsite-defaults.ts +15 -5
  1213. package/src/workspace/migrations/041-backfill-google-gmail-settings-scope.ts +9 -3
  1214. package/src/workspace/migrations/042-fix-backfill-google-gmail-settings-scope.ts +9 -3
  1215. package/src/workspace/migrations/044-bump-stale-provider-stream-timeout.ts +11 -4
  1216. package/src/workspace/migrations/046-seed-conversation-starters-callsite.ts +12 -4
  1217. package/src/workspace/migrations/047-remove-watch-callsites.ts +18 -5
  1218. package/src/workspace/migrations/050-seed-main-agent-opus-callsite.ts +9 -3
  1219. package/src/workspace/migrations/051-seed-conversation-summarization-callsite.ts +12 -4
  1220. package/src/workspace/migrations/052-seed-default-inference-profiles.ts +12 -4
  1221. package/src/workspace/migrations/054-seed-recall-callsite.ts +12 -4
  1222. package/src/workspace/migrations/057-repair-stale-gemini-model-ids.ts +39 -13
  1223. package/src/workspace/migrations/059-move-pid-to-workspace.ts +6 -2
  1224. package/src/workspace/migrations/061-move-backup-key-to-workspace.ts +6 -2
  1225. package/src/workspace/migrations/064-unwind-main-agent-opus-seed.ts +21 -7
  1226. package/src/workspace/migrations/065-bump-stale-heartbeat-interval.ts +12 -3
  1227. package/src/workspace/migrations/066-seed-heartbeat-callsite-cost-default.ts +18 -6
  1228. package/src/workspace/migrations/069-seed-onboarding-threads.ts +9 -3
  1229. package/src/workspace/migrations/072-seed-reply-suggestion-callsite.ts +12 -4
  1230. package/src/workspace/migrations/073-repair-recall-callsite-empty-profile.ts +21 -7
  1231. package/src/workspace/migrations/074-drop-deprecated-secret-detection-keys.ts +12 -4
  1232. package/src/workspace/migrations/075-memory-v2-bm25-b-default-reembed.ts +9 -3
  1233. package/src/workspace/migrations/076-drop-services-inference-mode.ts +13 -5
  1234. package/src/workspace/migrations/077-seed-memory-router-callsite.ts +9 -3
  1235. package/src/workspace/migrations/079-home-feed-notification-only.ts +21 -7
  1236. package/src/workspace/migrations/080-restrict-vercel-api-token-metadata.ts +3 -1
  1237. package/src/workspace/migrations/081-backfill-bash-allowed-tools-for-injection-credentials.ts +9 -3
  1238. package/src/workspace/migrations/082-backfill-managed-profile-labels.ts +15 -5
  1239. package/src/workspace/migrations/083-system-prompt-prefix-to-file.ts +8 -3
  1240. package/src/workspace/migrations/084-remove-legacy-skills-index.ts +42 -14
  1241. package/src/workspace/migrations/085-memory-v2-bm25-b-reembed-disabled-v2-pages.ts +12 -4
  1242. package/src/workspace/migrations/086-revert-stale-gemini-mis-rewrites.ts +33 -11
  1243. package/src/workspace/migrations/087-memory-router-balanced-profile.ts +15 -5
  1244. package/src/workspace/migrations/088-deprecate-background-conversation-override.ts +9 -3
  1245. package/src/workspace/migrations/089-move-memory-tree-out-of-v3.ts +6 -2
  1246. package/src/workspace/migrations/090-memory-router-cost-optimized-profile.ts +21 -7
  1247. package/src/workspace/migrations/091-retighten-migration-onboarding-thread.ts +9 -3
  1248. package/src/workspace/migrations/092-backfill-v3-leaves.ts +30 -10
  1249. package/src/workspace/migrations/093-backfill-leaf-ids.ts +15 -5
  1250. package/src/workspace/migrations/094-seed-avatar-manifest.ts +9 -3
  1251. package/src/workspace/migrations/095-bump-heartbeat-interval-30m-to-60m.ts +12 -3
  1252. package/src/workspace/migrations/096-reduce-quality-profile-effort.ts +18 -6
  1253. package/src/workspace/migrations/097-enable-adaptive-thinking-managed-profiles.ts +27 -9
  1254. package/src/workspace/migrations/099-disable-cache-one-shot-callsites.ts +24 -8
  1255. package/src/workspace/migrations/100-upgrade-quality-profile-to-fable-5.ts +21 -7
  1256. package/src/workspace/migrations/101-upgrade-balanced-economy-to-minimax-m3.ts +15 -5
  1257. package/src/workspace/migrations/102-preserve-heartbeat-enabled-for-existing-workspaces.ts +9 -3
  1258. package/src/workspace/migrations/103-upgrade-quality-profile-to-opus-4-8.ts +21 -7
  1259. package/src/workspace/migrations/104-recheck-adaptive-thinking-model-implied-anthropic.ts +27 -9
  1260. package/src/workspace/migrations/105-enable-memory-v3-live-for-new-workspaces.ts +21 -7
  1261. package/src/workspace/migrations/106-drop-collect-usage-data.ts +9 -3
  1262. package/src/workspace/migrations/107-drop-send-diagnostics.ts +9 -3
  1263. package/src/workspace/migrations/108-drop-balanced-economy-profile.ts +18 -6
  1264. package/src/workspace/migrations/109-swap-quality-profile-to-glm-5p2.ts +9 -3
  1265. package/src/workspace/migrations/110-flip-balanced-profile-to-together.ts +12 -4
  1266. package/src/workspace/migrations/111-prune-seeded-callsite-defaults.ts +36 -12
  1267. package/src/workspace/migrations/112-remove-advisor-callsite-override.ts +18 -5
  1268. package/src/workspace/migrations/113-swap-balanced-profile-to-glm-5p2.ts +18 -6
  1269. package/src/workspace/migrations/114-swap-quality-profile-to-opus.ts +12 -4
  1270. package/src/workspace/migrations/115-drop-frontier-profile.ts +18 -6
  1271. package/src/workspace/migrations/117-normalize-stale-lean-memory-v3-defaults.ts +15 -5
  1272. package/src/workspace/migrations/118-seed-now-md.ts +3 -1
  1273. package/src/workspace/migrations/119-strip-persisted-memory-v3-tuning-defaults.ts +18 -6
  1274. package/src/workspace/migrations/120-revise-onboarding-threads.ts +9 -3
  1275. package/src/workspace/migrations/121-seed-default-user-guardrails.ts +3 -1
  1276. package/src/workspace/migrations/123-swap-quality-profile-to-fable.ts +24 -8
  1277. package/src/workspace/migrations/125-repoint-managed-connections-to-vellum.ts +21 -7
  1278. package/src/workspace/migrations/126-strip-managed-profile-bodies.ts +21 -7
  1279. package/src/workspace/migrations/129-remove-analyze-conversation-config.ts +9 -3
  1280. package/src/workspace/migrations/130-speech-mode-to-provider.ts +24 -8
  1281. package/src/workspace/migrations/131-drop-web-fetch-mode.ts +13 -5
  1282. package/src/workspace/migrations/133-collapse-provider-connections.ts +30 -10
  1283. package/src/workspace/migrations/__tests__/backfill-leaf-ids.test.ts +3 -1
  1284. package/src/workspace/migrations/migrate-to-workspace-volume.ts +9 -3
  1285. package/src/workspace/migrations/rebuild-conversation-disk-view.ts +23 -8
  1286. package/src/workspace/migrations/utils.ts +3 -1
  1287. package/src/workspace/top-level-renderer.ts +3 -1
package/eslint.config.mjs CHANGED
@@ -15,7 +15,7 @@ const eslintConfig = defineConfig([
15
15
  // Require braces on every control-statement body (if/else/for/
16
16
  // while/do). A braceless body is a maintenance hazard: a second
17
17
  // line added under the condition reads as guarded but always runs.
18
- curly: ["warn", "all"],
18
+ curly: ["error", "all"],
19
19
  "simple-import-sort/imports": [
20
20
  "error",
21
21
  {
package/openapi.yaml CHANGED
@@ -18599,6 +18599,7 @@ paths:
18599
18599
  - brave
18600
18600
  - perplexity
18601
18601
  - tavily
18602
+ - keenable
18602
18603
  - firecrawl
18603
18604
  resultCount:
18604
18605
  type: number
@@ -19037,6 +19038,7 @@ paths:
19037
19038
  - brave
19038
19039
  - perplexity
19039
19040
  - tavily
19041
+ - keenable
19040
19042
  - firecrawl
19041
19043
  resultCount:
19042
19044
  type: number
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/assistant",
3
- "version": "0.10.12-dev.202607282031.4f29afe",
3
+ "version": "0.10.12-dev.202607282129.b0efc32",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -69,8 +69,11 @@ function parseArgs(argv: string[]): Args {
69
69
  let buildDir = join(ASSISTANT_DIR, ".plugin-api-build");
70
70
  for (let i = 0; i < argv.length; i++) {
71
71
  const arg = argv[i];
72
- if (arg === "--version") version = argv[++i] ?? "";
73
- else if (arg === "--out") buildDir = resolve(argv[++i] ?? "");
72
+ if (arg === "--version") {
73
+ version = argv[++i] ?? "";
74
+ } else if (arg === "--out") {
75
+ buildDir = resolve(argv[++i] ?? "");
76
+ }
74
77
  }
75
78
  if (!version) {
76
79
  throw new Error(
@@ -184,8 +187,12 @@ function main(): void {
184
187
  const bundled: string[] = [];
185
188
  for (const name of readdirSync(vellumDir)) {
186
189
  const dir = join(vellumDir, name);
187
- if (!existsSync(join(dir, "tsconfig.json"))) continue;
188
- if (!existsSync(join(dir, "src"))) continue;
190
+ if (!existsSync(join(dir, "tsconfig.json"))) {
191
+ continue;
192
+ }
193
+ if (!existsSync(join(dir, "src"))) {
194
+ continue;
195
+ }
189
196
  const dest = join(vellumOverlay, name);
190
197
  if (emitContract(dir, dest)) {
191
198
  writeContractManifest(join(dir, "package.json"), dest);
@@ -98,8 +98,9 @@ class CDPClient {
98
98
  }
99
99
  }
100
100
  } else if (msg.method) {
101
- for (const h of this.eventHandlers.get(msg.method) ?? [])
101
+ for (const h of this.eventHandlers.get(msg.method) ?? []) {
102
102
  h(msg.params ?? {});
103
+ }
103
104
  }
104
105
  };
105
106
  });
@@ -137,7 +138,9 @@ const captured: CapturedQuery[] = [];
137
138
  const seenQueries = new Set<string>();
138
139
 
139
140
  // Ensure capture directory exists
140
- if (!existsSync(CAPTURE_DIR)) mkdirSync(CAPTURE_DIR, { recursive: true });
141
+ if (!existsSync(CAPTURE_DIR)) {
142
+ mkdirSync(CAPTURE_DIR, { recursive: true });
143
+ }
141
144
 
142
145
  // ─── Auto-navigation steps ───────────────────────────────────────────────────
143
146
 
@@ -150,7 +153,9 @@ interface GuideStep {
150
153
 
151
154
  // Resolve the logged-in user's screen name for profile-based URLs
152
155
  async function getScreenName(): Promise<string | null> {
153
- if (!navigationClient) return null;
156
+ if (!navigationClient) {
157
+ return null;
158
+ }
154
159
  try {
155
160
  const result = (await navigationClient.send("Runtime.evaluate", {
156
161
  expression: `
@@ -263,16 +268,22 @@ function waitForAnyQuery(
263
268
  queryNames: string[],
264
269
  timeoutMs = 15000,
265
270
  ): Promise<boolean> {
266
- if (queryNames.some((q) => seenQueries.has(q))) return Promise.resolve(true);
271
+ if (queryNames.some((q) => seenQueries.has(q))) {
272
+ return Promise.resolve(true);
273
+ }
267
274
  return new Promise((resolve) => {
268
275
  const timer = setTimeout(() => {
269
- for (const q of queryNames) queryWaiters.delete(q);
276
+ for (const q of queryNames) {
277
+ queryWaiters.delete(q);
278
+ }
270
279
  resolve(false);
271
280
  }, timeoutMs);
272
281
  for (const q of queryNames) {
273
282
  queryWaiters.set(q, () => {
274
283
  clearTimeout(timer);
275
- for (const q2 of queryNames) queryWaiters.delete(q2);
284
+ for (const q2 of queryNames) {
285
+ queryWaiters.delete(q2);
286
+ }
276
287
  resolve(true);
277
288
  });
278
289
  }
@@ -297,7 +308,9 @@ for (const page of pages) {
297
308
  client.on("Network.requestWillBeSent", (params) => {
298
309
  const req = params.request as Record<string, unknown> | undefined;
299
310
  const url = (req?.url ?? params.url) as string | undefined;
300
- if (!url?.includes("/i/api/graphql/")) return;
311
+ if (!url?.includes("/i/api/graphql/")) {
312
+ return;
313
+ }
301
314
 
302
315
  const match = url.match(/\/graphql\/([^/]+)\/([^?]+)/);
303
316
  const queryId = match?.[1] ?? "unknown";
@@ -305,7 +318,9 @@ for (const page of pages) {
305
318
  const method = (req?.method as string) ?? "GET";
306
319
 
307
320
  // Apply relevance filter
308
- if (!captureAll && !RELEVANT_QUERIES.has(queryName)) return;
321
+ if (!captureAll && !RELEVANT_QUERIES.has(queryName)) {
322
+ return;
323
+ }
309
324
 
310
325
  let variables: unknown = undefined;
311
326
  let features: unknown = undefined;
@@ -322,17 +337,22 @@ for (const page of pages) {
322
337
  try {
323
338
  const u = new URL(url);
324
339
  const v = u.searchParams.get("variables");
325
- if (v) variables = JSON.parse(v);
340
+ if (v) {
341
+ variables = JSON.parse(v);
342
+ }
326
343
  const f = u.searchParams.get("features");
327
- if (f) features = JSON.parse(f);
344
+ if (f) {
345
+ features = JSON.parse(f);
346
+ }
328
347
  } catch {
329
348
  /* ignore */
330
349
  }
331
350
  }
332
351
 
333
352
  console.log(`\n>>> ${method} ${queryName} (${queryId})`);
334
- if (variables)
353
+ if (variables) {
335
354
  console.log(` variables: ${JSON.stringify(variables).slice(0, 200)}`);
355
+ }
336
356
 
337
357
  pendingRequests.set(params.requestId as string, { url, queryName });
338
358
  captured.push({
@@ -348,7 +368,9 @@ for (const page of pages) {
348
368
  client.on("Network.responseReceived", (params) => {
349
369
  const requestId = params.requestId as string;
350
370
  const pending = pendingRequests.get(requestId);
351
- if (!pending) return;
371
+ if (!pending) {
372
+ return;
373
+ }
352
374
 
353
375
  const response = params.response as Record<string, unknown>;
354
376
  const status = response.status as number;
@@ -410,14 +432,18 @@ if (!navigationClient && pages.length > 0) {
410
432
  // ─── CDP navigation helpers ──────────────────────────────────────────────────
411
433
 
412
434
  async function navigateTo(url: string): Promise<void> {
413
- if (!navigationClient) return;
435
+ if (!navigationClient) {
436
+ return;
437
+ }
414
438
  await navigationClient.send("Page.navigate", { url });
415
439
  // Wait for page to load
416
440
  await new Promise((r) => setTimeout(r, 3000));
417
441
  }
418
442
 
419
443
  async function clickElement(selector: string): Promise<boolean> {
420
- if (!navigationClient) return false;
444
+ if (!navigationClient) {
445
+ return false;
446
+ }
421
447
  try {
422
448
  const result = (await navigationClient.send("Runtime.evaluate", {
423
449
  expression: `
@@ -439,7 +465,9 @@ async function clickElement(selector: string): Promise<boolean> {
439
465
  }
440
466
 
441
467
  async function scrollDown(): Promise<void> {
442
- if (!navigationClient) return;
468
+ if (!navigationClient) {
469
+ return;
470
+ }
443
471
  try {
444
472
  await navigationClient.send("Runtime.evaluate", {
445
473
  expression: "window.scrollBy(0, 800)",
@@ -467,14 +495,18 @@ async function runAutoMode() {
467
495
  console.log(` Detected user: @${screenName}\n`);
468
496
  // Fill in profile-based URLs
469
497
  for (const step of GUIDE_STEPS) {
470
- if (step.label === "Likes")
498
+ if (step.label === "Likes") {
471
499
  step.url = `https://x.com/${screenName}/likes`;
472
- if (step.label === "Followers")
500
+ }
501
+ if (step.label === "Followers") {
473
502
  step.url = `https://x.com/${screenName}/followers`;
474
- if (step.label === "Following")
503
+ }
504
+ if (step.label === "Following") {
475
505
  step.url = `https://x.com/${screenName}/following`;
476
- if (step.label === "Media")
506
+ }
507
+ if (step.label === "Media") {
477
508
  step.url = `https://x.com/${screenName}/media`;
509
+ }
478
510
  }
479
511
  } else {
480
512
  console.log(
@@ -553,7 +585,9 @@ function printSummary() {
553
585
  // Dedupe by queryName
554
586
  const seen = new Set<string>();
555
587
  const unique = captured.filter((q) => {
556
- if (seen.has(q.queryName)) return false;
588
+ if (seen.has(q.queryName)) {
589
+ return false;
590
+ }
557
591
  seen.add(q.queryName);
558
592
  return true;
559
593
  });
@@ -369,7 +369,9 @@ function buildSpec(
369
369
  // Sort by path, then by method for deterministic output
370
370
  uniqueRoutes.sort((a, b) => {
371
371
  const pathCmp = a.path.localeCompare(b.path);
372
- if (pathCmp !== 0) return pathCmp;
372
+ if (pathCmp !== 0) {
373
+ return pathCmp;
374
+ }
373
375
  return a.method.localeCompare(b.method);
374
376
  });
375
377
 
@@ -607,15 +609,17 @@ async function main() {
607
609
  );
608
610
  if (inGeneratedOnly.length) {
609
611
  console.error(` Only in generated (missing from committed yaml):`);
610
- for (const p of inGeneratedOnly.slice(0, 20))
612
+ for (const p of inGeneratedOnly.slice(0, 20)) {
611
613
  console.error(` + ${p}`);
614
+ }
612
615
  }
613
616
  if (inExistingOnly.length) {
614
617
  console.error(
615
618
  ` Only in existing (stale entries in committed yaml):`,
616
619
  );
617
- for (const p of inExistingOnly.slice(0, 20))
620
+ for (const p of inExistingOnly.slice(0, 20)) {
618
621
  console.error(` - ${p}`);
622
+ }
619
623
  }
620
624
  }
621
625
  process.exit(1);
@@ -143,11 +143,17 @@ function showList() {
143
143
  function relativeAge(epochMs: number): string {
144
144
  const elapsed = Date.now() - epochMs;
145
145
  const mins = Math.floor(elapsed / 60_000);
146
- if (mins < 60) return `${mins}m ago`;
146
+ if (mins < 60) {
147
+ return `${mins}m ago`;
148
+ }
147
149
  const hours = Math.floor(mins / 60);
148
- if (hours < 24) return `${hours}h ago`;
150
+ if (hours < 24) {
151
+ return `${hours}h ago`;
152
+ }
149
153
  const days = Math.floor(hours / 24);
150
- if (days <= 90) return `${days}d ago`;
154
+ if (days <= 90) {
155
+ return `${days}d ago`;
156
+ }
151
157
  const months = Math.floor(days / 30);
152
158
  return `${months}mo ago`;
153
159
  }
@@ -320,9 +326,12 @@ function showNode(nodeId: string) {
320
326
  console.log(
321
327
  ` Emotional: valence=${node.emotionalCharge.valence.toFixed(2)} intensity=${node.emotionalCharge.intensity.toFixed(2)} curve=${node.emotionalCharge.decayCurve}`,
322
328
  );
323
- if (node.narrativeRole)
329
+ if (node.narrativeRole) {
324
330
  console.log(` Narrative role: ${node.narrativeRole}`);
325
- if (node.partOfStory) console.log(` Part of story: ${node.partOfStory}`);
331
+ }
332
+ if (node.partOfStory) {
333
+ console.log(` Part of story: ${node.partOfStory}`);
334
+ }
326
335
  console.log(` Source conversations: ${node.sourceConversations.length}`);
327
336
  console.log(`\n Content:\n ${node.content}\n`);
328
337
 
@@ -520,7 +529,9 @@ async function runDecay() {
520
529
  // ---------------------------------------------------------------------------
521
530
 
522
531
  function printScoredNodes(nodes: ScoredNode[]) {
523
- if (nodes.length === 0) return;
532
+ if (nodes.length === 0) {
533
+ return;
534
+ }
524
535
  console.log(` Scored nodes:`);
525
536
  for (const s of nodes) {
526
537
  const b = s.scoreBreakdown;
@@ -52,28 +52,40 @@ function projectModel(model: CatalogModel): Record<string, unknown> {
52
52
  id: model.id,
53
53
  displayName: model.displayName,
54
54
  };
55
- if (model.contextWindowTokens !== undefined)
55
+ if (model.contextWindowTokens !== undefined) {
56
56
  projected.contextWindowTokens = model.contextWindowTokens;
57
- if (model.maxOutputTokens !== undefined)
57
+ }
58
+ if (model.maxOutputTokens !== undefined) {
58
59
  projected.maxOutputTokens = model.maxOutputTokens;
59
- if (model.defaultContextWindowTokens !== undefined)
60
+ }
61
+ if (model.defaultContextWindowTokens !== undefined) {
60
62
  projected.defaultContextWindowTokens = model.defaultContextWindowTokens;
61
- if (model.longContextPricingThresholdTokens !== undefined)
63
+ }
64
+ if (model.longContextPricingThresholdTokens !== undefined) {
62
65
  projected.longContextPricingThresholdTokens =
63
66
  model.longContextPricingThresholdTokens;
64
- if (model.longContextMode !== undefined)
67
+ }
68
+ if (model.longContextMode !== undefined) {
65
69
  projected.longContextMode = model.longContextMode;
66
- if (model.supportsThinking !== undefined)
70
+ }
71
+ if (model.supportsThinking !== undefined) {
67
72
  projected.supportsThinking = model.supportsThinking;
68
- if (model.adaptiveThinkingOnly !== undefined)
73
+ }
74
+ if (model.adaptiveThinkingOnly !== undefined) {
69
75
  projected.adaptiveThinkingOnly = model.adaptiveThinkingOnly;
70
- if (model.supportsCaching !== undefined)
76
+ }
77
+ if (model.supportsCaching !== undefined) {
71
78
  projected.supportsCaching = model.supportsCaching;
72
- if (model.supportsVision !== undefined)
79
+ }
80
+ if (model.supportsVision !== undefined) {
73
81
  projected.supportsVision = model.supportsVision;
74
- if (model.supportsToolUse !== undefined)
82
+ }
83
+ if (model.supportsToolUse !== undefined) {
75
84
  projected.supportsToolUse = model.supportsToolUse;
76
- if (model.pricing !== undefined) projected.pricing = model.pricing;
85
+ }
86
+ if (model.pricing !== undefined) {
87
+ projected.pricing = model.pricing;
88
+ }
77
89
  return projected;
78
90
  }
79
91
 
@@ -82,16 +94,27 @@ function projectProvider(entry: ProviderCatalogEntry): Record<string, unknown> {
82
94
  id: entry.id,
83
95
  displayName: entry.displayName,
84
96
  };
85
- if (entry.subtitle !== undefined) projected.subtitle = entry.subtitle;
86
- if (entry.setupMode !== undefined) projected.setupMode = entry.setupMode;
87
- if (entry.setupHint !== undefined) projected.setupHint = entry.setupHint;
88
- if (entry.envVar !== undefined) projected.envVar = entry.envVar;
89
- if (entry.apiKeyPlaceholder !== undefined)
97
+ if (entry.subtitle !== undefined) {
98
+ projected.subtitle = entry.subtitle;
99
+ }
100
+ if (entry.setupMode !== undefined) {
101
+ projected.setupMode = entry.setupMode;
102
+ }
103
+ if (entry.setupHint !== undefined) {
104
+ projected.setupHint = entry.setupHint;
105
+ }
106
+ if (entry.envVar !== undefined) {
107
+ projected.envVar = entry.envVar;
108
+ }
109
+ if (entry.apiKeyPlaceholder !== undefined) {
90
110
  projected.apiKeyPlaceholder = entry.apiKeyPlaceholder;
91
- if (entry.credentialsGuide !== undefined)
111
+ }
112
+ if (entry.credentialsGuide !== undefined) {
92
113
  projected.credentialsGuide = entry.credentialsGuide;
93
- if (entry.supportsPlatformAuth !== undefined)
114
+ }
115
+ if (entry.supportsPlatformAuth !== undefined) {
94
116
  projected.supportsPlatformAuth = entry.supportsPlatformAuth;
117
+ }
95
118
  projected.defaultModel = entry.defaultModel;
96
119
  projected.models = entry.models.map(projectModel);
97
120
  // NOTE: `apiKeyUrl` intentionally omitted — clients use
@@ -134,7 +157,9 @@ async function main() {
134
157
  }
135
158
  console.log(`${rel} is up to date.`);
136
159
  }
137
- if (anyStale) process.exit(1);
160
+ if (anyStale) {
161
+ process.exit(1);
162
+ }
138
163
  return;
139
164
  }
140
165
 
@@ -108,7 +108,9 @@ async function main(): Promise<void> {
108
108
  }
109
109
  console.log(`${rel} is up to date.`);
110
110
  }
111
- if (anyStale) process.exit(1);
111
+ if (anyStale) {
112
+ process.exit(1);
113
+ }
112
114
  return;
113
115
  }
114
116
 
@@ -142,8 +142,7 @@ async function main(): Promise<void> {
142
142
  try {
143
143
  await initializeTools();
144
144
  } catch (error) {
145
- toolInitError =
146
- error instanceof Error ? error.message : String(error);
145
+ toolInitError = error instanceof Error ? error.message : String(error);
147
146
  }
148
147
  // Registry entries are definition-shaped objects (see tool-manifest.ts);
149
148
  // getDefinition exists only on some registrations. Either way this
@@ -155,7 +154,11 @@ async function main(): Promise<void> {
155
154
  };
156
155
  return typeof t.getDefinition === "function"
157
156
  ? t.getDefinition()
158
- : { name: t.name, description: t.description, input_schema: t.input_schema };
157
+ : {
158
+ name: t.name,
159
+ description: t.description,
160
+ input_schema: t.input_schema,
161
+ };
159
162
  })
160
163
  .filter((def) => Boolean(def.name && def.input_schema));
161
164
  const fullPrompt = buildSystemPrompt();
@@ -46,13 +46,19 @@ function streamedText(events: AgentEvent[]): string {
46
46
 
47
47
  function textOf(content: ReadonlyArray<ContentBlock>): string {
48
48
  let out = "";
49
- for (const block of content) if (block.type === "text") out += block.text;
49
+ for (const block of content) {
50
+ if (block.type === "text") {
51
+ out += block.text;
52
+ }
53
+ }
50
54
  return out;
51
55
  }
52
56
 
53
57
  function lastAssistant(history: Message[]): Message {
54
58
  for (let i = history.length - 1; i >= 0; i--) {
55
- if (history[i].role === "assistant") return history[i];
59
+ if (history[i].role === "assistant") {
60
+ return history[i];
61
+ }
56
62
  }
57
63
  throw new Error("no assistant message in history");
58
64
  }
@@ -227,7 +233,9 @@ describe("agent loop output hooks", () => {
227
233
  const executed: Array<{ name: string; input: unknown; id?: string }> = [];
228
234
  registerOutputHookPlugin({
229
235
  postModelCall: (ctx) => {
230
- if (injected) return;
236
+ if (injected) {
237
+ return;
238
+ }
231
239
  injected = true;
232
240
  ctx.content = [
233
241
  ...ctx.content,
@@ -369,7 +377,9 @@ describe("agent loop output hooks", () => {
369
377
  // GIVEN a hook that selects an inference profile for the user-facing call
370
378
  registerOutputHookPlugin({
371
379
  preModelCall: (ctx) => {
372
- if (ctx.callSite !== "mainAgent") return;
380
+ if (ctx.callSite !== "mainAgent") {
381
+ return;
382
+ }
373
383
  ctx.modelProfile = "fast-profile";
374
384
  },
375
385
  });
@@ -646,8 +656,12 @@ describe("agent loop post-model-call retry decision", () => {
646
656
  ctx.deferAssistantOutput = true;
647
657
  },
648
658
  postModelCall: (ctx) => {
649
- if (ctx.error) return;
650
- if (continued) return;
659
+ if (ctx.error) {
660
+ return;
661
+ }
662
+ if (continued) {
663
+ return;
664
+ }
651
665
  continued = true;
652
666
  ctx.messages = [...ctx.messages, nudge];
653
667
  ctx.decision = "continue";
@@ -688,7 +702,9 @@ describe("agent loop post-model-call retry decision", () => {
688
702
  ctx.deferAssistantOutput = true;
689
703
  },
690
704
  postModelCall: (ctx) => {
691
- if (ctx.error) return;
705
+ if (ctx.error) {
706
+ return;
707
+ }
692
708
  ctx.decision = "continue";
693
709
  },
694
710
  });
@@ -724,7 +740,9 @@ describe("agent loop post-model-call retry decision", () => {
724
740
  let asked = false;
725
741
  registerOutputHookPlugin({
726
742
  postModelCall: (ctx) => {
727
- if (ctx.error) return;
743
+ if (ctx.error) {
744
+ return;
745
+ }
728
746
  asked = true;
729
747
  ctx.decision = "continue";
730
748
  },
@@ -763,10 +781,14 @@ describe("agent loop post-model-call retry decision", () => {
763
781
  let recovered = false;
764
782
  registerOutputHookPlugin({
765
783
  postModelCall: (ctx) => {
766
- if (!ctx.error) return;
784
+ if (!ctx.error) {
785
+ return;
786
+ }
767
787
  seen.error = ctx.error;
768
788
  seen.contentLength = ctx.content.length;
769
- if (recovered) return;
789
+ if (recovered) {
790
+ return;
791
+ }
770
792
  recovered = true;
771
793
  ctx.decision = "continue";
772
794
  },
@@ -805,7 +827,9 @@ describe("agent loop post-model-call retry decision", () => {
805
827
  // GIVEN a hook that inspects but never continues on a rejection
806
828
  registerOutputHookPlugin({
807
829
  postModelCall: (ctx) => {
808
- if (!ctx.error) return;
830
+ if (!ctx.error) {
831
+ return;
832
+ }
809
833
  },
810
834
  });
811
835
  // AND a provider that always throws
@@ -464,7 +464,9 @@ describe("AgentLoop budget-gate per-turn proactive-futility suppression", () =>
464
464
  let call = 0;
465
465
  provider.sendMessage = async (): Promise<ProviderResponse> => {
466
466
  call++;
467
- if (call === 1) return toolUseResponse("t1");
467
+ if (call === 1) {
468
+ return toolUseResponse("t1");
469
+ }
468
470
  if (call === 2 && !overflowThrown) {
469
471
  overflowThrown = true;
470
472
  throw new ContextOverflowError("prompt too long", "mock", {
@@ -1129,9 +1129,12 @@ describe("AgentLoop", () => {
1129
1129
  let lastToolUseIdx = -1;
1130
1130
  let firstToolResultIdx = events.length;
1131
1131
  events.forEach((e, i) => {
1132
- if (e.type === "tool_use") lastToolUseIdx = i;
1133
- if (e.type === "tool_result" && i < firstToolResultIdx)
1132
+ if (e.type === "tool_use") {
1133
+ lastToolUseIdx = i;
1134
+ }
1135
+ if (e.type === "tool_result" && i < firstToolResultIdx) {
1134
1136
  firstToolResultIdx = i;
1137
+ }
1135
1138
  });
1136
1139
  expect(lastToolUseIdx).toBeLessThan(firstToolResultIdx);
1137
1140
 
@@ -35,7 +35,9 @@ mock.module("@anthropic-ai/sdk", () => ({
35
35
  return this;
36
36
  },
37
37
  async finalMessage() {
38
- if (nextThrown) throw nextThrown;
38
+ if (nextThrown) {
39
+ throw nextThrown;
40
+ }
39
41
  return {
40
42
  content: [],
41
43
  model: "claude-sonnet-4-6",
@@ -81,7 +81,9 @@ mock.module("../runtime/pending-interactions.js", () => ({
81
81
  get: (requestId: string) => pending.get(requestId),
82
82
  resolve: (requestId: string) => {
83
83
  const entry = pending.get(requestId);
84
- if (entry) pending.delete(requestId);
84
+ if (entry) {
85
+ pending.delete(requestId);
86
+ }
85
87
  return entry;
86
88
  },
87
89
  getByKind: () => [],
@@ -82,9 +82,13 @@ function validate(
82
82
  }
83
83
  }
84
84
  for (const [key, propSchema] of Object.entries(s.properties ?? {})) {
85
- if (!(key in input)) continue;
85
+ if (!(key in input)) {
86
+ continue;
87
+ }
86
88
  const value = input[key];
87
- if (!propSchema.type) continue;
89
+ if (!propSchema.type) {
90
+ continue;
91
+ }
88
92
  switch (propSchema.type) {
89
93
  case "string":
90
94
  if (typeof value !== "string") {
@@ -78,9 +78,15 @@ describe("app directory path construction guard", () => {
78
78
  ),
79
79
  );
80
80
  const violations = files.filter((f) => {
81
- if (isTestFile(f)) return false;
82
- if (isMigrationFile(f)) return false;
83
- if (ALLOWLIST.has(f)) return false;
81
+ if (isTestFile(f)) {
82
+ return false;
83
+ }
84
+ if (isMigrationFile(f)) {
85
+ return false;
86
+ }
87
+ if (ALLOWLIST.has(f)) {
88
+ return false;
89
+ }
84
90
  return true;
85
91
  });
86
92