@xopcai/xopc 0.0.483 → 0.0.485

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 (393) hide show
  1. package/dist/browser-ext/dist/assets/{auth-tm02ZZB8.js → auth-8EjgHa-n.js} +28 -6
  2. package/dist/browser-ext/dist/background.js +7 -3
  3. package/dist/browser-ext/dist/sidepanel.html +1 -1
  4. package/dist/browser-ext/dist/sidepanel.js +1 -1
  5. package/dist/browser-ext/manifest.json +1 -1
  6. package/dist/extensions/telegram/src/inbound-processor.js +4 -6
  7. package/dist/extensions/telegram/src/plugin.js +1 -1
  8. package/dist/extensions/telegram/xopc.extension.json +1 -1
  9. package/dist/extensions/weixin/src/messaging/process-message.js +3 -2
  10. package/dist/gateway/server/chunks.bin +1029 -1008
  11. package/dist/gateway/server/chunks.json +1 -1
  12. package/dist/gateway/static/root/assets/{apps-page-DO5uTFRI.js → apps-page-CH9wENBj.js} +1 -1
  13. package/dist/gateway/static/root/assets/{automations-page-C5rp_vOE.js → automations-page-uY_wmZY1.js} +1 -1
  14. package/dist/gateway/static/root/assets/{automations-workspace-BxN47gkP.js → automations-workspace-DyQq55Rh.js} +2 -2
  15. package/dist/gateway/static/root/assets/bell-BlYch9Vg.js +1 -0
  16. package/dist/gateway/static/root/assets/browser-notification-delivery-DjK3F0oR.js +1 -0
  17. package/dist/gateway/static/root/assets/capabilities-page-WCl7Fdce.js +2 -0
  18. package/dist/gateway/static/root/assets/{capabilities-settings-panel-B1o8BKxy.js → capabilities-settings-panel-BOwbZn9X.js} +1 -1
  19. package/dist/gateway/static/root/assets/{channels-_m_FjvAY.js → channels-DlnXbcOj.js} +1 -1
  20. package/dist/gateway/static/root/assets/chat-page-3fVhP77N.js +74 -0
  21. package/dist/gateway/static/root/assets/{chat-terminal-dock-BKnlzlXT.js → chat-terminal-dock-DE8j-K9d.js} +1 -1
  22. package/dist/gateway/static/root/assets/command-palette-api-UrqPvWR1.js +1 -0
  23. package/dist/gateway/static/root/assets/{connectors-page-CXNy8Y5R.js → connectors-page-BJm1jjct.js} +1 -1
  24. package/dist/gateway/static/root/assets/device-connections-panel-DE01vyK_.js +1 -0
  25. package/dist/gateway/static/root/assets/{extension-debug-page-BcjkhaY9.js → extension-debug-page-D3X7SlzG.js} +1 -1
  26. package/dist/gateway/static/root/assets/{extension-iframe-host-RWjaucjJ.js → extension-iframe-host-CIAq7PSn.js} +1 -1
  27. package/dist/gateway/static/root/assets/{extension-message-router-CzVgJn5c.js → extension-message-router-B2wbucV7.js} +1 -1
  28. package/dist/gateway/static/root/assets/{extension-page-DC58VBdj.js → extension-page-qwY7r1_p.js} +1 -1
  29. package/dist/gateway/static/root/assets/{extension-provider-BGrqW0_n.js → extension-provider-DFcRbTHI.js} +1 -1
  30. package/dist/gateway/static/root/assets/{extension-settings-page-DYbal3Iq.js → extension-settings-page-Cpnh9lcZ.js} +1 -1
  31. package/dist/gateway/static/root/assets/file-preview-surface-Da1xZiG6.js +1 -0
  32. package/dist/gateway/static/root/assets/gateway-realtime-CoIFB3im.js +1 -0
  33. package/dist/gateway/static/root/assets/{home-page-DnjsusRG.js → home-page-BusNFHe-.js} +3 -3
  34. package/dist/gateway/static/root/assets/index-790PGhZb.js +11 -0
  35. package/dist/gateway/static/root/assets/index-B_TGvH_k.css +1 -0
  36. package/dist/gateway/static/root/assets/{local-app-workbench-page-DH5c5Zhv.js → local-app-workbench-page-B9uSL1Mi.js} +1 -1
  37. package/dist/gateway/static/root/assets/{logs-page-D2olKpTB.js → logs-page-0hkRbcUR.js} +1 -1
  38. package/dist/gateway/static/root/assets/map-pin-BFRLhzQ9.js +1 -0
  39. package/dist/gateway/static/root/assets/note-detail-panel-Bwm_aehq.js +7 -0
  40. package/dist/gateway/static/root/assets/{notes-page-YQAAdasN.js → notes-page-DkZWV3Ds.js} +1 -1
  41. package/dist/gateway/static/root/assets/{page-context-capture-button-CDSH76wA.js → page-context-capture-button-BXSBeGms.js} +1 -1
  42. package/dist/gateway/static/root/assets/{personal-page-Bfgb5oQI.js → personal-page-cauym9hr.js} +1 -1
  43. package/dist/gateway/static/root/assets/{personal-profile-settings-BvjLssF9.js → personal-profile-settings-TcI0Zfwr.js} +1 -1
  44. package/dist/gateway/static/root/assets/{personal-settings-panel-Ffr7gcx4.js → personal-settings-panel-BJ46T7ZO.js} +1 -1
  45. package/dist/gateway/static/root/assets/{preview-runtime-pNF_b2oD.js → preview-runtime-C1U57WSM.js} +1 -1
  46. package/dist/gateway/static/root/assets/product-automation-feedback-GA_YPLkr.js +1 -0
  47. package/dist/gateway/static/root/assets/{project-detail-page-DDaG-n-H.js → project-detail-page-D9WKZe3z.js} +1 -1
  48. package/dist/gateway/static/root/assets/route-preload-DF8LOfKW.js +2 -0
  49. package/dist/gateway/static/root/assets/routine-panel-Bfbiz0IN.js +2 -0
  50. package/dist/gateway/static/root/assets/{session-manager-CVNlrzFB.js → session-manager-DUWeBdeG.js} +1 -1
  51. package/dist/gateway/static/root/assets/{settings-page-DzISa84O.js → settings-page-Cd9WZ-Ac.js} +1 -1
  52. package/dist/gateway/static/root/assets/share-2-CnIB9PsV.js +1 -0
  53. package/dist/gateway/static/root/assets/{share-link-dialog-D31jDQN9.js → share-link-dialog-2JjvWs0q.js} +1 -1
  54. package/dist/gateway/static/root/assets/{share-preview-page-Co6GUYV5.js → share-preview-page-Di5_ukH8.js} +1 -1
  55. package/dist/gateway/static/root/assets/{shares-settings-C-czUl49.js → shares-settings-CirGM67m.js} +1 -1
  56. package/dist/gateway/static/root/assets/{skills-page-gGU0LZ5e.js → skills-page-kL8E5zgi.js} +1 -1
  57. package/dist/gateway/static/root/assets/space-page-DlJB7GT1.js +2 -0
  58. package/dist/gateway/static/root/assets/system-settings-panel-0e2zfQLt.js +1 -0
  59. package/dist/gateway/static/root/assets/{task-detail-page-DWoXIgp2.js → task-detail-page-BFa0Px-B.js} +1 -1
  60. package/dist/gateway/static/root/assets/{task-header-title-DfyaQ58P.js → task-header-title-qzNctGl5.js} +1 -1
  61. package/dist/gateway/static/root/assets/{task-run-issue-notice-CljFUd21.js → task-run-issue-notice-CGrUMy0s.js} +1 -1
  62. package/dist/gateway/static/root/assets/use-composer-attachments-DJsIzJ1c.js +2 -0
  63. package/dist/gateway/static/root/assets/{use-file-preview-expanded-U5rH80Jf.js → use-file-preview-expanded-BFF2vXm5.js} +1 -1
  64. package/dist/gateway/static/root/assets/{use-personal-work-FI9Cgyq5.js → use-personal-work-B1DWeBnm.js} +1 -1
  65. package/dist/gateway/static/root/assets/{use-realtime-voice-BARxeNLd.js → use-realtime-voice-9OvLwHzk.js} +1 -1
  66. package/dist/gateway/static/root/assets/use-share-link-WKZLlEqr.js +1 -0
  67. package/dist/gateway/static/root/assets/{use-workspace-tree-NEeru2fw.js → use-workspace-tree-LCIT1H-D.js} +1 -1
  68. package/dist/gateway/static/root/assets/{voice-settings-bAmN4bUq.js → voice-settings-j8o-hGTm.js} +1 -1
  69. package/dist/gateway/static/root/assets/{workspace-api-C8-p66T-.js → workspace-api-BuNWyNvA.js} +2 -2
  70. package/dist/gateway/static/root/assets/workspace-file-preview-dialog-DwVWTehC.js +1 -0
  71. package/dist/gateway/static/root/index.html +27 -24
  72. package/dist/package.js +1 -1
  73. package/dist/packages/endpoint-tools-client/src/index.js +6 -3
  74. package/dist/packages/endpoint-tools-protocol/src/folders.js +5 -10
  75. package/dist/packages/endpoint-tools-protocol/src/index.js +50 -10
  76. package/dist/packages/endpoint-tools-protocol/src/location.js +1 -1
  77. package/dist/packages/endpoint-tools-protocol/src/personal.js +2 -2
  78. package/dist/src/agent/agent-manager.js +14 -14
  79. package/dist/src/agent/background-review/prompts.js +1 -1
  80. package/dist/src/agent/background-review/run-background-review.js +8 -8
  81. package/dist/src/agent/context/coordinator.js +1 -1
  82. package/dist/src/agent/context/deep-recall.js +4 -4
  83. package/dist/src/agent/context/execution-context.js +3 -3
  84. package/dist/src/agent/context/project-context.js +4 -4
  85. package/dist/src/agent/embedded/execution-tool-policy.js +1 -1
  86. package/dist/src/agent/embedded/run-for-session.js +4 -4
  87. package/dist/src/agent/embedded/run-turn.js +1 -1
  88. package/dist/src/agent/embedded/session-runner.js +3 -3
  89. package/dist/src/agent/external-tools/cliProvider.js +4 -4
  90. package/dist/src/agent/external-tools/composio-provider.js +3 -3
  91. package/dist/src/agent/external-tools/endpoint-provider.js +24 -14
  92. package/dist/src/agent/image/tool-model-config.js +1 -1
  93. package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
  94. package/dist/src/agent/mcp/connection-drafts.d.ts +3 -1
  95. package/dist/src/agent/mcp/connection-drafts.js +25 -12
  96. package/dist/src/agent/mcp/connection-setup.js +15 -12
  97. package/dist/src/agent/mcp/managed-discovery.js +1 -1
  98. package/dist/src/agent/mcp/native-mcp.js +1 -0
  99. package/dist/src/agent/mcp/network-policy.d.ts +6 -0
  100. package/dist/src/agent/mcp/network-policy.js +49 -0
  101. package/dist/src/agent/mcp/tool-catalog.js +1 -1
  102. package/dist/src/agent/mcp/transport.js +15 -8
  103. package/dist/src/agent/messaging/message-router.js +2 -2
  104. package/dist/src/agent/orchestration/agent-orchestrator.js +1 -1
  105. package/dist/src/agent/orchestration/child-run-resume.js +1 -1
  106. package/dist/src/agent/prompt/response-language.js +1 -1
  107. package/dist/src/agent/prompt/service-prompt-builder.js +1 -1
  108. package/dist/src/agent/prompt/system-prompt-params.js +1 -1
  109. package/dist/src/agent/sandbox/exec-policy.js +1 -1
  110. package/dist/src/agent/service/direct-turn-helpers.js +9 -24
  111. package/dist/src/agent/service/process-direct-streaming.js +2 -2
  112. package/dist/src/agent/service.js +10 -10
  113. package/dist/src/agent/session/session-config-service.js +1 -1
  114. package/dist/src/agent/session/session-inspector.js +1 -1
  115. package/dist/src/agent/skills/index.js +1 -1
  116. package/dist/src/agent/skills/managed-store.js +1 -1
  117. package/dist/src/agent/skills/skill-manage-ops.js +1 -1
  118. package/dist/src/agent/skills/skill-manager.js +1 -1
  119. package/dist/src/agent/skills/skill-sources.js +1 -1
  120. package/dist/src/agent/tasks/task-judge-service.js +6 -6
  121. package/dist/src/agent/tool-manuals/computer.d.ts +1 -1
  122. package/dist/src/agent/tool-manuals/computer.js +2 -2
  123. package/dist/src/agent/tools/factory.js +10 -10
  124. package/dist/src/agent/tools/fetch-text.js +1 -1
  125. package/dist/src/agent/tools/index.js +3 -3
  126. package/dist/src/agent/tools/knowledge-memory-tool.js +1 -1
  127. package/dist/src/agent/tools/personal-attention-tool.js +1 -1
  128. package/dist/src/agent/tools/personal-memory-tool.js +5 -5
  129. package/dist/src/agent/tools/personal-read-tool.js +1 -1
  130. package/dist/src/agent/tools/personal-request-result-tool.js +1 -1
  131. package/dist/src/agent/tools/personal-request-tool.js +2 -2
  132. package/dist/src/agent/tools/personal-task-tool.js +4 -4
  133. package/dist/src/agent/tools/session-search-tool.js +2 -2
  134. package/dist/src/agent/tools/user-context-tool.js +2 -2
  135. package/dist/src/agent/tools/xopc-use-tool.js +5 -5
  136. package/dist/src/ai-assist/text-assist.js +1 -1
  137. package/dist/src/auth/oauth/xopc-cloud.js +1 -1
  138. package/dist/src/auth/sync-provider-auth.js +1 -1
  139. package/dist/src/automations/api/routes.js +2 -2
  140. package/dist/src/automations/capabilities/write.js +3 -3
  141. package/dist/src/automations/configuration-conversation.js +1 -1
  142. package/dist/src/automations/domain/index.js +1 -1
  143. package/dist/src/automations/draft/automation-draft-service.js +1 -1
  144. package/dist/src/automations/index.js +2 -2
  145. package/dist/src/automations/service/action-executor.js +2 -2
  146. package/dist/src/automations/service/automation-service.js +2 -2
  147. package/dist/src/browser/native-messaging-host.js +1 -1
  148. package/dist/src/capabilities/capability-catalog.js +3 -3
  149. package/dist/src/capabilities/runtime/dispatcher.js +1 -1
  150. package/dist/src/capabilities/runtime/product.js +2 -2
  151. package/dist/src/capabilities/store-connector.js +1 -1
  152. package/dist/src/chat-commands/agent-edit.js +1 -1
  153. package/dist/src/chat-commands/builtins/config.js +1 -1
  154. package/dist/src/chat-commands/command-parse.d.ts +1 -0
  155. package/dist/src/chat-commands/command-parse.js +8 -10
  156. package/dist/src/chat-commands/registry.d.ts +5 -0
  157. package/dist/src/chat-commands/registry.js +8 -0
  158. package/dist/src/cli/commands/agent.js +1 -1
  159. package/dist/src/cli/commands/agents.js +1 -1
  160. package/dist/src/cli/commands/connectors.js +1 -1
  161. package/dist/src/cli/commands/doctor/checks/gateway-health.js +1 -1
  162. package/dist/src/cli/commands/doctor/checks/provider-auth.js +1 -1
  163. package/dist/src/cli/commands/extension-agent-plugin.js +1 -1
  164. package/dist/src/cli/commands/init.js +1 -1
  165. package/dist/src/cli/commands/models.js +2 -2
  166. package/dist/src/cli/commands/onboard/model.js +2 -2
  167. package/dist/src/cli/commands/onboard.js +1 -1
  168. package/dist/src/cli/commands/project.js +1 -1
  169. package/dist/src/cli/commands/tunnel.js +1 -1
  170. package/dist/src/cli/extension-cli-register.js +1 -1
  171. package/dist/src/cli/utils/gateway-client.js +1 -1
  172. package/dist/src/cli/utils/init-workspace-core.js +2 -2
  173. package/dist/src/computer/endpoint-transport.d.ts +1 -1
  174. package/dist/src/computer/endpoint-transport.js +3 -2
  175. package/dist/src/computer/errors.js +2 -1
  176. package/dist/src/computer/model-adapter.js +1 -0
  177. package/dist/src/computer/runtime.d.ts +1 -0
  178. package/dist/src/computer/runtime.js +15 -3
  179. package/dist/src/config/config-file.js +1 -1
  180. package/dist/src/config/index.js +4 -4
  181. package/dist/src/config/loader.js +1 -1
  182. package/dist/src/config/models-json.js +2 -2
  183. package/dist/src/config/schema.d.ts +54 -4
  184. package/dist/src/config/schema.js +3 -1
  185. package/dist/src/connectors/connected-source-ingestion.js +2 -2
  186. package/dist/src/connectors/connected-source-understanding.js +2 -2
  187. package/dist/src/connectors/content-enrichment.js +1 -1
  188. package/dist/src/connectors/health.js +1 -1
  189. package/dist/src/endpoint-tools/device-capability-grants.d.ts +13 -0
  190. package/dist/src/endpoint-tools/device-capability-grants.js +71 -0
  191. package/dist/src/endpoint-tools/folder-connections.d.ts +3 -1
  192. package/dist/src/endpoint-tools/folder-connections.js +12 -8
  193. package/dist/src/endpoint-tools/invocation-service.d.ts +3 -0
  194. package/dist/src/endpoint-tools/invocation-service.js +8 -1
  195. package/dist/src/endpoint-tools/policy.js +1 -1
  196. package/dist/src/endpoint-tools/target-resolver.js +12 -7
  197. package/dist/src/endpoint-tools/task-targets.d.ts +3 -2
  198. package/dist/src/endpoint-tools/task-targets.js +9 -4
  199. package/dist/src/extensions/agent-plugins/auth.js +1 -1
  200. package/dist/src/extensions/agent-plugins/cli-authorization.js +1 -1
  201. package/dist/src/extensions/agent-plugins/credentials.js +1 -1
  202. package/dist/src/extensions/agent-plugins/setup.js +1 -1
  203. package/dist/src/extensions/agent-plugins/skill-catalog.js +3 -3
  204. package/dist/src/extensions/agent-plugins/source-http-fetch.js +1 -1
  205. package/dist/src/extensions/agent-plugins/user-config.js +1 -1
  206. package/dist/src/extensions/agent-plugins/validation.js +2 -2
  207. package/dist/src/extensions/install.js +1 -1
  208. package/dist/src/gateway/agent-reactions/reaction.js +3 -3
  209. package/dist/src/gateway/agents-admin.js +2 -2
  210. package/dist/src/gateway/file-path-classifier.js +1 -1
  211. package/dist/src/gateway/global-defaults-admin.js +1 -1
  212. package/dist/src/gateway/hono/app.js +1 -1
  213. package/dist/src/gateway/hono/lib/config-payload.js +2 -2
  214. package/dist/src/gateway/hono/middleware/auth.js +10 -0
  215. package/dist/src/gateway/hono/oauth-async.js +1 -1
  216. package/dist/src/gateway/hono/routes/agent-plugins.js +1 -1
  217. package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
  218. package/dist/src/gateway/hono/routes/commands-skills.js +3 -3
  219. package/dist/src/gateway/hono/routes/config-patch/misc.js +1 -1
  220. package/dist/src/gateway/hono/routes/device-connections.js +105 -14
  221. package/dist/src/gateway/hono/routes/endpoint-compatibility.js +6 -0
  222. package/dist/src/gateway/hono/routes/lazy-bundles.js +1 -1
  223. package/dist/src/gateway/hono/routes/local-app-run-streams.js +1 -1
  224. package/dist/src/gateway/hono/routes/mcp.js +1 -1
  225. package/dist/src/gateway/hono/routes/media.js +18 -32
  226. package/dist/src/gateway/hono/routes/memory-learning.js +2 -2
  227. package/dist/src/gateway/hono/routes/mobile-capability-actions.js +4 -4
  228. package/dist/src/gateway/hono/routes/mobile-capability-panels.d.ts +67 -0
  229. package/dist/src/gateway/hono/routes/mobile-capability-panels.js +25 -140
  230. package/dist/src/gateway/hono/routes/mobile-mcp-setup.d.ts +9 -0
  231. package/dist/src/gateway/hono/routes/mobile-mcp-setup.js +929 -0
  232. package/dist/src/gateway/hono/routes/models.js +2 -2
  233. package/dist/src/gateway/hono/routes/music-generation.js +1 -1
  234. package/dist/src/gateway/hono/routes/notes.js +2 -2
  235. package/dist/src/gateway/hono/routes/phone-setup.js +3 -3
  236. package/dist/src/gateway/hono/routes/phone.js +2 -2
  237. package/dist/src/gateway/hono/routes/projects.js +5 -5
  238. package/dist/src/gateway/hono/routes/session-command-handler.js +1 -4
  239. package/dist/src/gateway/hono/routes/session-input-handler.js +2 -5
  240. package/dist/src/gateway/hono/routes/sessions.js +1 -1
  241. package/dist/src/gateway/hono/routes/shares.js +96 -12
  242. package/dist/src/gateway/hono/routes/space.js +6 -3
  243. package/dist/src/gateway/hono/routes/tasks.js +2 -2
  244. package/dist/src/gateway/hono/routes/tui.js +1 -1
  245. package/dist/src/gateway/hono/routes/user-model.js +5 -5
  246. package/dist/src/gateway/hono/routes/video-generation.js +1 -1
  247. package/dist/src/gateway/image-generation-setup.js +1 -1
  248. package/dist/src/gateway/media-access.js +1 -1
  249. package/dist/src/gateway/next-turn-suggestions/generator.js +16 -2
  250. package/dist/src/gateway/next-turn-suggestions/service.d.ts +2 -1
  251. package/dist/src/gateway/next-turn-suggestions/service.js +17 -5
  252. package/dist/src/gateway/next-turn-suggestions/snapshot.d.ts +11 -0
  253. package/dist/src/gateway/next-turn-suggestions/snapshot.js +31 -2
  254. package/dist/src/gateway/security/gateway-scopes.d.ts +1 -0
  255. package/dist/src/gateway/security/gateway-scopes.js +9 -1
  256. package/dist/src/gateway/security/media-playback-ticket.d.ts +3 -0
  257. package/dist/src/gateway/security/media-playback-ticket.js +41 -0
  258. package/dist/src/gateway/service/agent-runner.js +2 -2
  259. package/dist/src/gateway/service/config-coordinator.d.ts +14 -1
  260. package/dist/src/gateway/service/config-coordinator.js +1 -1
  261. package/dist/src/gateway/service/marketplace-service.js +2 -2
  262. package/dist/src/gateway/service/run-gateway-agent.js +1 -1
  263. package/dist/src/gateway/service/session-command-service.js +2 -2
  264. package/dist/src/gateway/service/session-input-coordinator.js +1 -1
  265. package/dist/src/gateway/service.js +25 -25
  266. package/dist/src/gateway/session-context-summary.js +1 -1
  267. package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
  268. package/dist/src/home-intelligence/follow-ups.js +1 -1
  269. package/dist/src/home-intelligence/generator.js +2 -2
  270. package/dist/src/home-intelligence/observation.js +1 -1
  271. package/dist/src/home-intelligence/routines.js +2 -2
  272. package/dist/src/imports/importService.js +1 -1
  273. package/dist/src/imports/inventory.js +2 -2
  274. package/dist/src/imports/productImport.js +1 -1
  275. package/dist/src/knowledge-memory/repository.js +1 -1
  276. package/dist/src/knowledge-memory/usage-policy.js +1 -1
  277. package/dist/src/local-apps/automation-proposals.js +2 -2
  278. package/dist/src/local-apps/capabilities/automation-policy.js +1 -1
  279. package/dist/src/local-apps/capabilities/delegate.js +4 -4
  280. package/dist/src/local-apps/execution-authority.js +2 -2
  281. package/dist/src/local-apps/p1-services.js +3 -3
  282. package/dist/src/local-apps/preview-worker.js +1 -1
  283. package/dist/src/local-apps/service.js +2 -2
  284. package/dist/src/mcp/gateway-http-client.js +1 -1
  285. package/dist/src/media/generation-changes.d.ts +4 -0
  286. package/dist/src/media/generation-changes.js +37 -0
  287. package/dist/src/media-shared/http/file-response.d.ts +3 -0
  288. package/dist/src/media-shared/http/file-response.js +31 -0
  289. package/dist/src/memory-learning/choice-observations.js +6 -6
  290. package/dist/src/memory-learning/source-learning.js +4 -4
  291. package/dist/src/memory-learning/task-receipts.js +1 -1
  292. package/dist/src/memory-learning/work-capture.js +1 -1
  293. package/dist/src/memory-learning/work-review.js +2 -2
  294. package/dist/src/music-generation/artifact.d.ts +1 -1
  295. package/dist/src/music-generation/artifact.js +4 -18
  296. package/dist/src/music-generation/repository.js +12 -6
  297. package/dist/src/notes/service.js +1 -1
  298. package/dist/src/personal-agent/capability-service.js +1 -1
  299. package/dist/src/personal-agent/proactivity/routes.js +1 -1
  300. package/dist/src/personal-agent/proactivity/service.js +4 -4
  301. package/dist/src/personal-agent/prompt-context.js +4 -4
  302. package/dist/src/personal-agent/reply-composer.js +4 -4
  303. package/dist/src/personal-agent/request-delivery.js +1 -1
  304. package/dist/src/personal-agent/request-service.js +4 -4
  305. package/dist/src/personal-agent/result-reader.js +1 -1
  306. package/dist/src/personal-agent/service.js +1 -1
  307. package/dist/src/personal-agent/task-cancel.js +1 -1
  308. package/dist/src/phone/cloud-adb-connection.js +1 -1
  309. package/dist/src/projects/capabilities/write.js +2 -2
  310. package/dist/src/projects/index.js +2 -2
  311. package/dist/src/projects/project-service.js +2 -2
  312. package/dist/src/projects/workspace.js +1 -1
  313. package/dist/src/providers/model-catalog-persistence.js +1 -1
  314. package/dist/src/providers/model-registry.js +1 -1
  315. package/dist/src/realtime/compact-run-event.js +5 -1
  316. package/dist/src/session/compact-history.js +6 -3
  317. package/dist/src/session/history-recall-policy.js +2 -2
  318. package/dist/src/session/index.js +1 -1
  319. package/dist/src/session/reset-triggers.js +1 -1
  320. package/dist/src/session/session-title.js +1 -1
  321. package/dist/src/session/store.js +1 -1
  322. package/dist/src/share/share-landing.d.ts +2 -0
  323. package/dist/src/share/share-landing.js +4 -0
  324. package/dist/src/share/share-store.js +3 -2
  325. package/dist/src/share/share-thumbnail.js +1 -1
  326. package/dist/src/share/share-types.d.ts +4 -0
  327. package/dist/src/share/site-proxy.js +1 -1
  328. package/dist/src/space/repository.d.ts +9 -1
  329. package/dist/src/space/repository.js +75 -30
  330. package/dist/src/storage/sqlite/device-pairing-approval.js +1 -0
  331. package/dist/src/tasks/capabilities/read.js +4 -4
  332. package/dist/src/tasks/capabilities/relations.js +1 -1
  333. package/dist/src/tasks/capabilities/write.js +4 -4
  334. package/dist/src/tasks/home-query-service.js +1 -1
  335. package/dist/src/tasks/index.js +2 -2
  336. package/dist/src/tasks/task-allocation-service.js +4 -4
  337. package/dist/src/tasks/task-application-service.js +2 -2
  338. package/dist/src/tasks/task-contract-planner.js +1 -1
  339. package/dist/src/tasks/task-execution-capabilities.js +1 -1
  340. package/dist/src/tasks/task-handoff-service.js +1 -1
  341. package/dist/src/tasks/task-handoff.js +6 -6
  342. package/dist/src/tasks/task-json-acceptance.js +1 -1
  343. package/dist/src/tasks/task-main-update-decision-service.js +2 -2
  344. package/dist/src/tasks/task-main-update-delivery.js +1 -1
  345. package/dist/src/tasks/task-model-call.js +1 -1
  346. package/dist/src/tasks/task-research-result.js +2 -2
  347. package/dist/src/tasks/task-result-delivery-service.js +1 -1
  348. package/dist/src/tasks/task-retry-service.js +1 -1
  349. package/dist/src/tasks/task-run-coordinator.js +4 -4
  350. package/dist/src/tasks/task-run-dispatcher.js +1 -1
  351. package/dist/src/tui/backends/embedded-backend.js +6 -6
  352. package/dist/src/tui/tui-capabilities.js +2 -2
  353. package/dist/src/tui/tui-commands.d.ts +2 -1
  354. package/dist/src/tui/tui-commands.js +5 -5
  355. package/dist/src/tui/tui-management.js +6 -6
  356. package/dist/src/tui/tui-skills-autocomplete.js +1 -1
  357. package/dist/src/tui/tui-startup-resources.js +2 -2
  358. package/dist/src/tui/tui-submit.d.ts +1 -1
  359. package/dist/src/tui/tui-submit.js +2 -4
  360. package/dist/src/tui/tui.js +4 -4
  361. package/dist/src/user-context/access-policy.js +2 -2
  362. package/dist/src/user-model/bootstrap.js +1 -1
  363. package/dist/src/user-model/capture/executor.js +2 -2
  364. package/dist/src/user-model/index.js +2 -2
  365. package/dist/src/user-model/usage-policy.js +1 -1
  366. package/dist/src/video-generation/artifact.d.ts +1 -1
  367. package/dist/src/video-generation/artifact.js +4 -28
  368. package/dist/src/video-generation/drafts.js +2 -0
  369. package/dist/src/video-generation/repository.js +13 -6
  370. package/dist/src/voice/realtime/conversation-context.js +1 -1
  371. package/dist/src/voice/realtime/memory-context.js +4 -4
  372. package/dist/src/voice/realtime/persona-context.js +1 -1
  373. package/dist/src/voice/realtime/user-context.js +1 -1
  374. package/dist/src/work-discovery/service.js +6 -6
  375. package/package.json +1 -1
  376. package/dist/gateway/static/root/assets/browser-notification-delivery-DmE2FgGc.js +0 -1
  377. package/dist/gateway/static/root/assets/capabilities-page-BFYx0xu5.js +0 -2
  378. package/dist/gateway/static/root/assets/chat-page-D7l_0kTV.js +0 -74
  379. package/dist/gateway/static/root/assets/command-palette-api-YP0zV_Ol.js +0 -1
  380. package/dist/gateway/static/root/assets/device-connections-panel-XtEX1NcJ.js +0 -1
  381. package/dist/gateway/static/root/assets/file-preview-surface-BOfJPMux.js +0 -1
  382. package/dist/gateway/static/root/assets/gateway-realtime-jIH8iEGO.js +0 -1
  383. package/dist/gateway/static/root/assets/index-Cl5ueYDl.css +0 -1
  384. package/dist/gateway/static/root/assets/index-DYRzuQl_.js +0 -11
  385. package/dist/gateway/static/root/assets/map-pin-DNclV497.js +0 -1
  386. package/dist/gateway/static/root/assets/note-detail-panel-lU1-3mBw.js +0 -7
  387. package/dist/gateway/static/root/assets/product-automation-feedback-BxA2Ype-.js +0 -1
  388. package/dist/gateway/static/root/assets/route-preload-B-OXsVjy.js +0 -2
  389. package/dist/gateway/static/root/assets/routine-panel-BWLC11Ou.js +0 -2
  390. package/dist/gateway/static/root/assets/space-page-DhhqkNGh.js +0 -2
  391. package/dist/gateway/static/root/assets/system-settings-panel-Gu0rWNOv.js +0 -1
  392. package/dist/gateway/static/root/assets/use-composer-attachments-Dnrs5cP1.js +0 -2
  393. package/dist/gateway/static/root/assets/workspace-file-preview-dialog-BlNfLhnV.js +0 -1
@@ -1,4 +1,4 @@
1
- import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,t as n}from"./vendor-react-BOUWij0V.js";import{n as r}from"./locale-store-CHjsq5NR.js";import{t as i}from"./messages-C7QSnTdg.js";import{t as a}from"./plus-Q2yW6OE7.js";import{t as o}from"./square-terminal-K87bylpZ.js";import{t as s}from"./x-B_N4OPjy.js";import{t as c}from"./skeleton-DzdOeGYz.js";import{u as l}from"./session-api-CR3NLqvs.js";import{t as u}from"./session-manager-CVNlrzFB.js";import{t as d}from"./button-C5tRaJxt.js";import{t as f}from"./sliding-tab-list-CmcrqRzN.js";import{n as p,r as m,t as h}from"./terminal-panel-store-Cy90Ix5U.js";var g=2,_=1,ee=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,n=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(n.getPropertyValue(`height`)),i=Math.max(0,parseInt(n.getPropertyValue(`width`))),a=window.getComputedStyle(this._terminal.element),o={top:parseInt(a.getPropertyValue(`padding-top`)),bottom:parseInt(a.getPropertyValue(`padding-bottom`)),right:parseInt(a.getPropertyValue(`padding-right`)),left:parseInt(a.getPropertyValue(`padding-left`))},s=o.top+o.bottom,c=o.right+o.left,l=r-s,u=i-c-t;return{cols:Math.max(g,Math.floor(u/e.css.cell.width)),rows:Math.max(_,Math.floor(l/e.css.cell.height))}}},te=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,re=(e,t)=>{for(var n in t)te(e,n,{get:t[n],enumerable:!0})},v=(e,t,n,r)=>{for(var i=r>1?void 0:r?ne(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&te(t,n,i),i},y=(e,t)=>(n,r)=>t(n,r,e),ie=`Terminal input`,ae={get:()=>ie,set:e=>ie=e},oe=`Too much output to announce, navigate to rows manually to read`,b={get:()=>oe,set:e=>oe=e};function se(e){return e.replace(/\r?\n/g,`\r`)}function x(e,t){return t?`\x1B[200~`+e+`\x1B[201~`:e}function ce(e,t){e.clipboardData&&e.clipboardData.setData(`text/plain`,t.selectionText),e.preventDefault()}function le(e,t,n,r){e.stopPropagation(),e.clipboardData&&ue(e.clipboardData.getData(`text/plain`),t,n,r)}function ue(e,t,n,r){e=se(e),e=x(e,n.decPrivateModes.bracketedPasteMode&&r.rawOptions.ignoreBracketedPasteMode!==!0),n.triggerDataEvent(e,!0),t.value=``}function S(e,t,n){let r=n.getBoundingClientRect(),i=e.clientX-r.left-10,a=e.clientY-r.top-10;t.style.width=`20px`,t.style.height=`20px`,t.style.left=`${i}px`,t.style.top=`${a}px`,t.style.zIndex=`1000`,t.focus()}function de(e,t,n,r,i){S(e,t,n),i&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}function C(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function fe(e,t=0,n=e.length){let r=``;for(let i=t;i<n;++i){let t=e[i];t>65535?(t-=65536,r+=String.fromCharCode((t>>10)+55296)+String.fromCharCode(t%1024+56320)):r+=String.fromCharCode(t)}return r}var pe=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i=0;if(this._interim){let n=e.charCodeAt(i++);56320<=n&&n<=57343?t[r++]=(this._interim-55296)*1024+n-56320+65536:(t[r++]=this._interim,t[r++]=n),this._interim=0}for(let a=i;a<n;++a){let i=e.charCodeAt(a);if(55296<=i&&i<=56319){if(++a>=n)return this._interim=i,r;let o=e.charCodeAt(a);56320<=o&&o<=57343?t[r++]=(i-55296)*1024+o-56320+65536:(t[r++]=i,t[r++]=o);continue}i!==65279&&(t[r++]=i)}return r}},me=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i,a,o,s,c=0,l=0;if(this.interim[0]){let i=!1,a=this.interim[0];a&=(a&224)==192?31:(a&240)==224?15:7;let o=0,s;for(;(s=this.interim[++o]&63)&&o<4;)a<<=6,a|=s;let c=(this.interim[0]&224)==192?2:(this.interim[0]&240)==224?3:4,u=c-o;for(;l<u;){if(l>=n)return 0;if(s=e[l++],(s&192)!=128){l--,i=!0;break}else this.interim[o++]=s,a<<=6,a|=s&63}i||(c===2?a<128?l--:t[r++]=a:c===3?a<2048||a>=55296&&a<=57343||a===65279||(t[r++]=a):a<65536||a>1114111||(t[r++]=a)),this.interim.fill(0)}let u=n-4,d=l;for(;d<n;){for(;d<u&&!((i=e[d])&128)&&!((a=e[d+1])&128)&&!((o=e[d+2])&128)&&!((s=e[d+3])&128);)t[r++]=i,t[r++]=a,t[r++]=o,t[r++]=s,d+=4;if(i=e[d++],i<128)t[r++]=i;else if((i&224)==192){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(c=(i&31)<<6|a&63,c<128){d--;continue}t[r++]=c}else if((i&240)==224){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(c=(i&15)<<12|(a&63)<<6|o&63,c<2048||c>=55296&&c<=57343||c===65279)continue;t[r++]=c}else if((i&248)==240){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,this.interim[2]=o,r;if(s=e[d++],(s&192)!=128){d--;continue}if(c=(i&7)<<18|(a&63)<<12|(o&63)<<6|s&63,c<65536||c>1114111)continue;t[r++]=c}}return r}},w=``,he=` `,ge=class e{constructor(){this.fg=0,this.bg=0,this.extended=new _e}static toColorRGB(e){return[e>>>16&255,e>>>8&255,e&255]}static fromColorRGB(e){return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255}clone(){let t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)==50331648}isBgRGB(){return(this.bg&50331648)==50331648}isFgPalette(){return(this.fg&50331648)==16777216||(this.fg&50331648)==33554432}isBgPalette(){return(this.bg&50331648)==16777216||(this.bg&50331648)==33554432}isFgDefault(){return(this.fg&50331648)==0}isBgDefault(){return(this.bg&50331648)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==16777216||(this.extended.underlineColor&50331648)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==0:this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},_e=class e{constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(e){this._ext&=-67108864,this._ext|=e&67108863}get urlId(){return this._urlId}set urlId(e){this._urlId=e}get underlineVariantOffset(){let e=(this._ext&3758096384)>>29;return e<0?e^4294967288:e}set underlineVariantOffset(e){this._ext&=536870911,this._ext|=e<<29&3758096384}clone(){return new e(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},T=class e extends ge{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new _e,this.combinedData=``}static fromCharData(t){let n=new e;return n.setFromCharData(t),n}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?C(this.content&2097151):``}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(e){this.fg=e[0],this.bg=0;let t=!1;if(e[1].length>2)t=!0;else if(e[1].length===2){let n=e[1].charCodeAt(0);if(55296<=n&&n<=56319){let r=e[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(n-55296)*1024+r-56320+65536|e[2]<<22:t=!0}else t=!0}else this.content=e[1].charCodeAt(0)|e[2]<<22;t&&(this.combinedData=e[1],this.content=2097152|e[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},ve=`di$target`,ye=`di$dependencies`,be=new Map;function xe(e){return e[ye]||[]}function E(e){if(be.has(e))return be.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);Se(t,e,r)};return t._id=e,be.set(e,t),t}function Se(e,t,n){t[ve]===t?t[ye].push({id:e,index:n}):(t[ye]=[{id:e,index:n}],t[ve]=t)}var D=E(`BufferService`),Ce=E(`CoreMouseService`),we=E(`CoreService`),Te=E(`CharsetService`),Ee=E(`InstantiationService`),De=E(`LogService`),O=E(`OptionsService`),Oe=E(`OscLinkService`),ke=E(`UnicodeService`),Ae=E(`DecorationService`),je=class{constructor(e,t,n){this._bufferService=e,this._optionsService=t,this._oscLinkService=n}provideLinks(e,t){let n=this._bufferService.buffer.lines.get(e-1);if(!n){t(void 0);return}let r=[],i=this._optionsService.rawOptions.linkHandler,a=new T,o=n.getTrimmedLength(),s=-1,c=-1,l=!1;for(let t=0;t<o;t++)if(!(c===-1&&!n.hasContent(t))){if(n.loadCell(t,a),a.hasExtendedAttrs()&&a.extended.urlId)if(c===-1){c=t,s=a.extended.urlId;continue}else l=a.extended.urlId!==s;else c!==-1&&(l=!0);if(l||c!==-1&&t===o-1){let n=this._oscLinkService.getLinkData(s)?.uri;if(n){let a={start:{x:c+1,y:e},end:{x:t+ +(!l&&t===o-1),y:e}},s=!1;if(!i?.allowNonHttpProtocols)try{let e=new URL(n);[`http:`,`https:`].includes(e.protocol)||(s=!0)}catch{s=!0}s||r.push({text:n,range:a,activate:(e,t)=>i?i.activate(e,t,a):Me(e,t),hover:(e,t)=>i?.hover?.(e,t,a),leave:(e,t)=>i?.leave?.(e,t,a)})}l=!1,a.hasExtendedAttrs()&&a.extended.urlId?(c=t,s=a.extended.urlId):(c=-1,s=-1)}}t(r)}};je=v([y(0,D),y(1,O),y(2,Oe)],je);function Me(e,t){if(confirm(`Do you want to navigate to ${t}?
1
+ import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,t as n}from"./vendor-react-BOUWij0V.js";import{n as r}from"./locale-store-CHjsq5NR.js";import{t as i}from"./messages-C7QSnTdg.js";import{t as a}from"./plus-Q2yW6OE7.js";import{t as o}from"./square-terminal-K87bylpZ.js";import{t as s}from"./x-B_N4OPjy.js";import{t as c}from"./skeleton-DzdOeGYz.js";import{u as l}from"./session-api-CR3NLqvs.js";import{t as u}from"./session-manager-DUWeBdeG.js";import{t as d}from"./button-C5tRaJxt.js";import{t as f}from"./sliding-tab-list-CmcrqRzN.js";import{n as p,r as m,t as h}from"./terminal-panel-store-Cy90Ix5U.js";var g=2,_=1,ee=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,n=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(n.getPropertyValue(`height`)),i=Math.max(0,parseInt(n.getPropertyValue(`width`))),a=window.getComputedStyle(this._terminal.element),o={top:parseInt(a.getPropertyValue(`padding-top`)),bottom:parseInt(a.getPropertyValue(`padding-bottom`)),right:parseInt(a.getPropertyValue(`padding-right`)),left:parseInt(a.getPropertyValue(`padding-left`))},s=o.top+o.bottom,c=o.right+o.left,l=r-s,u=i-c-t;return{cols:Math.max(g,Math.floor(u/e.css.cell.width)),rows:Math.max(_,Math.floor(l/e.css.cell.height))}}},te=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,re=(e,t)=>{for(var n in t)te(e,n,{get:t[n],enumerable:!0})},v=(e,t,n,r)=>{for(var i=r>1?void 0:r?ne(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&te(t,n,i),i},y=(e,t)=>(n,r)=>t(n,r,e),ie=`Terminal input`,ae={get:()=>ie,set:e=>ie=e},oe=`Too much output to announce, navigate to rows manually to read`,b={get:()=>oe,set:e=>oe=e};function se(e){return e.replace(/\r?\n/g,`\r`)}function x(e,t){return t?`\x1B[200~`+e+`\x1B[201~`:e}function ce(e,t){e.clipboardData&&e.clipboardData.setData(`text/plain`,t.selectionText),e.preventDefault()}function le(e,t,n,r){e.stopPropagation(),e.clipboardData&&ue(e.clipboardData.getData(`text/plain`),t,n,r)}function ue(e,t,n,r){e=se(e),e=x(e,n.decPrivateModes.bracketedPasteMode&&r.rawOptions.ignoreBracketedPasteMode!==!0),n.triggerDataEvent(e,!0),t.value=``}function S(e,t,n){let r=n.getBoundingClientRect(),i=e.clientX-r.left-10,a=e.clientY-r.top-10;t.style.width=`20px`,t.style.height=`20px`,t.style.left=`${i}px`,t.style.top=`${a}px`,t.style.zIndex=`1000`,t.focus()}function de(e,t,n,r,i){S(e,t,n),i&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}function C(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function fe(e,t=0,n=e.length){let r=``;for(let i=t;i<n;++i){let t=e[i];t>65535?(t-=65536,r+=String.fromCharCode((t>>10)+55296)+String.fromCharCode(t%1024+56320)):r+=String.fromCharCode(t)}return r}var pe=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i=0;if(this._interim){let n=e.charCodeAt(i++);56320<=n&&n<=57343?t[r++]=(this._interim-55296)*1024+n-56320+65536:(t[r++]=this._interim,t[r++]=n),this._interim=0}for(let a=i;a<n;++a){let i=e.charCodeAt(a);if(55296<=i&&i<=56319){if(++a>=n)return this._interim=i,r;let o=e.charCodeAt(a);56320<=o&&o<=57343?t[r++]=(i-55296)*1024+o-56320+65536:(t[r++]=i,t[r++]=o);continue}i!==65279&&(t[r++]=i)}return r}},me=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i,a,o,s,c=0,l=0;if(this.interim[0]){let i=!1,a=this.interim[0];a&=(a&224)==192?31:(a&240)==224?15:7;let o=0,s;for(;(s=this.interim[++o]&63)&&o<4;)a<<=6,a|=s;let c=(this.interim[0]&224)==192?2:(this.interim[0]&240)==224?3:4,u=c-o;for(;l<u;){if(l>=n)return 0;if(s=e[l++],(s&192)!=128){l--,i=!0;break}else this.interim[o++]=s,a<<=6,a|=s&63}i||(c===2?a<128?l--:t[r++]=a:c===3?a<2048||a>=55296&&a<=57343||a===65279||(t[r++]=a):a<65536||a>1114111||(t[r++]=a)),this.interim.fill(0)}let u=n-4,d=l;for(;d<n;){for(;d<u&&!((i=e[d])&128)&&!((a=e[d+1])&128)&&!((o=e[d+2])&128)&&!((s=e[d+3])&128);)t[r++]=i,t[r++]=a,t[r++]=o,t[r++]=s,d+=4;if(i=e[d++],i<128)t[r++]=i;else if((i&224)==192){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(c=(i&31)<<6|a&63,c<128){d--;continue}t[r++]=c}else if((i&240)==224){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(c=(i&15)<<12|(a&63)<<6|o&63,c<2048||c>=55296&&c<=57343||c===65279)continue;t[r++]=c}else if((i&248)==240){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,this.interim[2]=o,r;if(s=e[d++],(s&192)!=128){d--;continue}if(c=(i&7)<<18|(a&63)<<12|(o&63)<<6|s&63,c<65536||c>1114111)continue;t[r++]=c}}return r}},w=``,he=` `,ge=class e{constructor(){this.fg=0,this.bg=0,this.extended=new _e}static toColorRGB(e){return[e>>>16&255,e>>>8&255,e&255]}static fromColorRGB(e){return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255}clone(){let t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)==50331648}isBgRGB(){return(this.bg&50331648)==50331648}isFgPalette(){return(this.fg&50331648)==16777216||(this.fg&50331648)==33554432}isBgPalette(){return(this.bg&50331648)==16777216||(this.bg&50331648)==33554432}isFgDefault(){return(this.fg&50331648)==0}isBgDefault(){return(this.bg&50331648)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==16777216||(this.extended.underlineColor&50331648)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==0:this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},_e=class e{constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(e){this._ext&=-67108864,this._ext|=e&67108863}get urlId(){return this._urlId}set urlId(e){this._urlId=e}get underlineVariantOffset(){let e=(this._ext&3758096384)>>29;return e<0?e^4294967288:e}set underlineVariantOffset(e){this._ext&=536870911,this._ext|=e<<29&3758096384}clone(){return new e(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},T=class e extends ge{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new _e,this.combinedData=``}static fromCharData(t){let n=new e;return n.setFromCharData(t),n}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?C(this.content&2097151):``}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(e){this.fg=e[0],this.bg=0;let t=!1;if(e[1].length>2)t=!0;else if(e[1].length===2){let n=e[1].charCodeAt(0);if(55296<=n&&n<=56319){let r=e[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(n-55296)*1024+r-56320+65536|e[2]<<22:t=!0}else t=!0}else this.content=e[1].charCodeAt(0)|e[2]<<22;t&&(this.combinedData=e[1],this.content=2097152|e[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},ve=`di$target`,ye=`di$dependencies`,be=new Map;function xe(e){return e[ye]||[]}function E(e){if(be.has(e))return be.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);Se(t,e,r)};return t._id=e,be.set(e,t),t}function Se(e,t,n){t[ve]===t?t[ye].push({id:e,index:n}):(t[ye]=[{id:e,index:n}],t[ve]=t)}var D=E(`BufferService`),Ce=E(`CoreMouseService`),we=E(`CoreService`),Te=E(`CharsetService`),Ee=E(`InstantiationService`),De=E(`LogService`),O=E(`OptionsService`),Oe=E(`OscLinkService`),ke=E(`UnicodeService`),Ae=E(`DecorationService`),je=class{constructor(e,t,n){this._bufferService=e,this._optionsService=t,this._oscLinkService=n}provideLinks(e,t){let n=this._bufferService.buffer.lines.get(e-1);if(!n){t(void 0);return}let r=[],i=this._optionsService.rawOptions.linkHandler,a=new T,o=n.getTrimmedLength(),s=-1,c=-1,l=!1;for(let t=0;t<o;t++)if(!(c===-1&&!n.hasContent(t))){if(n.loadCell(t,a),a.hasExtendedAttrs()&&a.extended.urlId)if(c===-1){c=t,s=a.extended.urlId;continue}else l=a.extended.urlId!==s;else c!==-1&&(l=!0);if(l||c!==-1&&t===o-1){let n=this._oscLinkService.getLinkData(s)?.uri;if(n){let a={start:{x:c+1,y:e},end:{x:t+ +(!l&&t===o-1),y:e}},s=!1;if(!i?.allowNonHttpProtocols)try{let e=new URL(n);[`http:`,`https:`].includes(e.protocol)||(s=!0)}catch{s=!0}s||r.push({text:n,range:a,activate:(e,t)=>i?i.activate(e,t,a):Me(e,t),hover:(e,t)=>i?.hover?.(e,t,a),leave:(e,t)=>i?.leave?.(e,t,a)})}l=!1,a.hasExtendedAttrs()&&a.extended.urlId?(c=t,s=a.extended.urlId):(c=-1,s=-1)}}t(r)}};je=v([y(0,D),y(1,O),y(2,Oe)],je);function Me(e,t){if(confirm(`Do you want to navigate to ${t}?
2
2
 
3
3
  WARNING: This link could potentially be dangerous`)){let e=window.open();if(e){try{e.opener=null}catch{}e.location.href=t}else console.warn(`Opening link blocked as opener could not be cleared`)}}var Ne=E(`CharSizeService`),Pe=E(`CoreBrowserService`),Fe=E(`MouseService`),Ie=E(`RenderService`),Le=E(`SelectionService`),Re=E(`CharacterJoinerService`),ze=E(`ThemeService`),Be=E(`LinkProviderService`),Ve=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?qe.isErrorNoTelemetry(e)?new qe(e.message+`
4
4
 
@@ -0,0 +1 @@
1
+ import{a as e,i as t,l as n}from"./locale-store-CHjsq5NR.js";import{o as r}from"./local-session-drafts-CGSV1RQg.js";import{t as i}from"./skill-wire-pattern-BPpeIcCi.js";import{t as a}from"./skill-list-api-B26hHnXq.js";var o=new Set([`new`,`reset`,`restart`]),s=new Set([...o,`clear`,`archive`]);function c(e){let t=e.trim(),n=/^\/([^/\s@]+)(?:@[^/\s]+)?(?:\s+([\s\S]*))?$/.exec(t);return n?{name:n[1].toLowerCase(),args:n[2]?.trim()??``}:null}function l(e){let t=c(e);return!!(t&&o.has(t.name)&&!t.args)}function u(e){let t=c(e);return!!(t&&s.has(t.name))}var d=RegExp(`^\\/skill:(${i})`),f=[],p=new Map;function m(e){let t=new Set;for(let n of e??[]){n?.name&&t.add(n.name);for(let e of n.aliases??[])typeof e==`string`&&e.length>0&&t.add(e)}f=Array.from(t).toSorted((e,t)=>t.length-e.length).map(e=>({key:e})),p.clear()}function h(e){let t=c(e);return t!==null&&f.some(({key:e})=>e===t.name)}function g(e,t){if(t>=e.length)return!0;let n=e[t];return!/[a-zA-Z0-9_-]/.test(n)}function _(e,t){return!(e[t]!==`/`||t>0&&!/\s/.test(e[t-1]))}function v(e,t){if(!_(e,t)||f.length===0)return null;let n=e.slice(t);if(n.startsWith(`/skill:`))return null;for(let{key:e}of f){let t=`/${e}`;if(n.startsWith(t)&&g(n,t.length))return{len:t.length,matchedKey:e}}return null}function y(e){let t=[],n=0;for(;n<e.length;){if(e[n]!==`/`){n+=1;continue}let r=e.slice(n).match(d);if(r?.[0]){n+=r[0].length;continue}let i=v(e,n);i?(t.push({start:n,end:n+i.len}),n+=i.len):n+=1}return t}function b(e){for(let t=e.length-1;t>=0;--t){if(e[t]!==`/`||e.startsWith(`/skill:`,t))continue;let n=v(e,t);if(n&&t+n.len===e.length)return!0}return!1}function x(e){if(!e.startsWith(`/`)||f.length===0||e.startsWith(`/skill:`))return!1;let t=v(e,0);return t?e.length===t.len||!/[a-zA-Z0-9_-]/.test(e[t.len]):!1}function S(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function C(e){let t=p.get(e);return t||(t=RegExp(`(${S(e)})([ \\t\\f\\v]*)$`),p.set(e,t)),t}function w(e){for(let{key:t}of f){let n=`/${t}`;if(!e.endsWith(n))continue;let r=e.length-n.length;if(v(e,r))return{tokenStart:r}}return null}function T(e){for(let{key:t}of f){let n=`/${t}`,r=e.match(C(n));if(!r)continue;let i=e.length-r[0].length;if(v(e,i))return{tokenStart:i}}return null}function E(e,t){let n=t.toLowerCase().startsWith(`zh`)?`zh-CN`:`en`,r=e.localizations?.[n]??e.localizations?.en,i=r?.displayName.trim()||e.name,a=r?.description.trim()||e.description,o=new Set([e.name]),s=new Set([e.description]);for(let t of Object.values(e.localizations??{}))t?.displayName.trim()&&o.add(t.displayName.trim()),t?.description.trim()&&s.add(t.description.trim());return o.delete(i),s.delete(a),{displayName:i,description:a,aliases:[...o],searchTerms:[...s]}}async function D(e){let t=await e.json().catch(()=>({}));if(typeof t.error==`string`)return t.error;if(t.error&&typeof t.error==`object`&&`message`in t.error){let e=t.error.message;if(typeof e==`string`)return e}return`HTTP ${e.status}`}async function O(){let n=await e(t(`/api/commands`));if(!n.ok)throw Error(await D(n));return(await n.json()).payload?.commands??[]}var k=6e4,A=null,j=0,M=null,N=null,P=0,F=null,I=0,L=new Map,R=new Map,z=0;function B(e,t){let r=n.getState();return`${e?.trim()||`main`}\u0000${JSON.stringify([r.baseUrl,r.conversationId,t?.trim()||``])}`}async function V(e=!1){return!e&&A&&Date.now()<j?(m(A),A):M||(M=O().then(e=>(A=e,j=Date.now()+k,m(e),e)).catch(e=>{throw m([]),e}).finally(()=>{M=null}),M)}async function H(i,a,o=!1){let s=n.getState().conversationId,c=a?await r(a):void 0;if(s!==n.getState().conversationId)throw Error(`Active Gateway changed`);c&&(i=c.creation.agentId,a=void 0);let l=B(i,a),u=Date.now(),d=L.get(l);if(!o&&d&&u<d.expiry)return d.payload;let f=R.get(l);if(f)return f;let p=z,m=new URLSearchParams({agentId:i?.trim()||`main`});a?.trim()&&m.set(`conversationId`,a.trim());let h=e(t(`/api/chat/skills?${m.toString()}`)).then(async e=>{if(e.status===404&&a)return H(i,void 0,o);if(!e.ok)throw Error(await D(e));let t=await e.json();if(!t.payload||!Array.isArray(t.payload.skills))throw Error(`Invalid /api/chat/skills response`);return p===z&&L.set(l,{payload:t.payload,expiry:Date.now()+k}),t.payload}).finally(()=>{R.delete(l)});return R.set(l,h),h}async function U(n,r,i){let a=n?.trim()||`main`,o=await H(a,i,!0),s=new Set(o.effectiveAllowlist??o.agentAllowlist??[]);s.add(r);let c=await e(t(`/api/agents/${encodeURIComponent(a)}`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({skills:[...s].sort((e,t)=>e.localeCompare(t))})});if(!c.ok)throw Error(await D(c));W(a)}function W(e){if(z+=1,e){let t=`${e.trim()}\u0000`;for(let e of L.keys())e.startsWith(t)&&L.delete(e);for(let e of R.keys())e.startsWith(t)&&R.delete(e);return}L.clear(),R.clear()}async function G(n){let r=await e(t(`/api/chat/workspace-trust?${new URLSearchParams({conversationId:n}).toString()}`));if(!r.ok)throw Error(await D(r));let i=await r.json();if(!i.payload)throw Error(`Invalid /api/chat/workspace-trust response`);return i.payload}async function K(n,r){let i=await e(t(`/api/chat/workspace-trust`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({conversationId:n,trusted:r})});if(!i.ok)throw Error(await D(i));let a=await i.json();if(!a.payload)throw Error(`Invalid /api/chat/workspace-trust response`);return q(),a.payload}function q(e){W(e),e||(I+=1,N=null,P=0,F=null)}async function J(e=!1){if(!e&&N&&Date.now()<P)return N;if(F)return F;let t=I;return F=a().then(e=>(t===I&&(N=e,P=Date.now()+k),e)).finally(()=>{F=null}),F}export{l as _,H as a,K as c,x as d,T as f,b as g,v as h,V as i,E as l,h as m,W as n,J as o,w as p,q as r,G as s,U as t,y as u,u as v};