@xopcai/xopc 0.0.450 → 0.0.454
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.
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{activity-store-Tn5McYcg.js → activity-store-BKH-qNPt.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-BX5HhrTI.js → agent-avatar-dicebear-DY6IWy0_.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-display-C7Dx9nt1.js → agent-avatar-display-tnAtQOAZ.js} +2 -2
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-AAJsxEjB.js → agent-defaults-settings-panel-BLQ2N_dY.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-BhtzU8qr.js → agent-plugin-dialog-Bfsm4GOs.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-CbGYb9WI.js → agents-CDNiLv0W.js} +3 -3
- package/dist/gateway/static/root/assets/{agents-admin-api-CShyoj9I.js → agents-admin-api-DGZsm8U4.js} +1 -1
- package/dist/gateway/static/root/assets/{api-BET9vZ1l.js → api-Bbj5k-7e.js} +1 -1
- package/dist/gateway/static/root/assets/api-BhipC15e.js +1 -0
- package/dist/gateway/static/root/assets/{app-link-CdD448kS.js → app-link-CCZ-LmVT.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-BxOShFPO.js → app-management-settings-panel-fwhXHKxt.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-L450QlMW.js → appearance-settings-BHkl-vFO.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-Bz6_fyMs.js → apps-page-DtCWwdsK.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-BCXEOal7.js → archive-plugin-B9xaxa7V.js} +1 -1
- package/dist/gateway/static/root/assets/arrow-up-right-T72JbQ1Q.js +1 -0
- package/dist/gateway/static/root/assets/{automation-api-B3Jnoa2G.js → automation-api-BHMjSwcy.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-result-state-BHAKc5QI.js → automation-result-state-BgAjEoNV.js} +1 -1
- package/dist/gateway/static/root/assets/automation-run-list-D3Eon5C0.js +1 -0
- package/dist/gateway/static/root/assets/{automation-task-card-Clf0fe_n.js → automation-task-card-DJRg72t-.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-BEG5xLew.js → automations-page-DdAzXb7s.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-Cfq1C6XB.js → automations-workspace-D0nNat6N.js} +2 -2
- package/dist/gateway/static/root/assets/{binary-plugins-B7tuUWzS.js → binary-plugins-CgsjdprR.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-D-YHASZr.js → block-editor-r6vj6dZO.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-DdMMia7Y.js → browser-settings-page-APCGT8Yr.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-YfkMBZCb.js → capabilities-0gYkjdax.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-Cxh3nYa6.js → capabilities-BgBwcqvY.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-page-B1x3TwdV.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CZ78ckHR.js +8 -0
- package/dist/gateway/static/root/assets/capability-navigation-QtHJxxW2.js +1 -0
- package/dist/gateway/static/root/assets/{channels-DdSEH-R2.js → channels-8Y08v4Q2.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-agents-api-CgasFAm4.js → chat-agents-api-BRQDNNI5.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-chart-block-Cgks7rH3.js → chat-chart-block-qMGhfeQZ.js} +1 -1
- package/dist/gateway/static/root/assets/chat-page-CSTyfO9c.js +71 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-aCu4X5Jo.js → chat-terminal-dock-0PJ9dURQ.js} +1 -1
- package/dist/gateway/static/root/assets/{command-palette-api-Bku_h283.js → command-palette-api-C4U_-rDo.js} +1 -1
- package/dist/gateway/static/root/assets/composer-model-config-control-B9Q40ptH.js +1 -0
- package/dist/gateway/static/root/assets/composer-notifications-ByuA8h5Z.js +1 -0
- package/dist/gateway/static/root/assets/composer-payload-handoff-zr1JDn3p.js +1 -0
- package/dist/gateway/static/root/assets/{computer-settings-page-zvWUPPAr.js → computer-settings-page-D2F1quZR.js} +1 -1
- package/dist/gateway/static/root/assets/{confirm-dialog-D7dQJytv.js → confirm-dialog-DrA5mTQp.js} +1 -1
- package/dist/gateway/static/root/assets/connected-providers-grid-CgULhOBZ.js +1 -0
- package/dist/gateway/static/root/assets/{connection-usage-guide-DL2T6cSN.js → connection-usage-guide-DkDsHm_l.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-a0gQC-nc.js → connector-service-page-1AcvESmp.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-api-DNVUmf9M.js → connectors-api-C1OML7OO.js} +1 -1
- package/dist/gateway/static/root/assets/connectors-page-CMIY0Zj_.js +1 -0
- package/dist/gateway/static/root/assets/{date-picker-E0cqnNlR.js → date-picker-D1eFhoMI.js} +1 -1
- package/dist/gateway/static/root/assets/{date-time-picker-CrC_VKpw.js → date-time-picker-CqplKVk6.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-D1MkNl5F.js → desktop-pet-UmrjWSq-.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-BA6u5Md-.js → desktop-pet-settings-DRRDJMu6.js} +1 -1
- package/dist/gateway/static/root/assets/{dev-view-store-DnqJb6NS.js → dev-view-store-CtKJMK52.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-Ba3d606o.js → device-pairing-wizard-C4aSCbqo.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-lcps-hsZ.js → directory-picker-path-field-D9U9yfnb.js} +1 -1
- package/dist/gateway/static/root/assets/{discussion-annotation-sync-BmvCn1Xn.js → discussion-annotation-sync-D-eGt1_L.js} +1 -1
- package/dist/gateway/static/root/assets/dist-CY7CS_D3.js +1 -0
- package/dist/gateway/static/root/assets/extension-authoritative-grants-8ONVOjPW.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-BOJbNj9D.js → extension-debug-page-BTLcC8-r.js} +1 -1
- package/dist/gateway/static/root/assets/extension-iframe-host-D0-OvFV2.js +1 -0
- package/dist/gateway/static/root/assets/{extension-marketplace-api-BrLsjJLA.js → extension-marketplace-api-DLRCNlej.js} +1 -1
- package/dist/gateway/static/root/assets/extension-message-router-DboLTCVp.js +1 -0
- package/dist/gateway/static/root/assets/extension-page-CdpI-Plq.js +1 -0
- package/dist/gateway/static/root/assets/extension-provider-DUDaMvQg.js +1 -0
- package/dist/gateway/static/root/assets/{extension-settings-page-BuV-Vuvb.js → extension-settings-page-biWCnMGr.js} +1 -1
- package/dist/gateway/static/root/assets/{file-preview-surface-B3nLuoQO.js → file-preview-surface-CnBRiQo8.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-CtZy1Qw0.js → gateway-config-swr-BV5fpBSK.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-CG65gHUY.js → gateway-realtime-CIqLQXlm.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-B6T1Xzag.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-restart-Cr5xtfZU.js → gateway-restart-DBkfCzT5.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-BwMwdwXh.js → gateway-settings-DTzXUm9f.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-DztAHGru.js → gateway-startup-retry-B49N_Ngm.js} +1 -1
- package/dist/gateway/static/root/assets/{global-defaults-api-yHc-ZfjU.js → global-defaults-api-DVpxe45P.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-DvaxBrjG.js +3 -0
- package/dist/gateway/static/root/assets/{image-generation-api-D5eo_stq.js → image-generation-api-CAKYslID.js} +1 -1
- package/dist/gateway/static/root/assets/imports-page-C2KmQJ2H.js +1 -0
- package/dist/gateway/static/root/assets/index-B49yIcMR.css +1 -0
- package/dist/gateway/static/root/assets/index-BpzvsoS1.js +11 -0
- package/dist/gateway/static/root/assets/{install-connector-dialog-B-v1FT3P.js → install-connector-dialog-CmNvZt8M.js} +1 -1
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-BLBASsCP.js → keyboard-shortcuts-settings-syG2KRr2.js} +1 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-DGA4EHGm.js +1 -0
- package/dist/gateway/static/root/assets/local-apps-CB-MZAaL.js +1 -0
- package/dist/gateway/static/root/assets/{local-apps-page-Db93n4Zy.js → local-apps-page-I0O2ybpp.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-C6oPrCYY.js → local-session-drafts-DsPDloiq.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-CQcW9_qA.js → locale-store-D3c8DIm-.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-u9FTZaTh.js +2 -0
- package/dist/gateway/static/root/assets/{management-api-Dh2r5GrQ.js → management-api-uxRxRX-6.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-Fj25fafb.js → management-settings-BCbDfM7f.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-CkihBz06.js → markdown-view-ohhExTMC.js} +1 -1
- package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-jh3dwNfg.js → mcp-conversation-setup-page-382BGqQC.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-BUapXtQZ.js → media-plugins-B5wtLz3Z.js} +1 -1
- package/dist/gateway/static/root/assets/messages-DPLud9GK.js +3 -0
- package/dist/gateway/static/root/assets/{model-selector-DYxgKUju.js → model-selector-CoKcq0AZ.js} +1 -1
- package/dist/gateway/static/root/assets/{models-hub-cache-D2cdb8nZ.js → models-hub-cache-CtooMAQW.js} +1 -1
- package/dist/gateway/static/root/assets/{note-detail-panel-BMtKrv-J.js → note-detail-panel-DiGQtSD0.js} +3 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-Ds4M9fJJ.js +1 -0
- package/dist/gateway/static/root/assets/{notes-api-BhRyWe3S.js → notes-api-Cvet94d8.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-DcmRJJbt.js → notes-page-DwlmKweX.js} +2 -2
- package/dist/gateway/static/root/assets/{oauth-api-D5iBtOid.js → oauth-api-BHp5dVNh.js} +1 -1
- package/dist/gateway/static/root/assets/{oauth-provider-connect-CmHsHynu.js → oauth-provider-connect-cvxtmf3C.js} +1 -1
- package/dist/gateway/static/root/assets/{open-capability-settings-Cvb65hQB.js → open-capability-settings-DQsmJxI7.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-CTHQWfG6.js → page-context-capture-button-BwsK2uDe.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-draft-aApa5ApP.js → page-context-draft-ieK9IN3R.js} +1 -1
- package/dist/gateway/static/root/assets/page-header-store-Xe8CP_4a.js +1 -0
- package/dist/gateway/static/root/assets/personal-avatar-BZSC0BLP.js +1 -0
- package/dist/gateway/static/root/assets/personal-page-CbiD8Wn7.js +1 -0
- package/dist/gateway/static/root/assets/personal-profile-settings-KvdNnaNv.js +1 -0
- package/dist/gateway/static/root/assets/personal-settings-panel-_cxSzWsN.js +1 -0
- package/dist/gateway/static/root/assets/phone-DdhTnt6X.js +1 -0
- package/dist/gateway/static/root/assets/{phone-dependencies-card-BBk6k0t0.js → phone-dependencies-card-C2OWtG2B.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-connection-QJt8SAb7.js → phone-model-connection-CqmafRhr.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-picker-CRxUxJNZ.js → phone-model-picker-BwYQtl_5.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-settings-page-Df64khPY.js → phone-settings-page-CPteZZWu.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-workspace-store-DAuPd2ie.js → phone-workspace-store-ReUEjG9m.js} +1 -1
- package/dist/gateway/static/root/assets/{plugin-details-dialog-Bcer4RC3.js → plugin-details-dialog-BlNVtbEU.js} +1 -1
- package/dist/gateway/static/root/assets/{preference-select-fields-DdV7q9Bd.js → preference-select-fields-BbA-g7Zq.js} +1 -1
- package/dist/gateway/static/root/assets/{product-automation-feedback-uKndNxpU.js → product-automation-feedback-DcPY76PG.js} +1 -1
- package/dist/gateway/static/root/assets/{product-delivery-DRyD9_Xq.js → product-delivery-2Ks17_OH.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-A7lyoXVv.js → product-open-page-BBJ7glAm.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-BrdvkWOg.js → product-preview-content-UTOSc_ii.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-modal-BxHKejcX.js → product-preview-modal-Q1RZqeMo.js} +2 -2
- package/dist/gateway/static/root/assets/project-detail-page-BlrtsEZK.js +7 -0
- package/dist/gateway/static/root/assets/{project-understanding-BVhSoQHu.js → project-understanding-B35f5MkG.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-DSPoyFda.js → projects-page-CBH-sHOU.js} +1 -1
- package/dist/gateway/static/root/assets/{providers-api-B47s6_9Q.js → providers-api-BSmKlQ8K.js} +1 -1
- package/dist/gateway/static/root/assets/{recording-upload-B-IHTsVC.js → recording-upload-P1WcsdEY.js} +1 -1
- package/dist/gateway/static/root/assets/{registry-api-Bo8YiUE0.js → registry-api-DnVlwJ6M.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-BRf9znLV.js → remote-access-hub-CVEj3p0J.js} +1 -1
- package/dist/gateway/static/root/assets/{resource-unavailable-CAljzZx8.js → resource-unavailable-B_S1dFze.js} +1 -1
- package/dist/gateway/static/root/assets/route-preload-DGmrxJSb.js +2 -0
- package/dist/gateway/static/root/assets/runtime-health-zDkHcOZO.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-api-C28pB9__.js → runtime-tools-api-970sp5zI.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-XYeadnhL.js → runtime-tools-settings-panel-au6vZ0sL.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-CtRM41Re.js → schema-form-C9TYGa0_.js} +1 -1
- package/dist/gateway/static/root/assets/secret-input-DsjfQmDn.js +1 -0
- package/dist/gateway/static/root/assets/{service-recommendation-list-C6ydoBSU.js → service-recommendation-list-XeRFtJ-Z.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-D7FWdG43.js → session-api-CuT7EPI0.js} +1 -1
- package/dist/gateway/static/root/assets/session-channel-icon-BzkFo-Ci.js +1 -0
- package/dist/gateway/static/root/assets/{session-identity-label-BP7OIYth.js → session-identity-label-D5SAi0Uh.js} +1 -1
- package/dist/gateway/static/root/assets/session-manager-CyZHiuWY.js +25 -0
- package/dist/gateway/static/root/assets/{sessions-page-CyYkCsfy.js → sessions-page-BIxDwAIX.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-Cy7xeKmH.js +1 -0
- package/dist/gateway/static/root/assets/{settings-advanced-section-3HwfHbqz.js → settings-advanced-section-nbkGHQ_4.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-mode-store-BVvIXZlg.js → settings-mode-store-EQHfksdV.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-C6ypo-jn.js → settings-page-D6RNHRHq.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-header-CheboxIM.js → settings-page-header-19GJ_a45.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-CPFMZaLF.js → settings-page-layout-B2WCzSel.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-interaction-page-BbCzYq9S.js → setup-interaction-page-C5i7y_pM.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-DUNgVqtz.js → setup-status-panel-Cwp8YKdT.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-0P9ghttc.js → share-link-dialog-DDsVTMZ-.js} +1 -1
- package/dist/gateway/static/root/assets/share-preview-page-C1S_gWGf.js +2 -0
- package/dist/gateway/static/root/assets/{shares-api-iiw4F-ra.js → shares-api-CepTFl1f.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-BQ1qXAJn.js → shares-settings-Cv-tdcAN.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-CLtIjE8K.js → skill-api-CsT-iHnl.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-list-api-DY0rRlUk.js → skill-list-api-CMJTjvSo.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-DJC8uWLu.js → skill-reload-api-S6B7P9ur.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-CQYf7s9f.js → skills-page-BKcsJtYx.js} +1 -1
- package/dist/gateway/static/root/assets/sliding-segmented-CgQ3BFdb.js +1 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-DdBmyc93.js → system-settings-panel-DhHPM5qU.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-Bb1R4QsJ.js → task-detail-page-BHH2_Z9_.js} +3 -3
- package/dist/gateway/static/root/assets/{task-input-card-Xl4xFjCn.js → task-input-card-D_2rNF31.js} +1 -1
- package/dist/gateway/static/root/assets/{terminal-panel-store-B1EVdx4L.js → terminal-panel-store-CcUWpqvC.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-BTkYFJOE.js → theme-store-D9pquJiM.js} +1 -1
- package/dist/gateway/static/root/assets/{tracing-settings-page-h-gbBAtl.js → tracing-settings-page-CjNrKILr.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-BDoegsWD.js → tunnel-api-GtLO40pc.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-activity-store-DyFJDqHy.js → understanding-activity-store-BhB5wAbq.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-refresh-store-C0SRcgyd.js → understanding-refresh-store-BxtpXRfV.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-CbJsT3zT.js → usage-page-CZa_a6_7.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-CB2B4NMO.js → use-autosave-BtOp6W9H.js} +1 -1
- package/dist/gateway/static/root/assets/use-composer-attachments-BTQZx8Nj.js +2 -0
- package/dist/gateway/static/root/assets/use-file-preview-expanded-B7nscYS4.js +15 -0
- package/dist/gateway/static/root/assets/{use-personal-profile-r0OuOlBJ.js → use-personal-profile-Cj7WGOfv.js} +1 -1
- package/dist/gateway/static/root/assets/use-realtime-voice-BS1rygyV.js +1 -0
- package/dist/gateway/static/root/assets/{use-workspace-tree-B9Bmg8LV.js → use-workspace-tree-DYosm4Gz.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-BudrJ73l.js → user-model-page-DmmJODQ4.js} +1 -1
- package/dist/gateway/static/root/assets/voice-CDlC6XMH.js +1 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-C8wd8ijq.js → voice-api-key-field-8voN8dQG.js} +1 -1
- package/dist/gateway/static/root/assets/voice-call-context-BM2A4bLz.js +1 -0
- package/dist/gateway/static/root/assets/voice-config-api-CrZd2aqw.js +1 -0
- package/dist/gateway/static/root/assets/{voice-input-shortcut-events-TAmJNcsN.js → voice-input-shortcut-events-DcFp_fy4.js} +1 -1
- package/dist/gateway/static/root/assets/voice-settings-AckvhNnP.js +1 -0
- package/dist/gateway/static/root/assets/{work-discovery-overlay-DsyYo1p0.js → work-discovery-overlay-DAIk5csp.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-page-BJ9VN5Zd.js → work-discovery-page-CJeixeWQ.js} +1 -1
- package/dist/gateway/static/root/assets/{working-directory-picker-modal-CFj-ZOJE.js → working-directory-picker-modal-BW76VaD5.js} +1 -1
- package/dist/gateway/static/root/assets/workspace-api-Cu2gzmVn.js +2 -0
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-pVOYuH7u.js +1 -0
- package/dist/gateway/static/root/assets/workspace-file-preview-dialog-DyqI793w.js +1 -0
- package/dist/gateway/static/root/assets/workspace-open-location-menu-DTYkApy8.js +1 -0
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-DN4DdOWZ.js → xopc-cloud-account-card-Rytp_NWV.js} +1 -1
- package/dist/gateway/static/root/index.html +106 -99
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/extension-capabilities.js +26 -4
- package/dist/packages/gateway-contract/src/index.js +3 -1
- package/dist/packages/gateway-contract/src/local-app-delegation.js +22 -0
- package/dist/packages/gateway-contract/src/local-apps.js +35 -4
- package/dist/packages/realtime-protocol/src/voice.js +37 -3
- package/dist/src/agent/agent-instance-gateway.d.ts +2 -0
- package/dist/src/agent/agent-manager.d.ts +1 -0
- package/dist/src/agent/agent-manager.js +11 -2
- package/dist/src/agent/background-review/prompts.js +2 -0
- package/dist/src/agent/background-review/run-background-review.js +13 -7
- package/dist/src/agent/context/execution-context.js +1 -1
- package/dist/src/agent/embedded/execution-tool-policy.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +66 -9
- package/dist/src/agent/embedded/run-turn.js +35 -1
- package/dist/src/agent/embedded/runs.d.ts +1 -0
- package/dist/src/agent/embedded/runs.js +13 -0
- package/dist/src/agent/embedded/types.d.ts +2 -0
- package/dist/src/agent/inbound/turn-dispatcher.d.ts +1 -0
- package/dist/src/agent/inbound/turn-dispatcher.js +1 -0
- package/dist/src/agent/prompt/system-prompt.js +7 -6
- package/dist/src/agent/prompt/types.d.ts +2 -1
- package/dist/src/agent/prompt/voice-history.d.ts +9 -0
- package/dist/src/agent/prompt/voice-history.js +35 -0
- package/dist/src/agent/prompt/voice-presentation.d.ts +1 -1
- package/dist/src/agent/prompt/voice-presentation.js +1 -0
- package/dist/src/agent/service.js +1 -1
- package/dist/src/agent/tasks/task-judge-service.js +1 -1
- package/dist/src/agent/tools/factory.js +1 -1
- package/dist/src/agent/tools/image-generate-tool.js +5 -1
- package/dist/src/agent/tools/personal-request-result-tool.js +1 -1
- package/dist/src/agent/tools/personal-task-tool.js +3 -1
- package/dist/src/agent/tools/task-collaboration-tool.js +1 -1
- package/dist/src/agent/tools/task-evidence.js +6 -15
- package/dist/src/agent/tools/task-result-tool.js +1 -1
- package/dist/src/agent/tools/user-context-tool.js +1 -1
- package/dist/src/agent/tools/xopc-use-tool.js +6 -5
- package/dist/src/agent-config/schema.d.ts +45 -0
- package/dist/src/agent-config/schema.js +3 -1
- package/dist/src/capabilities/runtime/dispatcher.d.ts +11 -0
- package/dist/src/capabilities/runtime/dispatcher.js +22 -6
- package/dist/src/capabilities/runtime/product.js +2 -0
- package/dist/src/cli/commands/gateway/lifecycle.js +1 -1
- package/dist/src/computer/evaluation-comparison.d.ts +4 -0
- package/dist/src/computer/evaluation-comparison.js +16 -1
- package/dist/src/computer/keyboard.js +1 -1
- package/dist/src/computer/model-adapter.js +18 -14
- package/dist/src/config/schema.d.ts +52 -2
- package/dist/src/config/schema.js +29 -5
- package/dist/src/gateway/hono/lib/safe-voice-config.d.ts +1 -0
- package/dist/src/gateway/hono/lib/safe-voice-config.js +10 -2
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +107 -12
- package/dist/src/gateway/hono/routes/connectors.js +1 -1
- package/dist/src/gateway/hono/routes/imports.js +1 -1
- package/dist/src/gateway/hono/routes/lazy-bundles.js +16 -0
- package/dist/src/gateway/hono/routes/local-app-capabilities.js +16 -5
- package/dist/src/gateway/hono/routes/local-app-development.d.ts +3 -0
- package/dist/src/gateway/hono/routes/local-app-development.js +13 -0
- package/dist/src/gateway/hono/routes/local-app-previews.d.ts +3 -0
- package/dist/src/gateway/hono/routes/local-app-previews.js +86 -0
- package/dist/src/gateway/hono/routes/local-apps.js +3 -2
- package/dist/src/gateway/hono/routes/models.js +4 -0
- package/dist/src/gateway/hono/routes/personal-agent.js +9 -1
- package/dist/src/gateway/hono/routes/projects.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +2 -2
- package/dist/src/gateway/hono/routes/user-model.js +2 -2
- package/dist/src/gateway/hono/routes/voice.js +108 -14
- package/dist/src/gateway/security/gateway-scopes.js +1 -1
- package/dist/src/gateway/security/local-app-delegation-access.d.ts +5 -0
- package/dist/src/gateway/security/local-app-delegation-access.js +22 -0
- package/dist/src/gateway/service/config-coordinator.d.ts +11 -2
- package/dist/src/gateway/service/run-gateway-agent.js +7 -6
- package/dist/src/gateway/service/session-input-coordinator.d.ts +1 -0
- package/dist/src/gateway/service/session-input-coordinator.js +6 -2
- package/dist/src/gateway/service.js +52 -19
- package/dist/src/gateway/xopc-cloud-capability-setup.js +2 -2
- package/dist/src/home-intelligence/host.js +2 -2
- package/dist/src/imports/inventory.js +11 -3
- package/dist/src/infra/update-restart.js +1 -1
- package/dist/src/local-apps/access-audit.d.ts +17 -0
- package/dist/src/local-apps/access-audit.js +42 -0
- package/dist/src/local-apps/capabilities/contracts.js +2 -0
- package/dist/src/local-apps/capabilities/delegate.d.ts +3 -0
- package/dist/src/local-apps/capabilities/delegate.js +166 -0
- package/dist/src/local-apps/capabilities/projections.d.ts +265 -0
- package/dist/src/local-apps/capabilities/projections.js +53 -0
- package/dist/src/local-apps/capabilities/resource-policy.d.ts +3 -0
- package/dist/src/local-apps/capabilities/resource-policy.js +43 -0
- package/dist/src/local-apps/capabilities/runtime.d.ts +2 -1
- package/dist/src/local-apps/capabilities/runtime.js +108 -39
- package/dist/src/local-apps/fix-guidance.js +4 -1
- package/dist/src/local-apps/preview-fixtures.d.ts +20 -0
- package/dist/src/local-apps/preview-fixtures.js +52 -0
- package/dist/src/local-apps/preview-runtime-bridge.d.ts +1 -1
- package/dist/src/local-apps/preview-runtime-bridge.js +41 -18
- package/dist/src/local-apps/preview-sessions.d.ts +52 -0
- package/dist/src/local-apps/preview-sessions.js +316 -0
- package/dist/src/local-apps/preview-worker.d.ts +1 -0
- package/dist/src/local-apps/preview-worker.js +108 -0
- package/dist/src/local-apps/public-assets.d.ts +2 -0
- package/dist/src/local-apps/public-assets.js +42 -0
- package/dist/src/local-apps/scaffold.js +1 -1
- package/dist/src/local-apps/service.d.ts +48 -5
- package/dist/src/local-apps/service.js +136 -15
- package/dist/src/local-apps/store.d.ts +3 -0
- package/dist/src/local-apps/store.js +42 -16
- package/dist/src/local-apps/types.d.ts +2 -0
- package/dist/src/memory-learning/repository.js +3 -2
- package/dist/src/memory-learning/service.js +4 -13
- package/dist/src/memory-learning/transcript-source.d.ts +9 -0
- package/dist/src/memory-learning/transcript-source.js +31 -0
- package/dist/src/notes/capabilities/read.js +11 -2
- package/dist/src/notes/capabilities/write.js +10 -1
- package/dist/src/notes/types.d.ts +2 -0
- package/dist/src/personal-agent/communication.d.ts +2 -1
- package/dist/src/personal-agent/communication.js +3 -1
- package/dist/src/personal-agent/prompt-context.js +15 -23
- package/dist/src/personal-agent/prompts.js +3 -2
- package/dist/src/personal-agent/reply-composer.js +2 -2
- package/dist/src/personal-agent/repository.d.ts +2 -3
- package/dist/src/personal-agent/request-access.js +1 -1
- package/dist/src/personal-agent/request-delivery.js +1 -1
- package/dist/src/personal-agent/request-service.js +1 -1
- package/dist/src/personal-agent/service.d.ts +3 -6
- package/dist/src/personal-agent/service.js +12 -1
- package/dist/src/phone/contracts.d.ts +1 -1
- package/dist/src/phone/model-adapter.d.ts +1 -1
- package/dist/src/phone/runtime.d.ts +1 -1
- package/dist/src/process/fork-worker.d.ts +2 -0
- package/dist/src/process/fork-worker.js +7 -0
- package/dist/src/providers/model-catalog-persistence.js +2 -2
- package/dist/src/providers/setup/voice.js +9 -4
- package/dist/src/providers/xopc-cloud-model-source.js +2 -2
- package/dist/src/realtime/broker.js +1 -1
- package/dist/src/session/client-history.js +12 -1
- package/dist/src/session/session-context-for-llm.js +10 -3
- package/dist/src/session/store.d.ts +1 -0
- package/dist/src/session/store.js +2 -1
- package/dist/src/session/stored-rows-to-file-entries.js +1 -1
- package/dist/src/session/transcript-outline.js +9 -0
- package/dist/src/session/voice-transcript.d.ts +14 -0
- package/dist/src/session/voice-transcript.js +19 -2
- package/dist/src/storage/sqlite/notes-repository.js +7 -0
- package/dist/src/storage/sqlite/resource-scope.d.ts +10 -0
- package/dist/src/storage/sqlite/resource-scope.js +31 -0
- package/dist/src/storage/sqlite/transcript-repository.d.ts +3 -0
- package/dist/src/storage/sqlite/transcript-repository.js +43 -7
- package/dist/src/tasks/capabilities/read.js +21 -3
- package/dist/src/tasks/task-allocation-service.js +1 -1
- package/dist/src/tasks/task-application-service.js +3 -3
- package/dist/src/tasks/task-context-assembler.js +1 -1
- package/dist/src/tasks/task-evidence-tools.d.ts +2 -0
- package/dist/src/tasks/task-evidence-tools.js +22 -0
- package/dist/src/tasks/task-main-update-delivery.js +2 -0
- package/dist/src/tasks/task-repository.d.ts +2 -0
- package/dist/src/tasks/task-repository.js +7 -0
- package/dist/src/tasks/task-research-result.js +8 -21
- package/dist/src/tasks/task-result-delivery-repository.d.ts +6 -0
- package/dist/src/tasks/task-result-delivery-repository.js +26 -0
- package/dist/src/tasks/task-result-delivery-service.js +3 -3
- package/dist/src/tasks/task-run-coordinator.js +1 -1
- package/dist/src/usage/scenario-registry.js +5 -0
- package/dist/src/user-model/index.js +3 -3
- package/dist/src/user-model/profile.d.ts +8 -0
- package/dist/src/user-model/profile.js +19 -1
- package/dist/src/voice/platform-settings.d.ts +5 -0
- package/dist/src/voice/platform-settings.js +16 -3
- package/dist/src/voice/platform-streams.d.ts +7 -3
- package/dist/src/voice/platform-streams.js +90 -18
- package/dist/src/voice/realtime/agentBroker.d.ts +12 -1
- package/dist/src/voice/realtime/agentBroker.js +22 -5
- package/dist/src/voice/realtime/agentEngine.js +104 -12
- package/dist/src/voice/realtime/chat-publication.d.ts +24 -0
- package/dist/src/voice/realtime/chat-publication.js +61 -0
- package/dist/src/voice/realtime/conversation-context.d.ts +7 -1
- package/dist/src/voice/realtime/conversation-context.js +54 -16
- package/dist/src/voice/realtime/engine.d.ts +2 -0
- package/dist/src/voice/realtime/identity-grounding.d.ts +8 -0
- package/dist/src/voice/realtime/identity-grounding.js +34 -0
- package/dist/src/voice/realtime/memory-context.js +48 -14
- package/dist/src/voice/realtime/naturalAgentTools.d.ts +90 -0
- package/dist/src/voice/realtime/naturalAgentTools.js +275 -0
- package/dist/src/voice/realtime/omniEngine.d.ts +9 -0
- package/dist/src/voice/realtime/omniEngine.js +425 -54
- package/dist/src/voice/realtime/omniRoute.d.ts +6 -2
- package/dist/src/voice/realtime/omniRoute.js +50 -5
- package/dist/src/voice/realtime/runtime.d.ts +1 -0
- package/dist/src/voice/realtime/runtime.js +155 -50
- package/dist/src/voice/realtime/runtime.types.d.ts +3 -1
- package/dist/src/voice/realtime/speakable-segmenter.d.ts +2 -1
- package/dist/src/voice/realtime/speakable-segmenter.js +7 -2
- package/dist/src/voice/realtime/turnPolicy.d.ts +1 -2
- package/dist/src/voice/realtime/turnPolicy.js +4 -6
- package/dist/src/voice/realtime/user-context.d.ts +14 -0
- package/dist/src/voice/realtime/user-context.js +63 -0
- package/dist/src/voice/tts/providers/xopc-cloud-speech.js +29 -23
- package/dist/src/voice/tts/speak-core.js +1 -0
- package/dist/src/voice/tts/speech-provider-types.d.ts +2 -0
- package/dist/src/work-discovery/service.js +1 -1
- package/package.json +2 -1
- package/skills/engineering/build-xopc-local-app/SKILL.md +5 -1
- package/skills/engineering/build-xopc-local-app/references/app-contract.md +43 -2
- package/dist/gateway/static/root/assets/api-B3M6ifoo.js +0 -1
- package/dist/gateway/static/root/assets/automation-run-list-De7gini_.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-page-CSBeVda0.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-C56aelvp.js +0 -8
- package/dist/gateway/static/root/assets/chat-page-BKLyj4IP.js +0 -71
- package/dist/gateway/static/root/assets/clipboard-copy-DuJk5WD6.js +0 -1
- package/dist/gateway/static/root/assets/composer-payload-handoff-D1xUYD5M.js +0 -1
- package/dist/gateway/static/root/assets/connected-providers-grid-w3htbAyh.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-D1VzTxON.js +0 -1
- package/dist/gateway/static/root/assets/dist-BGTk37IG.js +0 -1
- package/dist/gateway/static/root/assets/extension-iframe-host-pbU7DAfE.js +0 -1
- package/dist/gateway/static/root/assets/extension-page-BrX4Hy9P.js +0 -1
- package/dist/gateway/static/root/assets/extension-provider-DUzhV5_a.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-Vl3uKAHV.js +0 -1
- package/dist/gateway/static/root/assets/home-page-DYkEc3Qb.js +0 -3
- package/dist/gateway/static/root/assets/imports-page-CLbpRE5i.js +0 -1
- package/dist/gateway/static/root/assets/index-CIeY0yyg.js +0 -11
- package/dist/gateway/static/root/assets/index-D1EDrkUo.css +0 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-3J9ABnCu.js +0 -1
- package/dist/gateway/static/root/assets/local-apps-Ck6kACsY.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-Dtoheh2t.js +0 -2
- package/dist/gateway/static/root/assets/messages-orB1BMgI.js +0 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-C6aTUp-c.js +0 -1
- package/dist/gateway/static/root/assets/page-header-store-B2Ahfm0W.js +0 -1
- package/dist/gateway/static/root/assets/personal-avatar-Dp5LHjk3.js +0 -1
- package/dist/gateway/static/root/assets/personal-page-CpKBzGIk.js +0 -1
- package/dist/gateway/static/root/assets/personal-proactivity-DaRnbB1f.js +0 -1
- package/dist/gateway/static/root/assets/personal-settings-panel-CtJL6qIN.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-CobfHZo0.js +0 -7
- package/dist/gateway/static/root/assets/route-preload-C0oV8og1.js +0 -2
- package/dist/gateway/static/root/assets/runtime-health-D2TDFLLq.js +0 -1
- package/dist/gateway/static/root/assets/secret-input-Dryrns2s.js +0 -1
- package/dist/gateway/static/root/assets/session-channel-icon-D1ktvt1P.js +0 -1
- package/dist/gateway/static/root/assets/session-manager-C1T7WiP7.js +0 -25
- package/dist/gateway/static/root/assets/settings-advanced-gate-B3rOBkm_.js +0 -1
- package/dist/gateway/static/root/assets/share-preview-page-BoLq3kSO.js +0 -2
- package/dist/gateway/static/root/assets/use-composer-attachments-BPMn8eY_.js +0 -2
- package/dist/gateway/static/root/assets/use-file-preview-expanded-4SKLb9Fh.js +0 -15
- package/dist/gateway/static/root/assets/voice-call-context-CJ1ZiJWR.js +0 -1
- package/dist/gateway/static/root/assets/voice-config-api-yBcUSvvn.js +0 -1
- package/dist/gateway/static/root/assets/voice-transcribe-api-D4eyeSdG.js +0 -1
- package/dist/gateway/static/root/assets/workspace-api-DYFy9__S.js +0 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-2Lt7rQfw.js +0 -1
- package/dist/gateway/static/root/assets/workspace-file-preview-dialog-DhqlVzSI.js +0 -1
- package/dist/gateway/static/root/assets/workspace-open-location-menu-C-ItyXwL.js +0 -1
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const LocalAppNoteSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
kind: z.ZodEnum<{
|
|
5
|
+
task: "task";
|
|
6
|
+
voice: "voice";
|
|
7
|
+
thought: "thought";
|
|
8
|
+
todo: "todo";
|
|
9
|
+
media: "media";
|
|
10
|
+
bookmark: "bookmark";
|
|
11
|
+
mixed: "mixed";
|
|
12
|
+
}>;
|
|
13
|
+
status: z.ZodEnum<{
|
|
14
|
+
archived: "archived";
|
|
15
|
+
inbox: "inbox";
|
|
16
|
+
processed: "processed";
|
|
17
|
+
trashed: "trashed";
|
|
18
|
+
}>;
|
|
19
|
+
title: z.ZodOptional<z.ZodString>;
|
|
20
|
+
createdAt: z.ZodNumber;
|
|
21
|
+
updatedAt: z.ZodNumber;
|
|
22
|
+
markdown: z.ZodString;
|
|
23
|
+
localVersion: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
remoteVersion: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
26
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export declare const LocalAppNoteOutputSchema: z.ZodObject<{
|
|
29
|
+
note: z.ZodObject<{
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
kind: z.ZodEnum<{
|
|
32
|
+
task: "task";
|
|
33
|
+
voice: "voice";
|
|
34
|
+
thought: "thought";
|
|
35
|
+
todo: "todo";
|
|
36
|
+
media: "media";
|
|
37
|
+
bookmark: "bookmark";
|
|
38
|
+
mixed: "mixed";
|
|
39
|
+
}>;
|
|
40
|
+
status: z.ZodEnum<{
|
|
41
|
+
archived: "archived";
|
|
42
|
+
inbox: "inbox";
|
|
43
|
+
processed: "processed";
|
|
44
|
+
trashed: "trashed";
|
|
45
|
+
}>;
|
|
46
|
+
title: z.ZodOptional<z.ZodString>;
|
|
47
|
+
createdAt: z.ZodNumber;
|
|
48
|
+
updatedAt: z.ZodNumber;
|
|
49
|
+
markdown: z.ZodString;
|
|
50
|
+
localVersion: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
remoteVersion: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export declare const LocalAppNoteIndexSchema: z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
kind: z.ZodEnum<{
|
|
59
|
+
task: "task";
|
|
60
|
+
voice: "voice";
|
|
61
|
+
thought: "thought";
|
|
62
|
+
todo: "todo";
|
|
63
|
+
media: "media";
|
|
64
|
+
bookmark: "bookmark";
|
|
65
|
+
mixed: "mixed";
|
|
66
|
+
}>;
|
|
67
|
+
status: z.ZodEnum<{
|
|
68
|
+
archived: "archived";
|
|
69
|
+
inbox: "inbox";
|
|
70
|
+
processed: "processed";
|
|
71
|
+
trashed: "trashed";
|
|
72
|
+
}>;
|
|
73
|
+
title: z.ZodOptional<z.ZodString>;
|
|
74
|
+
createdAt: z.ZodNumber;
|
|
75
|
+
updatedAt: z.ZodNumber;
|
|
76
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
localVersion: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
79
|
+
remoteVersion: z.ZodOptional<z.ZodNumber>;
|
|
80
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
export declare const LocalAppNoteListSchema: z.ZodObject<{
|
|
83
|
+
items: z.ZodArray<z.ZodObject<{
|
|
84
|
+
id: z.ZodString;
|
|
85
|
+
kind: z.ZodEnum<{
|
|
86
|
+
task: "task";
|
|
87
|
+
voice: "voice";
|
|
88
|
+
thought: "thought";
|
|
89
|
+
todo: "todo";
|
|
90
|
+
media: "media";
|
|
91
|
+
bookmark: "bookmark";
|
|
92
|
+
mixed: "mixed";
|
|
93
|
+
}>;
|
|
94
|
+
status: z.ZodEnum<{
|
|
95
|
+
archived: "archived";
|
|
96
|
+
inbox: "inbox";
|
|
97
|
+
processed: "processed";
|
|
98
|
+
trashed: "trashed";
|
|
99
|
+
}>;
|
|
100
|
+
title: z.ZodOptional<z.ZodString>;
|
|
101
|
+
createdAt: z.ZodNumber;
|
|
102
|
+
updatedAt: z.ZodNumber;
|
|
103
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
localVersion: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
106
|
+
remoteVersion: z.ZodOptional<z.ZodNumber>;
|
|
107
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
total: z.ZodNumber;
|
|
110
|
+
limit: z.ZodNumber;
|
|
111
|
+
offset: z.ZodNumber;
|
|
112
|
+
hasMore: z.ZodBoolean;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
export declare const LocalAppTaskSchema: z.ZodObject<{
|
|
115
|
+
id: z.ZodString;
|
|
116
|
+
title: z.ZodString;
|
|
117
|
+
phase: z.ZodEnum<{
|
|
118
|
+
review: "review";
|
|
119
|
+
backlog: "backlog";
|
|
120
|
+
ready: "ready";
|
|
121
|
+
active: "active";
|
|
122
|
+
closed: "closed";
|
|
123
|
+
}>;
|
|
124
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
125
|
+
cancelled: "cancelled";
|
|
126
|
+
done: "done";
|
|
127
|
+
duplicate: "duplicate";
|
|
128
|
+
wont_do: "wont_do";
|
|
129
|
+
}>>;
|
|
130
|
+
priority: z.ZodEnum<{
|
|
131
|
+
low: "low";
|
|
132
|
+
normal: "normal";
|
|
133
|
+
high: "high";
|
|
134
|
+
critical: "critical";
|
|
135
|
+
}>;
|
|
136
|
+
dueAt: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
version: z.ZodNumber;
|
|
138
|
+
createdAt: z.ZodNumber;
|
|
139
|
+
updatedAt: z.ZodNumber;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
export declare const LocalAppTaskModelSchema: z.ZodObject<{
|
|
142
|
+
task: z.ZodObject<{
|
|
143
|
+
id: z.ZodString;
|
|
144
|
+
title: z.ZodString;
|
|
145
|
+
phase: z.ZodEnum<{
|
|
146
|
+
review: "review";
|
|
147
|
+
backlog: "backlog";
|
|
148
|
+
ready: "ready";
|
|
149
|
+
active: "active";
|
|
150
|
+
closed: "closed";
|
|
151
|
+
}>;
|
|
152
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
153
|
+
cancelled: "cancelled";
|
|
154
|
+
done: "done";
|
|
155
|
+
duplicate: "duplicate";
|
|
156
|
+
wont_do: "wont_do";
|
|
157
|
+
}>>;
|
|
158
|
+
priority: z.ZodEnum<{
|
|
159
|
+
low: "low";
|
|
160
|
+
normal: "normal";
|
|
161
|
+
high: "high";
|
|
162
|
+
critical: "critical";
|
|
163
|
+
}>;
|
|
164
|
+
dueAt: z.ZodOptional<z.ZodNumber>;
|
|
165
|
+
version: z.ZodNumber;
|
|
166
|
+
createdAt: z.ZodNumber;
|
|
167
|
+
updatedAt: z.ZodNumber;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
operationalState: z.ZodEnum<{
|
|
170
|
+
queued: "queued";
|
|
171
|
+
cancelled: "cancelled";
|
|
172
|
+
failed: "failed";
|
|
173
|
+
waiting: "waiting";
|
|
174
|
+
allocating: "allocating";
|
|
175
|
+
idle: "idle";
|
|
176
|
+
running: "running";
|
|
177
|
+
verifying: "verifying";
|
|
178
|
+
blocked: "blocked";
|
|
179
|
+
}>;
|
|
180
|
+
}, z.core.$strip>;
|
|
181
|
+
export declare const LocalAppTaskOutputSchema: z.ZodObject<{
|
|
182
|
+
task: z.ZodObject<{
|
|
183
|
+
id: z.ZodString;
|
|
184
|
+
title: z.ZodString;
|
|
185
|
+
phase: z.ZodEnum<{
|
|
186
|
+
review: "review";
|
|
187
|
+
backlog: "backlog";
|
|
188
|
+
ready: "ready";
|
|
189
|
+
active: "active";
|
|
190
|
+
closed: "closed";
|
|
191
|
+
}>;
|
|
192
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
193
|
+
cancelled: "cancelled";
|
|
194
|
+
done: "done";
|
|
195
|
+
duplicate: "duplicate";
|
|
196
|
+
wont_do: "wont_do";
|
|
197
|
+
}>>;
|
|
198
|
+
priority: z.ZodEnum<{
|
|
199
|
+
low: "low";
|
|
200
|
+
normal: "normal";
|
|
201
|
+
high: "high";
|
|
202
|
+
critical: "critical";
|
|
203
|
+
}>;
|
|
204
|
+
dueAt: z.ZodOptional<z.ZodNumber>;
|
|
205
|
+
version: z.ZodNumber;
|
|
206
|
+
createdAt: z.ZodNumber;
|
|
207
|
+
updatedAt: z.ZodNumber;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
operationalState: z.ZodEnum<{
|
|
210
|
+
queued: "queued";
|
|
211
|
+
cancelled: "cancelled";
|
|
212
|
+
failed: "failed";
|
|
213
|
+
waiting: "waiting";
|
|
214
|
+
allocating: "allocating";
|
|
215
|
+
idle: "idle";
|
|
216
|
+
running: "running";
|
|
217
|
+
verifying: "verifying";
|
|
218
|
+
blocked: "blocked";
|
|
219
|
+
}>;
|
|
220
|
+
ok: z.ZodLiteral<true>;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
export declare const LocalAppTaskListSchema: z.ZodObject<{
|
|
223
|
+
ok: z.ZodLiteral<true>;
|
|
224
|
+
items: z.ZodArray<z.ZodObject<{
|
|
225
|
+
task: z.ZodObject<{
|
|
226
|
+
id: z.ZodString;
|
|
227
|
+
title: z.ZodString;
|
|
228
|
+
phase: z.ZodEnum<{
|
|
229
|
+
review: "review";
|
|
230
|
+
backlog: "backlog";
|
|
231
|
+
ready: "ready";
|
|
232
|
+
active: "active";
|
|
233
|
+
closed: "closed";
|
|
234
|
+
}>;
|
|
235
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
236
|
+
cancelled: "cancelled";
|
|
237
|
+
done: "done";
|
|
238
|
+
duplicate: "duplicate";
|
|
239
|
+
wont_do: "wont_do";
|
|
240
|
+
}>>;
|
|
241
|
+
priority: z.ZodEnum<{
|
|
242
|
+
low: "low";
|
|
243
|
+
normal: "normal";
|
|
244
|
+
high: "high";
|
|
245
|
+
critical: "critical";
|
|
246
|
+
}>;
|
|
247
|
+
dueAt: z.ZodOptional<z.ZodNumber>;
|
|
248
|
+
version: z.ZodNumber;
|
|
249
|
+
createdAt: z.ZodNumber;
|
|
250
|
+
updatedAt: z.ZodNumber;
|
|
251
|
+
}, z.core.$strip>;
|
|
252
|
+
operationalState: z.ZodEnum<{
|
|
253
|
+
queued: "queued";
|
|
254
|
+
cancelled: "cancelled";
|
|
255
|
+
failed: "failed";
|
|
256
|
+
waiting: "waiting";
|
|
257
|
+
allocating: "allocating";
|
|
258
|
+
idle: "idle";
|
|
259
|
+
running: "running";
|
|
260
|
+
verifying: "verifying";
|
|
261
|
+
blocked: "blocked";
|
|
262
|
+
}>;
|
|
263
|
+
}, z.core.$strip>>;
|
|
264
|
+
total: z.ZodNumber;
|
|
265
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { TaskOperationalStateSchema, TaskPhaseSchema, TaskResolutionSchema } from "../../../packages/gateway-contract/src/task-lifecycle.js";
|
|
2
|
+
import { TaskPrioritySchema } from "../../../packages/gateway-contract/src/tasks.js";
|
|
3
|
+
import { NoteRecordSchema } from "../../../packages/gateway-contract/src/capabilities.js";
|
|
4
|
+
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
//#region src/local-apps/capabilities/projections.ts
|
|
7
|
+
init_src();
|
|
8
|
+
const LocalAppNoteSchema = NoteRecordSchema.pick({
|
|
9
|
+
id: true,
|
|
10
|
+
title: true,
|
|
11
|
+
markdown: true,
|
|
12
|
+
kind: true,
|
|
13
|
+
status: true,
|
|
14
|
+
createdAt: true,
|
|
15
|
+
updatedAt: true,
|
|
16
|
+
localVersion: true
|
|
17
|
+
}).strip().extend({
|
|
18
|
+
remoteVersion: z.number().optional(),
|
|
19
|
+
tags: z.array(z.string()).optional(),
|
|
20
|
+
pinned: z.boolean().optional()
|
|
21
|
+
});
|
|
22
|
+
const LocalAppNoteOutputSchema = z.object({ note: LocalAppNoteSchema });
|
|
23
|
+
const LocalAppNoteIndexSchema = LocalAppNoteSchema.omit({ markdown: true }).extend({ snippet: z.string().optional() });
|
|
24
|
+
const LocalAppNoteListSchema = z.object({
|
|
25
|
+
items: z.array(LocalAppNoteIndexSchema),
|
|
26
|
+
total: z.number(),
|
|
27
|
+
limit: z.number(),
|
|
28
|
+
offset: z.number(),
|
|
29
|
+
hasMore: z.boolean()
|
|
30
|
+
});
|
|
31
|
+
const LocalAppTaskSchema = z.object({
|
|
32
|
+
id: z.string(),
|
|
33
|
+
title: z.string(),
|
|
34
|
+
phase: TaskPhaseSchema,
|
|
35
|
+
resolution: TaskResolutionSchema.optional(),
|
|
36
|
+
priority: TaskPrioritySchema,
|
|
37
|
+
dueAt: z.number().optional(),
|
|
38
|
+
version: z.number(),
|
|
39
|
+
createdAt: z.number(),
|
|
40
|
+
updatedAt: z.number()
|
|
41
|
+
});
|
|
42
|
+
const LocalAppTaskModelSchema = z.object({
|
|
43
|
+
task: LocalAppTaskSchema,
|
|
44
|
+
operationalState: TaskOperationalStateSchema
|
|
45
|
+
});
|
|
46
|
+
const LocalAppTaskOutputSchema = LocalAppTaskModelSchema.extend({ ok: z.literal(true) });
|
|
47
|
+
const LocalAppTaskListSchema = z.object({
|
|
48
|
+
ok: z.literal(true),
|
|
49
|
+
items: z.array(LocalAppTaskModelSchema),
|
|
50
|
+
total: z.number()
|
|
51
|
+
});
|
|
52
|
+
//#endregion
|
|
53
|
+
export { LocalAppNoteIndexSchema, LocalAppNoteListSchema, LocalAppNoteOutputSchema, LocalAppNoteSchema, LocalAppTaskListSchema, LocalAppTaskModelSchema, LocalAppTaskOutputSchema, LocalAppTaskSchema };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { LocalAppResourceScope, LocalAppResourceScopes } from '@xopcai/gateway-contract';
|
|
2
|
+
export declare function localAppResourceAllowed(extensionId: string, scopes: LocalAppResourceScopes, capabilityId: string, input: unknown): boolean;
|
|
3
|
+
export declare function resourceExistsInScope(kind: 'note' | 'task', id: string | undefined, extensionId: string, scope: LocalAppResourceScope): boolean;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { getSqliteDatabase, init_transaction } from "../../storage/sqlite/transaction.js";
|
|
2
|
+
import { init_resource_scope, resourceScopePredicate } from "../../storage/sqlite/resource-scope.js";
|
|
3
|
+
//#region src/local-apps/capabilities/resource-policy.ts
|
|
4
|
+
init_transaction();
|
|
5
|
+
init_resource_scope();
|
|
6
|
+
function localAppResourceAllowed(extensionId, scopes, capabilityId, input) {
|
|
7
|
+
if (capabilityId === "xopc.agent.delegate") {
|
|
8
|
+
const sources = input?.sources ?? [];
|
|
9
|
+
return scopes.agentDelegate === true && sources.every((source) => ["xopc.notes.get", "xopc.tasks.get"].includes(source.capabilityId) && localAppResourceAllowed(extensionId, scopes, source.capabilityId, source));
|
|
10
|
+
}
|
|
11
|
+
const args = input;
|
|
12
|
+
if (capabilityId === "xopc.notes.update" && (args.trigger || args.patch && ([
|
|
13
|
+
"ai",
|
|
14
|
+
"aiDeep",
|
|
15
|
+
"localVersion"
|
|
16
|
+
].some((key) => Object.hasOwn(args.patch, key)) || args.patch.status === "trashed"))) return false;
|
|
17
|
+
const note = capabilityId.startsWith("xopc.notes.");
|
|
18
|
+
const write = [
|
|
19
|
+
"xopc.notes.create",
|
|
20
|
+
"xopc.notes.update",
|
|
21
|
+
"xopc.notes.append"
|
|
22
|
+
].includes(capabilityId);
|
|
23
|
+
const scope = note ? write ? scopes.notesWrite : scopes.notesRead : scopes.tasksRead;
|
|
24
|
+
if (scope.mode === "none") return false;
|
|
25
|
+
if (capabilityId === "xopc.notes.create") {
|
|
26
|
+
if (scope.mode === "workspace") return true;
|
|
27
|
+
return args.projectId ? scope.projectIds.includes(args.projectId) : scope.includeCreated;
|
|
28
|
+
}
|
|
29
|
+
if (capabilityId.endsWith(".list")) return true;
|
|
30
|
+
return resourceExistsInScope(note ? "note" : "task", args.id, extensionId, scope);
|
|
31
|
+
}
|
|
32
|
+
function resourceExistsInScope(kind, id, extensionId, scope) {
|
|
33
|
+
if (!id) return false;
|
|
34
|
+
const restriction = resourceScopePredicate(kind, {
|
|
35
|
+
extensionId,
|
|
36
|
+
scope
|
|
37
|
+
});
|
|
38
|
+
const table = kind === "note" ? "notes" : "tasks";
|
|
39
|
+
const column = kind === "note" ? "note_id" : "task_id";
|
|
40
|
+
return Boolean(getSqliteDatabase().prepare(`SELECT 1 FROM ${table} WHERE ${column} = ? AND ${restriction.sql}`).get(id, ...restriction.params));
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { localAppResourceAllowed, resourceExistsInScope };
|
|
@@ -2,10 +2,11 @@ import type { CapabilityCall } from '@xopcai/gateway-contract';
|
|
|
2
2
|
import { type CapabilityContext, type CapabilityDispatcher } from '../../capabilities/runtime/dispatcher.js';
|
|
3
3
|
import type { LocalAppService } from '../service.js';
|
|
4
4
|
/** Shared UI/Agent execution boundary; callers cannot manufacture grants or release identity. */
|
|
5
|
-
export declare function localAppCapabilities(apps: Pick<LocalAppService, 'getCapabilityAccess'>, dispatcher: CapabilityDispatcher, extensionId: string, manifestDigest: string, caller: CapabilityContext): {
|
|
5
|
+
export declare function localAppCapabilities(apps: Pick<LocalAppService, 'getCapabilityAccess'>, dispatcher: CapabilityDispatcher, extensionId: string, manifestDigest: string, caller: CapabilityContext, grantRevision?: string): {
|
|
6
6
|
list(): {
|
|
7
7
|
releaseId: string;
|
|
8
8
|
manifestDigest: string;
|
|
9
|
+
grantRevision: string;
|
|
9
10
|
capabilities: import("@xopcai/gateway-contract").CapabilityDescriptor[];
|
|
10
11
|
};
|
|
11
12
|
call(id: string, call: CapabilityCall): Promise<{
|
|
@@ -1,26 +1,58 @@
|
|
|
1
1
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
2
2
|
import "../../capabilities/runtime/dispatcher.js";
|
|
3
|
+
import { localAppResourceAllowed } from "./resource-policy.js";
|
|
4
|
+
import { recordLocalAppAccess } from "../access-audit.js";
|
|
3
5
|
import { createHash } from "node:crypto";
|
|
4
6
|
//#region src/local-apps/capabilities/runtime.ts
|
|
5
7
|
/** Shared UI/Agent execution boundary; callers cannot manufacture grants or release identity. */
|
|
6
|
-
function localAppCapabilities(apps, dispatcher, extensionId, manifestDigest, caller) {
|
|
7
|
-
|
|
8
|
+
function localAppCapabilities(apps, dispatcher, extensionId, manifestDigest, caller, grantRevision) {
|
|
9
|
+
let access;
|
|
10
|
+
try {
|
|
11
|
+
access = apps.getCapabilityAccess(extensionId, manifestDigest, grantRevision);
|
|
12
|
+
} catch (error) {
|
|
13
|
+
recordLocalAppAccess(extensionId, {
|
|
14
|
+
principalId: caller.principalId,
|
|
15
|
+
surface: caller.surface,
|
|
16
|
+
action: "authorize",
|
|
17
|
+
status: "denied",
|
|
18
|
+
code: error instanceof CapabilityError ? error.code : "INTERNAL",
|
|
19
|
+
grantRevision
|
|
20
|
+
});
|
|
21
|
+
throw error;
|
|
22
|
+
}
|
|
8
23
|
const current = () => {
|
|
9
|
-
|
|
24
|
+
const next = apps.getCapabilityAccess(extensionId, manifestDigest, grantRevision);
|
|
25
|
+
if (next.releaseId !== access.releaseId) throw new CapabilityError("CONTRACT_CHANGED", "Local app release changed");
|
|
26
|
+
if (next.grantRevision !== access.grantRevision) throw new CapabilityError("FORBIDDEN", "Local app authorization changed");
|
|
10
27
|
};
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
const makeContext = () => {
|
|
29
|
+
let activeInput;
|
|
30
|
+
return {
|
|
31
|
+
...caller,
|
|
32
|
+
surface: "extension",
|
|
33
|
+
localApp: {
|
|
34
|
+
extensionId,
|
|
35
|
+
resourceScopes: access.resourceScopes,
|
|
36
|
+
bindings: access.bindings,
|
|
37
|
+
releaseId: access.releaseId,
|
|
38
|
+
grantRevision: access.grantRevision
|
|
39
|
+
},
|
|
40
|
+
allowedCapabilities: access.bindings.map((binding) => binding.id).filter((id) => !caller.allowedCapabilities || caller.allowedCapabilities.includes(id)),
|
|
41
|
+
assertCurrent: () => {
|
|
42
|
+
caller.assertCurrent?.();
|
|
43
|
+
current();
|
|
44
|
+
if (activeInput && !localAppResourceAllowed(extensionId, access.resourceScopes, activeInput.id, activeInput.input)) throw new CapabilityError("FORBIDDEN", "Local app resource access denied");
|
|
45
|
+
},
|
|
46
|
+
authorize: async (id, input) => {
|
|
47
|
+
const allowed = await caller.authorize(id, input);
|
|
48
|
+
current();
|
|
49
|
+
activeInput = {
|
|
50
|
+
id,
|
|
51
|
+
input
|
|
52
|
+
};
|
|
53
|
+
return allowed && localAppResourceAllowed(extensionId, access.resourceScopes, id, input);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
24
56
|
};
|
|
25
57
|
return {
|
|
26
58
|
list() {
|
|
@@ -28,37 +60,74 @@ function localAppCapabilities(apps, dispatcher, extensionId, manifestDigest, cal
|
|
|
28
60
|
return {
|
|
29
61
|
releaseId: access.releaseId,
|
|
30
62
|
manifestDigest,
|
|
31
|
-
|
|
63
|
+
grantRevision: access.grantRevision,
|
|
64
|
+
capabilities: dispatcher.list(makeContext()).filter((item) => access.bindings.some((binding) => binding.id === item.id && binding.majorVersion === item.majorVersion && binding.descriptorDigest === item.descriptorDigest))
|
|
32
65
|
};
|
|
33
66
|
},
|
|
34
67
|
async call(id, call) {
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
access.releaseId,
|
|
45
|
-
call.idempotencyKey
|
|
46
|
-
])).digest("hex") : void 0;
|
|
47
|
-
const result = await dispatcher.call(id, call.input, context, {
|
|
48
|
-
...call,
|
|
49
|
-
idempotencyKey: key
|
|
50
|
-
});
|
|
68
|
+
const context = makeContext();
|
|
69
|
+
const audit = {
|
|
70
|
+
principalId: caller.principalId,
|
|
71
|
+
surface: caller.surface,
|
|
72
|
+
action: id,
|
|
73
|
+
releaseId: access.releaseId,
|
|
74
|
+
grantRevision: access.grantRevision,
|
|
75
|
+
resourceId: call.input && typeof call.input === "object" && "id" in call.input && typeof call.input.id === "string" ? call.input.id : void 0
|
|
76
|
+
};
|
|
51
77
|
try {
|
|
52
78
|
current();
|
|
79
|
+
const binding = access.bindings.find((item) => item.id === id);
|
|
80
|
+
if (!binding) throw new CapabilityError("FORBIDDEN", "Capability is not declared by this release");
|
|
81
|
+
if (binding.majorVersion !== call.majorVersion || binding.descriptorDigest !== call.descriptorDigest) throw new CapabilityError("CONTRACT_CHANGED", "Capability differs from the installed binding");
|
|
82
|
+
const write = dispatcher.describe(id, context).effect !== "read";
|
|
83
|
+
if (write && !call.idempotencyKey?.trim()) throw new CapabilityError("INVALID_INPUT", "A stable idempotencyKey is required");
|
|
84
|
+
if (id === "xopc.agent.delegate") {
|
|
85
|
+
const input = await dispatcher.validateInput(id, call.input, context);
|
|
86
|
+
for (const source of input.sources) {
|
|
87
|
+
const binding = access.bindings.find((item) => item.id === source.capabilityId);
|
|
88
|
+
if (!binding) throw new CapabilityError("FORBIDDEN", "Referenced read capability is not declared");
|
|
89
|
+
const contract = dispatcher.describe(source.capabilityId, context);
|
|
90
|
+
if (contract.majorVersion !== binding.majorVersion || contract.descriptorDigest !== binding.descriptorDigest) throw new CapabilityError("CONTRACT_CHANGED", "Referenced read contract changed");
|
|
91
|
+
await dispatcher.validateInput(source.capabilityId, { id: source.id }, context);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
const key = call.idempotencyKey ? createHash("sha256").update(JSON.stringify([
|
|
95
|
+
caller.principalId,
|
|
96
|
+
extensionId,
|
|
97
|
+
call.idempotencyKey
|
|
98
|
+
])).digest("hex") : void 0;
|
|
99
|
+
const result = await dispatcher.call(id, call.input, context, {
|
|
100
|
+
...call,
|
|
101
|
+
idempotencyKey: key
|
|
102
|
+
});
|
|
103
|
+
try {
|
|
104
|
+
context.assertCurrent?.();
|
|
105
|
+
} catch (error) {
|
|
106
|
+
if (write) throw new CapabilityError("OUTCOME_UNKNOWN", "Write may have committed; retain the original idempotencyKey and reconcile after restoring access");
|
|
107
|
+
throw error;
|
|
108
|
+
}
|
|
109
|
+
const resourceIds = (result && typeof result === "object" && "items" in result && Array.isArray(result.items) ? result.items : []).map((item) => item?.id ?? item?.task?.id).filter((item) => typeof item === "string");
|
|
110
|
+
const operationId = result && typeof result === "object" && "operationId" in result && typeof result.operationId === "string" ? result.operationId : void 0;
|
|
111
|
+
recordLocalAppAccess(extensionId, {
|
|
112
|
+
...audit,
|
|
113
|
+
resourceIds,
|
|
114
|
+
operationId,
|
|
115
|
+
status: "succeeded"
|
|
116
|
+
});
|
|
117
|
+
return {
|
|
118
|
+
status: "succeeded",
|
|
119
|
+
releaseId: access.releaseId,
|
|
120
|
+
data: result
|
|
121
|
+
};
|
|
53
122
|
} catch (error) {
|
|
54
|
-
|
|
123
|
+
recordLocalAppAccess(extensionId, {
|
|
124
|
+
...audit,
|
|
125
|
+
status: error instanceof CapabilityError && ["FORBIDDEN", "NOT_FOUND"].includes(error.code) ? "denied" : "failed",
|
|
126
|
+
code: error instanceof CapabilityError ? error.code : "INTERNAL",
|
|
127
|
+
operationId: error instanceof CapabilityError ? error.operationId : void 0
|
|
128
|
+
});
|
|
55
129
|
throw error;
|
|
56
130
|
}
|
|
57
|
-
return {
|
|
58
|
-
status: "succeeded",
|
|
59
|
-
releaseId: access.releaseId,
|
|
60
|
-
data: result
|
|
61
|
-
};
|
|
62
131
|
}
|
|
63
132
|
};
|
|
64
133
|
}
|
|
@@ -27,7 +27,10 @@ function uniqueDiagnostics(reported, validation) {
|
|
|
27
27
|
phase: "build",
|
|
28
28
|
code: issue.code,
|
|
29
29
|
message: issue.message
|
|
30
|
-
})), ...reported
|
|
30
|
+
})), ...reported.map((diagnostic) => /Too many isolated preview workers|Close another preview/.test(diagnostic.message) || diagnostic.code === "runner_error" ? {
|
|
31
|
+
...diagnostic,
|
|
32
|
+
phase: "runner"
|
|
33
|
+
} : diagnostic)];
|
|
31
34
|
const seen = /* @__PURE__ */ new Set();
|
|
32
35
|
return combined.filter((diagnostic) => {
|
|
33
36
|
const key = `${diagnostic.phase}\u0000${diagnostic.code ?? ""}\u0000${diagnostic.message}`;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PreviewFixturesSchema: z.ZodObject<{
|
|
3
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
4
|
+
notes: z.ZodArray<z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
markdown: z.ZodString;
|
|
8
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
9
|
+
}, z.core.$strict>>;
|
|
10
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
title: z.ZodString;
|
|
13
|
+
phase: z.ZodDefault<z.ZodEnum<{
|
|
14
|
+
backlog: "backlog";
|
|
15
|
+
ready: "ready";
|
|
16
|
+
}>>;
|
|
17
|
+
}, z.core.$strict>>;
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
export type PreviewFixtures = z.infer<typeof PreviewFixturesSchema>;
|
|
20
|
+
export declare function readPreviewFixtures(root: string): PreviewFixtures;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
//#region src/local-apps/preview-fixtures.ts
|
|
5
|
+
const id = z.string().regex(/^[A-Za-z0-9_-]{1,128}$/);
|
|
6
|
+
const PreviewFixturesSchema = z.strictObject({
|
|
7
|
+
schemaVersion: z.literal(1),
|
|
8
|
+
notes: z.array(z.strictObject({
|
|
9
|
+
id,
|
|
10
|
+
title: z.string().max(1e3),
|
|
11
|
+
markdown: z.string().max(64e3),
|
|
12
|
+
tags: z.array(z.string().max(100)).max(20).default([])
|
|
13
|
+
})).max(50),
|
|
14
|
+
tasks: z.array(z.strictObject({
|
|
15
|
+
id,
|
|
16
|
+
title: z.string().max(500),
|
|
17
|
+
phase: z.enum(["backlog", "ready"]).default("backlog")
|
|
18
|
+
})).max(50)
|
|
19
|
+
}).refine((value) => new Set(value.notes.map((note) => note.id)).size === value.notes.length && new Set(value.tasks.map((task) => task.id)).size === value.tasks.length, "Duplicate fixture ID");
|
|
20
|
+
function readPreviewFixtures(root) {
|
|
21
|
+
const path = join(root, ".xopc", "fixtures.json");
|
|
22
|
+
if (existsSync(path)) {
|
|
23
|
+
const content = readFileSync(path);
|
|
24
|
+
if (content.byteLength > 256e3) throw new Error("Preview fixtures exceed 256 KB");
|
|
25
|
+
return PreviewFixturesSchema.parse(JSON.parse(content.toString("utf8")));
|
|
26
|
+
}
|
|
27
|
+
return PreviewFixturesSchema.parse({
|
|
28
|
+
schemaVersion: 1,
|
|
29
|
+
notes: [{
|
|
30
|
+
id: "sample-note-reading",
|
|
31
|
+
title: "示例:阅读清单 / Reading list",
|
|
32
|
+
markdown: "这是一条示例笔记,不包含真实数据。\n\n- [ ] Read an article",
|
|
33
|
+
tags: ["sample"]
|
|
34
|
+
}, {
|
|
35
|
+
id: "sample-note-review",
|
|
36
|
+
title: "示例:每周复盘 / Weekly review",
|
|
37
|
+
markdown: "## 本周成果\n完成第一个小工具。\n\n## 下周计划\n试用并调整。",
|
|
38
|
+
tags: ["sample"]
|
|
39
|
+
}],
|
|
40
|
+
tasks: [{
|
|
41
|
+
id: "sample-task-plan",
|
|
42
|
+
title: "示例:准备本周计划 / Plan the week",
|
|
43
|
+
phase: "ready"
|
|
44
|
+
}, {
|
|
45
|
+
id: "sample-task-review",
|
|
46
|
+
title: "示例:整理复盘 / Review progress",
|
|
47
|
+
phase: "backlog"
|
|
48
|
+
}]
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { PreviewFixturesSchema, readPreviewFixtures };
|