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.
- package/dist/web/assets/AboutPage-CRIF2M8n.js +1 -0
- package/dist/web/assets/AgentHand-Dp9TFS4q.js +1 -0
- package/dist/web/assets/AgentMentionCopy-BXOrsEWh.css +1 -0
- package/dist/web/assets/AgentMentionCopy-C7N92Shm.js +1 -0
- package/dist/web/assets/AgentName-CbsQ9vDy.js +1 -0
- package/dist/web/assets/{AgentProfilePage-MkP7Lgo6.css → AgentProfilePage-B_V-Dm8v.css} +1 -1
- package/dist/web/assets/AgentProfilePage-DOpq0b3j.js +2 -0
- package/dist/web/assets/AgentServicesPage-Dr9WU0f9.js +1 -0
- package/dist/web/assets/AgentWorkbench-CMoeT-BY.css +1 -0
- package/dist/web/assets/AgentWorkbench-DTWZFf1A.js +2 -0
- package/dist/web/assets/AgentsDirectoryPage-CxDOdNxT.js +1 -0
- package/dist/web/assets/{AgentsDirectoryPage-Cq1z926q.css → AgentsDirectoryPage-DjEfG9dC.css} +1 -1
- package/dist/web/assets/BackLink-ByRr21Sw.js +1 -0
- package/dist/web/assets/BoardMoveMenu-Bd1T62eA.js +1 -0
- package/dist/web/assets/CaptureChangePage-DyuSSSDE.js +1 -0
- package/dist/web/assets/Card-BD5ohuk8.js +1 -0
- package/dist/web/assets/CardHeader-DTVqXpsf.js +1 -0
- package/dist/web/assets/CardTitle-C5REIVlp.js +1 -0
- package/dist/web/assets/ConnectionsPage-CKruAjBF.js +1 -0
- package/dist/web/assets/CreateProjectDialog-D6JS3RtH.js +2 -0
- package/dist/web/assets/DataFormatPage-DNaogYjf.js +2 -0
- package/dist/web/assets/DialogFooter-C5AIwQ5R.js +1 -0
- package/dist/web/assets/EmployeeScopeDialog-Lmfos9SA.js +1 -0
- package/dist/web/assets/EmployeeTaskBoard-U3KmfQG3.js +3 -0
- package/dist/web/assets/EmployeeWorkbenchPage-O9DEMzLT.js +3 -0
- package/dist/web/assets/FieldDescription-_fuW5MBO.js +1 -0
- package/dist/web/assets/GrowthLoading--m-lSUeo.js +1 -0
- package/dist/web/assets/InboxPage-DmJfYzaK.js +4 -0
- package/dist/web/assets/Input-DqjML-Qy.js +1 -0
- package/dist/web/assets/KnowledgeHardDeleteSection-AFg1ybWc.js +1 -0
- package/dist/web/assets/KnowledgeItemEditPage-B29px-r0.js +1 -0
- package/dist/web/assets/KnowledgeItemSummaryCard-BhHet9HU.js +1 -0
- package/dist/web/assets/KnowledgeOrganizerPage-BfD42JmC.js +1 -0
- package/dist/web/assets/KnowledgePage-nbTejsvV.js +1 -0
- package/dist/web/assets/KnowledgePeek-ByakOiOO.js +2 -0
- package/dist/web/assets/{KnowledgePeek-DdxwAWYs.css → KnowledgePeek-CK2RKeRx.css} +1 -1
- package/dist/web/assets/KnowledgeTurnReceiptPage-B1fMTy2W.js +1 -0
- package/dist/web/assets/KnowledgeWorkspace-DCzwenHE.js +4 -0
- package/dist/web/assets/{KnowledgeWorkspace-CA8oxVht.css → KnowledgeWorkspace-j8xlGwtg.css} +1 -1
- package/dist/web/assets/Label-CufKLEgT.js +1 -0
- package/dist/web/assets/ModelSettingsPage-jQKn4MsB.js +1 -0
- package/dist/web/assets/NotFoundPage-B4KkZO2q.js +1 -0
- package/dist/web/assets/OccupationsPage-5Ja81Cfg.js +1 -0
- package/dist/web/assets/OverviewPage-C-K4KDNM.js +2 -0
- package/dist/web/assets/PersonalProfilePage-BVZ3WHmf.js +1 -0
- package/dist/web/assets/PersonalProjectsPage-C1J8Poj8.js +1 -0
- package/dist/web/assets/PopperContent-C-KMpRbF.js +1 -0
- package/dist/web/assets/Presence-B4aVQMT8.js +3 -0
- package/dist/web/assets/ProjectAgentDetailPage-B6bTOIhe.js +8 -0
- package/dist/web/assets/ProjectAgentDialog-CWuqScFD.js +5 -0
- package/dist/web/assets/ProjectAgentFirstTask-C7qzXCQ6.js +1 -0
- package/dist/web/assets/ProjectAgentsPage-BNtWbct5.js +1 -0
- package/dist/web/assets/ProjectAgentsPage-Bym-IM4-.css +1 -0
- package/dist/web/assets/ProjectJudgmentPolicy-L_plkldY.js +1 -0
- package/dist/web/assets/ProjectScopePicker-BXy07CHg.js +1 -0
- package/dist/web/assets/PublicProjectsPage-Cftk4zLX.js +1 -0
- package/dist/web/assets/RadioGroupItem-DoOqLMbZ.js +1 -0
- package/dist/web/assets/RoundtablesPage-RCtrPHxs.js +1 -0
- package/dist/web/assets/RovingFocusGroup-BeCLKMQA.js +1 -0
- package/dist/web/assets/RovingFocusItem-BN-h70s_.js +1 -0
- package/dist/web/assets/SessionMigrationPage-Dcjylswy.js +1 -0
- package/dist/web/assets/SessionRecordsPage-jrFse2a1.js +1 -0
- package/dist/web/assets/SettingsPage-BkHm8GV4.js +1 -0
- package/dist/web/assets/{SettingsPage-DpVeP2OZ.css → SettingsPage-BxAXf6EF.css} +1 -1
- package/dist/web/assets/SharedJefaReportPage-_KXsTVGF.js +1 -0
- package/dist/web/assets/Switch-BPAVVtqu.js +1 -0
- package/dist/web/assets/TableHeader-P9d7xF7t.js +1 -0
- package/dist/web/assets/TabsContent-Casnps6y.js +1 -0
- package/dist/web/assets/TabsTrigger-AQwqcZRn.js +1 -0
- package/dist/web/assets/TagVocabularyPage-CsDJkbU3.js +1 -0
- package/dist/web/assets/TaskBlockerClear-wqHV47Vx.js +1 -0
- package/dist/web/assets/TaskBlockerNotice-DJytDDst.js +1 -0
- package/dist/web/assets/TaskExecutionPlan-8dwc8_Jf.css +1 -0
- package/dist/web/assets/TaskExecutionPlan-BPnu-yfT.js +2 -0
- package/dist/web/assets/TaskReason-C5g8DpOy.js +1 -0
- package/dist/web/assets/Teleport-BV0XYmdS.js +1 -0
- package/dist/web/assets/TextField-C69MdaFy.js +1 -0
- package/dist/web/assets/Textarea-D1Kzx_7L.js +1 -0
- package/dist/web/assets/UiChip-BqOpp18Q.js +1 -0
- package/dist/web/assets/UiDialog-BAWkdfF-.js +1 -0
- package/dist/web/assets/UiDisclosure-mGmGItAv.js +1 -0
- package/dist/web/assets/UiIcon-BUYpKd4D.js +1 -0
- package/dist/web/assets/UiIconButton-CeiP7Vmj.js +1 -0
- package/dist/web/assets/UiNotice-BlznzX5i.js +1 -0
- package/dist/web/assets/UiSegmented-DlgYMxnc.js +1 -0
- package/dist/web/assets/UiSelect-BWViyott.js +1 -0
- package/dist/web/assets/UiWeight-DZwt7cIP.js +1 -0
- package/dist/web/assets/UnassignedConversationsPanel-DV2CpIdb.js +1 -0
- package/dist/web/assets/VirtualDirectoryList-D-3X_X7D.js +1 -0
- package/dist/web/assets/VisuallyHiddenInput-BjPsr2D4.js +1 -0
- package/dist/web/assets/Workbench3D-CVlnk7bc.js +2 -0
- package/dist/web/assets/_plugin-vue_export-helper-lED7mxHY.js +9 -0
- package/dist/web/assets/accordion-GR6gjqFY.js +1 -0
- package/dist/web/assets/agent-pins-D2cylMl0.js +1 -0
- 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
- package/dist/web/assets/{agent-roster-records-DVgD9i6q.js → agent-roster-records-DgWGHLHW.js} +1 -1
- package/dist/web/assets/agent-task-board-DCS97QK2.js +1 -0
- package/dist/web/assets/{agent-work-summary-CUMg6XKp.js → agent-work-summary-QPOQuybY.js} +1 -1
- package/dist/web/assets/{attach-closest-edge-BqQXNoAj.js → attach-closest-edge-B5hSH5Q1.js} +1 -1
- package/dist/web/assets/{attention-store-C0D-sZNV.js → attention-store-DKza0N1e.js} +1 -1
- package/dist/web/assets/badge-CG2m9xwC.js +1 -0
- package/dist/web/assets/button-CZBMEiSm.js +1 -0
- package/dist/web/assets/checkbox-3VSDPUJw.js +1 -0
- package/dist/web/assets/{client-BgxDxCVo.js → client-Dwnwq6uu.js} +1 -1
- package/dist/web/assets/{client-links-store-BoDDNO2M.js → client-links-store-DG6AhNPP.js} +1 -1
- package/dist/web/assets/console-ny5TvCWK.js +1 -0
- package/dist/web/assets/conversation-launcher-settings-Ds-piWNR.js +1 -0
- package/dist/web/assets/{design-lab-B-njEjVo.js → design-lab-DrVlcS2x.js} +1 -1
- package/dist/web/assets/dialog-C3x9ziBB.js +1 -0
- package/dist/web/assets/dist-CB11Zet2.js +1 -0
- package/dist/web/assets/dropdown-menu-Cdtg4lAd.js +1 -0
- package/dist/web/assets/field-DMSD3CwL.js +1 -0
- package/dist/web/assets/{identity-IcZw_zYG.js → identity-DI_OdSEg.js} +1 -1
- package/dist/web/assets/index-B5zVxSJb.css +1 -0
- package/dist/web/assets/index-S0AnueS1.js +2 -0
- package/dist/web/assets/is-equal-8VOV02sH.js +1 -0
- package/dist/web/assets/{judgment-api-ldtIv-Jc.js → judgment-api-CwnpLQOf.js} +1 -1
- package/dist/web/assets/label-table-vGnKmYm3.js +1 -0
- package/dist/web/assets/{model-DvzuuyNk.js → model-BOXKOC62.js} +1 -1
- package/dist/web/assets/{model-mDDN02UJ.js → model-BlAV3okF.js} +1 -1
- package/dist/web/assets/{model-D2VmKHYm.js → model-C7hgak_o.js} +1 -1
- package/dist/web/assets/{model-2gNC7xGH.js → model-CmYu_CSs.js} +1 -1
- package/dist/web/assets/{model-DL29Qg9K.js → model-DSSYQ-i_.js} +1 -1
- package/dist/web/assets/{model-DvwLThbs.js → model-kV1gs-y2.js} +1 -1
- package/dist/web/assets/{motion-preference-BquW2Vpx.js → motion-preference-fHFXX4cl.js} +1 -1
- package/dist/web/assets/{occupation-catalog-CwMNzUWJ.js → occupation-catalog-DOk8egq8.js} +1 -1
- package/dist/web/assets/{orchestration-filters-DhxYUaNx.js → orchestration-filters-BqUPBFf1.js} +1 -1
- package/dist/web/assets/page-title-D1CadCvf.js +1 -0
- package/dist/web/assets/profile-model-DGbpJdVC.js +1 -0
- package/dist/web/assets/{project-board-layout-LQu5EwBM.js → project-board-layout-Dtyrl2is.js} +1 -1
- package/dist/web/assets/project-board-settings-CNVNKEfm.js +1 -0
- package/dist/web/assets/{project-capture-DHvCDGGz.js → project-capture-BpaGUI-m.js} +1 -1
- package/dist/web/assets/{project-origin-DDVfUP1_.js → project-origin-DJ4d13mb.js} +1 -1
- package/dist/web/assets/project-team-api-yJVsib_j.js +1 -0
- package/dist/web/assets/{quick-edit-api-DPb69BlT.js → quick-edit-api-CBMbWX0d.js} +1 -1
- package/dist/web/assets/rolldown-runtime-4tVxZq34.js +1 -0
- package/dist/web/assets/runtime-dom.esm-bundler-ClO7ICIC.js +2 -0
- package/dist/web/assets/select-CCN-VOqx.js +1 -0
- package/dist/web/assets/shared-report-BRgNEV5m.js +1 -0
- package/dist/web/assets/source-adapters-8UHmhZTa.js +1 -0
- package/dist/web/assets/task-labels-pCGKthln.js +1 -0
- package/dist/web/assets/ui-Bfbk4_Xk.js +1 -0
- package/dist/web/assets/{useAgentRecords-D3upwp_U.js → useAgentRecords-DZPebmJ_.js} +1 -1
- package/dist/web/assets/useApi-CROJJdhE-CpF4ddpD.js +1 -0
- package/dist/web/assets/useDirection-DXu4lssv.js +1 -0
- package/dist/web/assets/useFocusReturn-DVcg2RDp.js +1 -0
- package/dist/web/assets/useForwardExpose-CNq5826B.js +1 -0
- package/dist/web/assets/useKnowledgeItemPeek-CxwXNZqm.js +1 -0
- package/dist/web/assets/useMinimumLoadingDisplay-SSJELjga.js +1 -0
- package/dist/web/assets/usePrimitiveElement-WBpNZTN_.js +1 -0
- package/dist/web/assets/useRoutePeek-U71ADWt0.js +1 -0
- package/dist/web/assets/{useTypeahead-C4mRUlUC.js → useTypeahead-CJkAiAa9.js} +1 -1
- package/dist/web/assets/utils-CfVEk15i.js +1 -0
- package/dist/web/assets/vue-router-BFTYTsOL.js +1 -0
- package/dist/web/index.html +46 -41
- package/docs/agent-conversations-and-collaboration.md +23 -9
- package/docs/agent-interface-architecture.md +25 -0
- package/docs/client-connections.md +47 -0
- package/docs/client-links.md +4 -0
- package/docs/employee-agents.md +1 -1
- package/graph-provider/fuli_graph/agent_conversation_models.py +2 -1
- package/graph-provider/fuli_graph/conversation_context.py +40 -90
- package/graph-provider/fuli_graph/store_agent_conversations.py +26 -15
- package/graph-provider/pyproject.toml +1 -1
- package/native/win32/fuli-win-helper.exe +0 -0
- package/npm-shrinkwrap.json +31 -31
- package/package.json +3 -3
- package/skills/capturing-session-knowledge/SKILL.md +7 -0
- package/skills/capturing-session-knowledge/references/coordination.md +4 -0
- package/skills/capturing-session-knowledge/references/retrieval.md +7 -0
- package/skills/operating-fuli/SKILL.md +3 -2
- package/skills/operating-fuli/references/workflow-recipes.md +4 -1
- package/src/agent-apps/host-tools/catalog.js +4 -0
- package/src/agent-kits/client-installer.js +29 -0
- package/src/agent-kits/derived-file.js +15 -0
- package/src/agent-kits/executable-download.js +53 -0
- package/src/agent-kits/executables.js +87 -0
- package/src/agent-kits/fuli-installer-manifest.json +125 -0
- package/src/agent-kits/installer-manifest.js +36 -0
- package/src/agent-kits/installer-shadow.js +82 -0
- package/src/agent-kits/launcher-host-config.js +56 -0
- package/src/agent-kits/pins.js +49 -0
- package/src/agent-kits/ports.js +13 -0
- package/src/agent-kits/session-clients.js +57 -0
- package/src/agent-kits/session-launcher.js +55 -0
- package/src/agent-kits/session-offers.js +67 -0
- package/src/agent-kits/vendor/agent-installer/LICENSE +21 -0
- package/src/agent-kits/vendor/agent-installer/README.md +9 -0
- package/src/agent-kits/vendor/agent-installer/index.d.ts +129 -0
- package/src/agent-kits/vendor/agent-installer/index.mjs +188 -0
- package/src/agent-kits/vendor/agent-session-launcher/LICENSE +21 -0
- package/src/agent-kits/vendor/agent-session-launcher/README.md +9 -0
- package/src/agent-kits/vendor/agent-session-launcher/index.d.ts +101 -0
- package/src/agent-kits/vendor/agent-session-launcher/index.mjs +159 -0
- package/src/agent-tools/agent-conversation-definitions.js +1 -1
- package/src/agent-tools/agent-workflow-definitions.js +49 -0
- package/src/agent-tools/graph-definitions.js +2 -0
- package/src/agent-tools/graph-handlers.js +2 -0
- package/src/agent-tools/interface-catalog.js +4 -1
- package/src/agent-tools/knowledge-definitions.js +7 -0
- package/src/agent-workflows/agent-tools.js +59 -0
- package/src/agent-workflows/port.js +179 -0
- package/src/agent-workflows/store.js +156 -0
- package/src/agents/claude-code/conversation-transcript.js +8 -0
- package/src/agents/claude-code/lifecycle-hook.js +9 -0
- package/src/agents/claude-code/session-client.js +29 -0
- package/src/agents/codex/conversation-transcript.js +6 -0
- package/src/agents/identity-receipt.js +1 -0
- package/src/data-format/local-stores.js +7 -1
- package/src/desktop/windows-desktop-client.js +120 -0
- package/src/desktop/windows-rollback-command.js +6 -2
- package/src/desktop/windows-rollback.js +7 -1
- package/src/desktop/windows-tray-update.js +19 -31
- package/src/desktop/windows-uninstall-command.js +2 -1
- package/src/desktop/windows-uninstall.js +10 -4
- package/src/desktop/windows-update-command.js +7 -2
- package/src/desktop/windows-update-lock.js +9 -7
- package/src/desktop/windows-update.js +7 -1
- package/src/employees/recruitment.js +12 -3
- package/src/graphiti/agent-conversations.js +1 -1
- package/src/graphiti/current-project-knowledge-search.js +3 -2
- package/src/graphiti/federated-search.js +4 -2
- package/src/graphiti/fla-mention.js +25 -8
- package/src/graphiti/fla-picker.js +25 -4
- package/src/graphiti/knowledge-result-budget.js +63 -9
- package/src/graphiti/local-runtimes.js +4 -0
- package/src/graphiti/project-agent-task-entry.js +8 -3
- package/src/graphiti/task-entry-named-fla.js +41 -19
- package/src/http/agent-workflows-api-router.js +36 -0
- package/src/http/api-router.js +9 -0
- package/src/http/doctor-api-router.js +31 -0
- package/src/http/session-launch-api-router.js +36 -0
- package/src/mcp/process-registry.js +12 -6
- package/src/mcp/session-id.js +1 -0
- package/src/mcp/tool-annotations.js +2 -0
- package/src/native-runtime/neo4j-install.js +6 -23
- package/src/native-runtime/resumable-download.js +24 -0
- package/src/native-runtime/windows-assets.js +30 -13
- package/src/native-runtime/windows-processes.js +5 -2
- package/src/presence/windows-helper-pin.js +1 -1
- package/src/server.js +2 -1
- package/src/setup/paths.js +3 -0
- package/src/system/console-update.js +10 -2
- package/src/system/detached-job.js +8 -0
- package/src/system/doctor-repair.js +61 -0
- package/src/system/doctor.js +119 -0
- package/src/system/package-version-checker.js +8 -1
- package/src/system/system-service.js +52 -13
- package/src/text/token-estimate.js +11 -0
- package/dist/web/assets/AboutPage-45tAvgRN.js +0 -1
- package/dist/web/assets/AgentHand-CQbDVBYv.js +0 -1
- package/dist/web/assets/AgentMentionCopy-BHFp527T.js +0 -1
- package/dist/web/assets/AgentMentionCopy-BIWsPf22.css +0 -1
- package/dist/web/assets/AgentName-ChhbnrG9.js +0 -1
- package/dist/web/assets/AgentProfilePage-ZzEtdSKe.js +0 -1
- package/dist/web/assets/AgentServicesPage-B92EXg56.js +0 -1
- package/dist/web/assets/AgentsDirectoryPage-B841hRHZ.js +0 -1
- package/dist/web/assets/BackLink-C0mcoSn4.js +0 -1
- package/dist/web/assets/BoardMoveMenu-CX8jKv0V.js +0 -1
- package/dist/web/assets/CaptureChangePage-B9wtEGy3.js +0 -1
- package/dist/web/assets/Card-BOk3WbC1.js +0 -1
- package/dist/web/assets/CardHeader-79hIs3Wc.js +0 -1
- package/dist/web/assets/CardTitle-CMWcRH62.js +0 -1
- package/dist/web/assets/ConnectionsPage-CCSZ-v6k.js +0 -1
- package/dist/web/assets/CreateProjectDialog-vDAHEZ6t.js +0 -2
- package/dist/web/assets/DataFormatPage-oRc6mBRh.js +0 -2
- package/dist/web/assets/DialogFooter-mK0XBX_L.js +0 -1
- package/dist/web/assets/EmployeeScopeDialog-Bp0zLRG5.js +0 -1
- package/dist/web/assets/EmployeeWorkbenchPage-D34173ED.js +0 -3
- package/dist/web/assets/FieldDescription-C33NBGIe.js +0 -1
- package/dist/web/assets/GrowthLoading-CTsRhLfj.js +0 -1
- package/dist/web/assets/InboxPage-CekhZG9R.js +0 -4
- package/dist/web/assets/Input-jNvD1lEt.js +0 -1
- package/dist/web/assets/KnowledgeHardDeleteSection-OgNe3xoA.js +0 -1
- package/dist/web/assets/KnowledgeItemEditPage-CxUFvj7Q.js +0 -1
- package/dist/web/assets/KnowledgeItemSummaryCard-CkD55bXQ.js +0 -1
- package/dist/web/assets/KnowledgeOrganizerPage-DTfhmq7x.js +0 -1
- package/dist/web/assets/KnowledgePage-D_XPxm7U.js +0 -1
- package/dist/web/assets/KnowledgePeek-fE8eZ9yB.js +0 -1
- package/dist/web/assets/KnowledgeTurnReceiptPage-CNoJA8j_.js +0 -1
- package/dist/web/assets/KnowledgeWorkspace-CizF6YnE.js +0 -4
- package/dist/web/assets/Label-BuJcMh9m.js +0 -1
- package/dist/web/assets/ModelSettingsPage-adiuhTSX.js +0 -1
- package/dist/web/assets/NotFoundPage-JAy5KIL8.js +0 -1
- package/dist/web/assets/OccupationsPage-DG0uQx85.js +0 -1
- package/dist/web/assets/OverviewPage-DwCiWNdy.js +0 -2
- package/dist/web/assets/PersonalProfilePage-Cb-AKL4K.js +0 -1
- package/dist/web/assets/PersonalProjectsPage-BT7ebQUu.js +0 -1
- package/dist/web/assets/PopperContent-Dtpk5py4.js +0 -1
- package/dist/web/assets/Presence-9_BFOmAz.js +0 -3
- package/dist/web/assets/ProjectAgentDetailPage-WmxfcCCM.js +0 -8
- package/dist/web/assets/ProjectAgentDialog-BgdFB7il.js +0 -5
- package/dist/web/assets/ProjectAgentFirstTask-BfX-v_g5.js +0 -1
- package/dist/web/assets/ProjectAgentsPage-DAlfUVqM.js +0 -1
- package/dist/web/assets/ProjectAgentsPage-DvJh40Xl.css +0 -1
- package/dist/web/assets/ProjectJudgmentPolicy-DGFTRTvW.js +0 -1
- package/dist/web/assets/ProjectScopePicker-wlhLR465.js +0 -1
- package/dist/web/assets/PublicProjectsPage-LTXsYNme.js +0 -1
- package/dist/web/assets/RadioGroupItem-CUyRbWCt.js +0 -1
- package/dist/web/assets/RoundtablesPage-slbD8isz.js +0 -1
- package/dist/web/assets/RovingFocusGroup-DJ9gp0xI.js +0 -1
- package/dist/web/assets/RovingFocusItem-BGt9xXis.js +0 -1
- package/dist/web/assets/SessionMigrationPage-HxM5zSjY.js +0 -1
- package/dist/web/assets/SessionRecordsPage-CbZ4xiIb.js +0 -1
- package/dist/web/assets/SettingsPage-BSXZinjo.js +0 -1
- package/dist/web/assets/SharedJefaReportPage-4MylH5Ao.js +0 -1
- package/dist/web/assets/TableHeader-aFcD9wsQ.js +0 -1
- package/dist/web/assets/TabsContent-ZCMehxYx.js +0 -1
- package/dist/web/assets/TabsTrigger-BTZQbe9n.js +0 -1
- package/dist/web/assets/TagVocabularyPage-CCm1HBg3.js +0 -1
- package/dist/web/assets/TaskBlockerClear-Dg1T2rcU.js +0 -1
- package/dist/web/assets/TaskBlockerNotice-DVYIiv3y.js +0 -1
- package/dist/web/assets/TaskExecutionPlan-B411P1VJ.js +0 -2
- package/dist/web/assets/TaskExecutionPlan-uimNYWdr.css +0 -1
- package/dist/web/assets/TaskReason-CVnoUuFe.js +0 -1
- package/dist/web/assets/Teleport-Co_blCnp.js +0 -1
- package/dist/web/assets/TextField-BqL6E9zF.js +0 -1
- package/dist/web/assets/Textarea-DIra6o5H.js +0 -1
- package/dist/web/assets/UiChip-FMcrDGe6.js +0 -1
- package/dist/web/assets/UiDialog-CvESkb45.js +0 -1
- package/dist/web/assets/UiDisclosure-D3xZRwVK.js +0 -1
- package/dist/web/assets/UiIcon-CSLaDsID.js +0 -1
- package/dist/web/assets/UiIconButton-C1o6HJ39.js +0 -1
- package/dist/web/assets/UiNotice-CR_4j5lF.js +0 -1
- package/dist/web/assets/UiSegmented-Iu9IH18R.js +0 -1
- package/dist/web/assets/UiSelect-Cs53P6h-.js +0 -1
- package/dist/web/assets/UiToggle-B2sPCVZe.css +0 -1
- package/dist/web/assets/UiToggle-CSb7ErVS.js +0 -1
- package/dist/web/assets/UiWeight-BsbP9h9p.js +0 -1
- package/dist/web/assets/UnassignedConversationsPanel-D2Y2Vs-z.js +0 -1
- package/dist/web/assets/VirtualDirectoryList-DLhTuyoY.js +0 -1
- package/dist/web/assets/VisuallyHiddenInput-DoZPyFZU.js +0 -1
- package/dist/web/assets/Workbench3D-BBEJ0vTb.js +0 -2
- package/dist/web/assets/_plugin-vue_export-helper-DKHjpKWY.js +0 -10
- package/dist/web/assets/accordion-DX4SO0oU.js +0 -1
- package/dist/web/assets/agent-pins-Djo8-s9j.js +0 -1
- package/dist/web/assets/badge-CBT_nrTA.js +0 -1
- package/dist/web/assets/button-BXkZ6rdB.js +0 -1
- package/dist/web/assets/checkbox-BPKmRFwj.js +0 -1
- package/dist/web/assets/console-KIWUM9xy.js +0 -1
- package/dist/web/assets/conversation-launcher-settings-Dfhkli80.js +0 -1
- package/dist/web/assets/dialog-BSKT8LUI.js +0 -1
- package/dist/web/assets/dist-KV3E0kAK.js +0 -1
- package/dist/web/assets/dropdown-menu-BMeAsFQe.js +0 -1
- package/dist/web/assets/field-D_zmve89.js +0 -1
- package/dist/web/assets/index-CyoKfCXy.js +0 -2
- package/dist/web/assets/index-DuLqKIn8.css +0 -1
- package/dist/web/assets/label-table-BAIaH-tx.js +0 -1
- package/dist/web/assets/page-title-B2inyRB1.js +0 -1
- package/dist/web/assets/profile-model-C7xYkCgE.js +0 -1
- package/dist/web/assets/project-team-api-DNSZitOp.js +0 -1
- package/dist/web/assets/select-ByHJaNRv.js +0 -1
- package/dist/web/assets/shared-report-ClDt0UMJ.js +0 -3
- package/dist/web/assets/task-labels-De_F8I3O.js +0 -1
- package/dist/web/assets/ui-CMR2UkVp.js +0 -1
- package/dist/web/assets/useApi-CROJJdhE-lwt7Bu-G.js +0 -1
- package/dist/web/assets/useDirection-DhUUV4Jm.js +0 -1
- package/dist/web/assets/useFocusReturn-ChxuGVqv.js +0 -1
- package/dist/web/assets/useForwardExpose-BRdp7olV.js +0 -1
- package/dist/web/assets/useKnowledgeItemPeek-CRNR9LmU.js +0 -1
- package/dist/web/assets/useMinimumLoadingDisplay-DejHIUi_.js +0 -1
- package/dist/web/assets/useRoutePeek-B5Ukp8vX.js +0 -1
- package/dist/web/assets/utils-BH3OkU12.js +0 -1
- package/dist/web/assets/vue-router-B6l0ZzTV.js +0 -1
- /package/dist/web/assets/{shared-report-CjLAmGZI.css → EmployeeTaskBoard-CjLAmGZI.css} +0 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { spawn } from 'node:child_process';
|
|
2
|
+
import { statSync } from 'node:fs';
|
|
3
|
+
import { isAbsolute, posix, win32 } from 'node:path';
|
|
4
|
+
|
|
5
|
+
const MAX_BYTES = 4 * 1024 * 1024;
|
|
6
|
+
|
|
7
|
+
/** Default and largest accepted `timeoutMs`. */
|
|
8
|
+
const DEFAULT_TIMEOUT_MS = 60000;
|
|
9
|
+
const MAX_TIMEOUT_MS = 600000;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The per-user directory of hand-written client files shared by every host,
|
|
13
|
+
* or undefined when the environment does not name a home directory:
|
|
14
|
+
* `agent-clients/extensions` under `%APPDATA%` on Windows, and under
|
|
15
|
+
* `$XDG_CONFIG_HOME` (when absolute) or `~/.config` elsewhere. While it does
|
|
16
|
+
* not exist, a directory left at the old location
|
|
17
|
+
* (`agent-session-launcher/clients`) is returned instead; files are never
|
|
18
|
+
* moved. Shared with agent-session-launcher, whose binding resolves the same
|
|
19
|
+
* path.
|
|
20
|
+
*/
|
|
21
|
+
export function defaultExtensionsDirectory(env = process.env, platform = process.platform) {
|
|
22
|
+
const root = sharedBase(env, platform);
|
|
23
|
+
if (root === undefined) return undefined;
|
|
24
|
+
const path = platform === 'win32' ? win32 : posix;
|
|
25
|
+
const current = path.join(root, 'agent-clients', 'extensions');
|
|
26
|
+
const legacy = path.join(root, 'agent-session-launcher', 'clients');
|
|
27
|
+
return !isDirectory(current) && isDirectory(legacy) ? legacy : current;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** Where originals are copied before `product` changes a client: `agent-clients/backups/<product>`. */
|
|
31
|
+
export function defaultBackupsDirectory(product, env = process.env, platform = process.platform) {
|
|
32
|
+
const root = sharedBase(env, platform);
|
|
33
|
+
if (root === undefined) return undefined;
|
|
34
|
+
return (platform === 'win32' ? win32 : posix).join(root, 'agent-clients', 'backups', product);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function sharedBase(env, platform) {
|
|
38
|
+
if (platform === 'win32') return env.APPDATA || undefined;
|
|
39
|
+
const xdg = env.XDG_CONFIG_HOME;
|
|
40
|
+
return xdg && xdg.startsWith('/') ? xdg : env.HOME ? posix.join(env.HOME, '.config') : undefined;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function isDirectory(path) {
|
|
44
|
+
try { return statSync(path).isDirectory(); } catch { return false; }
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Bind the native `agent-installer` executable and a product manifest once,
|
|
49
|
+
* then call `scan`, `status`, `plan`, `apply` and `remove`. Every failure
|
|
50
|
+
* rejects with an Error whose `code` is the installer or binding error code;
|
|
51
|
+
* nothing throws synchronously. `apply` and `remove` change files: call them
|
|
52
|
+
* only after the person chose the clients, and never retry them
|
|
53
|
+
* automatically after `unknown_outcome`; check `status` first.
|
|
54
|
+
*/
|
|
55
|
+
export function createInstaller({
|
|
56
|
+
executable, manifestPath, variables = {}, extensionsDir, backupsDir, timeoutMs = DEFAULT_TIMEOUT_MS,
|
|
57
|
+
} = {}) {
|
|
58
|
+
let invalid;
|
|
59
|
+
try {
|
|
60
|
+
for (const [name, path] of [['executable', executable], ['manifestPath', manifestPath]]) {
|
|
61
|
+
if (typeof path !== 'string' || !isAbsolute(path)) {
|
|
62
|
+
throw bindingError('invalid_arguments', `${name} must be an absolute path.`);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
for (const [name, path] of [['extensionsDir', extensionsDir], ['backupsDir', backupsDir]]) {
|
|
66
|
+
if (path !== undefined && (typeof path !== 'string' || !isAbsolute(path))) {
|
|
67
|
+
throw bindingError('invalid_arguments', `${name} must be an absolute path.`);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
if (variables === null || typeof variables !== 'object'
|
|
71
|
+
|| Object.values(variables).some(value => typeof value !== 'string')) {
|
|
72
|
+
throw bindingError('invalid_arguments', 'variables must map names to text.');
|
|
73
|
+
}
|
|
74
|
+
checkTimeout(timeoutMs, MAX_TIMEOUT_MS);
|
|
75
|
+
} catch (error) {
|
|
76
|
+
invalid = error;
|
|
77
|
+
}
|
|
78
|
+
const common = [
|
|
79
|
+
...(extensionsDir === undefined ? [] : ['--extensions', extensionsDir]),
|
|
80
|
+
'--json',
|
|
81
|
+
];
|
|
82
|
+
const product = [
|
|
83
|
+
'--product', manifestPath,
|
|
84
|
+
...Object.entries(variables ?? {}).flatMap(([key, value]) => ['--var', `${key}=${value}`]),
|
|
85
|
+
...(backupsDir === undefined ? [] : ['--backups', backupsDir]),
|
|
86
|
+
];
|
|
87
|
+
const clientArgs = clients => {
|
|
88
|
+
if (!Array.isArray(clients) || clients.length === 0 || clients.some(c => typeof c !== 'string')) {
|
|
89
|
+
throw bindingError('invalid_arguments', 'Select at least one client ID.');
|
|
90
|
+
}
|
|
91
|
+
return ['--clients', clients.join(',')];
|
|
92
|
+
};
|
|
93
|
+
const call = async args => {
|
|
94
|
+
if (invalid) throw invalid;
|
|
95
|
+
const { exitCode, response } = await runNative(executable, [...args, ...common], { timeoutMs, maxBytes: MAX_BYTES });
|
|
96
|
+
if (!response.ok) {
|
|
97
|
+
throw bindingError(response.error?.code ?? 'invalid_response', response.error?.message ?? 'The installer failed.');
|
|
98
|
+
}
|
|
99
|
+
// 0: done; 2: done, but some components were left alone.
|
|
100
|
+
if (exitCode !== 0 && exitCode !== 2) {
|
|
101
|
+
throw bindingError('invalid_response', 'The executable returned an invalid response.');
|
|
102
|
+
}
|
|
103
|
+
return { exitCode, response };
|
|
104
|
+
};
|
|
105
|
+
const results = async args => {
|
|
106
|
+
const { exitCode, response } = await call(args);
|
|
107
|
+
return {
|
|
108
|
+
clients: response.clients,
|
|
109
|
+
partial: exitCode === 2,
|
|
110
|
+
problems: response.clients.flatMap(c => c.problems.map(message => ({ client: c.id, message }))),
|
|
111
|
+
extensionErrors: response.extensionErrors,
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
return {
|
|
115
|
+
scan: async () => {
|
|
116
|
+
const { clients, extensionErrors } = (await call(['scan'])).response;
|
|
117
|
+
return { clients, extensionErrors };
|
|
118
|
+
},
|
|
119
|
+
status: async clients => {
|
|
120
|
+
const { clients: states, extensionErrors } = (await call([
|
|
121
|
+
'status', ...product, ...(clients === undefined ? [] : clientArgs(clients)),
|
|
122
|
+
])).response;
|
|
123
|
+
return { clients: states, extensionErrors };
|
|
124
|
+
},
|
|
125
|
+
plan: async clients => results(['plan', ...product, ...clientArgs(clients)]),
|
|
126
|
+
apply: async clients => results(['apply', ...product, ...clientArgs(clients)]),
|
|
127
|
+
remove: async clients => results(['remove', ...product, ...clientArgs(clients)]),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Runs the native executable once and reads its single JSON response.
|
|
133
|
+
* The same helper is copied in agent-session-launcher's binding; keep them in step.
|
|
134
|
+
* Resolves { exitCode, response }. Rejects with an Error carrying `code`:
|
|
135
|
+
* unavailable the executable could not start
|
|
136
|
+
* unknown_outcome no answer within timeoutMs; the process was killed and the
|
|
137
|
+
* action may or may not have happened, so never retry automatically
|
|
138
|
+
* invalid_response the output was not one bounded version-1 JSON object
|
|
139
|
+
*/
|
|
140
|
+
function runNative(executable, args, { input, timeoutMs, maxBytes }) {
|
|
141
|
+
return new Promise((resolve, reject) => {
|
|
142
|
+
const child = spawn(executable, args, {
|
|
143
|
+
shell: false, windowsHide: true, stdio: [input === undefined ? 'ignore' : 'pipe', 'pipe', 'ignore'],
|
|
144
|
+
});
|
|
145
|
+
const chunks = [];
|
|
146
|
+
let bytes = 0;
|
|
147
|
+
let done = false;
|
|
148
|
+
const timer = setTimeout(() => finish(bindingError('unknown_outcome',
|
|
149
|
+
`No answer within ${timeoutMs} ms; the outcome is unknown, so do not retry automatically.`), true), timeoutMs);
|
|
150
|
+
function finish(error, kill = false, value) {
|
|
151
|
+
if (done) return;
|
|
152
|
+
done = true;
|
|
153
|
+
clearTimeout(timer);
|
|
154
|
+
if (kill) child.kill();
|
|
155
|
+
if (error) reject(error); else resolve(value);
|
|
156
|
+
}
|
|
157
|
+
child.on('error', () => finish(bindingError('unavailable', 'The executable could not start.')));
|
|
158
|
+
child.stdout.on('data', chunk => {
|
|
159
|
+
bytes += chunk.length;
|
|
160
|
+
if (bytes > maxBytes) finish(bindingError('invalid_response', 'The response is too large.'), true);
|
|
161
|
+
else chunks.push(chunk);
|
|
162
|
+
});
|
|
163
|
+
child.on('close', exitCode => {
|
|
164
|
+
if (done) return;
|
|
165
|
+
let response;
|
|
166
|
+
try { response = JSON.parse(Buffer.concat(chunks).toString('utf8')); }
|
|
167
|
+
catch { return finish(bindingError('invalid_response', 'The executable did not return JSON.')); }
|
|
168
|
+
if (!response || response.version !== 1 || typeof response.ok !== 'boolean') {
|
|
169
|
+
return finish(bindingError('invalid_response', 'The executable returned an invalid response.'));
|
|
170
|
+
}
|
|
171
|
+
finish(null, false, { exitCode, response });
|
|
172
|
+
});
|
|
173
|
+
if (input !== undefined) {
|
|
174
|
+
child.stdin.on('error', () => {});
|
|
175
|
+
child.stdin.end(input);
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
function checkTimeout(timeoutMs, max) {
|
|
181
|
+
if (!Number.isSafeInteger(timeoutMs) || timeoutMs < 1 || timeoutMs > max) {
|
|
182
|
+
throw bindingError('invalid_timeout', `The timeout must be between 1 and ${max} ms.`);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function bindingError(code, message) {
|
|
187
|
+
return Object.assign(new Error(message), { code });
|
|
188
|
+
}
|
|
@@ -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-session-launcher Node binding (vendored)
|
|
2
|
+
|
|
3
|
+
Unchanged copy of `bindings/node/` (`index.mjs`, `index.d.ts`) and `LICENSE` from
|
|
4
|
+
[JevonsCode/agent-session-launcher](https://github.com/JevonsCode/agent-session-launcher)
|
|
5
|
+
tag `v0.4.0`, commit `d3656e75bd118500b91f5f325ce7b487c2fb469d`.
|
|
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/session-launcher.js`.
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export interface SessionTarget {
|
|
2
|
+
client: string;
|
|
3
|
+
conversationId?: string;
|
|
4
|
+
hostSessionId?: string;
|
|
5
|
+
workspacePath?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface LaunchPreferences {
|
|
9
|
+
macosTerminal?: 'terminal' | 'iterm';
|
|
10
|
+
itermOpenMode?: 'new-window' | 'new-tab';
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface LaunchPlan {
|
|
14
|
+
kind: 'cli' | 'uri';
|
|
15
|
+
uri?: string;
|
|
16
|
+
executable?: string;
|
|
17
|
+
arguments?: string[];
|
|
18
|
+
workspacePath?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Windows CLI plans only: Windows Terminal when `wt.exe` is on PATH,
|
|
21
|
+
* otherwise a new console window through Windows PowerShell.
|
|
22
|
+
*/
|
|
23
|
+
opener?: 'windows-terminal' | 'powershell';
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface ClientInfo {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
builtin: boolean;
|
|
31
|
+
/** Where the client was first defined. */
|
|
32
|
+
origin: 'builtin' | 'extension' | 'host';
|
|
33
|
+
/** The user extension file that defines or customizes this client. */
|
|
34
|
+
extensionFile?: string;
|
|
35
|
+
/** null: identified, but no verified opening method. */
|
|
36
|
+
kind: 'cli' | 'uri' | null;
|
|
37
|
+
idSource?: 'conversationId' | 'hostSessionId';
|
|
38
|
+
idFormat?: 'safe' | 'uuid' | 'claude-desktop' | 'cursor-background';
|
|
39
|
+
requiresWorkspace: boolean;
|
|
40
|
+
openSupported: boolean;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** A skipped extension file; `file` is a file name, never a full path. */
|
|
44
|
+
export interface ExtensionProblem {
|
|
45
|
+
file?: string;
|
|
46
|
+
message: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Every failure rejects (never throws synchronously) with an Error whose
|
|
51
|
+
* `code` is a launcher error code from the protocol, or one of the binding's:
|
|
52
|
+
* - `invalid_executable`, `invalid_timeout`, `invalid_configuration`,
|
|
53
|
+
* `invalid_request`: the call was refused before anything started;
|
|
54
|
+
* - `unavailable`: the executable could not start;
|
|
55
|
+
* - `invalid_response`: the output was not one bounded version-1 JSON object;
|
|
56
|
+
* - `unknown_outcome`: no answer within `timeoutMs`; the process was killed
|
|
57
|
+
* and the action may already have happened. Never retry automatically,
|
|
58
|
+
* especially `open`: the session may already be open.
|
|
59
|
+
*/
|
|
60
|
+
export interface LauncherError extends Error {
|
|
61
|
+
code: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface LauncherOptions {
|
|
65
|
+
/** Absolute path to the native executable for this OS and CPU. */
|
|
66
|
+
executable: string;
|
|
67
|
+
/** Absolute path to a trusted host configuration file. */
|
|
68
|
+
configPath?: string;
|
|
69
|
+
/** Absolute path to the user's extension directory, usually `defaultExtensionsDirectory()`. */
|
|
70
|
+
extensionsDir?: string;
|
|
71
|
+
/** Milliseconds to wait for each call: default 8000, at most 60000. */
|
|
72
|
+
timeoutMs?: number;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface Launcher {
|
|
76
|
+
classify(source: string, options?: { claudeEntrypoint?: string }): Promise<string>;
|
|
77
|
+
clients(): Promise<{ clients: ClientInfo[]; extensionErrors: ExtensionProblem[] }>;
|
|
78
|
+
inspect(target: SessionTarget): Promise<{ plan: LaunchPlan; openSupported: boolean }>;
|
|
79
|
+
/** Only for an explicit user action; never retry automatically on `unknown_outcome`. */
|
|
80
|
+
open(target: SessionTarget, preferences?: LaunchPreferences): Promise<'launch_requested'>;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function createLauncher(options: LauncherOptions): Launcher;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The shared per-user extension directory (`agent-clients/extensions` under
|
|
87
|
+
* `%APPDATA%`, `$XDG_CONFIG_HOME` or `~/.config`), or the 0.3 directory
|
|
88
|
+
* `agent-session-launcher/clients` while the new one does not exist;
|
|
89
|
+
* undefined without a home directory.
|
|
90
|
+
*/
|
|
91
|
+
export function defaultExtensionsDirectory(
|
|
92
|
+
env?: Record<string, string | undefined>,
|
|
93
|
+
platform?: string,
|
|
94
|
+
): string | undefined;
|
|
95
|
+
|
|
96
|
+
/** One raw request; resolves `ok: false` responses instead of rejecting them. */
|
|
97
|
+
export function requestLauncher(
|
|
98
|
+
executable: string,
|
|
99
|
+
request: Record<string, unknown>,
|
|
100
|
+
options?: { timeoutMs?: number; configPath?: string; extensionsDir?: string },
|
|
101
|
+
): Promise<Record<string, unknown> & { version: 1; ok: boolean }>;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { spawn } from 'node:child_process';
|
|
2
|
+
import { statSync } from 'node:fs';
|
|
3
|
+
import { isAbsolute, posix, win32 } from 'node:path';
|
|
4
|
+
|
|
5
|
+
const MAX_BYTES = 65536;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The per-user directory of hand-written client files shared by every host,
|
|
9
|
+
* or undefined when the environment does not name a home directory:
|
|
10
|
+
* `agent-clients/extensions` under `%APPDATA%` on Windows, and under
|
|
11
|
+
* `$XDG_CONFIG_HOME` (when absolute) or `~/.config` elsewhere. While it does
|
|
12
|
+
* not exist, a directory left at the 0.3 location
|
|
13
|
+
* (`agent-session-launcher/clients`) is returned instead; files are never
|
|
14
|
+
* moved. Shared with agent-installer, whose binding resolves the same path.
|
|
15
|
+
*/
|
|
16
|
+
export function defaultExtensionsDirectory(env = process.env, platform = process.platform) {
|
|
17
|
+
const path = platform === 'win32' ? win32 : posix;
|
|
18
|
+
const xdg = env.XDG_CONFIG_HOME;
|
|
19
|
+
const base = platform === 'win32'
|
|
20
|
+
? env.APPDATA || undefined
|
|
21
|
+
: xdg && xdg.startsWith('/') ? xdg : env.HOME ? posix.join(env.HOME, '.config') : undefined;
|
|
22
|
+
if (base === undefined) return undefined;
|
|
23
|
+
const current = path.join(base, 'agent-clients', 'extensions');
|
|
24
|
+
const legacy = path.join(base, 'agent-session-launcher', 'clients');
|
|
25
|
+
return !isDirectory(current) && isDirectory(legacy) ? legacy : current;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function isDirectory(path) {
|
|
29
|
+
try { return statSync(path).isDirectory(); } catch { return false; }
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** Default and largest accepted `timeoutMs`. */
|
|
33
|
+
const DEFAULT_TIMEOUT_MS = 8000;
|
|
34
|
+
const MAX_TIMEOUT_MS = 60000;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Bind the native executable, a trusted config file and the user's extension
|
|
38
|
+
* directory once, then call `classify`, `clients`, `inspect` and `open`.
|
|
39
|
+
* Every failure rejects with an Error whose `code` is the launcher or binding
|
|
40
|
+
* error code; nothing throws synchronously.
|
|
41
|
+
*/
|
|
42
|
+
export function createLauncher({ executable, configPath, extensionsDir, timeoutMs = DEFAULT_TIMEOUT_MS } = {}) {
|
|
43
|
+
const options = { configPath, extensionsDir, timeoutMs };
|
|
44
|
+
async function call(request) {
|
|
45
|
+
const result = await requestLauncher(executable, { version: 1, ...request }, options);
|
|
46
|
+
if (!result.ok) throw bindingError(result.error.code, result.error.message);
|
|
47
|
+
return result;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
classify: async (source, { claudeEntrypoint } = {}) => (await call({
|
|
51
|
+
action: 'classify', source, ...(claudeEntrypoint === undefined ? {} : { claudeEntrypoint }),
|
|
52
|
+
})).client,
|
|
53
|
+
clients: async () => {
|
|
54
|
+
const { clients, extensionErrors } = await call({ action: 'clients' });
|
|
55
|
+
return { clients, extensionErrors };
|
|
56
|
+
},
|
|
57
|
+
inspect: async target => {
|
|
58
|
+
const { plan, openSupported } = await call({ action: 'inspect', target });
|
|
59
|
+
return { plan, openSupported };
|
|
60
|
+
},
|
|
61
|
+
/** Only for an explicit user action. Never retry automatically on `unknown_outcome`. */
|
|
62
|
+
open: async (target, preferences) => (await call({
|
|
63
|
+
action: 'open', target, ...(preferences === undefined ? {} : { preferences }),
|
|
64
|
+
})).status,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Call the bundled native executable with one request and resolve its response,
|
|
70
|
+
* including `ok: false` responses. The caller authorizes `open`; no shell is used.
|
|
71
|
+
*/
|
|
72
|
+
export async function requestLauncher(executable, request, {
|
|
73
|
+
timeoutMs = DEFAULT_TIMEOUT_MS, configPath, extensionsDir,
|
|
74
|
+
} = {}) {
|
|
75
|
+
if (typeof executable !== 'string' || !isAbsolute(executable)) {
|
|
76
|
+
throw bindingError('invalid_executable', 'The launcher executable path must be absolute.');
|
|
77
|
+
}
|
|
78
|
+
checkTimeout(timeoutMs, MAX_TIMEOUT_MS);
|
|
79
|
+
if (configPath !== undefined && (typeof configPath !== 'string' || !isAbsolute(configPath))) {
|
|
80
|
+
throw bindingError('invalid_configuration', 'The trusted configuration path must be absolute.');
|
|
81
|
+
}
|
|
82
|
+
if (extensionsDir !== undefined && (typeof extensionsDir !== 'string' || !isAbsolute(extensionsDir))) {
|
|
83
|
+
throw bindingError('invalid_configuration', 'The extensions directory path must be absolute.');
|
|
84
|
+
}
|
|
85
|
+
let input;
|
|
86
|
+
try { input = JSON.stringify(request); } catch { throw bindingError('invalid_request', 'The request is not JSON.'); }
|
|
87
|
+
if (typeof input !== 'string' || Buffer.byteLength(input) > MAX_BYTES) {
|
|
88
|
+
throw bindingError('invalid_request', 'The request is too large or is not JSON.');
|
|
89
|
+
}
|
|
90
|
+
const args = [
|
|
91
|
+
...(configPath === undefined ? [] : ['--config', configPath]),
|
|
92
|
+
...(extensionsDir === undefined ? [] : ['--extensions', extensionsDir]),
|
|
93
|
+
];
|
|
94
|
+
const { exitCode, response } = await runNative(executable, args, { input, timeoutMs, maxBytes: MAX_BYTES });
|
|
95
|
+
// The launcher exits non-zero exactly when `ok` is false.
|
|
96
|
+
if (exitCode !== 0 && response.ok) {
|
|
97
|
+
throw bindingError('invalid_response', 'The executable returned an invalid response.');
|
|
98
|
+
}
|
|
99
|
+
return response;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Runs the native executable once and reads its single JSON response.
|
|
104
|
+
* The same helper is copied in agent-installer's binding; keep them in step.
|
|
105
|
+
* Resolves { exitCode, response }. Rejects with an Error carrying `code`:
|
|
106
|
+
* unavailable the executable could not start
|
|
107
|
+
* unknown_outcome no answer within timeoutMs; the process was killed and the
|
|
108
|
+
* action may or may not have happened, so never retry automatically
|
|
109
|
+
* invalid_response the output was not one bounded version-1 JSON object
|
|
110
|
+
*/
|
|
111
|
+
function runNative(executable, args, { input, timeoutMs, maxBytes }) {
|
|
112
|
+
return new Promise((resolve, reject) => {
|
|
113
|
+
const child = spawn(executable, args, {
|
|
114
|
+
shell: false, windowsHide: true, stdio: [input === undefined ? 'ignore' : 'pipe', 'pipe', 'ignore'],
|
|
115
|
+
});
|
|
116
|
+
const chunks = [];
|
|
117
|
+
let bytes = 0;
|
|
118
|
+
let done = false;
|
|
119
|
+
const timer = setTimeout(() => finish(bindingError('unknown_outcome',
|
|
120
|
+
`No answer within ${timeoutMs} ms; the outcome is unknown, so do not retry automatically.`), true), timeoutMs);
|
|
121
|
+
function finish(error, kill = false, value) {
|
|
122
|
+
if (done) return;
|
|
123
|
+
done = true;
|
|
124
|
+
clearTimeout(timer);
|
|
125
|
+
if (kill) child.kill();
|
|
126
|
+
if (error) reject(error); else resolve(value);
|
|
127
|
+
}
|
|
128
|
+
child.on('error', () => finish(bindingError('unavailable', 'The executable could not start.')));
|
|
129
|
+
child.stdout.on('data', chunk => {
|
|
130
|
+
bytes += chunk.length;
|
|
131
|
+
if (bytes > maxBytes) finish(bindingError('invalid_response', 'The response is too large.'), true);
|
|
132
|
+
else chunks.push(chunk);
|
|
133
|
+
});
|
|
134
|
+
child.on('close', exitCode => {
|
|
135
|
+
if (done) return;
|
|
136
|
+
let response;
|
|
137
|
+
try { response = JSON.parse(Buffer.concat(chunks).toString('utf8')); }
|
|
138
|
+
catch { return finish(bindingError('invalid_response', 'The executable did not return JSON.')); }
|
|
139
|
+
if (!response || response.version !== 1 || typeof response.ok !== 'boolean') {
|
|
140
|
+
return finish(bindingError('invalid_response', 'The executable returned an invalid response.'));
|
|
141
|
+
}
|
|
142
|
+
finish(null, false, { exitCode, response });
|
|
143
|
+
});
|
|
144
|
+
if (input !== undefined) {
|
|
145
|
+
child.stdin.on('error', () => {});
|
|
146
|
+
child.stdin.end(input);
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function checkTimeout(timeoutMs, max) {
|
|
152
|
+
if (!Number.isSafeInteger(timeoutMs) || timeoutMs < 1 || timeoutMs > max) {
|
|
153
|
+
throw bindingError('invalid_timeout', `The timeout must be between 1 and ${max} ms.`);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function bindingError(code, message) {
|
|
158
|
+
return Object.assign(new Error(message), { code });
|
|
159
|
+
}
|
|
@@ -16,6 +16,6 @@ export const AGENT_CONVERSATION_DEFINITIONS = [
|
|
|
16
16
|
description: 'Read the compaction threshold, recovery context budget and capture switch. Defaults: fold older messages into a digest after 64 KB of unfolded text; recover 4000 conservative UTF-8 bytes. Raw messages are always retained.',
|
|
17
17
|
inputSchema: objectSchema(scope, required) },
|
|
18
18
|
{ name: 'update_agent_conversation_policy', title: 'WRITE · Conversation policy',
|
|
19
|
-
description: 'Configure this Agent’s scoped conversation capture and recovery. No LLM runs during capture or compaction. Raw data is retained;
|
|
19
|
+
description: 'Configure this Agent’s scoped conversation capture and recovery. No LLM runs during capture or compaction. Raw data is retained; folding only indexes history.',
|
|
20
20
|
inputSchema: objectSchema({ ...scope, compactAfterKb: integerSchema({ minimum: 8, maximum: 1024 }), contextBudget: integerSchema({ minimum: 512, maximum: 16000 }), enabled: booleanSchema() }, [...required, 'compactAfterKb', 'contextBudget', 'enabled']) }
|
|
21
21
|
];
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { arraySchema, boundedString, enumSchema, objectSchema } from './schema.js';
|
|
2
|
+
|
|
3
|
+
// An Agent's own workflows (rec#60 D-78): it proposes, the person confirms in
|
|
4
|
+
// the console, it reads the index first and one workflow's steps on demand.
|
|
5
|
+
// Full profile only, chat reaches them through list_agent_interfaces/fuli_call;
|
|
6
|
+
// the owner is the task's bound Agent, so none takes an agentId.
|
|
7
|
+
const token = boundedString(256);
|
|
8
|
+
const workflowId = boundedString(200);
|
|
9
|
+
|
|
10
|
+
export const AGENT_WORKFLOW_DEFINITIONS = [
|
|
11
|
+
{
|
|
12
|
+
name: 'propose_agent_workflow',
|
|
13
|
+
title: 'WRITE · Propose your workflow',
|
|
14
|
+
description: 'For work you repeat: steps from a list_workflow_candidates candidateId or your own; workflowId proposes a new version. Only the person activates it, in the console; nothing runs by itself.',
|
|
15
|
+
inputSchema: objectSchema({
|
|
16
|
+
taskContextToken: token,
|
|
17
|
+
workflowId,
|
|
18
|
+
candidateId: boundedString(200),
|
|
19
|
+
name: boundedString(80),
|
|
20
|
+
purpose: boundedString(300),
|
|
21
|
+
steps: arraySchema(objectSchema({ title: boundedString(120), detail: boundedString(600) }, ['title']),
|
|
22
|
+
{ minItems: 1, maxItems: 20 })
|
|
23
|
+
}, ['taskContextToken', 'name', 'purpose'])
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'list_agent_workflows',
|
|
27
|
+
title: 'READ · Index your workflows',
|
|
28
|
+
description: 'Your proposed and active workflows without steps (stepCount, approxTokens, last run); read one when needed.',
|
|
29
|
+
inputSchema: objectSchema({ taskContextToken: token }, ['taskContextToken'])
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'read_agent_workflow',
|
|
33
|
+
title: 'READ · Your active workflow\'s steps',
|
|
34
|
+
description: 'The confirmed steps of one active workflow.',
|
|
35
|
+
inputSchema: objectSchema({ taskContextToken: token, workflowId }, ['taskContextToken', 'workflowId'])
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'record_agent_workflow_run',
|
|
39
|
+
title: 'WRITE · Record a workflow run',
|
|
40
|
+
description: 'After following an active workflow, record its outcome.',
|
|
41
|
+
inputSchema: objectSchema({
|
|
42
|
+
taskContextToken: token,
|
|
43
|
+
workflowId,
|
|
44
|
+
taskId: boundedString(200),
|
|
45
|
+
outcome: enumSchema(['done', 'stopped', 'failed']),
|
|
46
|
+
note: boundedString(500)
|
|
47
|
+
}, ['taskContextToken', 'workflowId', 'outcome'])
|
|
48
|
+
}
|
|
49
|
+
];
|
|
@@ -4,6 +4,7 @@ import { JUDGMENT_TOOL_DEFINITIONS } from './judgment-definitions.js';
|
|
|
4
4
|
import { MODEL_BACKEND_DEFINITIONS } from './model-backend-definitions.js';
|
|
5
5
|
import { STANDING_ASSIGNMENT_DEFINITIONS } from './standing-assignment-definitions.js';
|
|
6
6
|
import { AGENT_SERVICE_DEFINITIONS } from './agent-service-definitions.js';
|
|
7
|
+
import { AGENT_WORKFLOW_DEFINITIONS } from './agent-workflow-definitions.js';
|
|
7
8
|
import { TASK_RUN_DEFINITIONS } from './task-run-definitions.js';
|
|
8
9
|
import { TASK_PREFERENCE_DEFINITIONS } from './task-preference-definitions.js';
|
|
9
10
|
import { AGENT_INTERFACE_DEFINITIONS } from './interface-definitions.js';
|
|
@@ -29,6 +30,7 @@ export const GRAPH_TOOL_DEFINITIONS = [
|
|
|
29
30
|
...TASK_RUN_DEFINITIONS,
|
|
30
31
|
...STANDING_ASSIGNMENT_DEFINITIONS,
|
|
31
32
|
...AGENT_SERVICE_DEFINITIONS,
|
|
33
|
+
...AGENT_WORKFLOW_DEFINITIONS,
|
|
32
34
|
...TASK_PREFERENCE_DEFINITIONS,
|
|
33
35
|
...TASK_ENTRY_DEFINITIONS,
|
|
34
36
|
...KNOWLEDGE_DEFINITIONS,
|
|
@@ -7,6 +7,7 @@ import { refusedAgentWriteNotice } from '../graphiti/capture-notice.js';
|
|
|
7
7
|
import { isTagGovernanceProposal, knowledgeTagChange, proposeTagGovernance } from '../graphiti/knowledge-tags.js';
|
|
8
8
|
import { prepareKnowledgeRecovery } from '../knowledge-hard-delete/recovery-gate.js';
|
|
9
9
|
import { reportAgentService } from '../agent-services/agent-report.js';
|
|
10
|
+
import { AGENT_WORKFLOW_HANDLERS } from '../agent-workflows/agent-tools.js';
|
|
10
11
|
import { agentNamingStyleAnswer } from '../agent-naming/naming-style.js';
|
|
11
12
|
|
|
12
13
|
// These tools read or change the two local stores that can retain deleted
|
|
@@ -24,6 +25,7 @@ const HANDLERS = Object.freeze({
|
|
|
24
25
|
role_work: (app, { action, ...input }) => roleWork(app)[action === 'submit' ? 'submit' : 'claim'](input),
|
|
25
26
|
register_standing_assignment: (app, input) => app.registerStandingAssignment(input),
|
|
26
27
|
report_agent_service: (app, input) => reportAgentService(app, input),
|
|
28
|
+
...AGENT_WORKFLOW_HANDLERS,
|
|
27
29
|
control_project_agent_task_run: (app, input) => app.controlProjectAgentTaskRun({ ...input, agentInvocation: true }),
|
|
28
30
|
// An Agent reads Tonborg's records without their words (rec#50, judgment/agent-view.js).
|
|
29
31
|
list_judgments: (app, input) => app.judgment.agent.records(input),
|
|
@@ -44,6 +44,7 @@ const UI_MUTATION_PARITY = Object.freeze([
|
|
|
44
44
|
local('PUT /api/client-links/auto-update', 'Whether the client link manifest updates itself once a day is the person\'s setting.'),
|
|
45
45
|
local('POST /api/system/update', 'Updating FULI stops its services, installs the newest package and starts them again; the person starts it from the console\'s update notice on this computer (or with fuli update). An Agent can only mention that an update is available.'),
|
|
46
46
|
local('POST /api/system/client-connection/connect','Local device client configuration writes require a local user operation.'),
|
|
47
|
+
local('POST /api/system/doctor/repair', 'The doctor\'s 「自动修复」 rewrites client configurations on this computer; the person starts it from the console\'s banner. An Agent can read GET /api/system/doctor and tell the person what it found.'),
|
|
47
48
|
agent('POST /api/capture', 'capture_session_knowledge'),
|
|
48
49
|
agent('POST /api/subscriptions', 'subscribe_public_project'),
|
|
49
50
|
agent('DELETE /api/subscriptions/:projectId', 'unsubscribe_public_project'),
|
|
@@ -74,6 +75,7 @@ const UI_MUTATION_PARITY = Object.freeze([
|
|
|
74
75
|
local('POST /api/standing-assignments/:assignmentId/terms', 'Editing a standing assignment\'s terms in the console is the local person\'s action; in a conversation an Agent previews it with register_standing_assignment and confirms only after the person\'s yes.'),
|
|
75
76
|
local('POST /api/agent-services/:serviceId/stop', 'Ending a process through FULI is the local person\'s decision after seeing its exact PID and command (rec#11 D-71); the owning Agent stops a server it started in its own session and records that with report_agent_service.'),
|
|
76
77
|
local('DELETE /api/agent-services/:serviceId', 'Deleting a service record is the local person\'s action; an Agent records its own services with report_agent_service.'),
|
|
78
|
+
local('POST /api/agent-workflows/:workflowId/decision', 'Confirming, rejecting or retiring an Agent\'s workflow is the local person\'s decision on the Agent\'s home page (rec#60 D-78); an Agent only proposes with propose_agent_workflow.'),
|
|
77
79
|
local('DELETE /api/agent-services/:serviceId/log', 'Clearing a service log is the local person\'s action; the log records what Agents and FULI did to the service.'),
|
|
78
80
|
agent('POST /api/project-agent-activity', 'record_project_agent_task_activity'),
|
|
79
81
|
agent('PUT /api/project-agent-coordination-policy', 'update_project_agent_coordination_policy'),
|
|
@@ -165,8 +167,9 @@ export function agentInterfaceCatalog() {
|
|
|
165
167
|
{ domain: 'model-backends', toolNames: ['get_model_usage', 'role_work'], readRoutes: ['GET /api/model-backends/usage', 'GET /api/model-backends/roles', 'GET /api/model-backends/history'], guidance: 'Usage, role settings and their change history are read-only; configuration and keys are local user operations: the model settings page in the local console (model-backends.json and its key entry) or fuli models set-key. role_work lets this session answer a built-in Agent\'s handed-off work package; nothing ran before the answer.' },
|
|
166
168
|
{ domain: 'standing-assignments', toolNames: ['register_standing_assignment', 'find_agents'], readRoutes: ['GET /api/standing-assignments'], guidance: 'The person\'s confirmed names for kinds of work, each sent to one project and Agent. Register, correct or end one only on the person\'s words, through preview and their yes.' },
|
|
167
169
|
{ domain: 'agent-services', toolNames: ['report_agent_service'], readRoutes: ['GET /api/agent-services', 'GET /api/agent-services/:serviceId/log'], guidance: 'Register each long-running server you start (address, purpose, pid, command) and update it when you stop or restart it. Agent app workbenches are recorded by FULI. Only the person stops a service through FULI, deletes a record or clears a log, in the console.' },
|
|
170
|
+
{ domain: 'agent-workflows', toolNames: ['list_agent_workflows', 'read_agent_workflow', 'propose_agent_workflow', 'record_agent_workflow_run', 'list_workflow_candidates'], readRoutes: ['GET /api/agent-workflows'], guidance: 'Your own repeated work as named steps. Read the index first and one active workflow only when the task needs it. Propose from a repeated candidate or your own steps; it waits for the person, who alone confirms, rejects or retires it in the console. Nothing runs by itself; record a run you did.' },
|
|
168
171
|
{ domain: 'session-records', toolNames: ['read_session_records'], readRoutes: ['GET /api/session-records'], guidance: 'Only the session of the calling task. Records a turn of this session made in another project are never returned, not even as a count; the person opens the console list for them.' },
|
|
169
|
-
{ domain: 'policy-and-health', toolNames: ['get_capture_policy', 'explain_settings', 'get_project_agent_coordination_policy', 'get_project_agent_recruitment_policy', 'get_graphiti_status'] },
|
|
172
|
+
{ domain: 'policy-and-health', toolNames: ['get_capture_policy', 'explain_settings', 'get_project_agent_coordination_policy', 'get_project_agent_recruitment_policy', 'get_graphiti_status'], readRoutes: ['GET /api/system/doctor'], guidance: 'The doctor (体检) lists what keeps FULI from working and who fixes it: fix auto items are repaired by the person\'s 「自动修复」 in the console (POST /api/system/doctor/repair is local_user_only); fix person items need the person, such as confirming a data format migration or restarting client sessions. Read only; never confirm a migration or restart a session for them.' },
|
|
170
173
|
],
|
|
171
174
|
};
|
|
172
175
|
}
|
|
@@ -44,6 +44,11 @@ const decisionActor = objectSchema({
|
|
|
44
44
|
kind: enumSchema(['user', 'agent', 'authoritative_source']),
|
|
45
45
|
label: nullableStringSchema()
|
|
46
46
|
}, ['kind']);
|
|
47
|
+
// A search's index view and its follow-up read of chosen records.
|
|
48
|
+
const searchSelection = {
|
|
49
|
+
view: enumSchema(['full', 'index']),
|
|
50
|
+
ids: arraySchema(id, { minItems: 1, maxItems: 20 })
|
|
51
|
+
};
|
|
47
52
|
const humanChangeStatus = enumSchema([
|
|
48
53
|
'all', 'human_changed', 'unseen', 'viewed', 'reviewed'
|
|
49
54
|
]);
|
|
@@ -274,6 +279,7 @@ export const KNOWLEDGE_DEFINITIONS = [
|
|
|
274
279
|
personalProjectScope: enumSchema(['bounded', 'all_local_confirmed']),
|
|
275
280
|
projectIds: arraySchema(id, { maxItems: 32 }),
|
|
276
281
|
cursor: boundedString(128),
|
|
282
|
+
...searchSelection,
|
|
277
283
|
limit: integerSchema({ minimum: 1, maximum: 100 }),
|
|
278
284
|
includeHistorical: booleanSchema(),
|
|
279
285
|
includePending: booleanSchema()
|
|
@@ -334,6 +340,7 @@ export const KNOWLEDGE_DEFINITIONS = [
|
|
|
334
340
|
personalProjectId: nullableStringSchema(),
|
|
335
341
|
queries: arraySchema(shortText, { minItems: 1, maxItems: 10 }),
|
|
336
342
|
cursor: boundedString(128),
|
|
343
|
+
...searchSelection,
|
|
337
344
|
limitPerQuery: integerSchema({ minimum: 1, maximum: 50 }),
|
|
338
345
|
includeHistorical: booleanSchema(),
|
|
339
346
|
includePending: booleanSchema()
|