fuli-context 0.20.1 → 0.21.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-CjDenGS_.js → AboutPage-D0dTwKq8.js} +1 -1
- package/dist/web/assets/{AgentName-DdlJlpT3.js → AgentName-n4oqQUwE.js} +1 -1
- package/dist/web/assets/{AgentProfilePage-Cx_Uf5Vf.js → AgentProfilePage-DH54S93r.js} +1 -1
- package/dist/web/assets/{AgentsDirectoryPage-DylT-GSW.js → AgentsDirectoryPage-xwIRrNb8.js} +1 -1
- package/dist/web/assets/{BackLink-D7oAvDG5.js → BackLink-nM3e40IT.js} +1 -1
- package/dist/web/assets/{BoardMoveMenu-B0pA7LLx.js → BoardMoveMenu-Cxgkbwkl.js} +1 -1
- package/dist/web/assets/{CaptureChangePage-DEuqPb14.js → CaptureChangePage-DWdz9dEk.js} +1 -1
- package/dist/web/assets/{Card-BZFLZ_2I.js → Card-89NKHANE.js} +1 -1
- package/dist/web/assets/{CardHeader-C_c0keQn.js → CardHeader-9MwjWRxl.js} +1 -1
- package/dist/web/assets/{CardTitle-yXOhV577.js → CardTitle-BAhmXjAK.js} +1 -1
- package/dist/web/assets/{ConnectionsPage-DlnHdtwn.js → ConnectionsPage-Yf4UvjDT.js} +1 -1
- package/dist/web/assets/{CreateProjectDialog-BVJqWdlT.js → CreateProjectDialog-crpLTyDf.js} +1 -1
- package/dist/web/assets/{DataFormatPage-BdcjcyhZ.js → DataFormatPage-BPuUH0PG.js} +1 -1
- package/dist/web/assets/{DialogFooter-DYawfDCD.js → DialogFooter-D9A9hRP4.js} +1 -1
- package/dist/web/assets/{EmployeeRecruitDialog-CB4ARFkM.js → EmployeeRecruitDialog-DeB0XHeM.js} +1 -1
- package/dist/web/assets/EmployeeWorkbenchPage-0oK2RfIh.js +3 -0
- package/dist/web/assets/{EmployeeWorkbenchPage-BenZP7De.css → EmployeeWorkbenchPage-CMutwFBC.css} +1 -1
- package/dist/web/assets/{GrowthLoading-smW3-Gfp.js → GrowthLoading-Cs9brXcN.js} +1 -1
- package/dist/web/assets/{InboxPage-Crn1UU7s.js → InboxPage-CTQ425Ez.js} +1 -1
- package/dist/web/assets/{Input-F1oftPWh.js → Input-DGf4juEs.js} +1 -1
- package/dist/web/assets/{KnowledgeEditDialog-VdQwbX4E.js → KnowledgeEditDialog-Ccgj30Wu.js} +1 -1
- package/dist/web/assets/{KnowledgeHardDeleteSection-CXRmNnZF.js → KnowledgeHardDeleteSection-CSnqisUv.js} +1 -1
- package/dist/web/assets/{KnowledgeItemEditPage-CQo3TbCJ.js → KnowledgeItemEditPage-C0Y2DsHz.js} +1 -1
- package/dist/web/assets/{KnowledgeItemSummaryCard-Dd2McM-d.js → KnowledgeItemSummaryCard-BRvaf4Fw.js} +1 -1
- package/dist/web/assets/{KnowledgeOrganizerPage-BVgAyu6U.js → KnowledgeOrganizerPage-CRC3mk0j.js} +1 -1
- package/dist/web/assets/KnowledgePage-NsKFUWth.js +1 -0
- package/dist/web/assets/{KnowledgePeek-BNBkh1ey.js → KnowledgePeek-Bc0bqyZp.js} +1 -1
- package/dist/web/assets/{KnowledgeTurnReceiptPage-Ckw_olrt.js → KnowledgeTurnReceiptPage-Dl0KeFDe.js} +1 -1
- package/dist/web/assets/{KnowledgeWorkspace-pH2tAFld.js → KnowledgeWorkspace-BGlODG7G.js} +1 -1
- package/dist/web/assets/{Label-yDCtlpkb.js → Label-CafdTnDF.js} +1 -1
- package/dist/web/assets/ModelSettingsPage-Bz1tMXtW.js +1 -0
- package/dist/web/assets/ModelSettingsPage-DJuEaw6p.css +1 -0
- package/dist/web/assets/{NotFoundPage-8gVVukRR.js → NotFoundPage-TfZ2eoA2.js} +1 -1
- package/dist/web/assets/{OccupationsPage-PNoqE21Y.js → OccupationsPage-CnSp6362.js} +1 -1
- package/dist/web/assets/{OverviewPage-DiwYSnhh.js → OverviewPage-D5W-DhOz.js} +2 -2
- package/dist/web/assets/{PersonalProfilePage-C_v2BFee.js → PersonalProfilePage-CndOcRQ6.js} +1 -1
- package/dist/web/assets/{PersonalProjectsPage-DGRV8cM5.js → PersonalProjectsPage-CXBOwEqC.js} +1 -1
- package/dist/web/assets/{PopperContent-5zqbtnYr.js → PopperContent-BXbztFFi.js} +1 -1
- package/dist/web/assets/{Presence-BYfYJNMD.js → Presence-BLar6FCs.js} +1 -1
- package/dist/web/assets/{ProjectAgentDetailPage-BQ9ffaCX.js → ProjectAgentDetailPage-SmZ2NYTw.js} +1 -1
- package/dist/web/assets/{ProjectAgentDialog-BGckQDTq.js → ProjectAgentDialog-Bg0V3Zr2.js} +1 -1
- package/dist/web/assets/{ProjectAgentFirstTask-DrSd3nR-.js → ProjectAgentFirstTask-CbOWaP7Q.js} +1 -1
- package/dist/web/assets/{ProjectAgentsPage-U4Om3EPu.js → ProjectAgentsPage-Y6qCYRZj.js} +1 -1
- package/dist/web/assets/{ProjectScopePicker-D0oxbwOd.js → ProjectScopePicker-ClDUoUHW.js} +1 -1
- package/dist/web/assets/{PublicProjectsPage-CvkQ3E8I.js → PublicProjectsPage-C63vW9UZ.js} +1 -1
- package/dist/web/assets/{RadioGroupItem-CBpbQlHx.js → RadioGroupItem-tL_2upmD.js} +1 -1
- package/dist/web/assets/{RoundtablesPage-BEUaKOjI.js → RoundtablesPage-2Akxagrm.js} +1 -1
- package/dist/web/assets/{RovingFocusGroup-X9U-ufYr.js → RovingFocusGroup-D5mf9s6I.js} +1 -1
- package/dist/web/assets/{RovingFocusItem-_uA_OCLT.js → RovingFocusItem-DAumq9xD.js} +1 -1
- package/dist/web/assets/{SessionMigrationPage-WVFSDcUO.js → SessionMigrationPage-B5r2PWCF.js} +1 -1
- package/dist/web/assets/{SessionRecordsPage-Bs2eLXEi.js → SessionRecordsPage-DIc2GoCQ.js} +1 -1
- package/dist/web/assets/{SettingsPage-DlIwICIz.js → SettingsPage-BAxKpnBx.js} +1 -1
- package/dist/web/assets/{SharedJefaReportPage-B_rreEep.js → SharedJefaReportPage-B54qEdIV.js} +1 -1
- package/dist/web/assets/{TabsContent-8pXwYJPz.js → TabsContent-DZQE2Iq8.js} +1 -1
- package/dist/web/assets/{TabsTrigger-Cd6SI2yI.js → TabsTrigger-CHnq6mkI.js} +1 -1
- package/dist/web/assets/{TagVocabularyPage-BQiuKG-4.js → TagVocabularyPage-BIsHYk2i.js} +1 -1
- package/dist/web/assets/{TaskExecutionPlan-CupxJeyo.js → TaskExecutionPlan-IYG_JeuT.js} +1 -1
- package/dist/web/assets/{TaskSchedulesPage-zYQs7s6T.js → TaskSchedulesPage-Cxjqc8XQ.js} +1 -1
- package/dist/web/assets/{Teleport-BZX1Eb7R.js → Teleport-BKN3dSMk.js} +1 -1
- package/dist/web/assets/{TextField-CielK4l3.js → TextField-DoKtn--E.js} +1 -1
- package/dist/web/assets/{UiDialog-BSDblUpR.js → UiDialog-7pnZ-eQA.js} +1 -1
- package/dist/web/assets/{UiDisclosure-DLmVwmy1.js → UiDisclosure-COV4NwHI.js} +1 -1
- package/dist/web/assets/{UiIcon-B8eZeuGI.js → UiIcon-BADOYtHM.js} +1 -1
- package/dist/web/assets/{UiIconButton-e754Tmnq.js → UiIconButton-CkBP6pnX.js} +1 -1
- package/dist/web/assets/{UiSegmented-D1HD-qin.js → UiSegmented-FwOnE2IZ.js} +1 -1
- package/dist/web/assets/{UiSelect-CbkTsi2e.js → UiSelect-BIhr03Gk.js} +1 -1
- package/dist/web/assets/{UiToggle-Dz93aXFK.js → UiToggle-bpyawyIe.js} +1 -1
- package/dist/web/assets/{UiWeight-CUvyApSB.js → UiWeight-TyBehy3K.js} +1 -1
- package/dist/web/assets/{UnassignedConversationsPanel-xY7gsFot.js → UnassignedConversationsPanel-B4PqImRi.js} +1 -1
- package/dist/web/assets/{VirtualDirectoryList-Dv6PwLjU.js → VirtualDirectoryList-DNQP6X8j.js} +1 -1
- package/dist/web/assets/{Workbench3D--4N_uKzp.js → Workbench3D-DNwgymIE.js} +1 -1
- package/dist/web/assets/{WritingTastePage-B7KojA4r.js → WritingTastePage-D-ELo7mh.js} +1 -1
- package/dist/web/assets/{_plugin-vue_export-helper-BmfQlfI8.js → _plugin-vue_export-helper-RegzAV-H.js} +1 -1
- package/dist/web/assets/{accordion-gXElbGP_.js → accordion-DpqAdXTB.js} +1 -1
- package/dist/web/assets/{agent-occupation-ChN-1QjC.js → agent-occupation-Ba5Fl0ys.js} +1 -1
- package/dist/web/assets/{agent-pins-Chh_rdBi.js → agent-pins-Bb7-1Uoz.js} +1 -1
- package/dist/web/assets/{agent-profile.css_vue_type_style_index_0_src_true_lang-DWlz7UoN.js → agent-profile.css_vue_type_style_index_0_src_true_lang-wT8gjVyZ.js} +1 -1
- package/dist/web/assets/{agent-work-summary-C9yMf019.js → agent-work-summary-D0a836ik.js} +1 -1
- package/dist/web/assets/{attention-store-CG9cF6DX.js → attention-store-g2-_vAhV.js} +1 -1
- package/dist/web/assets/{badge-DvvDq2Wb.js → badge-BIoC0hjn.js} +1 -1
- package/dist/web/assets/{button-CFEnxtio.js → button-A2esxd6G.js} +1 -1
- package/dist/web/assets/{checkbox-DovdRz8u.js → checkbox-DxBVlC6t.js} +1 -1
- package/dist/web/assets/{client-lh80ewvs.js → client-DAoXcTUz.js} +1 -1
- package/dist/web/assets/{console-CQMgYkk9.js → console-DiNe1hFP.js} +1 -1
- package/dist/web/assets/{conversation-launcher-settings-B1QM-wZB.js → conversation-launcher-settings-CtOlr9uP.js} +1 -1
- package/dist/web/assets/{design-lab-BDKwIbI8.js → design-lab-UWXx2ZtA.js} +1 -1
- package/dist/web/assets/{dialog-D2mO6m3B.js → dialog-DTVE8tN1.js} +1 -1
- package/dist/web/assets/{dist-PmK0PfVA.js → dist-D-8b3yGa.js} +1 -1
- package/dist/web/assets/{dropdown-menu-YzCnvjAb.js → dropdown-menu-NcUrhhmG.js} +1 -1
- package/dist/web/assets/{field-BMEFEyVC.js → field-6mg5DSC8.js} +1 -1
- package/dist/web/assets/{identity-bK-fJdnj.js → identity-FG3YqHVj.js} +1 -1
- package/dist/web/assets/index-BpQe3IT5.js +2 -0
- package/dist/web/assets/{judgment-types-DJnAr9c0.js → judgment-types-rLsl2Cis.js} +1 -1
- package/dist/web/assets/{model-Cengn9fg.js → model-BCnsjEuP.js} +1 -1
- package/dist/web/assets/{model-rumuELTi.js → model-BcMr6R8m.js} +1 -1
- package/dist/web/assets/{model-DpVrfbnj.js → model-CYJ_LZ47.js} +1 -1
- package/dist/web/assets/{model-BwNZZZNP.js → model-CeF2BATq.js} +1 -1
- package/dist/web/assets/{model-CuY1vtEy.js → model-CtmCtjml.js} +1 -1
- package/dist/web/assets/{model-CPMYnu3S.js → model-t2ZvD7wL.js} +1 -1
- package/dist/web/assets/{motion-preference-A1AMssSH.js → motion-preference-DeZURhN7.js} +1 -1
- package/dist/web/assets/{occupation-catalog-DxwlYD1L.js → occupation-catalog-q0ZjGx2o.js} +1 -1
- package/dist/web/assets/{orchestration-filters-DZpJ0FN3.js → orchestration-filters-CKf_Gzdl.js} +1 -1
- package/dist/web/assets/{page-title-Bg-mVyrS.js → page-title-BLHrexaP.js} +1 -1
- package/dist/web/assets/{personal-profile-graph-tMneNj_m.js → personal-profile-graph-IYovB9sV.js} +1 -1
- package/dist/web/assets/{project-capture-QgMw6qvo.js → project-capture-BvIPecIS.js} +1 -1
- package/dist/web/assets/{project-origin-ppsYHpYL.js → project-origin-JnGPwlfA.js} +1 -1
- package/dist/web/assets/project-team-api-Cfn41MCR.js +1 -0
- package/dist/web/assets/{quick-edit-api-BiyK3ih-.js → quick-edit-api-DzpRAPsr.js} +1 -1
- package/dist/web/assets/{shared-report-D3Hem1t5.js → shared-report-BLmBg2FG.js} +3 -3
- package/dist/web/assets/{task-labels-7KyNw9id.js → task-labels-BArOYZEW.js} +1 -1
- package/dist/web/assets/{ui-Ck58paqr.js → ui-CtW0tAA1.js} +1 -1
- package/dist/web/assets/{useAgentRecords-C6RrZwwv.js → useAgentRecords-BoOqLQcf.js} +1 -1
- package/dist/web/assets/{useApi-CROJJdhE-BujjnKN_.js → useApi-CROJJdhE-CH5wlWTU.js} +1 -1
- package/dist/web/assets/{useFocusReturn-D9IOIg17.js → useFocusReturn-DX2zmPSK.js} +1 -1
- package/dist/web/assets/{useKnowledgeItemPeek-C6nAzvDL.js → useKnowledgeItemPeek-Cfvr5H1q.js} +1 -1
- package/dist/web/assets/{useMinimumLoadingDisplay-HnxkDut6.js → useMinimumLoadingDisplay-GhG1ICNJ.js} +1 -1
- package/dist/web/assets/{useRoutePeek-BvYFc1BA.js → useRoutePeek-DydCbUhy.js} +1 -1
- package/dist/web/assets/{vue-router-Bl55c88B.js → vue-router-Dad-4p7O.js} +1 -1
- package/dist/web/index.html +32 -32
- package/docs/agent-conversations-and-collaboration.md +10 -0
- package/docs/employee-agents.md +3 -1
- package/docs/judgment-and-autonomy.md +30 -1
- package/graph-provider/fuli_graph/agent_conversation_models.py +7 -0
- package/graph-provider/fuli_graph/agent_conversation_routes.py +5 -1
- package/graph-provider/fuli_graph/default_project_lead.py +7 -3
- package/graph-provider/fuli_graph/store_agent_conversations.py +66 -34
- 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/host.js +5 -0
- package/packages/roundtable/src/peer/coordinator-service.js +20 -3
- package/packages/roundtable/src/roundtable/service.js +31 -5
- package/skills/capturing-session-knowledge/references/retrieval.md +10 -2
- package/skills/operating-fuli/references/workflow-recipes.md +2 -0
- package/src/agent-apps/host-tools/catalog.js +1 -0
- package/src/agent-tools/executor-routing-definitions.js +194 -0
- package/src/agent-tools/graph-definitions.js +20 -1279
- package/src/agent-tools/graph-handlers.js +6 -2
- package/src/agent-tools/graph-tool-fields.js +43 -0
- package/src/agent-tools/interface-catalog.js +5 -1
- package/src/agent-tools/knowledge-curation-definitions.js +167 -0
- package/src/agent-tools/knowledge-definitions.js +431 -0
- package/src/agent-tools/project-agent-tool-definitions.js +271 -0
- package/src/agent-tools/project-space-definitions.js +155 -0
- package/src/agent-tools/session-fuli-gate.js +33 -31
- package/src/agent-tools/standing-assignment-definitions.js +32 -0
- package/src/agent-tools/task-entry-definitions.js +105 -0
- package/src/agent-tools.js +5 -4
- package/src/agents/claude-code/lifecycle-hook.js +16 -2
- package/src/agents/claude-code/preference-evidence.js +11 -1
- package/src/app/application-error.js +21 -3
- package/src/conversations/capture-window.js +8 -3
- package/src/conversations/entry-budget.js +2 -10
- package/src/conversations/entry-inline-budget.js +144 -0
- package/src/conversations/entry-rules.js +1 -1
- package/src/conversations/entry-time.js +15 -0
- package/src/conversations/preference-evidence.js +19 -0
- package/src/conversations/preference-lifecycle.js +28 -7
- package/src/conversations/preference-session.js +26 -10
- package/src/conversations/preference-snapshot.js +12 -1
- package/src/conversations/sync-transcript.js +10 -6
- package/src/conversations/transcript-guard.js +4 -3
- package/src/conversations/transcript-lifecycle.js +6 -3
- package/src/data-format/local-stores.js +3 -0
- package/src/desktop/windows-installation.js +2 -1
- package/src/external-knowledge/connectors/feishu.js +3 -1
- package/src/graphiti/active-personal-space.js +5 -0
- package/src/graphiti/agent-conversations.js +23 -28
- package/src/graphiti/agent-knowledge-workflows.js +12 -1299
- package/src/graphiti/agent-project-resolution.js +11 -0
- package/src/graphiti/agent-view-records.js +19 -0
- package/src/graphiti/capture-notice.js +20 -6
- package/src/graphiti/collaboration-preference-entry.js +89 -0
- package/src/graphiti/collaboration-preference-workflow.js +1 -1
- package/src/graphiti/common-knowledge-candidates.js +222 -0
- package/src/graphiti/cross-project-knowledge-similarity.js +59 -0
- package/src/graphiti/current-project-knowledge-search.js +86 -0
- package/src/graphiti/decision-trace.js +136 -0
- package/src/graphiti/federated-application.js +158 -795
- package/src/graphiti/human-knowledge-changes.js +45 -0
- package/src/graphiti/knowledge-credential-guard.js +43 -0
- package/src/graphiti/knowledge-curation.js +178 -0
- package/src/graphiti/knowledge-feedback.js +25 -0
- package/src/graphiti/knowledge-graph-reads.js +62 -0
- package/src/graphiti/local-runtimes.js +78 -0
- package/src/graphiti/personal-global-preference-candidates.js +431 -0
- package/src/graphiti/personal-projects.js +33 -0
- package/src/graphiti/preference-conflict-requests.js +57 -0
- package/src/graphiti/preference-project-resolution.js +39 -0
- package/src/graphiti/preference-task-scope.js +18 -0
- package/src/graphiti/project-agent-control-plane.js +6 -1
- package/src/graphiti/project-agent-task-entry.js +18 -1
- package/src/graphiti/project-path-context.js +28 -9
- package/src/graphiti/provider-client.js +1 -1
- package/src/graphiti/public-project-relations.js +28 -0
- package/src/graphiti/public-projects.js +125 -0
- package/src/graphiti/publication-review-queues.js +50 -0
- package/src/graphiti/roundtable-host.js +35 -3
- package/src/graphiti/session-capture-pause-request.js +3 -2
- package/src/graphiti/session-fuli-switch.js +4 -3
- package/src/graphiti/session-knowledge-capture.js +59 -0
- package/src/graphiti/session-records.js +4 -3
- package/src/graphiti/source-marker.js +13 -3
- package/src/graphiti/standing-assignment-confirmation.js +66 -0
- package/src/graphiti/standing-assignment-correction.js +148 -0
- package/src/graphiti/standing-assignment-entry.js +223 -0
- package/src/graphiti/task-context-entry.js +114 -0
- package/src/graphiti/task-entry-preferences.js +4 -1
- package/src/graphiti/task-entry-project-mention.js +13 -2
- package/src/graphiti/task-entry-project-scope.js +12 -3
- package/src/graphiti/task-entry-standing-owner.js +141 -0
- package/src/graphiti/task-knowledge-checkpoint.js +212 -0
- package/src/graphiti/task-knowledge-guidance.js +13 -0
- package/src/graphiti/task-knowledge-recall.js +113 -2
- package/src/graphiti/task-preference-reader.js +1 -1
- package/src/graphiti/workflow-learning.js +38 -0
- package/src/graphiti/workspace-provider-client.js +10 -0
- package/src/http/api-router.js +13 -3
- package/src/http/standing-assignment-api-router.js +35 -0
- package/src/judgment/agent-view.js +29 -7
- package/src/judgment/conversation.js +8 -2
- package/src/judgment/engine.js +16 -4
- package/src/judgment/http.js +37 -5
- package/src/judgment/review-injection-precheck.js +97 -0
- package/src/judgment/review-suggestions.js +46 -0
- package/src/judgment/store.js +8 -0
- package/src/knowledge-hard-delete/delete-ledger.js +12 -3
- package/src/knowledge-hard-delete/recovery-gate.js +4 -4
- package/src/knowledge-owner-reads/console-port.js +8 -0
- package/src/knowledge-owner-reads/owner-proof.js +35 -0
- package/src/local-runtime/lifecycle.js +2 -1
- package/src/local-runtime/provider-readiness.js +35 -11
- package/src/mcp/instructions.js +3 -3
- package/src/mcp/preference-delivery.js +13 -3
- package/src/mcp/session-id.js +2 -0
- package/src/mcp/tool-annotations.js +3 -2
- package/src/model-backends/http.js +45 -8
- package/src/model-backends/role-settings.js +25 -3
- package/src/model-backends/role-trust.js +39 -6
- package/src/model-backends/runtime.js +10 -3
- package/src/model-backends/settings-history-list.js +132 -0
- package/src/model-backends/settings-history.js +175 -0
- package/src/native-runtime/java-runtime.js +4 -4
- package/src/presence/windows-helper-pin.js +1 -1
- package/src/semantic-version.js +5 -1
- package/src/server.js +3 -2
- package/src/setup/claude-code-config.js +1 -1
- package/src/setup/graph-runtime.js +42 -15
- package/src/setup/paths.js +2 -0
- package/src/standing-assignments/port.js +189 -44
- package/src/standing-assignments/store.js +12 -1
- package/src/standing-assignments/term-match.js +7 -0
- package/src/system/file-identity.js +11 -0
- package/src/system/platform-path.js +38 -0
- package/src/validation/values.js +22 -6
- package/dist/web/assets/EmployeeWorkbenchPage-BUMfMBc8.js +0 -3
- package/dist/web/assets/KnowledgePage-Bfbfz_Z8.js +0 -1
- package/dist/web/assets/ModelSettingsPage-C3eBDWRL.js +0 -1
- package/dist/web/assets/ModelSettingsPage-DZkrJw7R.css +0 -1
- package/dist/web/assets/index-r-WFOs21.js +0 -2
- package/dist/web/assets/project-team-api-DwP0O3rn.js +0 -1
|
@@ -3,7 +3,7 @@ import { assertTestToolsEnabled } from '../app/test-tools.js';
|
|
|
3
3
|
import { activeTestToolsEnabled } from '../app/agent-request-context.js';
|
|
4
4
|
import { agentInterfaceCatalog } from './interface-catalog.js';
|
|
5
5
|
import { captureDecision, captureDisabled, describeCapture } from '../graphiti/capture-decision.js';
|
|
6
|
-
import {
|
|
6
|
+
import { refusedAgentWriteNotice } from '../graphiti/capture-notice.js';
|
|
7
7
|
import { isTagGovernanceProposal, knowledgeTagChange, proposeTagGovernance } from '../graphiti/knowledge-tags.js';
|
|
8
8
|
import { prepareKnowledgeRecovery } from '../knowledge-hard-delete/recovery-gate.js';
|
|
9
9
|
|
|
@@ -21,6 +21,7 @@ const HANDLERS = Object.freeze({
|
|
|
21
21
|
get_model_usage: (app, input) => modelBackends(app).usage(input),
|
|
22
22
|
role_work: (app, { action, ...input }) => roleWork(app)[action === 'submit' ? 'submit' : 'claim'](input),
|
|
23
23
|
manage_project_agent_schedule: (app, input) => app.taskSchedules.manage(input),
|
|
24
|
+
register_standing_assignment: (app, input) => app.registerStandingAssignment(input),
|
|
24
25
|
control_project_agent_task_run: (app, input) => app.controlProjectAgentTaskRun({ ...input, agentInvocation: true }),
|
|
25
26
|
// An Agent reads Tonborg's records without their words (rec#50, judgment/agent-view.js).
|
|
26
27
|
list_judgments: (app, input) => app.judgment.agent.records(input),
|
|
@@ -163,6 +164,9 @@ const HANDLERS = Object.freeze({
|
|
|
163
164
|
}),
|
|
164
165
|
review_human_knowledge_change: (app, input) => app.reviewHumanChange(input),
|
|
165
166
|
list_knowledge_spaces: (app) => app.listKnowledgeSpaces(),
|
|
167
|
+
// Agents register projects on their own (capture.md) and FULI cannot verify a
|
|
168
|
+
// person asked, so this stops with recording; the person's explicit paths are
|
|
169
|
+
// the console and a "新项目:" task line (rec#11 D-01).
|
|
166
170
|
upsert_personal_project: (app, input) => captureGuard(app, { sourceApplication: input?.sourceApplication },
|
|
167
171
|
() => app.upsertPersonalProject(input)),
|
|
168
172
|
list_personal_projects: (app, input) => app.listPersonalProjects(input),
|
|
@@ -348,7 +352,7 @@ export function dispatchGraphTool(app, name, input) {
|
|
|
348
352
|
async function captureGuard(app, scope, operation) {
|
|
349
353
|
const capture = await captureDecision(app, scope);
|
|
350
354
|
return capture.allowed ? operation() : { route: 'disabled', ...captureDisabled(capture),
|
|
351
|
-
notice:
|
|
355
|
+
notice: refusedAgentWriteNotice(capture.reason, capture.since), guidance: CAPTURE_OFF_GUIDANCE };
|
|
352
356
|
}
|
|
353
357
|
|
|
354
358
|
const CAPTURE_OFF_GUIDANCE = 'Automatic recording is off, so nothing from this call was saved. Do not retry or describe it as saved; the user can still make explicit changes in the FULI console.';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { boundedString, enumSchema, nullableStringSchema, objectSchema } from './schema.js';
|
|
2
|
+
|
|
3
|
+
// Field schemas more than one graph tool domain shares.
|
|
4
|
+
export const id = boundedString(256);
|
|
5
|
+
export const label = boundedString(512);
|
|
6
|
+
export const shortText = boundedString(2048);
|
|
7
|
+
export const dateTime = { ...boundedString(64), format: 'date-time' };
|
|
8
|
+
export const epistemicQuadrant = enumSchema([
|
|
9
|
+
'known_known', 'known_unknown', 'unknown_known', 'unknown_unknown'
|
|
10
|
+
]);
|
|
11
|
+
export const epistemicStatus = enumSchema(['confirmed', 'observed', 'exploratory']);
|
|
12
|
+
// Agent-confirmed is a read state created only by the usage policy. Agent write
|
|
13
|
+
// tools may submit human/source-confirmed or pending knowledge, but cannot forge it.
|
|
14
|
+
export const confirmationStatus = enumSchema(['confirmed', 'pending']);
|
|
15
|
+
export const inheritanceMode = enumSchema([
|
|
16
|
+
'local_only', 'descendants', 'selected_projects'
|
|
17
|
+
]);
|
|
18
|
+
const confirmationActor = objectSchema({
|
|
19
|
+
kind: enumSchema(['user', 'agent', 'authoritative_source', 'import']),
|
|
20
|
+
label: nullableStringSchema()
|
|
21
|
+
}, ['kind']);
|
|
22
|
+
export const confirmationBasis = objectSchema({
|
|
23
|
+
existenceReason: boundedString(4096),
|
|
24
|
+
quadrantReason: boundedString(4096),
|
|
25
|
+
proposedBy: confirmationActor,
|
|
26
|
+
confirmedBy: { ...confirmationActor, type: ['object', 'null'] },
|
|
27
|
+
confirmedAt: nullableStringSchema(),
|
|
28
|
+
agentPolicyVersion: nullableStringSchema()
|
|
29
|
+
}, ['existenceReason', 'quadrantReason', 'proposedBy']);
|
|
30
|
+
export const knowledgeItemKind = enumSchema(['entity', 'relationship']);
|
|
31
|
+
export const projectRelationType = enumSchema([
|
|
32
|
+
'PART_OF', 'USES_KNOWLEDGE_FROM', 'DEPENDS_ON', 'PROVIDES_TO', 'SHARES_CAPABILITY_WITH',
|
|
33
|
+
'SUCCESSOR_OF', 'RELATED_TO'
|
|
34
|
+
]);
|
|
35
|
+
export const profileAspect = {
|
|
36
|
+
type: ['string', 'null'],
|
|
37
|
+
enum: ['taste', 'personality', 'judgment_preference', null],
|
|
38
|
+
description: 'taste: artifact style (writing voice, wording, structure, format, visuals). judgment_preference: decision/process rules. personality: stable collaboration style; Agent-inferred stays pending.'
|
|
39
|
+
};
|
|
40
|
+
export const sourceApplication = {
|
|
41
|
+
type: ['string', 'null'],
|
|
42
|
+
enum: ['codex', 'claude', 'claude_code', 'cursor', 'kiro', 'other', null]
|
|
43
|
+
};
|
|
@@ -59,6 +59,9 @@ const UI_MUTATION_PARITY = Object.freeze([
|
|
|
59
59
|
agent('POST /api/project-agent-tasks', 'submit_project_agent_task'),
|
|
60
60
|
agent('POST /api/project-agent-tasks/:taskId/runs/:runId/stop', 'control_project_agent_task_run'),
|
|
61
61
|
agent('POST /api/project-agent-tasks/:taskId/retry', 'control_project_agent_task_run'),
|
|
62
|
+
local('POST /api/standing-assignments/:assignmentId/retire', 'Ending a standing assignment in the console is the local person\'s action on the record they read; in a conversation an Agent previews it with register_standing_assignment and confirms only after the person\'s yes (rec#29 F5).'),
|
|
63
|
+
local('POST /api/standing-assignments/:assignmentId/reassign', 'Pointing a standing assignment at another Agent or project in the console is the local person\'s action; in a conversation an Agent previews it with register_standing_assignment and confirms only after the person\'s yes.'),
|
|
64
|
+
local('POST /api/standing-assignments/:assignmentId/terms', 'Editing a standing assignment\'s terms in the console is the local person\'s action; in a conversation an Agent previews it with register_standing_assignment and confirms only after the person\'s yes.'),
|
|
62
65
|
agent('POST /api/task-schedules', 'manage_project_agent_schedule'),
|
|
63
66
|
agent('POST /api/task-schedules/:scheduleId/update', 'manage_project_agent_schedule'),
|
|
64
67
|
agent('POST /api/task-schedules/:scheduleId/pause', 'manage_project_agent_schedule'),
|
|
@@ -146,7 +149,8 @@ export function agentInterfaceCatalog() {
|
|
|
146
149
|
{ domain: 'executors', toolNames: ['list_executors', 'get_executor', 'list_executor_routing_rules', 'list_project_agent_routing_learning'] },
|
|
147
150
|
{ domain: 'agent-score-card', toolNames: ['get_agent_score_card'], readRoutes: ['GET /api/project-agents/:agentId/score-card', 'GET /api/project-agents/:agentId/score-card/evidence'], guidance: 'Bole\'s zero-token score card from recorded outcomes and Tonborg verdicts: separate dimensions with their samples, no total. 数据不足 is no conclusion. Tiers and tool flags are for people to read; they never trigger an action. Task IDs come only with dimension. review: true asks Bole\'s model for one suggested next step on a one-project card; a suggestion only.' },
|
|
148
151
|
{ domain: 'review', toolNames: ['list_personal_review_queue', 'list_project_review_queue', 'list_knowledge_review_candidates'] },
|
|
149
|
-
{ domain: 'model-backends', toolNames: ['get_model_usage', 'role_work'], readRoutes: ['GET /api/model-backends/usage', 'GET /api/model-backends/roles'], guidance: 'Usage
|
|
152
|
+
{ domain: 'model-backends', toolNames: ['get_model_usage', 'role_work'], readRoutes: ['GET /api/model-backends/usage', 'GET /api/model-backends/roles', 'GET /api/model-backends/history'], guidance: 'Usage, role settings and their change history are read-only; configuration and keys are local user operations: the model settings page in the local console (model-backends.json) and fuli models set-key. role_work lets this session answer a built-in Agent\'s handed-off work package; nothing ran before the answer.' },
|
|
153
|
+
{ domain: 'standing-assignments', toolNames: ['register_standing_assignment', 'find_agents'], readRoutes: ['GET /api/standing-assignments'], guidance: 'The person\'s confirmed names for kinds of work, each sent to one project and Agent. Register, correct or end one only on the person\'s words, through preview and their yes.' },
|
|
150
154
|
{ domain: 'session-records', toolNames: ['read_session_records'], readRoutes: ['GET /api/session-records'], guidance: 'Only the session of the calling task. Records a turn of this session made in another project are never returned, not even as a count; the person opens the console list for them.' },
|
|
151
155
|
{ domain: 'policy-and-health', toolNames: ['get_capture_policy', 'explain_settings', 'get_project_agent_coordination_policy', 'get_project_agent_recruitment_policy', 'get_graphiti_status'] },
|
|
152
156
|
],
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import {
|
|
2
|
+
confirmationBasis,
|
|
3
|
+
confirmationStatus,
|
|
4
|
+
epistemicQuadrant,
|
|
5
|
+
epistemicStatus,
|
|
6
|
+
id,
|
|
7
|
+
inheritanceMode,
|
|
8
|
+
knowledgeItemKind,
|
|
9
|
+
profileAspect,
|
|
10
|
+
projectRelationType,
|
|
11
|
+
shortText
|
|
12
|
+
} from './graph-tool-fields.js';
|
|
13
|
+
import { arraySchema, booleanSchema, boundedString, enumSchema, integerSchema, nullableStringSchema, objectSchema }
|
|
14
|
+
from './schema.js';
|
|
15
|
+
|
|
16
|
+
const knowledgeReviewScope = enumSchema([
|
|
17
|
+
'all', 'preferences_global', 'preferences_project', 'projects_all', 'project'
|
|
18
|
+
]);
|
|
19
|
+
const knowledgeConflictResolution = enumSchema([
|
|
20
|
+
'defer', 'keep_target', 'use_source', 'coexist'
|
|
21
|
+
]);
|
|
22
|
+
const personalProjectActionIntent = {
|
|
23
|
+
personalSpaceId: id,
|
|
24
|
+
itemKind: enumSchema(['entity']),
|
|
25
|
+
itemId: id,
|
|
26
|
+
mode: enumSchema(['create', 'existing']),
|
|
27
|
+
targetProjectId: nullableStringSchema(),
|
|
28
|
+
newProjectId: nullableStringSchema(),
|
|
29
|
+
newProjectName: nullableStringSchema(),
|
|
30
|
+
newProjectPurpose: nullableStringSchema(),
|
|
31
|
+
keepSourceRelation: booleanSchema(),
|
|
32
|
+
relationType: projectRelationType,
|
|
33
|
+
conflictResolution: knowledgeConflictResolution,
|
|
34
|
+
reason: shortText
|
|
35
|
+
};
|
|
36
|
+
const personalProjectActionRequired = [
|
|
37
|
+
'personalSpaceId', 'itemKind', 'itemId', 'mode', 'reason'
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
// A person's curation of what FULI learned: review runs, learned workflow
|
|
41
|
+
// steps, revisions and the personal project an entity belongs to.
|
|
42
|
+
export const KNOWLEDGE_CURATION_DEFINITIONS = [
|
|
43
|
+
{
|
|
44
|
+
name: 'start_knowledge_review',
|
|
45
|
+
title: 'REVIEW · Start or resume personal knowledge review',
|
|
46
|
+
description: 'Start or resume the exact selected /flreview scope. A first review has no watermark and scans all in-scope history. A later review uses only the last completed run as its watermark; paused runs never advance it. Project scopes accept only local personal project IDs.',
|
|
47
|
+
inputSchema: objectSchema({
|
|
48
|
+
personalSpaceId: id,
|
|
49
|
+
scope: knowledgeReviewScope,
|
|
50
|
+
personalProjectId: nullableStringSchema()
|
|
51
|
+
}, ['personalSpaceId', 'scope'])
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'list_knowledge_review_candidates',
|
|
55
|
+
title: 'REVIEW · List ranked personal knowledge candidates',
|
|
56
|
+
description: 'List one bounded page for an active or paused review. Provider policy ranks new/changed knowledge, conflicts or attention, low-weight knowledge, then repeated cross-session patterns. Already decided items stay out of the current run. The page limit is not a total-question cap.',
|
|
57
|
+
inputSchema: objectSchema({
|
|
58
|
+
personalSpaceId: id,
|
|
59
|
+
reviewId: id,
|
|
60
|
+
limit: integerSchema({ minimum: 1, maximum: 50 })
|
|
61
|
+
}, ['personalSpaceId', 'reviewId'])
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'record_knowledge_review_progress',
|
|
65
|
+
title: 'WRITE · Record one review outcome',
|
|
66
|
+
description: 'Record one user-authorized candidate outcome after any required knowledge mutation succeeds. confirmed keeps the item, updated/invalidated follow successful writes, deferred carries it into the next review, and delegated_to_ai follows a successful current-quadrant change to unknown_unknown.',
|
|
67
|
+
inputSchema: objectSchema({
|
|
68
|
+
personalSpaceId: id,
|
|
69
|
+
reviewId: id,
|
|
70
|
+
candidateKey: {
|
|
71
|
+
...boundedString(520),
|
|
72
|
+
pattern: '^(entity|relationship):.+'
|
|
73
|
+
},
|
|
74
|
+
outcome: enumSchema([
|
|
75
|
+
'confirmed', 'updated', 'invalidated', 'deferred', 'delegated_to_ai'
|
|
76
|
+
]),
|
|
77
|
+
note: nullableStringSchema()
|
|
78
|
+
}, ['personalSpaceId', 'reviewId', 'candidateKey', 'outcome'])
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'finish_knowledge_review',
|
|
82
|
+
title: 'WRITE · Pause or complete knowledge review',
|
|
83
|
+
description: 'Pause a review without moving its watermark, or complete it and establish the next run watermark. Use completed only when the selected scope is exhausted or the user explicitly finishes it.',
|
|
84
|
+
inputSchema: objectSchema({
|
|
85
|
+
personalSpaceId: id,
|
|
86
|
+
reviewId: id,
|
|
87
|
+
disposition: enumSchema(['paused', 'completed'])
|
|
88
|
+
}, ['personalSpaceId', 'reviewId', 'disposition'])
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'list_workflow_candidates',
|
|
92
|
+
title: 'READ · List learned workflow candidates',
|
|
93
|
+
description: 'Read persisted X-to-Y workflow candidates and their condition, explainable occurrence count, distinct-session count, recency, confirmation authority, negative evidence, declines, review status, and durable authorization. candidateVersion changes only when the rule definition changes; evidenceRevision tracks added or changed evidence; decisionRevision tracks review/authorization state transitions, including reset after a rule change. Rejected candidates and evidence remain in history. This read never executes a step or grants authority.',
|
|
94
|
+
inputSchema: objectSchema({
|
|
95
|
+
personalSpaceId: id,
|
|
96
|
+
personalProjectId: nullableStringSchema(),
|
|
97
|
+
afterStepKey: nullableStringSchema(),
|
|
98
|
+
limit: integerSchema({ minimum: 1, maximum: 100 })
|
|
99
|
+
}, ['personalSpaceId'])
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'recommend_next_workflow_steps',
|
|
103
|
+
title: 'READ · Recommend what to ask after a workflow step',
|
|
104
|
+
description: 'Read persisted candidates matching the completed source step. Provider weights only decide whether a candidate crosses the recommendation threshold; they never grant execution authority. A recommended but unapproved candidate returns ask_user and must not execute Y. Even a durable authorization never replaces per-call approval for high-risk send, delete, publish, payment, or external-write tools.',
|
|
105
|
+
inputSchema: objectSchema({
|
|
106
|
+
personalSpaceId: id,
|
|
107
|
+
personalProjectId: nullableStringSchema(),
|
|
108
|
+
afterStepKey: id,
|
|
109
|
+
limit: integerSchema({ minimum: 1, maximum: 100 })
|
|
110
|
+
}, ['personalSpaceId', 'afterStepKey'])
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: 'revise_personal_knowledge',
|
|
114
|
+
description: 'Confirm, correct (a new version supersedes the old), mark_outdated (negative feedback that ends validity), invalidate, restore, or link a replacement for one personal entity or relationship; history and evidence are kept. A replacement link needs an invalidated item and an exact replacement ID and kind. Same personal-only operation as the management UI; Agent attribution is kept.',
|
|
115
|
+
inputSchema: objectSchema({
|
|
116
|
+
personalSpaceId: id,
|
|
117
|
+
personalProjectId: nullableStringSchema(),
|
|
118
|
+
itemKind: knowledgeItemKind,
|
|
119
|
+
itemId: id,
|
|
120
|
+
action: enumSchema(['confirm', 'update', 'mark_outdated', 'invalidate', 'restore', 'link_replacement']),
|
|
121
|
+
replacementItemId: nullableStringSchema(),
|
|
122
|
+
replacementItemKind: knowledgeItemKind,
|
|
123
|
+
reason: shortText,
|
|
124
|
+
name: nullableStringSchema(),
|
|
125
|
+
summary: nullableStringSchema(),
|
|
126
|
+
fact: nullableStringSchema(),
|
|
127
|
+
originQuadrant: epistemicQuadrant,
|
|
128
|
+
currentQuadrant: epistemicQuadrant,
|
|
129
|
+
epistemicStatus,
|
|
130
|
+
confirmationStatus,
|
|
131
|
+
confirmationBasis,
|
|
132
|
+
reasoningSummary: nullableStringSchema(),
|
|
133
|
+
profileAspect,
|
|
134
|
+
inheritanceMode,
|
|
135
|
+
inheritedProjectIds: arraySchema(id, { maxItems: 32 })
|
|
136
|
+
}, ['personalSpaceId', 'itemKind', 'itemId', 'action', 'reason'])
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: 'reassign_personal_knowledge',
|
|
140
|
+
description: 'Move the primary project assignment of one personal knowledge item without rewriting its source episode or evidence. Personal-profile knowledge cannot be assigned to a project.',
|
|
141
|
+
inputSchema: objectSchema({
|
|
142
|
+
personalSpaceId: id,
|
|
143
|
+
itemKind: knowledgeItemKind,
|
|
144
|
+
itemId: id,
|
|
145
|
+
targetProjectId: boundedString(128),
|
|
146
|
+
reason: shortText
|
|
147
|
+
}, ['personalSpaceId', 'itemKind', 'itemId', 'targetProjectId', 'reason'])
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: 'preview_personal_project_action',
|
|
151
|
+
title: 'PREVIEW · Authorize a personal project write',
|
|
152
|
+
description: 'Required authorization step before apply_personal_project_action. Submit the complete intended write. For an existing project, it reports exact duplicates and confirmed same-name conflicts. A successful preview returns a short-lived, one-time previewToken bound to the exact action.',
|
|
153
|
+
inputSchema: objectSchema(
|
|
154
|
+
personalProjectActionIntent,
|
|
155
|
+
personalProjectActionRequired
|
|
156
|
+
)
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: 'apply_personal_project_action',
|
|
160
|
+
title: 'WRITE · Apply an authorized personal project action',
|
|
161
|
+
description: 'WRITE operation. Never call during preference loading, project detection, knowledge retrieval, or any read-only task. Create a private personal project from one entity or add the entity to an existing personal project only after preview_personal_project_action. Requires the matching, short-lived, one-time previewToken and rejects changed or replayed actions. Existing ownership and evidence are preserved through references; duplicates are reused and conflicts follow the explicit resolution.',
|
|
162
|
+
inputSchema: objectSchema({
|
|
163
|
+
...personalProjectActionIntent,
|
|
164
|
+
previewToken: boundedString(256)
|
|
165
|
+
}, [...personalProjectActionRequired, 'previewToken'])
|
|
166
|
+
}
|
|
167
|
+
];
|