fuli-context 0.27.13 → 0.27.15
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/README.md +21 -0
- package/README.zh-CN.md +20 -0
- package/dist/web/assets/{AboutPage-B_l0fL3_.js → AboutPage-DvGP5oew.js} +1 -1
- package/dist/web/assets/{AboutSectionHeading-FkC0V4ZM.js → AboutSectionHeading-DQLpU-LX.js} +1 -1
- package/dist/web/assets/{AdvancedOnly-oNI_wJfk.js → AdvancedOnly-D3BTbbl0.js} +1 -1
- package/dist/web/assets/{AgentAppsPage-95Sr6oLp.js → AgentAppsPage-DWwVdXaN.js} +1 -1
- package/dist/web/assets/{AgentAvatar-DNf2k3_2.js → AgentAvatar-C-qXHE1H.js} +1 -1
- package/dist/web/assets/{AgentHand-ClleTtSi.js → AgentHand-B4V79OMX.js} +1 -1
- package/dist/web/assets/{AgentManagement-nW4k_wxv.js → AgentManagement-Bj3b_VpR.js} +1 -1
- package/dist/web/assets/{AgentMentionCopy-DmZlnvlR.js → AgentMentionCopy-CcGGU2LY.js} +1 -1
- package/dist/web/assets/{AgentName-B2qWcURi.js → AgentName-CpqRfTQx.js} +1 -1
- package/dist/web/assets/{AgentProfilePage-BKU203HE.js → AgentProfilePage-DgpLgAtE.js} +3 -3
- package/dist/web/assets/{AgentServicesPage-13WXOPPB.js → AgentServicesPage-DLmt22nV.js} +1 -1
- package/dist/web/assets/{AppViewerPage-DWoH0nVJ.js → AppViewerPage-CoycXPa8.js} +1 -1
- package/dist/web/assets/{BackToTop-6WOSgokN.js → BackToTop-CVsZqRqu.js} +1 -1
- package/dist/web/assets/{BoardCardFieldsMenu-DqHG6aEz.js → BoardCardFieldsMenu-BhGbXVCc.js} +1 -1
- package/dist/web/assets/{BoardMoveMenu-CnKMHK8p.js → BoardMoveMenu-DgcS4rCa.js} +1 -1
- package/dist/web/assets/{Breadcrumb-DxTO2Mmi.js → Breadcrumb-Ct7e6OYm.js} +1 -1
- package/dist/web/assets/{CaptureChangePage-CeqjPWo2.js → CaptureChangePage-DzUhCdQD.js} +1 -1
- package/dist/web/assets/{Collection-qi4Es1fz.js → Collection-Bs2KQouG.js} +1 -1
- package/dist/web/assets/{CopyFixPrompt-BclENSuP.js → CopyFixPrompt-DEGrc4au.js} +1 -1
- package/dist/web/assets/{DataFormatPage-D1QJPv4p.js → DataFormatPage-l9tilr5P.js} +1 -1
- package/dist/web/assets/{DebugTurnPage-BIPOYueM.js → DebugTurnPage-5BXToKCk.js} +1 -1
- package/dist/web/assets/{DebugTurnsPage-CQXwx7aV.js → DebugTurnsPage-Buz3RP5E.js} +1 -1
- package/dist/web/assets/{DialogTitle-BDICj-RE.js → DialogTitle-3cbaDXar.js} +1 -1
- package/dist/web/assets/{EmployeeRedirectPage-DhuuM5ek.js → EmployeeRedirectPage-B2WSyQ4r.js} +1 -1
- package/dist/web/assets/{EmployeeScopeDialog-B4yqCNQF.js → EmployeeScopeDialog-B_e-PQ8G.js} +1 -1
- package/dist/web/assets/EmployeeWorkbench-Bk2cZdp1.js +4 -0
- package/dist/web/assets/FieldRoot-CWgB5qau.js +1 -0
- package/dist/web/assets/{FlaBlockedTasks-DNudWHQO.js → FlaBlockedTasks-CzSwoKLk.js} +1 -1
- package/dist/web/assets/{FlaGrowth-YLyAxwPs.js → FlaGrowth-C8O0QHwC.js} +1 -1
- package/dist/web/assets/{FlaOccupationKit-Ce-20LX3.js → FlaOccupationKit-DZK3j3mR.js} +1 -1
- package/dist/web/assets/{FlaTaskSheets-DfWUHHrR.js → FlaTaskSheets-CtqeoO1u.js} +1 -1
- package/dist/web/assets/{FlasPage-PX-vlQOd.js → FlasPage-BDha0WYc.js} +1 -1
- package/dist/web/assets/{GrowthLoading-DebtDrNr.js → GrowthLoading-Cf0bPF3Q.js} +1 -1
- package/dist/web/assets/HabitDeliveryPage-BqSUYrAz.js +1 -0
- package/dist/web/assets/{HowtoPage-VgoLU8fX.js → HowtoPage-BoKrkQG9.js} +1 -1
- package/dist/web/assets/{InboxPage-D34psCmA.js → InboxPage-D6oP06im.js} +1 -1
- package/dist/web/assets/{KnowledgeDeleteButton-DF1OMjE9.js → KnowledgeDeleteButton-BRBRwjQi.js} +1 -1
- package/dist/web/assets/{KnowledgeHardDeleteSection-BrZpXx-X.js → KnowledgeHardDeleteSection-04BFLuNv.js} +1 -1
- package/dist/web/assets/{KnowledgeItemEditPage-Bex9opxd.js → KnowledgeItemEditPage-hUoreDyp.js} +1 -1
- package/dist/web/assets/{KnowledgeItemSummaryCard-CdCHQUVE.js → KnowledgeItemSummaryCard-BIePM9pG.js} +1 -1
- package/dist/web/assets/{KnowledgeOrganizerPage-DL4HdiRI.js → KnowledgeOrganizerPage-BSLT89Rn.js} +1 -1
- package/dist/web/assets/KnowledgePage-DZPa8muX.js +1 -0
- package/dist/web/assets/{KnowledgePeek-dtA-7Pwo.js → KnowledgePeek-BRwIehvJ.js} +1 -1
- package/dist/web/assets/{KnowledgeTurnReceiptPage-Bc0mtGBh.js → KnowledgeTurnReceiptPage-BimpLgkf.js} +1 -1
- package/dist/web/assets/{KnowledgeWorkspace-D3vFw5if.js → KnowledgeWorkspace-kG7D5BqN.js} +1 -1
- package/dist/web/assets/{MeAvatar-CKPltrBq.js → MeAvatar-oFVbooie.js} +1 -1
- package/dist/web/assets/{MeLink-BuhHHgTP.js → MeLink-Da6v55D-.js} +1 -1
- package/dist/web/assets/{MenuSeparator-B3ZADZB1.js → MenuSeparator-6uCMyjlG.js} +1 -1
- package/dist/web/assets/{ModelSettingsPage-B6dR5BiF.js → ModelSettingsPage-BcaQyqJv.js} +1 -1
- package/dist/web/assets/{NewSessionPanel-D_8VPeIK.js → NewSessionPanel-Bkj9sACa.js} +1 -1
- package/dist/web/assets/{NotFoundPage-Dep-OHxE.js → NotFoundPage-yZC3Bf0L.js} +1 -1
- package/dist/web/assets/{NoticeRow-B9ulEnZf.js → NoticeRow-C5Gizy8U.js} +1 -1
- package/dist/web/assets/{OccupationsPage-dVfpNOz2.js → OccupationsPage-CB9WAmfB.js} +1 -1
- package/dist/web/assets/{PageOutline-CIYCs2_7.js → PageOutline-H1YZcpKH.js} +1 -1
- package/dist/web/assets/{PageStack-DcOXhT2V.js → PageStack-OfaGhlB9.js} +1 -1
- package/dist/web/assets/{PersonalProfilePage-BnVd_ETP.css → PersonalProfilePage-B0_Pxi-K.css} +1 -1
- package/dist/web/assets/PersonalProfilePage-DdJHUTpa.js +1 -0
- package/dist/web/assets/PersonalProjectsPage-ZiPK9uq0.js +1 -0
- package/dist/web/assets/{PinIcon-ByCWycOq.js → PinIcon-B0AQYl66.js} +1 -1
- package/dist/web/assets/{PopperContent-DhxdWcVJ.js → PopperContent-CVXepuUC.js} +1 -1
- package/dist/web/assets/{Presence-DvSWiJKc.js → Presence-BN4OmYc9.js} +1 -1
- package/dist/web/assets/{ProfileAuthorChip-Dw2rKa8-.js → ProfileAuthorChip-B_V0NkUt.js} +1 -1
- package/dist/web/assets/{ProjectAgentsPage-BNm8rs0J.js → ProjectAgentsPage-CqS2uLA4.js} +1 -1
- package/dist/web/assets/{ProjectAgentsPage-CjeXFzHr.css → ProjectAgentsPage-CwaCXHng.css} +1 -1
- package/dist/web/assets/{ProjectJudgmentPolicy-Bos0R_6g.js → ProjectJudgmentPolicy-DNrS_fq7.js} +1 -1
- package/dist/web/assets/{RequesterModeSelect-DUOORHOB.js → RequesterModeSelect-BzLkdUFS.js} +1 -1
- package/dist/web/assets/{RoundtablesPage-CWDeG6lr.js → RoundtablesPage-D_L07I16.js} +1 -1
- package/dist/web/assets/{RovingFocusGroup-MoXnukcS.js → RovingFocusGroup-Cf4tQYLt.js} +1 -1
- package/dist/web/assets/{RovingFocusItem-BBsi3zWj.js → RovingFocusItem-Bjr-auXN.js} +1 -1
- package/dist/web/assets/{SessionMigrationPage-DB0m-6ZH.js → SessionMigrationPage-DqT7XkaH.js} +1 -1
- package/dist/web/assets/{SessionRecordsPage-Dcl2FVUt.js → SessionRecordsPage-C7CccMko.js} +1 -1
- package/dist/web/assets/SettingsPage-CGO8HYEC.js +3 -0
- package/dist/web/assets/SettingsPage-CSs4nimS.css +1 -0
- package/dist/web/assets/{SharedJefaReportPage-IC9k9P7P.js → SharedJefaReportPage-DRXjcyvN.js} +1 -1
- package/dist/web/assets/{StatementCalendarPage-QDIi5HQR.js → StatementCalendarPage-BIxdCVmI.js} +1 -1
- package/dist/web/assets/StatementRows-BV77XQXa.js +1 -0
- package/dist/web/assets/{TagVocabularyPage-D7YumwmH.js → TagVocabularyPage-xowg9e-0.js} +1 -1
- package/dist/web/assets/{TaskBlockerClear-JhNNE6oq.js → TaskBlockerClear-HIUn3B56.js} +1 -1
- package/dist/web/assets/{TaskBlockerNotice-CtgDsZjJ.js → TaskBlockerNotice-BXozcJNO.js} +1 -1
- package/dist/web/assets/{TaskReason-C2wsLnQB.js → TaskReason-B9mo7G9G.js} +1 -1
- package/dist/web/assets/{TeamCard-xdsXkn6B.js → TeamCard-BgLDOUrp.js} +1 -1
- package/dist/web/assets/{TeamCardsWidget-D7KfZKFN.js → TeamCardsWidget-oFErdpr-.js} +1 -1
- package/dist/web/assets/{TeamIsland-DTnyPc-t.js → TeamIsland-a91OejBt.js} +1 -1
- package/dist/web/assets/{Teleport-DjMbt1H8.js → Teleport-Bq22sdRp.js} +1 -1
- package/dist/web/assets/{TextField-CRC6Bjh3.js → TextField-Dq9oGwwQ.js} +1 -1
- package/dist/web/assets/TodayPage-AZR8M_JV.css +1 -0
- package/dist/web/assets/TodayPage-Cx01cAUV.js +1 -0
- package/dist/web/assets/TonborgDelegationSwitch-Mj_HqsTA.css +1 -0
- package/dist/web/assets/TonborgDelegationSwitch-efmSdC0U.js +1 -0
- package/dist/web/assets/{UiChip-CjxMavEk.js → UiChip-w3aQDuoO.js} +1 -1
- package/dist/web/assets/UiDialog-BQVnIalT.js +1 -0
- package/dist/web/assets/{UiDisclosure-k0LlM6pl.js → UiDisclosure-B1SRk17k.js} +1 -1
- package/dist/web/assets/{UiIcon-CACHmP5l.js → UiIcon-X7VJyTtW.js} +1 -1
- package/dist/web/assets/{UiSegmented-CQVO8rhc.js → UiSegmented-CvQGiMjw.js} +1 -1
- package/dist/web/assets/{UiWeight-BmXTfcLH.js → UiWeight-BW2FyfZj.js} +1 -1
- package/dist/web/assets/{VirtualDirectoryList-Pr2Qi-dU.js → VirtualDirectoryList-BdZtoa_v.js} +1 -1
- package/dist/web/assets/{VisitRequestDialog-DAI67ioL.js → VisitRequestDialog-cyjkGIM8.js} +1 -1
- package/dist/web/assets/{VisitRequestsPage-Cj0ijsV8.js → VisitRequestsPage-BhmySfdJ.js} +1 -1
- package/dist/web/assets/{VisuallyHidden-BryO9rDo.js → VisuallyHidden-DR95cfoQ.js} +1 -1
- package/dist/web/assets/{VisuallyHiddenInput-DYdmVe47.js → VisuallyHiddenInput-BvoNjX4U.js} +1 -1
- package/dist/web/assets/WidgetSlot-BFozXCzN.js +2 -0
- package/dist/web/assets/{WorkbenchListPage-ClZVT7dm.js → WorkbenchListPage-BDFY0Cs7.js} +1 -1
- package/dist/web/assets/_plugin-vue_export-helper-BB4OD0pm.js +9 -0
- package/dist/web/assets/{agent-apps-CjrZf0-w.js → agent-apps-sjSDmgvg.js} +1 -1
- package/dist/web/assets/agent-occupation-C8sLJTsm.js +1 -0
- package/dist/web/assets/{agent-pins-Cu8AFRyj.js → agent-pins-yVfWNuJl.js} +1 -1
- package/dist/web/assets/{agent-roster-records-krYbDyoX.js → agent-roster-records-Cc0Nn5GV.js} +1 -1
- package/dist/web/assets/{agent-work-summary-DgNhwBDs.js → agent-work-summary-PW6xgNM2.js} +1 -1
- package/dist/web/assets/{attach-closest-edge-E_9u3LTc.js → attach-closest-edge-CcuoJl8K.js} +1 -1
- package/dist/web/assets/{attention-store-DB8sFqYP.js → attention-store-lVVPGRD4.js} +1 -1
- package/dist/web/assets/{badge-CnIj-Vjf.js → badge-SlVRpAT1.js} +1 -1
- package/dist/web/assets/{button-Bq6CtOwd.js → button-DaCf049q.js} +1 -1
- package/dist/web/assets/{card-BtoExyUu.js → card-CU-fMIwI.js} +1 -1
- package/dist/web/assets/{catalog-CKImWBc1.js → catalog-BGcUbTAn.js} +1 -1
- package/dist/web/assets/{checkbox-Ctz3kAzT.js → checkbox-BXJb7XxN.js} +1 -1
- package/dist/web/assets/{client-lWxuJzdQ.js → client-Czx1m2q7.js} +1 -1
- package/dist/web/assets/{client-links-store-Bq7jIrus.js → client-links-store-lPiPZrdj.js} +1 -1
- package/dist/web/assets/{combobox-Cx6qBlBW.js → combobox-BnTpTtCD.js} +1 -1
- package/dist/web/assets/{console-Co0rg13s.js → console-BVTfuCGS.js} +1 -1
- package/dist/web/assets/{conversation-launcher-settings-6oiDh8F5.js → conversation-launcher-settings-BE9N0RNZ.js} +1 -1
- package/dist/web/assets/{copy-mention-B8kd4NhM.js → copy-mention-DefPSDHA.js} +1 -1
- package/dist/web/assets/{dialog-C7ZNMqqv.js → dialog-i73g2wCu.js} +1 -1
- package/dist/web/assets/{dist-BvBBjfpN.js → dist-D4vkYocO.js} +1 -1
- package/dist/web/assets/{dist-BuQhl9nu.js → dist-DaGiq9tT.js} +1 -1
- package/dist/web/assets/{dropdown-menu-DdSRggWj.js → dropdown-menu-Cmjta51i.js} +1 -1
- package/dist/web/assets/{field-DTAH8Lxk.js → field-DNFFjUOg.js} +1 -1
- package/dist/web/assets/{format-bytes-L2iiNO-i.js → format-bytes-iVfP_Uth.js} +1 -1
- package/dist/web/assets/habit-delivery-api-B02Lhs58.js +1 -0
- package/dist/web/assets/{hover-card-BR4RBAKf.js → hover-card-DbjVSrp_.js} +1 -1
- package/dist/web/assets/{identity-JzX2orvv.js → identity-D9O6Buig.js} +1 -1
- package/dist/web/assets/{index-CKt2-FlB.css → index-Cysku2l_.css} +1 -1
- package/dist/web/assets/index-v2PfAWGl.js +24 -0
- package/dist/web/assets/{input-EnYUa2P8.js → input-D-v-Qzn9.js} +1 -1
- package/dist/web/assets/{label-BBBLSYRO.js → label-BElkyClR.js} +1 -1
- package/dist/web/assets/label-table-D4SR42iJ.js +1 -0
- package/dist/web/assets/{model-CfTCkbyX.js → model-AGAChkMn.js} +1 -1
- package/dist/web/assets/{model-D8YvY96y.js → model-BE6jYIay.js} +1 -1
- package/dist/web/assets/{model-BAkHkZVA.js → model-CMcIj6YH.js} +1 -1
- package/dist/web/assets/{model-BzuKf6DT.js → model-CYuzfMlT.js} +1 -1
- package/dist/web/assets/{model-DsBzcYT-.js → model-Cq1mMseJ.js} +1 -1
- package/dist/web/assets/{model--ObjLBUY.js → model-DBLGBYG2.js} +1 -1
- package/dist/web/assets/{model-C2aQw9hO.js → model-DK69qvU8.js} +1 -1
- package/dist/web/assets/{model-QOEG-dyt.js → model-DS-vaSNE.js} +1 -1
- package/dist/web/assets/{model-CmH2cJ8Q.js → model-bve-XDFz.js} +1 -1
- package/dist/web/assets/{model-health-AZIgeuoF.js → model-health-CnYUPVT2.js} +1 -1
- package/dist/web/assets/{motion-DG7gku93.js → motion-D-CCN29z.js} +1 -1
- package/dist/web/assets/{motion-iB_9OWK7.js → motion-D2ROf5sb.js} +1 -1
- package/dist/web/assets/{motion-preference-ByKvDRAP.js → motion-preference-ByJGpZkg.js} +1 -1
- package/dist/web/assets/{occupation-catalog-BSHATipY.js → occupation-catalog-DIcniNgM.js} +1 -1
- package/dist/web/assets/{occupation-kits-C9_iMZiE.js → occupation-kits-BbwJDWeG.js} +1 -1
- package/dist/web/assets/{option-BxnPKnWF.js → option-DfNbcA2F.js} +1 -1
- package/dist/web/assets/{orchestration-filters-BZEDHWMD.js → orchestration-filters-DUQWlZKZ.js} +1 -1
- package/dist/web/assets/{overview-data-BgvJ8XJr.js → overview-data-BUOawtae.js} +1 -1
- package/dist/web/assets/{page-refresh-DGbpJ0K-.js → page-refresh-D-9vjKh3.js} +1 -1
- package/dist/web/assets/{page-title-DMSN_kUH.js → page-title-jJR8RG43.js} +1 -1
- package/dist/web/assets/{person-profile-BqVCNO5v.js → person-profile-DvCj-51r.js} +1 -1
- package/dist/web/assets/{popover-CVrL5Qm8.js → popover-BXPPZqzX.js} +1 -1
- package/dist/web/assets/popup-host-Dib21BfM.js +1 -0
- package/dist/web/assets/{preference-conflicts-D61VWIBA.js → preference-conflicts-B7wzi4wF.js} +1 -1
- package/dist/web/assets/profile-model-BNboCMX6.js +1 -0
- package/dist/web/assets/{project-board-layout-CghqkCsy.js → project-board-layout-BRKAN9I4.js} +1 -1
- package/dist/web/assets/{project-capture-B7381dgl.js → project-capture-D7b-lL9n.js} +1 -1
- package/dist/web/assets/{project-origin-pSz6sKdw.js → project-origin--TOvgLtz.js} +1 -1
- package/dist/web/assets/{quick-edit-api-Cg3RECVu.js → quick-edit-api-BJ7Sc1A9.js} +1 -1
- package/dist/web/assets/{radio-group-DONBO2nI.js → radio-group-Yf8AOhYN.js} +1 -1
- package/dist/web/assets/{review-api-BxAsqJTp.js → review-api-NH2tbymc.js} +1 -1
- package/dist/web/assets/{review-list-SiPjO-AM.js → review-list-mVJ2Fpq7.js} +1 -1
- package/dist/web/assets/{review-store-BMdysfoC.js → review-store-BLlMfs2O.js} +1 -1
- package/dist/web/assets/{role-names-CmWaAZj9.js → role-names-BYQ6Ejew.js} +1 -1
- package/dist/web/assets/{roundtable-live-C9-QTRfe.js → roundtable-live-CR0oX3WO.js} +1 -1
- package/dist/web/assets/{runtime-dom.esm-bundler-BHgO62c_.js → runtime-dom.esm-bundler-KYUj_0oy.js} +1 -1
- package/dist/web/assets/{select-DBAH2q43.js → select-pNF6h6qI.js} +1 -1
- package/dist/web/assets/{session-launch-offers-B-cO34V2.js → session-launch-offers-BTllWzUC.js} +1 -1
- package/dist/web/assets/{settings-autosave-gAp-_C5E.js → settings-autosave-DyOdfJxq.js} +1 -1
- package/dist/web/assets/settings-tabs-CkbYPvea.js +1 -0
- package/dist/web/assets/{shared-report-DNZVm0ej.js → shared-report-DQkPNPXT.js} +3 -3
- package/dist/web/assets/{source-adapters-Cpn6XvAt.js → source-adapters-DWeqGlv1.js} +1 -1
- package/dist/web/assets/{switch-CvARV2vi.js → switch-BvmWnWvB.js} +1 -1
- package/dist/web/assets/{tabs-BgblPz6T.js → tabs-0_-pA86a.js} +1 -1
- package/dist/web/assets/{task-card-fields-S2gpajHG.js → task-card-fields-DwubByG0.js} +1 -1
- package/dist/web/assets/{task-labels-CYiztobh.js → task-labels-CN2HuRqR.js} +1 -1
- package/dist/web/assets/{task-reason-CUZHkfvp.js → task-reason-KI4bNRpp.js} +1 -1
- package/dist/web/assets/{team-sheets-Cb5eJek1.js → team-sheets-fOIhyrB4.js} +1 -1
- package/dist/web/assets/{textarea-D1Tkf6oR.js → textarea-CmNV5bwv.js} +1 -1
- package/dist/web/assets/{ui-BuGrLVDn.js → ui-BeOaiL_A.js} +1 -1
- package/dist/web/assets/{useAgentRecords-yoE1yF8S.js → useAgentRecords-D4Ugm9rW.js} +1 -1
- package/dist/web/assets/{useAgentWorkSummary-j17h_Ka4.js → useAgentWorkSummary-DvUTEZw5.js} +1 -1
- package/dist/web/assets/{useApi-CROJJdhE-D6pry1QV.js → useApi-CROJJdhE-CSF8LJLr.js} +1 -1
- package/dist/web/assets/{useClipboardCopy-CGzzjCDy.js → useClipboardCopy-O9-rbEx_.js} +1 -1
- package/dist/web/assets/{useFocusReturn-Ba_RIwc9.js → useFocusReturn-BE8B69VE.js} +1 -1
- package/dist/web/assets/useFormControl-CzEMn4gU.js +1 -0
- package/dist/web/assets/{useForwardExpose-D2ZwqP--.js → useForwardExpose-BGcyhq2E.js} +1 -1
- package/dist/web/assets/{useForwardPropsEmits-B_TlGceH.js → useForwardPropsEmits-D9U18v-C.js} +1 -1
- package/dist/web/assets/useForwardScopeId-D_7eH0Y1.js +1 -0
- package/dist/web/assets/{useKnowledgeConfirm-BxCF2JhH.js → useKnowledgeConfirm-ClYKOaTx.js} +1 -1
- package/dist/web/assets/{useKnowledgeItemPeek-D6MLIXB8.js → useKnowledgeItemPeek-CubZmvZv.js} +1 -1
- package/dist/web/assets/{useListPages-DYhvR900.js → useListPages-BrDUJlfX.js} +1 -1
- package/dist/web/assets/{useMinimumLoadingDisplay-DvMlC-0C.js → useMinimumLoadingDisplay-8UJsD3Tu.js} +1 -1
- package/dist/web/assets/{useNow-Bb3HaAKz.js → useNow-Vmb6v8i_.js} +1 -1
- package/dist/web/assets/{usePageTools-fNLnKzBV.js → usePageTools-CNhXN947.js} +1 -1
- package/dist/web/assets/usePrimitiveElement-B1twpLbS.js +1 -0
- package/dist/web/assets/{useProjectAgentRoster-CbXX3jbP.js → useProjectAgentRoster-GT6oVfSp.js} +1 -1
- package/dist/web/assets/{useRoutePeek-DLAVFY_C.js → useRoutePeek-DoN7BxDJ.js} +1 -1
- package/dist/web/assets/{useTeamWork-fVzv-gMe.js → useTeamWork-D15ytrFD.js} +1 -1
- package/dist/web/assets/{useTypeahead-Ces9iTDN.js → useTypeahead-HUfOxVR_.js} +1 -1
- package/dist/web/assets/{useVisitAwaiting-CJvXt5LU.js → useVisitAwaiting-CmqtjpIE.js} +1 -1
- package/dist/web/assets/{utils-D-zTPKuT.js → utils-B-zi0mpE.js} +1 -1
- package/dist/web/assets/{utils-DmCHG_y9.js → utils-B6gAPcyi.js} +1 -1
- package/dist/web/assets/{verification-H0MHrum7.js → verification-Cv4Wo6E9.js} +1 -1
- package/dist/web/assets/{version-DljnX5v1.js → version-BSosoSQY.js} +1 -1
- package/dist/web/assets/{vue-router-BzACvo8M.js → vue-router-DvV79UrI.js} +1 -1
- package/dist/web/index.html +78 -78
- package/docs/agent-roundtable.md +6 -1
- package/docs/client-connections.md +34 -13
- package/docs/employee-agents.md +6 -4
- package/docs/judgment-and-autonomy.md +2 -2
- package/graph-provider/fuli_graph/agent_conversation_models.py +2 -0
- package/graph-provider/fuli_graph/app.py +2 -0
- package/graph-provider/fuli_graph/fixed_roles.py +26 -0
- package/graph-provider/fuli_graph/graph_field_contract.py +1 -1
- package/graph-provider/fuli_graph/graph_format_migrations.py +6 -0
- package/graph-provider/fuli_graph/knowledge_statement_items.py +95 -0
- package/graph-provider/fuli_graph/occupation_catalog.py +8 -2
- package/graph-provider/fuli_graph/project_agent_coordination_models.py +6 -2
- package/graph-provider/fuli_graph/project_agent_task_models.py +3 -0
- package/graph-provider/fuli_graph/store_agent_conversations.py +11 -5
- package/graph-provider/fuli_graph/store_project_agent_attention.py +8 -1
- package/graph-provider/fuli_graph/store_project_agent_coordination_policy.py +13 -4
- package/graph-provider/fuli_graph/store_project_agent_dismissal.py +2 -0
- package/graph-provider/fuli_graph/store_project_agent_executors.py +4 -0
- package/graph-provider/fuli_graph/store_project_agent_task_staffing.py +52 -14
- package/graph-provider/fuli_graph/store_project_agent_tasks.py +5 -2
- package/graph-provider/fuli_graph/store_project_agents.py +5 -5
- package/graph-provider/fuli_graph/store_task_contexts.py +23 -1
- package/graph-provider/fuli_graph/system_agents.py +17 -9
- package/graph-provider/fuli_graph/task_context_routes.py +10 -1
- package/graph-provider/pyproject.toml +1 -1
- package/native/win32/fuli-win-helper.exe +0 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/packages/roundtable/src/peer/control-cli.js +2 -1
- package/packages/roundtable/src/peer/peer-runtime.js +212 -67
- package/skills/capturing-session-knowledge/references/coordination.md +11 -4
- package/skills/operating-fuli/SKILL.md +7 -4
- package/skills/operating-fuli/references/workflow-recipes.md +2 -1
- package/src/agent-kits/client-detection.js +20 -12
- package/src/agent-kits/custom-clients.js +24 -7
- package/src/agent-tools/agent-conversation-definitions.js +2 -1
- package/src/agent-tools/interface-catalog.js +6 -4
- package/src/desktop-glance/glance.js +90 -0
- package/src/employees/builtin/jefa/board-store.js +15 -0
- package/src/employees/builtin/jefa/tools.js +29 -2
- package/src/employees/fixed-roles.js +25 -0
- package/src/employees/management-policy.js +3 -2
- package/src/employees/manifest.js +0 -3
- package/src/employees/recruitment.js +10 -6
- package/src/employees/service.js +12 -1
- package/src/graphiti/agent-collaboration.js +1 -1
- package/src/graphiti/agent-conversations.js +1 -0
- package/src/graphiti/assistant-project-candidate.js +2 -1
- package/src/graphiti/conversation-triage.js +6 -3
- package/src/graphiti/fla-picker.js +5 -7
- package/src/graphiti/jefa-board-match.js +2 -1
- package/src/graphiti/project-agent-mapping.js +4 -3
- package/src/graphiti/project-team-view.js +7 -2
- package/src/graphiti/provider-client.js +4 -0
- package/src/graphiti/task-entry-group-discussion.js +1 -1
- package/src/graphiti/task-entry-named-fla.js +2 -2
- package/src/graphiti/task-entry-preferences.js +2 -2
- package/src/graphiti/task-entry-project-scope.js +1 -1
- package/src/graphiti/topic-proposals.js +10 -9
- package/src/graphiti/topic-team-handoff.js +22 -45
- package/src/http/api-router.js +6 -2
- package/src/http/desktop-glance-api-router.js +16 -0
- package/src/http/statement-api-router.js +24 -3
- package/src/judgment/acceptance.js +12 -4
- package/src/judgment/backend.js +5 -0
- package/src/judgment/engine.js +21 -13
- package/src/judgment/question-tools.js +2 -3
- package/src/judgment/review-delegation.js +32 -8
- package/src/judgment/store.js +2 -1
- package/src/knowledge-impressions/store.js +23 -0
- package/src/knowledge-owner-reads/console-port.js +2 -1
- package/src/model-backends/budget.js +6 -1
- package/src/model-backends/failures.js +2 -0
- package/src/model-backends/http.js +12 -6
- package/src/model-backends/port.js +15 -6
- package/src/model-backends/request.js +4 -2
- package/src/model-backends/role-trust.js +33 -12
- package/src/model-backends/usage-ledger.js +15 -5
- package/src/old-data/guarded-stores.js +7 -2
- package/src/presence/windows-helper-pin.js +1 -1
- package/src/semantic/semantic-index.js +5 -4
- package/src/statement/detail-lists.js +33 -0
- package/src/system/client-connection-install.js +19 -9
- package/src/system/client-connection-status.js +1 -1
- package/src/system/custom-client-connection.js +15 -3
- package/src/system/system-service.js +1 -1
- package/src/whats-new/lines/0.27.14.json +15 -0
- package/src/whats-new/lines/0.27.15.json +13 -0
- package/dist/web/assets/EmployeeWorkbench-CqQ1GzZ5.js +0 -4
- package/dist/web/assets/FieldRoot-BjgS2fK-.js +0 -1
- package/dist/web/assets/HabitDeliveryPage-C6XDiEFn.js +0 -1
- package/dist/web/assets/KnowledgePage-Bc8s9asZ.js +0 -1
- package/dist/web/assets/PersonalProfilePage-dU9CmgH9.js +0 -1
- package/dist/web/assets/PersonalProjectsPage-BPSkUIhN.js +0 -1
- package/dist/web/assets/SettingsPage-BYbWO9wW.css +0 -1
- package/dist/web/assets/SettingsPage-CoyQF5YK.js +0 -1
- package/dist/web/assets/StatementRows-CdjZOdM5.js +0 -1
- package/dist/web/assets/TodayPage-CEnhprna.css +0 -1
- package/dist/web/assets/TodayPage-DY-7WZxJ.js +0 -1
- package/dist/web/assets/TonborgDelegationSwitch-BFb1JkWe.css +0 -1
- package/dist/web/assets/TonborgDelegationSwitch-BqOktR_J.js +0 -1
- package/dist/web/assets/UiDialog-D6yOswbW.js +0 -1
- package/dist/web/assets/WidgetSlot-B7yxgCiE.js +0 -2
- package/dist/web/assets/_plugin-vue_export-helper-BeJUwGpT.js +0 -9
- package/dist/web/assets/agent-occupation-C2t2vBpF.js +0 -1
- package/dist/web/assets/index-BV-ANqFp.js +0 -24
- package/dist/web/assets/label-table-fMpO7h0Z.js +0 -1
- package/dist/web/assets/popup-host-CiquKYlb.js +0 -1
- package/dist/web/assets/profile-model-C5a75PQ8.js +0 -1
- package/dist/web/assets/settings-tabs-Dl_s4RZD.js +0 -1
- package/dist/web/assets/useFormControl-Za9FvfCV.js +0 -1
- package/dist/web/assets/useForwardScopeId-CJ9RK88K.js +0 -1
- package/dist/web/assets/usePrimitiveElement-BFgEzNcq.js +0 -1
- package/src/graphiti/assistant-identity.js +0 -2
|
@@ -7,7 +7,7 @@ import { ApplicationError, InvalidInputError } from '../app/application-error.js
|
|
|
7
7
|
import { callingTask } from '../app/calling-task.js';
|
|
8
8
|
import { captureDecision } from '../graphiti/capture-decision.js';
|
|
9
9
|
import { refusedAgentWriteNotice } from '../graphiti/capture-notice.js';
|
|
10
|
-
import {
|
|
10
|
+
import { TONBORG_AGENT_ID } from '../employees/fixed-roles.js';
|
|
11
11
|
import { taskKnowledgeReader } from '../graphiti/knowledge-reader.js';
|
|
12
12
|
import { singleLineExcerpt as excerpt } from '../text/single-line.js';
|
|
13
13
|
import { DELEGATED_LIST_LIMIT, latestDelegatedReviews } from './delegated-reviews.js';
|
|
@@ -132,9 +132,8 @@ async function openQuestions(app, judgment, input, task, { only = null } = {}) {
|
|
|
132
132
|
// session, the whole space (11-08: the count matches 「Tonborg 拿不准」 in
|
|
133
133
|
// 待决策, less only items that are one FLA's own, which are counted as hidden).
|
|
134
134
|
// Any other FLA reads in its own project, as everywhere.
|
|
135
|
-
const TONBORG = employeeAgentId('tonborg');
|
|
136
135
|
function questionReader(task) {
|
|
137
|
-
return task?.projectAgentId ===
|
|
136
|
+
return task?.projectAgentId === TONBORG_AGENT_ID ? null : taskKnowledgeReader(task);
|
|
138
137
|
}
|
|
139
138
|
|
|
140
139
|
// The one sentence to ask and its two choices, the guess first. Written from
|
|
@@ -15,10 +15,14 @@ import { visibleKnowledgeKeys } from './visible-items.js';
|
|
|
15
15
|
// as its best guess. Every such decision is a judgment record marked
|
|
16
16
|
// delegated, with its reason, undone through /api/judgment/undo.
|
|
17
17
|
//
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
//
|
|
18
|
+
// With a model connected it spends that model's tokens. Without one the
|
|
19
|
+
// reviews wait as work packages for the current session, which answers them
|
|
20
|
+
// as Tonborg with its own model (Jevons 11-17); nothing runs in between.
|
|
21
|
+
// The session stands in only while no model is configured for Tonborg at all
|
|
22
|
+
// (role-trust.js). Turning it on is the person's say-so for Tonborg to act by
|
|
23
|
+
// itself: the same click clears 「只给建议」 and acknowledges the trust warning,
|
|
24
|
+
// each recorded in that role's settings history. An FLA turns it on only by
|
|
25
|
+
// relaying the person's words (agent_relayed in the interface catalog).
|
|
22
26
|
|
|
23
27
|
const id = z.string().trim().min(1).max(256);
|
|
24
28
|
const readInput = z.object({ personalSpaceId: id }).strict();
|
|
@@ -34,12 +38,16 @@ const ROLE = 'tonborg';
|
|
|
34
38
|
|
|
35
39
|
// Whether Tonborg has a model of its own for knowledge review, and whether its
|
|
36
40
|
// answers apply by themselves now (the trust gate as the settings page reads it).
|
|
41
|
+
// sessionStandsIn: no model is configured for Tonborg at all, so with the switch
|
|
42
|
+
// on the current session confirms for it; a configured model that is off or not
|
|
43
|
+
// allowed the review keeps the session's answers suggestions.
|
|
37
44
|
function tonborgModel(modelTrust) {
|
|
38
|
-
if (!modelTrust) return { connected: false, status: 'suggestion', reason: 'not_configured' };
|
|
45
|
+
if (!modelTrust) return { connected: false, sessionStandsIn: false, status: 'suggestion', reason: 'not_configured' };
|
|
39
46
|
const view = modelTrust.view(ROLE, TONBORG_OPERATIONS.review);
|
|
40
47
|
// Without a configured connection the view reads as a session's answer.
|
|
41
48
|
const connected = !['not_configured', 'session_answer'].includes(view.reason);
|
|
42
|
-
return { connected,
|
|
49
|
+
return { connected, sessionStandsIn: modelTrust.sessionMayStandIn(ROLE), status: view.status,
|
|
50
|
+
reason: connected ? view.reason : 'not_configured' };
|
|
43
51
|
}
|
|
44
52
|
|
|
45
53
|
// The switch as the console reads it: its state, Tonborg's model, and which
|
|
@@ -59,13 +67,29 @@ export async function reviewDelegation({ judgment, modelTrust, modelBackends = n
|
|
|
59
67
|
return delegationView({ judgment, modelTrust, modelBackends }, personalSpaceId, judgment.store().delegation(personalSpaceId));
|
|
60
68
|
}
|
|
61
69
|
|
|
70
|
+
// Whether the switch is on, for the model page's 执行方式 line. A judgment
|
|
71
|
+
// store that cannot be read yet reads as off: the line then says only what
|
|
72
|
+
// holds without the switch.
|
|
73
|
+
export async function reviewHandedOver(judgment, personalSpaceId) {
|
|
74
|
+
if (!judgment || !personalSpaceId) return false;
|
|
75
|
+
try {
|
|
76
|
+
await judgment.scope({ personalSpaceId });
|
|
77
|
+
return judgment.store().delegation(personalSpaceId).enabled;
|
|
78
|
+
} catch {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
62
83
|
export async function setReviewDelegation({ judgment, modelTrust, modelBackends = null, input }) {
|
|
63
84
|
const { personalSpaceId, enabled, expectedRevision, language } = parse(writeInput, input);
|
|
64
85
|
await judgment.scope({ personalSpaceId });
|
|
65
86
|
// Only turning it on is the say-so; saving it on again (a new language) changes no trust setting.
|
|
66
87
|
if (enabled && !judgment.store().delegation(personalSpaceId).enabled) {
|
|
67
|
-
|
|
68
|
-
|
|
88
|
+
// Without a model of its own Tonborg's reviews go to the current session,
|
|
89
|
+
// which then confirms as Tonborg (Jevons 11-17). The say-so is kept in the
|
|
90
|
+
// trust store either way; without that store nothing could hold it.
|
|
91
|
+
if (!modelTrust) {
|
|
92
|
+
throw new EmployeeError('Delegated review needs the model trust store, which is unavailable here.', 409,
|
|
69
93
|
'tonborg_model_required');
|
|
70
94
|
}
|
|
71
95
|
let trust = modelTrust.view(ROLE, TONBORG_OPERATIONS.review);
|
package/src/judgment/store.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { randomUUID } from 'node:crypto';
|
|
2
2
|
import { immediateTransaction, openFormattedDatabase, sqliteFormat } from '../../packages/roundtable/src/storage/database-format.js';
|
|
3
|
+
import { BOLE_AGENT_ID, JEFA_AGENT_ID, TONBORG_AGENT_ID } from '../employees/fixed-roles.js';
|
|
3
4
|
import { EmployeeError } from '../employees/manifest.js';
|
|
4
5
|
import { deletedKnowledgeBeside } from '../knowledge-hard-delete/delete-ledger.js';
|
|
5
6
|
import { forgetDurably, forgetReferences } from '../knowledge-hard-delete/forget-references.js';
|
|
6
7
|
import { assertKnowledgeRecovery } from '../knowledge-hard-delete/recovery-gate.js';
|
|
7
8
|
|
|
8
|
-
const DEFAULT_PINS = Object.freeze([
|
|
9
|
+
const DEFAULT_PINS = Object.freeze([BOLE_AGENT_ID, JEFA_AGENT_ID, TONBORG_AGENT_ID]);
|
|
9
10
|
const DEFAULT_POLICY = Object.freeze({ mode: 'manual', quality: 'quality', client: 'codex' });
|
|
10
11
|
// A record's latest execution status and receipt, as get() reports them.
|
|
11
12
|
const LATEST_EXECUTION = 'FROM judgment_execution e WHERE e.decision = r.id ORDER BY e.id DESC LIMIT 1';
|
|
@@ -167,6 +167,29 @@ export class RecallImpressionsStore {
|
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
+
// deliveredBetween's tasks one by one, the latest first, at most `limit`:
|
|
171
|
+
// when each began, the client and model its entry recorded, and what it
|
|
172
|
+
// carried inside the window: the habits its entry was handed (none when the
|
|
173
|
+
// entry is from before the window and only a later recall brings the task
|
|
174
|
+
// in) and the recalled items it was shown. `key` is what a receipt link
|
|
175
|
+
// names the task by (delivery reads it back); a task from before version 2
|
|
176
|
+
// has recall rows only, so no key, client or model.
|
|
177
|
+
deliveredTasks({ personalSpaceId, from, to, limit }) {
|
|
178
|
+
if (!this.readable) return [];
|
|
179
|
+
const window = [personalSpaceId, from, to];
|
|
180
|
+
return this.db.prepare(`SELECT tasks.task_key AS task_key, tasks.at AS at, entry.task_key IS NOT NULL AS entered,
|
|
181
|
+
entry.source_application AS client, entry.model AS model,
|
|
182
|
+
CASE WHEN entry.delivered_at >= ? AND entry.delivered_at < ? THEN json_array_length(entry.preference_keys) END AS habits,
|
|
183
|
+
(SELECT COUNT(*) FROM recall_impressions AS shown
|
|
184
|
+
WHERE shown.task_key = tasks.task_key AND shown.shown_at >= ? AND shown.shown_at < ?) AS recalled
|
|
185
|
+
FROM (SELECT task_key, MIN(at) AS at FROM (SELECT task_key, shown_at AS at ${RECALL_IN_WINDOW}
|
|
186
|
+
UNION ALL SELECT task_key, delivered_at AS at ${ENTRIES_IN_WINDOW}) GROUP BY task_key) AS tasks
|
|
187
|
+
LEFT JOIN task_deliveries AS entry ON entry.task_key = tasks.task_key
|
|
188
|
+
ORDER BY tasks.at DESC, tasks.task_key LIMIT ?`).all(from, to, from, to, ...window, ...window, limit)
|
|
189
|
+
.map(row => ({ key: row.entered ? row.task_key.slice(0, TASK_KEY_PREFIX_LENGTH) : null, at: row.at,
|
|
190
|
+
client: row.client, model: row.model, habits: row.habits ?? 0, recalled: row.recalled }));
|
|
191
|
+
}
|
|
192
|
+
|
|
170
193
|
// deliveredBetween's tasks per local day: the day is the stored UTC instant
|
|
171
194
|
// moved by offsetMinutes (the caller's UTC offset), as YYYY-MM-DD. One
|
|
172
195
|
// grouped read; days without a task are not listed.
|
|
@@ -3,7 +3,7 @@ import { graphReadPath, preferenceConflictsPath } from '../graphiti/knowledge-re
|
|
|
3
3
|
|
|
4
4
|
// The person's own full reads of personal knowledge, from the local console:
|
|
5
5
|
// the graph, one item's view, a turn's full receipt, a session's records and
|
|
6
|
-
// what it holds for a migration and the preference conflicts; the person's defer and completion of a conflict, which answer as
|
|
6
|
+
// what it holds for a migration, the items a statement's numbers count and the preference conflicts; the person's defer and completion of a conflict, which answer as
|
|
7
7
|
// missing to a reader that may not see its items; and the person's own change
|
|
8
8
|
// of an item (a revision, a batch confirmation, a move to another project),
|
|
9
9
|
// which the provider records as theirs only with this proof. Knowledge an FLA wrote, and
|
|
@@ -35,6 +35,7 @@ export function knowledgeOwnerReads(dataDir, { send = personalHumanReviewChannel
|
|
|
35
35
|
itemView: (body) => request('/v1/knowledge/item-views', body),
|
|
36
36
|
turnReceipt: (body) => request('/v1/knowledge/turn-receipts', body),
|
|
37
37
|
sessionRecords: (body) => request('/v1/session-records', body),
|
|
38
|
+
statementItems: (body) => request('/v1/knowledge/statement/items', body),
|
|
38
39
|
sessionMigration: (body) => request('/v1/knowledge/session-migrations/preview', body),
|
|
39
40
|
preferenceConflicts: ({ personalSpaceId, status, limit, offset }) =>
|
|
40
41
|
request(preferenceConflictsPath(personalSpaceId, { status, limit, offset }), null, 'GET'),
|
|
@@ -25,6 +25,10 @@ export function estimateTokens(value) {
|
|
|
25
25
|
|
|
26
26
|
// A request may tighten the role's per-call limits, never widen them.
|
|
27
27
|
// outputRoomTokens: the most a retry stopped at the output limit may ask for.
|
|
28
|
+
// callerDeadline: a hot-path caller (requested.hotPath) tightened the role's
|
|
29
|
+
// time limit; running out of it is the caller's choice, not the role's failure.
|
|
30
|
+
// Background work that only asks for less than the role allows (retrieval
|
|
31
|
+
// terms, retrospectives) does not say hotPath, so its timeouts stay the role's.
|
|
28
32
|
export function callLimits(budget, requested = {}) {
|
|
29
33
|
const maxOutputTokens = Math.min(budget.maxOutputTokens ?? DEFAULT_OUTPUT_TOKENS, requested.maxOutputTokens ?? Infinity);
|
|
30
34
|
const unset = budget.maxOutputTokens == null && requested.maxOutputTokens == null;
|
|
@@ -32,7 +36,8 @@ export function callLimits(budget, requested = {}) {
|
|
|
32
36
|
maxInputTokens: budget.maxInputTokens ?? Infinity,
|
|
33
37
|
maxOutputTokens,
|
|
34
38
|
outputRoomTokens: unset ? UNSET_OUTPUT_ROOM_TOKENS : maxOutputTokens,
|
|
35
|
-
timeoutMs: Math.min(budget.timeoutMs ?? DEFAULT_TIMEOUT_MS, requested.timeoutMs ?? Infinity)
|
|
39
|
+
timeoutMs: Math.min(budget.timeoutMs ?? DEFAULT_TIMEOUT_MS, requested.timeoutMs ?? Infinity),
|
|
40
|
+
callerDeadline: requested.hotPath === true && (requested.timeoutMs ?? Infinity) < (budget.timeoutMs ?? DEFAULT_TIMEOUT_MS)
|
|
36
41
|
};
|
|
37
42
|
}
|
|
38
43
|
|
|
@@ -22,6 +22,8 @@ const STRUCTURED_OUTPUT_SIGNAL = /response_format|json_schema|output_config|outp
|
|
|
22
22
|
// output, key use, permission, budget, egress or task) and stays the role's
|
|
23
23
|
// until the role itself answers. A timeout is the role's too: the time limit is
|
|
24
24
|
// the role's own budget, so a long request of one role says nothing of the rest.
|
|
25
|
+
// A time limit a hot-path caller tightened below the role's is not that
|
|
26
|
+
// budget: such a timeout is passed over when health is read (rec#139, port.js health).
|
|
25
27
|
export const CONNECTIVITY_REASONS = Object.freeze(['network']);
|
|
26
28
|
|
|
27
29
|
export function modelFailure(failureClass, reason, { retryAfterMs = null } = {}) {
|
|
@@ -20,7 +20,10 @@ import { RETENTION } from './suggestion-log.js';
|
|
|
20
20
|
// operations: the task types each role already sends to its model.
|
|
21
21
|
// automaticOperations: the one operation per role that may apply its model's
|
|
22
22
|
// answer by itself (rec#10 D-36); modelTrust (src/model-backends/role-trust.js)
|
|
23
|
-
// says whether it does now.
|
|
23
|
+
// says whether it does now. handedOver[role](): whether the person handed that
|
|
24
|
+
// operation to the role with its own switch (for Tonborg 「交给 Tonborg
|
|
25
|
+
// 确认」), so a role without a model reads as the session standing in for it.
|
|
26
|
+
// readEvaluation(key): the latest evaluation of that
|
|
24
27
|
// role's model on this computer (evaluation-record.js), or null.
|
|
25
28
|
// localBuild: what a local Ollama listed for each role's configured model at
|
|
26
29
|
// its latest answer (rec#10 D-32), read-only: an observation, never proof.
|
|
@@ -66,8 +69,8 @@ async function handleConnectionCheck({ request, response, modelBackends, role })
|
|
|
66
69
|
|
|
67
70
|
export async function handleModelBackendApiRequest({
|
|
68
71
|
request, response, url, modelBackends, roleWork = null, readRoleSuggestions = null, roleSettings = null, operations = {},
|
|
69
|
-
automaticOperations = {},
|
|
70
|
-
personalSpaceId = null
|
|
72
|
+
automaticOperations = {}, handedOver = {}, modelTrust = null, settingsHistory = null, readEvaluation = null,
|
|
73
|
+
ownerReads = null, personalSpaceId = null
|
|
71
74
|
}) {
|
|
72
75
|
const checked = CHECK_ROUTE.exec(url.pathname)?.[1] ?? null;
|
|
73
76
|
if (checked) return handleConnectionCheck({ request, response, modelBackends, role: checked });
|
|
@@ -114,8 +117,11 @@ export async function handleModelBackendApiRequest({
|
|
|
114
117
|
}
|
|
115
118
|
if (roleEdit || trustEdit || url.pathname === '/api/model-backends/roles') {
|
|
116
119
|
const settings = modelBackends.roles();
|
|
120
|
+
const handed = Object.fromEntries(await Promise.all(Object.entries(handedOver)
|
|
121
|
+
.map(async ([role, read]) => [role, await read()])));
|
|
117
122
|
sendJson(response, 200, { ...settings, roles: settings.roles.map(role => ({ ...role,
|
|
118
|
-
trust: trustView(role, settings.connections, { automaticOperations, modelTrust, readEvaluation
|
|
123
|
+
trust: trustView(role, settings.connections, { automaticOperations, modelTrust, readEvaluation,
|
|
124
|
+
handedOver: handed[role.role] === true }),
|
|
119
125
|
localBuild: modelBackends.localBuild(role.role, role.connection?.id ?? null,
|
|
120
126
|
role.connection ? settings.connections[role.connection.id] : null),
|
|
121
127
|
health: modelBackends.health?.(role.role, role.connection?.id ?? null,
|
|
@@ -143,10 +149,10 @@ function historyQuery(params) {
|
|
|
143
149
|
// operation by itself now, the person's 「只给建议」 choice and warning
|
|
144
150
|
// acknowledgement, and the latest local evaluation of the configured model.
|
|
145
151
|
// null for a role with no such operation: everything it does is a suggestion.
|
|
146
|
-
function trustView(role, connections, { automaticOperations, modelTrust, readEvaluation }) {
|
|
152
|
+
function trustView(role, connections, { automaticOperations, modelTrust, readEvaluation, handedOver }) {
|
|
147
153
|
const operation = automaticOperations[role.role];
|
|
148
154
|
if (!operation || !modelTrust) return null;
|
|
149
155
|
const served = role.answeredBy === 'model_api' ? connections[role.connection.id] : null;
|
|
150
|
-
return { operation, ...modelTrust.view(role.role, operation), evaluation: served && readEvaluation
|
|
156
|
+
return { operation, ...modelTrust.view(role.role, operation, { handedOver }), evaluation: served && readEvaluation
|
|
151
157
|
? readEvaluation({ role: role.role, operation, model: served.model, endpoint: served.endpoint }) : null };
|
|
152
158
|
}
|
|
@@ -110,7 +110,7 @@ export function createModelBackendPort({ readConfig, secrets, ledger, fetchImpl
|
|
|
110
110
|
// An attempt as the ledger keeps it before it goes out: metadata only,
|
|
111
111
|
// never prompt text, texts or vectors. Reserves its ceiling in the role's
|
|
112
112
|
// window and answers the reason it may not start, or null.
|
|
113
|
-
function reserveAttempt(request, call, { purpose, inputTokens, maxOutputTokens, remainingMs }) {
|
|
113
|
+
function reserveAttempt(request, call, { purpose, inputTokens, maxOutputTokens, remainingMs, callerDeadline = false }) {
|
|
114
114
|
const { target, roleConfig } = call;
|
|
115
115
|
const attemptStarted = now();
|
|
116
116
|
const pending = {
|
|
@@ -120,7 +120,7 @@ export function createModelBackendPort({ readConfig, secrets, ledger, fetchImpl
|
|
|
120
120
|
healthIdentity: connectionHealthIdentity(target.id, target), protocol: target.protocol,
|
|
121
121
|
endpointHost: new URL(target.endpoint).host, endpoint: target.endpoint, requestedModel: target.model, outputMode: call.mode,
|
|
122
122
|
startedAt: attemptStarted.toISOString(), budgetCeilingTokens: inputTokens + maxOutputTokens,
|
|
123
|
-
costCurrency: target.pricing?.currency ?? null
|
|
123
|
+
costCurrency: target.pricing?.currency ?? null, callerDeadline
|
|
124
124
|
};
|
|
125
125
|
const blocked = ledger.reserve({ attempt: pending, ceilingCost: ceilingCost(target.pricing, inputTokens, maxOutputTokens),
|
|
126
126
|
expiresAt: new Date(attemptStarted.getTime() + remainingMs + RESERVATION_GRACE_MS).toISOString(),
|
|
@@ -161,7 +161,7 @@ export function createModelBackendPort({ readConfig, secrets, ledger, fetchImpl
|
|
|
161
161
|
if (inputTokens > limits.maxInputTokens) return stop('budget_exhausted', 'per_call_input');
|
|
162
162
|
|
|
163
163
|
const { pending, attemptStarted, blocked } = reserveAttempt(request, call,
|
|
164
|
-
{ purpose, inputTokens, maxOutputTokens: outputTokens, remainingMs });
|
|
164
|
+
{ purpose, inputTokens, maxOutputTokens: outputTokens, remainingMs, callerDeadline: limits.callerDeadline });
|
|
165
165
|
if (blocked) return stop('budget_exhausted', blocked);
|
|
166
166
|
|
|
167
167
|
let result;
|
|
@@ -255,7 +255,8 @@ export function createModelBackendPort({ readConfig, secrets, ledger, fetchImpl
|
|
|
255
255
|
for (;;) {
|
|
256
256
|
const remainingMs = deadline - now().getTime();
|
|
257
257
|
if (remainingMs < MIN_ATTEMPT_MS) return stop('transient', 'timeout');
|
|
258
|
-
const { pending, attemptStarted, blocked } = reserveAttempt(request, call, { purpose, inputTokens, maxOutputTokens: 0, remainingMs
|
|
258
|
+
const { pending, attemptStarted, blocked } = reserveAttempt(request, call, { purpose, inputTokens, maxOutputTokens: 0, remainingMs,
|
|
259
|
+
callerDeadline: limits.callerDeadline });
|
|
259
260
|
if (blocked) return stop('budget_exhausted', blocked);
|
|
260
261
|
let result;
|
|
261
262
|
try {
|
|
@@ -347,6 +348,12 @@ export function createModelBackendPort({ readConfig, secrets, ledger, fetchImpl
|
|
|
347
348
|
const settings = this.roles().roles.find(entry => entry.role === role);
|
|
348
349
|
return settings?.state === 'enabled' && settings.allowedOperations.includes(operation) ? settings : null;
|
|
349
350
|
},
|
|
351
|
+
// Whether the person configured a model for the role at all: enabled or
|
|
352
|
+
// disabled, whatever operations it allows. A file that does not validate
|
|
353
|
+
// counts as configured, so nothing reads it as having no model.
|
|
354
|
+
hasModel(role) {
|
|
355
|
+
return this.roles().roles.find(entry => entry.role === role)?.state !== 'not_configured';
|
|
356
|
+
},
|
|
350
357
|
// Whether the whole request would still be allowed out now, for a role
|
|
351
358
|
// that rechecks before it shows a late answer. A role that is gone,
|
|
352
359
|
// disabled or no longer allowed the operation allows nothing.
|
|
@@ -376,11 +383,13 @@ export function createModelBackendPort({ readConfig, secrets, ledger, fetchImpl
|
|
|
376
383
|
// that says whether it answers (scope 'connection'): a newer answer
|
|
377
384
|
// supersedes an older network failure, and a newer network failure
|
|
378
385
|
// reaches every role on it. An answer that would not validate still came
|
|
379
|
-
// from a working model, so only a failed call counts as failing.
|
|
386
|
+
// from a working model, so only a failed call counts as failing. A
|
|
387
|
+
// timeout under a time limit a hot-path caller tightened (budget.hotPath:
|
|
388
|
+
// it would not wait, rec#139) is passed over: the attempt before it decides.
|
|
380
389
|
health(role, connectionId, connection) {
|
|
381
390
|
if (!connection) return null;
|
|
382
391
|
const identity = connectionHealthIdentity(connectionId, connection);
|
|
383
|
-
const own = ledger.lastAttempt({ healthIdentity: identity, role });
|
|
392
|
+
const own = ledger.lastAttempt({ healthIdentity: identity, role, skipCallerTimeouts: true });
|
|
384
393
|
if (own?.outcome === 'failed' && !CONNECTIVITY_REASONS.includes(own.failureReason)) return failingHealth(own, 'role');
|
|
385
394
|
const shared = ledger.lastAttempt({ healthIdentity: identity, connectivityReasons: CONNECTIVITY_REASONS });
|
|
386
395
|
if (!shared) return { status: 'unknown', at: null, reason: null, scope: null };
|
|
@@ -44,7 +44,9 @@ const requestSchema = z.object({
|
|
|
44
44
|
.refine(items => new Set(items.map(item => item.id)).size === items.length, 'evidence IDs must be unique'),
|
|
45
45
|
output: outputSchema,
|
|
46
46
|
decisions: z.array(z.enum(DECISIONS)).min(1).max(DECISIONS.length).default([...DEFAULT_DECISIONS]),
|
|
47
|
-
|
|
47
|
+
// hotPath: the caller is on a path a person waits on and set timeoutMs for
|
|
48
|
+
// it; a timeout under it is then not the role's failure (budget.js callLimits).
|
|
49
|
+
budget: z.object({ maxOutputTokens: z.number().int().positive(), timeoutMs: z.number().int().positive(), hotPath: z.boolean() })
|
|
48
50
|
.partial().strict().default({})
|
|
49
51
|
}).strict();
|
|
50
52
|
|
|
@@ -56,7 +58,7 @@ const embeddingSchema = z.object({
|
|
|
56
58
|
scope: scopeSchema,
|
|
57
59
|
texts: z.array(z.string().trim().min(1).max(MAX_EMBEDDING_TEXT_CHARS)).min(1).max(MAX_EMBEDDING_TEXTS),
|
|
58
60
|
// A search waits only so long for its query's vector, then goes on by words.
|
|
59
|
-
budget: z.object({ timeoutMs: z.number().int().positive() }).strict().optional()
|
|
61
|
+
budget: z.object({ timeoutMs: z.number().int().positive(), hotPath: z.boolean().optional() }).strict().optional()
|
|
60
62
|
}).strict();
|
|
61
63
|
|
|
62
64
|
const usageQuerySchema = z.object({
|
|
@@ -11,8 +11,14 @@ import { scopeEgress } from './egress.js';
|
|
|
11
11
|
// operations (today Tonborg's knowledge review write-back) apply what that
|
|
12
12
|
// model answered, unless the person switched the role to 「只给建议」, or has
|
|
13
13
|
// not yet acknowledged the one-line warning on the settings page. An answer
|
|
14
|
-
// from the current session
|
|
15
|
-
//
|
|
14
|
+
// from the current session is a suggestion, with one exception (Jevons
|
|
15
|
+
// 11-17): a role with no model configured at all, to which the person handed
|
|
16
|
+
// the operation over (key.handedOver, set by the role's own switch), has the
|
|
17
|
+
// session stand in for it under the same choice and warning. A configured
|
|
18
|
+
// role that is disabled or not allowed the operation keeps session answers
|
|
19
|
+
// suggestions, since an Agent may change those settings for the person. A
|
|
20
|
+
// session answering after the role's model failed stays a suggestion: a
|
|
21
|
+
// fallback never applies by itself.
|
|
16
22
|
//
|
|
17
23
|
// Trust relaxes nothing else: permission, egress, the person's own policy and
|
|
18
24
|
// safety rules, the capture switch, injection isolation and the hard-delete
|
|
@@ -68,15 +74,26 @@ export function createRoleTrust({ path = ':memory:', modelBackends, history = nu
|
|
|
68
74
|
warningSeen: row.warning_version === TRUST_WARNING_VERSION, warningSeenAt: row.warning_seen_at, revision: row.revision };
|
|
69
75
|
}
|
|
70
76
|
|
|
71
|
-
//
|
|
72
|
-
//
|
|
73
|
-
//
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
//
|
|
77
|
+
// Whether the current session may stand in for the role: only while the
|
|
78
|
+
// person configured no model for it at all, read now, so a model configured
|
|
79
|
+
// since the session answered takes the operation back.
|
|
80
|
+
const sessionMayStandIn = role => !modelBackends.hasModel(role);
|
|
81
|
+
|
|
82
|
+
// key: { role, operation, connection, model, scope, handedOver }.
|
|
83
|
+
// connection: the identity of the configured connection that answered
|
|
84
|
+
// (config.js connectionIdentity), null for a current-session answer; model
|
|
85
|
+
// names it in receipts. scope: the answer's { personalSpaceId,
|
|
86
|
+
// personalProjectId }, checked against the role's egress approval as it is
|
|
87
|
+
// now; omitted for the settings view, which has no answer. handedOver: the
|
|
88
|
+
// person handed this operation to the role, and no model answered or failed.
|
|
77
89
|
function verdict(key, current) {
|
|
78
90
|
const refuse = reason => ({ status: 'not_passed', reason, modelId: key.model ?? null });
|
|
79
|
-
if (!key.connection)
|
|
91
|
+
if (!key.connection) {
|
|
92
|
+
if (!key.handedOver || !sessionMayStandIn(key.role)) return refuse('session_answer');
|
|
93
|
+
if (current.suggestionsOnly) return refuse('suggestions_only');
|
|
94
|
+
if (!current.warningSeen) return refuse('warning_not_seen');
|
|
95
|
+
return { status: 'passed', reason: null, modelId: null };
|
|
96
|
+
}
|
|
80
97
|
const settings = modelBackends.operationSettings(key.role, key.operation);
|
|
81
98
|
if (!settings) return refuse('not_configured');
|
|
82
99
|
// Another connection, endpoint, protocol or model than the one that answered.
|
|
@@ -143,14 +160,18 @@ export function createRoleTrust({ path = ':memory:', modelBackends, history = nu
|
|
|
143
160
|
return write(gate);
|
|
144
161
|
});
|
|
145
162
|
},
|
|
163
|
+
// Whether the current session stands in for a role the person handed an
|
|
164
|
+
// operation over to; a task's acceptance asks it (it has no write gate).
|
|
165
|
+
sessionMayStandIn,
|
|
146
166
|
// What the settings page shows of a role whose operations may run by
|
|
147
167
|
// themselves: the person's choice, the acknowledgement, and whether the
|
|
148
|
-
// configured model would execute now
|
|
149
|
-
|
|
168
|
+
// configured model would execute now, or with handedOver (the role's own
|
|
169
|
+
// switch is on) the current session standing in for a role without one.
|
|
170
|
+
view(role, operation, { handedOver = false } = {}) {
|
|
150
171
|
const current = state(role);
|
|
151
172
|
const settings = modelBackends.operationSettings(role, operation);
|
|
152
173
|
const gate = verdict({ role, operation, connection: settings?.connection.identity ?? null,
|
|
153
|
-
model: settings?.connection.model ?? null }, current);
|
|
174
|
+
model: settings?.connection.model ?? null, ...(handedOver ? { handedOver: true } : {}) }, current);
|
|
154
175
|
return { suggestionsOnly: current.suggestionsOnly, warningSeen: current.warningSeen,
|
|
155
176
|
warningSeenAt: current.warningSeenAt, warningVersion: TRUST_WARNING_VERSION, revision: current.revision,
|
|
156
177
|
status: gate.status === 'passed' ? 'automatic' : 'suggestion', reason: gate.reason };
|
|
@@ -67,6 +67,12 @@ export const MODEL_USAGE_FORMAT = sqliteFormat({
|
|
|
67
67
|
id: 'model-usage/3-health-identity', to: 3, kind: 'add-columns', table: 'model_attempts',
|
|
68
68
|
summary: 'the health identity (connection and key reference) of the configuration each attempt used (rec#122)',
|
|
69
69
|
columns: { health_identity: 'TEXT' }
|
|
70
|
+
}, {
|
|
71
|
+
// Earlier attempts keep it NULL: whether their caller tightened the time
|
|
72
|
+
// limit is not known, so their timeouts still count as the role's.
|
|
73
|
+
id: 'model-usage/4-caller-deadline', to: 4, kind: 'add-columns', table: 'model_attempts',
|
|
74
|
+
summary: 'whether the caller of each attempt tightened the role\'s time limit, as a hot path does (rec#139)',
|
|
75
|
+
columns: { caller_deadline: 'INTEGER' }
|
|
70
76
|
}]
|
|
71
77
|
});
|
|
72
78
|
|
|
@@ -85,7 +91,7 @@ export class ModelUsageLedger {
|
|
|
85
91
|
// True when stored, false when this (requestId, attemptId) already exists.
|
|
86
92
|
record(attempt) {
|
|
87
93
|
const { usage } = attempt;
|
|
88
|
-
const result = this.db.prepare(`INSERT INTO model_attempts VALUES(${Array(
|
|
94
|
+
const result = this.db.prepare(`INSERT INTO model_attempts VALUES(${Array(34).fill('?').join(',')})
|
|
89
95
|
ON CONFLICT(request_id, attempt_id) DO NOTHING`).run(
|
|
90
96
|
attempt.requestId, attempt.attemptId, attempt.attemptNumber, attempt.purpose, attempt.channel,
|
|
91
97
|
attempt.role, attempt.operation, attempt.personalSpaceId, attempt.personalProjectId,
|
|
@@ -93,7 +99,8 @@ export class ModelUsageLedger {
|
|
|
93
99
|
attempt.outputMode, attempt.startedAt, attempt.durationMs, attempt.outcome, attempt.failureClass, attempt.failureReason,
|
|
94
100
|
usage.inputTokens, usage.outputTokens, usage.totalTokens, usage.cachedInputTokens, usage.cacheWriteInputTokens,
|
|
95
101
|
usage.reasoningTokens, usage.definition, attempt.budgetCeilingTokens, attempt.estimatedCost, attempt.costCurrency,
|
|
96
|
-
attempt.endpoint ?? null, attempt.observedTagDigest ?? null, attempt.healthIdentity ?? null
|
|
102
|
+
attempt.endpoint ?? null, attempt.observedTagDigest ?? null, attempt.healthIdentity ?? null,
|
|
103
|
+
attempt.callerDeadline ? 1 : null);
|
|
97
104
|
return result.changes === 1;
|
|
98
105
|
}
|
|
99
106
|
|
|
@@ -210,14 +217,17 @@ export class ModelUsageLedger {
|
|
|
210
217
|
// red while the configured model fails). With role, only that role's
|
|
211
218
|
// attempts. With connectivityReasons and no role, the latest attempt of any
|
|
212
219
|
// role that says whether the connection answers (rec#122): an answer, valid
|
|
213
|
-
// or not, or a failure for one of those reasons.
|
|
214
|
-
|
|
220
|
+
// or not, or a failure for one of those reasons. With
|
|
221
|
+
// skipCallerTimeouts, a timeout under a time limit a hot-path caller
|
|
222
|
+
// tightened is passed over (rec#139): it says the caller would not wait, nothing more.
|
|
223
|
+
lastAttempt({ healthIdentity, role = null, connectivityReasons = null, skipCallerTimeouts = false }) {
|
|
215
224
|
const reasons = connectivityReasons ? JSON.stringify(connectivityReasons) : null;
|
|
216
225
|
const row = this.db.prepare(`SELECT outcome, failure_class, failure_reason, started_at, duration_ms FROM model_attempts
|
|
217
226
|
WHERE channel = 'model_api' AND health_identity = ?1 AND (?2 IS NULL OR role = ?2)
|
|
218
227
|
AND (?3 IS NULL OR outcome != 'failed' OR failure_reason IN (SELECT value FROM json_each(?3)))
|
|
228
|
+
AND (?4 = 0 OR outcome != 'failed' OR failure_reason != 'timeout' OR caller_deadline IS NOT 1)
|
|
219
229
|
ORDER BY julianday(started_at) * 86400000 + duration_ms DESC, rowid DESC LIMIT 1`)
|
|
220
|
-
.get(healthIdentity, role, reasons);
|
|
230
|
+
.get(healthIdentity, role, reasons, skipCallerTimeouts ? 1 : 0);
|
|
221
231
|
return row ? { outcome: row.outcome, failureClass: row.failure_class, failureReason: row.failure_reason,
|
|
222
232
|
at: new Date(Date.parse(row.started_at) + row.duration_ms).toISOString() } : null;
|
|
223
233
|
}
|
|
@@ -2,6 +2,8 @@ import { AGENT_DELEGATION_FORMAT } from '../agent-delegation/operation-log.js';
|
|
|
2
2
|
import { AGENT_DELEGATION_POLICY_FORMAT } from '../agent-delegation/policy-store.js';
|
|
3
3
|
import { AGENT_ACCESS_POLICY_FORMAT } from '../graphiti/agent-access-policy.js';
|
|
4
4
|
import { GRAPH_RUNTIME_CONFIG_FORMAT } from '../graphiti/runtime-config.js';
|
|
5
|
+
import { JUDGMENT_FORMAT } from '../judgment/store.js';
|
|
6
|
+
import { MODEL_TRUST_FORMAT } from '../model-backends/role-trust.js';
|
|
5
7
|
import { MODEL_BACKEND_CONFIG_FORMAT } from '../model-backends/config.js';
|
|
6
8
|
import { MODEL_SECRETS_FORMAT } from '../model-backends/secret-store.js';
|
|
7
9
|
|
|
@@ -9,10 +11,13 @@ import { MODEL_SECRETS_FORMAT } from '../model-backends/secret-store.js';
|
|
|
9
11
|
// holds credentials, and a copy of a client's config (it may carry MCP tokens),
|
|
10
12
|
// are listed but never read. Those stores, what limits an Agent and the record
|
|
11
13
|
// of what Agents did go back only by the person's own click: an FLA restoring
|
|
12
|
-
// them could undo the limits on itself or the record of its actions.
|
|
14
|
+
// them could undo the limits on itself or the record of its actions. So do the
|
|
15
|
+
// judgment store (it holds 「交给 Tonborg 确认」) and the model trust store
|
|
16
|
+
// (「只给建议」 and the warning seen): an old copy of either could hand an
|
|
17
|
+
// Agent's session the say-so the person never gave.
|
|
13
18
|
const SECRET_STORES = new Set([MODEL_SECRETS_FORMAT.store, MODEL_BACKEND_CONFIG_FORMAT.store, GRAPH_RUNTIME_CONFIG_FORMAT.store]);
|
|
14
19
|
const PERSON_ONLY_RESTORES = new Set([...SECRET_STORES, AGENT_ACCESS_POLICY_FORMAT.store,
|
|
15
|
-
AGENT_DELEGATION_POLICY_FORMAT.store, AGENT_DELEGATION_FORMAT.store]);
|
|
20
|
+
AGENT_DELEGATION_POLICY_FORMAT.store, AGENT_DELEGATION_FORMAT.store, JUDGMENT_FORMAT.store, MODEL_TRUST_FORMAT.store]);
|
|
16
21
|
|
|
17
22
|
export const unreadable = (item) => item.kind === 'client_config_backup' || SECRET_STORES.has(item.store);
|
|
18
23
|
export const personOnlyRestore = (item) => PERSON_ONLY_RESTORES.has(item.store);
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
// and writes its digest here before publishing (scripts/pin-win-helper.js); a
|
|
4
4
|
// source checkout has no helper and no pin, so Windows Hello is unavailable there.
|
|
5
5
|
// The helper is not Authenticode-signed: this digest is its only integrity check.
|
|
6
|
-
export const WIN_HELPER_SHA256 = '
|
|
6
|
+
export const WIN_HELPER_SHA256 = '9db1fd30fca2a5dde5b43ebef61439248fb7d26dc2c580ccd76246a18033afcf';
|
|
@@ -54,12 +54,13 @@ export async function fillSemanticIndex(application, { signal = null, onProgress
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
// A query's own vector, or null: no model, a project not approved, a failure
|
|
57
|
-
// or too slow. Search then goes on by words alone.
|
|
57
|
+
// or too slow. Search then goes on by words alone. A search waits on it, so
|
|
58
|
+
// the request says hotPath: a timeout under timeoutMs is not the role's failure.
|
|
58
59
|
export async function queryVector(application, { personalProjectId = null, query, timeoutMs }) {
|
|
59
60
|
const model = semanticModel(application);
|
|
60
61
|
if (!model || typeof query !== 'string' || !query.trim()) return null;
|
|
61
62
|
const text = query.slice(0, 2048);
|
|
62
|
-
const request = embeddingRequest(application.config.personal.spaceId, personalProjectId, [text], timeoutMs);
|
|
63
|
+
const request = embeddingRequest(application.config.personal.spaceId, personalProjectId, [text], timeoutMs ? { timeoutMs, hotPath: true } : null);
|
|
63
64
|
if (!application.modelBackends.allowsEgress(request)) return null;
|
|
64
65
|
const key = `${model}\n${text}`;
|
|
65
66
|
const kept = queryCache.get(key);
|
|
@@ -77,10 +78,10 @@ export async function queryVector(application, { personalProjectId = null, query
|
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
|
|
80
|
-
function embeddingRequest(personalSpaceId, personalProjectId, texts,
|
|
81
|
+
function embeddingRequest(personalSpaceId, personalProjectId, texts, budget = null) {
|
|
81
82
|
return { role: SEMANTIC_ROLE, operation: KNOWLEDGE_EMBEDDING_OPERATION, requestId: `semantic:${randomUUID()}`,
|
|
82
83
|
scope: { personalSpaceId, personalProjectId, sessionRef: null }, texts,
|
|
83
|
-
...(
|
|
84
|
+
...(budget ? { budget } : {}) };
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
function byProject(items) {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { normalisedClient } from '../agents/source-applications.js';
|
|
2
|
+
|
|
3
|
+
// The lists behind two of the statement's numbers, for the person's console
|
|
4
|
+
// only (no Agent tool reads them): which conversations carried habits, and
|
|
5
|
+
// which items were learned and confirmed in the window. Each list is read from
|
|
6
|
+
// the source its number is counted from, by the same rule, so the two agree.
|
|
7
|
+
// Rows carry ids, times and counts; the console reads an item's text itself.
|
|
8
|
+
|
|
9
|
+
// The rows one list holds.
|
|
10
|
+
const DETAIL_ROWS = 50;
|
|
11
|
+
|
|
12
|
+
// carried.tasks one by one (带上习惯的对话): when, in which client and model,
|
|
13
|
+
// how many habits and recalled items, and the key its habit list is read by.
|
|
14
|
+
// One local read; `more` says rows were left out.
|
|
15
|
+
export function carriedTasks(app, { from, to }) {
|
|
16
|
+
const window = { from: from.toISOString(), to: to.toISOString() };
|
|
17
|
+
const rows = app.recallImpressions.deliveredTasks({ personalSpaceId: app.config.personal.spaceId, ...window, limit: DETAIL_ROWS + 1 });
|
|
18
|
+
return { window,
|
|
19
|
+
rows: rows.slice(0, DETAIL_ROWS).map(row => ({ ...row, client: row.client === null ? null : normalisedClient(row.client) || 'other' })),
|
|
20
|
+
more: rows.length > DETAIL_ROWS };
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// learned.captured and learned.confirmedByYou one by one (新学到的, 你确认的):
|
|
24
|
+
// which items, by kind, id and time, the latest first, with each list's whole
|
|
25
|
+
// count. The Provider answers only to the console's human-review proof
|
|
26
|
+
// (ownerReads): the lists name every FLA's items.
|
|
27
|
+
export async function learnedItems(app, ownerReads, { from, to }) {
|
|
28
|
+
const window = { from: from.toISOString(), to: to.toISOString() };
|
|
29
|
+
const value = await ownerReads.statementItems({ personal_space_id: app.config.personal.spaceId,
|
|
30
|
+
since: window.from, until: window.to, limit: DETAIL_ROWS });
|
|
31
|
+
const list = ({ total, items }) => ({ total, items: items.map(item => ({ kind: item.item_kind, id: item.item_id, at: item.at })) });
|
|
32
|
+
return { window, captured: list(value.captured), confirmedByYou: list(value.confirmed_by_you) };
|
|
33
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { detectClients } from '../agent-kits/client-detection.js';
|
|
2
2
|
import { CLIENT_COMPONENT_UNAVAILABLE } from '../agent-kits/client-installer.js';
|
|
3
3
|
import { installAgent } from '../setup/install-agent.js';
|
|
4
4
|
import { assertJsonObject } from '../validation/values.js';
|
|
@@ -8,11 +8,15 @@ export const CLIENT_RUNNING = '客户端正在运行,会把旧配置写回:
|
|
|
8
8
|
+ ' The client is running and would write its old configuration back: quit it fully, or use Restart and update in Client connection.';
|
|
9
9
|
|
|
10
10
|
// The console's one-click connection: agent-installer writes a client it
|
|
11
|
-
// found on this machine that FULI may set up by itself
|
|
11
|
+
// found on this machine that FULI may set up by itself, or one the person
|
|
12
|
+
// described by hand (custom-clients.js), whose file it creates when it is
|
|
13
|
+
// not there yet. Without
|
|
12
14
|
// agent-installer nothing is written and the answer says why. apps: the
|
|
13
15
|
// client apps that write their cached configuration back (src/agents/client-apps.js):
|
|
14
16
|
// one of them is written only when it is known to be closed (rec#106).
|
|
15
|
-
|
|
17
|
+
// customClients: the custom-client store (custom-clients.js); a client that is
|
|
18
|
+
// not built in is written only when the person added it here.
|
|
19
|
+
export function createClientInstaller({ installer, install = installAgent, apps = {}, customClients = NO_CUSTOM_CLIENTS }) {
|
|
16
20
|
let busy = false;
|
|
17
21
|
return async (input) => {
|
|
18
22
|
assertJsonObject(input, 'Client connection');
|
|
@@ -26,9 +30,9 @@ export function createClientInstaller({ installer, install = installAgent, apps
|
|
|
26
30
|
if (app && await app.running().catch(() => null) !== false) {
|
|
27
31
|
return { id: input.clientId, status: 'failed', restartRequired: false, reason: 'client_running', message: CLIENT_RUNNING };
|
|
28
32
|
}
|
|
29
|
-
const detected = await
|
|
33
|
+
const detected = await detectClients(installer);
|
|
30
34
|
const result = detected.status === 'available'
|
|
31
|
-
? await install(installer, connectable(detected.
|
|
35
|
+
? await install(installer, connectable(detected.clients, input.clientId, customClients.removable()))
|
|
32
36
|
: { status: 'failed', reason: 'client_component_unavailable', message: CLIENT_COMPONENT_UNAVAILABLE };
|
|
33
37
|
// Do not expose config/backup paths or raw filesystem diagnostics over HTTP.
|
|
34
38
|
return { id: input.clientId, status: result.status, restartRequired: result.status === 'connected',
|
|
@@ -37,8 +41,14 @@ export function createClientInstaller({ installer, install = installAgent, apps
|
|
|
37
41
|
};
|
|
38
42
|
}
|
|
39
43
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
const NO_CUSTOM_CLIENTS = Object.freeze({ removable: () => new Set() });
|
|
45
|
+
|
|
46
|
+
function connectable(clients, clientId, added) {
|
|
47
|
+
const client = clients.find(({ id }) => id === clientId);
|
|
48
|
+
// A built-in client must be on this machine; the person said where a client they added here keeps its file.
|
|
49
|
+
// Another product's extension in the shared directory is not FULI's to write.
|
|
50
|
+
if (!client || client.manual || (client.builtin ? !client.detected : !added.has(client.id))) {
|
|
51
|
+
throw new TypeError('Client is unavailable for automatic connection');
|
|
52
|
+
}
|
|
53
|
+
return { id: client.id, label: client.label };
|
|
44
54
|
}
|
|
@@ -111,7 +111,7 @@ export function createClientConnectionObserver({ installer, customClients, histo
|
|
|
111
111
|
id: client.id, label: client.label, detected: client.detected,
|
|
112
112
|
status: entryState(client.components) === 'conflict' ? 'unknown' : statusOf(client, false),
|
|
113
113
|
// Where the person puts FULI's MCP entry by hand, relative to home.
|
|
114
|
-
mcpPaths: client.mcpPaths, removable: removable.has(client.id) })) };
|
|
114
|
+
mcpPaths: client.mcpPaths, removable: removable.has(client.id), components: client.components })) };
|
|
115
115
|
}
|
|
116
116
|
return { observe };
|
|
117
117
|
}
|