@elizaos/agent 2.0.3-beta.2 → 2.0.3-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/__tests__/view-user-journeys.d.ts.map +1 -1
  2. package/__tests__/view-user-journeys.js +52 -41
  3. package/actions/context-signal.d.ts +2 -2
  4. package/actions/files.d.ts +9 -0
  5. package/actions/files.d.ts.map +1 -0
  6. package/actions/files.js +183 -0
  7. package/actions/index.d.ts +17 -17
  8. package/api/accounts-routes.d.ts +1 -1
  9. package/api/accounts-routes.js +1 -1
  10. package/api/agent-admin-routes.d.ts +1 -1
  11. package/api/agent-admin-routes.js +2 -2
  12. package/api/agent-model.d.ts +1 -1
  13. package/api/agent-status-routes.d.ts +1 -3
  14. package/api/agent-status-routes.d.ts.map +1 -1
  15. package/api/agent-status-routes.js +0 -2
  16. package/api/approval-routes.d.ts +38 -0
  17. package/api/approval-routes.d.ts.map +1 -0
  18. package/api/approval-routes.js +223 -0
  19. package/api/background-routes.d.ts +13 -0
  20. package/api/background-routes.d.ts.map +1 -0
  21. package/api/background-routes.js +91 -0
  22. package/api/binance-skill-helpers.d.ts +2 -2
  23. package/api/binance-skill-helpers.js +2 -2
  24. package/api/builtin-views.d.ts.map +1 -1
  25. package/api/builtin-views.js +44 -4
  26. package/api/character-routes.d.ts +1 -1
  27. package/api/chat-augmentation.d.ts.map +1 -1
  28. package/api/chat-augmentation.js +17 -0
  29. package/api/chat-routes.d.ts +29 -2
  30. package/api/chat-routes.d.ts.map +1 -1
  31. package/api/chat-routes.js +76 -1
  32. package/api/commands-routes.d.ts +10 -8
  33. package/api/commands-routes.d.ts.map +1 -1
  34. package/api/commands-routes.js +17 -59
  35. package/api/config-routes.d.ts +1 -1
  36. package/api/config-routes.d.ts.map +1 -1
  37. package/api/config-routes.js +0 -2
  38. package/api/connector-routes.d.ts +1 -1
  39. package/api/conversation-metadata.d.ts +1 -1
  40. package/api/conversation-metadata.d.ts.map +1 -1
  41. package/api/conversation-metadata.js +0 -1
  42. package/api/conversation-routes.d.ts +4 -3
  43. package/api/conversation-routes.d.ts.map +1 -1
  44. package/api/conversation-routes.js +34 -1
  45. package/api/documents-service-loader.d.ts +0 -4
  46. package/api/documents-service-loader.d.ts.map +1 -1
  47. package/api/documents-service-loader.js +0 -2
  48. package/api/files-routes.d.ts +14 -0
  49. package/api/files-routes.d.ts.map +1 -0
  50. package/api/files-routes.js +47 -0
  51. package/api/first-run-routes.d.ts +1 -1
  52. package/api/health-routes.d.ts +2 -2
  53. package/api/index.d.ts +40 -39
  54. package/api/index.d.ts.map +1 -1
  55. package/api/index.js +1 -0
  56. package/api/interactions-routes.d.ts +33 -0
  57. package/api/interactions-routes.d.ts.map +1 -0
  58. package/api/interactions-routes.js +63 -0
  59. package/api/media-runtime.d.ts +2 -1
  60. package/api/media-runtime.d.ts.map +1 -1
  61. package/api/media-runtime.js +64 -7
  62. package/api/media-store.d.ts +36 -0
  63. package/api/media-store.d.ts.map +1 -1
  64. package/api/media-store.js +141 -2
  65. package/api/memory-bounds.d.ts +0 -1
  66. package/api/memory-bounds.d.ts.map +1 -1
  67. package/api/memory-bounds.js +0 -1
  68. package/api/misc-routes.d.ts +1 -1
  69. package/api/model-provider-helpers.d.ts +2 -2
  70. package/api/model-provider-helpers.js +2 -2
  71. package/api/permissions-routes-extra.d.ts +1 -1
  72. package/api/permissions-routes.d.ts +1 -1
  73. package/api/permissions-routes.d.ts.map +1 -1
  74. package/api/permissions-routes.js +8 -7
  75. package/api/plugin-discovery-helpers.d.ts +5 -6
  76. package/api/plugin-discovery-helpers.d.ts.map +1 -1
  77. package/api/plugin-discovery-helpers.js +3 -4
  78. package/api/plugin-runtime-apply.d.ts +2 -2
  79. package/api/plugin-runtime-apply.d.ts.map +1 -1
  80. package/api/plugin-runtime-apply.js +74 -0
  81. package/api/provider-switch-config.d.ts +1 -1
  82. package/api/provider-switch-routes.d.ts +2 -2
  83. package/api/registry-routes.d.ts +1 -1
  84. package/api/registry-service.d.ts +1 -1
  85. package/api/remote-capability-routes.d.ts +2 -2
  86. package/api/remote-capability-routes.d.ts.map +1 -1
  87. package/api/remote-capability-routes.js +19 -0
  88. package/api/server-autonomy-helpers.d.ts +2 -2
  89. package/api/server-helpers-auth.d.ts +10 -0
  90. package/api/server-helpers-auth.d.ts.map +1 -1
  91. package/api/server-helpers-auth.js +16 -210
  92. package/api/server-helpers-config.d.ts +1 -1
  93. package/api/server-helpers-mcp.d.ts +2 -2
  94. package/api/server-helpers-plugin.d.ts +1 -1
  95. package/api/server-helpers-swarm.d.ts +3 -3
  96. package/api/server-helpers-swarm.d.ts.map +1 -1
  97. package/api/server-helpers-swarm.js +15 -5
  98. package/api/server-helpers-wallet.d.ts +1 -1
  99. package/api/server-helpers.d.ts +4 -4
  100. package/api/server-lazy-routes.d.ts +40 -38
  101. package/api/server-lazy-routes.d.ts.map +1 -1
  102. package/api/server-lazy-routes.js +7 -0
  103. package/api/server-route-dispatch.d.ts +2 -2
  104. package/api/server-route-dispatch.d.ts.map +1 -1
  105. package/api/server-route-dispatch.js +7 -0
  106. package/api/server-types.d.ts +9 -7
  107. package/api/server-types.d.ts.map +1 -1
  108. package/api/server.d.ts +19 -19
  109. package/api/server.d.ts.map +1 -1
  110. package/api/server.js +111 -17
  111. package/api/static-file-server.d.ts +2 -2
  112. package/api/static-file-server.js +2 -2
  113. package/api/subscription-routes.d.ts +4 -4
  114. package/api/subscription-routes.js +3 -4
  115. package/api/suggestions-routes.d.ts +1 -1
  116. package/api/suggestions-routes.d.ts.map +1 -1
  117. package/api/suggestions-routes.js +2 -3
  118. package/api/terminal-execution-routing.d.ts +1 -1
  119. package/api/training-service-like.d.ts +1 -1
  120. package/api/trajectory-fallback-routes.d.ts.map +1 -1
  121. package/api/trajectory-fallback-routes.js +21 -1
  122. package/api/update-routes.d.ts +1 -1
  123. package/api/view-registry-types.d.ts +1 -1
  124. package/api/views-registry.d.ts +14 -4
  125. package/api/views-registry.d.ts.map +1 -1
  126. package/api/views-registry.js +107 -72
  127. package/api/views-routes.d.ts +1 -1
  128. package/api/views-routes.d.ts.map +1 -1
  129. package/api/views-routes.js +131 -14
  130. package/api/views-search-index.d.ts +1 -1
  131. package/api/wallet-capability.d.ts +3 -3
  132. package/api/wallet-rpc.d.ts +1 -1
  133. package/api/wallet.d.ts +3 -3
  134. package/api/wallet.d.ts.map +1 -1
  135. package/api/wallet.js +4 -3
  136. package/api/workbench-context.d.ts +1 -1
  137. package/api/workbench-helpers.d.ts +3 -3
  138. package/api/workbench-helpers.js +3 -3
  139. package/api/workbench-routes.d.ts +2 -2
  140. package/api/workbench-vfs-routes.d.ts +1 -1
  141. package/api/ws-event-replay.d.ts +1 -2
  142. package/api/ws-event-replay.d.ts.map +1 -1
  143. package/api/ws-event-replay.js +1 -2
  144. package/api/x-relay-routes.d.ts +2 -2
  145. package/api/x402-route-validation.d.ts +4 -0
  146. package/api/x402-route-validation.d.ts.map +1 -0
  147. package/api/x402-route-validation.js +6 -0
  148. package/assets/view-heroes/background.png +0 -0
  149. package/auth/account-storage.d.ts +1 -1
  150. package/auth/anthropic.d.ts +1 -1
  151. package/auth/credentials.d.ts +2 -2
  152. package/auth/index.d.ts +7 -7
  153. package/auth/oauth-flow.d.ts +2 -2
  154. package/auth/openai-codex.d.ts +1 -1
  155. package/awareness/index.d.ts +1 -1
  156. package/config/config.js +0 -1
  157. package/config/env-vars.d.ts +1 -1
  158. package/config/env-vars.d.ts.map +1 -1
  159. package/config/env-vars.js +0 -1
  160. package/config/index.d.ts +10 -10
  161. package/config/model-metadata.d.ts +1 -1
  162. package/config/owner-contacts.d.ts +1 -1
  163. package/config/schema.d.ts +1 -1
  164. package/hooks/discovery.d.ts +1 -1
  165. package/hooks/eligibility.d.ts +2 -2
  166. package/hooks/index.d.ts +2 -2
  167. package/hooks/loader.d.ts +2 -2
  168. package/hooks/registry.d.ts +1 -1
  169. package/index.d.ts +87 -85
  170. package/index.d.ts.map +1 -1
  171. package/index.js +11 -3
  172. package/package.json +54 -44
  173. package/providers/media-provider.d.ts +1 -1
  174. package/providers/page-scoped-context.d.ts.map +1 -1
  175. package/providers/page-scoped-context.js +1 -70
  176. package/providers/relevant-conversations.d.ts.map +1 -1
  177. package/providers/relevant-conversations.js +8 -9
  178. package/providers/workspace.d.ts +1 -1
  179. package/runtime/actions/web-fetch.d.ts.map +1 -1
  180. package/runtime/actions/web-fetch.js +23 -3
  181. package/runtime/actions/web-search.d.ts +32 -0
  182. package/runtime/actions/web-search.d.ts.map +1 -0
  183. package/runtime/actions/web-search.js +245 -0
  184. package/runtime/advanced-capabilities-config.d.ts +1 -1
  185. package/runtime/boot-telemetry.d.ts +1 -1
  186. package/runtime/conversation-compactor-runtime.d.ts +1 -1
  187. package/runtime/conversation-compactor-runtime.js +1 -1
  188. package/runtime/conversation-compactor.d.ts +1 -1
  189. package/runtime/core-plugins.d.ts.map +1 -1
  190. package/runtime/core-plugins.js +9 -0
  191. package/runtime/custom-actions.d.ts +18 -9
  192. package/runtime/custom-actions.d.ts.map +1 -1
  193. package/runtime/custom-actions.js +85 -23
  194. package/runtime/eliza-plugin.d.ts.map +1 -1
  195. package/runtime/eliza-plugin.js +15 -1
  196. package/runtime/eliza.d.ts +9 -7
  197. package/runtime/eliza.d.ts.map +1 -1
  198. package/runtime/eliza.js +86 -23
  199. package/runtime/first-time-setup.d.ts +1 -3
  200. package/runtime/first-time-setup.d.ts.map +1 -1
  201. package/runtime/first-time-setup.js +0 -2
  202. package/runtime/index.d.ts +18 -18
  203. package/runtime/load-plugin-from-vfs.d.ts +2 -2
  204. package/runtime/mobile-dns.d.ts.map +1 -1
  205. package/runtime/mobile-dns.js +2 -5
  206. package/runtime/operations/classifier.d.ts +1 -1
  207. package/runtime/operations/cold-strategy.d.ts +1 -1
  208. package/runtime/operations/health-checks.d.ts +1 -1
  209. package/runtime/operations/health.d.ts +1 -1
  210. package/runtime/operations/index.d.ts +10 -10
  211. package/runtime/operations/manager.d.ts +3 -3
  212. package/runtime/operations/reload-hot.d.ts +1 -1
  213. package/runtime/operations/repository.d.ts +1 -1
  214. package/runtime/operations/vault-bridge.d.ts +1 -1
  215. package/runtime/plugin-collector.d.ts +6 -1
  216. package/runtime/plugin-collector.d.ts.map +1 -1
  217. package/runtime/plugin-collector.js +11 -28
  218. package/runtime/plugin-lifecycle.d.ts.map +1 -1
  219. package/runtime/plugin-lifecycle.js +1 -0
  220. package/runtime/plugin-resolver.d.ts +2 -2
  221. package/runtime/plugin-resolver.d.ts.map +1 -1
  222. package/runtime/plugin-resolver.js +113 -65
  223. package/runtime/plugin-types.d.ts +1 -1
  224. package/runtime/prompt-optimization.d.ts +4 -4
  225. package/runtime/remote-coding-runner-gate.d.ts +7 -0
  226. package/runtime/remote-coding-runner-gate.d.ts.map +1 -0
  227. package/runtime/remote-coding-runner-gate.js +36 -0
  228. package/runtime/roles/src/index.d.ts +4 -4
  229. package/runtime/roles.d.ts +2 -2
  230. package/runtime/sandbox-character.d.ts +1 -1
  231. package/runtime/tool-call-cache/cache.d.ts +1 -1
  232. package/runtime/tool-call-cache/disk-store.d.ts +1 -1
  233. package/runtime/tool-call-cache/index.d.ts +6 -6
  234. package/runtime/tool-call-cache/key.d.ts +1 -1
  235. package/runtime/tool-call-cache/redact.d.ts +1 -1
  236. package/runtime/tool-call-cache/registry.d.ts +1 -1
  237. package/runtime/tool-call-cache-wrapper.d.ts +7 -9
  238. package/runtime/tool-call-cache-wrapper.d.ts.map +1 -1
  239. package/runtime/tool-call-cache-wrapper.js +6 -11
  240. package/runtime/trajectory-export.d.ts +3 -3
  241. package/runtime/trajectory-internals.d.ts +2 -1
  242. package/runtime/trajectory-internals.d.ts.map +1 -1
  243. package/runtime/trajectory-persistence.d.ts +5 -5
  244. package/runtime/trajectory-steps-reader.d.ts +1 -1
  245. package/runtime/trajectory-steps-writer.d.ts +1 -1
  246. package/runtime/trajectory-storage.d.ts +4 -4
  247. package/runtime/view-action-affinity.d.ts +18 -15
  248. package/runtime/view-action-affinity.d.ts.map +1 -1
  249. package/runtime/view-action-affinity.js +26 -29
  250. package/runtime/web-search-tools.d.ts +4 -1
  251. package/runtime/web-search-tools.d.ts.map +1 -1
  252. package/runtime/web-search-tools.js +37 -9
  253. package/security/index.d.ts +3 -3
  254. package/services/approval/index.d.ts +9 -0
  255. package/services/approval/index.d.ts.map +1 -0
  256. package/services/approval/index.js +8 -0
  257. package/services/approval/service.d.ts +35 -0
  258. package/services/approval/service.d.ts.map +1 -0
  259. package/services/approval/service.js +40 -0
  260. package/services/approval/sql.d.ts +18 -0
  261. package/services/approval/sql.d.ts.map +1 -0
  262. package/services/approval/sql.js +104 -0
  263. package/services/approval/store.d.ts +39 -0
  264. package/services/approval/store.d.ts.map +1 -0
  265. package/services/approval/store.js +534 -0
  266. package/services/approval/types.d.ts +207 -0
  267. package/services/approval/types.d.ts.map +1 -0
  268. package/services/approval/types.js +34 -0
  269. package/services/character-persistence.d.ts +2 -2
  270. package/services/client-chat-sender.d.ts +1 -1
  271. package/services/config-plugin-manager.d.ts +2 -2
  272. package/services/connector-setup-service.d.ts +1 -1
  273. package/services/cove-quote-x509.d.ts +1 -1
  274. package/services/cove-quote.d.ts +2 -2
  275. package/services/dstack-tee-provider.d.ts +1 -1
  276. package/services/file-storage.d.ts +20 -0
  277. package/services/file-storage.d.ts.map +1 -0
  278. package/services/file-storage.js +70 -0
  279. package/services/global-pause/index.d.ts +8 -0
  280. package/services/global-pause/index.d.ts.map +1 -0
  281. package/services/global-pause/index.js +7 -0
  282. package/services/global-pause/service.d.ts +29 -0
  283. package/services/global-pause/service.d.ts.map +1 -0
  284. package/services/global-pause/service.js +34 -0
  285. package/services/global-pause/store.d.ts +31 -0
  286. package/services/global-pause/store.d.ts.map +1 -0
  287. package/services/global-pause/store.js +83 -0
  288. package/services/handoff/index.d.ts +8 -0
  289. package/services/handoff/index.d.ts.map +1 -0
  290. package/services/handoff/index.js +7 -0
  291. package/services/handoff/service.d.ts +29 -0
  292. package/services/handoff/service.d.ts.map +1 -0
  293. package/services/handoff/service.js +34 -0
  294. package/services/handoff/store.d.ts +76 -0
  295. package/services/handoff/store.d.ts.map +1 -0
  296. package/services/handoff/store.js +148 -0
  297. package/services/index.d.ts +30 -31
  298. package/services/index.d.ts.map +1 -1
  299. package/services/index.js +0 -6
  300. package/services/js-runtime-bridge.d.ts.map +1 -1
  301. package/services/js-runtime-bridge.js +8 -2
  302. package/services/knowledge-graph/index.d.ts +4 -4
  303. package/services/knowledge-graph/service.d.ts +2 -2
  304. package/services/pending-prompts/index.d.ts +8 -0
  305. package/services/pending-prompts/index.d.ts.map +1 -0
  306. package/services/pending-prompts/index.js +7 -0
  307. package/services/pending-prompts/service.d.ts +34 -0
  308. package/services/pending-prompts/service.d.ts.map +1 -0
  309. package/services/pending-prompts/service.js +68 -0
  310. package/services/pending-prompts/store.d.ts +70 -0
  311. package/services/pending-prompts/store.d.ts.map +1 -0
  312. package/services/pending-prompts/store.js +191 -0
  313. package/services/plugin-compiler.d.ts +1 -1
  314. package/services/plugin-installer.d.ts.map +1 -1
  315. package/services/plugin-installer.js +21 -11
  316. package/services/plugin-manager-types.d.ts +1 -1
  317. package/services/proactive-interaction-decider.d.ts +62 -11
  318. package/services/proactive-interaction-decider.d.ts.map +1 -1
  319. package/services/proactive-interaction-decider.js +223 -35
  320. package/services/push/apns-provider.d.ts +1 -1
  321. package/services/push/fcm-provider.d.ts +1 -1
  322. package/services/push/notification-push-service.d.ts +2 -2
  323. package/services/registry-client-app-meta.d.ts +1 -1
  324. package/services/registry-client-endpoints.d.ts +2 -2
  325. package/services/registry-client-local.d.ts +1 -1
  326. package/services/registry-client-network.d.ts +1 -1
  327. package/services/registry-client-queries.d.ts +1 -1
  328. package/services/registry-client.d.ts +3 -3
  329. package/services/relationships-graph.d.ts +1 -1
  330. package/services/remote-capability-cloud-sandbox.d.ts +3 -3
  331. package/services/remote-capability-endpoint-conformance.d.ts +1 -1
  332. package/services/remote-capability-endpoint-provider.d.ts +4 -4
  333. package/services/remote-capability-url-endpoint-providers.d.ts +1 -1
  334. package/services/remote-plugin-adapter.d.ts.map +1 -1
  335. package/services/remote-plugin-adapter.js +3 -0
  336. package/services/remote-plugin-bridge.d.ts.map +1 -1
  337. package/services/remote-plugin-bridge.js +97 -26
  338. package/services/remote-signing-service.d.ts +4 -4
  339. package/services/research-task-executor.d.ts +1 -1
  340. package/services/sandbox-manager.d.ts +1 -1
  341. package/services/self-updater.d.ts +1 -1
  342. package/services/self-updater.d.ts.map +1 -1
  343. package/services/self-updater.js +23 -9
  344. package/services/shell-execution-router.d.ts +1 -1
  345. package/services/shell-execution-router.d.ts.map +1 -1
  346. package/services/shell-execution-router.js +19 -2
  347. package/services/tee-boot-gate-state.d.ts +1 -1
  348. package/services/tee-boot-gate.d.ts +4 -4
  349. package/services/tee-confidential-inference.d.ts +3 -3
  350. package/services/tee-key-release.d.ts +2 -2
  351. package/services/tee-model-key-boot.d.ts +4 -4
  352. package/services/tee-policy.d.ts +1 -1
  353. package/services/tee-production-profile.d.ts +1 -1
  354. package/services/tee-release-policy.d.ts +1 -1
  355. package/services/tee-revocation.d.ts +2 -2
  356. package/services/tee-runtime-config.d.ts +1 -1
  357. package/services/tee-sealed-volume.d.ts +3 -3
  358. package/services/tee-signer-backend.d.ts +3 -3
  359. package/services/update-checker.d.ts +1 -1
  360. package/services/vault-signer-backend.d.ts +1 -1
  361. package/services/vfs-git.d.ts +1 -1
  362. package/test-support/index.d.ts +3 -3
  363. package/triggers/runtime.d.ts +1 -1
  364. package/triggers/scheduling.d.ts +3 -22
  365. package/triggers/scheduling.d.ts.map +1 -1
  366. package/triggers/scheduling.js +2 -214
  367. package/tui/agent-terminal-tui.d.ts.map +1 -1
  368. package/tui/agent-terminal-tui.js +174 -72
  369. package/types/index.d.ts +3 -3
  370. package/api/nfa-routes.d.ts +0 -6
  371. package/api/nfa-routes.d.ts.map +0 -1
  372. package/api/nfa-routes.js +0 -125
  373. package/api/server-auth.d.ts +0 -46
  374. package/api/server-auth.d.ts.map +0 -1
  375. package/api/server-auth.js +0 -504
  376. package/runtime/restart.d.ts +0 -9
  377. package/runtime/restart.d.ts.map +0 -1
  378. package/runtime/restart.js +0 -8
  379. package/test-utils/sqlite-compat.d.ts +0 -23
  380. package/test-utils/sqlite-compat.d.ts.map +0 -1
  381. package/test-utils/sqlite-compat.js +0 -214
@@ -0,0 +1,7 @@
1
+ interface RuntimeSettingSource {
2
+ getSetting(key: string): unknown;
3
+ }
4
+ type EnvSource = Record<string, string | undefined>;
5
+ export declare function shouldLoadRemoteCodingRunnerForBoot(runtime: RuntimeSettingSource, env?: EnvSource): boolean;
6
+ export {};
7
+ //# sourceMappingURL=remote-coding-runner-gate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote-coding-runner-gate.d.ts","sourceRoot":"","sources":["../../src/runtime/remote-coding-runner-gate.ts"],"names":[],"mappings":"AAAA,UAAU,oBAAoB;IAC5B,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAClC;AAED,KAAK,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAoCpD,wBAAgB,mCAAmC,CACjD,OAAO,EAAE,oBAAoB,EAC7B,GAAG,GAAE,SAAuB,GAC3B,OAAO,CAQT"}
@@ -0,0 +1,36 @@
1
+ const RUNNER_SETTING_KEYS = [
2
+ "ELIZA_CODING_REMOTE_RUNNER",
3
+ "ELIZA_REMOTE_RUNNER",
4
+ ];
5
+ const REMOTE_RUNNER_URL_KEYS = [
6
+ "ELIZA_CLOUD_SANDBOX_BASE_URL",
7
+ "ELIZA_CLOUD_REMOTE_RUNNER_URL",
8
+ "ELIZA_CLOUD_RUNNER_URL",
9
+ "ELIZA_HOME_REMOTE_RUNNER_URL",
10
+ "ELIZA_HOME_RUNNER_URL",
11
+ ];
12
+ function readSetting(runtime, env, key) {
13
+ const fromRuntime = runtime.getSetting(key);
14
+ if (typeof fromRuntime === "string" && fromRuntime.trim().length > 0) {
15
+ return fromRuntime.trim();
16
+ }
17
+ const fromEnv = env[key];
18
+ if (typeof fromEnv === "string" && fromEnv.trim().length > 0) {
19
+ return fromEnv.trim();
20
+ }
21
+ return undefined;
22
+ }
23
+ function truthySetting(value) {
24
+ if (!value)
25
+ return false;
26
+ return ["1", "true", "yes", "on"].includes(value.toLowerCase());
27
+ }
28
+ export function shouldLoadRemoteCodingRunnerForBoot(runtime, env = process.env) {
29
+ if (RUNNER_SETTING_KEYS.some((key) => readSetting(runtime, env, key))) {
30
+ return true;
31
+ }
32
+ if (truthySetting(readSetting(runtime, env, "ELIZA_E2B_REMOTE_RUNNER"))) {
33
+ return true;
34
+ }
35
+ return REMOTE_RUNNER_URL_KEYS.some((key) => readSetting(runtime, env, key));
36
+ }
@@ -14,10 +14,10 @@
14
14
  * }
15
15
  */
16
16
  import { type Plugin, roleAction } from "@elizaos/core";
17
- export { rolesProvider } from "./provider.ts";
18
- export type { ConnectorAdminWhitelist, RoleCheckResult, RoleGrantSource, RoleName, RolesConfig, RolesWorldMetadata, } from "./types.ts";
19
- export { ROLE_RANK } from "./types.ts";
20
- export { canModifyRole, checkSenderPrivateAccess, checkSenderRole, getConfiguredOwnerEntityIds, getConnectorAdminWhitelist, getEntityRole, hasConfiguredCanonicalOwner, matchEntityToConnectorAdminWhitelist, normalizeRole, resolveCanonicalOwnerId, resolveCanonicalOwnerIdForMessage, resolveEntityRole, resolveWorldForMessage, setConnectorAdminWhitelist, setEntityRole, } from "./utils.ts";
17
+ export { rolesProvider } from "./provider.js";
18
+ export type { ConnectorAdminWhitelist, RoleCheckResult, RoleGrantSource, RoleName, RolesConfig, RolesWorldMetadata, } from "./types.js";
19
+ export { ROLE_RANK } from "./types.js";
20
+ export { canModifyRole, checkSenderPrivateAccess, checkSenderRole, getConfiguredOwnerEntityIds, getConnectorAdminWhitelist, getEntityRole, hasConfiguredCanonicalOwner, matchEntityToConnectorAdminWhitelist, normalizeRole, resolveCanonicalOwnerId, resolveCanonicalOwnerIdForMessage, resolveEntityRole, resolveWorldForMessage, setConnectorAdminWhitelist, setEntityRole, } from "./utils.js";
21
21
  export { roleAction };
22
22
  declare const rolesPlugin: Plugin;
23
23
  export default rolesPlugin;
@@ -1,3 +1,3 @@
1
- export * from "./roles/src/index.ts";
2
- export { default } from "./roles/src/index.ts";
1
+ export * from "./roles/src/index.js";
2
+ export { default } from "./roles/src/index.js";
3
3
  //# sourceMappingURL=roles.d.ts.map
@@ -14,7 +14,7 @@
14
14
  * config unchanged when the env var is absent or unparseable,
15
15
  * so it is inert for every non-provisioned runtime.
16
16
  */
17
- import type { ElizaConfig } from "../config/config.ts";
17
+ import type { ElizaConfig } from "../config/config.js";
18
18
  /**
19
19
  * Whether this container should own (connect directly to) its platform
20
20
  * connectors. Default false: the gateway owns the connection and forwards
@@ -14,7 +14,7 @@
14
14
  * forces this — a process-only cache could rely on the surrounding
15
15
  * trajectory filter, but a shared on-disk store cannot.
16
16
  */
17
- import type { CacheableToolDescriptor, PrivacyRedactor, ToolArgs, ToolCacheEntry, ToolOutput } from "./types.ts";
17
+ import type { CacheableToolDescriptor, PrivacyRedactor, ToolArgs, ToolCacheEntry, ToolOutput } from "./types.js";
18
18
  export interface ToolCallCacheOptions {
19
19
  /** Root directory for the on-disk tier. Defaults to `<stateDir>/tool-cache`. */
20
20
  diskRoot?: string;
@@ -9,7 +9,7 @@
9
9
  * already cross network or shell boundaries, so a small fs touch is in the
10
10
  * noise. Writes go through the privacy redactor before serialisation.
11
11
  */
12
- import type { PrivacyRedactor, ToolCacheEntry } from "./types.ts";
12
+ import type { PrivacyRedactor, ToolCacheEntry } from "./types.js";
13
13
  export declare class DiskStore {
14
14
  private readonly root;
15
15
  private readonly redact;
@@ -1,7 +1,7 @@
1
- export type { ToolCallCacheOptions } from "./cache.ts";
2
- export { ToolCallCache } from "./cache.ts";
3
- export { buildCacheKey, canonicalizeJson } from "./key.ts";
4
- export { defaultPrivacyRedactor } from "./redact.ts";
5
- export { CACHEABLE_TOOL_REGISTRY, isCacheable, resolveToolDescriptor, } from "./registry.ts";
6
- export type { CacheableToolDescriptor, PrivacyRedactor, ToolArgs, ToolCacheEntry, ToolOutput, } from "./types.ts";
1
+ export type { ToolCallCacheOptions } from "./cache.js";
2
+ export { ToolCallCache } from "./cache.js";
3
+ export { buildCacheKey, canonicalizeJson } from "./key.js";
4
+ export { defaultPrivacyRedactor } from "./redact.js";
5
+ export { CACHEABLE_TOOL_REGISTRY, isCacheable, resolveToolDescriptor, } from "./registry.js";
6
+ export type { CacheableToolDescriptor, PrivacyRedactor, ToolArgs, ToolCacheEntry, ToolOutput, } from "./types.js";
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -5,7 +5,7 @@
5
5
  * argument shapes (e.g. `{a:1,b:2}` and `{b:2,a:1}`) collide on the same
6
6
  * key. The final key is `sha256(toolName + ':' + canonicalJson)`.
7
7
  */
8
- import type { ToolArgs } from "./types.ts";
8
+ import type { ToolArgs } from "./types.js";
9
9
  export declare function canonicalizeJson(value: unknown): string;
10
10
  export declare function buildCacheKey(toolName: string, args: ToolArgs): string;
11
11
  //# sourceMappingURL=key.d.ts.map
@@ -12,6 +12,6 @@
12
12
  * - environment-variable values whose key name looks like a secret
13
13
  * - geographic coordinates (matching the Location-plugin patterns)
14
14
  */
15
- import type { PrivacyRedactor } from "./types.ts";
15
+ import type { PrivacyRedactor } from "./types.js";
16
16
  export declare const defaultPrivacyRedactor: PrivacyRedactor;
17
17
  //# sourceMappingURL=redact.d.ts.map
@@ -11,7 +11,7 @@
11
11
  * against a working tree) get short TTLs; tools whose results are stable
12
12
  * across days (search results, immutable web archives) get longer ones.
13
13
  */
14
- import type { CacheableToolDescriptor } from "./types.ts";
14
+ import type { CacheableToolDescriptor } from "./types.js";
15
15
  export declare const CACHEABLE_TOOL_REGISTRY: Record<string, CacheableToolDescriptor>;
16
16
  export declare function resolveToolDescriptor(name: string, overrides?: Partial<Pick<CacheableToolDescriptor, "ttlMs" | "version">>): CacheableToolDescriptor;
17
17
  export declare function isCacheable(name: string): boolean;
@@ -4,16 +4,15 @@
4
4
  * Wraps the `handler` of every registered Action that the cache registry
5
5
  * marks as `cacheable: true` so the result of a (toolName, args) pair is
6
6
  * served from the two-tier `ToolCallCache` instead of re-running the
7
- * underlying tool. Side-effect tools and any tool not listed in
8
- * `CACHEABLE_TOOL_REGISTRY` pass through unchanged.
7
+ * underlying tool. Side-effect tools and any tool not in the cacheable-tool
8
+ * registry pass through unchanged.
9
9
  *
10
- * Hooked into the runtime via `wrapActionsWithCache(actions, cache)` which
11
- * the eliza loader calls after collecting plugin actions and before handing
12
- * them to `AgentRuntime`. Per-tool TTL overrides come from the `tools.cache`
13
- * config block (see `zod-schema.agent-runtime.ts`).
10
+ * `plugin-lifecycle.ts` calls `wrapActionWithCache(action, cache, cfg)` per
11
+ * action after building the cache from config. Per-tool TTL overrides come
12
+ * from the `tools.cache` config block (see `zod-schema.agent-runtime.ts`).
14
13
  */
15
14
  import type { Action } from "@elizaos/core";
16
- import { CACHEABLE_TOOL_REGISTRY, ToolCallCache } from "./tool-call-cache/index.ts";
15
+ import { ToolCallCache } from "./tool-call-cache/index.js";
17
16
  interface PerToolOverride {
18
17
  ttlMinutes?: number;
19
18
  version?: string;
@@ -34,6 +33,5 @@ export declare function createToolCallCacheFromConfig(cfg: ToolCacheConfig | und
34
33
  * Non-cacheable actions are returned unchanged.
35
34
  */
36
35
  export declare function wrapActionWithCache(action: Action, cache: ToolCallCache, cfg: ToolCacheConfig | undefined): Action;
37
- export declare function wrapActionsWithCache(actions: Action[], cache: ToolCallCache, cfg: ToolCacheConfig | undefined): Action[];
38
- export { CACHEABLE_TOOL_REGISTRY };
36
+ export {};
39
37
  //# sourceMappingURL=tool-call-cache-wrapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tool-call-cache-wrapper.d.ts","sourceRoot":"","sources":["../../src/runtime/tool-call-cache-wrapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OA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CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CAC3C;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAC3C,GAAG,EAAE,eAAe,GAAG,SAAS,GAC/B,aAAa,GAAG,IAAI,CAOtB;AAyBD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,aAAa,EACpB,GAAG,EAAE,eAAe,GAAG,SAAS,GAC/B,MAAM,CAwBR"}
@@ -4,15 +4,14 @@
4
4
  * Wraps the `handler` of every registered Action that the cache registry
5
5
  * marks as `cacheable: true` so the result of a (toolName, args) pair is
6
6
  * served from the two-tier `ToolCallCache` instead of re-running the
7
- * underlying tool. Side-effect tools and any tool not listed in
8
- * `CACHEABLE_TOOL_REGISTRY` pass through unchanged.
7
+ * underlying tool. Side-effect tools and any tool not in the cacheable-tool
8
+ * registry pass through unchanged.
9
9
  *
10
- * Hooked into the runtime via `wrapActionsWithCache(actions, cache)` which
11
- * the eliza loader calls after collecting plugin actions and before handing
12
- * them to `AgentRuntime`. Per-tool TTL overrides come from the `tools.cache`
13
- * config block (see `zod-schema.agent-runtime.ts`).
10
+ * `plugin-lifecycle.ts` calls `wrapActionWithCache(action, cache, cfg)` per
11
+ * action after building the cache from config. Per-tool TTL overrides come
12
+ * from the `tools.cache` config block (see `zod-schema.agent-runtime.ts`).
14
13
  */
15
- import { CACHEABLE_TOOL_REGISTRY, defaultPrivacyRedactor, isCacheable, resolveToolDescriptor, ToolCallCache, } from "./tool-call-cache/index.js";
14
+ import { defaultPrivacyRedactor, isCacheable, resolveToolDescriptor, ToolCallCache, } from "./tool-call-cache/index.js";
16
15
  /**
17
16
  * Build a ToolCallCache from agent runtime config. Returns null when the
18
17
  * cache is disabled so callers can skip the wrap-step entirely.
@@ -66,7 +65,3 @@ export function wrapActionWithCache(action, cache, cfg) {
66
65
  };
67
66
  return { ...action, handler: wrapped };
68
67
  }
69
- export function wrapActionsWithCache(actions, cache, cfg) {
70
- return actions.map((a) => wrapActionWithCache(a, cache, cfg));
71
- }
72
- export { CACHEABLE_TOOL_REGISTRY };
@@ -4,8 +4,8 @@
4
4
  * Re-exports archive helpers and hosts the shared canonical list/detail/export
5
5
  * shaping used by the agent runtime trajectory logger implementations.
6
6
  */
7
- import type { Trajectory, TrajectoryExportOptions, TrajectoryExportResult, TrajectoryListItem } from "../types/trajectory.ts";
8
- import { type PersistedTrajectory } from "./trajectory-internals.ts";
7
+ import type { Trajectory, TrajectoryExportOptions, TrajectoryExportResult, TrajectoryListItem } from "../types/trajectory.js";
8
+ import { type PersistedTrajectory } from "./trajectory-internals.js";
9
9
  export type RuntimeTrajectoryExportOptions = TrajectoryExportOptions;
10
10
  export declare function trajectoryRowToListItem(row: unknown, agentId: string): TrajectoryListItem | null;
11
11
  export declare function persistedTrajectoryToDetailRecord(persisted: PersistedTrajectory, agentId: string): Trajectory;
@@ -14,5 +14,5 @@ export declare function exportPersistedTrajectories(params: {
14
14
  persistedTrajectories: PersistedTrajectory[];
15
15
  options: RuntimeTrajectoryExportOptions;
16
16
  }): TrajectoryExportResult;
17
- export { ensureArchiveDirectory, resolvePreferredTrajectoryArchiveRoot, resolveTrajectoryArchiveDirectory, stringifyArchiveRow, TRAJECTORY_ARCHIVE_DIRNAME, toArchiveSafeTimestamp, writeCompressedJsonlRows, } from "./trajectory-internals.ts";
17
+ export { ensureArchiveDirectory, resolvePreferredTrajectoryArchiveRoot, resolveTrajectoryArchiveDirectory, stringifyArchiveRow, TRAJECTORY_ARCHIVE_DIRNAME, toArchiveSafeTimestamp, writeCompressedJsonlRows, } from "./trajectory-internals.js";
18
18
  //# sourceMappingURL=trajectory-export.d.ts.map
@@ -8,7 +8,7 @@
8
8
  import { type IAgentRuntime } from "@elizaos/core";
9
9
  import { asRecord } from "@elizaos/shared";
10
10
  export { asRecord };
11
- import { type TrajectoryLlmCall, type TrajectoryProviderAccess, type TrajectoryStatus, type TrajectoryStep, type TrajectoryStepKind } from "../types/trajectory.ts";
11
+ import { type TrajectoryLlmCall, type TrajectoryProviderAccess, type TrajectoryStatus, type TrajectoryStep, type TrajectoryStepKind } from "../types/trajectory.js";
12
12
  export type RuntimeDb = {
13
13
  execute: (query: {
14
14
  queryChunks: object[];
@@ -44,6 +44,7 @@ export type PersistedLlmCall = TrajectoryLlmCall & {
44
44
  response: string;
45
45
  temperature: number;
46
46
  maxTokens: number;
47
+ maxTokensOmitted?: boolean;
47
48
  purpose: string;
48
49
  actionType: string;
49
50
  latencyMs: number;
@@ -1 +1 @@
1
- {"version":3,"file":"trajectory-internals.d.ts","sourceRoot":"","sources":["../../src/runtime/trajectory-internals.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AASH,OAAO,EAGL,KAAK,aAAa,EAInB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACxB,MAAM,wBAAwB,CAAC;AAMhC,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,MAAM,EAAE,CAAA;KAAE,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CACjE,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,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22,9 @@
22
22
  * The legacy `TRAJECTORY_STEP_SCRIPT_MAX_CHARS=4096` cap remains
23
23
  * applied to the JSONB fallback.
24
24
  */
25
- export { computeBySource, extractInsightsFromResponse, extractRows, flushObservationBuffer, pushChatExchange, readOrchestratorTrajectoryContext, shouldEnableTrajectoryLoggingByDefault, shouldRunObservationExtraction, truncateField, truncateRecord, } from "./trajectory-internals.ts";
26
- export { loadPersistedTrajectoryRows } from "./trajectory-query.ts";
27
- export { DEFAULT_GET_STEPS_LIMIT, getSteps, loadAllStepsForTrajectory, MAX_GET_STEPS_LIMIT, type TrajectoryStepsPage, } from "./trajectory-steps-reader.ts";
28
- export { clearAllSteps, deleteStepsForTrajectories, replaceStepsForTrajectory, upsertStep, } from "./trajectory-steps-writer.ts";
29
- export { annotateTrajectoryStep, clearPersistedTrajectoryRows, completeTrajectoryStepInDatabase, createDatabaseTrajectoryLogger, DatabaseTrajectoryLogger, deletePersistedTrajectoryRows, flushTrajectoryWrites, installDatabaseTrajectoryLogger, pruneOldTrajectories, startTrajectoryStepInDatabase, } from "./trajectory-storage.ts";
25
+ export { computeBySource, extractInsightsFromResponse, extractRows, flushObservationBuffer, pushChatExchange, readOrchestratorTrajectoryContext, shouldEnableTrajectoryLoggingByDefault, shouldRunObservationExtraction, truncateField, truncateRecord, } from "./trajectory-internals.js";
26
+ export { loadPersistedTrajectoryRows } from "./trajectory-query.js";
27
+ export { DEFAULT_GET_STEPS_LIMIT, getSteps, loadAllStepsForTrajectory, MAX_GET_STEPS_LIMIT, type TrajectoryStepsPage, } from "./trajectory-steps-reader.js";
28
+ export { clearAllSteps, deleteStepsForTrajectories, replaceStepsForTrajectory, upsertStep, } from "./trajectory-steps-writer.js";
29
+ export { annotateTrajectoryStep, clearPersistedTrajectoryRows, completeTrajectoryStepInDatabase, createDatabaseTrajectoryLogger, DatabaseTrajectoryLogger, deletePersistedTrajectoryRows, flushTrajectoryWrites, installDatabaseTrajectoryLogger, pruneOldTrajectories, startTrajectoryStepInDatabase, } from "./trajectory-storage.js";
30
30
  //# sourceMappingURL=trajectory-persistence.d.ts.map
@@ -8,7 +8,7 @@
8
8
  * `trajectories.steps_json`. Scripts are no longer capped at 4096 chars.
9
9
  */
10
10
  import type { IAgentRuntime } from "@elizaos/core";
11
- import type { PersistedStep } from "./trajectory-internals.ts";
11
+ import type { PersistedStep } from "./trajectory-internals.js";
12
12
  export interface TrajectoryStepsPage {
13
13
  steps: PersistedStep[];
14
14
  total: number;
@@ -10,7 +10,7 @@
10
10
  * to inline JSON storage).
11
11
  */
12
12
  import type { IAgentRuntime } from "@elizaos/core";
13
- import { type PersistedStep } from "./trajectory-internals.ts";
13
+ import { type PersistedStep } from "./trajectory-internals.js";
14
14
  /**
15
15
  * Upsert a single step row. Idempotent on `id` (== step.stepId).
16
16
  */
@@ -5,10 +5,10 @@
5
5
  * logger, and the DatabaseTrajectoryLogger service class.
6
6
  */
7
7
  import { type IAgentRuntime, Service } from "@elizaos/core";
8
- import type { Trajectory, TrajectoryExportResult, TrajectoryListOptions, TrajectoryListResult, TrajectorySkillInvocation, TrajectoryStatus, TrajectoryStepKind } from "../types/trajectory.ts";
9
- import { type RuntimeTrajectoryExportOptions } from "./trajectory-export.ts";
10
- import { type CompleteStepOptions, type StartStepOptions } from "./trajectory-internals.ts";
11
- export type { CompleteStepOptions, StartStepOptions, } from "./trajectory-internals.ts";
8
+ import type { Trajectory, TrajectoryExportResult, TrajectoryListOptions, TrajectoryListResult, TrajectorySkillInvocation, TrajectoryStatus, TrajectoryStepKind } from "../types/trajectory.js";
9
+ import { type RuntimeTrajectoryExportOptions } from "./trajectory-export.js";
10
+ import { type CompleteStepOptions, type StartStepOptions } from "./trajectory-internals.js";
11
+ export type { CompleteStepOptions, StartStepOptions, } from "./trajectory-internals.js";
12
12
  export declare function installDatabaseTrajectoryLogger(runtime: IAgentRuntime): Promise<void>;
13
13
  export declare function startTrajectoryStepInDatabase({ runtime, stepId, source, metadata, }: StartStepOptions): Promise<boolean>;
14
14
  /**
@@ -41,7 +41,20 @@ export interface ActiveViewContext {
41
41
  * so the awareness block degrades gracefully to "use list-elements".
42
42
  */
43
43
  elements?: readonly ActiveViewElement[];
44
+ /**
45
+ * ISO timestamp of the most recent switch INTO this view, and who drove it.
46
+ * Carried from the navigate route so Stage-1 can acknowledge a just-happened
47
+ * switch (#8788). Absent when the view was not freshly switched.
48
+ */
49
+ switchedAt?: string;
50
+ source?: "agent" | "user";
44
51
  }
52
+ /**
53
+ * A view switch is "fresh" (worth acknowledging on the immediately-following
54
+ * turn) for this window. Kept in lockstep with VIEW_SWITCH_FRESH_MS in
55
+ * `views-routes.ts`.
56
+ */
57
+ export declare const ACTIVE_VIEW_SWITCH_FRESH_MS = 15000;
45
58
  export declare function setActiveViewContext(view: ActiveViewContext | null): void;
46
59
  export declare function getActiveViewContext(): ActiveViewContext | null;
47
60
  export declare function clearActiveViewContext(): void;
@@ -83,13 +96,13 @@ export declare function setActiveViewElements(viewId: string, elements: readonly
83
96
  * element-controllable) when that view is the foreground surface. Names
84
97
  * confirmed registered in each plugin's actions/ source; plugin-conditional like
85
98
  * the rest (a missing-plugin skip when not loaded). Sources:
86
- * calendar — plugins/plugin-calendar/src/actions (CALENDAR, CONFLICT_DETECT)
87
- * health — plugins/plugin-health/src/actions (OWNER_HEALTH, OWNER_SCREENTIME)
88
- * focus — plugins/plugin-blocker/src/actions/block.ts (BLOCK umbrella;
99
+ * calendar — PA-registered calendar actions backed by plugin-calendar
100
+ * health — PA-registered actions built from plugin-health factories
101
+ * focus — PA-registered BLOCK umbrella backed by plugin-blocker;
89
102
  * list_active / release are subactions of it, not standalone actions)
90
- * finances — plugins/plugin-finances/src/actions/finances (OWNER_FINANCES)
103
+ * finances — PA-registered OWNER_FINANCES backed by plugin-finances
91
104
  * inbox — plugins/plugin-inbox/src/actions/inbox (literal name: "INBOX")
92
- * goals — plugins/plugin-goals/src/actions (OWNER_GOALS, OWNER_ALARMS, OWNER_REMINDERS, OWNER_ROUTINES)
105
+ * goals — plugin-goals owns OWNER_GOALS; PA owns routines/reminders/alarms
93
106
  * todos — plugins/plugin-personal-assistant/src/actions/owner-surfaces (OWNER_TODOS)
94
107
  * lifeops — plugins/plugin-personal-assistant/src/actions (PERSONAL_ASSISTANT)
95
108
  * relationships — plugins/plugin-relationships/src/actions/entity.ts
@@ -111,16 +124,6 @@ export declare function viewScopedActionNames(viewId: string | null | undefined)
111
124
  export declare function validateViewActionMap(registeredActions: string[], logger?: {
112
125
  warn: (msg: string) => void;
113
126
  }): void;
114
- /**
115
- * Registered view ids that have NO domain-action affinity entry in
116
- * VIEW_ACTION_MAP. These views are still fully agent-controllable through the
117
- * universal agent-surface (`useAgentElement` click/fill/etc.), but their domain
118
- * actions are not upweighted in the planner prompt when the view is foreground —
119
- * so a `documents`/`messages`/`phone` view's domain action competes with every
120
- * other action instead of being kept at full param detail. Pure; the caller
121
- * supplies the live registry view ids. (#8798)
122
- */
123
- export declare function findViewsWithoutActionAffinity(registeredViewIds: Iterable<string>): string[];
124
127
  /**
125
128
  * Completeness sibling of {@link validateViewActionMap}: where that flags a
126
129
  * mapped action name that no longer exists, this flags a *registered view* that
@@ -1 +1 @@
1
- {"version":3,"file":"view-action-affinity.d.ts","sourceRoot":"","sources":["../../src/runtime/view-action-affinity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,gFAAgF;AAChF,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAEjD,sEAAsE;AACtE,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,KAAK,GAAG,KAAK,G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YV;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CA2C5E;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,GACzC,MAAM,CAQR"}
1
+ {"version":3,"file":"view-action-affinity.d.ts","sourceRoot":"","sources":["../../src/runtime/view-action-affinity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,gFAAgF;AAChF,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAEjD,sEAAsE;AACtE,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC;IAC/B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACxC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,QAAS,CAAC;AAWlD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,GAAG,IAAI,CAEzE;AAED,wBAAgB,oBAAoB,IAAI,iBAAiB,GAAG,IAAI,CAE/D;AAED,wBAAgB,sBAAsB,IAAI,IAAI,CAE7C;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,SAAS,iBAAiB,EAAE,GACrC,OAAO,CAIT;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAgD7D,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAChC,GAAG,CAAC,MAAM,CAAC,CAGb;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,iBAAiB,EAAE,MAAM,EAAE,EAC3B,MAAM,CAAC,EAAE;IAAE,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,GACvC,IAAI,CAWN;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,EACnC,qBAAqB,EAAE,QAAQ,CAAC,MAAM,CAAC,EACvC,MAAM,CAAC,EAAE;IAAE,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,GACvC,MAAM,EAAE,CAYV;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAoD5E;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,GACzC,MAAM,CAQR"}
@@ -16,6 +16,20 @@
16
16
  */
17
17
  /** Cap on elements rendered into the awareness block to bound prompt growth. */
18
18
  export const ACTIVE_VIEW_ELEMENT_RENDER_CAP = 40;
19
+ /**
20
+ * A view switch is "fresh" (worth acknowledging on the immediately-following
21
+ * turn) for this window. Kept in lockstep with VIEW_SWITCH_FRESH_MS in
22
+ * `views-routes.ts`.
23
+ */
24
+ export const ACTIVE_VIEW_SWITCH_FRESH_MS = 15_000;
25
+ function isActiveViewSwitchFresh(view) {
26
+ if (!view.switchedAt)
27
+ return false;
28
+ const at = Date.parse(view.switchedAt);
29
+ if (Number.isNaN(at))
30
+ return false;
31
+ return Date.now() - at <= ACTIVE_VIEW_SWITCH_FRESH_MS;
32
+ }
19
33
  let activeView = null;
20
34
  export function setActiveViewContext(view) {
21
35
  activeView = view;
@@ -69,13 +83,13 @@ export function setActiveViewElements(viewId, elements) {
69
83
  * element-controllable) when that view is the foreground surface. Names
70
84
  * confirmed registered in each plugin's actions/ source; plugin-conditional like
71
85
  * the rest (a missing-plugin skip when not loaded). Sources:
72
- * calendar — plugins/plugin-calendar/src/actions (CALENDAR, CONFLICT_DETECT)
73
- * health — plugins/plugin-health/src/actions (OWNER_HEALTH, OWNER_SCREENTIME)
74
- * focus — plugins/plugin-blocker/src/actions/block.ts (BLOCK umbrella;
86
+ * calendar — PA-registered calendar actions backed by plugin-calendar
87
+ * health — PA-registered actions built from plugin-health factories
88
+ * focus — PA-registered BLOCK umbrella backed by plugin-blocker;
75
89
  * list_active / release are subactions of it, not standalone actions)
76
- * finances — plugins/plugin-finances/src/actions/finances (OWNER_FINANCES)
90
+ * finances — PA-registered OWNER_FINANCES backed by plugin-finances
77
91
  * inbox — plugins/plugin-inbox/src/actions/inbox (literal name: "INBOX")
78
- * goals — plugins/plugin-goals/src/actions (OWNER_GOALS, OWNER_ALARMS, OWNER_REMINDERS, OWNER_ROUTINES)
92
+ * goals — plugin-goals owns OWNER_GOALS; PA owns routines/reminders/alarms
79
93
  * todos — plugins/plugin-personal-assistant/src/actions/owner-surfaces (OWNER_TODOS)
80
94
  * lifeops — plugins/plugin-personal-assistant/src/actions (PERSONAL_ASSISTANT)
81
95
  * relationships — plugins/plugin-relationships/src/actions/entity.ts
@@ -125,7 +139,7 @@ export const VIEW_ACTION_MAP = {
125
139
  todos: ["OWNER_TODOS"],
126
140
  lifeops: ["PERSONAL_ASSISTANT"],
127
141
  relationships: ["ENTITY"],
128
- // documents — plugins/plugin-documents/src/actions/owner-documents.ts
142
+ // documents — PA-registered OWNER_DOCUMENTS backed by plugin-documents routes
129
143
  // (umbrella action "OWNER_DOCUMENTS"; DocumentsView reads/uploads via the
130
144
  // docs-and-portals domain). Added so a contextual "pull up my documents"
131
145
  // switch upweights the domain action while the view is foreground (#8798).
@@ -156,24 +170,6 @@ export function validateViewActionMap(registeredActions, logger) {
156
170
  }
157
171
  }
158
172
  }
159
- /**
160
- * Registered view ids that have NO domain-action affinity entry in
161
- * VIEW_ACTION_MAP. These views are still fully agent-controllable through the
162
- * universal agent-surface (`useAgentElement` click/fill/etc.), but their domain
163
- * actions are not upweighted in the planner prompt when the view is foreground —
164
- * so a `documents`/`messages`/`phone` view's domain action competes with every
165
- * other action instead of being kept at full param detail. Pure; the caller
166
- * supplies the live registry view ids. (#8798)
167
- */
168
- export function findViewsWithoutActionAffinity(registeredViewIds) {
169
- const mapped = new Set(Object.keys(VIEW_ACTION_MAP));
170
- const missing = [];
171
- for (const viewId of registeredViewIds) {
172
- if (!mapped.has(viewId))
173
- missing.push(viewId);
174
- }
175
- return missing;
176
- }
177
173
  /**
178
174
  * Completeness sibling of {@link validateViewActionMap}: where that flags a
179
175
  * mapped action name that no longer exists, this flags a *registered view* that
@@ -208,12 +204,13 @@ export function renderActiveViewContextBlock(view) {
208
204
  const lines = [
209
205
  "# Active View",
210
206
  `The user is looking at the "${view.viewLabel}" view (id: ${view.viewId}, ${view.viewType}${view.viewPath ? `, path ${view.viewPath}` : ""}).`,
211
- "You can inspect and drive everything in it through the view-interact capabilities:",
212
- "- list-elements — enumerate addressable controls/data (id, role, label, value, focus).",
213
- "- get-agent-state — read the whole view snapshot, including the focused element.",
214
- "- agent-click {id} / agent-fill {id,value} / agent-focus {id} / agent-scroll-to {id} — act on an element by its id.",
215
- "Prefer acting directly on the view over describing what the user should click.",
216
207
  ];
208
+ // Turn-scoped acknowledgement of a just-happened switch (#8788): only on the
209
+ // immediately-following turn (freshness decays after 15s), so it never lingers.
210
+ if (isActiveViewSwitchFresh(view)) {
211
+ lines.push(`The user just switched into this view${view.source === "agent" ? " (you navigated here)" : ""} — briefly acknowledge the switch in your reply before doing anything else.`);
212
+ }
213
+ lines.push("You can inspect and drive everything in it through the view-interact capabilities:", "- list-elements — enumerate addressable controls/data (id, role, label, value, focus).", "- get-agent-state — read the whole view snapshot, including the focused element.", "- agent-click {id} / agent-fill {id,value} / agent-focus {id} / agent-scroll-to {id} — act on an element by its id.", "Prefer acting directly on the view over describing what the user should click.");
217
214
  if (scoped.length > 0) {
218
215
  lines.push(`Actions most relevant while on this view (prefer these when the request fits): ${scoped.join(", ")}.`);
219
216
  }
@@ -18,8 +18,11 @@
18
18
  * OpenAI, which is what makes the `openai.responses` branch fire.
19
19
  *
20
20
  * Controlled by:
21
- * ELIZA_WEB_SEARCH=0|false|off — disable (default: enabled)
21
+ * ELIZA_WEB_SEARCH=0|false|off — disable every web-search surface
22
+ * ELIZA_SERVER_WEB_SEARCH=1|true|on — enable provider-native injection
22
23
  */
24
+ export declare function isServerSideWebSearchEnabled(): boolean;
25
+ export declare function __shouldSkipServerSideWebSearchForTests(params: Record<string, unknown>): boolean;
23
26
  /**
24
27
  * Enable server-side web search across all supported providers.
25
28
  *
@@ -1 +1 @@
1
- {"version":3,"file":"web-search-tools.d.ts","sourceRoot":"","sources":["../../src/runtime/web-search-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAkLH;;;;;;GAMG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAMjD"}
1
+ {"version":3,"file":"web-search-tools.d.ts","sourceRoot":"","sources":["../../src/runtime/web-search-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAmBH,wBAAgB,4BAA4B,IAAI,OAAO,CAGtD;AAiGD,wBAAgB,uCAAuC,CACrD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,OAAO,CAET;AAsFD;;;;;;GAMG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAQjD"}