fuli-context 0.27.3 → 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-C-fJv2EQ.js → AboutPage-DJxp-WMU.js} +1 -1
- package/dist/web/assets/{AboutSectionHeading-DLjnjHfb.js → AboutSectionHeading-BUu85T3-.js} +1 -1
- package/dist/web/assets/{AgentAppsPage-CBcUlh8U.js → AgentAppsPage-Di4HU1sH.js} +1 -1
- package/dist/web/assets/{AgentAvatar-Cu_TwSqc.js → AgentAvatar-N7IaseYC.js} +1 -1
- package/dist/web/assets/{AgentHand-1yBhYv72.js → AgentHand-BDCERx8p.js} +1 -1
- package/dist/web/assets/{AgentManagement-D8jHUEWK.js → AgentManagement-CJLZoyuq.js} +1 -1
- package/dist/web/assets/{AgentMentionCopy-BRxaxi6r.js → AgentMentionCopy-Cpsy2XwV.js} +1 -1
- package/dist/web/assets/{AgentName-CL8xix6s.js → AgentName-B150JTrl.js} +1 -1
- package/dist/web/assets/{AgentProfilePage-BosYAypt.js → AgentProfilePage-rckt2qEt.js} +3 -3
- package/dist/web/assets/{AgentServicesPage-BQHw7Cyx.js → AgentServicesPage-_rY596Cl.js} +1 -1
- package/dist/web/assets/{AppViewerPage-CO5-dW38.js → AppViewerPage-Kq3r1mwI.js} +1 -1
- package/dist/web/assets/{BackToTop-dl4Y4CgO.js → BackToTop-Da6u7_d8.js} +1 -1
- package/dist/web/assets/{BoardCardFieldsMenu-BBqsgCq8.js → BoardCardFieldsMenu-CyJSO3vT.js} +1 -1
- package/dist/web/assets/{BoardMoveMenu-Rys8yvXz.js → BoardMoveMenu-B_lUROwH.js} +1 -1
- package/dist/web/assets/{Breadcrumb-DXXN0moP.js → Breadcrumb-CA0zg3OI.js} +1 -1
- package/dist/web/assets/{CaptureChangePage-lNiPS4XI.js → CaptureChangePage-nnCFkG4H.js} +1 -1
- package/dist/web/assets/Collection-CL-ehAUe.js +1 -0
- package/dist/web/assets/{CopyFixPrompt-Cpve4rdS.js → CopyFixPrompt-Bp3GsUzJ.js} +1 -1
- package/dist/web/assets/{DataFormatPage-DpBIwY-n.js → DataFormatPage-COPJnuZH.js} +1 -1
- package/dist/web/assets/{DebugTurnPage-DzJ07GMF.js → DebugTurnPage-CuREiHr-.js} +1 -1
- package/dist/web/assets/{DebugTurnsPage-CNAeNt5i.js → DebugTurnsPage-i2jPDad3.js} +1 -1
- package/dist/web/assets/{DialogTitle-D0EVi01-.js → DialogTitle-aiTJ0Qmu.js} +1 -1
- package/dist/web/assets/{EmployeeRedirectPage-qlH0SVZY.js → EmployeeRedirectPage-DPSjSW-l.js} +1 -1
- package/dist/web/assets/{EmployeeScopeDialog-C4B724Jj.js → EmployeeScopeDialog-Bui2TPpl.js} +1 -1
- package/dist/web/assets/{EmployeeWorkbench-BgpxZ_1F.js → EmployeeWorkbench-DAC8kuJP.js} +1 -1
- package/dist/web/assets/FieldRoot-B2x8LUg_.js +1 -0
- package/dist/web/assets/{FlaBlockedTasks-DGw9I-j7.js → FlaBlockedTasks-Ds1c5xaw.js} +1 -1
- package/dist/web/assets/{FlaGrowth-Ct4GbCJZ.js → FlaGrowth-CJSExsDl.js} +1 -1
- package/dist/web/assets/{FlaOccupationKit-Cbx058JA.js → FlaOccupationKit-yibMGA7g.js} +1 -1
- package/dist/web/assets/{FlaTaskSheets-CoWj7Gw3.js → FlaTaskSheets-CJSjxa9s.js} +1 -1
- package/dist/web/assets/{FlasPage-BGrz_P1x.js → FlasPage-BvIsNjmr.js} +1 -1
- package/dist/web/assets/{GrowthLoading-BHxVzIoM.js → GrowthLoading-Ddj4TqCR.js} +1 -1
- package/dist/web/assets/HowtoPage-kSC2Tym0.js +1 -0
- package/dist/web/assets/{InboxPage-ByZQpihN.js → InboxPage-Qfx9kB6z.js} +3 -3
- package/dist/web/assets/{KnowledgeDeleteButton-dvslN7EO.js → KnowledgeDeleteButton-yq2NE_5V.js} +1 -1
- package/dist/web/assets/{KnowledgeHardDeleteSection-DMARNrze.js → KnowledgeHardDeleteSection-DYLuMTkw.js} +1 -1
- package/dist/web/assets/{KnowledgeItemEditPage-D7X3K-Fu.js → KnowledgeItemEditPage-C_6CCT0l.js} +1 -1
- package/dist/web/assets/{KnowledgeItemSummaryCard-Carpboje.js → KnowledgeItemSummaryCard-DaS6I6IJ.js} +1 -1
- package/dist/web/assets/{KnowledgeOrganizerPage-CdFva4xO.js → KnowledgeOrganizerPage-C0TW5FWc.js} +1 -1
- package/dist/web/assets/KnowledgePage-CpU8zlbY.js +1 -0
- package/dist/web/assets/{KnowledgePeek-C4QSXTOF.js → KnowledgePeek-C8KO5NBx.js} +1 -1
- package/dist/web/assets/{KnowledgeTurnReceiptPage-CY85DtmF.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-WSCaLEJ1.js → MeAvatar-ec_0AfqZ.js} +1 -1
- package/dist/web/assets/{MeLink-rP0IiTaj.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-DNYTQ0Lw.js → NewSessionPanel-Dp9REysi.js} +1 -1
- package/dist/web/assets/{NotFoundPage-BbnR0KYy.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-DQGGceta.js → OccupationsPage-M2bNGjfX.js} +1 -1
- package/dist/web/assets/{PageOutline-nKD_AvCJ.js → PageOutline-BIuKlaez.js} +1 -1
- package/dist/web/assets/{PageStack-BVHOFq7x.js → PageStack-CJdqrH8a.js} +1 -1
- package/dist/web/assets/{PersonalProfilePage-Cm1NxyU0.js → PersonalProfilePage-CbgimIFG.js} +1 -1
- package/dist/web/assets/PersonalProjectsPage-Dm38FUPv.js +1 -0
- package/dist/web/assets/{PinIcon-DxjWqB7x.js → PinIcon-DBS7pHXp.js} +1 -1
- package/dist/web/assets/PopperContent-DyZQrl-r.js +1 -0
- package/dist/web/assets/{Presence-DrSz_UA1.js → Presence-wz-KVyjT.js} +1 -1
- package/dist/web/assets/{ProfileAuthorChip-CN1ZYzKN.js → ProfileAuthorChip-DAY42zZ8.js} +1 -1
- package/dist/web/assets/{ProjectAgentsPage-DMnRnXDT.js → ProjectAgentsPage-BKWGB-4t.js} +1 -1
- package/dist/web/assets/{ProjectJudgmentPolicy-DBszt68M.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-QtNyNaDg.js → RoundtablesPage-9mlvO7FV.js} +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-Chm5L6p4.js → SessionMigrationPage-DZfyUaJe.js} +1 -1
- package/dist/web/assets/{SessionRecordsPage-BHPaCRH-.js → SessionRecordsPage-CK6iztwv.js} +1 -1
- package/dist/web/assets/SettingsPage-CVM1Gw0D.js +1 -0
- package/dist/web/assets/{SettingsPage-CnqtNPWd.css → SettingsPage-DqZGF8J1.css} +1 -1
- package/dist/web/assets/{SharedJefaReportPage-DHD4As4b.js → SharedJefaReportPage-cfEk0Tzn.js} +1 -1
- package/dist/web/assets/{StatementCalendarPage-lkq1OrUT.js → StatementCalendarPage-OmZa4AdL.js} +1 -1
- package/dist/web/assets/{StatementRows-DS-_XbkC.js → StatementRows-Cdv1wlMo.js} +1 -1
- package/dist/web/assets/{TagVocabularyPage-ap97B1fd.js → TagVocabularyPage-C9pRT-Co.js} +1 -1
- package/dist/web/assets/{TaskBlockerClear-xmjIgmON.js → TaskBlockerClear-BGpJYYbz.js} +1 -1
- package/dist/web/assets/{TaskBlockerNotice-D3awZbiX.js → TaskBlockerNotice-BtOREiqc.js} +1 -1
- package/dist/web/assets/{TaskReason-Y_gLRUR4.js → TaskReason-Dys3TUp_.js} +1 -1
- package/dist/web/assets/{TeamCard-C5BOBfgK.js → TeamCard-D7FU45G4.js} +1 -1
- package/dist/web/assets/{TeamCardsWidget-jLieh7GV.js → TeamCardsWidget-hYsXSXcW.js} +1 -1
- package/dist/web/assets/{TeamIsland-C2U6j6W0.js → TeamIsland-Bw875ekj.js} +1 -1
- package/dist/web/assets/{Teleport-RJS88HRO.js → Teleport-DcReQWaw.js} +1 -1
- package/dist/web/assets/{TextField-CwecNrfC.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-C9jrfVCw.js → TonborgDelegationSwitch-TCl6Nu4Q.js} +1 -1
- package/dist/web/assets/{UiChip-DLTDKZh9.js → UiChip-BDaNYy7i.js} +1 -1
- package/dist/web/assets/{UiDialog-u4ZkP4DG.js → UiDialog-CkrPgXkI.js} +1 -1
- package/dist/web/assets/{UiDisclosure-CKVkr79z.js → UiDisclosure-DHBkq9rj.js} +1 -1
- package/dist/web/assets/{UiIcon-D2DJw7hg.js → UiIcon-BBBPl7ce.js} +1 -1
- package/dist/web/assets/{UiSegmented-D6pLjXXW.js → UiSegmented-EzA-Ehx4.js} +1 -1
- package/dist/web/assets/{UiWeight-BOEi9suT.js → UiWeight-EHzBhu5a.js} +1 -1
- package/dist/web/assets/{VirtualDirectoryList-BX3eeyRo.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-DjqI8CEj.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-CFWQ-pVX.js → agent-apps-BNje45bS.js} +1 -1
- package/dist/web/assets/agent-occupation-aAG5t3l1.js +1 -0
- package/dist/web/assets/{agent-pins-XtAvsJ8S.js → agent-pins-BCrkTGGW.js} +1 -1
- package/dist/web/assets/{agent-roster-records-DiZKG26q.js → agent-roster-records-BFUsBcZY.js} +1 -1
- package/dist/web/assets/{agent-work-summary-CvHRy3NR.js → agent-work-summary-B_VLOm6o.js} +1 -1
- package/dist/web/assets/{attach-closest-edge-De5463t-.js → attach-closest-edge-BPnS_9Lk.js} +1 -1
- package/dist/web/assets/{attention-store-CWRvv8xT.js → attention-store-qIzsiW3O.js} +1 -1
- package/dist/web/assets/{badge-CyUHAZlb.js → badge-CtWdRMi-.js} +1 -1
- package/dist/web/assets/{button-DgFpUg62.js → button-_gyKncGb.js} +1 -1
- package/dist/web/assets/{card-BG73LSt9.js → card-BYD6uklY.js} +1 -1
- package/dist/web/assets/{catalog-KaWiF7K5.js → catalog-PjA5J9yg.js} +1 -1
- package/dist/web/assets/checkbox-5re4FS0U.js +1 -0
- package/dist/web/assets/{client-eeoB__-w.js → client-LxAXnO12.js} +1 -1
- package/dist/web/assets/{client-links-store-C1T7b2HQ.js → client-links-store-CYdBPEgD.js} +1 -1
- package/dist/web/assets/combobox-BPUtDA5_.js +1 -0
- package/dist/web/assets/{console-KA3Jxkr4.js → console-D45-ZZfX.js} +1 -1
- package/dist/web/assets/{conversation-launcher-settings-QWrAaAPe.js → conversation-launcher-settings-BS2bz1uR.js} +1 -1
- package/dist/web/assets/copy-mention-D0xSzmH6.js +1 -0
- package/dist/web/assets/{dialog-CPHmFum7.js → dialog-xaUosJps.js} +1 -1
- package/dist/web/assets/{dist-CTCo5IXd.js → dist-C0lQzDOh.js} +1 -1
- package/dist/web/assets/{dist-e1tihV1g.js → dist-C1Hez3C6.js} +1 -1
- package/dist/web/assets/dropdown-menu-8tDY2fah.js +1 -0
- package/dist/web/assets/{field-8F_Pt8vb.js → field-B9eFY0rX.js} +1 -1
- package/dist/web/assets/{format-bytes-DkVJGLsS.js → format-bytes-DHztF0Wp.js} +1 -1
- package/dist/web/assets/{hover-card-Db-Mrxk6.js → hover-card-CCcSIBsB.js} +1 -1
- package/dist/web/assets/{identity-wfQfyysH.js → identity-CW-Srg08.js} +1 -1
- package/dist/web/assets/{index-CRSH-FaE.js → index-CpxVWv-F.js} +3 -3
- package/dist/web/assets/{input-DFTIPfkE.js → input-BiH7RC9P.js} +1 -1
- package/dist/web/assets/{label-BDet7nvg.js → label-BdftnoQ0.js} +1 -1
- package/dist/web/assets/label-table-CLQKbitJ.js +1 -0
- package/dist/web/assets/{model-C7J0jC4U.js → model-C7tDPa_1.js} +1 -1
- package/dist/web/assets/{model-LXhsHZ_S.js → model-Cg5zXaMF.js} +1 -1
- package/dist/web/assets/{model-BwEuimI0.js → model-DDyIT1eK.js} +1 -1
- package/dist/web/assets/{model-Bzgg7OTO.js → model-DMd25lv5.js} +1 -1
- package/dist/web/assets/{model-DFuUc43Z.js → model-DXpi8vqS.js} +1 -1
- package/dist/web/assets/{model-D3j-Q4br.js → model-DaJv8e-8.js} +1 -1
- package/dist/web/assets/{model-DGpMX2GY.js → model-Q1SCdf0F.js} +1 -1
- package/dist/web/assets/{model-WhGp0XZv.js → model-qBLcWPQW.js} +1 -1
- package/dist/web/assets/{motion-0KGuL0P9.js → motion-4AmdlpVT.js} +1 -1
- package/dist/web/assets/{motion-BhDwEDuX.js → motion-D-GVIJyc.js} +1 -1
- package/dist/web/assets/{motion-preference--VYomm-z.js → motion-preference-CXHE1-Z7.js} +1 -1
- package/dist/web/assets/{occupation-catalog-D5SQWfUI.js → occupation-catalog-CsWai-cw.js} +1 -1
- package/dist/web/assets/{occupation-kits-CrqixyUx.js → occupation-kits-CZQzDPeY.js} +1 -1
- package/dist/web/assets/{option-C9CkqCvy.js → option-B_OFUmRs.js} +1 -1
- package/dist/web/assets/{orchestration-filters-DTnWbCEm.js → orchestration-filters-DqAPmniI.js} +1 -1
- package/dist/web/assets/{overview-data-BvW9uhT4.js → overview-data-BbAd5G_f.js} +1 -1
- package/dist/web/assets/{page-refresh-GRJ3nMpT.js → page-refresh-abwcdMEQ.js} +1 -1
- package/dist/web/assets/{page-title-B9HNL7K4.js → page-title-cvuGZaZo.js} +1 -1
- package/dist/web/assets/{person-profile-Cng7edLa.js → person-profile-C8eoODdy.js} +1 -1
- package/dist/web/assets/{popover-BgaSR8Zf.js → popover-h4zQ7MDI.js} +1 -1
- package/dist/web/assets/popup-host-8S4Sf9UR.js +1 -0
- package/dist/web/assets/{preference-conflicts-WphCdbo6.js → preference-conflicts-Cu00Gk8W.js} +1 -1
- package/dist/web/assets/{profile-model-B9K6ylO1.js → profile-model-BZIzIQTS.js} +1 -1
- package/dist/web/assets/{project-board-layout-GxgeqkX4.js → project-board-layout-DxdyuEpb.js} +1 -1
- package/dist/web/assets/{project-capture-C6NQkcJw.js → project-capture-BQ0ryWdP.js} +1 -1
- package/dist/web/assets/{project-origin-DuSzjbhd.js → project-origin-CdqHLvij.js} +1 -1
- package/dist/web/assets/{quick-edit-api-BDFnInRp.js → quick-edit-api-sf5vVWXR.js} +1 -1
- package/dist/web/assets/radio-group-BdWVlNgf.js +1 -0
- package/dist/web/assets/{review-api-D31JYGWJ.js → review-api-Cbrwrt6C.js} +1 -1
- package/dist/web/assets/{review-list-Cvacm108.js → review-list-D18L_t-q.js} +1 -1
- package/dist/web/assets/{review-store-D7_Vfhh7.js → review-store-1jNUbNaJ.js} +1 -1
- package/dist/web/assets/{role-names-DebBvCND.js → role-names-CiUKQtV9.js} +1 -1
- package/dist/web/assets/{roundtable-live-DfN7Sw9Q.js → roundtable-live-BzB34cUe.js} +1 -1
- package/dist/web/assets/{runtime-dom.esm-bundler-DBdCxLeu.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-BO40dDPk.js → session-launch-offers-BOZp9NmT.js} +1 -1
- package/dist/web/assets/{settings-autosave-q7Wr9G3O.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-j27wViAk.js → shared-report-BmpdFBj3.js} +3 -3
- package/dist/web/assets/{source-adapters-D3VpWZ6y.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-CR_cHUml.js → task-card-fields-G9NoV8iz.js} +1 -1
- package/dist/web/assets/{task-labels-C6FR9pf_.js → task-labels-Y0y3oeAL.js} +1 -1
- package/dist/web/assets/{task-reason-C2NjR8__.js → task-reason-D84kviwH.js} +1 -1
- package/dist/web/assets/{team-sheets-5rb7d8An.js → team-sheets-DtMFWcPH.js} +1 -1
- package/dist/web/assets/{textarea-BW51g0FT.js → textarea-8EWEgEpw.js} +1 -1
- package/dist/web/assets/{ui-rJlFkhnh.js → ui-BxmkvkMK.js} +1 -1
- package/dist/web/assets/{useAgentRecords-BDEGuChX.js → useAgentRecords-D5CXJVEf.js} +1 -1
- package/dist/web/assets/{useAgentWorkSummary-B7fcYNAf.js → useAgentWorkSummary-D1Ep9uAl.js} +1 -1
- package/dist/web/assets/{useApi-CROJJdhE-CXkEmQ40.js → useApi-CROJJdhE-Cb6lwzpM.js} +1 -1
- package/dist/web/assets/{useClipboardCopy-CLyPUkax.js → useClipboardCopy-C3PFlW0X.js} +1 -1
- package/dist/web/assets/{useFocusReturn-BzZRnzjC.js → useFocusReturn-B73WeAHQ.js} +1 -1
- package/dist/web/assets/useFormControl-DwHlZ4bV.js +1 -0
- package/dist/web/assets/{useForwardExpose-BFvXozfQ.js → useForwardExpose-4rpHye8H.js} +1 -1
- package/dist/web/assets/{useForwardPropsEmits-BQIBYWrX.js → useForwardPropsEmits-DX7VZylm.js} +1 -1
- package/dist/web/assets/useForwardScopeId-BJDKoqyi.js +1 -0
- package/dist/web/assets/{useKnowledgeConfirm-B7ljY3BE.js → useKnowledgeConfirm-yhZ8Iqzc.js} +1 -1
- package/dist/web/assets/{useKnowledgeItemPeek-W54o0cXF.js → useKnowledgeItemPeek-D-zThKj5.js} +1 -1
- package/dist/web/assets/useListPages-BNB3C09x.js +1 -0
- package/dist/web/assets/{useMinimumLoadingDisplay-i0As_nIh.js → useMinimumLoadingDisplay-DzHl6chR.js} +1 -1
- package/dist/web/assets/{useNow-w9sbWus7.js → useNow-ChD63hSg.js} +1 -1
- package/dist/web/assets/{usePageTools-ChjnsxqE.js → usePageTools-D3N7UX5-.js} +1 -1
- package/dist/web/assets/usePrimitiveElement-CdgGZRug.js +1 -0
- package/dist/web/assets/{useProjectAgentRoster-Cv-2h61l.js → useProjectAgentRoster-BhjNHid8.js} +1 -1
- package/dist/web/assets/{useRoutePeek-6T3XqFw1.js → useRoutePeek-C2k0liTX.js} +1 -1
- package/dist/web/assets/{useTeamWork-rjEihEaF.js → useTeamWork-Bo2hjiA1.js} +1 -1
- package/dist/web/assets/{useTypeahead-BBlzBvAi.js → useTypeahead-DTOx7gNa.js} +1 -1
- package/dist/web/assets/{utils-DVo87S8o.js → utils-DXRJ1hJ4.js} +1 -1
- package/dist/web/assets/utils-DeBPoCtM.js +1 -0
- package/dist/web/assets/{verification-BKmnZihv.js → verification-DRKJF06P.js} +1 -1
- package/dist/web/assets/{version-BYqyCHiB.js → version-B2XiHNBv.js} +1 -1
- package/dist/web/assets/{vue-router-BJZE7CCr.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 +76 -75
- package/docs/agent-roundtable.md +210 -1
- 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 +24 -9
- 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 +14 -2
- package/packages/roundtable/src/peer/lan-addresses.js +8 -2
- package/packages/roundtable/src/peer/peer-port.js +2 -2
- package/packages/roundtable/src/peer/peer-runtime.js +20 -2
- package/packages/roundtable/src/peer/protocol.js +25 -4
- package/packages/roundtable/src/peer/query-answer.js +39 -7
- package/packages/roundtable/src/peer/runner.js +5 -4
- 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 +57 -17
- package/packages/roundtable/src/roundtable/store.js +7 -1
- package/packages/roundtable/src/roundtable/wake-attempt-store.js +21 -6
- package/packages/roundtable/src/roundtable/wake-claim-release.js +20 -12
- package/packages/roundtable/src/roundtable/wake-failure.js +7 -3
- package/packages/roundtable/src/roundtable/wake.js +32 -11
- package/skills/capturing-session-knowledge/references/coordination.md +8 -0
- package/skills/operating-fuli/SKILL.md +8 -1
- package/skills/operating-fuli/references/workflow-recipes.md +4 -0
- package/src/agent-kits/fuli-mcp-entry.js +25 -0
- package/src/agent-roundtable/tools.js +6 -3
- package/src/agent-tools/interface-catalog.js +16 -2
- 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 +1 -1
- package/src/desktop/failed-update-recovery.js +80 -0
- package/src/desktop/macos-app-update.js +86 -22
- 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 +2 -2
- package/src/diagnostics/safe-event.js +34 -0
- package/src/graphiti/federated-application.js +2 -1
- package/src/graphiti/local-runtimes.js +22 -2
- package/src/graphiti/project-agent-task-sessions.js +1 -8
- package/src/graphiti/roundtable-host.js +15 -2
- 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 +8 -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 +29 -15
- 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/http-session-transport.js +384 -0
- package/src/mcp/remote-http-server.js +27 -357
- 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/local-paths.js +61 -11
- 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 +82 -7
- package/src/visitor-access/rate-limit.js +23 -0
- package/src/visitor-access/store.js +124 -3
- package/src/whats-new/lines/0.27.4.json +13 -0
- package/dist/web/assets/FieldRoot-oxmAMICi.js +0 -1
- package/dist/web/assets/HowtoPage-Dx7xGKQi.js +0 -1
- package/dist/web/assets/KnowledgePage-CwrWmdLl.js +0 -1
- package/dist/web/assets/KnowledgeWorkspace-D8Q8usZc.js +0 -4
- package/dist/web/assets/MenuSeparator-C_h65gsb.js +0 -1
- package/dist/web/assets/ModelSettingsPage-B_Udk6b7.js +0 -1
- package/dist/web/assets/NoticeRow-CcQ1J4wZ.js +0 -1
- package/dist/web/assets/PersonalProjectsPage-CgqC4u77.js +0 -1
- package/dist/web/assets/PopperContent-BkTZlJWP.js +0 -1
- package/dist/web/assets/RovingFocusGroup-Dvddk8pN.js +0 -1
- package/dist/web/assets/RovingFocusItem-Ck-FCX8l.js +0 -1
- package/dist/web/assets/SettingsPage-C80ljt40.js +0 -1
- package/dist/web/assets/TodayPage-EJ8SWFE0.css +0 -1
- package/dist/web/assets/TodayPage-wkVzpeI1.js +0 -1
- package/dist/web/assets/VisuallyHiddenInput-Cc2Qp6aL.js +0 -1
- package/dist/web/assets/WidgetSlot-7bCPwUl2.js +0 -2
- package/dist/web/assets/WorkbenchListPage-DlE6S2WC.js +0 -1
- package/dist/web/assets/_plugin-vue_export-helper-BXUcxlz4.js +0 -9
- package/dist/web/assets/agent-occupation-BQG-rvnx.js +0 -1
- package/dist/web/assets/checkbox-DNX0E3Ym.js +0 -1
- package/dist/web/assets/combobox-BG6YUVkp.js +0 -1
- package/dist/web/assets/copy-mention-BwT-8AqP.js +0 -1
- package/dist/web/assets/dropdown-menu-BScsuHhH.js +0 -1
- package/dist/web/assets/label-table-BVh638Sy.js +0 -1
- package/dist/web/assets/popup-host-CFQVWMSj.js +0 -1
- package/dist/web/assets/radio-group-D6RUfdDr.js +0 -1
- package/dist/web/assets/select-C0ecw2Gn.js +0 -1
- package/dist/web/assets/settings-tabs-D7-3akvW.js +0 -1
- package/dist/web/assets/switch-ClI3aPV3.js +0 -1
- package/dist/web/assets/tabs-BYpn35nj.js +0 -1
- package/dist/web/assets/useDirection-hD2Ki6e_.js +0 -1
- package/dist/web/assets/useForwardScopeId-DJpBz5AW.js +0 -1
- package/dist/web/assets/usePrimitiveElement-tPtHrVAh.js +0 -1
- package/dist/web/assets/utils-Bhge2HAf.js +0 -1
- package/src/system/mcp-process-scan.js +0 -55
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { request as httpRequest } from 'node:http';
|
|
3
|
+
import { dirname, join, resolve } from 'node:path';
|
|
4
|
+
|
|
5
|
+
import { checkLocalConsoleHealth } from '../local-runtime/console-health.js';
|
|
6
|
+
import { isProcessAlive } from '../local-runtime/processes.js';
|
|
7
|
+
|
|
8
|
+
// A thin lifecycle hook entry (rec#132 step 1): the hook process imports only
|
|
9
|
+
// Node built-ins, hands the call to the running FULI console of its data
|
|
10
|
+
// directory and prints its answer. Loading the whole hook took about half a
|
|
11
|
+
// second on every prompt; the console has it loaded. When the console cannot
|
|
12
|
+
// take the call, the hook runs it here exactly as before
|
|
13
|
+
// (lifecycle-events.js), so a computer where FULI is not running behaves as
|
|
14
|
+
// it always did. Before that decision the entry loads only this module, its
|
|
15
|
+
// hook contract, the process liveness check and the console health check,
|
|
16
|
+
// which import nothing but Node built-ins (test/lifecycle-hook-forwarding.test.js).
|
|
17
|
+
//
|
|
18
|
+
// When the call runs here instead (the fallback), decided by whether the
|
|
19
|
+
// console may have started it:
|
|
20
|
+
// - nothing sent: no --runtime-config; no running console recorded for the
|
|
21
|
+
// data directory (graph-runtime-state.json, its PID alive, an http URL on
|
|
22
|
+
// 127.0.0.1 or [::1], the hosts the console's route accepts); its
|
|
23
|
+
// /api/health not answering within HEALTH_BUDGET_MS as that PID's console of
|
|
24
|
+
// this FULI version; stdin not closed within STDIN_WAIT_MS or larger than
|
|
25
|
+
// FORWARDED_STDIN_LIMIT; less than MIN_CONSOLE_MS of the deadline left; no
|
|
26
|
+
// connection within CONNECT_BUDGET_MS → run here;
|
|
27
|
+
// - sent but not started: the console answered HOOK_OUTCOME_HEADER "refused"
|
|
28
|
+
// (another version or data directory, too many calls, this session's
|
|
29
|
+
// earlier call still running past its deadline, an unsafe path), answered
|
|
30
|
+
// without that header (a console from before this route, or one reached
|
|
31
|
+
// past startBy), or sent no headers within HEADERS_BUDGET_MS (its
|
|
32
|
+
// JavaScript is blocked: the kernel accepts connections anyway) → run here.
|
|
33
|
+
// The console flushes "ran" in the same turn that starts the call, and only
|
|
34
|
+
// while the connection is open and its hookClock() has not passed the
|
|
35
|
+
// payload's startBy, START_MARGIN_MS before this side stops waiting; this
|
|
36
|
+
// side decides only after reading what already arrived on its socket. A
|
|
37
|
+
// double run needs both processes stalled for START_MARGIN_MS inside that
|
|
38
|
+
// window (the console between its check and its write);
|
|
39
|
+
// - may have started: the connection made, then lost before "ran" arrived
|
|
40
|
+
// (the console may have died or reset it after starting the call);
|
|
41
|
+
// - started ("ran" received): a connection lost after that, no answer by the
|
|
42
|
+
// deadline less ANSWER_MARGIN_MS, or a malformed answer.
|
|
43
|
+
// The last two never run again: a second run repeats the event's writes
|
|
44
|
+
// without anyone seeing it (a prompt's turn gets a new id each run), a lost
|
|
45
|
+
// one is shown in that turn.
|
|
46
|
+
// The turn gets the hook's unavailable answer (lostLifecycleEvent) and the
|
|
47
|
+
// failure is recorded.
|
|
48
|
+
|
|
49
|
+
// Hosts close stdin as soon as they wrote the payload; one that does not is
|
|
50
|
+
// left to the hook's own deadline, which the fallback keeps.
|
|
51
|
+
const STDIN_WAIT_MS = 500;
|
|
52
|
+
// Above the hook's own input limit (lifecycle-input.js, 256 KiB), so the
|
|
53
|
+
// console refuses an oversized payload with the hook's own answer.
|
|
54
|
+
const FORWARDED_STDIN_LIMIT = 512 * 1024;
|
|
55
|
+
const HEALTH_BUDGET_MS = 300;
|
|
56
|
+
// A loopback connection is made or refused in about a millisecond; this only
|
|
57
|
+
// bounds a console whose port is wedged before it accepted anything.
|
|
58
|
+
const CONNECT_BUDGET_MS = 300;
|
|
59
|
+
const HEADERS_BUDGET_MS = 1500;
|
|
60
|
+
// The console starts the call only this long before this side stops waiting
|
|
61
|
+
// for its headers, which leaves their hop here inside the wait.
|
|
62
|
+
const START_MARGIN_MS = 500;
|
|
63
|
+
// The answer is due this long before the hook's deadline (measured from the
|
|
64
|
+
// hook's start), which leaves the lost answer (it loads the hook, ~0.6 s)
|
|
65
|
+
// inside the host's own wait: Claude Code waits 30 s, the deadline is 28 s.
|
|
66
|
+
const ANSWER_MARGIN_MS = 700;
|
|
67
|
+
// The console's own deadline ends this long before the answer is due, for the
|
|
68
|
+
// hop back; with less than MIN_CONSOLE_MS left the call is not forwarded.
|
|
69
|
+
const RETURN_MARGIN_MS = 250;
|
|
70
|
+
const MIN_CONSOLE_MS = 500;
|
|
71
|
+
const MAX_ANSWER_BYTES = 4 * 1024 * 1024;
|
|
72
|
+
|
|
73
|
+
export const LIFECYCLE_HOOK_ROUTE = '/api/lifecycle-hooks/';
|
|
74
|
+
// Set by the console on every answer of that route: "ran" once it starts the
|
|
75
|
+
// call, "refused" when it did not.
|
|
76
|
+
export const HOOK_OUTCOME_HEADER = 'x-fuli-lifecycle-hook';
|
|
77
|
+
|
|
78
|
+
// Milliseconds on this computer's monotonic clock, which the hook process and
|
|
79
|
+
// the console read alike (unlike the wall clock, it never steps back).
|
|
80
|
+
export function hookClock() {
|
|
81
|
+
return Number(process.hrtime.bigint() / 1_000_000n);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
const PACKAGE_JSON = new URL('../../package.json', import.meta.url);
|
|
85
|
+
const LOOPBACK_HOSTS = new Set(['127.0.0.1', '[::1]']);
|
|
86
|
+
|
|
87
|
+
// The process entry: stdin in, the answer out, this process's exit code.
|
|
88
|
+
export async function runThinLifecycleHook({ client, envNames, timeoutMs }) {
|
|
89
|
+
const startedAt = Date.now();
|
|
90
|
+
const deadlineAt = startedAt + timeoutMs;
|
|
91
|
+
const argv = process.argv.slice(2);
|
|
92
|
+
const cwd = process.cwd();
|
|
93
|
+
const env = namedEnvironment(process.env, envNames);
|
|
94
|
+
const stdin = await readStdin(process.stdin, Math.min(STDIN_WAIT_MS, timeoutMs));
|
|
95
|
+
const call = { client, argv, env, cwd, stdin: stdin.chunks };
|
|
96
|
+
// forwardLifecycleEvent settles every failure after sending itself; one it
|
|
97
|
+
// throws happened before anything was sent.
|
|
98
|
+
const forwarded = stdin.complete
|
|
99
|
+
? await forwardLifecycleEvent(call, { deadlineAt }).catch(() => ({ run: 'here', reason: 'forward_failed' }))
|
|
100
|
+
: { run: 'here', reason: 'stdin' };
|
|
101
|
+
let result;
|
|
102
|
+
if (forwarded.run === 'there') result = forwarded.result;
|
|
103
|
+
else {
|
|
104
|
+
// Loaded only now: the whole hook, as before this entry was thin. Its
|
|
105
|
+
// deadline is what is left of this hook's.
|
|
106
|
+
const remainingMs = Math.max(1, deadlineAt - Date.now());
|
|
107
|
+
const events = await import('./lifecycle-events.js');
|
|
108
|
+
result = forwarded.run === 'here'
|
|
109
|
+
? await events.runLifecycleEvent({ ...call, stdin: stdin.complete ? stdin.chunks : stdin.rest(), timeoutMs: remainingMs },
|
|
110
|
+
{ baseEnv: process.env })
|
|
111
|
+
: await events.lostLifecycleEvent(call, forwarded.error, { baseEnv: process.env });
|
|
112
|
+
}
|
|
113
|
+
if (result.stderr) process.stderr.write(result.stderr);
|
|
114
|
+
process.exitCode = result.exitCode;
|
|
115
|
+
process.stdout.write(result.stdout, () => {
|
|
116
|
+
// As before, the process ends by its deadline even if cancelled work
|
|
117
|
+
// still holds it; finished work lets it end at once.
|
|
118
|
+
setTimeout(() => process.exit(result.exitCode), Math.max(0, deadlineAt - Date.now())).unref();
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// { run: 'there', result } | { run: 'here', reason } | { run: 'lost', error }
|
|
123
|
+
export async function forwardLifecycleEvent({ client, argv, env, cwd, stdin }, { deadlineAt, now = Date.now,
|
|
124
|
+
readText = readTextFile, isAlive = isProcessAlive, healthy = checkLocalConsoleHealth,
|
|
125
|
+
budgets: { health = HEALTH_BUDGET_MS, connect = CONNECT_BUDGET_MS, headers = HEADERS_BUDGET_MS } = {} } = {}) {
|
|
126
|
+
const recorded = recordedConsole(argv, cwd, { readText, isAlive });
|
|
127
|
+
if (!recorded) return { run: 'here', reason: 'no_console' };
|
|
128
|
+
let version;
|
|
129
|
+
try { version = JSON.parse(readText(PACKAGE_JSON)).version; } catch { return { run: 'here', reason: 'no_version' }; }
|
|
130
|
+
// A reused PID and port could name a listener that is not this console.
|
|
131
|
+
if (!(await healthy(recorded.url, recorded.pid, recorded.version, health, version))) {
|
|
132
|
+
return { run: 'here', reason: 'not_this_console' };
|
|
133
|
+
}
|
|
134
|
+
const answerAt = deadlineAt - ANSWER_MARGIN_MS;
|
|
135
|
+
const timeoutMs = answerAt - now() - RETURN_MARGIN_MS;
|
|
136
|
+
if (timeoutMs < MIN_CONSOLE_MS) return { run: 'here', reason: 'no_time' };
|
|
137
|
+
const answerMs = answerAt - now();
|
|
138
|
+
const headersMs = Math.min(headers, answerMs);
|
|
139
|
+
const startBy = hookClock() + headersMs - START_MARGIN_MS;
|
|
140
|
+
const body = JSON.stringify({ version, argv, env, cwd, timeoutMs, startBy, stdin: Buffer.concat(stdin).toString('base64') });
|
|
141
|
+
return post(new URL(`${LIFECYCLE_HOOK_ROUTE}${client}`, recorded.url), body, { connectMs: connect, headersMs, answerMs });
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
function namedEnvironment(env, names) {
|
|
145
|
+
return Object.fromEntries(names.filter(name => typeof env[name] === 'string').map(name => [name, env[name]]));
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// The hook's stdin as chunks: complete when it closed within STDIN_WAIT_MS
|
|
149
|
+
// and within FORWARDED_STDIN_LIMIT. Otherwise rest() replays what was read and
|
|
150
|
+
// then the rest of the stream for the hook run here.
|
|
151
|
+
function readStdin(stream, waitMs) {
|
|
152
|
+
return new Promise(done => {
|
|
153
|
+
const chunks = [];
|
|
154
|
+
let size = 0;
|
|
155
|
+
const finish = complete => {
|
|
156
|
+
clearTimeout(timer);
|
|
157
|
+
stream.off('data', onData);
|
|
158
|
+
stream.off('end', onEnd);
|
|
159
|
+
stream.off('error', onError);
|
|
160
|
+
if (!complete) stream.pause();
|
|
161
|
+
done({ complete, chunks, rest: () => replay(chunks, stream) });
|
|
162
|
+
};
|
|
163
|
+
const onData = chunk => {
|
|
164
|
+
chunks.push(chunk);
|
|
165
|
+
size += chunk.length;
|
|
166
|
+
if (size > FORWARDED_STDIN_LIMIT) finish(false);
|
|
167
|
+
};
|
|
168
|
+
const onEnd = () => finish(true);
|
|
169
|
+
// The hook run here meets the same error when it reads the rest.
|
|
170
|
+
const onError = () => finish(false);
|
|
171
|
+
const timer = setTimeout(() => finish(false), waitMs);
|
|
172
|
+
stream.on('data', onData);
|
|
173
|
+
stream.once('end', onEnd);
|
|
174
|
+
stream.once('error', onError);
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
async function* replay(chunks, stream) {
|
|
179
|
+
yield* chunks;
|
|
180
|
+
if (!stream.readableEnded) yield* stream;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function recordedConsole(argv, cwd, { readText, isAlive }) {
|
|
184
|
+
const flag = argv.indexOf('--runtime-config');
|
|
185
|
+
const runtimeConfig = flag >= 0 ? argv[flag + 1] : null;
|
|
186
|
+
if (typeof runtimeConfig !== 'string' || !runtimeConfig) return null;
|
|
187
|
+
let state;
|
|
188
|
+
try {
|
|
189
|
+
state = JSON.parse(readText(join(dirname(resolve(cwd, runtimeConfig)), 'graph-runtime-state.json')));
|
|
190
|
+
} catch { return null; }
|
|
191
|
+
if (!Number.isSafeInteger(state?.pid) || state.pid < 1 || !isAlive(state.pid) || typeof state.url !== 'string') return null;
|
|
192
|
+
try {
|
|
193
|
+
const url = new URL(state.url);
|
|
194
|
+
return url.protocol === 'http:' && LOOPBACK_HOSTS.has(url.hostname) && !url.username && !url.password
|
|
195
|
+
? { url: url.origin, pid: state.pid, version: state.version } : null;
|
|
196
|
+
} catch { return null; }
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
function post(url, body, { connectMs, headersMs, answerMs }) {
|
|
200
|
+
return new Promise(done => {
|
|
201
|
+
let connected = false;
|
|
202
|
+
let started = false;
|
|
203
|
+
let settled = false;
|
|
204
|
+
const timers = [];
|
|
205
|
+
const finish = outcome => {
|
|
206
|
+
if (settled) return;
|
|
207
|
+
settled = true;
|
|
208
|
+
timers.forEach(clearTimeout);
|
|
209
|
+
request.destroy();
|
|
210
|
+
done(outcome);
|
|
211
|
+
};
|
|
212
|
+
// Once connected the payload may have reached the console, which may have
|
|
213
|
+
// started the call: a connection lost before "ran" is lost, not run here.
|
|
214
|
+
const failed = error => finish(connected ? { run: 'lost', error } : { run: 'here', reason: 'unreachable' });
|
|
215
|
+
// A due timer runs before this process reads its sockets: decide after
|
|
216
|
+
// reading them, so "ran" already waiting on the socket counts.
|
|
217
|
+
const afterReading = decide => setImmediate(() => { if (!settled) decide(); });
|
|
218
|
+
const request = httpRequest(url, { method: 'POST', agent: false, headers: {
|
|
219
|
+
'content-type': 'application/json', 'content-length': Buffer.byteLength(body), connection: 'close'
|
|
220
|
+
} });
|
|
221
|
+
timers.push(setTimeout(() => { if (!connected) finish({ run: 'here', reason: 'connect_timeout' }); }, connectMs),
|
|
222
|
+
setTimeout(() => afterReading(() => { if (!started) finish({ run: 'here', reason: 'no_headers' }); }), headersMs),
|
|
223
|
+
setTimeout(() => afterReading(() => finish(started ? { run: 'lost', error: lostError('lifecycle_forward_timeout') }
|
|
224
|
+
: { run: 'here', reason: 'no_headers' })), answerMs));
|
|
225
|
+
request.once('socket', socket => {
|
|
226
|
+
const onConnect = () => { connected = true; };
|
|
227
|
+
if (!socket.connecting) onConnect();
|
|
228
|
+
else socket.once('connect', onConnect);
|
|
229
|
+
});
|
|
230
|
+
request.once('error', () => failed(lostError('lifecycle_forward_failed')));
|
|
231
|
+
request.once('response', response => {
|
|
232
|
+
const outcome = response.headers[HOOK_OUTCOME_HEADER];
|
|
233
|
+
if (outcome !== 'ran') {
|
|
234
|
+
finish({ run: 'here', reason: outcome === 'refused' ? 'refused' : 'no_route' });
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
started = true;
|
|
238
|
+
const chunks = [];
|
|
239
|
+
let size = 0;
|
|
240
|
+
response.on('data', chunk => {
|
|
241
|
+
size += chunk.length;
|
|
242
|
+
if (size > MAX_ANSWER_BYTES) failed(lostError('lifecycle_forward_answer_invalid'));
|
|
243
|
+
else chunks.push(chunk);
|
|
244
|
+
});
|
|
245
|
+
response.once('error', () => failed(lostError('lifecycle_forward_failed')));
|
|
246
|
+
response.once('aborted', () => failed(lostError('lifecycle_forward_failed')));
|
|
247
|
+
response.once('end', () => {
|
|
248
|
+
const result = response.statusCode === 200 ? hookResult(Buffer.concat(chunks)) : null;
|
|
249
|
+
finish(result ? { run: 'there', result } : { run: 'lost', error: lostError('lifecycle_forward_answer_invalid') });
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
request.end(body);
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function hookResult(bytes) {
|
|
257
|
+
try {
|
|
258
|
+
const value = JSON.parse(bytes.toString('utf8'));
|
|
259
|
+
return typeof value?.stdout === 'string' && typeof value.stderr === 'string' && Number.isSafeInteger(value.exitCode)
|
|
260
|
+
? { stdout: value.stdout, stderr: value.stderr, exitCode: value.exitCode } : null;
|
|
261
|
+
} catch { return null; }
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
function lostError(code) {
|
|
265
|
+
return Object.assign(new Error('The console took the hook call and did not answer it'), { code });
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
function readTextFile(path) { return readFileSync(path, 'utf8'); }
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { stat } from 'node:fs/promises';
|
|
2
|
+
import { setTimeout as delay } from 'node:timers/promises';
|
|
3
|
+
|
|
4
|
+
import { recordHookFailure } from './lifecycle-failure.js';
|
|
5
|
+
import { parseHookInput } from './lifecycle-input.js';
|
|
6
|
+
import { lifecycleHookClient, runLifecycleEvent } from './lifecycle-events.js';
|
|
7
|
+
|
|
8
|
+
// The console's side of forwarded hook calls (lifecycle-hooks-api-router.js):
|
|
9
|
+
// which calls it takes, and the calls it is running. A call it does not take
|
|
10
|
+
// is refused before it runs, so the hook runs it in its own process as it did
|
|
11
|
+
// before forwarding existed.
|
|
12
|
+
//
|
|
13
|
+
// Taken only when:
|
|
14
|
+
// - fewer than MAX_CALLS calls run at once (a prompt's call takes about 0.1 s
|
|
15
|
+
// here; 8 is far above what one person's sessions start together);
|
|
16
|
+
// - no earlier call of the same client session is still running past its
|
|
17
|
+
// deadline (its stores and transcript guard may still be held; a hook
|
|
18
|
+
// process would have been ended by then);
|
|
19
|
+
// - the payload's transcript_path is absent, missing or a regular file and
|
|
20
|
+
// its cwd absent, missing or a directory, checked asynchronously within
|
|
21
|
+
// PATH_CHECK_MS: the work opens and reads them synchronously, and a FIFO or
|
|
22
|
+
// an unreachable share would freeze the console instead of one hook process.
|
|
23
|
+
//
|
|
24
|
+
// A call past its deadline (plus OVERDUE_GRACE_MS) is recorded in the
|
|
25
|
+
// diagnostics log. At its deadline the work was cancelled and its graph lease
|
|
26
|
+
// (with its heartbeat) and stores closed (lifecycle-event.js); what a call
|
|
27
|
+
// that still never settles keeps is its session's transcript guard, until it
|
|
28
|
+
// settles or the console restarts, and its session's later calls run in their
|
|
29
|
+
// own processes meanwhile.
|
|
30
|
+
const MAX_CALLS = 8;
|
|
31
|
+
const PATH_CHECK_MS = 200;
|
|
32
|
+
const OVERDUE_GRACE_MS = 1000;
|
|
33
|
+
|
|
34
|
+
export function createLifecycleHookCalls({ runtimeConfigPath, baseEnv, maxCalls = MAX_CALLS, now = Date.now,
|
|
35
|
+
run = runLifecycleEvent, record = recordHookFailure }) {
|
|
36
|
+
const running = new Set();
|
|
37
|
+
return {
|
|
38
|
+
runtimeConfigPath,
|
|
39
|
+
// { refused: reason } or { start(): Promise<result>, release() }. A taken
|
|
40
|
+
// call holds its place from the check on (admissions awaited together
|
|
41
|
+
// cannot all pass it); the router calls start() or, when it does not
|
|
42
|
+
// start the call, release().
|
|
43
|
+
async admit(call) {
|
|
44
|
+
const input = hookInput(call.stdin);
|
|
45
|
+
if (!(await pathsSafe(input))) return { refused: 'unsafe_path' };
|
|
46
|
+
if (running.size >= maxCalls) return { refused: 'busy' };
|
|
47
|
+
const session = typeof input?.session_id === 'string' ? `${call.client}\0${input.session_id}` : null;
|
|
48
|
+
if (session && [...running].some(entry => entry.session === session && entry.overdue)) {
|
|
49
|
+
return { refused: 'session_overdue' };
|
|
50
|
+
}
|
|
51
|
+
const entry = { session, overdue: false };
|
|
52
|
+
running.add(entry);
|
|
53
|
+
return { start: () => start(call, entry, input), release: () => running.delete(entry) };
|
|
54
|
+
},
|
|
55
|
+
running: () => running.size
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
function start(call, entry, input) {
|
|
59
|
+
const startedAt = now();
|
|
60
|
+
const settle = () => {
|
|
61
|
+
clearTimeout(overdue);
|
|
62
|
+
running.delete(entry);
|
|
63
|
+
};
|
|
64
|
+
const overdue = setTimeout(() => {
|
|
65
|
+
entry.overdue = true;
|
|
66
|
+
const client = lifecycleHookClient(call.client);
|
|
67
|
+
record({ runtimeConfigPath, client: client.sourceApplication, event: eventOf(call.argv),
|
|
68
|
+
error: Object.assign(new Error('A forwarded hook call is still running past its deadline'),
|
|
69
|
+
{ code: 'lifecycle_call_overdue' }), sessionId: input?.session_id ?? null, startedAt, now });
|
|
70
|
+
}, call.timeoutMs + OVERDUE_GRACE_MS);
|
|
71
|
+
overdue.unref?.();
|
|
72
|
+
return run(call, { baseEnv, onSettled: settle }).catch(error => { settle(); throw error; });
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function hookInput(stdin) {
|
|
77
|
+
try { return parseHookInput(Buffer.concat(stdin)); } catch { return null; }
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function eventOf(argv) {
|
|
81
|
+
return argv[argv.indexOf('--event') + 1];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
async function pathsSafe(input) {
|
|
85
|
+
const checks = [[input?.transcript_path, info => info.isFile()], [input?.cwd, info => info.isDirectory()]]
|
|
86
|
+
.filter(([path]) => typeof path === 'string' && path);
|
|
87
|
+
const results = await Promise.race([
|
|
88
|
+
Promise.all(checks.map(([path, expected]) => stat(path).then(expected,
|
|
89
|
+
error => error?.code === 'ENOENT' || error?.code === 'ENOTDIR'))),
|
|
90
|
+
delay(PATH_CHECK_MS, null, { ref: false })
|
|
91
|
+
]);
|
|
92
|
+
return Array.isArray(results) && results.every(Boolean);
|
|
93
|
+
}
|
|
@@ -19,3 +19,11 @@ export function coversClient(clients, client, { explicit = [] } = {}) {
|
|
|
19
19
|
const legacy = LEGACY_ALIASES[client];
|
|
20
20
|
return Boolean(legacy) && listed.includes(legacy) && !explicit.includes(client);
|
|
21
21
|
}
|
|
22
|
+
|
|
23
|
+
// The console writes a client lower-case with spaces and dashes as underscores,
|
|
24
|
+
// so `claude-code`, `Claude Code` and `claude_code` are one client there too.
|
|
25
|
+
export function normalisedClient(value) {
|
|
26
|
+
return typeof value === 'string'
|
|
27
|
+
? value.trim().toLocaleLowerCase().replaceAll('-', '_').replaceAll(' ', '_')
|
|
28
|
+
: '';
|
|
29
|
+
}
|
|
@@ -71,6 +71,16 @@ export function createAgentTokenUsageResolver({ adapters } = {}) {
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
// The resolver of an application opened with an explicit environment (a hook
|
|
75
|
+
// call the console runs, lifecycle-events.js): Codex sessions are found under
|
|
76
|
+
// that environment's CODEX_HOME or home folder, not this process's.
|
|
77
|
+
export function environmentTokenUsageResolver(env) {
|
|
78
|
+
const codexHome = typeof env?.CODEX_HOME === 'string' && env.CODEX_HOME.trim() ? env.CODEX_HOME.trim() : undefined;
|
|
79
|
+
const home = env?.HOME ?? env?.USERPROFILE ?? undefined;
|
|
80
|
+
return createAgentTokenUsageResolver({ adapters: {
|
|
81
|
+
codex: createCodexTokenUsageResolver({ codexHomeDirectory: codexHome, homeDirectory: home }) } });
|
|
82
|
+
}
|
|
83
|
+
|
|
74
84
|
export async function enrichProjectAgentTaskActivity(input = {}, resolver = DEFAULT_RESOLVER) {
|
|
75
85
|
if (!input || typeof input !== 'object' || Array.isArray(input)) return input;
|
|
76
86
|
const actorKind = input.actorKind ?? input.actor_kind;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { installedProviderRefusal } from '../native-runtime/runtime.js';
|
|
2
|
+
import { resolveSetupPaths } from '../setup/paths.js';
|
|
3
|
+
import { inspectLocalStores } from './local-stores.js';
|
|
4
|
+
|
|
5
|
+
// Whether a previous FULI can still run on a data directory a newer FULI
|
|
6
|
+
// already started on. Nothing is started and every store is opened read-only
|
|
7
|
+
// (local-stores.js). Two questions, by which code asks:
|
|
8
|
+
// - dataNewerThanThisPackage: the previous version's own code asks (the macOS
|
|
9
|
+
// app update runs on it), so it reads every store with its own formats and
|
|
10
|
+
// compares the recorded Provider with its own.
|
|
11
|
+
// - dataFormatMarks / dataUpgradedSince: the new version's code asks (the
|
|
12
|
+
// Windows update runs on it) and cannot know the previous version's formats,
|
|
13
|
+
// so it compares the stores before and after the new version's start.
|
|
14
|
+
// Each answers a reason the previous version cannot run, or null. Neither sees
|
|
15
|
+
// the graph's own format in Neo4j, which only a running Provider reads.
|
|
16
|
+
|
|
17
|
+
// The states this code runs on: its own format, nothing yet, an older format
|
|
18
|
+
// it upgrades or reads, or a newer one it is declared to read. Anything else
|
|
19
|
+
// (newer, half-applied, waiting for the person, unsupported, unreadable or
|
|
20
|
+
// unavailable) keeps the previous version away: it never comes back on data
|
|
21
|
+
// nobody could read. A folder of records reports its worst record.
|
|
22
|
+
const RUNS_ON = new Set(['current', 'empty', 'absent', 'upgrade_on_open', 'unversioned', 'newer_readable']);
|
|
23
|
+
|
|
24
|
+
export function dataNewerThanThisPackage(dataDir) {
|
|
25
|
+
const stores = inspectLocalStores(dataDir).filter(({ state }) => !RUNS_ON.has(state));
|
|
26
|
+
if (stores.length) return unusableStores(stores);
|
|
27
|
+
return installedProviderRefusal(resolveSetupPaths({ dataDir }).nativeRuntimeManifestPath)?.message.split(':')[0] ?? null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Each local store's format version, state and (for a folder of records)
|
|
31
|
+
// how many records are in each state, before a newer version starts.
|
|
32
|
+
export function dataFormatMarks(dataDir) {
|
|
33
|
+
return Object.fromEntries(inspectLocalStores(dataDir).map(({ label, version, state, counts }) =>
|
|
34
|
+
[label, { version, state, counts: counts ?? null }]));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// The stores the newer version moved past what was there at dataFormatMarks:
|
|
38
|
+
// one that existed and is now at a higher version; a folder with fewer records
|
|
39
|
+
// in an older format (some were rewritten in the new one); a migration left
|
|
40
|
+
// unfinished; or one that can no longer be read. A store it created is left
|
|
41
|
+
// out: the previous version never had it, and one it does not know it never
|
|
42
|
+
// opens. Whether the previous version declared it reads a raised version
|
|
43
|
+
// (newer_readable) only its own code knows, so every raise counts.
|
|
44
|
+
export function dataUpgradedSince(marks, dataDir) {
|
|
45
|
+
const changes = inspectLocalStores(dataDir).map(store => change(marks[store.label], store)).filter(Boolean);
|
|
46
|
+
return changes.length ? `stores the new version changed: ${changes.join(', ')}` : null;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const UNREADABLE = new Set(['unavailable', 'unreadable', 'half_applied']);
|
|
50
|
+
const OLDER_RECORDS = ['upgrade_on_open', 'unversioned', 'pending_confirmation'];
|
|
51
|
+
|
|
52
|
+
function change(before, after) {
|
|
53
|
+
if (!before) return null;
|
|
54
|
+
if (UNREADABLE.has(after.state)) return after.state === before.state ? null : `${after.label} ${after.state}`;
|
|
55
|
+
if (Number.isInteger(before.version) && Number.isInteger(after.version)) {
|
|
56
|
+
return after.version > before.version ? `${after.label} ${before.version} → ${after.version}` : null;
|
|
57
|
+
}
|
|
58
|
+
if (!before.counts || !after.counts) return null;
|
|
59
|
+
const older = counts => OLDER_RECORDS.reduce((sum, state) => sum + (counts[state] ?? 0), 0);
|
|
60
|
+
const rewritten = older(before.counts) - older(after.counts);
|
|
61
|
+
if (rewritten > 0) return `${after.label} ${rewritten} records rewritten`;
|
|
62
|
+
return (after.counts.half_applied ?? 0) > (before.counts.half_applied ?? 0) ? `${after.label} half_applied` : null;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const unusableStores = stores => `stores it cannot use: ${stores.map(({ label, state }) => `${label} ${state}`).join(', ')}`;
|
|
@@ -227,6 +227,6 @@ function inspectJsonDirectory(directory, format) {
|
|
|
227
227
|
.filter(([, count]) => count));
|
|
228
228
|
const state = STATE_ORDER.find((candidate) => counts[candidate]) ?? 'empty';
|
|
229
229
|
return { store: format.store, kind: 'json-records', target: format.supported, version: null,
|
|
230
|
-
ledger: [], steps: [], state, note: `${records.length} records: ${Object.entries(counts)
|
|
230
|
+
ledger: [], steps: [], state, counts, note: `${records.length} records: ${Object.entries(counts)
|
|
231
231
|
.map(([name, count]) => `${count} ${name}`).join(', ') || 'none'}` };
|
|
232
232
|
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { setTimeout as delay } from 'node:timers/promises';
|
|
2
|
+
|
|
3
|
+
import { terminateConsole } from '../local-runtime/unresponsive-console.js';
|
|
4
|
+
import { resolveSetupPaths } from '../setup/paths.js';
|
|
5
|
+
import { runningConsoles } from '../system/fuli-process-scan.js';
|
|
6
|
+
import { singleLine } from '../text/single-line.js';
|
|
7
|
+
import { failure } from './release-asset.js';
|
|
8
|
+
|
|
9
|
+
// What an app update (the macOS app, a Windows installation) does once the new
|
|
10
|
+
// version's first start failed and the new version stopped: the previous
|
|
11
|
+
// version comes back only when it can run on the data; otherwise the new one
|
|
12
|
+
// stays selected and is started once more, so the installed program always
|
|
13
|
+
// matches the data. The failure names the first start error and what was done
|
|
14
|
+
// after it, on one line (the update journal keeps the first line only).
|
|
15
|
+
|
|
16
|
+
// The reason the previous version cannot run, from check(), or null. A check
|
|
17
|
+
// that fails counts as a reason: the previous version never comes back on
|
|
18
|
+
// data nobody could read.
|
|
19
|
+
export function previousVersionBlocked(check) {
|
|
20
|
+
try { return check(); } catch (error) { return `its data could not be checked: ${reasonText(error?.message ?? error)}`; }
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// With a reason, the new version stays: startAgain() → { ok, error }.
|
|
24
|
+
// Answers null (the previous version may come back), { ok: true } (the new
|
|
25
|
+
// version runs after all) or { ok: false, code: 'kept_new_version', outcome }.
|
|
26
|
+
export async function keepNewVersionOnNewerData(reason, startAgain) {
|
|
27
|
+
if (!reason) return null;
|
|
28
|
+
const retried = await startAgain();
|
|
29
|
+
if (retried.ok) return { ok: true };
|
|
30
|
+
return { ok: false, code: 'kept_new_version', outcome: `the previous version cannot run on this data (${reason}), `
|
|
31
|
+
+ `so the new one was kept; started again, it did not run (${reasonText(retried.error)}).` };
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// The new version stays where it is when a start of FULI elsewhere did not
|
|
35
|
+
// finish in time, or when it did not stop: nothing may move under it.
|
|
36
|
+
export const startsStillRunning = error => ({ ok: false, code: 'kept_new_version',
|
|
37
|
+
outcome: `another start of FULI did not finish, so it was left installed and nothing was switched back (${reasonText(error?.message ?? error)}).` });
|
|
38
|
+
export const newVersionDidNotStop = error => ({ ok: false, code: 'kept_new_version',
|
|
39
|
+
outcome: `it did not stop either, so it was left installed and nothing was switched back (${reasonText(error)}).` });
|
|
40
|
+
|
|
41
|
+
// A console the failed start left is in no record a stop reads: one the start
|
|
42
|
+
// could not end, or one whose start was killed by a timeout. Nothing is read
|
|
43
|
+
// or moved while it may still upgrade the data or hold its port. Waits a
|
|
44
|
+
// bounded time for every console of this data directory to end, then ends the
|
|
45
|
+
// ones left (they run this data directory's runtime configuration, so they are
|
|
46
|
+
// its consoles) as a failed start ends its own: left unrecorded, the next start
|
|
47
|
+
// would spawn a second console that fails on the port. Answers null, or why
|
|
48
|
+
// nothing may move (also when the processes could not be listed).
|
|
49
|
+
const LEFT_CONSOLE_WAIT_MS = 30_000;
|
|
50
|
+
const LEFT_CONSOLE_POLL_MS = 1000;
|
|
51
|
+
|
|
52
|
+
export async function consoleLeftRunning(dataDir, { scan = runningConsoles, terminate = terminateConsole,
|
|
53
|
+
wait = delay, now = Date.now } = {}) {
|
|
54
|
+
const configPath = resolveSetupPaths({ dataDir }).graphRuntimeConfigPath;
|
|
55
|
+
const deadline = now() + LEFT_CONSOLE_WAIT_MS;
|
|
56
|
+
let running = await scan(configPath);
|
|
57
|
+
while (running?.length && now() < deadline) {
|
|
58
|
+
await wait(LEFT_CONSOLE_POLL_MS);
|
|
59
|
+
running = await scan(configPath);
|
|
60
|
+
}
|
|
61
|
+
if (!running) return 'the running FULI processes could not be listed';
|
|
62
|
+
if (!running.length) return null;
|
|
63
|
+
for (const { pid } of running) await terminate(pid);
|
|
64
|
+
const remaining = await scan(configPath);
|
|
65
|
+
if (!remaining) return 'the running FULI processes could not be listed';
|
|
66
|
+
return remaining.length ? `a FULI process is still running (process ${remaining.map(({ pid }) => pid).join(', ')})` : null;
|
|
67
|
+
}
|
|
68
|
+
export const consoleStillRunning = reason => ({ ok: false, code: 'kept_new_version',
|
|
69
|
+
outcome: `${reason}, so it was left installed and nothing was switched back.` });
|
|
70
|
+
|
|
71
|
+
// Before an update stops FULI: a start that did not finish in time ends it.
|
|
72
|
+
export const startsBusyBeforeUpdate = error =>
|
|
73
|
+
new Error(`Another start of FULI did not finish, so FULI was not stopped for the update; nothing was changed. ${reasonText(error?.message ?? error)}`);
|
|
74
|
+
|
|
75
|
+
// The update's failure: version, the first start error and { code, outcome }.
|
|
76
|
+
export function failedStartError(version, firstError, { code, outcome }) {
|
|
77
|
+
return failure(`v${version} did not start (${reasonText(firstError)}); ${outcome}`, code);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export const reasonText = value => singleLine(value ?? 'no reason given') || 'no reason given';
|