fuli-context 0.22.1 → 0.23.0-beta.2
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-CRIF2M8n.js +1 -0
- package/dist/web/assets/AgentHand-Dp9TFS4q.js +1 -0
- package/dist/web/assets/AgentMentionCopy-BXOrsEWh.css +1 -0
- package/dist/web/assets/AgentMentionCopy-C7N92Shm.js +1 -0
- package/dist/web/assets/AgentName-CbsQ9vDy.js +1 -0
- package/dist/web/assets/{AgentProfilePage-MkP7Lgo6.css → AgentProfilePage-B_V-Dm8v.css} +1 -1
- package/dist/web/assets/AgentProfilePage-DOpq0b3j.js +2 -0
- package/dist/web/assets/AgentServicesPage-Dr9WU0f9.js +1 -0
- package/dist/web/assets/AgentWorkbench-CMoeT-BY.css +1 -0
- package/dist/web/assets/AgentWorkbench-DTWZFf1A.js +2 -0
- package/dist/web/assets/AgentsDirectoryPage-CxDOdNxT.js +1 -0
- package/dist/web/assets/{AgentsDirectoryPage-Cq1z926q.css → AgentsDirectoryPage-DjEfG9dC.css} +1 -1
- package/dist/web/assets/BackLink-ByRr21Sw.js +1 -0
- package/dist/web/assets/BoardMoveMenu-Bd1T62eA.js +1 -0
- package/dist/web/assets/CaptureChangePage-DyuSSSDE.js +1 -0
- package/dist/web/assets/Card-BD5ohuk8.js +1 -0
- package/dist/web/assets/CardHeader-DTVqXpsf.js +1 -0
- package/dist/web/assets/CardTitle-C5REIVlp.js +1 -0
- package/dist/web/assets/ConnectionsPage-CKruAjBF.js +1 -0
- package/dist/web/assets/CreateProjectDialog-D6JS3RtH.js +2 -0
- package/dist/web/assets/DataFormatPage-DNaogYjf.js +2 -0
- package/dist/web/assets/DialogFooter-C5AIwQ5R.js +1 -0
- package/dist/web/assets/EmployeeScopeDialog-Lmfos9SA.js +1 -0
- package/dist/web/assets/EmployeeTaskBoard-U3KmfQG3.js +3 -0
- package/dist/web/assets/EmployeeWorkbenchPage-O9DEMzLT.js +3 -0
- package/dist/web/assets/FieldDescription-_fuW5MBO.js +1 -0
- package/dist/web/assets/GrowthLoading--m-lSUeo.js +1 -0
- package/dist/web/assets/InboxPage-DmJfYzaK.js +4 -0
- package/dist/web/assets/Input-DqjML-Qy.js +1 -0
- package/dist/web/assets/KnowledgeHardDeleteSection-AFg1ybWc.js +1 -0
- package/dist/web/assets/KnowledgeItemEditPage-B29px-r0.js +1 -0
- package/dist/web/assets/KnowledgeItemSummaryCard-BhHet9HU.js +1 -0
- package/dist/web/assets/KnowledgeOrganizerPage-BfD42JmC.js +1 -0
- package/dist/web/assets/KnowledgePage-nbTejsvV.js +1 -0
- package/dist/web/assets/KnowledgePeek-ByakOiOO.js +2 -0
- package/dist/web/assets/{KnowledgePeek-DdxwAWYs.css → KnowledgePeek-CK2RKeRx.css} +1 -1
- package/dist/web/assets/KnowledgeTurnReceiptPage-B1fMTy2W.js +1 -0
- package/dist/web/assets/KnowledgeWorkspace-DCzwenHE.js +4 -0
- package/dist/web/assets/{KnowledgeWorkspace-CA8oxVht.css → KnowledgeWorkspace-j8xlGwtg.css} +1 -1
- package/dist/web/assets/Label-CufKLEgT.js +1 -0
- package/dist/web/assets/ModelSettingsPage-jQKn4MsB.js +1 -0
- package/dist/web/assets/NotFoundPage-B4KkZO2q.js +1 -0
- package/dist/web/assets/OccupationsPage-5Ja81Cfg.js +1 -0
- package/dist/web/assets/OverviewPage-C-K4KDNM.js +2 -0
- package/dist/web/assets/PersonalProfilePage-BVZ3WHmf.js +1 -0
- package/dist/web/assets/PersonalProjectsPage-C1J8Poj8.js +1 -0
- package/dist/web/assets/PopperContent-C-KMpRbF.js +1 -0
- package/dist/web/assets/Presence-B4aVQMT8.js +3 -0
- package/dist/web/assets/ProjectAgentDetailPage-B6bTOIhe.js +8 -0
- package/dist/web/assets/ProjectAgentDialog-CWuqScFD.js +5 -0
- package/dist/web/assets/ProjectAgentFirstTask-C7qzXCQ6.js +1 -0
- package/dist/web/assets/ProjectAgentsPage-BNtWbct5.js +1 -0
- package/dist/web/assets/ProjectAgentsPage-Bym-IM4-.css +1 -0
- package/dist/web/assets/ProjectJudgmentPolicy-L_plkldY.js +1 -0
- package/dist/web/assets/ProjectScopePicker-BXy07CHg.js +1 -0
- package/dist/web/assets/PublicProjectsPage-Cftk4zLX.js +1 -0
- package/dist/web/assets/RadioGroupItem-DoOqLMbZ.js +1 -0
- package/dist/web/assets/RoundtablesPage-RCtrPHxs.js +1 -0
- package/dist/web/assets/RovingFocusGroup-BeCLKMQA.js +1 -0
- package/dist/web/assets/RovingFocusItem-BN-h70s_.js +1 -0
- package/dist/web/assets/SessionMigrationPage-Dcjylswy.js +1 -0
- package/dist/web/assets/SessionRecordsPage-jrFse2a1.js +1 -0
- package/dist/web/assets/SettingsPage-BkHm8GV4.js +1 -0
- package/dist/web/assets/{SettingsPage-DpVeP2OZ.css → SettingsPage-BxAXf6EF.css} +1 -1
- package/dist/web/assets/SharedJefaReportPage-_KXsTVGF.js +1 -0
- package/dist/web/assets/Switch-BPAVVtqu.js +1 -0
- package/dist/web/assets/TableHeader-P9d7xF7t.js +1 -0
- package/dist/web/assets/TabsContent-Casnps6y.js +1 -0
- package/dist/web/assets/TabsTrigger-AQwqcZRn.js +1 -0
- package/dist/web/assets/TagVocabularyPage-CsDJkbU3.js +1 -0
- package/dist/web/assets/TaskBlockerClear-wqHV47Vx.js +1 -0
- package/dist/web/assets/TaskBlockerNotice-DJytDDst.js +1 -0
- package/dist/web/assets/TaskExecutionPlan-8dwc8_Jf.css +1 -0
- package/dist/web/assets/TaskExecutionPlan-BPnu-yfT.js +2 -0
- package/dist/web/assets/TaskReason-C5g8DpOy.js +1 -0
- package/dist/web/assets/Teleport-BV0XYmdS.js +1 -0
- package/dist/web/assets/TextField-C69MdaFy.js +1 -0
- package/dist/web/assets/Textarea-D1Kzx_7L.js +1 -0
- package/dist/web/assets/UiChip-BqOpp18Q.js +1 -0
- package/dist/web/assets/UiDialog-BAWkdfF-.js +1 -0
- package/dist/web/assets/UiDisclosure-mGmGItAv.js +1 -0
- package/dist/web/assets/UiIcon-BUYpKd4D.js +1 -0
- package/dist/web/assets/UiIconButton-CeiP7Vmj.js +1 -0
- package/dist/web/assets/UiNotice-BlznzX5i.js +1 -0
- package/dist/web/assets/UiSegmented-DlgYMxnc.js +1 -0
- package/dist/web/assets/UiSelect-BWViyott.js +1 -0
- package/dist/web/assets/UiWeight-DZwt7cIP.js +1 -0
- package/dist/web/assets/UnassignedConversationsPanel-DV2CpIdb.js +1 -0
- package/dist/web/assets/VirtualDirectoryList-D-3X_X7D.js +1 -0
- package/dist/web/assets/VisuallyHiddenInput-BjPsr2D4.js +1 -0
- package/dist/web/assets/Workbench3D-CVlnk7bc.js +2 -0
- package/dist/web/assets/_plugin-vue_export-helper-lED7mxHY.js +9 -0
- package/dist/web/assets/accordion-GR6gjqFY.js +1 -0
- package/dist/web/assets/agent-pins-D2cylMl0.js +1 -0
- package/dist/web/assets/{agent-profile.css_vue_type_style_index_0_src_true_lang-Cmz1y1IL.js → agent-profile.css_vue_type_style_index_0_src_true_lang-w5YilVWS.js} +1 -1
- package/dist/web/assets/{agent-roster-records-DVgD9i6q.js → agent-roster-records-DgWGHLHW.js} +1 -1
- package/dist/web/assets/agent-task-board-DCS97QK2.js +1 -0
- package/dist/web/assets/{agent-work-summary-CUMg6XKp.js → agent-work-summary-QPOQuybY.js} +1 -1
- package/dist/web/assets/{attach-closest-edge-BqQXNoAj.js → attach-closest-edge-B5hSH5Q1.js} +1 -1
- package/dist/web/assets/{attention-store-C0D-sZNV.js → attention-store-DKza0N1e.js} +1 -1
- package/dist/web/assets/badge-CG2m9xwC.js +1 -0
- package/dist/web/assets/button-CZBMEiSm.js +1 -0
- package/dist/web/assets/checkbox-3VSDPUJw.js +1 -0
- package/dist/web/assets/{client-BgxDxCVo.js → client-Dwnwq6uu.js} +1 -1
- package/dist/web/assets/{client-links-store-BoDDNO2M.js → client-links-store-DG6AhNPP.js} +1 -1
- package/dist/web/assets/console-ny5TvCWK.js +1 -0
- package/dist/web/assets/conversation-launcher-settings-Ds-piWNR.js +1 -0
- package/dist/web/assets/{design-lab-B-njEjVo.js → design-lab-DrVlcS2x.js} +1 -1
- package/dist/web/assets/dialog-C3x9ziBB.js +1 -0
- package/dist/web/assets/dist-CB11Zet2.js +1 -0
- package/dist/web/assets/dropdown-menu-Cdtg4lAd.js +1 -0
- package/dist/web/assets/field-DMSD3CwL.js +1 -0
- package/dist/web/assets/{identity-IcZw_zYG.js → identity-DI_OdSEg.js} +1 -1
- package/dist/web/assets/index-B5zVxSJb.css +1 -0
- package/dist/web/assets/index-S0AnueS1.js +2 -0
- package/dist/web/assets/is-equal-8VOV02sH.js +1 -0
- package/dist/web/assets/{judgment-api-ldtIv-Jc.js → judgment-api-CwnpLQOf.js} +1 -1
- package/dist/web/assets/label-table-vGnKmYm3.js +1 -0
- package/dist/web/assets/{model-DvzuuyNk.js → model-BOXKOC62.js} +1 -1
- package/dist/web/assets/{model-mDDN02UJ.js → model-BlAV3okF.js} +1 -1
- package/dist/web/assets/{model-D2VmKHYm.js → model-C7hgak_o.js} +1 -1
- package/dist/web/assets/{model-2gNC7xGH.js → model-CmYu_CSs.js} +1 -1
- package/dist/web/assets/{model-DL29Qg9K.js → model-DSSYQ-i_.js} +1 -1
- package/dist/web/assets/{model-DvwLThbs.js → model-kV1gs-y2.js} +1 -1
- package/dist/web/assets/{motion-preference-BquW2Vpx.js → motion-preference-fHFXX4cl.js} +1 -1
- package/dist/web/assets/{occupation-catalog-CwMNzUWJ.js → occupation-catalog-DOk8egq8.js} +1 -1
- package/dist/web/assets/{orchestration-filters-DhxYUaNx.js → orchestration-filters-BqUPBFf1.js} +1 -1
- package/dist/web/assets/page-title-D1CadCvf.js +1 -0
- package/dist/web/assets/profile-model-DGbpJdVC.js +1 -0
- package/dist/web/assets/{project-board-layout-LQu5EwBM.js → project-board-layout-Dtyrl2is.js} +1 -1
- package/dist/web/assets/project-board-settings-CNVNKEfm.js +1 -0
- package/dist/web/assets/{project-capture-DHvCDGGz.js → project-capture-BpaGUI-m.js} +1 -1
- package/dist/web/assets/{project-origin-DDVfUP1_.js → project-origin-DJ4d13mb.js} +1 -1
- package/dist/web/assets/project-team-api-yJVsib_j.js +1 -0
- package/dist/web/assets/{quick-edit-api-DPb69BlT.js → quick-edit-api-CBMbWX0d.js} +1 -1
- package/dist/web/assets/rolldown-runtime-4tVxZq34.js +1 -0
- package/dist/web/assets/runtime-dom.esm-bundler-ClO7ICIC.js +2 -0
- package/dist/web/assets/select-CCN-VOqx.js +1 -0
- package/dist/web/assets/shared-report-BRgNEV5m.js +1 -0
- package/dist/web/assets/source-adapters-8UHmhZTa.js +1 -0
- package/dist/web/assets/task-labels-pCGKthln.js +1 -0
- package/dist/web/assets/ui-Bfbk4_Xk.js +1 -0
- package/dist/web/assets/{useAgentRecords-D3upwp_U.js → useAgentRecords-DZPebmJ_.js} +1 -1
- package/dist/web/assets/useApi-CROJJdhE-CpF4ddpD.js +1 -0
- package/dist/web/assets/useDirection-DXu4lssv.js +1 -0
- package/dist/web/assets/useFocusReturn-DVcg2RDp.js +1 -0
- package/dist/web/assets/useForwardExpose-CNq5826B.js +1 -0
- package/dist/web/assets/useKnowledgeItemPeek-CxwXNZqm.js +1 -0
- package/dist/web/assets/useMinimumLoadingDisplay-SSJELjga.js +1 -0
- package/dist/web/assets/usePrimitiveElement-WBpNZTN_.js +1 -0
- package/dist/web/assets/useRoutePeek-U71ADWt0.js +1 -0
- package/dist/web/assets/{useTypeahead-C4mRUlUC.js → useTypeahead-CJkAiAa9.js} +1 -1
- package/dist/web/assets/utils-CfVEk15i.js +1 -0
- package/dist/web/assets/vue-router-BFTYTsOL.js +1 -0
- package/dist/web/index.html +46 -41
- package/docs/agent-conversations-and-collaboration.md +23 -9
- package/docs/agent-interface-architecture.md +25 -0
- package/docs/client-connections.md +47 -0
- package/docs/client-links.md +4 -0
- package/docs/employee-agents.md +1 -1
- package/graph-provider/fuli_graph/agent_conversation_models.py +2 -1
- package/graph-provider/fuli_graph/conversation_context.py +40 -90
- package/graph-provider/fuli_graph/store_agent_conversations.py +26 -15
- package/graph-provider/pyproject.toml +1 -1
- package/native/win32/fuli-win-helper.exe +0 -0
- package/npm-shrinkwrap.json +31 -31
- package/package.json +3 -3
- package/skills/capturing-session-knowledge/SKILL.md +7 -0
- package/skills/capturing-session-knowledge/references/coordination.md +4 -0
- package/skills/capturing-session-knowledge/references/retrieval.md +7 -0
- package/skills/operating-fuli/SKILL.md +3 -2
- package/skills/operating-fuli/references/workflow-recipes.md +4 -1
- package/src/agent-apps/host-tools/catalog.js +4 -0
- package/src/agent-kits/client-installer.js +29 -0
- package/src/agent-kits/derived-file.js +15 -0
- package/src/agent-kits/executable-download.js +53 -0
- package/src/agent-kits/executables.js +87 -0
- package/src/agent-kits/fuli-installer-manifest.json +125 -0
- package/src/agent-kits/installer-manifest.js +36 -0
- package/src/agent-kits/installer-shadow.js +82 -0
- package/src/agent-kits/launcher-host-config.js +56 -0
- package/src/agent-kits/pins.js +49 -0
- package/src/agent-kits/ports.js +13 -0
- package/src/agent-kits/session-clients.js +57 -0
- package/src/agent-kits/session-launcher.js +55 -0
- package/src/agent-kits/session-offers.js +67 -0
- package/src/agent-kits/vendor/agent-installer/LICENSE +21 -0
- package/src/agent-kits/vendor/agent-installer/README.md +9 -0
- package/src/agent-kits/vendor/agent-installer/index.d.ts +129 -0
- package/src/agent-kits/vendor/agent-installer/index.mjs +188 -0
- package/src/agent-kits/vendor/agent-session-launcher/LICENSE +21 -0
- package/src/agent-kits/vendor/agent-session-launcher/README.md +9 -0
- package/src/agent-kits/vendor/agent-session-launcher/index.d.ts +101 -0
- package/src/agent-kits/vendor/agent-session-launcher/index.mjs +159 -0
- package/src/agent-tools/agent-conversation-definitions.js +1 -1
- package/src/agent-tools/agent-workflow-definitions.js +49 -0
- package/src/agent-tools/graph-definitions.js +2 -0
- package/src/agent-tools/graph-handlers.js +2 -0
- package/src/agent-tools/interface-catalog.js +4 -1
- package/src/agent-tools/knowledge-definitions.js +7 -0
- package/src/agent-workflows/agent-tools.js +59 -0
- package/src/agent-workflows/port.js +179 -0
- package/src/agent-workflows/store.js +156 -0
- package/src/agents/claude-code/conversation-transcript.js +8 -0
- package/src/agents/claude-code/lifecycle-hook.js +9 -0
- package/src/agents/claude-code/session-client.js +29 -0
- package/src/agents/codex/conversation-transcript.js +6 -0
- package/src/agents/identity-receipt.js +1 -0
- package/src/data-format/local-stores.js +7 -1
- package/src/desktop/windows-desktop-client.js +120 -0
- package/src/desktop/windows-rollback-command.js +6 -2
- package/src/desktop/windows-rollback.js +7 -1
- package/src/desktop/windows-tray-update.js +19 -31
- package/src/desktop/windows-uninstall-command.js +2 -1
- package/src/desktop/windows-uninstall.js +10 -4
- package/src/desktop/windows-update-command.js +7 -2
- package/src/desktop/windows-update-lock.js +9 -7
- package/src/desktop/windows-update.js +7 -1
- package/src/employees/recruitment.js +12 -3
- package/src/graphiti/agent-conversations.js +1 -1
- package/src/graphiti/current-project-knowledge-search.js +3 -2
- package/src/graphiti/federated-search.js +4 -2
- package/src/graphiti/fla-mention.js +25 -8
- package/src/graphiti/fla-picker.js +25 -4
- package/src/graphiti/knowledge-result-budget.js +63 -9
- package/src/graphiti/local-runtimes.js +4 -0
- package/src/graphiti/project-agent-task-entry.js +8 -3
- package/src/graphiti/task-entry-named-fla.js +41 -19
- package/src/http/agent-workflows-api-router.js +36 -0
- package/src/http/api-router.js +9 -0
- package/src/http/doctor-api-router.js +31 -0
- package/src/http/session-launch-api-router.js +36 -0
- package/src/mcp/process-registry.js +12 -6
- package/src/mcp/session-id.js +1 -0
- package/src/mcp/tool-annotations.js +2 -0
- package/src/native-runtime/neo4j-install.js +6 -23
- package/src/native-runtime/resumable-download.js +24 -0
- package/src/native-runtime/windows-assets.js +30 -13
- package/src/native-runtime/windows-processes.js +5 -2
- package/src/presence/windows-helper-pin.js +1 -1
- package/src/server.js +2 -1
- package/src/setup/paths.js +3 -0
- package/src/system/console-update.js +10 -2
- package/src/system/detached-job.js +8 -0
- package/src/system/doctor-repair.js +61 -0
- package/src/system/doctor.js +119 -0
- package/src/system/package-version-checker.js +8 -1
- package/src/system/system-service.js +52 -13
- package/src/text/token-estimate.js +11 -0
- package/dist/web/assets/AboutPage-45tAvgRN.js +0 -1
- package/dist/web/assets/AgentHand-CQbDVBYv.js +0 -1
- package/dist/web/assets/AgentMentionCopy-BHFp527T.js +0 -1
- package/dist/web/assets/AgentMentionCopy-BIWsPf22.css +0 -1
- package/dist/web/assets/AgentName-ChhbnrG9.js +0 -1
- package/dist/web/assets/AgentProfilePage-ZzEtdSKe.js +0 -1
- package/dist/web/assets/AgentServicesPage-B92EXg56.js +0 -1
- package/dist/web/assets/AgentsDirectoryPage-B841hRHZ.js +0 -1
- package/dist/web/assets/BackLink-C0mcoSn4.js +0 -1
- package/dist/web/assets/BoardMoveMenu-CX8jKv0V.js +0 -1
- package/dist/web/assets/CaptureChangePage-B9wtEGy3.js +0 -1
- package/dist/web/assets/Card-BOk3WbC1.js +0 -1
- package/dist/web/assets/CardHeader-79hIs3Wc.js +0 -1
- package/dist/web/assets/CardTitle-CMWcRH62.js +0 -1
- package/dist/web/assets/ConnectionsPage-CCSZ-v6k.js +0 -1
- package/dist/web/assets/CreateProjectDialog-vDAHEZ6t.js +0 -2
- package/dist/web/assets/DataFormatPage-oRc6mBRh.js +0 -2
- package/dist/web/assets/DialogFooter-mK0XBX_L.js +0 -1
- package/dist/web/assets/EmployeeScopeDialog-Bp0zLRG5.js +0 -1
- package/dist/web/assets/EmployeeWorkbenchPage-D34173ED.js +0 -3
- package/dist/web/assets/FieldDescription-C33NBGIe.js +0 -1
- package/dist/web/assets/GrowthLoading-CTsRhLfj.js +0 -1
- package/dist/web/assets/InboxPage-CekhZG9R.js +0 -4
- package/dist/web/assets/Input-jNvD1lEt.js +0 -1
- package/dist/web/assets/KnowledgeHardDeleteSection-OgNe3xoA.js +0 -1
- package/dist/web/assets/KnowledgeItemEditPage-CxUFvj7Q.js +0 -1
- package/dist/web/assets/KnowledgeItemSummaryCard-CkD55bXQ.js +0 -1
- package/dist/web/assets/KnowledgeOrganizerPage-DTfhmq7x.js +0 -1
- package/dist/web/assets/KnowledgePage-D_XPxm7U.js +0 -1
- package/dist/web/assets/KnowledgePeek-fE8eZ9yB.js +0 -1
- package/dist/web/assets/KnowledgeTurnReceiptPage-CNoJA8j_.js +0 -1
- package/dist/web/assets/KnowledgeWorkspace-CizF6YnE.js +0 -4
- package/dist/web/assets/Label-BuJcMh9m.js +0 -1
- package/dist/web/assets/ModelSettingsPage-adiuhTSX.js +0 -1
- package/dist/web/assets/NotFoundPage-JAy5KIL8.js +0 -1
- package/dist/web/assets/OccupationsPage-DG0uQx85.js +0 -1
- package/dist/web/assets/OverviewPage-DwCiWNdy.js +0 -2
- package/dist/web/assets/PersonalProfilePage-Cb-AKL4K.js +0 -1
- package/dist/web/assets/PersonalProjectsPage-BT7ebQUu.js +0 -1
- package/dist/web/assets/PopperContent-Dtpk5py4.js +0 -1
- package/dist/web/assets/Presence-9_BFOmAz.js +0 -3
- package/dist/web/assets/ProjectAgentDetailPage-WmxfcCCM.js +0 -8
- package/dist/web/assets/ProjectAgentDialog-BgdFB7il.js +0 -5
- package/dist/web/assets/ProjectAgentFirstTask-BfX-v_g5.js +0 -1
- package/dist/web/assets/ProjectAgentsPage-DAlfUVqM.js +0 -1
- package/dist/web/assets/ProjectAgentsPage-DvJh40Xl.css +0 -1
- package/dist/web/assets/ProjectJudgmentPolicy-DGFTRTvW.js +0 -1
- package/dist/web/assets/ProjectScopePicker-wlhLR465.js +0 -1
- package/dist/web/assets/PublicProjectsPage-LTXsYNme.js +0 -1
- package/dist/web/assets/RadioGroupItem-CUyRbWCt.js +0 -1
- package/dist/web/assets/RoundtablesPage-slbD8isz.js +0 -1
- package/dist/web/assets/RovingFocusGroup-DJ9gp0xI.js +0 -1
- package/dist/web/assets/RovingFocusItem-BGt9xXis.js +0 -1
- package/dist/web/assets/SessionMigrationPage-HxM5zSjY.js +0 -1
- package/dist/web/assets/SessionRecordsPage-CbZ4xiIb.js +0 -1
- package/dist/web/assets/SettingsPage-BSXZinjo.js +0 -1
- package/dist/web/assets/SharedJefaReportPage-4MylH5Ao.js +0 -1
- package/dist/web/assets/TableHeader-aFcD9wsQ.js +0 -1
- package/dist/web/assets/TabsContent-ZCMehxYx.js +0 -1
- package/dist/web/assets/TabsTrigger-BTZQbe9n.js +0 -1
- package/dist/web/assets/TagVocabularyPage-CCm1HBg3.js +0 -1
- package/dist/web/assets/TaskBlockerClear-Dg1T2rcU.js +0 -1
- package/dist/web/assets/TaskBlockerNotice-DVYIiv3y.js +0 -1
- package/dist/web/assets/TaskExecutionPlan-B411P1VJ.js +0 -2
- package/dist/web/assets/TaskExecutionPlan-uimNYWdr.css +0 -1
- package/dist/web/assets/TaskReason-CVnoUuFe.js +0 -1
- package/dist/web/assets/Teleport-Co_blCnp.js +0 -1
- package/dist/web/assets/TextField-BqL6E9zF.js +0 -1
- package/dist/web/assets/Textarea-DIra6o5H.js +0 -1
- package/dist/web/assets/UiChip-FMcrDGe6.js +0 -1
- package/dist/web/assets/UiDialog-CvESkb45.js +0 -1
- package/dist/web/assets/UiDisclosure-D3xZRwVK.js +0 -1
- package/dist/web/assets/UiIcon-CSLaDsID.js +0 -1
- package/dist/web/assets/UiIconButton-C1o6HJ39.js +0 -1
- package/dist/web/assets/UiNotice-CR_4j5lF.js +0 -1
- package/dist/web/assets/UiSegmented-Iu9IH18R.js +0 -1
- package/dist/web/assets/UiSelect-Cs53P6h-.js +0 -1
- package/dist/web/assets/UiToggle-B2sPCVZe.css +0 -1
- package/dist/web/assets/UiToggle-CSb7ErVS.js +0 -1
- package/dist/web/assets/UiWeight-BsbP9h9p.js +0 -1
- package/dist/web/assets/UnassignedConversationsPanel-D2Y2Vs-z.js +0 -1
- package/dist/web/assets/VirtualDirectoryList-DLhTuyoY.js +0 -1
- package/dist/web/assets/VisuallyHiddenInput-DoZPyFZU.js +0 -1
- package/dist/web/assets/Workbench3D-BBEJ0vTb.js +0 -2
- package/dist/web/assets/_plugin-vue_export-helper-DKHjpKWY.js +0 -10
- package/dist/web/assets/accordion-DX4SO0oU.js +0 -1
- package/dist/web/assets/agent-pins-Djo8-s9j.js +0 -1
- package/dist/web/assets/badge-CBT_nrTA.js +0 -1
- package/dist/web/assets/button-BXkZ6rdB.js +0 -1
- package/dist/web/assets/checkbox-BPKmRFwj.js +0 -1
- package/dist/web/assets/console-KIWUM9xy.js +0 -1
- package/dist/web/assets/conversation-launcher-settings-Dfhkli80.js +0 -1
- package/dist/web/assets/dialog-BSKT8LUI.js +0 -1
- package/dist/web/assets/dist-KV3E0kAK.js +0 -1
- package/dist/web/assets/dropdown-menu-BMeAsFQe.js +0 -1
- package/dist/web/assets/field-D_zmve89.js +0 -1
- package/dist/web/assets/index-CyoKfCXy.js +0 -2
- package/dist/web/assets/index-DuLqKIn8.css +0 -1
- package/dist/web/assets/label-table-BAIaH-tx.js +0 -1
- package/dist/web/assets/page-title-B2inyRB1.js +0 -1
- package/dist/web/assets/profile-model-C7xYkCgE.js +0 -1
- package/dist/web/assets/project-team-api-DNSZitOp.js +0 -1
- package/dist/web/assets/select-ByHJaNRv.js +0 -1
- package/dist/web/assets/shared-report-ClDt0UMJ.js +0 -3
- package/dist/web/assets/task-labels-De_F8I3O.js +0 -1
- package/dist/web/assets/ui-CMR2UkVp.js +0 -1
- package/dist/web/assets/useApi-CROJJdhE-lwt7Bu-G.js +0 -1
- package/dist/web/assets/useDirection-DhUUV4Jm.js +0 -1
- package/dist/web/assets/useFocusReturn-ChxuGVqv.js +0 -1
- package/dist/web/assets/useForwardExpose-BRdp7olV.js +0 -1
- package/dist/web/assets/useKnowledgeItemPeek-CRNR9LmU.js +0 -1
- package/dist/web/assets/useMinimumLoadingDisplay-DejHIUi_.js +0 -1
- package/dist/web/assets/useRoutePeek-B5Ukp8vX.js +0 -1
- package/dist/web/assets/utils-BH3OkU12.js +0 -1
- package/dist/web/assets/vue-router-B6l0ZzTV.js +0 -1
- /package/dist/web/assets/{shared-report-CjLAmGZI.css → EmployeeTaskBoard-CjLAmGZI.css} +0 -0
package/dist/web/index.html
CHANGED
|
@@ -9,61 +9,66 @@
|
|
|
9
9
|
/>
|
|
10
10
|
<link rel="icon" type="image/png" href="/assets/fuli-logo-ER1wQ8Kk.png" />
|
|
11
11
|
<title>复利 · Context Graph</title>
|
|
12
|
-
<script type="module" crossorigin src="/assets/index-
|
|
13
|
-
<link rel="modulepreload" crossorigin href="/assets/_plugin-vue_export-helper-
|
|
14
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
15
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
16
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
17
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
18
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
19
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
20
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
21
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
22
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
23
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
24
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
25
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
26
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
27
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
28
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
12
|
+
<script type="module" crossorigin src="/assets/index-S0AnueS1.js"></script>
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/assets/_plugin-vue_export-helper-lED7mxHY.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-dom.esm-bundler-ClO7ICIC.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="/assets/client-Dwnwq6uu.js">
|
|
16
|
+
<link rel="modulepreload" crossorigin href="/assets/console-ny5TvCWK.js">
|
|
17
|
+
<link rel="modulepreload" crossorigin href="/assets/useApi-CROJJdhE-CpF4ddpD.js">
|
|
18
|
+
<link rel="modulepreload" crossorigin href="/assets/vue-router-BFTYTsOL.js">
|
|
19
|
+
<link rel="modulepreload" crossorigin href="/assets/GrowthLoading--m-lSUeo.js">
|
|
20
|
+
<link rel="modulepreload" crossorigin href="/assets/button-CZBMEiSm.js">
|
|
21
|
+
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-4tVxZq34.js">
|
|
22
|
+
<link rel="modulepreload" crossorigin href="/assets/dist-CB11Zet2.js">
|
|
23
|
+
<link rel="modulepreload" crossorigin href="/assets/useForwardExpose-CNq5826B.js">
|
|
24
|
+
<link rel="modulepreload" crossorigin href="/assets/Presence-B4aVQMT8.js">
|
|
25
|
+
<link rel="modulepreload" crossorigin href="/assets/is-equal-8VOV02sH.js">
|
|
26
|
+
<link rel="modulepreload" crossorigin href="/assets/usePrimitiveElement-WBpNZTN_.js">
|
|
27
|
+
<link rel="modulepreload" crossorigin href="/assets/VisuallyHiddenInput-BjPsr2D4.js">
|
|
28
|
+
<link rel="modulepreload" crossorigin href="/assets/useDirection-DXu4lssv.js">
|
|
29
|
+
<link rel="modulepreload" crossorigin href="/assets/RovingFocusGroup-BeCLKMQA.js">
|
|
30
|
+
<link rel="modulepreload" crossorigin href="/assets/RovingFocusItem-BN-h70s_.js">
|
|
31
|
+
<link rel="modulepreload" crossorigin href="/assets/UiIcon-BUYpKd4D.js">
|
|
32
|
+
<link rel="modulepreload" crossorigin href="/assets/checkbox-3VSDPUJw.js">
|
|
29
33
|
<link rel="modulepreload" crossorigin href="/assets/handleAndDispatchCustomEvent-Bng2rRDf.js">
|
|
30
|
-
<link rel="modulepreload" crossorigin href="/assets/Teleport-
|
|
31
|
-
<link rel="modulepreload" crossorigin href="/assets/utils-
|
|
32
|
-
<link rel="modulepreload" crossorigin href="/assets/dialog-
|
|
33
|
-
<link rel="modulepreload" crossorigin href="/assets/RadioGroupItem-
|
|
34
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
35
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
36
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
37
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
38
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
39
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
40
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
41
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
42
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
43
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
44
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
45
|
-
<link rel="modulepreload" crossorigin href="/assets/UiWeight-
|
|
46
|
-
<link rel="modulepreload" crossorigin href="/assets/ui-
|
|
47
|
-
<link rel="modulepreload" crossorigin href="/assets/design-lab-
|
|
48
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
34
|
+
<link rel="modulepreload" crossorigin href="/assets/Teleport-BV0XYmdS.js">
|
|
35
|
+
<link rel="modulepreload" crossorigin href="/assets/utils-CfVEk15i.js">
|
|
36
|
+
<link rel="modulepreload" crossorigin href="/assets/dialog-C3x9ziBB.js">
|
|
37
|
+
<link rel="modulepreload" crossorigin href="/assets/RadioGroupItem-DoOqLMbZ.js">
|
|
38
|
+
<link rel="modulepreload" crossorigin href="/assets/Switch-BPAVVtqu.js">
|
|
39
|
+
<link rel="modulepreload" crossorigin href="/assets/agent-pins-D2cylMl0.js">
|
|
40
|
+
<link rel="modulepreload" crossorigin href="/assets/DialogFooter-C5AIwQ5R.js">
|
|
41
|
+
<link rel="modulepreload" crossorigin href="/assets/project-origin-DJ4d13mb.js">
|
|
42
|
+
<link rel="modulepreload" crossorigin href="/assets/motion-preference-fHFXX4cl.js">
|
|
43
|
+
<link rel="modulepreload" crossorigin href="/assets/UiChip-BqOpp18Q.js">
|
|
44
|
+
<link rel="modulepreload" crossorigin href="/assets/UiDialog-BAWkdfF-.js">
|
|
45
|
+
<link rel="modulepreload" crossorigin href="/assets/UiIconButton-CeiP7Vmj.js">
|
|
46
|
+
<link rel="modulepreload" crossorigin href="/assets/UiNotice-BlznzX5i.js">
|
|
47
|
+
<link rel="modulepreload" crossorigin href="/assets/UiSegmented-DlgYMxnc.js">
|
|
48
|
+
<link rel="modulepreload" crossorigin href="/assets/UiSelect-BWViyott.js">
|
|
49
|
+
<link rel="modulepreload" crossorigin href="/assets/UiWeight-DZwt7cIP.js">
|
|
50
|
+
<link rel="modulepreload" crossorigin href="/assets/ui-Bfbk4_Xk.js">
|
|
51
|
+
<link rel="modulepreload" crossorigin href="/assets/design-lab-DrVlcS2x.js">
|
|
52
|
+
<link rel="modulepreload" crossorigin href="/assets/source-adapters-8UHmhZTa.js">
|
|
53
|
+
<link rel="modulepreload" crossorigin href="/assets/label-table-vGnKmYm3.js">
|
|
54
|
+
<link rel="modulepreload" crossorigin href="/assets/attention-store-DKza0N1e.js">
|
|
49
55
|
<link rel="modulepreload" crossorigin href="/assets/fuli-logo-Bu9WBuQe.js">
|
|
50
56
|
<link rel="modulepreload" crossorigin href="/assets/agent-avatar-CBfHZX_0.js">
|
|
51
57
|
<link rel="modulepreload" crossorigin href="/assets/agent-identity-color-RqpT7gtx.js">
|
|
52
|
-
<link rel="modulepreload" crossorigin href="/assets/profile-model-
|
|
58
|
+
<link rel="modulepreload" crossorigin href="/assets/profile-model-DGbpJdVC.js">
|
|
53
59
|
<link rel="modulepreload" crossorigin href="/assets/task-evidence-B2smSxDg.js">
|
|
54
|
-
<link rel="modulepreload" crossorigin href="/assets/useAgentRecords-
|
|
60
|
+
<link rel="modulepreload" crossorigin href="/assets/useAgentRecords-DZPebmJ_.js">
|
|
55
61
|
<link rel="modulepreload" crossorigin href="/assets/paths-CDREouhi.js">
|
|
56
|
-
<link rel="modulepreload" crossorigin href="/assets/page-title-
|
|
62
|
+
<link rel="modulepreload" crossorigin href="/assets/page-title-D1CadCvf.js">
|
|
57
63
|
<link rel="modulepreload" crossorigin href="/assets/preload-helper-BLdHbfdN.js">
|
|
58
64
|
<link rel="stylesheet" crossorigin href="/assets/GrowthLoading-B_QrPkEy.css">
|
|
59
65
|
<link rel="stylesheet" crossorigin href="/assets/UiIcon-EWCwhyKc.css">
|
|
60
66
|
<link rel="stylesheet" crossorigin href="/assets/UiChip-DulygSq8.css">
|
|
61
67
|
<link rel="stylesheet" crossorigin href="/assets/UiNotice-ZCBdABdM.css">
|
|
62
68
|
<link rel="stylesheet" crossorigin href="/assets/UiSelect-fhrGABzy.css">
|
|
63
|
-
<link rel="stylesheet" crossorigin href="/assets/UiToggle-B2sPCVZe.css">
|
|
64
69
|
<link rel="stylesheet" crossorigin href="/assets/UiWeight-qaDd9Wax.css">
|
|
65
70
|
<link rel="stylesheet" crossorigin href="/assets/ui-CwdCReAf.css">
|
|
66
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
71
|
+
<link rel="stylesheet" crossorigin href="/assets/index-B5zVxSJb.css">
|
|
67
72
|
</head>
|
|
68
73
|
<body>
|
|
69
74
|
<div id="app"></div>
|
|
@@ -39,13 +39,19 @@
|
|
|
39
39
|
|
|
40
40
|
### 按姓名在当前会话续接 FLA(rec#54)
|
|
41
41
|
|
|
42
|
+
推荐两种写法:叫一位用 `#FLA 姓名`,在本会话接着做;叫几位讨论用 `#FLG 问题`(见下节),确认成员时选
|
|
43
|
+
「在这个会话里一起看」(本会话读各位的上下文,不唤醒任何人)或「在圆桌里分头回复」(真实唤醒每位成员,各自回答)。
|
|
44
|
+
原有的 `@姓名`、`@FLA`、`@FLG` 写法照旧可用。
|
|
45
|
+
|
|
42
46
|
在任何目录里都可以叫自己的 FLA 来本会话继续它原来的工作,不需要 ID、会话号或 token:
|
|
43
47
|
|
|
44
48
|
| 输入 | 效果 |
|
|
45
49
|
| --- | --- |
|
|
46
50
|
| `@Jamie Ash 继续刚才的任务` | 提示词开头的完整姓名(不分大小写,中文、带空格的姓名都可,最长的姓名优先) |
|
|
47
51
|
| `@Jamie 继续` | 姓名中的一个完整的词:至少两个字符,拉丁字母按原样大小写(`@jamie` 不算),只有一位可续接的 FLA 有这个词时才续接 |
|
|
48
|
-
| `#FLA Jamie Ash 继续` |
|
|
52
|
+
| `#FLA Jamie Ash 继续` | 明确写法,写在提示词开头或某一行的开头 |
|
|
53
|
+
| `请让 #FLA Jamie Ash 看一下` | 句中写法:只在紧跟「请、让、帮我、麻烦、交给」(英文 please、ask、let)时算,而且只认完整姓名,不弹选择列表 |
|
|
54
|
+
| `#FLA Bole 招一个前端` | 内置角色(Jefa、Bole、Tonborg、Astro)同样按姓名点名(rec#58):Jefa、Bole、Tonborg 在当前目录的项目里工作,Astro 在全局 |
|
|
49
55
|
| `@FLA` 或 `#FLA` | 列出可选的 FLA |
|
|
50
56
|
| `#FLA Ja` | 按前缀缩小候选,只剩一位时直接续接;字母按顺序出现的模糊匹配只缩小列表,不直接续接 |
|
|
51
57
|
| `2` 或 `#FLA 2` | 选择列表中的第 2 位 |
|
|
@@ -58,10 +64,18 @@
|
|
|
58
64
|
两段汉字不拆开,`@小林继续` 和 `@小林子` 都不是「小林」。
|
|
59
65
|
- 不可用(已被解雇、停用、客户端不允许)的 FLA 只在写全名或用 `#FLA` / `@FLA` 时给出原因;姓名中的单个词只在可续接的
|
|
60
66
|
FLA 里找,所以已解雇的「Data Wu」不会让 `@Data 注解报错` 变成拒绝。提示只重复输入的第一个词(最多 32 个字符)。
|
|
61
|
-
-
|
|
67
|
+
- 引号(`"…"`、`“…”`、`「…」`)、反引号或代码块里的 `#FLA`,以及其他位置的句中 `#FLA`,都是普通文字,不弹选择、不切换:
|
|
68
|
+
例如「希望内置角色也可以用 #FLA Bole,解释一下这些写法」。一句话规则:`#FLA` 只在开头(或行首)算,句中只在
|
|
69
|
+
「请、让、帮我、麻烦、交给」后面跟着完整姓名时算。
|
|
70
|
+
- 已接受的剩余情况:常用词按原样写成某位 FLA 姓名中的词时会续接它,例如有「Mock Li」时 `@Mock 怎么用`;
|
|
71
|
+
「让」后面恰好跟着完整姓名的叙述也会点名,例如「希望让 #FLA Bole 也能用」。
|
|
62
72
|
- 候选只来自本人个人空间:每位 FLA 在每个在任项目各算一项,显示为「姓名 — 项目 — 职业」,按本会话
|
|
63
|
-
刚用过的 FLA、当前目录项目、最近活动时间排序,最多列 4 项。FULI
|
|
64
|
-
|
|
73
|
+
刚用过的 FLA、当前目录项目、最近活动时间排序,最多列 4 项。FULI 自己的角色(Jefa、Bole、Tonborg、Astro)
|
|
74
|
+
和临时 Agent 不进选择列表;内置角色只能用 `#FLA 姓名` / `@FLA 姓名` 写全名点名(要是 Provider 预置的那个身份,
|
|
75
|
+
只借用其 ID 的 Agent 不算),也仍可按原来的 `@名字` 规则在当前项目里匹配(不绑定会话)。
|
|
76
|
+
- 点名内置角色不扩大权限:Jefa、Bole、Tonborg 仍要经过 Provider 选择和它们自己的负责项目检查(与 `@名字` 相同)。
|
|
77
|
+
不在负责范围内时说明「没有负责这个项目」,并给出最短的处理办法:在控制台它的「管理负责项目」里加上该项目;
|
|
78
|
+
当前会话不属于任何项目时说明它只在项目里工作,请在项目文件夹里再叫它。和某位 FLA 同名时列出两位让人选,不猜。
|
|
65
79
|
- 选择沿用 FULI 的原生选择交互(`human_interaction`,`host_native_single_choice`,带选择器自己的说明):
|
|
66
80
|
Claude Code 显示可点选的选项,其他客户端显示编号列表。点选后 Agent 以 `#FLA 编号` 调用
|
|
67
81
|
`begin_task_context`;直接回复编号也一样。选定之前不加载任何 FLA 的记忆,也不切到当前目录的 FLA;
|
|
@@ -75,15 +89,15 @@
|
|
|
75
89
|
绑定期间,不是 FLA 的 `@词` 若按当前目录原来的 `@名字` 规则能找到 Agent(项目里的 Agent,或 Jefa 等 FULI 角色),
|
|
76
90
|
这一轮交给它,绑定留到下一轮;哪里都找不到时仍由所绑定的 FLA 处理。圆桌唤醒等内部活动原样保留绑定。解除后回到常规归属:目录的项目,没有项目时回到助理。
|
|
77
91
|
- 入口与收尾回执各用一句话说明由谁、在哪个项目继续,例如「本会话由 Jamie Ash 继续项目 Beta 的工作」。
|
|
78
|
-
|
|
79
|
-
|
|
92
|
+
目标不可用时说明原因(已被解雇、已停用、不允许在当前客户端使用、已不在该项目任职、没有负责这个项目、无权访问),
|
|
93
|
+
有合法的处理办法时接着说一句(例如「可在控制台为 Jamie Ash 允许当前客户端」),不换人兜底;客户端许可沿用 `coversClient`(只写了 `other` 的旧列表也覆盖 OpenCode),知识可见性仍由
|
|
80
94
|
Provider 按「FLA 在其项目」判定。名册读取失败时,不带 `FLA` 的 `@词` 按原路由处理。
|
|
81
95
|
- 不当作 FLA 的写法:邮箱、代码注解或装饰器(`@Override`、`@app.route`)、包作用域或路径
|
|
82
96
|
(`@scope/pkg`)、文件名(`@README.md`)、`@FLG`(邀请多位,见下节),以及不在开头的 `@姓名`。
|
|
83
97
|
- 控制台的 Agent 卡片、快速查看和个人页上有「复制 #FLA」:一键复制 `#FLA 姓名`(末尾带空格,中文姓名后可直接续写)
|
|
84
98
|
并提示已复制;悬停时列出可直接复制的写法:`#FLA 姓名 在这里继续`、`@FLG 姓名、另一位,一起讨论 …`(知道另一位
|
|
85
99
|
FLA 时)和 `@FLG 让 姓名 参加,再推荐一位 …`。这些写法由 `test/fla-by-name.test.js`、`test/flg-entry.test.js`
|
|
86
|
-
|
|
100
|
+
按中英两种界面语言实际走一遍入口验证。内置角色也有这个按钮,但只给单人的 `#FLA 姓名 在这里继续`;临时 Agent 不显示。
|
|
87
101
|
- 没有 `@`/`#FLA` 的提示词入口不变;绑定中的后续轮只多一句回执,首轮点名多一段约 0.6 KB 的说明,
|
|
88
102
|
选择列表本身约 0.9 KB 且不带任何 Agent 上下文(`test/fla-by-name.test.js` 实测)。
|
|
89
103
|
|
|
@@ -103,8 +117,8 @@
|
|
|
103
117
|
| `@FLG 如果流量翻倍呢?` | 讨论开始后:同一批成员、同一个群聊里追问;写出某位成员的姓名就只问他 |
|
|
104
118
|
| `@FLG 结束`(`stop`) | 立即停止:不再唤醒任何成员,未回复的成员按「已结束」记录 |
|
|
105
119
|
|
|
106
|
-
- `@FLG` / `#FLG` 只在提示词开头才算;句中、反引号或代码块里的写法都是普通文字。句中的 `#FLA`
|
|
107
|
-
|
|
120
|
+
- `@FLG` / `#FLG` 只在提示词开头才算;句中、反引号或代码块里的写法都是普通文字。句中的 `#FLA` 按上节的
|
|
121
|
+
规则(开头、行首,或请求词后的完整姓名)。开头的 `@姓名` 仍按 rec#11 D-68a 的规则处理。
|
|
108
122
|
- 名字在问题里任何位置写全名都算点名,单个名字的词要写成 `@Jamie`(与 `@姓名` 相同的规则)。
|
|
109
123
|
同名的 FLA 各列一项、都不勾选,让人选出那一位;已被解雇、停用、没有可唤醒它的执行器的点名成员会说明原因,
|
|
110
124
|
不用别人顶替。本会话自己的 FLA 是主持人,不作为成员被唤醒。
|
|
@@ -128,6 +128,31 @@ The following operations intentionally remain local-user-only:
|
|
|
128
128
|
- confirming preference visibility scope;
|
|
129
129
|
- batch confirmation of knowledge.
|
|
130
130
|
- Jefa task completion that records explicit human acceptance (other task updates remain available through the employee tools).
|
|
131
|
+
- confirming, rejecting or retiring an Agent's workflow (`POST /api/agent-workflows/:workflowId/decision`).
|
|
132
|
+
|
|
133
|
+
## Agent workflows and the Agent home (rec#60 D-78)
|
|
134
|
+
|
|
135
|
+
An Agent's home page (`/agents/:spaceId/:agentId`) opens on its 「工作台 / Workbench」 tab when it
|
|
136
|
+
has tasks or workflows; an Agent with neither gets no empty workbench, and a built-in role keeps
|
|
137
|
+
its own workbench page. The tab is loaded only when opened, unmounted when left, and never polls.
|
|
138
|
+
Its board is a view of the tasks assigned to the Agent (`GET /api/project-agent-tasks?agentId=`)
|
|
139
|
+
on the shared task board: one project shows that project's own columns, several projects the
|
|
140
|
+
built-in five. Cards open the task; the board stores nothing and moves nothing.
|
|
141
|
+
|
|
142
|
+
Workflows are the Agent's own repeated work as named, ordered steps, in
|
|
143
|
+
`agent-workflows.sqlite` (format 1). The task's bound Agent, read from the current
|
|
144
|
+
`taskContextToken`, is the only owner a tool acts for:
|
|
145
|
+
|
|
146
|
+
- `propose_agent_workflow` proposes a workflow from a `list_workflow_candidates` candidate that
|
|
147
|
+
repeated often enough across sessions, or from the Agent's own steps; with `workflowId` it
|
|
148
|
+
proposes a change. Every proposal is a new version and older versions are kept.
|
|
149
|
+
- `list_agent_workflows` is the index (name, purpose, step count, `approxTokens`, status, last
|
|
150
|
+
run); `read_agent_workflow` returns the confirmed steps of one active workflow;
|
|
151
|
+
`record_agent_workflow_run` records the outcome of a run the Agent did.
|
|
152
|
+
|
|
153
|
+
Only the person confirms, rejects or retires a workflow, on the Agent's home page, at the
|
|
154
|
+
version the page showed. Nothing is active until confirmed, nothing runs by itself, and
|
|
155
|
+
workflows are never put into an entry or other context.
|
|
131
156
|
|
|
132
157
|
These are trust boundaries, not missing interfaces. An Agent may explain where the user can perform the action, but must not substitute direct HTTP, storage, shell, or browser scripting.
|
|
133
158
|
|
|
@@ -149,6 +149,53 @@ configuration, hooks, transcript parsing, or execution, never a second version o
|
|
|
149
149
|
and role rules. Missing enhancements must remain explicit; a generic connection must not claim
|
|
150
150
|
automatic capture or wake.
|
|
151
151
|
|
|
152
|
+
## Shared client components
|
|
153
|
+
|
|
154
|
+
Two components FULI shares with other products recognize clients, open their sessions and install
|
|
155
|
+
into them (rec#11 D-79): [agent-session-launcher](https://github.com/JevonsCode/agent-session-launcher)
|
|
156
|
+
and [agent-installer](https://github.com/JevonsCode/agent-installer). FULI runs each as a pinned
|
|
157
|
+
native executable through its own ports (`src/agent-kits/session-launcher.js`,
|
|
158
|
+
`src/agent-kits/client-installer.js`); their Node bindings are vendored unchanged under
|
|
159
|
+
`src/agent-kits/vendor/`. This first stage changes nothing a person sees, except as noted below:
|
|
160
|
+
|
|
161
|
+
- **Session links.** Settings → conversation launchers are written as the launcher's host
|
|
162
|
+
configuration (`agent-kits/launcher.json` in the data directory, one `fuli-<application>` deep-link
|
|
163
|
+
client per template the launcher can express) whenever the settings are read or saved. Before a
|
|
164
|
+
knowledge record shows 「打开会话」, the console asks `GET /api/session-launch/offers`, which uses
|
|
165
|
+
the launcher's `clients` and `inspect`. The link itself is the same href as before. Differences:
|
|
166
|
+
an `any` ID format is the launcher's `safe` format (letters, digits, `.`, `_`, `:`, `-`), so a
|
|
167
|
+
session ID with other characters gets no link. A template the launcher cannot express (for
|
|
168
|
+
example `https://…`), a missing launcher or a failed request keeps FULI's own rules. Nothing
|
|
169
|
+
opens a client yet: no route calls the launcher's `open`.
|
|
170
|
+
- **Which Claude client.** Claude Code's hooks record, once per session, the raw
|
|
171
|
+
`CLAUDE_CODE_ENTRYPOINT` (`cli`, `claude-desktop`, …) and a source label in `session-clients/`
|
|
172
|
+
in the data directory. A hook starts no process and never waits on the launcher. When the
|
|
173
|
+
console needs the client (the offers route), it asks the launcher's `classify` and keeps the
|
|
174
|
+
answer (`claude-code`, `claude-desktop` or the ambiguous `claude-code-unknown`) in the same
|
|
175
|
+
record. Sessions recorded before this have no record and are classified from their source
|
|
176
|
+
application alone.
|
|
177
|
+
- **Installer status in shadow.** The console runs the installer's read-only `status` against
|
|
178
|
+
FULI's product manifest (`src/agent-kits/fuli-installer-manifest.json`, composed into
|
|
179
|
+
`agent-kits/fuli-installer.json`) beside FULI's own inspection, at most every ten minutes and
|
|
180
|
+
never in the doctor's way. Per-client agreement is in the doctor report's `internal.installerShadow`
|
|
181
|
+
(state codes only); the doctor's items and overall are unchanged. FULI's own writers still set
|
|
182
|
+
up every client.
|
|
183
|
+
|
|
184
|
+
**Where the executables come from**, first match wins: the developer override
|
|
185
|
+
`FULI_AGENT_SESSION_LAUNCHER` / `FULI_AGENT_INSTALLER` (an absolute path), the Windows portable or
|
|
186
|
+
tray bundle (`runtime/agent-kits/*.exe`, listed under `agentKits` in `native-bundle.json` and in the
|
|
187
|
+
portable and tray inventories), then a copy downloaded into `native-runtime/agent-kits/` of the data
|
|
188
|
+
directory the first time the console needs it (never at import time, never from a hook). Downloads
|
|
189
|
+
use the pinned URL and are published only after their SHA-256 matches the pin; a copy that no longer
|
|
190
|
+
matches is refused, not replaced. Offline or on a platform without a release asset the component is
|
|
191
|
+
unavailable and FULI keeps its own behaviour.
|
|
192
|
+
|
|
193
|
+
**Bumping a component.** Release the component, then in one change: copy the new tag's
|
|
194
|
+
`bindings/node/index.mjs`, `index.d.ts` and `LICENSE` into `src/agent-kits/vendor/<component>/` and
|
|
195
|
+
update that README's tag and commit; set `version` and every platform's SHA-256 in
|
|
196
|
+
`src/agent-kits/pins.js` from the release's `SHA256SUMS`; run `test/agent-kits/` (the pin, bundle,
|
|
197
|
+
launcher and shadow tests download and verify the new assets).
|
|
198
|
+
|
|
152
199
|
## Common failure recovery
|
|
153
200
|
|
|
154
201
|
| Symptom | What to try |
|
package/docs/client-links.md
CHANGED
|
@@ -8,6 +8,10 @@ of code and keeps no per-client branches.
|
|
|
8
8
|
|
|
9
9
|
Public copy: `https://raw.githubusercontent.com/JevonsCode/fuli/main/registry/client-links.json`
|
|
10
10
|
|
|
11
|
+
The 「打开会话」 link on a knowledge record's evidence is a different setting (Settings →
|
|
12
|
+
conversation launchers); agent-session-launcher checks it, see
|
|
13
|
+
[Shared client components](client-connections.md#shared-client-components).
|
|
14
|
+
|
|
11
15
|
## Format (formatVersion 1)
|
|
12
16
|
|
|
13
17
|
```json
|
package/docs/employee-agents.md
CHANGED
|
@@ -6,7 +6,7 @@ Every Project Agent requires a primary occupation (`occupation.role`, from `prod
|
|
|
6
6
|
|
|
7
7
|
## User flow
|
|
8
8
|
|
|
9
|
-
Every Agent the console shows is built in, so the console has no hiring step. To narrow what Jefa or
|
|
9
|
+
Every Agent the console shows is built in, so the console has no hiring step. To narrow what Jefa, Bole or Tonborg manage, use **Manage assigned projects** on their card or workbench. For Bole and Tonborg, whose identities the Provider provisions, the save only edits the projects of the existing active identity (with the same version check, assignment reasons and read-back); it never creates or reactivates one (`system_managed_employee`). The Assistant works globally and takes no projects. A custom employee package is recruited through the `recruit_employee` Agent tool only. The custom project picker supports multiple selection, individual exclusions, search, and **Invert selection**. **All projects** includes future active projects unless explicitly excluded. **Selected projects** keeps a fixed selection; selecting none in that mode leaves the role without a project. The Agent directory reflects the persistent identity; **Specialist Agents → Jefa** in the sidebar opens its built-in board directly. Hiring alone does not create a project. Register a lasting project from the personal-project directory, or explicitly coordinate a one-off task to use the temporary scope described below.
|
|
10
10
|
|
|
11
11
|
Specialist workspaces use a compact host toolbar rather than the generic console heading. They keep the workspace's own navigation and content, plus the host's project switcher and responsibility editor. The selected project is reflected in the URL; an unauthorized explicit deep link is never silently redirected to a different project. Empty assignments, unavailable templates and catalog errors each have an actionable state. The `employee` CLI/API/manifest names are unchanged for compatibility.
|
|
12
12
|
|
|
@@ -39,7 +39,8 @@ class ConversationEvent(StrictModel):
|
|
|
39
39
|
event_id: str = Field(min_length=1, max_length=256)
|
|
40
40
|
role: Literal['user', 'assistant', 'tool', 'summary']
|
|
41
41
|
content: str = Field(min_length=1, max_length=131072)
|
|
42
|
-
|
|
42
|
+
# compaction_summary: the summary an Agent client wrote when it compacted its own context.
|
|
43
|
+
kind: Literal['message', 'tool_call', 'tool_result', 'checkpoint', 'compaction_summary'] = 'message'
|
|
43
44
|
|
|
44
45
|
@model_validator(mode='after')
|
|
45
46
|
def reject_secrets(self):
|
|
@@ -1,38 +1,28 @@
|
|
|
1
1
|
"""Deterministic conversation compaction and recovery: no model calls.
|
|
2
2
|
|
|
3
3
|
Older messages fold into a bounded digest once the unfolded text passes a size
|
|
4
|
-
threshold; raw events are always retained. Folding is
|
|
5
|
-
first line of each user request
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
the digest; its whole serialized JSON is bounded in UTF-8 bytes.
|
|
4
|
+
threshold; raw events are always retained. Folding is an index, not a summary:
|
|
5
|
+
it keeps the first line of each user request and points at each compaction
|
|
6
|
+
summary the Agent client wrote for its own context, with source role and
|
|
7
|
+
sequence. Keyword-picked lines were dropped: on blind-labelled sessions
|
|
8
|
+
they were almost all chatter. Default recovery carries the latest checkpoint,
|
|
9
|
+
recent raw and the latest client compaction summary, bounded in UTF-8 bytes.
|
|
11
10
|
"""
|
|
12
11
|
import json
|
|
13
|
-
import re
|
|
14
12
|
|
|
15
13
|
from .provider_values import sha256_text
|
|
16
14
|
|
|
17
15
|
# Bump when the folding rules change; an older digest is rebuilt from raw events.
|
|
18
|
-
DIGEST_VERSION =
|
|
16
|
+
DIGEST_VERSION = 3
|
|
19
17
|
DIGEST_TASKS = 12
|
|
20
18
|
DIGEST_BYTES = 6000
|
|
21
19
|
DIGEST_ENTRIES = 80
|
|
22
20
|
ENTRY_BYTES = 240
|
|
23
21
|
ENTRY_SOURCES = 4
|
|
22
|
+
COMPACTION_KIND = 'compaction_summary'
|
|
24
23
|
|
|
25
|
-
# Checked in order: a correction that also names a method stays a correction.
|
|
26
|
-
MARKERS = (
|
|
27
|
-
('correction', re.compile(r'\b(correction|actually|instead|rather than|no longer|was wrong)\b'
|
|
28
|
-
r'|更正|纠正|改为|改成|不再|其实', re.I)),
|
|
29
|
-
('decision', re.compile(r'\b(decided?|decision|agreed|we will|chose)\b|决定|决策|确定|采用|约定', re.I)),
|
|
30
|
-
('open', re.compile(r'\b(todo|unresolved|open question|pending|blocked|remaining|follow[- ]up|not yet)\b'
|
|
31
|
-
r'|\bnext(\s+steps?)?\s*:|待办|未解决|待确认|下一步|遗留|阻塞|未完成', re.I)),
|
|
32
|
-
('method', re.compile(r'\b(method|approach|steps?|workaround|procedure|how to)\b|方法|步骤|方案|做法', re.I)),
|
|
33
|
-
)
|
|
34
24
|
# Lower value is evicted first; within a priority, the least recently seen goes first.
|
|
35
|
-
PRIORITY = {'request': 0, '
|
|
25
|
+
PRIORITY = {'request': 0, 'compaction': 1}
|
|
36
26
|
|
|
37
27
|
|
|
38
28
|
def message_bytes(event):
|
|
@@ -54,8 +44,18 @@ def add_task_result(digest, at, status, summary):
|
|
|
54
44
|
return {**digest, 'tasks': tasks[-DIGEST_TASKS:]}
|
|
55
45
|
|
|
56
46
|
|
|
47
|
+
def note_compaction(digest, sequence, size):
|
|
48
|
+
"""Point at the newest client compaction summary; recovery reads it by sequence."""
|
|
49
|
+
return {**digest, 'compaction': {'sequence': sequence, 'bytes': size}}
|
|
50
|
+
|
|
51
|
+
|
|
57
52
|
def extract_lines(event):
|
|
58
53
|
"""Yield (kind, line) candidates and the count of lines left out."""
|
|
54
|
+
if event['role'] == 'summary' and event.get('kind') == COMPACTION_KIND:
|
|
55
|
+
# One preview per summary; its full text stays in the raw event.
|
|
56
|
+
return [('compaction', ' '.join(event['content'].split()))], 0
|
|
57
|
+
if event['role'] not in ('user', 'assistant') or event.get('kind', 'message') != 'message':
|
|
58
|
+
return [], 0
|
|
59
59
|
lines, fenced, omitted = [], False, 0
|
|
60
60
|
for part in event['content'].splitlines():
|
|
61
61
|
line = part.strip()
|
|
@@ -66,16 +66,9 @@ def extract_lines(event):
|
|
|
66
66
|
omitted += 1 # code is never extracted, but it is still left out
|
|
67
67
|
elif line:
|
|
68
68
|
lines.append(line)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
if kind is None and index == 0 and event['role'] == 'user':
|
|
73
|
-
kind = 'request'
|
|
74
|
-
if kind is None:
|
|
75
|
-
omitted += 1
|
|
76
|
-
else:
|
|
77
|
-
found.append((kind, line))
|
|
78
|
-
return found, omitted
|
|
69
|
+
if event['role'] == 'user' and lines:
|
|
70
|
+
return [('request', lines[0])], omitted + len(lines) - 1
|
|
71
|
+
return [], omitted + len(lines)
|
|
79
72
|
|
|
80
73
|
|
|
81
74
|
def last_sequence(entry):
|
|
@@ -83,7 +76,7 @@ def last_sequence(entry):
|
|
|
83
76
|
|
|
84
77
|
|
|
85
78
|
def evict_order(entries):
|
|
86
|
-
return sorted(range(len(entries)), key=lambda i: (PRIORITY
|
|
79
|
+
return sorted(range(len(entries)), key=lambda i: (PRIORITY.get(entries[i]['kind'], 0), last_sequence(entries[i])))
|
|
87
80
|
|
|
88
81
|
|
|
89
82
|
def fold_messages(digest, events):
|
|
@@ -93,8 +86,6 @@ def fold_messages(digest, events):
|
|
|
93
86
|
index = {entry['text']: entry for entry in entries if not entry.get('truncated')}
|
|
94
87
|
omitted = digest.get('omitted', 0)
|
|
95
88
|
for event in events:
|
|
96
|
-
if event['role'] not in ('user', 'assistant') or event.get('kind', 'message') != 'message':
|
|
97
|
-
continue
|
|
98
89
|
found, skipped = extract_lines(event)
|
|
99
90
|
omitted += skipped
|
|
100
91
|
source = {'role': event['role'], 'sequence': event['sequence']}
|
|
@@ -130,64 +121,11 @@ def fold_messages(digest, events):
|
|
|
130
121
|
def refold_digest(digest, events):
|
|
131
122
|
"""Rebuild extracted entries with the current rules from the raw events they came from.
|
|
132
123
|
|
|
133
|
-
Task results come from checkpoints
|
|
124
|
+
Task results come from checkpoints and the compaction pointer from appends,
|
|
125
|
+
not from the folded events, so both are kept.
|
|
134
126
|
"""
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
def entry_line(entry):
|
|
139
|
-
sources = ', '.join(f"{source['role']} #{source['sequence']}" for source in entry['sources'])
|
|
140
|
-
return f"- {entry['text']} [{entry['kind']}, {sources}]"
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
def render_digest(digest, budget=None):
|
|
144
|
-
"""Render recovery text; a byte budget bounds the whole text, dropping
|
|
145
|
-
legacy notes, request titles and methods, then the oldest task results,
|
|
146
|
-
and only then decisions, corrections and open work."""
|
|
147
|
-
tasks = list(digest.get('tasks', []))
|
|
148
|
-
notes = list(digest.get('notes', []))
|
|
149
|
-
entries = list(digest.get('entries', []))
|
|
150
|
-
omitted = digest.get('omitted', 0)
|
|
151
|
-
truncated = 0
|
|
152
|
-
|
|
153
|
-
def task_line(task):
|
|
154
|
-
nonlocal truncated
|
|
155
|
-
summary = task['summary']
|
|
156
|
-
if budget is not None:
|
|
157
|
-
summary, cut = bounded_text(summary)
|
|
158
|
-
truncated += cut
|
|
159
|
-
return f"[{task['at'][:10]} {task['status']}] {summary}"
|
|
160
|
-
|
|
161
|
-
def text():
|
|
162
|
-
nonlocal truncated
|
|
163
|
-
truncated = 0
|
|
164
|
-
lines = [task_line(task) for task in tasks]
|
|
165
|
-
if notes:
|
|
166
|
-
lines += ['Earlier requests:', *(f'- {note}' for note in notes)]
|
|
167
|
-
if entries:
|
|
168
|
-
lines += ['Extracted from earlier messages (not verified working memory; originals retained):',
|
|
169
|
-
*map(entry_line, entries)]
|
|
170
|
-
if omitted or truncated:
|
|
171
|
-
lines.append(f'({omitted} earlier lines omitted, {truncated} task results truncated; '
|
|
172
|
-
'read the original history for details)')
|
|
173
|
-
return '\n'.join(lines)
|
|
174
|
-
|
|
175
|
-
if budget is None:
|
|
176
|
-
return text()
|
|
177
|
-
while len(text().encode()) > budget:
|
|
178
|
-
low = [i for i in evict_order(entries) if PRIORITY[entries[i]['kind']] < PRIORITY['decision']]
|
|
179
|
-
if notes:
|
|
180
|
-
notes.pop(0)
|
|
181
|
-
elif low:
|
|
182
|
-
entries.pop(low[0])
|
|
183
|
-
elif tasks:
|
|
184
|
-
tasks.pop(0)
|
|
185
|
-
elif entries:
|
|
186
|
-
entries.pop(evict_order(entries)[0])
|
|
187
|
-
else:
|
|
188
|
-
return bounded_text(text(), budget)[0]
|
|
189
|
-
omitted += 1
|
|
190
|
-
return text()
|
|
127
|
+
kept = {key: digest[key] for key in ('tasks', 'compaction') if key in digest}
|
|
128
|
+
return fold_messages(kept, events)
|
|
191
129
|
|
|
192
130
|
|
|
193
131
|
def json_bytes(value):
|
|
@@ -208,9 +146,11 @@ def _fit_prefix(text, target, key, fits):
|
|
|
208
146
|
|
|
209
147
|
|
|
210
148
|
def pack_context(summary, events, budget, checkpoint=None, *, conversation_id=None, revision=None,
|
|
211
|
-
omitted_sequence=None, scan_truncated=False):
|
|
149
|
+
omitted_sequence=None, scan_truncated=False, compaction=None):
|
|
212
150
|
# Keep the old empty summary fields for readers; digests remain in history,
|
|
213
151
|
# never compete with the latest checkpoint and visible raw messages here.
|
|
152
|
+
# `compaction` is the newest client compaction summary ({sequence, content}):
|
|
153
|
+
# its pointer goes in first, its text only into what recent raw leaves free.
|
|
214
154
|
latest = ({'status': checkpoint['status'], 'summary': checkpoint['summary'], 'truncated': False}
|
|
215
155
|
if checkpoint and checkpoint.get('summary') else None)
|
|
216
156
|
result = {'summary': '', 'messages': [], 'truncated': omitted_sequence is not None or scan_truncated,
|
|
@@ -222,6 +162,12 @@ def pack_context(summary, events, budget, checkpoint=None, *, conversation_id=No
|
|
|
222
162
|
def fits():
|
|
223
163
|
return json_bytes(result) <= budget
|
|
224
164
|
|
|
165
|
+
if compaction:
|
|
166
|
+
result['compaction_summary'] = {'sequence': compaction['sequence'],
|
|
167
|
+
'bytes': len(compaction['content'].encode())}
|
|
168
|
+
if not fits():
|
|
169
|
+
del result['compaction_summary']
|
|
170
|
+
|
|
225
171
|
def fit_checkpoint():
|
|
226
172
|
if latest and not fits():
|
|
227
173
|
result['truncated'] = latest['truncated'] = True
|
|
@@ -256,6 +202,10 @@ def pack_context(summary, events, budget, checkpoint=None, *, conversation_id=No
|
|
|
256
202
|
else:
|
|
257
203
|
result['messages'].clear()
|
|
258
204
|
break
|
|
205
|
+
if 'compaction_summary' in result:
|
|
206
|
+
result['compaction_summary']['content'] = compaction['content']
|
|
207
|
+
if not fits():
|
|
208
|
+
del result['compaction_summary']['content']
|
|
259
209
|
return result
|
|
260
210
|
|
|
261
211
|
|
|
@@ -6,7 +6,8 @@ import json
|
|
|
6
6
|
from fastapi import HTTPException
|
|
7
7
|
from .agent_conversation_models import ConversationPolicy, ConversationWrite
|
|
8
8
|
from .conversation_context import (
|
|
9
|
-
DIGEST_VERSION, add_delivery_proofs, add_task_result, fold_messages, message_bytes,
|
|
9
|
+
COMPACTION_KIND, DIGEST_VERSION, add_delivery_proofs, add_task_result, fold_messages, message_bytes, note_compaction,
|
|
10
|
+
pack_context, refold_digest,
|
|
10
11
|
)
|
|
11
12
|
from .project_agent_access import authorize_project_agent
|
|
12
13
|
from .conversation_scope import conversation_binding_id, conversation_scope_id, started_conversation_id
|
|
@@ -157,13 +158,24 @@ class StoreAgentConversations:
|
|
|
157
158
|
checkpoint = {'status': record.get('status') or 'reported', 'summary': record.get('summary')}
|
|
158
159
|
context = pack_context('', decoded, policy.context_budget, checkpoint,
|
|
159
160
|
conversation_id=record['id'], revision=record['revision'],
|
|
160
|
-
omitted_sequence=omitted, scan_truncated=scan_truncated
|
|
161
|
+
omitted_sequence=omitted, scan_truncated=scan_truncated,
|
|
162
|
+
compaction=await self._latest_compaction(record))
|
|
161
163
|
# A session's task entry asks with its own ID; the host strips these
|
|
162
164
|
# proofs once it knows what that session has already seen.
|
|
163
165
|
if request.session_id is not None and request.source_application is not None:
|
|
164
166
|
add_delivery_proofs(context, decoded, request.source_application, request.session_id)
|
|
165
167
|
return {**self._conversation_view(record, policy), 'context': context}
|
|
166
168
|
|
|
169
|
+
async def _latest_compaction(self, record):
|
|
170
|
+
"""The newest client compaction summary within this revision, or None."""
|
|
171
|
+
pointer = json.loads(record['digest']).get('compaction') if record.get('digest') else None
|
|
172
|
+
if not pointer or pointer['sequence'] > record['revision']:
|
|
173
|
+
return None
|
|
174
|
+
rows, _, _ = await self.runtime.driver.execute_query(
|
|
175
|
+
'MATCH (c:FuliConversation {id: $id})-[:HAS_EVENT]->(e:FuliConversationEvent {sequence: $sequence}) '
|
|
176
|
+
'RETURN e.payload AS payload, e.sequence AS sequence', id=record['id'], sequence=pointer['sequence'])
|
|
177
|
+
return decode_event(rows[0]) if rows else None
|
|
178
|
+
|
|
167
179
|
async def _current_digest(self, record):
|
|
168
180
|
"""The stored digest, rebuilt once from raw events when older folding rules made it."""
|
|
169
181
|
if not record.get('digest'):
|
|
@@ -227,17 +239,6 @@ class StoreAgentConversations:
|
|
|
227
239
|
'unfolded_bytes': record.get('unfolded_bytes') or 0,
|
|
228
240
|
'policy': policy.model_dump(), 'raw_retained': True}
|
|
229
241
|
|
|
230
|
-
@staticmethod
|
|
231
|
-
def _digest_text(record, budget=None):
|
|
232
|
-
"""Historical recovery text; the latest checkpoint is returned separately."""
|
|
233
|
-
if not record.get('digest'):
|
|
234
|
-
return ''
|
|
235
|
-
digest = json.loads(record['digest'])
|
|
236
|
-
tasks = digest.get('tasks', [])
|
|
237
|
-
if tasks and tasks[-1]['summary'] == record.get('summary'):
|
|
238
|
-
digest = {**digest, 'tasks': tasks[:-1]}
|
|
239
|
-
return render_digest(digest, budget)
|
|
240
|
-
|
|
241
242
|
async def _compact_conversation(self, conversation_id, policy):
|
|
242
243
|
"""Fold older messages into the digest, keeping recent ones verbatim."""
|
|
243
244
|
rows, _, _ = await self.runtime.driver.execute_query(
|
|
@@ -307,6 +308,7 @@ class StoreAgentConversations:
|
|
|
307
308
|
"c.last_activity=$now, c.summary='', c.status='reported' "
|
|
308
309
|
'SET c.serial=coalesce(c.serial,0)+1', id=conversation_id, scope=scope, now=now)
|
|
309
310
|
new_summary = False
|
|
311
|
+
compaction = None
|
|
310
312
|
unfolded = 0
|
|
311
313
|
for event in request.events:
|
|
312
314
|
digest, payload = encode_event(event)
|
|
@@ -320,19 +322,28 @@ class StoreAgentConversations:
|
|
|
320
322
|
if event.kind == 'checkpoint':
|
|
321
323
|
new_summary = True
|
|
322
324
|
unfolded += message_bytes(event.model_dump())
|
|
323
|
-
await store.runtime.driver.execute_query(
|
|
325
|
+
created, _, _ = await store.runtime.driver.execute_query(
|
|
324
326
|
'MATCH (c:FuliConversation {id: $id}) SET c.revision=c.revision+1, c.last_activity=$now '
|
|
325
327
|
'CREATE (e:FuliConversationEvent {id: $event_id, digest: $digest, payload: $payload, '
|
|
326
328
|
'sequence: c.revision, source_application: $source, task_context_token: $task, '
|
|
327
329
|
'session_id: $session, created_at: $created_at}) '
|
|
328
|
-
'CREATE (c)-[:HAS_EVENT]->(e)', id=conversation_id, event_id=event_id,
|
|
330
|
+
'CREATE (c)-[:HAS_EVENT]->(e) RETURN e.sequence AS sequence', id=conversation_id, event_id=event_id,
|
|
329
331
|
digest=digest, payload=payload, now=now, source=request.source_application,
|
|
330
332
|
task=request.task_context_token, session=request.session_id, created_at=created_at)
|
|
333
|
+
if event.kind == COMPACTION_KIND:
|
|
334
|
+
compaction = (created[0]['sequence'], len(event.content.encode()))
|
|
331
335
|
if unfolded:
|
|
332
336
|
await store.runtime.driver.execute_query(
|
|
333
337
|
'MATCH (c:FuliConversation {id: $id}) '
|
|
334
338
|
'SET c.unfolded_bytes=coalesce(c.unfolded_bytes,0)+$bytes',
|
|
335
339
|
id=conversation_id, bytes=unfolded)
|
|
340
|
+
if compaction:
|
|
341
|
+
rows, _, _ = await store.runtime.driver.execute_query(
|
|
342
|
+
'MATCH (c:FuliConversation {id: $id}) RETURN c.digest AS digest', id=conversation_id)
|
|
343
|
+
digest = json.loads(rows[0]['digest']) if rows[0]['digest'] else {}
|
|
344
|
+
await store.runtime.driver.execute_query(
|
|
345
|
+
'MATCH (c:FuliConversation {id: $id}) SET c.digest=$digest', id=conversation_id,
|
|
346
|
+
digest=json.dumps(note_compaction(digest, *compaction), ensure_ascii=False))
|
|
336
347
|
if request.summary is not None and new_summary:
|
|
337
348
|
rows, _, _ = await store.runtime.driver.execute_query(
|
|
338
349
|
'MATCH (c:FuliConversation {id: $id}) RETURN c.digest AS digest', id=conversation_id)
|