fuli-context 0.23.0 → 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-S8QFfzpA.js → AboutPage-Dx07_Z8u.js} +1 -1
- package/dist/web/assets/{AboutSectionHeading-B5CzH4Zs.js → AboutSectionHeading-BdhpM609.js} +1 -1
- 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-BGGdVdd9.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-CUjBNQ8j.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-CcOlwxck.js → AppViewerPage-BR8ttEGa.js} +1 -1
- package/dist/web/assets/{BackToTop-C3KYEoCW.js → BackToTop-5_AQRMZl.js} +1 -1
- package/dist/web/assets/{BoardCardFieldsMenu-BlBWT1j7.js → BoardCardFieldsMenu-Bb_Z9a4Q.js} +1 -1
- package/dist/web/assets/{BoardMoveMenu-Bc7xC1Uh.js → BoardMoveMenu-B-f8O6cC.js} +1 -1
- package/dist/web/assets/{Breadcrumb-C_xMiD-Z.js → Breadcrumb-DtM5lZy5.js} +1 -1
- package/dist/web/assets/{CaptureChangePage-Bekp1aWg.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-Bp-UX4Hq.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-Lj5s6nwG.js → DialogTitle-BQXOe8EK.js} +1 -1
- package/dist/web/assets/{EmployeeRedirectPage-DnvwJeCN.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-CNdaBy1P.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-Cr8xZwwO.js → GrowthLoading-VuVo2vLf.js} +1 -1
- package/dist/web/assets/{HowtoPage-Cv1YQy1s.js → HowtoPage-CZ3mOdLc.js} +1 -1
- package/dist/web/assets/{HowtoPage-t12tDDpS.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-FEyEvhlR.js → KnowledgeDeleteButton-BlUnSG3b.js} +1 -1
- package/dist/web/assets/{KnowledgeHardDeleteSection-CVwTeMEJ.js → KnowledgeHardDeleteSection-CznXBtHY.js} +1 -1
- package/dist/web/assets/KnowledgeItemEditPage-DGRNkAYd.js +1 -0
- package/dist/web/assets/{KnowledgeItemSummaryCard-49EADY_Z.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-BOz7IpaK.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-CYVcRiuW.js → MeAvatar-aY_q8cKs.js} +1 -1
- package/dist/web/assets/{MeLink-BdqkzhT6.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-Dmn32VWo.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-DpfaPeu7.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-B7dvh7ld.js → PinIcon-BTQsnxRY.js} +1 -1
- package/dist/web/assets/PopperContent-DtMksk76.js +1 -0
- package/dist/web/assets/{Presence-D3HKb5Hb.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-GA33aSRi.js → ProjectJudgmentPolicy-CyHAu0nm.js} +2 -2
- package/dist/web/assets/{PublicProjectsPage-PJlBI8IE.js → PublicProjectsPage-Ck1QSR0R.js} +1 -1
- package/dist/web/assets/RecentNotices-vJobVOcm.js +1 -0
- package/dist/web/assets/{RoundtablesPage-DT5DUXsa.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-CFd7tXzD.js → RovingFocusItem-CyyuWXjE.js} +1 -1
- package/dist/web/assets/{SessionMigrationPage-BZ1lEDQr.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-LQ0CFiKu.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-DGX9k0S6.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-C1upABpY.js → Teleport-Dzdr8umQ.js} +1 -1
- package/dist/web/assets/{TextField-ZnmRqG0h.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-CizeOu1Q.js → UiChip-BEQ067LV.js} +1 -1
- package/dist/web/assets/{UiDialog-CGTzxn3-.js → UiDialog-JjqzOA0z.js} +1 -1
- package/dist/web/assets/{UiDisclosure-ueMA4jl0.js → UiDisclosure-L6GEJHSw.js} +1 -1
- package/dist/web/assets/{UiIcon-sD1hUsOF.js → UiIcon-vgD4v8q8.js} +1 -1
- package/dist/web/assets/UiIconButton-BzyMc14P.js +1 -0
- package/dist/web/assets/{UiSegmented-BZ-jqnPE.js → UiSegmented-CIIm3KoV.js} +1 -1
- package/dist/web/assets/{UiWeight-BRO3oVMZ.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-B8wfJ_mU.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-8KX0ynzy.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-DQlqVOoA.js → agent-workflows-DgdbJqpg.js} +1 -1
- package/dist/web/assets/{attach-closest-edge-D2qlayPy.js → attach-closest-edge-DUc_VUVO.js} +1 -1
- package/dist/web/assets/{attention-store-BnZ8l3kk.js → attention-store-Bod20yM3.js} +1 -1
- package/dist/web/assets/{badge-DX_xrLV6.js → badge-tMy2Qr94.js} +1 -1
- package/dist/web/assets/{button-CEkPBC1E.js → button-DnKFsImW.js} +1 -1
- package/dist/web/assets/{card-DNQ0_6vT.js → card-Ccu7HCNb.js} +1 -1
- package/dist/web/assets/{catalog-KnpBkv5t.js → catalog-CJUV8OJ6.js} +1 -1
- package/dist/web/assets/checkbox-D1R6kTUB.js +1 -0
- package/dist/web/assets/{client-CSQcWFRh.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-CXFE-q_A.js → conversation-launcher-settings-CZAfuu8B.js} +1 -1
- package/dist/web/assets/copy-mention-C0EJhDPy.js +1 -0
- package/dist/web/assets/{dialog-CxhKMo0D.js → dialog-Bbq93W68.js} +1 -1
- package/dist/web/assets/{dist-B9GqMC5C.js → dist-Dd8yFhv6.js} +1 -1
- package/dist/web/assets/{dist-DIJqkL4O.js → dist-PpsW5ZE3.js} +1 -1
- package/dist/web/assets/dropdown-menu-1fGUL0V3.js +1 -0
- package/dist/web/assets/{field-LNsBZqam.js → field-DjVv_wIS.js} +1 -1
- package/dist/web/assets/{format-bytes-Bqefdt37.js → format-bytes-BKq_E0Hs.js} +1 -1
- package/dist/web/assets/hover-card-BO-929hq.js +1 -0
- package/dist/web/assets/{identity-DRfhWjty.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-UoZ-0Xne.js → input-DmwRmYO2.js} +1 -1
- package/dist/web/assets/is-equal-8VOV02sH.js +1 -0
- package/dist/web/assets/{label-DpjbTOxt.js → label-BvwPUTS4.js} +1 -1
- package/dist/web/assets/label-table-CDzYRZpc.js +1 -0
- package/dist/web/assets/{model-CpuIG8Du.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-pJ6k3zYD.js → model-Dfe81jZT.js} +1 -1
- package/dist/web/assets/{model-BYKHVgJr.js → model-DpkZUZUL.js} +1 -1
- package/dist/web/assets/{model-13BQndfF.js → model-Tmn6HvL-.js} +1 -1
- package/dist/web/assets/{model-B5g0CFcM.js → model-y7OUvtKz.js} +1 -1
- package/dist/web/assets/motion-C1fZrqmI.js +1 -0
- package/dist/web/assets/{motion-C-ZimCUS.js → motion-mAmbRj_M.js} +1 -1
- package/dist/web/assets/{motion-preference-BQiiwhab.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-CcHPBOo6.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-NXphgeQI.js → page-title-Cm9u_qw1.js} +1 -1
- package/dist/web/assets/person-profile-BH2AzOfw.js +1 -0
- package/dist/web/assets/{popover-xSRzcSmY.js → popover-DW__YCSE.js} +1 -1
- 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-DBQeP_QP.js → project-board-layout-CTM8kAgq.js} +1 -1
- package/dist/web/assets/{project-capture-BhYsDWwJ.js → project-capture-B3pNhpFF.js} +1 -1
- package/dist/web/assets/{project-origin-D8jy8EF_.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-PECaMfQo.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-f39i44Mt.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-X9b0DwF1.js → session-launch-offers-CtQeY4Qk.js} +1 -1
- package/dist/web/assets/{settings-restart-BnwcTv3i.js → settings-autosave-C7vW3_SP.js} +1 -1
- package/dist/web/assets/settings-restart-p12HUUve.js +1 -0
- package/dist/web/assets/{shared-report-BxNVLalR.js → shared-report-DQBSigHB.js} +3 -3
- package/dist/web/assets/{source-adapters-aupsL146.js → source-adapters-DPJzumzC.js} +1 -1
- package/dist/web/assets/{switch-B3Y3oE_n.js → switch-D7w_0h3m.js} +1 -1
- package/dist/web/assets/tabs-DR8k0PN9.js +1 -0
- package/dist/web/assets/{task-card-fields-DAx6zMLz.js → task-card-fields-X1ZYCm_j.js} +1 -1
- package/dist/web/assets/{task-labels-BdDFvSAy.js → task-labels-LuXoQhF9.js} +1 -1
- package/dist/web/assets/{task-reason-7WnPreht.js → task-reason-ChpbGtyx.js} +1 -1
- package/dist/web/assets/{team-sheets-Cr0ZTPw3.js → team-sheets-DYCQqa8I.js} +1 -1
- package/dist/web/assets/{textarea-CRzFqL9a.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-CMtpd3Fj.js → useAgentRecords-Hy9nqMs7.js} +1 -1
- package/dist/web/assets/useAgentWorkSummary-mloD4p12.js +1 -0
- package/dist/web/assets/{useApi-CROJJdhE-CRCgNOqq.js → useApi-CROJJdhE-DnUGUb8O.js} +1 -1
- package/dist/web/assets/{useClipboardCopy-DkqKK3wY.js → useClipboardCopy-BTuQMeWI.js} +1 -1
- package/dist/web/assets/{useFocusReturn-BZpVmQnM.js → useFocusReturn-4hUmSzj9.js} +1 -1
- package/dist/web/assets/{useForwardExpose-Di-MnbTz.js → useForwardExpose-BDmW7q7u.js} +1 -1
- package/dist/web/assets/{useForwardPropsEmits-L9XcB5DG.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-CWPiOaDl.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-CWVpSsQ3.js → useProjectAgentRoster-BBmRvcgr.js} +1 -1
- package/dist/web/assets/{useRoutePeek-DxLVksbJ.js → useRoutePeek-CRbCDqsm.js} +1 -1
- package/dist/web/assets/useTeamPeople-D_5cxxf1.js +1 -0
- package/dist/web/assets/{useTeamWork-BTZd_wKs.js → useTeamWork-CXEQwF4n.js} +1 -1
- package/dist/web/assets/{useTypeahead-pEZNpBls.js → useTypeahead-CVYuxPOD.js} +1 -1
- package/dist/web/assets/{utils-BsxOjD1Q.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-db3QWWjt.js → version-1lwoVj6f.js} +1 -1
- package/dist/web/assets/{vue-router-B79HWW1l.js → vue-router-D4_ms6om.js} +1 -1
- package/dist/web/assets/workbench-card-Dt0820yW.css +1 -0
- package/dist/web/index.html +90 -74
- 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 +85 -8
- package/docs/client-links.md +16 -1
- package/docs/employee-agents.md +1 -1
- package/docs/judgment-and-autonomy.md +2 -0
- package/docs/public-personal-architecture.md +1 -1
- package/graph-provider/fuli_graph/app.py +2 -0
- package/graph-provider/fuli_graph/graph_field_contract.py +6 -3
- package/graph-provider/fuli_graph/graph_format_migrations.py +6 -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_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_review.py +65 -2
- package/graph-provider/fuli_graph/knowledge_review_models.py +5 -0
- package/graph-provider/fuli_graph/knowledge_search.py +0 -31
- package/graph-provider/fuli_graph/knowledge_versions.py +12 -1
- package/graph-provider/fuli_graph/models.py +9 -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/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 +15 -2
- 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 +23 -6
- package/skills/flreview/SKILL.md +1 -1
- package/skills/operating-fuli/SKILL.md +39 -12
- 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-installer.js +9 -5
- 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 +34 -9
- 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/turn-records.js +38 -0
- package/src/agents/codex/fla-prompts.js +98 -0
- package/src/agents/codex/lifecycle-hook.js +8 -7
- 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/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-session.js +17 -14
- package/src/conversations/stop-auto-close.js +28 -7
- 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 +38 -36
- package/src/dreaming/scheduler.js +2 -2
- 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/execution-mode.js +1 -1
- package/src/graphiti/federated-application.js +16 -8
- 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 +24 -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 +1 -1
- package/src/graphiti/task-entry-project-scope.js +4 -4
- package/src/graphiti/task-entry-read-only.js +1 -1
- 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 +140 -25
- 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 +16 -0
- 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 +10 -7
- package/src/http/graph-api-router.js +17 -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/retrospectives-api-router.js +18 -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 +85 -21
- package/src/local-runtime/processes.js +15 -2
- package/src/local-runtime/unresponsive-console.js +77 -0
- package/src/mcp/create-mcp-server.js +4 -0
- package/src/mcp/fla-menu-prompts.js +60 -0
- package/src/mcp/runtime.js +11 -3
- package/src/mcp/session-id.js +3 -2
- 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 +2 -2
- package/src/model-backends/adapters/ollama-local-build.js +1 -1
- package/src/model-backends/adapters/openai-chat.js +2 -2
- package/src/model-backends/budget.js +10 -1
- package/src/model-backends/config.js +2 -2
- package/src/model-backends/endpoint-models.js +80 -0
- package/src/model-backends/http.js +3 -1
- package/src/model-backends/keys-http.js +5 -4
- package/src/model-backends/models-http.js +54 -0
- package/src/model-backends/port.js +32 -5
- package/src/model-backends/prompt.js +11 -1
- 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 +1 -1
- package/src/retrospectives/run.js +113 -0
- package/src/retrospectives/runs.js +18 -0
- package/src/retrospectives/scheduler.js +58 -0
- package/src/server/application-lifecycle.js +1 -1
- package/src/server/signal-shutdown.js +31 -0
- package/src/server.js +26 -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 +3 -1
- package/src/system/doctor.js +19 -2
- package/src/system/graph-migration.js +1 -1
- 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 +41 -2
- 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/AgentAppsPage-BYXraPFM.js +0 -1
- package/dist/web/assets/AgentManagement-Bza8k5ra.js +0 -7
- package/dist/web/assets/AgentManagement-CeF4mjtg.css +0 -1
- package/dist/web/assets/AgentMentionCopy-C72hY2QL.js +0 -1
- package/dist/web/assets/AgentMentionCopy-CNKrzZvE.css +0 -1
- package/dist/web/assets/AgentProfilePage-kp7-gRRx.js +0 -5
- package/dist/web/assets/AgentServicesPage-ARIWfmuh.css +0 -1
- package/dist/web/assets/AgentServicesPage-IsGaz7FY.js +0 -1
- package/dist/web/assets/ConnectionsPage-BpvecWXD.js +0 -1
- package/dist/web/assets/ConnectionsPage-Cwt-knQQ.css +0 -1
- package/dist/web/assets/DataFormatPage-dsy8d3oA.js +0 -2
- package/dist/web/assets/DataFormatPage-sSnjjUY4.css +0 -1
- package/dist/web/assets/DebugTurnPage-cIJV7xDW.js +0 -1
- package/dist/web/assets/DebugTurnsPage-B6Te_Alp.js +0 -1
- package/dist/web/assets/EmployeeScopeDialog-CXNZ62Ab.js +0 -1
- package/dist/web/assets/EmployeeScopeDialog-Do5PHQh7.css +0 -1
- package/dist/web/assets/EmployeeWorkbench-DALIO-cM.js +0 -4
- package/dist/web/assets/FieldRoot-DRnAC66O.js +0 -1
- package/dist/web/assets/FlaGrowth-7wlv31Tl.js +0 -1
- package/dist/web/assets/FlaGrowth-BzXY8pcx.css +0 -1
- package/dist/web/assets/FlasPage-BCs1Ffpf.js +0 -1
- package/dist/web/assets/FlasPage-SLQDMv47.css +0 -1
- package/dist/web/assets/InboxPage-Bkx6nIhb.css +0 -1
- package/dist/web/assets/InboxPage-CgJnymOY.js +0 -4
- package/dist/web/assets/KnowledgeItemEditPage-rwpM8cF1.js +0 -1
- package/dist/web/assets/KnowledgeOrganizerPage-7IdnjM3L.js +0 -1
- package/dist/web/assets/KnowledgeOrganizerPage-CNm2jvJZ.css +0 -1
- package/dist/web/assets/KnowledgePage-gxqOIZxf.js +0 -1
- package/dist/web/assets/KnowledgePeek-CQyCxHFj.js +0 -1
- package/dist/web/assets/KnowledgeWorkspace-A7zVb26p.js +0 -4
- package/dist/web/assets/MenuSeparator-quqkZZXY.js +0 -1
- package/dist/web/assets/ModelSettingsPage-B8jC_uew.js +0 -3
- package/dist/web/assets/ModelSettingsPage-DhCn_SF6.css +0 -1
- package/dist/web/assets/OccupationsPage-BVREfX_R.js +0 -1
- package/dist/web/assets/OccupationsPage-Di7B-bPl.css +0 -1
- package/dist/web/assets/OverviewPage-CHyEbdP4.js +0 -1
- package/dist/web/assets/OverviewPage-xdF5g6bZ.css +0 -1
- package/dist/web/assets/PageOutline-BKBQ1T4d.js +0 -1
- package/dist/web/assets/PageOutline-BqVgnlos.css +0 -1
- package/dist/web/assets/PersonalProfilePage-Cxp2gn6J.js +0 -1
- package/dist/web/assets/PersonalProjectsPage-821imOxR.js +0 -1
- package/dist/web/assets/PopperContent-DNqbLkNa.js +0 -1
- package/dist/web/assets/ProfileAuthorChip-7HSHODdR.js +0 -1
- package/dist/web/assets/ProfileAuthorChip-C_0hzDoP.css +0 -1
- package/dist/web/assets/ProjectAgentsPage-DBsXS6Xa.js +0 -5
- package/dist/web/assets/RovingFocusGroup-BB0d3k17.js +0 -1
- package/dist/web/assets/SessionRecordsPage-BMAAtIAt.js +0 -1
- package/dist/web/assets/SettingsPage-BYNEk6BM.js +0 -1
- package/dist/web/assets/SettingsPage-Uj1IpZpS.css +0 -1
- package/dist/web/assets/SharedJefaReportPage-g35o6jUb.js +0 -1
- package/dist/web/assets/TagVocabularyPage-COubNJXz.js +0 -1
- package/dist/web/assets/TaskBlockerClear-B5MpHdlh.js +0 -1
- package/dist/web/assets/TaskBlockerClear-CjSNfpyP.css +0 -1
- package/dist/web/assets/TaskBlockerNotice-CIN0HRiE.js +0 -1
- package/dist/web/assets/TeamCard-CsmWDw2Q.css +0 -1
- package/dist/web/assets/TeamCard-D-kLa5rT.js +0 -1
- package/dist/web/assets/TeamIsland-BIo-l49b.js +0 -9
- package/dist/web/assets/UiIconButton-CCo4NPYv.js +0 -1
- package/dist/web/assets/UiNotice-DGPFbVo7.js +0 -1
- package/dist/web/assets/VirtualDirectoryList-1vLi41SD.css +0 -1
- package/dist/web/assets/VirtualDirectoryList-BkV3gj5E.js +0 -1
- package/dist/web/assets/VisuallyHiddenInput-Bdcr9CwC.js +0 -1
- package/dist/web/assets/WidgetSlot-DFojQaSo.js +0 -2
- package/dist/web/assets/_plugin-vue_export-helper-B9AJmZbc.js +0 -9
- package/dist/web/assets/agent-apps-CKGFfySp.js +0 -1
- package/dist/web/assets/agent-avatar-V6M_DF3r.js +0 -1
- package/dist/web/assets/agent-occupation-PZ2YAIM8.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-DPyLHneg.js +0 -1
- package/dist/web/assets/client-connection-model-vO2cap6a.js +0 -1
- package/dist/web/assets/client-links-store-DMqe0MbK.js +0 -1
- package/dist/web/assets/combobox-zUq9bkyM.js +0 -1
- package/dist/web/assets/console-DaoAO-EO.js +0 -1
- package/dist/web/assets/context-menu-CcGDnF_k.js +0 -1
- package/dist/web/assets/dropdown-menu-CXmMnCBh.js +0 -1
- package/dist/web/assets/fla-mention-D_Qb7VeY.js +0 -1
- package/dist/web/assets/index-B4AMPpl_.css +0 -1
- package/dist/web/assets/index-BYIOAXnn.js +0 -2
- package/dist/web/assets/label-table-BnWNYfyk.js +0 -1
- package/dist/web/assets/model-CDevUwUw.js +0 -1
- package/dist/web/assets/model-P5fSGsiJ.js +0 -1
- package/dist/web/assets/motion-QY5FKKko.js +0 -1
- package/dist/web/assets/occupation-catalog-uDDhZwKK.js +0 -1
- package/dist/web/assets/person-profile-DXXfpvta.js +0 -1
- package/dist/web/assets/popup-host-Bmvrf-2t.js +0 -1
- package/dist/web/assets/profile-model-6gTmScHC.js +0 -1
- package/dist/web/assets/quick-edit-api-WLh_88w6.js +0 -1
- package/dist/web/assets/radio-group-B4r78nDh.js +0 -1
- package/dist/web/assets/roundtable-live-DFeDF56c.js +0 -1
- package/dist/web/assets/save-file-rPduHi2f.js +0 -1
- package/dist/web/assets/select-_JO3Mxdp.js +0 -1
- package/dist/web/assets/tabs-BlcZiEMY.js +0 -1
- package/dist/web/assets/ui-BopQuQfc.js +0 -1
- package/dist/web/assets/ui-CoUaCzmO.css +0 -1
- package/dist/web/assets/useAgentWorkSummary-BQbhaHov.js +0 -1
- package/dist/web/assets/useForwardScopeId-CUQFIAIj.js +0 -1
- package/dist/web/assets/useKnowledgeItemPeek-PmQJixw5.js +0 -1
- package/dist/web/assets/useTeamPeople-CDISP0PM.js +0 -1
- package/dist/web/assets/utils-B4pBTmyh.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
|
@@ -19,6 +19,14 @@ import { AgentWorkflowStore } from './store.js';
|
|
|
19
19
|
// did is recorded against the active version.
|
|
20
20
|
const LIMITS = Object.freeze({ id: 200, name: 80, purpose: 300, title: 120, detail: 600, note: 500 });
|
|
21
21
|
const MAX_STEPS = 20;
|
|
22
|
+
// A drafted Skill's work map (rec#78, 11-06 addition 5): what it needs and
|
|
23
|
+
// gives, what it depends on, where it branches, how it is accepted, and at
|
|
24
|
+
// most three questions for the person.
|
|
25
|
+
const WORK_MAP_LISTS = Object.freeze(['inputs', 'outputs', 'dependencies', 'branches', 'acceptance']);
|
|
26
|
+
const WORK_MAP_REQUIRED = Object.freeze(['inputs', 'outputs', 'acceptance']);
|
|
27
|
+
const WORK_MAP_ITEMS = 10;
|
|
28
|
+
const MAX_QUESTIONS = 3;
|
|
29
|
+
export const EXPERIENCE_SOURCE = 'experiences:';
|
|
22
30
|
// Proposed and active workflows one Agent keeps; retired ones do not count.
|
|
23
31
|
const MAX_OPEN_WORKFLOWS = 50;
|
|
24
32
|
const RECENT_RUNS = 5;
|
|
@@ -42,8 +50,9 @@ export function createAgentWorkflows({ path = ':memory:', now = () => new Date()
|
|
|
42
50
|
function propose(owner, input) {
|
|
43
51
|
const proposal = proposalFields(input);
|
|
44
52
|
return store.transaction(() => {
|
|
45
|
-
// One workflow per learned candidate: proposing it again proposes a change of that one.
|
|
46
|
-
const existing = input.workflowId ? owned(owner, input.workflowId)
|
|
53
|
+
// One workflow per learned candidate or set of kept experiences: proposing it again proposes a change of that one.
|
|
54
|
+
const existing = input.workflowId ? owned(owner, input.workflowId)
|
|
55
|
+
: proposal.source.startsWith('candidate:') || proposal.source.startsWith(EXPERIENCE_SOURCE)
|
|
47
56
|
? store.fromSource(owner.personalSpaceId, owner.agentId, proposal.source) : null;
|
|
48
57
|
const time = at();
|
|
49
58
|
if (existing) {
|
|
@@ -165,15 +174,34 @@ function proposalFields(input) {
|
|
|
165
174
|
if (!Array.isArray(steps) || !steps.length || steps.length > MAX_STEPS) {
|
|
166
175
|
throw new InvalidInputError(`steps must list 1 to ${MAX_STEPS} steps`);
|
|
167
176
|
}
|
|
177
|
+
const workMap = input.workMap == null ? null : workMapFields(input.workMap);
|
|
178
|
+
if (source.startsWith(EXPERIENCE_SOURCE) && !workMap) {
|
|
179
|
+
throw new InvalidInputError('A Skill drafted from kept experiences starts with its workMap');
|
|
180
|
+
}
|
|
168
181
|
return { name: requiredString(input.name, 'name', LIMITS.name), purpose: requiredString(input.purpose, 'purpose', LIMITS.purpose),
|
|
169
|
-
source, steps: steps.map((step, index) => {
|
|
182
|
+
source, ...(workMap ? { workMap } : {}), steps: steps.map((step, index) => {
|
|
170
183
|
const detail = optionalText(step?.detail, `steps[${index}].detail`, LIMITS.detail);
|
|
171
184
|
return { title: requiredString(step?.title, `steps[${index}].title`, LIMITS.title), ...(detail ? { detail } : {}) };
|
|
172
185
|
}) };
|
|
173
186
|
}
|
|
174
187
|
|
|
188
|
+
function workMapFields(value) {
|
|
189
|
+
if (!value || typeof value !== 'object' || Array.isArray(value)) throw new InvalidInputError('workMap must be an object');
|
|
190
|
+
const list = (name, maximum) => {
|
|
191
|
+
const items = value[name] ?? [];
|
|
192
|
+
if (!Array.isArray(items) || items.length > maximum) throw new InvalidInputError(`workMap.${name} lists at most ${maximum} items`);
|
|
193
|
+
return items.map((item, index) => requiredString(item, `workMap.${name}[${index}]`, LIMITS.detail));
|
|
194
|
+
};
|
|
195
|
+
const map = Object.fromEntries(WORK_MAP_LISTS.map(name => [name, list(name, WORK_MAP_ITEMS)]));
|
|
196
|
+
for (const name of WORK_MAP_REQUIRED) {
|
|
197
|
+
if (!map[name].length) throw new InvalidInputError(`workMap.${name} needs at least one item`);
|
|
198
|
+
}
|
|
199
|
+
return { ...map, questions: list('questions', MAX_QUESTIONS) };
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// The goal is the purpose; a version with a work map is read with it.
|
|
175
203
|
function readable(version) {
|
|
176
|
-
return { name: version.name, purpose: version.purpose, steps: version.steps };
|
|
204
|
+
return { name: version.name, purpose: version.purpose, ...(version.workMap ? { workMap: version.workMap } : {}), steps: version.steps };
|
|
177
205
|
}
|
|
178
206
|
|
|
179
207
|
function sameContent(version, proposal) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
2
|
|
|
3
|
-
import { openFormattedDatabase, sqliteFormat } from '../../packages/roundtable/src/storage/database-format.js';
|
|
3
|
+
import { immediateTransaction, openFormattedDatabase, sqliteFormat } from '../../packages/roundtable/src/storage/database-format.js';
|
|
4
4
|
|
|
5
5
|
// An Agent's own workflows (rec#60 D-78): the repeated work it does, as named
|
|
6
6
|
// ordered steps. agent_workflows holds each workflow's current state: which
|
|
@@ -45,7 +45,14 @@ export const AGENT_WORKFLOWS_FORMAT = sqliteFormat({
|
|
|
45
45
|
CREATE TRIGGER IF NOT EXISTS agent_workflow_runs_no_update BEFORE UPDATE ON agent_workflow_runs
|
|
46
46
|
BEGIN SELECT RAISE(ABORT, 'agent workflow runs are immutable'); END;
|
|
47
47
|
CREATE TRIGGER IF NOT EXISTS agent_workflow_runs_no_delete BEFORE DELETE ON agent_workflow_runs
|
|
48
|
-
BEGIN SELECT RAISE(ABORT, 'agent workflow runs are immutable'); END
|
|
48
|
+
BEGIN SELECT RAISE(ABORT, 'agent workflow runs are immutable'); END;`,
|
|
49
|
+
migrations: [{
|
|
50
|
+
// A Skill drafted from kept experiences starts with its work map (rec#78, 11-06
|
|
51
|
+
// addition 5); versions proposed before it, and other proposals, keep NULL.
|
|
52
|
+
id: 'agent-workflows/2-work-map', to: 2, kind: 'add-columns', table: 'agent_workflow_versions',
|
|
53
|
+
summary: 'the work map (inputs, outputs, dependencies, branches, acceptance, questions) a version starts with',
|
|
54
|
+
columns: { work_map: 'TEXT' }
|
|
55
|
+
}]
|
|
49
56
|
});
|
|
50
57
|
|
|
51
58
|
export class AgentWorkflowStore {
|
|
@@ -64,9 +71,7 @@ export class AgentWorkflowStore {
|
|
|
64
71
|
}
|
|
65
72
|
|
|
66
73
|
transaction(work) {
|
|
67
|
-
this.db
|
|
68
|
-
try { const result = work(); this.db.exec('COMMIT'); return result; }
|
|
69
|
-
catch (error) { this.db.exec('ROLLBACK'); throw error; }
|
|
74
|
+
return immediateTransaction(this.db, work);
|
|
70
75
|
}
|
|
71
76
|
|
|
72
77
|
get(workflowId) {
|
|
@@ -121,9 +126,10 @@ export class AgentWorkflowStore {
|
|
|
121
126
|
}
|
|
122
127
|
|
|
123
128
|
addVersion(record) {
|
|
124
|
-
this.db.prepare(
|
|
125
|
-
|
|
126
|
-
record.createdAt
|
|
129
|
+
this.db.prepare(`INSERT INTO agent_workflow_versions(workflow_id, version, name, purpose, steps, source, created_by,
|
|
130
|
+
created_at, work_map) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)`).run(record.workflowId, record.version, record.name,
|
|
131
|
+
record.purpose, JSON.stringify(record.steps), record.source, record.createdBy, record.createdAt,
|
|
132
|
+
record.workMap ? JSON.stringify(record.workMap) : null);
|
|
127
133
|
}
|
|
128
134
|
|
|
129
135
|
addDecision({ workflowId, version, decision, decidedAt }) {
|
|
@@ -153,7 +159,8 @@ function workflowView(row) {
|
|
|
153
159
|
function versionView(row) {
|
|
154
160
|
if (!row) return null;
|
|
155
161
|
return { workflowId: row.workflow_id, version: row.version, name: row.name, purpose: row.purpose,
|
|
156
|
-
steps: JSON.parse(row.steps),
|
|
162
|
+
steps: JSON.parse(row.steps), ...(row.work_map ? { workMap: JSON.parse(row.work_map) } : {}), source: row.source,
|
|
163
|
+
createdBy: row.created_by, createdAt: row.created_at };
|
|
157
164
|
}
|
|
158
165
|
|
|
159
166
|
function runView(row) {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { claudeChoiceAnswers } from './claude-code/choice-answers.js';
|
|
2
|
+
import { locatePreferenceTranscript } from './preference-evidence.js';
|
|
3
|
+
|
|
4
|
+
// The person's answers in a client's own question card, for the relay check
|
|
5
|
+
// (agent-delegation/person-words.js): an FLA that asks with the host's
|
|
6
|
+
// single-choice UI can relay that choice as the person's words. Clients whose
|
|
7
|
+
// card answers FULI cannot read return none, and the FLA asks in chat instead.
|
|
8
|
+
const READERS = Object.freeze({ claude_code: claudeChoiceAnswers, claude: claudeChoiceAnswers });
|
|
9
|
+
|
|
10
|
+
export async function nativeChoiceAnswers(task, { env = process.env } = {}) {
|
|
11
|
+
const reader = READERS[task?.sourceApplication];
|
|
12
|
+
if (!reader || typeof task.sessionId !== 'string') return [];
|
|
13
|
+
try {
|
|
14
|
+
const transcript = await locatePreferenceTranscript(task.sourceApplication, task.sessionId, { env });
|
|
15
|
+
return transcript ? await reader(transcript.path, task.sessionId) : [];
|
|
16
|
+
} catch {
|
|
17
|
+
return [];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { open } from 'node:fs/promises';
|
|
2
|
+
|
|
3
|
+
// What the person picked or typed in Claude Code's own question card
|
|
4
|
+
// (AskUserQuestion), read from the session's transcript, which Claude Code
|
|
5
|
+
// writes itself: the answer is a tool result whose `toolUseResult.answers` maps
|
|
6
|
+
// each question to the person's choice. Only answers to an AskUserQuestion of
|
|
7
|
+
// this session's main chain count, and only the transcript's tail is read.
|
|
8
|
+
const TAIL_BYTES = 4 * 1024 * 1024;
|
|
9
|
+
const QUESTION_TOOL = 'AskUserQuestion';
|
|
10
|
+
|
|
11
|
+
export async function claudeChoiceAnswers(path, sessionId) {
|
|
12
|
+
const records = parse(await tail(path));
|
|
13
|
+
const asked = new Set(records.flatMap(record => (record.type === 'assistant' && mainChain(record, sessionId)
|
|
14
|
+
? content(record).filter(block => block?.type === 'tool_use' && block.name === QUESTION_TOOL).map(block => block.id)
|
|
15
|
+
: [])));
|
|
16
|
+
return records.flatMap((record) => {
|
|
17
|
+
if (record.type !== 'user' || !mainChain(record, sessionId)) return [];
|
|
18
|
+
const answered = content(record).some(block => block?.type === 'tool_result' && asked.has(block.tool_use_id));
|
|
19
|
+
const answers = record.toolUseResult?.answers;
|
|
20
|
+
if (!answered || !answers || typeof answers !== 'object') return [];
|
|
21
|
+
return Object.values(answers).filter(text => typeof text === 'string' && text.trim())
|
|
22
|
+
.map(text => ({ text, at: typeof record.timestamp === 'string' ? record.timestamp : null }));
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const mainChain = (record, sessionId) => record.sessionId === sessionId && record.isSidechain !== true;
|
|
27
|
+
const content = record => (Array.isArray(record.message?.content) ? record.message.content : []);
|
|
28
|
+
|
|
29
|
+
async function tail(path) {
|
|
30
|
+
const file = await open(path, 'r');
|
|
31
|
+
try {
|
|
32
|
+
const { size } = await file.stat();
|
|
33
|
+
const length = Math.min(size, TAIL_BYTES);
|
|
34
|
+
const buffer = Buffer.alloc(length);
|
|
35
|
+
await file.read(buffer, 0, length, size - length);
|
|
36
|
+
const text = buffer.toString('utf8');
|
|
37
|
+
// A cut first line is not a record.
|
|
38
|
+
return size > length ? text.slice(text.indexOf('\n') + 1) : text;
|
|
39
|
+
} finally {
|
|
40
|
+
await file.close();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function parse(text) {
|
|
45
|
+
return text.split('\n').flatMap((line) => {
|
|
46
|
+
if (!line.trim()) return [];
|
|
47
|
+
try { return [JSON.parse(line)]; } catch { return []; }
|
|
48
|
+
});
|
|
49
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FLA_MENU_PREFIX } from '../../graphiti/fla-menu.js';
|
|
2
|
+
|
|
3
|
+
// Claude Code puts an MCP prompt chosen from its / menu into the prompt as
|
|
4
|
+
// `/mcp__<server>__<prompt> <text>` (shown in the menu as `/<server>:<prompt>`)
|
|
5
|
+
// and hands the prompt hook that line, not the prompt's expansion. A pick from
|
|
6
|
+
// FULI's /fla menu (src/mcp/fla-menu-prompts.js) becomes `#FLA <menu name>
|
|
7
|
+
// <text>`, which task entry resolves to exactly that FLA, like a typed #FLA.
|
|
8
|
+
// The server is `fuli`, or a plugin's namespaced copy of it.
|
|
9
|
+
const MENU_COMMAND = new RegExp(String.raw`^\/(?:mcp__[\w-]*?fuli__|fuli:)(${FLA_MENU_PREFIX}\S+)(?:\s+([\s\S]*))?$`, 'u');
|
|
10
|
+
|
|
11
|
+
export function claudeFlaMenuPrompt(prompt) {
|
|
12
|
+
const pick = MENU_COMMAND.exec(prompt.trimStart());
|
|
13
|
+
return pick ? `#FLA ${pick[1]}${pick[2]?.trim() ? ` ${pick[2].trim()}` : ''}` : prompt;
|
|
14
|
+
}
|
|
@@ -23,15 +23,18 @@ import { createRuntimeLeaseClient } from '../../adaptive-runtime/lease-client.js
|
|
|
23
23
|
import { openFederatedGraphApplication } from '../../graphiti/federated-application.js';
|
|
24
24
|
import { resolveGraphRuntimeOptions } from '../../graphiti/runtime-config.js';
|
|
25
25
|
import { isMainModule } from '../../system/main-module.js';
|
|
26
|
-
import { recordHookFailure, runtimeConfigPathOf } from '../lifecycle-failure.js';
|
|
26
|
+
import { consoleRecoveryNotice, recordHookFailure, runtimeConfigPathOf } from '../lifecycle-failure.js';
|
|
27
27
|
import { readHookInput } from '../lifecycle-input.js';
|
|
28
28
|
import { stopHookOutcome } from '../../conversations/stop-auto-close.js';
|
|
29
|
+
import { turnFindings } from '../../conversations/turn-findings.js';
|
|
30
|
+
import { claudeTurnRecords } from './turn-records.js';
|
|
29
31
|
import { outdatedMcpNotice, withOutdatedMcpNotice } from '../../mcp/process-registry.js';
|
|
30
32
|
import { FULI_VERSION } from '../../package-metadata.js';
|
|
31
33
|
import { taskSceneInput } from '../../graphiti/task-scene.js';
|
|
32
34
|
import { entryBudget, entryNotice, noteEntryNotice, NO_TASK_AT_DEADLINE, partialEntryText, runWithEntryBudget } from '../../conversations/entry-budget.js';
|
|
33
35
|
import { recordDebugTurn } from '../../debug-turns/recorder.js';
|
|
34
36
|
import { withDebugMarkNotice, withoutDebugMark } from '../../debug-turns/trigger.js';
|
|
37
|
+
import { claudeFlaMenuPrompt } from './fla-menu-command.js';
|
|
35
38
|
|
|
36
39
|
// Claude Code shows the model only a preview (about the first 10,000
|
|
37
40
|
// characters) of a hook context longer than that and saves the rest as a file
|
|
@@ -66,8 +69,9 @@ export async function claudeLifecycleOutput(event, input, invoke, { delivery, cu
|
|
|
66
69
|
const basis = inPlaceRefreshBasis(input);
|
|
67
70
|
if (basis) return withinInlineLimit(event, input,
|
|
68
71
|
await claudeRefreshOutput(event, input, invoke, { delivery, currentTask, onCurrentTask }, basis));
|
|
72
|
+
const prompt = claudeFlaMenuPrompt(withoutDebugMark(input.prompt));
|
|
69
73
|
const context = await invoke('begin_task_context', {
|
|
70
|
-
sessionId, projectPath: input.cwd, taskPrompt:
|
|
74
|
+
sessionId, projectPath: input.cwd, taskPrompt: prompt.slice(0, 8192), ...source, ...taskSceneInput(prompt)
|
|
71
75
|
});
|
|
72
76
|
const entry = compactTaskContext(context);
|
|
73
77
|
return withinInlineLimit(event, input, await preferenceHookOutput(entry, event, input, delivery, 'claude_code',
|
|
@@ -75,7 +79,8 @@ export async function claudeLifecycleOutput(event, input, invoke, { delivery, cu
|
|
|
75
79
|
false, { inlineChars: CLAUDE_ENTRY_INLINE_CHARS }));
|
|
76
80
|
}
|
|
77
81
|
const check = await invoke('verify_task_checkpoint', { sessionId, ...source });
|
|
78
|
-
return stopHookOutcome(check, invoke, source, { reply: input.last_assistant_message
|
|
82
|
+
return stopHookOutcome(check, invoke, source, { reply: input.last_assistant_message,
|
|
83
|
+
findings: () => turnFindings(claudeTurnRecords(input.transcript_path, sessionId)) });
|
|
79
84
|
}
|
|
80
85
|
|
|
81
86
|
// The last guard of the inline limit (rec#11 D-72): a context the bounded
|
|
@@ -109,9 +114,9 @@ const UNCONFIRMED_TURN = Object.freeze({
|
|
|
109
114
|
+ 'FULI: this turn is a host system delivery, but its task ownership is not confirmed; no task was created or switched.'
|
|
110
115
|
});
|
|
111
116
|
|
|
112
|
-
export function claudeLifecycleUnavailable(event, input = null, reason = null, incomplete = '') {
|
|
117
|
+
export function claudeLifecycleUnavailable(event, input = null, reason = null, incomplete = '', recovery = '') {
|
|
113
118
|
const warning = reason ?? 'Fuli context is unavailable; memory recovery and task checkpoint are not verified. '
|
|
114
|
-
+ 'Continue with the user request and use Fuli MCP when it becomes available.';
|
|
119
|
+
+ 'Continue with the user request and use Fuli MCP when it becomes available.' + recovery;
|
|
115
120
|
const sessionId = input?.session_id;
|
|
116
121
|
const fallback = event === 'UserPromptSubmit' && inPlaceRefreshBasis(input) ? ` ${START_NEW_WORK}`
|
|
117
122
|
: typeof sessionId === 'string' && sessionId.trim() && sessionId.length <= 256
|
|
@@ -124,11 +129,11 @@ export function claudeLifecycleUnavailable(event, input = null, reason = null, i
|
|
|
124
129
|
|
|
125
130
|
// At the deadline an entry that already wrote its task delivers its token and
|
|
126
131
|
// what is missing (entry-budget.js); otherwise the fallback says what to fetch.
|
|
127
|
-
export function claudeEntryDeadlineOutput(event, input, budget) {
|
|
132
|
+
export function claudeEntryDeadlineOutput(event, input, budget, recovery = '') {
|
|
128
133
|
const partial = event === 'UserPromptSubmit' ? partialEntryText(budget) : null;
|
|
129
134
|
const output = partial ? { systemMessage: 'Fuli task context is partial: the hook deadline came before it was complete.',
|
|
130
135
|
hookSpecificOutput: { hookEventName: event, additionalContext: partial } }
|
|
131
|
-
: claudeLifecycleUnavailable(event, input, null, NO_TASK_AT_DEADLINE);
|
|
136
|
+
: claudeLifecycleUnavailable(event, input, null, NO_TASK_AT_DEADLINE, recovery);
|
|
132
137
|
return event === 'UserPromptSubmit' ? withOutdatedMcpNotice(output, entryNotice(budget)) : output;
|
|
133
138
|
}
|
|
134
139
|
|
|
@@ -267,9 +272,10 @@ async function main() {
|
|
|
267
272
|
// The entry's own time ends where its requests are cancelled.
|
|
268
273
|
const abortAfterMs = Math.max(1, timeoutMs - 1500);
|
|
269
274
|
const budget = entryBudget(abortAfterMs);
|
|
275
|
+
const recovery = () => consoleRecoveryNotice(runtimeConfigPathOf(args));
|
|
270
276
|
const deadline = setTimeout(() => {
|
|
271
277
|
controller.abort();
|
|
272
|
-
emit(claudeEntryDeadlineOutput(event, input, budget), () => process.exit(0));
|
|
278
|
+
emit(claudeEntryDeadlineOutput(event, input, budget, recovery()), () => process.exit(0));
|
|
273
279
|
}, timeoutMs);
|
|
274
280
|
const abort = setTimeout(() => controller.abort(), abortAfterMs);
|
|
275
281
|
try {
|
|
@@ -278,7 +284,8 @@ async function main() {
|
|
|
278
284
|
readInput: async () => { input = await readHookInput(); return input; } }));
|
|
279
285
|
emit(output);
|
|
280
286
|
} catch (error) {
|
|
281
|
-
emit(controller.signal.aborted ? claudeEntryDeadlineOutput(event, input, budget
|
|
287
|
+
emit(controller.signal.aborted ? claudeEntryDeadlineOutput(event, input, budget, recovery())
|
|
288
|
+
: claudeLifecycleUnavailable(event, input, null, '', recovery()));
|
|
282
289
|
recordHookFailure({ runtimeConfigPath: runtimeConfigPathOf(args), client: 'claude_code', event, error,
|
|
283
290
|
sessionId: input?.session_id, startedAt });
|
|
284
291
|
} finally {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { closeSync, fstatSync, openSync, readSync } from 'node:fs';
|
|
2
|
+
import { normalizeClaudeRecord } from './conversation-transcript.js';
|
|
3
|
+
|
|
4
|
+
// The current turn of a Claude Code transcript as normalized records
|
|
5
|
+
// (turn-findings.js): the turn's prompt and everything after it. The prompt is
|
|
6
|
+
// the last user message that is not only a <system-reminder> the host adds
|
|
7
|
+
// mid-turn; a turn the host itself started (a <side-sessions-event>) begins at
|
|
8
|
+
// that note. Only the
|
|
9
|
+
// transcript's tail is read; a turn longer than that is read from where the
|
|
10
|
+
// tail begins. Unreadable or unverified reads as no records.
|
|
11
|
+
const TAIL_BYTES = 1 << 20;
|
|
12
|
+
const REMINDERS_ONLY = /^(?:\s*<system-reminder>[\s\S]*?<\/system-reminder>)+\s*$/u;
|
|
13
|
+
|
|
14
|
+
export function claudeTurnRecords(transcriptPath, sessionId) {
|
|
15
|
+
if (typeof transcriptPath !== 'string' || typeof sessionId !== 'string') return [];
|
|
16
|
+
let text;
|
|
17
|
+
try {
|
|
18
|
+
const fd = openSync(transcriptPath, 'r');
|
|
19
|
+
try {
|
|
20
|
+
const { size } = fstatSync(fd);
|
|
21
|
+
const length = Math.min(size, TAIL_BYTES);
|
|
22
|
+
const buffer = Buffer.alloc(length);
|
|
23
|
+
readSync(fd, buffer, 0, length, size - length);
|
|
24
|
+
text = buffer.toString('utf8');
|
|
25
|
+
if (length < size) text = text.slice(text.indexOf('\n') + 1);
|
|
26
|
+
} finally {
|
|
27
|
+
closeSync(fd);
|
|
28
|
+
}
|
|
29
|
+
} catch {
|
|
30
|
+
return [];
|
|
31
|
+
}
|
|
32
|
+
const lines = text.split('\n').filter(Boolean).map(line => {
|
|
33
|
+
try { return normalizeClaudeRecord(JSON.parse(line), sessionId); } catch { return []; }
|
|
34
|
+
});
|
|
35
|
+
const prompt = lines.findLastIndex(records => records.some(record => record.role === 'user' && record.kind === 'message'
|
|
36
|
+
&& !REMINDERS_ONLY.test(record.content)));
|
|
37
|
+
return lines.slice(Math.max(prompt, 0)).flat();
|
|
38
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { utf8Preview } from '../../text/utf8-preview.js';
|
|
2
|
+
|
|
3
|
+
// The /fla menu in the Codex app (11-08). The app shows no MCP prompts, but
|
|
4
|
+
// lists `<CODEX_HOME>/prompts/*.md` in its / menu as `prompts:<name>` with
|
|
5
|
+
// the file's description, reading the folder when a window starts. A pick
|
|
6
|
+
// sends the file's body, a newline and what the person typed:
|
|
7
|
+
// `#FLA <name>\n<request>`, which task entry resolves like a typed #FLA.
|
|
8
|
+
//
|
|
9
|
+
// FULI writes only through agent-installer (its `prompts` component): this
|
|
10
|
+
// keeps the list the installer manifest gives Codex, and re-applies Codex
|
|
11
|
+
// when the list changes. The installer writes each file with FULI's
|
|
12
|
+
// ownership line, removes the ones FULI no longer lists, skips a name the
|
|
13
|
+
// person's own prompt already has, and deletes FULI's when Codex is
|
|
14
|
+
// disconnected. Until the first read the list is unknown and the manifest
|
|
15
|
+
// says nothing, so no other caller of the installer changes the files.
|
|
16
|
+
|
|
17
|
+
const CHECK_EVERY_MS = 60_000;
|
|
18
|
+
// A Codex FULI is not connected to, or one whose other FULI parts the person
|
|
19
|
+
// changed, is looked at again after this long.
|
|
20
|
+
const RETRY_DISCONNECTED_MS = 10 * 60_000;
|
|
21
|
+
// agent-installer 0.4 refuses a whole manifest with more than 256 prompts,
|
|
22
|
+
// and every client's status, install and repair with it; FULI stays well below.
|
|
23
|
+
const PROMPT_LIMIT = 200;
|
|
24
|
+
// Its description limit, in UTF-16 code units as it counts them.
|
|
25
|
+
const DESCRIPTION_LIMIT = 256;
|
|
26
|
+
|
|
27
|
+
// Menu entries (fla-menu.js) as agent-installer prompts: every built-in
|
|
28
|
+
// role, then the FLAs Codex may continue, most recent first, up to the limit.
|
|
29
|
+
export function codexPromptFiles(entries) {
|
|
30
|
+
const roles = entries.filter(entry => entry.role);
|
|
31
|
+
const flas = entries.filter(entry => !entry.role).slice(0, Math.max(0, PROMPT_LIMIT - roles.length));
|
|
32
|
+
return [...flas, ...roles].map(entry => ({ name: entry.name,
|
|
33
|
+
description: utf8Preview(entry.description, DESCRIPTION_LIMIT, text => text.length), body: entry.text }));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// read(): the menu entries for Codex now (fla-menu-reader.js); [] when off.
|
|
37
|
+
export function createCodexFlaPromptSync({ read, everyMs = CHECK_EVERY_MS, retryDisconnectedMs = RETRY_DISCONNECTED_MS,
|
|
38
|
+
now = Date.now, onError = warnOnce() }) {
|
|
39
|
+
let current = null;
|
|
40
|
+
let applied = null;
|
|
41
|
+
let notBefore = 0;
|
|
42
|
+
|
|
43
|
+
// installer: the client installer port (client-installer.js). True when
|
|
44
|
+
// this list is now Codex's; a list not yet applied is tried again.
|
|
45
|
+
async function sync(installer) {
|
|
46
|
+
const wanted = codexPromptFiles(await read());
|
|
47
|
+
const digest = JSON.stringify([...wanted].sort((a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0)));
|
|
48
|
+
if (digest === applied) return false;
|
|
49
|
+
current = wanted;
|
|
50
|
+
if (now() < notBefore) return false;
|
|
51
|
+
const status = await installer.status();
|
|
52
|
+
if (status.status !== 'available') return false;
|
|
53
|
+
const codex = status.clients.find(client => client.id === 'codex');
|
|
54
|
+
// Connecting Codex later writes this list with everything else; FULI's
|
|
55
|
+
// other Codex parts the person changed are left for the doctor or a
|
|
56
|
+
// reconnect. agent-installer's ClientStatus: `componentStates` holds
|
|
57
|
+
// each part's state (`components` only names the parts).
|
|
58
|
+
const others = (codex?.componentStates ?? []).filter(item => item.component !== 'prompts');
|
|
59
|
+
if (!codex || !['connected', 'update_available'].includes(codex.state)
|
|
60
|
+
|| !others.every(item => ['current', 'unsupported'].includes(item.state))) {
|
|
61
|
+
notBefore = now() + retryDisconnectedMs;
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
const result = await installer.apply(['codex']);
|
|
65
|
+
const written = result?.status === 'available' && !result.problems?.some(problem => problem.client === 'codex');
|
|
66
|
+
if (written) { applied = digest; notBefore = 0; }
|
|
67
|
+
return written;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return {
|
|
71
|
+
// The list the installer manifest gives Codex, or null while unknown.
|
|
72
|
+
prompts: () => current,
|
|
73
|
+
sync,
|
|
74
|
+
start(installer) {
|
|
75
|
+
let running = false;
|
|
76
|
+
const tick = async () => {
|
|
77
|
+
if (running) return;
|
|
78
|
+
running = true;
|
|
79
|
+
try { await sync(installer); } catch (error) { onError(error); } finally { running = false; }
|
|
80
|
+
};
|
|
81
|
+
const timer = setInterval(tick, everyMs);
|
|
82
|
+
timer.unref?.();
|
|
83
|
+
void tick();
|
|
84
|
+
return () => clearInterval(timer);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// A failed check is said in the console's log once, not every minute; a
|
|
90
|
+
// different failure is said again.
|
|
91
|
+
function warnOnce(log = message => console.warn(message)) {
|
|
92
|
+
let last = null;
|
|
93
|
+
return error => {
|
|
94
|
+
const message = `The Codex /fla prompt files were not updated: ${error?.message ?? error}`;
|
|
95
|
+
if (message !== last) log(message);
|
|
96
|
+
last = message;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { randomUUID } from 'node:crypto';
|
|
3
3
|
import { hookFailureCause, PASS_TASK_TOKEN, TASK_RULES_ON_DEMAND, taskClosingInstruction } from '../lifecycle-message.js';
|
|
4
|
-
import { recordHookFailure } from '../lifecycle-failure.js';
|
|
4
|
+
import { consoleRecoveryNotice, recordHookFailure, runtimeConfigPathOf } from '../lifecycle-failure.js';
|
|
5
5
|
import { outdatedMcpNotice, withOutdatedMcpNotice } from '../../mcp/process-registry.js';
|
|
6
6
|
import { FULI_VERSION } from '../../package-metadata.js';
|
|
7
7
|
import { transcriptLifecycle } from '../../conversations/transcript-lifecycle.js';
|
|
@@ -242,12 +242,12 @@ async function closeQuietly(resource) {
|
|
|
242
242
|
|
|
243
243
|
// The cause says whether the hook ran out of time or failed, so a report can
|
|
244
244
|
// tell a slow first start from a broken install without exposing details.
|
|
245
|
-
function codexLifecycleUnavailable(event, input, cause, incomplete = '') {
|
|
245
|
+
function codexLifecycleUnavailable(event, input, cause, incomplete = '', recovery = '') {
|
|
246
246
|
// The person's review line never reaches the model unverified (rec#22).
|
|
247
247
|
if (event === 'UserPromptSubmit' && isCodexReviewCommand(input?.prompt)) {
|
|
248
248
|
return { decision: 'block', reason: CODEX_REVIEW_UNVERIFIED_REASON };
|
|
249
249
|
}
|
|
250
|
-
const warning = `Fuli context is unavailable (${cause}). Continue with the user request; saved context and checkpoint were not verified
|
|
250
|
+
const warning = `Fuli context is unavailable (${cause}). Continue with the user request; saved context and checkpoint were not verified.${recovery}`;
|
|
251
251
|
// A refresh turn is never told to begin a task for "the current user request".
|
|
252
252
|
if (codexRefreshTurn(event, input)) return { systemMessage: warning, hookSpecificOutput: {
|
|
253
253
|
hookEventName: event, additionalContext: `${warning} ${START_NEW_WORK}` } };
|
|
@@ -265,11 +265,11 @@ function codexLifecycleUnavailable(event, input, cause, incomplete = '') {
|
|
|
265
265
|
|
|
266
266
|
// At the deadline an entry that already wrote its task delivers its token and
|
|
267
267
|
// what is missing (entry-budget.js); otherwise the fallback says what to fetch.
|
|
268
|
-
function codexEntryDeadlineOutput(event, input, budget, cause) {
|
|
268
|
+
function codexEntryDeadlineOutput(event, input, budget, cause, recovery = '') {
|
|
269
269
|
const partial = event === 'UserPromptSubmit' && !isCodexReviewCommand(input?.prompt) ? partialEntryText(budget) : null;
|
|
270
270
|
const output = partial ? { systemMessage: `Fuli task context is partial (${cause}).`,
|
|
271
271
|
hookSpecificOutput: { hookEventName: event, additionalContext: partial } }
|
|
272
|
-
: codexLifecycleUnavailable(event, input, cause, NO_TASK_AT_DEADLINE);
|
|
272
|
+
: codexLifecycleUnavailable(event, input, cause, NO_TASK_AT_DEADLINE, recovery);
|
|
273
273
|
return event === 'UserPromptSubmit' ? withOutdatedMcpNotice(output, entryNotice(budget)) : output;
|
|
274
274
|
}
|
|
275
275
|
|
|
@@ -293,14 +293,15 @@ export async function runCodexLifecycleCommand(args, dependencies = {}) {
|
|
|
293
293
|
runtimeConfigPath = options?.runtimeConfigPath ?? null;
|
|
294
294
|
return options;
|
|
295
295
|
};
|
|
296
|
-
const
|
|
296
|
+
const recovery = () => consoleRecoveryNotice(runtimeConfigPath ?? runtimeConfigPathOf(args));
|
|
297
|
+
const unavailable = cause => `${JSON.stringify(codexLifecycleUnavailable(event, input, cause, '', recovery()))}\n`;
|
|
297
298
|
const budget = entryBudget(timeoutMs);
|
|
298
299
|
let cleanup = async () => {};
|
|
299
300
|
let deadline;
|
|
300
301
|
const expired = new Promise(resolve => {
|
|
301
302
|
deadline = setTimeout(async () => {
|
|
302
303
|
controller.abort();
|
|
303
|
-
write(`${JSON.stringify(codexEntryDeadlineOutput(event, input, budget, `no answer within ${timeoutMs} ms
|
|
304
|
+
write(`${JSON.stringify(codexEntryDeadlineOutput(event, input, budget, `no answer within ${timeoutMs} ms`, recovery()))}\n`);
|
|
304
305
|
// A broken dependency must not hold the host open. Give opened leases
|
|
305
306
|
// and connections a bounded chance to close before the process exits.
|
|
306
307
|
let grace;
|
|
@@ -4,7 +4,7 @@ import { callAgentTool } from '../../agent-tools.js';
|
|
|
4
4
|
import { createRuntimeLeaseClient } from '../../adaptive-runtime/lease-client.js';
|
|
5
5
|
import { openFederatedGraphApplication } from '../../graphiti/federated-application.js';
|
|
6
6
|
import { isMainModule } from '../../system/main-module.js';
|
|
7
|
-
import { recordHookFailure, runtimeConfigPathOf } from '../lifecycle-failure.js';
|
|
7
|
+
import { consoleRecoveryNotice, recordHookFailure, runtimeConfigPathOf } from '../lifecycle-failure.js';
|
|
8
8
|
import { readHookInput } from '../lifecycle-input.js';
|
|
9
9
|
import { resolveGraphRuntimeOptions } from '../../graphiti/runtime-config.js';
|
|
10
10
|
import { sessionFuliCommandResult, sessionFuliEntryRefusal, sessionFuliSessionBegan } from '../../conversations/session-fuli-entry.js';
|
|
@@ -129,7 +129,8 @@ async function main() {
|
|
|
129
129
|
await runCursorLifecycleHook(args);
|
|
130
130
|
} catch (error) {
|
|
131
131
|
// Don't print prompts, transcripts, runtime config, paths or credentials.
|
|
132
|
-
const warning = 'Fuli role context is unavailable; check the Provider connection. Memory recovery is not verified.'
|
|
132
|
+
const warning = 'Fuli role context is unavailable; check the Provider connection. Memory recovery is not verified.'
|
|
133
|
+
+ consoleRecoveryNotice(runtimeConfigPathOf(args));
|
|
133
134
|
process.stdout.write(`${JSON.stringify(event === 'beforeSubmitPrompt'
|
|
134
135
|
? { continue: true, user_message: warning }
|
|
135
136
|
: event === 'sessionStart' ? { additional_context: warning } : {})}\n`);
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { sourceConsoleUrl } from '../graphiti/source-marker.js';
|
|
2
2
|
import { agentLabel } from './agent-label.js';
|
|
3
|
+
import { flaAddress } from '../../packages/roundtable/src/roundtable/fla-address.js';
|
|
4
|
+
import { markdownLink } from '../text/markdown-link.js';
|
|
3
5
|
|
|
4
|
-
// The console origin every receipt link opens:
|
|
5
|
-
//
|
|
6
|
+
// The console origin every receipt link opens: always http. Chat clients such as
|
|
7
|
+
// Claude Desktop show fuli:// links but never hand them to the system, so a
|
|
8
|
+
// click did nothing; every client opens a plain web link.
|
|
6
9
|
export function receiptConsoleUrl(application) {
|
|
7
|
-
return application.
|
|
10
|
+
return application.consoleUrl ?? sourceConsoleUrl(null);
|
|
8
11
|
}
|
|
9
12
|
|
|
10
13
|
// The settings page where the person turns recording back on (rec#5 C10-3).
|
|
@@ -33,7 +36,7 @@ export const CONTINUATION_GUIDANCE = 'Use a connected client and the same author
|
|
|
33
36
|
export function agentContinuation(projectId, agentId, conversationId = null) {
|
|
34
37
|
return { personal_project_id: projectId, agent_id: agentId,
|
|
35
38
|
...(conversationId ? { conversation_id: conversationId } : {}),
|
|
36
|
-
prompt:
|
|
39
|
+
prompt: `${flaAddress(agentId)} ` + (projectId
|
|
37
40
|
? `请在 FULI 项目 ${JSON.stringify(projectId)} 对应的工作目录继续工作。`
|
|
38
41
|
: '请在未绑定项目的会话中,以这个全局 FLA 继续工作。')
|
|
39
42
|
+ (conversationId ? `先用当前任务的 taskContextToken 调用 resume_agent_conversation,conversationId=${JSON.stringify(conversationId)},再按需读取上下文。` : '先恢复这个 Agent 在当前范围的记忆和最近会话。'),
|
|
@@ -41,7 +44,7 @@ export function agentContinuation(projectId, agentId, conversationId = null) {
|
|
|
41
44
|
}
|
|
42
45
|
|
|
43
46
|
function agentLink(application, agentId, name, role = null) {
|
|
44
|
-
return
|
|
47
|
+
return markdownLink(receiptText(agentLabel(name, role) || agentId), agentProfileUrl(application, agentId));
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
// One line of literal text in a Markdown receipt.
|
|
@@ -115,7 +118,7 @@ function collaboratorLink(application, item) {
|
|
|
115
118
|
for (const run of item.runs ?? []) {
|
|
116
119
|
const url = receiptSessionUrl(run.session_url);
|
|
117
120
|
const status = { completed: '完成', failed: '失败', cancelled: '取消', blocked: '阻塞', awaiting_review: '待验收' }[run.status];
|
|
118
|
-
if (url) sessions.set(`${run.application}:${run.session_id}`,
|
|
121
|
+
if (url) sessions.set(`${run.application}:${run.session_id}`, markdownLink(`会话${status ? `·${status}` : ''}`, url));
|
|
119
122
|
}
|
|
120
123
|
const omitted = item.runCount - (item.runs?.length ?? 0);
|
|
121
124
|
const detail = [...duties.map(receiptText), ...sessions.values(), ...(omitted > 0 ? [`另${omitted}次`] : [])].join(',');
|
|
@@ -160,7 +163,6 @@ function unassignedReceipt(status, reason) {
|
|
|
160
163
|
unavailable: '分配失败(服务或身份恢复不可用)',
|
|
161
164
|
agent_unavailable: '分配失败(指定 FLA 不可用)',
|
|
162
165
|
agent_not_found: '分配失败(指定 FLA 不存在)',
|
|
163
|
-
ambiguous_agent: '分配待确认(存在同名 FLA)',
|
|
164
166
|
agent_selection_conflict: '分配待确认(FLA 选择冲突)',
|
|
165
167
|
manual_selection: '分配待确认(需要选择负责人)'
|
|
166
168
|
};
|
|
@@ -4,6 +4,7 @@ import { diagnosticEventLog } from '../diagnostics/event-log.js';
|
|
|
4
4
|
import { errorCode } from '../diagnostics/safe-event.js';
|
|
5
5
|
import { resolveGraphRuntimeOptions } from '../graphiti/runtime-config.js';
|
|
6
6
|
import { hookFailureCause } from './lifecycle-message.js';
|
|
7
|
+
import { consoleAutostartNotice } from '../local-runtime/console-autostart-record.js';
|
|
7
8
|
|
|
8
9
|
// A lifecycle hook that failed records it in the data directory's diagnostics
|
|
9
10
|
// log (rec#73), with the same cause its client was shown and the session as
|
|
@@ -20,6 +21,14 @@ export function recordHookFailure({ runtimeConfigPath, client, event, error, ses
|
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
23
|
|
|
24
|
+
// Why client sessions no longer start FULI by themselves (rec#94), appended
|
|
25
|
+
// to every Agent's "FULI unavailable" text; '' when they still do.
|
|
26
|
+
export function consoleRecoveryNotice(runtimeConfigPath) {
|
|
27
|
+
if (typeof runtimeConfigPath !== 'string' || !runtimeConfigPath) return '';
|
|
28
|
+
const notice = consoleAutostartNotice(dirname(runtimeConfigPath));
|
|
29
|
+
return notice ? ` ${notice}` : '';
|
|
30
|
+
}
|
|
31
|
+
|
|
23
32
|
// The runtime configuration a hook process was started with, as the hook
|
|
24
33
|
// itself resolves it; null when even that cannot be resolved.
|
|
25
34
|
export function runtimeConfigPathOf(args, env = process.env) {
|
|
@@ -13,7 +13,8 @@ export function hookFailureCause(error) {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export const PASS_TASK_TOKEN = 'Pass taskContextToken to every FULI call. ';
|
|
16
|
-
|
|
16
|
+
// rec#88: every request re-reads the label, so it says each thing once and briefly.
|
|
17
|
+
export const TASK_RULES_ON_DEMAND = 'Rules are referenced by version: read a fuli://rules/task-entry section only when you must act on it, never for an ordinary task.';
|
|
17
18
|
|
|
18
19
|
// How a hook-delivered task ends, in the entry's own label (rec#47 F1). The
|
|
19
20
|
// entry only references the checkpoint and receipt rules, so the label says
|
|
@@ -27,16 +28,14 @@ export function taskClosingInstruction(entry) {
|
|
|
27
28
|
if (typeof entry?.taskContextToken !== 'string') return '';
|
|
28
29
|
const call = 'checkpoint_task_knowledge with this taskContextToken';
|
|
29
30
|
const checkpoint = entry.checkpoint_required === true ? `Before your final reply, call ${call}. `
|
|
30
|
-
: entry.checkpoint_guidance ? `The Stop hook closes this task
|
|
31
|
-
+ '(knowledge, experience, memory changes, collaborators, a meaningful workLog). ' : '';
|
|
31
|
+
: entry.checkpoint_guidance ? `The Stop hook closes this task; call ${call} only to record something worth keeping. ` : '';
|
|
32
32
|
return checkpoint + taskReceiptInstruction(entry);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
// The receipt sentence alone: a blocked frame keeps it too (preference-lifecycle.js).
|
|
36
36
|
export function taskReceiptInstruction(entry) {
|
|
37
37
|
return entry?.agent_receipt?.required === true && typeof entry.agent_receipt.markdown === 'string'
|
|
38
|
-
? 'End your final reply with agent_receipt.markdown, unchanged
|
|
39
|
-
+ '(a receipt returned by checkpoint_task_knowledge replaces it). ' : '';
|
|
38
|
+
? 'End your final reply with agent_receipt.markdown, unchanged, once (a checkpoint receipt replaces it). ' : '';
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
const DEFAULT_MAX_BYTES = 8_000;
|