@xopcai/xopc 0.0.428 → 0.0.430

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 (396) hide show
  1. package/dist/browser-ext/manifest.json +1 -1
  2. package/dist/extensions/feishu/src/adapters/cli-login.js +3 -3
  3. package/dist/extensions/feishu/src/outbound/media-load.js +1 -1
  4. package/dist/extensions/telegram/src/inbound-processor.js +2 -2
  5. package/dist/extensions/telegram/src/outbound-sender.js +1 -1
  6. package/dist/extensions/telegram/src/plugin.js +2 -2
  7. package/dist/extensions/telegram/xopc.extension.json +1 -1
  8. package/dist/extensions/weixin/src/api/api.js +2 -2
  9. package/dist/extensions/weixin/src/auth/accounts.js +12 -12
  10. package/dist/extensions/weixin/src/messaging/debug-mode.js +5 -5
  11. package/dist/extensions/weixin/src/messaging/inbound.js +11 -11
  12. package/dist/gateway/static/root/assets/{agents-yTsbcxRi.js → agents-Ds7K3D7T.js} +1 -1
  13. package/dist/gateway/static/root/assets/{automation-task-card-w6cKxfaP.js → automation-task-card-DIjI_Y1X.js} +1 -1
  14. package/dist/gateway/static/root/assets/{automations-page-D4LyOLzY.js → automations-page-BQwSCkmd.js} +1 -1
  15. package/dist/gateway/static/root/assets/{automations-workspace-BGyvZZj5.js → automations-workspace-BUFTTjBq.js} +2 -2
  16. package/dist/gateway/static/root/assets/{capabilities-page-DHJLl4RD.js → capabilities-page-B8UgQ4dD.js} +2 -2
  17. package/dist/gateway/static/root/assets/{capabilities-settings-panel-FJ3Vo7Wa.js → capabilities-settings-panel-Bxn8HtEO.js} +2 -2
  18. package/dist/gateway/static/root/assets/{chat-page--dKUIg5W.js → chat-page-e-xCsrdS.js} +1 -1
  19. package/dist/gateway/static/root/assets/{computer-settings-page-Bm70SIjD.js → computer-settings-page-BIHbjBVt.js} +1 -1
  20. package/dist/gateway/static/root/assets/{image-generation-api-BbEnKsK1.js → image-generation-api-CdwYgzhU.js} +1 -1
  21. package/dist/gateway/static/root/assets/{index-ClPeYgQk.js → index-C5BhE5cA.js} +5 -5
  22. package/dist/gateway/static/root/assets/model-selector-YsCHu1Gn.js +1 -0
  23. package/dist/gateway/static/root/assets/{personal-page-CiKdXLeR.js → personal-page-Cvd-v9kT.js} +1 -1
  24. package/dist/gateway/static/root/assets/{phone-model-connection-ucX3Tvl8.js → phone-model-connection-BieYnAJ5.js} +1 -1
  25. package/dist/gateway/static/root/assets/phone-model-picker-Bkex4Sre.js +1 -0
  26. package/dist/gateway/static/root/assets/{phone-settings-page-BSdB2pnW.js → phone-settings-page-D8PuvEuJ.js} +1 -1
  27. package/dist/gateway/static/root/assets/{product-preview-content-CNaJb6Bj.js → product-preview-content-VcvxaO2S.js} +1 -1
  28. package/dist/gateway/static/root/assets/{product-preview-modal-DgwrrpqJ.js → product-preview-modal-Ym6bomTW.js} +2 -2
  29. package/dist/gateway/static/root/assets/{project-detail-page-FReFYUv0.js → project-detail-page-CFbXWvcd.js} +1 -1
  30. package/dist/gateway/static/root/assets/{route-preload-DS4fVFbc.js → route-preload-C-VRKwB1.js} +2 -2
  31. package/dist/gateway/static/root/assets/{sessions-page-C8gwrFHR.js → sessions-page-C2CH-55n.js} +1 -1
  32. package/dist/gateway/static/root/assets/{settings-page-DCQnHCNN.js → settings-page-B6vrcc6f.js} +1 -1
  33. package/dist/gateway/static/root/assets/{setup-interaction-page-B9ACeAvO.js → setup-interaction-page-BDPte58u.js} +1 -1
  34. package/dist/gateway/static/root/assets/{task-detail-page-L5RIelv0.js → task-detail-page-CC3Rzqq9.js} +1 -1
  35. package/dist/gateway/static/root/index.html +6 -6
  36. package/dist/package.js +1 -1
  37. package/dist/src/agent/agent-manager.js +18 -18
  38. package/dist/src/agent/agent-scope.js +2 -2
  39. package/dist/src/agent/background-review/prompts.js +1 -1
  40. package/dist/src/agent/background-review/run-background-review.js +12 -12
  41. package/dist/src/agent/child-agent-factory.js +2 -2
  42. package/dist/src/agent/coding/run-verification.d.ts +1 -0
  43. package/dist/src/agent/coding/run-verification.js +1 -1
  44. package/dist/src/agent/context/coordinator.js +2 -2
  45. package/dist/src/agent/context/execution-context.js +4 -4
  46. package/dist/src/agent/context/project-context.js +3 -3
  47. package/dist/src/agent/data-acquisition/service.js +1 -1
  48. package/dist/src/agent/embedded/codemode-extension.js +1 -1
  49. package/dist/src/agent/embedded/execution-tool-policy.js +1 -1
  50. package/dist/src/agent/embedded/external-tool-discovery.js +1 -1
  51. package/dist/src/agent/embedded/run-for-session.js +6 -6
  52. package/dist/src/agent/embedded/run-turn.js +31 -23
  53. package/dist/src/agent/embedded/session-runner.js +4 -4
  54. package/dist/src/agent/embedded/session-tool-result-guard.js +1 -1
  55. package/dist/src/agent/embedded/xopc-tools-bridge.js +1 -1
  56. package/dist/src/agent/external-tools/cliProvider.js +4 -4
  57. package/dist/src/agent/external-tools/composio-provider.js +4 -4
  58. package/dist/src/agent/external-tools/endpoint-provider.js +6 -6
  59. package/dist/src/agent/external-tools/extension-provider.js +1 -1
  60. package/dist/src/agent/external-tools/gateway-tools.js +3 -3
  61. package/dist/src/agent/external-tools/memory-provider.js +1 -1
  62. package/dist/src/agent/image/generation/openai-images-provider.js +1 -1
  63. package/dist/src/agent/image/generation/runtime.js +1 -1
  64. package/dist/src/agent/image/index.js +1 -1
  65. package/dist/src/agent/inbound/attachment-pipeline.js +2 -2
  66. package/dist/src/agent/inbound/inbound-loop.js +2 -2
  67. package/dist/src/agent/independent-execution.js +2 -2
  68. package/dist/src/agent/index.js +3 -3
  69. package/dist/src/agent/mcp/connection-drafts.js +1 -1
  70. package/dist/src/agent/mcp/connection-setup.js +1 -1
  71. package/dist/src/agent/mcp/conversation-setup.js +1 -1
  72. package/dist/src/agent/mcp/discovery.js +2 -2
  73. package/dist/src/agent/mcp/transport.js +1 -1
  74. package/dist/src/agent/memory/index.js +1 -1
  75. package/dist/src/agent/orchestration/llm-turn-retry.js +1 -1
  76. package/dist/src/agent/prompt/response-language.js +1 -1
  77. package/dist/src/agent/prompt/service-prompt-builder.js +3 -3
  78. package/dist/src/agent/prompt/system-prompt-params.js +1 -1
  79. package/dist/src/agent/sandbox/exec-policy.js +1 -1
  80. package/dist/src/agent/service/direct-turn-helpers.js +15 -12
  81. package/dist/src/agent/service/process-direct-streaming.js +6 -6
  82. package/dist/src/agent/service/webchat-tts.js +2 -2
  83. package/dist/src/agent/service.js +22 -22
  84. package/dist/src/agent/session/session-config-service.js +2 -2
  85. package/dist/src/agent/session/session-hydrator.js +1 -1
  86. package/dist/src/agent/session/session-inspector.js +1 -1
  87. package/dist/src/agent/skills/filesystem-watcher.js +1 -1
  88. package/dist/src/agent/skills/hub-lock.js +1 -1
  89. package/dist/src/agent/skills/hub-pull.js +2 -2
  90. package/dist/src/agent/skills/index.js +1 -1
  91. package/dist/src/agent/skills/managed-store.js +1 -1
  92. package/dist/src/agent/skills/marketplace/adapters/store/adapter.js +1 -1
  93. package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.js +1 -1
  94. package/dist/src/agent/skills/skill-manage-ops.js +1 -1
  95. package/dist/src/agent/skills/skill-manager.js +1 -1
  96. package/dist/src/agent/skills/skill-sources.js +1 -1
  97. package/dist/src/agent/source-context/index.js +1 -1
  98. package/dist/src/agent/tasks/task-judge-service.js +8 -8
  99. package/dist/src/agent/tools/create-share-tool.js +2 -2
  100. package/dist/src/agent/tools/delegate-tool.js +3 -3
  101. package/dist/src/agent/tools/exec-command.js +1 -1
  102. package/dist/src/agent/tools/executor.js +1 -1
  103. package/dist/src/agent/tools/factory.js +19 -19
  104. package/dist/src/agent/tools/fetch-text.js +1 -1
  105. package/dist/src/agent/tools/image-generate-tool.js +2 -2
  106. package/dist/src/agent/tools/index.js +4 -4
  107. package/dist/src/agent/tools/list-dir.js +1 -1
  108. package/dist/src/agent/tools/personal-attention-tool.js +2 -2
  109. package/dist/src/agent/tools/personal-read-tool.js +1 -1
  110. package/dist/src/agent/tools/personal-request-result-tool.js +1 -1
  111. package/dist/src/agent/tools/personal-request-tool.js +4 -4
  112. package/dist/src/agent/tools/personal-result-tool.js +1 -1
  113. package/dist/src/agent/tools/personal-task-tool.js +5 -5
  114. package/dist/src/agent/tools/phone-use-tool.js +1 -1
  115. package/dist/src/agent/tools/publish-artifacts.js +1 -1
  116. package/dist/src/agent/tools/read.js +1 -1
  117. package/dist/src/agent/tools/review-workspace.js +1 -1
  118. package/dist/src/agent/tools/send-media.js +1 -1
  119. package/dist/src/agent/tools/skill-manage-tool.js +1 -1
  120. package/dist/src/agent/tools/task-collaboration-tool.js +2 -2
  121. package/dist/src/agent/tools/tts-tool.js +1 -1
  122. package/dist/src/agent/tools/user-context-tool.js +2 -2
  123. package/dist/src/agent/tools/web.js +1 -1
  124. package/dist/src/agent/tools/write.js +1 -1
  125. package/dist/src/agent/tools/xopc-use-tool.js +12 -12
  126. package/dist/src/agent/transcript/index.js +2 -2
  127. package/dist/src/agent/transcript/transcript-hygiene.js +2 -2
  128. package/dist/src/agent-catalog/capabilities.js +2 -2
  129. package/dist/src/agent-catalog/repository.js +1 -1
  130. package/dist/src/agent-matching/delegation-service.js +1 -1
  131. package/dist/src/ai-assist/text-assist.js +1 -1
  132. package/dist/src/auth/credentials.js +1 -1
  133. package/dist/src/auth/oauth/openai.js +1 -1
  134. package/dist/src/auth/oauth/xopc-cloud.js +1 -1
  135. package/dist/src/auth/profiles/store.js +1 -1
  136. package/dist/src/automations/api/routes.js +2 -2
  137. package/dist/src/automations/capabilities/drafts.js +1 -1
  138. package/dist/src/automations/capabilities/write.js +1 -1
  139. package/dist/src/automations/configuration-conversation.js +1 -1
  140. package/dist/src/automations/delivery/delivery-router.js +1 -1
  141. package/dist/src/automations/domain/index.js +1 -1
  142. package/dist/src/automations/draft/automation-draft-service.js +1 -1
  143. package/dist/src/automations/index.js +2 -2
  144. package/dist/src/automations/service/action-executor.js +2 -2
  145. package/dist/src/automations/service/automation-service.js +2 -2
  146. package/dist/src/browser/native-messaging-host.js +1 -1
  147. package/dist/src/browser/providers/browser-ext-install.js +2 -2
  148. package/dist/src/capabilities/runtime/dispatcher.js +1 -1
  149. package/dist/src/capabilities/runtime/product.js +1 -1
  150. package/dist/src/capabilities/store-connector.js +2 -2
  151. package/dist/src/channels/attachments/voice-stt-webchat.js +1 -1
  152. package/dist/src/channels/index.js +1 -1
  153. package/dist/src/channels/outbound-sender.js +1 -1
  154. package/dist/src/channels/pairing/allow-from-file.js +9 -9
  155. package/dist/src/channels/pairing/pairing-store.js +6 -6
  156. package/dist/src/chat-commands/agent-edit.js +1 -1
  157. package/dist/src/chat-commands/builtins/config.js +2 -2
  158. package/dist/src/chat-commands/builtins/session.js +1 -1
  159. package/dist/src/chat-commands/builtins/thinking.js +1 -1
  160. package/dist/src/chat-commands/builtins/tts.js +1 -1
  161. package/dist/src/chat-commands/context.js +1 -1
  162. package/dist/src/chat-commands/index.js +3 -3
  163. package/dist/src/cli/commands/agent.js +7 -7
  164. package/dist/src/cli/commands/agents.js +1 -1
  165. package/dist/src/cli/commands/config.js +1 -1
  166. package/dist/src/cli/commands/connectors.js +1 -1
  167. package/dist/src/cli/commands/doctor/checks/channel-plugins.js +1 -1
  168. package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
  169. package/dist/src/cli/commands/doctor/checks/gateway-health.js +1 -1
  170. package/dist/src/cli/commands/extension-agent-plugin.js +1 -1
  171. package/dist/src/cli/commands/extension-dev.js +1 -1
  172. package/dist/src/cli/commands/extension.js +2 -2
  173. package/dist/src/cli/commands/image.js +1 -1
  174. package/dist/src/cli/commands/init.js +1 -1
  175. package/dist/src/cli/commands/models.js +3 -3
  176. package/dist/src/cli/commands/onboard/channels/registry.js +1 -1
  177. package/dist/src/cli/commands/onboard/model.js +1 -1
  178. package/dist/src/cli/commands/onboard.js +1 -1
  179. package/dist/src/cli/commands/project.js +1 -1
  180. package/dist/src/cli/commands/skills.js +2 -2
  181. package/dist/src/cli/commands/tunnel.js +4 -4
  182. package/dist/src/cli/extension-cli-register.js +5 -5
  183. package/dist/src/cli/utils/gateway-client.js +1 -1
  184. package/dist/src/cli/utils/init-workspace-core.js +3 -3
  185. package/dist/src/cli/utils/session.js +1 -1
  186. package/dist/src/computer/flows.js +1 -1
  187. package/dist/src/computer/model-adapter.js +1 -1
  188. package/dist/src/computer/model-policy.js +1 -1
  189. package/dist/src/computer/runtime.js +4 -4
  190. package/dist/src/config/agent-profile.js +1 -1
  191. package/dist/src/config/index.js +3 -3
  192. package/dist/src/config/loader.js +1 -1
  193. package/dist/src/config/models-json.d.ts +6 -0
  194. package/dist/src/config/models-json.js +10 -5
  195. package/dist/src/connectors/cli/authorization.js +1 -1
  196. package/dist/src/connectors/composio-sessions.js +1 -1
  197. package/dist/src/connectors/composio.js +1 -1
  198. package/dist/src/connectors/connected-source-ingestion.js +2 -2
  199. package/dist/src/connectors/connected-source-understanding.js +5 -5
  200. package/dist/src/connectors/connection-recovery-service.js +4 -4
  201. package/dist/src/connectors/content-enrichment.js +1 -1
  202. package/dist/src/connectors/health.js +1 -1
  203. package/dist/src/connectors/instances.js +1 -1
  204. package/dist/src/connectors/runtime-adapter-registry.js +2 -2
  205. package/dist/src/discussions/live-worker.js +1 -1
  206. package/dist/src/discussions/sealer.js +1 -1
  207. package/dist/src/endpoint-tools/index.js +1 -1
  208. package/dist/src/endpoint-tools/runtime.js +2 -2
  209. package/dist/src/execution-environments/local-worktree-manager.js +1 -1
  210. package/dist/src/extensions/activation-context.js +3 -3
  211. package/dist/src/extensions/agent-plugins/auth.js +1 -1
  212. package/dist/src/extensions/agent-plugins/skill-catalog.js +3 -3
  213. package/dist/src/extensions/agent-plugins/source-http-fetch.js +1 -1
  214. package/dist/src/extensions/agent-plugins/validation.js +1 -1
  215. package/dist/src/extensions/api.js +3 -3
  216. package/dist/src/extensions/bundled-extension-activation.js +1 -1
  217. package/dist/src/extensions/index.js +3 -3
  218. package/dist/src/extensions/loader.js +2 -2
  219. package/dist/src/extensions/lockfile.js +1 -1
  220. package/dist/src/extensions/sdk/index.js +1 -1
  221. package/dist/src/extensions/sdk/media.js +1 -1
  222. package/dist/src/gateway/agents-admin.js +2 -2
  223. package/dist/src/gateway/device-routes.js +1 -1
  224. package/dist/src/gateway/file-path-classifier.js +1 -1
  225. package/dist/src/gateway/global-defaults-admin.js +1 -1
  226. package/dist/src/gateway/hono/app.js +2 -2
  227. package/dist/src/gateway/hono/lib/config-payload.js +2 -2
  228. package/dist/src/gateway/hono/oauth-async.js +1 -1
  229. package/dist/src/gateway/hono/routes/agent-plugins.js +1 -1
  230. package/dist/src/gateway/hono/routes/agents.js +1 -1
  231. package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
  232. package/dist/src/gateway/hono/routes/commands-skills.js +4 -4
  233. package/dist/src/gateway/hono/routes/config-patch/gateway.js +1 -1
  234. package/dist/src/gateway/hono/routes/config-patch/misc.js +1 -1
  235. package/dist/src/gateway/hono/routes/connectors.js +1 -1
  236. package/dist/src/gateway/hono/routes/context-sources.js +1 -1
  237. package/dist/src/gateway/hono/routes/endpoint-tools.js +1 -1
  238. package/dist/src/gateway/hono/routes/home.js +1 -1
  239. package/dist/src/gateway/hono/routes/location-sharing.js +1 -1
  240. package/dist/src/gateway/hono/routes/mcp.js +1 -1
  241. package/dist/src/gateway/hono/routes/memory-learning.js +3 -3
  242. package/dist/src/gateway/hono/routes/models.js +16 -9
  243. package/dist/src/gateway/hono/routes/notes.js +3 -3
  244. package/dist/src/gateway/hono/routes/phone-dependencies.js +1 -1
  245. package/dist/src/gateway/hono/routes/phone-setup.js +3 -2
  246. package/dist/src/gateway/hono/routes/phone.js +3 -2
  247. package/dist/src/gateway/hono/routes/projects.js +5 -5
  248. package/dist/src/gateway/hono/routes/runtime-tools.js +1 -1
  249. package/dist/src/gateway/hono/routes/session-command-handler.js +2 -2
  250. package/dist/src/gateway/hono/routes/session-input-handler.js +5 -5
  251. package/dist/src/gateway/hono/routes/sessions.js +3 -3
  252. package/dist/src/gateway/hono/routes/shares.js +1 -1
  253. package/dist/src/gateway/hono/routes/side-chats.js +1 -1
  254. package/dist/src/gateway/hono/routes/tasks.js +2 -2
  255. package/dist/src/gateway/hono/routes/user-model.js +7 -7
  256. package/dist/src/gateway/hono/routes/voice.js +7 -7
  257. package/dist/src/gateway/image-generation-setup.js +1 -1
  258. package/dist/src/gateway/lock.js +11 -11
  259. package/dist/src/gateway/media-access.js +1 -1
  260. package/dist/src/gateway/mobile-privacy.js +2 -2
  261. package/dist/src/gateway/ports.js +6 -6
  262. package/dist/src/gateway/provider-model-setup.js +1 -1
  263. package/dist/src/gateway/server.js +1 -1
  264. package/dist/src/gateway/service/agent-runner.js +2 -2
  265. package/dist/src/gateway/service/config-coordinator.js +2 -2
  266. package/dist/src/gateway/service/marketplace-service.js +2 -2
  267. package/dist/src/gateway/service/run-gateway-agent.js +6 -7
  268. package/dist/src/gateway/service/session-command-service.js +2 -2
  269. package/dist/src/gateway/service/session-input-coordinator.js +1 -1
  270. package/dist/src/gateway/service.js +47 -47
  271. package/dist/src/gateway/session-context-summary.js +4 -4
  272. package/dist/src/gateway/session-reset-service.js +1 -1
  273. package/dist/src/gateway/workspace-editor-path.js +2 -2
  274. package/dist/src/gateway/xopc-cloud-capability-setup.js +5 -2
  275. package/dist/src/home-intelligence/generator.js +2 -2
  276. package/dist/src/imports/importService.js +1 -1
  277. package/dist/src/imports/inventory.js +2 -2
  278. package/dist/src/imports/productImport.js +1 -1
  279. package/dist/src/imports/runtime.js +1 -1
  280. package/dist/src/infra/gateway-processes.js +2 -2
  281. package/dist/src/infra/path-env.js +3 -3
  282. package/dist/src/infra/update-global.js +9 -9
  283. package/dist/src/knowledge/connected-knowledge-pipeline.js +1 -1
  284. package/dist/src/knowledge/index.js +1 -1
  285. package/dist/src/knowledge-memory/repository.js +1 -1
  286. package/dist/src/knowledge-memory/usage-policy.js +1 -1
  287. package/dist/src/local-apps/service.js +3 -3
  288. package/dist/src/mcp/gateway-http-client.js +1 -1
  289. package/dist/src/media-understanding/openai-compatible-audio.js +1 -1
  290. package/dist/src/memory-learning/source-learning.js +5 -5
  291. package/dist/src/memory-learning/task-receipts.js +1 -1
  292. package/dist/src/notes/agent-context.js +4 -4
  293. package/dist/src/notes/index.js +1 -1
  294. package/dist/src/notes/service.js +3 -3
  295. package/dist/src/observability/runtime.d.ts +2 -0
  296. package/dist/src/observability/runtime.js +12 -1
  297. package/dist/src/personal-agent/capability-service.js +2 -2
  298. package/dist/src/personal-agent/proactivity/routes.js +1 -1
  299. package/dist/src/personal-agent/proactivity/service.js +7 -7
  300. package/dist/src/personal-agent/prompt-context.js +7 -7
  301. package/dist/src/personal-agent/prompts.js +2 -2
  302. package/dist/src/personal-agent/reply-composer.js +9 -9
  303. package/dist/src/personal-agent/request-delivery.js +2 -2
  304. package/dist/src/personal-agent/request-service.js +7 -7
  305. package/dist/src/personal-agent/result-reader.js +1 -1
  306. package/dist/src/personal-agent/service.js +2 -2
  307. package/dist/src/phone/contracts.d.ts +2 -0
  308. package/dist/src/phone/contracts.js +1 -0
  309. package/dist/src/phone/model-adapter.d.ts +1 -1
  310. package/dist/src/phone/model-adapter.js +30 -7
  311. package/dist/src/phone/model-policy.d.ts +4 -0
  312. package/dist/src/phone/model-policy.js +30 -0
  313. package/dist/src/phone/repository.js +1 -1
  314. package/dist/src/phone/runtime.js +4 -4
  315. package/dist/src/phone/structured-model.d.ts +6 -0
  316. package/dist/src/phone/structured-model.js +87 -0
  317. package/dist/src/projects/index.js +2 -2
  318. package/dist/src/projects/project-agent-suggestion.js +1 -1
  319. package/dist/src/projects/project-service.js +2 -2
  320. package/dist/src/projects/project-skill-service.js +2 -2
  321. package/dist/src/projects/workspace.js +1 -1
  322. package/dist/src/providers/model-catalog-types.d.ts +1 -1
  323. package/dist/src/providers/model-reference-auditor.js +3 -2
  324. package/dist/src/providers/presentation.js +5 -3
  325. package/dist/src/realtime/runtime.js +1 -1
  326. package/dist/src/remote-access/exposure-manager.js +1 -1
  327. package/dist/src/runtime-tools/archive.js +1 -1
  328. package/dist/src/runtime-tools/phone-dependencies.js +2 -2
  329. package/dist/src/session/index.js +2 -2
  330. package/dist/src/session/init-session-turn.js +1 -1
  331. package/dist/src/session/resolve-session.js +1 -1
  332. package/dist/src/session/store.js +5 -5
  333. package/dist/src/session/thinking-resolve.js +1 -1
  334. package/dist/src/share/hosted-session-share.js +2 -2
  335. package/dist/src/share/session-share-service.js +1 -1
  336. package/dist/src/share/share-store.js +1 -1
  337. package/dist/src/share/share-thumbnail.js +1 -1
  338. package/dist/src/share/site-proxy.js +1 -1
  339. package/dist/src/share/site-share-store.js +1 -1
  340. package/dist/src/storage/sqlite/connection.js +9 -9
  341. package/dist/src/storage/sqlite/schema.d.ts +2 -2
  342. package/dist/src/storage/sqlite/schema.js +7 -7
  343. package/dist/src/storage/sqlite/upgrades/261_session_input_task_origins.sql +6 -0
  344. package/dist/src/tasks/capabilities/read.js +2 -2
  345. package/dist/src/tasks/capabilities/write.js +2 -2
  346. package/dist/src/tasks/home-query-service.js +1 -1
  347. package/dist/src/tasks/index.js +5 -5
  348. package/dist/src/tasks/task-allocation-service.js +5 -5
  349. package/dist/src/tasks/task-application-service.js +5 -5
  350. package/dist/src/tasks/task-collaboration-delivery.js +1 -1
  351. package/dist/src/tasks/task-context-assembler.js +2 -2
  352. package/dist/src/tasks/task-contract-planner.js +2 -2
  353. package/dist/src/tasks/task-handoff-service.js +1 -1
  354. package/dist/src/tasks/task-handoff.js +4 -4
  355. package/dist/src/tasks/task-main-update-decision-service.js +3 -3
  356. package/dist/src/tasks/task-model-call.js +1 -1
  357. package/dist/src/tasks/task-research-result.js +4 -4
  358. package/dist/src/tasks/task-result-delivery-repository.js +1 -1
  359. package/dist/src/tasks/task-result-delivery-service.js +2 -2
  360. package/dist/src/tasks/task-run-coordinator.js +3 -3
  361. package/dist/src/tasks/task-run-dispatcher.js +1 -1
  362. package/dist/src/tui/backends/embedded-backend.js +12 -12
  363. package/dist/src/tui/backends/gateway-realtime-backend.js +2 -2
  364. package/dist/src/tui/extension-host/load-extensions.js +1 -1
  365. package/dist/src/tui/tui-commands.js +5 -5
  366. package/dist/src/tui/tui-picker-overlay.js +1 -1
  367. package/dist/src/tui/tui-skills-autocomplete.js +1 -1
  368. package/dist/src/tui/tui-startup-resources.js +3 -3
  369. package/dist/src/tui/tui.js +4 -4
  370. package/dist/src/tunnel/gateway-lifecycle.js +1 -1
  371. package/dist/src/user-context/access-policy.js +2 -2
  372. package/dist/src/user-model/bootstrap.js +1 -1
  373. package/dist/src/user-model/capture/executor.js +1 -1
  374. package/dist/src/user-model/index.js +2 -2
  375. package/dist/src/user-model/usage-policy.js +1 -1
  376. package/dist/src/voice/platform-catalog.d.ts +1 -1
  377. package/dist/src/voice/realtime/memory-context.js +5 -5
  378. package/dist/src/voice/realtime/omniRoute.js +1 -1
  379. package/dist/src/voice/realtime/persona-context.js +1 -1
  380. package/dist/src/voice/realtime/runtime.js +4 -4
  381. package/dist/src/voice/stt/index.js +2 -2
  382. package/dist/src/voice/stt/preflight.js +1 -1
  383. package/dist/src/voice/stt/providers/alibaba-transcription.js +1 -1
  384. package/dist/src/voice/stt/providers/bailian-plan-transcription.js +1 -1
  385. package/dist/src/voice/stt/providers/xopc-cloud-transcription.js +1 -1
  386. package/dist/src/voice/stt/transcribe-core.js +1 -1
  387. package/dist/src/voice/tts/index.js +3 -3
  388. package/dist/src/voice/tts/merge-config.js +1 -1
  389. package/dist/src/voice/tts/payload.js +1 -1
  390. package/dist/src/voice/tts/providers/bailian-plan-speech.js +1 -1
  391. package/dist/src/voice/tts/providers/xopc-cloud-speech.js +1 -1
  392. package/dist/src/voice/tts/speak-core.js +1 -1
  393. package/dist/src/work-discovery/service.js +7 -7
  394. package/package.json +1 -1
  395. package/dist/gateway/static/root/assets/model-selector-DJSVr3LM.js +0 -1
  396. package/dist/gateway/static/root/assets/phone-model-picker-CU37sziM.js +0 -1
@@ -2,16 +2,16 @@ import { createLogger } from "../utils/logger/index.js";
2
2
  import { init_logger } from "../utils/logger.js";
3
3
  import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
4
4
  import { claimContextExtractionRun, finishContextExtractionRun } from "../storage/sqlite/context-extraction-repository.js";
5
- import { init_config, resolveKnowledgeReadPolicy } from "../user-context/config.js";
6
- import { learningPolicyHash } from "./repository.js";
7
5
  import { getActiveUnderstandingConsent, getUnderstandingConsent } from "../user-context/sources/consent-repository.js";
8
- import { resolveModelSelector } from "../config/agent-model-intents.js";
6
+ import { init_config, resolveKnowledgeReadPolicy } from "../user-context/config.js";
9
7
  import { init_providers, resolveModel } from "../providers/index.js";
10
8
  import { completeWithResolvedCredentials } from "../providers/model-call.js";
11
- import { isLoopbackModel } from "../providers/local-model.js";
12
- import { ConnectedKnowledgePipeline } from "../knowledge/connected-knowledge-pipeline.js";
13
9
  import { getWorkspacePath } from "../config/workspace-path-helpers.js";
10
+ import { resolveModelSelector } from "../config/agent-model-intents.js";
11
+ import { ConnectedKnowledgePipeline } from "../knowledge/connected-knowledge-pipeline.js";
14
12
  import { extractionInputHash } from "../user-context/extraction/registry.js";
13
+ import { learningPolicyHash } from "./repository.js";
14
+ import { isLoopbackModel } from "../providers/local-model.js";
15
15
  import { WorkCandidateSchema } from "./work-candidate.js";
16
16
  import { applyWorkCandidates } from "./work-capture.js";
17
17
  import { randomUUID } from "node:crypto";
@@ -2,10 +2,10 @@ import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "
2
2
  import { createContextEvidence } from "../storage/sqlite/context-evidence-repository.js";
3
3
  import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
4
4
  import { init_session_repository } from "../storage/sqlite/session-repository.js";
5
- import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
6
5
  import { inferMemorySensitivity } from "../agent/memory/sensitivity.js";
7
6
  import { writeKnowledgeItem } from "../knowledge-memory/repository.js";
8
7
  import "../knowledge-memory/index.js";
8
+ import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
9
9
  import { createHash } from "node:crypto";
10
10
  //#region src/memory-learning/task-receipts.ts
11
11
  init_session_repository();
@@ -1,12 +1,12 @@
1
1
  import { getNoteAgentContextRecord, upsertNoteAgentContextRecord } from "../storage/sqlite/note-agent-context-repository.js";
2
2
  import "../storage/sqlite/index.js";
3
- import { extractDocumentText } from "../document-understanding/extract.js";
4
- import { resolveImageModelConfigForTool } from "../agent/image/tool-model-config.js";
5
- import { describeImagesWithFallback } from "../agent/image/understanding/runtime.js";
6
- import { transcribe } from "../voice/stt/transcribe-core.js";
7
3
  import { isSTTAvailable } from "../voice/stt/availability.js";
4
+ import { transcribe } from "../voice/stt/transcribe-core.js";
8
5
  import { mergeSttConfigFromAppConfig } from "../voice/stt/config.js";
9
6
  import "../voice/stt/index.js";
7
+ import { extractDocumentText } from "../document-understanding/extract.js";
8
+ import { resolveImageModelConfigForTool } from "../agent/image/tool-model-config.js";
9
+ import { describeImagesWithFallback } from "../agent/image/understanding/runtime.js";
10
10
  import { extname } from "node:path";
11
11
  import { readFile } from "node:fs/promises";
12
12
  //#region src/notes/agent-context.ts
@@ -1,5 +1,5 @@
1
- import { buildNoteAgentContext, buildNoteAgentContextArtifact, getCachedNoteAgentContextArtifact } from "./agent-context.js";
2
1
  import { resolveNoteMediaDir, resolveNotesDir } from "./paths.js";
3
2
  import { NotesStore } from "./store.js";
3
+ import { buildNoteAgentContext, buildNoteAgentContextArtifact, getCachedNoteAgentContextArtifact } from "./agent-context.js";
4
4
  import { NotesService } from "./service.js";
5
5
  export { NotesService, NotesStore, buildNoteAgentContext, buildNoteAgentContextArtifact, getCachedNoteAgentContextArtifact, resolveNoteMediaDir, resolveNotesDir };
@@ -6,13 +6,13 @@ import { buildNoteAttachmentRef } from "./attachment-ref.js";
6
6
  import { parseNoteMarkdown } from "./note-markdown.js";
7
7
  import { listNoteProjectSummaries } from "../storage/sqlite/notes-repository.js";
8
8
  import { changedFieldsFromPatch, emitActivity, previewText, systemActivityActor, systemActivitySource } from "../activity/emitter.js";
9
+ import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
10
+ import { revokeNoteShareRecords } from "../share/note-share-revocation.js";
11
+ import { NotesStore } from "./store.js";
9
12
  import { getDefaultModelSync, init_providers, resolveModel } from "../providers/index.js";
10
13
  import { completeWithResolvedCredentials } from "../providers/model-call.js";
11
14
  import { partitionAttachmentsByReference } from "./note-attachment-sync.js";
12
15
  import { buildNoteAgentContextArtifact, getCachedNoteAgentContextArtifact } from "./agent-context.js";
13
- import { revokeNoteShareRecords } from "../share/note-share-revocation.js";
14
- import { NotesStore } from "./store.js";
15
- import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
16
16
  import { createHash, randomUUID } from "node:crypto";
17
17
  //#region src/notes/service.ts
18
18
  init_providers();
@@ -55,3 +55,5 @@ export declare function testLangfuse(): Promise<boolean>;
55
55
  export declare function closeTracing(): Promise<void>;
56
56
  export declare function traceOperation<T>(name: string, fn: () => Promise<T>, attributes?: Attributes): Promise<T>;
57
57
  export declare function setTraceIdentity(identity: TraceIdentity): void;
58
+ /** Keep the first timing for each milestone on the run root, including fallback runs. */
59
+ export declare function recordTraceLatency(metrics: Record<string, number>): void;
@@ -400,5 +400,16 @@ function setTraceIdentity(identity) {
400
400
  };
401
401
  scope.root?.setAttributes(attrs(scope.identity, "agent"));
402
402
  }
403
+ /** Keep the first timing for each milestone on the run root, including fallback runs. */
404
+ function recordTraceLatency(metrics) {
405
+ const scope = scopes.getStore();
406
+ if (!scope?.root) return;
407
+ scope.metrics ??= /* @__PURE__ */ new Set();
408
+ for (const [name, value] of Object.entries(metrics)) {
409
+ if (!Number.isFinite(value) || value < 0 || scope.metrics.has(name)) continue;
410
+ scope.root.setAttribute(`xopc.latency.${name}`, value);
411
+ scope.metrics.add(name);
412
+ }
413
+ }
403
414
  //#endregion
404
- export { closeTracing, configureTracing, flushTracing, localStore, setTraceIdentity, startObservation, testLangfuse, traceIds, traceOperation, traceRun, traceTools, tracingConfig, tracingStatus };
415
+ export { closeTracing, configureTracing, flushTracing, localStore, recordTraceLatency, setTraceIdentity, startObservation, testLangfuse, traceIds, traceOperation, traceRun, traceTools, tracingConfig, tracingStatus };
@@ -1,10 +1,10 @@
1
1
  import { getConnectorInstallation, init_connector_repository, listConnectorConnections } from "../storage/sqlite/connector-repository.js";
2
2
  import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
3
- import { isPersonalConversation } from "./repository.js";
4
3
  import { canAccessConnectorAccount, currentAccountConnections } from "../connectors/account-access.js";
5
4
  import { connectorPrincipalForSession } from "../connectors/principal.js";
6
- import { connectionCandidates, resolveConnectionCandidate } from "../connectors/connection-candidates.js";
5
+ import { isPersonalConversation } from "./repository.js";
7
6
  import { assessSpecialist } from "../agent-matching/service.js";
7
+ import { connectionCandidates, resolveConnectionCandidate } from "../connectors/connection-candidates.js";
8
8
  //#region src/personal-agent/capability-service.ts
9
9
  init_repository();
10
10
  init_connector_repository();
@@ -1,7 +1,7 @@
1
1
  import { PersonalFeedbackSchema, PersonalProactivitySettingsSchema, PersonalStrategyRollbackSchema } from "../../../packages/gateway-contract/src/personal-proactivity.js";
2
2
  import { init_src } from "../../../packages/gateway-contract/src/index.js";
3
- import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
4
3
  import { getPersonalAgent } from "../repository.js";
4
+ import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
5
5
  import { getProactivitySettings, listInterestCandidates, patchAttention, patchProactivitySettings, provenanceDetail, recordFeedback, rollbackStrategy, strategyState } from "./repository.js";
6
6
  import { z } from "zod";
7
7
  //#region src/personal-agent/proactivity/routes.ts
@@ -6,16 +6,16 @@ import { init_src } from "../../../packages/gateway-contract/src/index.js";
6
6
  import { init_session_instance_repository, readCurrentTranscriptId } from "../../storage/sqlite/session-instance-repository.js";
7
7
  import { appendTranscriptEntry } from "../../storage/sqlite/transcript-repository.js";
8
8
  import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
9
- import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
10
- import { init_providers, resolveModel } from "../../providers/index.js";
11
- import { completeWithResolvedCredentials } from "../../providers/model-call.js";
12
- import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../../providers/model-response.js";
13
- import { getPersonalAgent } from "../repository.js";
14
9
  import { emitSessionTranscriptUpdate } from "../../session/transcript-events.js";
10
+ import { getPersonalAgent } from "../repository.js";
15
11
  import { DurableState } from "../../storage/sqlite/durable-state.js";
16
- import { enqueueDue, enqueueWakeup, getAttention, getAttentionSources, getProactivitySettings, isQuiet, listAttention, localDay, preparationStrategy, recordFeedback, reserveModelCall, saveAttention, sourceFingerprint, userText } from "./repository.js";
17
- import { PERSONAL_PERSONA_GUIDANCE } from "../persona.js";
12
+ import { init_providers, resolveModel } from "../../providers/index.js";
13
+ import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../../providers/model-response.js";
14
+ import { completeWithResolvedCredentials } from "../../providers/model-call.js";
18
15
  import { personalConversationState } from "../conversation-state.js";
16
+ import { PERSONAL_PERSONA_GUIDANCE } from "../persona.js";
17
+ import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
18
+ import { enqueueDue, enqueueWakeup, getAttention, getAttentionSources, getProactivitySettings, isQuiet, listAttention, localDay, preparationStrategy, recordFeedback, reserveModelCall, saveAttention, sourceFingerprint, userText } from "./repository.js";
19
19
  import { randomUUID } from "node:crypto";
20
20
  import { z } from "zod";
21
21
  //#region src/personal-agent/proactivity/service.ts
@@ -1,16 +1,16 @@
1
1
  import { isXopcDatabaseOpen } from "../storage/sqlite/connection.js";
2
2
  import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
3
3
  import "../storage/sqlite/index.js";
4
- import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
5
- import { isKnowledgeCurrent, knowledgeItemAllowed, listKnowledgeItems } from "../knowledge-memory/repository.js";
6
- import "../knowledge-memory/index.js";
7
4
  import { getActiveAssertionForSlot } from "../user-model/repository.js";
8
- import { getProjectForSession } from "../projects/workspace.js";
9
- import { canUseAssertion } from "../user-model/usage-policy.js";
10
- import "../user-model/index.js";
11
5
  import { isPersonalConversation } from "./repository.js";
12
- import { TaskOriginRepository } from "../tasks/task-origin-repository.js";
13
6
  import { listPersonalResults } from "./result-reader.js";
7
+ import { TaskOriginRepository } from "../tasks/task-origin-repository.js";
8
+ import { canUseAssertion } from "../user-model/usage-policy.js";
9
+ import "../user-model/index.js";
10
+ import { getProjectForSession } from "../projects/workspace.js";
11
+ import { isKnowledgeCurrent, knowledgeItemAllowed, listKnowledgeItems } from "../knowledge-memory/repository.js";
12
+ import "../knowledge-memory/index.js";
13
+ import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
14
14
  //#region src/personal-agent/prompt-context.ts
15
15
  const clip = (value, limit) => value && (value.length > limit ? `${value.slice(0, limit - 1)}…` : value);
16
16
  /** Keep complete JSON records and identifiers, even when the snapshot is incomplete. */
@@ -1,7 +1,7 @@
1
- import { PERSONAL_EMOTIONAL_STYLE_RULE, PERSONAL_IDENTITY_CONTINUITY_RULE } from "./persona.js";
2
- import { PERSONAL_COMMUNICATION_RULES, PERSONAL_RELIABILITY_RULES } from "./communication.js";
3
1
  import { PERSONAL_DEFAULT_STYLE_RULES } from "./default-style.js";
4
2
  import { PERSONAL_REPLY_EXAMPLES, PERSONAL_REPLY_STYLE_RULES } from "./reply-style.js";
3
+ import { PERSONAL_EMOTIONAL_STYLE_RULE, PERSONAL_IDENTITY_CONTINUITY_RULE } from "./persona.js";
4
+ import { PERSONAL_COMMUNICATION_RULES, PERSONAL_RELIABILITY_RULES } from "./communication.js";
5
5
  //#region src/personal-agent/prompts.ts
6
6
  const DELEGATION_RULES = [
7
7
  "Answer directly when your capabilities suffice. Otherwise call personal_task(command=\"submit\") with a short objective. For a self-contained current request send {command:\"submit\", objective:\"short outcome\", useOriginalRequest:true}; command is required. With this mode, the host copies its entire stored text, including exact constraints. Preserve sourceRefs and explicitly requested Agent/Skills. Use a concise complete description instead when earlier conversation must be synthesized. Submit before reading materials. The background Task Router selects and starts the executor. After the tool succeeds, reply only with a short confirmation such as \"Submitted; I will report the result here.\" in the conversation language, then finish. Do not restate any task details, files, requirements or acceptance criteria, and do not wait for the worker. Remain available for conversation.",
@@ -10,23 +10,23 @@ import { appendTranscriptEntry, loadLlmMessagesForSession } from "../storage/sql
10
10
  import { getSessionConfig } from "../storage/sqlite/config-repository.js";
11
11
  import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
12
12
  import { init_agent_scope, resolveAgentProfileDir } from "../agent/agent-scope.js";
13
- import { init_providers, resolveModel } from "../providers/index.js";
14
- import { completeWithResolvedCredentials } from "../providers/model-call.js";
15
- import { extractAssistantText, getAssistantMessageErrorReason } from "../providers/model-response.js";
16
- import { getPersonalAgentByConversation } from "./repository.js";
17
13
  import { emitSessionTranscriptUpdate } from "../session/transcript-events.js";
14
+ import { getPersonalAgentByConversation } from "./repository.js";
15
+ import { TaskCollaborationRepository } from "../tasks/task-collaboration-repository.js";
18
16
  import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
19
- import { loadProfileBootstrapFiles } from "../agent/bootstrap/load-bootstrap-files.js";
20
17
  import { TaskCriterionReviewRepository } from "../tasks/task-criterion-review-repository.js";
21
- import { TaskCollaborationRepository } from "../tasks/task-collaboration-repository.js";
22
18
  import { hasPersonalResultFileLinks, sanitizePersonalResultFileLinks } from "./result-file-links.js";
23
19
  import { taskInstructionSequence } from "../tasks/task-instruction-sequence.js";
24
- import { PERSONAL_PERSONA_GUIDANCE } from "./persona.js";
25
- import "../tasks/task-research-result.js";
26
- import { recordPersonalPerformance } from "./performance.js";
20
+ import { init_providers, resolveModel } from "../providers/index.js";
21
+ import { extractAssistantText, getAssistantMessageErrorReason } from "../providers/model-response.js";
22
+ import { completeWithResolvedCredentials } from "../providers/model-call.js";
27
23
  import { PERSONAL_DEFAULT_STYLE_RULES } from "./default-style.js";
24
+ import { recordPersonalPerformance } from "./performance.js";
25
+ import "../tasks/task-research-result.js";
28
26
  import { PERSONAL_REPLY_EXAMPLES, PERSONAL_REPLY_STYLE_RULES } from "./reply-style.js";
29
27
  import { personalConversationState } from "./conversation-state.js";
28
+ import { PERSONAL_PERSONA_GUIDANCE } from "./persona.js";
29
+ import { loadProfileBootstrapFiles } from "../agent/bootstrap/load-bootstrap-files.js";
30
30
  import { randomUUID } from "node:crypto";
31
31
  import { z } from "zod";
32
32
  //#region src/personal-agent/reply-composer.ts
@@ -7,11 +7,11 @@ import { init_session_instance_repository, readCurrentTranscriptId } from "../st
7
7
  import { TaskRunRepository, init_task_run_repository } from "../tasks/task-run-repository.js";
8
8
  import { getPersonalRequest, init_request_repository, updatePersonalRequest } from "./request-repository.js";
9
9
  import { appendTranscriptEntry, loadLlmMessagesForSession } from "../storage/sqlite/transcript-repository.js";
10
- import { getPersonalAgentByConversation } from "./repository.js";
11
10
  import { emitSessionTranscriptUpdate } from "../session/transcript-events.js";
11
+ import { getPersonalAgentByConversation } from "./repository.js";
12
12
  import { warmPersonalResult } from "./result-reader.js";
13
- import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
14
13
  import { TaskCollaborationRepository } from "../tasks/task-collaboration-repository.js";
14
+ import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
15
15
  import { PersonalRequestResultSchema, renderPersonalRequestResult } from "./request-result.js";
16
16
  import { enqueuePersonalReply } from "./reply-composer.js";
17
17
  //#region src/personal-agent/request-delivery.ts
@@ -13,21 +13,21 @@ import { getConnectorAccount, init_connector_account_repository } from "../stora
13
13
  import { getConnectorConnection, getConnectorInstallation, init_connector_repository, listConnectorConnections } from "../storage/sqlite/connector-repository.js";
14
14
  import { cancelConnectionObjective, init_connection_wait_repository, publishConnectionWait, requireSessionConnection } from "../storage/sqlite/connection-wait-repository.js";
15
15
  import { getUserProfileSnapshot } from "../user-model/profile.js";
16
- import { isPersonalConversation } from "./repository.js";
17
16
  import { resolveTaskLocale } from "../tasks/task-language.js";
18
17
  import { canAccessConnectorAccount } from "../connectors/account-access.js";
19
18
  import { connectorPrincipalForSession } from "../connectors/principal.js";
20
- import { resolveConnectionCandidate } from "../connectors/connection-candidates.js";
19
+ import { isPersonalConversation } from "./repository.js";
21
20
  import { TaskCollaborationRepository } from "../tasks/task-collaboration-repository.js";
22
21
  import { TaskApplicationService } from "../tasks/task-application-service.js";
23
- import { resolveResponseLanguageForSession } from "../agent/prompt/response-language.js";
24
- import { defineTaskContract } from "../tasks/task-contract-definition.js";
25
- import "./communication.js";
22
+ import { AgentSelectionRepository, selectionRequestHash } from "../agent-matching/selection-repository.js";
26
23
  import { assessSpecialist } from "../agent-matching/service.js";
24
+ import { assertSpecialistEligible } from "../agent-matching/delegation-service.js";
25
+ import { resolveConnectionCandidate } from "../connectors/connection-candidates.js";
26
+ import { defineTaskContract } from "../tasks/task-contract-definition.js";
27
27
  import { personalCapabilities } from "./capability-service.js";
28
+ import "./communication.js";
29
+ import { resolveResponseLanguageForSession } from "../agent/prompt/response-language.js";
28
30
  import { abortEmbeddedRun } from "../agent/embedded/runs.js";
29
- import { AgentSelectionRepository, selectionRequestHash } from "../agent-matching/selection-repository.js";
30
- import { assertSpecialistEligible } from "../agent-matching/delegation-service.js";
31
31
  import { createHash, randomUUID } from "node:crypto";
32
32
  //#region src/personal-agent/request-service.ts
33
33
  init_src();
@@ -7,10 +7,10 @@ import { init_session_instance_repository, readCurrentTranscriptId } from "../st
7
7
  import { init_request_repository, personalRequestForTask } from "./request-repository.js";
8
8
  import { getConnectorAccount, init_connector_account_repository } from "../storage/sqlite/connector-account-repository.js";
9
9
  import { getConnectorConnection, getConnectorInstallation, init_connector_repository } from "../storage/sqlite/connector-repository.js";
10
- import { isPersonalConversation } from "./repository.js";
11
10
  import { canAccessConnectorAccount } from "../connectors/account-access.js";
12
11
  import { connectorPrincipalForSession } from "../connectors/principal.js";
13
12
  import { resolveMediaReference } from "../media/media-reference.js";
13
+ import { isPersonalConversation } from "./repository.js";
14
14
  import { createRequire } from "node:module";
15
15
  import { existsSync } from "node:fs";
16
16
  import { fileURLToPath } from "node:url";
@@ -2,11 +2,11 @@ import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js
2
2
  import { init_session_repository, patchSessionMetadata } from "../storage/sqlite/session-repository.js";
3
3
  import { setSessionConfig } from "../storage/sqlite/config-repository.js";
4
4
  import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
5
+ import { AgentCatalogService } from "../agent-catalog/service.js";
5
6
  import { createConversation, init_conversation_repository } from "../storage/sqlite/conversation-repository.js";
6
- import { getAvailableModels, init_providers } from "../providers/index.js";
7
7
  import { getPersonalAgent, personalAgentId } from "./repository.js";
8
+ import { getAvailableModels, init_providers } from "../providers/index.js";
8
9
  import { PERSONAL_MAIN_TOOL_IDS, PERSONAL_READ_TOOL_ALIASES } from "./policy.js";
9
- import { AgentCatalogService } from "../agent-catalog/service.js";
10
10
  import { getModelThinking } from "../providers/model-thinking.js";
11
11
  import { personalInstructions } from "./prompts.js";
12
12
  import { completePersonalOnboarding } from "./onboarding.js";
@@ -3,6 +3,7 @@ import type { PhonePerformance } from './execution-trace.js';
3
3
  export declare const PhoneProfileSchema: z.ZodEnum<{
4
4
  "autoglm-phone-v1": "autoglm-phone-v1";
5
5
  "structured-phone-v1": "structured-phone-v1";
6
+ "structured-tools-phone-v1": "structured-tools-phone-v1";
6
7
  "doubao-seed-phone-v1": "doubao-seed-phone-v1";
7
8
  "gui-owl-phone-v1": "gui-owl-phone-v1";
8
9
  }>;
@@ -10,6 +11,7 @@ export declare const PhoneModelMetadataSchema: z.ZodObject<{
10
11
  profile: z.ZodEnum<{
11
12
  "autoglm-phone-v1": "autoglm-phone-v1";
12
13
  "structured-phone-v1": "structured-phone-v1";
14
+ "structured-tools-phone-v1": "structured-tools-phone-v1";
13
15
  "doubao-seed-phone-v1": "doubao-seed-phone-v1";
14
16
  "gui-owl-phone-v1": "gui-owl-phone-v1";
15
17
  }>;
@@ -6,6 +6,7 @@ var init_contracts = __esmMin((() => {
6
6
  PhoneProfileSchema = z.enum([
7
7
  "autoglm-phone-v1",
8
8
  "structured-phone-v1",
9
+ "structured-tools-phone-v1",
9
10
  "doubao-seed-phone-v1",
10
11
  "gui-owl-phone-v1"
11
12
  ]);
@@ -2,7 +2,7 @@ import { type PhoneAppAccess } from './app-access.js';
2
2
  import { type PhonePlan, type PhonePlanState } from './planning.js';
3
3
  import type { Config } from '../config/schema.js';
4
4
  import { type PhoneAction, type PhoneApplication, type PhoneDecision, type PhoneObservation, type PhoneCompletion, type PhoneTaskContract, type PhoneRequestedOutput } from './contracts.js';
5
- export declare function phoneModelProfile(model: unknown): "autoglm-phone-v1" | "structured-phone-v1" | "doubao-seed-phone-v1" | "gui-owl-phone-v1";
5
+ export { phoneModelProfile } from './model-policy.js';
6
6
  export declare function validatePhoneModelChange(next: {
7
7
  primary: string;
8
8
  } | null | undefined, previous?: {
@@ -1,23 +1,21 @@
1
- import { PhoneDecisionSchema, PhoneError, PhoneModelMetadataSchema, init_contracts } from "./contracts.js";
1
+ import { PhoneDecisionSchema, PhoneError, init_contracts } from "./contracts.js";
2
+ import { init_model_policy, phoneModelProfile } from "./model-policy.js";
2
3
  import { getApiKey, init_providers, resolveModel } from "../providers/index.js";
3
4
  import { cloudCreditBudgetHeaders, reportCloudCreditError } from "../providers/xopc-cloud-credit-budget.js";
4
5
  import { currentPhoneTrace, measurePhonePhase } from "./execution-trace.js";
5
- import { phoneAllowsApp } from "./app-access.js";
6
+ import { predictPhoneToolDecision } from "./structured-model.js";
6
7
  import { readPhoneModelResponse } from "./model-response.js";
7
8
  import { AutoGlmHistory, autoGlmSystemPrompt, buildAutoGlmMessages } from "./autoglm-protocol.js";
9
+ import { phoneAllowsApp } from "./app-access.js";
8
10
  import { PHONE_PLANNING_RULES, PhonePlanSchema } from "./planning.js";
9
11
  import { phoneSemanticControls } from "./semantic-controls.js";
10
12
  import { guiPhonePrompt, parseDoubaoPhone, parseGuiOwlPhone } from "./gui-protocol.js";
11
13
  import { z } from "zod";
12
14
  import { performance } from "node:perf_hooks";
13
15
  //#region src/phone/model-adapter.ts
16
+ init_model_policy();
14
17
  init_providers();
15
18
  init_contracts();
16
- function phoneModelProfile(model) {
17
- const candidate = model;
18
- const metadata = PhoneModelMetadataSchema.safeParse(candidate?.phoneUse);
19
- return metadata.success && candidate?.api === "openai-completions" && candidate.input?.includes("image") ? metadata.data.profile : void 0;
20
- }
21
19
  function validatePhoneModelChange(next, previous) {
22
20
  if (!next || next.primary === previous?.primary || next.primary === "phone-mock/settings-about") return;
23
21
  try {
@@ -507,6 +505,31 @@ async function createPhoneModel(modelRef, config, agentId) {
507
505
  transport: config.phone?.modelResponseMode ?? "json"
508
506
  };
509
507
  try {
508
+ if (profile === "structured-tools-phone-v1") {
509
+ metric.protocol = profile;
510
+ const deadline = AbortSignal.timeout(config.phone?.modelRequestTimeoutMs ?? 45e3);
511
+ try {
512
+ const requestSignal = AbortSignal.any([signal, deadline]);
513
+ requestSignal.throwIfAborted();
514
+ const currentKey = await getApiKey(model.provider, {
515
+ agentId,
516
+ appConfig: config
517
+ });
518
+ if (!currentKey) throw new PhoneError("PHONE_MODEL_KEY_MISSING", "Reconnect the model provider on the Gateway host");
519
+ const modelInput = {
520
+ ...input,
521
+ enhancements: {
522
+ ...input.enhancements,
523
+ hierarchicalPlanning: false
524
+ }
525
+ };
526
+ const instructions = `Operate the authorized Android phone using exactly one phone_decision function call. Coordinates are normalized to 0..1000 on both axes. Ground actions in the current screenshot and native UI. Use typeText only for a focused non-password editable field; mode replace changes existing contents, insert appends. Request needsUser for passwords, login, verification codes, CAPTCHA or an effect outside the authorized goal. Completion is a claim, verified separately by the host. ${input.readOnly ? PHONE_SCREEN_READING_RULES : PHONE_RECOVERY_RULES}${input.readingFields ? " Return the requested readingFields as a compact JSON object encoded in complete.summary, with exactly those keys and visible string values or null. Do not merge fields." : ""}${input.enhancements?.semanticControls ? ` ${PHONE_SEMANTIC_RULES}` : ""}`;
527
+ return await measurePhonePhase("model_request", () => predictPhoneToolDecision(model, currentKey, instructions, buildPhoneModelContext(modelInput), modelInput, requestSignal, metric, started));
528
+ } catch (error) {
529
+ if (!signal.aborted && deadline.aborted) throw new PhoneError("PHONE_MODEL_TIMEOUT", "Phone model request timed out; no action from this request was dispatched", 502);
530
+ throw error;
531
+ }
532
+ }
510
533
  const nativeGui = profile === "doubao-seed-phone-v1" || profile === "gui-owl-phone-v1";
511
534
  const modelInput = profile !== "structured-phone-v1" ? {
512
535
  ...input,
@@ -0,0 +1,4 @@
1
+ /** Native phone protocols stay explicit; ordinary visual tool models use function calls. */
2
+ export declare function phoneModelProfile(model: unknown): "autoglm-phone-v1" | "structured-phone-v1" | "structured-tools-phone-v1" | "doubao-seed-phone-v1" | "gui-owl-phone-v1";
3
+ /** Generic visual models remain eligible for ordinary chat and vision pickers. */
4
+ export declare function isDedicatedPhoneModel(model: unknown): boolean;
@@ -0,0 +1,30 @@
1
+ import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
2
+ import { PhoneModelMetadataSchema, init_contracts } from "./contracts.js";
3
+ import { init_constants } from "../providers/constants.js";
4
+ //#region src/phone/model-policy.ts
5
+ /** Native phone protocols stay explicit; ordinary visual tool models use function calls. */
6
+ function phoneModelProfile(model) {
7
+ if (!model || typeof model !== "object") return void 0;
8
+ const value = model;
9
+ if (!Array.isArray(value.input) || !value.input.includes("image")) return void 0;
10
+ const compatibleApi = value.api === "openai-completions" || value.api === "openai-responses";
11
+ if (value.phoneUse !== void 0) {
12
+ const metadata = PhoneModelMetadataSchema.safeParse(value.phoneUse);
13
+ if (!metadata.success) return void 0;
14
+ return metadata.data.profile === "structured-tools-phone-v1" ? compatibleApi && value.supportsTools !== false ? metadata.data.profile : void 0 : value.api === "openai-completions" ? metadata.data.profile : void 0;
15
+ }
16
+ if (value.provider === "xopc-cloud" || value.baseUrl === "extension://provider-plugin" || value.computerUse || value.supportsTools === false) return void 0;
17
+ return compatibleApi ? "structured-tools-phone-v1" : void 0;
18
+ }
19
+ /** Generic visual models remain eligible for ordinary chat and vision pickers. */
20
+ function isDedicatedPhoneModel(model) {
21
+ const value = model;
22
+ return Boolean(value?.phoneUse && phoneModelProfile(model) && value.phoneUse.profile !== "structured-tools-phone-v1");
23
+ }
24
+ var init_model_policy = __esmMin((() => {
25
+ init_constants();
26
+ init_contracts();
27
+ }));
28
+ //#endregion
29
+ init_model_policy();
30
+ export { init_model_policy, isDedicatedPhoneModel, phoneModelProfile };
@@ -1,6 +1,6 @@
1
1
  import { PhoneDeviceSchema, PhoneError, init_contracts } from "./contracts.js";
2
- import { normalizePhoneAppAccess } from "./app-access.js";
3
2
  import { DurableState } from "../storage/sqlite/durable-state.js";
3
+ import { normalizePhoneAppAccess } from "./app-access.js";
4
4
  import { randomUUID } from "node:crypto";
5
5
  //#region src/phone/repository.ts
6
6
  init_contracts();
@@ -4,6 +4,10 @@ import { MOCK_PHONE_MODEL, PhoneError, PhoneInputSchema, init_contracts } from "
4
4
  import { resolveEffectiveAgentConfigForAgent } from "../config/agent-profile.js";
5
5
  import { PhoneExecutionTrace, currentPhoneTrace, measurePhonePhase } from "./execution-trace.js";
6
6
  import { phoneAllowsApp, phoneAppAccess } from "./app-access.js";
7
+ import { advancePhonePlan, buildPhonePlan, createPhonePlanState } from "./planning.js";
8
+ import { canDispatchPhoneAction, observationSignature, phoneCompletionSatisfied } from "./reliability.js";
9
+ import { groundPhoneCoordinateAction, resolvePhoneSemanticAction } from "./semantic-controls.js";
10
+ import { createPhoneModel, isAboutScreen } from "./model-adapter.js";
7
11
  import { nativePhoneOutput, updatePhoneFeedback } from "./task-feedback.js";
8
12
  import { PhoneFrameCache, PhoneOperationBudget } from "./live-state.js";
9
13
  import { PhoneInteractiveSession } from "./interactive-session.js";
@@ -13,10 +17,6 @@ import { AdbPhoneDriver, resolveAdbPath } from "./adb-driver.js";
13
17
  import { CloudPhones } from "./cloud-phones.js";
14
18
  import { PhoneLocationEnvironment } from "./location-environment.js";
15
19
  import { WirelessPhones } from "./wireless.js";
16
- import { advancePhonePlan, buildPhonePlan, createPhonePlanState } from "./planning.js";
17
- import { canDispatchPhoneAction, observationSignature, phoneCompletionSatisfied } from "./reliability.js";
18
- import { groundPhoneCoordinateAction, resolvePhoneSemanticAction } from "./semantic-controls.js";
19
- import { createPhoneModel, isAboutScreen } from "./model-adapter.js";
20
20
  import { PhoneRepository } from "./repository.js";
21
21
  import { phoneCompletionGuidance, phoneCompletionRecoveryHint } from "./completion-recovery.js";
22
22
  import { confirmPhoneFocusRecovery, phoneBackRecovery, phoneUnfocusedTypingHint, preparePhoneFocusRecovery } from "./recovery.js";
@@ -0,0 +1,6 @@
1
+ import { type Api, type Model } from '@earendil-works/pi-ai/compat';
2
+ import { type PhoneDecision } from './contracts.js';
3
+ import type { PhoneModelMetric } from './execution-trace.js';
4
+ import type { PhonePrediction } from './model-adapter.js';
5
+ /** Use the shared provider client for API keys and ChatGPT OAuth without persisting screenshots. */
6
+ export declare function predictPhoneToolDecision(model: Model<Api>, apiKey: string, instructions: string, context: unknown, input: PhonePrediction, signal: AbortSignal, metric: PhoneModelMetric, started: number): Promise<PhoneDecision>;
@@ -0,0 +1,87 @@
1
+ import { PhoneDecisionSchema, PhoneError, init_contracts } from "./contracts.js";
2
+ import { z } from "zod";
3
+ import { completeSimple } from "@earendil-works/pi-ai/compat";
4
+ import { performance } from "node:perf_hooks";
5
+ //#region src/phone/structured-model.ts
6
+ init_contracts();
7
+ const TOOL_NAME = "phone_decision";
8
+ const invalid = () => new PhoneError("PHONE_MODEL_PROTOCOL", "Phone model returned an invalid or incomplete function call; no action was dispatched");
9
+ /** Use the shared provider client for API keys and ChatGPT OAuth without persisting screenshots. */
10
+ async function predictPhoneToolDecision(model, apiKey, instructions, context, input, signal, metric, started) {
11
+ const responses = model.api === "openai-responses";
12
+ const schema = z.object({ decision: input.readOnly ? z.union([PhoneDecisionSchema.options[1], PhoneDecisionSchema.options[2]]) : PhoneDecisionSchema }).strict();
13
+ const tool = {
14
+ name: TOOL_NAME,
15
+ description: "One authorized phone action, completion claim or request for user assistance.",
16
+ parameters: z.toJSONSchema(schema)
17
+ };
18
+ metric.transport = responses ? "responses-stream" : "chat-completions-stream";
19
+ signal.throwIfAborted();
20
+ metric.preparationMs = Math.round(performance.now() - started);
21
+ const result = await completeSimple(model, {
22
+ systemPrompt: instructions,
23
+ messages: [{
24
+ role: "user",
25
+ timestamp: Date.now(),
26
+ content: [{
27
+ type: "text",
28
+ text: JSON.stringify(context)
29
+ }, {
30
+ type: "image",
31
+ data: input.observation.frame.toString("base64"),
32
+ mimeType: "image/png"
33
+ }]
34
+ }],
35
+ tools: [tool]
36
+ }, {
37
+ apiKey,
38
+ maxTokens: Math.min(3e3, model.maxTokens ?? 3e3),
39
+ signal,
40
+ maxRetries: 0,
41
+ transport: "sse",
42
+ cacheRetention: "none",
43
+ onPayload(payload) {
44
+ const body = payload;
45
+ body.parallel_tool_calls = false;
46
+ body.tool_choice = responses ? {
47
+ type: "function",
48
+ name: TOOL_NAME
49
+ } : {
50
+ type: "function",
51
+ function: { name: TOOL_NAME }
52
+ };
53
+ if (responses) {
54
+ body.store = false;
55
+ body.stream = true;
56
+ }
57
+ metric.requestBytes = Buffer.byteLength(JSON.stringify(body));
58
+ },
59
+ onProviderStreamEvent(event) {
60
+ metric.responseBytes = (metric.responseBytes ?? 0) + Buffer.byteLength(JSON.stringify(event));
61
+ if (metric.responseBytes > 2 * 1024 * 1024) throw invalid();
62
+ },
63
+ onResponse(response) {
64
+ metric.httpStatus = response.status;
65
+ metric.firstByteMs = Math.round(performance.now() - started);
66
+ }
67
+ });
68
+ signal.throwIfAborted();
69
+ metric.finishReason = result.stopReason;
70
+ metric.promptTokens = result.usage?.input;
71
+ metric.completionTokens = result.usage?.output;
72
+ metric.totalTokens = result.usage?.totalTokens;
73
+ if (result.stopReason === "length") throw new PhoneError("PHONE_MODEL_TRUNCATED", "Phone model response was truncated; no action was dispatched");
74
+ if (result.stopReason !== "toolUse" || result.errorMessage) throw invalid();
75
+ const calls = result.content.filter((item) => item.type === "toolCall");
76
+ if (calls.length !== 1 || calls[0].name !== TOOL_NAME) throw invalid();
77
+ let decision;
78
+ try {
79
+ decision = schema.parse(calls[0].arguments).decision;
80
+ } catch {
81
+ throw invalid();
82
+ }
83
+ if (decision.kind === "action" && decision.action.type === "tapElement" && !input.enhancements?.semanticControls) throw invalid();
84
+ return decision;
85
+ }
86
+ //#endregion
87
+ export { predictPhoneToolDecision };
@@ -1,13 +1,13 @@
1
1
  import { ProjectStore, slugifyProjectName } from "./project-store.js";
2
- import { getProjectForSession, getProjectWorkspacePathForSession, resolveProjectWorkspacePath } from "./workspace.js";
3
2
  import { ProjectWorkspaceConflictError, ProjectWorkspaceMissingError, canonicalWorkspacePath, ensureWorkspaceDirectory, inferProjectNameFromWorkspaceRoot, isPathSameOrInsideWorkspace, isSafeAutoCreateWorkspaceRoot, resolveWorkspaceProjectRoot, workspaceDirectoryExists } from "./workspace-project.js";
4
3
  import { inferProjectExecutionMode, inferProjectKind } from "./project-kind.js";
5
4
  import { bindSessionToProject, bindSessionsToProject, listProjectConversationIds, moveSessionToProject, unbindSessionFromProject } from "./session-bind.js";
6
5
  import { ProjectDeletionBlockedError, ProjectService, ProjectWorkspaceInUseError, ProjectWorkspaceInvalidError } from "./project-service.js";
6
+ import { ProjectSkillError, ProjectSkillService } from "./project-skill-service.js";
7
7
  import { isValidProjectAgentId, normalizeProjectAgentId, resolveProjectAgentId } from "./project-agent.js";
8
8
  import { CODING_PROJECT_AGENT_ID, inferSuggestedProjectDefaultAgentId, suggestProjectDefaultAgentId } from "./project-agent-suggestion.js";
9
- import { ProjectSkillError, ProjectSkillService } from "./project-skill-service.js";
10
9
  import { buildProjectLoopOverview } from "./project-loop.js";
11
10
  import { bindAutomationToProject } from "./automation-bind.js";
12
11
  import { bindKnowledgeItemToProject } from "./knowledge-bind.js";
12
+ import { getProjectForSession, getProjectWorkspacePathForSession, resolveProjectWorkspacePath } from "./workspace.js";
13
13
  export { CODING_PROJECT_AGENT_ID, ProjectDeletionBlockedError, ProjectService, ProjectSkillError, ProjectSkillService, ProjectStore, ProjectWorkspaceConflictError, ProjectWorkspaceInUseError, ProjectWorkspaceInvalidError, ProjectWorkspaceMissingError, bindAutomationToProject, bindKnowledgeItemToProject, bindSessionToProject, bindSessionsToProject, buildProjectLoopOverview, canonicalWorkspacePath, ensureWorkspaceDirectory, getProjectForSession, getProjectWorkspacePathForSession, inferProjectExecutionMode, inferProjectKind, inferProjectNameFromWorkspaceRoot, inferSuggestedProjectDefaultAgentId, isPathSameOrInsideWorkspace, isSafeAutoCreateWorkspaceRoot, isValidProjectAgentId, listProjectConversationIds, moveSessionToProject, normalizeProjectAgentId, resolveProjectAgentId, resolveProjectWorkspacePath, resolveWorkspaceProjectRoot, slugifyProjectName, suggestProjectDefaultAgentId, unbindSessionFromProject, workspaceDirectoryExists };
@@ -1,5 +1,5 @@
1
- import { agentExists, init_resolve_route } from "../routing/resolve-route.js";
2
1
  import { inferProjectKind } from "./project-kind.js";
2
+ import { agentExists, init_resolve_route } from "../routing/resolve-route.js";
3
3
  //#region src/projects/project-agent-suggestion.ts
4
4
  init_resolve_route();
5
5
  const CODING_PROJECT_AGENT_ID = "coder";
@@ -2,12 +2,12 @@ import { init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/t
2
2
  import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
3
3
  import "../storage/sqlite/index.js";
4
4
  import { changedFieldsFromPatch, emitActivity, systemActivityActor, systemActivitySource } from "../activity/emitter.js";
5
- import { ExecutionEnvironmentStore } from "../execution-environments/store.js";
6
5
  import { ProjectStore } from "./project-store.js";
7
- import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
8
6
  import { enqueueProjectChanged } from "./project-change-events.js";
9
7
  import { ProjectWorkspaceConflictError, ProjectWorkspaceMissingError, canonicalWorkspacePath, inferProjectNameFromWorkspaceRoot, isPathSameOrInsideWorkspace, isSafeAutoCreateWorkspaceRoot, resolveWorkspaceProjectRoot, workspaceDirectoryExists } from "./workspace-project.js";
10
8
  import { drainProjectWorkspaceCreation, queueProjectWorkspaceCreation } from "./project-workspace-creation.js";
9
+ import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
10
+ import { ExecutionEnvironmentStore } from "../execution-environments/store.js";
11
11
  import { listPendingProjectUnderstandingRuns } from "../work-discovery/repository.js";
12
12
  import { inferProjectExecutionMode } from "./project-kind.js";
13
13
  import { bindSessionToProject, listProjectConversationIds, unbindSessionFromProject } from "./session-bind.js";