@xopcai/xopc 0.0.455 → 0.0.457

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 (309) hide show
  1. package/dist/browser-ext/dist/sidepanel.js +5 -1
  2. package/dist/browser-ext/manifest.json +1 -1
  3. package/dist/extensions/telegram/xopc.extension.json +1 -1
  4. package/dist/gateway/static/root/assets/{activity-store-DYwR1u3f.js → activity-store-CQHh48Zf.js} +1 -1
  5. package/dist/gateway/static/root/assets/{agent-avatar-dicebear-CsRBprL-.js → agent-avatar-dicebear-CAz-Ke6Q.js} +1 -1
  6. package/dist/gateway/static/root/assets/{agent-avatar-display-DqFYHXCS.js → agent-avatar-display-loBdGw_i.js} +2 -2
  7. package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-DOAJrMLe.js → agent-defaults-settings-panel-By2Q-6JS.js} +1 -1
  8. package/dist/gateway/static/root/assets/{agent-plugin-dialog-vqlN3ORH.js → agent-plugin-dialog-CikzCYAG.js} +1 -1
  9. package/dist/gateway/static/root/assets/{agents-BgHlOVRV.js → agents-CGUdvmIT.js} +3 -3
  10. package/dist/gateway/static/root/assets/{agents-admin-api-CKscfdvA.js → agents-admin-api-D0N09mqJ.js} +1 -1
  11. package/dist/gateway/static/root/assets/{api-CHM2c_Ah.js → api-B1J5ajiP.js} +1 -1
  12. package/dist/gateway/static/root/assets/{api-DPNeNCmR.js → api-B4FJ51EC.js} +1 -1
  13. package/dist/gateway/static/root/assets/{app-management-settings-panel-Bhz6bj1C.js → app-management-settings-panel-BHlUDZOG.js} +1 -1
  14. package/dist/gateway/static/root/assets/{appearance-settings-BX32aogA.js → appearance-settings-Du5JLyV1.js} +1 -1
  15. package/dist/gateway/static/root/assets/{apps-page-0Yo3jBsQ.js → apps-page-M2XD1Pzu.js} +1 -1
  16. package/dist/gateway/static/root/assets/{archive-plugin-Bha8obMe.js → archive-plugin-BAvglLfu.js} +1 -1
  17. package/dist/gateway/static/root/assets/{automation-api-mn8ihWJ_.js → automation-api-DxBmyzp0.js} +1 -1
  18. package/dist/gateway/static/root/assets/{automation-result-state-COzakzak.js → automation-result-state-CAsqgMNR.js} +1 -1
  19. package/dist/gateway/static/root/assets/{automation-run-list-BhtaMpTb.js → automation-run-list-BmYeWB_N.js} +1 -1
  20. package/dist/gateway/static/root/assets/{automation-task-card-BY_k6iWp.js → automation-task-card-BjqxvYqc.js} +1 -1
  21. package/dist/gateway/static/root/assets/{automations-page-Dt_Z1UTT.js → automations-page-BSnPWyYd.js} +1 -1
  22. package/dist/gateway/static/root/assets/automations-workspace-DIaCdxtX.js +9 -0
  23. package/dist/gateway/static/root/assets/{binary-plugins-DUbrJFLU.js → binary-plugins-D2bFqG6K.js} +1 -1
  24. package/dist/gateway/static/root/assets/{block-editor-DW--pXAc.js → block-editor-CmnkluMF.js} +1 -1
  25. package/dist/gateway/static/root/assets/{browser-settings-page-CDh6nxs9.js → browser-settings-page-CGcgZOWh.js} +1 -1
  26. package/dist/gateway/static/root/assets/capabilities-DB713nRi.js +1 -0
  27. package/dist/gateway/static/root/assets/{capabilities-DKbXv8Ck.js → capabilities-DDqDvCBs.js} +1 -1
  28. package/dist/gateway/static/root/assets/{capabilities-page-D1wQ2sPI.js → capabilities-page-dXDa0i5o.js} +2 -2
  29. package/dist/gateway/static/root/assets/{capabilities-settings-panel-BW5jQz5R.js → capabilities-settings-panel-CvF8VRTv.js} +1 -1
  30. package/dist/gateway/static/root/assets/{channels-BzZp42yO.js → channels-BDVQ6Z7A.js} +1 -1
  31. package/dist/gateway/static/root/assets/{chat-agents-api-UOdNWZ0_.js → chat-agents-api-CjlzCSmC.js} +1 -1
  32. package/dist/gateway/static/root/assets/{chat-chart-block-NSy-B0NS.js → chat-chart-block-stPJEZ90.js} +1 -1
  33. package/dist/gateway/static/root/assets/chat-page-Bx_A__qB.js +71 -0
  34. package/dist/gateway/static/root/assets/{chat-terminal-dock-CAaHWS7F.js → chat-terminal-dock-B4uA_W6R.js} +1 -1
  35. package/dist/gateway/static/root/assets/{command-palette-api-Dkn9bbYd.js → command-palette-api-CP0F6sIm.js} +1 -1
  36. package/dist/gateway/static/root/assets/{composer-model-config-control-BrK8-SNz.js → composer-model-config-control-DAagrRx_.js} +1 -1
  37. package/dist/gateway/static/root/assets/{composer-notifications-B-kL3qAA.js → composer-notifications-CqV6Xj-H.js} +1 -1
  38. package/dist/gateway/static/root/assets/composer-payload-handoff-Dc43dgSg.js +1 -0
  39. package/dist/gateway/static/root/assets/{computer-settings-page-C9KdEecx.js → computer-settings-page-f-vcEpeF.js} +1 -1
  40. package/dist/gateway/static/root/assets/{connected-providers-grid-D_8v6Qex.js → connected-providers-grid-CZ-FXxaW.js} +1 -1
  41. package/dist/gateway/static/root/assets/{connection-usage-guide-CiVpcbds.js → connection-usage-guide-Cibh2lrV.js} +1 -1
  42. package/dist/gateway/static/root/assets/{connector-service-page-B919cKSm.js → connector-service-page-Btz68iy8.js} +1 -1
  43. package/dist/gateway/static/root/assets/{connectors-api-CgsSm-Av.js → connectors-api-CTuVWwBf.js} +1 -1
  44. package/dist/gateway/static/root/assets/{connectors-page-CEpfDCLA.js → connectors-page-BwJHhyRb.js} +1 -1
  45. package/dist/gateway/static/root/assets/{date-picker-dx284jQI.js → date-picker-XnE3iFhG.js} +1 -1
  46. package/dist/gateway/static/root/assets/{date-time-picker-Dj-bhLNP.js → date-time-picker-VGKm0HVn.js} +1 -1
  47. package/dist/gateway/static/root/assets/{desktop-pet-DlTuGzZ2.js → desktop-pet-CBm3DySQ.js} +1 -1
  48. package/dist/gateway/static/root/assets/{desktop-pet-narrative-cBFIPXzR.js → desktop-pet-narrative-JqMsz4rn.js} +1 -1
  49. package/dist/gateway/static/root/assets/{desktop-pet-settings-CsmrvoxU.js → desktop-pet-settings-6O77QXGo.js} +1 -1
  50. package/dist/gateway/static/root/assets/{dev-view-store-BOxbj1ie.js → dev-view-store-B8fGILny.js} +1 -1
  51. package/dist/gateway/static/root/assets/{device-pairing-wizard-CAqFIFRC.js → device-pairing-wizard-qtUvtdDT.js} +1 -1
  52. package/dist/gateway/static/root/assets/{directory-picker-path-field-BxEw5OrT.js → directory-picker-path-field-ByDqf5fE.js} +1 -1
  53. package/dist/gateway/static/root/assets/{discussion-annotation-sync-CyntTwIa.js → discussion-annotation-sync-fwPPMPv9.js} +1 -1
  54. package/dist/gateway/static/root/assets/{extension-authoritative-grants-C0ReZguU.js → extension-authoritative-grants-BfL8dMBf.js} +1 -1
  55. package/dist/gateway/static/root/assets/{extension-debug-page-Cd3HMUbi.js → extension-debug-page-BPwRrP3L.js} +1 -1
  56. package/dist/gateway/static/root/assets/{extension-iframe-host-DiIqM2JO.js → extension-iframe-host-DIH4TcdH.js} +1 -1
  57. package/dist/gateway/static/root/assets/{extension-marketplace-api-CK5CMKTs.js → extension-marketplace-api-BIzkukYp.js} +1 -1
  58. package/dist/gateway/static/root/assets/{extension-message-router-Dn8JzOdR.js → extension-message-router-C9JDpo_7.js} +1 -1
  59. package/dist/gateway/static/root/assets/{extension-page-CLZtAtqm.js → extension-page-CLDoL5N8.js} +1 -1
  60. package/dist/gateway/static/root/assets/{extension-provider-CbVokTvd.js → extension-provider-BPIoHw4r.js} +1 -1
  61. package/dist/gateway/static/root/assets/{extension-settings-page-BM79cwUy.js → extension-settings-page-BO_UKeG8.js} +1 -1
  62. package/dist/gateway/static/root/assets/file-preview-surface-i5UOFnQF.js +1 -0
  63. package/dist/gateway/static/root/assets/{gateway-config-swr-OGhON-s6.js → gateway-config-swr-1Rk0LeEM.js} +1 -1
  64. package/dist/gateway/static/root/assets/{gateway-realtime-B9u4uSXW.js → gateway-realtime-DIs1pjkQ.js} +1 -1
  65. package/dist/gateway/static/root/assets/gateway-realtime-store-sx7B8kdC.js +1 -0
  66. package/dist/gateway/static/root/assets/{gateway-restart-DKAweWmg.js → gateway-restart-DTmlcJps.js} +1 -1
  67. package/dist/gateway/static/root/assets/{gateway-settings-Dc7qUbG-.js → gateway-settings-ClcCloqQ.js} +1 -1
  68. package/dist/gateway/static/root/assets/{gateway-startup-retry-BaaoKBoB.js → gateway-startup-retry-D6WPS0RW.js} +1 -1
  69. package/dist/gateway/static/root/assets/{global-defaults-api-BIr3ApRj.js → global-defaults-api-BpDMnJe7.js} +1 -1
  70. package/dist/gateway/static/root/assets/home-page-D1sTZYAY.js +3 -0
  71. package/dist/gateway/static/root/assets/{image-generation-api-C7D2IetZ.js → image-generation-api-sbtx4NiC.js} +1 -1
  72. package/dist/gateway/static/root/assets/{imports-page-BjEdZJxZ.js → imports-page-CBlaxUhl.js} +1 -1
  73. package/dist/gateway/static/root/assets/index-CHAVhyVb.js +11 -0
  74. package/dist/gateway/static/root/assets/index-CQABygtM.css +1 -0
  75. package/dist/gateway/static/root/assets/{install-connector-dialog-BsiyYQhx.js → install-connector-dialog-DxSv1wS2.js} +1 -1
  76. package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-CIthQ1lp.js → keyboard-shortcuts-settings-CnAV96nr.js} +1 -1
  77. package/dist/gateway/static/root/assets/{local-app-workbench-page-CSCIHvZV.js → local-app-workbench-page-D8oqDDAn.js} +1 -1
  78. package/dist/gateway/static/root/assets/{local-apps-page-EntiM0tz.js → local-apps-page-BI3Be5qo.js} +1 -1
  79. package/dist/gateway/static/root/assets/{local-session-drafts-XurtjR58.js → local-session-drafts-BIBHRkpM.js} +2 -2
  80. package/dist/gateway/static/root/assets/{locale-store-cg9cm2EL.js → locale-store-Dy1EByeG.js} +1 -1
  81. package/dist/gateway/static/root/assets/{logs-page-rmS9VSem.js → logs-page-CMW34T31.js} +1 -1
  82. package/dist/gateway/static/root/assets/{management-api-B6jVuJ6W.js → management-api-B5w5DdXH.js} +1 -1
  83. package/dist/gateway/static/root/assets/{management-settings-DdI9gs51.js → management-settings-DfcMIqbQ.js} +1 -1
  84. package/dist/gateway/static/root/assets/{markdown-view-D1zBWkfB.js → markdown-view-BlxIaCCQ.js} +1 -1
  85. package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-Bn49Ph1n.js → mcp-conversation-setup-page-CsTSmjmX.js} +1 -1
  86. package/dist/gateway/static/root/assets/{media-plugins-Cd6hAGDp.js → media-plugins-DGhWjPIU.js} +1 -1
  87. package/dist/gateway/static/root/assets/messages-BAnhwALN.js +3 -0
  88. package/dist/gateway/static/root/assets/{model-selector-CL6WT-jw.js → model-selector-C-CqPBao.js} +1 -1
  89. package/dist/gateway/static/root/assets/{models-hub-cache-s0FMNhq9.js → models-hub-cache-Bgh3Gfgl.js} +1 -1
  90. package/dist/gateway/static/root/assets/{note-detail-panel-anM38aV6.js → note-detail-panel-B1cq9sU2.js} +3 -3
  91. package/dist/gateway/static/root/assets/note-image-lightbox-CqK_uJ6Y.js +1 -0
  92. package/dist/gateway/static/root/assets/{notes-api-CR75RHd0.js → notes-api-CdXA-g9r.js} +1 -1
  93. package/dist/gateway/static/root/assets/{notes-page-BsZmT7Zw.js → notes-page-Do0l5Ddr.js} +1 -1
  94. package/dist/gateway/static/root/assets/{oauth-api-CvPnQTlH.js → oauth-api-B560CHeD.js} +1 -1
  95. package/dist/gateway/static/root/assets/{oauth-provider-connect-Dk1NeeqD.js → oauth-provider-connect-D63M8Iv7.js} +1 -1
  96. package/dist/gateway/static/root/assets/{page-context-capture-button-BPtX67hZ.js → page-context-capture-button-Dibmspef.js} +1 -1
  97. package/dist/gateway/static/root/assets/{page-context-draft-Ckb8baxj.js → page-context-draft-Cr5GqS2D.js} +1 -1
  98. package/dist/gateway/static/root/assets/page-header-store-Bm8oxpFR.js +1 -0
  99. package/dist/gateway/static/root/assets/{personal-avatar-CZSnrSfc.js → personal-avatar-BMRVyTrE.js} +1 -1
  100. package/dist/gateway/static/root/assets/{personal-page-BSCNuRMT.js → personal-page-DrYh0NPE.js} +1 -1
  101. package/dist/gateway/static/root/assets/{personal-profile-settings-DJRDcK2c.js → personal-profile-settings-HMQY9lz9.js} +1 -1
  102. package/dist/gateway/static/root/assets/{personal-settings-panel-C6p25Noq.js → personal-settings-panel-BppxtWBl.js} +1 -1
  103. package/dist/gateway/static/root/assets/{phone-dependencies-card-DKkFFpqi.js → phone-dependencies-card-flTci8mm.js} +1 -1
  104. package/dist/gateway/static/root/assets/{phone-model-connection-CRRHq4PQ.js → phone-model-connection-Vi_Swyv6.js} +1 -1
  105. package/dist/gateway/static/root/assets/{phone-model-picker-CN_I0-46.js → phone-model-picker-BOv3mb_F.js} +1 -1
  106. package/dist/gateway/static/root/assets/{phone-settings-page-CkdSOA7D.js → phone-settings-page-vD0bTcHj.js} +1 -1
  107. package/dist/gateway/static/root/assets/{phone-workspace-store-CC61pIuJ.js → phone-workspace-store-Ltrevdsx.js} +1 -1
  108. package/dist/gateway/static/root/assets/{plugin-details-dialog-Bqz4jT53.js → plugin-details-dialog-nSDw8sfo.js} +1 -1
  109. package/dist/gateway/static/root/assets/{preference-select-fields-DHeNbAvn.js → preference-select-fields-D1pZekPs.js} +1 -1
  110. package/dist/gateway/static/root/assets/{product-automation-feedback-BN2HTA9T.js → product-automation-feedback-D51I7Lg3.js} +1 -1
  111. package/dist/gateway/static/root/assets/{product-open-page-B-j4gpLD.js → product-open-page-BO8lUvw3.js} +1 -1
  112. package/dist/gateway/static/root/assets/{product-preview-content-EqrTk7kU.js → product-preview-content-CUaHxyiE.js} +1 -1
  113. package/dist/gateway/static/root/assets/{product-preview-modal-aurFBFq4.js → product-preview-modal-BUeyRD5W.js} +2 -2
  114. package/dist/gateway/static/root/assets/{project-detail-page-ibZZ_w51.js → project-detail-page-D3k1NzXQ.js} +2 -2
  115. package/dist/gateway/static/root/assets/{project-understanding-HNK9lFVy.js → project-understanding-Cg8WbBNB.js} +1 -1
  116. package/dist/gateway/static/root/assets/{projects-page-CugSyKl5.js → projects-page-C6Pt6OdT.js} +1 -1
  117. package/dist/gateway/static/root/assets/{providers-api-DUntOOqr.js → providers-api-Nytkkop9.js} +1 -1
  118. package/dist/gateway/static/root/assets/{recording-upload-DIwP541B.js → recording-upload-CyZSl2DJ.js} +1 -1
  119. package/dist/gateway/static/root/assets/{registry-api-BTd_OgbD.js → registry-api-DuDIthjL.js} +1 -1
  120. package/dist/gateway/static/root/assets/{remote-access-hub-f5mIfsBF.js → remote-access-hub-DePwafOK.js} +1 -1
  121. package/dist/gateway/static/root/assets/{resource-unavailable-DtQ2rfu_.js → resource-unavailable-BRKhKJA0.js} +1 -1
  122. package/dist/gateway/static/root/assets/right-workspace-store-HPw7Gw0n.js +1 -0
  123. package/dist/gateway/static/root/assets/route-preload-CTuS4GFj.js +2 -0
  124. package/dist/gateway/static/root/assets/routine-panel-9UC3NU5V.js +2 -0
  125. package/dist/gateway/static/root/assets/{runtime-tools-api-C1iI8EPo.js → runtime-tools-api-Dd8a07eo.js} +1 -1
  126. package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-0tdI1z0g.js → runtime-tools-settings-panel-CvHQoqHu.js} +1 -1
  127. package/dist/gateway/static/root/assets/{service-recommendation-list-DSIe-NRe.js → service-recommendation-list-8mVIWB38.js} +1 -1
  128. package/dist/gateway/static/root/assets/{session-api-CQlEq0MB.js → session-api-BFiIYodK.js} +1 -1
  129. package/dist/gateway/static/root/assets/{session-manager-C7RfUfqI.js → session-manager-D2LaQymu.js} +2 -2
  130. package/dist/gateway/static/root/assets/{sessions-page-DdS8U0RV.js → sessions-page-DQEq_VJS.js} +1 -1
  131. package/dist/gateway/static/root/assets/settings-advanced-gate-Cvx7DnU8.js +1 -0
  132. package/dist/gateway/static/root/assets/{settings-advanced-section-C6dPu5i1.js → settings-advanced-section-B-H1gYOs.js} +1 -1
  133. package/dist/gateway/static/root/assets/{settings-mode-store-BSiiowQa.js → settings-mode-store-YH60sibB.js} +1 -1
  134. package/dist/gateway/static/root/assets/{settings-page-DAc5n-mM.js → settings-page-CGiZCF8z.js} +1 -1
  135. package/dist/gateway/static/root/assets/{settings-page-header-BSMu5Zq3.js → settings-page-header-DEZZ8D0S.js} +1 -1
  136. package/dist/gateway/static/root/assets/{settings-page-layout-B_vMffB1.js → settings-page-layout-De2j64Lo.js} +1 -1
  137. package/dist/gateway/static/root/assets/{setup-interaction-page-DKXfFdNt.js → setup-interaction-page-Dh6BPwv0.js} +1 -1
  138. package/dist/gateway/static/root/assets/{setup-status-panel-BbAZ9w77.js → setup-status-panel-DGAAczL-.js} +1 -1
  139. package/dist/gateway/static/root/assets/{share-link-dialog-ztX1WPXG.js → share-link-dialog-C1t_HB6f.js} +1 -1
  140. package/dist/gateway/static/root/assets/{share-preview-page-Ds2Ydfg6.js → share-preview-page-fV5USZb1.js} +1 -1
  141. package/dist/gateway/static/root/assets/{shares-api-CSZqeNL4.js → shares-api-Dm07CnXw.js} +1 -1
  142. package/dist/gateway/static/root/assets/{shares-settings-CX3TNAmI.js → shares-settings-sl40lqND.js} +1 -1
  143. package/dist/gateway/static/root/assets/{skill-api-CGzAQ-MX.js → skill-api-BV8oFqeE.js} +1 -1
  144. package/dist/gateway/static/root/assets/{skill-list-api-DfUsku-x.js → skill-list-api-1o_YRCu9.js} +1 -1
  145. package/dist/gateway/static/root/assets/{skill-reload-api-Y9qSMnBd.js → skill-reload-api-fGsO9Y86.js} +1 -1
  146. package/dist/gateway/static/root/assets/{skills-page-DnMN50Ot.js → skills-page-FTd0Z7Ey.js} +1 -1
  147. package/dist/gateway/static/root/assets/{system-settings-panel-DWNkQmme.js → system-settings-panel-CUI6QHEP.js} +1 -1
  148. package/dist/gateway/static/root/assets/{task-detail-page-BJok6V1K.js → task-detail-page-CWwwumsy.js} +3 -3
  149. package/dist/gateway/static/root/assets/task-result-evidence-CSJeB9AH.js +1 -0
  150. package/dist/gateway/static/root/assets/{terminal-panel-store-D8eZPvql.js → terminal-panel-store-Du53Upr2.js} +1 -1
  151. package/dist/gateway/static/root/assets/{theme-store-GZQ3pTgy.js → theme-store-BaWep_o7.js} +1 -1
  152. package/dist/gateway/static/root/assets/tool-friendly-title-CP35P4VA.js +2 -0
  153. package/dist/gateway/static/root/assets/{tracing-settings-page-DM3-7Hlw.js → tracing-settings-page-CnciBMVH.js} +1 -1
  154. package/dist/gateway/static/root/assets/{tunnel-api-DOGAIXRR.js → tunnel-api-Iz7JCBt3.js} +1 -1
  155. package/dist/gateway/static/root/assets/{understanding-activity-store-CuPfe0eQ.js → understanding-activity-store-BFc8PamJ.js} +1 -1
  156. package/dist/gateway/static/root/assets/understanding-refresh-store-CdEfR40A.js +1 -0
  157. package/dist/gateway/static/root/assets/{usage-page-BA9Yrvqu.js → usage-page-DL2fmeOh.js} +1 -1
  158. package/dist/gateway/static/root/assets/{use-autosave-CO0IPCVg.js → use-autosave-N_SjHXTw.js} +1 -1
  159. package/dist/gateway/static/root/assets/use-composer-attachments-CO7XLI4x.js +2 -0
  160. package/dist/gateway/static/root/assets/{use-file-preview-expanded-dhNMHf5b.js → use-file-preview-expanded-BXXeXnT0.js} +3 -3
  161. package/dist/gateway/static/root/assets/{use-personal-profile-CVqDWBDS.js → use-personal-profile-C1vqD9yV.js} +1 -1
  162. package/dist/gateway/static/root/assets/{use-realtime-voice-DDVVlX1R.js → use-realtime-voice-C7iWQuUv.js} +1 -1
  163. package/dist/gateway/static/root/assets/{use-workspace-tree-CZej8mhf.js → use-workspace-tree-D27u-eoX.js} +1 -1
  164. package/dist/gateway/static/root/assets/user-model-page-D2FHjLi7.js +2 -0
  165. package/dist/gateway/static/root/assets/{voice-api-key-field-DpwUDAvu.js → voice-api-key-field-B_GApUQP.js} +1 -1
  166. package/dist/gateway/static/root/assets/{voice-config-api-GIuXoHXw.js → voice-config-api-DhJ3l8fk.js} +1 -1
  167. package/dist/gateway/static/root/assets/{voice-input-shortcut-events-Cc30ZcFy.js → voice-input-shortcut-events-CEeFBhp3.js} +1 -1
  168. package/dist/gateway/static/root/assets/{voice-settings-DA3m5MT0.js → voice-settings-BiqJ0tlf.js} +1 -1
  169. package/dist/gateway/static/root/assets/{work-discovery-overlay-yGUkk1NV.js → work-discovery-overlay-BNZK4hQ4.js} +1 -1
  170. package/dist/gateway/static/root/assets/{work-discovery-page-RN6iuY-0.js → work-discovery-page-KwSPhukU.js} +1 -1
  171. package/dist/gateway/static/root/assets/{working-directory-picker-modal-CeXl9w6z.js → working-directory-picker-modal-BGZduAXV.js} +1 -1
  172. package/dist/gateway/static/root/assets/{workspace-api-B1Uirhxf.js → workspace-api-LghfbP5g.js} +2 -2
  173. package/dist/gateway/static/root/assets/workspace-editor-agent-store-DVPJcbuE.js +1 -0
  174. package/dist/gateway/static/root/assets/workspace-file-preview-dialog-NffP-UXC.js +1 -0
  175. package/dist/gateway/static/root/assets/{workspace-open-location-menu-DWGNOIE2.js → workspace-open-location-menu-CvZxU9de.js} +1 -1
  176. package/dist/gateway/static/root/assets/workspace-preview-store-Do31QQH5.js +1 -0
  177. package/dist/gateway/static/root/assets/{xopc-cloud-account-card-x-XT4bKF.js → xopc-cloud-account-card-Q_jezTUy.js} +1 -1
  178. package/dist/gateway/static/root/index.html +92 -90
  179. package/dist/package.js +1 -1
  180. package/dist/packages/gateway-contract/src/automations.js +6 -0
  181. package/dist/packages/gateway-contract/src/capabilities.js +1 -1
  182. package/dist/packages/gateway-contract/src/home.js +3 -0
  183. package/dist/packages/gateway-contract/src/index.js +3 -1
  184. package/dist/packages/gateway-contract/src/observation.js +177 -0
  185. package/dist/packages/gateway-contract/src/session-input-command.js +5 -1
  186. package/dist/src/agent/agent-manager.js +6 -1
  187. package/dist/src/agent/background-review/prompts.d.ts +1 -1
  188. package/dist/src/agent/background-review/prompts.js +8 -1
  189. package/dist/src/agent/background-review/run-background-review.js +47 -3
  190. package/dist/src/agent/client-error-format.js +1 -1
  191. package/dist/src/agent/context/audit.js +18 -0
  192. package/dist/src/agent/context/coordinator.d.ts +4 -0
  193. package/dist/src/agent/context/coordinator.js +33 -7
  194. package/dist/src/agent/context/deep-recall.d.ts +33 -0
  195. package/dist/src/agent/context/deep-recall.js +190 -0
  196. package/dist/src/agent/context/execution-context.js +29 -5
  197. package/dist/src/agent/context/execution-context.types.d.ts +2 -0
  198. package/dist/src/agent/context/memory-claim-grounding.d.ts +2 -0
  199. package/dist/src/agent/context/memory-claim-grounding.js +20 -0
  200. package/dist/src/agent/context/recall-grounding.d.ts +3 -0
  201. package/dist/src/agent/context/recall-grounding.js +31 -0
  202. package/dist/src/agent/embedded/execution-tool-policy.d.ts +1 -0
  203. package/dist/src/agent/embedded/execution-tool-policy.js +31 -5
  204. package/dist/src/agent/embedded/run-for-session.js +16 -8
  205. package/dist/src/agent/embedded/run-turn.js +111 -29
  206. package/dist/src/agent/embedded/types.d.ts +2 -0
  207. package/dist/src/agent/fallback/reason.js +1 -1
  208. package/dist/src/agent/memory/context-recovery.d.ts +1 -1
  209. package/dist/src/agent/memory/index.js +1 -1
  210. package/dist/src/agent/orchestration/llm-turn-retry.d.ts +5 -0
  211. package/dist/src/agent/orchestration/llm-turn-retry.js +17 -6
  212. package/dist/src/agent/service/process-direct-streaming.js +1 -1
  213. package/dist/src/agent/service.d.ts +1 -0
  214. package/dist/src/agent/service.js +5 -2
  215. package/dist/src/agent/tools/factory.js +22 -0
  216. package/dist/src/agent/tools/knowledge-memory-tool.js +7 -1
  217. package/dist/src/agent/tools/personal-memory-tool.d.ts +11 -0
  218. package/dist/src/agent/tools/personal-memory-tool.js +387 -0
  219. package/dist/src/agent/tools/session-search-tool.d.ts +2 -0
  220. package/dist/src/agent/tools/session-search-tool.js +21 -7
  221. package/dist/src/agent/tools/user-context-tool.js +11 -1
  222. package/dist/src/automations/capabilities/write.d.ts +10 -0
  223. package/dist/src/automations/domain/types.d.ts +14 -0
  224. package/dist/src/automations/domain/validation.d.ts +20 -0
  225. package/dist/src/automations/domain/validation.js +6 -0
  226. package/dist/src/automations/draft/automation-draft-validator.d.ts +5 -0
  227. package/dist/src/automations/draft/automation-draft-validator.js +1 -0
  228. package/dist/src/automations/index.js +2 -2
  229. package/dist/src/automations/service/action-executor.d.ts +2 -0
  230. package/dist/src/automations/service/action-executor.js +18 -2
  231. package/dist/src/automations/service/index.js +2 -2
  232. package/dist/src/capabilities/runtime/dispatcher.js +1 -1
  233. package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
  234. package/dist/src/config/schema.d.ts +6 -0
  235. package/dist/src/config/schema.js +6 -0
  236. package/dist/src/gateway/agent-builtin-tools.d.ts +1 -1
  237. package/dist/src/gateway/hono/lib/config-payload.d.ts +6 -0
  238. package/dist/src/gateway/hono/routes/home.js +100 -2
  239. package/dist/src/gateway/hono/routes/user-model.js +47 -7
  240. package/dist/src/gateway/security/gateway-scopes.js +1 -0
  241. package/dist/src/gateway/service/config-coordinator.d.ts +6 -0
  242. package/dist/src/gateway/service.js +17 -0
  243. package/dist/src/home-intelligence/application-service.d.ts +1 -0
  244. package/dist/src/home-intelligence/application-service.js +1 -1
  245. package/dist/src/home-intelligence/generator.js +4 -0
  246. package/dist/src/home-intelligence/host.d.ts +157 -1
  247. package/dist/src/home-intelligence/host.js +196 -12
  248. package/dist/src/home-intelligence/observation.d.ts +41 -0
  249. package/dist/src/home-intelligence/observation.js +297 -0
  250. package/dist/src/home-intelligence/repository.d.ts +1 -1
  251. package/dist/src/home-intelligence/routines.d.ts +36 -0
  252. package/dist/src/home-intelligence/routines.js +444 -0
  253. package/dist/src/home-intelligence/snapshot.d.ts +14 -0
  254. package/dist/src/knowledge-memory/index.js +2 -2
  255. package/dist/src/knowledge-memory/repository.d.ts +6 -0
  256. package/dist/src/knowledge-memory/repository.js +49 -1
  257. package/dist/src/knowledge-memory/usage-policy.js +7 -7
  258. package/dist/src/local-apps/automation-proposals.d.ts +20 -0
  259. package/dist/src/memory-learning/work-capture.js +3 -1
  260. package/dist/src/personal-agent/policy.d.ts +1 -1
  261. package/dist/src/personal-agent/policy.js +2 -1
  262. package/dist/src/personal-agent/proactivity/repository.d.ts +1 -1
  263. package/dist/src/personal-agent/prompts.js +7 -1
  264. package/dist/src/providers/model-response.js +1 -1
  265. package/dist/src/realtime/compact-run-event.js +9 -0
  266. package/dist/src/session/history-recall-policy.d.ts +6 -0
  267. package/dist/src/session/history-recall-policy.js +48 -0
  268. package/dist/src/storage/sqlite/schema.d.ts +2 -2
  269. package/dist/src/storage/sqlite/schema.js +7 -7
  270. package/dist/src/storage/sqlite/schema.sql +71 -0
  271. package/dist/src/storage/sqlite/session-input-control-repository.js +2 -0
  272. package/dist/src/storage/sqlite/upgrades/272_home_observation.sql +41 -0
  273. package/dist/src/storage/sqlite/upgrades/273_observation_routines.sql +30 -0
  274. package/dist/src/tasks/home-query-service.js +1 -0
  275. package/dist/src/user-context/config.d.ts +12 -0
  276. package/dist/src/user-context/config.js +14 -1
  277. package/dist/src/user-context/memory-version.d.ts +2 -0
  278. package/dist/src/user-context/memory-version.js +12 -0
  279. package/dist/src/user-model/capture/evidence-policy.d.ts +45 -0
  280. package/dist/src/user-model/capture/evidence-policy.js +143 -0
  281. package/dist/src/user-model/capture/executor.d.ts +1 -0
  282. package/dist/src/user-model/capture/executor.js +68 -8
  283. package/dist/src/user-model/capture/semantic.d.ts +16 -0
  284. package/dist/src/user-model/capture/semantic.js +66 -12
  285. package/dist/src/user-model/repository.js +11 -0
  286. package/dist/src/user-model/usage-policy.js +5 -5
  287. package/dist/src/work-discovery/service.js +1 -1
  288. package/package.json +1 -1
  289. package/dist/gateway/static/root/assets/automations-workspace-BhHgruhH.js +0 -9
  290. package/dist/gateway/static/root/assets/capabilities-kG175Q-7.js +0 -1
  291. package/dist/gateway/static/root/assets/chat-page-dY6aCCRx.js +0 -71
  292. package/dist/gateway/static/root/assets/composer-payload-handoff-DBE1mvOS.js +0 -1
  293. package/dist/gateway/static/root/assets/file-preview-surface-z7_HV0WN.js +0 -1
  294. package/dist/gateway/static/root/assets/gateway-realtime-store-xB7Bq4Zs.js +0 -1
  295. package/dist/gateway/static/root/assets/home-page-i_PIrDCU.js +0 -3
  296. package/dist/gateway/static/root/assets/index-Bj5exyow.css +0 -1
  297. package/dist/gateway/static/root/assets/index-CZI3VGGW.js +0 -11
  298. package/dist/gateway/static/root/assets/messages-eQ2CYlpG.js +0 -3
  299. package/dist/gateway/static/root/assets/note-image-lightbox-DfK2KSgu.js +0 -1
  300. package/dist/gateway/static/root/assets/page-header-store-DU4NnGap.js +0 -1
  301. package/dist/gateway/static/root/assets/route-preload-anuckzRl.js +0 -2
  302. package/dist/gateway/static/root/assets/settings-advanced-gate-DnfH22f_.js +0 -1
  303. package/dist/gateway/static/root/assets/task-input-card-lCMSy6YY.js +0 -1
  304. package/dist/gateway/static/root/assets/tool-friendly-title-DC8_9-Lo.js +0 -2
  305. package/dist/gateway/static/root/assets/understanding-refresh-store-Ihz2p9Vg.js +0 -1
  306. package/dist/gateway/static/root/assets/use-composer-attachments-CLIrD0mm.js +0 -2
  307. package/dist/gateway/static/root/assets/user-model-page-1eYattnk.js +0 -2
  308. package/dist/gateway/static/root/assets/workspace-editor-agent-store-Nos5ebMv.js +0 -1
  309. package/dist/gateway/static/root/assets/workspace-file-preview-dialog-D0h2yJ3v.js +0 -1
@@ -0,0 +1,143 @@
1
+ //#region src/user-model/capture/evidence-policy.ts
2
+ /** Extraction can only name operations supported by the execution-context consumer. */
3
+ function supportsResponseApplicability(applicability = {}) {
4
+ const operation = applicability.operation;
5
+ return operation === void 0 || operation === "response" || Array.isArray(operation) && operation.length > 0 && operation.every((value) => value === "response");
6
+ }
7
+ const SELF = /(?:我(?:自己|本人|平时|一般|通常|长期|一直|一贯|更|比较|还是|现在|最|特别|主要|也|其实|的|经常|习惯|倾向|偏好|喜欢|希望|需要|是|叫|住|会|用|选)|对我来说)|\b(?:i|my|me|mine)\b/iu;
8
+ const DIRECT_PREFERENCE = /我(?:自己|本人)?(?:一直|长期|一贯|平时|通常|一般|也|更|比较|最|特别)?(?:不|不太|并不|不再)?(?:喜欢|偏好|习惯|倾向|希望)|(?:我|我的).{0,12}(?:长期习惯|阅读习惯|沟通习惯|固定偏好)|以后|今后|从现在起|from now on|\bi (?:prefer|like|always|usually)\b|\b(?:works? (?:best|better) for me|my preference|keep (?:answers|responses) concise)\b/iu;
9
+ const FOREIGN = /客户|同事|别人|他人|朋友说|原话|原文|引用|引文|翻译|润色|改写|示例|台词|角色|假设|假如|虚构|不是我的|并非我的|\b(?:quote|quoted|translate|rewrite|example|fiction|hypothetical|suppose|customer|colleague)\b/iu;
10
+ const HYPOTHETICAL = /假设|假如|如果我|要是我|倘若|虚构|角色设定|(?:不是|并非).{0,8}(?:我|自述|事实)|\b(?:hypothetical|suppose|if i|fictional|role.?play)\b/iu;
11
+ const TEMPORARY = /这次|本次|今天|今晚|暂时|临时|现在先|目前先|这一轮|这周|本周|\b(?:this time|today|tonight|for now|just for|this week|this turn)\b/iu;
12
+ const LOCAL_INSTRUCTION = /(?:只|仅)(?:需|要)?(?:回复|回答|输出)|这(?:个|张|次).{0,12}(?:标题|海报|按钮|改成)|\b(?:reply|answer|output) (?:only|just)|\b(?:this title|this button)\b/iu;
13
+ const CHOICE = /我选|我还是选|选.{0,12}(?:版|种|项)|这版|更顺|更好读|容易扫读|\b(?:i (?:choose|pick)|option|version|easier to (?:read|scan))\b/iu;
14
+ function maskNonOwnerSpans(raw) {
15
+ let result = raw.normalize("NFKC");
16
+ const mask = (match) => match.replace(/[^\r\n]/gu, " ");
17
+ result = result.replace(/```[\s\S]*?```|~~~[\s\S]*?~~~/gu, mask).replace(/^\s*>[^\n]*/gmu, mask).replace(/<(?:quote|blockquote|untrusted_text)\b[^>]*>[\s\S]*?<\/(?:quote|blockquote|untrusted_text)>/giu, mask);
18
+ const original = result;
19
+ result = result.replace(/“[^”]*”|「[^」]*」|『[^』]*』|‘[^’]*’|"[^"\n]+"|(?<!\p{L})'[^'\n]+'(?!\p{L})/gu, (match, offset) => {
20
+ const prefix = original.slice(Math.max(0, offset - 100), offset).split(/[。.;;!?!?\n]/u).at(-1) ?? "";
21
+ return SELF.test(prefix) && !FOREIGN.test(prefix) ? match : mask(match);
22
+ });
23
+ return result;
24
+ }
25
+ /** Inspect the source clause, not merely the extractor's chosen substring or authority label. */
26
+ function assessOwnerSupport(input) {
27
+ const source = input.text.normalize("NFKC");
28
+ const quote = input.quote.normalize("NFKC");
29
+ const masked = maskNonOwnerSpans(source);
30
+ const at = source.toLocaleLowerCase().indexOf(quote.toLocaleLowerCase());
31
+ if (at < 0) return {
32
+ allowed: false,
33
+ direct: false,
34
+ reason: "unsupported_attribution",
35
+ fingerprint: ""
36
+ };
37
+ const segment = masked.slice(at, at + quote.length).trim();
38
+ const left = source.slice(0, at).search(/[^。.;;!?!?\n]*$/u);
39
+ const tail = source.slice(at + quote.length).search(/[。.;;!?!?\n]/u);
40
+ const end = tail < 0 ? source.length : at + quote.length + tail;
41
+ const clause = masked.slice(left < 0 ? 0 : left, end).trim();
42
+ const reject = (reason) => ({
43
+ allowed: false,
44
+ direct: false,
45
+ reason,
46
+ fingerprint: ""
47
+ });
48
+ if (masked.slice(at, at + quote.length).replace(/\s+/gu, "") !== source.slice(at, at + quote.length).replace(/\s+/gu, "")) return reject("non_owner_content");
49
+ if (!segment || !clause) return reject("non_owner_content");
50
+ const before = source.slice(left < 0 ? 0 : left, at);
51
+ if (/(?:翻译|润色|改写|客户说|同事说|别人说|\b(?:translate|rewrite|customer said|colleague said)\b)/iu.test(before) && !/(?:另外|而我|我自己|我本人|but i|personally)/iu.test(before)) return reject("non_owner_content");
52
+ if (/^(?:(?:请|帮我|麻烦|把).{0,35}(?:翻译|润色|改写|原话|引用|示例)|(?:translate|rewrite|customer said|colleague said)\b)/iu.test(clause) && !/(?:另外|而我|but i|personally)/iu.test(clause)) return reject("non_owner_content");
53
+ if (HYPOTHETICAL.test(clause)) return reject("non_owner_content");
54
+ if (LOCAL_INSTRUCTION.test(clause) && !DIRECT_PREFERENCE.test(clause)) return reject("local_instruction");
55
+ if (TEMPORARY.test(clause) && !/从今天起|从现在起|from (?:today|now) on/iu.test(clause) && (input.kind !== "current_state" || !Number.isFinite(input.validTo) || input.validTo <= (input.observedAt ?? 0))) return reject("temporary_context");
56
+ if (input.kind === "current_state" && !Number.isFinite(input.validTo)) return reject("temporary_context");
57
+ const direct = input.kind === "preference" || input.kind === "routine" ? DIRECT_PREFERENCE.test(segment) || DIRECT_PREFERENCE.test(clause) || hasOwnerMemoryDirective(clause, "remember") : SELF.test(clause) || DIRECT_PREFERENCE.test(clause);
58
+ if (!direct && !SELF.test(segment) && !CHOICE.test(segment)) return reject("unsupported_attribution");
59
+ return {
60
+ allowed: true,
61
+ direct,
62
+ fingerprint: segment.toLocaleLowerCase().replace(/\s+/gu, " ").trim()
63
+ };
64
+ }
65
+ function hasOwnerMemoryDirective(text, command) {
66
+ const owned = maskNonOwnerSpans(text);
67
+ const pattern = {
68
+ remember: /记住|记下|保存.{0,12}(?:偏好|习惯|事实|记忆)|\bremember\b/iu,
69
+ correct: /纠正|更正|修正|改成|改为|\b(?:correct|instead|change to)\b/iu,
70
+ forget: /忘记|忘掉|删除.{0,12}(?:偏好|习惯|事实|记忆)|\bforget\b/iu,
71
+ confirm: /确认.{0,12}(?:偏好|习惯|事实|记忆|这条)|\b(?:confirm|that is correct)\b/iu
72
+ }[command];
73
+ return owned.split(/[。.;;!?!?\n]/u).some((clause) => pattern.test(clause) && !HYPOTHETICAL.test(clause) && !/(?:不要|别|不必|并非|不是).{0,6}(?:记住|保存|删除|忘记|确认)|\b(?:don't|do not|never)\b/iu.test(clause));
74
+ }
75
+ /** Re-evaluate authority and independent support at both parse and commit boundaries. */
76
+ function assessAssertionSupport(input) {
77
+ const reject = (reasonCode) => ({
78
+ allowed: false,
79
+ authority: input.authority,
80
+ reasonCode
81
+ });
82
+ if (!input.sources.length || input.sources.some((source) => source.role !== "user")) return reject("owner_evidence_missing");
83
+ const supports = input.sources.map((source) => assessOwnerSupport({
84
+ ...input,
85
+ text: source.text,
86
+ quote: source.quote
87
+ }));
88
+ const invalid = supports.find((support) => !support.allowed);
89
+ if (invalid) return reject(invalid.reason ?? "unsupported_attribution");
90
+ const direct = supports.some((support, index) => support.direct || hasOwnerMemoryDirective(input.sources[index].text, "remember"));
91
+ const authority = input.authority === "user_explicit" && !direct ? "user_observed" : input.authority;
92
+ if (authority === "user_observed" || authority === "system_inferred") {
93
+ const distinctSources = new Set(input.sources.map((source) => source.text.normalize("NFKC").toLocaleLowerCase().replace(/\s+/gu, " ").trim())).size;
94
+ const independentQuotes = new Set(supports.map((support) => support.fingerprint)).size;
95
+ if (input.action !== "merge" && Math.min(distinctSources, independentQuotes) < 2) return reject("independent_owner_support_required");
96
+ }
97
+ return {
98
+ allowed: true,
99
+ authority
100
+ };
101
+ }
102
+ /** Source attribution for work facts does not require a first-person user statement. */
103
+ function isOwnerAuthoredSpan(text, quote) {
104
+ const source = text.normalize("NFKC");
105
+ const at = source.indexOf(quote.normalize("NFKC"));
106
+ if (at < 0) return false;
107
+ const owned = maskNonOwnerSpans(source).slice(at, at + quote.normalize("NFKC").length).trim();
108
+ return Boolean(owned) && !HYPOTHETICAL.test(owned);
109
+ }
110
+ /** A bounded repair hint; these clauses remain subject to normal model and host admission. */
111
+ function directPreferenceClauses(text) {
112
+ const result = [];
113
+ for (const match of text.matchAll(/[^。.;;!?!?\n]+/gu)) {
114
+ const quote = match[0].trim();
115
+ if (!DIRECT_PREFERENCE.test(quote)) continue;
116
+ const support = assessOwnerSupport({
117
+ text,
118
+ quote,
119
+ kind: "preference"
120
+ });
121
+ if (support.allowed && support.direct) result.push(quote);
122
+ if (result.length === 4) break;
123
+ }
124
+ return result;
125
+ }
126
+ /** Choices remain observations; these hints never authorize an explicit user fact. */
127
+ function observedChoiceClauses(text) {
128
+ const result = [];
129
+ for (const match of text.matchAll(/[^。.;;!?!?\n]+/gu)) {
130
+ const quote = match[0].trim();
131
+ if (!CHOICE.test(quote)) continue;
132
+ const support = assessOwnerSupport({
133
+ text,
134
+ quote,
135
+ kind: "preference"
136
+ });
137
+ if (support.allowed && !support.direct) result.push(quote);
138
+ if (result.length === 2) break;
139
+ }
140
+ return result;
141
+ }
142
+ //#endregion
143
+ export { assessAssertionSupport, assessOwnerSupport, directPreferenceClauses, hasOwnerMemoryDirective, isOwnerAuthoredSpan, observedChoiceClauses, supportsResponseApplicability };
@@ -36,6 +36,7 @@ export interface UserModelCaptureResult {
36
36
  candidateKey: string;
37
37
  assertionId?: string;
38
38
  outcome: 'created' | 'deduplicated' | 'superseded' | 'conflicted' | 'rejected';
39
+ reasonCode?: string;
39
40
  }>;
40
41
  }
41
42
  export declare function emptyUserModelCaptureResult(): UserModelCaptureResult;
@@ -1,5 +1,6 @@
1
1
  import { createCollaborationRule, listCollaborationRules } from "../../storage/sqlite/collaboration-rule-repository.js";
2
2
  import { createContextEvidence } from "../../storage/sqlite/context-evidence-repository.js";
3
+ import { assessAssertionSupport, assessOwnerSupport, hasOwnerMemoryDirective, supportsResponseApplicability } from "./evidence-policy.js";
3
4
  import { createUserGoal, listUserGoals } from "../goals.js";
4
5
  import { deleteUserAssertion, getAssertionSlot, getUserAssertion, linkAssertionEvidence, mergeAssertionObservation, reconcileAssertion, setAssertionStatus } from "../repository.js";
5
6
  import { createHash } from "node:crypto";
@@ -30,8 +31,18 @@ function candidateKey(predicate, scopeType, scopeId) {
30
31
  }
31
32
  function executeUserModelInterpretation(input) {
32
33
  const result = emptyUserModelCaptureResult();
34
+ for (const rejected of input.interpretation.rejectedCandidates ?? []) {
35
+ result.proposed++;
36
+ result.rejected++;
37
+ result.outputs.push({
38
+ ...rejected,
39
+ outcome: "rejected"
40
+ });
41
+ }
42
+ const commandAllowed = (command) => input.evidence.some((source) => source.role === "user" && hasOwnerMemoryDirective(source.text, command));
33
43
  const targets = input.interpretation.targetAssertionIds.flatMap((id) => getUserAssertion(id) ?? []);
34
44
  if (input.interpretation.intent === "forget") {
45
+ if (!commandAllowed("forget")) return result;
35
46
  for (const target of targets) {
36
47
  deleteUserAssertion(target.id);
37
48
  result.outputs.push({
@@ -43,7 +54,7 @@ function executeUserModelInterpretation(input) {
43
54
  }
44
55
  return result;
45
56
  }
46
- if (input.interpretation.intent === "confirm" && input.policy.write !== "deny") for (const target of targets) {
57
+ if (input.interpretation.intent === "confirm" && commandAllowed("confirm") && input.policy.write !== "deny") for (const target of targets) {
47
58
  const confirmed = setAssertionStatus(target.id, "active", {
48
59
  actor: "user",
49
60
  reason: "Explicit user confirmation."
@@ -61,7 +72,7 @@ function executeUserModelInterpretation(input) {
61
72
  });
62
73
  result.deduplicated += 1;
63
74
  }
64
- if (input.interpretation.intent === "correct" && targets.length && input.interpretation.assertions.length === 0) {
75
+ if (input.interpretation.intent === "correct" && commandAllowed("correct") && targets.length && input.interpretation.assertions.length === 0) {
65
76
  for (const target of targets) setAssertionStatus(target.id, "needs_review", {
66
77
  actor: "user",
67
78
  reason: "Correction requested without a grounded replacement."
@@ -98,10 +109,47 @@ function executeUserModelInterpretation(input) {
98
109
  evidenceIds.set(ref, evidence.id);
99
110
  }
100
111
  const latestUserRef = input.evidence.filter((item) => item.role === "user").sort((a, b) => b.createdAt - a.createdAt)[0]?.ref;
101
- for (const source of input.interpretation.assertions) {
112
+ for (const original of input.interpretation.assertions) {
113
+ if (!supportsResponseApplicability(original.applicability)) {
114
+ result.proposed++;
115
+ result.rejected++;
116
+ result.outputs.push({
117
+ candidateKey: candidateKey(original.predicate, original.scope.type, original.scope.id),
118
+ outcome: "rejected",
119
+ reasonCode: "unsupported_applicability_operation"
120
+ });
121
+ continue;
122
+ }
123
+ const support = assessAssertionSupport({
124
+ ...original,
125
+ sources: original.evidenceRefs.flatMap((ref) => {
126
+ const evidence = evidenceByRef.get(ref);
127
+ if (!evidence) return [];
128
+ return [{
129
+ ...evidence,
130
+ quote: original.evidenceQuotes?.find((claim) => claim.ref === ref)?.quote ?? evidence.text
131
+ }];
132
+ })
133
+ });
134
+ if (!support.allowed) {
135
+ result.proposed++;
136
+ result.rejected++;
137
+ result.outputs.push({
138
+ candidateKey: candidateKey(original.predicate, original.scope.type, original.scope.id),
139
+ outcome: "rejected",
140
+ reasonCode: support.reasonCode
141
+ });
142
+ continue;
143
+ }
144
+ const source = {
145
+ ...original,
146
+ authority: support.authority,
147
+ confidence: ["user_observed", "system_inferred"].includes(support.authority) ? Math.min(.85, original.confidence) : original.confidence
148
+ };
102
149
  result.proposed += 1;
103
150
  const key = candidateKey(source.predicate, source.scope.type, source.scope.id);
104
- const sourceExplicitCommand = ["remember", "correct"].includes(source.intent ?? input.interpretation.intent);
151
+ const command = source.intent ?? input.interpretation.intent;
152
+ const sourceExplicitCommand = (command === "remember" || command === "correct") && source.evidenceRefs.some((ref) => hasOwnerMemoryDirective(evidenceByRef.get(ref)?.text ?? "", command));
105
153
  const sensitive = source.sensitivity !== "normal";
106
154
  if (input.policy.write === "deny" || sensitive && (source.authority !== "user_explicit" || input.policy.sensitiveWrite === "deny") || !scopeAllowed(source.scope.type, source.scope.id, input.scopeContext)) {
107
155
  result.rejected += 1;
@@ -221,10 +269,20 @@ function executeUserModelInterpretation(input) {
221
269
  if (applied.action === "deduplicated") result.deduplicated += 1;
222
270
  else result.created += 1;
223
271
  }
272
+ const structuredSupported = (source, kind) => source.evidenceRefs.length > 0 && source.evidenceRefs.every((ref) => {
273
+ const evidence = evidenceByRef.get(ref);
274
+ return evidence?.role === "user" && assessOwnerSupport({
275
+ text: evidence.text,
276
+ quote: source.evidenceQuotes?.find((claim) => claim.ref === ref)?.quote ?? evidence.text,
277
+ kind: kind ?? (source.targetAt ? "current_state" : void 0),
278
+ validTo: source.targetAt,
279
+ observedAt: evidence.createdAt
280
+ }).allowed;
281
+ });
224
282
  for (const source of goals) {
225
283
  result.proposed += 1;
226
284
  const key = candidateKey(`goal:${source.title.toLocaleLowerCase()}`, source.scope.type, source.scope.id);
227
- if (input.policy.write === "deny" || !scopeAllowed(source.scope.type, source.scope.id, input.scopeContext)) {
285
+ if (input.policy.write === "deny" || !structuredSupported(source) || !scopeAllowed(source.scope.type, source.scope.id, input.scopeContext)) {
228
286
  result.rejected += 1;
229
287
  result.outputs.push({
230
288
  candidateKey: key,
@@ -240,7 +298,8 @@ function executeUserModelInterpretation(input) {
240
298
  });
241
299
  continue;
242
300
  }
243
- const active = ["remember", "correct"].includes(source.intent ?? input.interpretation.intent);
301
+ const intent = source.intent ?? input.interpretation.intent;
302
+ const active = (intent === "remember" || intent === "correct") && source.evidenceRefs.some((ref) => hasOwnerMemoryDirective(evidenceByRef.get(ref)?.text ?? "", intent));
244
303
  const goal = createUserGoal({
245
304
  title: source.title,
246
305
  desiredOutcome: source.desiredOutcome,
@@ -266,7 +325,7 @@ function executeUserModelInterpretation(input) {
266
325
  for (const source of collaborationRules) {
267
326
  result.proposed += 1;
268
327
  const key = candidateKey(`rule:${source.category}:${source.statement.toLocaleLowerCase()}`, source.scope.type, source.scope.id);
269
- if (input.policy.write === "deny" || !scopeAllowed(source.scope.type, source.scope.id, input.scopeContext) || source.scope.type === "agent") {
328
+ if (input.policy.write === "deny" || !structuredSupported(source, "preference") || !scopeAllowed(source.scope.type, source.scope.id, input.scopeContext) || source.scope.type === "agent") {
270
329
  result.rejected += 1;
271
330
  result.outputs.push({
272
331
  candidateKey: key,
@@ -282,7 +341,8 @@ function executeUserModelInterpretation(input) {
282
341
  });
283
342
  continue;
284
343
  }
285
- const active = ["remember", "correct"].includes(source.intent ?? input.interpretation.intent);
344
+ const intent = source.intent ?? input.interpretation.intent;
345
+ const active = (intent === "remember" || intent === "correct") && source.evidenceRefs.some((ref) => hasOwnerMemoryDirective(evidenceByRef.get(ref)?.text ?? "", intent));
286
346
  const rule = createCollaborationRule({
287
347
  category: source.category,
288
348
  priority: source.priority,
@@ -14,6 +14,10 @@ export interface ParsedAssertionOperation extends AssertionCandidate {
14
14
  action: AssertionMaintenanceAction;
15
15
  targetAssertionId?: string;
16
16
  evidenceRefs: string[];
17
+ evidenceQuotes?: Array<{
18
+ ref: string;
19
+ quote: string;
20
+ }>;
17
21
  temporalResolution: 'exact' | 'relative_resolved' | 'unresolved';
18
22
  originalTimePhrase?: string;
19
23
  }
@@ -25,6 +29,10 @@ export interface ParsedGoalCandidate {
25
29
  declaredImportance?: number;
26
30
  targetAt?: number;
27
31
  evidenceRefs: string[];
32
+ evidenceQuotes?: Array<{
33
+ ref: string;
34
+ quote: string;
35
+ }>;
28
36
  }
29
37
  export interface ParsedCollaborationRuleCandidate {
30
38
  intent?: UserModelCaptureIntent;
@@ -34,6 +42,10 @@ export interface ParsedCollaborationRuleCandidate {
34
42
  conditions: Record<string, unknown>;
35
43
  statement: string;
36
44
  evidenceRefs: string[];
45
+ evidenceQuotes?: Array<{
46
+ ref: string;
47
+ quote: string;
48
+ }>;
37
49
  }
38
50
  export interface UserModelInterpretation {
39
51
  knowledge?: WorkCandidate[];
@@ -60,6 +72,10 @@ export interface UserModelInterpretation {
60
72
  collaborationRules?: ParsedCollaborationRuleCandidate[];
61
73
  targetAssertionIds: string[];
62
74
  abstentionReason?: string;
75
+ rejectedCandidates?: Array<{
76
+ candidateKey: string;
77
+ reasonCode: string;
78
+ }>;
63
79
  }
64
80
  export interface InterpretationParseFailure {
65
81
  reason: 'empty_output' | 'invalid_json' | 'schema_validation';
@@ -1,3 +1,4 @@
1
+ import { assessAssertionSupport, assessOwnerSupport, hasOwnerMemoryDirective, supportsResponseApplicability } from "./evidence-policy.js";
1
2
  import { WorkCandidateSchema } from "../../memory-learning/work-candidate.js";
2
3
  import { z } from "zod";
3
4
  //#region src/user-model/capture/semantic.ts
@@ -97,7 +98,7 @@ const AssertionOperationSchema = z.object({
97
98
  "referenceable",
98
99
  "ask_before_reference"
99
100
  ]),
100
- applicability: z.record(z.string(), z.unknown()).default({}),
101
+ applicability: z.record(z.string(), z.unknown()).refine(supportsResponseApplicability, { message: "operation must be response (or an array containing only response), or omitted" }).default({}),
101
102
  validFrom: z.string().datetime({ offset: true }).optional(),
102
103
  validTo: z.string().datetime({ offset: true }).optional(),
103
104
  reviewAt: z.string().datetime({ offset: true }).optional(),
@@ -171,7 +172,7 @@ const InterpretationSchema = z.object({
171
172
  goals: z.array(GoalSchema).max(4).default([]),
172
173
  collaborationRules: z.array(CollaborationRuleSchema).max(4).default([]),
173
174
  targetAssertionIds: z.array(z.string().min(1)).max(8),
174
- abstentionReason: z.string().max(500).optional()
175
+ abstentionReason: z.string().transform((value) => value.slice(0, 500)).optional()
175
176
  }).strict();
176
177
  function extractJson(raw) {
177
178
  const fenced = /```(?:json)?\s*([\s\S]*?)```/i.exec(raw)?.[1];
@@ -229,6 +230,15 @@ function parseUserModelInterpretation(raw, evidence, allowedTargetIds = [], onIn
229
230
  return null;
230
231
  }
231
232
  const parsed = result.data;
233
+ const rejectedCandidates = [];
234
+ if ([
235
+ "forget",
236
+ "confirm",
237
+ "correct"
238
+ ].includes(parsed.intent) && !evidence.some((source) => source.role === "user" && hasOwnerMemoryDirective(source.text, parsed.intent))) {
239
+ parsed.intent = "none";
240
+ parsed.targetAssertionIds = [];
241
+ }
232
242
  const evidenceByRef = new Map(evidence.map((item) => [item.ref, item]));
233
243
  const assertionIntents = new Set([
234
244
  "remember",
@@ -240,12 +250,42 @@ function parseUserModelInterpretation(raw, evidence, allowedTargetIds = [], onIn
240
250
  const assertions = [];
241
251
  for (const item of parsed.assertions) {
242
252
  const intent = operationIntent(item.intent, parsed.intent);
243
- if (!assertionIntents.has(intent)) continue;
253
+ if (!assertionIntents.has(intent)) {
254
+ rejectedCandidates.push({
255
+ candidateKey: `${item.scope.type}:${item.scope.id ?? ""}:${item.predicate}`,
256
+ reasonCode: "non_assertion_intent"
257
+ });
258
+ continue;
259
+ }
244
260
  const evidenceRefs = groundedEvidenceRefs(item, evidenceByRef);
245
- if (!evidenceRefs) continue;
246
- if (item.action === "create" && (item.authority === "user_observed" || item.authority === "system_inferred") && new Set(evidenceRefs.map((ref) => comparable(evidenceByRef.get(ref).text))).size < 2) continue;
261
+ if (!evidenceRefs) {
262
+ rejectedCandidates.push({
263
+ candidateKey: `${item.scope.type}:${item.scope.id ?? ""}:${item.predicate}`,
264
+ reasonCode: "owner_quote_not_grounded"
265
+ });
266
+ continue;
267
+ }
247
268
  if (item.action !== "create" && (!item.targetAssertionId || !allowed.has(item.targetAssertionId))) continue;
248
269
  const observedAt = Math.max(...item.evidence.map((claim) => evidenceByRef.get(claim.ref).createdAt));
270
+ const support = assessAssertionSupport({
271
+ kind: item.kind,
272
+ authority: effectiveAuthority(intent, item.authority),
273
+ volatility: item.volatility,
274
+ validTo: item.temporalResolution === "unresolved" ? void 0 : parseTime(item.validTo),
275
+ observedAt,
276
+ action: item.action,
277
+ sources: item.evidence.map((claim) => ({
278
+ ...evidenceByRef.get(claim.ref),
279
+ quote: claim.quote
280
+ }))
281
+ });
282
+ if (!support.allowed) {
283
+ rejectedCandidates.push({
284
+ candidateKey: `${item.scope.type}:${item.scope.id ?? ""}:${item.predicate}`,
285
+ reasonCode: support.reasonCode
286
+ });
287
+ continue;
288
+ }
249
289
  assertions.push({
250
290
  intent,
251
291
  action: item.action,
@@ -258,8 +298,8 @@ function parseUserModelInterpretation(raw, evidence, allowedTargetIds = [], onIn
258
298
  value: item.value,
259
299
  normalizedValue: item.normalizedValue,
260
300
  statement: item.statement,
261
- authority: effectiveAuthority(intent, item.authority),
262
- confidence: item.confidence,
301
+ authority: support.authority,
302
+ confidence: support.authority === "user_observed" || support.authority === "system_inferred" ? Math.min(.85, item.confidence) : item.confidence,
263
303
  ...item.declaredImportance === void 0 ? {} : { declaredImportance: item.declaredImportance },
264
304
  inferredImportance: item.inferredImportance,
265
305
  consequence: item.consequence,
@@ -277,7 +317,8 @@ function parseUserModelInterpretation(raw, evidence, allowedTargetIds = [], onIn
277
317
  ...item.originalTimePhrase ? { originalTimePhrase: item.originalTimePhrase } : {},
278
318
  observedAt,
279
319
  createdBy: "runtime",
280
- evidenceRefs
320
+ evidenceRefs,
321
+ evidenceQuotes: item.evidence
281
322
  });
282
323
  }
283
324
  const structuredIntents = new Set([
@@ -290,7 +331,13 @@ function parseUserModelInterpretation(raw, evidence, allowedTargetIds = [], onIn
290
331
  const intent = operationIntent(item.intent, parsed.intent);
291
332
  if (!structuredIntents.has(intent)) return [];
292
333
  const evidenceRefs = groundedEvidenceRefs(item, evidenceByRef);
293
- if (!evidenceRefs) return [];
334
+ if (!evidenceRefs || !item.evidence.every((claim) => assessOwnerSupport({
335
+ text: evidenceByRef.get(claim.ref).text,
336
+ quote: claim.quote,
337
+ kind: item.targetAt ? "current_state" : void 0,
338
+ validTo: item.targetAt ? parseTime(item.targetAt) : void 0,
339
+ observedAt: evidenceByRef.get(claim.ref).createdAt
340
+ }).allowed)) return [];
294
341
  return [{
295
342
  intent,
296
343
  title: item.title,
@@ -298,14 +345,19 @@ function parseUserModelInterpretation(raw, evidence, allowedTargetIds = [], onIn
298
345
  scope: item.scope,
299
346
  ...item.declaredImportance === void 0 ? {} : { declaredImportance: item.declaredImportance },
300
347
  ...item.targetAt === void 0 ? {} : { targetAt: parseTime(item.targetAt) },
301
- evidenceRefs
348
+ evidenceRefs,
349
+ evidenceQuotes: item.evidence
302
350
  }];
303
351
  });
304
352
  const collaborationRules = parsed.collaborationRules.flatMap((item) => {
305
353
  const intent = operationIntent(item.intent, parsed.intent);
306
354
  if (!structuredIntents.has(intent)) return [];
307
355
  const evidenceRefs = groundedEvidenceRefs(item, evidenceByRef);
308
- if (!evidenceRefs || item.scope.type === "agent") return [];
356
+ if (!evidenceRefs || item.scope.type === "agent" || !item.evidence.every((claim) => assessOwnerSupport({
357
+ text: evidenceByRef.get(claim.ref).text,
358
+ quote: claim.quote,
359
+ kind: "preference"
360
+ }).allowed)) return [];
309
361
  return [{
310
362
  intent,
311
363
  category: item.category,
@@ -313,10 +365,12 @@ function parseUserModelInterpretation(raw, evidence, allowedTargetIds = [], onIn
313
365
  scope: item.scope,
314
366
  conditions: item.conditions,
315
367
  statement: item.statement,
316
- evidenceRefs
368
+ evidenceRefs,
369
+ evidenceQuotes: item.evidence
317
370
  }];
318
371
  });
319
372
  return {
373
+ rejectedCandidates,
320
374
  knowledge: parsed.knowledge,
321
375
  knowledgeDeletions: parsed.knowledgeDeletions.flatMap((item) => {
322
376
  const evidenceRefs = groundedEvidenceRefs(item, evidenceByRef);
@@ -499,6 +499,17 @@ function setUserAssertionScope(assertionId, nextScope) {
499
499
  if (db.prepare(`SELECT slot_id FROM user_assertion_slots
500
500
  WHERE principal_id = ? AND subject_type = ? AND subject_id = ? AND predicate = ?
501
501
  AND scope_type = ? AND COALESCE(scope_id, '') = COALESCE(?, '') AND slot_id != ?`).get(slot.principalId, slot.subject.type, slot.subject.id, slot.predicate, nextScope.type, nextScopeId, slot.id)) throw new Error("An understanding with this scope already exists.");
502
+ for (const assertion of listSlotAssertions(slot.id)) suppressMemory(db, assertionFingerprints({
503
+ ...assertion,
504
+ ...slot,
505
+ principalId: slot.principalId
506
+ }), Date.now());
507
+ restoreMemory(db, assertionFingerprints({
508
+ ...current,
509
+ ...slot,
510
+ scope: nextScope,
511
+ principalId: slot.principalId
512
+ }));
502
513
  db.prepare("UPDATE user_assertion_slots SET scope_type = ?, scope_id = ? WHERE slot_id = ?").run(nextScope.type, nextScopeId, slot.id);
503
514
  return getUserAssertion(assertionId);
504
515
  });
@@ -1,13 +1,13 @@
1
1
  import { isXopcDatabaseOpen } from "../storage/sqlite/connection.js";
2
2
  import { getSqliteDatabase, init_transaction } from "../storage/sqlite/transaction.js";
3
- import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
4
- import { init_session_repository } from "../storage/sqlite/session-repository.js";
5
3
  import "../storage/sqlite/index.js";
6
4
  import { isOwnerIdentity } from "../user-context/identity-bindings.js";
5
+ import { getConversationRouting } from "../storage/sqlite/conversation-repository.js";
6
+ import { init_session_key } from "../routing/session-key.js";
7
7
  import { getUnderstandingConsent } from "../user-context/sources/consent-repository.js";
8
8
  //#region src/user-model/usage-policy.ts
9
+ init_session_key();
9
10
  init_transaction();
10
- init_session_repository();
11
11
  /** Automatic personalization never grants execution authority. */
12
12
  function isWorkingAssumption(assertion) {
13
13
  return (assertion.status === "candidate" || assertion.status === "active") && (assertion.authority === "user_observed" || assertion.authority === "system_inferred") && assertion.confidence >= .7 && (assertion.consequence === "low" || assertion.consequence === "medium") && assertion.sensitivity === "normal" && assertion.disclosurePolicy !== "ask_before_reference";
@@ -27,8 +27,8 @@ function canUseAssertion(assertion, asOf = Date.now(), context = {}) {
27
27
  if (assertion.createdBy === "connector" && (!assertion.consentReceiptId || !evidence.length)) return false;
28
28
  for (const link of evidence) {
29
29
  if (link.conversation_id) {
30
- const session = getSessionMetadata(link.conversation_id);
31
- if (!session?.routing || session.routing.peerKind !== "direct" || !isOwnerIdentity(session.routing)) return false;
30
+ const routing = getConversationRouting(link.conversation_id);
31
+ if (!routing || routing.peerKind !== "direct" || !isOwnerIdentity(routing)) return false;
32
32
  }
33
33
  if (link.source_type === "connector") {
34
34
  if (!link.source_item_id || !link.linked_hash || link.linked_hash !== link.content_hash) return false;
@@ -15,8 +15,8 @@ import { init_providers, resolveModel } from "../providers/index.js";
15
15
  import { isLocalModelBaseUrl } from "../providers/model-call.js";
16
16
  import { createPriorityWindow, createUserGoal } from "../user-model/goals.js";
17
17
  import { linkAssertionEvidence, reconcileAssertion } from "../user-model/repository.js";
18
- import { createWorkDiscoveryRun, getProjectUnderstandingRun, getWorkDiscoveryOnboardingState, getWorkDiscoveryRun, getWorkDiscoveryRunByIdempotencyKey, listPendingProjectUnderstandingRuns, setWorkDiscoveryFeedback, setWorkDiscoveryOnboardingState, updateWorkDiscoveryRun } from "./repository.js";
19
18
  import "../user-model/index.js";
19
+ import { createWorkDiscoveryRun, getProjectUnderstandingRun, getWorkDiscoveryOnboardingState, getWorkDiscoveryRun, getWorkDiscoveryRunByIdempotencyKey, listPendingProjectUnderstandingRuns, setWorkDiscoveryFeedback, setWorkDiscoveryOnboardingState, updateWorkDiscoveryRun } from "./repository.js";
20
20
  import { createUnderstandingSourceRun, getUnderstandingSourceGrant, getUnderstandingSourceRun, updateUnderstandingSourceGrantCheckpoint, updateUnderstandingSourceGrantPolicies, updateUnderstandingSourceRun, upsertUnderstandingSourceGrant } from "../user-context/sources/repository.js";
21
21
  import { allowsRemoteSourceProcessing } from "../user-context/sources/processing-policy.js";
22
22
  import { analyzeUnderstandingSources, analyzeWorkContext, workDiscoveryResultMarkdown } from "./analyzer.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xopcai/xopc",
3
- "version": "0.0.455",
3
+ "version": "0.0.457",
4
4
  "description": "An open-source AI assistant for work and everyday life. Remembers context and helps you get things done. Local-first, on a computer you choose.",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",