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,271 @@
|
|
|
1
|
+
import { AGENT_COLLABORATION_DEFINITIONS } from './agent-collaboration-definitions.js';
|
|
2
|
+
import { AGENT_CONVERSATION_DEFINITIONS } from './agent-conversation-definitions.js';
|
|
3
|
+
import { PROJECT_AGENT_MEMORY_DEFINITIONS } from './project-agent-memory-definitions.js';
|
|
4
|
+
import { AGENT_DISMISSAL_DEFINITIONS } from './agent-dismissal-definitions.js';
|
|
5
|
+
import {
|
|
6
|
+
nullableProjectAgentStatus,
|
|
7
|
+
projectAgentAssignmentEndInput,
|
|
8
|
+
projectAgentAssignmentInput,
|
|
9
|
+
projectAgentAssignmentReplaceInput,
|
|
10
|
+
projectAgentAssignmentStatus,
|
|
11
|
+
projectAgentOccupation,
|
|
12
|
+
projectAgentProfile,
|
|
13
|
+
projectAgentTaskActivityInput,
|
|
14
|
+
projectAgentTaskCoordinateInput,
|
|
15
|
+
projectAgentTaskSubmitInput,
|
|
16
|
+
recruitmentConfirmationMode,
|
|
17
|
+
recruitmentDecision,
|
|
18
|
+
recruitmentStatus
|
|
19
|
+
} from './project-agent-definitions.js';
|
|
20
|
+
import { dateTime, id, shortText } from './graph-tool-fields.js';
|
|
21
|
+
import {
|
|
22
|
+
arraySchema,
|
|
23
|
+
booleanSchema,
|
|
24
|
+
boundedString,
|
|
25
|
+
enumSchema,
|
|
26
|
+
integerSchema,
|
|
27
|
+
nullableStringSchema,
|
|
28
|
+
objectSchema,
|
|
29
|
+
stringSchema
|
|
30
|
+
} from './schema.js';
|
|
31
|
+
|
|
32
|
+
// Project Agents: directory, context, assignments, tasks, runtime leases,
|
|
33
|
+
// teams and recruitment.
|
|
34
|
+
export const PROJECT_AGENT_TOOL_DEFINITIONS = [
|
|
35
|
+
{
|
|
36
|
+
name: 'upsert_project_agent',
|
|
37
|
+
title: 'WRITE · Create or update a project Agent',
|
|
38
|
+
description: 'Create or update one model-independent long-lived Agent bound to an existing local personal project. The profile is a lightweight project directory record: name, responsibility, capabilities, initial preferences, and status. This does not start a model or copy project knowledge into the Agent.',
|
|
39
|
+
inputSchema: objectSchema({
|
|
40
|
+
personalSpaceId: id,
|
|
41
|
+
personalProjectId: nullableStringSchema(),
|
|
42
|
+
agentId: boundedString(128),
|
|
43
|
+
profile: projectAgentProfile,
|
|
44
|
+
occupation: projectAgentOccupation
|
|
45
|
+
}, ['personalSpaceId', 'agentId', 'profile'])
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'list_project_agents',
|
|
49
|
+
title: 'READ · Find project Agents by responsibility',
|
|
50
|
+
description: 'Resolve the exact local project from projectPath and return its lightweight Agent directory. Optionally filter active/inactive/archived records or find Agents whose capabilities or responsibility match a capability query. This never loads another Agent\'s private memory.',
|
|
51
|
+
inputSchema: objectSchema({
|
|
52
|
+
projectPath: boundedString(4096),
|
|
53
|
+
personalProjectId: {
|
|
54
|
+
...nullableStringSchema(), minLength: 1, maxLength: 128,
|
|
55
|
+
description: 'Explicit existing project ID when the directory has no exact match. A conflicting exact path match is rejected.'
|
|
56
|
+
},
|
|
57
|
+
status: nullableProjectAgentStatus,
|
|
58
|
+
capability: nullableStringSchema()
|
|
59
|
+
}, ['projectPath'])
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'get_project_agent_context',
|
|
63
|
+
title: 'READ · Assemble one project Agent context',
|
|
64
|
+
description: 'Resolve one active project Agent and assemble only the context needed for the task: personal-global rules, exact and authorized inherited project knowledge, this Agent\'s preferences and memory, and focused query results. It excludes every other project Agent. Fuli remains a control layer; the calling host Agent performs reasoning and execution.',
|
|
65
|
+
inputSchema: objectSchema({
|
|
66
|
+
projectPath: boundedString(4096),
|
|
67
|
+
personalProjectId: {
|
|
68
|
+
...nullableStringSchema(), minLength: 1, maxLength: 128,
|
|
69
|
+
description: 'Explicit existing project ID when the directory has no exact match. A conflicting exact path match is rejected.'
|
|
70
|
+
},
|
|
71
|
+
agentId: boundedString(128),
|
|
72
|
+
queries: arraySchema(shortText, { minItems: 1, maxItems: 10 }),
|
|
73
|
+
limitPerQuery: integerSchema({ minimum: 1, maximum: 50 }),
|
|
74
|
+
includePending: booleanSchema()
|
|
75
|
+
}, ['projectPath', 'agentId', 'queries'])
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'get_project_agent',
|
|
79
|
+
title: 'READ · Get one space-level Agent',
|
|
80
|
+
description: 'Read one FULI space-level Agent identity, assignments, recruitment source, memory boundary, configured status, observed clients, and actual task state. Configured status is not a connection or online claim.',
|
|
81
|
+
inputSchema: objectSchema({
|
|
82
|
+
personalSpaceId: id,
|
|
83
|
+
personalProjectId: nullableStringSchema(),
|
|
84
|
+
agentId: id
|
|
85
|
+
}, ['personalSpaceId', 'agentId'])
|
|
86
|
+
},
|
|
87
|
+
...PROJECT_AGENT_MEMORY_DEFINITIONS,
|
|
88
|
+
...AGENT_CONVERSATION_DEFINITIONS,
|
|
89
|
+
...AGENT_COLLABORATION_DEFINITIONS,
|
|
90
|
+
...AGENT_DISMISSAL_DEFINITIONS,
|
|
91
|
+
{
|
|
92
|
+
name: 'cleanup_test_project_agents',
|
|
93
|
+
title: 'WRITE · Archive test Agent roles',
|
|
94
|
+
description: 'TEST-ONLY. Archive only test-marked Project Agents for one explicit test source through the Provider. Disabled on default MCP/HTTP surfaces unless FULI_ENABLE_TEST_TOOLS=1. Durable production identities are not touched; the result reports the number archived for cleanup verification.',
|
|
95
|
+
inputSchema: objectSchema({
|
|
96
|
+
personalSpaceId: id,
|
|
97
|
+
testSource: boundedString(256)
|
|
98
|
+
}, ['personalSpaceId', 'testSource'])
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'create_project_agent_assignment',
|
|
102
|
+
title: 'WRITE · Assign an Agent to a project',
|
|
103
|
+
description: 'Create one project-specific Agent assignment. The same space-level Agent may have many assignments; responsibility, capabilities, model override, and memory boundary stay project-scoped.',
|
|
104
|
+
inputSchema: projectAgentAssignmentInput
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'list_project_agent_assignments',
|
|
108
|
+
title: 'READ · List Agent assignments',
|
|
109
|
+
description: 'List project-Agent assignments and their full active/ended history. Never infer a runtime connection from assignment status.',
|
|
110
|
+
inputSchema: objectSchema({
|
|
111
|
+
personalSpaceId: id,
|
|
112
|
+
personalProjectId: nullableStringSchema(),
|
|
113
|
+
agentId: nullableStringSchema(),
|
|
114
|
+
status: { ...projectAgentAssignmentStatus, type: ['string', 'null'] }
|
|
115
|
+
}, ['personalSpaceId'])
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'end_project_agent_assignment',
|
|
119
|
+
title: 'WRITE · End an Agent assignment',
|
|
120
|
+
description: 'End one project-Agent assignment with an expected revision. Stale revisions are rejected; the Agent and task history remain intact.',
|
|
121
|
+
inputSchema: projectAgentAssignmentEndInput
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: 'replace_project_agent_assignment',
|
|
125
|
+
title: 'WRITE · Replace an Agent assignment',
|
|
126
|
+
description: 'Atomically end one assignment and create its replacement, preserving replacement history and explicit reason.',
|
|
127
|
+
inputSchema: projectAgentAssignmentReplaceInput
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: 'coordinate_project_agent_task',
|
|
131
|
+
title: 'WRITE · Prepare a host-executed Agent team',
|
|
132
|
+
description: 'Resolve the exact local project (ambiguity requires exact selection), or create isolated temporary task scope if none matches. The Provider coordinator routes one durable task and builds isolated context per selected lead/collaborator. Pass current taskContextToken to bind temporary scope and any newly recruited lead to the owned lifecycle; otherwise use stable sourceSessionId and idempotencyKey for retries. Temporary projects retain audit history, never implicitly bind directories, and default to audited task-only recruitment under existing AR policy; durable recruitment still requires explicit request. AR should derive recruitmentProfile.character from role responsibilities and preserve user expectations; never present configured traits as proven growth. Fuli persists identity, staffing, memory scope. The host must start real workers, report concrete evidence, and finish their lifecycle; routing recommendations never prove worker startup. start:false assigns the task to the backlog without starting a worker.',
|
|
133
|
+
inputSchema: projectAgentTaskCoordinateInput
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: 'acquire_runtime_lease',
|
|
137
|
+
title: 'WRITE · Keep adaptive runtime awake',
|
|
138
|
+
description: 'Acquire a host-held local adaptive-runtime lease before starting real project Agent workers. The MCP process heartbeats the lease until release; disabled adaptive mode returns a safe no-op handle. Use graph for Provider/database work and executor only for an executor managed by Fuli.',
|
|
139
|
+
inputSchema: objectSchema({
|
|
140
|
+
kind: enumSchema(['graph', 'executor']),
|
|
141
|
+
executorId: nullableStringSchema(),
|
|
142
|
+
owner: boundedString(256)
|
|
143
|
+
}, ['kind', 'owner'])
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: 'refresh_runtime_lease',
|
|
147
|
+
title: 'WRITE · Refresh adaptive runtime lease',
|
|
148
|
+
description: 'Explicitly refresh one lease owned by this MCP process. Automatic heartbeat normally makes this unnecessary; a missing or expired handle returns refreshed=false.',
|
|
149
|
+
inputSchema: objectSchema({ leaseId: id }, ['leaseId'])
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: 'release_runtime_lease',
|
|
153
|
+
title: 'WRITE · Release adaptive runtime lease',
|
|
154
|
+
description: 'Stop the heartbeat and release one host-held adaptive-runtime lease in a finally path. Repeated release is safe and returns released=false.',
|
|
155
|
+
inputSchema: objectSchema({ leaseId: id }, ['leaseId'])
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: 'submit_project_agent_task',
|
|
159
|
+
title: 'WRITE · Submit a routed Agent task',
|
|
160
|
+
description: 'Submit a durable control-plane task; grouped Agent staffing requires the current host taskContextToken. Completion needs a passed exact-revision quality gate via record_agent_verification with actual run evidence. Prefer matching durable Agents; creates no anonymous worker. Locked executor policy and explicit user priorities remain binding. Provider retains routing, boundaries and actual execution audit. AR derives character from responsibilities, preserves user expectations and distinguishes configured traits from proven growth.',
|
|
161
|
+
inputSchema: projectAgentTaskSubmitInput
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: 'view_project_agent_task',
|
|
165
|
+
title: 'READ · View task, routing, and events',
|
|
166
|
+
description: 'View one task with lead/collaborator assignments, routing decision, effective model strategy, source client/session, event history, actual executor/model, routing rule, and fallback audit. Missing connected state is not synthesized.',
|
|
167
|
+
inputSchema: objectSchema({
|
|
168
|
+
personalSpaceId: id,
|
|
169
|
+
personalProjectId: id,
|
|
170
|
+
taskId: id,
|
|
171
|
+
includeEvents: booleanSchema()
|
|
172
|
+
}, ['personalSpaceId', 'taskId'])
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: 'record_project_agent_task_activity',
|
|
176
|
+
title: 'WRITE · Record task activity',
|
|
177
|
+
description: 'Record real task/worker activity and optional source-labelled cumulative token usage; never estimate. workerStatus requires workerId and agentId. Supply actualExecutorId, actualModelProvider, actualModel together only with matching authorized preflight evidence; otherwise omit all three, report observed workerRuntime, and explain mismatch in summary. Terminal activity with valid actual execution automatically records routing outcome.',
|
|
178
|
+
inputSchema: projectAgentTaskActivityInput
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: 'view_project_agent_activity',
|
|
182
|
+
title: 'READ · View Agent terminal activity',
|
|
183
|
+
description: 'Return actual per-Agent daily completed/failed/cancelled activity and verifiable summaries. No history is fabricated and configured Agent status is not treated as running state.',
|
|
184
|
+
inputSchema: objectSchema({
|
|
185
|
+
personalSpaceId: id,
|
|
186
|
+
personalProjectId: id,
|
|
187
|
+
agentId: id,
|
|
188
|
+
fromDate: nullableStringSchema(),
|
|
189
|
+
toDate: nullableStringSchema()
|
|
190
|
+
}, ['personalSpaceId', 'agentId'])
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: 'get_project_agent_coordination_policy',
|
|
194
|
+
title: 'READ · Get project Agent continuity policy',
|
|
195
|
+
description: 'Read project policy, membership, sub-teams and threshold.',
|
|
196
|
+
inputSchema: objectSchema({
|
|
197
|
+
personalSpaceId: id,
|
|
198
|
+
personalProjectId: id
|
|
199
|
+
}, ['personalSpaceId', 'personalProjectId'])
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
name: 'get_project_team',
|
|
203
|
+
title: 'READ · Get project team',
|
|
204
|
+
description: 'Read active team, sub-teams, collaborators, peers, reporting lines and unavailable roles; no private memory.',
|
|
205
|
+
inputSchema: objectSchema({
|
|
206
|
+
personalSpaceId: id,
|
|
207
|
+
personalProjectId: id
|
|
208
|
+
}, ['personalSpaceId', 'personalProjectId'])
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
name: 'update_project_agent_coordination_policy',
|
|
212
|
+
title: 'WRITE · Set project Agent continuity policy',
|
|
213
|
+
description: 'Set project policy and sub-teams. Omitted fields persist; [] clears groups. Send expectedUpdatedAt from a fresh read. AR/managers stay peers; starts no worker.',
|
|
214
|
+
inputSchema: objectSchema({
|
|
215
|
+
personalSpaceId: id,
|
|
216
|
+
personalProjectId: id,
|
|
217
|
+
askBeforeRecruitment: booleanSchema(),
|
|
218
|
+
autoReusePreviousAgent: booleanSchema(),
|
|
219
|
+
autoGrowTeam: booleanSchema(),
|
|
220
|
+
teamLeadAgentId: nullableStringSchema(),
|
|
221
|
+
teamMemberAgentIds: arraySchema(id, { maxItems: 32, uniqueItems: true }),
|
|
222
|
+
subTeams: arraySchema(objectSchema({ id, name: stringSchema({ minLength: 1, maxLength: 120 }), leadAgentId: id,
|
|
223
|
+
memberAgentIds: arraySchema(id, { maxItems: 32, uniqueItems: true }) }, ['id', 'name', 'leadAgentId', 'memberAgentIds']), { maxItems: 32 }),
|
|
224
|
+
subTeamSuggestionThreshold: integerSchema({ minimum: 1, maximum: 32 }),
|
|
225
|
+
expectedUpdatedAt: { ...dateTime, type: ['string', 'null'] }
|
|
226
|
+
}, [
|
|
227
|
+
'personalSpaceId', 'personalProjectId',
|
|
228
|
+
'askBeforeRecruitment', 'autoReusePreviousAgent'
|
|
229
|
+
])
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
name: 'get_project_agent_recruitment_policy',
|
|
233
|
+
title: 'READ · Get recruitment policy',
|
|
234
|
+
description: 'Deprecated: read the legacy stored space setting, which does not control recruitment. Use get_project_agent_coordination_policy for the effective exact-project switches.',
|
|
235
|
+
inputSchema: objectSchema({ personalSpaceId: id }, ['personalSpaceId'])
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
name: 'update_project_agent_recruitment_policy',
|
|
239
|
+
title: 'WRITE · Set recruitment policy',
|
|
240
|
+
description: 'Deprecated compatibility storage only; this does not change recruitment authorization. Use update_project_agent_coordination_policy with the exact project and askBeforeRecruitment instead. The response warns that this legacy value is not effective.',
|
|
241
|
+
inputSchema: objectSchema({
|
|
242
|
+
personalSpaceId: id,
|
|
243
|
+
confirmationMode: recruitmentConfirmationMode
|
|
244
|
+
}, ['personalSpaceId', 'confirmationMode'])
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
name: 'list_project_agent_recruitments',
|
|
248
|
+
title: 'READ · List recruitment records',
|
|
249
|
+
description: 'List auditable AR recruitment records with trigger client/session, role, capabilities, position kind, reason, status, and created/recruited Agent.',
|
|
250
|
+
inputSchema: objectSchema({
|
|
251
|
+
personalSpaceId: id,
|
|
252
|
+
personalProjectId: nullableStringSchema(),
|
|
253
|
+
taskId: nullableStringSchema(),
|
|
254
|
+
status: { ...recruitmentStatus, type: ['string', 'null'] }
|
|
255
|
+
}, ['personalSpaceId'])
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
name: 'decide_project_agent_recruitment',
|
|
259
|
+
title: 'WRITE · Approve or cancel recruitment',
|
|
260
|
+
description: 'Approve or cancel one pending AR recruitment event with an expected revision. Approval creates only the declared durable or bounded temporary role through the Provider.',
|
|
261
|
+
inputSchema: objectSchema({
|
|
262
|
+
personalSpaceId: id,
|
|
263
|
+
personalProjectId: id,
|
|
264
|
+
recruitmentId: id,
|
|
265
|
+
expectedRevision: integerSchema({ minimum: 0 }),
|
|
266
|
+
decision: recruitmentDecision,
|
|
267
|
+
occupation: projectAgentOccupation,
|
|
268
|
+
reason: shortText
|
|
269
|
+
}, ['personalSpaceId', 'personalProjectId', 'recruitmentId', 'expectedRevision', 'decision', 'reason'])
|
|
270
|
+
}
|
|
271
|
+
];
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { projectRelationDefinitions } from './project-relation-definitions.js';
|
|
2
|
+
import { dateTime, id, label, projectRelationType, shortText } from './graph-tool-fields.js';
|
|
3
|
+
import { arraySchema, boundedString, enumSchema, integerSchema, nullableStringSchema, objectSchema } from './schema.js';
|
|
4
|
+
|
|
5
|
+
const projectSource = objectSchema({
|
|
6
|
+
key: boundedString(128),
|
|
7
|
+
kind: enumSchema([
|
|
8
|
+
'prd', 'product_document', 'technical_document', 'frontend_repository',
|
|
9
|
+
'backend_repository', 'repository', 'design', 'runbook', 'monitoring',
|
|
10
|
+
'issue_tracker', 'other'
|
|
11
|
+
]),
|
|
12
|
+
title: label,
|
|
13
|
+
uri: nullableStringSchema(),
|
|
14
|
+
summary: nullableStringSchema(),
|
|
15
|
+
sensitivity: enumSchema(['normal', 'private', 'restricted'])
|
|
16
|
+
}, ['key', 'kind', 'title']);
|
|
17
|
+
|
|
18
|
+
const assessmentDimension = objectSchema({
|
|
19
|
+
key: boundedString(128),
|
|
20
|
+
label: boundedString(256),
|
|
21
|
+
score: integerSchema({ minimum: 0, maximum: 100 }),
|
|
22
|
+
state: enumSchema(['confirmed', 'inferred']),
|
|
23
|
+
evidence: arraySchema(shortText, { maxItems: 32 })
|
|
24
|
+
}, ['key', 'label', 'score', 'state']);
|
|
25
|
+
|
|
26
|
+
const projectAssessment = objectSchema({
|
|
27
|
+
score: integerSchema({ minimum: 0, maximum: 100 }),
|
|
28
|
+
label: enumSchema(['needs_clarification', 'partially_documented', 'well_documented']),
|
|
29
|
+
confirmed: arraySchema(shortText, { maxItems: 64 }),
|
|
30
|
+
inferred: arraySchema(shortText, { maxItems: 64 }),
|
|
31
|
+
dimensions: arraySchema(assessmentDimension, { maxItems: 16 }),
|
|
32
|
+
analyzedAt: dateTime
|
|
33
|
+
}, ['score', 'label', 'confirmed', 'inferred', 'dimensions', 'analyzedAt']);
|
|
34
|
+
|
|
35
|
+
const projectProfile = objectSchema({
|
|
36
|
+
name: boundedString(160),
|
|
37
|
+
purpose: nullableStringSchema(),
|
|
38
|
+
scope: nullableStringSchema(),
|
|
39
|
+
technicalSummary: nullableStringSchema(),
|
|
40
|
+
lifecycle: enumSchema(['planned', 'active', 'maintenance', 'archived']),
|
|
41
|
+
sources: arraySchema(projectSource, { maxItems: 64 }),
|
|
42
|
+
boundaries: arraySchema(shortText, { maxItems: 64 }),
|
|
43
|
+
assessment: { ...projectAssessment, type: ['object', 'null'] }
|
|
44
|
+
}, ['name']);
|
|
45
|
+
|
|
46
|
+
// The knowledge spaces and local personal projects.
|
|
47
|
+
export const KNOWLEDGE_SPACE_DEFINITIONS = [
|
|
48
|
+
{
|
|
49
|
+
name: 'list_knowledge_spaces',
|
|
50
|
+
description: 'List the active personal space, accessible team-shared projects, and current subscriptions.',
|
|
51
|
+
inputSchema: objectSchema({})
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'upsert_personal_project',
|
|
55
|
+
description: 'Create or update a local personal project profile, including evidence sources and an explainable display-only summary of evidence already present. Do not generate missing-item claims. This never publishes the project.',
|
|
56
|
+
inputSchema: objectSchema({
|
|
57
|
+
personalSpaceId: id,
|
|
58
|
+
projectId: boundedString(128),
|
|
59
|
+
profile: projectProfile,
|
|
60
|
+
createOnly: { type: 'boolean', description: 'When true, fail with 409 instead of replacing an existing project with this projectId.' }
|
|
61
|
+
}, ['personalSpaceId', 'projectId', 'profile'])
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'list_personal_projects',
|
|
65
|
+
description: 'List local personal project profiles and their current evidence-backed coverage summaries.',
|
|
66
|
+
inputSchema: objectSchema({ personalSpaceId: id })
|
|
67
|
+
}
|
|
68
|
+
];
|
|
69
|
+
|
|
70
|
+
// Publishing, subscribing to and reviewing team-shared projects.
|
|
71
|
+
export const PUBLIC_PROJECT_DEFINITIONS = [
|
|
72
|
+
{
|
|
73
|
+
name: 'publish_personal_project',
|
|
74
|
+
description: 'Publish or synchronize one local personal project to a configured public Provider with an immutable release version and update summary. The Provider records the authenticated publisher and server publication time. The first publisher becomes Owner and Maintainer and is automatically subscribed. Evidence coverage never blocks publication.',
|
|
75
|
+
inputSchema: objectSchema({
|
|
76
|
+
personalSpaceId: id,
|
|
77
|
+
localProjectId: boundedString(128),
|
|
78
|
+
providerUrl: shortText,
|
|
79
|
+
releaseVersion: { ...boundedString(64), pattern: '^[0-9A-Za-z][0-9A-Za-z._-]*$' },
|
|
80
|
+
updateSummary: boundedString(4096)
|
|
81
|
+
}, [
|
|
82
|
+
'personalSpaceId', 'localProjectId', 'providerUrl',
|
|
83
|
+
'releaseVersion', 'updateSummary'
|
|
84
|
+
])
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'list_project_releases',
|
|
88
|
+
description: 'List immutable public project releases including version, publisher, publication time, and update summary.',
|
|
89
|
+
inputSchema: objectSchema({
|
|
90
|
+
projectId: id,
|
|
91
|
+
providerUrl: shortText
|
|
92
|
+
}, ['projectId', 'providerUrl'])
|
|
93
|
+
},
|
|
94
|
+
...projectRelationDefinitions({ id, shortText, projectRelationType }),
|
|
95
|
+
{
|
|
96
|
+
name: 'list_personal_review_queue',
|
|
97
|
+
description: 'List full structured knowledge drafts waiting in the local personal pre-review queue before any public submission.',
|
|
98
|
+
inputSchema: objectSchema({
|
|
99
|
+
personalSpaceId: id,
|
|
100
|
+
status: enumSchema(['pending', 'submitted', 'kept_personal', 'ignored'])
|
|
101
|
+
}, ['personalSpaceId'])
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'review_personal_draft',
|
|
105
|
+
description: 'Decide a local pre-review draft: submit it to shared Maintainer review, keep it only in the personal graph, or ignore it. No background upload occurs.',
|
|
106
|
+
inputSchema: objectSchema({
|
|
107
|
+
draftId: id,
|
|
108
|
+
decision: enumSchema(['submit_public', 'keep_personal', 'ignore'])
|
|
109
|
+
}, ['draftId', 'decision'])
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'subscribe_public_project',
|
|
113
|
+
description: 'Subscribe the active personal graph to an accessible team-shared project.',
|
|
114
|
+
inputSchema: objectSchema({
|
|
115
|
+
personalSpaceId: id,
|
|
116
|
+
projectId: id,
|
|
117
|
+
providerUrl: shortText,
|
|
118
|
+
projectName: label
|
|
119
|
+
}, ['personalSpaceId', 'projectId', 'providerUrl', 'projectName'])
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: 'unsubscribe_public_project',
|
|
123
|
+
description: 'Stop including one subscribed team-shared project in the active personal context. This removes only the local subscription and never deletes the public project.',
|
|
124
|
+
inputSchema: objectSchema({
|
|
125
|
+
personalSpaceId: id,
|
|
126
|
+
projectId: id,
|
|
127
|
+
providerUrl: shortText
|
|
128
|
+
}, ['personalSpaceId', 'projectId', 'providerUrl'])
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'list_project_review_queue',
|
|
132
|
+
description: 'List pending structured knowledge proposals for a team-shared project. Maintainer role is required.',
|
|
133
|
+
inputSchema: objectSchema({
|
|
134
|
+
projectId: id,
|
|
135
|
+
providerUrl: shortText,
|
|
136
|
+
status: enumSchema(['pending', 'approved', 'rejected'])
|
|
137
|
+
}, ['projectId', 'providerUrl'])
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: 'review_project_proposal',
|
|
141
|
+
description: 'Approve or reject one team-shared project knowledge proposal. Maintainer role is required.',
|
|
142
|
+
inputSchema: objectSchema({
|
|
143
|
+
projectId: id,
|
|
144
|
+
providerUrl: shortText,
|
|
145
|
+
proposalId: id,
|
|
146
|
+
decision: enumSchema(['approve', 'reject']),
|
|
147
|
+
note: boundedString(2000)
|
|
148
|
+
}, ['projectId', 'providerUrl', 'proposalId', 'decision'])
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: 'get_graphiti_status',
|
|
152
|
+
description: 'Return health and storage mode for the personal and configured workspace providers.',
|
|
153
|
+
inputSchema: objectSchema({})
|
|
154
|
+
}
|
|
155
|
+
];
|
|
@@ -19,35 +19,37 @@ const OPEN_TOOLS = new Set([
|
|
|
19
19
|
'acquire_runtime_lease', 'refresh_runtime_lease', 'release_runtime_lease'
|
|
20
20
|
]);
|
|
21
21
|
export const SESSION_FULI_OFF = 'fuli_off';
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
// writes as it goes or closes.
|
|
25
|
-
//
|
|
26
|
-
// session of its client is off, since
|
|
27
|
-
// (option Y, #251). The token is used
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
'review_with_tonborg', 'get_agent_quality_gate', 'get_project_team', 'recommend_next_workflow_steps', 'find_agents',
|
|
33
|
-
'capture_session_knowledge', 'record_decision_trace', 'record_workflow_transition_observation',
|
|
34
|
-
'checkpoint_project_agent_memory', 'record_project_agent_task_activity', 'record_project_agent_executor_actual',
|
|
35
|
-
'record_project_agent_task_outcome'
|
|
36
|
-
]);
|
|
22
|
+
// Every other tool is attributed unless its own schema names a task token
|
|
23
|
+
// (rec#11 D-62): entry, recall, team and judgment reads an Agent calls without
|
|
24
|
+
// a task of its own and the records a task writes as it goes or closes alike.
|
|
25
|
+
// It takes the current taskContextToken only to say which session it is for:
|
|
26
|
+
// without it, a call is refused while any session of its client is off, since
|
|
27
|
+
// no host session shows the current one (option Y, #251). The token is used
|
|
28
|
+
// here and never reaches the tool. A tool that names a task token keeps its
|
|
29
|
+
// own field and receives it. There is no list to keep: a new tool is
|
|
30
|
+
// attributed unless it is open or names its own token.
|
|
31
|
+
const OWN_TOKEN_FIELDS = Object.freeze(['taskContextToken', 'task_context_token']);
|
|
37
32
|
// Bare: a value that is not a current task token only leaves the call without a session.
|
|
38
33
|
const TOKEN_FIELD = Object.freeze({ type: 'string' });
|
|
39
34
|
|
|
40
|
-
//
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
//
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
35
|
+
// The session gate over the Agent tool definitions: what Agents see of them,
|
|
36
|
+
// the input each tool itself receives and how a call runs.
|
|
37
|
+
export function createSessionGate(definitions) {
|
|
38
|
+
const attributed = new Set(definitions.filter(({ name, inputSchema }) => !OPEN_TOOLS.has(name)
|
|
39
|
+
&& !OWN_TOKEN_FIELDS.some(field => Object.hasOwn(inputSchema.properties ?? {}, field))).map(({ name }) => name));
|
|
40
|
+
return Object.freeze({
|
|
41
|
+
// An attributed tool lists the token.
|
|
42
|
+
definitions: definitions.map(definition => attributed.has(definition.name) ? { ...definition, inputSchema: {
|
|
43
|
+
...definition.inputSchema, properties: { ...definition.inputSchema.properties, taskContextToken: TOKEN_FIELD } } }
|
|
44
|
+
: definition),
|
|
45
|
+
// The input a tool itself receives.
|
|
46
|
+
toolInput(name, input) {
|
|
47
|
+
if (!attributed.has(name) || !input || typeof input !== 'object' || !Object.hasOwn(input, 'taskContextToken')) return input;
|
|
48
|
+
const { taskContextToken: _attribution, ...rest } = input;
|
|
49
|
+
return rest;
|
|
50
|
+
},
|
|
51
|
+
run: (app, name, input, dispatch) => runSessionGated(app, { name, attributed: attributed.has(name) }, input, dispatch)
|
|
52
|
+
});
|
|
51
53
|
}
|
|
52
54
|
const GUIDANCE = 'FULI is off for this session, so nothing was read, injected, recorded or started. Do not call FULI tools for this session or add an agent_receipt; only the person can turn it on (/fuli start).';
|
|
53
55
|
// The refusals that are not the person turning FULI off here.
|
|
@@ -66,20 +68,20 @@ const REASON_GUIDANCE = Object.freeze({
|
|
|
66
68
|
// capture decisions of its writes count that session as their task's, with
|
|
67
69
|
// its pause and stop, while another session of the client records nothing.
|
|
68
70
|
// A call that needs neither runs as before, synchronously.
|
|
69
|
-
|
|
71
|
+
function runSessionGated(app, { name, attributed }, input, dispatch) {
|
|
70
72
|
const checked = !OPEN_TOOLS.has(name) && sessionsMayBeOff(app);
|
|
71
|
-
if (!checked && !
|
|
73
|
+
if (!checked && !attributed) return dispatch();
|
|
72
74
|
// The client the call's process was started for decides, whatever the payload names or omits.
|
|
73
75
|
const sourceApplication = activeAgentHostClient() ?? input?.sourceApplication ?? 'other';
|
|
74
76
|
if (!checked && !sessionsMayBeWithoutCapture(app, sourceApplication)) return dispatch();
|
|
75
|
-
return gatedCall(app,
|
|
77
|
+
return gatedCall(app, input, dispatch, { attributed, checked, sourceApplication });
|
|
76
78
|
}
|
|
77
79
|
|
|
78
|
-
async function gatedCall(app,
|
|
80
|
+
async function gatedCall(app, input, dispatch, { attributed, checked, sourceApplication }) {
|
|
79
81
|
const binding = await tokenBinding(app, input, sourceApplication);
|
|
80
82
|
const refusal = checked ? sessionFuliRefusal(app, input, sourceApplication, binding) : null;
|
|
81
83
|
if (refusal) return refusal;
|
|
82
|
-
return
|
|
84
|
+
return attributed && binding.boundSessionId
|
|
83
85
|
? runWithTaskBoundSession(binding.boundSessionId, dispatch) : dispatch();
|
|
84
86
|
}
|
|
85
87
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { arraySchema, boundedString, enumSchema, objectSchema } from './schema.js';
|
|
2
|
+
|
|
3
|
+
// The person's "from now on, this work goes to that project" (rec#29 D-41),
|
|
4
|
+
// and their correction or end of it (F5): one tool, preview then confirm, so
|
|
5
|
+
// the confirmation is the person's answer to the previewed plan. One tool
|
|
6
|
+
// with a change field lists ~670 B less than a second correction tool.
|
|
7
|
+
// Full profile only; chat reaches it on demand.
|
|
8
|
+
const terms = arraySchema(boundedString(80), { maxItems: 20 });
|
|
9
|
+
|
|
10
|
+
export const STANDING_ASSIGNMENT_DEFINITIONS = [
|
|
11
|
+
{
|
|
12
|
+
name: 'register_standing_assignment',
|
|
13
|
+
title: 'WRITE · Route, correct or end a kind of work',
|
|
14
|
+
description: 'Only when the user says a kind of work goes to its own project from now on, or corrects or ends that. preview writes nothing; ask the user once with its restatement. After a clear yes, confirm with the same input and confirmationDigest: reuses or creates the project, staffs its lead, records the terms. Never does the work. change retire, reassign or edit_terms corrects the assignment one of its terms names (term): reassign takes projectName, leadAgentId (default its lead); edit_terms addTerms, removeTerms.',
|
|
15
|
+
inputSchema: objectSchema({
|
|
16
|
+
action: enumSchema(['preview', 'confirm']),
|
|
17
|
+
change: enumSchema(['register', 'retire', 'reassign', 'edit_terms']),
|
|
18
|
+
taskContextToken: boundedString(256),
|
|
19
|
+
projectName: boundedString(80),
|
|
20
|
+
terms: { ...arraySchema(boundedString(80), { minItems: 1, maxItems: 20 }),
|
|
21
|
+
description: 'Words that name this work in later requests.' },
|
|
22
|
+
responsibility: boundedString(240),
|
|
23
|
+
userWords: { ...boundedString(600), description: 'The user\'s own words stating the rule.' },
|
|
24
|
+
preferenceIds: arraySchema(boundedString(200), { maxItems: 50 }),
|
|
25
|
+
term: boundedString(80),
|
|
26
|
+
leadAgentId: boundedString(200),
|
|
27
|
+
addTerms: terms,
|
|
28
|
+
removeTerms: terms,
|
|
29
|
+
confirmationDigest: boundedString(64)
|
|
30
|
+
}, ['action', 'taskContextToken'])
|
|
31
|
+
}
|
|
32
|
+
];
|