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.
Files changed (262) hide show
  1. package/dist/web/assets/{AboutPage-CjDenGS_.js → AboutPage-D0dTwKq8.js} +1 -1
  2. package/dist/web/assets/{AgentName-DdlJlpT3.js → AgentName-n4oqQUwE.js} +1 -1
  3. package/dist/web/assets/{AgentProfilePage-Cx_Uf5Vf.js → AgentProfilePage-DH54S93r.js} +1 -1
  4. package/dist/web/assets/{AgentsDirectoryPage-DylT-GSW.js → AgentsDirectoryPage-xwIRrNb8.js} +1 -1
  5. package/dist/web/assets/{BackLink-D7oAvDG5.js → BackLink-nM3e40IT.js} +1 -1
  6. package/dist/web/assets/{BoardMoveMenu-B0pA7LLx.js → BoardMoveMenu-Cxgkbwkl.js} +1 -1
  7. package/dist/web/assets/{CaptureChangePage-DEuqPb14.js → CaptureChangePage-DWdz9dEk.js} +1 -1
  8. package/dist/web/assets/{Card-BZFLZ_2I.js → Card-89NKHANE.js} +1 -1
  9. package/dist/web/assets/{CardHeader-C_c0keQn.js → CardHeader-9MwjWRxl.js} +1 -1
  10. package/dist/web/assets/{CardTitle-yXOhV577.js → CardTitle-BAhmXjAK.js} +1 -1
  11. package/dist/web/assets/{ConnectionsPage-DlnHdtwn.js → ConnectionsPage-Yf4UvjDT.js} +1 -1
  12. package/dist/web/assets/{CreateProjectDialog-BVJqWdlT.js → CreateProjectDialog-crpLTyDf.js} +1 -1
  13. package/dist/web/assets/{DataFormatPage-BdcjcyhZ.js → DataFormatPage-BPuUH0PG.js} +1 -1
  14. package/dist/web/assets/{DialogFooter-DYawfDCD.js → DialogFooter-D9A9hRP4.js} +1 -1
  15. package/dist/web/assets/{EmployeeRecruitDialog-CB4ARFkM.js → EmployeeRecruitDialog-DeB0XHeM.js} +1 -1
  16. package/dist/web/assets/EmployeeWorkbenchPage-0oK2RfIh.js +3 -0
  17. package/dist/web/assets/{EmployeeWorkbenchPage-BenZP7De.css → EmployeeWorkbenchPage-CMutwFBC.css} +1 -1
  18. package/dist/web/assets/{GrowthLoading-smW3-Gfp.js → GrowthLoading-Cs9brXcN.js} +1 -1
  19. package/dist/web/assets/{InboxPage-Crn1UU7s.js → InboxPage-CTQ425Ez.js} +1 -1
  20. package/dist/web/assets/{Input-F1oftPWh.js → Input-DGf4juEs.js} +1 -1
  21. package/dist/web/assets/{KnowledgeEditDialog-VdQwbX4E.js → KnowledgeEditDialog-Ccgj30Wu.js} +1 -1
  22. package/dist/web/assets/{KnowledgeHardDeleteSection-CXRmNnZF.js → KnowledgeHardDeleteSection-CSnqisUv.js} +1 -1
  23. package/dist/web/assets/{KnowledgeItemEditPage-CQo3TbCJ.js → KnowledgeItemEditPage-C0Y2DsHz.js} +1 -1
  24. package/dist/web/assets/{KnowledgeItemSummaryCard-Dd2McM-d.js → KnowledgeItemSummaryCard-BRvaf4Fw.js} +1 -1
  25. package/dist/web/assets/{KnowledgeOrganizerPage-BVgAyu6U.js → KnowledgeOrganizerPage-CRC3mk0j.js} +1 -1
  26. package/dist/web/assets/KnowledgePage-NsKFUWth.js +1 -0
  27. package/dist/web/assets/{KnowledgePeek-BNBkh1ey.js → KnowledgePeek-Bc0bqyZp.js} +1 -1
  28. package/dist/web/assets/{KnowledgeTurnReceiptPage-Ckw_olrt.js → KnowledgeTurnReceiptPage-Dl0KeFDe.js} +1 -1
  29. package/dist/web/assets/{KnowledgeWorkspace-pH2tAFld.js → KnowledgeWorkspace-BGlODG7G.js} +1 -1
  30. package/dist/web/assets/{Label-yDCtlpkb.js → Label-CafdTnDF.js} +1 -1
  31. package/dist/web/assets/ModelSettingsPage-Bz1tMXtW.js +1 -0
  32. package/dist/web/assets/ModelSettingsPage-DJuEaw6p.css +1 -0
  33. package/dist/web/assets/{NotFoundPage-8gVVukRR.js → NotFoundPage-TfZ2eoA2.js} +1 -1
  34. package/dist/web/assets/{OccupationsPage-PNoqE21Y.js → OccupationsPage-CnSp6362.js} +1 -1
  35. package/dist/web/assets/{OverviewPage-DiwYSnhh.js → OverviewPage-D5W-DhOz.js} +2 -2
  36. package/dist/web/assets/{PersonalProfilePage-C_v2BFee.js → PersonalProfilePage-CndOcRQ6.js} +1 -1
  37. package/dist/web/assets/{PersonalProjectsPage-DGRV8cM5.js → PersonalProjectsPage-CXBOwEqC.js} +1 -1
  38. package/dist/web/assets/{PopperContent-5zqbtnYr.js → PopperContent-BXbztFFi.js} +1 -1
  39. package/dist/web/assets/{Presence-BYfYJNMD.js → Presence-BLar6FCs.js} +1 -1
  40. package/dist/web/assets/{ProjectAgentDetailPage-BQ9ffaCX.js → ProjectAgentDetailPage-SmZ2NYTw.js} +1 -1
  41. package/dist/web/assets/{ProjectAgentDialog-BGckQDTq.js → ProjectAgentDialog-Bg0V3Zr2.js} +1 -1
  42. package/dist/web/assets/{ProjectAgentFirstTask-DrSd3nR-.js → ProjectAgentFirstTask-CbOWaP7Q.js} +1 -1
  43. package/dist/web/assets/{ProjectAgentsPage-U4Om3EPu.js → ProjectAgentsPage-Y6qCYRZj.js} +1 -1
  44. package/dist/web/assets/{ProjectScopePicker-D0oxbwOd.js → ProjectScopePicker-ClDUoUHW.js} +1 -1
  45. package/dist/web/assets/{PublicProjectsPage-CvkQ3E8I.js → PublicProjectsPage-C63vW9UZ.js} +1 -1
  46. package/dist/web/assets/{RadioGroupItem-CBpbQlHx.js → RadioGroupItem-tL_2upmD.js} +1 -1
  47. package/dist/web/assets/{RoundtablesPage-BEUaKOjI.js → RoundtablesPage-2Akxagrm.js} +1 -1
  48. package/dist/web/assets/{RovingFocusGroup-X9U-ufYr.js → RovingFocusGroup-D5mf9s6I.js} +1 -1
  49. package/dist/web/assets/{RovingFocusItem-_uA_OCLT.js → RovingFocusItem-DAumq9xD.js} +1 -1
  50. package/dist/web/assets/{SessionMigrationPage-WVFSDcUO.js → SessionMigrationPage-B5r2PWCF.js} +1 -1
  51. package/dist/web/assets/{SessionRecordsPage-Bs2eLXEi.js → SessionRecordsPage-DIc2GoCQ.js} +1 -1
  52. package/dist/web/assets/{SettingsPage-DlIwICIz.js → SettingsPage-BAxKpnBx.js} +1 -1
  53. package/dist/web/assets/{SharedJefaReportPage-B_rreEep.js → SharedJefaReportPage-B54qEdIV.js} +1 -1
  54. package/dist/web/assets/{TabsContent-8pXwYJPz.js → TabsContent-DZQE2Iq8.js} +1 -1
  55. package/dist/web/assets/{TabsTrigger-Cd6SI2yI.js → TabsTrigger-CHnq6mkI.js} +1 -1
  56. package/dist/web/assets/{TagVocabularyPage-BQiuKG-4.js → TagVocabularyPage-BIsHYk2i.js} +1 -1
  57. package/dist/web/assets/{TaskExecutionPlan-CupxJeyo.js → TaskExecutionPlan-IYG_JeuT.js} +1 -1
  58. package/dist/web/assets/{TaskSchedulesPage-zYQs7s6T.js → TaskSchedulesPage-Cxjqc8XQ.js} +1 -1
  59. package/dist/web/assets/{Teleport-BZX1Eb7R.js → Teleport-BKN3dSMk.js} +1 -1
  60. package/dist/web/assets/{TextField-CielK4l3.js → TextField-DoKtn--E.js} +1 -1
  61. package/dist/web/assets/{UiDialog-BSDblUpR.js → UiDialog-7pnZ-eQA.js} +1 -1
  62. package/dist/web/assets/{UiDisclosure-DLmVwmy1.js → UiDisclosure-COV4NwHI.js} +1 -1
  63. package/dist/web/assets/{UiIcon-B8eZeuGI.js → UiIcon-BADOYtHM.js} +1 -1
  64. package/dist/web/assets/{UiIconButton-e754Tmnq.js → UiIconButton-CkBP6pnX.js} +1 -1
  65. package/dist/web/assets/{UiSegmented-D1HD-qin.js → UiSegmented-FwOnE2IZ.js} +1 -1
  66. package/dist/web/assets/{UiSelect-CbkTsi2e.js → UiSelect-BIhr03Gk.js} +1 -1
  67. package/dist/web/assets/{UiToggle-Dz93aXFK.js → UiToggle-bpyawyIe.js} +1 -1
  68. package/dist/web/assets/{UiWeight-CUvyApSB.js → UiWeight-TyBehy3K.js} +1 -1
  69. package/dist/web/assets/{UnassignedConversationsPanel-xY7gsFot.js → UnassignedConversationsPanel-B4PqImRi.js} +1 -1
  70. package/dist/web/assets/{VirtualDirectoryList-Dv6PwLjU.js → VirtualDirectoryList-DNQP6X8j.js} +1 -1
  71. package/dist/web/assets/{Workbench3D--4N_uKzp.js → Workbench3D-DNwgymIE.js} +1 -1
  72. package/dist/web/assets/{WritingTastePage-B7KojA4r.js → WritingTastePage-D-ELo7mh.js} +1 -1
  73. package/dist/web/assets/{_plugin-vue_export-helper-BmfQlfI8.js → _plugin-vue_export-helper-RegzAV-H.js} +1 -1
  74. package/dist/web/assets/{accordion-gXElbGP_.js → accordion-DpqAdXTB.js} +1 -1
  75. package/dist/web/assets/{agent-occupation-ChN-1QjC.js → agent-occupation-Ba5Fl0ys.js} +1 -1
  76. package/dist/web/assets/{agent-pins-Chh_rdBi.js → agent-pins-Bb7-1Uoz.js} +1 -1
  77. 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
  78. package/dist/web/assets/{agent-work-summary-C9yMf019.js → agent-work-summary-D0a836ik.js} +1 -1
  79. package/dist/web/assets/{attention-store-CG9cF6DX.js → attention-store-g2-_vAhV.js} +1 -1
  80. package/dist/web/assets/{badge-DvvDq2Wb.js → badge-BIoC0hjn.js} +1 -1
  81. package/dist/web/assets/{button-CFEnxtio.js → button-A2esxd6G.js} +1 -1
  82. package/dist/web/assets/{checkbox-DovdRz8u.js → checkbox-DxBVlC6t.js} +1 -1
  83. package/dist/web/assets/{client-lh80ewvs.js → client-DAoXcTUz.js} +1 -1
  84. package/dist/web/assets/{console-CQMgYkk9.js → console-DiNe1hFP.js} +1 -1
  85. package/dist/web/assets/{conversation-launcher-settings-B1QM-wZB.js → conversation-launcher-settings-CtOlr9uP.js} +1 -1
  86. package/dist/web/assets/{design-lab-BDKwIbI8.js → design-lab-UWXx2ZtA.js} +1 -1
  87. package/dist/web/assets/{dialog-D2mO6m3B.js → dialog-DTVE8tN1.js} +1 -1
  88. package/dist/web/assets/{dist-PmK0PfVA.js → dist-D-8b3yGa.js} +1 -1
  89. package/dist/web/assets/{dropdown-menu-YzCnvjAb.js → dropdown-menu-NcUrhhmG.js} +1 -1
  90. package/dist/web/assets/{field-BMEFEyVC.js → field-6mg5DSC8.js} +1 -1
  91. package/dist/web/assets/{identity-bK-fJdnj.js → identity-FG3YqHVj.js} +1 -1
  92. package/dist/web/assets/index-BpQe3IT5.js +2 -0
  93. package/dist/web/assets/{judgment-types-DJnAr9c0.js → judgment-types-rLsl2Cis.js} +1 -1
  94. package/dist/web/assets/{model-Cengn9fg.js → model-BCnsjEuP.js} +1 -1
  95. package/dist/web/assets/{model-rumuELTi.js → model-BcMr6R8m.js} +1 -1
  96. package/dist/web/assets/{model-DpVrfbnj.js → model-CYJ_LZ47.js} +1 -1
  97. package/dist/web/assets/{model-BwNZZZNP.js → model-CeF2BATq.js} +1 -1
  98. package/dist/web/assets/{model-CuY1vtEy.js → model-CtmCtjml.js} +1 -1
  99. package/dist/web/assets/{model-CPMYnu3S.js → model-t2ZvD7wL.js} +1 -1
  100. package/dist/web/assets/{motion-preference-A1AMssSH.js → motion-preference-DeZURhN7.js} +1 -1
  101. package/dist/web/assets/{occupation-catalog-DxwlYD1L.js → occupation-catalog-q0ZjGx2o.js} +1 -1
  102. package/dist/web/assets/{orchestration-filters-DZpJ0FN3.js → orchestration-filters-CKf_Gzdl.js} +1 -1
  103. package/dist/web/assets/{page-title-Bg-mVyrS.js → page-title-BLHrexaP.js} +1 -1
  104. package/dist/web/assets/{personal-profile-graph-tMneNj_m.js → personal-profile-graph-IYovB9sV.js} +1 -1
  105. package/dist/web/assets/{project-capture-QgMw6qvo.js → project-capture-BvIPecIS.js} +1 -1
  106. package/dist/web/assets/{project-origin-ppsYHpYL.js → project-origin-JnGPwlfA.js} +1 -1
  107. package/dist/web/assets/project-team-api-Cfn41MCR.js +1 -0
  108. package/dist/web/assets/{quick-edit-api-BiyK3ih-.js → quick-edit-api-DzpRAPsr.js} +1 -1
  109. package/dist/web/assets/{shared-report-D3Hem1t5.js → shared-report-BLmBg2FG.js} +3 -3
  110. package/dist/web/assets/{task-labels-7KyNw9id.js → task-labels-BArOYZEW.js} +1 -1
  111. package/dist/web/assets/{ui-Ck58paqr.js → ui-CtW0tAA1.js} +1 -1
  112. package/dist/web/assets/{useAgentRecords-C6RrZwwv.js → useAgentRecords-BoOqLQcf.js} +1 -1
  113. package/dist/web/assets/{useApi-CROJJdhE-BujjnKN_.js → useApi-CROJJdhE-CH5wlWTU.js} +1 -1
  114. package/dist/web/assets/{useFocusReturn-D9IOIg17.js → useFocusReturn-DX2zmPSK.js} +1 -1
  115. package/dist/web/assets/{useKnowledgeItemPeek-C6nAzvDL.js → useKnowledgeItemPeek-Cfvr5H1q.js} +1 -1
  116. package/dist/web/assets/{useMinimumLoadingDisplay-HnxkDut6.js → useMinimumLoadingDisplay-GhG1ICNJ.js} +1 -1
  117. package/dist/web/assets/{useRoutePeek-BvYFc1BA.js → useRoutePeek-DydCbUhy.js} +1 -1
  118. package/dist/web/assets/{vue-router-Bl55c88B.js → vue-router-Dad-4p7O.js} +1 -1
  119. package/dist/web/index.html +32 -32
  120. package/docs/agent-conversations-and-collaboration.md +10 -0
  121. package/docs/employee-agents.md +3 -1
  122. package/docs/judgment-and-autonomy.md +30 -1
  123. package/graph-provider/fuli_graph/agent_conversation_models.py +7 -0
  124. package/graph-provider/fuli_graph/agent_conversation_routes.py +5 -1
  125. package/graph-provider/fuli_graph/default_project_lead.py +7 -3
  126. package/graph-provider/fuli_graph/store_agent_conversations.py +66 -34
  127. package/graph-provider/pyproject.toml +1 -1
  128. package/native/win32/fuli-win-helper.exe +0 -0
  129. package/npm-shrinkwrap.json +2 -2
  130. package/package.json +1 -1
  131. package/packages/roundtable/src/host.js +5 -0
  132. package/packages/roundtable/src/peer/coordinator-service.js +20 -3
  133. package/packages/roundtable/src/roundtable/service.js +31 -5
  134. package/skills/capturing-session-knowledge/references/retrieval.md +10 -2
  135. package/skills/operating-fuli/references/workflow-recipes.md +2 -0
  136. package/src/agent-apps/host-tools/catalog.js +1 -0
  137. package/src/agent-tools/executor-routing-definitions.js +194 -0
  138. package/src/agent-tools/graph-definitions.js +20 -1279
  139. package/src/agent-tools/graph-handlers.js +6 -2
  140. package/src/agent-tools/graph-tool-fields.js +43 -0
  141. package/src/agent-tools/interface-catalog.js +5 -1
  142. package/src/agent-tools/knowledge-curation-definitions.js +167 -0
  143. package/src/agent-tools/knowledge-definitions.js +431 -0
  144. package/src/agent-tools/project-agent-tool-definitions.js +271 -0
  145. package/src/agent-tools/project-space-definitions.js +155 -0
  146. package/src/agent-tools/session-fuli-gate.js +33 -31
  147. package/src/agent-tools/standing-assignment-definitions.js +32 -0
  148. package/src/agent-tools/task-entry-definitions.js +105 -0
  149. package/src/agent-tools.js +5 -4
  150. package/src/agents/claude-code/lifecycle-hook.js +16 -2
  151. package/src/agents/claude-code/preference-evidence.js +11 -1
  152. package/src/app/application-error.js +21 -3
  153. package/src/conversations/capture-window.js +8 -3
  154. package/src/conversations/entry-budget.js +2 -10
  155. package/src/conversations/entry-inline-budget.js +144 -0
  156. package/src/conversations/entry-rules.js +1 -1
  157. package/src/conversations/entry-time.js +15 -0
  158. package/src/conversations/preference-evidence.js +19 -0
  159. package/src/conversations/preference-lifecycle.js +28 -7
  160. package/src/conversations/preference-session.js +26 -10
  161. package/src/conversations/preference-snapshot.js +12 -1
  162. package/src/conversations/sync-transcript.js +10 -6
  163. package/src/conversations/transcript-guard.js +4 -3
  164. package/src/conversations/transcript-lifecycle.js +6 -3
  165. package/src/data-format/local-stores.js +3 -0
  166. package/src/desktop/windows-installation.js +2 -1
  167. package/src/external-knowledge/connectors/feishu.js +3 -1
  168. package/src/graphiti/active-personal-space.js +5 -0
  169. package/src/graphiti/agent-conversations.js +23 -28
  170. package/src/graphiti/agent-knowledge-workflows.js +12 -1299
  171. package/src/graphiti/agent-project-resolution.js +11 -0
  172. package/src/graphiti/agent-view-records.js +19 -0
  173. package/src/graphiti/capture-notice.js +20 -6
  174. package/src/graphiti/collaboration-preference-entry.js +89 -0
  175. package/src/graphiti/collaboration-preference-workflow.js +1 -1
  176. package/src/graphiti/common-knowledge-candidates.js +222 -0
  177. package/src/graphiti/cross-project-knowledge-similarity.js +59 -0
  178. package/src/graphiti/current-project-knowledge-search.js +86 -0
  179. package/src/graphiti/decision-trace.js +136 -0
  180. package/src/graphiti/federated-application.js +158 -795
  181. package/src/graphiti/human-knowledge-changes.js +45 -0
  182. package/src/graphiti/knowledge-credential-guard.js +43 -0
  183. package/src/graphiti/knowledge-curation.js +178 -0
  184. package/src/graphiti/knowledge-feedback.js +25 -0
  185. package/src/graphiti/knowledge-graph-reads.js +62 -0
  186. package/src/graphiti/local-runtimes.js +78 -0
  187. package/src/graphiti/personal-global-preference-candidates.js +431 -0
  188. package/src/graphiti/personal-projects.js +33 -0
  189. package/src/graphiti/preference-conflict-requests.js +57 -0
  190. package/src/graphiti/preference-project-resolution.js +39 -0
  191. package/src/graphiti/preference-task-scope.js +18 -0
  192. package/src/graphiti/project-agent-control-plane.js +6 -1
  193. package/src/graphiti/project-agent-task-entry.js +18 -1
  194. package/src/graphiti/project-path-context.js +28 -9
  195. package/src/graphiti/provider-client.js +1 -1
  196. package/src/graphiti/public-project-relations.js +28 -0
  197. package/src/graphiti/public-projects.js +125 -0
  198. package/src/graphiti/publication-review-queues.js +50 -0
  199. package/src/graphiti/roundtable-host.js +35 -3
  200. package/src/graphiti/session-capture-pause-request.js +3 -2
  201. package/src/graphiti/session-fuli-switch.js +4 -3
  202. package/src/graphiti/session-knowledge-capture.js +59 -0
  203. package/src/graphiti/session-records.js +4 -3
  204. package/src/graphiti/source-marker.js +13 -3
  205. package/src/graphiti/standing-assignment-confirmation.js +66 -0
  206. package/src/graphiti/standing-assignment-correction.js +148 -0
  207. package/src/graphiti/standing-assignment-entry.js +223 -0
  208. package/src/graphiti/task-context-entry.js +114 -0
  209. package/src/graphiti/task-entry-preferences.js +4 -1
  210. package/src/graphiti/task-entry-project-mention.js +13 -2
  211. package/src/graphiti/task-entry-project-scope.js +12 -3
  212. package/src/graphiti/task-entry-standing-owner.js +141 -0
  213. package/src/graphiti/task-knowledge-checkpoint.js +212 -0
  214. package/src/graphiti/task-knowledge-guidance.js +13 -0
  215. package/src/graphiti/task-knowledge-recall.js +113 -2
  216. package/src/graphiti/task-preference-reader.js +1 -1
  217. package/src/graphiti/workflow-learning.js +38 -0
  218. package/src/graphiti/workspace-provider-client.js +10 -0
  219. package/src/http/api-router.js +13 -3
  220. package/src/http/standing-assignment-api-router.js +35 -0
  221. package/src/judgment/agent-view.js +29 -7
  222. package/src/judgment/conversation.js +8 -2
  223. package/src/judgment/engine.js +16 -4
  224. package/src/judgment/http.js +37 -5
  225. package/src/judgment/review-injection-precheck.js +97 -0
  226. package/src/judgment/review-suggestions.js +46 -0
  227. package/src/judgment/store.js +8 -0
  228. package/src/knowledge-hard-delete/delete-ledger.js +12 -3
  229. package/src/knowledge-hard-delete/recovery-gate.js +4 -4
  230. package/src/knowledge-owner-reads/console-port.js +8 -0
  231. package/src/knowledge-owner-reads/owner-proof.js +35 -0
  232. package/src/local-runtime/lifecycle.js +2 -1
  233. package/src/local-runtime/provider-readiness.js +35 -11
  234. package/src/mcp/instructions.js +3 -3
  235. package/src/mcp/preference-delivery.js +13 -3
  236. package/src/mcp/session-id.js +2 -0
  237. package/src/mcp/tool-annotations.js +3 -2
  238. package/src/model-backends/http.js +45 -8
  239. package/src/model-backends/role-settings.js +25 -3
  240. package/src/model-backends/role-trust.js +39 -6
  241. package/src/model-backends/runtime.js +10 -3
  242. package/src/model-backends/settings-history-list.js +132 -0
  243. package/src/model-backends/settings-history.js +175 -0
  244. package/src/native-runtime/java-runtime.js +4 -4
  245. package/src/presence/windows-helper-pin.js +1 -1
  246. package/src/semantic-version.js +5 -1
  247. package/src/server.js +3 -2
  248. package/src/setup/claude-code-config.js +1 -1
  249. package/src/setup/graph-runtime.js +42 -15
  250. package/src/setup/paths.js +2 -0
  251. package/src/standing-assignments/port.js +189 -44
  252. package/src/standing-assignments/store.js +12 -1
  253. package/src/standing-assignments/term-match.js +7 -0
  254. package/src/system/file-identity.js +11 -0
  255. package/src/system/platform-path.js +38 -0
  256. package/src/validation/values.js +22 -6
  257. package/dist/web/assets/EmployeeWorkbenchPage-BUMfMBc8.js +0 -3
  258. package/dist/web/assets/KnowledgePage-Bfbfz_Z8.js +0 -1
  259. package/dist/web/assets/ModelSettingsPage-C3eBDWRL.js +0 -1
  260. package/dist/web/assets/ModelSettingsPage-DZkrJw7R.css +0 -1
  261. package/dist/web/assets/index-r-WFOs21.js +0 -2
  262. package/dist/web/assets/project-team-api-DwP0O3rn.js +0 -1
@@ -1,297 +1,23 @@
1
- import { projectRelationDefinitions } from './project-relation-definitions.js';
2
- import { checkpointCompactFields } from './checkpoint-definitions.js';
3
- import { AGENT_COLLABORATION_DEFINITIONS } from './agent-collaboration-definitions.js';
4
- import { AGENT_CONVERSATION_DEFINITIONS } from './agent-conversation-definitions.js';
5
- import { arraySchema, booleanSchema, enumSchema, integerSchema, nullableStringSchema, numberSchema, objectSchema, stringSchema }
6
- from './schema.js';
7
- import {
8
- executorActualReportInput,
9
- executorAuthorizationStatus,
10
- executorHealthStatus,
11
- executorModel,
12
- executorProfile,
13
- executorRoutingRuleInput,
14
- nullableProjectAgentStatus,
15
- projectAgentAssignmentEndInput,
16
- projectAgentAssignmentInput,
17
- projectAgentAssignmentReplaceInput,
18
- projectAgentAssignmentStatus,
19
- projectAgentModelStrategy,
20
- projectAgentProfile,
21
- projectAgentTaskActivityInput,
22
- projectAgentTaskCoordinateInput,
23
- projectAgentTaskOutcomeInput,
24
- projectAgentTaskSubmitInput,
25
- recruitmentConfirmationMode,
26
- projectAgentOccupation,
27
- recruitmentDecision,
28
- recruitmentStatus,
29
- routingRuleScope
30
- } from './project-agent-definitions.js';
31
- import { PROJECT_AGENT_MEMORY_DEFINITIONS, workingMemorySchema } from './project-agent-memory-definitions.js';
32
- import { AGENT_DISMISSAL_DEFINITIONS } from './agent-dismissal-definitions.js';
33
1
  import { EMPLOYEE_TOOL_DEFINITIONS } from './employee-definitions.js';
34
2
  import { AGENT_APP_TOOL_DEFINITIONS } from './agent-app-definitions.js';
35
3
  import { JUDGMENT_TOOL_DEFINITIONS } from './judgment-definitions.js';
36
4
  import { MODEL_BACKEND_DEFINITIONS } from './model-backend-definitions.js';
37
5
  import { TASK_SCHEDULE_DEFINITIONS } from './task-schedule-definitions.js';
6
+ import { STANDING_ASSIGNMENT_DEFINITIONS } from './standing-assignment-definitions.js';
38
7
  import { TASK_RUN_DEFINITIONS } from './task-run-definitions.js';
39
8
  import { TASK_PREFERENCE_DEFINITIONS } from './task-preference-definitions.js';
40
9
  import { AGENT_INTERFACE_DEFINITIONS } from './interface-definitions.js';
41
10
  import { AGENT_ATTENTION_DEFINITIONS } from './agent-attention-definitions.js';
42
11
  import { AGENT_SCORE_CARD_DEFINITIONS } from './agent-score-card-definitions.js';
43
- import { KNOWLEDGE_USAGE_DEFINITION, knowledgeUsageItems } from './knowledge-usage-definitions.js';
44
- import { KNOWLEDGE_TAG_DEFINITIONS } from './knowledge-tag-definitions.js';
45
-
46
- const id = boundedString(256);
47
- const label = boundedString(512);
48
- const shortText = boundedString(2048);
49
- const longText = boundedString(8192);
50
- const idempotencyKey = { ...boundedString(256), minLength: 8 };
51
- const dateTime = { ...boundedString(64), format: 'date-time' };
52
- const sourceUri = {
53
- type: ['string', 'null'],
54
- minLength: 1,
55
- maxLength: 2048,
56
- pattern: '^[Hh][Tt][Tt][Pp][Ss]?://\\S+$'
57
- };
58
- const attributes = { type: 'object', additionalProperties: true };
59
- const entityAttributes = {
60
- type: 'object',
61
- properties: {
62
- searchTerms: arraySchema(boundedString(256), { minItems: 1, maxItems: 32 })
63
- },
64
- additionalProperties: true
65
- };
66
- const epistemicQuadrant = enumSchema([
67
- 'known_known', 'known_unknown', 'unknown_known', 'unknown_unknown'
68
- ]);
69
- const epistemicStatus = enumSchema(['confirmed', 'observed', 'exploratory']);
70
- // Agent-confirmed is a read state created only by the usage policy. Agent write
71
- // tools may submit human/source-confirmed or pending knowledge, but cannot forge it.
72
- const confirmationStatus = enumSchema(['confirmed', 'pending']);
73
- const inheritanceMode = enumSchema([
74
- 'local_only', 'descendants', 'selected_projects'
75
- ]);
76
- const confirmationActor = objectSchema({
77
- kind: enumSchema(['user', 'agent', 'authoritative_source', 'import']),
78
- label: nullableStringSchema()
79
- }, ['kind']);
80
- const decisionActor = objectSchema({
81
- kind: enumSchema(['user', 'agent', 'authoritative_source']),
82
- label: nullableStringSchema()
83
- }, ['kind']);
84
- const confirmationBasis = objectSchema({
85
- existenceReason: boundedString(4096),
86
- quadrantReason: boundedString(4096),
87
- proposedBy: confirmationActor,
88
- confirmedBy: { ...confirmationActor, type: ['object', 'null'] },
89
- confirmedAt: nullableStringSchema(),
90
- agentPolicyVersion: nullableStringSchema()
91
- }, ['existenceReason', 'quadrantReason', 'proposedBy']);
92
- const knowledgeItemKind = enumSchema(['entity', 'relationship']);
93
- const knowledgeReviewScope = enumSchema([
94
- 'all', 'preferences_global', 'preferences_project', 'projects_all', 'project'
95
- ]);
96
- const humanChangeStatus = enumSchema([
97
- 'all', 'human_changed', 'unseen', 'viewed', 'reviewed'
98
- ]);
99
- const projectRelationType = enumSchema([
100
- 'PART_OF', 'USES_KNOWLEDGE_FROM', 'DEPENDS_ON', 'PROVIDES_TO', 'SHARES_CAPABILITY_WITH',
101
- 'SUCCESSOR_OF', 'RELATED_TO'
102
- ]);
103
- const knowledgeConflictResolution = enumSchema([
104
- 'defer', 'keep_target', 'use_source', 'coexist'
105
- ]);
106
- const profileAspect = {
107
- type: ['string', 'null'],
108
- enum: ['taste', 'personality', 'judgment_preference', null],
109
- description: 'taste: artifact style (writing voice, wording, structure, format, visuals). judgment_preference: decision/process rules. personality: stable collaboration style; Agent-inferred stays pending.'
110
- };
111
- const sourceApplication = {
112
- type: ['string', 'null'],
113
- enum: ['codex', 'claude', 'claude_code', 'cursor', 'kiro', 'other', null]
114
- };
115
- const epistemicFields = {
116
- originQuadrant: epistemicQuadrant,
117
- currentQuadrant: epistemicQuadrant,
118
- epistemicStatus,
119
- confirmationStatus,
120
- confirmationBasis,
121
- reasoningSummary: {
122
- ...nullableStringSchema(),
123
- description: 'Required and nonempty whenever originQuadrant is not known_known. Explain how the item became known; omitting it rejects the whole batch.'
124
- },
125
- profileAspect,
126
- inheritanceMode,
127
- inheritedProjectIds: arraySchema(id, { maxItems: 32 })
128
- };
129
-
130
- // rec#5 C8-4: once one of them is marked outdated, the conclusion is no longer current.
131
- const derivedFrom = { ...arraySchema(id, { maxItems: 8 }), description: 'Current item IDs this concludes from.' };
132
-
133
- const entity = objectSchema({
134
- key: id,
135
- name: label,
136
- type: { ...boundedString(64), pattern: '^[A-Za-z][A-Za-z0-9_]*$' },
137
- summary: boundedString(4096),
138
- ...epistemicFields,
139
- derivedFrom,
140
- attributes: entityAttributes
141
- }, [
142
- 'key', 'name', 'type', 'originQuadrant',
143
- 'confirmationStatus', 'confirmationBasis'
144
- ]);
145
-
146
- const relationship = objectSchema({
147
- key: id,
148
- source: id,
149
- target: id,
150
- type: { ...boundedString(64), pattern: '^[A-Z][A-Z0-9_]*$' },
151
- fact: longText,
152
- validAt: nullableStringSchema(),
153
- invalidAt: nullableStringSchema(),
154
- supersedes: arraySchema(id, { maxItems: 32 }),
155
- confidence: numberSchema({ minimum: 0, maximum: 1 }),
156
- ...epistemicFields,
157
- derivedFrom,
158
- attributes
159
- }, [
160
- 'key', 'source', 'target', 'type', 'fact', 'originQuadrant',
161
- 'confirmationStatus', 'confirmationBasis'
162
- ]);
163
-
164
- const projectSource = objectSchema({
165
- key: boundedString(128),
166
- kind: enumSchema([
167
- 'prd', 'product_document', 'technical_document', 'frontend_repository',
168
- 'backend_repository', 'repository', 'design', 'runbook', 'monitoring',
169
- 'issue_tracker', 'other'
170
- ]),
171
- title: label,
172
- uri: nullableStringSchema(),
173
- summary: nullableStringSchema(),
174
- sensitivity: enumSchema(['normal', 'private', 'restricted'])
175
- }, ['key', 'kind', 'title']);
176
-
177
- const assessmentDimension = objectSchema({
178
- key: boundedString(128),
179
- label: boundedString(256),
180
- score: integerSchema({ minimum: 0, maximum: 100 }),
181
- state: enumSchema(['confirmed', 'inferred']),
182
- evidence: arraySchema(shortText, { maxItems: 32 })
183
- }, ['key', 'label', 'score', 'state']);
184
-
185
- const projectAssessment = objectSchema({
186
- score: integerSchema({ minimum: 0, maximum: 100 }),
187
- label: enumSchema(['needs_clarification', 'partially_documented', 'well_documented']),
188
- confirmed: arraySchema(shortText, { maxItems: 64 }),
189
- inferred: arraySchema(shortText, { maxItems: 64 }),
190
- dimensions: arraySchema(assessmentDimension, { maxItems: 16 }),
191
- analyzedAt: dateTime
192
- }, ['score', 'label', 'confirmed', 'inferred', 'dimensions', 'analyzedAt']);
193
-
194
- const projectProfile = objectSchema({
195
- name: boundedString(160),
196
- purpose: nullableStringSchema(),
197
- scope: nullableStringSchema(),
198
- technicalSummary: nullableStringSchema(),
199
- lifecycle: enumSchema(['planned', 'active', 'maintenance', 'archived']),
200
- sources: arraySchema(projectSource, { maxItems: 64 }),
201
- boundaries: arraySchema(shortText, { maxItems: 64 }),
202
- assessment: { ...projectAssessment, type: ['object', 'null'] }
203
- }, ['name']);
204
-
205
-
206
- const personalProjectActionIntent = {
207
- personalSpaceId: id,
208
- itemKind: enumSchema(['entity']),
209
- itemId: id,
210
- mode: enumSchema(['create', 'existing']),
211
- targetProjectId: nullableStringSchema(),
212
- newProjectId: nullableStringSchema(),
213
- newProjectName: nullableStringSchema(),
214
- newProjectPurpose: nullableStringSchema(),
215
- keepSourceRelation: booleanSchema(),
216
- relationType: projectRelationType,
217
- conflictResolution: knowledgeConflictResolution,
218
- reason: shortText
219
- };
220
- const personalProjectActionRequired = [
221
- 'personalSpaceId', 'itemKind', 'itemId', 'mode', 'reason'
222
- ];
223
- const commonKnowledgePromotionIntent = {
224
- personalSpaceId: id,
225
- parentProjectId: id,
226
- itemKind: knowledgeItemKind,
227
- canonicalItemId: id,
228
- duplicateItemIds: arraySchema(id, { minItems: 1, maxItems: 31 }),
229
- reason: boundedString(2000),
230
- humanConfirmationReason: boundedString(2000)
231
- };
232
- const commonKnowledgePromotionRequired = [
233
- 'personalSpaceId', 'parentProjectId', 'itemKind', 'canonicalItemId',
234
- 'duplicateItemIds', 'reason', 'humanConfirmationReason'
235
- ];
236
- const personalGlobalPreferenceDecisionIntent = {
237
- personalSpaceId: id,
238
- candidateId: {
239
- ...boundedString(64),
240
- pattern: '^personal-global-[a-f0-9]{20}$'
241
- },
242
- candidateVersion: {
243
- ...boundedString(32),
244
- pattern: '^v1:[a-f0-9]{24}$'
245
- },
246
- decisionRevision: integerSchema({ minimum: 0 }),
247
- decision: enumSchema(['approve', 'reject']),
248
- sourceItems: arraySchema(objectSchema({
249
- itemId: id,
250
- itemKind: knowledgeItemKind,
251
- projectId: id
252
- }, ['itemId', 'itemKind', 'projectId']), { minItems: 2, maxItems: 32 }),
253
- preferenceKey: boundedString(512),
254
- targetScope: enumSchema(['parent_project', 'personal_global']),
255
- targetProjectId: nullableStringSchema(),
256
- profileAspect,
257
- globalTitle: { type: ['string', 'null'], minLength: 1, maxLength: 512 },
258
- globalInstruction: { type: ['string', 'null'], minLength: 1, maxLength: 8192 },
259
- humanConfirmationReason: boundedString(4096),
260
- confirmedAt: dateTime,
261
- sessionId: id,
262
- idempotencyKey: id
263
- };
264
- const personalGlobalPreferenceDecisionRequired = [
265
- 'personalSpaceId', 'candidateId', 'candidateVersion', 'decisionRevision',
266
- 'decision', 'sourceItems', 'preferenceKey', 'targetScope',
267
- 'targetProjectId', 'humanConfirmationReason',
268
- 'confirmedAt', 'sessionId', 'idempotencyKey'
269
- ];
270
- const captureEpisodeFields = {
271
- idempotencyKey: id,
272
- name: label,
273
- sourceKind: boundedString(128),
274
- sourceDescription: boundedString(1024),
275
- sourceUri,
276
- sourceApplication,
277
- sourceTurnId: { type: ['string', 'null'], minLength: 1, maxLength: 256 },
278
- sourceExcerpt: { type: ['string', 'null'], minLength: 1, maxLength: 2048 },
279
- referenceTime: dateTime,
280
- summary: longText,
281
- sensitivity: enumSchema(['normal', 'private', 'restricted']),
282
- entities: arraySchema(entity, { minItems: 1, maxItems: 128 }),
283
- relationships: arraySchema(relationship, { maxItems: 256 })
284
- };
285
- const captureEpisodeRequired = [
286
- 'idempotencyKey', 'name', 'sourceKind', 'sourceDescription',
287
- 'referenceTime', 'entities', 'relationships'
288
- ];
289
- const workflowObservedStep = objectSchema({
290
- actionId: id,
291
- name: label,
292
- summary: nullableStringSchema()
293
- }, ['actionId', 'name']);
294
-
12
+ import { TASK_ENTRY_DEFINITIONS } from './task-entry-definitions.js';
13
+ import { KNOWLEDGE_DEFINITIONS } from './knowledge-definitions.js';
14
+ import { KNOWLEDGE_SPACE_DEFINITIONS, PUBLIC_PROJECT_DEFINITIONS } from './project-space-definitions.js';
15
+ import { PROJECT_AGENT_TOOL_DEFINITIONS } from './project-agent-tool-definitions.js';
16
+ import { EXECUTOR_ROUTING_DEFINITIONS } from './executor-routing-definitions.js';
17
+ import { KNOWLEDGE_CURATION_DEFINITIONS } from './knowledge-curation-definitions.js';
18
+
19
+ // Every graph tool in tools/list order; the order is part of the bytes each
20
+ // session pays for (test/token-budget.test.js).
295
21
  export const GRAPH_TOOL_DEFINITIONS = [
296
22
  ...AGENT_ATTENTION_DEFINITIONS,
297
23
  ...AGENT_INTERFACE_DEFINITIONS,
@@ -300,1000 +26,15 @@ export const GRAPH_TOOL_DEFINITIONS = [
300
26
  ...JUDGMENT_TOOL_DEFINITIONS,
301
27
  ...MODEL_BACKEND_DEFINITIONS,
302
28
  ...AGENT_SCORE_CARD_DEFINITIONS,
303
- ...TASK_SCHEDULE_DEFINITIONS, ...TASK_RUN_DEFINITIONS,
29
+ ...TASK_SCHEDULE_DEFINITIONS,
30
+ ...TASK_RUN_DEFINITIONS,
31
+ ...STANDING_ASSIGNMENT_DEFINITIONS,
304
32
  ...TASK_PREFERENCE_DEFINITIONS,
305
- {
306
- name: 'begin_task_context',
307
- title: 'LIFECYCLE · Begin a Fuli-aware task',
308
- description: 'Supported Agent hooks call before the model processes a user prompt. Resolves the exact local project from projectPath and loads effective collaboration preferences. Uses taskPrompt transiently for bounded automatic recall of signaled stable prior facts, runbooks, URLs, decisions, releases, deployments, or authentication methods. Never stores or returns projectPath/taskPrompt. Inspect task_knowledge_recall before reasking stable context. Returns opaque taskContextToken and required agent_receipt; include agent_receipt.markdown unchanged exactly once in every final user-visible reply, including greetings/capture-disabled tasks. Fuli setup generates Claude Code/Codex UserPromptSubmit hook configuration and a Cursor task-entry adapter; configuration proves neither host loading, trust, nor execution. Use supplied hook context without repeating preference fallback. Cursor retrieves context through the Agent if its hook cannot inject it.',
309
- inputSchema: objectSchema({
310
- sessionId: id,
311
- turnId: id,
312
- workflow: boundedString(128),
313
- projectPath: boundedString(4096),
314
- personalProjectId: nullableStringSchema(),
315
- projectAgentId: nullableStringSchema(),
316
- workKind: boundedString(128),
317
- requiredCapabilities: arraySchema(boundedString(512), { maxItems: 16 }),
318
- taskPrompt: boundedString(8192)
319
- }, ['sessionId', 'projectPath'])
320
- },
321
- {
322
- name: 'checkpoint_task_knowledge',
323
- title: 'LIFECYCLE · Finish knowledge review',
324
- description: 'Record capture candidates or a meaningful task workLog once. Routine empty finishes follow entry checkpoint_guidance. Employees calling this tool supply a concise truthful workLog, even with retain_nothing. Memory changes include agentMemory with loaded revision and merged notes. capture_candidates is a bounded supported batch; proposals stay pending without valid human/source confirmation. retain_nothing skips knowledge capture. No transcripts, guesses, logs, credentials or disposable output. collaborators contains actual contributing Agent IDs only; unknown/inactive IDs are ignored. Copy returned agent_receipt.markdown unchanged.',
325
- inputSchema: objectSchema({
326
- taskContextToken: id,
327
- disposition: enumSchema(['capture_candidates', 'retain_nothing']),
328
- reason: boundedString(2000),
329
- workLog: objectSchema({
330
- status: enumSchema(['reported', 'completed', 'incomplete', 'failed', 'no_change']),
331
- summary: boundedString(2000)
332
- }, ['status', 'summary']),
333
- knowledgeUsage: { ...knowledgeUsageItems,
334
- description: 'Explicit material use only, including with retain_nothing. Atomically recorded with checkpoint preparation using the task token as taskId; retries replay the original receipt. Retrieval and automatic preference injection do not qualify. The existing Agent confirmation policy still applies.' },
335
- capture: objectSchema(captureEpisodeFields, captureEpisodeRequired),
336
- captureRouting: arraySchema(objectSchema({
337
- scope: enumSchema(['personal_global', 'current_project']),
338
- entityKeys: arraySchema(id, { minItems: 1, maxItems: 128 }),
339
- relationshipKeys: arraySchema(id, { maxItems: 256 }),
340
- sourceExcerpt: shortText
341
- }, ['scope', 'entityKeys', 'relationshipKeys']), { minItems: 1, maxItems: 2,
342
- description: 'Use with one capture. Partition every entity/relationship key exactly once into unique scopes; each scope needs an entity, and relationships stay with their endpoints. Shared episode metadata; optional sourceExcerpt overrides its evidence. Global requires preferences with explicit global evidence; project-limited preferences stay current_project, which requires the registered task project. Ask when scope is uncertain. All routed proposals remain pending; saved IDs open existing human confirmation.' }),
343
- agentMemory: objectSchema({
344
- expectedRevision: integerSchema({ minimum: 0 }),
345
- memory: workingMemorySchema
346
- }, ['expectedRevision', 'memory']),
347
- collaborators: arraySchema(boundedString(128), { maxItems: 16 }),
348
- ...checkpointCompactFields
349
- }, ['taskContextToken', 'disposition', 'reason'])
350
- },
351
- {
352
- name: 'verify_task_checkpoint',
353
- title: 'LIFECYCLE · Verify end-of-task review',
354
- description: 'Hook-facing read that returns a Claude Code Stop decision. It blocks stopping only when begin_task_context succeeded for the session and checkpoint_task_knowledge has not yet recorded capture_candidates or retain_nothing.',
355
- inputSchema: objectSchema({ sessionId: id }, ['sessionId'])
356
- },
357
- {
358
- name: 'get_collaboration_preferences',
359
- title: 'READ FIRST · Load task collaboration preferences',
360
- description: 'Without begin_task_context hook context, call this exact tool name at the start of every user task, before any other tool or answer; never substitute a project action. Skip when the entry hook supplied preferences. Set projectPath=current working directory and taskPrompt=current user request. Use the actual native sessionId only when supplied by the host or this turn’s Hook; never guess or use an MCP process ID. With sessionId and taskPrompt, creates a fresh durable task and taskContextToken for checkpoint_task_knowledge with truthful workLog; never treats a pending task as Hook-delivery proof. Without native sessionId or prompt, task_lifecycle=not_started: preferences remain available, checkpoint ownership unverified. Never reuse old tokens. Blocked transcript handoff stays unverified even after successful fallback checkpoint. Fuli uses projectPath/taskPrompt transiently, never stores or returns them; resolves one exact registered local project; performs bounded automatic recall only for requests signaling stable prior context. Inspect task_knowledge_recall before reasking a project fact or method. On miss, call search_current_project_knowledge with 1–4 focused action, artifact, target-system, or identifier queries; never use the full conversational request as the only query. Resolve only relevant deferred_conflicts first; apply effective_preferences before answers or tool arguments. For write tools, enforce preferences in the actual payload; the final answer is not compliance. Personal-global preferences always apply; conflicted, pending, invalid, ambiguous-project, unrelated-project items never auto-apply. Automatic injection is not usage evidence. personalProjectId is an explicit compatibility override. Before substantial implementation, use plan_agent_collaboration and follow divisionPlan with bounded worker briefs; small edits/command-only checks need no artificial split. Include returned agent_receipt.markdown unchanged exactly once in every final reply, including greetings/capture-disabled tasks; never reuse an earlier owner.',
361
- inputSchema: objectSchema({
362
- sessionId: id,
363
- projectPath: boundedString(4096),
364
- taskPrompt: boundedString(8192),
365
- personalProjectId: nullableStringSchema(),
366
- projectAgentId: nullableStringSchema(),
367
- workKind: boundedString(128),
368
- workflow: boundedString(128),
369
- requiredCapabilities: arraySchema(boundedString(512), { maxItems: 16 }),
370
- limit: integerSchema({ minimum: 1, maximum: 200 })
371
- }, ['projectPath'])
372
- },
373
- {
374
- name: 'get_user_taste_skill',
375
- title: 'READ · Generate the current user-taste Skill',
376
- description: 'Generate a bounded read-only user-taste Skill projection from effective personal preferences for the exact active project. Prior confirmed and explicitly agent-confirmed preferences inform task-specific recommendations, labeled with evidence status and scope. Preserves current-request and authoritative-constraint precedence; never overwrites user-authored taste Skills or promotes pending inferences. Call when UI, writing, product, architecture, code, or other judgment benefits from established user taste.',
377
- inputSchema: objectSchema({
378
- projectPath: boundedString(4096),
379
- taskPrompt: boundedString(8192),
380
- personalProjectId: nullableStringSchema(),
381
- limit: integerSchema({ minimum: 1, maximum: 200 })
382
- }, ['projectPath'])
383
- },
384
- {
385
- name: 'resolve_deferred_preference_conflict',
386
- description: 'Resolve one AI-deferred conflict from get_collaboration_preferences only when the current task needs that preference. Compare both confirmed sides with their evidence and current context before choosing. Updates effective knowledge, preserves revision history, and permanently marks prior conflict as resolved by AI. Use merge with canonical item and merged instruction, keep_left/keep_right to retain one side, or split_scope to move one side to an exact personal project. An FLA names projectAgentId and personalProjectId.',
387
- inputSchema: objectSchema({
388
- personalSpaceId: id, personalProjectId: nullableStringSchema(), projectAgentId: nullableStringSchema(),
389
- conflictId: boundedString(1024),
390
- resolution: enumSchema([
391
- 'merge', 'keep_left', 'keep_right', 'split_scope'
392
- ]),
393
- reason: shortText,
394
- canonicalItemId: nullableStringSchema(),
395
- mergedInstruction: nullableStringSchema(),
396
- splitItemId: nullableStringSchema(),
397
- splitProjectId: nullableStringSchema()
398
- }, ['personalSpaceId', 'conflictId', 'resolution', 'reason'])
399
- },
400
- {
401
- name: 'capture_session_knowledge',
402
- 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.',
403
- inputSchema: objectSchema({
404
- targetKind: {
405
- ...enumSchema(['personal', 'project']),
406
- 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.'
407
- },
408
- spaceId: {
409
- ...id,
410
- description: 'With targetKind "personal", the active personal space id. With targetKind "project", the team-shared project id.'
411
- },
412
- personalProjectId: {
413
- ...nullableStringSchema(),
414
- description: 'Local personal project scope. Only meaningful with targetKind "personal".'
415
- },
416
- projectAgentId: {
417
- ...nullableStringSchema(),
418
- 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.'
419
- },
420
- providerUrl: {
421
- ...nullableStringSchema(),
422
- description: 'Required with targetKind "project" and ignored for "personal".'
423
- },
424
- sessionId: id,
425
- ...captureEpisodeFields
426
- }, [
427
- 'targetKind', 'spaceId', 'sessionId', ...captureEpisodeRequired
428
- ])
429
- },
430
- {
431
- name: 'record_workflow_transition_observation',
432
- title: 'WRITE · Observe one completed workflow transition',
433
- 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.',
434
- inputSchema: objectSchema({
435
- personalSpaceId: id,
436
- personalProjectId: nullableStringSchema(),
437
- fromStep: workflowObservedStep,
438
- toStep: workflowObservedStep,
439
- workflowKey: id,
440
- condition: attributes,
441
- evidenceSummary: shortText,
442
- sourceApplication,
443
- sourceTurnId: { type: ['string', 'null'], minLength: 1, maxLength: 256 },
444
- sensitivity: enumSchema(['normal', 'private', 'restricted'])
445
- }, [
446
- 'personalSpaceId', 'fromStep', 'toStep', 'workflowKey', 'evidenceSummary'
447
- ])
448
- },
449
- {
450
- name: 'record_decision_trace',
451
- title: 'WRITE · Store a decision with its rationale',
452
- 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.',
453
- inputSchema: objectSchema({
454
- personalSpaceId: id,
455
- personalProjectId: nullableStringSchema(),
456
- sessionId: id,
457
- idempotencyKey: id,
458
- decisionKey: id,
459
- title: label,
460
- question: shortText,
461
- selectedOption: objectSchema({
462
- key: id,
463
- label,
464
- summary: nullableStringSchema()
465
- }, ['key', 'label']),
466
- rejectedOptions: arraySchema(objectSchema({
467
- key: id,
468
- label,
469
- summary: nullableStringSchema()
470
- }, ['key', 'label']), { maxItems: 16 }),
471
- reason: boundedString(4096),
472
- validationResults: arraySchema(objectSchema({
473
- key: id,
474
- outcome: enumSchema(['pass', 'fail', 'inconclusive']),
475
- summary: shortText
476
- }, ['key', 'outcome', 'summary']), { maxItems: 16 }),
477
- decidedBy: decisionActor,
478
- referenceTime: dateTime,
479
- sourceKind: boundedString(128),
480
- sourceDescription: boundedString(1024),
481
- sourceUri,
482
- sourceApplication,
483
- sourceTurnId: { type: ['string', 'null'], minLength: 1, maxLength: 256 },
484
- sensitivity: enumSchema(['normal', 'private', 'restricted'])
485
- }, [
486
- 'personalSpaceId', 'sessionId', 'idempotencyKey', 'decisionKey',
487
- 'title', 'question', 'selectedOption', 'reason', 'decidedBy',
488
- 'referenceTime', 'sourceKind', 'sourceDescription'
489
- ])
490
- },
491
- {
492
- name: 'search_knowledge_graph',
493
- title: 'READ · Search the scoped knowledge graph',
494
- 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.',
495
- inputSchema: objectSchema({
496
- personalSpaceId: id,
497
- query: shortText,
498
- personalProjectId: nullableStringSchema(),
499
- projectAgentId: nullableStringSchema(),
500
- contextPersonalProjectIds: arraySchema(id, { maxItems: 15 }),
501
- personalProjectScope: enumSchema(['bounded', 'all_local_confirmed']),
502
- projectIds: arraySchema(id, { maxItems: 32 }),
503
- cursor: boundedString(128),
504
- limit: integerSchema({ minimum: 1, maximum: 100 }),
505
- includeHistorical: booleanSchema(),
506
- includePending: booleanSchema()
507
- }, ['personalSpaceId', 'query'])
508
- },
509
- {
510
- name: 'search_connected_knowledge',
511
- title: 'READ · Search personal, public, and third-party knowledge',
512
- 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.',
513
- inputSchema: objectSchema({
514
- personalSpaceId: id,
515
- personalProjectId: id,
516
- query: shortText,
517
- contextPersonalProjectIds: arraySchema(id, { maxItems: 15 }),
518
- personalProjectScope: enumSchema(['bounded', 'all_local_confirmed']),
519
- projectIds: arraySchema(id, { maxItems: 32 }),
520
- limit: integerSchema({ minimum: 1, maximum: 100 }),
521
- includeHistorical: booleanSchema(),
522
- includePending: booleanSchema()
523
- }, ['personalSpaceId', 'personalProjectId', 'query'])
524
- },
525
- KNOWLEDGE_USAGE_DEFINITION,
526
- ...KNOWLEDGE_TAG_DEFINITIONS,
527
- {
528
- name: 'record_knowledge_feedback',
529
- title: 'WRITE · Record negative knowledge evidence',
530
- 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.',
531
- inputSchema: objectSchema({
532
- personalSpaceId: id,
533
- taskId: id,
534
- sessionId: nullableStringSchema(),
535
- taskContextToken: id,
536
- toolName: nullableStringSchema(),
537
- items: arraySchema(objectSchema({
538
- itemId: id,
539
- itemKind: knowledgeItemKind,
540
- feedbackKind: enumSchema([
541
- 'rejected', 'validation_failed', 'contradicted', 'outdated'
542
- ]),
543
- reason: boundedString(2000),
544
- evidenceSummary: boundedString(4096),
545
- reportedByKind: enumSchema([
546
- 'user', 'agent', 'authoritative_source'
547
- ]),
548
- sourceUri
549
- }, [
550
- 'itemId', 'itemKind', 'feedbackKind', 'reason',
551
- 'evidenceSummary', 'reportedByKind'
552
- ]), { minItems: 1, maxItems: 200 })
553
- }, ['personalSpaceId', 'taskId', 'items'])
554
- },
555
- {
556
- name: 'search_current_project_knowledge',
557
- title: 'READ · Search current project and its knowledge sources',
558
- 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.',
559
- inputSchema: objectSchema({
560
- projectPath: boundedString(4096),
561
- personalProjectId: nullableStringSchema(),
562
- queries: arraySchema(shortText, { minItems: 1, maxItems: 10 }),
563
- cursor: boundedString(128),
564
- limitPerQuery: integerSchema({ minimum: 1, maximum: 50 }),
565
- includeHistorical: booleanSchema(),
566
- includePending: booleanSchema()
567
- }, ['projectPath', 'queries'])
568
- },
569
- {
570
- name: 'discover_common_knowledge_candidates',
571
- title: 'READ · Find possible parent-project knowledge',
572
- 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.',
573
- inputSchema: objectSchema({
574
- personalSpaceId: id,
575
- parentProjectId: id,
576
- query: shortText,
577
- minChildProjects: integerSchema({ minimum: 2, maximum: 32 }),
578
- similarityThreshold: numberSchema({ minimum: 0, maximum: 1 }),
579
- limitPerProject: integerSchema({ minimum: 1, maximum: 50 })
580
- }, ['personalSpaceId', 'parentProjectId', 'query'])
581
- },
582
- {
583
- name: 'discover_personal_global_preference_candidates',
584
- title: 'READ · Find possible personal-global preferences',
585
- 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.',
586
- inputSchema: objectSchema({
587
- personalSpaceId: id,
588
- personalProjectIds: arraySchema(id, { minItems: 2, maxItems: 32 }),
589
- query: shortText,
590
- minProjects: integerSchema({ minimum: 2, maximum: 32 }),
591
- similarityThreshold: numberSchema({ minimum: 0, maximum: 1 }),
592
- limitPerProject: integerSchema({ minimum: 1, maximum: 50 })
593
- }, ['personalSpaceId', 'personalProjectIds', 'query'])
594
- },
595
- {
596
- name: 'preview_personal_global_preference_decision',
597
- title: 'READ · Inspect a version-bound scope decision',
598
- 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.',
599
- inputSchema: objectSchema(
600
- personalGlobalPreferenceDecisionIntent,
601
- personalGlobalPreferenceDecisionRequired
602
- )
603
- },
604
- {
605
- name: 'preview_common_knowledge_promotion',
606
- title: 'CONFIRM · Preview parent-project promotion',
607
- 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.',
608
- inputSchema: objectSchema(
609
- commonKnowledgePromotionIntent,
610
- commonKnowledgePromotionRequired
611
- )
612
- },
613
- {
614
- name: 'apply_common_knowledge_promotion',
615
- title: 'WRITE · Atomically promote parent knowledge',
616
- 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.',
617
- inputSchema: objectSchema({
618
- ...commonKnowledgePromotionIntent,
619
- previewToken: id
620
- }, [...commonKnowledgePromotionRequired, 'previewToken'])
621
- },
622
- {
623
- name: 'get_knowledge_graph',
624
- 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.',
625
- inputSchema: objectSchema({
626
- spaceId: id,
627
- providerUrl: nullableStringSchema(),
628
- personalProjectId: nullableStringSchema(), projectAgentId: nullableStringSchema(),
629
- limit: integerSchema({ minimum: 1, maximum: 2000 })
630
- }, ['spaceId'])
631
- },
632
- {
633
- name: 'search_human_knowledge_changes',
634
- 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.',
635
- inputSchema: objectSchema({
636
- personalSpaceId: id,
637
- query: shortText,
638
- status: humanChangeStatus,
639
- limit: integerSchema({ minimum: 1, maximum: 200 })
640
- }, ['personalSpaceId'])
641
- },
642
- {
643
- name: 'review_human_knowledge_change',
644
- 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.',
645
- inputSchema: objectSchema({
646
- personalSpaceId: id,
647
- itemKind: knowledgeItemKind,
648
- itemId: id,
649
- humanChangeVersion: integerSchema({ minimum: 1 }),
650
- conflictCheck: enumSchema(['no_conflict', 'conflict']),
651
- classificationCheck: enumSchema(['reasonable', 'needs_change']),
652
- note: boundedString(2000)
653
- }, [
654
- 'personalSpaceId', 'itemKind', 'itemId', 'humanChangeVersion',
655
- 'conflictCheck', 'classificationCheck', 'note'
656
- ])
657
- },
658
- {
659
- name: 'list_knowledge_spaces',
660
- description: 'List the active personal space, accessible team-shared projects, and current subscriptions.',
661
- inputSchema: objectSchema({})
662
- },
663
- {
664
- name: 'upsert_personal_project',
665
- 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.',
666
- inputSchema: objectSchema({
667
- personalSpaceId: id,
668
- projectId: boundedString(128),
669
- profile: projectProfile,
670
- createOnly: { type: 'boolean', description: 'When true, fail with 409 instead of replacing an existing project with this projectId.' }
671
- }, ['personalSpaceId', 'projectId', 'profile'])
672
- },
673
- {
674
- name: 'list_personal_projects',
675
- description: 'List local personal project profiles and their current evidence-backed coverage summaries.',
676
- inputSchema: objectSchema({ personalSpaceId: id })
677
- },
678
- {
679
- name: 'upsert_project_agent',
680
- title: 'WRITE · Create or update a project Agent',
681
- 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.',
682
- inputSchema: objectSchema({
683
- personalSpaceId: id,
684
- personalProjectId: nullableStringSchema(),
685
- agentId: boundedString(128),
686
- profile: projectAgentProfile,
687
- occupation: projectAgentOccupation
688
- }, ['personalSpaceId', 'agentId', 'profile'])
689
- },
690
- {
691
- name: 'list_project_agents',
692
- title: 'READ · Find project Agents by responsibility',
693
- 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.',
694
- inputSchema: objectSchema({
695
- projectPath: boundedString(4096),
696
- personalProjectId: {
697
- ...nullableStringSchema(), minLength: 1, maxLength: 128,
698
- description: 'Explicit existing project ID when the directory has no exact match. A conflicting exact path match is rejected.'
699
- },
700
- status: nullableProjectAgentStatus,
701
- capability: nullableStringSchema()
702
- }, ['projectPath'])
703
- },
704
- {
705
- name: 'get_project_agent_context',
706
- title: 'READ · Assemble one project Agent context',
707
- 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.',
708
- inputSchema: objectSchema({
709
- projectPath: boundedString(4096),
710
- personalProjectId: {
711
- ...nullableStringSchema(), minLength: 1, maxLength: 128,
712
- description: 'Explicit existing project ID when the directory has no exact match. A conflicting exact path match is rejected.'
713
- },
714
- agentId: boundedString(128),
715
- queries: arraySchema(shortText, { minItems: 1, maxItems: 10 }),
716
- limitPerQuery: integerSchema({ minimum: 1, maximum: 50 }),
717
- includePending: booleanSchema()
718
- }, ['projectPath', 'agentId', 'queries'])
719
- },
720
- {
721
- name: 'get_project_agent',
722
- title: 'READ · Get one space-level Agent',
723
- 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.',
724
- inputSchema: objectSchema({
725
- personalSpaceId: id,
726
- personalProjectId: nullableStringSchema(),
727
- agentId: id
728
- }, ['personalSpaceId', 'agentId'])
729
- },
730
- ...PROJECT_AGENT_MEMORY_DEFINITIONS,
731
- ...AGENT_CONVERSATION_DEFINITIONS,
732
- ...AGENT_COLLABORATION_DEFINITIONS,
733
- ...AGENT_DISMISSAL_DEFINITIONS,
734
- {
735
- name: 'cleanup_test_project_agents',
736
- title: 'WRITE · Archive test Agent roles',
737
- 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.',
738
- inputSchema: objectSchema({
739
- personalSpaceId: id,
740
- testSource: boundedString(256)
741
- }, ['personalSpaceId', 'testSource'])
742
- },
743
- {
744
- name: 'create_project_agent_assignment',
745
- title: 'WRITE · Assign an Agent to a project',
746
- 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.',
747
- inputSchema: projectAgentAssignmentInput
748
- },
749
- {
750
- name: 'list_project_agent_assignments',
751
- title: 'READ · List Agent assignments',
752
- description: 'List project-Agent assignments and their full active/ended history. Never infer a runtime connection from assignment status.',
753
- inputSchema: objectSchema({
754
- personalSpaceId: id,
755
- personalProjectId: nullableStringSchema(),
756
- agentId: nullableStringSchema(),
757
- status: { ...projectAgentAssignmentStatus, type: ['string', 'null'] }
758
- }, ['personalSpaceId'])
759
- },
760
- {
761
- name: 'end_project_agent_assignment',
762
- title: 'WRITE · End an Agent assignment',
763
- description: 'End one project-Agent assignment with an expected revision. Stale revisions are rejected; the Agent and task history remain intact.',
764
- inputSchema: projectAgentAssignmentEndInput
765
- },
766
- {
767
- name: 'replace_project_agent_assignment',
768
- title: 'WRITE · Replace an Agent assignment',
769
- description: 'Atomically end one assignment and create its replacement, preserving replacement history and explicit reason.',
770
- inputSchema: projectAgentAssignmentReplaceInput
771
- },
772
- {
773
- name: 'coordinate_project_agent_task',
774
- title: 'WRITE · Prepare a host-executed Agent team',
775
- 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.',
776
- inputSchema: projectAgentTaskCoordinateInput
777
- },
778
- {
779
- name: 'acquire_runtime_lease',
780
- title: 'WRITE · Keep adaptive runtime awake',
781
- 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.',
782
- inputSchema: objectSchema({
783
- kind: enumSchema(['graph', 'executor']),
784
- executorId: nullableStringSchema(),
785
- owner: boundedString(256)
786
- }, ['kind', 'owner'])
787
- },
788
- {
789
- name: 'refresh_runtime_lease',
790
- title: 'WRITE · Refresh adaptive runtime lease',
791
- description: 'Explicitly refresh one lease owned by this MCP process. Automatic heartbeat normally makes this unnecessary; a missing or expired handle returns refreshed=false.',
792
- inputSchema: objectSchema({ leaseId: id }, ['leaseId'])
793
- },
794
- {
795
- name: 'release_runtime_lease',
796
- title: 'WRITE · Release adaptive runtime lease',
797
- description: 'Stop the heartbeat and release one host-held adaptive-runtime lease in a finally path. Repeated release is safe and returns released=false.',
798
- inputSchema: objectSchema({ leaseId: id }, ['leaseId'])
799
- },
800
- {
801
- name: 'submit_project_agent_task',
802
- title: 'WRITE · Submit a routed Agent task',
803
- 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.',
804
- inputSchema: projectAgentTaskSubmitInput
805
- },
806
- {
807
- name: 'view_project_agent_task',
808
- title: 'READ · View task, routing, and events',
809
- 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.',
810
- inputSchema: objectSchema({
811
- personalSpaceId: id,
812
- personalProjectId: id,
813
- taskId: id,
814
- includeEvents: booleanSchema()
815
- }, ['personalSpaceId', 'taskId'])
816
- },
817
- {
818
- name: 'record_project_agent_task_activity',
819
- title: 'WRITE · Record task activity',
820
- 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.',
821
- inputSchema: projectAgentTaskActivityInput
822
- },
823
- {
824
- name: 'view_project_agent_activity',
825
- title: 'READ · View Agent terminal activity',
826
- 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.',
827
- inputSchema: objectSchema({
828
- personalSpaceId: id,
829
- personalProjectId: id,
830
- agentId: id,
831
- fromDate: nullableStringSchema(),
832
- toDate: nullableStringSchema()
833
- }, ['personalSpaceId', 'agentId'])
834
- },
835
- {
836
- name: 'get_project_agent_coordination_policy',
837
- title: 'READ · Get project Agent continuity policy',
838
- description: 'Read project policy, membership, sub-teams and threshold.',
839
- inputSchema: objectSchema({
840
- personalSpaceId: id,
841
- personalProjectId: id
842
- }, ['personalSpaceId', 'personalProjectId'])
843
- },
844
- {
845
- name: 'get_project_team',
846
- title: 'READ · Get project team',
847
- description: 'Read active team, sub-teams, collaborators, peers, reporting lines and unavailable roles; no private memory.',
848
- inputSchema: objectSchema({
849
- personalSpaceId: id,
850
- personalProjectId: id
851
- }, ['personalSpaceId', 'personalProjectId'])
852
- },
853
- {
854
- name: 'update_project_agent_coordination_policy',
855
- title: 'WRITE · Set project Agent continuity policy',
856
- 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.',
857
- inputSchema: objectSchema({
858
- personalSpaceId: id,
859
- personalProjectId: id,
860
- askBeforeRecruitment: booleanSchema(),
861
- autoReusePreviousAgent: booleanSchema(),
862
- autoGrowTeam: booleanSchema(),
863
- teamLeadAgentId: nullableStringSchema(),
864
- teamMemberAgentIds: arraySchema(id, { maxItems: 32, uniqueItems: true }),
865
- subTeams: arraySchema(objectSchema({ id, name: stringSchema({ minLength: 1, maxLength: 120 }), leadAgentId: id,
866
- memberAgentIds: arraySchema(id, { maxItems: 32, uniqueItems: true }) }, ['id', 'name', 'leadAgentId', 'memberAgentIds']), { maxItems: 32 }),
867
- subTeamSuggestionThreshold: integerSchema({ minimum: 1, maximum: 32 }),
868
- expectedUpdatedAt: { ...dateTime, type: ['string', 'null'] }
869
- }, [
870
- 'personalSpaceId', 'personalProjectId',
871
- 'askBeforeRecruitment', 'autoReusePreviousAgent'
872
- ])
873
- },
874
- {
875
- name: 'get_project_agent_recruitment_policy',
876
- title: 'READ · Get recruitment policy',
877
- 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.',
878
- inputSchema: objectSchema({ personalSpaceId: id }, ['personalSpaceId'])
879
- },
880
- {
881
- name: 'update_project_agent_recruitment_policy',
882
- title: 'WRITE · Set recruitment policy',
883
- 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.',
884
- inputSchema: objectSchema({
885
- personalSpaceId: id,
886
- confirmationMode: recruitmentConfirmationMode
887
- }, ['personalSpaceId', 'confirmationMode'])
888
- },
889
- {
890
- name: 'list_project_agent_recruitments',
891
- title: 'READ · List recruitment records',
892
- description: 'List auditable AR recruitment records with trigger client/session, role, capabilities, position kind, reason, status, and created/recruited Agent.',
893
- inputSchema: objectSchema({
894
- personalSpaceId: id,
895
- personalProjectId: nullableStringSchema(),
896
- taskId: nullableStringSchema(),
897
- status: { ...recruitmentStatus, type: ['string', 'null'] }
898
- }, ['personalSpaceId'])
899
- },
900
- {
901
- name: 'decide_project_agent_recruitment',
902
- title: 'WRITE · Approve or cancel recruitment',
903
- 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.',
904
- inputSchema: objectSchema({
905
- personalSpaceId: id,
906
- personalProjectId: id,
907
- recruitmentId: id,
908
- expectedRevision: integerSchema({ minimum: 0 }),
909
- decision: recruitmentDecision,
910
- occupation: projectAgentOccupation,
911
- reason: shortText
912
- }, ['personalSpaceId', 'personalProjectId', 'recruitmentId', 'expectedRevision', 'decision', 'reason'])
913
- },
914
- {
915
- name: 'upsert_executor',
916
- title: 'WRITE · Register executor',
917
- description: 'Create or update one provider-neutral executor directory entry. Registration is configuration and authorization metadata; it does not claim the executor is connected or running.',
918
- inputSchema: executorProfile
919
- },
920
- {
921
- name: 'list_executors',
922
- title: 'READ · List executors',
923
- description: 'List executor directory entries with separate registration, permission, preflight, and health states. A connected field is returned only when the Provider has evidence; missing connected evidence stays absent.',
924
- inputSchema: objectSchema({
925
- personalSpaceId: id,
926
- capability: nullableStringSchema(),
927
- availableOnly: booleanSchema()
928
- }, ['personalSpaceId'])
929
- },
930
- {
931
- name: 'get_executor',
932
- title: 'READ · Get executor',
933
- description: 'Inspect one executor directory entry and its preflight/audit fields without probing or fabricating a live connection.',
934
- inputSchema: objectSchema({ personalSpaceId: id, executorId: id }, ['personalSpaceId', 'executorId'])
935
- },
936
- {
937
- name: 'delete_executor',
938
- title: 'WRITE · Archive executor',
939
- description: 'Archive one executor directory entry through the Provider while retaining routing and outcome audit history.',
940
- inputSchema: objectSchema({ personalSpaceId: id, executorId: id }, ['personalSpaceId', 'executorId'])
941
- },
942
- {
943
- name: 'preflight_executor',
944
- title: 'WRITE · Report executor preflight',
945
- description: 'Record a real executor preflight report. The Provider verifies workspace permission and at least one advertised model before marking preflight passed; this tool never invokes work or fabricates availability.',
946
- inputSchema: objectSchema({
947
- personalSpaceId: id,
948
- executorId: id,
949
- status: enumSchema(['passed', 'failed']),
950
- workspacePermission: booleanSchema(),
951
- capabilities: arraySchema(boundedString(512), { maxItems: 64 }),
952
- availableModels: arraySchema(executorModel, { maxItems: 64 }),
953
- reason: nullableStringSchema(),
954
- checkedAt: dateTime,
955
- idempotencyKey,
956
- sourceApplication,
957
- sourceSessionId: nullableStringSchema()
958
- }, ['personalSpaceId', 'executorId', 'status', 'workspacePermission', 'idempotencyKey', 'checkedAt'])
959
- },
960
- {
961
- name: 'authorize_executor',
962
- title: 'WRITE · Authorize executor workspace',
963
- description: 'Persist an explicit executor permission decision. Authorization is auditable metadata and does not claim the executor is connected or healthy.',
964
- inputSchema: objectSchema({
965
- personalSpaceId: id,
966
- executorId: id,
967
- status: executorAuthorizationStatus,
968
- reason: shortText,
969
- expectedRevision: integerSchema({ minimum: 0 }),
970
- idempotencyKey
971
- }, ['personalSpaceId', 'executorId', 'status', 'reason', 'idempotencyKey'])
972
- },
973
- {
974
- name: 'report_executor_health',
975
- title: 'WRITE · Report executor health',
976
- description: 'Record a real executor health observation with its timestamp and source. This does not fabricate a connection or execute work.',
977
- inputSchema: objectSchema({
978
- personalSpaceId: id,
979
- executorId: id,
980
- status: executorHealthStatus,
981
- reason: nullableStringSchema(),
982
- checkedAt: dateTime,
983
- idempotencyKey,
984
- sourceApplication,
985
- sourceSessionId: nullableStringSchema()
986
- }, ['personalSpaceId', 'executorId', 'status', 'checkedAt', 'idempotencyKey'])
987
- },
988
- {
989
- name: 'record_project_agent_executor_actual',
990
- title: 'WRITE · Report actual executor use',
991
- description: 'Record one real executor/model report after execution. The Provider rejects reports unless the executor is registered and the model was available in a passing preflight; Agent locked policy is checked before the report is accepted. Provider/model/client attribution is retained as audit evidence.',
992
- inputSchema: executorActualReportInput
993
- },
994
- {
995
- name: 'upsert_executor_routing_rule',
996
- title: 'WRITE · Configure executor routing rule',
997
- description: 'Create or update one explicit space, project, or task routing rule. Agent locked allow-lists outrank all other rules; user rules outrank coordinator rules; the default rule set is empty and no work-kind mapping is hardcoded.',
998
- inputSchema: executorRoutingRuleInput
999
- },
1000
- {
1001
- name: 'update_executor_routing_rule',
1002
- title: 'WRITE · Update executor routing rule',
1003
- description: 'Update one routing rule status with an expected revision. Existing task decisions and outcome evidence remain immutable.',
1004
- inputSchema: objectSchema({
1005
- personalSpaceId: id,
1006
- ruleId: id,
1007
- expectedRevision: integerSchema({ minimum: 0 }),
1008
- status: enumSchema(['active', 'disabled', 'ended']),
1009
- reason: shortText,
1010
- idempotencyKey
1011
- }, ['personalSpaceId', 'ruleId', 'expectedRevision', 'status', 'reason', 'idempotencyKey'])
1012
- },
1013
- {
1014
- name: 'list_executor_routing_rules',
1015
- title: 'READ · List executor routing rules',
1016
- description: 'List routing rules in explicit space → project → task scope order. Agent locked allow-lists outrank every scope; explicit user priority outranks coordinator defaults. The result includes source owner and actual fallback audit.',
1017
- inputSchema: objectSchema({
1018
- personalSpaceId: id,
1019
- scope: { ...routingRuleScope, type: ['string', 'null'] },
1020
- personalProjectId: nullableStringSchema(),
1021
- taskId: nullableStringSchema(),
1022
- status: {
1023
- type: ['string', 'null'],
1024
- enum: ['active', 'disabled', 'ended', null]
1025
- }
1026
- }, ['personalSpaceId'])
1027
- },
1028
- {
1029
- name: 'get_executor_routing_rule',
1030
- title: 'READ · Get routing rule',
1031
- description: 'Read one routing rule and its audit metadata without applying it locally.',
1032
- inputSchema: objectSchema({ personalSpaceId: id, ruleId: id }, ['personalSpaceId', 'ruleId'])
1033
- },
1034
- {
1035
- name: 'delete_executor_routing_rule',
1036
- title: 'WRITE · Remove routing rule',
1037
- description: 'Remove one explicit routing rule. Existing task decisions and outcome evidence remain immutable history.',
1038
- inputSchema: objectSchema({ personalSpaceId: id, ruleId: id }, ['personalSpaceId', 'ruleId'])
1039
- },
1040
- {
1041
- name: 'record_project_agent_task_outcome',
1042
- title: 'WRITE · Record explicit routing outcome evidence',
1043
- description: 'Record explicit user/test outcome evidence against a matching recorded execution. Use the task workKind and effective modelStrategy plus real referenceIds; a CLI session ID alone is not a recorded run. Terminal routing outcomes are already derived from valid task activity; do not submit them again. Never infer satisfaction or fabricate execution evidence to clear a validation error.',
1044
- inputSchema: projectAgentTaskOutcomeInput
1045
- },
1046
- {
1047
- name: 'list_project_agent_routing_learning',
1048
- title: 'READ · View routing-learning evidence',
1049
- description: 'List routing-learning evidence and flexible same-level tie-break weights with contribution, asOf, halfLife, and neutral/ignored status. Agent locked policy and explicit task/assignment/project/space priority always win; learning never overrides them or turns missing evidence into a preference.',
1050
- inputSchema: objectSchema({
1051
- personalSpaceId: id,
1052
- personalProjectId: nullableStringSchema(),
1053
- workKind: nullableStringSchema(),
1054
- agentId: nullableStringSchema(),
1055
- executorId: nullableStringSchema()
1056
- }, ['personalSpaceId'])
1057
- },
1058
- {
1059
- name: 'ignore_project_agent_routing_learning',
1060
- title: 'WRITE · Ignore routing-learning evidence',
1061
- description: 'Mark one routing-learning item ignored with an explicit reason; it remains auditable and cannot silently rewrite task history.',
1062
- inputSchema: objectSchema({
1063
- personalSpaceId: id,
1064
- personalProjectId: id,
1065
- agentId: id,
1066
- evidenceId: id,
1067
- idempotencyKey,
1068
- reason: shortText
1069
- }, ['personalSpaceId', 'personalProjectId', 'agentId', 'evidenceId', 'idempotencyKey', 'reason'])
1070
- },
1071
- {
1072
- name: 'reset_project_agent_routing_learning',
1073
- title: 'WRITE · Reset routing-learning weights',
1074
- description: 'Reset selected routing-learning evidence or scope through the Provider. Reset records remain auditable and do not change historical routing decisions.',
1075
- inputSchema: objectSchema({
1076
- personalSpaceId: id,
1077
- personalProjectId: id,
1078
- workKind: boundedString(128),
1079
- agentId: id,
1080
- executorId: id,
1081
- modelStrategy: projectAgentModelStrategy,
1082
- modelStrategyKey: nullableStringSchema(),
1083
- idempotencyKey,
1084
- resetAt: dateTime,
1085
- reason: shortText
1086
- }, ['personalSpaceId', 'personalProjectId', 'workKind', 'agentId', 'executorId', 'idempotencyKey', 'resetAt', 'reason'])
1087
- },
1088
- {
1089
- name: 'start_knowledge_review',
1090
- title: 'REVIEW · Start or resume personal knowledge review',
1091
- description: 'Start or resume the exact selected /flreview scope. A first review has no watermark and scans all in-scope history. A later review uses only the last completed run as its watermark; paused runs never advance it. Project scopes accept only local personal project IDs.',
1092
- inputSchema: objectSchema({
1093
- personalSpaceId: id,
1094
- scope: knowledgeReviewScope,
1095
- personalProjectId: nullableStringSchema()
1096
- }, ['personalSpaceId', 'scope'])
1097
- },
1098
- {
1099
- name: 'list_knowledge_review_candidates',
1100
- title: 'REVIEW · List ranked personal knowledge candidates',
1101
- description: 'List one bounded page for an active or paused review. Provider policy ranks new/changed knowledge, conflicts or attention, low-weight knowledge, then repeated cross-session patterns. Already decided items stay out of the current run. The page limit is not a total-question cap.',
1102
- inputSchema: objectSchema({
1103
- personalSpaceId: id,
1104
- reviewId: id,
1105
- limit: integerSchema({ minimum: 1, maximum: 50 })
1106
- }, ['personalSpaceId', 'reviewId'])
1107
- },
1108
- {
1109
- name: 'record_knowledge_review_progress',
1110
- title: 'WRITE · Record one review outcome',
1111
- description: 'Record one user-authorized candidate outcome after any required knowledge mutation succeeds. confirmed keeps the item, updated/invalidated follow successful writes, deferred carries it into the next review, and delegated_to_ai follows a successful current-quadrant change to unknown_unknown.',
1112
- inputSchema: objectSchema({
1113
- personalSpaceId: id,
1114
- reviewId: id,
1115
- candidateKey: {
1116
- ...boundedString(520),
1117
- pattern: '^(entity|relationship):.+'
1118
- },
1119
- outcome: enumSchema([
1120
- 'confirmed', 'updated', 'invalidated', 'deferred', 'delegated_to_ai'
1121
- ]),
1122
- note: nullableStringSchema()
1123
- }, ['personalSpaceId', 'reviewId', 'candidateKey', 'outcome'])
1124
- },
1125
- {
1126
- name: 'finish_knowledge_review',
1127
- title: 'WRITE · Pause or complete knowledge review',
1128
- description: 'Pause a review without moving its watermark, or complete it and establish the next run watermark. Use completed only when the selected scope is exhausted or the user explicitly finishes it.',
1129
- inputSchema: objectSchema({
1130
- personalSpaceId: id,
1131
- reviewId: id,
1132
- disposition: enumSchema(['paused', 'completed'])
1133
- }, ['personalSpaceId', 'reviewId', 'disposition'])
1134
- },
1135
- {
1136
- name: 'list_workflow_candidates',
1137
- title: 'READ · List learned workflow candidates',
1138
- description: 'Read persisted X-to-Y workflow candidates and their condition, explainable occurrence count, distinct-session count, recency, confirmation authority, negative evidence, declines, review status, and durable authorization. candidateVersion changes only when the rule definition changes; evidenceRevision tracks added or changed evidence; decisionRevision tracks review/authorization state transitions, including reset after a rule change. Rejected candidates and evidence remain in history. This read never executes a step or grants authority.',
1139
- inputSchema: objectSchema({
1140
- personalSpaceId: id,
1141
- personalProjectId: nullableStringSchema(),
1142
- afterStepKey: nullableStringSchema(),
1143
- limit: integerSchema({ minimum: 1, maximum: 100 })
1144
- }, ['personalSpaceId'])
1145
- },
1146
- {
1147
- name: 'recommend_next_workflow_steps',
1148
- title: 'READ · Recommend what to ask after a workflow step',
1149
- description: 'Read persisted candidates matching the completed source step. Provider weights only decide whether a candidate crosses the recommendation threshold; they never grant execution authority. A recommended but unapproved candidate returns ask_user and must not execute Y. Even a durable authorization never replaces per-call approval for high-risk send, delete, publish, payment, or external-write tools.',
1150
- inputSchema: objectSchema({
1151
- personalSpaceId: id,
1152
- personalProjectId: nullableStringSchema(),
1153
- afterStepKey: id,
1154
- limit: integerSchema({ minimum: 1, maximum: 100 })
1155
- }, ['personalSpaceId', 'afterStepKey'])
1156
- },
1157
- {
1158
- name: 'revise_personal_knowledge',
1159
- description: 'Confirm, correct (a new version supersedes the old), mark_outdated (negative feedback that ends validity), invalidate, restore, or link a replacement for one personal entity or relationship; history and evidence are kept. A replacement link needs an invalidated item and an exact replacement ID and kind. Same personal-only operation as the management UI; Agent attribution is kept.',
1160
- inputSchema: objectSchema({
1161
- personalSpaceId: id,
1162
- personalProjectId: nullableStringSchema(),
1163
- itemKind: knowledgeItemKind,
1164
- itemId: id,
1165
- action: enumSchema(['confirm', 'update', 'mark_outdated', 'invalidate', 'restore', 'link_replacement']),
1166
- replacementItemId: nullableStringSchema(),
1167
- replacementItemKind: knowledgeItemKind,
1168
- reason: shortText,
1169
- name: nullableStringSchema(),
1170
- summary: nullableStringSchema(),
1171
- fact: nullableStringSchema(),
1172
- originQuadrant: epistemicQuadrant,
1173
- currentQuadrant: epistemicQuadrant,
1174
- epistemicStatus,
1175
- confirmationStatus,
1176
- confirmationBasis,
1177
- reasoningSummary: nullableStringSchema(),
1178
- profileAspect,
1179
- inheritanceMode,
1180
- inheritedProjectIds: arraySchema(id, { maxItems: 32 })
1181
- }, ['personalSpaceId', 'itemKind', 'itemId', 'action', 'reason'])
1182
- },
1183
- {
1184
- name: 'reassign_personal_knowledge',
1185
- description: 'Move the primary project assignment of one personal knowledge item without rewriting its source episode or evidence. Personal-profile knowledge cannot be assigned to a project.',
1186
- inputSchema: objectSchema({
1187
- personalSpaceId: id,
1188
- itemKind: knowledgeItemKind,
1189
- itemId: id,
1190
- targetProjectId: boundedString(128),
1191
- reason: shortText
1192
- }, ['personalSpaceId', 'itemKind', 'itemId', 'targetProjectId', 'reason'])
1193
- },
1194
- {
1195
- name: 'preview_personal_project_action',
1196
- title: 'PREVIEW · Authorize a personal project write',
1197
- description: 'Required authorization step before apply_personal_project_action. Submit the complete intended write. For an existing project, it reports exact duplicates and confirmed same-name conflicts. A successful preview returns a short-lived, one-time previewToken bound to the exact action.',
1198
- inputSchema: objectSchema(
1199
- personalProjectActionIntent,
1200
- personalProjectActionRequired
1201
- )
1202
- },
1203
- {
1204
- name: 'apply_personal_project_action',
1205
- title: 'WRITE · Apply an authorized personal project action',
1206
- description: 'WRITE operation. Never call during preference loading, project detection, knowledge retrieval, or any read-only task. Create a private personal project from one entity or add the entity to an existing personal project only after preview_personal_project_action. Requires the matching, short-lived, one-time previewToken and rejects changed or replayed actions. Existing ownership and evidence are preserved through references; duplicates are reused and conflicts follow the explicit resolution.',
1207
- inputSchema: objectSchema({
1208
- ...personalProjectActionIntent,
1209
- previewToken: boundedString(256)
1210
- }, [...personalProjectActionRequired, 'previewToken'])
1211
- },
1212
- {
1213
- name: 'publish_personal_project',
1214
- 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.',
1215
- inputSchema: objectSchema({
1216
- personalSpaceId: id,
1217
- localProjectId: boundedString(128),
1218
- providerUrl: shortText,
1219
- releaseVersion: { ...boundedString(64), pattern: '^[0-9A-Za-z][0-9A-Za-z._-]*$' },
1220
- updateSummary: boundedString(4096)
1221
- }, [
1222
- 'personalSpaceId', 'localProjectId', 'providerUrl',
1223
- 'releaseVersion', 'updateSummary'
1224
- ])
1225
- },
1226
- {
1227
- name: 'list_project_releases',
1228
- description: 'List immutable public project releases including version, publisher, publication time, and update summary.',
1229
- inputSchema: objectSchema({
1230
- projectId: id,
1231
- providerUrl: shortText
1232
- }, ['projectId', 'providerUrl'])
1233
- },
1234
- ...projectRelationDefinitions({ id, shortText, projectRelationType }),
1235
- {
1236
- name: 'list_personal_review_queue',
1237
- description: 'List full structured knowledge drafts waiting in the local personal pre-review queue before any public submission.',
1238
- inputSchema: objectSchema({
1239
- personalSpaceId: id,
1240
- status: enumSchema(['pending', 'submitted', 'kept_personal', 'ignored'])
1241
- }, ['personalSpaceId'])
1242
- },
1243
- {
1244
- name: 'review_personal_draft',
1245
- 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.',
1246
- inputSchema: objectSchema({
1247
- draftId: id,
1248
- decision: enumSchema(['submit_public', 'keep_personal', 'ignore'])
1249
- }, ['draftId', 'decision'])
1250
- },
1251
- {
1252
- name: 'subscribe_public_project',
1253
- description: 'Subscribe the active personal graph to an accessible team-shared project.',
1254
- inputSchema: objectSchema({
1255
- personalSpaceId: id,
1256
- projectId: id,
1257
- providerUrl: shortText,
1258
- projectName: label
1259
- }, ['personalSpaceId', 'projectId', 'providerUrl', 'projectName'])
1260
- },
1261
- {
1262
- name: 'unsubscribe_public_project',
1263
- 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.',
1264
- inputSchema: objectSchema({
1265
- personalSpaceId: id,
1266
- projectId: id,
1267
- providerUrl: shortText
1268
- }, ['personalSpaceId', 'projectId', 'providerUrl'])
1269
- },
1270
- {
1271
- name: 'list_project_review_queue',
1272
- description: 'List pending structured knowledge proposals for a team-shared project. Maintainer role is required.',
1273
- inputSchema: objectSchema({
1274
- projectId: id,
1275
- providerUrl: shortText,
1276
- status: enumSchema(['pending', 'approved', 'rejected'])
1277
- }, ['projectId', 'providerUrl'])
1278
- },
1279
- {
1280
- name: 'review_project_proposal',
1281
- description: 'Approve or reject one team-shared project knowledge proposal. Maintainer role is required.',
1282
- inputSchema: objectSchema({
1283
- projectId: id,
1284
- providerUrl: shortText,
1285
- proposalId: id,
1286
- decision: enumSchema(['approve', 'reject']),
1287
- note: boundedString(2000)
1288
- }, ['projectId', 'providerUrl', 'proposalId', 'decision'])
1289
- },
1290
- {
1291
- name: 'get_graphiti_status',
1292
- description: 'Return health and storage mode for the personal and configured workspace providers.',
1293
- inputSchema: objectSchema({})
1294
- }
33
+ ...TASK_ENTRY_DEFINITIONS,
34
+ ...KNOWLEDGE_DEFINITIONS,
35
+ ...KNOWLEDGE_SPACE_DEFINITIONS,
36
+ ...PROJECT_AGENT_TOOL_DEFINITIONS,
37
+ ...EXECUTOR_ROUTING_DEFINITIONS,
38
+ ...KNOWLEDGE_CURATION_DEFINITIONS,
39
+ ...PUBLIC_PROJECT_DEFINITIONS
1295
40
  ];
1296
-
1297
- function boundedString(maxLength) {
1298
- return { ...stringSchema(), minLength: 1, maxLength };
1299
- }