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
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
import { KNOWLEDGE_USAGE_DEFINITION } from './knowledge-usage-definitions.js';
|
|
2
|
+
import { KNOWLEDGE_TAG_DEFINITIONS } from './knowledge-tag-definitions.js';
|
|
3
|
+
import {
|
|
4
|
+
confirmationBasis,
|
|
5
|
+
confirmationStatus,
|
|
6
|
+
dateTime,
|
|
7
|
+
epistemicQuadrant,
|
|
8
|
+
epistemicStatus,
|
|
9
|
+
id,
|
|
10
|
+
inheritanceMode,
|
|
11
|
+
knowledgeItemKind,
|
|
12
|
+
label,
|
|
13
|
+
profileAspect,
|
|
14
|
+
shortText,
|
|
15
|
+
sourceApplication
|
|
16
|
+
} from './graph-tool-fields.js';
|
|
17
|
+
import {
|
|
18
|
+
arraySchema,
|
|
19
|
+
booleanSchema,
|
|
20
|
+
boundedString,
|
|
21
|
+
enumSchema,
|
|
22
|
+
integerSchema,
|
|
23
|
+
nullableStringSchema,
|
|
24
|
+
numberSchema,
|
|
25
|
+
objectSchema
|
|
26
|
+
} from './schema.js';
|
|
27
|
+
|
|
28
|
+
const longText = boundedString(8192);
|
|
29
|
+
const sourceUri = {
|
|
30
|
+
type: ['string', 'null'],
|
|
31
|
+
minLength: 1,
|
|
32
|
+
maxLength: 2048,
|
|
33
|
+
pattern: '^[Hh][Tt][Tt][Pp][Ss]?://\\S+$'
|
|
34
|
+
};
|
|
35
|
+
const attributes = { type: 'object', additionalProperties: true };
|
|
36
|
+
const entityAttributes = {
|
|
37
|
+
type: 'object',
|
|
38
|
+
properties: {
|
|
39
|
+
searchTerms: arraySchema(boundedString(256), { minItems: 1, maxItems: 32 })
|
|
40
|
+
},
|
|
41
|
+
additionalProperties: true
|
|
42
|
+
};
|
|
43
|
+
const decisionActor = objectSchema({
|
|
44
|
+
kind: enumSchema(['user', 'agent', 'authoritative_source']),
|
|
45
|
+
label: nullableStringSchema()
|
|
46
|
+
}, ['kind']);
|
|
47
|
+
const humanChangeStatus = enumSchema([
|
|
48
|
+
'all', 'human_changed', 'unseen', 'viewed', 'reviewed'
|
|
49
|
+
]);
|
|
50
|
+
const epistemicFields = {
|
|
51
|
+
originQuadrant: epistemicQuadrant,
|
|
52
|
+
currentQuadrant: epistemicQuadrant,
|
|
53
|
+
epistemicStatus,
|
|
54
|
+
confirmationStatus,
|
|
55
|
+
confirmationBasis,
|
|
56
|
+
reasoningSummary: {
|
|
57
|
+
...nullableStringSchema(),
|
|
58
|
+
description: 'Required and nonempty whenever originQuadrant is not known_known. Explain how the item became known; omitting it rejects the whole batch.'
|
|
59
|
+
},
|
|
60
|
+
profileAspect,
|
|
61
|
+
inheritanceMode,
|
|
62
|
+
inheritedProjectIds: arraySchema(id, { maxItems: 32 })
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
// rec#5 C8-4: once one of them is marked outdated, the conclusion is no longer current.
|
|
66
|
+
const derivedFrom = { ...arraySchema(id, { maxItems: 8 }), description: 'Current item IDs this concludes from.' };
|
|
67
|
+
|
|
68
|
+
const entity = objectSchema({
|
|
69
|
+
key: id,
|
|
70
|
+
name: label,
|
|
71
|
+
type: { ...boundedString(64), pattern: '^[A-Za-z][A-Za-z0-9_]*$' },
|
|
72
|
+
summary: boundedString(4096),
|
|
73
|
+
...epistemicFields,
|
|
74
|
+
derivedFrom,
|
|
75
|
+
attributes: entityAttributes
|
|
76
|
+
}, [
|
|
77
|
+
'key', 'name', 'type', 'originQuadrant',
|
|
78
|
+
'confirmationStatus', 'confirmationBasis'
|
|
79
|
+
]);
|
|
80
|
+
|
|
81
|
+
const relationship = objectSchema({
|
|
82
|
+
key: id,
|
|
83
|
+
source: id,
|
|
84
|
+
target: id,
|
|
85
|
+
type: { ...boundedString(64), pattern: '^[A-Z][A-Z0-9_]*$' },
|
|
86
|
+
fact: longText,
|
|
87
|
+
validAt: nullableStringSchema(),
|
|
88
|
+
invalidAt: nullableStringSchema(),
|
|
89
|
+
supersedes: arraySchema(id, { maxItems: 32 }),
|
|
90
|
+
confidence: numberSchema({ minimum: 0, maximum: 1 }),
|
|
91
|
+
...epistemicFields,
|
|
92
|
+
derivedFrom,
|
|
93
|
+
attributes
|
|
94
|
+
}, [
|
|
95
|
+
'key', 'source', 'target', 'type', 'fact', 'originQuadrant',
|
|
96
|
+
'confirmationStatus', 'confirmationBasis'
|
|
97
|
+
]);
|
|
98
|
+
|
|
99
|
+
const commonKnowledgePromotionIntent = {
|
|
100
|
+
personalSpaceId: id,
|
|
101
|
+
parentProjectId: id,
|
|
102
|
+
itemKind: knowledgeItemKind,
|
|
103
|
+
canonicalItemId: id,
|
|
104
|
+
duplicateItemIds: arraySchema(id, { minItems: 1, maxItems: 31 }),
|
|
105
|
+
reason: boundedString(2000),
|
|
106
|
+
humanConfirmationReason: boundedString(2000)
|
|
107
|
+
};
|
|
108
|
+
const commonKnowledgePromotionRequired = [
|
|
109
|
+
'personalSpaceId', 'parentProjectId', 'itemKind', 'canonicalItemId',
|
|
110
|
+
'duplicateItemIds', 'reason', 'humanConfirmationReason'
|
|
111
|
+
];
|
|
112
|
+
const personalGlobalPreferenceDecisionIntent = {
|
|
113
|
+
personalSpaceId: id,
|
|
114
|
+
candidateId: {
|
|
115
|
+
...boundedString(64),
|
|
116
|
+
pattern: '^personal-global-[a-f0-9]{20}$'
|
|
117
|
+
},
|
|
118
|
+
candidateVersion: {
|
|
119
|
+
...boundedString(32),
|
|
120
|
+
pattern: '^v1:[a-f0-9]{24}$'
|
|
121
|
+
},
|
|
122
|
+
decisionRevision: integerSchema({ minimum: 0 }),
|
|
123
|
+
decision: enumSchema(['approve', 'reject']),
|
|
124
|
+
sourceItems: arraySchema(objectSchema({
|
|
125
|
+
itemId: id,
|
|
126
|
+
itemKind: knowledgeItemKind,
|
|
127
|
+
projectId: id
|
|
128
|
+
}, ['itemId', 'itemKind', 'projectId']), { minItems: 2, maxItems: 32 }),
|
|
129
|
+
preferenceKey: boundedString(512),
|
|
130
|
+
targetScope: enumSchema(['parent_project', 'personal_global']),
|
|
131
|
+
targetProjectId: nullableStringSchema(),
|
|
132
|
+
profileAspect,
|
|
133
|
+
globalTitle: { type: ['string', 'null'], minLength: 1, maxLength: 512 },
|
|
134
|
+
globalInstruction: { type: ['string', 'null'], minLength: 1, maxLength: 8192 },
|
|
135
|
+
humanConfirmationReason: boundedString(4096),
|
|
136
|
+
confirmedAt: dateTime,
|
|
137
|
+
sessionId: id,
|
|
138
|
+
idempotencyKey: id
|
|
139
|
+
};
|
|
140
|
+
const personalGlobalPreferenceDecisionRequired = [
|
|
141
|
+
'personalSpaceId', 'candidateId', 'candidateVersion', 'decisionRevision',
|
|
142
|
+
'decision', 'sourceItems', 'preferenceKey', 'targetScope',
|
|
143
|
+
'targetProjectId', 'humanConfirmationReason',
|
|
144
|
+
'confirmedAt', 'sessionId', 'idempotencyKey'
|
|
145
|
+
];
|
|
146
|
+
export const captureEpisodeFields = {
|
|
147
|
+
idempotencyKey: id,
|
|
148
|
+
name: label,
|
|
149
|
+
sourceKind: boundedString(128),
|
|
150
|
+
sourceDescription: boundedString(1024),
|
|
151
|
+
sourceUri,
|
|
152
|
+
sourceApplication,
|
|
153
|
+
sourceTurnId: { type: ['string', 'null'], minLength: 1, maxLength: 256 },
|
|
154
|
+
sourceExcerpt: { type: ['string', 'null'], minLength: 1, maxLength: 2048 },
|
|
155
|
+
referenceTime: dateTime,
|
|
156
|
+
summary: longText,
|
|
157
|
+
sensitivity: enumSchema(['normal', 'private', 'restricted']),
|
|
158
|
+
entities: arraySchema(entity, { minItems: 1, maxItems: 128 }),
|
|
159
|
+
relationships: arraySchema(relationship, { maxItems: 256 })
|
|
160
|
+
};
|
|
161
|
+
export const captureEpisodeRequired = [
|
|
162
|
+
'idempotencyKey', 'name', 'sourceKind', 'sourceDescription',
|
|
163
|
+
'referenceTime', 'entities', 'relationships'
|
|
164
|
+
];
|
|
165
|
+
const workflowObservedStep = objectSchema({
|
|
166
|
+
actionId: id,
|
|
167
|
+
name: label,
|
|
168
|
+
summary: nullableStringSchema()
|
|
169
|
+
}, ['actionId', 'name']);
|
|
170
|
+
|
|
171
|
+
// Capturing, searching and governing personal and team-shared knowledge.
|
|
172
|
+
export const KNOWLEDGE_DEFINITIONS = [
|
|
173
|
+
{
|
|
174
|
+
name: 'capture_session_knowledge',
|
|
175
|
+
description: 'Silently batch durable session knowledge when user-enabled capture policy permits. For online knowledge, sourceUri preserves the exact original HTTP(S) link for capable Agents to re-read and refresh Fuli knowledge; it grants no source-document writeback. Every item records discovery quadrant, structured confirmation basis, and pending/confirmed state. reasoningSummary is required for every entity/relationship whose originQuadrant is not known_known. Disabled policy returns capture_disabled without writes. Personal profile knowledge stays personal; only project knowledge with auditable confirmation may enter public review.',
|
|
176
|
+
inputSchema: objectSchema({
|
|
177
|
+
targetKind: {
|
|
178
|
+
...enumSchema(['personal', 'project']),
|
|
179
|
+
description: 'Use "personal" for the personal graph, including knowledge scoped to a local personal project via personalProjectId. Use "project" only for a team-shared project queued for public review.'
|
|
180
|
+
},
|
|
181
|
+
spaceId: {
|
|
182
|
+
...id,
|
|
183
|
+
description: 'With targetKind "personal", the active personal space id. With targetKind "project", the team-shared project id.'
|
|
184
|
+
},
|
|
185
|
+
personalProjectId: {
|
|
186
|
+
...nullableStringSchema(),
|
|
187
|
+
description: 'Local personal project scope. Only meaningful with targetKind "personal".'
|
|
188
|
+
},
|
|
189
|
+
projectAgentId: {
|
|
190
|
+
...nullableStringSchema(),
|
|
191
|
+
description: 'Optional project Agent owner for this knowledge. Requires targetKind "personal" and personalProjectId. Agent-scoped preferences and memory are excluded from every other Agent and from ordinary project-only retrieval.'
|
|
192
|
+
},
|
|
193
|
+
providerUrl: {
|
|
194
|
+
...nullableStringSchema(),
|
|
195
|
+
description: 'Required with targetKind "project" and ignored for "personal".'
|
|
196
|
+
},
|
|
197
|
+
sessionId: id,
|
|
198
|
+
...captureEpisodeFields
|
|
199
|
+
}, [
|
|
200
|
+
'targetKind', 'spaceId', 'sessionId', ...captureEpisodeRequired
|
|
201
|
+
])
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
name: 'record_workflow_transition_observation',
|
|
205
|
+
title: 'WRITE · Observe one completed workflow transition',
|
|
206
|
+
description: 'Record one Agent-reported completed X-to-Y action transition in the personal Provider, only after both actions succeed. One call submits one observation; same project, X/Y, workflow key, condition, and MCP-host session deduplicate to one Episodic node. Provider derives occurrence/distinct-session counts from persisted episodes. MCP host attests session, time, observation identity, never action truth. Accepts no aggregate counts, confirmation authority, approval, or durable-consent claims. All observations stay pending behavioral evidence, not user consent or execution authorization. This Agent/adapter observation seam is not automatic telemetry for arbitrary host tools.',
|
|
207
|
+
inputSchema: objectSchema({
|
|
208
|
+
personalSpaceId: id,
|
|
209
|
+
personalProjectId: nullableStringSchema(),
|
|
210
|
+
fromStep: workflowObservedStep,
|
|
211
|
+
toStep: workflowObservedStep,
|
|
212
|
+
workflowKey: id,
|
|
213
|
+
condition: attributes,
|
|
214
|
+
evidenceSummary: shortText,
|
|
215
|
+
sourceApplication,
|
|
216
|
+
sourceTurnId: { type: ['string', 'null'], minLength: 1, maxLength: 256 },
|
|
217
|
+
sensitivity: enumSchema(['normal', 'private', 'restricted'])
|
|
218
|
+
}, [
|
|
219
|
+
'personalSpaceId', 'fromStep', 'toStep', 'workflowKey', 'evidenceSummary'
|
|
220
|
+
])
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: 'record_decision_trace',
|
|
224
|
+
title: 'WRITE · Store a decision with its rationale',
|
|
225
|
+
description: 'Store one bounded searchable project decision linking Decision, selected/rejected DecisionOption, DecisionRationale, and optional ValidationResult nodes. Require reason; never store bare conclusions. User/authoritative-source decisions are confirmed with audit basis; Agent-only proposals stay pending. Never copy raw transcripts, credentials, private contact details, or disposable deliberation.',
|
|
226
|
+
inputSchema: objectSchema({
|
|
227
|
+
personalSpaceId: id,
|
|
228
|
+
personalProjectId: nullableStringSchema(),
|
|
229
|
+
sessionId: id,
|
|
230
|
+
idempotencyKey: id,
|
|
231
|
+
decisionKey: id,
|
|
232
|
+
title: label,
|
|
233
|
+
question: shortText,
|
|
234
|
+
selectedOption: objectSchema({
|
|
235
|
+
key: id,
|
|
236
|
+
label,
|
|
237
|
+
summary: nullableStringSchema()
|
|
238
|
+
}, ['key', 'label']),
|
|
239
|
+
rejectedOptions: arraySchema(objectSchema({
|
|
240
|
+
key: id,
|
|
241
|
+
label,
|
|
242
|
+
summary: nullableStringSchema()
|
|
243
|
+
}, ['key', 'label']), { maxItems: 16 }),
|
|
244
|
+
reason: boundedString(4096),
|
|
245
|
+
validationResults: arraySchema(objectSchema({
|
|
246
|
+
key: id,
|
|
247
|
+
outcome: enumSchema(['pass', 'fail', 'inconclusive']),
|
|
248
|
+
summary: shortText
|
|
249
|
+
}, ['key', 'outcome', 'summary']), { maxItems: 16 }),
|
|
250
|
+
decidedBy: decisionActor,
|
|
251
|
+
referenceTime: dateTime,
|
|
252
|
+
sourceKind: boundedString(128),
|
|
253
|
+
sourceDescription: boundedString(1024),
|
|
254
|
+
sourceUri,
|
|
255
|
+
sourceApplication,
|
|
256
|
+
sourceTurnId: { type: ['string', 'null'], minLength: 1, maxLength: 256 },
|
|
257
|
+
sensitivity: enumSchema(['normal', 'private', 'restricted'])
|
|
258
|
+
}, [
|
|
259
|
+
'personalSpaceId', 'sessionId', 'idempotencyKey', 'decisionKey',
|
|
260
|
+
'title', 'question', 'selectedOption', 'reason', 'decidedBy',
|
|
261
|
+
'referenceTime', 'sourceKind', 'sourceDescription'
|
|
262
|
+
])
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
name: 'search_knowledge_graph',
|
|
266
|
+
title: 'READ · Search the scoped knowledge graph',
|
|
267
|
+
description: 'Search remembered URLs, routes, requirements, prior decisions, runbooks, architecture, rationale and preferences before saying you do not know. Scope: personal-global, exact active project, authorized PART_OF/USES_KNOWLEDGE_FROM parents, explicitly selected personal projects and subscribed team projects. RELATED_TO never expands scope: active human-authorized suggestions require confirmation for one read-only exact-project query. all_local_confirmed requires explicit user confirmation and never expands public projects. Pending stays marked; human-confirmed evidence outranks agent-confirmed evidence. Use source_uris to re-read originals before refreshing Fuli knowledge; cite sourceMarker only for supporting evidence, otherwise noMatchSourceMarker. Follow retrievalGuidance and its required next action for a miss: read-only local file search in current repository or workspace files within a safe root. Pages are bounded; repeat identical scope/query with next_cursor as cursor through fuli_call for full record fragments.',
|
|
268
|
+
inputSchema: objectSchema({
|
|
269
|
+
personalSpaceId: id,
|
|
270
|
+
query: shortText,
|
|
271
|
+
personalProjectId: nullableStringSchema(),
|
|
272
|
+
projectAgentId: nullableStringSchema(),
|
|
273
|
+
contextPersonalProjectIds: arraySchema(id, { maxItems: 15 }),
|
|
274
|
+
personalProjectScope: enumSchema(['bounded', 'all_local_confirmed']),
|
|
275
|
+
projectIds: arraySchema(id, { maxItems: 32 }),
|
|
276
|
+
cursor: boundedString(128),
|
|
277
|
+
limit: integerSchema({ minimum: 1, maximum: 100 }),
|
|
278
|
+
includeHistorical: booleanSchema(),
|
|
279
|
+
includePending: booleanSchema()
|
|
280
|
+
}, ['personalSpaceId', 'query'])
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
name: 'search_connected_knowledge',
|
|
284
|
+
title: 'READ · Search personal, public, and third-party knowledge',
|
|
285
|
+
description: 'Search the exact personal project, explicitly selected subscribed public projects, and live read-only third-party bindings together. all_local_confirmed requires explicit user confirmation. Results stay separated by source with provenance; public-space integration is Beta. Returns project conflict policy: under ask_human, surface material conflicts in the Agent conversation and ask before choosing durable truth; under agent_decide, choose only for the current response and explain basis and sources. Never rewrites, confirms, invalidates, or publishes underlying knowledge.',
|
|
286
|
+
inputSchema: objectSchema({
|
|
287
|
+
personalSpaceId: id,
|
|
288
|
+
personalProjectId: id,
|
|
289
|
+
query: shortText,
|
|
290
|
+
contextPersonalProjectIds: arraySchema(id, { maxItems: 15 }),
|
|
291
|
+
personalProjectScope: enumSchema(['bounded', 'all_local_confirmed']),
|
|
292
|
+
projectIds: arraySchema(id, { maxItems: 32 }),
|
|
293
|
+
limit: integerSchema({ minimum: 1, maximum: 100 }),
|
|
294
|
+
includeHistorical: booleanSchema(),
|
|
295
|
+
includePending: booleanSchema()
|
|
296
|
+
}, ['personalSpaceId', 'personalProjectId', 'query'])
|
|
297
|
+
},
|
|
298
|
+
KNOWLEDGE_USAGE_DEFINITION,
|
|
299
|
+
...KNOWLEDGE_TAG_DEFINITIONS,
|
|
300
|
+
{
|
|
301
|
+
name: 'record_knowledge_feedback',
|
|
302
|
+
title: 'WRITE · Record negative knowledge evidence',
|
|
303
|
+
description: 'Record bounded negative evidence for rejected, validation-failed, contradicted, or outdated retained knowledge. Require reason and evidence summary; idempotent per task, item, feedback kind, content generation. Lowers ranking signals and marks requires_attention. Never deletes evidence or silently overrides human-confirmed authority; trusted human/source contradiction may return agent-confirmed knowledge to pending. Pass the current taskContextToken.',
|
|
304
|
+
inputSchema: objectSchema({
|
|
305
|
+
personalSpaceId: id,
|
|
306
|
+
taskId: id,
|
|
307
|
+
sessionId: nullableStringSchema(),
|
|
308
|
+
taskContextToken: id,
|
|
309
|
+
toolName: nullableStringSchema(),
|
|
310
|
+
items: arraySchema(objectSchema({
|
|
311
|
+
itemId: id,
|
|
312
|
+
itemKind: knowledgeItemKind,
|
|
313
|
+
feedbackKind: enumSchema([
|
|
314
|
+
'rejected', 'validation_failed', 'contradicted', 'outdated'
|
|
315
|
+
]),
|
|
316
|
+
reason: boundedString(2000),
|
|
317
|
+
evidenceSummary: boundedString(4096),
|
|
318
|
+
reportedByKind: enumSchema([
|
|
319
|
+
'user', 'agent', 'authoritative_source'
|
|
320
|
+
]),
|
|
321
|
+
sourceUri
|
|
322
|
+
}, [
|
|
323
|
+
'itemId', 'itemKind', 'feedbackKind', 'reason',
|
|
324
|
+
'evidenceSummary', 'reportedByKind'
|
|
325
|
+
]), { minItems: 1, maxItems: 200 })
|
|
326
|
+
}, ['personalSpaceId', 'taskId', 'items'])
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
name: 'search_current_project_knowledge',
|
|
330
|
+
title: 'READ · Search current project and its knowledge sources',
|
|
331
|
+
description: 'For normal Agent work, pass projectPath and one or more focused queries. Resolves the exact local project, searches local knowledge first, then follows outgoing PART_OF/USES_KNOWLEDGE_FROM to authorized parent/source knowledge. Exact current-project items override inherited items with the same stable key. Never guesses ambiguous projects or traverses RELATED_TO. Returns structured related_project_suggestions to ask about adding exactly one related project to this read-only search; any expansion requires explicit human confirmation.',
|
|
332
|
+
inputSchema: objectSchema({
|
|
333
|
+
projectPath: boundedString(4096),
|
|
334
|
+
personalProjectId: nullableStringSchema(),
|
|
335
|
+
queries: arraySchema(shortText, { minItems: 1, maxItems: 10 }),
|
|
336
|
+
cursor: boundedString(128),
|
|
337
|
+
limitPerQuery: integerSchema({ minimum: 1, maximum: 50 }),
|
|
338
|
+
includeHistorical: booleanSchema(),
|
|
339
|
+
includePending: booleanSchema()
|
|
340
|
+
}, ['projectPath', 'queries'])
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
name: 'discover_common_knowledge_candidates',
|
|
344
|
+
title: 'READ · Find possible parent-project knowledge',
|
|
345
|
+
description: 'Read-only governance aid for one parent personal project. It searches each direct PART_OF child independently, excludes inherited and personal-global results, and groups lexically similar knowledge found in multiple children. Similarity is only an inferred candidate signal: the tool never merges, promotes, rewrites, or invalidates knowledge, and every candidate requires explicit human confirmation before a separate promotion action.',
|
|
346
|
+
inputSchema: objectSchema({
|
|
347
|
+
personalSpaceId: id,
|
|
348
|
+
parentProjectId: id,
|
|
349
|
+
query: shortText,
|
|
350
|
+
minChildProjects: integerSchema({ minimum: 2, maximum: 32 }),
|
|
351
|
+
similarityThreshold: numberSchema({ minimum: 0, maximum: 1 }),
|
|
352
|
+
limitPerProject: integerSchema({ minimum: 1, maximum: 50 })
|
|
353
|
+
}, ['personalSpaceId', 'parentProjectId', 'query'])
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
name: 'discover_personal_global_preference_candidates',
|
|
357
|
+
title: 'READ · Find possible personal-global preferences',
|
|
358
|
+
description: 'Read-only scope-governance aid across two or more explicitly selected personal projects. It searches each exact project independently, excludes inherited and existing personal-global results, preserves every original preference text, qualifier, project source, and source URI, and exposes any shared lexical core only as a non-authoritative derived candidate. Similarity and weight never apply or promote a preference. Every candidate requires explicit human scope judgment through the candidate-bound review workflow.',
|
|
359
|
+
inputSchema: objectSchema({
|
|
360
|
+
personalSpaceId: id,
|
|
361
|
+
personalProjectIds: arraySchema(id, { minItems: 2, maxItems: 32 }),
|
|
362
|
+
query: shortText,
|
|
363
|
+
minProjects: integerSchema({ minimum: 2, maximum: 32 }),
|
|
364
|
+
similarityThreshold: numberSchema({ minimum: 0, maximum: 1 }),
|
|
365
|
+
limitPerProject: integerSchema({ minimum: 1, maximum: 50 })
|
|
366
|
+
}, ['personalSpaceId', 'personalProjectIds', 'query'])
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
name: 'preview_personal_global_preference_decision',
|
|
370
|
+
title: 'READ · Inspect a version-bound scope decision',
|
|
371
|
+
description: 'Read-only inspection for one exact personal-global preference candidate and decision revision. It revalidates every selected local source in the Provider and returns the preserved snapshots plus an exact payload fingerprint. It deliberately does not mint an approval token: an independent human-review client must confirm that fingerprint and mint the short-lived, one-time capability. The Agent cannot claim human authority through this tool.',
|
|
372
|
+
inputSchema: objectSchema(
|
|
373
|
+
personalGlobalPreferenceDecisionIntent,
|
|
374
|
+
personalGlobalPreferenceDecisionRequired
|
|
375
|
+
)
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
name: 'preview_common_knowledge_promotion',
|
|
379
|
+
title: 'CONFIRM · Preview parent-project promotion',
|
|
380
|
+
description: 'Validate the exact common-knowledge promotion after a human has explicitly chosen the canonical item, duplicates, parent project, and rationale. The preview is read-only, requires items from distinct direct PART_OF children, and returns a short-lived token binding the exact intent. Do not treat inferred lexical similarity as human confirmation.',
|
|
381
|
+
inputSchema: objectSchema(
|
|
382
|
+
commonKnowledgePromotionIntent,
|
|
383
|
+
commonKnowledgePromotionRequired
|
|
384
|
+
)
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
name: 'apply_common_knowledge_promotion',
|
|
388
|
+
title: 'WRITE · Atomically promote parent knowledge',
|
|
389
|
+
description: 'Apply one human-confirmed preview as a single Provider mutation. It moves the canonical item to the parent, enables descendants inheritance, invalidates selected child duplicates with replacement links, and stores both the scope reason and human-confirmation reason in permanent revision history. A valid one-time previewToken is mandatory.',
|
|
390
|
+
inputSchema: objectSchema({
|
|
391
|
+
...commonKnowledgePromotionIntent,
|
|
392
|
+
previewToken: id
|
|
393
|
+
}, [...commonKnowledgePromotionRequired, 'previewToken'])
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
name: 'get_knowledge_graph',
|
|
397
|
+
description: 'Return a bounded node-edge graph for a personal space, one exact local personal project, or a team-shared project. An FLA sees its own knowledge only with projectAgentId and personalProjectId.',
|
|
398
|
+
inputSchema: objectSchema({
|
|
399
|
+
spaceId: id,
|
|
400
|
+
providerUrl: nullableStringSchema(),
|
|
401
|
+
personalProjectId: nullableStringSchema(), projectAgentId: nullableStringSchema(),
|
|
402
|
+
limit: integerSchema({ minimum: 1, maximum: 2000 })
|
|
403
|
+
}, ['spaceId'])
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
name: 'search_human_knowledge_changes',
|
|
407
|
+
description: 'Search the permanent audit trail for personal knowledge changed by a human. Filter by unseen (not yet read by an Agent), viewed (read but still awaiting conflict and classification review), or reviewed. Returning an item records this Agent view but does not clear its pending marker.',
|
|
408
|
+
inputSchema: objectSchema({
|
|
409
|
+
personalSpaceId: id,
|
|
410
|
+
query: shortText,
|
|
411
|
+
status: humanChangeStatus,
|
|
412
|
+
limit: integerSchema({ minimum: 1, maximum: 200 })
|
|
413
|
+
}, ['personalSpaceId'])
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
name: 'review_human_knowledge_change',
|
|
417
|
+
description: 'Submit an explicit review for the current version of one human-edited personal knowledge item. The pending marker clears only when the Agent reports both no conflict and reasonable classification. Stale versions and items not read by an Agent are rejected; every review remains in the audit trail.',
|
|
418
|
+
inputSchema: objectSchema({
|
|
419
|
+
personalSpaceId: id,
|
|
420
|
+
itemKind: knowledgeItemKind,
|
|
421
|
+
itemId: id,
|
|
422
|
+
humanChangeVersion: integerSchema({ minimum: 1 }),
|
|
423
|
+
conflictCheck: enumSchema(['no_conflict', 'conflict']),
|
|
424
|
+
classificationCheck: enumSchema(['reasonable', 'needs_change']),
|
|
425
|
+
note: boundedString(2000)
|
|
426
|
+
}, [
|
|
427
|
+
'personalSpaceId', 'itemKind', 'itemId', 'humanChangeVersion',
|
|
428
|
+
'conflictCheck', 'classificationCheck', 'note'
|
|
429
|
+
])
|
|
430
|
+
}
|
|
431
|
+
];
|