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
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// The four verification states (rec#78, 11-06 addition 1) a task outcome or a
|
|
2
|
+
// learned experience shows: 人确认, 自动验证通过 (tests/CI evidence a verifier
|
|
3
|
+
// recorded), AI 评估通过 (Tonborg's independent acceptance), 尚未验证. A state
|
|
4
|
+
// is shown only from recorded evidence, each entry naming the record it rests
|
|
5
|
+
// on; nothing a model or an FLA says about itself counts. With several, the
|
|
6
|
+
// strongest is the state and the rest stay in evidence.
|
|
7
|
+
export const VERIFICATION_STATES = Object.freeze(['person_confirmed', 'auto_verified', 'ai_assessed', 'unverified']);
|
|
8
|
+
|
|
9
|
+
export function verificationOf(evidence) {
|
|
10
|
+
const seen = new Set();
|
|
11
|
+
const kept = evidence.filter((entry) => {
|
|
12
|
+
if (!entry?.ref || !VERIFICATION_STATES.includes(entry.state) || entry.state === 'unverified') return false;
|
|
13
|
+
const key = `${entry.state}:${entry.ref}`;
|
|
14
|
+
if (seen.has(key)) return false;
|
|
15
|
+
seen.add(key);
|
|
16
|
+
return true;
|
|
17
|
+
});
|
|
18
|
+
return { state: VERIFICATION_STATES.find(state => kept.some(entry => entry.state === state)) ?? 'unverified', evidence: kept };
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// A judged Tonborg acceptance (src/judgment/review-verdicts.js): the passed
|
|
22
|
+
// attempt it judged is test evidence, its approval an independent assessment.
|
|
23
|
+
export function acceptanceEvidence(outcome) {
|
|
24
|
+
const attempt = outcome.verification;
|
|
25
|
+
return [
|
|
26
|
+
...(attempt?.outcome === 'pass' && attempt.evidence_refs?.length ? [{ state: 'auto_verified', source: 'verification',
|
|
27
|
+
ref: attempt.attempt_id, refs: attempt.evidence_refs, taskId: outcome.taskId, at: outcome.at }] : []),
|
|
28
|
+
...(outcome.result === 'passed' ? [{ state: 'ai_assessed', source: 'tonborg', ref: outcome.decisionId, taskId: outcome.taskId, at: outcome.at }] : [])
|
|
29
|
+
];
|
|
30
|
+
}
|
|
@@ -10,7 +10,7 @@ const DEFAULT_POLICY = Object.freeze({
|
|
|
10
10
|
updatedAt: null
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
class AgentAccessPolicyConfigurationError extends TypeError {}
|
|
14
14
|
|
|
15
15
|
export class AgentAccessPolicyStore {
|
|
16
16
|
constructor(path = null, { now = () => new Date().toISOString() } = {}) {
|
|
@@ -9,12 +9,12 @@ import { utf8Preview } from '../text/utf8-preview.js';
|
|
|
9
9
|
const POINTER_TITLE_BYTES = 96;
|
|
10
10
|
const POINTER_BYTES = 320;
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
function conversationScope(application, input) {
|
|
13
13
|
return { personal_space_id: application.config.personal.spaceId,
|
|
14
14
|
personal_project_id: input.personalProjectId ?? null, agent_id: input.agentId ?? input.projectAgentId,
|
|
15
15
|
source_application: input.ownerInspection ? null : input.sourceApplication ?? 'other' };
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
function conversationTask(application, task) {
|
|
18
18
|
return { ...conversationScope(application, task), session_id: task.sessionId, task_context_token: task.token };
|
|
19
19
|
}
|
|
20
20
|
export function safeConversationContent(value) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { getKnowledgeGraph } from './knowledge-graph-reads.js';
|
|
2
|
+
import { acceptanceEvidence, verificationOf } from '../fla-growth/verification.js';
|
|
2
3
|
|
|
3
4
|
// What an FLA learned by doing (rec#78, slice 1): the reusable experiences it
|
|
4
5
|
// reported at checkpoints, with how often later tasks applied them. The
|
|
@@ -30,28 +31,55 @@ export async function getAgentGrowth(application, { personalSpaceId, agentId, pe
|
|
|
30
31
|
let partial = false;
|
|
31
32
|
const items = [];
|
|
32
33
|
for (const projectId of projectIds) {
|
|
33
|
-
const read = await
|
|
34
|
+
const read = await projectExperiences(application, personalSpaceId, projectId,
|
|
35
|
+
node => node.confirmation_basis?.proposed_by?.label === agentId, ownerReads);
|
|
34
36
|
partial ||= read.partial;
|
|
35
37
|
items.push(...read.items);
|
|
36
38
|
}
|
|
37
39
|
items.sort((a, b) => rank(a) - rank(b) || b.tasks - a.tasks || b.uses - a.uses
|
|
38
40
|
|| String(b.lastUsedAt ?? '').localeCompare(String(a.lastUsedAt ?? '')));
|
|
41
|
+
const shown = items.slice(0, ITEM_LIMIT);
|
|
42
|
+
const verified = await verifications(application, personalSpaceId, shown);
|
|
39
43
|
return { agentId, personalProjectIds: projectIds, partial,
|
|
40
44
|
counts: { total: items.length, proven: items.filter(item => item.proven).length,
|
|
41
45
|
kept: items.filter(item => item.status === 'confirmed').length },
|
|
42
|
-
items:
|
|
46
|
+
items: shown.map(item => ({ ...item, verification: verified.get(item.itemId) })) };
|
|
43
47
|
}
|
|
44
48
|
|
|
45
|
-
|
|
49
|
+
// Each experience's verification state (src/fla-growth/verification.js): the
|
|
50
|
+
// person kept it, or a task that reported applying it passed a verifier's
|
|
51
|
+
// tests and Tonborg's acceptance. Only tasks whose recall showed it and whose
|
|
52
|
+
// acceptance recorded its task context join; the rest stay 尚未验证.
|
|
53
|
+
async function verifications(application, personalSpaceId, items) {
|
|
54
|
+
const applied = application.recallImpressions?.appliedTaskKeys({ personalSpaceId, itemIds: items.map(item => item.itemId) }) ?? new Map();
|
|
55
|
+
const taskKeys = [...new Set([...applied.values()].flat())];
|
|
56
|
+
const outcomes = taskKeys.length && application.judgment
|
|
57
|
+
? await application.judgment.acceptanceOutcomes({ personalSpaceId, taskKeys }) : [];
|
|
58
|
+
return new Map(items.map(item => {
|
|
59
|
+
const keys = new Set(applied.get(item.itemId) ?? []);
|
|
60
|
+
return [item.itemId, verificationOf([
|
|
61
|
+
...(item.status === 'confirmed' ? [{ state: 'person_confirmed', source: 'person', ref: item.itemId,
|
|
62
|
+
at: item.basis?.confirmed_at ?? null }] : []),
|
|
63
|
+
...outcomes.filter(outcome => keys.has(outcome.taskKey)).flatMap(acceptanceEvidence)])];
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// The current reusable experiences of one project that accept(node) keeps.
|
|
68
|
+
// Also the occupation kit's learned layer (occupation-plugins/agent-tools.js).
|
|
69
|
+
export async function projectExperiences(application, spaceId, personalProjectId, accept, ownerReads = null) {
|
|
46
70
|
const items = [];
|
|
47
71
|
let offset = null;
|
|
48
72
|
for (let page = 0; page < MAX_PAGES; page++) {
|
|
49
73
|
const graph = await getKnowledgeGraph(application, { spaceId, personalProjectId, limit: PAGE_LIMIT, offset }, ownerReads);
|
|
50
74
|
for (const node of graph.nodes) {
|
|
51
75
|
if (node.type !== EXPERIENCE_TYPE || node.invalid_at || (node.version_status ?? 'current') !== 'current'
|
|
52
|
-
|| node
|
|
76
|
+
|| !accept(node)) continue;
|
|
53
77
|
items.push({ itemId: node.id, personalProjectId, title: node.name,
|
|
54
78
|
solution: node.attributes?.solution ?? node.summary ?? '', boundary: node.attributes?.boundary ?? null,
|
|
79
|
+
// An acceptance check the experience is written as (rec#78 11-06 ②), when it has one.
|
|
80
|
+
check: node.attributes?.check ?? null, proposedBy: node.confirmation_basis?.proposed_by?.label ?? null,
|
|
81
|
+
// Its search terms: what a Skill draft's topic is (agent-workflows/agent-tools.js).
|
|
82
|
+
terms: node.attributes?.searchTerms ?? [],
|
|
55
83
|
status: node.confirmation_status ?? 'pending', uses: node.qualified_use_count ?? 0,
|
|
56
84
|
tasks: node.distinct_task_count ?? 0, proven: (node.distinct_task_count ?? 0) >= PROVEN_TASKS, lastUsedAt: node.last_used_at ?? null, createdAt: node.created_at ?? null,
|
|
57
85
|
// What a person's 保留 confirms on: the reasons the FLA recorded with it.
|
|
@@ -137,7 +137,7 @@ async function proposeCaptureChange({ store, previews, taskContext, consoleUrl,
|
|
|
137
137
|
sourceApplication: caller.sourceApplication, sessionId: await askingSession(taskContext, caller),
|
|
138
138
|
createdAt: new Date().toISOString() });
|
|
139
139
|
return { status: 'confirmation_required', preview, expiresAt,
|
|
140
|
-
...(consoleUrl ? { confirmUrl: `${consoleUrl}/capture-change/${id}`, guidance: CONSOLE_GUIDANCE }
|
|
140
|
+
...(consoleOrigin(consoleUrl) ? { confirmUrl: `${consoleOrigin(consoleUrl)}/capture-change/${id}`, guidance: CONSOLE_GUIDANCE }
|
|
141
141
|
: { guidance: NO_CONSOLE_GUIDANCE }) };
|
|
142
142
|
}
|
|
143
143
|
|
|
@@ -251,3 +251,6 @@ function projectChanges(current, next, name) {
|
|
|
251
251
|
started.length > 1 ? '这些' : '这个'}项目里的会话会被记录`] : [])
|
|
252
252
|
];
|
|
253
253
|
}
|
|
254
|
+
|
|
255
|
+
// The console origin, read now when it is given as a function.
|
|
256
|
+
const consoleOrigin = consoleUrl => (typeof consoleUrl === 'function' ? consoleUrl() : consoleUrl);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { localClockTime } from '../text/clock-time.js';
|
|
2
|
+
import { markdownLink } from '../text/markdown-link.js';
|
|
2
3
|
|
|
3
4
|
// What a person is told when automatic recording did not run (rec#11 D-01,
|
|
4
5
|
// rec#5 C5). Edits the person submits explicitly are not automatic recording
|
|
@@ -80,6 +81,6 @@ const SWITCHED_OFF = new Set(['global_off', 'client_off']);
|
|
|
80
81
|
export function receiptNotices(decision, explicitOperations = [], { settingsUrl = null } = {}) {
|
|
81
82
|
const notice = captureNotice(decision.reason, decision.since);
|
|
82
83
|
if (!notice) return [];
|
|
83
|
-
const entry = settingsUrl && SWITCHED_OFF.has(decision.reason) ? [
|
|
84
|
+
const entry = settingsUrl && SWITCHED_OFF.has(decision.reason) ? [markdownLink('在 FULI 设置里打开', settingsUrl)] : [];
|
|
84
85
|
return [notice, ...entry, ...explicitOperations.map(operation => EXPLICIT_OPERATION_RESULTS[operation])];
|
|
85
86
|
}
|
|
@@ -33,7 +33,7 @@ import { jsonFormat, readJsonRecord, writeVersionedJsonFileAtomic } from '../sto
|
|
|
33
33
|
// change since, by the person or anything else, closes it, and the answer is
|
|
34
34
|
// saved by compare-and-set against that same version, once.
|
|
35
35
|
export const CAPTURE_ONBOARDING_FORMAT = jsonFormat({ store: 'capture-onboarding', versions: [1] });
|
|
36
|
-
|
|
36
|
+
const CAPTURE_SCOPE_CHOICES = Object.freeze(['all', 'selected', 'off']);
|
|
37
37
|
const SURFACES = Object.freeze(['console', 'terminal']);
|
|
38
38
|
const LOCK_FILE = 'capture-onboarding.lock';
|
|
39
39
|
const LOCK_WAIT_MS = 5000;
|
|
@@ -9,7 +9,7 @@ const PROJECT_CANDIDATES = 12;
|
|
|
9
9
|
const TOPIC_CANDIDATES = 8;
|
|
10
10
|
const KINDS = new Set(['project', 'topic', 'one_off']);
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
function isUnclaimedTask(task) {
|
|
13
13
|
return task?.projectAgentId === ASSISTANT_AGENT_ID && !task.personalProjectId;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -7,6 +7,14 @@ import {
|
|
|
7
7
|
|
|
8
8
|
// search_current_project_knowledge: the resolved project's own knowledge first,
|
|
9
9
|
// with related projects only suggested, never searched without confirmation.
|
|
10
|
+
// Search matches words; the Agent asking understands meaning. When no query
|
|
11
|
+
// matched, it gets the project's titles to judge for itself: FULI needs no model
|
|
12
|
+
// of its own for that, and the titles cost tokens only on a miss.
|
|
13
|
+
const INDEX_TITLES = 40;
|
|
14
|
+
const INDEX_TITLE_CHARS = 120;
|
|
15
|
+
// What the entry already delivers, or what is no knowledge to read.
|
|
16
|
+
const NOT_INDEXED = new Set(['PersonalProject', 'ProjectSource', 'PersonalPreference']);
|
|
17
|
+
const INDEX_READ = 'Nothing matched these words. If a title here means what you need, search for its exact words before relying on it; pending items are not confirmed.';
|
|
10
18
|
export async function searchCurrentProjectKnowledge(
|
|
11
19
|
application,
|
|
12
20
|
resolution,
|
|
@@ -48,6 +56,7 @@ export async function searchCurrentProjectKnowledge(
|
|
|
48
56
|
)),
|
|
49
57
|
loadRelatedProjectSuggestions(application, resolution.personalProjectId)
|
|
50
58
|
]);
|
|
59
|
+
const index = !cursor && results.every(noMatch) ? projectTitleIndex(relatedProjects.graph) : null;
|
|
51
60
|
return budgetKnowledgeSearch({
|
|
52
61
|
status: 'searched',
|
|
53
62
|
personal_space_id: application.config.personal.spaceId,
|
|
@@ -62,6 +71,7 @@ export async function searchCurrentProjectKnowledge(
|
|
|
62
71
|
related_project_expansion_requires_confirmation: true
|
|
63
72
|
},
|
|
64
73
|
results,
|
|
74
|
+
...(index ? { knowledge_index: index } : {}),
|
|
65
75
|
related_project_suggestions: relatedProjects.suggestions,
|
|
66
76
|
related_project_suggestions_status: relatedProjects.status,
|
|
67
77
|
related_project_guidance: relatedProjectGuidance(relatedProjects.suggestions)
|
|
@@ -70,6 +80,18 @@ export async function searchCurrentProjectKnowledge(
|
|
|
70
80
|
personalProjectId: resolution.personalProjectId, queries, limitPerQuery, includeHistorical, includePending } });
|
|
71
81
|
}
|
|
72
82
|
|
|
83
|
+
const noMatch = result => !result?.facts?.length && !result?.entities?.length;
|
|
84
|
+
|
|
85
|
+
// Confirmed first, newest within each; a bounded list, with how many there are.
|
|
86
|
+
function projectTitleIndex(graph) {
|
|
87
|
+
const items = (graph?.nodes ?? []).filter(node => !NOT_INDEXED.has(node.type) && !node.invalid_at && node.name);
|
|
88
|
+
if (!items.length) return null;
|
|
89
|
+
const confirmed = node => (node.confirmation_status === 'confirmed' ? 0 : 1);
|
|
90
|
+
const ordered = items.sort((left, right) => confirmed(left) - confirmed(right) || String(right.created_at).localeCompare(String(left.created_at)));
|
|
91
|
+
return { total: items.length, read: INDEX_READ, titles: ordered.slice(0, INDEX_TITLES)
|
|
92
|
+
.map(node => [String(node.name).slice(0, INDEX_TITLE_CHARS), node.confirmation_status === 'confirmed' ? 'confirmed' : 'pending']) };
|
|
93
|
+
}
|
|
94
|
+
|
|
73
95
|
async function loadRelatedProjectSuggestions(application, personalProjectId) {
|
|
74
96
|
try {
|
|
75
97
|
const graph = await application.personal.graph(
|
|
@@ -79,7 +101,8 @@ async function loadRelatedProjectSuggestions(application, personalProjectId) {
|
|
|
79
101
|
);
|
|
80
102
|
return {
|
|
81
103
|
status: graph?.truncated ? 'partial' : 'available',
|
|
82
|
-
suggestions: relatedProjectSuggestions(graph, personalProjectId)
|
|
104
|
+
suggestions: relatedProjectSuggestions(graph, personalProjectId),
|
|
105
|
+
graph
|
|
83
106
|
};
|
|
84
107
|
} catch {
|
|
85
108
|
return { status: 'unavailable', suggestions: [] };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// How the lead runs delegated workstreams. Separate sessions isolate context
|
|
2
2
|
// best, subagents next; phases in one session only separate memory, so they
|
|
3
3
|
// come last. The host says what it can run; nothing here starts a worker.
|
|
4
|
-
|
|
4
|
+
const EXECUTION_MODE_ORDER = ['new_session', 'sub_agent', 'phased'];
|
|
5
5
|
|
|
6
6
|
const DELEGATED = new Set(['delegate', 'request_loan', 'recruit']);
|
|
7
7
|
|
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
import { RecallPolicyStore, recallPolicyPathForRuntime } from './recall-policy.js';
|
|
29
29
|
import { sessionMigrationNoticesForRuntime } from './session-migration-notices.js';
|
|
30
30
|
import {
|
|
31
|
+
liveSourceConsoleUrl,
|
|
31
32
|
sourceConsoleUrl
|
|
32
33
|
} from './source-marker.js';
|
|
33
34
|
import { resolvePersonalProjectPath } from './project-path-context.js';
|
|
@@ -36,7 +37,6 @@ import { readTaskPreferences } from './task-preference-reader.js';
|
|
|
36
37
|
import { resolveSetupPaths } from '../setup/paths.js';
|
|
37
38
|
import { createNeedsPersonNotifier } from '../notifications/needs-person.js';
|
|
38
39
|
import { createDelegatedConsoleClient } from '../agent-delegation/console-client.js';
|
|
39
|
-
import { fuliLinkOrigin } from '../desktop/fuli-links.js';
|
|
40
40
|
import { readRuntimeSettings } from '../system/runtime-settings.js';
|
|
41
41
|
import { describeSettings } from '../system/settings-guide.js';
|
|
42
42
|
import {
|
|
@@ -155,8 +155,9 @@ export function openFederatedGraphApplication({
|
|
|
155
155
|
recallPolicyStore: recallPolicyStore ?? new RecallPolicyStore(recallPolicyPathForRuntime(runtimeConfigPath)),
|
|
156
156
|
firstRunGuide: createFirstRunGuide(firstRunGuidePathForRuntime(runtimeConfigPath)),
|
|
157
157
|
tokenUsageResolver,
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
// Read per use (briefly cached): an MCP process that starts while the console is restarting
|
|
159
|
+
// (an update reconnects every client) must not keep the default port for its whole life.
|
|
160
|
+
consoleUrl: liveSourceConsoleUrl(runtimeConfigPath),
|
|
160
161
|
runtimeConfigPath,
|
|
161
162
|
providerRequestTimeoutMs: providerRequestTimeoutFromEnv(env),
|
|
162
163
|
refreshPersonalToken: personalTokenRefresher(runtimeConfigPath, resolved.personal)
|
|
@@ -165,7 +166,7 @@ export function openFederatedGraphApplication({
|
|
|
165
166
|
const paths = resolveSetupPaths({ dataDir: dirname(runtimeConfigPath) });
|
|
166
167
|
openLocalRuntimes(app, { runtimeConfigPath, paths, env, fetchImpl });
|
|
167
168
|
// Read per call so a saved settings change applies without a restart.
|
|
168
|
-
app.needsPerson = createNeedsPersonNotifier({ fetchImpl, consoleUrl: app.consoleUrl,
|
|
169
|
+
app.needsPerson = createNeedsPersonNotifier({ fetchImpl, consoleUrl: () => app.consoleUrl,
|
|
169
170
|
readUrl: () => readRuntimeSettings(paths.runtimeSettingsPath).notifications.needsPersonUrl });
|
|
170
171
|
app.explainSettings = () => describeSettings({ settings: readRuntimeSettings(paths.runtimeSettingsPath),
|
|
171
172
|
capturePolicy: app.getCapturePolicy(), consoleUrl: app.consoleUrl });
|
|
@@ -173,6 +174,11 @@ export function openFederatedGraphApplication({
|
|
|
173
174
|
app.delegatedConsole = createDelegatedConsoleClient({ consoleUrl: () => sourceConsoleUrl(runtimeConfigPath), fetchImpl });
|
|
174
175
|
app.agentNamingStyle = () => readRuntimeSettings(paths.runtimeSettingsPath).agentNamingStyle;
|
|
175
176
|
app.topicPromotion = () => readRuntimeSettings(paths.runtimeSettingsPath).topicPromotion;
|
|
177
|
+
// Whether clients list the FLAs in their / menu, and in which language (fla-menu.js).
|
|
178
|
+
app.flaMenuSettings = () => {
|
|
179
|
+
const settings = readRuntimeSettings(paths.runtimeSettingsPath);
|
|
180
|
+
return { enabled: settings.flaSlashMenu, language: settings.consoleLanguage };
|
|
181
|
+
};
|
|
176
182
|
}
|
|
177
183
|
return app;
|
|
178
184
|
}
|
|
@@ -192,6 +198,10 @@ function providerRequestTimeoutFromEnv(env) {
|
|
|
192
198
|
// The application's public methods. Each capability lives in its own module;
|
|
193
199
|
// a method here only wires the request to that module or to a workflow.
|
|
194
200
|
export class FederatedGraphApplication extends ProjectAgentControlPlaneApplication {
|
|
201
|
+
// The console origin links open; a function is read at each use.
|
|
202
|
+
get consoleUrl() { return this.readConsoleUrl(); }
|
|
203
|
+
set consoleUrl(value) { this.readConsoleUrl = typeof value === 'function' ? value : () => value; }
|
|
204
|
+
|
|
195
205
|
constructor(config, {
|
|
196
206
|
fetchImpl = globalThis.fetch,
|
|
197
207
|
capturePolicyStore = new CapturePolicyStore(),
|
|
@@ -201,8 +211,6 @@ export class FederatedGraphApplication extends ProjectAgentControlPlaneApplicati
|
|
|
201
211
|
// The console's first-run guide (first-run-guide.js); in memory unless opened on a data directory.
|
|
202
212
|
firstRunGuide = createFirstRunGuide(null),
|
|
203
213
|
consoleUrl = sourceConsoleUrl(null),
|
|
204
|
-
// `fuli:/` when receipt links can be fuli:// links (src/desktop/fuli-links.js), else null.
|
|
205
|
-
fuliLinkOrigin = () => null,
|
|
206
214
|
projectPathResolver = resolvePersonalProjectPath,
|
|
207
215
|
taskContextRegistry = null,
|
|
208
216
|
providerRequestTimeoutMs = undefined,
|
|
@@ -217,7 +225,7 @@ export class FederatedGraphApplication extends ProjectAgentControlPlaneApplicati
|
|
|
217
225
|
this.config = config;
|
|
218
226
|
this.capturePolicyStore = capturePolicyStore;
|
|
219
227
|
// An Agent's long-term capture change waits for the person's confirmed preview (rec#5 C4-2).
|
|
220
|
-
const captureChangeReads = { listProjects: () => this.listPersonalProjects(), consoleUrl,
|
|
228
|
+
const captureChangeReads = { listProjects: () => this.listPersonalProjects(), consoleUrl: () => this.consoleUrl,
|
|
221
229
|
taskContext: (token, client) => this.taskContextRegistry.context(token, client) };
|
|
222
230
|
this.captureChanges = createCaptureChanges(capturePolicyStore, captureChangeReads);
|
|
223
231
|
this.captureOnboarding = createCaptureOnboarding(capturePolicyStore);
|
|
@@ -229,7 +237,6 @@ export class FederatedGraphApplication extends ProjectAgentControlPlaneApplicati
|
|
|
229
237
|
this.agentAccessPolicyStore = agentAccessPolicyStore;
|
|
230
238
|
this.recallPolicyStore = recallPolicyStore;
|
|
231
239
|
this.consoleUrl = consoleUrl;
|
|
232
|
-
this.fuliLinkOrigin = fuliLinkOrigin;
|
|
233
240
|
this.projectPathResolver = projectPathResolver;
|
|
234
241
|
this.tokenUsageResolver = tokenUsageResolver;
|
|
235
242
|
this.personal = new GraphitiProviderClient({
|
|
@@ -681,3 +688,4 @@ export class FederatedGraphApplication extends ProjectAgentControlPlaneApplicati
|
|
|
681
688
|
}
|
|
682
689
|
|
|
683
690
|
}
|
|
691
|
+
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { personalContextProjectIds, personalProjectSearchBatches, scopedSearchItems } from './personal-context.js';
|
|
2
|
+
import { queryVector } from '../semantic/semantic-index.js';
|
|
2
3
|
import { createFuliSourceMarker } from './source-marker.js';
|
|
3
4
|
import { relatedProjectGuidance } from './related-project-suggestions.js';
|
|
4
5
|
import { groupSubscriptions, loadSearchRelatedProjectSuggestions, rankedSearchItems,
|
|
@@ -6,6 +7,9 @@ import { groupSubscriptions, loadSearchRelatedProjectSuggestions, rankedSearchIt
|
|
|
6
7
|
import { recordReadExtensionUsage } from './project-memory-usage.js';
|
|
7
8
|
import { budgetKnowledgeSearch } from './knowledge-result-budget.js';
|
|
8
9
|
|
|
10
|
+
// A search waits this long for its query's vector, then goes on by words.
|
|
11
|
+
const QUERY_VECTOR_TIMEOUT_MS = 1500;
|
|
12
|
+
|
|
9
13
|
export async function searchFederatedKnowledge(application, {
|
|
10
14
|
personalSpaceId,
|
|
11
15
|
query,
|
|
@@ -53,6 +57,8 @@ export async function searchFederatedKnowledge(application, {
|
|
|
53
57
|
.map(({ project_id: projectId }) => projectId)
|
|
54
58
|
)
|
|
55
59
|
: personalContextProjectIds(personalProjectId, contextPersonalProjectIds);
|
|
60
|
+
// rec#88: the query's vector when a person connected a model for it; words alone otherwise.
|
|
61
|
+
const semantic = await queryVector(application, { personalProjectId, query, timeoutMs: QUERY_VECTOR_TIMEOUT_MS });
|
|
56
62
|
const personalSearches = personalProjectSearchBatches(selectedPersonalProjectIds)
|
|
57
63
|
.map((personalProjectIds, index) => {
|
|
58
64
|
const activePersonalProjectId = (
|
|
@@ -70,7 +76,8 @@ export async function searchFederatedKnowledge(application, {
|
|
|
70
76
|
active_personal_project_id: activePersonalProjectId,
|
|
71
77
|
project_agent_id: activePersonalProjectId ? projectAgentId : null,
|
|
72
78
|
inherit_project_knowledge: personalProjectScope === 'bounded',
|
|
73
|
-
include_personal_global: index === 0
|
|
79
|
+
include_personal_global: index === 0,
|
|
80
|
+
...(semantic ? { semantic } : {})
|
|
74
81
|
});
|
|
75
82
|
});
|
|
76
83
|
const grouped = groupSubscriptions(selectedSubscriptions);
|
|
@@ -2,36 +2,40 @@
|
|
|
2
2
|
// (rec#55). Parsing only: which FLA a name means is decided against the
|
|
3
3
|
// person's roster (fla-picker.js), and whether it may work by the Provider.
|
|
4
4
|
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
// right after a request word (`请让 #FLA Jamie Ash 看一下`, `帮我 #FLA 小林 …`,
|
|
9
|
-
// `please #FLA …`), where it takes only an exact name (`inline`) and never
|
|
10
|
-
// opens the picker. Anywhere else, in quotes or in code it is text, such as
|
|
11
|
-
// a question about the syntax.
|
|
12
|
-
// - `@<name>` at the very start of the prompt. An `@` later in the prompt,
|
|
13
|
-
// inside quotes or code, never addresses an FLA.
|
|
14
|
-
// - A bare `#FLA` / `@FLA` asks for the picker; `#FLA 2` answers it;
|
|
15
|
-
// `@FLA 结束` (end, release) ends this session's binding.
|
|
16
|
-
// - `@FLG …` or `#FLG …` (Fuli Agents Group) only at the very start: a
|
|
17
|
-
// discussion among several FLAs. Its text may name members and ask for
|
|
18
|
-
// more to be recommended (task-entry-group-discussion.js); `@FLG 1 3` or
|
|
19
|
-
// `@FLG 开始` answers its member choice, optionally with how the group
|
|
20
|
-
// works (`一起看` in this session, `圆桌` in the roundtable), and `@FLG 结束`
|
|
21
|
-
// stops it. A bare reply of numbers answers the choice too; a bare "好",
|
|
22
|
-
// "开始" or "一起看" does not.
|
|
5
|
+
// Every FULI address starts with `#`. `@` belongs to the clients (Claude Code
|
|
6
|
+
// attaches files with `@"C:\…\clip.mp4"`, Cursor and Codex reference with it),
|
|
7
|
+
// so `@` never addresses an FLA: `@Name`, `@FLA` and `@FLG` are plain text.
|
|
23
8
|
//
|
|
24
|
-
//
|
|
25
|
-
//
|
|
26
|
-
//
|
|
27
|
-
//
|
|
9
|
+
// - `#FLA <name>` names one of the person's FLAs or one of FULI's own roles
|
|
10
|
+
// (Bole, Jefa, Tonborg, Astro; rec#58), only at the very start of the
|
|
11
|
+
// message, after any whitespace and any files the client attached first.
|
|
12
|
+
// Case does not matter (`#fla`, `#Fla`). Anywhere else (mid-sentence, a
|
|
13
|
+
// later line, quotes, code) `#FLA` is text, such as a remark about the syntax.
|
|
14
|
+
// - `#FLA {agentId}` (percent-encoded) is the stable form FULI writes into
|
|
15
|
+
// continuation prompts and roundtable wakes (flaAddress).
|
|
16
|
+
// - A bare `#FLA` asks for the picker; `#FLA 2` answers it;
|
|
17
|
+
// `#FLA 结束` (end, release) ends this session's binding.
|
|
18
|
+
// - `#FLG …` (Fuli Agents Group) only at the very start: a discussion among
|
|
19
|
+
// several FLAs. Its text may name members and ask for more to be
|
|
20
|
+
// recommended (task-entry-group-discussion.js); `#FLG 1 3` or `#FLG 开始`
|
|
21
|
+
// answers its member choice, optionally with how the group works (`一起看`
|
|
22
|
+
// in this session, `圆桌` in the roundtable), and `#FLG 结束` stops it. A
|
|
23
|
+
// bare reply of numbers answers the choice too; a bare "好", "开始" or
|
|
24
|
+
// "一起看" does not.
|
|
28
25
|
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const
|
|
26
|
+
// The keywords, half- or full-width `#`, any case.
|
|
27
|
+
const KEYWORD = /^[##]FLA(?=$|\s)/iu;
|
|
28
|
+
const GROUP = /^[##]FLG(?=$|[\s::,,])/iu;
|
|
29
|
+
// Everything below reads at most this much of a prompt, and every pattern
|
|
30
|
+
// matches in linear time: a pasted prompt never stalls the entry.
|
|
31
|
+
const ADDRESS_LIMIT = 2048;
|
|
32
|
+
// Short replies (a number, a release, a confirmation) are first reduced to
|
|
33
|
+
// words with single spaces (reply), so their patterns hold no adjacent
|
|
34
|
+
// optional runs to backtrack over. Longer text is never such a reply.
|
|
35
|
+
const REPLY_LIMIT = 128;
|
|
36
|
+
const SEPARATORS = /[\s,,、。!!]+/gu;
|
|
37
|
+
const RELEASE = /^(?:结束|释放|解除|退出|停止|end|release|stop)\.?$/iu;
|
|
38
|
+
const CHOICE = /^(\d{1,2})[.))]?$/u;
|
|
35
39
|
// How a confirmed group works (rec#55): in this session, which reads every
|
|
36
40
|
// member's context (mode 1), or in the roundtable, where each member is woken
|
|
37
41
|
// and answers for itself (mode 2). The choice offers both labels.
|
|
@@ -40,79 +44,91 @@ const ROUNDTABLE_MODE = String.raw`在?圆桌里?分头回复|圆桌|分头回
|
|
|
40
44
|
const MODE = String.raw`(?:(${SESSION_MODE})|(${ROUNDTABLE_MODE}))`;
|
|
41
45
|
// Several numbers answer a multi-select (`1 3`, `1,3`, `1、3`), optionally
|
|
42
46
|
// followed by a confirmation word and a mode. A confirmation word or a mode
|
|
43
|
-
// alone takes the preselection only after
|
|
44
|
-
const CHOICES = new RegExp(String.raw`^(\d{1,2}(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
//
|
|
48
|
-
|
|
49
|
-
//
|
|
50
|
-
//
|
|
51
|
-
const
|
|
52
|
-
const DOTTED = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)+$/u;
|
|
53
|
-
// Annotations and decorators people paste most often, written exactly so.
|
|
54
|
-
const DECORATORS = new Set(['Override', 'Deprecated', 'SuppressWarnings', 'FunctionalInterface', 'SafeVarargs',
|
|
55
|
-
'Test', 'BeforeEach', 'AfterEach', 'BeforeAll', 'AfterAll', 'Autowired', 'Component', 'Service', 'Repository',
|
|
56
|
-
'Controller', 'RestController', 'Bean', 'Configuration', 'Entity', 'Injectable', 'Input', 'Output', 'NgModule',
|
|
57
|
-
'Nullable', 'NonNull', 'Transactional', 'dataclass', 'property', 'staticmethod', 'classmethod',
|
|
58
|
-
'abstractmethod', 'override', 'cached_property']);
|
|
59
|
-
const ADDRESS_LIMIT = 2048;
|
|
47
|
+
// alone takes the preselection only after `#FLG` (`#FLG 开始`, `#FLG 一起看`).
|
|
48
|
+
const CHOICES = new RegExp(String.raw`^(\d{1,2}(?: \d{1,2})*)(?: ?(?:开始|确认|go|start|ok))?(?: ?${MODE})?\.?$`, 'iu');
|
|
49
|
+
const CONFIRM = new RegExp(String.raw`^(开始吧|开始|确认|go|start)?(?: ?${MODE})?\.?$`, 'iu');
|
|
50
|
+
// What a client puts ahead of the person's words is skipped before deciding
|
|
51
|
+
// what the message starts with: a quoted file (Claude Code writes
|
|
52
|
+
// `@"C:\…\clip.mp4"`, possibly with `#FLA` right after it) or any other `@`
|
|
53
|
+
// token without spaces (`@Makefile`, `@src/a.ts`, Cursor's `@Codebase`). A
|
|
54
|
+
// leading `@{…}` is not skipped: it is a legacy address.
|
|
55
|
+
const ATTACHMENT = /^@(?:"[^"\n]*"\s*|'[^'\n]*'\s*|(?!\{)\S+(?:\s+|$))/u;
|
|
60
56
|
const STABLE = /^\{([^{}\s]+)\}(?=$|[\s,,::])/u;
|
|
57
|
+
// Compatibility with prompts FULI 0.23 and earlier wrote (continuation
|
|
58
|
+
// prompts, roundtable wakes): `@{agentId}` at the start, for any Agent ID
|
|
59
|
+
// (`@{employee.jefa}`, `@{<uuid>}`). Nothing writes it any more; drop it once
|
|
60
|
+
// 0.23 prompts are out of use.
|
|
61
|
+
const LEGACY_STABLE = /^@(?=\{)/u;
|
|
61
62
|
|
|
62
|
-
// null, { release: true }, { choice: n }, { handoff: agentId } for the
|
|
63
|
-
//
|
|
64
|
-
//
|
|
65
|
-
//
|
|
66
|
-
// { group } for `@FLG …` (groupMention).
|
|
63
|
+
// null, { release: true }, { choice: n }, { handoff: agentId } for the stable
|
|
64
|
+
// `#FLA {agentId}` form, { explicit: true, query }: the text after `#FLA`,
|
|
65
|
+
// which may name an FLA and continue with the task, or { group } for `#FLG …`
|
|
66
|
+
// (groupMention).
|
|
67
67
|
export function parseFlaMention(prompt) {
|
|
68
|
-
const text =
|
|
68
|
+
const text = afterAttachments(prompt);
|
|
69
69
|
const group = GROUP.exec(text);
|
|
70
70
|
if (group) return { group: groupMention(text.slice(group[0].length)) };
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
if (keyword.inline) return { explicit: true, query: rest, inline: true };
|
|
75
|
-
if (RELEASE.test(rest)) return { release: true };
|
|
76
|
-
const choice = CHOICE.exec(rest);
|
|
77
|
-
if (choice) return { choice: Number(choice[1]) };
|
|
78
|
-
return { explicit: true, query: rest };
|
|
71
|
+
if (LEGACY_STABLE.test(text)) {
|
|
72
|
+
const legacy = stableAddress(text.slice(1));
|
|
73
|
+
return legacy?.agentId ? { handoff: legacy.agentId } : null;
|
|
79
74
|
}
|
|
80
|
-
const
|
|
81
|
-
if (
|
|
82
|
-
|
|
83
|
-
const stable = stableAddress(
|
|
75
|
+
const keyword = KEYWORD.exec(text);
|
|
76
|
+
if (!keyword) return null;
|
|
77
|
+
const rest = text.slice(keyword[0].length).trim();
|
|
78
|
+
const stable = stableAddress(rest);
|
|
84
79
|
if (stable) return stable.agentId ? { handoff: stable.agentId } : null;
|
|
85
|
-
|
|
80
|
+
const words = reply(rest);
|
|
81
|
+
if (words !== null && RELEASE.test(words)) return { release: true };
|
|
82
|
+
const choice = words === null ? null : CHOICE.exec(words);
|
|
83
|
+
if (choice) return { choice: Number(choice[1]) };
|
|
84
|
+
return { explicit: true, query: rest };
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// The Agent a prompt addresses by its stable ID (`#FLA {agentId}`, or a
|
|
88
|
+
// legacy `@{agentId}`), or null.
|
|
89
|
+
export function addressedAgentId(prompt) {
|
|
90
|
+
return parseFlaMention(prompt)?.handoff ?? null;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// The prompt's first ADDRESS_LIMIT characters, without leading whitespace and
|
|
94
|
+
// without what the client put ahead of the person's words. A cut prompt ends
|
|
95
|
+
// in `…`, so what is left can never read as a short reply.
|
|
96
|
+
function afterAttachments(prompt) {
|
|
97
|
+
const text = typeof prompt === 'string' ? prompt : '';
|
|
98
|
+
let rest = (text.length > ADDRESS_LIMIT ? `${text.slice(0, ADDRESS_LIMIT)}…` : text).trimStart();
|
|
99
|
+
for (let file = ATTACHMENT.exec(rest); file; file = ATTACHMENT.exec(rest)) rest = rest.slice(file[0].length);
|
|
100
|
+
return rest;
|
|
86
101
|
}
|
|
87
102
|
|
|
88
|
-
//
|
|
89
|
-
//
|
|
90
|
-
function
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
const request = REQUEST_KEYWORD.exec(plain);
|
|
94
|
-
if (line && (!request || line.index < request.index)) return line;
|
|
95
|
-
return request ? Object.assign(request, { inline: true }) : null;
|
|
103
|
+
// A short reply as words separated by single spaces, or null when the text is
|
|
104
|
+
// too long to be one.
|
|
105
|
+
function reply(text) {
|
|
106
|
+
const trimmed = text.trim();
|
|
107
|
+
return trimmed.length > REPLY_LIMIT ? null : trimmed.replace(SEPARATORS, ' ').trim();
|
|
96
108
|
}
|
|
97
109
|
|
|
98
|
-
// What follows
|
|
110
|
+
// What follows `#FLG`: { release } (stop the discussion), the answer to its
|
|
99
111
|
// member choice (numbers, or { confirm } for the preselection, each with the
|
|
100
112
|
// mode when it names one), or { query }: the question, which may name
|
|
101
113
|
// members and ask for recommendations.
|
|
102
114
|
function groupMention(rest) {
|
|
103
|
-
const text = rest.replace(/^[\s::,,]+/u, '').trim()
|
|
104
|
-
|
|
105
|
-
|
|
115
|
+
const text = rest.replace(/^[\s::,,]+/u, '').trim();
|
|
116
|
+
const words = reply(text);
|
|
117
|
+
if (words !== null && RELEASE.test(words)) return { release: true };
|
|
118
|
+
const confirm = words === null ? null : CONFIRM.exec(words);
|
|
106
119
|
if (confirm?.slice(1).some(Boolean)) return { confirm: true, ...namedMode(confirm) };
|
|
107
|
-
return
|
|
120
|
+
return choicesIn(words) ?? { query: text };
|
|
108
121
|
}
|
|
109
122
|
|
|
110
|
-
// A reply of numbers to a member choice
|
|
111
|
-
// typed) and the mode it names, or null
|
|
123
|
+
// A reply of numbers to a member choice, after anything the client attached:
|
|
124
|
+
// { choices: [n…] } (distinct, as typed) and the mode it names, or null.
|
|
112
125
|
export function groupChoiceReply(prompt) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
126
|
+
return choicesIn(reply(afterAttachments(prompt)));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function choicesIn(words) {
|
|
130
|
+
const numbers = words === null ? null : CHOICES.exec(words);
|
|
131
|
+
return numbers ? { choices: [...new Set(numbers[1].split(' ').map(Number))], ...namedMode(numbers) } : null;
|
|
116
132
|
}
|
|
117
133
|
|
|
118
134
|
// The mode a question asks for, 'session' or 'roundtable', or null.
|
|
@@ -127,25 +143,18 @@ function namedMode(match) {
|
|
|
127
143
|
return session ? { mode: 'session' } : roundtable ? { mode: 'roundtable' } : {};
|
|
128
144
|
}
|
|
129
145
|
|
|
130
|
-
// The
|
|
131
|
-
//
|
|
132
|
-
|
|
146
|
+
// The `{agentId}` form (percent-encoded) an address opens with: null when it
|
|
147
|
+
// does not, { agentId: null } when it is malformed.
|
|
148
|
+
function stableAddress(address) {
|
|
133
149
|
const stable = STABLE.exec(address);
|
|
134
150
|
if (!stable) return null;
|
|
135
151
|
try { return { agentId: decodeURIComponent(stable[1]) }; } catch { return { agentId: null }; }
|
|
136
152
|
}
|
|
137
153
|
|
|
138
|
-
// A reply that is only a number, which answers a picker the session showed
|
|
154
|
+
// A reply that is only a number, which answers a picker the session showed;
|
|
155
|
+
// files the client attached ahead of it do not count.
|
|
139
156
|
export function choiceNumber(prompt) {
|
|
140
|
-
const
|
|
157
|
+
const words = reply(afterAttachments(prompt));
|
|
158
|
+
const choice = words === null ? null : CHOICE.exec(words);
|
|
141
159
|
return choice ? Number(choice[1]) : null;
|
|
142
160
|
}
|
|
143
|
-
|
|
144
|
-
// The text after a leading `@` that may address an Agent, or null.
|
|
145
|
-
export function leadingAgentAddress(prompt) {
|
|
146
|
-
const text = typeof prompt === 'string' ? prompt.trimStart() : '';
|
|
147
|
-
if (!text.startsWith('@') || KEYWORD.test(text) || GROUP.test(text)) return null;
|
|
148
|
-
const token = /^@(\S*)/u.exec(text)[1];
|
|
149
|
-
if (!token || /[@/]/u.test(token) || CALLED.test(token) || DOTTED.test(token) || DECORATORS.has(token)) return null;
|
|
150
|
-
return text.slice(1, ADDRESS_LIMIT + 1);
|
|
151
|
-
}
|