fnloom 0.3.0 → 0.4.1
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/gin-a.ts +13 -2
- 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/store-ops.ts +9 -2
- 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/catalog/catalog.ts +3 -2
- 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 +54 -5
- 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-CiWhrnP4.js} +2 -2
- package/packages/web/dist/assets/AdminLayout-CjVNzmYD.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-D_kkUatv.js} +2 -2
- package/packages/web/dist/assets/{AutoPairPicker-C61gihmh.js → AutoPairPicker-BdCHi7dL.js} +2 -2
- package/packages/web/dist/assets/{BrowserFrame-Sq9EmQRT.js → BrowserFrame-CVQvfCB8.js} +2 -2
- package/packages/web/dist/assets/ChatPage-CPZJ8ya6.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-DzWZyAp4.js} +2 -2
- package/packages/web/dist/assets/ConfigWithCustom-C49loznj.js +3 -0
- package/packages/web/dist/assets/{ConfirmDialog-Dd3E4sJt.js → ConfirmDialog-BtugUGEY.js} +2 -2
- package/packages/web/dist/assets/{ConnectPage-CX9acyQH.js → ConnectPage-D8k2nSdX.js} +2 -2
- package/packages/web/dist/assets/ContextItemPage-DC4FGi8V.js +2 -0
- package/packages/web/dist/assets/ContextPage-MlEkKMq0.js +3 -0
- package/packages/web/dist/assets/{ContextRow-DrtPumZ5.js → ContextRow-BN26Di1B.js} +2 -2
- package/packages/web/dist/assets/{DataPage-DDSsxHro.js → DataPage-CvOYkEkS.js} +2 -2
- package/packages/web/dist/assets/DataTypePage-CDEL6BHp.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-D-MsKLuP.js} +3 -3
- package/packages/web/dist/assets/{ExplorePage-B7ND0W0l.js → ExplorePage-CNQpEe_8.js} +2 -2
- package/packages/web/dist/assets/{FnPill-Cp3KuLmP.js → FnPill-Dm5mmffj.js} +2 -2
- package/packages/web/dist/assets/{FnView-C0XZdnsS.js → FnView-oiIU5vka.js} +2 -2
- package/packages/web/dist/assets/{FnsView-GTH3p7a0.js → FnsView-DgIfza4W.js} +2 -2
- package/packages/web/dist/assets/{GinExprView-DGxns6lH.js → GinExprView-C19g0UgI.js} +2 -2
- package/packages/web/dist/assets/{GinForm-BDBUzuDP.js → GinForm-p7UsKQ3s.js} +2 -2
- package/packages/web/dist/assets/{GinTypeView-CUsymbVf.js → GinTypeView-DvdHc0V4.js} +2 -2
- package/packages/web/dist/assets/{GinValueView-jsKIfiEA.js → GinValueView-D6c7E4C_.js} +2 -2
- package/packages/web/dist/assets/{GraphPage-BCcPPsHu.js → GraphPage-BTamx4d-.js} +2 -2
- package/packages/web/dist/assets/GraphPanel-DKpbijQD.js +2 -0
- package/packages/web/dist/assets/{HubPicker-EoOErgmk.js → HubPicker-DfXIcUz1.js} +2 -2
- package/packages/web/dist/assets/{InboxApprovals-Dkq7DFp_.js → InboxApprovals-B9qwPCHR.js} +2 -2
- package/packages/web/dist/assets/{InboxPage-CHhslePq.js → InboxPage-j2lF00uW.js} +2 -2
- package/packages/web/dist/assets/InjectedList-BTGvy8GB.js +2 -0
- package/packages/web/dist/assets/{InstallDialog-D-VwfZYF.js → InstallDialog-BRJXLSMJ.js} +2 -2
- package/packages/web/dist/assets/InstanceTypes-DYdolFFW.js +2 -0
- package/packages/web/dist/assets/InstanceView-C5dJLBPe.js +2 -0
- package/packages/web/dist/assets/{ItemHistory-NQAP69ma.js → ItemHistory-vsyIMjIX.js} +2 -2
- package/packages/web/dist/assets/LimitsView-BtbQzkX1.js +2 -0
- package/packages/web/dist/assets/{ListSearch-BunVrDO0.js → ListSearch-BdVW9FHD.js} +2 -2
- package/packages/web/dist/assets/{LlmCallDetails-BoVNDTVs.js → LlmCallDetails-Cd7qtybU.js} +2 -2
- package/packages/web/dist/assets/{LlmCallsView-BGpV92RC.js → LlmCallsView-CrZB_I1H.js} +2 -2
- package/packages/web/dist/assets/{LoadState-h-K9bTYc.js → LoadState-8UknKQ6e.js} +2 -2
- package/packages/web/dist/assets/McpDialog-r-qJDHOO.js +2 -0
- package/packages/web/dist/assets/{McpView-GPXdCMne.js → McpView-FeDQWGxu.js} +2 -2
- package/packages/web/dist/assets/{McpsView-DJIR2JX5.js → McpsView-Czd2yUdE.js} +2 -2
- package/packages/web/dist/assets/{MemoryDialog-BTeIHQyA.js → MemoryDialog-DDiT6wO1.js} +2 -2
- package/packages/web/dist/assets/{ModelCallsView-DMcnwF2S.js → ModelCallsView-DsdztwCR.js} +2 -2
- package/packages/web/dist/assets/{ModelPicker-CgkMFxSO.js → ModelPicker-Df_3l8nS.js} +2 -2
- package/packages/web/dist/assets/ModelsView-YXwRDgWv.js +2 -0
- package/packages/web/dist/assets/{NotFoundPage-Tk92K7HN.js → NotFoundPage-DDEOlB6B.js} +2 -2
- package/packages/web/dist/assets/{PairPage-D0BK8CCw.js → PairPage-D3uHAkh1.js} +2 -2
- package/packages/web/dist/assets/{PanelHost-C-gKrxAk.js → PanelHost-BzWYqH39.js} +2 -2
- package/packages/web/dist/assets/PeopleView-Cg9RO5SF.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-BoshL7RQ.js} +2 -2
- package/packages/web/dist/assets/{RefusalList-DVO0bmeB.js → RefusalList-DnLIfmi-.js} +2 -2
- package/packages/web/dist/assets/RendererHost-CmkaVEX0.js +2 -0
- package/packages/web/dist/assets/RendererHost-Ym_SMkhp.css +1 -0
- package/packages/web/dist/assets/{ResourceViewer-Do0chYxU.js → ResourceViewer-CSAY6xIs.js} +2 -2
- package/packages/web/dist/assets/ResourcesPage-DAoa9mDs.js +2 -0
- package/packages/web/dist/assets/ResultGrid-CL2WSYQH.css +1 -0
- package/packages/web/dist/assets/ResultGrid-DSyc0btv.js +2 -0
- package/packages/web/dist/assets/{ReviewSummaryStrip-DO3p64Qj.js → ReviewSummaryStrip-Bzy-KGz_.js} +2 -2
- package/packages/web/dist/assets/ReviewView-Cwq8Az_B.js +3 -0
- package/packages/web/dist/assets/{RuleRow-DX9v4iGP.js → RuleRow-DAvl2m9p.js} +2 -2
- package/packages/web/dist/assets/RunCard-BMyRkKxJ.js +2 -0
- package/packages/web/dist/assets/RunCard-CSDiz-Nt.css +1 -0
- package/packages/web/dist/assets/{RunDetails-DjR206q6.js → RunDetails-Bvyr1HYK.js} +2 -2
- package/packages/web/dist/assets/{RunDot-lHRICdM5.js → RunDot-Lfrt5XR3.js} +2 -2
- package/packages/web/dist/assets/{RunPage-CbAQ_WPR.js → RunPage-C0-wY6Uz.js} +2 -2
- package/packages/web/dist/assets/{RunProgress-C3-B4tQf.js → RunProgress-BbzwzrTK.js} +2 -2
- package/packages/web/dist/assets/{RunsView-DMkPmkqX.js → RunsView-so-UV2Cq.js} +2 -2
- package/packages/web/dist/assets/SettingsPage-B4SQLk09.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-Ck-v3eH0.js} +2 -2
- package/packages/web/dist/assets/{StatusBadge-CXne0sRZ.js → StatusBadge-C4NawPsO.js} +2 -2
- package/packages/web/dist/assets/{StorePlacementStep-B6SwTmdM.js → StorePlacementStep-DjLWeQF9.js} +2 -2
- package/packages/web/dist/assets/{SystemConfig-vQDL_eUl.js → SystemConfig-B5C5B3b0.js} +2 -2
- package/packages/web/dist/assets/SystemPageHost-DX7LrFoN.css +1 -0
- package/packages/web/dist/assets/SystemPageHost-DoyQlhKM.js +2 -0
- package/packages/web/dist/assets/SystemView-CTdpay8I.js +2 -0
- package/packages/web/dist/assets/SystemsView-Cnv2moRw.js +2 -0
- package/packages/web/dist/assets/TableView-BK_95qHT.js +3 -0
- package/packages/web/dist/assets/TableView-B_4MViVb.css +1 -0
- package/packages/web/dist/assets/{TableViewer-Boxx86f5.js → TableViewer-CRsIxdku.js} +3 -3
- package/packages/web/dist/assets/{ThemePicker-CIg_oRQX.js → ThemePicker-BlW7qvUd.js} +2 -2
- package/packages/web/dist/assets/{TurnTree-Ecm0yA5g.js → TurnTree-D6OYRutQ.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-DJH2bXqv.js} +6 -6
- package/packages/web/dist/assets/{ValueVisual-C-MWpp7c.js → ValueVisual-BJUrdkHO.js} +2 -2
- package/packages/web/dist/assets/{fn-modal-B98MR7JN.js → fn-modal-DFtN7Kn-.js} +2 -2
- package/packages/web/dist/assets/{fn-notices-CfTa1E8y.js → fn-notices-C8HXeo7m.js} +2 -2
- package/packages/web/dist/assets/{formats-JwoKfXIq.js → formats-CHSYhY4X.js} +2 -2
- package/packages/web/dist/assets/index-BY7M8QUk.css +1 -0
- package/packages/web/dist/assets/index-Uz-h2M5K.js +4 -0
- package/packages/web/dist/assets/{labels-BFbk11BE.js → labels-DkV96Md_.js} +2 -2
- package/packages/web/dist/assets/{layout-D1gf481r.js → layout-CTAHAwIH.js} +2 -2
- package/packages/web/dist/assets/loaded-BrwmsuZY.js +2 -0
- package/packages/web/dist/assets/{metrics-CBPX3W5Y.js → metrics-BBvD6KSk.js} +2 -2
- package/packages/web/dist/assets/problems-CI9huk1n.js +2 -0
- package/packages/web/dist/assets/{push-payload-BeU1ADYt.js → push-payload-C1ppI5V2.js} +64 -64
- package/packages/web/dist/assets/record-edits-DFJBcNnL.js +2 -0
- package/packages/web/dist/assets/{review-fP-l9D6H.js → review-DlP8FQiO.js} +3 -3
- package/packages/web/dist/assets/routes-oIISbS5Z.js +4 -0
- package/packages/web/dist/assets/{runs-CveC2kKo.js → runs-BWVBevgu.js} +2 -2
- package/packages/web/dist/assets/{shared-LbaIHjbV.js → shared-Bc4GJbiE.js} +2 -2
- package/packages/web/dist/assets/{sources-VPrtgLIi.js → sources-gONU9kk2.js} +2 -2
- package/packages/web/dist/assets/src-ClMFVauH.js +43 -0
- package/packages/web/dist/assets/state-BQlvjJzT.js +2 -0
- package/packages/web/dist/assets/{systems-BqE3WTSF.js → systems-Dt01wDhP.js} +2 -2
- package/packages/web/dist/assets/table-host-BvEY0Zxn.js +2 -0
- package/packages/web/dist/assets/tables-CkqGZ0Yq.js +2 -0
- package/packages/web/dist/assets/{ui-BzgWquIU.js → ui-CjoSgSyZ.js} +5 -5
- package/packages/web/dist/assets/{url-DKGcECT1.js → url-Deh5u3O5.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/CommentComposer.vue +6 -3
- package/systems/fs/client/machines/files/FilePane.vue +2 -2
- 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/metrics/os.ts +50 -29
- 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
|
@@ -68,7 +68,7 @@ interface ServeOptions {
|
|
|
68
68
|
/**
|
|
69
69
|
* The system's context folder (markdown files with YAML headers, `context-files.ts`), sent as its context; `false`
|
|
70
70
|
* for none. Default: `context/` beside its `system.json`, when there is one. A folder with problems stops the start;
|
|
71
|
-
* with `
|
|
71
|
+
* with `FNLOOM_CONTEXT_WATCH` its changes go to the hub live.
|
|
72
72
|
*/
|
|
73
73
|
context?: string | false;
|
|
74
74
|
/**
|
|
@@ -86,7 +86,7 @@ Refers to: [`Duration`](context:fs/authoring.core-types.primitives-ts#core-durat
|
|
|
86
86
|
|
|
87
87
|
type · `import { McpServe } from '@harness/sdk/server'`
|
|
88
88
|
|
|
89
|
-
Where the MCP face listens: stdin/stdout, or MCP Streamable HTTP on a port (any path; body limit `
|
|
89
|
+
Where the MCP face listens: stdin/stdout, or MCP Streamable HTTP on a port (any path; body limit `FNLOOM_MCP_MAX_BODY`).
|
|
90
90
|
|
|
91
91
|
```ts
|
|
92
92
|
type McpServe = { stdio: true } | { http: { port: number; host?: string } };
|
|
@@ -277,7 +277,7 @@ The link fields of a system's env slice, for spreading into it, followed by its
|
|
|
277
277
|
machine's default port, the instance to `main`.
|
|
278
278
|
|
|
279
279
|
```ts
|
|
280
|
-
function systemFields(): { readonly
|
|
280
|
+
function systemFields(): { readonly FNLOOM_SYSTEM_DATA: z.ZodOptional<z.ZodString>; readonly FNLOOM_SYSTEM_CACHE: z.ZodOptional<z.ZodString>; readonly FNLOOM_HUB: z.ZodDefault<z.ZodString>; readonly FNLOOM_INSTANCE: z.ZodDefault<z.core.$ZodBranded<z.ZodString, "InstanceName", "out">>; readonly FNLOOM_PAIRING_TOKEN: z.ZodOptional<z.ZodString>; };
|
|
281
281
|
```
|
|
282
282
|
|
|
283
283
|
#### `systemState`
|
|
@@ -289,7 +289,7 @@ A system's state folder, where it keeps its key pair, outcome journal and anythi
|
|
|
289
289
|
hand on one machine never share a key pair. A group of its own because it reads the instance (`systemFields`).
|
|
290
290
|
|
|
291
291
|
```ts
|
|
292
|
-
function systemState(name: string): { readonly
|
|
292
|
+
function systemState(name: string): { readonly FNLOOM_SYSTEM_STATE: (e: { readonly [SYSTEM_ENV.instance]: InstanceName; }) => z.ZodDefault<z.ZodString>; };
|
|
293
293
|
```
|
|
294
294
|
|
|
295
295
|
#### `defaultStateFolder`
|
|
@@ -314,23 +314,23 @@ so the names can't drift.
|
|
|
314
314
|
|
|
315
315
|
```ts
|
|
316
316
|
const SYSTEM_ENV = {
|
|
317
|
-
hub: '
|
|
318
|
-
state: '
|
|
317
|
+
hub: 'FNLOOM_HUB',
|
|
318
|
+
state: 'FNLOOM_SYSTEM_STATE',
|
|
319
319
|
/** Which copy of the system this process is (`main` when unset); a fleet's instances each have their own. */
|
|
320
|
-
instance: '
|
|
320
|
+
instance: 'FNLOOM_INSTANCE',
|
|
321
321
|
/** The instance's own data folder, outside the package, kept across upgrades and exported with its data. */
|
|
322
|
-
data: '
|
|
322
|
+
data: 'FNLOOM_SYSTEM_DATA',
|
|
323
323
|
/** The instance's cache folder: rebuildable, never exported. */
|
|
324
|
-
cache: '
|
|
325
|
-
name: '
|
|
326
|
-
pairingToken: '
|
|
327
|
-
supervised: '
|
|
328
|
-
restartCode: '
|
|
324
|
+
cache: 'FNLOOM_SYSTEM_CACHE',
|
|
325
|
+
name: 'FNLOOM_SYSTEM_NAME',
|
|
326
|
+
pairingToken: 'FNLOOM_PAIRING_TOKEN',
|
|
327
|
+
supervised: 'FNLOOM_SUPERVISED',
|
|
328
|
+
restartCode: 'FNLOOM_RESTART_CODE',
|
|
329
329
|
/**
|
|
330
330
|
* The hub's folder of database drivers (`pg`, `tedious`, `tarn`), which it installs when a store is placed in
|
|
331
331
|
* Postgres or SQL Server: a store that opens there loads them from it when the system has none of its own.
|
|
332
332
|
*/
|
|
333
|
-
storeDrivers: '
|
|
333
|
+
storeDrivers: 'FNLOOM_STORE_DRIVERS',
|
|
334
334
|
} as const;
|
|
335
335
|
```
|
|
336
336
|
|
|
@@ -423,7 +423,7 @@ interface LinkHostDeps {
|
|
|
423
423
|
readonly env?: SdkEnv;
|
|
424
424
|
/** The process logger. Default: console, plus the hub while connected. */
|
|
425
425
|
readonly logger?: (sink: (line: LogLine) => void) => Logger;
|
|
426
|
-
/** Shows a pending pairing. Default: a QR code on a terminal (`
|
|
426
|
+
/** Shows a pending pairing. Default: a QR code on a terminal (`FNLOOM_PAIRING_QR`), else a log line. */
|
|
427
427
|
readonly pairing?: PairingDisplay;
|
|
428
428
|
/** Makes the instance's data and cache folders before the system starts. Default: `mkdir -p` each. */
|
|
429
429
|
readonly folders?: (dirs: readonly string[]) => Promise<void>;
|
|
@@ -7,7 +7,7 @@ summary: "Testing: reference: Equal, Simplify, MemoryKeyStore, MemoryJournal, Fa
|
|
|
7
7
|
question: "What are the exact signatures and options of Equal, Simplify, MemoryKeyStore, MemoryJournal, FakeHubFns, KeptFn and 26 more?"
|
|
8
8
|
when: "When code uses Equal, Simplify, MemoryKeyStore, MemoryJournal, FakeHubFns, KeptFn and 26 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.testing.reference"
|
|
12
12
|
next: "fs/authoring.testing.reference.kindprops"
|
|
13
13
|
suggest: "none"
|
|
@@ -120,7 +120,7 @@ The hub's widget fns in memory.
|
|
|
120
120
|
|
|
121
121
|
```ts
|
|
122
122
|
class FakeHubWidgets {
|
|
123
|
-
/** What `hub/visuals` answers: the
|
|
123
|
+
/** What `hub/visuals` answers: the table and value cards as the hub contributes them; `testHub` pushes the system's own. */
|
|
124
124
|
readonly visuals: ContributionView[];
|
|
125
125
|
/** Every `hub/read_table` call, in order: the fn and the args it ran with. */
|
|
126
126
|
readonly reads: ReadTableArgs[];
|
|
@@ -133,7 +133,7 @@ class FakeHubWidgets {
|
|
|
133
133
|
}
|
|
134
134
|
```
|
|
135
135
|
|
|
136
|
-
Refers to: [`ContributionView`](context:fs/authoring.core-types.registries-ts#core-contributionview), [`Json`](context:fs/authoring.core-types.primitives-ts#core-json), [`QualifiedName`](context:fs/authoring.core-types.primitives-ts#core-qualifiedname), [`ReadTableArgs`](context:fs/authoring.core-types.
|
|
136
|
+
Refers to: [`ContributionView`](context:fs/authoring.core-types.registries-ts#core-contributionview), [`Json`](context:fs/authoring.core-types.primitives-ts#core-json), [`QualifiedName`](context:fs/authoring.core-types.primitives-ts#core-qualifiedname), [`ReadTableArgs`](context:fs/authoring.core-types.tables-ts#core-readtableargs), [`RunSettled`](context:fs/authoring.core-types.run-ts#core-runsettled), [`SystemName`](context:fs/authoring.core-types.primitives-ts#core-systemname).
|
|
137
137
|
|
|
138
138
|
#### `HUB_WIDGET_FNS`
|
|
139
139
|
|
|
@@ -353,7 +353,7 @@ function streamOf<T>(items: readonly T[]): AsyncGenerator<T>;
|
|
|
353
353
|
const · `import { liveEnv } from '@harness/sdk/server/testing'`
|
|
354
354
|
|
|
355
355
|
```ts
|
|
356
|
-
const liveEnv: Env<EnvOutput<{}, { readonly OPENROUTER_API_KEY: z.ZodOptional<z.ZodString>; readonly
|
|
356
|
+
const liveEnv: Env<EnvOutput<{}, { readonly OPENROUTER_API_KEY: z.ZodOptional<z.ZodString>; readonly FNLOOM_LIVE_MODEL: z.ZodDefault<z.ZodString>; readonly FNLOOM_LIVE_FALLBACKS: z.ZodDefault<z.ZodString>; readonly FNLOOM_LIVE_EMBEDDER_URL: z.ZodDefault<z.ZodString>; }>>;
|
|
357
357
|
```
|
|
358
358
|
|
|
359
359
|
#### `liveModels`
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
# Generated by scripts/docs/authoring.ts from the authoring guide (npm run docs:authoring); do not edit.
|
|
3
3
|
key: "authoring.testing.reference.kindprops"
|
|
4
|
-
title: "Testing: reference: KindProps …
|
|
4
|
+
title: "Testing: reference: KindProps … openMemoryStore"
|
|
5
5
|
description: "Testing: reference, the part on KindProps, mockModel, toolCall, ScriptStep, examplesChecked, DIALECT_MODELS, ModelRecording, RecordedModelLink, RecordingOptions, realModel, RealModelTest, liveTurn, OpenRouterModelLink, OpenRouterOptions, preview, PreviewOptions, SavedShot, renderHtml, galleryHtml, PreviewIndex, PREVIEW_INDEX, PREVIEW_THEMES, PreviewTheme, contextFolder, TestedContext,…"
|
|
6
6
|
summary: "Testing: reference: KindProps, mockModel, toolCall, ScriptStep, examplesChecked, DIALECT_MODELS, ModelRecording, RecordedModelLink, RecordingOptions,…"
|
|
7
|
-
question: "What are the exact signatures and options of KindProps, mockModel, toolCall, ScriptStep, examplesChecked, DIALECT_MODELS and
|
|
8
|
-
when: "When code uses KindProps, mockModel, toolCall, ScriptStep, examplesChecked, DIALECT_MODELS and
|
|
7
|
+
question: "What are the exact signatures and options of KindProps, mockModel, toolCall, ScriptStep, examplesChecked, DIALECT_MODELS and 31 more?"
|
|
8
|
+
when: "When code uses KindProps, mockModel, toolCall, ScriptStep, examplesChecked, DIALECT_MODELS and 31 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.testing.reference"
|
|
12
|
-
next: "fs/authoring.testing.reference.
|
|
12
|
+
next: "fs/authoring.testing.reference.storeconnection"
|
|
13
13
|
suggest: "none"
|
|
14
14
|
tags: ["authoring", "reference"]
|
|
15
15
|
niche: "developer"
|
|
@@ -219,8 +219,8 @@ Refers to: [`HubModelInfo`](context:fs/authoring.core-types.admin-ts#core-hubmod
|
|
|
219
219
|
|
|
220
220
|
const · `import { realModel } from '@harness/sdk/testing'`
|
|
221
221
|
|
|
222
|
-
A real free model (OpenRouter, `OPENROUTER_API_KEY`; the models of `
|
|
223
|
-
`
|
|
222
|
+
A real free model (OpenRouter, `OPENROUTER_API_KEY`; the models of `FNLOOM_LIVE_MODEL` and
|
|
223
|
+
`FNLOOM_LIVE_FALLBACKS`). `realModel.it` declares a test that calls it: marked `real`, skipped without a key.
|
|
224
224
|
|
|
225
225
|
```ts
|
|
226
226
|
const realModel: { link(): OpenRouterModelLink | undefined; available(): boolean; it(name: string, body: RealModelTest, timeout?: number): void; };
|
|
@@ -241,7 +241,7 @@ type RealModelTest = (model: OpenRouterModelLink, context: TestContext) => Promi
|
|
|
241
241
|
function · `import { liveTurn } from '@harness/sdk/testing'`
|
|
242
242
|
|
|
243
243
|
A run's time for a call that drives a real model through an agent (authoring a fn): four minutes, like a turn on the
|
|
244
|
-
hub (`
|
|
244
|
+
hub (`FNLOOM_TURN_TIME`, ten minutes by default), not the test hub's 60-second default, which a real model writing
|
|
245
245
|
and checking a program can pass without anything being wrong. Pass it as `kit.call`'s extra.
|
|
246
246
|
|
|
247
247
|
```ts
|
|
@@ -318,7 +318,7 @@ interface PreviewOptions {
|
|
|
318
318
|
readonly viewports?: readonly PreviewViewport[];
|
|
319
319
|
/** Default both. */
|
|
320
320
|
readonly themes?: readonly PreviewTheme[];
|
|
321
|
-
/** Force shooting on or off (default `
|
|
321
|
+
/** Force shooting on or off (default `FNLOOM_PREVIEWS`). */
|
|
322
322
|
readonly shoot?: boolean;
|
|
323
323
|
}
|
|
324
324
|
```
|
|
@@ -468,7 +468,7 @@ Refers to: [`QualifiedName`](context:fs/authoring.core-types.primitives-ts#core-
|
|
|
468
468
|
const · `import { kitEnv } from '@harness/sdk/testing'`
|
|
469
469
|
|
|
470
470
|
```ts
|
|
471
|
-
const kitEnv: Env<EnvOutput<{}, { readonly
|
|
471
|
+
const kitEnv: Env<EnvOutput<{}, { readonly FNLOOM_PREVIEWS: z.ZodDefault<z.ZodBoolean>; readonly FNLOOM_PREVIEW_DIR: z.ZodDefault<z.ZodString>; readonly FNLOOM_PREVIEW_PHONE: z.ZodDefault<z.ZodString>; readonly FNLOOM_PREVIEW_DESKTOP: z.ZodDefault<z.ZodString>; readonly FNLOOM_PREVIEW_THEME: z.ZodOptional<z.ZodString>; }>>;
|
|
472
472
|
```
|
|
473
473
|
|
|
474
474
|
#### `scratchFolder`
|
|
@@ -614,3 +614,15 @@ A `LinkHostDeps.storeConnect` that keeps a store with the system as a real SQLit
|
|
|
614
614
|
```ts
|
|
615
615
|
function localStoreConnect(dir: string, now?: () => number): () => Promise<StoreConnection>;
|
|
616
616
|
```
|
|
617
|
+
|
|
618
|
+
#### `openMemoryStore`
|
|
619
|
+
|
|
620
|
+
function · `import { openMemoryStore } from '@harness/sdk/server/testing'`
|
|
621
|
+
|
|
622
|
+
A store with the system held in memory (SQLite `:memory:` with sqlite-vec), for tests: gone once it closes. It is
|
|
623
|
+
measured like a file (its size is its pages), but a move refuses it: there is no file to copy, and closing it for the
|
|
624
|
+
copy would lose it.
|
|
625
|
+
|
|
626
|
+
```ts
|
|
627
|
+
function openMemoryStore(): Promise<StoreConnection>;
|
|
628
|
+
```
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
# Generated by scripts/docs/authoring.ts from the authoring guide (npm run docs:authoring); do not edit.
|
|
3
|
-
key: "authoring.testing.reference.
|
|
4
|
-
title: "Testing: reference:
|
|
5
|
-
description: "Testing: reference, the part on
|
|
6
|
-
summary: "Testing: reference:
|
|
7
|
-
question: "What are the exact signatures and options of
|
|
8
|
-
when: "When code uses
|
|
3
|
+
key: "authoring.testing.reference.storeconnection"
|
|
4
|
+
title: "Testing: reference: StoreConnection … CheckClock"
|
|
5
|
+
description: "Testing: reference, the part on StoreConnection, WORK_BACKEND_CHECKS, WorkBackendCheck, WorkBackendMaker, CheckClock."
|
|
6
|
+
summary: "Testing: reference: StoreConnection, WORK_BACKEND_CHECKS, WorkBackendCheck, WorkBackendMaker, CheckClock."
|
|
7
|
+
question: "What are the exact signatures and options of StoreConnection, WORK_BACKEND_CHECKS, WorkBackendCheck, WorkBackendMaker and CheckClock?"
|
|
8
|
+
when: "When code uses StoreConnection, WORK_BACKEND_CHECKS, WorkBackendCheck, WorkBackendMaker and CheckClock 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.testing.reference"
|
|
12
12
|
suggest: "none"
|
|
13
13
|
tags: ["authoring", "reference"]
|
|
@@ -16,18 +16,6 @@ niche: "developer"
|
|
|
16
16
|
|
|
17
17
|
### Reference: testing
|
|
18
18
|
|
|
19
|
-
#### `openMemoryStore`
|
|
20
|
-
|
|
21
|
-
function · `import { openMemoryStore } from '@harness/sdk/server/testing'`
|
|
22
|
-
|
|
23
|
-
A store with the system held in memory (SQLite `:memory:` with sqlite-vec), for tests: gone once it closes. It is
|
|
24
|
-
measured like a file (its size is its pages), but a move refuses it: there is no file to copy, and closing it for the
|
|
25
|
-
copy would lose it.
|
|
26
|
-
|
|
27
|
-
```ts
|
|
28
|
-
function openMemoryStore(): Promise<StoreConnection>;
|
|
29
|
-
```
|
|
30
|
-
|
|
31
19
|
#### `StoreConnection`
|
|
32
20
|
|
|
33
21
|
interface · `import { StoreConnection } from '@harness/sdk/server/testing'`
|
|
@@ -7,7 +7,7 @@ summary: "Signatures and options for testing."
|
|
|
7
7
|
question: "What are the exact signatures and options in the API of testing?"
|
|
8
8
|
when: "When writing code for testing 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.testing"
|
|
12
12
|
suggest: "none"
|
|
13
13
|
tags: ["authoring", "reference"]
|
|
@@ -19,13 +19,13 @@ choices:
|
|
|
19
19
|
when: "Pick this for Equal, Simplify, MemoryKeyStore, MemoryJournal, FakeHubFns, KeptFn, FakeHubWidgets, HUB_WIDGET_FNS, FakeTableSource, FakeModelLink, fakeHubAi, replyChunks, FakeModelOptions, FakeReply,…"
|
|
20
20
|
- to: "fs/authoring.testing.reference.kindprops"
|
|
21
21
|
when: "Pick this for KindProps, mockModel, toolCall, ScriptStep, examplesChecked, DIALECT_MODELS, ModelRecording, RecordedModelLink, RecordingOptions, realModel, RealModelTest, liveTurn,…"
|
|
22
|
-
- to: "fs/authoring.testing.reference.
|
|
23
|
-
when: "Pick this for
|
|
22
|
+
- to: "fs/authoring.testing.reference.storeconnection"
|
|
23
|
+
when: "Pick this for StoreConnection, WORK_BACKEND_CHECKS, WorkBackendCheck, WorkBackendMaker, CheckClock."
|
|
24
24
|
---
|
|
25
25
|
|
|
26
26
|
This part is in 4 pieces; load the one you need:
|
|
27
27
|
|
|
28
28
|
- [FakeHub … expectType](context:fs/authoring.testing.reference.fakehub)
|
|
29
29
|
- [Equal … KindPayloadOf](context:fs/authoring.testing.reference.equal)
|
|
30
|
-
- [KindProps …
|
|
31
|
-
- [
|
|
30
|
+
- [KindProps … openMemoryStore](context:fs/authoring.testing.reference.kindprops)
|
|
31
|
+
- [StoreConnection … CheckClock](context:fs/authoring.testing.reference.storeconnection)
|
|
@@ -7,7 +7,7 @@ summary: "Visuals in the hub registry with their shapes, and widgets: saved view
|
|
|
7
7
|
question: "How does a system add a visual, or work with widgets?"
|
|
8
8
|
when: "When a system adds a visual to the hub registry, or its table fns are shown as widgets with controls, paging and row actions."
|
|
9
9
|
askedBy: "system"
|
|
10
|
-
lastModified: "2026-11-
|
|
10
|
+
lastModified: "2026-11-29"
|
|
11
11
|
parent: "fs/authoring.topics.client"
|
|
12
12
|
next: "fs/authoring.packaging"
|
|
13
13
|
fns: ["fs/read", "fs/write", "fs/edit", "fs/bash"]
|
|
@@ -23,30 +23,38 @@ choices:
|
|
|
23
23
|
## 28. Visuals and widgets
|
|
24
24
|
|
|
25
25
|
A fn that returns a `ResultTable` (a database query, `hub/records_table`, any fn of that shape) is drawn by the result
|
|
26
|
-
view, which offers every **visual** that can draw it
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
view, which offers every **visual** that can draw it. The hub and the web app have only two of their own, the table and
|
|
27
|
+
the value cards (`BUILT_IN_CONTRIBUTIONS`); every chart is a system's contribution to `hub/visuals`. The bundled
|
|
28
|
+
widgets system contributes the chart families (part of a whole, bars, over time, distribution, cross-tab, calendar,
|
|
29
|
+
timeline, network, hierarchy, gauge, candlestick, ranges, profiles, progress: about a hundred styles over every ECharts
|
|
30
|
+
series but the map), each with a style picker, and draws them with the ECharts its client bundles; while it is not
|
|
31
|
+
connected, a result is a table or value cards. Any other system may add its own the same way. A **widget** is a saved
|
|
32
|
+
view of such a fn, kept by the widgets system: the visuals to switch between, a plan per argument, presets, the actions
|
|
33
|
+
on each row and what a click opens.
|
|
30
34
|
|
|
31
35
|
**How a fit is judged.** Every visual declares the data it draws as a **shape**: its channels (`channel(name, label,
|
|
32
36
|
kinds, { required, many, min, role })`: the column kinds each takes, and whether it wants a `group` key or a
|
|
33
37
|
`measure`), how many rows it draws, whether it only tells the truth about a whole result (`whole`: a pie of one page
|
|
34
38
|
lies), rules over the values (`distinct`, `non-negative`, `bounded`, `distinct-columns`, `links`), how it stays honest
|
|
35
39
|
when the result is bigger (`size`), its styles, the args it drives (`claims`: a time axis sets a range) and its
|
|
36
|
-
priority.
|
|
40
|
+
priority. A style may ask for more than its visual does: `needs` (channels bound), `columns` (how many columns a
|
|
41
|
+
channel binds: a waterfall draws one measure and no series) and `rules` of its own (a radar needs three to sixteen
|
|
42
|
+
categories); a style that can't draw the data is not in the picker (`styleProblems`). Column facts come from the source and the rows: a source may declare a column's `role` (the database knows a
|
|
37
43
|
GROUP BY key from an aggregate) and `key`; `resultFacts(table)` works out the rest (numeric, temporal, opaque ids that
|
|
38
44
|
are never drawn, distinct counts, ranges) and adds the column's gin facts (an enum's members, a number's range,
|
|
39
45
|
`ginTypeFacts`). Visuals are ranked in one order everywhere (`rankedVisuals`): the most columns drawn first, then
|
|
40
46
|
priority, then registry order. A visual that can't draw the data is not offered.
|
|
41
47
|
|
|
42
48
|
**Your own chart.** A system adds a visual by declaring it in `contributes` with `visual(...)` and drawing it in
|
|
43
|
-
`client({ visuals: { [HUB_VISUALS]: { name: { component } } } })
|
|
44
|
-
version) to the system's `package.json` and import only the charts and
|
|
45
|
-
client build bundles it with the system (only `vue` and `@harness/sdk` are
|
|
46
|
-
`VisualView`: the `table`, its `facts`, the columns bound to each channel
|
|
47
|
-
the theme's `palette` (`visualTheme(palette)` is an ECharts theme matching the
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
`client({ visuals: { [HUB_VISUALS]: { name: { component } } } })`, as the widgets system does for its charts. Draw it
|
|
50
|
+
with ECharts: add `echarts` (an exact version) to the system's `package.json` and import only the charts and
|
|
51
|
+
components it uses from `echarts/core`; the client build bundles it with the system (only `vue` and `@harness/sdk` are
|
|
52
|
+
shared with the chat). The component gets `VisualView`: the `table`, its `facts`, the columns bound to each channel
|
|
53
|
+
(`bind`, complete), the `style` picked, the theme's `palette` (`visualTheme(palette)` is an ECharts theme matching the
|
|
54
|
+
widgets system's charts; draw again when the palette changes), the result's `title` and the page's row `opener`. It
|
|
55
|
+
emits `drill(rowIndex)` when a bar, slice or point is clicked and `range({ from, to })` when the person zooms a time
|
|
56
|
+
axis (`VISUAL_EMITS`). While it draws it may offer the result view's Export image: `inject(VISUAL_IMAGE)` and set a
|
|
57
|
+
PNG/SVG exporter, cleared on unmount; `inject(VISUAL_DRILLABLE)` says whether a click drills. There is no SDK chart wrapper: use ECharts as it is documented. A `veto`
|
|
50
58
|
beside the component may refuse a fit the shape allows. Test that it is offered for its data with `kit.visuals(table)`.
|
|
51
59
|
|
|
52
60
|
_From `scripts/docs/samples/charts.ts`:_
|
|
@@ -136,21 +144,23 @@ _From `scripts/docs/samples/charts.ts`:_
|
|
|
136
144
|
export default client(charts, { visuals: { [HUB_VISUALS]: { bullet: { component: BulletVisual } } } });
|
|
137
145
|
```
|
|
138
146
|
|
|
139
|
-
**Widgets.** A widget is a fn of the widgets system's kind `widgets/widget`
|
|
140
|
-
`
|
|
147
|
+
**Widgets.** A widget is a fn of the widgets system's kind `widgets/widget` whose payload is a `WidgetSpec` (its
|
|
148
|
+
contract and helpers are the widgets system's own, in `systems/widgets/shared`, not the SDK's): its `source` (a read fn returning a table), its `visuals` (each `{ visual, style, bind }`; a channel left
|
|
141
149
|
out takes the default binding), a plan per source arg (`args`: a chip with a label, choices with their own words and a
|
|
142
150
|
default, `pinned` to a value, or `hidden` when the arg has a default), `presets` (named chips that set several args),
|
|
143
151
|
the `range` args a time or calendar visual drives, the `paging` args (`limit` and `offset`, `WINDOW_ARGS`, which the
|
|
144
152
|
buffered pager drives), `actions`, a `drill` and `live`. Values may be relative dates (`today-7d`,
|
|
145
|
-
`startOf(month)
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
153
|
+
`startOf(month)`), resolved each time it runs, so a saved widget stays current. Its args are the source's minus the
|
|
154
|
+
pinned ones, the paging and range args optional; the paging and range args are found with `pagingOf` and `rangeOf`. A
|
|
155
|
+
run calls the source as a child run and returns a `WidgetResult`, which is core's `ShownResult` (what the app's result
|
|
156
|
+
view draws for any shown result: the rows, offered visuals, pager, range, row actions, drill, live) with the chips and
|
|
157
|
+
presets the widgets client draws in the result view's `controls` slot (`ResultControls`); bindings that no longer fit
|
|
158
|
+
are listed as problems, never a failure. A widget may move to another source when every arg it plans exists there with
|
|
159
|
+
a compatible type. Versions,
|
|
150
160
|
visibility, review and search come free, as for any fn. Rows that came from a write are read-only.
|
|
151
161
|
|
|
152
162
|
**Row actions** are derived, never listed by hand: each method of a row's type (a column's `ref`) is offered, labelled
|
|
153
|
-
from its name (`actionLabel`), with a form for the args left after binding (`
|
|
163
|
+
from its name (`actionLabel`), with a form for the args left after binding (`rowActionOptions`); a widget may also
|
|
154
164
|
bind any fn's args to columns. Anything that is not a read asks after its form (`confirmOf`); a widget can add a
|
|
155
165
|
confirm, never remove one. What follows is derived (`deriveThen`): rows returned open as a new level, a write
|
|
156
166
|
refreshes, else a status line. A click on a bar, slice or row runs the widget's `drill` (its args from the row,
|
|
@@ -162,7 +172,7 @@ rows declares its drill on its own (`database/drill_down`, through `@aeye/query`
|
|
|
162
172
|
|
|
163
173
|
**Making widgets.** People ask in the chat ("show my open tasks by owner as bars"). `widgets/make_widget` is an agent
|
|
164
174
|
fn handed the source: it reads a sample (`hub/read_table`) and proposes against a strict schema built for that call
|
|
165
|
-
(`widgetProposalSchema`): only the visuals that draw the sample, each style an enum, each channel's columns an enum of
|
|
175
|
+
(the widgets system's `widgetProposalSchema`): only the visuals that draw the sample, each style an enum, each channel's columns an enum of
|
|
166
176
|
the columns it may bind, a typed plan for exactly the source's unclaimed args. A broken widget can't be spelled. The
|
|
167
177
|
chat shows the proposal drawn as it will be; the person presses Save (`widgets/save_widget`). The agent never saves.
|
|
168
178
|
|