fuli-context 0.27.2 → 0.27.4
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/dist/web/assets/{AboutPage-Bgcf03U0.js → AboutPage-DJxp-WMU.js} +1 -1
- package/dist/web/assets/AboutSectionHeading-BUu85T3-.js +1 -0
- package/dist/web/assets/AboutSectionHeading-CaZhhuuu.css +1 -0
- package/dist/web/assets/AgentAppsPage-Di4HU1sH.js +1 -0
- package/dist/web/assets/AgentAvatar-N7IaseYC.js +1 -0
- package/dist/web/assets/AgentAvatar-VUEAsIqM.css +1 -0
- package/dist/web/assets/{AgentHand-BwE2VGth.js → AgentHand-BDCERx8p.js} +1 -1
- package/dist/web/assets/AgentManagement-CJLZoyuq.js +7 -0
- package/dist/web/assets/AgentManagement-Cc00RLSO.css +1 -0
- package/dist/web/assets/{AgentMentionCopy-y3JD1Cef.js → AgentMentionCopy-Cpsy2XwV.js} +1 -1
- package/dist/web/assets/{AgentName-XrBcHq4R.js → AgentName-B150JTrl.js} +1 -1
- package/dist/web/assets/{AgentProfilePage-DE7z980p.js → AgentProfilePage-rckt2qEt.js} +3 -3
- package/dist/web/assets/AgentServicesPage-_rY596Cl.js +1 -0
- package/dist/web/assets/{AppViewerPage-BaKMk9pp.js → AppViewerPage-Kq3r1mwI.js} +1 -1
- package/dist/web/assets/{BackToTop-DITd9y7X.js → BackToTop-Da6u7_d8.js} +1 -1
- package/dist/web/assets/{BoardCardFieldsMenu-CWtHiVR-.js → BoardCardFieldsMenu-CyJSO3vT.js} +1 -1
- package/dist/web/assets/{BoardMoveMenu-CEDdltY7.js → BoardMoveMenu-B_lUROwH.js} +1 -1
- package/dist/web/assets/{Breadcrumb-C98voz9V.js → Breadcrumb-CA0zg3OI.js} +1 -1
- package/dist/web/assets/{CaptureChangePage-CE8tJfiQ.js → CaptureChangePage-nnCFkG4H.js} +1 -1
- package/dist/web/assets/Collection-CL-ehAUe.js +1 -0
- package/dist/web/assets/{CopyFixPrompt-C2hC04lV.js → CopyFixPrompt-Bp3GsUzJ.js} +1 -1
- package/dist/web/assets/{DataFormatPage-BjZkck9o.js → DataFormatPage-COPJnuZH.js} +1 -1
- package/dist/web/assets/DebugTurnPage-CuREiHr-.js +1 -0
- package/dist/web/assets/{DebugTurnsPage-BlDDz1Fk.js → DebugTurnsPage-i2jPDad3.js} +1 -1
- package/dist/web/assets/DialogTitle-aiTJ0Qmu.js +1 -0
- package/dist/web/assets/{EmployeeRedirectPage-CSSuvAqx.js → EmployeeRedirectPage-DPSjSW-l.js} +1 -1
- package/dist/web/assets/EmployeeScopeDialog-Bui2TPpl.js +1 -0
- package/dist/web/assets/{EmployeeWorkbench-DvEojWb7.js → EmployeeWorkbench-DAC8kuJP.js} +1 -1
- package/dist/web/assets/FieldRoot-B2x8LUg_.js +1 -0
- package/dist/web/assets/FlaBlockedTasks-CWa5T5nU.css +1 -0
- package/dist/web/assets/FlaBlockedTasks-Ds1c5xaw.js +1 -0
- package/dist/web/assets/{FlaGrowth-OdlmgEVi.js → FlaGrowth-CJSExsDl.js} +1 -1
- package/dist/web/assets/{FlaOccupationKit-CnouVWnU.js → FlaOccupationKit-yibMGA7g.js} +1 -1
- package/dist/web/assets/{FlaTaskSheets-rSIdCtzz.js → FlaTaskSheets-CJSjxa9s.js} +1 -1
- package/dist/web/assets/{FlasPage-BZ791caF.js → FlasPage-BvIsNjmr.js} +1 -1
- package/dist/web/assets/{GrowthLoading-BYOSvxZY.js → GrowthLoading-Ddj4TqCR.js} +1 -1
- package/dist/web/assets/{HowtoPage-DNTwYQCD.css → HowtoPage-DfHVIb8E.css} +1 -1
- package/dist/web/assets/HowtoPage-kSC2Tym0.js +1 -0
- package/dist/web/assets/{InboxPage-C3cSvJjB.js → InboxPage-Qfx9kB6z.js} +3 -3
- package/dist/web/assets/{KnowledgeDeleteButton-yc8Gi-BH.js → KnowledgeDeleteButton-yq2NE_5V.js} +1 -1
- package/dist/web/assets/{KnowledgeHardDeleteSection-D9Ktc-uC.js → KnowledgeHardDeleteSection-DYLuMTkw.js} +1 -1
- package/dist/web/assets/{KnowledgeItemEditPage-Csy4oOxD.js → KnowledgeItemEditPage-C_6CCT0l.js} +1 -1
- package/dist/web/assets/{KnowledgeItemSummaryCard-BH5UYmde.js → KnowledgeItemSummaryCard-DaS6I6IJ.js} +1 -1
- package/dist/web/assets/KnowledgeOrganizerPage-C0TW5FWc.js +1 -0
- package/dist/web/assets/KnowledgePage-CpU8zlbY.js +1 -0
- package/dist/web/assets/KnowledgePeek-C8KO5NBx.js +1 -0
- package/dist/web/assets/{KnowledgeTurnReceiptPage-Bd_LIdCc.js → KnowledgeTurnReceiptPage-Bss7rO8X.js} +1 -1
- package/dist/web/assets/{KnowledgeWorkspace-Be2gUul5.css → KnowledgeWorkspace-B2YB4aaQ.css} +1 -1
- package/dist/web/assets/KnowledgeWorkspace-NBt_5LEZ.js +4 -0
- package/dist/web/assets/{MeAvatar-CmhuRFOf.js → MeAvatar-ec_0AfqZ.js} +1 -1
- package/dist/web/assets/{MeLink-BesUihiS.js → MeLink-mcOCZh0y.js} +1 -1
- package/dist/web/assets/MenuSeparator-BdUe-nrq.js +1 -0
- package/dist/web/assets/ModelSettingsPage-DG4g9dZG.js +1 -0
- package/dist/web/assets/{NewSessionPanel-Bvp9ElzU.js → NewSessionPanel-Dp9REysi.js} +1 -1
- package/dist/web/assets/{NotFoundPage-BrolI2fz.js → NotFoundPage-mQNgXOdV.js} +1 -1
- package/dist/web/assets/NoticeRow-CVxAQhy5.js +1 -0
- package/dist/web/assets/NoticeRow-ktVO_9Es.css +1 -0
- package/dist/web/assets/OccupationsPage-M2bNGjfX.js +1 -0
- package/dist/web/assets/{PageOutline-DULpqEwg.js → PageOutline-BIuKlaez.js} +1 -1
- package/dist/web/assets/{PageStack-DTzWJuae.js → PageStack-CJdqrH8a.js} +1 -1
- package/dist/web/assets/PersonalProfilePage-CbgimIFG.js +1 -0
- package/dist/web/assets/PersonalProjectsPage-Dm38FUPv.js +1 -0
- package/dist/web/assets/{PinIcon-YYoaYKTx.js → PinIcon-DBS7pHXp.js} +1 -1
- package/dist/web/assets/PopperContent-DyZQrl-r.js +1 -0
- package/dist/web/assets/Presence-wz-KVyjT.js +3 -0
- package/dist/web/assets/{ProfileAuthorChip-BEfiuJbm.js → ProfileAuthorChip-DAY42zZ8.js} +1 -1
- package/dist/web/assets/ProjectAgentsPage-BKWGB-4t.js +5 -0
- package/dist/web/assets/{ProjectJudgmentPolicy-CCzHtmOb.js → ProjectJudgmentPolicy-D1UHlAih.js} +1 -1
- package/dist/web/assets/RequesterModeSelect-BpaRF_th.js +1 -0
- package/dist/web/assets/RequesterModeSelect-DH1PGLmn.css +1 -0
- package/dist/web/assets/RoundtablesPage-9mlvO7FV.js +13 -0
- package/dist/web/assets/{RoundtablesPage-DL-IOngN.css → RoundtablesPage-Cdbl7Tbx.css} +1 -1
- package/dist/web/assets/RovingFocusGroup-CHDkM3pP.js +1 -0
- package/dist/web/assets/RovingFocusItem-H6anRCEm.js +1 -0
- package/dist/web/assets/{SessionMigrationPage-DrK4df0L.js → SessionMigrationPage-DZfyUaJe.js} +1 -1
- package/dist/web/assets/{SessionRecordsPage-CFAgM65g.js → SessionRecordsPage-CK6iztwv.js} +1 -1
- package/dist/web/assets/SettingsPage-CVM1Gw0D.js +1 -0
- package/dist/web/assets/SettingsPage-DqZGF8J1.css +1 -0
- package/dist/web/assets/{SharedJefaReportPage-DbTPYwa_.js → SharedJefaReportPage-cfEk0Tzn.js} +1 -1
- package/dist/web/assets/{StatementCalendarPage-CIo5R14R.js → StatementCalendarPage-OmZa4AdL.js} +1 -1
- package/dist/web/assets/{StatementRows-CubaC9KG.js → StatementRows-Cdv1wlMo.js} +1 -1
- package/dist/web/assets/{TagVocabularyPage-BVlLmKv2.js → TagVocabularyPage-C9pRT-Co.js} +1 -1
- package/dist/web/assets/TaskBlockerClear-BBmPbomO.css +1 -0
- package/dist/web/assets/TaskBlockerClear-BGpJYYbz.js +1 -0
- package/dist/web/assets/TaskBlockerNotice-BtOREiqc.js +1 -0
- package/dist/web/assets/{TaskReason-CrLPeiOg.js → TaskReason-Dys3TUp_.js} +1 -1
- package/dist/web/assets/{TeamCard-SBMJMd7P.js → TeamCard-D7FU45G4.js} +1 -1
- package/dist/web/assets/{TeamCardsWidget-CGLW04TH.js → TeamCardsWidget-hYsXSXcW.js} +1 -1
- package/dist/web/assets/TeamIsland-Bw875ekj.js +9 -0
- package/dist/web/assets/Teleport-DcReQWaw.js +1 -0
- package/dist/web/assets/{TextField-Cd8UOHKv.js → TextField-BO5vPcVo.js} +1 -1
- package/dist/web/assets/TodayPage-D9HV_tMn.js +1 -0
- package/dist/web/assets/TodayPage-uBkMchn5.css +1 -0
- package/dist/web/assets/{TonborgDelegationSwitch-BOidSjkk.js → TonborgDelegationSwitch-TCl6Nu4Q.js} +1 -1
- package/dist/web/assets/{UiChip-B2z0UERX.js → UiChip-BDaNYy7i.js} +1 -1
- package/dist/web/assets/UiDialog-CkrPgXkI.js +1 -0
- package/dist/web/assets/{UiDisclosure-Bw4Wu0Dm.js → UiDisclosure-DHBkq9rj.js} +1 -1
- package/dist/web/assets/{UiIcon-BuaIQ57Z.js → UiIcon-BBBPl7ce.js} +1 -1
- package/dist/web/assets/UiSegmented-EzA-Ehx4.js +1 -0
- package/dist/web/assets/{UiWeight-DpBexUUy.js → UiWeight-EHzBhu5a.js} +1 -1
- package/dist/web/assets/{VirtualDirectoryList-RV2XtTPO.js → VirtualDirectoryList-BJrM_eeP.js} +1 -1
- package/dist/web/assets/VisitRequestDialog-ISewTzM3.css +1 -0
- package/dist/web/assets/VisitRequestDialog-jbgJBF2e.js +1 -0
- package/dist/web/assets/VisitRequestsPage-Bkxxiaxy.js +1 -0
- package/dist/web/assets/VisitRequestsPage-DfIzoLBx.css +1 -0
- package/dist/web/assets/{VisuallyHidden-DciDIEua.js → VisuallyHidden-CgxInDXj.js} +1 -1
- package/dist/web/assets/VisuallyHiddenInput-CaWSS7uB.js +1 -0
- package/dist/web/assets/WidgetSlot-DENSHLjb.js +2 -0
- package/dist/web/assets/WorkbenchListPage-J-UpUosh.js +1 -0
- package/dist/web/assets/_plugin-vue_export-helper-B0wc-mt_.js +9 -0
- package/dist/web/assets/{agent-apps-B_0syRPr.js → agent-apps-BNje45bS.js} +1 -1
- package/dist/web/assets/agent-occupation-aAG5t3l1.js +1 -0
- package/dist/web/assets/{agent-pins-B9wMvxGh.js → agent-pins-BCrkTGGW.js} +1 -1
- package/dist/web/assets/{agent-roster-records-CY0aSUNq.js → agent-roster-records-BFUsBcZY.js} +1 -1
- package/dist/web/assets/{agent-work-summary-Cs8jPFL0.js → agent-work-summary-B_VLOm6o.js} +1 -1
- package/dist/web/assets/{attach-closest-edge-BRDsvYPn.js → attach-closest-edge-BPnS_9Lk.js} +1 -1
- package/dist/web/assets/{attention-store-HMiJ1K6M.js → attention-store-qIzsiW3O.js} +1 -1
- package/dist/web/assets/{badge-jafr8Jg1.js → badge-CtWdRMi-.js} +1 -1
- package/dist/web/assets/{button-d6TCVE0s.js → button-_gyKncGb.js} +1 -1
- package/dist/web/assets/{card-ebnaJXQA.js → card-BYD6uklY.js} +1 -1
- package/dist/web/assets/{catalog-CvdvPGYk.js → catalog-PjA5J9yg.js} +1 -1
- package/dist/web/assets/checkbox-5re4FS0U.js +1 -0
- package/dist/web/assets/{client--hZxcKYo.js → client-LxAXnO12.js} +1 -1
- package/dist/web/assets/{client-links-store-XyR0EzJi.js → client-links-store-CYdBPEgD.js} +1 -1
- package/dist/web/assets/combobox-BPUtDA5_.js +1 -0
- package/dist/web/assets/{console-D597wx3f.js → console-D45-ZZfX.js} +1 -1
- package/dist/web/assets/{conversation-launcher-settings-CFFH9C2y.js → conversation-launcher-settings-BS2bz1uR.js} +1 -1
- package/dist/web/assets/copy-mention-D0xSzmH6.js +1 -0
- package/dist/web/assets/dialog-xaUosJps.js +1 -0
- package/dist/web/assets/{dist-B78L06NL.js → dist-C0lQzDOh.js} +1 -1
- package/dist/web/assets/{dist-Dy5JoHWF.js → dist-C1Hez3C6.js} +1 -1
- package/dist/web/assets/dropdown-menu-8tDY2fah.js +1 -0
- package/dist/web/assets/{field-DeguT8it.js → field-B9eFY0rX.js} +1 -1
- package/dist/web/assets/{format-bytes-Br4RwHnA.js → format-bytes-DHztF0Wp.js} +1 -1
- package/dist/web/assets/hover-card-CCcSIBsB.js +1 -0
- package/dist/web/assets/{identity-V8oA_IuB.js → identity-CW-Srg08.js} +1 -1
- package/dist/web/assets/index-CpxVWv-F.js +24 -0
- package/dist/web/assets/{input-CRCpCN_c.js → input-BiH7RC9P.js} +1 -1
- package/dist/web/assets/label-BdftnoQ0.js +1 -0
- package/dist/web/assets/label-table-CLQKbitJ.js +1 -0
- package/dist/web/assets/{model-BwOv-HBS.js → model-C7tDPa_1.js} +1 -1
- package/dist/web/assets/{model-CB4ObIOH.js → model-Cg5zXaMF.js} +1 -1
- package/dist/web/assets/{model-CwFZ_IgV.js → model-DDyIT1eK.js} +1 -1
- package/dist/web/assets/{model-CjQPAeCy.js → model-DMd25lv5.js} +1 -1
- package/dist/web/assets/{model-C-60EMcI.js → model-DXpi8vqS.js} +1 -1
- package/dist/web/assets/{model-D-vak-m0.js → model-DaJv8e-8.js} +1 -1
- package/dist/web/assets/{model-B4AuKvPj.js → model-Q1SCdf0F.js} +1 -1
- package/dist/web/assets/{model-CUAxIOXR.js → model-qBLcWPQW.js} +1 -1
- package/dist/web/assets/{motion-D5Fs3-ut.js → motion-4AmdlpVT.js} +1 -1
- package/dist/web/assets/{motion-Cr9JChF9.js → motion-D-GVIJyc.js} +1 -1
- package/dist/web/assets/{motion-preference-DgdzdVh8.js → motion-preference-CXHE1-Z7.js} +1 -1
- package/dist/web/assets/{occupation-catalog-DHsjkd_q.js → occupation-catalog-CsWai-cw.js} +1 -1
- package/dist/web/assets/{occupation-kits-BVLLRN4V.js → occupation-kits-CZQzDPeY.js} +1 -1
- package/dist/web/assets/{option-DhAwzags.js → option-B_OFUmRs.js} +1 -1
- package/dist/web/assets/{orchestration-filters-lhR2CHlQ.js → orchestration-filters-DqAPmniI.js} +1 -1
- package/dist/web/assets/{overview-data-QDnygL-x.js → overview-data-BbAd5G_f.js} +1 -1
- package/dist/web/assets/{page-refresh-BVRlo-dI.js → page-refresh-abwcdMEQ.js} +1 -1
- package/dist/web/assets/{page-title-ReSXziuS.js → page-title-cvuGZaZo.js} +1 -1
- package/dist/web/assets/{person-profile-BgUfg57K.js → person-profile-C8eoODdy.js} +1 -1
- package/dist/web/assets/popover-h4zQ7MDI.js +1 -0
- package/dist/web/assets/popup-host-8S4Sf9UR.js +1 -0
- package/dist/web/assets/{preference-conflicts-a-H51vUw.js → preference-conflicts-Cu00Gk8W.js} +1 -1
- package/dist/web/assets/{profile-model-CM98TJsj.js → profile-model-BZIzIQTS.js} +1 -1
- package/dist/web/assets/{project-board-layout-RH6UXkCA.js → project-board-layout-DxdyuEpb.js} +1 -1
- package/dist/web/assets/{project-capture-DcQ8cXIt.js → project-capture-BQ0ryWdP.js} +1 -1
- package/dist/web/assets/{project-origin-BNzeAazi.js → project-origin-CdqHLvij.js} +1 -1
- package/dist/web/assets/{quick-edit-api-COKVNuPk.js → quick-edit-api-sf5vVWXR.js} +1 -1
- package/dist/web/assets/radio-group-BdWVlNgf.js +1 -0
- package/dist/web/assets/{review-api-CAKGInLD.js → review-api-Cbrwrt6C.js} +1 -1
- package/dist/web/assets/{review-list-CbpXvBp-.js → review-list-D18L_t-q.js} +1 -1
- package/dist/web/assets/{review-store-BzrmqVoj.js → review-store-1jNUbNaJ.js} +1 -1
- package/dist/web/assets/{role-names-Ba0c6AbS.js → role-names-CiUKQtV9.js} +1 -1
- package/dist/web/assets/{roundtable-live-CoKmaXKd.js → roundtable-live-BzB34cUe.js} +1 -1
- package/dist/web/assets/{runtime-dom.esm-bundler-CaYBCU9Y.js → runtime-dom.esm-bundler-BwoD95K8.js} +1 -1
- package/dist/web/assets/select-D9sqPsDx.js +1 -0
- package/dist/web/assets/{session-launch-offers-C-oBkMKe.js → session-launch-offers-BOZp9NmT.js} +1 -1
- package/dist/web/assets/{settings-autosave-C3bTildI.js → settings-autosave-F9mwjeN-.js} +1 -1
- package/dist/web/assets/{settings-tabs-C9VDs91j.css → settings-tabs-D8608YHW.css} +1 -1
- package/dist/web/assets/settings-tabs-dWS8xFQR.js +1 -0
- package/dist/web/assets/shared-report-BmpdFBj3.js +3 -0
- package/dist/web/assets/{source-adapters-CunVF9JG.js → source-adapters-CZGvDHoP.js} +1 -1
- package/dist/web/assets/switch-BFhMPFpu.js +1 -0
- package/dist/web/assets/tabs-B6N6pM8p.js +1 -0
- package/dist/web/assets/{task-card-fields-Ce11pWnv.js → task-card-fields-G9NoV8iz.js} +1 -1
- package/dist/web/assets/{task-labels-BulIuDQB.js → task-labels-Y0y3oeAL.js} +1 -1
- package/dist/web/assets/{task-reason-gHlp8KHO.js → task-reason-D84kviwH.js} +1 -1
- package/dist/web/assets/{team-sheets-BzV1WjjK.js → team-sheets-DtMFWcPH.js} +1 -1
- package/dist/web/assets/{textarea-D6czUY3a.js → textarea-8EWEgEpw.js} +1 -1
- package/dist/web/assets/ui-BxmkvkMK.js +1 -0
- package/dist/web/assets/{useAgentRecords-DijrJ79w.js → useAgentRecords-D5CXJVEf.js} +1 -1
- package/dist/web/assets/{useAgentWorkSummary-CUv88AVP.js → useAgentWorkSummary-D1Ep9uAl.js} +1 -1
- package/dist/web/assets/{useApi-CROJJdhE-CxqsMZ6P.js → useApi-CROJJdhE-Cb6lwzpM.js} +1 -1
- package/dist/web/assets/{useClipboardCopy-uGyNKuWB.js → useClipboardCopy-C3PFlW0X.js} +1 -1
- package/dist/web/assets/{useFocusReturn-7BKdKvqF.js → useFocusReturn-B73WeAHQ.js} +1 -1
- package/dist/web/assets/useFormControl-DwHlZ4bV.js +1 -0
- package/dist/web/assets/useForwardExpose-4rpHye8H.js +1 -0
- package/dist/web/assets/{useForwardPropsEmits-BMeknK03.js → useForwardPropsEmits-DX7VZylm.js} +1 -1
- package/dist/web/assets/useForwardScopeId-BJDKoqyi.js +1 -0
- package/dist/web/assets/{useKnowledgeConfirm-mFWI8EbK.js → useKnowledgeConfirm-yhZ8Iqzc.js} +1 -1
- package/dist/web/assets/{useKnowledgeItemPeek-DtazLM2s.js → useKnowledgeItemPeek-D-zThKj5.js} +1 -1
- package/dist/web/assets/useListPages-BNB3C09x.js +1 -0
- package/dist/web/assets/{useMinimumLoadingDisplay-D5UC2KRz.js → useMinimumLoadingDisplay-DzHl6chR.js} +1 -1
- package/dist/web/assets/useNow-ChD63hSg.js +1 -0
- package/dist/web/assets/{usePageTools-BXkR_gpB.js → usePageTools-D3N7UX5-.js} +1 -1
- package/dist/web/assets/usePrimitiveElement-CdgGZRug.js +1 -0
- package/dist/web/assets/{useProjectAgentRoster-blZ5REnH.js → useProjectAgentRoster-BhjNHid8.js} +1 -1
- package/dist/web/assets/{useRoutePeek-D_j5KVFv.js → useRoutePeek-C2k0liTX.js} +1 -1
- package/dist/web/assets/{useTeamWork-e57CKhLW.js → useTeamWork-Bo2hjiA1.js} +1 -1
- package/dist/web/assets/{useTypeahead-6a1q-4Oq.js → useTypeahead-DTOx7gNa.js} +1 -1
- package/dist/web/assets/{utils-DBsOpQt4.js → utils-DXRJ1hJ4.js} +1 -1
- package/dist/web/assets/utils-DeBPoCtM.js +1 -0
- package/dist/web/assets/{verification-BlF0avgs.js → verification-DRKJF06P.js} +1 -1
- package/dist/web/assets/{version-oG6VyAd6.js → version-B2XiHNBv.js} +1 -1
- package/dist/web/assets/{vue-router-CCvxNose.js → vue-router-CbcwRkrV.js} +1 -1
- package/dist/web/assets/{NoticeRow-DD-J76Yo.css → workbench-card-Dt0820yW.css} +1 -1
- package/dist/web/index.html +77 -74
- package/docs/agent-roundtable.md +214 -3
- package/graph-provider/fuli_graph/graph_field_contract.py +2 -0
- package/graph-provider/fuli_graph/graph_format_migrations.py +5 -0
- package/graph-provider/fuli_graph/knowledge_search.py +84 -7
- package/graph-provider/fuli_graph/knowledge_sensitivity.py +105 -0
- package/graph-provider/fuli_graph/knowledge_source_delete_copies.py +36 -0
- package/graph-provider/fuli_graph/models.py +25 -0
- package/graph-provider/fuli_graph/project_agent_remote_origins.py +27 -13
- package/graph-provider/pyproject.toml +1 -1
- package/native/win32/fuli-win-helper.exe +0 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/packages/roundtable/src/agents/claude-code/constrained-run.js +58 -0
- package/packages/roundtable/src/agents/claude-code/wake.js +32 -12
- package/packages/roundtable/src/agents/codex/wake.js +25 -7
- package/packages/roundtable/src/agents/wake-usage.js +14 -0
- package/packages/roundtable/src/host.js +33 -0
- package/packages/roundtable/src/peer/control-cli.js +5 -1
- package/packages/roundtable/src/peer/control.js +10 -3
- package/packages/roundtable/src/peer/coordinator-service.js +30 -13
- package/packages/roundtable/src/peer/coordinator-store.js +11 -4
- package/packages/roundtable/src/peer/lan-addresses.js +8 -2
- package/packages/roundtable/src/peer/nearby-pairing.js +13 -1
- package/packages/roundtable/src/peer/origin-proof.js +17 -2
- package/packages/roundtable/src/peer/peer-port.js +45 -7
- package/packages/roundtable/src/peer/peer-runtime.js +40 -6
- package/packages/roundtable/src/peer/protocol.js +89 -2
- package/packages/roundtable/src/peer/query-answer.js +110 -0
- package/packages/roundtable/src/peer/runner.js +108 -13
- package/packages/roundtable/src/roundtable/constrained-run.js +48 -0
- package/packages/roundtable/src/roundtable/group-discussion.js +1 -1
- package/packages/roundtable/src/roundtable/service.js +120 -21
- package/packages/roundtable/src/roundtable/store.js +14 -0
- package/packages/roundtable/src/roundtable/wake-attempt-store.js +41 -0
- package/packages/roundtable/src/roundtable/wake-claim-release.js +20 -12
- package/packages/roundtable/src/roundtable/wake-failure.js +81 -0
- package/packages/roundtable/src/roundtable/wake-ladder.js +5 -0
- package/packages/roundtable/src/roundtable/wake.js +69 -24
- package/packages/roundtable/src/standalone/host.js +5 -2
- package/skills/capturing-session-knowledge/references/coordination.md +19 -0
- package/skills/operating-fuli/SKILL.md +12 -3
- package/skills/operating-fuli/references/workflow-recipes.md +7 -3
- package/src/agent-apps/host-tools/catalog.js +1 -0
- package/src/agent-kits/fuli-mcp-entry.js +25 -0
- package/src/agent-peer/http.js +15 -1
- package/src/agent-roundtable/tools.js +11 -0
- package/src/agent-tools/interface-catalog.js +21 -6
- package/src/agent-tools/statement-definitions.js +3 -1
- package/src/agents/claude-code/hook-contract.js +29 -0
- package/src/agents/claude-code/lifecycle-event.js +337 -0
- package/src/agents/claude-code/lifecycle-hook.js +10 -296
- package/src/agents/codex/hook-contract.js +31 -0
- package/src/agents/codex/lifecycle-event.js +350 -0
- package/src/agents/codex/lifecycle-hook.js +10 -326
- package/src/agents/lifecycle-events.js +75 -0
- package/src/agents/lifecycle-failure.js +3 -2
- package/src/agents/lifecycle-forwarder.js +268 -0
- package/src/agents/lifecycle-hook-calls.js +93 -0
- package/src/agents/source-applications.js +8 -0
- package/src/agents/token-usage-resolver.js +10 -0
- package/src/data-format/data-newer-than-package.js +65 -0
- package/src/data-format/local-stores.js +4 -1
- package/src/desktop/failed-update-recovery.js +80 -0
- package/src/desktop/macos-app-update.js +86 -22
- package/src/desktop/windows-controller.js +17 -4
- package/src/desktop/windows-installation-context.js +26 -1
- package/src/desktop/windows-installation-switch.js +83 -21
- package/src/desktop/windows-rollback.js +4 -4
- package/src/desktop/windows-tray-update.js +1 -1
- package/src/desktop/windows-update-command.js +4 -1
- package/src/desktop/windows-update.js +4 -4
- package/src/diagnostics/failure-records.js +18 -2
- package/src/diagnostics/query.js +2 -2
- package/src/diagnostics/safe-event.js +38 -12
- package/src/external-knowledge/safe-diagnostic.js +2 -5
- package/src/graphiti/federated-application.js +2 -1
- package/src/graphiti/local-runtimes.js +25 -1
- package/src/graphiti/project-agent-task-sessions.js +1 -8
- package/src/graphiti/roundtable-host.js +62 -0
- package/src/graphiti/runtime-config.js +3 -1
- package/src/graphiti/task-context-entry.js +6 -3
- package/src/guest-access/failed-bearer-limit.js +31 -0
- package/src/guest-access/guest-card.js +22 -0
- package/src/guest-access/guest-mcp.js +34 -0
- package/src/guest-access/guest-routes.js +144 -0
- package/src/guest-access/listener.js +152 -0
- package/src/guest-access/refusal-tally.js +37 -0
- package/src/guest-access/runtime.js +117 -0
- package/src/http/api-router.js +10 -1
- package/src/http/guest-links-api-router.js +42 -0
- package/src/http/lifecycle-hooks-api-router.js +128 -0
- package/src/http/response.js +7 -6
- package/src/http/statement-api-router.js +10 -3
- package/src/http/visitor-access-api-router.js +51 -0
- package/src/judgment/routing.js +6 -1
- package/src/knowledge-impressions/store.js +30 -6
- package/src/local-runtime/console-autostart-record.js +10 -0
- package/src/local-runtime/console-health.js +7 -2
- package/src/local-runtime/lifecycle.js +2 -3
- package/src/mcp/create-mcp-server.js +2 -0
- package/src/mcp/http-session-transport.js +384 -0
- package/src/mcp/remote-http-server.js +27 -357
- package/src/mcp/session-id.js +1 -1
- package/src/mcp/tool-annotations.js +3 -1
- package/src/native-runtime/runtime.js +28 -3
- package/src/native-runtime/windows-processes.js +6 -6
- package/src/presence/windows-helper-pin.js +1 -1
- package/src/server/lan-access.js +43 -9
- package/src/server.js +31 -2
- package/src/setup/graph-runtime.js +10 -6
- package/src/statement/agent-tool.js +16 -8
- package/src/statement/compounding-statement.js +55 -0
- package/src/system/doctor.js +1 -1
- package/src/system/fuli-process-scan.js +81 -0
- package/src/system/system-service.js +2 -2
- package/src/text/control-characters.js +9 -0
- package/src/text/local-paths.js +98 -0
- package/src/text/shareable-text.js +23 -0
- package/src/visit-requests/auto-envelope.js +101 -0
- package/src/visit-requests/git-names.js +10 -0
- package/src/visit-requests/http.js +105 -0
- package/src/visit-requests/peer-entry.js +18 -0
- package/src/visit-requests/records.js +140 -0
- package/src/visit-requests/runner.js +164 -0
- package/src/visit-requests/service.js +575 -0
- package/src/visit-requests/worktree.js +351 -0
- package/src/visitor-access/guest-links.js +75 -0
- package/src/visitor-access/port.js +269 -0
- package/src/visitor-access/rate-limit.js +49 -0
- package/src/visitor-access/shared-project-search.js +129 -0
- package/src/visitor-access/store.js +313 -0
- package/src/whats-new/lines/0.27.3.json +13 -0
- package/src/whats-new/lines/0.27.4.json +13 -0
- package/dist/web/assets/AboutSectionHeading-BaQBY_Xs.js +0 -1
- package/dist/web/assets/AboutSectionHeading-DjXpIV27.css +0 -1
- package/dist/web/assets/AgentAppsPage-DNuujLT2.js +0 -1
- package/dist/web/assets/AgentAvatar-DGXedNUs.js +0 -1
- package/dist/web/assets/AgentAvatar-DbsG1_BY.css +0 -1
- package/dist/web/assets/AgentManagement-2r8DUS1N.js +0 -7
- package/dist/web/assets/AgentManagement-hRkMpjvY.css +0 -1
- package/dist/web/assets/AgentServicesPage-CWfGSxcb.js +0 -1
- package/dist/web/assets/DebugTurnPage-B82geu1y.js +0 -1
- package/dist/web/assets/DialogTitle-fpANsAcy.js +0 -1
- package/dist/web/assets/EmployeeScopeDialog-BoEMQOEj.js +0 -1
- package/dist/web/assets/FieldRoot-D3lnRut5.js +0 -1
- package/dist/web/assets/HowtoPage-lYwzi4Vm.js +0 -1
- package/dist/web/assets/KnowledgeOrganizerPage-BTeQX0gH.js +0 -1
- package/dist/web/assets/KnowledgePage-BuukvNxz.js +0 -1
- package/dist/web/assets/KnowledgePeek-D0pcU7U5.js +0 -1
- package/dist/web/assets/KnowledgeWorkspace-Dr-zYpDQ.js +0 -4
- package/dist/web/assets/MenuSeparator-BGo0DgyF.js +0 -1
- package/dist/web/assets/ModelSettingsPage-CBPwuIBM.js +0 -1
- package/dist/web/assets/NoticeRow-Q9QT5NqB.js +0 -1
- package/dist/web/assets/OccupationsPage-CZCeeihl.js +0 -1
- package/dist/web/assets/PersonalProfilePage-DbXWycCQ.js +0 -1
- package/dist/web/assets/PersonalProjectsPage-pdAJpnZd.js +0 -1
- package/dist/web/assets/PopperContent-CnNwFMIA.js +0 -1
- package/dist/web/assets/Presence-CuIoA2sH.js +0 -3
- package/dist/web/assets/ProjectAgentsPage-BPf2RLsw.js +0 -5
- package/dist/web/assets/RoundtablesPage-BDU4W-bg.js +0 -13
- package/dist/web/assets/RovingFocusGroup-DS4v3bEq.js +0 -1
- package/dist/web/assets/RovingFocusItem-bLEnnw2Y.js +0 -1
- package/dist/web/assets/SettingsPage-CsJxhhsu.js +0 -1
- package/dist/web/assets/SettingsPage-VX_e4ty2.css +0 -1
- package/dist/web/assets/TaskBlockerNotice-YSvmy6B4.js +0 -1
- package/dist/web/assets/TeamIsland-jJKTwCJD.js +0 -9
- package/dist/web/assets/Teleport-CRjWb-eC.js +0 -1
- package/dist/web/assets/TodayPage-BvbZCEFJ.js +0 -1
- package/dist/web/assets/TodayPage-EJ8SWFE0.css +0 -1
- package/dist/web/assets/UiSegmented-DlI1vR3k.js +0 -1
- package/dist/web/assets/VisuallyHiddenInput-mfi7gVBu.js +0 -1
- package/dist/web/assets/WidgetSlot-xFZKjZ5z.js +0 -2
- package/dist/web/assets/WorkbenchListPage-suawrzji.js +0 -1
- package/dist/web/assets/_plugin-vue_export-helper-CYsAcErn.js +0 -9
- package/dist/web/assets/agent-occupation-C-9THmIG.js +0 -1
- package/dist/web/assets/checkbox-CdIozFRY.js +0 -1
- package/dist/web/assets/combobox-DzLSYxyO.js +0 -1
- package/dist/web/assets/copy-mention-CWsw8po1.js +0 -1
- package/dist/web/assets/dialog-SLa8cPbS.js +0 -1
- package/dist/web/assets/dropdown-menu-C-PcZxRY.js +0 -1
- package/dist/web/assets/hover-card-B-H7mMvg.js +0 -1
- package/dist/web/assets/index-DdAVEwQV.js +0 -24
- package/dist/web/assets/label-DwMBzI2m.js +0 -1
- package/dist/web/assets/label-table-DiaZlHIp.js +0 -1
- package/dist/web/assets/popover-UYksnAeH.js +0 -1
- package/dist/web/assets/popup-host-DMoMkD3v.js +0 -1
- package/dist/web/assets/radio-group-DfegNkLG.js +0 -1
- package/dist/web/assets/select-Bq2TQ0Gw.js +0 -1
- package/dist/web/assets/settings-tabs-DFZcxOaQ.js +0 -1
- package/dist/web/assets/shared-report-Ci1jBiYV.js +0 -3
- package/dist/web/assets/switch-DaUSEDq0.js +0 -1
- package/dist/web/assets/tabs-B_7xQRfl.js +0 -1
- package/dist/web/assets/ui-BCHzwL4X.js +0 -1
- package/dist/web/assets/useDirection-Bi78LycK.js +0 -1
- package/dist/web/assets/useForwardScopeId-DHGSyWlZ.js +0 -1
- package/dist/web/assets/usePrimitiveElement-BxOn-Fn_.js +0 -1
- package/dist/web/assets/utils-BQtZ8ZUw.js +0 -1
- package/src/system/mcp-process-scan.js +0 -55
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import { randomUUID } from 'node:crypto';
|
|
2
|
+
import { hookFailureCause, PASS_TASK_TOKEN, TASK_RULES_ON_DEMAND, taskClosingInstruction } from '../lifecycle-message.js';
|
|
3
|
+
import { consoleRecoveryNotice, recordHookFailure, runtimeConfigPathOf } from '../lifecycle-failure.js';
|
|
4
|
+
import { outdatedMcpNotice, withOutdatedMcpNotice } from '../../mcp/process-registry.js';
|
|
5
|
+
import { FULI_VERSION } from '../../package-metadata.js';
|
|
6
|
+
import { transcriptLifecycle } from '../../conversations/transcript-lifecycle.js';
|
|
7
|
+
import { compactTaskContext } from '../../conversations/task-context-view.js';
|
|
8
|
+
import { PREFERENCE_RESET_EVENTS, preferenceHookOutput, preferenceLifecycleOutput } from '../../conversations/preference-lifecycle.js';
|
|
9
|
+
import { isSystemPromptEntry } from '../system-prompt.js';
|
|
10
|
+
import { endTurnsObservedAtEntry, refreshCurrentTaskInPlace, settleHeldTurns, START_NEW_WORK, turnStart,
|
|
11
|
+
unprotectedTurnReason } from '../../conversations/unresolved-turns.js';
|
|
12
|
+
import { transcriptCaptureLedger } from '../../conversations/transcript-capture-gap.js';
|
|
13
|
+
import { transcriptDigest } from '../../conversations/transcript-guard.js';
|
|
14
|
+
import { normalizeCodexRecord, verifyCodexTranscript } from './conversation-transcript.js';
|
|
15
|
+
import { sessionFuliCommandResult, sessionFuliEntryRefusal, sessionFuliOffContext, sessionFuliSessionBegan }
|
|
16
|
+
from '../../conversations/session-fuli-entry.js';
|
|
17
|
+
|
|
18
|
+
import { callAgentTool } from '../../agent-tools.js';
|
|
19
|
+
import { createRuntimeLeaseClient } from '../../adaptive-runtime/lease-client.js';
|
|
20
|
+
import { openFederatedGraphApplication } from '../../graphiti/federated-application.js';
|
|
21
|
+
import { resolveGraphRuntimeOptions } from '../../graphiti/runtime-config.js';
|
|
22
|
+
import { testToolsEnabled } from '../../app/test-tools.js';
|
|
23
|
+
import { parseHookInput, readHookInput } from '../lifecycle-input.js';
|
|
24
|
+
import { stopHookOutcome } from '../../conversations/stop-auto-close.js';
|
|
25
|
+
import { taskSceneInput } from '../../graphiti/task-scene.js';
|
|
26
|
+
import { entryBudget, entryNotice, noteEntryNotice, NO_TASK_AT_DEADLINE, partialEntryText, runWithEntryBudget } from '../../conversations/entry-budget.js';
|
|
27
|
+
import { recordDebugTurn } from '../../debug-turns/recorder.js';
|
|
28
|
+
import { withDebugMarkNotice, withoutDebugMark } from '../../debug-turns/trigger.js';
|
|
29
|
+
import { codexHookTimeoutMs } from './hook-contract.js';
|
|
30
|
+
|
|
31
|
+
export async function codexStopLifecycleOutput(input, invoke) {
|
|
32
|
+
const sessionId = input?.session_id;
|
|
33
|
+
if (typeof sessionId !== 'string' || !sessionId.trim() || sessionId.length > 256) {
|
|
34
|
+
throw new TypeError('Codex Stop hook requires a host session identifier');
|
|
35
|
+
}
|
|
36
|
+
const check = await invoke('verify_task_checkpoint', {
|
|
37
|
+
sessionId,
|
|
38
|
+
sourceApplication: 'codex',
|
|
39
|
+
sourceSessionId: sessionId
|
|
40
|
+
});
|
|
41
|
+
// Never force another model turn. A hook-delivered task with no checkpoint
|
|
42
|
+
// is closed as honestly reported retain_nothing; others get the reminder.
|
|
43
|
+
return stopHookOutcome(check, invoke, { sourceApplication: 'codex', sourceSessionId: sessionId }, { reply: input?.last_assistant_message });
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export async function codexLifecycleOutput(event, input, invoke, { delivery, currentTask, entryRefusal, onCurrentTask } = {}) {
|
|
47
|
+
if (PREFERENCE_RESET_EVENTS.includes(event)) return preferenceLifecycleOutput(event, input,
|
|
48
|
+
{ sourceApplication: 'codex', delivery, currentTask, invoke });
|
|
49
|
+
if (event === 'Stop') return codexStopLifecycleOutput(input, invoke);
|
|
50
|
+
if (!input?.session_id || typeof input.cwd !== 'string' || typeof input.prompt !== 'string') {
|
|
51
|
+
throw new TypeError('Codex task entry requires session, cwd and prompt');
|
|
52
|
+
}
|
|
53
|
+
// A session FULI is off for (rec#5 C3b) gets no task entry and no refresh.
|
|
54
|
+
const off = await entryRefusal?.();
|
|
55
|
+
if (off) return { hookSpecificOutput: { hookEventName: event, additionalContext: sessionFuliOffContext(off) } };
|
|
56
|
+
if (codexRefreshTurn(event, input)) return refreshCurrentTaskInPlace(event, input, invoke, CODEX_UNRESOLVED_TURNS,
|
|
57
|
+
{ delivery, currentTask, onCurrentTask });
|
|
58
|
+
const context = await invoke('begin_task_context', { sessionId: input.session_id,
|
|
59
|
+
turnId: input.turn_id ?? null, projectPath: input.cwd, taskPrompt: withoutDebugMark(input.prompt).slice(0, 8192),
|
|
60
|
+
sourceApplication: 'codex', sourceSessionId: input.session_id, ...taskSceneInput(withoutDebugMark(input.prompt)),
|
|
61
|
+
// Codex names the session's model in its prompt hook input; a #FLG join records it (rec#129).
|
|
62
|
+
...(typeof input.model === 'string' && input.model.trim() ? { clientModel: input.model.trim().slice(0, 120) } : {}) });
|
|
63
|
+
const entry = compactTaskContext(context);
|
|
64
|
+
return preferenceHookOutput(entry, event, input, delivery, 'codex',
|
|
65
|
+
'Fuli task context. Apply effective_preferences. ' + taskClosingInstruction(entry) + PASS_TASK_TOKEN + TASK_RULES_ON_DEMAND);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export async function runCodexLifecycleHook(args, dependencies = {}) {
|
|
69
|
+
const event = args[args.indexOf('--event') + 1];
|
|
70
|
+
if (!['Stop', 'UserPromptSubmit', ...PREFERENCE_RESET_EVENTS].includes(event)) throw new TypeError('Missing Codex lifecycle event');
|
|
71
|
+
const input = await (dependencies.readInput ?? readHookInput)();
|
|
72
|
+
const write = dependencies.write ?? ((value) => process.stdout.write(value));
|
|
73
|
+
if (dependencies.invoke) {
|
|
74
|
+
const output = await codexLifecycleOutput(event, input, dependencies.invoke);
|
|
75
|
+
write(`${JSON.stringify(output)}\n`);
|
|
76
|
+
return output;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const env = dependencies.env ?? process.env;
|
|
80
|
+
const resolveRuntimeOptions = dependencies.resolveRuntimeOptions ?? resolveGraphRuntimeOptions;
|
|
81
|
+
const { runtimeConfigPath } = resolveRuntimeOptions(
|
|
82
|
+
args, env, dependencies.cwd === undefined ? {} : { setupPaths: { cwd: dependencies.cwd } }
|
|
83
|
+
);
|
|
84
|
+
const ledger = runtimeConfigPath && typeof input?.session_id === 'string' && input.session_id.trim()
|
|
85
|
+
? transcriptCaptureLedger(runtimeConfigPath, input, 'codex') : null;
|
|
86
|
+
// Noted before the entry runs, so an answer at the deadline carries it too.
|
|
87
|
+
const notice = noteEntryNotice(() => outdatedMcpNotice(runtimeConfigPath,
|
|
88
|
+
{ sourceApplication: 'codex', version: FULI_VERSION, sessionId: input?.session_id }));
|
|
89
|
+
// A turn whose ownership cannot be proven is held as unresolved before
|
|
90
|
+
// anything else can fail or return: whatever the read below finds, its
|
|
91
|
+
// Stop neither settles the session's task nor records the turn under it.
|
|
92
|
+
const refreshTurn = codexRefreshTurn(event, input) ? randomUUID() : null;
|
|
93
|
+
if (refreshTurn && !ledger?.holdTurn({ turn: refreshTurn, from: turnStart(input.transcript_path) })) {
|
|
94
|
+
const output = { decision: 'block', reason: UNPROTECTED_TURN };
|
|
95
|
+
write(`${JSON.stringify(output)}\n`);
|
|
96
|
+
return output;
|
|
97
|
+
}
|
|
98
|
+
let app;
|
|
99
|
+
let leases;
|
|
100
|
+
// Also called at the hook's deadline; each is closed once, whichever comes
|
|
101
|
+
// first, so one opened after an early cleanup still closes.
|
|
102
|
+
const closing = new Map();
|
|
103
|
+
const closeOnce = resource => {
|
|
104
|
+
if (resource && !closing.has(resource)) closing.set(resource, closeQuietly(resource));
|
|
105
|
+
return closing.get(resource);
|
|
106
|
+
};
|
|
107
|
+
const cleanup = () => Promise.allSettled([closeOnce(leases), closeOnce(app)]);
|
|
108
|
+
dependencies.onCleanup?.(cleanup);
|
|
109
|
+
try {
|
|
110
|
+
app = (dependencies.openApplication ?? openFederatedGraphApplication)({
|
|
111
|
+
runtimeConfigPath, env
|
|
112
|
+
});
|
|
113
|
+
leases = (dependencies.createLeases ?? createRuntimeLeaseClient)({
|
|
114
|
+
runtimeConfigPath
|
|
115
|
+
});
|
|
116
|
+
const invokeTool = dependencies.callTool ?? callAgentTool;
|
|
117
|
+
const output = await leases.withGraphLease('codex-lifecycle', async () => {
|
|
118
|
+
// The person's fuli line is answered here and never reaches the model.
|
|
119
|
+
const command = event === 'UserPromptSubmit' ? await sessionFuliCommandResult(app, { sessionId: input?.session_id,
|
|
120
|
+
sourceApplication: 'codex', prompt: input?.prompt, projectPath: input?.cwd ?? null }) : null;
|
|
121
|
+
if (codexSessionBegins(event, input)) sessionFuliSessionBegan(app, { sessionId: input.session_id, sourceApplication: 'codex' });
|
|
122
|
+
if (command) return codexSessionCommandOutput(command);
|
|
123
|
+
const call = (name, parameters) => invokeTool(app, name, parameters,
|
|
124
|
+
{ signal: dependencies.signal, testToolsEnabled: testToolsEnabled(env) });
|
|
125
|
+
const currentTask = app.taskContextRegistry?.current?.bind(app.taskContextRegistry);
|
|
126
|
+
const entryRefusal = () => sessionFuliEntryRefusal(app, { sessionId: input.session_id, sourceApplication: 'codex' });
|
|
127
|
+
// A refresh begins no task and claims no transcript boundary. Its turn
|
|
128
|
+
// stays held through a session reset, compaction or FULI going off,
|
|
129
|
+
// until another task, or none, is current at a Stop, or a fresh entry.
|
|
130
|
+
if (refreshTurn) return codexLifecycleOutput(event, input, call, { delivery: app.preferenceDelivery, currentTask,
|
|
131
|
+
entryRefusal, onCurrentTask: task => ledger.ownTurn(refreshTurn, transcriptDigest(task.token)) });
|
|
132
|
+
if (PREFERENCE_RESET_EVENTS.includes(event)) return codexLifecycleOutput(event, input, call,
|
|
133
|
+
{ delivery: app.preferenceDelivery, currentTask });
|
|
134
|
+
const unresolved = event === 'Stop'
|
|
135
|
+
&& await settleHeldTurns(app, ledger, input, currentTask, CODEX_UNRESOLVED_TURNS) === 'held';
|
|
136
|
+
// Turns held when this prompt starts end once it freshly enters a task.
|
|
137
|
+
const held = event === 'UserPromptSubmit' ? ledger?.entrySnapshot() : null;
|
|
138
|
+
let entered = false;
|
|
139
|
+
const lifecycle = await transcriptLifecycle({ application: app, runtimeConfigPath, input, event, sourceApplication: 'codex',
|
|
140
|
+
captureTimeoutMs: dependencies.captureTimeoutMs, signal: dependencies.signal, adapter: CODEX_TRANSCRIPT,
|
|
141
|
+
// An unresolved turn's Stop neither verifies nor closes the task; its sync skips the turn.
|
|
142
|
+
run: onContext => unresolved ? Promise.resolve({}) : codexLifecycleOutput(event, input, async (name, parameters) => {
|
|
143
|
+
const context = await call(name, parameters);
|
|
144
|
+
if (name === 'begin_task_context') { entered = true; onContext(context); }
|
|
145
|
+
return context;
|
|
146
|
+
}, { delivery: app.preferenceDelivery, entryRefusal }) });
|
|
147
|
+
if (entered) await endTurnsObservedAtEntry(ledger, held, input, CODEX_UNRESOLVED_TURNS);
|
|
148
|
+
return lifecycle;
|
|
149
|
+
}, { signal: dependencies.signal });
|
|
150
|
+
const delivered = event === 'UserPromptSubmit'
|
|
151
|
+
? withDebugMarkNotice(withOutdatedMcpNotice(output, notice()), input?.prompt) : output;
|
|
152
|
+
write(`${JSON.stringify(delivered)}\n`);
|
|
153
|
+
// After the host has its answer; a #fulidebug record never changes or delays it.
|
|
154
|
+
await recordDebugTurn({ runtimeConfigPath, sourceApplication: 'codex', event, input, output: delivered, adapter: CODEX_TRANSCRIPT },
|
|
155
|
+
debugTurnLog(dependencies));
|
|
156
|
+
return delivered;
|
|
157
|
+
} catch (error) {
|
|
158
|
+
await recordDebugTurn({ runtimeConfigPath, sourceApplication: 'codex', event, input,
|
|
159
|
+
output: { hookFailed: hookFailureCause(error) }, adapter: CODEX_TRANSCRIPT }, debugTurnLog(dependencies));
|
|
160
|
+
throw error;
|
|
161
|
+
} finally {
|
|
162
|
+
await cleanup();
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
const CODEX_TRANSCRIPT = Object.freeze({ normalize: normalizeCodexRecord, verify: verifyCodexTranscript });
|
|
167
|
+
|
|
168
|
+
// rec#28, from the source at openai/codex deede7201da2 only (no other version
|
|
169
|
+
// and no real client was checked): no field of Codex's hook input proves that
|
|
170
|
+
// the host, not the person, sent a turn. There, UserPromptSubmit input is
|
|
171
|
+
// exactly session_id, turn_id, agent_id, agent_type, transcript_path, cwd,
|
|
172
|
+
// hook_event_name, model, permission_mode and prompt
|
|
173
|
+
// (codex-rs/hooks/src/schema.rs 566-584, deny_unknown_fields; the generated
|
|
174
|
+
// user-prompt-submit.command.input.schema.json has additionalProperties
|
|
175
|
+
// false), with no isMeta or is_meta. The hook runs for every user-input turn
|
|
176
|
+
// (codex-rs/core/src/hook_runtime.rs 677-713), including prompts Codex
|
|
177
|
+
// synthesizes itself such as a review (codex-rs/core/src/session/review.rs
|
|
178
|
+
// 142-150), and nothing in the input tells those apart. So the source of a
|
|
179
|
+
// turn marked isMeta or is_meta is unprovable: it takes the conservative path
|
|
180
|
+
// of unresolved-turns.js, never a trusted shortcut. Every other prompt enters
|
|
181
|
+
// as before.
|
|
182
|
+
function codexRefreshTurn(event, input) {
|
|
183
|
+
return event === 'UserPromptSubmit' && isSystemPromptEntry(input);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// Codex's policy for unresolved turns (unresolved-turns.js). It has no
|
|
187
|
+
// continuedInTurn: no held Codex turn is ever proven an explicit continuation.
|
|
188
|
+
// At deede7201da2 the rollout keeps an MCP call's output (response_item
|
|
189
|
+
// function_call_output) without whether it succeeded
|
|
190
|
+
// (codex-rs/protocol/src/models.rs 2341-2347, success is not serialized), and
|
|
191
|
+
// the records that do carry it depend on the thread's history mode
|
|
192
|
+
// (codex-rs/rollout/src/policy.rs). A held Codex turn therefore ends only
|
|
193
|
+
// when another task, or none, is current at a Stop (its span is skipped,
|
|
194
|
+
// never imported) or when a fresh task entry ends it, and the model is told
|
|
195
|
+
// that a checkpoint does not resolve it. Bilingual: the person reads these in
|
|
196
|
+
// the transcript as well as the model.
|
|
197
|
+
const CODEX_UNRESOLVED_TURNS = Object.freeze({
|
|
198
|
+
sourceApplication: 'codex', adapter: CODEX_TRANSCRIPT,
|
|
199
|
+
unconfirmed: 'FULI:本轮输入带有 isMeta 标记,但 FULI 无法证明它是 Codex 宿主设置的(FULI 核对过的 Codex hook 输入没有这个字段);'
|
|
200
|
+
+ '来源和任务归属都未确认,没有创建或切换任务。 FULI: this turn carries an isMeta mark, but FULI cannot prove the Codex host set it '
|
|
201
|
+
+ '(the Codex hook input FULI checked has no such field); its source and task ownership are not confirmed; no task was created or switched.',
|
|
202
|
+
resolution: 'FULI:下面附上本会话当前任务的上下文,仅供参考,刚刚刷新;它的 taskContextToken 不是本轮已确认的任务。'
|
|
203
|
+
+ '在 Codex 中,用这个 token 调用 checkpoint_task_knowledge 不会解除本轮的未确认状态,本轮也不会因此记到那个任务下;'
|
|
204
|
+
+ '只有另一个任务成为当前任务(你明确开始新任务,或者用户的下一条消息开始新任务)时,本轮的未确认状态才会结束,而且本轮内容不会记入任何任务。 '
|
|
205
|
+
+ 'The current task context of this session follows for reference, refreshed now. Its taskContextToken is not this '
|
|
206
|
+
+ 'turn\'s confirmed task. In Codex, a checkpoint_task_knowledge with that token does not resolve this turn: the turn stays '
|
|
207
|
+
+ 'unconfirmed and is not recorded under that task. The turn is resolved only when another task becomes current (you start '
|
|
208
|
+
+ 'a new task explicitly, or the person\'s next prompt starts one), and its content is then not recorded under any task.'
|
|
209
|
+
});
|
|
210
|
+
const UNPROTECTED_TURN = unprotectedTurnReason({ zh: '它带有无法证明来源的 isMeta 标记',
|
|
211
|
+
en: 'it carries an isMeta mark whose source cannot be proven' });
|
|
212
|
+
|
|
213
|
+
// Codex sends SessionStart source "startup" only for a new thread
|
|
214
|
+
// (openai/codex 87f3c3284e16: codex-rs/core/src/session/session.rs 1974-1977,
|
|
215
|
+
// InitialHistory::New); resume, clear, compact and fork are not taken as proof.
|
|
216
|
+
function codexSessionBegins(event, input) {
|
|
217
|
+
return event === 'SessionStart' && input?.source === 'startup' && typeof input.session_id === 'string';
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// Codex shows a blocked prompt's reason as "Blocked by hook" and keeps the
|
|
221
|
+
// prompt out of the conversation.
|
|
222
|
+
function codexSessionCommandOutput(result) {
|
|
223
|
+
return { decision: 'block', reason: `FULI: ${result.message}` };
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
async function closeQuietly(resource) {
|
|
227
|
+
try {
|
|
228
|
+
await resource?.close();
|
|
229
|
+
} catch {
|
|
230
|
+
// Cleanup diagnostics may contain local paths. The lifecycle adapter fails open.
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
// The cause says whether the hook ran out of time or failed, so a report can
|
|
236
|
+
// tell a slow first start from a broken install without exposing details.
|
|
237
|
+
function codexLifecycleUnavailable(event, input, cause, incomplete = '', recovery = '') {
|
|
238
|
+
const warning = `Fuli context is unavailable (${cause}). Continue with the user request; saved context and checkpoint were not verified.${recovery}`;
|
|
239
|
+
// A refresh turn is never told to begin a task for "the current user request".
|
|
240
|
+
if (codexRefreshTurn(event, input)) return { systemMessage: warning, hookSpecificOutput: {
|
|
241
|
+
hookEventName: event, additionalContext: `${warning} ${START_NEW_WORK}` } };
|
|
242
|
+
const sessionId = input?.session_id;
|
|
243
|
+
if (event !== 'UserPromptSubmit' || typeof sessionId !== 'string' || !sessionId.trim() || sessionId.length > 256) {
|
|
244
|
+
return { systemMessage: warning };
|
|
245
|
+
}
|
|
246
|
+
// The host supplied this identity before the failure. A process-local MCP
|
|
247
|
+
// session cannot replace it when the Agent falls back to the preferences tool.
|
|
248
|
+
const fallback = ` No valid Hook task context was supplied. First call get_collaboration_preferences with sessionId=${JSON.stringify(sessionId)}, projectPath=current working directory and taskPrompt=current user request. Follow checkpoint_required and checkpoint_guidance; use its fresh taskContextToken for checkpoint_task_knowledge with a truthful workLog when there is something to record. Native transcript capture remains unverified; do not reuse an old token or claim this Hook delivered task context.`;
|
|
249
|
+
return { systemMessage: warning, hookSpecificOutput: {
|
|
250
|
+
hookEventName: event, additionalContext: warning + fallback + incomplete
|
|
251
|
+
} };
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// At the deadline an entry that already wrote its task delivers its token and
|
|
255
|
+
// what is missing (entry-budget.js); otherwise the fallback says what to fetch.
|
|
256
|
+
function codexEntryDeadlineOutput(event, input, budget, cause, recovery = '') {
|
|
257
|
+
const partial = event === 'UserPromptSubmit' ? partialEntryText(budget) : null;
|
|
258
|
+
const output = partial ? { systemMessage: `Fuli task context is partial (${cause}).`,
|
|
259
|
+
hookSpecificOutput: { hookEventName: event, additionalContext: partial } }
|
|
260
|
+
: codexLifecycleUnavailable(event, input, cause, NO_TASK_AT_DEADLINE, recovery);
|
|
261
|
+
return event === 'UserPromptSubmit' ? withOutdatedMcpNotice(output, entryNotice(budget)) : output;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export async function runCodexLifecycleCommand(args, dependencies = {}) {
|
|
265
|
+
const event = args[args.indexOf('--event') + 1];
|
|
266
|
+
const timeoutMs = Math.min(codexHookTimeoutMs(args), dependencies.timeoutMs ?? Infinity);
|
|
267
|
+
const controller = new AbortController();
|
|
268
|
+
let emitted = false;
|
|
269
|
+
const write = value => {
|
|
270
|
+
if (emitted) return;
|
|
271
|
+
emitted = true;
|
|
272
|
+
(dependencies.write ?? (value => process.stdout.write(value)))(value);
|
|
273
|
+
};
|
|
274
|
+
let input = null;
|
|
275
|
+
let runtimeConfigPath = null;
|
|
276
|
+
const startedAt = Date.now();
|
|
277
|
+
const readInput = dependencies.readInput ?? readHookInput;
|
|
278
|
+
// The hook's own resolution, kept so a failure is recorded where its data lives.
|
|
279
|
+
const resolveRuntimeOptions = (...resolveArgs) => {
|
|
280
|
+
const options = (dependencies.resolveRuntimeOptions ?? resolveGraphRuntimeOptions)(...resolveArgs);
|
|
281
|
+
runtimeConfigPath = options?.runtimeConfigPath ?? null;
|
|
282
|
+
return options;
|
|
283
|
+
};
|
|
284
|
+
const recovery = () => consoleRecoveryNotice(runtimeConfigPath
|
|
285
|
+
?? runtimeConfigPathOf(args, dependencies.env, dependencies.cwd));
|
|
286
|
+
const unavailable = cause => `${JSON.stringify(codexLifecycleUnavailable(event, input, cause, '', recovery()))}\n`;
|
|
287
|
+
const budget = entryBudget(timeoutMs);
|
|
288
|
+
let cleanup = async () => {};
|
|
289
|
+
let deadline;
|
|
290
|
+
const expired = new Promise(resolve => {
|
|
291
|
+
deadline = setTimeout(async () => {
|
|
292
|
+
controller.abort();
|
|
293
|
+
write(`${JSON.stringify(codexEntryDeadlineOutput(event, input, budget, `no answer within ${timeoutMs} ms`, recovery()))}\n`);
|
|
294
|
+
// A broken dependency must not hold the host open. Give opened leases
|
|
295
|
+
// and connections a bounded chance to close before the process exits.
|
|
296
|
+
let grace;
|
|
297
|
+
await Promise.race([cleanup(), new Promise(done => { grace = setTimeout(done, 250); })]);
|
|
298
|
+
clearTimeout(grace);
|
|
299
|
+
resolve({ timedOut: true });
|
|
300
|
+
}, timeoutMs);
|
|
301
|
+
});
|
|
302
|
+
try {
|
|
303
|
+
const running = runWithEntryBudget(budget, () => runCodexLifecycleHook(args, { ...dependencies, signal: controller.signal, write,
|
|
304
|
+
resolveRuntimeOptions,
|
|
305
|
+
captureTimeoutMs: Math.max(1, Math.min(750, Math.floor(timeoutMs / 4))),
|
|
306
|
+
readInput: async () => { input = await readInput(); return input; },
|
|
307
|
+
onCleanup: close => { cleanup = close; } })).then(() => ({ timedOut: false }), (error) => {
|
|
308
|
+
// Never print prompts, transcripts, paths or credentials.
|
|
309
|
+
write(unavailable(hookFailureCause(error)));
|
|
310
|
+
recordHookFailure({ runtimeConfigPath, client: 'codex', event, error, sessionId: input?.session_id, startedAt });
|
|
311
|
+
return { timedOut: false };
|
|
312
|
+
});
|
|
313
|
+
void running.finally(() => dependencies.onSettled?.());
|
|
314
|
+
return await Promise.race([running, expired]);
|
|
315
|
+
} finally {
|
|
316
|
+
clearTimeout(deadline);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
// The #fulidebug recorder's line goes to the caller's stderr, not this process's.
|
|
321
|
+
function debugTurnLog({ log }) { return log ? { log } : {}; }
|
|
322
|
+
|
|
323
|
+
// One installed hook call (lifecycle-events.js): the command line, the
|
|
324
|
+
// environment it runs with, its working directory and its stdin chunks, to
|
|
325
|
+
// what it prints and its exit code. Nothing here reads this process's argv,
|
|
326
|
+
// environment, working directory or stdin, so the console can run many at once.
|
|
327
|
+
// It answers by the hook's own deadline (or the shorter timeoutMs left of it);
|
|
328
|
+
// at the deadline the work is cancelled and its lease and stores are closed,
|
|
329
|
+
// not awaited. onSettled runs once the work has ended.
|
|
330
|
+
export async function runCodexLifecycleEvent({ argv, env, cwd, stdin, timeoutMs }, { onSettled } = {}) {
|
|
331
|
+
let stdout = '';
|
|
332
|
+
const stderr = [];
|
|
333
|
+
await runCodexLifecycleCommand([...argv], { env, cwd, timeoutMs, onSettled, write: value => { stdout += value; },
|
|
334
|
+
log: line => { stderr.push(`${line}\n`); }, readInput: () => readHookInput(stdin) });
|
|
335
|
+
return { stdout, stderr: stderr.join(''), exitCode: 0 };
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
// What the hook answers when the console took its call and then failed or
|
|
339
|
+
// went silent (lifecycle-forwarder.js): the event may have run there, so it is
|
|
340
|
+
// never run again here.
|
|
341
|
+
export function codexLifecycleEventLost({ argv, env, cwd, stdin }, error) {
|
|
342
|
+
const args = [...argv];
|
|
343
|
+
const event = args[args.indexOf('--event') + 1];
|
|
344
|
+
let input = null;
|
|
345
|
+
try { input = parseHookInput(Buffer.concat(stdin)); } catch { /* answered without a session */ }
|
|
346
|
+
const runtimeConfigPath = runtimeConfigPathOf(args, env, cwd);
|
|
347
|
+
recordHookFailure({ runtimeConfigPath, client: 'codex', event, error, sessionId: input?.session_id });
|
|
348
|
+
const output = codexLifecycleUnavailable(event, input, hookFailureCause(error), '', consoleRecoveryNotice(runtimeConfigPath));
|
|
349
|
+
return { stdout: `${JSON.stringify(output)}\n`, stderr: '', exitCode: 0 };
|
|
350
|
+
}
|