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
|
@@ -7,7 +7,7 @@ summary: "Signatures and options for the hub contract."
|
|
|
7
7
|
question: "What are the exact signatures and options in the API of the hub contract?"
|
|
8
8
|
when: "When writing code for the hub contract and an exact signature, field or option is needed."
|
|
9
9
|
askedBy: "system"
|
|
10
|
-
lastModified: "2026-11-
|
|
10
|
+
lastModified: "2026-11-29"
|
|
11
11
|
parent: "fs/authoring.hub"
|
|
12
12
|
suggest: "none"
|
|
13
13
|
tags: ["authoring", "reference"]
|
|
@@ -330,7 +330,7 @@ const LlmPayloadType = g.obj({
|
|
|
330
330
|
contextor: g.optional(ContextorType),
|
|
331
331
|
/**
|
|
332
332
|
* The most tokens one answer may take (as core's `ModelLimits.maxOutputTokens`, and never past the model's own
|
|
333
|
-
* limit); the hub's `
|
|
333
|
+
* limit); the hub's `FNLOOM_AGENT_MAX_OUTPUT` when absent.
|
|
334
334
|
*/
|
|
335
335
|
maxOutput: g.optional(ginAs(ModelLimits.shape.maxOutputTokens.unwrap())),
|
|
336
336
|
/**
|
|
@@ -360,7 +360,7 @@ const · `import { ChatModeType } from '@harness/sdk'`
|
|
|
360
360
|
A chat mode's settings, as a gin type: core's `ChatModeConfig` input (defaults may be left out).
|
|
361
361
|
|
|
362
362
|
```ts
|
|
363
|
-
const ChatModeType: GinType<{ type: "tools"; } | { type: "static"; protocol?: "text" | "auto" | "native" | undefined; placement?: "system-end" | "tail" | undefined; loadDetail?: "
|
|
363
|
+
const ChatModeType: GinType<{ type: "tools"; } | { type: "static"; protocol?: "text" | "auto" | "native" | undefined; placement?: "system-end" | "tail" | undefined; loadDetail?: "signature" | "listed" | "full" | undefined; }>;
|
|
364
364
|
```
|
|
365
365
|
|
|
366
366
|
Refers to: [`ChatModeConfig`](context:fs/authoring.core-types.modes-ts#core-chatmodeconfig).
|
|
@@ -626,7 +626,7 @@ interface NodeStarterOptions {
|
|
|
626
626
|
readonly baseEnv: Readonly<Record<string, string | undefined>>;
|
|
627
627
|
/** Node flags put first when a command runs this Node binary (the parent's loader, e.g. tsx; `permissionArgs`). */
|
|
628
628
|
readonly nodeArgs?: readonly string[] | undefined;
|
|
629
|
-
/** Characters of output kept for the exit report (`
|
|
629
|
+
/** Characters of output kept for the exit report (`FNLOOM_SUPERVISE_OUTPUT_TAIL`). */
|
|
630
630
|
readonly outputTail: number;
|
|
631
631
|
}
|
|
632
632
|
```
|
|
@@ -717,7 +717,7 @@ const BASIC_ENV: readonly ["PATH", "SYSTEMROOT", "TEMP", "TMP", "TMPDIR"];
|
|
|
717
717
|
const · `import { SHARED_ENV } from '@harness/sdk/server'`
|
|
718
718
|
|
|
719
719
|
The harness variables a child inherits, by name: the SDK runtime tunables (`sdkEnv`: link timing, log level, ...),
|
|
720
|
-
never the parent's instance identity. An explicit list, not a `
|
|
720
|
+
never the parent's instance identity. An explicit list, not a `FNLOOM_` prefix, so a parent's own settings and
|
|
721
721
|
secrets (the hub's admin password, signing and encryption keys) never reach a child.
|
|
722
722
|
|
|
723
723
|
```ts
|
|
@@ -74,7 +74,7 @@ How `CrashPolicy` decides.
|
|
|
74
74
|
|
|
75
75
|
```ts
|
|
76
76
|
interface CrashPolicyOptions {
|
|
77
|
-
/** The longest wait between restarts (`
|
|
77
|
+
/** The longest wait between restarts (`FNLOOM_SUPERVISE_BACKOFF_MAX`). */
|
|
78
78
|
readonly maxWait: number;
|
|
79
79
|
/** The exit code that asks for an immediate restart (`RESTART_CODE` unless the supervisor sets another). */
|
|
80
80
|
readonly restartCode: number;
|
|
@@ -100,7 +100,7 @@ type ExitDecision =
|
|
|
100
100
|
|
|
101
101
|
const · `import { STATUS_LOG } from '@harness/sdk/server'`
|
|
102
102
|
|
|
103
|
-
The log key a system writes its status changes under. A supervisor reads them from a child's JSON log lines (`
|
|
103
|
+
The log key a system writes its status changes under. A supervisor reads them from a child's JSON log lines (`FNLOOM_LOG_JSON`).
|
|
104
104
|
|
|
105
105
|
```ts
|
|
106
106
|
const STATUS_LOG: "system.status";
|
|
@@ -269,7 +269,7 @@ const · `import { NETWORK_ALLOW_VAR } from '@harness/sdk/server'`
|
|
|
269
269
|
The variable a supervisor names a child's allowed endpoints in (`endpointsText`), for `hosted-network-guard.ts`.
|
|
270
270
|
|
|
271
271
|
```ts
|
|
272
|
-
const NETWORK_ALLOW_VAR: "
|
|
272
|
+
const NETWORK_ALLOW_VAR: "FNLOOM_NETWORK_ALLOW";
|
|
273
273
|
```
|
|
274
274
|
|
|
275
275
|
#### `endpointOf`
|
|
@@ -580,7 +580,7 @@ function isObjectSchema(schema: Bound<any>): schema is Bound<object>;
|
|
|
580
580
|
function · `import { schemaFromWire } from '@harness/sdk/server'`
|
|
581
581
|
|
|
582
582
|
A (lenient) JSON schema from the wire rebuilt as a bound `a` schema (`a.fromJSONSchema`), for the provider to plan
|
|
583
|
-
for its model. The same JSON gives the same bound (kept, `
|
|
583
|
+
for its model. The same JSON gives the same bound (kept, `FNLOOM_WIRE_SCHEMA_CACHE`), so a schema sent every round
|
|
584
584
|
is rebuilt once and rendered once per model dialect (a bound memoizes its renderings).
|
|
585
585
|
|
|
586
586
|
```ts
|
|
@@ -149,7 +149,7 @@ is a new fn kept in the hub.
|
|
|
149
149
|
The agent works through fixed stages: **find** (search what exists; `reuse` answers with an existing fn), **inspect**
|
|
150
150
|
(load the details of what the search found), **draft** (the built-in `draft` tool, whose args are your typed `draft`
|
|
151
151
|
schema), **check** (your `check`, run on every draft: each problem on its own line, in words the model can act on),
|
|
152
|
-
**fix** (a draft with problems sends the model back, up to `
|
|
152
|
+
**fix** (a draft with problems sends the model back, up to `FNLOOM_AUTHORING_FIXES` times) and **save** (offered only
|
|
153
153
|
once a draft checked clean; your `save` keeps it as a fn). A tool of a stage is offered only once every stage before
|
|
154
154
|
it is done, so the model can't draft before it has searched, and until something is saved or reused every round must
|
|
155
155
|
call a tool (`toolChoice: 'required'`), so a model can't stop in words with a clean draft unsaved.
|
|
@@ -7,7 +7,7 @@ summary: "Kinds and agents: reference: AuthoringSession, AuthoringStage, AUTHORI
|
|
|
7
7
|
question: "What are the exact signatures and options of AuthoringSession, AuthoringStage, AUTHORING_STAGES, ShowArgs, AuthoringText, ToolStage and 7 more?"
|
|
8
8
|
when: "When code uses AuthoringSession, AuthoringStage, AUTHORING_STAGES, ShowArgs, AuthoringText, ToolStage and 7 more and needs an exact signature, field or option."
|
|
9
9
|
askedBy: "system"
|
|
10
|
-
lastModified: "2026-11-
|
|
10
|
+
lastModified: "2026-11-29"
|
|
11
11
|
parent: "fs/authoring.kinds-agents.reference"
|
|
12
12
|
suggest: "none"
|
|
13
13
|
tags: ["authoring", "reference"]
|
|
@@ -157,18 +157,20 @@ class Disclosure {
|
|
|
157
157
|
|
|
158
158
|
#### `authoredFn`
|
|
159
159
|
|
|
160
|
-
const · `import { authoredFn } from '@harness/sdk
|
|
160
|
+
const · `import { authoredFn } from '@harness/sdk'`
|
|
161
161
|
|
|
162
162
|
What an authoring fn answers the chat model with: the saved fn, what it does, how to call it again, and a short
|
|
163
163
|
preview of what it gives. Never the working context.
|
|
164
164
|
|
|
165
165
|
```ts
|
|
166
|
-
const authoredFn: ObjType<{ fn: string; version: number; signature: string; about: string; reused: boolean; call: string; preview?:
|
|
166
|
+
const authoredFn: ObjType<{ fn: string; version: number; signature: string; about: string; reused: boolean; call: string; preview?: JSONType | undefined; }>;
|
|
167
167
|
```
|
|
168
168
|
|
|
169
169
|
#### `AuthoredFn`
|
|
170
170
|
|
|
171
|
-
type · `import { AuthoredFn } from '@harness/sdk
|
|
171
|
+
type · `import { AuthoredFn } from '@harness/sdk'`
|
|
172
|
+
|
|
173
|
+
What an authoring fn answers, for a contract that declares one (the agent itself is `@harness/sdk/server`'s).
|
|
172
174
|
|
|
173
175
|
```ts
|
|
174
176
|
type AuthoredFn = Infer<typeof authoredFn>;
|
|
@@ -195,5 +197,5 @@ const · `import { authoringEnv } from '@harness/sdk/server'`
|
|
|
195
197
|
The authoring agents' tunables.
|
|
196
198
|
|
|
197
199
|
```ts
|
|
198
|
-
const authoringEnv: Env<EnvOutput<{}, { readonly
|
|
200
|
+
const authoringEnv: Env<EnvOutput<{}, { readonly FNLOOM_AUTHORING_FIXES: z.ZodDefault<z.ZodCoercedNumber<unknown>>; readonly FNLOOM_AUTHORING_ROUNDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>; readonly FNLOOM_AUTHORING_MAX_TOKENS: z.ZodDefault<z.ZodCoercedNumber<unknown>>; }>>;
|
|
199
201
|
```
|
|
@@ -274,7 +274,7 @@ interface AgentInput<A, R, T extends StatusTemplates = StatusTemplates> {
|
|
|
274
274
|
mode?: NonNullable<LlmPayload['mode']>;
|
|
275
275
|
/** What goes into each prompt: plain (the hub's default), suggest, or graph (for small local models). */
|
|
276
276
|
contextor?: NonNullable<LlmPayload['contextor']>;
|
|
277
|
-
/** The most tokens one answer may take (never past the model's own limit); the hub's `
|
|
277
|
+
/** The most tokens one answer may take (never past the model's own limit); the hub's `FNLOOM_AGENT_MAX_OUTPUT` when absent. */
|
|
278
278
|
maxOutput?: number;
|
|
279
279
|
visibility?: Audience;
|
|
280
280
|
tags?: string[];
|
|
@@ -423,11 +423,11 @@ interface AuthoringAgentInput<S, D> {
|
|
|
423
423
|
reuse?(fn: string, session: AuthoringSession<S, D>): Promise<AuthoredFn | string>;
|
|
424
424
|
/** The model, the aeye way (`role/chat`, `openrouter/…`); the hub picks when absent. */
|
|
425
425
|
readonly model?: string;
|
|
426
|
-
/** Failed checks it may fix; `
|
|
426
|
+
/** Failed checks it may fix; `FNLOOM_AUTHORING_FIXES` when absent. */
|
|
427
427
|
readonly fixes?: number;
|
|
428
|
-
/** Model rounds; `
|
|
428
|
+
/** Model rounds; `FNLOOM_AUTHORING_ROUNDS` when absent. */
|
|
429
429
|
readonly rounds?: number;
|
|
430
|
-
/** The most tokens one model step may write; `
|
|
430
|
+
/** The most tokens one model step may write; `FNLOOM_AUTHORING_MAX_TOKENS` when absent. */
|
|
431
431
|
readonly maxTokens?: number;
|
|
432
432
|
/** `find: false`: the agent is handed what it builds on, so it starts in `inspect` (no find tools, no `reuse`). */
|
|
433
433
|
readonly stages?: { readonly find?: boolean };
|
|
@@ -117,8 +117,8 @@ tidy: {
|
|
|
117
117
|
`ResultTable`) and the model a `ResultBlock`: `resultBlock(table, { fn: { name, signature }, args })` from
|
|
118
118
|
`@harness/sdk/server` says what the person sees and that the model shouldn't repeat it, lists the columns, the row
|
|
119
119
|
count, the total when counted, whether there are more rows with the exact call for the next page (`nextPage`), the
|
|
120
|
-
sort, and a `sample` of the first rows within `
|
|
121
|
-
`
|
|
120
|
+
sort, and a `sample` of the first rows within `FNLOOM_RESULT_SAMPLE_TOKENS` (long text cut at
|
|
121
|
+
`FNLOOM_RESULT_CELL_CHARS`), with a `sampleNote` saying how much is there. `ResultBlockType` is its gin form for
|
|
122
122
|
`returns`.
|
|
123
123
|
|
|
124
124
|
Fns for this: fn:fs/read, fn:fs/write, fn:fs/edit, fn:fs/bash.
|
|
@@ -132,9 +132,9 @@ interface ResultBlockOptions {
|
|
|
132
132
|
readonly args?: Readonly<Record<string, Json>>;
|
|
133
133
|
/** What the person sees the rows as (default `a table`), for the sentence the model reads. */
|
|
134
134
|
readonly visual?: string;
|
|
135
|
-
/** The sample's token budget. Default: `
|
|
135
|
+
/** The sample's token budget. Default: `FNLOOM_RESULT_SAMPLE_TOKENS`. */
|
|
136
136
|
readonly budget?: number;
|
|
137
|
-
/** The most characters of one text cell in the sample. Default: `
|
|
137
|
+
/** The most characters of one text cell in the sample. Default: `FNLOOM_RESULT_CELL_CHARS`. */
|
|
138
138
|
readonly cellChars?: number;
|
|
139
139
|
/** Whether a person is watching the run (`RunInfo.watched === true`), so the rows are shown to them. Default true. */
|
|
140
140
|
readonly watched?: boolean;
|
|
@@ -161,7 +161,7 @@ Every command, read from the CLI itself:
|
|
|
161
161
|
| `harness system store <system> [--instance <name>]` | Show a system’s own store: where it lives, its state, size and tables, its migrations, its backups and its move. |
|
|
162
162
|
| `harness system store move <system> --to hub\|system\|external [--engine postgres\|sqlserver --url <url\|-> --schema <name>] [--instance <name>] [--cancel-runs \| --keep-waiting]` | Move a system’s store to the hub, the system, or an external database, and follow the move until it ends. |
|
|
163
163
|
| `harness system store answer <system> cancel\|wait [--instance <name>]` | Answer a store move waiting on runs still going: cancel them, or keep waiting until they finish. |
|
|
164
|
-
| `harness mcp <slug> [--hub <url>] (the secret in
|
|
164
|
+
| `harness mcp <slug> [--hub <url>] (the secret in FNLOOM_MCP_SECRET)` | Bridge a hub MCP to stdin and stdout, for MCP clients that speak stdio only. |
|
|
165
165
|
|
|
166
166
|
`harness system new` fills the name in everywhere the template has `template`: as is in strings and paths, in camel
|
|
167
167
|
case in identifiers (`templateEnv` becomes `notesDbEnv`) and Pascal case in type names (`TemplateDeps` becomes
|
|
@@ -187,13 +187,13 @@ So after `fs/install_system` says it connected, tell the person what is left: an
|
|
|
187
187
|
`/admin/systems/<name>/review` and presses Go live (or approves the pending review, after an update). Don't call its
|
|
188
188
|
fns before then; they aren't offered yet.
|
|
189
189
|
|
|
190
|
-
Commands that talk to a hub take `--hub <url>` and `--token <token>` (or `
|
|
190
|
+
Commands that talk to a hub take `--hub <url>` and `--token <token>` (or `FNLOOM_URL`, `FNLOOM_TOKEN`, or the admin
|
|
191
191
|
account in `.env`). An installed package is code that runs as the hub's user: install only what you trust.
|
|
192
192
|
|
|
193
193
|
### Running it during development
|
|
194
194
|
|
|
195
|
-
Start the process by hand against a running hub: `
|
|
196
|
-
The first start waits for pairing (approve it in the hub's admin pages, or start it with `
|
|
195
|
+
Start the process by hand against a running hub: `FNLOOM_HUB=ws://127.0.0.1:4300/link npx tsx systems/<name>/server/main.ts`.
|
|
196
|
+
The first start waits for pairing (approve it in the hub's admin pages, or start it with `FNLOOM_PAIRING_TOKEN` from a
|
|
197
197
|
token an admin made); once paired it is installed and waits for review and Go live, like a system installed from the
|
|
198
198
|
chat. A system that runs under the hub (installed) restarts when it exits with `RESTART_CODE`, which
|
|
199
199
|
`running.restart(reason)` does for it. The fs system can edit a system's source and restart it, so an agent can add
|
|
@@ -7,7 +7,7 @@ summary: "Fleets of remote services (MCP servers, APIs): sign-in, per-instance c
|
|
|
7
7
|
question: "How does a system reach a remote service people sign in to?"
|
|
8
8
|
when: "When each instance of a system calls a remote service (an MCP server, an API) with its own connection and credentials."
|
|
9
9
|
askedBy: "system"
|
|
10
|
-
lastModified: "2026-11-
|
|
10
|
+
lastModified: "2026-11-29"
|
|
11
11
|
parent: "fs/authoring.topics.server"
|
|
12
12
|
next: "fs/authoring.client"
|
|
13
13
|
fns: ["fs/read", "fs/write", "fs/edit", "fs/bash"]
|
|
@@ -24,10 +24,10 @@ choices:
|
|
|
24
24
|
|
|
25
25
|
A system that calls a remote service it was set up for (an MCP server) is a fleet: one instance per service, added from
|
|
26
26
|
the browser with its config (`instances: "many"` in `system.json`). A system that authors code calling many services
|
|
27
|
-
(the `api` system) runs one instance and keeps its services as records instead: see **Connections per key** below. Its sign-in is
|
|
27
|
+
(the `api` system) runs one instance and keeps its services as records instead: see **Connections per key** below. Its sign-in is the SDK's `RemoteAuth` in that config:
|
|
28
28
|
`none`, `bearer` (a token), `headers` (named header values) or `oauth`, each `per: 'shared'` (the instance's own config
|
|
29
29
|
secrets, the same for everyone) or `per: 'person'` (each person connects their own). List the secret paths in
|
|
30
|
-
`configSecrets` (
|
|
30
|
+
`configSecrets` (`REMOTE_AUTH_SECRETS` under `auth`), so the hub seals them and never shows them again.
|
|
31
31
|
|
|
32
32
|
**Connections per instance.** Declare `connect` with `scope: 'instance'`: then every fn that runs on the instance acts
|
|
33
33
|
as the person, and each instance tells the hub how people connect to it with `ctx.instanceConnect(...)`
|
|
@@ -38,7 +38,7 @@ OAuth (an admin's sign-in shared with everyone when `per: 'shared'`), a form for
|
|
|
38
38
|
finds the instance's fns unavailable until they connect on the Connections page.
|
|
39
39
|
|
|
40
40
|
**Connections per key.** Declare `connect` with `scope: 'key'` and `keys: { type: '<system>/<Type>' }`, a stored type of
|
|
41
|
-
yours whose records each carry `name` (the key), `label` and `auth` (
|
|
41
|
+
yours whose records each carry `name` (the key), `label` and `auth` (`ConnectKeyRecord`; use `RecordAuth`, the
|
|
42
42
|
`TypedAuth` with no secret in it, since a record never holds one). The hub reads the records from its database and
|
|
43
43
|
shows a card per key on the Connections page, worked out with `keyConnectOf(label, auth)`: a per-person token or headers
|
|
44
44
|
is each person's own form, and a shared one is one admin's form, shared with everyone. A fn acts through its key:
|
|
@@ -47,7 +47,7 @@ fn's service): the run gets the person's (or the shared) connection to that key,
|
|
|
47
47
|
the key needs one (fail with `code: 'not-connected'`). `connectFinish` gets the `key`; read the shared form with `credentialsFromForm(auth, form, 'any')`.
|
|
48
48
|
|
|
49
49
|
**Credentials.** A form connection's `connectFinish` reads the filled form with `credentialsFromForm(auth, form)` into
|
|
50
|
-
|
|
50
|
+
`RemoteCredentials` (or a problem to show), which the hub keeps as the person's connection; `accountLabel` names
|
|
51
51
|
it without the secret. In a run, `ctx.connection.credentials` carries it back: `readCredentials` reads it and `credentialHeaders`
|
|
52
52
|
turns it into the headers to send; `sharedHeaders(auth)` gives the instance's own. OAuth tokens a run refreshes go back
|
|
53
53
|
with `ctx.updateConnection`. Never log a secret: `maskHeaders(headers, secretHeaderNames(auth))` is what a trace or a
|
|
@@ -7,7 +7,7 @@ summary: "Signatures and options for remote services: fleets, sign-in and connec
|
|
|
7
7
|
question: "What are the exact signatures and options in the API of remote services: fleets, sign-in and connections per instance?"
|
|
8
8
|
when: "When writing code for remote services: fleets, sign-in and connections per instance and an exact signature, field or option is needed."
|
|
9
9
|
askedBy: "system"
|
|
10
|
-
lastModified: "2026-11-
|
|
10
|
+
lastModified: "2026-11-29"
|
|
11
11
|
parent: "fs/authoring.remote"
|
|
12
12
|
suggest: "none"
|
|
13
13
|
tags: ["authoring", "reference"]
|
|
@@ -16,6 +16,202 @@ niche: "developer"
|
|
|
16
16
|
|
|
17
17
|
### Reference: remote services: fleets, sign-in and connections per instance
|
|
18
18
|
|
|
19
|
+
#### `RemoteAuth`
|
|
20
|
+
|
|
21
|
+
const, type · `import { RemoteAuth } from '@harness/sdk'`
|
|
22
|
+
|
|
23
|
+
How an instance signs in to its remote service.
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
type RemoteAuth = {
|
|
27
|
+
kind: "none";
|
|
28
|
+
} | {
|
|
29
|
+
kind: "bearer";
|
|
30
|
+
per: "shared" | "person";
|
|
31
|
+
token?: string | undefined;
|
|
32
|
+
} | {
|
|
33
|
+
kind: "headers";
|
|
34
|
+
per: "shared" | "person";
|
|
35
|
+
names: string[];
|
|
36
|
+
values?: Record<string, string> | undefined;
|
|
37
|
+
} | {
|
|
38
|
+
kind: "oauth";
|
|
39
|
+
per: "shared" | "person";
|
|
40
|
+
scopes?: string[] | undefined;
|
|
41
|
+
clientId?: string | undefined;
|
|
42
|
+
clientSecret?: string | undefined;
|
|
43
|
+
};
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
#### `RemoteAuthPer`
|
|
47
|
+
|
|
48
|
+
const, type · `import { RemoteAuthPer } from '@harness/sdk'`
|
|
49
|
+
|
|
50
|
+
Whose credentials a call uses: one set for everyone (`shared`) or each caller's own (`person`).
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
type RemoteAuthPer = "shared" | "person";
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
#### `TypedAuth`
|
|
57
|
+
|
|
58
|
+
const, type · `import { TypedAuth } from '@harness/sdk'`
|
|
59
|
+
|
|
60
|
+
The sign-ins that need no browser flow: none, a token or header values. A service whose OAuth endpoints are not
|
|
61
|
+
found from the server itself (an API service, unlike an MCP server) signs in with one of these.
|
|
62
|
+
|
|
63
|
+
```ts
|
|
64
|
+
type TypedAuth = {
|
|
65
|
+
kind: "none";
|
|
66
|
+
} | {
|
|
67
|
+
kind: "bearer";
|
|
68
|
+
per: "shared" | "person";
|
|
69
|
+
token?: string | undefined;
|
|
70
|
+
} | {
|
|
71
|
+
kind: "headers";
|
|
72
|
+
per: "shared" | "person";
|
|
73
|
+
names: string[];
|
|
74
|
+
values?: Record<string, string> | undefined;
|
|
75
|
+
};
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
#### `RecordAuth`
|
|
79
|
+
|
|
80
|
+
const, type · `import { RecordAuth } from '@harness/sdk'`
|
|
81
|
+
|
|
82
|
+
A `TypedAuth` with no secret in it: how a record (which never holds a secret) says its service signs in. A shared
|
|
83
|
+
token or shared header values are then one admin's connection shared with everyone (`InstanceConnect.share`), and a
|
|
84
|
+
per-person one each person's own connection, both kept by the hub as secrets.
|
|
85
|
+
|
|
86
|
+
```ts
|
|
87
|
+
type RecordAuth = {
|
|
88
|
+
kind: "none";
|
|
89
|
+
} | {
|
|
90
|
+
kind: "bearer";
|
|
91
|
+
per: "shared" | "person";
|
|
92
|
+
} | {
|
|
93
|
+
kind: "headers";
|
|
94
|
+
per: "shared" | "person";
|
|
95
|
+
names: string[];
|
|
96
|
+
};
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
#### `HeaderName`
|
|
100
|
+
|
|
101
|
+
const, type · `import { HeaderName } from '@harness/sdk'`
|
|
102
|
+
|
|
103
|
+
A header's name (`X-Api-Key`).
|
|
104
|
+
|
|
105
|
+
```ts
|
|
106
|
+
type HeaderName = string;
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
#### `HeaderValues`
|
|
110
|
+
|
|
111
|
+
const, type · `import { HeaderValues } from '@harness/sdk'`
|
|
112
|
+
|
|
113
|
+
Header values by name. Shared values are config secrets; per-person values are left out here.
|
|
114
|
+
|
|
115
|
+
```ts
|
|
116
|
+
type HeaderValues = {
|
|
117
|
+
[x: string]: string;
|
|
118
|
+
};
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
#### `REMOTE_AUTH_SECRETS`
|
|
122
|
+
|
|
123
|
+
const · `import { REMOTE_AUTH_SECRETS } from '@harness/sdk'`
|
|
124
|
+
|
|
125
|
+
The config paths (under an instance's `auth` field) that hold secrets: sealed by the hub, never shown again.
|
|
126
|
+
|
|
127
|
+
```ts
|
|
128
|
+
const REMOTE_AUTH_SECRETS: readonly ["auth.token", "auth.values", "auth.clientSecret"];
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Refers to: [`ConfigPath`](context:fs/authoring.core-types.config-secrets-ts#core-configpath).
|
|
132
|
+
|
|
133
|
+
#### `TYPED_AUTH_SECRETS`
|
|
134
|
+
|
|
135
|
+
const · `import { TYPED_AUTH_SECRETS } from '@harness/sdk'`
|
|
136
|
+
|
|
137
|
+
The config paths (under an instance's `auth` field) that hold a `TypedAuth`'s secrets.
|
|
138
|
+
|
|
139
|
+
```ts
|
|
140
|
+
const TYPED_AUTH_SECRETS: readonly ["auth.token", "auth.values"];
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Refers to: [`ConfigPath`](context:fs/authoring.core-types.config-secrets-ts#core-configpath).
|
|
144
|
+
|
|
145
|
+
#### `connectFlowOf`
|
|
146
|
+
|
|
147
|
+
function · `import { connectFlowOf } from '@harness/sdk'`
|
|
148
|
+
|
|
149
|
+
What a person connects with for an auth that is per person (or an OAuth shared through one connection): the connect
|
|
150
|
+
flow it maps to. `undefined` when calls need no connection at all.
|
|
151
|
+
|
|
152
|
+
```ts
|
|
153
|
+
function connectFlowOf(auth: RemoteAuth): "oauth" | "form" | undefined;
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
#### `RemoteCredentials`
|
|
157
|
+
|
|
158
|
+
const, type · `import { RemoteCredentials } from '@harness/sdk'`
|
|
159
|
+
|
|
160
|
+
Per-person credentials kept by the hub for a `form` connection: the token or the header values the person typed.
|
|
161
|
+
|
|
162
|
+
```ts
|
|
163
|
+
type RemoteCredentials = {
|
|
164
|
+
token: string;
|
|
165
|
+
} | {
|
|
166
|
+
headers: Record<string, string>;
|
|
167
|
+
} | {
|
|
168
|
+
accessToken: string;
|
|
169
|
+
tokenType: string;
|
|
170
|
+
refreshToken?: string | undefined;
|
|
171
|
+
clientId?: string | undefined;
|
|
172
|
+
};
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
#### `ConnectKeyRecord`
|
|
176
|
+
|
|
177
|
+
const, type · `import { ConnectKeyRecord } from '@harness/sdk'`
|
|
178
|
+
|
|
179
|
+
What the hub reads of each record of a key-scoped system's key type (`ConnectDecl.keys.type`): the key, the words on
|
|
180
|
+
its card, and how it signs in (`RemoteAuth`, from which the hub works out how people connect). Optional: `baseUrl`,
|
|
181
|
+
where its requests go (the card shows its host, so people see where a token goes before they type it), and
|
|
182
|
+
`privateTo`, the one person who sees and connects to it (absent: everyone who sees the system). Other fields are the
|
|
183
|
+
system's own.
|
|
184
|
+
|
|
185
|
+
```ts
|
|
186
|
+
type ConnectKeyRecord = {
|
|
187
|
+
[x: string]: unknown;
|
|
188
|
+
name: ConnectKey;
|
|
189
|
+
label: string;
|
|
190
|
+
auth: {
|
|
191
|
+
kind: "none";
|
|
192
|
+
} | {
|
|
193
|
+
kind: "bearer";
|
|
194
|
+
per: "shared" | "person";
|
|
195
|
+
token?: string | undefined;
|
|
196
|
+
} | {
|
|
197
|
+
kind: "headers";
|
|
198
|
+
per: "shared" | "person";
|
|
199
|
+
names: string[];
|
|
200
|
+
values?: Record<string, string> | undefined;
|
|
201
|
+
} | {
|
|
202
|
+
kind: "oauth";
|
|
203
|
+
per: "shared" | "person";
|
|
204
|
+
scopes?: string[] | undefined;
|
|
205
|
+
clientId?: string | undefined;
|
|
206
|
+
clientSecret?: string | undefined;
|
|
207
|
+
};
|
|
208
|
+
baseUrl?: string | undefined;
|
|
209
|
+
privateTo?: string | undefined;
|
|
210
|
+
};
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Refers to: [`ActorId`](context:fs/authoring.core-types.primitives-ts#core-actorid), [`ConnectKey`](context:fs/authoring.core-types.connections-ts#core-connectkey).
|
|
214
|
+
|
|
19
215
|
#### `InstanceConnects`
|
|
20
216
|
|
|
21
217
|
interface · `import { InstanceConnects } from '@harness/sdk'`
|
|
@@ -44,7 +240,7 @@ How people connect to an instance, for `ctx.instanceConnect`: OAuth (shared thro
|
|
|
44
240
|
function instanceConnectOf(label: string, auth: RemoteAuth): z.input<typeof InstanceConnect>;
|
|
45
241
|
```
|
|
46
242
|
|
|
47
|
-
Refers to: [`InstanceConnect`](context:fs/authoring.core-types.connections-ts#core-instanceconnect)
|
|
243
|
+
Refers to: [`InstanceConnect`](context:fs/authoring.core-types.connections-ts#core-instanceconnect).
|
|
48
244
|
|
|
49
245
|
#### `keyConnectOf`
|
|
50
246
|
|
|
@@ -58,7 +254,7 @@ token or headers as one admin's form, shared with everyone; OAuth as `instanceCo
|
|
|
58
254
|
function keyConnectOf(label: string, auth: RemoteAuth): z.input<typeof InstanceConnect>;
|
|
59
255
|
```
|
|
60
256
|
|
|
61
|
-
Refers to: [`InstanceConnect`](context:fs/authoring.core-types.connections-ts#core-instanceconnect)
|
|
257
|
+
Refers to: [`InstanceConnect`](context:fs/authoring.core-types.connections-ts#core-instanceconnect).
|
|
62
258
|
|
|
63
259
|
#### `connectForm`
|
|
64
260
|
|
|
@@ -70,8 +266,6 @@ The form to connect with a typed token or header values (`FormFor`); `undefined`
|
|
|
70
266
|
function connectForm(auth: RemoteAuth, who?: FormFor): GinType<Record<string, string>> | undefined;
|
|
71
267
|
```
|
|
72
268
|
|
|
73
|
-
Refers to: [`RemoteAuth`](context:fs/authoring.core-types.remote-auth-ts#core-remoteauth).
|
|
74
|
-
|
|
75
269
|
#### `FormFor`
|
|
76
270
|
|
|
77
271
|
type · `import { FormFor } from '@harness/sdk'`
|
|
@@ -93,8 +287,6 @@ Whether calls use a person's connection (their own, or the one an admin shares)
|
|
|
93
287
|
function usesConnections(auth: RemoteAuth): boolean;
|
|
94
288
|
```
|
|
95
289
|
|
|
96
|
-
Refers to: [`RemoteAuth`](context:fs/authoring.core-types.remote-auth-ts#core-remoteauth).
|
|
97
|
-
|
|
98
290
|
#### `credentialsFromForm`
|
|
99
291
|
|
|
100
292
|
function · `import { credentialsFromForm } from '@harness/sdk'`
|
|
@@ -105,7 +297,7 @@ The credentials a filled connect form makes, or what is wrong with it.
|
|
|
105
297
|
function credentialsFromForm(auth: RemoteAuth, form: Json, who?: FormFor): { readonly credentials: RemoteCredentials; } | { readonly problem: string; };
|
|
106
298
|
```
|
|
107
299
|
|
|
108
|
-
Refers to: [`Json`](context:fs/authoring.core-types.primitives-ts#core-json)
|
|
300
|
+
Refers to: [`Json`](context:fs/authoring.core-types.primitives-ts#core-json).
|
|
109
301
|
|
|
110
302
|
#### `readCredentials`
|
|
111
303
|
|
|
@@ -117,7 +309,7 @@ A connection's credentials, read; `undefined` when they aren't `RemoteCredential
|
|
|
117
309
|
function readCredentials(value: Json): RemoteCredentials | undefined;
|
|
118
310
|
```
|
|
119
311
|
|
|
120
|
-
Refers to: [`Json`](context:fs/authoring.core-types.primitives-ts#core-json)
|
|
312
|
+
Refers to: [`Json`](context:fs/authoring.core-types.primitives-ts#core-json).
|
|
121
313
|
|
|
122
314
|
#### `credentialHeaders`
|
|
123
315
|
|
|
@@ -129,8 +321,6 @@ The headers a person's credentials send.
|
|
|
129
321
|
function credentialHeaders(credentials: RemoteCredentials): Record<string, string>;
|
|
130
322
|
```
|
|
131
323
|
|
|
132
|
-
Refers to: [`RemoteCredentials`](context:fs/authoring.core-types.remote-auth-ts#core-remotecredentials).
|
|
133
|
-
|
|
134
324
|
#### `sharedHeaders`
|
|
135
325
|
|
|
136
326
|
function · `import { sharedHeaders } from '@harness/sdk'`
|
|
@@ -141,8 +331,6 @@ The headers the instance's own config sends: a shared token or shared header val
|
|
|
141
331
|
function sharedHeaders(auth: RemoteAuth): Record<string, string>;
|
|
142
332
|
```
|
|
143
333
|
|
|
144
|
-
Refers to: [`RemoteAuth`](context:fs/authoring.core-types.remote-auth-ts#core-remoteauth).
|
|
145
|
-
|
|
146
334
|
#### `accountLabel`
|
|
147
335
|
|
|
148
336
|
function · `import { accountLabel } from '@harness/sdk'`
|
|
@@ -153,8 +341,6 @@ A short label for an account connected with a token or headers ("Token ending 4f
|
|
|
153
341
|
function accountLabel(credentials: RemoteCredentials): string;
|
|
154
342
|
```
|
|
155
343
|
|
|
156
|
-
Refers to: [`RemoteCredentials`](context:fs/authoring.core-types.remote-auth-ts#core-remotecredentials).
|
|
157
|
-
|
|
158
344
|
#### `secretHeaderNames`
|
|
159
345
|
|
|
160
346
|
function · `import { secretHeaderNames } from '@harness/sdk'`
|
|
@@ -166,8 +352,6 @@ key headers. Compare in lower case.
|
|
|
166
352
|
function secretHeaderNames(auth: RemoteAuth): ReadonlySet<string>;
|
|
167
353
|
```
|
|
168
354
|
|
|
169
|
-
Refers to: [`RemoteAuth`](context:fs/authoring.core-types.remote-auth-ts#core-remoteauth).
|
|
170
|
-
|
|
171
355
|
#### `maskHeaders`
|
|
172
356
|
|
|
173
357
|
function · `import { maskHeaders } from '@harness/sdk'`
|
|
@@ -69,14 +69,14 @@ const { host, log } = loggedHost(notes.name);
|
|
|
69
69
|
const impl = createNotesImpl({ settings });
|
|
70
70
|
|
|
71
71
|
// the renderers, built into the state folder and uploaded to the hub on connect
|
|
72
|
-
const clientFolder = join(settings.
|
|
72
|
+
const clientFolder = join(settings.FNLOOM_SYSTEM_STATE, 'client');
|
|
73
73
|
await buildClient({ entry: fileURLToPath(new URL('../client/index.ts', import.meta.url)), outDir: clientFolder });
|
|
74
74
|
|
|
75
75
|
const running = await serve(notes, impl, {
|
|
76
|
-
hub: settings.
|
|
77
|
-
state: settings.
|
|
76
|
+
hub: settings.FNLOOM_HUB,
|
|
77
|
+
state: settings.FNLOOM_SYSTEM_STATE,
|
|
78
78
|
client: clientFolder,
|
|
79
|
-
...(settings.
|
|
79
|
+
...(settings.FNLOOM_PAIRING_TOKEN === undefined ? {} : { pairingToken: settings.FNLOOM_PAIRING_TOKEN }),
|
|
80
80
|
}, host);
|
|
81
81
|
running.onStatus((status) => { log.info('notes.status', { status }); });
|
|
82
82
|
|
|
@@ -92,10 +92,10 @@ outcome journal), `pairingToken` (a one-time token an admin made), `client` (the
|
|
|
92
92
|
`version` (default: from `package.json`), `mcp` (also serve its native fns as an MCP server over stdio or HTTP),
|
|
93
93
|
`connectTimeout`, and seams for `files` and `fetch`.
|
|
94
94
|
|
|
95
|
-
**Env.** A system's tunables are an `@ayepi/env` slice that spreads `systemFields()` (the hub URL `
|
|
96
|
-
instance `
|
|
95
|
+
**Env.** A system's tunables are an `@ayepi/env` slice that spreads `systemFields()` (the hub URL `FNLOOM_HUB`, the
|
|
96
|
+
instance `FNLOOM_INSTANCE`, the pairing token `FNLOOM_PAIRING_TOKEN`, the data and cache folders) and its own, each a
|
|
97
97
|
zod schema with a default and a TSDoc line, then adds `systemState('<name>')`: the state folder
|
|
98
|
-
`
|
|
98
|
+
`FNLOOM_SYSTEM_STATE`, which defaults to one of its own per instance. Feature code never reads `process.env`:
|
|
99
99
|
|
|
100
100
|
_From `scripts/docs/example/server/env.ts`:_
|
|
101
101
|
|