fnloom 0.3.0 → 0.4.0
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/README.md +27 -20
- package/package.json +14 -11
- package/packages/build/package.json +2 -2
- package/packages/build/src/tests.ts +2 -2
- package/packages/cli/package.json +1 -1
- package/packages/cli/src/cli.ts +2 -2
- package/packages/cli/src/command.ts +2 -2
- package/packages/cli/src/commands/install.ts +1 -1
- package/packages/cli/src/commands/mcp.ts +6 -6
- package/packages/cli/src/commands/store.ts +3 -3
- package/packages/cli/src/hub.ts +25 -25
- package/packages/cli/src/index.ts +1 -1
- package/packages/cli/src/io.ts +2 -2
- package/packages/cli/src/local.ts +7 -7
- package/packages/cli/src/premade.ts +1 -1
- package/packages/core/package.json +4 -4
- package/packages/core/src/auto-pair.ts +1 -1
- package/packages/core/src/connections.ts +1 -14
- package/packages/core/src/context-graph.ts +1 -1
- package/packages/core/src/data.ts +1 -1
- package/packages/core/src/https.ts +2 -2
- package/packages/core/src/identity.ts +1 -1
- package/packages/core/src/image-embeddings.ts +1 -1
- package/packages/core/src/index.ts +5 -7
- package/packages/core/src/link.ts +1 -1
- package/packages/core/src/manifest.ts +2 -2
- package/packages/core/src/mention-search.ts +1 -1
- package/packages/core/src/model-calls.ts +1 -1
- package/packages/core/src/package.ts +1 -1
- package/packages/core/src/ports.ts +2 -2
- package/packages/core/src/query.ts +1 -1
- package/packages/core/src/records/chat.ts +1 -1
- package/packages/core/src/records/runs.ts +1 -1
- package/packages/core/src/records/spend.ts +4 -0
- package/packages/core/src/registries.ts +9 -3
- package/packages/core/src/sso.ts +2 -2
- package/packages/core/src/stores.ts +1 -1
- package/packages/core/src/suggestions.ts +2 -2
- package/packages/core/src/system-pages.ts +32 -6
- package/packages/core/src/tables.ts +233 -0
- package/packages/core/src/visuals.ts +47 -139
- package/packages/core/src/web.ts +2 -2
- package/packages/core/src/widgets-v1.ts +78 -1
- package/packages/hub/package.json +13 -11
- package/packages/hub/src/api/admin-ops.ts +5 -5
- package/packages/hub/src/api/auth.ts +2 -2
- package/packages/hub/src/api/https.ts +6 -6
- package/packages/hub/src/api/identities.ts +1 -1
- package/packages/hub/src/api/reads.ts +1 -1
- package/packages/hub/src/api/secrets.ts +1 -1
- package/packages/hub/src/api/serve.ts +2 -2
- package/packages/hub/src/api/sso-route.ts +2 -2
- package/packages/hub/src/api/sso.ts +6 -6
- package/packages/hub/src/api/testing/rig.ts +1 -1
- package/packages/hub/src/api/tls.ts +2 -2
- package/packages/hub/src/api/web/auth.ts +1 -1
- package/packages/hub/src/api/web/find.ts +1 -1
- package/packages/hub/src/api/web/pages.ts +4 -3
- package/packages/hub/src/api/web/pickers.ts +4 -4
- package/packages/hub/src/boot/env.ts +82 -78
- package/packages/hub/src/boot/hub-fns.ts +1 -1
- package/packages/hub/src/boot/identity.ts +2 -2
- package/packages/hub/src/boot/index.ts +1 -1
- package/packages/hub/src/boot/info.ts +1 -1
- package/packages/hub/src/boot/keys.ts +6 -6
- package/packages/hub/src/boot/log.ts +4 -4
- package/packages/hub/src/boot/modules.ts +4 -4
- package/packages/hub/src/boot/services.ts +9 -9
- package/packages/hub/src/boot/start.ts +23 -23
- package/packages/hub/src/chat/cache.ts +1 -1
- package/packages/hub/src/chat/chat.ts +1 -1
- package/packages/hub/src/chat/compare.ts +2 -2
- package/packages/hub/src/chat/deliveries.ts +1 -1
- package/packages/hub/src/chat/deps.ts +3 -3
- package/packages/hub/src/chat/enrich.ts +7 -7
- package/packages/hub/src/chat/env.ts +20 -20
- package/packages/hub/src/chat/mention-requests.ts +1 -1
- package/packages/hub/src/chat/mention-search.ts +1 -1
- package/packages/hub/src/chat/mentions.ts +3 -3
- package/packages/hub/src/chat/notifications.ts +2 -2
- package/packages/hub/src/chat/presence.ts +2 -2
- package/packages/hub/src/chat/sessions.ts +2 -2
- package/packages/hub/src/chat/suggestions.ts +8 -8
- package/packages/hub/src/chat/testing.ts +1 -1
- package/packages/hub/src/chat/turns.ts +6 -6
- package/packages/hub/src/chat/undo.ts +1 -1
- package/packages/hub/src/connections/create.ts +1 -1
- package/packages/hub/src/connections/env.ts +2 -2
- package/packages/hub/src/connections/service.ts +5 -9
- package/packages/hub/src/contextor/contextors.ts +9 -9
- package/packages/hub/src/contextor/crawl.ts +1 -1
- package/packages/hub/src/contextor/create.ts +5 -5
- package/packages/hub/src/contextor/dynamic.ts +5 -5
- package/packages/hub/src/contextor/env.ts +46 -46
- package/packages/hub/src/contextor/injected.ts +1 -1
- package/packages/hub/src/contextor/limits.ts +9 -9
- package/packages/hub/src/contextor/planner.ts +11 -11
- package/packages/hub/src/contextor/testing.ts +1 -1
- package/packages/hub/src/data/env.ts +3 -3
- package/packages/hub/src/data/service.ts +5 -5
- package/packages/hub/src/execution/agent.ts +8 -8
- package/packages/hub/src/execution/ai.ts +7 -7
- package/packages/hub/src/execution/create.ts +11 -6
- package/packages/hub/src/execution/env.ts +16 -16
- package/packages/hub/src/execution/executors.ts +2 -2
- package/packages/hub/src/execution/gateway.ts +1 -1
- package/packages/hub/src/execution/index.ts +1 -1
- package/packages/hub/src/execution/ledger.ts +2 -2
- package/packages/hub/src/execution/limits.ts +2 -2
- package/packages/hub/src/execution/models.ts +2 -2
- package/packages/hub/src/execution/ports.ts +1 -1
- package/packages/hub/src/execution/providers.ts +55 -11
- package/packages/hub/src/execution/queues.ts +6 -6
- package/packages/hub/src/execution/runs.ts +10 -10
- package/packages/hub/src/execution/stream-guard.ts +2 -2
- package/packages/hub/src/execution/testing.ts +5 -5
- package/packages/hub/src/execution/wire.ts +3 -3
- package/packages/hub/src/fns/auto.ts +2 -2
- package/packages/hub/src/fns/client-logs.ts +2 -2
- package/packages/hub/src/fns/create.ts +2 -2
- package/packages/hub/src/fns/decided.ts +2 -2
- package/packages/hub/src/fns/env.ts +14 -14
- package/packages/hub/src/fns/examples.ts +3 -3
- package/packages/hub/src/fns/facts.ts +5 -5
- package/packages/hub/src/fns/search.ts +5 -5
- package/packages/hub/src/graph/graph.ts +1 -1
- package/packages/hub/src/index/context-sections.ts +1 -1
- package/packages/hub/src/index/embedders.ts +3 -3
- package/packages/hub/src/index/env.ts +12 -12
- package/packages/hub/src/index/index.ts +1 -1
- package/packages/hub/src/index/indexer.ts +4 -4
- package/packages/hub/src/index/search.ts +1 -1
- package/packages/hub/src/index/testing.ts +2 -2
- package/packages/hub/src/link/build.ts +32 -32
- package/packages/hub/src/link/env.ts +14 -14
- package/packages/hub/src/link/grants.ts +10 -10
- package/packages/hub/src/link/lifecycle.ts +4 -4
- package/packages/hub/src/link/migrate-api.ts +55 -15
- package/packages/hub/src/link/pairing.ts +1 -1
- package/packages/hub/src/link/process.ts +1 -1
- package/packages/hub/src/link/rig.ts +12 -12
- package/packages/hub/src/link/supervisor.ts +1 -1
- package/packages/hub/src/mcp/calls.ts +6 -6
- package/packages/hub/src/mcp/create.ts +5 -5
- package/packages/hub/src/mcp/env.ts +6 -6
- package/packages/hub/src/mcp/fns.ts +2 -2
- package/packages/hub/src/mcp/index.ts +2 -2
- package/packages/hub/src/mcp/sources.ts +3 -3
- package/packages/hub/src/mcp/tokens.ts +1 -1
- package/packages/hub/src/models/create.ts +1 -1
- package/packages/hub/src/models/decide.ts +2 -2
- package/packages/hub/src/models/index.ts +1 -1
- package/packages/hub/src/models/roles.ts +12 -12
- package/packages/hub/src/query/env.ts +5 -5
- package/packages/hub/src/query/sources.ts +3 -3
- package/packages/hub/src/questions/plans.ts +1 -1
- package/packages/hub/src/questions/worker.ts +2 -2
- package/packages/hub/src/resources/context.ts +3 -3
- package/packages/hub/src/resources/converters.ts +2 -2
- package/packages/hub/src/resources/create.ts +6 -6
- package/packages/hub/src/resources/env.ts +15 -15
- package/packages/hub/src/resources/fetch.ts +5 -5
- package/packages/hub/src/resources/forms.ts +5 -5
- package/packages/hub/src/resources/index.ts +1 -1
- package/packages/hub/src/resources/library.ts +2 -2
- package/packages/hub/src/resources/raw.ts +1 -1
- package/packages/hub/src/resources/reader.ts +2 -2
- package/packages/hub/src/resources/sqlite-files.ts +1 -1
- package/packages/hub/src/resources/storage.ts +5 -5
- package/packages/hub/src/resources/testing.ts +6 -6
- package/packages/hub/src/store/env.ts +4 -4
- package/packages/hub/src/store/hybrid.ts +4 -4
- package/packages/hub/src/store/sqlite.ts +3 -3
- package/packages/hub/src/stores/drivers.ts +2 -2
- package/packages/hub/src/stores/host.ts +3 -3
- package/packages/hub/src/stores/moves.ts +2 -2
- package/packages/hub/src/stores/service.ts +2 -2
- package/packages/hub/src/tables/env.ts +3 -3
- package/packages/hub/src/tables/index.ts +5 -5
- package/packages/hub/src/tables/service.ts +7 -7
- package/packages/sdk/AUTHORING.md +1206 -881
- package/packages/sdk/package.json +11 -8
- package/packages/sdk/src/agent.ts +1 -1
- package/packages/sdk/src/app-parts.ts +95 -0
- package/packages/sdk/src/authored.ts +26 -0
- package/packages/sdk/src/authoring.ts +13 -30
- package/packages/sdk/src/client-runtime.ts +24 -1
- package/packages/sdk/src/client-ui/AddServiceDialog.vue +43 -0
- package/packages/sdk/src/client-ui/InstanceNameField.vue +29 -0
- package/packages/sdk/src/client-ui/PairRowsEditor.vue +74 -0
- package/packages/sdk/src/client-ui/RemoteAuthFields.vue +95 -0
- package/packages/sdk/src/client-ui/ServiceRows.vue +57 -0
- package/packages/sdk/src/client-ui/draft.ts +10 -0
- package/packages/sdk/src/client-ui/host.ts +37 -0
- package/packages/sdk/src/client-ui/index.ts +19 -0
- package/packages/sdk/src/client-ui/loaded.ts +69 -0
- package/packages/sdk/src/client-ui/problems.ts +98 -0
- package/packages/sdk/src/client-ui/remote-config.ts +199 -0
- package/packages/sdk/src/client-ui/service-rows.ts +25 -0
- package/packages/sdk/src/client-ui/state.ts +14 -0
- package/packages/sdk/src/client-ui/testing.ts +147 -0
- package/packages/sdk/src/client-ui/vue-shim.d.ts +13 -0
- package/packages/sdk/src/client.ts +82 -11
- package/packages/sdk/src/hub.ts +4 -4
- package/packages/sdk/src/index.ts +13 -9
- package/packages/sdk/src/page-parts.ts +4 -0
- package/packages/sdk/src/program/env.ts +7 -7
- package/packages/sdk/src/program/runtime.ts +5 -5
- package/packages/sdk/src/program/tools.ts +3 -3
- package/packages/sdk/src/remote-auth.ts +128 -7
- package/packages/sdk/src/server/context-files.ts +1 -1
- package/packages/sdk/src/server/env.ts +36 -36
- package/packages/sdk/src/server/fake-hub-widgets.ts +7 -6
- package/packages/sdk/src/server/host.ts +28 -28
- package/packages/sdk/src/server/index.ts +2 -2
- package/packages/sdk/src/server/live.ts +4 -4
- package/packages/sdk/src/server/llm-wire.ts +4 -4
- package/packages/sdk/src/server/pairing.ts +1 -1
- package/packages/sdk/src/server/results.ts +4 -4
- package/packages/sdk/src/server/socket-guard.ts +1 -1
- package/packages/sdk/src/server/start-gate.ts +2 -2
- package/packages/sdk/src/server/store/engines.ts +2 -2
- package/packages/sdk/src/server/store/keeper.ts +2 -2
- package/packages/sdk/src/server/supervise.ts +4 -4
- package/packages/sdk/src/testing/env.ts +6 -6
- package/packages/sdk/src/testing/hub.ts +3 -1
- package/packages/sdk/src/testing/models.ts +3 -3
- package/packages/sdk/src/testing/openrouter.ts +3 -2
- package/packages/sdk/src/testing/preview.ts +7 -7
- package/packages/sdk/src/widgets.ts +21 -136
- package/packages/sdk/tsconfig.json +2 -2
- package/packages/web/dist/assets/{ActorSettingsView-v2k7v454.js → ActorSettingsView-CDszUbHz.js} +2 -2
- package/packages/web/dist/assets/AdminLayout-CFIz4GsQ.js +2 -0
- package/packages/web/dist/assets/{AdminLayout-1hbRPV3d.css → AdminLayout-ggcdQGlQ.css} +1 -1
- package/packages/web/dist/assets/{AppPage-CFmKZS8G.js → AppPage-BvoVTk6h.js} +2 -2
- package/packages/web/dist/assets/{AutoPairPicker-C61gihmh.js → AutoPairPicker-CLjD-muP.js} +2 -2
- package/packages/web/dist/assets/{BrowserFrame-Sq9EmQRT.js → BrowserFrame-BcN-A76X.js} +2 -2
- package/packages/web/dist/assets/ChatPage-DhTpAyM2.js +4 -0
- package/packages/web/dist/assets/{ChatPage-CbsRmktV.css → ChatPage-DjPv238m.css} +1 -1
- package/packages/web/dist/assets/{CodeViewer-tUNXZB77.js → CodeViewer-K9jrTmFO.js} +2 -2
- package/packages/web/dist/assets/ConfigWithCustom-BvrvSVIp.js +3 -0
- package/packages/web/dist/assets/{ConfirmDialog-Dd3E4sJt.js → ConfirmDialog-BDvLleYf.js} +2 -2
- package/packages/web/dist/assets/{ConnectPage-CX9acyQH.js → ConnectPage-Dg6IPNNh.js} +2 -2
- package/packages/web/dist/assets/ContextItemPage-qisBQetR.js +2 -0
- package/packages/web/dist/assets/ContextPage-DXa6Yqk-.js +3 -0
- package/packages/web/dist/assets/{ContextRow-DrtPumZ5.js → ContextRow-DDYnYRaL.js} +2 -2
- package/packages/web/dist/assets/{DataPage-DDSsxHro.js → DataPage-DOE_pKAY.js} +2 -2
- package/packages/web/dist/assets/DataTypePage-BnP_JELT.js +2 -0
- package/packages/web/dist/assets/{DataTypePage-Cr238Hx_.css → DataTypePage-CWrWvUPs.css} +1 -1
- package/packages/web/dist/assets/{DesignPage-6e0XbOFC.js → DesignPage-B9MJbF10.js} +3 -3
- package/packages/web/dist/assets/{ExplorePage-B7ND0W0l.js → ExplorePage-cRDQZRea.js} +2 -2
- package/packages/web/dist/assets/{FnPill-Cp3KuLmP.js → FnPill-CbLZCXYM.js} +2 -2
- package/packages/web/dist/assets/{FnView-C0XZdnsS.js → FnView-CG_wBKTP.js} +2 -2
- package/packages/web/dist/assets/{FnsView-GTH3p7a0.js → FnsView-BybyK12w.js} +2 -2
- package/packages/web/dist/assets/{GinExprView-DGxns6lH.js → GinExprView-BYCKSD_n.js} +2 -2
- package/packages/web/dist/assets/{GinForm-BDBUzuDP.js → GinForm-CXjYVf2_.js} +2 -2
- package/packages/web/dist/assets/{GinTypeView-CUsymbVf.js → GinTypeView-Bmbmx9e_.js} +2 -2
- package/packages/web/dist/assets/{GinValueView-jsKIfiEA.js → GinValueView-CWUzS7ti.js} +2 -2
- package/packages/web/dist/assets/{GraphPage-BCcPPsHu.js → GraphPage-D6OhckfJ.js} +2 -2
- package/packages/web/dist/assets/GraphPanel-BTitgA-K.js +2 -0
- package/packages/web/dist/assets/{HubPicker-EoOErgmk.js → HubPicker-DVly8dLD.js} +2 -2
- package/packages/web/dist/assets/{InboxApprovals-Dkq7DFp_.js → InboxApprovals-BF84edZU.js} +2 -2
- package/packages/web/dist/assets/{InboxPage-CHhslePq.js → InboxPage-DohZ9EDP.js} +2 -2
- package/packages/web/dist/assets/InjectedList-e6qr1kdU.js +2 -0
- package/packages/web/dist/assets/{InstallDialog-D-VwfZYF.js → InstallDialog-JJCKYs2s.js} +2 -2
- package/packages/web/dist/assets/InstanceTypes-BqUzx87o.js +2 -0
- package/packages/web/dist/assets/InstanceView-C73pev7A.js +2 -0
- package/packages/web/dist/assets/{ItemHistory-NQAP69ma.js → ItemHistory-dbGgOZsw.js} +2 -2
- package/packages/web/dist/assets/LimitsView-Ddp5WakY.js +2 -0
- package/packages/web/dist/assets/{ListSearch-BunVrDO0.js → ListSearch-CYNNAuMB.js} +2 -2
- package/packages/web/dist/assets/{LlmCallDetails-BoVNDTVs.js → LlmCallDetails-C9H5Hc2J.js} +2 -2
- package/packages/web/dist/assets/{LlmCallsView-BGpV92RC.js → LlmCallsView-CBqyZ8Cj.js} +2 -2
- package/packages/web/dist/assets/{LoadState-h-K9bTYc.js → LoadState-B2YhZlyC.js} +2 -2
- package/packages/web/dist/assets/McpDialog-DhlLklIq.js +2 -0
- package/packages/web/dist/assets/{McpView-GPXdCMne.js → McpView-D_ZmNO56.js} +2 -2
- package/packages/web/dist/assets/{McpsView-DJIR2JX5.js → McpsView-9_gwBuzw.js} +2 -2
- package/packages/web/dist/assets/{MemoryDialog-BTeIHQyA.js → MemoryDialog-pTHIxKEX.js} +2 -2
- package/packages/web/dist/assets/{ModelCallsView-DMcnwF2S.js → ModelCallsView-FHv2XWRX.js} +2 -2
- package/packages/web/dist/assets/{ModelPicker-CgkMFxSO.js → ModelPicker-EqOuvVnE.js} +2 -2
- package/packages/web/dist/assets/ModelsView-D9UaL4PX.js +2 -0
- package/packages/web/dist/assets/{NotFoundPage-Tk92K7HN.js → NotFoundPage-BsuJysan.js} +2 -2
- package/packages/web/dist/assets/{PairPage-D0BK8CCw.js → PairPage-B_ZXsbL4.js} +2 -2
- package/packages/web/dist/assets/{PanelHost-C-gKrxAk.js → PanelHost-Dx-vNNl5.js} +2 -2
- package/packages/web/dist/assets/PeopleView-D6dmEgMs.js +2 -0
- package/packages/web/dist/assets/{PeopleView-CJ8yArTh.css → PeopleView-DBxdbT1C.css} +1 -1
- package/packages/web/dist/assets/{PoliciesView-BRi-QAuo.js → PoliciesView-Bn4rm-ao.js} +2 -2
- package/packages/web/dist/assets/{RefusalList-DVO0bmeB.js → RefusalList-aosRD1ie.js} +2 -2
- package/packages/web/dist/assets/RendererHost-Ym_SMkhp.css +1 -0
- package/packages/web/dist/assets/RendererHost-rjnpSgyQ.js +2 -0
- package/packages/web/dist/assets/{ResourceViewer-Do0chYxU.js → ResourceViewer-C4tRColf.js} +2 -2
- package/packages/web/dist/assets/ResourcesPage-7mCLBORZ.js +2 -0
- package/packages/web/dist/assets/ResultGrid-CL2WSYQH.css +1 -0
- package/packages/web/dist/assets/ResultGrid-GIMoQUAr.js +2 -0
- package/packages/web/dist/assets/{ReviewSummaryStrip-DO3p64Qj.js → ReviewSummaryStrip-Bvjn3Iq8.js} +2 -2
- package/packages/web/dist/assets/ReviewView-DIqsUedT.js +3 -0
- package/packages/web/dist/assets/{RuleRow-DX9v4iGP.js → RuleRow-zRg-e8Vj.js} +2 -2
- package/packages/web/dist/assets/RunCard-C7wOGaw8.js +2 -0
- package/packages/web/dist/assets/RunCard-CSDiz-Nt.css +1 -0
- package/packages/web/dist/assets/{RunDetails-DjR206q6.js → RunDetails-W4GbE6AE.js} +2 -2
- package/packages/web/dist/assets/{RunDot-lHRICdM5.js → RunDot-C46uzzNM.js} +2 -2
- package/packages/web/dist/assets/{RunPage-CbAQ_WPR.js → RunPage-DPLtZpeB.js} +2 -2
- package/packages/web/dist/assets/{RunProgress-C3-B4tQf.js → RunProgress-Cr_6TBaF.js} +2 -2
- package/packages/web/dist/assets/{RunsView-DMkPmkqX.js → RunsView-tU350TPK.js} +2 -2
- package/packages/web/dist/assets/SettingsPage-B8QmmMN3.js +3 -0
- package/packages/web/dist/assets/{SettingsPage-t03BqXw8.css → SettingsPage-BTl3Ie4F.css} +1 -1
- package/packages/web/dist/assets/SignInPage-CXxLf7Rp.css +1 -0
- package/packages/web/dist/assets/{SignInPage-ByqGEZfj.js → SignInPage-DTwdqlnB.js} +2 -2
- package/packages/web/dist/assets/{StatusBadge-CXne0sRZ.js → StatusBadge-D7wKMAcD.js} +2 -2
- package/packages/web/dist/assets/{StorePlacementStep-B6SwTmdM.js → StorePlacementStep-C04nRU-u.js} +2 -2
- package/packages/web/dist/assets/{SystemConfig-vQDL_eUl.js → SystemConfig-CE3keXWq.js} +2 -2
- package/packages/web/dist/assets/SystemPageHost-CEhz4li8.js +2 -0
- package/packages/web/dist/assets/SystemPageHost-DX7LrFoN.css +1 -0
- package/packages/web/dist/assets/SystemView-CBFzEGfm.js +2 -0
- package/packages/web/dist/assets/SystemsView-0G8JntMV.js +2 -0
- package/packages/web/dist/assets/TableView-BK0uwLHl.js +3 -0
- package/packages/web/dist/assets/TableView-B_4MViVb.css +1 -0
- package/packages/web/dist/assets/{TableViewer-Boxx86f5.js → TableViewer-nbMInGJJ.js} +3 -3
- package/packages/web/dist/assets/{ThemePicker-CIg_oRQX.js → ThemePicker-fZpVSYqG.js} +2 -2
- package/packages/web/dist/assets/{TurnTree-Ecm0yA5g.js → TurnTree-Co-iBqhT.js} +2 -2
- package/packages/web/dist/assets/{UserMessage-BtECa8ka.css → UserMessage-B63G9sxC.css} +1 -1
- package/packages/web/dist/assets/{UserMessage-BlnqZDVU.js → UserMessage-CDjUxKY0.js} +6 -6
- package/packages/web/dist/assets/{ValueVisual-C-MWpp7c.js → ValueVisual-EJnCKgSy.js} +2 -2
- package/packages/web/dist/assets/{fn-modal-B98MR7JN.js → fn-modal-DtE65mFt.js} +2 -2
- package/packages/web/dist/assets/{fn-notices-CfTa1E8y.js → fn-notices-CCZ-DFbi.js} +2 -2
- package/packages/web/dist/assets/{formats-JwoKfXIq.js → formats-CyHV2siv.js} +2 -2
- package/packages/web/dist/assets/index-BY7M8QUk.css +1 -0
- package/packages/web/dist/assets/index-OZS2EluT.js +4 -0
- package/packages/web/dist/assets/{labels-BFbk11BE.js → labels-CT7_K0Pt.js} +2 -2
- package/packages/web/dist/assets/{layout-D1gf481r.js → layout-B6fBDg80.js} +2 -2
- package/packages/web/dist/assets/loaded-LaPjk6mK.js +2 -0
- package/packages/web/dist/assets/{metrics-CBPX3W5Y.js → metrics-9n8bKI7u.js} +2 -2
- package/packages/web/dist/assets/problems--AW4igVY.js +2 -0
- package/packages/web/dist/assets/{push-payload-BeU1ADYt.js → push-payload-B3EcrsVz.js} +64 -64
- package/packages/web/dist/assets/record-edits-B-FWAbxR.js +2 -0
- package/packages/web/dist/assets/{review-fP-l9D6H.js → review-uLESCEz1.js} +3 -3
- package/packages/web/dist/assets/routes-B7Zmt8wh.js +4 -0
- package/packages/web/dist/assets/{runs-CveC2kKo.js → runs-CUb2PTFg.js} +2 -2
- package/packages/web/dist/assets/{shared-LbaIHjbV.js → shared-Bxhw_9et.js} +2 -2
- package/packages/web/dist/assets/{sources-VPrtgLIi.js → sources-YgkjgFLe.js} +2 -2
- package/packages/web/dist/assets/src-DY1fSFJS.js +43 -0
- package/packages/web/dist/assets/state-ChQDWWj-.js +2 -0
- package/packages/web/dist/assets/{systems-BqE3WTSF.js → systems-CjwjRySu.js} +2 -2
- package/packages/web/dist/assets/table-host-B_D9dmCz.js +2 -0
- package/packages/web/dist/assets/tables-CaxIuHdw.js +2 -0
- package/packages/web/dist/assets/{ui-BzgWquIU.js → ui-DWjytmDS.js} +5 -5
- package/packages/web/dist/assets/{url-DKGcECT1.js → url-DbGOI14W.js} +2 -2
- package/packages/web/dist/index.html +49 -47
- package/packages/web/dist/sw.js +1 -1
- package/packages/web/package.json +2 -4
- package/premade/claude.zip +0 -0
- package/premade/database.zip +0 -0
- package/premade/web.zip +0 -0
- package/scripts/dev-env.ts +9 -9
- package/scripts/run-stack.ts +15 -15
- package/scripts/stack.ts +3 -3
- package/scripts/start.ts +18 -18
- package/systems/api/client/ApiServiceForm.vue +55 -0
- package/systems/api/client/ServiceList.vue +90 -0
- package/systems/api/client/ServicePage.vue +142 -0
- package/systems/api/client/ServicesPage.vue +32 -0
- package/systems/api/client/index.ts +15 -0
- package/systems/api/client/logic.ts +140 -0
- package/systems/api/client/state.ts +92 -0
- package/systems/api/package.json +9 -6
- package/systems/api/server/authoring.ts +2 -1
- package/systems/api/server/env.ts +1 -1
- package/systems/api/server/guard.ts +1 -1
- package/systems/api/server/http.ts +3 -2
- package/systems/api/server/impl.ts +3 -2
- package/systems/api/server/main.ts +11 -7
- package/systems/api/server/openapi.ts +1 -1
- package/systems/api/server/program.ts +2 -1
- package/systems/api/server/services.ts +2 -1
- package/systems/api/shared/http.ts +2 -1
- package/systems/api/shared/index.ts +15 -5
- package/{packages/core/src/programs.ts → systems/api/shared/services.ts} +7 -51
- package/systems/api/system.json +2 -1
- package/systems/api/tsconfig.json +2 -2
- package/systems/code/package.json +4 -3
- package/systems/code/server/authoring.ts +2 -1
- package/systems/code/server/impl.ts +2 -1
- package/systems/code/server/main.ts +5 -5
- package/systems/code/shared/index.ts +2 -3
- package/systems/code/shared/program.ts +23 -0
- package/systems/embedder/package.json +1 -1
- package/systems/embedder/server/env.ts +1 -1
- package/systems/embedder/server/main.ts +5 -5
- package/systems/embedder/shared/index.ts +1 -1
- package/systems/fs/client/machines/fakes.ts +1 -1
- package/systems/fs/client/machines/files/fakes.ts +1 -1
- package/systems/fs/client/machines/palette.ts +3 -2
- package/systems/fs/context/authoring/parts/client.md +23 -5
- package/systems/fs/context/authoring/parts/client.reference/client.md +7 -16
- package/systems/fs/context/authoring/parts/client.reference/pageinbox.md +524 -0
- package/systems/fs/context/authoring/parts/client.reference/{resultview.md → visuals.md} +85 -116
- package/systems/fs/context/authoring/parts/client.reference.md +8 -8
- package/systems/fs/context/authoring/parts/context.md +1 -1
- package/systems/fs/context/authoring/parts/contract.md +1 -1
- package/systems/fs/context/authoring/parts/core-types/admin-ts.md +2 -2
- package/systems/fs/context/authoring/parts/core-types/connections-ts.md +12 -1
- package/systems/fs/context/authoring/parts/core-types/context-files-ts.md +2 -2
- package/systems/fs/context/authoring/parts/core-types/context-graph-ts.md +2 -2
- package/systems/fs/context/authoring/parts/core-types/contextdecl.md +2 -2
- package/systems/fs/context/authoring/parts/core-types/lifecycle-ts.md +27 -2
- package/systems/fs/context/authoring/parts/core-types/manifest.md +27 -2
- package/systems/fs/context/authoring/parts/core-types/manifestpatch.md +26 -2
- package/systems/fs/context/authoring/parts/core-types/modes-ts.md +3 -3
- package/systems/fs/context/authoring/parts/core-types/records-systems-ts.md +145 -1
- package/systems/fs/context/authoring/parts/core-types/registries-ts.md +98 -2
- package/systems/fs/context/authoring/parts/core-types/run-ts.md +2 -2
- package/systems/fs/context/authoring/parts/core-types/system-pages-ts.md +4 -2
- package/systems/fs/context/authoring/parts/core-types/system-providers-ts.md +2 -2
- package/systems/fs/context/authoring/parts/core-types/tables-ts.md +91 -0
- package/systems/fs/context/authoring/parts/core-types/web-ts.md +1 -2
- package/systems/fs/context/authoring/parts/core-types.md +5 -8
- package/systems/fs/context/authoring/parts/examples/server-main-ts.md +4 -4
- package/systems/fs/context/authoring/parts/examples/systems-fs-shared-index-ts-lines-568-660.md +1 -1
- package/systems/fs/context/authoring/parts/fns.md +1 -1
- package/systems/fs/context/authoring/parts/folder.md +6 -6
- package/systems/fs/context/authoring/parts/hub/hub-ctx-from-resource.md +2 -2
- package/systems/fs/context/authoring/parts/hub/hub-install-package.md +2 -2
- package/systems/fs/context/authoring/parts/hub.reference.md +3 -3
- package/systems/fs/context/authoring/parts/internals/manifestof.md +2 -2
- package/systems/fs/context/authoring/parts/internals/permissionargs.md +4 -4
- package/systems/fs/context/authoring/parts/kinds-agents.md +1 -1
- package/systems/fs/context/authoring/parts/kinds-agents.reference/authoringsession.md +7 -5
- package/systems/fs/context/authoring/parts/kinds-agents.reference/kind.md +4 -4
- package/systems/fs/context/authoring/parts/outcomes.md +2 -2
- package/systems/fs/context/authoring/parts/outcomes.reference.md +2 -2
- package/systems/fs/context/authoring/parts/packaging.md +4 -4
- package/systems/fs/context/authoring/parts/remote.md +5 -5
- package/systems/fs/context/authoring/parts/remote.reference.md +201 -17
- package/systems/fs/context/authoring/parts/server.md +7 -7
- package/systems/fs/context/authoring/parts/server.reference.md +15 -15
- package/systems/fs/context/authoring/parts/testing.reference/equal.md +3 -3
- package/systems/fs/context/authoring/parts/testing.reference/fakehub.md +1 -1
- package/systems/fs/context/authoring/parts/testing.reference/kindprops.md +22 -10
- package/systems/fs/context/authoring/parts/testing.reference/{openmemorystore.md → storeconnection.md} +7 -19
- package/systems/fs/context/authoring/parts/testing.reference.md +5 -5
- package/systems/fs/context/authoring/parts/widgets.md +32 -22
- package/systems/fs/context/authoring/parts/widgets.reference.md +503 -9
- package/systems/fs/package.json +3 -3
- package/systems/fs/server/hosting.ts +10 -10
- package/systems/fs/server/main.ts +8 -8
- package/systems/fs/server/shell.ts +1 -1
- package/systems/fs/shared/index.ts +1 -1
- package/systems/google-calendar/package.json +1 -1
- package/systems/google-calendar/server/main.ts +4 -4
- package/systems/input/package.json +3 -3
- package/systems/input/server/main.ts +6 -6
- package/systems/mcp/client/McpServerForm.vue +99 -0
- package/systems/mcp/client/ServerList.vue +78 -0
- package/systems/mcp/client/ServerPage.vue +194 -0
- package/systems/mcp/client/ServersPage.vue +32 -0
- package/systems/mcp/client/index.ts +15 -0
- package/systems/mcp/client/logic.ts +224 -0
- package/systems/mcp/client/state.ts +128 -0
- package/systems/mcp/package.json +9 -6
- package/systems/mcp/server/dial.ts +1 -1
- package/systems/mcp/server/impl.ts +2 -1
- package/systems/mcp/server/instance.ts +3 -5
- package/systems/mcp/server/main.ts +10 -6
- package/systems/mcp/server/mirror.ts +2 -3
- package/systems/mcp/server/oauth.ts +2 -1
- package/systems/mcp/server/server-link.ts +2 -1
- package/systems/mcp/shared/index.ts +15 -2
- package/{packages/core/src/mcp-servers.ts → systems/mcp/shared/servers.ts} +6 -5
- package/systems/mcp/system.json +2 -1
- package/systems/mcp/tsconfig.json +2 -2
- package/systems/ollama/package.json +3 -3
- package/systems/ollama/server/main.ts +5 -5
- package/systems/schedule/package.json +3 -3
- package/systems/schedule/server/main.ts +6 -6
- package/systems/template/README.md +2 -2
- package/systems/template/package.json +1 -1
- package/systems/template/server/main.ts +4 -4
- package/systems/widgets/client/ChipRow.vue +22 -0
- package/systems/widgets/client/ProposalCard.vue +6 -5
- package/systems/widgets/client/SavedWidget.vue +11 -8
- package/systems/widgets/client/WidgetChips.vue +137 -0
- package/systems/widgets/client/WidgetView.vue +32 -0
- package/systems/widgets/client/charts/ChartVisual.vue +157 -0
- package/systems/widgets/client/charts/chart-data.ts +230 -0
- package/systems/widgets/client/charts/echarts-setup.ts +69 -0
- package/systems/widgets/client/charts/export.ts +36 -0
- package/systems/widgets/client/charts/families/calendar.ts +105 -0
- package/systems/widgets/client/charts/families/category.ts +186 -0
- package/systems/widgets/client/charts/families/crosstab.ts +113 -0
- package/systems/widgets/client/charts/families/distribution.ts +160 -0
- package/systems/widgets/client/charts/families/finance.ts +96 -0
- package/systems/widgets/client/charts/families/gauge.ts +75 -0
- package/systems/widgets/client/charts/families/hierarchy.ts +166 -0
- package/systems/widgets/client/charts/families/index.ts +21 -0
- package/systems/widgets/client/charts/families/network.ts +140 -0
- package/systems/widgets/client/charts/families/part.ts +61 -0
- package/systems/widgets/client/charts/families/profile.ts +30 -0
- package/systems/widgets/client/charts/families/progress.ts +76 -0
- package/systems/widgets/client/charts/families/range.ts +107 -0
- package/systems/widgets/client/charts/families/time.ts +177 -0
- package/systems/widgets/client/charts/families/timeline.ts +114 -0
- package/systems/widgets/client/charts/families/wide.ts +41 -0
- package/systems/widgets/client/charts/index.ts +37 -0
- package/systems/widgets/client/charts/maths.ts +139 -0
- package/systems/widgets/client/charts/size.ts +39 -0
- package/systems/widgets/client/chips.ts +150 -0
- package/systems/widgets/client/index.ts +18 -5
- package/systems/widgets/client/proposal.ts +2 -1
- package/systems/widgets/package.json +7 -4
- package/systems/widgets/server/authoring.ts +13 -7
- package/systems/widgets/server/env.ts +1 -1
- package/systems/widgets/server/impl.ts +10 -6
- package/systems/widgets/server/main.ts +6 -6
- package/systems/widgets/server/run.ts +16 -9
- package/systems/widgets/server/upgrade.ts +34 -0
- package/systems/widgets/shared/args.ts +137 -0
- package/systems/widgets/shared/charts.ts +243 -0
- package/systems/widgets/shared/index.ts +12 -3
- package/{packages/sdk/src → systems/widgets/shared}/relative-dates.ts +2 -1
- package/systems/widgets/shared/spec.ts +208 -0
- package/{packages/sdk/src → systems/widgets/shared}/widget-check.ts +7 -9
- package/{packages/sdk/src → systems/widgets/shared}/widget-schema.ts +4 -4
- package/packages/core/src/remote-auth.ts +0 -111
- package/packages/core/src/widgets.ts +0 -427
- package/packages/web/dist/assets/AdminLayout-B6Jrc_4W.js +0 -2
- package/packages/web/dist/assets/ApiServiceForm-BxprSaAq.css +0 -1
- package/packages/web/dist/assets/ApiServiceForm-CuuQgOJc.js +0 -2
- package/packages/web/dist/assets/ApiServiceView-7bTHSO_Z.js +0 -2
- package/packages/web/dist/assets/ApiServiceView-BVmdRCjR.css +0 -1
- package/packages/web/dist/assets/ApiServicesView-BTLV6c8n.css +0 -1
- package/packages/web/dist/assets/ApiServicesView-BXi24n49.js +0 -2
- package/packages/web/dist/assets/ChartVisual-BnFG9aFi.css +0 -1
- package/packages/web/dist/assets/ChartVisual-C4mgw4wh.js +0 -11
- package/packages/web/dist/assets/ChatPage-CAhHE03Z.js +0 -4
- package/packages/web/dist/assets/ConfigWithCustom-D_-rY66L.js +0 -3
- package/packages/web/dist/assets/ContextItemPage-rUI3-T_L.js +0 -2
- package/packages/web/dist/assets/ContextPage-CtefzyKg.js +0 -3
- package/packages/web/dist/assets/DataTypePage-BW9fWaz8.js +0 -2
- package/packages/web/dist/assets/FnList-BCnb4kOB.css +0 -1
- package/packages/web/dist/assets/FnList-Bx6H-kux.js +0 -2
- package/packages/web/dist/assets/GraphPanel-9tztGHmu.js +0 -2
- package/packages/web/dist/assets/InjectedList-CSWqRiON.js +0 -2
- package/packages/web/dist/assets/InstanceTypes-D3rAEiE7.js +0 -2
- package/packages/web/dist/assets/InstanceView-DoH8C-1j.js +0 -2
- package/packages/web/dist/assets/LimitsView-DY2C9nYS.js +0 -2
- package/packages/web/dist/assets/McpDialog-DhOCk6_E.js +0 -2
- package/packages/web/dist/assets/McpServerForm-Cor3fI7s.js +0 -2
- package/packages/web/dist/assets/McpServerForm-DsHaf5Um.css +0 -1
- package/packages/web/dist/assets/McpServerView-7I76EznB.css +0 -1
- package/packages/web/dist/assets/McpServerView-ewXRPEmZ.js +0 -2
- package/packages/web/dist/assets/McpServersView-Dd0xmfws.js +0 -2
- package/packages/web/dist/assets/ModelsView-cMHygeiK.js +0 -2
- package/packages/web/dist/assets/PeopleView-DRfeNWK5.js +0 -2
- package/packages/web/dist/assets/RemoteAuthFields-CgiufuqQ.js +0 -2
- package/packages/web/dist/assets/RemoteAuthFields-Dm44vz2t.css +0 -1
- package/packages/web/dist/assets/ResourcesPage-BBx2u2mw.js +0 -2
- package/packages/web/dist/assets/ResultGrid-Bj-0I5HY.js +0 -2
- package/packages/web/dist/assets/ResultGrid-CuUQyTjW.css +0 -1
- package/packages/web/dist/assets/ReviewView-DZF9E1hb.js +0 -3
- package/packages/web/dist/assets/RunCard-BnrtK2Yp.js +0 -2
- package/packages/web/dist/assets/RunCard-CfyRaDLS.css +0 -1
- package/packages/web/dist/assets/ServiceRows-4WythFpF.js +0 -2
- package/packages/web/dist/assets/ServiceRows-HPQ0pN6b.css +0 -1
- package/packages/web/dist/assets/SettingsPage-BN4oSzoL.js +0 -3
- package/packages/web/dist/assets/SignInPage-Djx-M-0U.css +0 -1
- package/packages/web/dist/assets/SystemPageHost-BeZ-6N0-.css +0 -1
- package/packages/web/dist/assets/SystemPageHost-DrMrEPyh.js +0 -2
- package/packages/web/dist/assets/SystemView-Be6TBM4j.js +0 -2
- package/packages/web/dist/assets/SystemsView-DZtT3laz.js +0 -2
- package/packages/web/dist/assets/WidgetView-DQUDeFkB.css +0 -1
- package/packages/web/dist/assets/WidgetView-DX4ejNb6.js +0 -3
- package/packages/web/dist/assets/export-BwFkEtcm.js +0 -15
- package/packages/web/dist/assets/index-6ScWTFy2.js +0 -4
- package/packages/web/dist/assets/index-CEslGcrX.css +0 -1
- package/packages/web/dist/assets/problems-t1E_ovSz.js +0 -2
- package/packages/web/dist/assets/record-edits-Bfsi4lU3.js +0 -2
- package/packages/web/dist/assets/remote-config-BNQhSDzB.js +0 -2
- package/packages/web/dist/assets/routes-DV4IJpwe.js +0 -4
- package/packages/web/dist/assets/size-Bh__w5aI.js +0 -2
- package/packages/web/dist/assets/src-CT3TeFaM.js +0 -43
- package/packages/web/dist/assets/state-xfQqaQPX.js +0 -2
- package/packages/web/dist/assets/widget-host-B87MTaTn.js +0 -2
- package/packages/web/dist/assets/widgets-BBCuSS6E.js +0 -2
- package/systems/fs/context/authoring/parts/client.reference/textareaprops.md +0 -195
- package/systems/fs/context/authoring/parts/core-types/remote-auth-ts.md +0 -64
- package/systems/fs/context/authoring/parts/core-types/widgets-ts.md +0 -303
- package/systems/fs/context/authoring/parts/widgets.reference/hub-visuals.md +0 -627
- package/systems/fs/context/authoring/parts/widgets.reference/sourcecompatible.md +0 -154
|
@@ -61,7 +61,7 @@ export async function ensureHubActor(store: HubStore, clock: () => number, name:
|
|
|
61
61
|
|
|
62
62
|
/** The web build folder: the setting, or `packages/web/dist` beside the hub package. */
|
|
63
63
|
export function webDist(settings: HubSettings): string {
|
|
64
|
-
return settings.httpEnv.
|
|
64
|
+
return settings.httpEnv.FNLOOM_WEB_DIST === '' ? join(HUB_PACKAGE_DIR, '..', 'web', 'dist') : settings.httpEnv.FNLOOM_WEB_DIST;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/** An empty ayepi server that plugins are installed into. */
|
|
@@ -99,7 +99,7 @@ export async function startHub(options: StartOptions & StartSeams): Promise<Runn
|
|
|
99
99
|
|
|
100
100
|
const store = await options.modules.store({
|
|
101
101
|
// vector tables are sized by the embedder's declaration once the index knows it (`vectors.ensure`)
|
|
102
|
-
file: settings.hubEnv.
|
|
102
|
+
file: settings.hubEnv.FNLOOM_DB_FILE, now: clock, log,
|
|
103
103
|
tuning: settings.storeEnv,
|
|
104
104
|
});
|
|
105
105
|
/** Once the lifecycle starts, stopping it closes the store and the log. */
|
|
@@ -107,51 +107,51 @@ export async function startHub(options: StartOptions & StartSeams): Promise<Runn
|
|
|
107
107
|
try {
|
|
108
108
|
await store.migrate();
|
|
109
109
|
const keys = await loadKeys(settings, options.keyMaker ?? { secret: randomSecret, vapid: generateVapidKeys });
|
|
110
|
-
const identity = await readHubIdentity(store, settings.hubEnv.
|
|
110
|
+
const identity = await readHubIdentity(store, settings.hubEnv.FNLOOM_NAME, HUB_INFO.version);
|
|
111
111
|
const hubActor = await ensureHubActor(store, clock, identity.name);
|
|
112
112
|
|
|
113
113
|
// the API docs take the name the hub started with
|
|
114
|
-
const web = emptyServer({ docs: settings.httpEnv.
|
|
115
|
-
thresholdMs: settings.httpEnv.
|
|
114
|
+
const web = emptyServer({ docs: settings.httpEnv.FNLOOM_DOCS ? { info: { title: identity.name, version: identity.version } } : false, shed: {
|
|
115
|
+
thresholdMs: settings.httpEnv.FNLOOM_SHED_THRESHOLD, sustainedMs: settings.httpEnv.FNLOOM_SHED_SUSTAINED, recoverMs: settings.httpEnv.FNLOOM_SHED_RECOVER,
|
|
116
116
|
response: () => Response.json({ error: { code: 'OVERLOADED', message: 'the hub is busy; try again shortly' } }, { status: 503, headers: { 'retry-after': '1' } }),
|
|
117
117
|
} });
|
|
118
118
|
const systems = peers(systemLinkSpec);
|
|
119
119
|
const link = emptyServer({ peers: systems });
|
|
120
|
-
// raw content and forms: files by default, the hub's database with
|
|
120
|
+
// raw content and forms: files by default, the hub's database with FNLOOM_CONTENT_AT=database
|
|
121
121
|
const contentFiles = openContentFiles({
|
|
122
|
-
at: settings.resourcesEnv.
|
|
123
|
-
busyTimeout: settings.storeEnv.
|
|
122
|
+
at: settings.resourcesEnv.FNLOOM_CONTENT_AT, dir: settings.hubEnv.FNLOOM_FILES_DIR, database: settings.hubEnv.FNLOOM_DB_FILE,
|
|
123
|
+
busyTimeout: settings.storeEnv.FNLOOM_DB_BUSY_TIMEOUT, clock, onError: (error, op, key) => { log.warn('files.failed', { op, key }, error); },
|
|
124
124
|
});
|
|
125
125
|
const files = new NamedContentFiles(contentFiles.files);
|
|
126
|
-
const mounted = mountFiles(web, files, { secret: keys.filesSecret, basePath: FILES_PATH, expiresIn: Math.round(settings.httpEnv.
|
|
126
|
+
const mounted = mountFiles(web, files, { secret: keys.filesSecret, basePath: FILES_PATH, expiresIn: Math.round(settings.httpEnv.FNLOOM_PRESIGN_TTL / 1000), now: clock });
|
|
127
127
|
|
|
128
128
|
const base: BaseServices = { settings, log, clock, bus, store };
|
|
129
|
-
const api = apiServices(base, { keys, files, presign: mounted.presign, pushSender: options.pushSender ?? webPushSender({ ...keys.vapid, subject: settings.pushEnv.
|
|
129
|
+
const api = apiServices(base, { keys, files, presign: mounted.presign, pushSender: options.pushSender ?? webPushSender({ ...keys.vapid, subject: settings.pushEnv.FNLOOM_VAPID_SUBJECT }) });
|
|
130
130
|
const { hub, builds } = assemble(base, api, options.modules, {
|
|
131
|
-
peers: systems, hubActor, systemTokens: new JwtSystemTokens({ secret: keys.jwtSecret, ttl: settings.authEnv.
|
|
131
|
+
peers: systems, hubActor, systemTokens: new JwtSystemTokens({ secret: keys.jwtSecret, ttl: settings.authEnv.FNLOOM_ACCESS_TTL }),
|
|
132
132
|
});
|
|
133
133
|
const modules = builds();
|
|
134
134
|
|
|
135
|
-
const {
|
|
135
|
+
const { FNLOOM_ADMIN_EMAIL: email, FNLOOM_ADMIN_PASSWORD: password } = settings.authEnv;
|
|
136
136
|
// the admin `fnloom start` makes is on this machine, so they get its time zone
|
|
137
137
|
if (email !== undefined && password !== undefined && await api.auth.bootstrap({ email, password, timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone })) {
|
|
138
138
|
log.info('auth.admin.bootstrapped', { email });
|
|
139
139
|
}
|
|
140
|
-
await announceSetup(api.auth, { file: join(settings.hubEnv.
|
|
140
|
+
await announceSetup(api.auth, { file: join(settings.hubEnv.FNLOOM_DATA, SETUP_FILE), hubUrl: settings.hubEnv.FNLOOM_URL, log });
|
|
141
141
|
|
|
142
142
|
const lc = updown<ComponentName>({
|
|
143
|
-
signals: options.signals === true ? SIGNALS : false, exit: options.signals === true, timeout: settings.httpEnv.
|
|
143
|
+
signals: options.signals === true ? SIGNALS : false, exit: options.signals === true, timeout: settings.httpEnv.FNLOOM_SHUTDOWN_TIMEOUT,
|
|
144
144
|
onError: (error, phase, component) => { log.error('lifecycle.failed', { phase, component }, error); },
|
|
145
145
|
});
|
|
146
146
|
// https on the port follows the admin's switch, read before the first connection
|
|
147
147
|
await api.https.load();
|
|
148
148
|
const front = new HttpFront({
|
|
149
|
-
web, link, mcp: { fetch: (request) => hub.mcp.endpoints.handle(request) }, health: { live: () => lc.isLive(), ready: () => lc.isReady() }, heartbeat: settings.httpEnv.
|
|
150
|
-
tokenMargin: settings.httpEnv.
|
|
151
|
-
maxMessage: { browser: settings.httpEnv.
|
|
149
|
+
web, link, mcp: { fetch: (request) => hub.mcp.endpoints.handle(request) }, health: { live: () => lc.isLive(), ready: () => lc.isReady() }, heartbeat: settings.httpEnv.FNLOOM_WS_HEARTBEAT,
|
|
150
|
+
tokenMargin: settings.httpEnv.FNLOOM_WS_TOKEN_MARGIN, clock, log,
|
|
151
|
+
maxMessage: { browser: settings.httpEnv.FNLOOM_WS_MAX_MESSAGE, link: settings.linkEnv.FNLOOM_MAX_FRAME }, linkGate: hub.link.gate,
|
|
152
152
|
files: [
|
|
153
153
|
new ConnectCallbackRoute(() => hub.connections), new SsoRoute(() => api.sso), new ClientBuildRoute({ content: api.content, lifecycle: () => hub.link.lifecycle }),
|
|
154
|
-
new AuthorityRoute(() => api.https.authority(), api.https.host), new WebAppRoute(webDist(settings), api.identity, settings.hubEnv.
|
|
154
|
+
new AuthorityRoute(() => api.https.authority(), api.https.host), new WebAppRoute(webDist(settings), api.identity, settings.hubEnv.FNLOOM_URL),
|
|
155
155
|
],
|
|
156
156
|
tls: api.https,
|
|
157
157
|
tokenExpiry: (token) => accessTokenExpiry(token, keys.jwtSecret),
|
|
@@ -159,7 +159,7 @@ export async function startHub(options: StartOptions & StartSeams): Promise<Runn
|
|
|
159
159
|
const onError = (error: unknown, phase: string, plugin: string): void => { log.warn('plugin.teardown.failed', { phase, plugin }, error); };
|
|
160
160
|
const webHost = createPluginHost(web, { onError });
|
|
161
161
|
const linkHost = createPluginHost(link, { onError });
|
|
162
|
-
let port = options.port ?? settings.hubEnv.
|
|
162
|
+
let port = options.port ?? settings.hubEnv.FNLOOM_PORT;
|
|
163
163
|
let sweeper: NodeJS.Timeout | undefined;
|
|
164
164
|
let certCheck: NodeJS.Timeout | undefined;
|
|
165
165
|
const work = moduleHooks(modules, 'work');
|
|
@@ -184,18 +184,18 @@ export async function startHub(options: StartOptions & StartSeams): Promise<Runn
|
|
|
184
184
|
{
|
|
185
185
|
name: COMPONENTS.http, deps: [COMPONENTS.work],
|
|
186
186
|
up: async () => {
|
|
187
|
-
port = await front.listen(port, settings.hubEnv.
|
|
187
|
+
port = await front.listen(port, settings.hubEnv.FNLOOM_HOST);
|
|
188
188
|
sweeper = setInterval(() => {
|
|
189
189
|
api.content.sweep().then((removed) => { if (removed > 0) { log.info('content.uploads.swept', { removed }); } }, (error: unknown) => {
|
|
190
190
|
log.warn('content.uploads.sweep.failed', {}, error);
|
|
191
191
|
});
|
|
192
|
-
}, settings.httpEnv.
|
|
192
|
+
}, settings.httpEnv.FNLOOM_PRESIGN_TTL);
|
|
193
193
|
sweeper.unref();
|
|
194
194
|
api.https.listening(port);
|
|
195
195
|
// a new Wi-Fi or Tailscale address needs a certificate that names it
|
|
196
196
|
certCheck = setInterval(() => { front.refreshTls(); }, TLS_RECHECK);
|
|
197
197
|
certCheck.unref();
|
|
198
|
-
log.info('hub.listening', { port, host: settings.hubEnv.
|
|
198
|
+
log.info('hub.listening', { port, host: settings.hubEnv.FNLOOM_HOST, version: HUB_INFO.version, https: api.https.enabled() ? api.https.source : 'off' });
|
|
199
199
|
},
|
|
200
200
|
pre: () => {
|
|
201
201
|
clearInterval(sweeper);
|
|
@@ -207,7 +207,7 @@ export async function startHub(options: StartOptions & StartSeams): Promise<Runn
|
|
|
207
207
|
{
|
|
208
208
|
name: COMPONENTS.links, deps: [COMPONENTS.http], up: links.up, post: links.post,
|
|
209
209
|
pre: async () => {
|
|
210
|
-
await hub.link.connections.stopAll('shutdown', settings.linkEnv.
|
|
210
|
+
await hub.link.connections.stopAll('shutdown', settings.linkEnv.FNLOOM_STOP_TIMEOUT);
|
|
211
211
|
await links.pre();
|
|
212
212
|
},
|
|
213
213
|
},
|
|
@@ -38,7 +38,7 @@ function payloadOf(payload: unknown): Pick<LlmPayload, 'mode' | 'contextor'> {
|
|
|
38
38
|
/** The cache miss of an assistant message's first model call, if it was one. */
|
|
39
39
|
export async function cacheMissOf(deps: Pick<ChatDeps, 'store' | 'catalog' | 'settings'>, message: Pick<ChatMessage, 'session' | 'turn' | 'createdAt'>): Promise<ChatMessage['cacheMiss']> {
|
|
40
40
|
const calls = deps.store.table('modelCalls');
|
|
41
|
-
const lookback = deps.settings.chat.
|
|
41
|
+
const lookback = deps.settings.chat.FNLOOM_CACHE_LOOKBACK;
|
|
42
42
|
const mine = await calls.find({ where: { session: message.session, turn: message.turn, modality: 'chat', startedAt: { gte: message.createdAt } }, order: [['startedAt', 'asc']], limit: lookback });
|
|
43
43
|
const first = mine.items.find(agentChat);
|
|
44
44
|
if (first?.units.modality !== 'chat' || first.units.caching !== 'yes' || cachedOf(first) > 0) return undefined;
|
|
@@ -54,7 +54,7 @@ export function createChat(given: ChatDeps): ChatModule {
|
|
|
54
54
|
const reply = new SessionReplyRule();
|
|
55
55
|
const suggestions = new HubSuggestions(deps);
|
|
56
56
|
const enrich = new HubMessageEnricher(deps, suggestions);
|
|
57
|
-
const mentionRequests = new StoreMentionRequests({ keys: () => deps.store.ports.work.store, ttl: deps.settings.chat.
|
|
57
|
+
const mentionRequests = new StoreMentionRequests({ keys: () => deps.store.ports.work.store, ttl: deps.settings.chat.FNLOOM_MENTION_REQUEST_TTL, ...(deps.random === undefined ? {} : { random: deps.random }) });
|
|
58
58
|
const mentions = new ChatMentions(deps, people, [new HubMentions(deps), new LinkedMentions(deps, mentionRequests)]);
|
|
59
59
|
const notifications = new StoreNotifications(deps, presence);
|
|
60
60
|
const state = new TableStateService(deps);
|
|
@@ -236,7 +236,7 @@ export class StoreCompareService implements CompareService {
|
|
|
236
236
|
if (own === undefined) { throw new ChatError('not-found', `No turn ${variant.turn}.`); }
|
|
237
237
|
// a chosen variant's messages have moved to the compared turn
|
|
238
238
|
const answers = turn.compare?.chosen === variant.variant ? turn.id : own.id;
|
|
239
|
-
const messages = (await store.table('messages').find({ where: { turn: answers, role: 'assistant' }, order: [['createdAt', 'asc']], limit: settings.chat.
|
|
239
|
+
const messages = (await store.table('messages').find({ where: { turn: answers, role: 'assistant' }, order: [['createdAt', 'asc']], limit: settings.chat.FNLOOM_MESSAGE_PAGE })).items;
|
|
240
240
|
const root = own.root === undefined ? undefined : await store.table('runs').get(own.root);
|
|
241
241
|
const asking = await allRows(store.table('runs'), { where: { turn: answers, status: 'awaiting-approval' } });
|
|
242
242
|
const approvals = (await Promise.all(asking.map(async (run) => allRows(store.table('approvals'), { where: { run: run.id, status: 'pending' } })))).flat();
|
|
@@ -265,7 +265,7 @@ export class StoreCompareService implements CompareService {
|
|
|
265
265
|
|
|
266
266
|
/** What a variant did that stays done: its tool runs that finished and change things (not reads, not agents). */
|
|
267
267
|
async #effects(turn: TurnId): Promise<CompareEffect[]> {
|
|
268
|
-
const runs = await someRows(this.#deps.store.table('runs'), { where: { turn, status: 'done' }, order: [['createdAt', 'asc']] }, this.#deps.settings.chat.
|
|
268
|
+
const runs = await someRows(this.#deps.store.table('runs'), { where: { turn, status: 'done' }, order: [['createdAt', 'asc']] }, this.#deps.settings.chat.FNLOOM_UNDO_RUNS);
|
|
269
269
|
const effects: CompareEffect[] = [];
|
|
270
270
|
for (const run of runs) { if (await this.#changes(run)) { effects.push({ run: run.id, fn: run.fn }); } }
|
|
271
271
|
return effects;
|
|
@@ -166,7 +166,7 @@ export class LinkDeliveryService implements DeliveryService {
|
|
|
166
166
|
|
|
167
167
|
/** Call the system: an action with its asker (its result checked against the action's type), or a form. */
|
|
168
168
|
async #send(delivery: DeliveryRecord): Promise<Json | undefined> {
|
|
169
|
-
const timeout = this.#deps.settings.chat.
|
|
169
|
+
const timeout = this.#deps.settings.chat.FNLOOM_DELIVERY_TIMEOUT;
|
|
170
170
|
const { kind } = delivery;
|
|
171
171
|
if ('form' in kind) {
|
|
172
172
|
await callSystem(this.#deps.link, delivery.system, timeout, (c, signal) => c.peer.call('form', { delivery: delivery.id, run: kind.form, value: kind.value }, { signal }));
|
|
@@ -19,8 +19,8 @@ import type { ChatEnv } from './env.ts';
|
|
|
19
19
|
/** The hub settings chat reads: its own slice, and the shared ones it follows. */
|
|
20
20
|
export interface ChatSettings {
|
|
21
21
|
readonly chat: ChatEnv;
|
|
22
|
-
readonly queue: Pick<HubSettings['queueEnv'], '
|
|
23
|
-
readonly model: Pick<HubSettings['modelEnv'], '
|
|
22
|
+
readonly queue: Pick<HubSettings['queueEnv'], 'FNLOOM_ACTIVE_WINDOW'>;
|
|
23
|
+
readonly model: Pick<HubSettings['modelEnv'], 'FNLOOM_SUGGESTIONS'>;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/** Everything chat uses, by the interface that provides it. */
|
|
@@ -52,7 +52,7 @@ export interface ChatDeps {
|
|
|
52
52
|
* The room, in tokens, the prompt for a message has besides its fixed part (the session's agent model's window less
|
|
53
53
|
* its output, reasoning, margin, instructions, tools and the message itself: the contextor's flexible budget), so
|
|
54
54
|
* context a suggestions chooser loads into the message is sized to it. Undefined when it can't be told (no agent, no
|
|
55
|
-
* planner); then only `
|
|
55
|
+
* planner); then only `FNLOOM_AUTOLOAD_TOKENS` holds it.
|
|
56
56
|
*/
|
|
57
57
|
readonly promptRoom?: (input: { session: SessionId; text: string; actor: ActorId }) => Promise<number | undefined>;
|
|
58
58
|
/**
|
|
@@ -331,8 +331,8 @@ export class HubMessageEnricher implements MessageEnricher {
|
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
/**
|
|
334
|
-
* The person's memories whose meaning is closest to the message (iteration 4): up to `
|
|
335
|
-
* at or over `
|
|
334
|
+
* The person's memories whose meaning is closest to the message (iteration 4): up to `FNLOOM_RECALL_MEMORIES`, each
|
|
335
|
+
* at or over `FNLOOM_RECALL_THRESHOLD`, brought in as their text (`<loaded_for_you>`, `by: 'recall'`), so a kept
|
|
336
336
|
* preference, limit or detail is in front of the model in a new chat without it having to think of searching
|
|
337
337
|
* (iteration 3, case 28: the model searched in the chat it saved the memory in, never in the next one). Only memories
|
|
338
338
|
* the person may see in this chat (a session memory only in its own chat), on, and not suggested, loaded or recalled
|
|
@@ -341,7 +341,7 @@ export class HubMessageEnricher implements MessageEnricher {
|
|
|
341
341
|
* fits. Undefined when nothing fits or the search fails (logged).
|
|
342
342
|
*/
|
|
343
343
|
async #recall(at: { session: Session; actor: ActorId; toolset: ChatModeType; text: string }, taken: readonly QualifiedName[]): Promise<LoadedForYouPart | undefined> {
|
|
344
|
-
const {
|
|
344
|
+
const { FNLOOM_RECALL_MEMORIES: most, FNLOOM_RECALL_THRESHOLD: least } = this.#deps.settings.chat;
|
|
345
345
|
if (most === 0 || at.text.trim() === '') return undefined;
|
|
346
346
|
const { session } = at;
|
|
347
347
|
const seen: string[] = [...new Set<string>([...(session.suggested ?? []), ...session.context, ...(session.fixed?.injected ?? []), ...taken])];
|
|
@@ -376,16 +376,16 @@ export class HubMessageEnricher implements MessageEnricher {
|
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
/**
|
|
379
|
-
* The most tokens of context text a chooser may load into one message: `
|
|
380
|
-
* `
|
|
379
|
+
* The most tokens of context text a chooser may load into one message: `FNLOOM_AUTOLOAD_TOKENS`, and no more than
|
|
380
|
+
* `FNLOOM_AUTOLOAD_ROOM_SHARE` of the room the prompt has besides its fixed part (`ChatDeps.promptRoom`), so the
|
|
381
381
|
* contextor's plan, which counts the message in its fixed part, still has room for the history.
|
|
382
382
|
*/
|
|
383
383
|
async #contextRoom(at: { session: Session; actor: ActorId; text: string }): Promise<number> {
|
|
384
|
-
const cap = this.#deps.settings.chat.
|
|
384
|
+
const cap = this.#deps.settings.chat.FNLOOM_AUTOLOAD_TOKENS;
|
|
385
385
|
if (cap === 0 || this.#deps.promptRoom === undefined) return cap;
|
|
386
386
|
try {
|
|
387
387
|
const room = await this.#deps.promptRoom({ session: at.session.id, text: at.text, actor: at.actor });
|
|
388
|
-
return room === undefined ? cap : Math.max(0, Math.min(cap, Math.floor(room * this.#deps.settings.chat.
|
|
388
|
+
return room === undefined ? cap : Math.max(0, Math.min(cap, Math.floor(room * this.#deps.settings.chat.FNLOOM_AUTOLOAD_ROOM_SHARE)));
|
|
389
389
|
} catch (error) {
|
|
390
390
|
this.#deps.log.warn('chat.suggest.room-unknown', { session: at.session.id, error: messageOf(error) });
|
|
391
391
|
return cap;
|
|
@@ -7,26 +7,26 @@ import { z } from 'zod';
|
|
|
7
7
|
|
|
8
8
|
/** Chat tunables. */
|
|
9
9
|
export const chatEnv = env({
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
10
|
+
FNLOOM_MENTION_TIMEOUT: z.number().int().min(100).default(5_000).describe('How long a system has to write a mention\'s LLM text when a message is sent.'),
|
|
11
|
+
FNLOOM_MENTION_SEARCH_TIMEOUT: z.number().int().min(100).default(3_000).describe('How long a system has to answer `@` search and hover.'),
|
|
12
|
+
FNLOOM_MENTION_REQUEST_TTL: z.number().int().min(1_000).default(120_000).describe('How long a system may search the hub\'s resources for an `@` search the hub sent it, as the person mentioning.'),
|
|
13
|
+
FNLOOM_DELIVERY_TIMEOUT: z.number().int().min(100).default(30_000).describe('How long a system has to answer one delivered action or form.'),
|
|
14
|
+
FNLOOM_MESSAGE_PAGE: z.number().int().min(1).max(200).default(50).describe('Messages per page when a request gives no limit.'),
|
|
15
|
+
FNLOOM_SESSION_PAGE: z.number().int().min(1).max(200).default(30).describe('Sessions per page when a request gives no limit.'),
|
|
16
|
+
FNLOOM_TITLE_LENGTH: z.number().int().min(8).default(60).describe('A session titled by its first message keeps this many characters of it.'),
|
|
17
|
+
FNLOOM_FILE_INLINE_CHARS: z.number().int().min(0).default(4_000).describe('An attached text file (plain text, markdown, CSV, JSON…) is put in the message for the model up to this many characters (the rest read with hub/resource_read); 0 puts none in.'),
|
|
18
|
+
FNLOOM_TURN_ERRORS: z.number().int().min(0).default(3).describe('A turn stops after this many failed runs; 0 keeps feeding errors back to the agent.'),
|
|
19
|
+
FNLOOM_SUGGEST_THRESHOLD: z.number().min(0).max(1).default(0.3).describe('The least score (its similarity of meaning to the message, 0 to 1) a fn or context item needs to be suggested with a message when no model picks suggestions, or the one that does fails. With EmbeddingGemma a close fit scores 0.35 to 0.7, a relevant general fn 0.2 to 0.3, and the median item 0.09 to 0.19 (measured 2026-11-22).'),
|
|
20
|
+
FNLOOM_SUGGEST_DECISION_TIMEOUT: z.number().int().min(500).default(4_000).describe('How long the suggestion decision model has to choose before the score decides; a sent message waits this long at most before it shows.'),
|
|
21
|
+
FNLOOM_AUTOLOAD_TOKENS: z.number().int().min(0).default(6_000).describe('The most tokens of context text a suggestions chooser whose action is `load` may bring into one message (estimated); what doesn\'t fit is suggested instead. 0 loads no context (fns still load).'),
|
|
22
|
+
FNLOOM_AUTOLOAD_ROOM_SHARE: z.number().min(0).max(1).default(0.25).describe('The share of the prompt\'s room (the agent model\'s window less its output, reasoning, margin, instructions, tools and the message) that context loaded into a message may take, under FNLOOM_AUTOLOAD_TOKENS, so it never crowds out the chat\'s history.'),
|
|
23
|
+
FNLOOM_RECALL_MEMORIES: z.number().int().min(0).max(20).default(3).describe('The most memories of the person\'s brought into a message as their text (`<loaded_for_you>`) because their meaning is close to it, each once a chat, whatever picks suggestions; 0 recalls none (memories are then found only by search). Memories are not otherwise in front of the model in a new chat.'),
|
|
24
|
+
FNLOOM_RECALL_THRESHOLD: z.number().min(0).max(1).default(0.2).describe('The least similarity of meaning (0 to 1) a memory needs to its message to be recalled into it. Lower than FNLOOM_SUGGEST_THRESHOLD: a memory is one short sentence about the person, and a message that depends on it rarely restates it (iteration 3: a kept fact about what to avoid scored 0.24 to 0.27 to the later request it bore on, under the 0.3 suggestion threshold, and was missed in all three runs).'),
|
|
25
|
+
FNLOOM_CACHE_LOOKBACK: z.number().int().min(1).max(500).default(50).describe('How many of a session\'s model calls are looked through to tell whether a reply missed the prompt cache.'),
|
|
26
|
+
FNLOOM_CONFIG_NOTICE_GRACE: z.number().int().min(0).default(30_000).describe('How long a system may sit in "needs config" before the admins get an inbox notice; a system that connects configured within it gets none (as a fresh hub\'s systems usually do).'),
|
|
27
|
+
FNLOOM_CITE_HOLD_CHARS: z.number().int().min(64).default(2_000).describe('How long a cite (from <cite to </cite>) may run while an answer streams: until it closes the text is held back; longer, it was no cite and shows as text.'),
|
|
28
|
+
FNLOOM_CITE_VALUE_CHARS: z.number().int().min(0).default(4_000).describe('The most characters of JSON a cited value may take to be kept on its message; a larger one is read from its run\'s result.'),
|
|
29
|
+
FNLOOM_UNDO_RUNS: z.number().int().min(1).default(500).describe('The most runs one turn\'s undo looks at.'),
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
/** The parsed chat tunables. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Mention requests (build 8, `core/mention-search.ts`): each `@` search the hub sends a system gets an id tied to the
|
|
3
3
|
* person asking, their session and the system asked, kept in the hub's key/value store for
|
|
4
|
-
* `
|
|
4
|
+
* `FNLOOM_MENTION_REQUEST_TTL`. While it is fresh the system may search the hub's resources for it
|
|
5
5
|
* (`mentionResources` on the hub link), and the search runs as that person, so a system can only ever search for the
|
|
6
6
|
* person it was asked about.
|
|
7
7
|
*/
|
|
@@ -44,7 +44,7 @@ export async function searchForMention(deps: MentionSearchDeps, data: MentionRes
|
|
|
44
44
|
const seen = keepSeen(access, { context: (name) => deps.catalog().context(name), type: (name) => deps.catalog().type(name) }, session.id);
|
|
45
45
|
const roots = data.roots;
|
|
46
46
|
const found = await deps.search().search({
|
|
47
|
-
// words alone: an `@` search answers as the person types, inside
|
|
47
|
+
// words alone: an `@` search answers as the person types, inside FNLOOM_MENTION_SEARCH_TIMEOUT, which waiting on the
|
|
48
48
|
// embedder for the query's vector would use up
|
|
49
49
|
text: data.query, kinds: ['section'], limit: data.limit, systems: searchSystems(session), match: 'text',
|
|
50
50
|
// inside the roots the system asked for, as the person may see them; checked before the limit counts
|
|
@@ -158,16 +158,16 @@ export class LinkedMentions implements MentionProvider {
|
|
|
158
158
|
async search(ask: MentionAsk, query: string): Promise<MentionOption[]> {
|
|
159
159
|
// the search is tied to the person asking, so the system may search the hub's resources for them (`mentionResources`)
|
|
160
160
|
const request = await this.#requests.mint({ system: SystemName.parse(splitName(ask.provider).system), actor: ask.actor, session: ask.session });
|
|
161
|
-
return this.#call(ask, this.#deps.settings.chat.
|
|
161
|
+
return this.#call(ask, this.#deps.settings.chat.FNLOOM_MENTION_SEARCH_TIMEOUT, (peer, body, signal) => peer.call('mentions', { ...body, query, request }, { signal }));
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
async hover(ask: MentionAsk, target: Json): Promise<MentionHover | undefined> {
|
|
165
|
-
const { hover } = await this.#call(ask, this.#deps.settings.chat.
|
|
165
|
+
const { hover } = await this.#call(ask, this.#deps.settings.chat.FNLOOM_MENTION_SEARCH_TIMEOUT, (peer, body, signal) => peer.call('mentionHover', { ...body, target }, { signal }));
|
|
166
166
|
return hover;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
async text(ask: MentionAsk, target: Json): Promise<string> {
|
|
170
|
-
const { text } = await this.#call(ask, this.#deps.settings.chat.
|
|
170
|
+
const { text } = await this.#call(ask, this.#deps.settings.chat.FNLOOM_MENTION_TIMEOUT, (peer, body, signal) => peer.call('mentionText', { ...body, target }, { signal }));
|
|
171
171
|
return text;
|
|
172
172
|
}
|
|
173
173
|
|
|
@@ -85,7 +85,7 @@ export class StoreNotifications implements NotificationService {
|
|
|
85
85
|
readonly #deps: Pick<ChatDeps, 'store' | 'clock' | 'random' | 'bus' | 'push' | 'log' | 'settings'>;
|
|
86
86
|
readonly #presence: PresenceTracker;
|
|
87
87
|
readonly #seen = new RecentSet(REMEMBERED);
|
|
88
|
-
/** Systems in "needs config" whose notice waits out the grace (`
|
|
88
|
+
/** Systems in "needs config" whose notice waits out the grace (`FNLOOM_CONFIG_NOTICE_GRACE`). */
|
|
89
89
|
readonly #waiting = new Map<SystemName, ReturnType<typeof setTimeout>>();
|
|
90
90
|
|
|
91
91
|
constructor(deps: Pick<ChatDeps, 'store' | 'clock' | 'random' | 'bus' | 'push' | 'log' | 'settings'>, presence: PresenceTracker) {
|
|
@@ -239,7 +239,7 @@ export class StoreNotifications implements NotificationService {
|
|
|
239
239
|
await this.#admins((user) => this.notify({ user, reason: 'system-disconnected', title: `${system} disconnected`, body: 'Its fns are unavailable until it connects again.', link: { system } }));
|
|
240
240
|
}
|
|
241
241
|
if (status !== 'needs-config') { return; }
|
|
242
|
-
const grace = this.#deps.settings.chat.
|
|
242
|
+
const grace = this.#deps.settings.chat.FNLOOM_CONFIG_NOTICE_GRACE;
|
|
243
243
|
if (grace === 0) { await this.#configNeeded(system); return; }
|
|
244
244
|
// a fresh hub's systems often connect before their config arrives: tell the admins only if it stays that way
|
|
245
245
|
this.#waiting.set(system, setTimeout(() => {
|
|
@@ -31,7 +31,7 @@ export class MemoryPresence implements PresenceTracker {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
#focused(match: (presence: Presence) => boolean): boolean {
|
|
34
|
-
const since = this.#deps.clock() - this.#deps.settings.queue.
|
|
34
|
+
const since = this.#deps.clock() - this.#deps.settings.queue.FNLOOM_ACTIVE_WINDOW;
|
|
35
35
|
for (const presence of this.#seen.values()) {
|
|
36
36
|
if (presence.focused && presence.lastActiveAt >= since && match(presence)) { return true; }
|
|
37
37
|
}
|
|
@@ -40,7 +40,7 @@ export class MemoryPresence implements PresenceTracker {
|
|
|
40
40
|
|
|
41
41
|
/** Forget presence older than the active window, so the map stays as small as the people here. */
|
|
42
42
|
#prune(now: number): void {
|
|
43
|
-
const since = now - this.#deps.settings.queue.
|
|
43
|
+
const since = now - this.#deps.settings.queue.FNLOOM_ACTIVE_WINDOW;
|
|
44
44
|
for (const [key, presence] of this.#seen) {
|
|
45
45
|
if (presence.lastActiveAt < since) { this.#seen.delete(key); }
|
|
46
46
|
}
|
|
@@ -98,7 +98,7 @@ export class StoreSessionService implements SessionService {
|
|
|
98
98
|
async list(viewer: ActorId, query: Compact<SessionListQuery>): Promise<Page<SessionSummary>> {
|
|
99
99
|
const page = await filteredPage(
|
|
100
100
|
this.#deps.store.table('sessions'),
|
|
101
|
-
{ where: { owner: viewer, archived: false, forkOf: { exists: false } }, order: [['updatedAt', 'desc']], limit: query.limit ?? this.#deps.settings.chat.
|
|
101
|
+
{ where: { owner: viewer, archived: false, forkOf: { exists: false } }, order: [['updatedAt', 'desc']], limit: query.limit ?? this.#deps.settings.chat.FNLOOM_SESSION_PAGE, cursor: query.cursor },
|
|
102
102
|
() => true,
|
|
103
103
|
);
|
|
104
104
|
return { items: page.items.map((s) => SessionSummary.parse(s)), ...(page.cursor === undefined ? {} : { cursor: page.cursor }) };
|
|
@@ -172,7 +172,7 @@ export class StoreSessionService implements SessionService {
|
|
|
172
172
|
async messages(session: SessionId, viewer: ActorId, query: Compact<Omit<MessageListQuery, 'session'>>): Promise<Page<ChatMessage>> {
|
|
173
173
|
await this.require(session, viewer);
|
|
174
174
|
const page = await this.#deps.store.table('messages').find({
|
|
175
|
-
where: { session }, order: [['createdAt', 'desc']], limit: query.limit ?? this.#deps.settings.chat.
|
|
175
|
+
where: { session }, order: [['createdAt', 'desc']], limit: query.limit ?? this.#deps.settings.chat.FNLOOM_MESSAGE_PAGE, cursor: query.cursor,
|
|
176
176
|
});
|
|
177
177
|
return { items: page.items.map((m) => this.#streams.overlay(m)), ...(page.cursor === undefined ? {} : { cursor: page.cursor }) };
|
|
178
178
|
}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* What a sent message is offered (fns and context), and the record of what it was not and why. The admin's suggestions
|
|
3
3
|
* setting (`hubOptions['suggestDecision']`, `SuggestDecision`) says who picks:
|
|
4
4
|
*
|
|
5
|
-
* - `none`: no model picks: the candidates most similar in meaning at or over `
|
|
6
|
-
* suggested, best first, up to `
|
|
5
|
+
* - `none`: no model picks: the candidates most similar in meaning at or over `FNLOOM_SUGGEST_THRESHOLD` are
|
|
6
|
+
* suggested, best first, up to `FNLOOM_SUGGESTIONS` (the record says `by: 'score'`).
|
|
7
7
|
* - `decision`: a decision model (its own choice, else the `decide` role's) answers one yes/no question per candidate
|
|
8
8
|
* scoring at least the floor; those at or over the decide role's threshold are picked, most likely first, up to the
|
|
9
9
|
* cap. The questions go through the models module's `Decider`, split by the model's `maxQuestions`.
|
|
10
10
|
* - `llm`: a chat model reads the candidates and the last few user messages and answers with its picks as JSON.
|
|
11
11
|
*
|
|
12
12
|
* Every model call is a `ModelCall` (purpose `suggestions`) linked in the record. If it fails or answers nonsense, the
|
|
13
|
-
* score decides (the best at or over `
|
|
13
|
+
* score decides (the best at or over `FNLOOM_SUGGEST_THRESHOLD`, up to the cap) and the items it left out say so
|
|
14
14
|
* (`failed`). A score is a candidate's similarity of meaning to the
|
|
15
15
|
* message (`index/suggester.ts`), never its rank, so the threshold and the floor tell a fit from noise.
|
|
16
16
|
*
|
|
@@ -139,7 +139,7 @@ export class HubSuggestions implements SuggestionDecider {
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
async #decide(input: { session: SessionId; text: string; actor: ActorId }): Promise<DecidedSuggestions> {
|
|
142
|
-
const limit = this.#deps.settings.model.
|
|
142
|
+
const limit = this.#deps.settings.model.FNLOOM_SUGGESTIONS;
|
|
143
143
|
if (limit === 0 || input.text.trim() === '') { return { suggestions: [] }; }
|
|
144
144
|
const setting = (await this.setting()).value;
|
|
145
145
|
const found = await this.#deps.suggest.consider({ session: input.session, text: input.text, pool: (setting.by === 'none' ? limit : Math.max(setting.candidates, limit)) * 2 });
|
|
@@ -153,7 +153,7 @@ export class HubSuggestions implements SuggestionDecider {
|
|
|
153
153
|
|
|
154
154
|
/** No model picks: the best at or over the threshold, up to the cap; the rest say why they were left out. */
|
|
155
155
|
#byScore(offered: readonly Suggestion[], hidden: readonly SuggestionOutcome[], limit: number): DecidedSuggestions {
|
|
156
|
-
const threshold = this.#deps.settings.chat.
|
|
156
|
+
const threshold = this.#deps.settings.chat.FNLOOM_SUGGEST_THRESHOLD;
|
|
157
157
|
const chosen = offered.filter((item) => item.score >= threshold).slice(0, limit);
|
|
158
158
|
const items = offered.map((item) => (chosen.includes(item) ? used(item) : skipped(item, item.score < threshold ? 'below-threshold' : 'top-n')));
|
|
159
159
|
return finish(chosen, { by: 'score', threshold, items: [...items, ...hidden] });
|
|
@@ -168,7 +168,7 @@ export class HubSuggestions implements SuggestionDecider {
|
|
|
168
168
|
const calls: ModelCallId[] = [];
|
|
169
169
|
try {
|
|
170
170
|
const messages = [...await this.#recent(input.session, setting.messages - 1), input.text];
|
|
171
|
-
const signal = AbortSignal.timeout(this.#deps.settings.chat.
|
|
171
|
+
const signal = AbortSignal.timeout(this.#deps.settings.chat.FNLOOM_SUGGEST_DECISION_TIMEOUT);
|
|
172
172
|
const choices = setting.by === 'llm'
|
|
173
173
|
? await this.#llmChoices(messages, pool, setting, signal, calls)
|
|
174
174
|
: await this.#decisionChoices(messages, pool, setting, signal, calls);
|
|
@@ -184,7 +184,7 @@ export class HubSuggestions implements SuggestionDecider {
|
|
|
184
184
|
} catch (error) {
|
|
185
185
|
this.#deps.log.warn('suggestions.decision.failed', { session: input.session, by: setting.by, error: messageOf(error) });
|
|
186
186
|
// the score decides: the best at or over the threshold, up to the cap
|
|
187
|
-
const threshold = this.#deps.settings.chat.
|
|
187
|
+
const threshold = this.#deps.settings.chat.FNLOOM_SUGGEST_THRESHOLD;
|
|
188
188
|
const chosen = pool.filter((item) => item.score >= threshold).slice(0, setting.cap);
|
|
189
189
|
const items = pool.map((item) => (chosen.includes(item) ? used(item) : skipped(item, 'failed')));
|
|
190
190
|
return finish(chosen, { ...base, ...(calls.length === 0 ? {} : { calls }), items: [...items, ...rest, ...hidden] });
|
|
@@ -225,7 +225,7 @@ export class HubSuggestions implements SuggestionDecider {
|
|
|
225
225
|
async forSystem(request: DecideRequest): Promise<DecideAnswer> {
|
|
226
226
|
const setting = (await this.setting()).value;
|
|
227
227
|
if (setting.by === 'none') { return { by: 'off' }; }
|
|
228
|
-
const signal = AbortSignal.timeout(this.#deps.settings.chat.
|
|
228
|
+
const signal = AbortSignal.timeout(this.#deps.settings.chat.FNLOOM_SUGGEST_DECISION_TIMEOUT);
|
|
229
229
|
try {
|
|
230
230
|
const decided = setting.by === 'llm' ? await this.#systemByLlm(request, setting.model, signal) : await this.#systemByDecision(request, setting.model, signal);
|
|
231
231
|
this.#deps.log.info('decide.decided', { run: request.run, by: setting.by, candidates: request.candidates.length, picked: decided.picked.length, call: decided.call });
|
|
@@ -443,7 +443,7 @@ export async function chatRig() {
|
|
|
443
443
|
catalog.addFn('hub', { name: 'chat', kind: AGENT_KIND, description: 'The chat agent.' });
|
|
444
444
|
const deps: ChatDeps = {
|
|
445
445
|
// notices go out at once here; the grace has its own test
|
|
446
|
-
settings: { chat: { ...chatEnv.parse(),
|
|
446
|
+
settings: { chat: { ...chatEnv.parse(), FNLOOM_CONFIG_NOTICE_GRACE: 0 }, queue: { FNLOOM_ACTIVE_WINDOW: 120_000 }, model: { FNLOOM_SUGGESTIONS: 6 } },
|
|
447
447
|
log, clock: () => now, random, bus, store, catalog, link, runs, agents, limits, search: index, suggest: index, llm, push, hubActor: actorId('act_hub'),
|
|
448
448
|
// the real decider (its batching by `maxQuestions`) over a fixture decide role and gateway
|
|
449
449
|
decider: new HubDecider({ roles: decisions, llm: decisions }),
|
|
@@ -195,7 +195,7 @@ export class StoreTurnService implements TurnService {
|
|
|
195
195
|
await this.#deps.store.table('messages').insert(message);
|
|
196
196
|
const session = await this.#deps.store.table('sessions').get(turn.session);
|
|
197
197
|
// with citations on, cites stream whole, numbered on from the chat's last one
|
|
198
|
-
const cites = session?.citations === true ? { hold: this.#deps.settings.chat.
|
|
198
|
+
const cites = session?.citations === true ? { hold: this.#deps.settings.chat.FNLOOM_CITE_HOLD_CHARS, first: await nextCiteNumber(this.#deps.store, session, message.id) } : undefined;
|
|
199
199
|
this.#parts.streams.open(message.id, turn.session, cites);
|
|
200
200
|
this.#deps.bus.publish('message', { message });
|
|
201
201
|
return message;
|
|
@@ -231,9 +231,9 @@ export class StoreTurnService implements TurnService {
|
|
|
231
231
|
const session = await store.table('sessions').get(row.session);
|
|
232
232
|
const on = streamed === undefined ? session?.citations === true : streamed.cites !== undefined;
|
|
233
233
|
if (!on || session === undefined) { return { parts: body }; }
|
|
234
|
-
const { parts, cites } = citeParts(body, settings.chat.
|
|
234
|
+
const { parts, cites } = citeParts(body, settings.chat.FNLOOM_CITE_HOLD_CHARS);
|
|
235
235
|
const first = cites.length === 0 ? 1 : await nextCiteNumber(store, session, row.id);
|
|
236
|
-
const citations = await resolveCites({ store, valueChars: settings.chat.
|
|
236
|
+
const citations = await resolveCites({ store, valueChars: settings.chat.FNLOOM_CITE_VALUE_CHARS }, cites, session, first);
|
|
237
237
|
return { parts, citations };
|
|
238
238
|
}
|
|
239
239
|
|
|
@@ -362,7 +362,7 @@ export class StoreTurnService implements TurnService {
|
|
|
362
362
|
|
|
363
363
|
#turn(input: { id: TurnId; session: Session; message?: MessageId | undefined; user: UserInfo; actor: ActorId; client?: ClientInfo | undefined; limits: ResolvedLimits; running: boolean }): Turn {
|
|
364
364
|
const now = this.#deps.clock();
|
|
365
|
-
const errors = this.#deps.settings.chat.
|
|
365
|
+
const errors = this.#deps.settings.chat.FNLOOM_TURN_ERRORS;
|
|
366
366
|
return {
|
|
367
367
|
id: input.id, session: input.session.id, ...(input.message === undefined ? {} : { message: input.message }), actor: input.actor, user: input.user,
|
|
368
368
|
time: timeInfo(now, input.user.timeZone), ...(input.client === undefined ? {} : { client: input.client }), status: input.running ? 'running' : 'done',
|
|
@@ -430,7 +430,7 @@ export class StoreTurnService implements TurnService {
|
|
|
430
430
|
#sessionAfterSend(session: Session, message: ChatMessage, text: string, loads: { tools: QualifiedName[]; context: QualifiedName[] }, commanded: readonly QualifiedName[]): Partial<Session> {
|
|
431
431
|
const context = [...loads.context, ...commanded];
|
|
432
432
|
return {
|
|
433
|
-
...(session.title === UNTITLED && text !== '' ? { title: clip(text, this.#deps.settings.chat.
|
|
433
|
+
...(session.title === UNTITLED && text !== '' ? { title: clip(text, this.#deps.settings.chat.FNLOOM_TITLE_LENGTH) } : {}),
|
|
434
434
|
...(loads.tools.length > 0 ? { tools: [...new Set([...session.tools, ...loads.tools])] } : {}),
|
|
435
435
|
...(context.length > 0 ? { context: [...new Set([...session.context, ...context])] } : {}),
|
|
436
436
|
// each fn and context is suggested once in a chat (`HubMessageEnricher`)
|
|
@@ -469,7 +469,7 @@ export class StoreTurnService implements TurnService {
|
|
|
469
469
|
*/
|
|
470
470
|
async #keepFiles(session: Session, actor: ActorId, parts: readonly MessagePart[]): Promise<MessagePart[]> {
|
|
471
471
|
const files = this.#deps.files;
|
|
472
|
-
const maxChars = this.#deps.settings.chat.
|
|
472
|
+
const maxChars = this.#deps.settings.chat.FNLOOM_FILE_INLINE_CHARS;
|
|
473
473
|
return Promise.all(parts.map(async (part): Promise<MessagePart> => {
|
|
474
474
|
if (part.type !== 'file') { return part; }
|
|
475
475
|
const bare: MessagePart = { type: 'file', ref: part.ref, name: part.name };
|
|
@@ -82,7 +82,7 @@ export class RunUndoService implements UndoService {
|
|
|
82
82
|
if (turn.session !== undefined && await this.#deps.store.table('turns').count({ session: turn.session, createdAt: { gt: turn.createdAt }, status: { in: STANDING } }) > 0) {
|
|
83
83
|
throw new ChatError('conflict', 'A later turn was built on this one. Undo the later turns first.');
|
|
84
84
|
}
|
|
85
|
-
const runs = await someRows(this.#deps.store.table('runs'), { where: { turn: id }, order: [['createdAt', 'desc']] }, this.#deps.settings.chat.
|
|
85
|
+
const runs = await someRows(this.#deps.store.table('runs'), { where: { turn: id }, order: [['createdAt', 'desc']] }, this.#deps.settings.chat.FNLOOM_UNDO_RUNS);
|
|
86
86
|
// A run still going in the background could change things after its undo, so the turn waits until all have ended.
|
|
87
87
|
if (runs.some(isActiveRun)) { throw new ChatError('conflict', 'Some runs of this turn are still going. Undo it once they finish.'); }
|
|
88
88
|
const report: UndoReport = { turn: id, undone: [], failed: [], notUndoable: [] };
|
|
@@ -11,7 +11,7 @@ export const CONNECTIONS_LINK_SPEC = spec({ endpoints: { connectionUpdate: hubLi
|
|
|
11
11
|
/** The connections module's factory. */
|
|
12
12
|
export const connectionsModule: ModuleFactory<'connections'> = ({ hub }) => {
|
|
13
13
|
const service = new StoreConnectionService({
|
|
14
|
-
store: hub.store, bus: hub.bus, log: hub.log, clock: () => hub.clock(), settings: hub.settings.connectionsEnv, hubUrl: hub.settings.hubEnv.
|
|
14
|
+
store: hub.store, bus: hub.bus, log: hub.log, clock: () => hub.clock(), settings: hub.settings.connectionsEnv, hubUrl: hub.settings.hubEnv.FNLOOM_URL,
|
|
15
15
|
catalog: { manifest: (system) => hub.catalog.manifest(system), check: (system, type, value) => hub.catalog.check(system, type, value), fn: (name) => hub.catalog.fn(name) },
|
|
16
16
|
link: { connection: (system, instance) => hub.link.connections.connection(system, instance) },
|
|
17
17
|
secrets: hub.api.secrets,
|
|
@@ -6,8 +6,8 @@ import { z } from 'zod';
|
|
|
6
6
|
|
|
7
7
|
/** Connection tunables. */
|
|
8
8
|
export const connectionsEnv = env({
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
FNLOOM_CONNECT_TIMEOUT: z.number().int().min(500).default(20_000).describe('How long a per-person system has to start, finish or end a connection.'),
|
|
10
|
+
FNLOOM_CONNECT_WINDOW: z.number().int().min(10_000).default(600_000).describe('How long a person has to come back from the provider\'s sign-in before the connect link stops working.'),
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
/** The parsed connection tunables. */
|
|
@@ -7,12 +7,8 @@
|
|
|
7
7
|
import { reject } from '@ayepi/core';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import type { Logger } from '@ayepi/log';
|
|
10
|
-
import { keyConnectOf } from '@harness/sdk';
|
|
11
|
-
import {
|
|
12
|
-
ConnectionId, ConnectKey, ConnectKeyRecord, flow, InstanceConnect, Json, mapConcurrent, mintId, qualify, splitName, type ActorId, type ConnectDecl, type Filter, type FnConnectKey, type ConnectFlow, type ConnectionChange, type ConnectionFnOption, type ConnectionUpdate,
|
|
13
|
-
type ConnectionView, type ConnectPage, type ConnectResult, type IdRandom, type InstanceName, type QualifiedName, type RunConnection, type SecretId, SystemName,
|
|
14
|
-
type InstanceRecord, type UserConnection,
|
|
15
|
-
} from '@harness/core';
|
|
10
|
+
import { ConnectKeyRecord, keyConnectOf } from '@harness/sdk';
|
|
11
|
+
import { ConnectionId, ConnectKey, flow, InstanceConnect, Json, mapConcurrent, mintId, qualify, splitName, type ActorId, type ConnectDecl, type Filter, type FnConnectKey, type ConnectFlow, type ConnectionChange, type ConnectionFnOption, type ConnectionUpdate, type ConnectionView, type ConnectPage, type ConnectResult, type IdRandom, type InstanceName, type QualifiedName, type RunConnection, type SecretId, SystemName, type InstanceRecord, type UserConnection } from '@harness/core';
|
|
16
12
|
import { fnOwner } from '../catalog/catalog.ts';
|
|
17
13
|
import type { ConnectionGate, FnConnection, FnRef } from '../access/index.ts';
|
|
18
14
|
import { letsIn } from '../access/scope.ts';
|
|
@@ -40,7 +36,7 @@ export interface ConnectionDeps {
|
|
|
40
36
|
readonly clock: () => number;
|
|
41
37
|
readonly random?: IdRandom;
|
|
42
38
|
readonly settings: ConnectionsEnv;
|
|
43
|
-
/** The hub's public URL (`
|
|
39
|
+
/** The hub's public URL (`FNLOOM_URL`): the redirect is under it. */
|
|
44
40
|
readonly hubUrl: string;
|
|
45
41
|
/** Signs connect states; a new one each start (a person mid-sign-in across a restart connects again). */
|
|
46
42
|
readonly stateKey?: Buffer;
|
|
@@ -150,7 +146,7 @@ export class StoreConnectionService implements ConnectionService {
|
|
|
150
146
|
}
|
|
151
147
|
}
|
|
152
148
|
await this.#begin(row);
|
|
153
|
-
const window = this.#deps.settings.
|
|
149
|
+
const window = this.#deps.settings.FNLOOM_CONNECT_WINDOW;
|
|
154
150
|
const browser = randomSecret();
|
|
155
151
|
const state = this.#states.sign({ c: row.id, b: sha256Url(browser) }, now + window);
|
|
156
152
|
try {
|
|
@@ -474,7 +470,7 @@ export class StoreConnectionService implements ConnectionService {
|
|
|
474
470
|
const connection = this.#deps.link.connection(system, instance);
|
|
475
471
|
const which = instance === undefined ? `the ${system} system` : `${system}/${instance}`;
|
|
476
472
|
if (connection === undefined) { throw reject(503, 'SYSTEM_OFFLINE', `${which} is not connected; try again when it is`); }
|
|
477
|
-
return call(connection, AbortSignal.any([connection.signal, AbortSignal.timeout(this.#deps.settings.
|
|
473
|
+
return call(connection, AbortSignal.any([connection.signal, AbortSignal.timeout(this.#deps.settings.FNLOOM_CONNECT_TIMEOUT)]));
|
|
478
474
|
}
|
|
479
475
|
|
|
480
476
|
/** Record what the system answered: the account and credentials as a secret, or the problem. */
|