fuli-context 0.23.0-beta.9 → 0.25.0
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 +169 -979
- package/README.zh-CN.md +157 -830
- package/dist/web/assets/{AboutPage-Co0jsR1c.js → AboutPage-Dx07_Z8u.js} +1 -1
- package/dist/web/assets/AboutSectionHeading-BdhpM609.js +1 -0
- package/dist/web/assets/AboutSectionHeading-DjXpIV27.css +1 -0
- package/dist/web/assets/AgentAppsPage-5VW0uCTz.js +1 -0
- package/dist/web/assets/{AgentAppsPage-BuJWNNdL.css → AgentAppsPage-BCxrjrsE.css} +1 -1
- package/dist/web/assets/AgentAvatar-DbsG1_BY.css +1 -0
- package/dist/web/assets/AgentAvatar-DlAQP7gm.js +1 -0
- package/dist/web/assets/{AgentHand-CTKH7yFY.js → AgentHand-FPFg9-Y1.js} +1 -1
- package/dist/web/assets/AgentManagement-CLFw9oV9.css +1 -0
- package/dist/web/assets/AgentManagement-UTe4I3WA.js +7 -0
- package/dist/web/assets/AgentMentionCopy-B9eIIr3L.css +1 -0
- package/dist/web/assets/AgentMentionCopy-C5ExlutT.js +1 -0
- package/dist/web/assets/{AgentName-DNxVHPb0.js → AgentName-C8mYbtKs.js} +1 -1
- package/dist/web/assets/AgentProfilePage-BLeyT3By.js +5 -0
- package/dist/web/assets/{AgentProfilePage-D5QUzw5N.css → AgentProfilePage-DumsVHP1.css} +1 -1
- package/dist/web/assets/AgentServicesPage-B2mDUgYZ.css +1 -0
- package/dist/web/assets/AgentServicesPage-BXi152Xc.js +1 -0
- package/dist/web/assets/{AppViewerPage-BMnN0lgj.js → AppViewerPage-BR8ttEGa.js} +1 -1
- package/dist/web/assets/{BackToTop-BfdZE6xK.js → BackToTop-5_AQRMZl.js} +1 -1
- package/dist/web/assets/{BoardCardFieldsMenu-xjUzesvU.js → BoardCardFieldsMenu-Bb_Z9a4Q.js} +1 -1
- package/dist/web/assets/{BoardMoveMenu-CCvochC4.js → BoardMoveMenu-B-f8O6cC.js} +1 -1
- package/dist/web/assets/{Breadcrumb-ys780J7e.js → Breadcrumb-DtM5lZy5.js} +1 -1
- package/dist/web/assets/{CaptureChangePage-BY7KKPuU.js → CaptureChangePage-BzwcfacI.js} +1 -1
- package/dist/web/assets/ConnectionsPage-C_vgqwF2.js +1 -0
- package/dist/web/assets/ConnectionsPage-DS2PEG6K.css +1 -0
- package/dist/web/assets/{CopyFixPrompt-ERDPz6w7.js → CopyFixPrompt-CErC3Paj.js} +1 -1
- package/dist/web/assets/DataFormatPage-Ccy_e9rf.css +1 -0
- package/dist/web/assets/DataFormatPage-DwL4Ofc9.js +2 -0
- package/dist/web/assets/DebugTurnPage-UpK_3ZWY.js +1 -0
- package/dist/web/assets/DebugTurnsPage-C0aZg5-3.js +1 -0
- package/dist/web/assets/{DialogTitle-C86eI8Q_.js → DialogTitle-BQXOe8EK.js} +1 -1
- package/dist/web/assets/{EmployeeRedirectPage-B5Sh-mOu.js → EmployeeRedirectPage-BjWpXDSM.js} +1 -1
- package/dist/web/assets/EmployeeScopeDialog-Bt3ZlDyZ.js +1 -0
- package/dist/web/assets/EmployeeScopeDialog-U_-eNH0Z.css +1 -0
- package/dist/web/assets/{EmployeeWorkbench-BhReI8l6.css → EmployeeWorkbench-Bp9pUkfS.css} +1 -1
- package/dist/web/assets/EmployeeWorkbench-GtJIUD5G.js +4 -0
- package/dist/web/assets/FieldRoot-DRf4wM5x.js +1 -0
- package/dist/web/assets/FlaGrowth-DgVLB8hp.css +1 -0
- package/dist/web/assets/FlaGrowth-OQtTLTng.js +1 -0
- package/dist/web/assets/FlaOccupationKit-BvrKsosv.css +1 -0
- package/dist/web/assets/FlaOccupationKit-C-x4VrKk.js +1 -0
- package/dist/web/assets/{FlaTaskSheets-IQ1HsEu5.js → FlaTaskSheets-CoaF5CbQ.js} +1 -1
- package/dist/web/assets/FlasPage-CgIVOGFM.js +1 -0
- package/dist/web/assets/FlasPage-H99IZ9M6.css +1 -0
- package/dist/web/assets/{GrowthLoading-BMf6Z2MU.js → GrowthLoading-VuVo2vLf.js} +1 -1
- package/dist/web/assets/HowtoPage-CZ3mOdLc.js +1 -0
- package/dist/web/assets/{HowtoPage-BRV2W1Go.css → HowtoPage-CrvMmT6K.css} +1 -1
- package/dist/web/assets/InboxPage-1ue8vA7H.css +1 -0
- package/dist/web/assets/InboxPage-zNUnnYeJ.js +6 -0
- package/dist/web/assets/{KnowledgeDeleteButton-Bo7gXmnS.js → KnowledgeDeleteButton-BlUnSG3b.js} +1 -1
- package/dist/web/assets/{KnowledgeHardDeleteSection-amJaLmkS.js → KnowledgeHardDeleteSection-CznXBtHY.js} +1 -1
- package/dist/web/assets/KnowledgeItemEditPage-DGRNkAYd.js +1 -0
- package/dist/web/assets/{KnowledgeItemSummaryCard-CjcKr6Xr.js → KnowledgeItemSummaryCard-Co5JKBHl.js} +1 -1
- package/dist/web/assets/KnowledgeOrganizerPage-BWvF1GEu.js +1 -0
- package/dist/web/assets/KnowledgeOrganizerPage-CJaFkfS7.css +1 -0
- package/dist/web/assets/KnowledgePage--Z4_kAhq.js +1 -0
- package/dist/web/assets/KnowledgePeek-BgzQA9SI.js +1 -0
- package/dist/web/assets/{KnowledgePeek-Bm5jRVA9.css → KnowledgePeek-CwZVuSkf.css} +1 -1
- package/dist/web/assets/{KnowledgeTurnReceiptPage-CbRSAOkW.js → KnowledgeTurnReceiptPage-Csyjimeg.js} +1 -1
- package/dist/web/assets/KnowledgeWorkspace-0yOpWtEB.js +4 -0
- package/dist/web/assets/{KnowledgeWorkspace-DCoVFyf0.css → KnowledgeWorkspace-BgWo6lBj.css} +1 -1
- package/dist/web/assets/{MeAvatar-Ca5kjZR7.js → MeAvatar-aY_q8cKs.js} +1 -1
- package/dist/web/assets/{MeLink-CMsMg8E_.js → MeLink-B0pNwVLa.js} +1 -1
- package/dist/web/assets/MenuSeparator-BR-uLovR.js +1 -0
- package/dist/web/assets/ModelSettingsPage-B9PS1Kay.css +1 -0
- package/dist/web/assets/ModelSettingsPage-BL6MsF7C.js +1 -0
- package/dist/web/assets/{NotFoundPage-j5qbgkxY.js → NotFoundPage-Cr1MaPuk.js} +1 -1
- package/dist/web/assets/NoticeRow-BXZWn4EZ.js +1 -0
- package/dist/web/assets/NoticeRow-ktVO_9Es.css +1 -0
- package/dist/web/assets/OccupationsPage-CkVqZ2pz.js +1 -0
- package/dist/web/assets/OccupationsPage-Dup7WzNh.css +1 -0
- package/dist/web/assets/OverviewPage-DFW3Ua0Z.js +1 -0
- package/dist/web/assets/OverviewPage-Dr4jrXW4.css +1 -0
- package/dist/web/assets/{PageColumns-C93sMwwH.js → PageColumns-DvehZlYm.js} +1 -1
- package/dist/web/assets/PageOutline-CFGtHmOK.js +1 -0
- package/dist/web/assets/PageOutline-DG5ZYtA8.css +1 -0
- package/dist/web/assets/{PersonalProfilePage-DdBfHnqq.css → PersonalProfilePage-DnjNX2xK.css} +1 -1
- package/dist/web/assets/PersonalProfilePage-TxsNr44t.js +1 -0
- package/dist/web/assets/PersonalProjectsPage-AhgP6CL8.js +1 -0
- package/dist/web/assets/{PinIcon-Dp4Ubaw6.js → PinIcon-BTQsnxRY.js} +1 -1
- package/dist/web/assets/PopperContent-DtMksk76.js +1 -0
- package/dist/web/assets/{Presence-D-jzaDBV.js → Presence-B0zMpCF4.js} +1 -1
- package/dist/web/assets/ProfileAuthorChip-BqT9Vv65.js +1 -0
- package/dist/web/assets/ProfileAuthorChip-CAWNGoW3.css +1 -0
- package/dist/web/assets/{ProjectAgentsPage-RpfiV2Fm.css → ProjectAgentsPage-CjeXFzHr.css} +1 -1
- package/dist/web/assets/ProjectAgentsPage-O-cMavcz.js +5 -0
- package/dist/web/assets/{ProjectJudgmentPolicy-DR8Rk_1K.js → ProjectJudgmentPolicy-CyHAu0nm.js} +2 -2
- package/dist/web/assets/{PublicProjectsPage-QwAtKnu1.js → PublicProjectsPage-Ck1QSR0R.js} +1 -1
- package/dist/web/assets/RecentNotices-vJobVOcm.js +1 -0
- package/dist/web/assets/{RoundtablesPage-DLZdviOP.js → RoundtablesPage-C3dYekQ5.js} +6 -6
- package/dist/web/assets/{RoundtablesPage-DK9A9J-y.css → RoundtablesPage-DL-IOngN.css} +1 -1
- package/dist/web/assets/RovingFocusGroup-CUqyjFSs.js +1 -0
- package/dist/web/assets/{RovingFocusItem-HhNodnJn.js → RovingFocusItem-CyyuWXjE.js} +1 -1
- package/dist/web/assets/{SessionMigrationPage-_W2BnsjS.js → SessionMigrationPage-DukDM0TP.js} +1 -1
- package/dist/web/assets/SessionRecordsPage-DZ5ZBiuS.js +1 -0
- package/dist/web/assets/SettingsPage-BVIU7iFS.js +1 -0
- package/dist/web/assets/SettingsPage-Cj3pEWcd.css +1 -0
- package/dist/web/assets/SharedJefaReportPage-DUY03VLS.js +1 -0
- package/dist/web/assets/TagVocabularyPage-BKLFJiSu.js +1 -0
- package/dist/web/assets/TaskBlockerClear-BBmPbomO.css +1 -0
- package/dist/web/assets/TaskBlockerClear-BxOiiuK8.js +1 -0
- package/dist/web/assets/TaskBlockerNotice-iUiD3BuZ.js +1 -0
- package/dist/web/assets/{TaskReason-BgF2K1hA.js → TaskReason-D5j7L8tl.js} +1 -1
- package/dist/web/assets/TeamCard-CDunbIrP.js +1 -0
- package/dist/web/assets/TeamCard-CihQsZZ1.css +1 -0
- package/dist/web/assets/{TeamCardsWidget-CZTQVqyh.js → TeamCardsWidget-CUW-fPn7.js} +1 -1
- package/dist/web/assets/TeamIsland-CmpDmIX2.js +9 -0
- package/dist/web/assets/{TeamIsland-BBQbpozz.css → TeamIsland-DvtcsAsb.css} +1 -1
- package/dist/web/assets/{Teleport-Dg_IoSZh.js → Teleport-Dzdr8umQ.js} +1 -1
- package/dist/web/assets/{TextField-Y8DAIUw6.js → TextField-BPhEpEv9.js} +1 -1
- package/dist/web/assets/TonborgDelegationSwitch-C1nkJqkJ.js +1 -0
- package/dist/web/assets/TonborgDelegationSwitch-DeqERWoo.css +1 -0
- package/dist/web/assets/{UiChip-vvwIQTGB.js → UiChip-BEQ067LV.js} +1 -1
- package/dist/web/assets/UiDialog-JjqzOA0z.js +1 -0
- package/dist/web/assets/{UiDisclosure-Bp0vA9km.js → UiDisclosure-L6GEJHSw.js} +1 -1
- package/dist/web/assets/UiIcon-vgD4v8q8.js +1 -0
- package/dist/web/assets/UiIconButton-BzyMc14P.js +1 -0
- package/dist/web/assets/{UiSegmented-DX8WXXVn.js → UiSegmented-CIIm3KoV.js} +1 -1
- package/dist/web/assets/{UiWeight-Ci6wZg1W.js → UiWeight-D-2iZ_Kc.js} +1 -1
- package/dist/web/assets/VirtualDirectoryList-BJecsQct.css +1 -0
- package/dist/web/assets/VirtualDirectoryList-BV8KsA-Z.js +1 -0
- package/dist/web/assets/{VisuallyHidden-BLRDANy_.js → VisuallyHidden-BxKxuXRF.js} +1 -1
- package/dist/web/assets/VisuallyHiddenInput-DD4vhlqT.js +1 -0
- package/dist/web/assets/WidgetSlot-Dw5nWlb7.js +2 -0
- package/dist/web/assets/WorkbenchListHead-B0TjHsTO.js +1 -0
- package/dist/web/assets/WorkbenchListPage-BX6Z9gkB.css +1 -0
- package/dist/web/assets/WorkbenchListPage-D0xX-YNl.js +1 -0
- package/dist/web/assets/_plugin-vue_export-helper-B4pFJCwG.js +9 -0
- package/dist/web/assets/agent-apps-B1Je-mpY.js +1 -0
- package/dist/web/assets/agent-occupation-CjfQqSzd.js +1 -0
- package/dist/web/assets/{agent-pins-CoyKIkO2.js → agent-pins-DxHlJ96z.js} +1 -1
- package/dist/web/assets/agent-profile-BNPLhDog.css +1 -0
- package/dist/web/assets/{agent-roster-records-PfAgndHp.js → agent-roster-records-Bi5HWDif.js} +1 -1
- package/dist/web/assets/agent-work-summary-o_9-QWBL.js +1 -0
- package/dist/web/assets/{agent-workflows-CRdfc5xN.js → agent-workflows-DgdbJqpg.js} +1 -1
- package/dist/web/assets/{attach-closest-edge-BIyU46Kh.js → attach-closest-edge-DUc_VUVO.js} +1 -1
- package/dist/web/assets/{attention-store-BrThOc88.js → attention-store-Bod20yM3.js} +1 -1
- package/dist/web/assets/{badge-mwWygmG4.js → badge-tMy2Qr94.js} +1 -1
- package/dist/web/assets/{button-byjQ5eLH.js → button-DnKFsImW.js} +1 -1
- package/dist/web/assets/{card-Bo5Wyknz.js → card-Ccu7HCNb.js} +1 -1
- package/dist/web/assets/{catalog-CgoPKxd_.js → catalog-CJUV8OJ6.js} +1 -1
- package/dist/web/assets/checkbox-D1R6kTUB.js +1 -0
- package/dist/web/assets/{client-DmgW-kvA.js → client-D-G2i5VU.js} +2 -2
- package/dist/web/assets/client-links-store-UgmraFBZ.js +1 -0
- package/dist/web/assets/combobox-C7QLYGzs.js +1 -0
- package/dist/web/assets/console-DgRc8Itw.js +1 -0
- package/dist/web/assets/{conversation-launcher-settings-DVd61o9s.js → conversation-launcher-settings-CZAfuu8B.js} +1 -1
- package/dist/web/assets/copy-mention-C0EJhDPy.js +1 -0
- package/dist/web/assets/{dialog-CHAmruFj.js → dialog-Bbq93W68.js} +1 -1
- package/dist/web/assets/{dist-Bz5tCO-_.js → dist-Dd8yFhv6.js} +1 -1
- package/dist/web/assets/{dist-B9snV3GY.js → dist-PpsW5ZE3.js} +1 -1
- package/dist/web/assets/dropdown-menu-1fGUL0V3.js +1 -0
- package/dist/web/assets/{field-ZZb3Sy9Y.js → field-DjVv_wIS.js} +1 -1
- package/dist/web/assets/{format-bytes-DiEwa-ch.js → format-bytes-BKq_E0Hs.js} +1 -1
- package/dist/web/assets/hover-card-BO-929hq.js +1 -0
- package/dist/web/assets/{identity-4i_OR9WP.js → identity-DIG-uOiU.js} +1 -1
- package/dist/web/assets/index-C7IVLf_v.js +24 -0
- package/dist/web/assets/index-DF0TcfPY.css +1 -0
- package/dist/web/assets/{input-BP9Wn4Yk.js → input-DmwRmYO2.js} +1 -1
- package/dist/web/assets/is-equal-8VOV02sH.js +1 -0
- package/dist/web/assets/{label-xRSp2rqO.js → label-BvwPUTS4.js} +1 -1
- package/dist/web/assets/label-table-CDzYRZpc.js +1 -0
- package/dist/web/assets/{model-DRrCt6Xz.js → model-0TZRbkN2.js} +1 -1
- package/dist/web/assets/model-BF_ZMPLi.js +1 -0
- package/dist/web/assets/model-BjUERpoQ.js +3 -0
- package/dist/web/assets/model-CaR7VPg7.js +1 -0
- package/dist/web/assets/{model-6a2cm5q3.js → model-Dfe81jZT.js} +1 -1
- package/dist/web/assets/{model-DiJvQFH-.js → model-DpkZUZUL.js} +1 -1
- package/dist/web/assets/{model-CidDnNzT.js → model-Tmn6HvL-.js} +1 -1
- package/dist/web/assets/{model-P1cRTtx9.js → model-y7OUvtKz.js} +1 -1
- package/dist/web/assets/motion-C1fZrqmI.js +1 -0
- package/dist/web/assets/{motion-eJ8Y9ulR.js → motion-mAmbRj_M.js} +1 -1
- package/dist/web/assets/{motion-preference-CC0XwuGQ.js → motion-preference-Dz9S1bZa.js} +1 -1
- package/dist/web/assets/npm-copies-BLRc0FXW.js +1 -0
- package/dist/web/assets/{client-connection-model-DVwA-GIu.css → npm-copies-GRyMAduA.css} +1 -1
- package/dist/web/assets/occupation-catalog-_SnxxRbK.js +1 -0
- package/dist/web/assets/occupation-kits-DFC6Auuc.js +1 -0
- package/dist/web/assets/{option-CdihAKf9.js → option-DC8frdbr.js} +1 -1
- package/dist/web/assets/{orchestration-filters-DmF4Qs8E.js → orchestration-filters-UeiAHJqn.js} +1 -1
- package/dist/web/assets/overview-data-Cq1gefY5.js +1 -0
- package/dist/web/assets/page-refresh-DdRJaxMv.js +1 -0
- package/dist/web/assets/{page-title-CPUoKkyh.js → page-title-Cm9u_qw1.js} +1 -1
- package/dist/web/assets/person-profile-BH2AzOfw.js +1 -0
- package/dist/web/assets/popover-DW__YCSE.js +1 -0
- package/dist/web/assets/popup-host-ctKYu9Ze.js +1 -0
- package/dist/web/assets/profile-model-DtISOJ-X.js +1 -0
- package/dist/web/assets/{project-board-layout-BPk55Azx.js → project-board-layout-CTM8kAgq.js} +1 -1
- package/dist/web/assets/{project-capture-zRbPkI54.js → project-capture-B3pNhpFF.js} +1 -1
- package/dist/web/assets/{project-origin-BNl8Mqof.js → project-origin-BO8Ngccf.js} +1 -1
- package/dist/web/assets/quick-edit-api-B169r5Qb.js +1 -0
- package/dist/web/assets/radio-group-DqA46cXQ.js +1 -0
- package/dist/web/assets/review-api-CJaNgPMA.js +1 -0
- package/dist/web/assets/review-list-BbV-Mle7.js +1 -0
- package/dist/web/assets/review-store-DSQpb5P8.js +1 -0
- package/dist/web/assets/{role-names-BDswxugG.js → role-names-By0xdfTn.js} +1 -1
- package/dist/web/assets/roundtable-live-u9qUU6aA.js +1 -0
- package/dist/web/assets/{runtime-dom.esm-bundler-CjD1s0uc.js → runtime-dom.esm-bundler-DhFy4Djs.js} +1 -1
- package/dist/web/assets/save-file-oGyIokMI.js +1 -0
- package/dist/web/assets/select-TqPBladU.js +1 -0
- package/dist/web/assets/{session-launch-offers-2SxrTwBr.js → session-launch-offers-CtQeY4Qk.js} +1 -1
- package/dist/web/assets/{settings-restart-fHB-lEm8.js → settings-autosave-C7vW3_SP.js} +1 -1
- package/dist/web/assets/settings-restart-p12HUUve.js +1 -0
- package/dist/web/assets/shared-report-DQBSigHB.js +3 -0
- package/dist/web/assets/{source-adapters-TLaUKVEM.js → source-adapters-DPJzumzC.js} +1 -1
- package/dist/web/assets/{switch-Cq1rT1Ti.js → switch-D7w_0h3m.js} +1 -1
- package/dist/web/assets/tabs-DR8k0PN9.js +1 -0
- package/dist/web/assets/{task-card-fields-BkwTMtq6.js → task-card-fields-X1ZYCm_j.js} +1 -1
- package/dist/web/assets/{task-labels-CVomryt6.js → task-labels-LuXoQhF9.js} +1 -1
- package/dist/web/assets/{task-reason-BenU3Ly4.js → task-reason-ChpbGtyx.js} +1 -1
- package/dist/web/assets/{team-sheets-BIFVatFG.js → team-sheets-DYCQqa8I.js} +1 -1
- package/dist/web/assets/{textarea-CEokSlpT.js → textarea-D53VYanK.js} +1 -1
- package/dist/web/assets/ui-D4nAhcmu.css +1 -0
- package/dist/web/assets/ui-DmNbL8MW.js +1 -0
- package/dist/web/assets/{useAgentRecords-B0ODDGeO.js → useAgentRecords-Hy9nqMs7.js} +1 -1
- package/dist/web/assets/useAgentWorkSummary-mloD4p12.js +1 -0
- package/dist/web/assets/{useApi-CROJJdhE-CbQwoO_u.js → useApi-CROJJdhE-DnUGUb8O.js} +1 -1
- package/dist/web/assets/{useClipboardCopy-Dd9bf8dt.js → useClipboardCopy-BTuQMeWI.js} +1 -1
- package/dist/web/assets/{useFocusReturn-DFHFciMS.js → useFocusReturn-4hUmSzj9.js} +1 -1
- package/dist/web/assets/{useForwardExpose-D3bCxDJx.js → useForwardExpose-BDmW7q7u.js} +1 -1
- package/dist/web/assets/{useForwardPropsEmits-CshHUE63.js → useForwardPropsEmits-BzT2luD4.js} +1 -1
- package/dist/web/assets/useForwardScopeId-DZCnSswO.js +1 -0
- package/dist/web/assets/useKnowledgeConfirm-L8wnJCuX.js +1 -0
- package/dist/web/assets/useKnowledgeItemPeek-C_huXt6E.js +1 -0
- package/dist/web/assets/{useMinimumLoadingDisplay-Br2MBA-0.js → useMinimumLoadingDisplay-Dkl8NQru.js} +1 -1
- package/dist/web/assets/usePageTools-CbDOdIrg.js +1 -0
- package/dist/web/assets/usePrimitiveElement-tPQM7XJs.js +1 -0
- package/dist/web/assets/{useProjectAgentRoster-BLHF34Hj.js → useProjectAgentRoster-BBmRvcgr.js} +1 -1
- package/dist/web/assets/{useRoutePeek-KvY9hOQI.js → useRoutePeek-CRbCDqsm.js} +1 -1
- package/dist/web/assets/useTeamPeople-D_5cxxf1.js +1 -0
- package/dist/web/assets/{useTeamWork-wKGBRcNv.js → useTeamWork-CXEQwF4n.js} +1 -1
- package/dist/web/assets/{useTypeahead-C50w2tTI.js → useTypeahead-CVYuxPOD.js} +1 -1
- package/dist/web/assets/{utils-CArDYAhe.js → utils-BnrWDlfm.js} +1 -1
- package/dist/web/assets/utils-BsGjKHV8.js +1 -0
- package/dist/web/assets/verification-DbCo_dnY.js +1 -0
- package/dist/web/assets/version-1lwoVj6f.js +1 -0
- package/dist/web/assets/{vue-router-BzQKabzW.js → vue-router-D4_ms6om.js} +1 -1
- package/dist/web/assets/website-YgovUEcN.js +1 -0
- package/dist/web/assets/workbench-card-Dt0820yW.css +1 -0
- package/dist/web/index.html +90 -73
- package/docs/agent-conversations-and-collaboration.md +55 -58
- package/docs/agent-interface-architecture.md +7 -2
- package/docs/agent-roundtable.md +7 -7
- package/docs/client-connections.md +88 -10
- package/docs/client-links.md +16 -1
- package/docs/employee-agents.md +2 -2
- package/docs/judgment-and-autonomy.md +4 -2
- package/docs/public-personal-architecture.md +1 -1
- package/graph-provider/fuli_graph/app.py +6 -0
- package/graph-provider/fuli_graph/graph_field_contract.py +16 -5
- package/graph-provider/fuli_graph/graph_format_migrations.py +16 -0
- package/graph-provider/fuli_graph/graph_models.py +11 -62
- package/graph-provider/fuli_graph/graph_query.py +46 -105
- package/graph-provider/fuli_graph/knowledge_batch_confirmation.py +7 -5
- package/graph-provider/fuli_graph/knowledge_duplicate_models.py +24 -0
- package/graph-provider/fuli_graph/knowledge_duplicate_rules.py +157 -0
- package/graph-provider/fuli_graph/knowledge_duplicates.py +357 -0
- package/graph-provider/fuli_graph/knowledge_index_scan.py +120 -0
- package/graph-provider/fuli_graph/knowledge_item_routes.py +3 -1
- package/graph-provider/fuli_graph/knowledge_item_view.py +45 -2
- package/graph-provider/fuli_graph/knowledge_item_view_models.py +21 -0
- package/graph-provider/fuli_graph/knowledge_management.py +6 -1
- package/graph-provider/fuli_graph/knowledge_outdated.py +15 -5
- package/graph-provider/fuli_graph/knowledge_retrieval_models.py +95 -0
- package/graph-provider/fuli_graph/knowledge_retrieval_terms.py +116 -0
- package/graph-provider/fuli_graph/knowledge_review.py +65 -2
- package/graph-provider/fuli_graph/knowledge_review_models.py +5 -0
- package/graph-provider/fuli_graph/knowledge_search.py +191 -62
- package/graph-provider/fuli_graph/knowledge_semantic.py +87 -0
- package/graph-provider/fuli_graph/knowledge_semantic_index.py +98 -0
- package/graph-provider/fuli_graph/knowledge_semantic_models.py +72 -0
- package/graph-provider/fuli_graph/knowledge_semantic_query.py +19 -0
- package/graph-provider/fuli_graph/knowledge_versions.py +12 -1
- package/graph-provider/fuli_graph/models.py +13 -2
- package/graph-provider/fuli_graph/preference_versions.py +28 -7
- package/graph-provider/fuli_graph/project_agent_routes.py +60 -2
- package/graph-provider/fuli_graph/project_agent_task_models.py +63 -5
- package/graph-provider/fuli_graph/store.py +2 -0
- package/graph-provider/fuli_graph/store_project_agent_task_activity.py +12 -3
- package/graph-provider/fuli_graph/store_project_agent_task_blockers.py +110 -23
- package/graph-provider/fuli_graph/store_project_agent_task_pages.py +186 -0
- package/graph-provider/fuli_graph/store_project_agent_task_reads.py +6 -4
- package/graph-provider/fuli_graph/store_project_agent_task_recruitment.py +0 -7
- package/graph-provider/fuli_graph/store_project_agent_tasks.py +4 -3
- package/graph-provider/fuli_graph/store_task_contexts.py +14 -4
- package/graph-provider/fuli_graph/task_blocker.py +38 -6
- package/graph-provider/fuli_graph/task_context_routes.py +1 -1
- package/graph-provider/fuli_graph/tonborg_confirmation.py +48 -0
- package/graph-provider/pyproject.toml +1 -1
- package/native/win32/fuli-win-helper.exe +0 -0
- package/npm-shrinkwrap.json +16 -50
- package/package.json +2 -2
- package/packages/roundtable/src/peer/node-store.js +2 -6
- package/packages/roundtable/src/roundtable/chat-service.js +2 -1
- package/packages/roundtable/src/roundtable/chat.js +11 -1
- package/packages/roundtable/src/roundtable/delivery-state.js +43 -0
- package/packages/roundtable/src/roundtable/fla-address.js +6 -0
- package/packages/roundtable/src/roundtable/group-discussion-store.js +2 -2
- package/packages/roundtable/src/roundtable/group-discussion.js +15 -15
- package/packages/roundtable/src/roundtable/person-conversation.js +2 -1
- package/packages/roundtable/src/roundtable/service.js +38 -9
- package/packages/roundtable/src/roundtable/store.js +8 -5
- package/packages/roundtable/src/storage/database-format.js +21 -16
- package/registry/client-links.json +66 -4
- package/registry/occupation-plugins.json +593 -0
- package/skills/capturing-session-knowledge/SKILL.md +24 -7
- package/skills/capturing-session-knowledge/references/capture.md +22 -6
- package/skills/capturing-session-knowledge/references/coordination.md +16 -6
- package/skills/capturing-session-knowledge/references/retrieval.md +25 -6
- package/skills/flreview/SKILL.md +1 -1
- package/skills/operating-fuli/SKILL.md +42 -11
- package/skills/operating-fuli/references/workflow-recipes.md +9 -5
- package/src/acceptance-checks/port.js +37 -0
- package/src/adaptive-runtime/settings.js +1 -1
- package/src/adaptive-runtime/state.js +3 -3
- package/src/agent-apps/host-tools/catalog.js +7 -0
- package/src/agent-apps/store.js +2 -10
- package/src/agent-delegation/person-words.js +15 -1
- package/src/agent-kits/cli-presence.js +78 -0
- package/src/agent-kits/client-detection.js +7 -0
- package/src/agent-kits/client-installer.js +20 -3
- package/src/agent-kits/installer-manifest.js +11 -6
- package/src/agent-kits/legacy-hook-cleanup.js +4 -3
- package/src/agent-kits/new-sessions.js +82 -0
- package/src/agent-kits/opencode-plugin-gate.js +3 -1
- package/src/agent-kits/pins.js +12 -12
- package/src/agent-kits/ports.js +5 -2
- package/src/agent-kits/session-launcher.js +11 -4
- package/src/agent-kits/vendor/agent-installer/README.md +1 -1
- package/src/agent-kits/vendor/agent-installer/index.d.ts +1 -1
- package/src/agent-kits/vendor/agent-session-launcher/README.md +1 -1
- package/src/agent-kits/vendor/agent-session-launcher/index.d.ts +30 -1
- package/src/agent-kits/vendor/agent-session-launcher/index.mjs +8 -0
- package/src/agent-roundtable/tools.js +3 -3
- package/src/agent-services/store.js +2 -4
- package/src/agent-tools/agent-workflow-definitions.js +7 -3
- package/src/agent-tools/checkpoint-definitions.js +5 -4
- package/src/agent-tools/fla-lesson-definitions.js +24 -0
- package/src/agent-tools/graph-definitions.js +8 -0
- package/src/agent-tools/graph-handlers.js +10 -1
- package/src/agent-tools/interface-catalog.js +38 -7
- package/src/agent-tools/model-backend-definitions.js +1 -1
- package/src/agent-tools/occupation-kit-definitions.js +20 -0
- package/src/agent-tools/project-agent-definitions.js +19 -40
- package/src/agent-tools/project-agent-tool-definitions.js +5 -1
- package/src/agent-tools/reply-echo-definitions.js +18 -0
- package/src/agent-tools/tonborg-question-definitions.js +26 -0
- package/src/agent-workflows/agent-tools.js +69 -3
- package/src/agent-workflows/port.js +32 -4
- package/src/agent-workflows/store.js +16 -9
- package/src/agents/choice-answers.js +19 -0
- package/src/agents/claude-code/choice-answers.js +49 -0
- package/src/agents/claude-code/fla-menu-command.js +14 -0
- package/src/agents/claude-code/lifecycle-hook.js +16 -9
- package/src/agents/claude-code/transcript-format-probe.js +31 -0
- package/src/agents/claude-code/turn-records.js +38 -0
- package/src/agents/codex/fla-prompts.js +98 -0
- package/src/agents/codex/lifecycle-hook.js +9 -8
- package/src/agents/codex/transcript-format-probe.js +29 -0
- package/src/agents/cursor/lifecycle-hook.js +3 -2
- package/src/agents/identity-receipt.js +9 -7
- package/src/agents/lifecycle-failure.js +9 -0
- package/src/agents/lifecycle-message.js +4 -5
- package/src/agents/opencode/lifecycle-hook.js +12 -7
- package/src/agents/opencode/plugin.js +7 -2
- package/src/agents/token-usage-resolver.js +1 -1
- package/src/agents/transcript-format-registry.js +34 -0
- package/src/agents/transcript-format-scan.js +71 -0
- package/src/agents/turn-receipt.js +5 -4
- package/src/cli/command-registry.js +1 -1
- package/src/cli/local-runtime-command.js +5 -2
- package/src/cli/local-runtime-options.js +7 -3
- package/src/cli/models-command.js +15 -11
- package/src/cli/update-command.js +2 -2
- package/src/cli/update-installation.js +23 -6
- package/src/cli/workspace-connection-command.js +2 -2
- package/src/client-links/registry.js +6 -112
- package/src/conversations/entry-skeleton.js +113 -55
- package/src/conversations/human-interaction.js +1 -1
- package/src/conversations/person-words.js +29 -0
- package/src/conversations/preference-lifecycle.js +2 -1
- package/src/conversations/preference-session.js +17 -14
- package/src/conversations/reply-citations.js +21 -0
- package/src/conversations/stop-auto-close.js +42 -9
- package/src/conversations/task-context-view.js +113 -27
- package/src/conversations/turn-findings.js +105 -0
- package/src/data-format/format-notices.js +2 -1
- package/src/data-format/local-stores.js +22 -1
- package/src/debug-turns/model-capture.js +1 -1
- package/src/debug-turns/record.js +1 -1
- package/src/desktop/cli-path.js +253 -0
- package/src/desktop/desktop-app-package.js +31 -0
- package/src/desktop/{fuli-links.js → desktop-client-links.js} +20 -16
- package/src/desktop/desktop-controller.js +35 -3
- package/src/desktop/npm-adoption-store.js +7 -0
- package/src/desktop/npm-adoption.js +119 -0
- package/src/desktop/npm-copies.js +73 -0
- package/src/desktop/npm-copy-control.js +56 -0
- package/src/desktop/npm-copy-data.js +51 -0
- package/src/desktop/npm-copy-uninstall.js +67 -0
- package/src/desktop/windows-controller.js +13 -1
- package/src/desktop/windows-installation-switch.js +1 -1
- package/src/desktop/windows-node-launcher.js +11 -0
- package/src/desktop/windows-uninstall.js +3 -0
- package/src/dreaming/astro-calls.js +47 -0
- package/src/dreaming/projects.js +39 -0
- package/src/dreaming/run.js +312 -0
- package/src/dreaming/scheduler.js +58 -0
- package/src/employees/builtin/jefa/board-store.js +2 -10
- package/src/employees/builtin/jefa/tools.js +1 -1
- package/src/employees/management-policy.js +1 -1
- package/src/employees/manifest.js +1 -1
- package/src/employees/service.js +11 -1
- package/src/external-knowledge/document-mapping.js +1 -1
- package/src/external-knowledge/index.js +0 -4
- package/src/fla-growth/lessons.js +40 -0
- package/src/fla-growth/task-verification.js +25 -0
- package/src/fla-growth/tool-suggestions.js +107 -0
- package/src/fla-growth/verification.js +30 -0
- package/src/graphiti/agent-access-policy.js +1 -1
- package/src/graphiti/agent-conversations.js +2 -2
- package/src/graphiti/agent-growth.js +32 -4
- package/src/graphiti/capture-change-confirmation.js +4 -1
- package/src/graphiti/capture-notice.js +2 -1
- package/src/graphiti/capture-onboarding.js +1 -1
- package/src/graphiti/collaboration-preference-projection.js +1 -1
- package/src/graphiti/conversation-triage.js +1 -1
- package/src/graphiti/current-project-knowledge-search.js +24 -1
- package/src/graphiti/execution-mode.js +1 -1
- package/src/graphiti/federated-application.js +16 -8
- package/src/graphiti/federated-search.js +8 -1
- package/src/graphiti/fla-mention.js +105 -96
- package/src/graphiti/fla-menu-reader.js +25 -0
- package/src/graphiti/fla-menu.js +108 -0
- package/src/graphiti/fla-picker.js +21 -16
- package/src/graphiti/fuli-markup.js +60 -0
- package/src/graphiti/group-member-context.js +1 -1
- package/src/graphiti/human-review-channel.js +16 -2
- package/src/graphiti/knowledge-result-budget.js +2 -2
- package/src/graphiti/knowledge-review.js +2 -1
- package/src/graphiti/local-runtimes.js +11 -0
- package/src/graphiti/preference-task-scope.js +1 -1
- package/src/graphiti/project-agent-control-plane.js +6 -0
- package/src/graphiti/project-agent-mapping.js +23 -10
- package/src/graphiti/project-agent-mention.js +10 -28
- package/src/graphiti/project-agent-task-entry.js +1 -1
- package/src/graphiti/project-agent-task-sheets.js +1 -1
- package/src/graphiti/project-agent-workflows.js +20 -5
- package/src/graphiti/project-knowledge-presence.js +27 -0
- package/src/graphiti/project-path-context.js +2 -2
- package/src/graphiti/provider-client.js +60 -0
- package/src/graphiti/recall-policy.js +1 -1
- package/src/graphiti/reply-echo-agent-tool.js +36 -0
- package/src/graphiti/reply-echo-group.js +85 -0
- package/src/graphiti/reply-echo.js +87 -0
- package/src/graphiti/session-knowledge-migration.js +2 -1
- package/src/graphiti/session-prompt-sentences.js +52 -0
- package/src/graphiti/session-records.js +3 -2
- package/src/graphiti/source-marker.js +14 -0
- package/src/graphiti/task-blocker-progress.js +24 -1
- package/src/graphiti/task-context-entry.js +11 -0
- package/src/graphiti/task-entry-group-discussion.js +31 -31
- package/src/graphiti/task-entry-named-fla.js +40 -70
- package/src/graphiti/task-entry-preferences.js +16 -3
- package/src/graphiti/task-entry-project-scope.js +4 -4
- package/src/graphiti/task-entry-read-only.js +28 -0
- package/src/graphiti/task-entry-standing-owner.js +3 -3
- package/src/graphiti/task-experiences.js +21 -3
- package/src/graphiti/task-knowledge-checkpoint.js +4 -1
- package/src/graphiti/task-knowledge-recall.js +157 -28
- package/src/graphiti/task-prompt-statement.js +49 -0
- package/src/graphiti/task-remember.js +23 -9
- package/src/graphiti/task-stated-rules.js +75 -0
- package/src/graphiti/temporary-project-scope.js +1 -1
- package/src/graphiti/topic-proposals.js +6 -5
- package/src/graphiti/user-taste-skill.js +1 -1
- package/src/graphiti/workflow-candidate-mapping.js +1 -1
- package/src/http/agent-delegation-gate.js +9 -0
- package/src/http/api-router.js +27 -1
- package/src/http/cli-path-api-router.js +35 -0
- package/src/http/desktop-client-api-router.js +18 -0
- package/src/http/dreaming-api-router.js +35 -0
- package/src/http/graph-api-router.js +17 -0
- package/src/http/knowledge-item-api-router.js +7 -0
- package/src/http/notices-api-router.js +37 -0
- package/src/http/npm-copies-api-router.js +36 -0
- package/src/http/occupation-plugins-api-router.js +43 -0
- package/src/http/reply-echo-api-router.js +53 -0
- package/src/http/response.js +1 -1
- package/src/http/retrieval-terms-api-router.js +37 -0
- package/src/http/retrospectives-api-router.js +18 -0
- package/src/http/semantic-api-router.js +26 -0
- package/src/http/session-launch-api-router.js +34 -1
- package/src/http/static-handler.js +1 -1
- package/src/http/task-blocker-api-router.js +17 -5
- package/src/http/task-verification-api-router.js +16 -0
- package/src/http/whats-new-api-router.js +34 -0
- package/src/judgment/acceptance.js +10 -3
- package/src/judgment/agent-view.js +21 -4
- package/src/judgment/conversation.js +86 -2
- package/src/judgment/delegated-reviews.js +23 -0
- package/src/judgment/engine.js +49 -16
- package/src/judgment/explain-method.js +11 -0
- package/src/judgment/http.js +17 -2
- package/src/judgment/question-options.js +97 -0
- package/src/judgment/question-tools.js +235 -0
- package/src/judgment/review-delegation.js +89 -0
- package/src/judgment/review-prompt.js +44 -3
- package/src/judgment/review-verdicts.js +13 -4
- package/src/judgment/runtime.js +3 -1
- package/src/judgment/service.js +25 -5
- package/src/judgment/store.js +44 -8
- package/src/judgment/verdict-schema.js +6 -0
- package/src/judgment/visible-items.js +15 -4
- package/src/knowledge-duplicates/scheduler.js +28 -0
- package/src/knowledge-hard-delete/forget-references.js +5 -2
- package/src/knowledge-impressions/store.js +17 -5
- package/src/local-runtime/console-autostart-record.js +95 -0
- package/src/local-runtime/console-autostart.js +143 -0
- package/src/local-runtime/console-health.js +26 -0
- package/src/local-runtime/installed-console-launcher.js +73 -0
- package/src/local-runtime/lifecycle.js +88 -21
- package/src/local-runtime/processes.js +15 -2
- package/src/local-runtime/unresponsive-console.js +77 -0
- package/src/local-runtime/windows-process-handle.js +9 -3
- package/src/mcp/create-mcp-server.js +4 -0
- package/src/mcp/fla-menu-prompts.js +60 -0
- package/src/mcp/process-registry.js +45 -3
- package/src/mcp/runtime.js +13 -4
- package/src/mcp/session-id.js +3 -2
- package/src/mcp/stdio-relay.js +4 -1
- package/src/mcp/tool-annotations.js +5 -2
- package/src/mcp/tool-profiles.js +1 -1
- package/src/mcp/tool-result.js +3 -1
- package/src/model-backends/adapters/anthropic-messages.js +3 -3
- package/src/model-backends/adapters/exchange.js +2 -2
- package/src/model-backends/adapters/ollama-local-build.js +1 -1
- package/src/model-backends/adapters/openai-chat.js +3 -3
- package/src/model-backends/adapters/openai-embeddings.js +60 -0
- package/src/model-backends/adapters/registry.js +3 -1
- package/src/model-backends/adapters/typesafe-systemone.js +1 -1
- package/src/model-backends/budget.js +23 -8
- package/src/model-backends/config.js +50 -16
- package/src/model-backends/decision-contract.js +2 -1
- package/src/model-backends/endpoint-models.js +80 -0
- package/src/model-backends/http.js +22 -2
- package/src/model-backends/keys-http.js +5 -4
- package/src/model-backends/model-fetch.js +37 -0
- package/src/model-backends/models-http.js +54 -0
- package/src/model-backends/port.js +194 -69
- package/src/model-backends/prompt.js +15 -4
- package/src/model-backends/request.js +42 -3
- package/src/model-backends/role-settings.js +27 -2
- package/src/model-backends/role-trust.js +3 -15
- package/src/model-backends/role-work-store.js +2 -12
- package/src/model-backends/runtime.js +11 -2
- package/src/model-backends/secret-store.js +61 -12
- package/src/model-backends/suggestion-log.js +6 -15
- package/src/model-backends/usage-ledger.js +28 -18
- package/src/notices/recent-notices.js +175 -0
- package/src/notifications/needs-person.js +1 -1
- package/src/occupation-plugins/agent-tools.js +59 -0
- package/src/occupation-plugins/choice-store.js +65 -0
- package/src/occupation-plugins/manifest.js +165 -0
- package/src/occupation-plugins/port.js +104 -0
- package/src/occupation-plugins/recruitment.js +38 -0
- package/src/presence/windows-helper-pin.js +1 -1
- package/src/registry/updatable-manifest.js +127 -0
- package/src/retrieval-terms/fill.js +102 -0
- package/src/retrieval-terms/runner.js +50 -0
- package/src/retrieval-terms/terms-model.js +99 -0
- package/src/retrospectives/run.js +113 -0
- package/src/retrospectives/runs.js +18 -0
- package/src/retrospectives/scheduler.js +58 -0
- package/src/semantic/scheduler.js +50 -0
- package/src/semantic/semantic-index.js +94 -0
- package/src/server/application-lifecycle.js +1 -1
- package/src/server/signal-shutdown.js +31 -0
- package/src/server.js +41 -18
- package/src/setup/first-run-capture.js +6 -2
- package/src/setup/graph-runtime.js +46 -38
- package/src/setup/neo4j-memory-profile.js +1 -1
- package/src/setup/paths.js +2 -0
- package/src/standing-assignments/store.js +2 -4
- package/src/system/client-connection-status.js +8 -4
- package/src/system/doctor.js +80 -4
- package/src/system/graph-migration.js +1 -1
- package/src/system/mcp-process-scan.js +55 -0
- package/src/system/platform-path.js +21 -9
- package/src/system/runtime-settings.js +19 -7
- package/src/system/settings-guide.js +7 -0
- package/src/system/system-service.js +64 -7
- package/src/task-blockers/console-port.js +12 -6
- package/src/text/markdown-link.js +12 -0
- package/src/text/single-line.js +6 -0
- package/src/text/utf8-preview.js +7 -6
- package/src/whats-new/lines/0.25.0.json +17 -0
- package/src/whats-new/release-lines.js +66 -0
- package/src/whats-new/whats-new.js +70 -0
- package/src/work-surfaces/store.js +2 -4
- package/dist/web/assets/AboutSectionHeading-CiD3M3eG.css +0 -1
- package/dist/web/assets/AboutSectionHeading-w5P9g9WB.js +0 -1
- package/dist/web/assets/AgentAppsPage-DY_TV5EE.js +0 -1
- package/dist/web/assets/AgentManagement-CeF4mjtg.css +0 -1
- package/dist/web/assets/AgentManagement-VWpTW_38.js +0 -7
- package/dist/web/assets/AgentMentionCopy-CNKrzZvE.css +0 -1
- package/dist/web/assets/AgentMentionCopy-DI23ym95.js +0 -1
- package/dist/web/assets/AgentProfilePage-DrqWGjqt.js +0 -5
- package/dist/web/assets/AgentServicesPage-ARIWfmuh.css +0 -1
- package/dist/web/assets/AgentServicesPage-DEz1dnct.js +0 -1
- package/dist/web/assets/ConnectionsPage-Cj-T0BH2.js +0 -1
- package/dist/web/assets/ConnectionsPage-Cwt-knQQ.css +0 -1
- package/dist/web/assets/DataFormatPage-0Ne27K6I.css +0 -1
- package/dist/web/assets/DataFormatPage-D39VmkWL.js +0 -2
- package/dist/web/assets/DebugTurnPage-C6xOOTYf.js +0 -1
- package/dist/web/assets/DebugTurnsPage-uclemAXU.js +0 -1
- package/dist/web/assets/EmployeeScopeDialog-DbEgouOr.js +0 -1
- package/dist/web/assets/EmployeeScopeDialog-Do5PHQh7.css +0 -1
- package/dist/web/assets/EmployeeWorkbench-Cd0Yrv4Z.js +0 -4
- package/dist/web/assets/FieldRoot-BZby7Lhw.js +0 -1
- package/dist/web/assets/FlaGrowth-BS5MVg54.js +0 -1
- package/dist/web/assets/FlaGrowth-BzXY8pcx.css +0 -1
- package/dist/web/assets/FlasPage-DsAcdiFS.js +0 -1
- package/dist/web/assets/FlasPage-SLQDMv47.css +0 -1
- package/dist/web/assets/HowtoPage-CKJAtKbM.js +0 -1
- package/dist/web/assets/InboxPage-Bkx6nIhb.css +0 -1
- package/dist/web/assets/InboxPage-DPV8n8FW.js +0 -4
- package/dist/web/assets/KnowledgeItemEditPage-n0jtTdHB.js +0 -1
- package/dist/web/assets/KnowledgeOrganizerPage-CNm2jvJZ.css +0 -1
- package/dist/web/assets/KnowledgeOrganizerPage-CzXXBL9z.js +0 -1
- package/dist/web/assets/KnowledgePage-CZ9oDt3D.js +0 -1
- package/dist/web/assets/KnowledgePeek-J6gHDda8.js +0 -1
- package/dist/web/assets/KnowledgeWorkspace-6C9dPHLk.js +0 -4
- package/dist/web/assets/MenuSeparator-BlL75cLC.js +0 -1
- package/dist/web/assets/ModelSettingsPage-BwUnvtP6.js +0 -1
- package/dist/web/assets/ModelSettingsPage-ConWy_ec.css +0 -1
- package/dist/web/assets/OccupationsPage-DLIkdMDv.js +0 -1
- package/dist/web/assets/OccupationsPage-Di7B-bPl.css +0 -1
- package/dist/web/assets/OverviewPage-BeExbgPK.js +0 -1
- package/dist/web/assets/OverviewPage-xdF5g6bZ.css +0 -1
- package/dist/web/assets/PageOutline-BqVgnlos.css +0 -1
- package/dist/web/assets/PageOutline-Dtu7R8Wo.js +0 -1
- package/dist/web/assets/PersonalProfilePage-CIeXNXqv.js +0 -1
- package/dist/web/assets/PersonalProjectsPage-DM70jshg.js +0 -1
- package/dist/web/assets/PopperContent-D6WQ0NV4.js +0 -1
- package/dist/web/assets/ProfileAuthorChip-C_0hzDoP.css +0 -1
- package/dist/web/assets/ProfileAuthorChip-CpLzynWF.js +0 -1
- package/dist/web/assets/ProjectAgentsPage-v-Wtq-2-.js +0 -5
- package/dist/web/assets/RovingFocusGroup-CmwaBpdi.js +0 -1
- package/dist/web/assets/SessionRecordsPage-CedaErNM.js +0 -1
- package/dist/web/assets/SettingsPage-D85vqpZb.css +0 -1
- package/dist/web/assets/SettingsPage-aRxdnfBu.js +0 -1
- package/dist/web/assets/SharedJefaReportPage-BkmmPYH1.js +0 -1
- package/dist/web/assets/TagVocabularyPage-Bcd5fvzW.js +0 -1
- package/dist/web/assets/TaskBlockerClear-Bln3zxga.js +0 -1
- package/dist/web/assets/TaskBlockerClear-CjSNfpyP.css +0 -1
- package/dist/web/assets/TaskBlockerNotice-Db1uAtT2.js +0 -1
- package/dist/web/assets/TeamCard-B4J2jkm5.js +0 -1
- package/dist/web/assets/TeamCard-CsmWDw2Q.css +0 -1
- package/dist/web/assets/TeamIsland-DXIQQ3bx.js +0 -9
- package/dist/web/assets/UiDialog-Cbb3AvXb.js +0 -1
- package/dist/web/assets/UiIcon-o5x6Sf-c.js +0 -1
- package/dist/web/assets/UiIconButton-EZ8ktpFH.js +0 -1
- package/dist/web/assets/UiNotice-DYZn5s6m.js +0 -1
- package/dist/web/assets/VirtualDirectoryList-1vLi41SD.css +0 -1
- package/dist/web/assets/VirtualDirectoryList-XB8MT97E.js +0 -1
- package/dist/web/assets/VisuallyHiddenInput-D-GgOU3T.js +0 -1
- package/dist/web/assets/WidgetSlot-URHq8Let.js +0 -2
- package/dist/web/assets/_plugin-vue_export-helper-PxAQThRD.js +0 -9
- package/dist/web/assets/agent-apps-CQf2Eba8.js +0 -1
- package/dist/web/assets/agent-avatar-lPJyVS9O.js +0 -1
- package/dist/web/assets/agent-occupation-DM6nIHrD.js +0 -1
- package/dist/web/assets/agent-profile-Clb-gYu-.css +0 -1
- package/dist/web/assets/agent-work-summary-bzTwEUaA.js +0 -1
- package/dist/web/assets/checkbox-BB8_0W6A.js +0 -1
- package/dist/web/assets/client-connection-model-CrDtN1yF.js +0 -1
- package/dist/web/assets/client-links-store-B7VjTEfO.js +0 -1
- package/dist/web/assets/combobox-BOXLFvvr.js +0 -1
- package/dist/web/assets/console-BB2sTsSs.js +0 -1
- package/dist/web/assets/context-menu-DW29av0t.js +0 -1
- package/dist/web/assets/dropdown-menu-C0AuLdFm.js +0 -1
- package/dist/web/assets/fla-mention-D_Qb7VeY.js +0 -1
- package/dist/web/assets/index-CSV9nk7P.js +0 -2
- package/dist/web/assets/index-DFt6UfTv.css +0 -1
- package/dist/web/assets/label-table-BUAeArKh.js +0 -1
- package/dist/web/assets/model-4BHOc7rR.js +0 -1
- package/dist/web/assets/model-CxmTkWuw.js +0 -1
- package/dist/web/assets/motion-TN6JdrrU.js +0 -1
- package/dist/web/assets/occupation-catalog-C3Hj8p4a.js +0 -1
- package/dist/web/assets/person-profile-Cmkd1uXt.js +0 -1
- package/dist/web/assets/popover-DyX7FE_t.js +0 -1
- package/dist/web/assets/profile-model-CmC9A3we.js +0 -1
- package/dist/web/assets/quick-edit-api-D6Xgntqh.js +0 -1
- package/dist/web/assets/radio-group-AkUGYCQ8.js +0 -1
- package/dist/web/assets/roundtable-live-C1wc_F30.js +0 -1
- package/dist/web/assets/save-file-rPduHi2f.js +0 -1
- package/dist/web/assets/select-CuhUd9VL.js +0 -1
- package/dist/web/assets/shared-report-BKhY4rtE.js +0 -3
- package/dist/web/assets/tabs-B8ccOT5z.js +0 -1
- package/dist/web/assets/ui-CoUaCzmO.css +0 -1
- package/dist/web/assets/ui-Pf0_u3Mo.js +0 -1
- package/dist/web/assets/useAgentWorkSummary-CNoUxwOW.js +0 -1
- package/dist/web/assets/useForwardScopeId-Bzm9IM9h.js +0 -1
- package/dist/web/assets/useKnowledgeItemPeek-24H5cZzL.js +0 -1
- package/dist/web/assets/useTeamPeople-IATXewrX.js +0 -1
- package/dist/web/assets/utils-_mWlJRpS.js +0 -1
- package/dist/web/assets/version-Cw272WBv.js +0 -1
- package/src/workspace-protocol/array-validation.js +0 -19
- package/src/workspace-protocol/base64url-contract.js +0 -27
- package/src/workspace-protocol/constants.js +0 -37
- package/src/workspace-protocol/error-contract.js +0 -24
- package/src/workspace-protocol/fact-contract.js +0 -110
- package/src/workspace-protocol/governance-contract.js +0 -47
- package/src/workspace-protocol/index.js +0 -53
- package/src/workspace-protocol/json-budget.js +0 -19
- package/src/workspace-protocol/manifest-contract.js +0 -186
- package/src/workspace-protocol/publication-contract.js +0 -212
- package/src/workspace-protocol/query-contract.js +0 -149
- package/src/workspace-protocol/scalar-contract.js +0 -192
- package/src/workspace-protocol/sync-contract.js +0 -184
- package/src/workspace-protocol/text-contract.js +0 -39
- package/src/workspace-protocol/validation.js +0 -66
- /package/dist/web/assets/{UiNotice-ZCBdABdM.css → UiIconButton-ZCBdABdM.css} +0 -0
- /package/dist/web/assets/{settings-restart-BU_GGtbG.css → settings-autosave-BU_GGtbG.css} +0 -0
|
@@ -10,10 +10,19 @@ import { ModelUsageLedger } from './usage-ledger.js';
|
|
|
10
10
|
|
|
11
11
|
// Composition of the model port for one FULI data directory. The config is
|
|
12
12
|
// read on every call, so a saved change applies without a restart.
|
|
13
|
+
// Keys saved before they were tied to an endpoint are tied once here (secret-store.js bindLegacyKeys).
|
|
13
14
|
export function openModelBackendRuntime(paths) {
|
|
15
|
+
const readConfig = () => readModelBackendConfig(paths.modelBackendConfigPath);
|
|
16
|
+
const secrets = createModelSecretStore({ path: paths.modelSecretStorePath });
|
|
17
|
+
const loaded = readConfig();
|
|
18
|
+
try {
|
|
19
|
+
if (loaded.state === 'ok') secrets.bindLegacyKeys(loaded.config.connections);
|
|
20
|
+
} catch (error) {
|
|
21
|
+
console.warn(`Model keys were not tied to their endpoints: ${error?.message ?? error}`);
|
|
22
|
+
}
|
|
14
23
|
return createModelBackendPort({
|
|
15
|
-
readConfig
|
|
16
|
-
secrets
|
|
24
|
+
readConfig,
|
|
25
|
+
secrets,
|
|
17
26
|
ledger: new ModelUsageLedger(paths.modelUsageLedgerPath)
|
|
18
27
|
});
|
|
19
28
|
}
|
|
@@ -2,6 +2,7 @@ import { rmSync, statSync } from 'node:fs';
|
|
|
2
2
|
|
|
3
3
|
import { readJsonFile } from '../storage/json-file.js';
|
|
4
4
|
import { jsonFormat, writeVersionedJsonFileAtomic } from '../storage/json-format.js';
|
|
5
|
+
import { endpointUrl } from './config.js';
|
|
5
6
|
import { createDpapiProtector } from './windows-dpapi.js';
|
|
6
7
|
|
|
7
8
|
// Model API keys, stored under the FULI data directory and named by a
|
|
@@ -9,6 +10,15 @@ import { createDpapiProtector } from './windows-dpapi.js';
|
|
|
9
10
|
// systems keep the file readable by its owner only and refuse it otherwise.
|
|
10
11
|
// A failed protection never falls back to a plaintext copy, and no message
|
|
11
12
|
// carries the key. The file is not part of config export, sync or backup.
|
|
13
|
+
//
|
|
14
|
+
// Each key is tied to the endpoint origin (scheme, host, port) it was saved
|
|
15
|
+
// for, and is read only for that origin (dot review of fuli PR 784): a connection
|
|
16
|
+
// pointed at another host, by a delegated role edit or anything else, cannot
|
|
17
|
+
// take an existing key there. Using it elsewhere means saving it again for
|
|
18
|
+
// the new endpoint. Keys saved before origins were recorded are tied once,
|
|
19
|
+
// when a runtime first opens the store, to the one origin the configured
|
|
20
|
+
// connections naming them use (bindLegacyKeys); a key named by none or by
|
|
21
|
+
// several stays untied and is refused until it is saved again.
|
|
12
22
|
|
|
13
23
|
const STORE_VERSION = 1;
|
|
14
24
|
export const MODEL_SECRETS_FORMAT = jsonFormat({ store: 'model-secrets', versions: [STORE_VERSION] });
|
|
@@ -30,6 +40,11 @@ class ModelSecretError extends Error {
|
|
|
30
40
|
}
|
|
31
41
|
}
|
|
32
42
|
|
|
43
|
+
// The origin a key is tied to, from an endpoint URL.
|
|
44
|
+
export function keyOrigin(endpoint, label = 'endpoint') {
|
|
45
|
+
return new URL(endpointUrl(endpoint, label)).origin;
|
|
46
|
+
}
|
|
47
|
+
|
|
33
48
|
export function secretReference(value, label) {
|
|
34
49
|
if (typeof value !== 'string' || !REFERENCE_PATTERN.test(value)) {
|
|
35
50
|
throw new TypeError(`${label} must be 1-64 letters, digits, dots, dashes or underscores`);
|
|
@@ -51,23 +66,31 @@ export function createModelSecretStore({
|
|
|
51
66
|
'The model key store can be read by other users. Restrict it to the current user and try again.');
|
|
52
67
|
}
|
|
53
68
|
}
|
|
54
|
-
function
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
57
|
-
if (
|
|
69
|
+
function stored() {
|
|
70
|
+
const value = readJsonFile(path, null);
|
|
71
|
+
if (value === null) return { version: STORE_VERSION, secrets: {} };
|
|
72
|
+
if (value?.version !== STORE_VERSION || !value.secrets || typeof value.secrets !== 'object') {
|
|
58
73
|
throw new ModelSecretError('secret_unreadable', 'The model key store is not in a supported format.');
|
|
59
74
|
}
|
|
60
|
-
return
|
|
75
|
+
return value;
|
|
61
76
|
}
|
|
77
|
+
const records = () => stored().secrets;
|
|
78
|
+
const write = next => writeVersionedJsonFileAtomic(path, { version: STORE_VERSION, ...next }, MODEL_SECRETS_FORMAT);
|
|
62
79
|
return {
|
|
63
80
|
// The references that have a key, never the keys.
|
|
64
81
|
references() {
|
|
65
82
|
assertPrivate();
|
|
66
83
|
return Object.keys(records()).sort();
|
|
67
84
|
},
|
|
68
|
-
|
|
85
|
+
// Each reference's tied origin (null while untied); origins are no secret.
|
|
86
|
+
origins() {
|
|
87
|
+
assertPrivate();
|
|
88
|
+
return Object.fromEntries(Object.entries(records()).map(([ref, record]) => [ref, record.endpoint ?? null]).sort());
|
|
89
|
+
},
|
|
90
|
+
async set(ref, secret, endpoint) {
|
|
69
91
|
secretReference(ref, 'Key reference');
|
|
70
92
|
const value = secretValue(secret);
|
|
93
|
+
const origin = keyOrigin(endpoint, 'The endpoint this key is for');
|
|
71
94
|
assertPrivate();
|
|
72
95
|
const existed = fileMode(path) !== null;
|
|
73
96
|
let data;
|
|
@@ -76,9 +99,9 @@ export function createModelSecretStore({
|
|
|
76
99
|
} catch {
|
|
77
100
|
throw new ModelSecretError('secret_protection_failed', `The key for ${ref} could not be protected. Nothing was saved.`);
|
|
78
101
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
102
|
+
const current = stored();
|
|
103
|
+
write({ ...current, secrets: { ...current.secrets,
|
|
104
|
+
[ref]: { scheme: protector.scheme, data, endpoint: origin, updatedAt: new Date().toISOString() } } });
|
|
82
105
|
try {
|
|
83
106
|
assertPrivate();
|
|
84
107
|
} catch (error) {
|
|
@@ -86,21 +109,47 @@ export function createModelSecretStore({
|
|
|
86
109
|
throw error;
|
|
87
110
|
}
|
|
88
111
|
},
|
|
89
|
-
|
|
112
|
+
// The key for a request to endpoint; refused before decrypting when the key is tied elsewhere or untied.
|
|
113
|
+
async read(ref, endpoint) {
|
|
90
114
|
secretReference(ref, 'Key reference');
|
|
115
|
+
const origin = keyOrigin(endpoint);
|
|
91
116
|
assertPrivate();
|
|
92
117
|
const record = records()[ref];
|
|
93
118
|
if (!record) return null;
|
|
119
|
+
if (!record.endpoint) {
|
|
120
|
+
throw new ModelSecretError('secret_endpoint_unbound',
|
|
121
|
+
`The key for ${ref} is not tied to an endpoint yet. Save it again on the model page for ${origin}.`);
|
|
122
|
+
}
|
|
123
|
+
if (record.endpoint !== origin) {
|
|
124
|
+
throw new ModelSecretError('secret_endpoint_mismatch',
|
|
125
|
+
`The key for ${ref} was saved for ${record.endpoint}, not ${origin}. Save it again on the model page for the new endpoint.`);
|
|
126
|
+
}
|
|
94
127
|
if (record.scheme !== protector.scheme) {
|
|
95
128
|
throw new ModelSecretError('secret_unreadable',
|
|
96
|
-
`The key for ${ref} was saved with another protection scheme. Save it again with: fuli models set-key ${ref}
|
|
129
|
+
`The key for ${ref} was saved with another protection scheme. Save it again on the model page or with: fuli models set-key ${ref} --endpoint <its endpoint>`);
|
|
97
130
|
}
|
|
98
131
|
try {
|
|
99
132
|
return (await protector.unprotect(record.data)).toString('utf8');
|
|
100
133
|
} catch {
|
|
101
134
|
throw new ModelSecretError('secret_unreadable',
|
|
102
|
-
`The key for ${ref} could not be decrypted. Save it again with: fuli models set-key ${ref}
|
|
135
|
+
`The key for ${ref} could not be decrypted. Save it again on the model page or with: fuli models set-key ${ref} --endpoint <its endpoint>`);
|
|
103
136
|
}
|
|
137
|
+
},
|
|
138
|
+
// Once per store: ties each key saved before origins were recorded to the one origin of the
|
|
139
|
+
// configured connections that name it. Compatible with stores written before 0.25; it can go
|
|
140
|
+
// once no supported release writes untied keys and their owners have saved them again.
|
|
141
|
+
bindLegacyKeys(connections) {
|
|
142
|
+
if (fileMode(path) === null) return;
|
|
143
|
+
assertPrivate();
|
|
144
|
+
const current = stored();
|
|
145
|
+
if (current.legacyKeysBound) return;
|
|
146
|
+
const secrets = Object.fromEntries(Object.entries(current.secrets).map(([ref, record]) => {
|
|
147
|
+
if (record.endpoint) return [ref, record];
|
|
148
|
+
const origins = new Set(Object.values(connections).filter(connection => connection.secretRef === ref)
|
|
149
|
+
.map(connection => keyOrigin(connection.endpoint)));
|
|
150
|
+
return [ref, origins.size === 1 ? { ...record, endpoint: [...origins][0] } : record];
|
|
151
|
+
}));
|
|
152
|
+
write({ ...current, secrets, legacyKeysBound: true });
|
|
104
153
|
}
|
|
105
154
|
};
|
|
106
155
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
2
|
import { dirname } from 'node:path';
|
|
3
3
|
|
|
4
|
-
import { openFormattedDatabase, sqliteFormat } from '../../packages/roundtable/src/storage/database-format.js';
|
|
4
|
+
import { immediateTransaction, openFormattedDatabase, sqliteFormat } from '../../packages/roundtable/src/storage/database-format.js';
|
|
5
5
|
import { hardDeleteLedger } from '../knowledge-hard-delete/delete-ledger.js';
|
|
6
6
|
import { forgetDurably } from '../knowledge-hard-delete/forget-references.js';
|
|
7
7
|
import { assertKnowledgeRecovery } from '../knowledge-hard-delete/recovery-gate.js';
|
|
@@ -40,9 +40,10 @@ import { assertKnowledgeRecovery } from '../knowledge-hard-delete/recovery-gate.
|
|
|
40
40
|
export const RETENTION = Object.freeze({ days: 90, rows: 300 });
|
|
41
41
|
const DAY_MS = 86_400_000;
|
|
42
42
|
const LIST_LIMIT = 50;
|
|
43
|
-
// The words a row carries: its hint
|
|
44
|
-
// and
|
|
45
|
-
|
|
43
|
+
// The words a row carries: its hint and issues, a retrospective's task title
|
|
44
|
+
// and lessons, and in its suggestion the model's reason and uncertainty and the
|
|
45
|
+
// names it showed. Host IDs and option keys stay.
|
|
46
|
+
const RESULT_WORDS = Object.freeze(['hint', 'issues', 'taskTitle', 'lessons']);
|
|
46
47
|
const SUGGESTION_WORDS = Object.freeze(['reason', 'uncertainty', 'name', 'title']);
|
|
47
48
|
// A delete whose outcome or local cleanup is not finished.
|
|
48
49
|
const OPEN = new Set(['pending', 'graph_deleted']);
|
|
@@ -187,18 +188,8 @@ export class RoleSuggestionLog {
|
|
|
187
188
|
if (this.path !== ':memory:') assertKnowledgeRecovery(this.recoveryGate, space, 'role-suggestions');
|
|
188
189
|
}
|
|
189
190
|
|
|
190
|
-
// Nested calls join the open transaction.
|
|
191
191
|
#transaction(work) {
|
|
192
|
-
|
|
193
|
-
this.db.exec('BEGIN IMMEDIATE');
|
|
194
|
-
try {
|
|
195
|
-
const result = work();
|
|
196
|
-
this.db.exec('COMMIT');
|
|
197
|
-
return result;
|
|
198
|
-
} catch (error) {
|
|
199
|
-
this.db.exec('ROLLBACK');
|
|
200
|
-
throw error;
|
|
201
|
-
}
|
|
192
|
+
return immediateTransaction(this.db, work);
|
|
202
193
|
}
|
|
203
194
|
|
|
204
195
|
close() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openFormattedDatabase, sqliteFormat } from '../../packages/roundtable/src/storage/database-format.js';
|
|
1
|
+
import { immediateTransaction, openFormattedDatabase, sqliteFormat } from '../../packages/roundtable/src/storage/database-format.js';
|
|
2
2
|
|
|
3
3
|
import { roundCost } from './budget.js';
|
|
4
4
|
|
|
@@ -25,6 +25,7 @@ const TOKEN_FIELDS = Object.freeze([
|
|
|
25
25
|
['cachedInput', 'cached_input_tokens'], ['cacheWriteInput', 'cache_write_input_tokens'], ['reasoning', 'reasoning_tokens']
|
|
26
26
|
]);
|
|
27
27
|
const SUBSET_FIELDS = new Set(['cachedInput', 'cacheWriteInput', 'reasoning']);
|
|
28
|
+
const NO_USAGE = 'input_tokens IS NULL AND output_tokens IS NULL AND total_tokens IS NULL';
|
|
28
29
|
const UNKNOWN_USAGE = Object.freeze({ inputTokens: null, outputTokens: null, totalTokens: null, cachedInputTokens: null,
|
|
29
30
|
cacheWriteInputTokens: null, reasoningTokens: null, definition: null });
|
|
30
31
|
|
|
@@ -142,18 +143,24 @@ export class ModelUsageLedger {
|
|
|
142
143
|
|
|
143
144
|
// Grouped by role, provider (protocol and endpoint host), configured model
|
|
144
145
|
// and channel; the models the provider reported are listed per group.
|
|
146
|
+
// requests are distinct calls and failedRequests the calls no attempt
|
|
147
|
+
// answered; attempts and failedAttempts count every try, retries included.
|
|
148
|
+
// unreportedAttempts returned no token counts at all (the call threw, timed
|
|
149
|
+
// out or was cut off); unreportedFailedAttempts are those that failed.
|
|
150
|
+
// FULI bills nothing, so usage carries no cost; budgets keep their own.
|
|
145
151
|
usage({ role = null, from = null, to = null }) {
|
|
146
152
|
const tokenColumns = TOKEN_FIELDS.map(([name, column]) =>
|
|
147
153
|
`SUM(${column}) AS ${name}_reported, SUM(${column} IS NULL) AS ${name}_unknown`).join(', ');
|
|
148
154
|
const rows = this.db.prepare(`SELECT role, protocol, endpoint_host, requested_model, json_group_array(DISTINCT actual_model) AS actual_models,
|
|
149
|
-
channel,
|
|
155
|
+
channel, COUNT(DISTINCT request_id) AS requests, COUNT(*) AS attempts,
|
|
150
156
|
SUM(purpose = 'retry') AS retries, SUM(purpose = 'repair') AS repairs,
|
|
151
157
|
SUM(outcome != 'succeeded') AS failed_attempts,
|
|
152
158
|
COUNT(DISTINCT request_id) - COUNT(DISTINCT CASE WHEN outcome = 'succeeded' THEN request_id END) AS failed_requests,
|
|
153
|
-
${
|
|
159
|
+
SUM(${NO_USAGE}) AS unreported_attempts, SUM(${NO_USAGE} AND outcome != 'succeeded') AS unreported_failed_attempts,
|
|
160
|
+
${tokenColumns}
|
|
154
161
|
FROM model_attempts
|
|
155
162
|
WHERE (?1 IS NULL OR role = ?1) AND (?2 IS NULL OR started_at >= ?2) AND (?3 IS NULL OR started_at < ?3)
|
|
156
|
-
GROUP BY role, protocol, endpoint_host, requested_model, channel
|
|
163
|
+
GROUP BY role, protocol, endpoint_host, requested_model, channel
|
|
157
164
|
ORDER BY role, requested_model LIMIT ${MAX_GROUPS}`).all(role, from, to);
|
|
158
165
|
return rows.map(row => ({
|
|
159
166
|
role: row.role,
|
|
@@ -167,11 +174,11 @@ export class ModelUsageLedger {
|
|
|
167
174
|
repairs: row.repairs,
|
|
168
175
|
failedAttempts: row.failed_attempts,
|
|
169
176
|
failedRequests: row.failed_requests,
|
|
177
|
+
unreportedAttempts: row.unreported_attempts,
|
|
178
|
+
unreportedFailedAttempts: row.unreported_failed_attempts,
|
|
170
179
|
tokens: Object.fromEntries(TOKEN_FIELDS
|
|
171
180
|
.filter(([name]) => !SUBSET_FIELDS.has(name) || row[`${name}_reported`] !== null)
|
|
172
|
-
.map(([name]) => [name, { reported: row[`${name}_reported`], unknownAttempts: row[`${name}_unknown`] }]))
|
|
173
|
-
estimatedCost: row.cost_currency ? { amount: row.cost === null ? null : roundCost(row.cost), currency: row.cost_currency,
|
|
174
|
-
basis: 'estimate', unknownAttempts: row.cost_unknown } : null
|
|
181
|
+
.map(([name]) => [name, { reported: row[`${name}_reported`], unknownAttempts: row[`${name}_unknown`] }]))
|
|
175
182
|
}));
|
|
176
183
|
}
|
|
177
184
|
|
|
@@ -191,18 +198,21 @@ export class ModelUsageLedger {
|
|
|
191
198
|
completedAt: new Date(Date.parse(row.started_at) + row.duration_ms).toISOString() } : null;
|
|
192
199
|
}
|
|
193
200
|
|
|
194
|
-
//
|
|
201
|
+
// The latest attempt of a role on the model API from one connection and
|
|
202
|
+
// model, whatever its outcome: { outcome, failureClass, failureReason, at },
|
|
203
|
+
// or null when there is none (rec#92: the top bar turns red while the
|
|
204
|
+
// configured model fails).
|
|
205
|
+
lastAttempt({ role, connectionId, protocol, endpoint, requestedModel }) {
|
|
206
|
+
const row = this.db.prepare(`SELECT outcome, failure_class, failure_reason, started_at, duration_ms FROM model_attempts
|
|
207
|
+
WHERE role = ? AND channel = 'model_api' AND connection_id = ? AND protocol = ? AND endpoint = ? AND requested_model = ?
|
|
208
|
+
ORDER BY julianday(started_at) * 86400000 + duration_ms DESC, rowid DESC LIMIT 1`)
|
|
209
|
+
.get(role, connectionId, protocol, endpoint, requestedModel);
|
|
210
|
+
return row ? { outcome: row.outcome, failureClass: row.failure_class, failureReason: row.failure_reason,
|
|
211
|
+
at: new Date(Date.parse(row.started_at) + row.duration_ms).toISOString() } : null;
|
|
212
|
+
}
|
|
213
|
+
|
|
195
214
|
#transaction(work) {
|
|
196
|
-
|
|
197
|
-
this.db.exec('BEGIN IMMEDIATE');
|
|
198
|
-
try {
|
|
199
|
-
const result = work();
|
|
200
|
-
this.db.exec('COMMIT');
|
|
201
|
-
return result;
|
|
202
|
-
} catch (error) {
|
|
203
|
-
this.db.exec('ROLLBACK');
|
|
204
|
-
throw error;
|
|
205
|
-
}
|
|
215
|
+
return immediateTransaction(this.db, work);
|
|
206
216
|
}
|
|
207
217
|
|
|
208
218
|
close() {
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { dreamingRuns } from '../dreaming/scheduler.js';
|
|
2
|
+
import { PROMOTED_PURPOSE } from '../graphiti/topic-proposals.js';
|
|
3
|
+
import { delegatedReviewList } from '../judgment/review-delegation.js';
|
|
4
|
+
import { retrospectiveRuns } from '../retrospectives/runs.js';
|
|
5
|
+
|
|
6
|
+
// The workbench's 「最近你可能需要知道的事」 (Jevons 11-06): what changed lately
|
|
7
|
+
// that the person may want to know, each with the one place to act on it. It is
|
|
8
|
+
// read from records FULI already keeps; nothing new is stored. A source that
|
|
9
|
+
// cannot be read is left out, so one broken record never empties the list.
|
|
10
|
+
// Each notice is { id, kind, at, params, href } and, where its record names
|
|
11
|
+
// them, projectId and agentId; the console words it. The workbench reads the
|
|
12
|
+
// first page of the last two weeks; the list's own page (/workbench/notices)
|
|
13
|
+
// reads up to 90 days, filtered and a page at a time.
|
|
14
|
+
export const NOTICE_WINDOW_DAYS = 14;
|
|
15
|
+
export const MAX_NOTICE_WINDOW_DAYS = 90;
|
|
16
|
+
const NOTICE_PAGE_SIZE = 50;
|
|
17
|
+
const DAY_MS = 24 * 60 * 60 * 1000;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* `query` (all optional): days, kinds, projectIds, agentIds, text (matched
|
|
21
|
+
* against what the notice names), sort ('newest' | 'oldest'), cursor (the
|
|
22
|
+
* nextCursor of the page before) and limit.
|
|
23
|
+
*/
|
|
24
|
+
export async function recentNotices({ app, delegation = null, system = null, now = Date.now(), query = {} }) {
|
|
25
|
+
const space = app.config.personal.spaceId;
|
|
26
|
+
const days = query.days ?? NOTICE_WINDOW_DAYS;
|
|
27
|
+
const since = now - days * DAY_MS;
|
|
28
|
+
const projects = await read(() => app.listPersonalProjects({ personalSpaceId: space }), []);
|
|
29
|
+
const context = { app, delegation, system, space, projectName: nameLookup(projects) };
|
|
30
|
+
const lists = await Promise.all([
|
|
31
|
+
promotedTopics(projects),
|
|
32
|
+
read(() => dreamingResults(context), []),
|
|
33
|
+
read(() => retrospectiveResults(context), []),
|
|
34
|
+
read(() => tonborgConfirmations(context), []),
|
|
35
|
+
read(() => teamChanges(context), []),
|
|
36
|
+
read(() => delegatedChanges(context), []),
|
|
37
|
+
read(() => modelProblems(context), []),
|
|
38
|
+
read(() => versionUpdate(context), [])
|
|
39
|
+
]);
|
|
40
|
+
const direction = query.sort === 'oldest' ? -1 : 1;
|
|
41
|
+
const matching = lists.flat()
|
|
42
|
+
.filter(notice => time(notice.at) >= since && matches(notice, query))
|
|
43
|
+
.sort((a, b) => direction * (time(b.at) - time(a.at)) || a.id.localeCompare(b.id));
|
|
44
|
+
const start = Number(query.cursor ?? 0);
|
|
45
|
+
const end = start + (query.limit ?? NOTICE_PAGE_SIZE);
|
|
46
|
+
return { windowDays: days, total: matching.length, items: matching.slice(start, end),
|
|
47
|
+
nextCursor: end < matching.length ? String(end) : null };
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function matches(notice, { kinds = [], projectIds = [], agentIds = [], text = '' }) {
|
|
51
|
+
if (kinds.length && !kinds.includes(notice.kind)) return false;
|
|
52
|
+
if (projectIds.length && !projectIds.includes(notice.projectId)) return false;
|
|
53
|
+
if (agentIds.length && !agentIds.includes(notice.agentId)) return false;
|
|
54
|
+
const needle = text.trim().toLowerCase();
|
|
55
|
+
return !needle || Object.values(notice.params).some(value => String(value).toLowerCase().includes(needle));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// A topic Astro made into a project by itself; an undone one is archived and drops out.
|
|
59
|
+
function promotedTopics(projects) {
|
|
60
|
+
return projects
|
|
61
|
+
.filter(project => project.profile?.purpose?.startsWith(PROMOTED_PURPOSE) && project.profile?.lifecycle !== 'archived')
|
|
62
|
+
.map(project => {
|
|
63
|
+
const name = project.profile?.name ?? project.project_id;
|
|
64
|
+
return notice('topic_promoted', project.project_id, project.created_at, { project: name },
|
|
65
|
+
`/employees/assistant?${new URLSearchParams({ promoted: project.project_id, topic: name })}`, { projectId: project.project_id });
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// A Dreaming run that left something to confirm, or one that stopped.
|
|
70
|
+
async function dreamingResults({ app, projectName }) {
|
|
71
|
+
const rows = await dreamingRuns(app);
|
|
72
|
+
return rows.flatMap(row => {
|
|
73
|
+
const project = projectName(row.personalProjectId);
|
|
74
|
+
const refs = { projectId: row.personalProjectId };
|
|
75
|
+
if (row.status === 'dreamed') {
|
|
76
|
+
const proposed = (row.proposed ?? []).filter(proposal => proposal.status === 'queued').length;
|
|
77
|
+
return proposed ? [notice('dreaming_found', row.id, row.at, { project, sessions: row.sessions ?? 0, proposed }, '/inbox', refs)] : [];
|
|
78
|
+
}
|
|
79
|
+
if (row.status === 'nothing_to_read') return [];
|
|
80
|
+
return [notice('dreaming_stopped', row.id, row.at, { project, status: row.status }, '/models', refs)];
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// A finished task's retrospective whose lessons wait for the person. One whose
|
|
85
|
+
// words a permanent delete took says nothing; the task's view still has it.
|
|
86
|
+
async function retrospectiveResults({ app, projectName }) {
|
|
87
|
+
const rows = await retrospectiveRuns(app);
|
|
88
|
+
return rows.flatMap(row => {
|
|
89
|
+
const lessons = (row.lessons ?? []).filter(lesson => lesson.status === 'queued').length;
|
|
90
|
+
if (row.status !== 'written' || row.hard_deleted || !lessons) return [];
|
|
91
|
+
return [notice('retrospective_ready', row.subject?.taskId ?? row.id, row.at,
|
|
92
|
+
{ task: row.taskTitle ?? '', project: projectName(row.personalProjectId), lessons }, '/inbox', { projectId: row.personalProjectId })];
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// What Tonborg confirmed for the person, one notice a day.
|
|
97
|
+
async function tonborgConfirmations({ app, space }) {
|
|
98
|
+
if (!app.judgment) return [];
|
|
99
|
+
const { confirmed } = await delegatedReviewList({ judgment: app.judgment, input: { personalSpaceId: space } });
|
|
100
|
+
const days = new Map();
|
|
101
|
+
for (const entry of confirmed) {
|
|
102
|
+
const day = String(entry.createdAt).slice(0, 10);
|
|
103
|
+
const known = days.get(day);
|
|
104
|
+
days.set(day, { count: (known?.count ?? 0) + 1, at: known && time(known.at) > time(entry.createdAt) ? known.at : entry.createdAt });
|
|
105
|
+
}
|
|
106
|
+
return [...days].map(([day, { count, at }]) => notice('tonborg_confirmed', day, at, { count }, '/inbox'));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// FLAs who joined or left a project.
|
|
110
|
+
async function teamChanges({ app, space, projectName }) {
|
|
111
|
+
const [active, archived] = await Promise.all([
|
|
112
|
+
read(() => app.listProjectAgents({ personalSpaceId: space }), []),
|
|
113
|
+
read(() => app.listProjectAgents({ personalSpaceId: space, status: 'archived' }), [])
|
|
114
|
+
]);
|
|
115
|
+
const href = agent => `/agents/${encodeURIComponent(space)}/${encodeURIComponent(agent.agentId)}`;
|
|
116
|
+
// An FLA goes by its display name; its project is where it is assigned when the record names none itself.
|
|
117
|
+
const projectOf = agent => agent.personalProjectId ?? agent.assignments?.[0]?.personalProjectId;
|
|
118
|
+
const params = agent => ({ name: agent.profile?.displayName ?? agent.profile?.name ?? agent.agentId, project: projectName(projectOf(agent)) });
|
|
119
|
+
const refs = agent => ({ agentId: agent.agentId, projectId: projectOf(agent) });
|
|
120
|
+
return [
|
|
121
|
+
...active.filter(agent => agent.recruitedAt).map(agent => notice('fla_joined', agent.agentId, agent.recruitedAt, params(agent), href(agent), refs(agent))),
|
|
122
|
+
...archived.filter(agent => agent.archivedAt).map(agent => notice('fla_left', agent.agentId, agent.archivedAt, params(agent), href(agent), refs(agent)))
|
|
123
|
+
];
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// A console change an FLA made for the person; its undo is described in AI permissions.
|
|
127
|
+
function delegatedChanges({ delegation }) {
|
|
128
|
+
const operations = delegation?.read().operations ?? [];
|
|
129
|
+
return operations
|
|
130
|
+
.filter(operation => operation.status === 'applied')
|
|
131
|
+
.map(operation => notice('delegated_change', operation.id, operation.at, { reason: operation.reason ?? '' }, '/settings'));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// A connected model whose latest call failed.
|
|
135
|
+
function modelProblems({ app }) {
|
|
136
|
+
const backends = app.modelBackends;
|
|
137
|
+
if (!backends?.health) return [];
|
|
138
|
+
const settings = backends.roles();
|
|
139
|
+
return settings.roles
|
|
140
|
+
.filter(role => role.state === 'enabled')
|
|
141
|
+
.map(role => ({ role, health: backends.health(role.role, role.connection?.id ?? null,
|
|
142
|
+
role.connection ? settings.connections[role.connection.id] : null) }))
|
|
143
|
+
.filter(({ health }) => health?.status === 'failing' && health.at)
|
|
144
|
+
.map(({ role, health }) => notice('model_failing', role.role, health.at, { role: role.role }, '/models'));
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// A newer FULI is out.
|
|
148
|
+
function versionUpdate({ system }) {
|
|
149
|
+
const status = system?.cachedVersionStatus?.();
|
|
150
|
+
if (!status?.updateAvailable || !status.latestVersion || !status.checkedAt) return [];
|
|
151
|
+
return [notice('update_available', status.latestVersion, status.checkedAt, { version: status.latestVersion }, '/settings?tab=version')];
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
function notice(kind, key, at, params, href, { projectId, agentId } = {}) {
|
|
155
|
+
return { id: `${kind}:${key}`, kind, at, params, href,
|
|
156
|
+
...(projectId ? { projectId } : {}), ...(agentId ? { agentId } : {}) };
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
function nameLookup(projects) {
|
|
160
|
+
const names = new Map(projects.map(project => [project.project_id, project.profile?.name ?? project.project_id]));
|
|
161
|
+
return id => (id ? names.get(id) ?? id : '');
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
async function read(load, fallback) {
|
|
165
|
+
try {
|
|
166
|
+
return await load();
|
|
167
|
+
} catch {
|
|
168
|
+
return fallback;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function time(value) {
|
|
173
|
+
const parsed = Date.parse(value ?? '');
|
|
174
|
+
return Number.isNaN(parsed) ? 0 : parsed;
|
|
175
|
+
}
|
|
@@ -52,7 +52,7 @@ export function createNeedsPersonNotifier({ readUrl, consoleUrl = '', fetchImpl
|
|
|
52
52
|
if (record?.status !== 'open' || !record.requestId) return Promise.resolve('skipped');
|
|
53
53
|
let url;
|
|
54
54
|
try { url = normalizeNeedsPersonUrl(readUrl()); } catch { return Promise.resolve('invalid_url'); }
|
|
55
|
-
const event = needsPersonEvent(record, { consoleUrl });
|
|
55
|
+
const event = needsPersonEvent(record, { consoleUrl: typeof consoleUrl === 'function' ? consoleUrl() : consoleUrl });
|
|
56
56
|
if (!url || sent.has(event.id)) return Promise.resolve(url ? 'duplicate' : 'off');
|
|
57
57
|
sent.add(event.id);
|
|
58
58
|
if (sent.size > SENT_LIMIT) sent.delete(sent.values().next().value);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ApplicationError, InvalidInputError } from '../app/application-error.js';
|
|
2
|
+
import { projectExperiences } from '../graphiti/agent-growth.js';
|
|
3
|
+
import { requiredString } from '../validation/values.js';
|
|
4
|
+
import { projectAcceptanceChecks } from '../acceptance-checks/port.js';
|
|
5
|
+
|
|
6
|
+
// read_occupation_kit: an FLA reads its occupation's starter kit when it starts
|
|
7
|
+
// work of that kind, never on every turn (nothing of it is in the task entry).
|
|
8
|
+
// With a project it also gets what that project learned on top of the kit.
|
|
9
|
+
const ID_MAX_CHARS = 128;
|
|
10
|
+
// rec#78 rule 6: a few proven lessons on demand, not the whole history.
|
|
11
|
+
const MAX_LESSONS = 3;
|
|
12
|
+
const MAX_CHECKS = 10;
|
|
13
|
+
|
|
14
|
+
export const OCCUPATION_KIT_HANDLERS = Object.freeze({
|
|
15
|
+
read_occupation_kit: async (app, input) => {
|
|
16
|
+
const personalSpaceId = requiredString(input.personalSpaceId, 'personalSpaceId', ID_MAX_CHARS);
|
|
17
|
+
const agentId = input.agentId == null ? null : requiredString(input.agentId, 'agentId', ID_MAX_CHARS);
|
|
18
|
+
const personalProjectId = input.personalProjectId == null ? null
|
|
19
|
+
: requiredString(input.personalProjectId, 'personalProjectId', ID_MAX_CHARS);
|
|
20
|
+
const agents = agentId || personalProjectId ? await app.listProjectAgents({ personalSpaceId }) : [];
|
|
21
|
+
const occupation = input.occupation ?? occupationOf(agents, agentId);
|
|
22
|
+
const kit = plugins(app).kit({ personalSpaceId, agentId, occupation: requiredString(occupation, 'occupation', ID_MAX_CHARS) });
|
|
23
|
+
if (!personalProjectId || !kit.plugin) return kit;
|
|
24
|
+
return { ...kit, learned: await learnedOnTop(app, { personalSpaceId, personalProjectId, occupation, agents }) };
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
function occupationOf(agents, agentId) {
|
|
29
|
+
if (!agentId) throw new InvalidInputError('occupation is required when no agentId is given');
|
|
30
|
+
const agent = agents.find(candidate => candidate.agentId === agentId);
|
|
31
|
+
if (!agent) throw new InvalidInputError('agentId is not an Agent of this personal space');
|
|
32
|
+
if (!agent.occupation?.role) throw new InvalidInputError('agentId has no occupation yet; pass occupation');
|
|
33
|
+
return agent.occupation.role;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// The self-growth layer (rec#78): experiences the person kept in this project,
|
|
37
|
+
// reported by FLAs that hold this occupation. The upstream kit stays as it is;
|
|
38
|
+
// lessons and acceptance checks learned in use sit beside it.
|
|
39
|
+
async function learnedOnTop(app, { personalSpaceId, personalProjectId, occupation, agents }) {
|
|
40
|
+
const holders = new Set(agents.filter(agent => agent.occupation?.role === occupation).map(agent => agent.agentId));
|
|
41
|
+
const { items, partial } = await projectExperiences(app, personalSpaceId, personalProjectId,
|
|
42
|
+
node => node.confirmation_status === 'confirmed' && holders.has(node.confirmation_basis?.proposed_by?.label));
|
|
43
|
+
items.sort((a, b) => b.tasks - a.tasks || b.uses - a.uses);
|
|
44
|
+
return {
|
|
45
|
+
personalProjectId, partial, total: items.length,
|
|
46
|
+
lessons: items.slice(0, MAX_LESSONS).map(item => ({ itemId: item.itemId, title: item.title, solution: item.solution,
|
|
47
|
+
boundary: item.boundary, tasks: item.tasks })),
|
|
48
|
+
// One reader of learned checks: the project's acceptance list, filtered to this occupation.
|
|
49
|
+
checks: (await projectAcceptanceChecks(app, { personalSpaceId, personalProjectId, occupation, limit: MAX_CHECKS })).checks
|
|
50
|
+
.map(check => ({ itemId: check.checkId, check: { kind: check.kind, text: check.text } }))
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function plugins(app) {
|
|
55
|
+
if (!app.occupationPlugins) {
|
|
56
|
+
throw new ApplicationError('occupation_plugins_unavailable', 'Occupation kits need a local FULI installation', { status: 503 });
|
|
57
|
+
}
|
|
58
|
+
return app.occupationPlugins;
|
|
59
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { existsSync } from 'node:fs';
|
|
2
|
+
|
|
3
|
+
import { openFormattedDatabase, sqliteFormat } from '../../packages/roundtable/src/storage/database-format.js';
|
|
4
|
+
|
|
5
|
+
// Which recommended Skills and MCP servers of its occupation's kit an FLA uses,
|
|
6
|
+
// as the person answered when it was hired or later on its page. Every answer
|
|
7
|
+
// is one new row naming the plugin version and digest it was given for, and
|
|
8
|
+
// nothing is updated or deleted (triggers refuse it), so earlier answers read
|
|
9
|
+
// back as they were.
|
|
10
|
+
export const OCCUPATION_KIT_CHOICES_FORMAT = sqliteFormat({
|
|
11
|
+
store: 'occupation-kit-choices',
|
|
12
|
+
schema: `
|
|
13
|
+
CREATE TABLE IF NOT EXISTS occupation_kit_choices(
|
|
14
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT, personal_space_id TEXT NOT NULL, agent_id TEXT NOT NULL,
|
|
15
|
+
plugin_id TEXT NOT NULL, plugin_version TEXT NOT NULL, plugin_digest TEXT NOT NULL,
|
|
16
|
+
skills TEXT NOT NULL, mcp_servers TEXT NOT NULL,
|
|
17
|
+
answered_by TEXT NOT NULL CHECK(answered_by IN ('person', 'recruitment')), at TEXT NOT NULL);
|
|
18
|
+
CREATE INDEX IF NOT EXISTS occupation_kit_choices_agent ON occupation_kit_choices(personal_space_id, agent_id, id);
|
|
19
|
+
CREATE TRIGGER IF NOT EXISTS occupation_kit_choices_no_update BEFORE UPDATE ON occupation_kit_choices
|
|
20
|
+
BEGIN SELECT RAISE(ABORT, 'occupation kit choices are immutable'); END;
|
|
21
|
+
CREATE TRIGGER IF NOT EXISTS occupation_kit_choices_no_delete BEFORE DELETE ON occupation_kit_choices
|
|
22
|
+
BEGIN SELECT RAISE(ABORT, 'occupation kit choices are immutable'); END;`
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
const HISTORY_LIMIT = 20;
|
|
26
|
+
|
|
27
|
+
export class OccupationKitChoiceStore {
|
|
28
|
+
constructor(path = ':memory:') {
|
|
29
|
+
this.path = path;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Opened on the first answer; a missing file reads as no FLA asked yet.
|
|
33
|
+
get db() {
|
|
34
|
+
this.database ??= openFormattedDatabase(this.path, OCCUPATION_KIT_CHOICES_FORMAT);
|
|
35
|
+
return this.database;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
get readable() {
|
|
39
|
+
return Boolean(this.database) || this.path === ':memory:' || existsSync(this.path);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
add({ personalSpaceId, agentId, pluginId, pluginVersion, pluginDigest, skills, mcpServers, answeredBy, at }) {
|
|
43
|
+
this.db.prepare(`INSERT INTO occupation_kit_choices(personal_space_id, agent_id, plugin_id, plugin_version,
|
|
44
|
+
plugin_digest, skills, mcp_servers, answered_by, at) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)`)
|
|
45
|
+
.run(personalSpaceId, agentId, pluginId, pluginVersion, pluginDigest, JSON.stringify(skills),
|
|
46
|
+
JSON.stringify(mcpServers), answeredBy, at);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Newest first: the current answer, then the earlier ones.
|
|
50
|
+
history(personalSpaceId, agentId, limit = HISTORY_LIMIT) {
|
|
51
|
+
if (!this.readable) return [];
|
|
52
|
+
return this.db.prepare(`SELECT * FROM occupation_kit_choices WHERE personal_space_id = ? AND agent_id = ?
|
|
53
|
+
ORDER BY id DESC LIMIT ?`).all(personalSpaceId, agentId, limit).map(choiceView);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
close() {
|
|
57
|
+
this.database?.close();
|
|
58
|
+
this.database = null;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function choiceView(row) {
|
|
63
|
+
return { pluginId: row.plugin_id, pluginVersion: row.plugin_version, pluginDigest: row.plugin_digest,
|
|
64
|
+
skills: JSON.parse(row.skills), mcpServers: JSON.parse(row.mcp_servers), answeredBy: row.answered_by, at: row.at };
|
|
65
|
+
}
|