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
|
@@ -8,16 +8,16 @@ import { hostInternalActivity } from './task-entry-activity-origin.js';
|
|
|
8
8
|
import { markerField as field, markerValue as unfield } from './task-agent-assignment.js';
|
|
9
9
|
import { WAKE_CLIENTS } from '../../packages/roundtable/src/agents/wake-registry.js';
|
|
10
10
|
|
|
11
|
-
//
|
|
11
|
+
// `#FLG …` (Fuli Agents Group, rec#55): the person invites several of their
|
|
12
12
|
// FLAs to discuss a question in this chat. The entry only prepares it:
|
|
13
13
|
//
|
|
14
|
-
// 1.
|
|
14
|
+
// 1. `#FLG <question>` offers a multi-select of 2–4 members (fla-picker.js):
|
|
15
15
|
// the FLAs the text names, preselected and never replaced (one name several
|
|
16
16
|
// FLAs share is offered as each of them, unchecked); when it names none,
|
|
17
17
|
// or asks for more, the FLAs that fit the question
|
|
18
18
|
// (group-member-recommendation.js), each with a short reason.
|
|
19
|
-
// 2. The person confirms: numbers such as `1 3`, or
|
|
20
|
-
// preselection (the host's native answer comes back as
|
|
19
|
+
// 2. The person confirms: numbers such as `1 3`, or `#FLG 开始` for the
|
|
20
|
+
// preselection (the host's native answer comes back as `#FLG 1 3`), and
|
|
21
21
|
// with them how the group works; the choice preselects the mode the
|
|
22
22
|
// question asks for (`一起看`), else the roundtable.
|
|
23
23
|
// - 「在圆桌里分头回复」 (mode 2): the entry records the confirmed members
|
|
@@ -28,9 +28,9 @@ import { WAKE_CLIENTS } from '../../packages/roundtable/src/agents/wake-registry
|
|
|
28
28
|
// - 「在这个会话里一起看」 (mode 1): nobody is woken; the entry hands this
|
|
29
29
|
// session a small read-only index of each member's context
|
|
30
30
|
// (group-member-context.js) and remembers the members.
|
|
31
|
-
// 3. Afterwards
|
|
31
|
+
// 3. Afterwards `#FLG <text>` records the person's follow-up for the same
|
|
32
32
|
// members (mode 2: one follow_up each; mode 1: the index read again for
|
|
33
|
-
// that text) and
|
|
33
|
+
// that text) and `#FLG 结束` stops it at once. No extra step is asked.
|
|
34
34
|
//
|
|
35
35
|
// The member choice and the started discussion are routing state, stored as
|
|
36
36
|
// markers on the session's current task like a named FLA's choice; the
|
|
@@ -52,16 +52,16 @@ const QUESTION_LIMIT = 1500;
|
|
|
52
52
|
const MORE = /推荐|再找|再加|再请|再邀|补充|还要|recommend|suggest|more/iu;
|
|
53
53
|
const COUNT = /([1-4一二两三四])\s*(?:位|个|名)/u;
|
|
54
54
|
const NUMBERS = Object.freeze({ 一: 1, 二: 2, 两: 2, 三: 3, 四: 4 });
|
|
55
|
-
// Words that sound like a yes but are not the choice's confirmation (
|
|
56
|
-
const LOOSE_YES = /^(?:好|好的|好吧|行|可以|嗯|对|是|ok|okay|yes|yep|sure)\s
|
|
55
|
+
// Words that sound like a yes but are not the choice's confirmation (`#FLG 开始`).
|
|
56
|
+
const LOOSE_YES = /^(?:好|好的|好吧|行|可以|嗯|对|是|ok|okay|yes|yep|sure)[\s。.!!~~]*$/iu;
|
|
57
57
|
// A discussion in progress keeps its session where it is.
|
|
58
58
|
const ACTIVE = new Set(['confirmed', 'running']);
|
|
59
59
|
|
|
60
60
|
const CHOOSE_GUIDANCE = 'Ask this now with the host native multi-select UI (preselected checked, custom input last) '
|
|
61
61
|
+ 'and mode_choice as a second, single choice in the same UI; where there is none, show both numbered lists and let '
|
|
62
|
-
+ 'the person reply such as "1 3 一起看", "1 3 圆桌", or "
|
|
62
|
+
+ 'the person reply such as "1 3 一起看", "1 3 圆桌", or "#FLG 开始" for the checked ones. Start nothing and speak for '
|
|
63
63
|
+ 'no member before the answer. Then call begin_task_context with projectPath=current directory and taskPrompt '
|
|
64
|
-
+ '"
|
|
64
|
+
+ '"#FLG <numbers> <一起看|圆桌>" (or "#FLG 开始 <一起看|圆桌>") and follow its flg.guidance. A choice is not a '
|
|
65
65
|
+ 'permission grant.';
|
|
66
66
|
const START_GUIDANCE = 'The person confirmed these members. Call group_discussion with action start, this entry\'s '
|
|
67
67
|
+ 'taskContextToken and start.requestId. Each member is woken in its own client without file edits or shell and answers for itself: '
|
|
@@ -80,22 +80,22 @@ const REASONS = Object.freeze({
|
|
|
80
80
|
moderator: '是本会话的主持,不另外唤醒', own: '就是本会话的 FLA'
|
|
81
81
|
});
|
|
82
82
|
const NOTICES = Object.freeze({
|
|
83
|
-
project_required: '
|
|
83
|
+
project_required: '#FLG 需要由项目里的 FLA 主持;当前会话不在项目中,没有发起讨论',
|
|
84
84
|
roster_unavailable: '暂时读不到你的 FLA,没有发起讨论',
|
|
85
85
|
too_many: `一次最多邀请 ${OPTION_LIMIT} 位 FLA,请少点几位`,
|
|
86
86
|
not_enough: '能参加讨论的 FLA 不足两位,没有发起讨论',
|
|
87
|
-
no_choice: '没有待确认的
|
|
88
|
-
none_running: '本会话没有进行中的
|
|
89
|
-
stop_unavailable: '暂时无法停止
|
|
90
|
-
roundtable_unavailable: '暂时无法记录确认的成员,没有发起讨论', not_started: '这场
|
|
91
|
-
follow_up_limit: '这场
|
|
92
|
-
question_required: '请在
|
|
87
|
+
no_choice: '没有待确认的 #FLG 成员列表;用「#FLG 问题」发起讨论',
|
|
88
|
+
none_running: '本会话没有进行中的 #FLG 讨论',
|
|
89
|
+
stop_unavailable: '暂时无法停止 #FLG 讨论,请稍后再说一次 #FLG 结束',
|
|
90
|
+
roundtable_unavailable: '暂时无法记录确认的成员,没有发起讨论', not_started: '这场 #FLG 讨论还没开始,开始后再追问',
|
|
91
|
+
follow_up_limit: '这场 #FLG 讨论已追问 5 次,到了上限;再写「#FLG 问题」会重新选人',
|
|
92
|
+
question_required: '请在 #FLG 后写上要讨论的问题,例如「#FLG 讨论这个方案的产品体验和技术风险」'
|
|
93
93
|
});
|
|
94
94
|
|
|
95
95
|
// What a prompt and the session's current task ask of a group discussion, or
|
|
96
96
|
// null. task: the session's current task (its markers), read once per entry.
|
|
97
97
|
// holdsProject: this turn stays where the session is (no standing-assignment
|
|
98
|
-
// reroute) — an
|
|
98
|
+
// reroute) — an `#FLG` turn, or any turn while its discussion is in progress.
|
|
99
99
|
export function groupDiscussionRequest(application, input, task) {
|
|
100
100
|
const mention = parseFlaMention(input.taskPrompt)?.group ?? null;
|
|
101
101
|
const stored = storedGroup(task);
|
|
@@ -110,7 +110,7 @@ export function groupDiscussionRequest(application, input, task) {
|
|
|
110
110
|
const reply = mention && (mention.choices || mention.confirm) ? mention
|
|
111
111
|
: !mention && stored.choices.length ? groupChoiceReply(input.taskPrompt) : null;
|
|
112
112
|
if (reply) return { state: stored.choices.length ? 'confirm' : 'no_choice', reply, stored, holdsProject: true, source };
|
|
113
|
-
//
|
|
113
|
+
// `#FLG 好` / `#FLG ok` while a choice waits is an unclear answer to it, not a new question.
|
|
114
114
|
if (mention?.query && stored.choices.length && LOOSE_YES.test(mention.query)) {
|
|
115
115
|
return { state: 'unclear', stored, holdsProject: true };
|
|
116
116
|
}
|
|
@@ -130,7 +130,7 @@ export async function groupDiscussionEntry(application, request, selection, pers
|
|
|
130
130
|
if (request.state === 'no_choice') return said('unavailable', 'no_choice', kept);
|
|
131
131
|
const sameSession = !request.stored.started && request.stored.together.length > 0;
|
|
132
132
|
if (request.state === 'stop' && sameSession) {
|
|
133
|
-
const notice = '已结束本会话的
|
|
133
|
+
const notice = '已结束本会话的 #FLG 一起看';
|
|
134
134
|
return { view: { status: 'ended', notice }, notice, selection: noAgent(), markers: [] };
|
|
135
135
|
}
|
|
136
136
|
// Mode 1 needs no moderator: the same members' index, read for the new text.
|
|
@@ -144,14 +144,14 @@ export async function groupDiscussionEntry(application, request, selection, pers
|
|
|
144
144
|
? await application.roundtable?.ownerStopGroupDiscussion?.({ requestId: request.stored.started }) : null;
|
|
145
145
|
} catch { return said('unavailable', 'stop_unavailable', kept); }
|
|
146
146
|
if (!stopped) return said('unavailable', 'none_running', []);
|
|
147
|
-
const notice = '已停止
|
|
147
|
+
const notice = '已停止 #FLG 讨论,未回复的成员不计入结论';
|
|
148
148
|
return { view: { status: 'stopped', chat_id: stopped.chatId, notice, guidance: STOPPED_GUIDANCE }, notice,
|
|
149
149
|
selection: noAgent(), markers: kept };
|
|
150
150
|
}
|
|
151
151
|
const moderator = selection?.status === 'ready' && personalProjectId ? selection.agent?.agentId ?? null : null;
|
|
152
152
|
if (!moderator) return said('unavailable', 'project_required', kept);
|
|
153
153
|
if (request.state === 'confirm') return confirmed(application, request, moderator, personalProjectId);
|
|
154
|
-
if (request.state === 'unclear') return chooseAgain(request.stored, '
|
|
154
|
+
if (request.state === 'unclear') return chooseAgain(request.stored, '请回复编号,或用「#FLG 开始」确认已勾选的');
|
|
155
155
|
if (!request.query) return said('unavailable', 'question_required', kept);
|
|
156
156
|
if (request.status?.followUps >= request.status?.maxFollowUps) return said('unavailable', 'follow_up_limit', []);
|
|
157
157
|
const current = request.stored.started ? await startedDiscussion(application, request.stored.started) : null;
|
|
@@ -198,7 +198,7 @@ async function memberChoice(application, query, { moderator, personalProjectId }
|
|
|
198
198
|
: options.some(item => item.note === '同名,请选择') ? '有同名的 FLA,请选出要邀请的那一位,再确认成员'
|
|
199
199
|
: wantsMore ? '你点名的和推荐的 FLA 已勾选,要邀请哪几位?' : '你点名的 FLA 已勾选,还要加谁吗?';
|
|
200
200
|
const { shown, interaction } = memberAndModeChoice(options, question, mode);
|
|
201
|
-
const notice = ['等待确认
|
|
201
|
+
const notice = ['等待确认 #FLG 讨论成员', ...notices].join(';');
|
|
202
202
|
const text = [...query].slice(0, QUESTION_LIMIT).join('');
|
|
203
203
|
return { view: { status: 'choose', question: text, notice }, interaction, notice,
|
|
204
204
|
selection: noAgent(), markers: [`flg_question:${text}`, `flg_mode:${mode}`, ...shown.map(choiceMarker)] };
|
|
@@ -206,7 +206,7 @@ async function memberChoice(application, query, { moderator, personalProjectId }
|
|
|
206
206
|
|
|
207
207
|
// The member multi-select with the mode choice beside it, its mode preselected.
|
|
208
208
|
function memberAndModeChoice(members, question, mode) {
|
|
209
|
-
const { shown, interaction } = flaGroupChoice(members, { title: '选择
|
|
209
|
+
const { shown, interaction } = flaGroupChoice(members, { title: '选择 #FLG 讨论成员', question, guidance: CHOOSE_GUIDANCE });
|
|
210
210
|
return { shown, interaction: { ...interaction, mode_choice: { question: '怎么一起工作?', options: Object.values(MODES),
|
|
211
211
|
preselected: Object.keys(MODES).indexOf(mode) + 1 } } };
|
|
212
212
|
}
|
|
@@ -214,7 +214,7 @@ function memberAndModeChoice(members, question, mode) {
|
|
|
214
214
|
// The same member choice again, saying why the last answer did not confirm it.
|
|
215
215
|
function chooseAgain({ choices, question, mode }, reason) {
|
|
216
216
|
const { interaction } = memberAndModeChoice(choices, `${reason},要邀请哪几位一起讨论?`, mode);
|
|
217
|
-
const notice = `等待确认
|
|
217
|
+
const notice = `等待确认 #FLG 讨论成员:${reason}`;
|
|
218
218
|
return { view: { status: 'choose', question, notice }, interaction, notice,
|
|
219
219
|
selection: noAgent(), markers: [`flg_question:${question}`, `flg_mode:${mode}`, ...choices.map(choiceMarker)] };
|
|
220
220
|
}
|
|
@@ -242,25 +242,25 @@ function confirmed(application, request, moderator, personalProjectId) {
|
|
|
242
242
|
application.roundtable.recordGroupChoice({ requestId, agentId: moderator, projectId: personalProjectId,
|
|
243
243
|
question, members: members.map(item => item.agentId) });
|
|
244
244
|
} catch { return said('unavailable', 'roundtable_unavailable', []); }
|
|
245
|
-
const notice = [`已确认 ${members.length} 位
|
|
245
|
+
const notice = [`已确认 ${members.length} 位 #FLG 讨论成员:${members.map(item => item.name).join('、')}`,
|
|
246
246
|
...(self ? [self] : [])].join(';');
|
|
247
247
|
return { view: { status: 'confirmed', notice, start: { requestId }, guidance: START_GUIDANCE }, notice,
|
|
248
248
|
markers: [startedMarker(requestId)] };
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
// Mode 1: this session reads the members' index for the person's text and
|
|
252
|
-
// keeps the members, so a later
|
|
252
|
+
// keeps the members, so a later `#FLG <text>` reads it again. One receipt
|
|
253
253
|
// line says whose context was loaded and that working memory was not; a part
|
|
254
254
|
// that cannot be read is said in the index itself.
|
|
255
255
|
async function together(application, members, text, source, extra = null) {
|
|
256
256
|
const context = await groupMemberContext(application, members, text, source);
|
|
257
|
-
const notice = [`本会话已载入 ${members.length} 位
|
|
257
|
+
const notice = [`本会话已载入 ${members.length} 位 #FLG 成员的上下文:${members.map(item => item.name).join('、')}`
|
|
258
258
|
+ '(工作记忆为各 FLA 私有,未载入)', ...(extra ? [extra] : [])].join(';');
|
|
259
259
|
return { view: { status: 'together', notice, context, guidance: TOGETHER_GUIDANCE }, notice,
|
|
260
260
|
markers: members.map(withMarker) };
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
// The person's
|
|
263
|
+
// The person's `#FLG <text>` for the discussion this session started: recorded
|
|
264
264
|
// as the follow-up the moderator may carry out once, to everyone or to the
|
|
265
265
|
// one member it names.
|
|
266
266
|
function followUp(application, current, text, kept) {
|
|
@@ -273,7 +273,7 @@ function followUp(application, current, text, kept) {
|
|
|
273
273
|
catch { return said('unavailable', 'roundtable_unavailable', kept); }
|
|
274
274
|
if (recorded.refused === 'limit') return said('unavailable', 'follow_up_limit', []);
|
|
275
275
|
if (!recorded.recorded) return said('unavailable', 'none_running', []);
|
|
276
|
-
const notice = to ? `追问
|
|
276
|
+
const notice = to ? `追问 #FLG 讨论中的 ${named[0][0].name}` : '在同一个 #FLG 讨论里追问全部成员';
|
|
277
277
|
return { view: { status: 'follow_up', chat_id: current.chatId, discussion_status: current.status,
|
|
278
278
|
...(to ? { to } : {}), notice, guidance: FOLLOW_UP_GUIDANCE }, notice, markers: kept };
|
|
279
279
|
}
|
|
@@ -299,7 +299,7 @@ function memberUnavailable(item, moderator, mode) {
|
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
// The discussion this session started, or null when there is none or it
|
|
302
|
-
// cannot be read (a new
|
|
302
|
+
// cannot be read (a new `#FLG` then starts another).
|
|
303
303
|
async function startedDiscussion(application, requestId) {
|
|
304
304
|
if (!requestId || !application.roundtable?.ownerGroupDiscussion) return null;
|
|
305
305
|
try { return await application.roundtable.ownerGroupDiscussion({ requestId }); } catch { return null; }
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { receiptText } from '../agents/identity-receipt.js';
|
|
2
2
|
import { choiceNumber, parseFlaMention } from './fla-mention.js';
|
|
3
|
-
import { flaCandidates, flaChoice, namedAtOpening,
|
|
4
|
-
|
|
5
|
-
import {
|
|
3
|
+
import { flaCandidates, flaChoice, namedAtOpening, narrowedByPartial, rankCandidates, roleCandidates,
|
|
4
|
+
unavailableReason } from './fla-picker.js';
|
|
5
|
+
import { withMenuNames } from './fla-menu.js';
|
|
6
6
|
import { hostInternalActivity } from './task-entry-activity-origin.js';
|
|
7
7
|
import { nameableProjects } from './task-entry-project-mention.js';
|
|
8
8
|
import { sessionMarkers, sessionTaskContext } from './task-entry-standing-owner.js';
|
|
9
9
|
import { agentUnavailableReason } from './agent-availability.js';
|
|
10
|
+
import { employeeAgentId } from '../employees/manifest.js';
|
|
11
|
+
import { TONBORG_EXPLAIN_METHOD } from '../judgment/explain-method.js';
|
|
10
12
|
import { markerField as field, markerValue as unfield } from './task-agent-assignment.js';
|
|
11
13
|
|
|
12
|
-
// Continue a named FLA in this host session (rec#54).
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
// named, a hand-off names another Agent, or `@FLA 结束` ends it.
|
|
14
|
+
// Continue a named FLA in this host session (rec#54). `#FLA Jamie Ash …`
|
|
15
|
+
// names one of the person's FLAs in any of their projects; the entry then
|
|
16
|
+
// runs as that FLA in its own project, whatever folder the session is in,
|
|
17
|
+
// like a project the person names. `@` never names one (fla-mention.js).
|
|
18
|
+
// `#FLA`, alone or with part of a name, and a name several FLAs share offer
|
|
19
|
+
// the native choice instead (fla-picker.js); its number answers it. The
|
|
20
|
+
// binding holds for the session's later turns until another FLA is named, a
|
|
21
|
+
// hand-off names another Agent, or `#FLA 结束` ends it.
|
|
21
22
|
//
|
|
22
23
|
// The binding is routing state, stored like a standing assignment's route:
|
|
23
24
|
// markers on the session's current task (withRouteMarkers), read back on the
|
|
@@ -30,18 +31,18 @@ import { markerField as field, markerValue as unfield } from './task-agent-assig
|
|
|
30
31
|
const BINDING = /^fla_binding:(\S+) (\S+) (\S+) (\S+)(?: (.+))?$/su;
|
|
31
32
|
const CHOICE = /^fla_choice:(\S+) (\S+) (\S+) (\S+)$/u;
|
|
32
33
|
const MARKER_LIMIT = 2048;
|
|
33
|
-
//
|
|
34
|
-
const HINT_WORD_LIMIT = 32;
|
|
35
|
-
// Markers (this binding's, and an @FLG member choice's) travel with the entry under a symbol: JSON never serializes it, so
|
|
34
|
+
// Markers (this binding's, and an #FLG member choice's) travel with the entry under a symbol: JSON never serializes it, so
|
|
36
35
|
// no client receives them; beginTaskFromPreferences stores them on the task.
|
|
37
36
|
export const FLA_ROUTE = Symbol('fla_route');
|
|
38
37
|
|
|
39
38
|
const CONTINUE_GUIDANCE = 'The person named this FLA to continue its own work in this session; this outranks the '
|
|
40
39
|
+ 'folder. Work as it with the restored memory. If conversation.recent_conversation is present, resume it with '
|
|
41
40
|
+ 'resume_agent_conversation before acting; otherwise find its conversation with list_agent_conversations. If the '
|
|
42
|
-
+ 'task to continue is unclear, ask. Later turns stay with this FLA until the person names another or says
|
|
41
|
+
+ 'task to continue is unclear, ask. Later turns stay with this FLA until the person names another or says #FLA 结束.';
|
|
42
|
+
// What a built-in role does when named, beyond continuing: Tonborg goes through its questions (explain-method.js).
|
|
43
|
+
const ROLE_GUIDANCE = Object.freeze({ [employeeAgentId('tonborg')]: TONBORG_EXPLAIN_METHOD });
|
|
43
44
|
const UNAVAILABLE_GUIDANCE = 'Tell the person this notice and do no task work: do not act as, or claim the context '
|
|
44
|
-
+ 'of, another FLA. They can name another FLA, pick one with
|
|
45
|
+
+ 'of, another FLA. They can name another FLA, pick one with #FLA, or end the binding with #FLA 结束.';
|
|
45
46
|
const CHOOSE_GUIDANCE = 'Ask this now with the host native single-choice UI (a numbered list where there is none), '
|
|
46
47
|
+ 'custom input last, and do no task work as any FLA before the answer. When the person picks option N, call '
|
|
47
48
|
+ 'begin_task_context with projectPath=current directory and taskPrompt "#FLA N", then continue as the FLA that '
|
|
@@ -73,7 +74,7 @@ const QUESTIONS = Object.freeze({
|
|
|
73
74
|
// readSessionTask: the session's current task, read once per entry.
|
|
74
75
|
export async function namedFlaRequest(application, resolution, input, readSessionTask) {
|
|
75
76
|
const parsed = parseFlaMention(input.taskPrompt);
|
|
76
|
-
//
|
|
77
|
+
// `#FLG` addresses a group (task-entry-group-discussion.js), not one FLA.
|
|
77
78
|
const mention = parsed?.group ? null : parsed;
|
|
78
79
|
let task = null;
|
|
79
80
|
try { task = await readSessionTask(); } catch { /* the binding cannot be proven; route as before */ }
|
|
@@ -82,7 +83,7 @@ export async function namedFlaRequest(application, resolution, input, readSessio
|
|
|
82
83
|
// Internal Agent activity (a roundtable wake) neither starts nor ends one.
|
|
83
84
|
if (hostInternalActivity(application, input)) return previous ? { state: 'carried', previous } : null;
|
|
84
85
|
if (mention?.release) return { state: 'released', previous };
|
|
85
|
-
// A hand-off's
|
|
86
|
+
// A hand-off's `#FLA {agentId}` names its Agent and routes as before; reaching
|
|
86
87
|
// another Agent ends the binding, a failed one keeps it.
|
|
87
88
|
if (mention?.handoff) {
|
|
88
89
|
if (!previous) return null;
|
|
@@ -96,33 +97,21 @@ export async function namedFlaRequest(application, resolution, input, readSessio
|
|
|
96
97
|
const home = namedFlaTask(task) ? {} : sessionTaskContext(task) ?? {};
|
|
97
98
|
const asked = { previous, home: { personalProjectId: home.personalProjectId ?? null,
|
|
98
99
|
projectAgentId: home.projectAgentId ?? null } };
|
|
99
|
-
let hint = null;
|
|
100
100
|
if (mention || number !== null) {
|
|
101
101
|
const currentProjectId = resolution.personalProjectId ?? null;
|
|
102
102
|
let roster = null;
|
|
103
103
|
try { roster = await spaceRoster(application); }
|
|
104
|
-
catch {
|
|
104
|
+
catch { return { state: 'unavailable', reason: 'unavailable', ...asked }; }
|
|
105
105
|
if (roster) {
|
|
106
106
|
const ranked = rankCandidates(flaCandidates(roster.agents, roster.projects, roster.spaceId),
|
|
107
107
|
{ currentProjectId, recentAgentId: previous?.agentId ?? null });
|
|
108
108
|
const request = number !== null ? choose(open(ranked, input), 'choice_unknown')
|
|
109
|
-
:
|
|
110
|
-
roleCandidates(roster.agents, roster.projects, roster.spaceId, currentProjectId), resolution, input)
|
|
111
|
-
: bareRequest(mention.query, ranked, resolution, input);
|
|
109
|
+
: explicitRequest(mention, ranked,
|
|
110
|
+
roleCandidates(roster.agents, roster.projects, roster.spaceId, currentProjectId), resolution, input);
|
|
112
111
|
if (request) return { ...request, ...asked };
|
|
113
|
-
// D-68: a bare `@word` that only starts a name stays an ordinary
|
|
114
|
-
// prompt; at most it says how to choose one.
|
|
115
|
-
const word = [...typedWord(mention.query)].slice(0, HINT_WORD_LIMIT).join('');
|
|
116
|
-
if (!mention.explicit && [...word].length >= 2 && narrowedByPartial(word, open(ranked, input)).close) hint = word;
|
|
117
112
|
}
|
|
118
113
|
}
|
|
119
|
-
if (!previous) return
|
|
120
|
-
// While bound, an `@word` that is none of the person's FLAs but that the
|
|
121
|
-
// folder's own `@name` rule resolves (a project Agent, one of FULI's roles)
|
|
122
|
-
// goes there this turn; one that resolves nowhere stays with the bound FLA.
|
|
123
|
-
if (mention && !mention.explicit && await resolvesInFolder(application, resolution, input)) {
|
|
124
|
-
return { state: 'carried', previous };
|
|
125
|
-
}
|
|
114
|
+
if (!previous) return null;
|
|
126
115
|
// An explicit argument of the caller for another Agent or project decides
|
|
127
116
|
// this call; the binding is kept.
|
|
128
117
|
if ((input.projectAgentId && input.projectAgentId !== previous.agentId)
|
|
@@ -164,9 +153,6 @@ export function namedFlaTask(task) {
|
|
|
164
153
|
export async function namedFlaEntry(application, request, selection, sourceApplication = 'other') {
|
|
165
154
|
const kept = request.previous ? [bindingMarker(request.previous)] : [];
|
|
166
155
|
if (request.state === 'carried') return { view: null, notice: null, markers: kept };
|
|
167
|
-
if (request.state === 'hint') {
|
|
168
|
-
return { view: { status: 'hint', hint: `想找 FLA?用 #FLA ${request.query} 选一位,或用 @FLG 邀请几位一起讨论` }, notice: null, markers: [] };
|
|
169
|
-
}
|
|
170
156
|
if (request.state === 'handoff') {
|
|
171
157
|
const reached = selection?.status === 'ready' && [selection.agent?.agentId, selection.requested_agent_id]
|
|
172
158
|
.includes(request.agentId);
|
|
@@ -193,7 +179,8 @@ export async function namedFlaEntry(application, request, selection, sourceAppli
|
|
|
193
179
|
const current = { ...target, name: agent.profile.displayName || agent.profile.name || target.name };
|
|
194
180
|
const notice = current.projectId ? `本会话由 ${current.name} 继续项目 ${current.project} 的工作`
|
|
195
181
|
: `本会话由 ${current.name} 继续其全局工作`;
|
|
196
|
-
|
|
182
|
+
const guidance = ROLE_GUIDANCE[current.agentId] ? `${CONTINUE_GUIDANCE} ${ROLE_GUIDANCE[current.agentId]}` : CONTINUE_GUIDANCE;
|
|
183
|
+
return { view: request.origin === 'session' ? null : { status: 'continuing', notice, guidance },
|
|
197
184
|
notice, markers: [bindingMarker(current, notice)] };
|
|
198
185
|
}
|
|
199
186
|
if (agent && selection.requested_agent_id === target.agentId) {
|
|
@@ -221,13 +208,13 @@ function unavailable(target, reason, markers) {
|
|
|
221
208
|
selection: { status: 'agent_unavailable', reason, worker_started: false }, markers };
|
|
222
209
|
}
|
|
223
210
|
|
|
224
|
-
// `#FLA
|
|
225
|
-
// (
|
|
226
|
-
//
|
|
227
|
-
//
|
|
228
|
-
function explicitRequest({ query
|
|
229
|
-
const exact = query ? exactRequest(namedAtOpening(query, [...ranked, ...roles]), resolution, input) : null;
|
|
230
|
-
if (exact
|
|
211
|
+
// `#FLA …`: an exact name of an FLA or of one of FULI's roles (rec#58), or
|
|
212
|
+
// a client menu's name for one (fla-menu.js), else the picker over FLAs,
|
|
213
|
+
// narrowed by a partial name; a single close fit continues directly,
|
|
214
|
+
// letters in order only narrow (D-68).
|
|
215
|
+
function explicitRequest({ query }, ranked, roles, resolution, input) {
|
|
216
|
+
const exact = query ? exactRequest(namedAtOpening(query, withMenuNames([...ranked, ...roles])), resolution, input) : null;
|
|
217
|
+
if (exact) return exact;
|
|
231
218
|
const available = open(ranked, input);
|
|
232
219
|
if (!query) return choose(available, 'list');
|
|
233
220
|
const { close, items } = narrowedByPartial(query, available);
|
|
@@ -235,19 +222,6 @@ function explicitRequest({ query, inline }, ranked, roles, resolution, input) {
|
|
|
235
222
|
return items.length ? choose(items, 'partial') : choose(available, 'no_match');
|
|
236
223
|
}
|
|
237
224
|
|
|
238
|
-
// A bare `@word` continues only an exact name: the whole display name, or one
|
|
239
|
-
// of its words when that is exactly one FLA's (D-68). Anything else is null:
|
|
240
|
-
// an ordinary prompt.
|
|
241
|
-
// Only a whole name may answer with a refusal; a name word counts only for
|
|
242
|
-
// FLAs that can continue now (D-68a), so a dismissed "Data Wu" leaves
|
|
243
|
-
// `@Data 注解报错` an ordinary prompt.
|
|
244
|
-
function bareRequest(query, ranked, resolution, input) {
|
|
245
|
-
const exact = exactRequest(namedAtOpening(query, ranked), resolution, input);
|
|
246
|
-
if (exact) return exact;
|
|
247
|
-
const worded = namedByWord(query, open(ranked, input));
|
|
248
|
-
return new Set(worded.map(item => item.agentId)).size === 1 ? exactRequest(worded, resolution, input) : null;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
225
|
function exactRequest(exact, resolution, input) {
|
|
252
226
|
if (!exact.length) return null;
|
|
253
227
|
const named = open(exact, input);
|
|
@@ -286,17 +260,6 @@ function target(candidate) {
|
|
|
286
260
|
project: candidate.project };
|
|
287
261
|
}
|
|
288
262
|
|
|
289
|
-
// Whether the folder's existing `@name` rule (project-agent-mention.js) finds
|
|
290
|
-
// an Agent for this prompt, in the folder's project or, outside one, the space.
|
|
291
|
-
async function resolvesInFolder(application, resolution, input) {
|
|
292
|
-
try {
|
|
293
|
-
return Boolean((await resolveTaskAgentMention(application, resolution.personalProjectId ?? null,
|
|
294
|
-
{ taskPrompt: input.taskPrompt }))?.agentId);
|
|
295
|
-
} catch {
|
|
296
|
-
return false;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
|
|
300
263
|
// Every FLA of the person's own space as candidates (fla-picker.js); the
|
|
301
264
|
// group discussion's member choice reads the same roster.
|
|
302
265
|
export async function personCandidates(application) {
|
|
@@ -304,6 +267,13 @@ export async function personCandidates(application) {
|
|
|
304
267
|
return flaCandidates(agents, projects, spaceId);
|
|
305
268
|
}
|
|
306
269
|
|
|
270
|
+
// Every FLA placement and built-in role a client's /fla menu lists
|
|
271
|
+
// (fla-menu.js), from the same roster read task entry resolves picks with.
|
|
272
|
+
export async function menuCandidates(application) {
|
|
273
|
+
const { agents, projects, spaceId } = await spaceRoster(application);
|
|
274
|
+
return [...flaCandidates(agents, projects, spaceId), ...roleCandidates(agents, projects, spaceId, null)];
|
|
275
|
+
}
|
|
276
|
+
|
|
307
277
|
// One read of the person's whole roster and nameable projects.
|
|
308
278
|
async function spaceRoster(application) {
|
|
309
279
|
const spaceId = application.config.personal.spaceId;
|
|
@@ -19,13 +19,20 @@ import { withSharedProjectList } from './shared-project-list.js';
|
|
|
19
19
|
import { clearSessionTaskBlockers } from './task-blocker-progress.js';
|
|
20
20
|
import { standingOwnerEntry } from './task-entry-standing-owner.js';
|
|
21
21
|
import { roundtableAskEntry } from './task-entry-roundtable-ask.js';
|
|
22
|
+
import { isReadOnlyRefusal, readOnlyLifecycle, readOnlyTaskEntry } from './task-entry-read-only.js';
|
|
22
23
|
|
|
23
24
|
export async function finishTaskEntryPreferences(application, preferences, input) {
|
|
24
25
|
if (!input.agentInvocation || input.agentToolName !== 'get_collaboration_preferences') return preferences;
|
|
25
26
|
if (!input.sessionId || typeof input.taskPrompt !== 'string') return { ...preferences,
|
|
26
27
|
task_lifecycle: { status: 'not_started', reason: !input.sessionId ? 'native_session_required' : 'task_prompt_required',
|
|
27
28
|
guidance: 'Preferences were loaded, but no task token was created. Supply the current host sessionId and taskPrompt to get_collaboration_preferences. Do not guess a session ID, use an MCP process ID or reuse an earlier task token.' } };
|
|
28
|
-
|
|
29
|
+
let entry;
|
|
30
|
+
try {
|
|
31
|
+
entry = await beginTaskFromPreferences(application, preferences, input);
|
|
32
|
+
} catch (error) {
|
|
33
|
+
if (!isReadOnlyRefusal(error)) throw error;
|
|
34
|
+
return { ...preferences, checkpoint_required: false, task_lifecycle: readOnlyLifecycle() };
|
|
35
|
+
}
|
|
29
36
|
// An Agent's own entry keeps no prompt; it drops what the session's earlier task kept.
|
|
30
37
|
keepEntryPrompt(application, entry, input, null);
|
|
31
38
|
return withEntryHint(application, entry, input);
|
|
@@ -37,7 +44,13 @@ export async function finishTaskEntryPreferences(application, preferences, input
|
|
|
37
44
|
export function beginTaskEntry(application, input) {
|
|
38
45
|
return withSharedProjectList(async () => {
|
|
39
46
|
if (input.projectPath !== undefined && input.projectPath !== null) application.listPersonalProjects().catch(() => {});
|
|
40
|
-
|
|
47
|
+
let entry;
|
|
48
|
+
try {
|
|
49
|
+
entry = await beginTaskContext(application, input);
|
|
50
|
+
} catch (error) {
|
|
51
|
+
if (!isReadOnlyRefusal(error)) throw error;
|
|
52
|
+
return readOnlyTaskEntry(application, input);
|
|
53
|
+
}
|
|
41
54
|
keepEntryPrompt(application, entry, input, input.taskPrompt);
|
|
42
55
|
// Its task and opening writes are done: a hook deadline from here on
|
|
43
56
|
// delivers the token instead of nothing (entry-budget.js).
|
|
@@ -132,7 +145,7 @@ async function entryPreferences(application, projectResolution, {
|
|
|
132
145
|
// FLA may work this turn, no Agent is selected at all.
|
|
133
146
|
const fla = projectResolution.fla
|
|
134
147
|
? await namedFlaEntry(application, projectResolution.fla, selected, sourceApplication) : null;
|
|
135
|
-
// An
|
|
148
|
+
// An `#FLG` member choice loads no Agent either; its moderator is the one selected.
|
|
136
149
|
const group = projectResolution.group ? await groupDiscussionEntry(application, projectResolution.group,
|
|
137
150
|
fla?.selection ?? selected, projectResolution.personalProjectId ?? null) : null;
|
|
138
151
|
const selection = group?.selection ?? fla?.selection ?? selected;
|
|
@@ -4,7 +4,7 @@ import { projectNamedInPrompt } from './task-entry-project-mention.js';
|
|
|
4
4
|
import { sessionTaskContext, withStandingOwner } from './task-entry-standing-owner.js';
|
|
5
5
|
import { namedFlaRequest, namedFlaResolution, namedFlaTask } from './task-entry-named-fla.js';
|
|
6
6
|
import { groupDiscussionRequest } from './task-entry-group-discussion.js';
|
|
7
|
-
import {
|
|
7
|
+
import { addressedAgentId } from './fla-mention.js';
|
|
8
8
|
import { ASSISTANT_AGENT_ID } from './assistant-identity.js';
|
|
9
9
|
|
|
10
10
|
// Restore only exact session provenance; a normal folder name is not a role binding.
|
|
@@ -12,9 +12,9 @@ import { ASSISTANT_AGENT_ID } from './assistant-identity.js';
|
|
|
12
12
|
// pending in the assistant's global scope until it is assigned to a project.
|
|
13
13
|
// A standing assignment the prompt names then scopes this task alone
|
|
14
14
|
// (task-entry-standing-owner.js). An FLA the person names, or this session is
|
|
15
|
-
// bound to, comes first (task-entry-named-fla.js). An
|
|
15
|
+
// bound to, comes first (task-entry-named-fla.js). An `#FLG` group discussion
|
|
16
16
|
// (task-entry-group-discussion.js) keeps wherever the session is on its own
|
|
17
|
-
//
|
|
17
|
+
// `#FLG` turns and while it is in progress: its moderator is the session's own
|
|
18
18
|
// Agent, so no standing assignment reroutes it then. Other turns route as usual.
|
|
19
19
|
export async function resolveTaskEntryProject(application, resolution, input) {
|
|
20
20
|
if (!input.agentInvocation || !TASK_ENTRY_TOOLS.has(input.agentToolName)) return resolution;
|
|
@@ -48,7 +48,7 @@ async function sessionEntryProject(application, resolution, input, readSessionTa
|
|
|
48
48
|
if (resolution.personalProjectId
|
|
49
49
|
|| !['unmatched', 'not_provided'].includes(resolution.status)) return resolution;
|
|
50
50
|
// An explicit FLA outside a project uses its independent global context.
|
|
51
|
-
if (input.projectAgentId ||
|
|
51
|
+
if (input.projectAgentId || addressedAgentId(input.taskPrompt) !== null) {
|
|
52
52
|
return { status: 'global', basis: 'explicit_agent', personalProjectId: null };
|
|
53
53
|
}
|
|
54
54
|
// A known native session is stronger than an MCP process ID. Never use an
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { getCollaborationPreferences } from './collaboration-preference-workflow.js';
|
|
2
|
+
import { resolvePreferenceProject } from './preference-project-resolution.js';
|
|
3
|
+
|
|
4
|
+
// While a graph format step waits for the person the graph is read-only, and a
|
|
5
|
+
// task lives in the graph, so no task can begin. The graph stays read-only: a
|
|
6
|
+
// write in the old format is what the wait protects against. What an Agent needs
|
|
7
|
+
// from the entry is all reads, though, so it keeps the person's preferences and
|
|
8
|
+
// recall, records nothing, and says why instead of failing.
|
|
9
|
+
const READ_ONLY_REASON = 'data_format_read_only';
|
|
10
|
+
const GUIDANCE = 'FULI is waiting for the person to confirm a data format update, so this task is not recorded. '
|
|
11
|
+
+ 'Reads and searches work; saving knowledge is refused until then. There is no task token, so make no checkpoint. '
|
|
12
|
+
+ 'Tell the person once to confirm it in the FULI console under Settings, Data format. / '
|
|
13
|
+
+ 'FULI 的数据格式更新在等用户确认,这次任务不会被记录。读取和搜索照常,保存知识会被拒绝。没有任务 token,不用 checkpoint。'
|
|
14
|
+
+ '请告诉用户一次:到 FULI 控制台的「设置 › 数据格式」确认。';
|
|
15
|
+
|
|
16
|
+
export const isReadOnlyRefusal = error => error?.code === READ_ONLY_REASON;
|
|
17
|
+
export const readOnlyLifecycle = () => ({ status: 'not_started', reason: READ_ONLY_REASON, guidance: GUIDANCE });
|
|
18
|
+
|
|
19
|
+
export async function readOnlyTaskEntry(application, { personalProjectId = null, projectPath, taskPrompt = null, sessionId = null,
|
|
20
|
+
sourceSessionId = null, sourceApplication = null, projectAgentId = null, workKind = null, workflow = null }) {
|
|
21
|
+
const projectResolution = await resolvePreferenceProject(application, { personalProjectId, projectPath });
|
|
22
|
+
const preferences = await getCollaborationPreferences(application, projectResolution,
|
|
23
|
+
{ projectAgentId, taskPrompt, sessionId, sourceSessionId, workKind, workflow, sourceApplication }, () => {});
|
|
24
|
+
return { context: { personal_space_id: application.config.personal.spaceId, personal_project_id: projectResolution.personalProjectId ?? null },
|
|
25
|
+
effective_preferences: preferences.effective_preferences, scope_unknown: preferences.scope_unknown,
|
|
26
|
+
...(preferences.task_knowledge_recall ? { task_knowledge_recall: preferences.task_knowledge_recall } : {}),
|
|
27
|
+
checkpoint_required: false, task_lifecycle: readOnlyLifecycle() };
|
|
28
|
+
}
|
|
@@ -2,7 +2,7 @@ import { receiptText } from '../agents/identity-receipt.js';
|
|
|
2
2
|
import { hostInternalActivity } from './task-entry-activity-origin.js';
|
|
3
3
|
import { nameableProjects, projectDisplayName, promptNamesProject } from './task-entry-project-mention.js';
|
|
4
4
|
import { withRouteMarkers } from './task-agent-assignment.js';
|
|
5
|
-
import {
|
|
5
|
+
import { addressedAgentId } from './fla-mention.js';
|
|
6
6
|
|
|
7
7
|
// A standing assignment routes one task (rec#29 D-41 D3, option b): when the
|
|
8
8
|
// task prompt carries a term the person confirmed for a project, this task is
|
|
@@ -16,7 +16,7 @@ import { leadingAgentAddress } from './fla-mention.js';
|
|
|
16
16
|
// (project-agent-task-entry.js), in its project or already there.
|
|
17
17
|
//
|
|
18
18
|
// What the person or host chose for this task outranks a standing assignment:
|
|
19
|
-
// an explicit project or Agent,
|
|
19
|
+
// an explicit project or Agent, a #FLA mention, or a project the prompt names.
|
|
20
20
|
// Where the folder or the session would put the task does not. When terms of
|
|
21
21
|
// several assignments match, the entry asks instead of choosing one.
|
|
22
22
|
|
|
@@ -130,7 +130,7 @@ function standingMatches(application, taskPrompt) {
|
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
function routable(resolution, input) {
|
|
133
|
-
if (input.projectAgentId ||
|
|
133
|
+
if (input.projectAgentId || addressedAgentId(input.taskPrompt) !== null
|
|
134
134
|
|| EXPLICIT_BASES.has(resolution.basis)) return false;
|
|
135
135
|
if (resolution.status === 'matched' || resolution.status === 'global') return true;
|
|
136
136
|
return resolution.status === 'ambiguous' && resolution.basis === 'host_session_assignment';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createHash } from 'node:crypto';
|
|
2
2
|
import { ApplicationError, ApplicationErrorCode } from '../app/application-error.js';
|
|
3
|
+
import { ONLY_MARKUP, withoutFuliMarkup } from './fuli-markup.js';
|
|
3
4
|
|
|
4
5
|
// Reusable experience from a finished task (borrowed from Hy-Memory's working
|
|
5
6
|
// memory: one fact per task is the workLog; experiences are the 0-N approaches
|
|
@@ -7,6 +8,10 @@ import { ApplicationError, ApplicationErrorCode } from '../app/application-error
|
|
|
7
8
|
// They become one pending current-project capture with searchKeys as terms.
|
|
8
9
|
const MAX_EXPERIENCES = 3;
|
|
9
10
|
const MAX_KEYS = 8;
|
|
11
|
+
// What a lesson can become besides text (rec#78, 11-06 addition 2): an item
|
|
12
|
+
// its project's acceptance list holds once the person keeps it.
|
|
13
|
+
export const CHECK_KINDS = Object.freeze(['acceptance_item', 'regression_example']);
|
|
14
|
+
const CHECK_CHARS = 300;
|
|
10
15
|
|
|
11
16
|
export function experienceCapture(task, experiences, { sourceApplication = 'other', now = new Date() } = {}) {
|
|
12
17
|
if (!Array.isArray(experiences) || !experiences.length || experiences.length > MAX_EXPERIENCES) {
|
|
@@ -17,6 +22,10 @@ export function experienceCapture(task, experiences, { sourceApplication = 'othe
|
|
|
17
22
|
const title = text(experience?.task, 240, 'experiences[].task');
|
|
18
23
|
const solution = text(experience?.solution, 2000, 'experiences[].solution');
|
|
19
24
|
const boundary = experience?.boundary == null ? null : text(experience.boundary, 600, 'experiences[].boundary');
|
|
25
|
+
const check = experience?.check == null ? null : lessonCheck(experience.check);
|
|
26
|
+
// A person's lasting correction (rec#78 step 3): the strongest signal, with its boundary.
|
|
27
|
+
const corrected = experience?.origin === 'correction';
|
|
28
|
+
if (corrected && !boundary) throw invalid('A lasting correction needs its boundary: where the rule applies');
|
|
20
29
|
const keys = Array.isArray(experience?.searchKeys)
|
|
21
30
|
? [...new Set(experience.searchKeys.map(key => text(key, 80, 'experiences[].searchKeys')))] : [];
|
|
22
31
|
if (!keys.length || keys.length > MAX_KEYS) throw invalid(`experiences[].searchKeys takes 1 to ${MAX_KEYS} terms`);
|
|
@@ -27,10 +36,12 @@ export function experienceCapture(task, experiences, { sourceApplication = 'othe
|
|
|
27
36
|
return {
|
|
28
37
|
key, name: title, type: 'ReusableExperience',
|
|
29
38
|
summary: boundary ? `${solution}\n适用边界:${boundary}` : solution,
|
|
30
|
-
attributes: { searchTerms: keys, solution, ...(boundary ? { boundary } : {}) },
|
|
39
|
+
attributes: { searchTerms: keys, solution, ...(boundary ? { boundary } : {}), ...(check ? { check } : {}),
|
|
40
|
+
...(corrected ? { origin: 'correction' } : {}) },
|
|
31
41
|
originQuadrant: 'known_known', epistemicStatus: 'observed', confirmationStatus: 'pending',
|
|
32
42
|
contentSource: 'agent_inferred',
|
|
33
|
-
confirmationBasis: { existenceReason: 'The task owner
|
|
43
|
+
confirmationBasis: { existenceReason: corrected ? 'The person corrected the task owner\'s approach; the owner judged it a lasting rule.'
|
|
44
|
+
: 'The task owner reported this approach after completing the task.',
|
|
34
45
|
quadrantReason: 'Observed in this task; it stays pending until a person confirms it.',
|
|
35
46
|
proposedBy: { kind: 'agent', label: task.projectAgentId ?? null } }
|
|
36
47
|
};
|
|
@@ -44,9 +55,16 @@ export function experienceCapture(task, experiences, { sourceApplication = 'othe
|
|
|
44
55
|
};
|
|
45
56
|
}
|
|
46
57
|
|
|
58
|
+
function lessonCheck(value) {
|
|
59
|
+
if (!CHECK_KINDS.includes(value?.kind)) throw invalid(`experiences[].check.kind is one of ${CHECK_KINDS.join(', ')}`);
|
|
60
|
+
return { kind: value.kind, text: text(value.text, CHECK_CHARS, 'experiences[].check.text') };
|
|
61
|
+
}
|
|
62
|
+
|
|
47
63
|
function text(value, limit, field) {
|
|
48
64
|
if (typeof value !== 'string' || !value.trim()) throw invalid(`${field} must be non-empty text`);
|
|
49
|
-
|
|
65
|
+
const own = withoutFuliMarkup(value);
|
|
66
|
+
if (!own) throw invalid(ONLY_MARKUP(field));
|
|
67
|
+
return own.slice(0, limit);
|
|
50
68
|
}
|
|
51
69
|
|
|
52
70
|
function invalid(message) {
|
|
@@ -18,7 +18,7 @@ import { namedFlaReceiptNotices } from './task-entry-named-fla.js';
|
|
|
18
18
|
import { receiptFormatNotices } from '../data-format/format-notices.js';
|
|
19
19
|
import { activeSealedWorkerRequest } from '../app/agent-request-context.js';
|
|
20
20
|
import { checkpointHumanInteraction } from './checkpoint-human-interaction.js';
|
|
21
|
-
import { clearSessionTaskBlockers } from './task-blocker-progress.js';
|
|
21
|
+
import { clearSessionTaskBlockers, noteBlockerProgress } from './task-blocker-progress.js';
|
|
22
22
|
import { storedUnassignment } from './task-agent-assignment.js';
|
|
23
23
|
|
|
24
24
|
export async function checkpointTaskKnowledge(application, {
|
|
@@ -101,6 +101,9 @@ export async function checkpointTaskKnowledge(application, {
|
|
|
101
101
|
// This session went on, so a block it reported has ended and leaves the person's queue.
|
|
102
102
|
await clearSessionTaskBlockers(application, { sourceApplication: task.sourceApplication,
|
|
103
103
|
sessionIds: [task.sessionId], cause: 'session_activity', captureAllowed: captureCheck.allowed });
|
|
104
|
+
// Its Agent's blocks reported in other sessions may be solved here too: probably resolved.
|
|
105
|
+
await noteBlockerProgress(application, { sourceApplication: task.sourceApplication, sessionId: task.sessionId,
|
|
106
|
+
personalProjectId: task.personalProjectId, agentId: task.projectAgentId, captureAllowed: captureCheck.allowed });
|
|
104
107
|
const interaction = activeSealedWorkerRequest() ? {} : await checkpointHumanInteraction(application, task);
|
|
105
108
|
// A task without an owner says why, as its entry did.
|
|
106
109
|
const unassigned = task.projectAgentId ? null : storedUnassignment(task);
|