fuli-context 0.22.1 → 0.23.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (365) hide show
  1. package/dist/web/assets/AboutPage-CRIF2M8n.js +1 -0
  2. package/dist/web/assets/AgentHand-Dp9TFS4q.js +1 -0
  3. package/dist/web/assets/AgentMentionCopy-BXOrsEWh.css +1 -0
  4. package/dist/web/assets/AgentMentionCopy-C7N92Shm.js +1 -0
  5. package/dist/web/assets/AgentName-CbsQ9vDy.js +1 -0
  6. package/dist/web/assets/{AgentProfilePage-MkP7Lgo6.css → AgentProfilePage-B_V-Dm8v.css} +1 -1
  7. package/dist/web/assets/AgentProfilePage-DOpq0b3j.js +2 -0
  8. package/dist/web/assets/AgentServicesPage-Dr9WU0f9.js +1 -0
  9. package/dist/web/assets/AgentWorkbench-CMoeT-BY.css +1 -0
  10. package/dist/web/assets/AgentWorkbench-DTWZFf1A.js +2 -0
  11. package/dist/web/assets/AgentsDirectoryPage-CxDOdNxT.js +1 -0
  12. package/dist/web/assets/{AgentsDirectoryPage-Cq1z926q.css → AgentsDirectoryPage-DjEfG9dC.css} +1 -1
  13. package/dist/web/assets/BackLink-ByRr21Sw.js +1 -0
  14. package/dist/web/assets/BoardMoveMenu-Bd1T62eA.js +1 -0
  15. package/dist/web/assets/CaptureChangePage-DyuSSSDE.js +1 -0
  16. package/dist/web/assets/Card-BD5ohuk8.js +1 -0
  17. package/dist/web/assets/CardHeader-DTVqXpsf.js +1 -0
  18. package/dist/web/assets/CardTitle-C5REIVlp.js +1 -0
  19. package/dist/web/assets/ConnectionsPage-CKruAjBF.js +1 -0
  20. package/dist/web/assets/CreateProjectDialog-D6JS3RtH.js +2 -0
  21. package/dist/web/assets/DataFormatPage-DNaogYjf.js +2 -0
  22. package/dist/web/assets/DialogFooter-C5AIwQ5R.js +1 -0
  23. package/dist/web/assets/EmployeeScopeDialog-Lmfos9SA.js +1 -0
  24. package/dist/web/assets/EmployeeTaskBoard-U3KmfQG3.js +3 -0
  25. package/dist/web/assets/EmployeeWorkbenchPage-O9DEMzLT.js +3 -0
  26. package/dist/web/assets/FieldDescription-_fuW5MBO.js +1 -0
  27. package/dist/web/assets/GrowthLoading--m-lSUeo.js +1 -0
  28. package/dist/web/assets/InboxPage-DmJfYzaK.js +4 -0
  29. package/dist/web/assets/Input-DqjML-Qy.js +1 -0
  30. package/dist/web/assets/KnowledgeHardDeleteSection-AFg1ybWc.js +1 -0
  31. package/dist/web/assets/KnowledgeItemEditPage-B29px-r0.js +1 -0
  32. package/dist/web/assets/KnowledgeItemSummaryCard-BhHet9HU.js +1 -0
  33. package/dist/web/assets/KnowledgeOrganizerPage-BfD42JmC.js +1 -0
  34. package/dist/web/assets/KnowledgePage-nbTejsvV.js +1 -0
  35. package/dist/web/assets/KnowledgePeek-ByakOiOO.js +2 -0
  36. package/dist/web/assets/{KnowledgePeek-DdxwAWYs.css → KnowledgePeek-CK2RKeRx.css} +1 -1
  37. package/dist/web/assets/KnowledgeTurnReceiptPage-B1fMTy2W.js +1 -0
  38. package/dist/web/assets/KnowledgeWorkspace-DCzwenHE.js +4 -0
  39. package/dist/web/assets/{KnowledgeWorkspace-CA8oxVht.css → KnowledgeWorkspace-j8xlGwtg.css} +1 -1
  40. package/dist/web/assets/Label-CufKLEgT.js +1 -0
  41. package/dist/web/assets/ModelSettingsPage-jQKn4MsB.js +1 -0
  42. package/dist/web/assets/NotFoundPage-B4KkZO2q.js +1 -0
  43. package/dist/web/assets/OccupationsPage-5Ja81Cfg.js +1 -0
  44. package/dist/web/assets/OverviewPage-C-K4KDNM.js +2 -0
  45. package/dist/web/assets/PersonalProfilePage-BVZ3WHmf.js +1 -0
  46. package/dist/web/assets/PersonalProjectsPage-C1J8Poj8.js +1 -0
  47. package/dist/web/assets/PopperContent-C-KMpRbF.js +1 -0
  48. package/dist/web/assets/Presence-B4aVQMT8.js +3 -0
  49. package/dist/web/assets/ProjectAgentDetailPage-B6bTOIhe.js +8 -0
  50. package/dist/web/assets/ProjectAgentDialog-CWuqScFD.js +5 -0
  51. package/dist/web/assets/ProjectAgentFirstTask-C7qzXCQ6.js +1 -0
  52. package/dist/web/assets/ProjectAgentsPage-BNtWbct5.js +1 -0
  53. package/dist/web/assets/ProjectAgentsPage-Bym-IM4-.css +1 -0
  54. package/dist/web/assets/ProjectJudgmentPolicy-L_plkldY.js +1 -0
  55. package/dist/web/assets/ProjectScopePicker-BXy07CHg.js +1 -0
  56. package/dist/web/assets/PublicProjectsPage-Cftk4zLX.js +1 -0
  57. package/dist/web/assets/RadioGroupItem-DoOqLMbZ.js +1 -0
  58. package/dist/web/assets/RoundtablesPage-RCtrPHxs.js +1 -0
  59. package/dist/web/assets/RovingFocusGroup-BeCLKMQA.js +1 -0
  60. package/dist/web/assets/RovingFocusItem-BN-h70s_.js +1 -0
  61. package/dist/web/assets/SessionMigrationPage-Dcjylswy.js +1 -0
  62. package/dist/web/assets/SessionRecordsPage-jrFse2a1.js +1 -0
  63. package/dist/web/assets/SettingsPage-BkHm8GV4.js +1 -0
  64. package/dist/web/assets/{SettingsPage-DpVeP2OZ.css → SettingsPage-BxAXf6EF.css} +1 -1
  65. package/dist/web/assets/SharedJefaReportPage-_KXsTVGF.js +1 -0
  66. package/dist/web/assets/Switch-BPAVVtqu.js +1 -0
  67. package/dist/web/assets/TableHeader-P9d7xF7t.js +1 -0
  68. package/dist/web/assets/TabsContent-Casnps6y.js +1 -0
  69. package/dist/web/assets/TabsTrigger-AQwqcZRn.js +1 -0
  70. package/dist/web/assets/TagVocabularyPage-CsDJkbU3.js +1 -0
  71. package/dist/web/assets/TaskBlockerClear-wqHV47Vx.js +1 -0
  72. package/dist/web/assets/TaskBlockerNotice-DJytDDst.js +1 -0
  73. package/dist/web/assets/TaskExecutionPlan-8dwc8_Jf.css +1 -0
  74. package/dist/web/assets/TaskExecutionPlan-BPnu-yfT.js +2 -0
  75. package/dist/web/assets/TaskReason-C5g8DpOy.js +1 -0
  76. package/dist/web/assets/Teleport-BV0XYmdS.js +1 -0
  77. package/dist/web/assets/TextField-C69MdaFy.js +1 -0
  78. package/dist/web/assets/Textarea-D1Kzx_7L.js +1 -0
  79. package/dist/web/assets/UiChip-BqOpp18Q.js +1 -0
  80. package/dist/web/assets/UiDialog-BAWkdfF-.js +1 -0
  81. package/dist/web/assets/UiDisclosure-mGmGItAv.js +1 -0
  82. package/dist/web/assets/UiIcon-BUYpKd4D.js +1 -0
  83. package/dist/web/assets/UiIconButton-CeiP7Vmj.js +1 -0
  84. package/dist/web/assets/UiNotice-BlznzX5i.js +1 -0
  85. package/dist/web/assets/UiSegmented-DlgYMxnc.js +1 -0
  86. package/dist/web/assets/UiSelect-BWViyott.js +1 -0
  87. package/dist/web/assets/UiWeight-DZwt7cIP.js +1 -0
  88. package/dist/web/assets/UnassignedConversationsPanel-DV2CpIdb.js +1 -0
  89. package/dist/web/assets/VirtualDirectoryList-D-3X_X7D.js +1 -0
  90. package/dist/web/assets/VisuallyHiddenInput-BjPsr2D4.js +1 -0
  91. package/dist/web/assets/Workbench3D-CVlnk7bc.js +2 -0
  92. package/dist/web/assets/_plugin-vue_export-helper-lED7mxHY.js +9 -0
  93. package/dist/web/assets/accordion-GR6gjqFY.js +1 -0
  94. package/dist/web/assets/agent-pins-D2cylMl0.js +1 -0
  95. package/dist/web/assets/{agent-profile.css_vue_type_style_index_0_src_true_lang-Cmz1y1IL.js → agent-profile.css_vue_type_style_index_0_src_true_lang-w5YilVWS.js} +1 -1
  96. package/dist/web/assets/{agent-roster-records-DVgD9i6q.js → agent-roster-records-DgWGHLHW.js} +1 -1
  97. package/dist/web/assets/agent-task-board-DCS97QK2.js +1 -0
  98. package/dist/web/assets/{agent-work-summary-CUMg6XKp.js → agent-work-summary-QPOQuybY.js} +1 -1
  99. package/dist/web/assets/{attach-closest-edge-BqQXNoAj.js → attach-closest-edge-B5hSH5Q1.js} +1 -1
  100. package/dist/web/assets/{attention-store-C0D-sZNV.js → attention-store-DKza0N1e.js} +1 -1
  101. package/dist/web/assets/badge-CG2m9xwC.js +1 -0
  102. package/dist/web/assets/button-CZBMEiSm.js +1 -0
  103. package/dist/web/assets/checkbox-3VSDPUJw.js +1 -0
  104. package/dist/web/assets/{client-BgxDxCVo.js → client-Dwnwq6uu.js} +1 -1
  105. package/dist/web/assets/{client-links-store-BoDDNO2M.js → client-links-store-DG6AhNPP.js} +1 -1
  106. package/dist/web/assets/console-ny5TvCWK.js +1 -0
  107. package/dist/web/assets/conversation-launcher-settings-Ds-piWNR.js +1 -0
  108. package/dist/web/assets/{design-lab-B-njEjVo.js → design-lab-DrVlcS2x.js} +1 -1
  109. package/dist/web/assets/dialog-C3x9ziBB.js +1 -0
  110. package/dist/web/assets/dist-CB11Zet2.js +1 -0
  111. package/dist/web/assets/dropdown-menu-Cdtg4lAd.js +1 -0
  112. package/dist/web/assets/field-DMSD3CwL.js +1 -0
  113. package/dist/web/assets/{identity-IcZw_zYG.js → identity-DI_OdSEg.js} +1 -1
  114. package/dist/web/assets/index-B5zVxSJb.css +1 -0
  115. package/dist/web/assets/index-S0AnueS1.js +2 -0
  116. package/dist/web/assets/is-equal-8VOV02sH.js +1 -0
  117. package/dist/web/assets/{judgment-api-ldtIv-Jc.js → judgment-api-CwnpLQOf.js} +1 -1
  118. package/dist/web/assets/label-table-vGnKmYm3.js +1 -0
  119. package/dist/web/assets/{model-DvzuuyNk.js → model-BOXKOC62.js} +1 -1
  120. package/dist/web/assets/{model-mDDN02UJ.js → model-BlAV3okF.js} +1 -1
  121. package/dist/web/assets/{model-D2VmKHYm.js → model-C7hgak_o.js} +1 -1
  122. package/dist/web/assets/{model-2gNC7xGH.js → model-CmYu_CSs.js} +1 -1
  123. package/dist/web/assets/{model-DL29Qg9K.js → model-DSSYQ-i_.js} +1 -1
  124. package/dist/web/assets/{model-DvwLThbs.js → model-kV1gs-y2.js} +1 -1
  125. package/dist/web/assets/{motion-preference-BquW2Vpx.js → motion-preference-fHFXX4cl.js} +1 -1
  126. package/dist/web/assets/{occupation-catalog-CwMNzUWJ.js → occupation-catalog-DOk8egq8.js} +1 -1
  127. package/dist/web/assets/{orchestration-filters-DhxYUaNx.js → orchestration-filters-BqUPBFf1.js} +1 -1
  128. package/dist/web/assets/page-title-D1CadCvf.js +1 -0
  129. package/dist/web/assets/profile-model-DGbpJdVC.js +1 -0
  130. package/dist/web/assets/{project-board-layout-LQu5EwBM.js → project-board-layout-Dtyrl2is.js} +1 -1
  131. package/dist/web/assets/project-board-settings-CNVNKEfm.js +1 -0
  132. package/dist/web/assets/{project-capture-DHvCDGGz.js → project-capture-BpaGUI-m.js} +1 -1
  133. package/dist/web/assets/{project-origin-DDVfUP1_.js → project-origin-DJ4d13mb.js} +1 -1
  134. package/dist/web/assets/project-team-api-yJVsib_j.js +1 -0
  135. package/dist/web/assets/{quick-edit-api-DPb69BlT.js → quick-edit-api-CBMbWX0d.js} +1 -1
  136. package/dist/web/assets/rolldown-runtime-4tVxZq34.js +1 -0
  137. package/dist/web/assets/runtime-dom.esm-bundler-ClO7ICIC.js +2 -0
  138. package/dist/web/assets/select-CCN-VOqx.js +1 -0
  139. package/dist/web/assets/shared-report-BRgNEV5m.js +1 -0
  140. package/dist/web/assets/source-adapters-8UHmhZTa.js +1 -0
  141. package/dist/web/assets/task-labels-pCGKthln.js +1 -0
  142. package/dist/web/assets/ui-Bfbk4_Xk.js +1 -0
  143. package/dist/web/assets/{useAgentRecords-D3upwp_U.js → useAgentRecords-DZPebmJ_.js} +1 -1
  144. package/dist/web/assets/useApi-CROJJdhE-CpF4ddpD.js +1 -0
  145. package/dist/web/assets/useDirection-DXu4lssv.js +1 -0
  146. package/dist/web/assets/useFocusReturn-DVcg2RDp.js +1 -0
  147. package/dist/web/assets/useForwardExpose-CNq5826B.js +1 -0
  148. package/dist/web/assets/useKnowledgeItemPeek-CxwXNZqm.js +1 -0
  149. package/dist/web/assets/useMinimumLoadingDisplay-SSJELjga.js +1 -0
  150. package/dist/web/assets/usePrimitiveElement-WBpNZTN_.js +1 -0
  151. package/dist/web/assets/useRoutePeek-U71ADWt0.js +1 -0
  152. package/dist/web/assets/{useTypeahead-C4mRUlUC.js → useTypeahead-CJkAiAa9.js} +1 -1
  153. package/dist/web/assets/utils-CfVEk15i.js +1 -0
  154. package/dist/web/assets/vue-router-BFTYTsOL.js +1 -0
  155. package/dist/web/index.html +46 -41
  156. package/docs/agent-conversations-and-collaboration.md +23 -9
  157. package/docs/agent-interface-architecture.md +25 -0
  158. package/docs/client-connections.md +47 -0
  159. package/docs/client-links.md +4 -0
  160. package/docs/employee-agents.md +1 -1
  161. package/graph-provider/fuli_graph/agent_conversation_models.py +2 -1
  162. package/graph-provider/fuli_graph/conversation_context.py +40 -90
  163. package/graph-provider/fuli_graph/store_agent_conversations.py +26 -15
  164. package/graph-provider/pyproject.toml +1 -1
  165. package/native/win32/fuli-win-helper.exe +0 -0
  166. package/npm-shrinkwrap.json +31 -31
  167. package/package.json +3 -3
  168. package/skills/capturing-session-knowledge/SKILL.md +7 -0
  169. package/skills/capturing-session-knowledge/references/coordination.md +4 -0
  170. package/skills/capturing-session-knowledge/references/retrieval.md +7 -0
  171. package/skills/operating-fuli/SKILL.md +3 -2
  172. package/skills/operating-fuli/references/workflow-recipes.md +4 -1
  173. package/src/agent-apps/host-tools/catalog.js +4 -0
  174. package/src/agent-kits/client-installer.js +29 -0
  175. package/src/agent-kits/derived-file.js +15 -0
  176. package/src/agent-kits/executable-download.js +53 -0
  177. package/src/agent-kits/executables.js +87 -0
  178. package/src/agent-kits/fuli-installer-manifest.json +125 -0
  179. package/src/agent-kits/installer-manifest.js +36 -0
  180. package/src/agent-kits/installer-shadow.js +82 -0
  181. package/src/agent-kits/launcher-host-config.js +56 -0
  182. package/src/agent-kits/pins.js +49 -0
  183. package/src/agent-kits/ports.js +13 -0
  184. package/src/agent-kits/session-clients.js +57 -0
  185. package/src/agent-kits/session-launcher.js +55 -0
  186. package/src/agent-kits/session-offers.js +67 -0
  187. package/src/agent-kits/vendor/agent-installer/LICENSE +21 -0
  188. package/src/agent-kits/vendor/agent-installer/README.md +9 -0
  189. package/src/agent-kits/vendor/agent-installer/index.d.ts +129 -0
  190. package/src/agent-kits/vendor/agent-installer/index.mjs +188 -0
  191. package/src/agent-kits/vendor/agent-session-launcher/LICENSE +21 -0
  192. package/src/agent-kits/vendor/agent-session-launcher/README.md +9 -0
  193. package/src/agent-kits/vendor/agent-session-launcher/index.d.ts +101 -0
  194. package/src/agent-kits/vendor/agent-session-launcher/index.mjs +159 -0
  195. package/src/agent-tools/agent-conversation-definitions.js +1 -1
  196. package/src/agent-tools/agent-workflow-definitions.js +49 -0
  197. package/src/agent-tools/graph-definitions.js +2 -0
  198. package/src/agent-tools/graph-handlers.js +2 -0
  199. package/src/agent-tools/interface-catalog.js +4 -1
  200. package/src/agent-tools/knowledge-definitions.js +7 -0
  201. package/src/agent-workflows/agent-tools.js +59 -0
  202. package/src/agent-workflows/port.js +179 -0
  203. package/src/agent-workflows/store.js +156 -0
  204. package/src/agents/claude-code/conversation-transcript.js +8 -0
  205. package/src/agents/claude-code/lifecycle-hook.js +9 -0
  206. package/src/agents/claude-code/session-client.js +29 -0
  207. package/src/agents/codex/conversation-transcript.js +6 -0
  208. package/src/agents/identity-receipt.js +1 -0
  209. package/src/data-format/local-stores.js +7 -1
  210. package/src/desktop/windows-desktop-client.js +120 -0
  211. package/src/desktop/windows-rollback-command.js +6 -2
  212. package/src/desktop/windows-rollback.js +7 -1
  213. package/src/desktop/windows-tray-update.js +19 -31
  214. package/src/desktop/windows-uninstall-command.js +2 -1
  215. package/src/desktop/windows-uninstall.js +10 -4
  216. package/src/desktop/windows-update-command.js +7 -2
  217. package/src/desktop/windows-update-lock.js +9 -7
  218. package/src/desktop/windows-update.js +7 -1
  219. package/src/employees/recruitment.js +12 -3
  220. package/src/graphiti/agent-conversations.js +1 -1
  221. package/src/graphiti/current-project-knowledge-search.js +3 -2
  222. package/src/graphiti/federated-search.js +4 -2
  223. package/src/graphiti/fla-mention.js +25 -8
  224. package/src/graphiti/fla-picker.js +25 -4
  225. package/src/graphiti/knowledge-result-budget.js +63 -9
  226. package/src/graphiti/local-runtimes.js +4 -0
  227. package/src/graphiti/project-agent-task-entry.js +8 -3
  228. package/src/graphiti/task-entry-named-fla.js +41 -19
  229. package/src/http/agent-workflows-api-router.js +36 -0
  230. package/src/http/api-router.js +9 -0
  231. package/src/http/doctor-api-router.js +31 -0
  232. package/src/http/session-launch-api-router.js +36 -0
  233. package/src/mcp/process-registry.js +12 -6
  234. package/src/mcp/session-id.js +1 -0
  235. package/src/mcp/tool-annotations.js +2 -0
  236. package/src/native-runtime/neo4j-install.js +6 -23
  237. package/src/native-runtime/resumable-download.js +24 -0
  238. package/src/native-runtime/windows-assets.js +30 -13
  239. package/src/native-runtime/windows-processes.js +5 -2
  240. package/src/presence/windows-helper-pin.js +1 -1
  241. package/src/server.js +2 -1
  242. package/src/setup/paths.js +3 -0
  243. package/src/system/console-update.js +10 -2
  244. package/src/system/detached-job.js +8 -0
  245. package/src/system/doctor-repair.js +61 -0
  246. package/src/system/doctor.js +119 -0
  247. package/src/system/package-version-checker.js +8 -1
  248. package/src/system/system-service.js +52 -13
  249. package/src/text/token-estimate.js +11 -0
  250. package/dist/web/assets/AboutPage-45tAvgRN.js +0 -1
  251. package/dist/web/assets/AgentHand-CQbDVBYv.js +0 -1
  252. package/dist/web/assets/AgentMentionCopy-BHFp527T.js +0 -1
  253. package/dist/web/assets/AgentMentionCopy-BIWsPf22.css +0 -1
  254. package/dist/web/assets/AgentName-ChhbnrG9.js +0 -1
  255. package/dist/web/assets/AgentProfilePage-ZzEtdSKe.js +0 -1
  256. package/dist/web/assets/AgentServicesPage-B92EXg56.js +0 -1
  257. package/dist/web/assets/AgentsDirectoryPage-B841hRHZ.js +0 -1
  258. package/dist/web/assets/BackLink-C0mcoSn4.js +0 -1
  259. package/dist/web/assets/BoardMoveMenu-CX8jKv0V.js +0 -1
  260. package/dist/web/assets/CaptureChangePage-B9wtEGy3.js +0 -1
  261. package/dist/web/assets/Card-BOk3WbC1.js +0 -1
  262. package/dist/web/assets/CardHeader-79hIs3Wc.js +0 -1
  263. package/dist/web/assets/CardTitle-CMWcRH62.js +0 -1
  264. package/dist/web/assets/ConnectionsPage-CCSZ-v6k.js +0 -1
  265. package/dist/web/assets/CreateProjectDialog-vDAHEZ6t.js +0 -2
  266. package/dist/web/assets/DataFormatPage-oRc6mBRh.js +0 -2
  267. package/dist/web/assets/DialogFooter-mK0XBX_L.js +0 -1
  268. package/dist/web/assets/EmployeeScopeDialog-Bp0zLRG5.js +0 -1
  269. package/dist/web/assets/EmployeeWorkbenchPage-D34173ED.js +0 -3
  270. package/dist/web/assets/FieldDescription-C33NBGIe.js +0 -1
  271. package/dist/web/assets/GrowthLoading-CTsRhLfj.js +0 -1
  272. package/dist/web/assets/InboxPage-CekhZG9R.js +0 -4
  273. package/dist/web/assets/Input-jNvD1lEt.js +0 -1
  274. package/dist/web/assets/KnowledgeHardDeleteSection-OgNe3xoA.js +0 -1
  275. package/dist/web/assets/KnowledgeItemEditPage-CxUFvj7Q.js +0 -1
  276. package/dist/web/assets/KnowledgeItemSummaryCard-CkD55bXQ.js +0 -1
  277. package/dist/web/assets/KnowledgeOrganizerPage-DTfhmq7x.js +0 -1
  278. package/dist/web/assets/KnowledgePage-D_XPxm7U.js +0 -1
  279. package/dist/web/assets/KnowledgePeek-fE8eZ9yB.js +0 -1
  280. package/dist/web/assets/KnowledgeTurnReceiptPage-CNoJA8j_.js +0 -1
  281. package/dist/web/assets/KnowledgeWorkspace-CizF6YnE.js +0 -4
  282. package/dist/web/assets/Label-BuJcMh9m.js +0 -1
  283. package/dist/web/assets/ModelSettingsPage-adiuhTSX.js +0 -1
  284. package/dist/web/assets/NotFoundPage-JAy5KIL8.js +0 -1
  285. package/dist/web/assets/OccupationsPage-DG0uQx85.js +0 -1
  286. package/dist/web/assets/OverviewPage-DwCiWNdy.js +0 -2
  287. package/dist/web/assets/PersonalProfilePage-Cb-AKL4K.js +0 -1
  288. package/dist/web/assets/PersonalProjectsPage-BT7ebQUu.js +0 -1
  289. package/dist/web/assets/PopperContent-Dtpk5py4.js +0 -1
  290. package/dist/web/assets/Presence-9_BFOmAz.js +0 -3
  291. package/dist/web/assets/ProjectAgentDetailPage-WmxfcCCM.js +0 -8
  292. package/dist/web/assets/ProjectAgentDialog-BgdFB7il.js +0 -5
  293. package/dist/web/assets/ProjectAgentFirstTask-BfX-v_g5.js +0 -1
  294. package/dist/web/assets/ProjectAgentsPage-DAlfUVqM.js +0 -1
  295. package/dist/web/assets/ProjectAgentsPage-DvJh40Xl.css +0 -1
  296. package/dist/web/assets/ProjectJudgmentPolicy-DGFTRTvW.js +0 -1
  297. package/dist/web/assets/ProjectScopePicker-wlhLR465.js +0 -1
  298. package/dist/web/assets/PublicProjectsPage-LTXsYNme.js +0 -1
  299. package/dist/web/assets/RadioGroupItem-CUyRbWCt.js +0 -1
  300. package/dist/web/assets/RoundtablesPage-slbD8isz.js +0 -1
  301. package/dist/web/assets/RovingFocusGroup-DJ9gp0xI.js +0 -1
  302. package/dist/web/assets/RovingFocusItem-BGt9xXis.js +0 -1
  303. package/dist/web/assets/SessionMigrationPage-HxM5zSjY.js +0 -1
  304. package/dist/web/assets/SessionRecordsPage-CbZ4xiIb.js +0 -1
  305. package/dist/web/assets/SettingsPage-BSXZinjo.js +0 -1
  306. package/dist/web/assets/SharedJefaReportPage-4MylH5Ao.js +0 -1
  307. package/dist/web/assets/TableHeader-aFcD9wsQ.js +0 -1
  308. package/dist/web/assets/TabsContent-ZCMehxYx.js +0 -1
  309. package/dist/web/assets/TabsTrigger-BTZQbe9n.js +0 -1
  310. package/dist/web/assets/TagVocabularyPage-CCm1HBg3.js +0 -1
  311. package/dist/web/assets/TaskBlockerClear-Dg1T2rcU.js +0 -1
  312. package/dist/web/assets/TaskBlockerNotice-DVYIiv3y.js +0 -1
  313. package/dist/web/assets/TaskExecutionPlan-B411P1VJ.js +0 -2
  314. package/dist/web/assets/TaskExecutionPlan-uimNYWdr.css +0 -1
  315. package/dist/web/assets/TaskReason-CVnoUuFe.js +0 -1
  316. package/dist/web/assets/Teleport-Co_blCnp.js +0 -1
  317. package/dist/web/assets/TextField-BqL6E9zF.js +0 -1
  318. package/dist/web/assets/Textarea-DIra6o5H.js +0 -1
  319. package/dist/web/assets/UiChip-FMcrDGe6.js +0 -1
  320. package/dist/web/assets/UiDialog-CvESkb45.js +0 -1
  321. package/dist/web/assets/UiDisclosure-D3xZRwVK.js +0 -1
  322. package/dist/web/assets/UiIcon-CSLaDsID.js +0 -1
  323. package/dist/web/assets/UiIconButton-C1o6HJ39.js +0 -1
  324. package/dist/web/assets/UiNotice-CR_4j5lF.js +0 -1
  325. package/dist/web/assets/UiSegmented-Iu9IH18R.js +0 -1
  326. package/dist/web/assets/UiSelect-Cs53P6h-.js +0 -1
  327. package/dist/web/assets/UiToggle-B2sPCVZe.css +0 -1
  328. package/dist/web/assets/UiToggle-CSb7ErVS.js +0 -1
  329. package/dist/web/assets/UiWeight-BsbP9h9p.js +0 -1
  330. package/dist/web/assets/UnassignedConversationsPanel-D2Y2Vs-z.js +0 -1
  331. package/dist/web/assets/VirtualDirectoryList-DLhTuyoY.js +0 -1
  332. package/dist/web/assets/VisuallyHiddenInput-DoZPyFZU.js +0 -1
  333. package/dist/web/assets/Workbench3D-BBEJ0vTb.js +0 -2
  334. package/dist/web/assets/_plugin-vue_export-helper-DKHjpKWY.js +0 -10
  335. package/dist/web/assets/accordion-DX4SO0oU.js +0 -1
  336. package/dist/web/assets/agent-pins-Djo8-s9j.js +0 -1
  337. package/dist/web/assets/badge-CBT_nrTA.js +0 -1
  338. package/dist/web/assets/button-BXkZ6rdB.js +0 -1
  339. package/dist/web/assets/checkbox-BPKmRFwj.js +0 -1
  340. package/dist/web/assets/console-KIWUM9xy.js +0 -1
  341. package/dist/web/assets/conversation-launcher-settings-Dfhkli80.js +0 -1
  342. package/dist/web/assets/dialog-BSKT8LUI.js +0 -1
  343. package/dist/web/assets/dist-KV3E0kAK.js +0 -1
  344. package/dist/web/assets/dropdown-menu-BMeAsFQe.js +0 -1
  345. package/dist/web/assets/field-D_zmve89.js +0 -1
  346. package/dist/web/assets/index-CyoKfCXy.js +0 -2
  347. package/dist/web/assets/index-DuLqKIn8.css +0 -1
  348. package/dist/web/assets/label-table-BAIaH-tx.js +0 -1
  349. package/dist/web/assets/page-title-B2inyRB1.js +0 -1
  350. package/dist/web/assets/profile-model-C7xYkCgE.js +0 -1
  351. package/dist/web/assets/project-team-api-DNSZitOp.js +0 -1
  352. package/dist/web/assets/select-ByHJaNRv.js +0 -1
  353. package/dist/web/assets/shared-report-ClDt0UMJ.js +0 -3
  354. package/dist/web/assets/task-labels-De_F8I3O.js +0 -1
  355. package/dist/web/assets/ui-CMR2UkVp.js +0 -1
  356. package/dist/web/assets/useApi-CROJJdhE-lwt7Bu-G.js +0 -1
  357. package/dist/web/assets/useDirection-DhUUV4Jm.js +0 -1
  358. package/dist/web/assets/useFocusReturn-ChxuGVqv.js +0 -1
  359. package/dist/web/assets/useForwardExpose-BRdp7olV.js +0 -1
  360. package/dist/web/assets/useKnowledgeItemPeek-CRNR9LmU.js +0 -1
  361. package/dist/web/assets/useMinimumLoadingDisplay-DejHIUi_.js +0 -1
  362. package/dist/web/assets/useRoutePeek-B5Ukp8vX.js +0 -1
  363. package/dist/web/assets/utils-BH3OkU12.js +0 -1
  364. package/dist/web/assets/vue-router-B6l0ZzTV.js +0 -1
  365. /package/dist/web/assets/{shared-report-CjLAmGZI.css → EmployeeTaskBoard-CjLAmGZI.css} +0 -0
@@ -0,0 +1,36 @@
1
+ import { readFileSync } from 'node:fs';
2
+ import { dirname, join } from 'node:path';
3
+
4
+ import { FULI_VERSION } from '../package-metadata.js';
5
+ import { clientDescriptorPacks } from '../setup/agents/registry.js';
6
+
7
+ // FULI's product manifest for agent-installer (docs/manifest.schema.json):
8
+ // what `fuli setup` writes into each client, as data in
9
+ // fuli-installer-manifest.json. Two values are filled here rather than
10
+ // copied into that file: the FULI version and the Codex instruction block,
11
+ // which stays in the Codex descriptor pack. The rest of the `{placeholders}`
12
+ // are the installer's variables (installerVariables).
13
+ const TEMPLATE = new URL('./fuli-installer-manifest.json', import.meta.url);
14
+
15
+ export function fuliInstallerManifest({ packs = clientDescriptorPacks() } = {}) {
16
+ const codex = packs.find((pack) => pack.id === 'codex');
17
+ const manifest = JSON.parse(readFileSync(TEMPLATE, 'utf8'));
18
+ manifest.version = FULI_VERSION;
19
+ manifest.clients.codex.instructions.markdown = codex.instructions.global.join('\n');
20
+ return manifest;
21
+ }
22
+
23
+ // The same expected integration `fuli setup` installs (system-service.js's
24
+ // client observation context).
25
+ export function installerVariables(context) {
26
+ const agents = join(dirname(context.mcpServerPath), 'agents');
27
+ return {
28
+ nodePath: context.nodePath,
29
+ mcpServerPath: context.mcpServerPath,
30
+ runtimeConfigPath: context.runtimeConfigPath,
31
+ claudeHook: join(agents, 'claude-code', 'lifecycle-hook.js'),
32
+ codexHook: join(agents, 'codex', 'lifecycle-hook.js'),
33
+ cursorHook: join(agents, 'cursor', 'lifecycle-hook.js'),
34
+ skillsDir: dirname(context.sessionSkillPath)
35
+ };
36
+ }
@@ -0,0 +1,82 @@
1
+ import { writeDerivedJson } from './derived-file.js';
2
+ import { fuliInstallerManifest, installerVariables } from './installer-manifest.js';
3
+
4
+ // agent-installer's `status` beside FULI's own inspection, in shadow mode
5
+ // (rec#11 D-79 step 2): the installer never writes, FULI's answer is what the
6
+ // person sees, and each client's agreement is kept where a developer can read
7
+ // it (the doctor report's `internal.installerShadow`). The next stage switches
8
+ // a client's writer only after this shows agreement for it.
9
+
10
+ // FULI's client IDs and the installer's, mapped once.
11
+ const INSTALLER_CLIENT = Object.freeze({
12
+ 'claude-code': 'claude-code',
13
+ 'claude-desktop': 'claude-desktop',
14
+ codex: 'codex',
15
+ cursor: 'cursor',
16
+ gemini: 'gemini-cli',
17
+ kiro: 'kiro',
18
+ 'qwen-code': 'qwen-code',
19
+ opencode: 'opencode'
20
+ });
21
+ // FULI's integration details and the installer's components.
22
+ const INSTALLER_COMPONENT = Object.freeze({
23
+ mcp: 'mcp', skills: 'skills', lifecycleHooks: 'hooks', hooks: 'hooks', bootstrap: 'instructions', plugin: 'plugin'
24
+ });
25
+ // How long one comparison stands before the next doctor read refreshes it.
26
+ const REFRESH_MS = 10 * 60_000;
27
+
28
+ // fuliClients: inspectAgentInstallations() results. installerClients: the
29
+ // installer's `status` clients. Only state codes leave here, never paths or
30
+ // the installer's messages.
31
+ function compareInstallations(fuliClients, installerClients) {
32
+ const byId = new Map(installerClients.map((client) => [client.id, client]));
33
+ return fuliClients.filter((client) => INSTALLER_CLIENT[client.id]).map((client) => {
34
+ const installer = byId.get(INSTALLER_CLIENT[client.id]);
35
+ // A component the installer calls unsupported is not part of that client
36
+ // (FULI reports a client without Skill folders as having current Skills).
37
+ const installerComponents = Object.fromEntries((installer?.componentStates ?? [])
38
+ .map(({ component, state }) => [component, state]));
39
+ const components = Object.entries(client.integrationDetails ?? {})
40
+ .filter(([detail]) => INSTALLER_COMPONENT[detail] && installerComponents[INSTALLER_COMPONENT[detail]] !== 'unsupported')
41
+ .map(([detail, fuli]) => ({ component: INSTALLER_COMPONENT[detail], fuli,
42
+ installer: installerComponents[INSTALLER_COMPONENT[detail]] ?? null }))
43
+ .filter(({ fuli, installer: state }) => fuli !== state);
44
+ return { id: client.id, installerId: INSTALLER_CLIENT[client.id], fuli: client.integrationStatus,
45
+ installer: installer?.state ?? null, agree: client.integrationStatus === installer?.state, components };
46
+ });
47
+ }
48
+
49
+ // One comparison: FULI's expected integration (the client observation
50
+ // context) written as the installer's manifest, the installer's `status`
51
+ // for it, and FULI's own inspection of the same clients.
52
+ export async function runInstallerShadow({ installer, manifestPath, context, discover, inspect }) {
53
+ writeDerivedJson(manifestPath, fuliInstallerManifest());
54
+ const answer = await installer.status(installerVariables(context));
55
+ if (answer.status !== 'available') return answer;
56
+ const agents = discover({ includeUnavailable: true, dataDir: context.dataDir });
57
+ return { status: 'available', clients: compareInstallations(inspect(agents, context), answer.clients) };
58
+ }
59
+
60
+ // run: resolves { status: 'available', clients } (compared clients) or
61
+ // { status: 'unavailable', reason }. The doctor never waits for it: `latest`
62
+ // answers the last comparison and starts a new one when it is stale.
63
+ export function createInstallerShadow({ run, now = Date.now }) {
64
+ let latest = { status: 'pending' };
65
+ let checkedAt = null;
66
+ let running = null;
67
+ return {
68
+ latest() {
69
+ if (!running && (checkedAt === null || now() - checkedAt >= REFRESH_MS)) {
70
+ running = Promise.resolve().then(run)
71
+ .catch((error) => ({ status: 'unavailable', reason: error.message }))
72
+ .then((result) => {
73
+ latest = { ...result, checkedAt: new Date(now()).toISOString() };
74
+ checkedAt = now();
75
+ running = null;
76
+ return latest;
77
+ });
78
+ }
79
+ return latest;
80
+ }
81
+ };
82
+ }
@@ -0,0 +1,56 @@
1
+ // The session launcher's host configuration (agent-session-launcher
2
+ // docs/configuration.md), generated from FULI's `conversationLaunchers`
3
+ // setting. Each FULI application whose deep link the launcher can express
4
+ // becomes a host-defined URI client `fuli-<application>`; the rest are not in
5
+ // the configuration and keep FULI's own link rendering. The file is derived:
6
+ // it is rewritten from runtime-settings.json (writeDerivedJson) whenever the
7
+ // two differ.
8
+
9
+ // The launcher's deep-link template rules at v0.4.0 (lib/src/config.dart):
10
+ // scheme://host/path?key=value with plain tokens, `{id}` exactly once as a
11
+ // whole path segment or query value, no web, file or script scheme. A
12
+ // template outside them would make the launcher refuse the whole file.
13
+ const URI_TEMPLATE = /^([a-z][a-z0-9+.-]{0,31}):\/\/([a-z0-9][a-z0-9.-]{0,127})((?:\/[^/?#]*)*)(?:\?([^#]*))?$/;
14
+ const URI_TOKEN = /^[A-Za-z0-9._~-]{1,256}$/;
15
+ const BLOCKED_SCHEMES = new Set(['http', 'https', 'file', 'data', 'javascript', 'mailto']);
16
+ const MAX_QUERY_KEYS = 16;
17
+ const MAX_PATH_SEGMENTS = 32;
18
+
19
+ // conversationLaunchers: normalized runtime settings (runtime-settings.js).
20
+ // Answers the configuration and, per FULI application, the client ID that
21
+ // opens it in the launcher.
22
+ export function launcherHostConfig(conversationLaunchers) {
23
+ const clients = {};
24
+ const hostClients = {};
25
+ for (const [application, rule] of Object.entries(conversationLaunchers)) {
26
+ if (!launcherCanExpress(rule.urlTemplate)) continue;
27
+ const id = `fuli-${application.replaceAll('_', '-')}`;
28
+ clients[id] = {
29
+ ...(rule.appName ? { name: rule.appName } : {}),
30
+ enabled: rule.enabled,
31
+ launch: { uri: rule.urlTemplate, idFormat: rule.idFormat === 'uuid' ? 'uuid' : 'safe' }
32
+ };
33
+ hostClients[application] = id;
34
+ }
35
+ return { config: { schemaVersion: 1, clients }, hostClients };
36
+ }
37
+
38
+ function launcherCanExpress(template) {
39
+ const match = URI_TEMPLATE.exec(template ?? '');
40
+ if (!match || BLOCKED_SCHEMES.has(match[1])) return false;
41
+ const segments = match[3].split('/').filter(Boolean);
42
+ const pairs = match[4] ? match[4].split('&') : [];
43
+ const keys = new Set();
44
+ const values = [];
45
+ for (const pair of pairs) {
46
+ const equals = pair.indexOf('=');
47
+ const key = equals < 0 ? pair : pair.slice(0, equals);
48
+ if (!URI_TOKEN.test(key) || keys.has(key)) return false;
49
+ keys.add(key);
50
+ values.push(equals < 0 ? '' : pair.slice(equals + 1));
51
+ }
52
+ const tokens = [...segments, ...values];
53
+ return pairs.length <= MAX_QUERY_KEYS && segments.length <= MAX_PATH_SEGMENTS
54
+ && tokens.every((token) => token === '{id}' || URI_TOKEN.test(token))
55
+ && tokens.filter((token) => token === '{id}').length === 1;
56
+ }
@@ -0,0 +1,49 @@
1
+ import { deepFreeze } from '../validation/values.js';
2
+
3
+ // The two shared client components FULI runs as native executables (rec#11
4
+ // D-79): one pinned release each, with the SHA-256 of every platform's asset
5
+ // copied from that release's SHA256SUMS. This is the only place the versions,
6
+ // download URLs and checksums live; the Windows bundle build and the runtime
7
+ // download both read it. How to bump: docs/client-connections.md, "Shared
8
+ // client components".
9
+ export const AGENT_KIT_PINS = deepFreeze({
10
+ 'agent-session-launcher': {
11
+ repository: 'JevonsCode/agent-session-launcher',
12
+ version: '0.4.0',
13
+ sha256: {
14
+ 'macos-arm64': '9c65ed2ba10378250bf86af8f5b8874984f97cfe68018750c689cbede964ff99',
15
+ 'macos-x64': 'a50379638576d1607934aff8c50f633c49a216de90cf74a0801cd414d376460b',
16
+ 'linux-x64': '22918a7bbca1a09d16b2ed711195d6408995c998298a91427e5e6ddb0fd4948d',
17
+ 'linux-arm64': '68ee8887034eba7d3e6f348baed14130650474f63739c319a3eba9cb52afdeb9',
18
+ 'windows-x64': '1b1acddacb5bbaded1a8e13886e7a6becb62384d746a40fe1046b1562621e647'
19
+ }
20
+ },
21
+ 'agent-installer': {
22
+ repository: 'JevonsCode/agent-installer',
23
+ version: '0.2.0',
24
+ sha256: {
25
+ 'macos-arm64': '1ca3cde9273cab05515963308f8c348a768dd2b40b928262f026c514971d492a',
26
+ 'macos-x64': 'a8ffdbcbe47c313d5c275e1daad8be62b43ca4a22ce4c11c805ca53d19cddb29',
27
+ 'linux-x64': 'dcd27bbc71081b0a64200591b7795b28cef552ebe4340d0b83eb1d12b2038617',
28
+ 'linux-arm64': '460fdb9b525a1cbb51aaf6d789f637bacc3c0db006c15eaf786f6d7804fbac90',
29
+ 'windows-x64': 'dea9f4e26ef5d7604edc7420ae33436ee5c82064f17c967dd095b110b6648e64'
30
+ }
31
+ }
32
+ });
33
+
34
+ export const AGENT_KIT_COMPONENTS = Object.freeze(Object.keys(AGENT_KIT_PINS));
35
+
36
+ const OPERATING_SYSTEMS = Object.freeze({ darwin: 'macos', linux: 'linux', win32: 'windows' });
37
+
38
+ // The pinned release asset of `component` for this platform, or null when the
39
+ // component publishes none for it (for example Windows on arm64).
40
+ export function agentKitAsset(component, platform = process.platform, arch = process.arch) {
41
+ const pin = AGENT_KIT_PINS[component];
42
+ if (!pin) throw new TypeError(`Unknown agent kit component: ${component}`);
43
+ const target = `${OPERATING_SYSTEMS[platform]}-${arch}`;
44
+ const sha256 = pin.sha256[target];
45
+ if (!sha256) return null;
46
+ const name = `${component}-${target}${platform === 'win32' ? '.exe' : ''}`;
47
+ return { component, version: pin.version, target, name, sha256,
48
+ url: `https://github.com/${pin.repository}/releases/download/v${pin.version}/${name}` };
49
+ }
@@ -0,0 +1,13 @@
1
+ import { createClientInstallerPort } from './client-installer.js';
2
+ import { agentKitExecutables } from './executables.js';
3
+ import { createSessionLauncherPort } from './session-launcher.js';
4
+
5
+ // The shared client components for one data directory (setup paths), wired
6
+ // once: where their executables are found and the ports FULI calls them through.
7
+ export function agentKitPorts(paths, { env = process.env } = {}) {
8
+ const executables = agentKitExecutables({ nativeRuntimeDir: paths.nativeRuntimeDir, bundleRoot: paths.portableRoot, env });
9
+ return {
10
+ sessionLauncher: createSessionLauncherPort({ executables, configPath: paths.launcherHostConfigPath }),
11
+ clientInstaller: createClientInstallerPort({ executables, manifestPath: paths.installerManifestPath })
12
+ };
13
+ }
@@ -0,0 +1,57 @@
1
+ import { join } from 'node:path';
2
+
3
+ import { sha256Bytes } from '../security/digest.js';
4
+ import { readJsonFile } from '../storage/json-file.js';
5
+ import { jsonFormat, writeVersionedJsonFileAtomic } from '../storage/json-format.js';
6
+
7
+ // How a session was started and which client it ran in (rec#11 D-79): one
8
+ // small record per session, keyed by FULI's source application and the
9
+ // session ID. An Agent's hook writes the label and entry point without asking
10
+ // the launcher; the console classifies the client the first time it needs it
11
+ // and keeps the answer here. A session recorded before this existed has no
12
+ // record; its client is classified from the source application alone.
13
+ export const SESSION_CLIENT_FORMAT = jsonFormat({ store: 'session-clients', versions: [1] });
14
+ const RECORD_VERSION = 1;
15
+ // The longest label or entry point name kept; Claude Code's entry points are short words like `cli`.
16
+ const MAX_TEXT = 64;
17
+
18
+ // What FULI's source applications are called in the launcher's catalog, for a
19
+ // session with no record. Labels the launcher reads as ambiguous (Codex,
20
+ // OpenCode) stay ambiguous: FULI never guesses a surface.
21
+ const SOURCE_LABELS = Object.freeze({
22
+ codex: 'Codex',
23
+ claude: 'Claude Desktop',
24
+ claude_code: 'Claude Code',
25
+ cursor: 'Cursor',
26
+ gemini_cli: 'Gemini CLI',
27
+ kiro: 'Kiro',
28
+ opencode: 'OpenCode',
29
+ other: 'unknown'
30
+ });
31
+
32
+ export function sourceLabel(sourceApplication) {
33
+ return SOURCE_LABELS[sourceApplication] ?? SOURCE_LABELS.other;
34
+ }
35
+
36
+ export function sessionClientRecords(dataDir) {
37
+ const pathOf = (sourceApplication, sessionId) =>
38
+ join(dataDir, 'session-clients', `${sha256Bytes(`${sourceApplication}\0${sessionId}`)}.json`);
39
+ return {
40
+ // { client, source, entrypoint } or null.
41
+ read(sourceApplication, sessionId) {
42
+ let record;
43
+ try { record = readJsonFile(pathOf(sourceApplication, sessionId), null); } catch { return null; }
44
+ if (record?.version !== RECORD_VERSION || record.sourceApplication !== sourceApplication
45
+ || record.sessionId !== sessionId) return null;
46
+ return { client: record.client ?? null, source: record.source ?? null, entrypoint: record.entrypoint ?? null };
47
+ },
48
+ // source: the label for the launcher's classify; entrypoint: the client's
49
+ // own start signal, if any; client: the launcher's answer, once known.
50
+ record(sourceApplication, sessionId, { client = null, source, entrypoint = null }) {
51
+ writeVersionedJsonFileAtomic(pathOf(sourceApplication, sessionId), {
52
+ version: RECORD_VERSION, sourceApplication, sessionId, client, source: source.slice(0, MAX_TEXT),
53
+ entrypoint: typeof entrypoint === 'string' ? entrypoint.slice(0, MAX_TEXT) : null
54
+ }, SESSION_CLIENT_FORMAT);
55
+ }
56
+ };
57
+ }
@@ -0,0 +1,55 @@
1
+ import { existsSync } from 'node:fs';
2
+
3
+ import { createLauncher, defaultExtensionsDirectory } from './vendor/agent-session-launcher/index.mjs';
4
+
5
+ const COMPONENT = 'agent-session-launcher';
6
+ // classify, clients and inspect only plan; none opens a client.
7
+ const TIMEOUT_MS = 8000;
8
+
9
+ // FULI's port to agent-session-launcher, read-only in this stage: it never
10
+ // calls `open` (rec#11 D-79). Every answer is { status: 'available', ... } or
11
+ // { status: 'unavailable', reason }; on 'unavailable' the caller keeps FULI's
12
+ // own behaviour. A launcher error about one request (for example an ID the
13
+ // client does not accept) is { status: 'refused', code }.
14
+ //
15
+ // executables: agentKitExecutables().
16
+ // configPath: the host configuration FULI generates (launcher-host-config.js),
17
+ // passed only when it exists.
18
+ export function createSessionLauncherPort({
19
+ executables,
20
+ configPath = null,
21
+ extensionsDir = defaultExtensionsDirectory()
22
+ }) {
23
+ async function withLauncher({ download = false } = {}, call) {
24
+ const executable = download ? await executables.ensure(COMPONENT) : await executables.resolve(COMPONENT);
25
+ if (executable.status !== 'available') return executable;
26
+ const launcher = createLauncher({ executable: executable.path, timeoutMs: TIMEOUT_MS, extensionsDir,
27
+ ...(configPath && existsSync(configPath) ? { configPath } : {}) });
28
+ try {
29
+ return { status: 'available', ...await call(launcher) };
30
+ } catch (error) {
31
+ // Not this request's fault: the executable, its answer or the host
32
+ // configuration. FULI falls back as if there were no launcher.
33
+ if (UNAVAILABLE.has(error?.code)) return { status: 'unavailable', reason: `${error.code}: ${error.message}` };
34
+ return { status: 'refused', code: error?.code ?? 'internal_error' };
35
+ }
36
+ }
37
+
38
+ return {
39
+ // The launcher client ID for a source label, refined only by Claude's
40
+ // non-secret entry point signal.
41
+ classify: (source, { claudeEntrypoint } = {}) => withLauncher({}, async (launcher) => ({
42
+ client: await launcher.classify(source, claudeEntrypoint ? { claudeEntrypoint } : {})
43
+ })),
44
+ // download: fetch the pinned executable when it is missing (a console request, never a hook).
45
+ clients: ({ download } = {}) => withLauncher({ download }, async (launcher) => ({
46
+ clients: (await launcher.clients()).clients
47
+ })),
48
+ inspect: (target) => withLauncher({}, async (launcher) => await launcher.inspect(target))
49
+ };
50
+ }
51
+
52
+ // `unknown_outcome` included: these calls only plan, but FULI never repeats a
53
+ // call that timed out (the component's rule for every action).
54
+ const UNAVAILABLE = new Set(['unavailable', 'invalid_executable', 'invalid_response', 'unknown_outcome',
55
+ 'invalid_configuration', 'invalid_timeout']);
@@ -0,0 +1,67 @@
1
+ import { writeDerivedJson } from './derived-file.js';
2
+ import { launcherHostConfig } from './launcher-host-config.js';
3
+ import { sourceLabel } from './session-clients.js';
4
+
5
+ // Whether the console offers "open this session" for a recorded session,
6
+ // decided by the session launcher from `clients` and `inspect` (rec#11 D-79).
7
+ // This stage only offers deep links the person configured: the launcher
8
+ // checks the link and the session ID, and FULI renders the href as before.
9
+ // Nothing here opens a client.
10
+ //
11
+ // Each offer names its { sourceApplication, sessionId } and is one of
12
+ // { client, offer: 'link', href } the launcher planned this deep link;
13
+ // { client, offer: 'none' } the launcher declined (disabled, wrong ID);
14
+ // { client, offer: 'fuli' } the launcher cannot express this
15
+ // application's link: FULI's own rules decide.
16
+ // `client` is the launcher's client ID for the session's source. Without a
17
+ // launcher the answer is { launcher: 'unavailable', reason } and the console
18
+ // keeps its own rules for every session.
19
+ export function createSessionOffers({ launcher, readLaunchers, configPath, records }) {
20
+ // The settings, as the launcher's host configuration; rewritten when they differ.
21
+ function syncHostConfig() {
22
+ const { config, hostClients } = launcherHostConfig(readLaunchers());
23
+ writeDerivedJson(configPath, config);
24
+ return hostClients;
25
+ }
26
+
27
+ async function offers(sessions) {
28
+ const hostClients = syncHostConfig();
29
+ const listed = await launcher.clients({ download: true });
30
+ if (listed.status !== 'available') return { launcher: 'unavailable', reason: listed.reason ?? listed.code };
31
+ const linkable = new Set(listed.clients
32
+ .filter((client) => client.enabled && client.openSupported && client.kind === 'uri').map((client) => client.id));
33
+ const classified = new Map();
34
+ const sourceClient = async ({ sourceApplication, sessionId }) => {
35
+ const record = records.read(sourceApplication, sessionId);
36
+ if (record?.client) return record.client;
37
+ const source = record?.source ?? sourceLabel(sourceApplication);
38
+ const key = `${source}\0${record?.entrypoint ?? ''}`;
39
+ if (!classified.has(key)) {
40
+ const answer = await launcher.classify(source, { claudeEntrypoint: record?.entrypoint ?? undefined });
41
+ classified.set(key, answer.status === 'available' ? answer.client : null);
42
+ }
43
+ const client = classified.get(key);
44
+ // A hook's record keeps the answer, so each session is classified once.
45
+ if (record && client) {
46
+ try { records.record(sourceApplication, sessionId, { ...record, client }); } catch { /* asked again next time */ }
47
+ }
48
+ return client;
49
+ };
50
+ const offerFor = async ({ sourceApplication, sessionId }) => {
51
+ const hostClient = hostClients[sourceApplication];
52
+ if (!hostClient) return { offer: 'fuli' };
53
+ if (!linkable.has(hostClient)) return { offer: 'none' };
54
+ const inspected = await launcher.inspect({ client: hostClient, conversationId: sessionId });
55
+ if (inspected.status === 'unavailable') return { offer: 'fuli' };
56
+ return inspected.status === 'available' && inspected.openSupported && inspected.plan.kind === 'uri'
57
+ ? { offer: 'link', href: inspected.plan.uri } : { offer: 'none' };
58
+ };
59
+ const result = [];
60
+ for (const session of sessions) {
61
+ result.push({ ...session, client: await sourceClient(session), ...await offerFor(session) });
62
+ }
63
+ return { launcher: 'available', offers: result };
64
+ }
65
+
66
+ return { syncHostConfig, offers };
67
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jevons
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,9 @@
1
+ # agent-installer Node binding (vendored)
2
+
3
+ Unchanged copy of `bindings/node/` (`index.mjs`, `index.d.ts`) and `LICENSE` from
4
+ [JevonsCode/agent-installer](https://github.com/JevonsCode/agent-installer)
5
+ tag `v0.2.0`, commit `0d265c9b7dae9b20e8ee64ccb646cf0e95c3a482`.
6
+
7
+ Do not edit these files: fix the component upstream, release it, then copy the new tag's
8
+ binding here and bump the pins in `src/agent-kits/pins.js` in the same change. FULI code
9
+ reaches the binding only through `src/agent-kits/client-installer.js`.
@@ -0,0 +1,129 @@
1
+ export type Component = 'mcp' | 'hooks' | 'permissions' | 'instructions' | 'skills' | 'plugin';
2
+
3
+ export interface ExtensionProblem {
4
+ file?: string;
5
+ message: string;
6
+ }
7
+
8
+ export interface TargetScan {
9
+ id: string;
10
+ name: string;
11
+ detected: boolean;
12
+ /** What showed the client is installed, e.g. `~/.codex/config.toml` or `command: codex`. */
13
+ evidence: string[];
14
+ components: Component[];
15
+ builtin: boolean;
16
+ platformSupported: boolean;
17
+ /** Why the client must be configured by hand. */
18
+ manual?: string;
19
+ extensionFile?: string;
20
+ }
21
+
22
+ export interface ComponentStatus {
23
+ component: Component;
24
+ state: 'current' | 'outdated' | 'missing' | 'conflict' | 'unsupported';
25
+ message?: string;
26
+ }
27
+
28
+ export type ClientState =
29
+ | 'connected' | 'update_available' | 'not_connected' | 'conflict' | 'manual' | 'unsupported';
30
+
31
+ export interface ClientStatus extends TargetScan {
32
+ state: ClientState;
33
+ componentStates: ComponentStatus[];
34
+ }
35
+
36
+ export interface PlannedChange {
37
+ /** Shown relative to the home directory, e.g. `~/.claude.json`. */
38
+ path: string;
39
+ components: Component[];
40
+ /** `adopt`: an existing directory that already holds the product's files gets its receipt. */
41
+ action: 'create' | 'update' | 'delete' | 'adopt';
42
+ diff?: string;
43
+ /** How the change was made when that differs, e.g. a directory in use updated in place. */
44
+ note?: string;
45
+ }
46
+
47
+ export interface ClientResult {
48
+ id: string;
49
+ name: string;
50
+ state: ClientState;
51
+ changes: PlannedChange[];
52
+ /** Components that could not be changed, with the reason. */
53
+ problems: string[];
54
+ /** What the person still has to do, e.g. restart the client, in English. */
55
+ actions: string[];
56
+ /** One stable code per entry of `actions`, in the same order, for the host's own wording. */
57
+ actionCodes: ActionCode[];
58
+ }
59
+
60
+ /** See docs/result.schema.json. */
61
+ export type ActionCode = 'restart_client' | 'new_session' | 'reload_config' | 'trust_hooks' | 'other';
62
+
63
+ export interface InstallerOptions {
64
+ /** Absolute path to the native `agent-installer` for this OS and CPU. */
65
+ executable: string;
66
+ /** Absolute path to the product manifest. */
67
+ manifestPath: string;
68
+ /** Values for the manifest's `{placeholders}`. */
69
+ variables?: Record<string, string>;
70
+ /** Defaults to the shared per-user extension directory, `defaultExtensionsDirectory()`. */
71
+ extensionsDir?: string;
72
+ /** Where originals are copied before a change; defaults to `defaultBackupsDirectory(product)`. */
73
+ backupsDir?: string;
74
+ /**
75
+ * How long one call may take, 1 to 600000 ms; default 60000. When it runs
76
+ * out the process is killed and the call rejects with `unknown_outcome`.
77
+ */
78
+ timeoutMs?: number;
79
+ }
80
+
81
+ /**
82
+ * Every failure rejects (never throws synchronously) with an Error whose
83
+ * `code` is an installer code (`invalid_manifest`, `unknown_client`, …) or a
84
+ * binding code: `invalid_arguments`, `invalid_timeout`, `unavailable` (the
85
+ * executable could not start), `invalid_response`, or `unknown_outcome`
86
+ * (no answer in time: files may or may not have changed, so never retry
87
+ * `apply` or `remove` automatically; call `status` first).
88
+ */
89
+ export interface InstallerError extends Error {
90
+ code: string;
91
+ }
92
+
93
+ /** What `plan`, `apply` and `remove` resolve with. */
94
+ export interface ClientResults {
95
+ clients: ClientResult[];
96
+ /**
97
+ * True when the run finished but some components were left alone (the
98
+ * executable exited with 2); `problems` says which and why.
99
+ */
100
+ partial: boolean;
101
+ /** Every client's `problems`, flattened. */
102
+ problems: { client: string; message: string }[];
103
+ extensionErrors: ExtensionProblem[];
104
+ }
105
+
106
+ export interface Installer {
107
+ scan(): Promise<{ clients: TargetScan[]; extensionErrors: ExtensionProblem[] }>;
108
+ status(clients?: string[]): Promise<{ clients: ClientStatus[]; extensionErrors: ExtensionProblem[] }>;
109
+ /** A dry run: returns the changes and diffs without writing. */
110
+ plan(clients: string[]): Promise<ClientResults>;
111
+ /** Writes; call only for clients the person selected. A partial run resolves with `partial: true`. */
112
+ apply(clients: string[]): Promise<ClientResults>;
113
+ remove(clients: string[]): Promise<ClientResults>;
114
+ }
115
+
116
+ export function createInstaller(options: InstallerOptions): Installer;
117
+
118
+ /** The shared per-user extension directory, or undefined without a home directory. */
119
+ export function defaultExtensionsDirectory(
120
+ env?: Record<string, string | undefined>,
121
+ platform?: string,
122
+ ): string | undefined;
123
+
124
+ /** `agent-clients/backups/<product>` in the shared root, or undefined without a home directory. */
125
+ export function defaultBackupsDirectory(
126
+ product: string,
127
+ env?: Record<string, string | undefined>,
128
+ platform?: string,
129
+ ): string | undefined;