fnloom 0.2.0 → 0.3.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 +102 -5
- package/package.json +12 -11
- package/packages/build/package.json +2 -2
- package/packages/cli/package.json +1 -1
- package/packages/cli/src/cli.ts +2 -1
- package/packages/cli/src/command.ts +2 -0
- package/packages/cli/src/commands/install.ts +103 -7
- package/packages/cli/src/commands/manage.ts +7 -5
- package/packages/cli/src/commands/store.ts +172 -0
- package/packages/cli/src/hub.ts +26 -7
- package/packages/cli/src/io.ts +1 -0
- package/packages/cli/src/testing.ts +2 -1
- package/packages/core/package.json +4 -4
- package/packages/core/src/context-files.ts +3 -1
- package/packages/core/src/context-graph.ts +4 -0
- package/packages/core/src/context-plan.ts +451 -0
- package/packages/core/src/context-questions.ts +305 -0
- package/packages/core/src/fn-facts.ts +32 -4
- package/packages/core/src/identity.ts +1 -1
- package/packages/core/src/index.ts +4 -1
- package/packages/core/src/link.ts +70 -0
- package/packages/core/src/manifest.ts +20 -1
- package/packages/core/src/model-calls.ts +11 -2
- package/packages/core/src/package.ts +10 -0
- package/packages/core/src/query.ts +3 -2
- package/packages/core/src/records/content.ts +10 -2
- package/packages/core/src/records/runs.ts +12 -0
- package/packages/core/src/records/systems.ts +87 -5
- package/packages/core/src/run.ts +5 -0
- package/packages/core/src/stores.ts +473 -0
- package/packages/core/src/suggestions.ts +3 -0
- package/packages/core/src/system-pages.ts +14 -1
- package/packages/core/src/web.ts +114 -9
- package/packages/hub/package.json +13 -12
- package/packages/hub/src/access/hits.ts +1 -1
- package/packages/hub/src/api/admin-ops.ts +36 -4
- package/packages/hub/src/api/auth.ts +8 -4
- package/packages/hub/src/api/person-ops.ts +6 -0
- package/packages/hub/src/api/store-ops.ts +54 -0
- package/packages/hub/src/api/testing/rig.ts +2 -2
- package/packages/hub/src/api/tls.ts +2 -2
- package/packages/hub/src/api/web/build5.ts +2 -1
- package/packages/hub/src/api/web/context-plans.ts +25 -0
- package/packages/hub/src/api/web/context-review.ts +43 -0
- package/packages/hub/src/api/web/index.ts +4 -0
- package/packages/hub/src/api/web/pages.ts +14 -1
- package/packages/hub/src/api/web/review.ts +16 -0
- package/packages/hub/src/api/web/systems.ts +14 -2
- package/packages/hub/src/boot/admin-fns.ts +8 -0
- package/packages/hub/src/boot/admin-secrets.ts +10 -4
- package/packages/hub/src/boot/env.ts +6 -1
- package/packages/hub/src/boot/hub-fns.ts +3 -3
- package/packages/hub/src/boot/hub-groups.ts +2 -2
- package/packages/hub/src/boot/identity.ts +1 -1
- package/packages/hub/src/boot/index.ts +9 -0
- package/packages/hub/src/boot/modules.ts +12 -3
- package/packages/hub/src/boot/person-fns.ts +5 -0
- package/packages/hub/src/boot/plan-fns.ts +39 -0
- package/packages/hub/src/boot/start.ts +2 -1
- package/packages/hub/src/catalog/catalog.ts +44 -14
- package/packages/hub/src/catalog/index.ts +6 -2
- package/packages/hub/src/chat/testing.ts +2 -2
- package/packages/hub/src/contextor/brought.ts +5 -3
- package/packages/hub/src/contextor/testing.ts +4 -4
- package/packages/hub/src/execution/create.ts +2 -0
- package/packages/hub/src/execution/env.ts +2 -0
- package/packages/hub/src/execution/errors.ts +12 -0
- package/packages/hub/src/execution/executors.ts +14 -2
- package/packages/hub/src/execution/index.ts +8 -0
- package/packages/hub/src/execution/link-handlers.ts +16 -4
- package/packages/hub/src/execution/runs.ts +212 -11
- package/packages/hub/src/execution/testing.ts +2 -1
- package/packages/hub/src/fns/search.ts +23 -4
- package/packages/hub/src/graph/graph.ts +2 -2
- package/packages/hub/src/index/index.ts +9 -2
- package/packages/hub/src/index/indexer.ts +67 -16
- package/packages/hub/src/index/search.ts +1 -0
- package/packages/hub/src/index/suggester.ts +2 -2
- package/packages/hub/src/link/build.ts +47 -10
- package/packages/hub/src/link/connections.ts +41 -3
- package/packages/hub/src/link/describer.ts +19 -2
- package/packages/hub/src/link/env.ts +10 -0
- package/packages/hub/src/link/handlers.ts +6 -0
- package/packages/hub/src/link/index.ts +16 -4
- package/packages/hub/src/link/lifecycle.ts +11 -4
- package/packages/hub/src/link/packages.ts +17 -4
- package/packages/hub/src/link/pairing.ts +2 -2
- package/packages/hub/src/link/process.ts +10 -4
- package/packages/hub/src/link/rig.ts +6 -2
- package/packages/hub/src/link/status.ts +14 -0
- package/packages/hub/src/link/supervisor.ts +17 -1
- package/packages/hub/src/link/systems.ts +16 -5
- package/packages/hub/src/models/roles.ts +74 -7
- package/packages/hub/src/query/columns.ts +4 -1
- package/packages/hub/src/query/contexts.ts +10 -3
- package/packages/hub/src/questions/apply.ts +163 -0
- package/packages/hub/src/questions/carry.ts +30 -0
- package/packages/hub/src/questions/duplicates.ts +181 -0
- package/packages/hub/src/questions/index.ts +112 -0
- package/packages/hub/src/questions/metadata.ts +142 -0
- package/packages/hub/src/questions/pending.ts +64 -0
- package/packages/hub/src/questions/plan-match.ts +79 -0
- package/packages/hub/src/questions/plan-prompts.ts +110 -0
- package/packages/hub/src/questions/planner.ts +382 -0
- package/packages/hub/src/questions/plans.ts +353 -0
- package/packages/hub/src/questions/review.ts +253 -0
- package/packages/hub/src/questions/setting.ts +50 -0
- package/packages/hub/src/questions/testing.ts +131 -0
- package/packages/hub/src/questions/worker.ts +182 -0
- package/packages/hub/src/resources/context.ts +58 -20
- package/packages/hub/src/resources/create.ts +16 -4
- package/packages/hub/src/resources/env.ts +4 -0
- package/packages/hub/src/resources/fns.ts +6 -2
- package/packages/hub/src/resources/index.ts +8 -2
- package/packages/hub/src/resources/testing.ts +18 -2
- package/packages/hub/src/store/codec.ts +23 -5
- package/packages/hub/src/store/context-status.ts +56 -0
- package/packages/hub/src/store/derived.ts +53 -0
- package/packages/hub/src/store/hybrid.ts +33 -6
- package/packages/hub/src/store/lists.ts +2 -1
- package/packages/hub/src/store/migrate-fn-names.ts +5 -2
- package/packages/hub/src/store/rows.ts +8 -1
- package/packages/hub/src/store/schema.ts +2 -1
- package/packages/hub/src/store/sqlite.ts +2 -1
- package/packages/hub/src/stores/backups.ts +163 -0
- package/packages/hub/src/stores/drivers.ts +100 -0
- package/packages/hub/src/stores/guard.ts +116 -0
- package/packages/hub/src/stores/host.ts +459 -0
- package/packages/hub/src/stores/moves.ts +380 -0
- package/packages/hub/src/stores/plugin.ts +42 -0
- package/packages/hub/src/stores/service.ts +340 -0
- package/packages/hub/src/stores/testing.ts +149 -0
- package/packages/sdk/AUTHORING.md +1813 -218
- package/packages/sdk/package.json +12 -8
- package/packages/sdk/src/build.ts +3 -0
- package/packages/sdk/src/client.ts +22 -0
- package/packages/sdk/src/ctx.ts +51 -17
- package/packages/sdk/src/declare.ts +36 -12
- package/packages/sdk/src/hub.ts +222 -10
- package/packages/sdk/src/impl.ts +3 -3
- package/packages/sdk/src/index.ts +6 -3
- package/packages/sdk/src/manifest.ts +5 -0
- package/packages/sdk/src/providers.ts +2 -2
- package/packages/sdk/src/server/asks.ts +12 -1
- package/packages/sdk/src/server/env.ts +13 -1
- package/packages/sdk/src/server/host.ts +81 -10
- package/packages/sdk/src/server/index.ts +21 -2
- package/packages/sdk/src/server/package.ts +11 -2
- package/packages/sdk/src/server/run.ts +6 -1
- package/packages/sdk/src/server/runtime.ts +78 -22
- package/packages/sdk/src/server/start-gate.ts +174 -0
- package/packages/sdk/src/server/store/checksum.ts +162 -0
- package/packages/sdk/src/server/store/engines.ts +400 -0
- package/packages/sdk/src/server/store/extend.ts +25 -0
- package/packages/sdk/src/server/store/keeper.ts +392 -0
- package/packages/sdk/src/server/store/link-driver.ts +142 -0
- package/packages/sdk/src/server/store/measure.ts +45 -0
- package/packages/sdk/src/server/store/migrations.ts +238 -0
- package/packages/sdk/src/server/store/move.ts +488 -0
- package/packages/sdk/src/server/store/portable.ts +288 -0
- package/packages/sdk/src/server/store/stable.ts +146 -0
- package/packages/sdk/src/server/store/tables.ts +28 -0
- package/packages/sdk/src/server/store/vectors.ts +185 -0
- package/packages/sdk/src/server/store/work-checks.ts +288 -0
- package/packages/sdk/src/server/store/work.ts +369 -0
- package/packages/sdk/src/server/table.ts +3 -1
- package/packages/sdk/src/server/testing.ts +116 -3
- package/packages/sdk/src/store.ts +91 -0
- package/packages/sdk/src/system.ts +58 -30
- package/packages/sdk/src/testing/hub.ts +18 -5
- package/packages/web/dist/assets/{ActorSettingsView-BuMYRDqv.js → ActorSettingsView-v2k7v454.js} +2 -2
- package/packages/web/dist/assets/{AdminLayout-sLjVTrmV.js → AdminLayout-B6Jrc_4W.js} +2 -2
- package/packages/web/dist/assets/{ApiServiceForm-BrMTU-7u.js → ApiServiceForm-CuuQgOJc.js} +2 -2
- package/packages/web/dist/assets/{ApiServiceView-BMF2zD6Q.js → ApiServiceView-7bTHSO_Z.js} +2 -2
- package/packages/web/dist/assets/{ApiServicesView-bjLAWO_j.js → ApiServicesView-BXi24n49.js} +2 -2
- package/packages/web/dist/assets/{AppPage-DSzDKCFz.js → AppPage-CFmKZS8G.js} +2 -2
- package/packages/web/dist/assets/{AutoPairPicker-nV38ALjl.js → AutoPairPicker-C61gihmh.js} +2 -2
- package/packages/web/dist/assets/{BrowserFrame-Bic7U7jN.js → BrowserFrame-Sq9EmQRT.js} +2 -2
- package/packages/web/dist/assets/{ChartVisual-DWw7WsfN.js → ChartVisual-C4mgw4wh.js} +4 -4
- package/packages/web/dist/assets/ChatPage-CAhHE03Z.js +4 -0
- package/packages/web/dist/assets/{CodeViewer-xHS3Xah9.js → CodeViewer-tUNXZB77.js} +2 -2
- package/packages/web/dist/assets/{ConfigWithCustom-DreTUdf0.js → ConfigWithCustom-D_-rY66L.js} +3 -3
- package/packages/web/dist/assets/{ConfirmDialog-DjQUzNqk.js → ConfirmDialog-Dd3E4sJt.js} +2 -2
- package/packages/web/dist/assets/{ConnectPage-CfRDrXvJ.js → ConnectPage-CX9acyQH.js} +2 -2
- package/packages/web/dist/assets/ContextItemPage-Cv4G0k_o.css +1 -0
- package/packages/web/dist/assets/ContextItemPage-rUI3-T_L.js +2 -0
- package/packages/web/dist/assets/ContextPage-C8u0UnYl.css +1 -0
- package/packages/web/dist/assets/ContextPage-CtefzyKg.js +3 -0
- package/packages/web/dist/assets/ContextRow-Chx99Xac.css +1 -0
- package/packages/web/dist/assets/ContextRow-DrtPumZ5.js +2 -0
- package/packages/web/dist/assets/{DataPage-wSIoGcb5.js → DataPage-DDSsxHro.js} +2 -2
- package/packages/web/dist/assets/DataTypePage-BW9fWaz8.js +2 -0
- package/packages/web/dist/assets/{DesignPage-DidMUX8m.js → DesignPage-6e0XbOFC.js} +2 -2
- package/packages/web/dist/assets/{ExplorePage-MUyVydVB.js → ExplorePage-B7ND0W0l.js} +2 -2
- package/packages/web/dist/assets/{FnList-CjQRwYaT.js → FnList-Bx6H-kux.js} +2 -2
- package/packages/web/dist/assets/{FnPill-BshAvm2I.js → FnPill-Cp3KuLmP.js} +2 -2
- package/packages/web/dist/assets/FnView-C0XZdnsS.js +2 -0
- package/packages/web/dist/assets/{FnsView-CeqIoaBT.js → FnsView-GTH3p7a0.js} +2 -2
- package/packages/web/dist/assets/{GinExprView-DYVUwZrd.js → GinExprView-DGxns6lH.js} +2 -2
- package/packages/web/dist/assets/{GinForm-D3mwMRTQ.js → GinForm-BDBUzuDP.js} +2 -2
- package/packages/web/dist/assets/{GinTypeView-C0YifSmE.js → GinTypeView-CUsymbVf.js} +2 -2
- package/packages/web/dist/assets/{GinValueView-HfEPq9le.js → GinValueView-jsKIfiEA.js} +2 -2
- package/packages/web/dist/assets/{GraphPage-ySnuA4Hp.js → GraphPage-BCcPPsHu.js} +2 -2
- package/packages/web/dist/assets/{GraphPanel-Cy5-KGo1.js → GraphPanel-9tztGHmu.js} +2 -2
- package/packages/web/dist/assets/{HubPicker-C_vA752L.js → HubPicker-EoOErgmk.js} +2 -2
- package/packages/web/dist/assets/{InboxApprovals-DcPCCmZ5.js → InboxApprovals-Dkq7DFp_.js} +2 -2
- package/packages/web/dist/assets/{InboxPage-C2DT2nuF.js → InboxPage-CHhslePq.js} +2 -2
- package/packages/web/dist/assets/{InjectedList-CJsEFEbz.js → InjectedList-CSWqRiON.js} +2 -2
- package/packages/web/dist/assets/InstallDialog-D-VwfZYF.js +2 -0
- package/packages/web/dist/assets/{InstallDialog-yWLZK_zN.css → InstallDialog-K-j0sdHm.css} +1 -1
- package/packages/web/dist/assets/InstanceTypes-CwVSAULg.css +1 -0
- package/packages/web/dist/assets/InstanceTypes-D3rAEiE7.js +2 -0
- package/packages/web/dist/assets/InstanceView-DoH8C-1j.js +2 -0
- package/packages/web/dist/assets/InstanceView-_9uE70tS.css +1 -0
- package/packages/web/dist/assets/{ItemHistory-CUGa8b6s.js → ItemHistory-NQAP69ma.js} +2 -2
- package/packages/web/dist/assets/LimitsView-DY2C9nYS.js +2 -0
- package/packages/web/dist/assets/ListSearch-BunVrDO0.js +2 -0
- package/packages/web/dist/assets/{LlmCallDetails-2yQftCqd.js → LlmCallDetails-BoVNDTVs.js} +2 -2
- package/packages/web/dist/assets/{LlmCallsView-DOHX3r0K.js → LlmCallsView-BGpV92RC.js} +2 -2
- package/packages/web/dist/assets/{LoadState-DeXfLvYv.js → LoadState-h-K9bTYc.js} +2 -2
- package/packages/web/dist/assets/{McpDialog-CA_0WKWF.js → McpDialog-DhOCk6_E.js} +2 -2
- package/packages/web/dist/assets/{McpServerForm-CAG8Wp2N.js → McpServerForm-Cor3fI7s.js} +2 -2
- package/packages/web/dist/assets/McpServerView-ewXRPEmZ.js +2 -0
- package/packages/web/dist/assets/McpServersView-Dd0xmfws.js +2 -0
- package/packages/web/dist/assets/{McpView-CC2oNOMa.js → McpView-GPXdCMne.js} +2 -2
- package/packages/web/dist/assets/{McpsView-CwJvyyxV.js → McpsView-DJIR2JX5.js} +2 -2
- package/packages/web/dist/assets/{MemoryDialog-Dbvh5uLq.js → MemoryDialog-BTeIHQyA.js} +2 -2
- package/packages/web/dist/assets/{ModelCallsView-RvnW3EBP.js → ModelCallsView-DMcnwF2S.js} +2 -2
- package/packages/web/dist/assets/{ModelPicker-DcjwQFHC.js → ModelPicker-CgkMFxSO.js} +2 -2
- package/packages/web/dist/assets/ModelsView-cMHygeiK.js +2 -0
- package/packages/web/dist/assets/{NotFoundPage-CeSwzTV-.js → NotFoundPage-Tk92K7HN.js} +2 -2
- package/packages/web/dist/assets/PairPage-D0BK8CCw.js +2 -0
- package/packages/web/dist/assets/PairPage-D_aPS1Ot.css +1 -0
- package/packages/web/dist/assets/{PanelHost-BkrFAnPa.js → PanelHost-C-gKrxAk.js} +2 -2
- package/packages/web/dist/assets/{PeopleView-D1QGPYp7.js → PeopleView-DRfeNWK5.js} +2 -2
- package/packages/web/dist/assets/PoliciesView-BRi-QAuo.js +2 -0
- package/packages/web/dist/assets/{RefusalList-DQoyUoPG.js → RefusalList-DVO0bmeB.js} +2 -2
- package/packages/web/dist/assets/{RemoteAuthFields-nxGWfmhf.js → RemoteAuthFields-CgiufuqQ.js} +2 -2
- package/packages/web/dist/assets/{ResourceViewer-Po24y4pj.js → ResourceViewer-Do0chYxU.js} +2 -2
- package/packages/web/dist/assets/ResourcesPage-BBx2u2mw.js +2 -0
- package/packages/web/dist/assets/{ResultGrid-uoq4yUYj.js → ResultGrid-Bj-0I5HY.js} +2 -2
- package/packages/web/dist/assets/{ReviewSummaryStrip-k3HevESg.js → ReviewSummaryStrip-DO3p64Qj.js} +2 -2
- package/packages/web/dist/assets/ReviewView-DZF9E1hb.js +3 -0
- package/packages/web/dist/assets/{RuleRow-CoXDA-SH.js → RuleRow-DX9v4iGP.js} +2 -2
- package/packages/web/dist/assets/{RunCard-CBSGdwdQ.js → RunCard-BnrtK2Yp.js} +2 -2
- package/packages/web/dist/assets/{RunDetails-CGhQQ6OI.js → RunDetails-DjR206q6.js} +2 -2
- package/packages/web/dist/assets/{RunDot-Ch_45985.js → RunDot-lHRICdM5.js} +2 -2
- package/packages/web/dist/assets/{RunPage-C_t20pB7.js → RunPage-CbAQ_WPR.js} +2 -2
- package/packages/web/dist/assets/{RunProgress-VrZUHUEC.js → RunProgress-C3-B4tQf.js} +2 -2
- package/packages/web/dist/assets/RunsView-DMkPmkqX.js +2 -0
- package/packages/web/dist/assets/ServiceRows-4WythFpF.js +2 -0
- package/packages/web/dist/assets/{ServiceRows-6BU4-MeL.css → ServiceRows-HPQ0pN6b.css} +1 -1
- package/packages/web/dist/assets/SettingsPage-BN4oSzoL.js +3 -0
- package/packages/web/dist/assets/{SignInPage-DrXZ1sG2.js → SignInPage-ByqGEZfj.js} +2 -2
- package/packages/web/dist/assets/{StatusBadge-Dpb9uG5e.js → StatusBadge-CXne0sRZ.js} +2 -2
- package/packages/web/dist/assets/StorePlacementStep-B6SwTmdM.js +2 -0
- package/packages/web/dist/assets/StorePlacementStep-D_G4e3ue.css +1 -0
- package/packages/web/dist/assets/{SystemConfig-72qKRkUk.js → SystemConfig-vQDL_eUl.js} +2 -2
- package/packages/web/dist/assets/{SystemPageHost-DLNg2FYK.js → SystemPageHost-DrMrEPyh.js} +2 -2
- package/packages/web/dist/assets/SystemView-Be6TBM4j.js +2 -0
- package/packages/web/dist/assets/{SystemView-C8ScHUe2.css → SystemView-_9q6eDfV.css} +1 -1
- package/packages/web/dist/assets/{SystemsView-B6HEL9VS.css → SystemsView-CWKnupLW.css} +1 -1
- package/packages/web/dist/assets/SystemsView-DZtT3laz.js +2 -0
- package/packages/web/dist/assets/{TableViewer-BQ7bYLOP.js → TableViewer-Boxx86f5.js} +3 -3
- package/packages/web/dist/assets/{ThemePicker-C2nJ21Vd.js → ThemePicker-CIg_oRQX.js} +2 -2
- package/packages/web/dist/assets/{TurnTree-CORdfTHj.js → TurnTree-Ecm0yA5g.js} +2 -2
- package/packages/web/dist/assets/UserMessage-BlnqZDVU.js +9 -0
- package/packages/web/dist/assets/{ValueVisual-aXEUaQ5Y.js → ValueVisual-C-MWpp7c.js} +2 -2
- package/packages/web/dist/assets/WidgetView-DX4ejNb6.js +3 -0
- package/packages/web/dist/assets/actor-names-OdvpVZeb.js +4 -0
- package/packages/web/dist/assets/{fn-modal-DqcxUhOQ.js → fn-modal-B98MR7JN.js} +2 -2
- package/packages/web/dist/assets/{fn-notices-BYaH6IoA.js → fn-notices-CfTa1E8y.js} +2 -2
- package/packages/web/dist/assets/{formats-DI__ADVG.js → formats-JwoKfXIq.js} +2 -2
- package/packages/web/dist/assets/index-6ScWTFy2.js +4 -0
- package/packages/web/dist/assets/{index-CSisx5mi.css → index-CEslGcrX.css} +1 -1
- package/packages/web/dist/assets/{labels-BhJpmLWA.js → labels-BFbk11BE.js} +2 -2
- package/packages/web/dist/assets/{layout-DQKldU13.js → layout-D1gf481r.js} +2 -2
- package/packages/web/dist/assets/{metrics-Cio5ykX6.js → metrics-CBPX3W5Y.js} +2 -2
- package/packages/web/dist/assets/{problems-BZY0Dwif.js → problems-t1E_ovSz.js} +2 -2
- package/packages/web/dist/assets/{push-payload-D5efGCzd.js → push-payload-BeU1ADYt.js} +64 -64
- package/packages/web/dist/assets/{record-edits-CveFEsal.js → record-edits-Bfsi4lU3.js} +2 -2
- package/packages/web/dist/assets/{remote-config-BkaarDf3.js → remote-config-BNQhSDzB.js} +2 -2
- package/packages/web/dist/assets/{review-CGUGvRV9.js → review-fP-l9D6H.js} +3 -3
- package/packages/web/dist/assets/routes-DV4IJpwe.js +4 -0
- package/packages/web/dist/assets/runs-CveC2kKo.js +2 -0
- package/packages/web/dist/assets/{shared-DTpYDMc_.js → shared-LbaIHjbV.js} +2 -2
- package/packages/web/dist/assets/{size-BwnshyOe.js → size-Bh__w5aI.js} +2 -2
- package/packages/web/dist/assets/{sources-Bm-TrxhL.js → sources-VPrtgLIi.js} +2 -2
- package/packages/web/dist/assets/src-CT3TeFaM.js +43 -0
- package/packages/web/dist/assets/state-xfQqaQPX.js +2 -0
- package/packages/web/dist/assets/{systems-DIp94AET.js → systems-BqE3WTSF.js} +2 -2
- package/packages/web/dist/assets/ui-BzgWquIU.js +17 -0
- package/packages/web/dist/assets/{ui-C7ZH_6oC.css → ui-DycHjPTZ.css} +1 -1
- package/packages/web/dist/assets/{url-BIg5IhGs.js → url-DKGcECT1.js} +2 -2
- package/packages/web/dist/assets/{widget-host-BCf6Tlt5.js → widget-host-B87MTaTn.js} +2 -2
- package/packages/web/dist/assets/{widgets-CrbkovMT.js → widgets-BBCuSS6E.js} +2 -2
- package/packages/web/dist/index.html +44 -44
- package/packages/web/dist/sw.js +1 -1
- package/packages/web/package.json +2 -2
- package/premade/claude.zip +0 -0
- package/premade/database.zip +0 -0
- package/premade/web.zip +0 -0
- package/scripts/run-stack.ts +3 -2
- package/scripts/stack.ts +73 -16
- package/scripts/start.ts +11 -2
- package/systems/api/package.json +3 -3
- package/systems/code/package.json +3 -3
- package/systems/embedder/package.json +1 -1
- package/systems/fs/client/fakes.ts +2 -0
- package/systems/fs/client/index.ts +4 -2
- package/systems/fs/client/machines/CoreHeatmap.vue +94 -0
- package/systems/fs/client/machines/MachineFiles.vue +121 -0
- package/systems/fs/client/machines/MachineMetrics.vue +330 -0
- package/systems/fs/client/machines/MachinesPage.vue +119 -0
- package/systems/fs/client/machines/TimeChart.vue +128 -0
- package/systems/fs/client/machines/fakes.ts +95 -0
- package/systems/fs/client/machines/files/ChangesPane.vue +90 -0
- package/systems/fs/client/machines/files/CodeView.vue +158 -0
- package/systems/fs/client/machines/files/CommentComposer.vue +86 -0
- package/systems/fs/client/machines/files/CommentThread.vue +115 -0
- package/systems/fs/client/machines/files/CommitPane.vue +80 -0
- package/systems/fs/client/machines/files/ComparePane.vue +81 -0
- package/systems/fs/client/machines/files/FileHistory.vue +89 -0
- package/systems/fs/client/machines/files/FilePane.vue +199 -0
- package/systems/fs/client/machines/files/FileTree.vue +26 -0
- package/systems/fs/client/machines/files/FolderPane.vue +154 -0
- package/systems/fs/client/machines/files/HistoryPane.vue +106 -0
- package/systems/fs/client/machines/files/ImageView.vue +160 -0
- package/systems/fs/client/machines/files/PatchView.vue +31 -0
- package/systems/fs/client/machines/files/QuickOpen.vue +67 -0
- package/systems/fs/client/machines/files/SearchPane.vue +87 -0
- package/systems/fs/client/machines/files/TreeNode.vue +72 -0
- package/systems/fs/client/machines/files/api.ts +127 -0
- package/systems/fs/client/machines/files/fake-kinds.ts +16 -0
- package/systems/fs/client/machines/files/fakes.ts +305 -0
- package/systems/fs/client/machines/files/ink.ts +117 -0
- package/systems/fs/client/machines/files/logic.ts +205 -0
- package/systems/fs/client/machines/files/state.ts +187 -0
- package/systems/fs/client/machines/files/viewers/CsvView.vue +29 -0
- package/systems/fs/client/machines/files/viewers/HexView.vue +27 -0
- package/systems/fs/client/machines/files/viewers/HtmlView.vue +17 -0
- package/systems/fs/client/machines/files/viewers/JsonNode.vue +45 -0
- package/systems/fs/client/machines/files/viewers/JsonView.vue +25 -0
- package/systems/fs/client/machines/metrics.ts +245 -0
- package/systems/fs/client/machines/palette.ts +97 -0
- package/systems/fs/client/preview/machines.ts +323 -0
- package/systems/fs/context/authoring/index.md +4 -0
- package/systems/fs/context/authoring/parts/actions.md +5 -1
- package/systems/fs/context/authoring/parts/actions.reference.md +6 -2
- package/systems/fs/context/authoring/parts/calling.md +5 -1
- package/systems/fs/context/authoring/parts/calling.reference.md +4 -0
- package/systems/fs/context/authoring/parts/client.md +9 -1
- package/systems/fs/context/authoring/parts/client.reference/client.md +4 -0
- package/systems/fs/context/authoring/parts/client.reference/resultview.md +56 -53
- package/systems/fs/context/authoring/parts/client.reference/{fnpillprops.md → textareaprops.md} +58 -4
- package/systems/fs/context/authoring/parts/client.reference.md +8 -4
- package/systems/fs/context/authoring/parts/context/questions.md +49 -0
- package/systems/fs/context/authoring/parts/context.md +23 -1
- package/systems/fs/context/authoring/parts/context.reference.md +27 -3
- package/systems/fs/context/authoring/parts/contract.md +10 -0
- package/systems/fs/context/authoring/parts/contract.reference.md +26 -9
- package/systems/fs/context/authoring/parts/core-types/access-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/admin-ts.md +5 -1
- package/systems/fs/context/authoring/parts/core-types/api-index-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/approvals-ts.md +11 -7
- package/systems/fs/context/authoring/parts/core-types/auto-pair-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/checks-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/claims-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/config-secrets-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/connections-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/context-files-ts.md +8 -0
- package/systems/fs/context/authoring/parts/core-types/context-graph-ts.md +5 -1
- package/systems/fs/context/authoring/parts/core-types/context-questions-ts.md +26 -0
- package/systems/fs/context/authoring/parts/core-types/contextdecl.md +9 -1
- package/systems/fs/context/authoring/parts/core-types/data-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/decisions-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/fn-block-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/fn-facts-ts.md +11 -0
- package/systems/fs/context/authoring/parts/core-types/gin-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/grants-ts.md +5 -1
- package/systems/fs/context/authoring/parts/core-types/lifecycle-ts.md +18 -5
- package/systems/fs/context/authoring/parts/core-types/link-ts.md +7 -3
- package/systems/fs/context/authoring/parts/core-types/llm-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/manifest.md +15 -2
- package/systems/fs/context/authoring/parts/core-types/manifestpatch.md +9 -1
- package/systems/fs/context/authoring/parts/core-types/mention-search-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/model-calls-ts.md +5 -1
- package/systems/fs/context/authoring/parts/core-types/model-names-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/modes-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/owner-runs-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/package-ts.md +9 -0
- package/systems/fs/context/authoring/parts/core-types/primitives-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/query-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/records-actors-ts.md +7 -3
- package/systems/fs/context/authoring/parts/core-types/records-chat-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/records-content-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/records-runs-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/records-systems-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/registries-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/remote-auth-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/resources-ts.md +5 -1
- package/systems/fs/context/authoring/parts/core-types/run-ts.md +7 -0
- package/systems/fs/context/authoring/parts/core-types/sensitivity-ts.md +5 -1
- package/systems/fs/context/authoring/parts/core-types/stores-ts.md +199 -0
- package/systems/fs/context/authoring/parts/core-types/system-events-ts.md +8 -1
- package/systems/fs/context/authoring/parts/core-types/system-pages-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/system-providers-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/validation-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/visuals-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/web-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types/widgets-ts.md +4 -0
- package/systems/fs/context/authoring/parts/core-types.md +12 -2
- package/systems/fs/context/authoring/parts/ctx/update-result.md +33 -0
- package/systems/fs/context/authoring/parts/ctx.md +11 -1
- package/systems/fs/context/authoring/parts/ctx.reference/{hubai.md → adminnotices.md} +45 -4
- package/systems/fs/context/authoring/parts/ctx.reference/fnctx.md +21 -23
- package/systems/fs/context/authoring/parts/ctx.reference.md +8 -4
- package/systems/fs/context/authoring/parts/data.md +11 -6
- package/systems/fs/context/authoring/parts/data.reference.md +4 -0
- package/systems/fs/context/authoring/parts/examples/client-findview-vue.md +4 -0
- package/systems/fs/context/authoring/parts/examples/client-index-ts.md +4 -0
- package/systems/fs/context/authoring/parts/examples/client-notecard-vue.md +4 -0
- package/systems/fs/context/authoring/parts/examples/client-noteinput-vue.md +4 -0
- package/systems/fs/context/authoring/parts/examples/client-notespage-vue.md +4 -0
- package/systems/fs/context/authoring/parts/examples/client-reviewform-vue.md +4 -0
- package/systems/fs/context/authoring/parts/examples/client-wordcount-vue.md +4 -0
- package/systems/fs/context/authoring/parts/examples/package-json.md +4 -0
- package/systems/fs/context/authoring/parts/examples/server-env-ts.md +4 -0
- package/systems/fs/context/authoring/parts/examples/server-impl-ts.md +4 -0
- package/systems/fs/context/authoring/parts/examples/server-index-ts.md +4 -0
- package/systems/fs/context/authoring/parts/examples/server-main-ts.md +4 -0
- package/systems/fs/context/authoring/parts/examples/server-notes-test-ts.md +4 -0
- package/systems/fs/context/authoring/parts/examples/shared-index-ts.md +10 -0
- package/systems/fs/context/authoring/parts/examples/system-json.md +4 -0
- package/systems/fs/context/authoring/parts/examples/{systems-fs-shared-index-ts-lines-1-189.md → systems-fs-shared-index-ts-lines-1-178.md} +23 -30
- package/systems/fs/context/authoring/parts/examples/{systems-fs-shared-index-ts-lines-190-370.md → systems-fs-shared-index-ts-lines-179-382.md} +33 -6
- package/systems/fs/context/authoring/parts/examples/systems-fs-shared-index-ts-lines-383-567.md +210 -0
- package/systems/fs/context/authoring/parts/examples/systems-fs-shared-index-ts-lines-568-660.md +117 -0
- package/systems/fs/context/authoring/parts/examples/tsconfig-json.md +5 -1
- package/systems/fs/context/authoring/parts/examples.md +18 -11
- package/systems/fs/context/authoring/parts/fns.md +5 -1
- package/systems/fs/context/authoring/parts/fns.reference/fillclaims.md +5 -1
- package/systems/fs/context/authoring/parts/fns.reference/fn.md +6 -2
- package/systems/fs/context/authoring/parts/fns.reference.md +4 -0
- package/systems/fs/context/authoring/parts/folder.md +4 -0
- package/systems/fs/context/authoring/parts/gin.md +4 -0
- package/systems/fs/context/authoring/parts/gin.reference.md +4 -0
- package/systems/fs/context/authoring/parts/handlers-progress.md +5 -1
- package/systems/fs/context/authoring/parts/handlers-progress.reference.md +4 -0
- package/systems/fs/context/authoring/parts/hooks.md +5 -1
- package/systems/fs/context/authoring/parts/hooks.reference.md +5 -1
- package/systems/fs/context/authoring/parts/hub/context-questions.md +40 -0
- package/systems/fs/context/authoring/parts/hub/{hub-run-background.md → hub-ctx-from-resource.md} +51 -56
- package/systems/fs/context/authoring/parts/hub/hub-fns-load.md +35 -42
- package/systems/fs/context/authoring/parts/hub/hub-install-package.md +327 -0
- package/systems/fs/context/authoring/parts/hub/kinds-of-hub.md +8 -0
- package/systems/fs/context/authoring/parts/hub.md +14 -8
- package/systems/fs/context/authoring/parts/hub.reference.md +9 -0
- package/systems/fs/context/authoring/parts/internals/manifestof.md +4 -0
- package/systems/fs/context/authoring/parts/internals/permissionargs.md +4 -0
- package/systems/fs/context/authoring/parts/internals/usagefromwire.md +47 -2
- package/systems/fs/context/authoring/parts/internals.md +6 -2
- package/systems/fs/context/authoring/parts/kinds-agents.md +5 -1
- package/systems/fs/context/authoring/parts/kinds-agents.reference/authoringsession.md +4 -0
- package/systems/fs/context/authoring/parts/kinds-agents.reference/kind.md +7 -3
- package/systems/fs/context/authoring/parts/kinds-agents.reference.md +4 -0
- package/systems/fs/context/authoring/parts/lifecycle.md +8 -3
- package/systems/fs/context/authoring/parts/lifecycle.reference.md +6 -2
- package/systems/fs/context/authoring/parts/mentions.md +5 -1
- package/systems/fs/context/authoring/parts/mentions.reference.md +6 -2
- package/systems/fs/context/authoring/parts/mistakes.md +7 -2
- package/systems/fs/context/authoring/parts/named-types.md +4 -0
- package/systems/fs/context/authoring/parts/named-types.reference.md +6 -2
- package/systems/fs/context/authoring/parts/outcomes.md +5 -1
- package/systems/fs/context/authoring/parts/outcomes.reference.md +4 -0
- package/systems/fs/context/authoring/parts/owner-runs.md +5 -1
- package/systems/fs/context/authoring/parts/owner-runs.reference.md +36 -11
- package/systems/fs/context/authoring/parts/packaging.md +10 -3
- package/systems/fs/context/authoring/parts/packaging.reference.md +7 -2
- package/systems/fs/context/authoring/parts/providers.md +5 -1
- package/systems/fs/context/authoring/parts/providers.reference.md +5 -1
- package/systems/fs/context/authoring/parts/remote.md +5 -1
- package/systems/fs/context/authoring/parts/remote.reference.md +4 -0
- package/systems/fs/context/authoring/parts/resources.md +5 -1
- package/systems/fs/context/authoring/parts/resources.reference.md +4 -0
- package/systems/fs/context/authoring/parts/server.md +5 -1
- package/systems/fs/context/authoring/parts/server.reference.md +41 -20
- package/systems/fs/context/authoring/parts/settings-attachments.md +5 -1
- package/systems/fs/context/authoring/parts/settings-attachments.reference.md +4 -0
- package/systems/fs/context/authoring/parts/start.md +5 -1
- package/systems/fs/context/authoring/parts/state-forms.md +5 -1
- package/systems/fs/context/authoring/parts/state-forms.reference.md +4 -0
- package/systems/fs/context/authoring/parts/store/ctx-store.md +49 -0
- package/systems/fs/context/authoring/parts/store/declare.md +32 -0
- package/systems/fs/context/authoring/parts/store/engines.md +25 -0
- package/systems/fs/context/authoring/parts/store/migrations.md +53 -0
- package/systems/fs/context/authoring/parts/store/moves.md +38 -0
- package/systems/fs/context/authoring/parts/store/placement.md +25 -0
- package/systems/fs/context/authoring/parts/store/serve.md +30 -0
- package/systems/fs/context/authoring/parts/store/store-tables.md +24 -0
- package/systems/fs/context/authoring/parts/store/vectors.md +32 -0
- package/systems/fs/context/authoring/parts/store/when-to-use.md +27 -0
- package/systems/fs/context/authoring/parts/store/work.md +37 -0
- package/systems/fs/context/authoring/parts/store.md +65 -0
- package/systems/fs/context/authoring/parts/store.reference.md +459 -0
- package/systems/fs/context/authoring/parts/testing.md +14 -1
- package/systems/fs/context/authoring/parts/testing.reference/{memoryjournal.md → equal.md} +55 -48
- package/systems/fs/context/authoring/parts/testing.reference/fakehub.md +26 -45
- package/systems/fs/context/authoring/parts/testing.reference/{toolcall.md → kindprops.md} +111 -4
- package/systems/fs/context/authoring/parts/testing.reference/openmemorystore.md +105 -0
- package/systems/fs/context/authoring/parts/testing.reference.md +16 -9
- package/systems/fs/context/authoring/parts/widgets.md +5 -1
- package/systems/fs/context/authoring/parts/widgets.reference/hub-visuals.md +4 -0
- package/systems/fs/context/authoring/parts/widgets.reference/sourcecompatible.md +4 -0
- package/systems/fs/context/authoring/parts/widgets.reference.md +4 -0
- package/systems/fs/context/authoring/topics/begin.md +4 -0
- package/systems/fs/context/authoring/topics/client.md +4 -0
- package/systems/fs/context/authoring/topics/declare.md +4 -0
- package/systems/fs/context/authoring/topics/examples.md +4 -0
- package/systems/fs/context/authoring/topics/fns.md +4 -0
- package/systems/fs/context/authoring/topics/server.md +4 -0
- package/systems/fs/context/authoring/topics/types.md +8 -1
- package/systems/fs/context/comments/answer.md +21 -0
- package/systems/fs/context/comments/find.md +23 -0
- package/systems/fs/context/comments/read.md +26 -0
- package/systems/fs/context/comments.md +23 -0
- package/systems/fs/context/files-page.md +30 -0
- package/systems/fs/context/guide/attachments.md +16 -0
- package/systems/fs/context/guide/change.md +23 -0
- package/systems/fs/context/guide/commands.md +19 -0
- package/systems/fs/context/guide/documents.md +21 -0
- package/systems/fs/context/guide/find.md +25 -0
- package/systems/fs/context/guide/paths.md +24 -0
- package/systems/fs/context/guide/read.md +21 -0
- package/systems/fs/context/machine/history.md +25 -0
- package/systems/fs/context/machine/now.md +25 -0
- package/systems/fs/context/machine/processes.md +20 -0
- package/systems/fs/context/machine/recording.md +19 -0
- package/systems/fs/context/machine.md +24 -0
- package/systems/fs/package.json +5 -3
- package/systems/fs/server/files-page/browse.ts +391 -0
- package/systems/fs/server/files-page/comments.ts +439 -0
- package/systems/fs/server/files-page/fns.ts +158 -0
- package/systems/fs/server/files-page/git-view.ts +391 -0
- package/systems/fs/server/files-page/kinds.ts +56 -0
- package/systems/fs/server/impl.ts +66 -7
- package/systems/fs/server/main.ts +20 -4
- package/systems/fs/server/metrics/collector.ts +424 -0
- package/systems/fs/server/metrics/index.ts +181 -0
- package/systems/fs/server/metrics/os.ts +144 -0
- package/systems/fs/server/metrics/parsers.ts +268 -0
- package/systems/fs/server/metrics/rrd.ts +363 -0
- package/systems/fs/server/metrics/testing.ts +80 -0
- package/systems/fs/server/snapshots.ts +216 -33
- package/systems/fs/server/testing.ts +15 -9
- package/systems/fs/shared/files-page.ts +506 -0
- package/systems/fs/shared/index.ts +137 -10
- package/systems/fs/shared/metrics.ts +179 -0
- package/systems/fs/system.json +10 -1
- package/systems/google-calendar/package.json +1 -1
- package/systems/input/package.json +3 -3
- package/systems/mcp/package.json +3 -3
- package/systems/mcp/server/oauth.ts +1 -1
- package/systems/ollama/package.json +3 -3
- package/systems/schedule/package.json +3 -4
- package/systems/schedule/server/env.ts +1 -1
- package/systems/schedule/server/fns.ts +5 -4
- package/systems/schedule/server/impl.ts +2 -2
- package/systems/schedule/server/import.ts +189 -0
- package/systems/schedule/server/index.ts +2 -0
- package/systems/schedule/server/main.ts +3 -1
- package/systems/schedule/server/placements.ts +41 -0
- package/systems/schedule/server/store.ts +159 -79
- package/systems/schedule/server/timer.ts +142 -107
- package/systems/schedule/shared/index.ts +2 -1
- package/systems/schedule/system.json +5 -1
- package/systems/schedule/tsconfig.json +1 -1
- package/systems/template/package.json +1 -1
- package/systems/widgets/package.json +3 -3
- package/packages/web/dist/assets/ChatPage-7Yebk7rl.js +0 -4
- package/packages/web/dist/assets/ContextItemPage-B6rJG3OT.js +0 -2
- package/packages/web/dist/assets/ContextItemPage-BRsWxOmu.css +0 -1
- package/packages/web/dist/assets/ContextPage-CloIZ_2y.js +0 -2
- package/packages/web/dist/assets/ContextPage-rYKxjiVI.css +0 -1
- package/packages/web/dist/assets/ContextRow-Byz_7HG-.css +0 -1
- package/packages/web/dist/assets/ContextRow-Dvv8CTFk.js +0 -2
- package/packages/web/dist/assets/DataTypePage-Ba_zBV4b.js +0 -4
- package/packages/web/dist/assets/FnView-B8MGAOoB.js +0 -2
- package/packages/web/dist/assets/InstallDialog-C9GDoUI2.js +0 -2
- package/packages/web/dist/assets/InstanceTypes-D8Jcxn70.js +0 -2
- package/packages/web/dist/assets/InstanceTypes-DAowwLB7.css +0 -1
- package/packages/web/dist/assets/InstanceView-CuBD3JPU.css +0 -1
- package/packages/web/dist/assets/InstanceView-p7tMaylE.js +0 -2
- package/packages/web/dist/assets/LimitsView-DsZG6u5P.js +0 -2
- package/packages/web/dist/assets/ListSearch-BK4p7Nxa.js +0 -2
- package/packages/web/dist/assets/McpServerView-CD8qw6W_.js +0 -2
- package/packages/web/dist/assets/McpServersView-DNycG35u.js +0 -2
- package/packages/web/dist/assets/ModelsView-C_iN19xt.js +0 -2
- package/packages/web/dist/assets/PairPage-Bs2KuRjC.css +0 -1
- package/packages/web/dist/assets/PairPage-TEXPpsqi.js +0 -2
- package/packages/web/dist/assets/PoliciesView-BU1fudNF.js +0 -2
- package/packages/web/dist/assets/ResourcesPage-YluNBqIv.js +0 -2
- package/packages/web/dist/assets/ReviewView-79Z5rU1v.js +0 -3
- package/packages/web/dist/assets/RunsView-Dz9Xsvu5.js +0 -2
- package/packages/web/dist/assets/ServiceRows-DNzDiutg.js +0 -2
- package/packages/web/dist/assets/SettingsPage-CykfuYj1.js +0 -3
- package/packages/web/dist/assets/SystemView-Es5wtkYU.js +0 -2
- package/packages/web/dist/assets/SystemsView-CeuSFhlF.js +0 -2
- package/packages/web/dist/assets/UserMessage-qyc8dG5D.js +0 -9
- package/packages/web/dist/assets/WidgetView-BZyDyYRI.js +0 -3
- package/packages/web/dist/assets/index-Bv42jNvr.js +0 -4
- package/packages/web/dist/assets/routes-qP_j74V5.js +0 -4
- package/packages/web/dist/assets/runs-k76usGfd.js +0 -2
- package/packages/web/dist/assets/src-DLK1P7oz.js +0 -43
- package/packages/web/dist/assets/state-CjE-qA2w.js +0 -2
- package/packages/web/dist/assets/ui-W12UYhVu.js +0 -17
- package/systems/fs/context/authoring/parts/examples/systems-fs-shared-index-ts-lines-371-533.md +0 -183
- package/systems/fs/context/authoring/parts/hub/hub-auto-pair-revoke.md +0 -189
|
@@ -1,11 +1,15 @@
|
|
|
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 MemoryJournal, FakeHubFns, KeptFn, FakeHubWidgets, HUB_WIDGET_FNS, FakeTableSource, FakeModelLink, fakeHubAi, replyChunks, FakeModelOptions, FakeReply, checkContextFolder, contextFolderLinks, CheckedContext, KnownNames, testHub, TestSystem, TestHubOptions, callFn, CallNotDone, TestCall, TestRun, TestOutcome, HubCalls, FnNameOf
|
|
6
|
-
summary: "Testing: reference: MemoryJournal, FakeHubFns, KeptFn, FakeHubWidgets, HUB_WIDGET_FNS, FakeTableSource, FakeModelLink
|
|
3
|
+
key: "authoring.testing.reference.equal"
|
|
4
|
+
title: "Testing: reference: Equal … KindPayloadOf"
|
|
5
|
+
description: "Testing: reference, the part on Equal, Simplify, MemoryKeyStore, MemoryJournal, FakeHubFns, KeptFn, FakeHubWidgets, HUB_WIDGET_FNS, FakeTableSource, FakeModelLink, fakeHubAi, replyChunks, FakeModelOptions, FakeReply, checkContextFolder, contextFolderLinks, CheckedContext, KnownNames, testHub, TestSystem, TestHubOptions, callFn, CallNotDone, TestCall, TestRun, TestOutcome, HubCalls, FnNameOf,…"
|
|
6
|
+
summary: "Testing: reference: Equal, Simplify, MemoryKeyStore, MemoryJournal, FakeHubFns, KeptFn, FakeHubWidgets, HUB_WIDGET_FNS, FakeTableSource, FakeModelLink,…"
|
|
7
|
+
question: "What are the exact signatures and options of Equal, Simplify, MemoryKeyStore, MemoryJournal, FakeHubFns, KeptFn and 26 more?"
|
|
8
|
+
when: "When code uses Equal, Simplify, MemoryKeyStore, MemoryJournal, FakeHubFns, KeptFn and 26 more and needs an exact signature, field or option."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.testing.reference"
|
|
8
|
-
next: "fs/authoring.testing.reference.
|
|
12
|
+
next: "fs/authoring.testing.reference.kindprops"
|
|
9
13
|
suggest: "none"
|
|
10
14
|
tags: ["authoring", "reference"]
|
|
11
15
|
niche: "developer"
|
|
@@ -13,6 +17,43 @@ niche: "developer"
|
|
|
13
17
|
|
|
14
18
|
### Reference: testing
|
|
15
19
|
|
|
20
|
+
#### `Equal`
|
|
21
|
+
|
|
22
|
+
type · `import { Equal } from '@harness/sdk'`
|
|
23
|
+
|
|
24
|
+
True when `A` and `B` are the same type (used by the compile-time tests).
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
type Equal<A, B> = (<T>() => T extends A ? 1 : 2) extends (<T>() => T extends B ? 1 : 2) ? true : false;
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
#### `Simplify`
|
|
31
|
+
|
|
32
|
+
type · `import { Simplify } from '@harness/sdk'`
|
|
33
|
+
|
|
34
|
+
Flattens an intersection into one object type, so hovers read as a plain shape.
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
type Simplify<T> = { [K in keyof T]: T[K] } & {};
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
#### `MemoryKeyStore`
|
|
41
|
+
|
|
42
|
+
class · `import { MemoryKeyStore } from '@harness/sdk/server'`
|
|
43
|
+
|
|
44
|
+
Keys held in memory, made on first use. For tests and throwaway systems.
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
class MemoryKeyStore implements KeyStore {
|
|
48
|
+
publicKey(): Promise<string>;
|
|
49
|
+
sign(nonce: string): Promise<string>;
|
|
50
|
+
autoPair(): Promise<AutoPairGrant | undefined>;
|
|
51
|
+
saveAutoPair(grant: AutoPairGrant | undefined): Promise<void>;
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Refers to: [`AutoPairGrant`](context:fs/authoring.core-types.auto-pair-ts#core-autopairgrant).
|
|
56
|
+
|
|
16
57
|
#### `MemoryJournal`
|
|
17
58
|
|
|
18
59
|
class · `import { MemoryJournal } from '@harness/sdk/server'`
|
|
@@ -263,7 +304,7 @@ function · `import { testHub } from '@harness/sdk/testing'`
|
|
|
263
304
|
Serve a system to a fake hub in memory and wait until it is ready (connected, configured, its contract imported).
|
|
264
305
|
|
|
265
306
|
```ts
|
|
266
|
-
function testHub<N extends string, C extends ContractShape>(contract: SystemContract<N, C>, impl: SystemImpl<C>, options?: TestHubOptions): Promise<TestSystem<N, C>>;
|
|
307
|
+
function testHub<N extends string, C extends ContractShape, Db extends StoreDb = StoreDb>(contract: SystemContract<N, C>, impl: SystemImpl<C, Db>, options?: TestHubOptions): Promise<TestSystem<N, C>>;
|
|
267
308
|
```
|
|
268
309
|
|
|
269
310
|
#### `TestSystem`
|
|
@@ -346,6 +387,13 @@ interface TestHubOptions {
|
|
|
346
387
|
readonly serve?: Partial<Omit<ServeOptions, 'hub' | 'state'>>;
|
|
347
388
|
/** Records the hub keeps before the system starts (what a restarted system finds), as stored. */
|
|
348
389
|
readonly records?: readonly DataRecord[];
|
|
390
|
+
/**
|
|
391
|
+
* For a system with a store on the hub (`hub: { store: { placement: 'hub' } }`): what answers its store endpoints,
|
|
392
|
+
* such as the hub's own store host. A store with the system lives in memory unless `host.storeConnect` says where.
|
|
393
|
+
*/
|
|
394
|
+
readonly stores?: FakeStoreEndpoints;
|
|
395
|
+
/** More of the link host's seams (`storeConnect`, `now`, …). */
|
|
396
|
+
readonly host?: Partial<LinkHostDeps>;
|
|
349
397
|
}
|
|
350
398
|
```
|
|
351
399
|
|
|
@@ -358,7 +406,7 @@ function · `import { callFn } from '@harness/sdk/testing'`
|
|
|
358
406
|
Serve a system, call one fn and stop: the typed result, its progress and what it asked the hub for.
|
|
359
407
|
|
|
360
408
|
```ts
|
|
361
|
-
function callFn<N extends string, C extends ContractShape, K extends FnNameOf<C
|
|
409
|
+
function callFn<N extends string, C extends ContractShape, K extends FnNameOf<C>, Db extends StoreDb = StoreDb>(contract: SystemContract<N, C>, impl: SystemImpl<C, Db>, name: K, args: FnArgsOf<C, K>, options?: TestHubOptions): Promise<TestCall<FnResultOf<C, K>>>;
|
|
362
410
|
```
|
|
363
411
|
|
|
364
412
|
#### `CallNotDone`
|
|
@@ -496,44 +544,3 @@ A kind's payload.
|
|
|
496
544
|
```ts
|
|
497
545
|
type KindPayloadOf<C extends ContractShape, K extends KindNameOf<C>> = C['kinds'][K] extends KindDef<infer P> ? P : never;
|
|
498
546
|
```
|
|
499
|
-
|
|
500
|
-
#### `KindProps`
|
|
501
|
-
|
|
502
|
-
interface · `import { KindProps } from '@harness/sdk/testing'`
|
|
503
|
-
|
|
504
|
-
What a kind makes of a payload: the problems with it, and the fn props it derives (signature, facts, display, …).
|
|
505
|
-
|
|
506
|
-
```ts
|
|
507
|
-
interface KindProps {
|
|
508
|
-
readonly problems: readonly string[];
|
|
509
|
-
readonly description: KindDescription | undefined;
|
|
510
|
-
}
|
|
511
|
-
```
|
|
512
|
-
|
|
513
|
-
Refers to: [`KindDescription`](context:fs/authoring.core-types.contextdecl#core-kinddescription).
|
|
514
|
-
|
|
515
|
-
#### `mockModel`
|
|
516
|
-
|
|
517
|
-
function · `import { mockModel } from '@harness/sdk/testing'`
|
|
518
|
-
|
|
519
|
-
A model for fast unit tests. Given steps, it answers each chat forward with the next step (then `done` once they
|
|
520
|
-
run out); given a recording, it replays it, recording first from a real model when the file is missing.
|
|
521
|
-
|
|
522
|
-
```ts
|
|
523
|
-
const model = mockModel([toolCall('search', { text: 'notes' }), 'Saved notes/by_tag.']);
|
|
524
|
-
const kit = await testHub(notes, impl, { model });
|
|
525
|
-
```
|
|
526
|
-
|
|
527
|
-
````ts
|
|
528
|
-
/** A model for fast unit tests. Given steps, it answers each chat forward with the next step (then `done` once they
|
|
529
|
-
run out); given a recording, it replays it, recording first from a real model when the file is missing.
|
|
530
|
-
|
|
531
|
-
```ts
|
|
532
|
-
const model = mockModel([toolCall('search', { text: 'notes' }), 'Saved notes/by_tag.']);
|
|
533
|
-
const kit = await testHub(notes, impl, { model });
|
|
534
|
-
``` */
|
|
535
|
-
function mockModel(steps: readonly ScriptStep[], options?: { models?: readonly HubModelInfo[]; }): FakeModelLink;
|
|
536
|
-
function mockModel(recording: RecordingOptions): RecordedModelLink;
|
|
537
|
-
````
|
|
538
|
-
|
|
539
|
-
Refers to: [`HubModelInfo`](context:fs/authoring.core-types.admin-ts#core-hubmodelinfo).
|
|
@@ -1,11 +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.fakehub"
|
|
4
|
-
title: "Testing: reference: FakeHub …
|
|
5
|
-
description: "Testing: reference, the part on FakeHub, FakeHubOptions, FakeProcess, TEST_USER, TEST_PLACE, NO_ASKS, HubBody, SystemBody, streamOf, liveEnv, liveModels, expectType
|
|
6
|
-
summary: "Testing: reference: FakeHub, FakeHubOptions, FakeProcess, TEST_USER, TEST_PLACE, NO_ASKS, HubBody, SystemBody, streamOf, liveEnv, liveModels, expectType
|
|
4
|
+
title: "Testing: reference: FakeHub … expectType"
|
|
5
|
+
description: "Testing: reference, the part on FakeHub, FakeHubOptions, FakeProcess, TEST_USER, TEST_PLACE, NO_ASKS, HubBody, SystemBody, streamOf, liveEnv, liveModels, expectType."
|
|
6
|
+
summary: "Testing: reference: FakeHub, FakeHubOptions, FakeProcess, TEST_USER, TEST_PLACE, NO_ASKS, HubBody, SystemBody, streamOf, liveEnv, liveModels, expectType."
|
|
7
|
+
question: "What are the exact signatures and options of FakeHub, FakeHubOptions, FakeProcess, TEST_USER, TEST_PLACE, NO_ASKS and 6 more?"
|
|
8
|
+
when: "When code uses FakeHub, FakeHubOptions, FakeProcess, TEST_USER, TEST_PLACE, NO_ASKS and 6 more and needs an exact signature, field or option."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.testing.reference"
|
|
8
|
-
next: "fs/authoring.testing.reference.
|
|
12
|
+
next: "fs/authoring.testing.reference.equal"
|
|
9
13
|
suggest: "none"
|
|
10
14
|
tags: ["authoring", "reference"]
|
|
11
15
|
niche: "developer"
|
|
@@ -36,6 +40,8 @@ class FakeHub {
|
|
|
36
40
|
readonly progress: Array<HubBody<'progress'>>;
|
|
37
41
|
readonly allowed: Array<HubBody<'allow'>>;
|
|
38
42
|
readonly undos: Array<HubBody<'undoWith'>>;
|
|
43
|
+
/** The finished runs' results the system replaced (`ctx.updateResult`). */
|
|
44
|
+
readonly resultUpdates: Array<HubBody<'updateResult'>>;
|
|
39
45
|
readonly attachments: Array<HubBody<'attach'>>;
|
|
40
46
|
readonly logs: LogLine[];
|
|
41
47
|
/** Refreshed (or expired) credentials systems handed back (`connectionUpdate`). */
|
|
@@ -83,6 +89,16 @@ class FakeHub {
|
|
|
83
89
|
readonly exampleChanges: Array<HubBody<'examples'>>;
|
|
84
90
|
/** Pairing tokens approved install runs asked for (`grantPairing`), with the grant the fake hub made. */
|
|
85
91
|
readonly pairingGrants: Array<PairingGrantRequest & PairingGrant>;
|
|
92
|
+
/** What the system reported about its store (`storeStatus`), in order. */
|
|
93
|
+
readonly storeStatuses: StoreStatusReport[];
|
|
94
|
+
/** Called with each store status the system reports (after it is kept in `storeStatuses`), as the hub would hear it. */
|
|
95
|
+
onStoreStatus: (report: StoreStatusReport) => void | Promise<void>;
|
|
96
|
+
/** How far store moves got, as the system reported it (`storeMoveProgress`), in order. */
|
|
97
|
+
readonly storeMoves: Array<HubBody<'storeMoveProgress'>>;
|
|
98
|
+
/** Called with each move progress report, as the hub would hear it. */
|
|
99
|
+
onStoreMoveProgress: (report: HubBody<'storeMoveProgress'>) => void | Promise<void>;
|
|
100
|
+
/** The store the hub keeps for the system, when its welcome puts it on the hub. Default: every call refused. */
|
|
101
|
+
stores: FakeStoreEndpoints;
|
|
86
102
|
/** Paired keys by system name. */
|
|
87
103
|
readonly keys: Map<string, string>;
|
|
88
104
|
/** Session state by owner (`run:<id>` / `delivery:<id>`). */
|
|
@@ -212,7 +228,7 @@ class FakeHub {
|
|
|
212
228
|
}
|
|
213
229
|
```
|
|
214
230
|
|
|
215
|
-
Refers to: [`ActorId`](context:fs/authoring.core-types.primitives-ts#core-actorid), [`AdminNotice`](context:fs/authoring.core-types.link-ts#core-adminnotice), [`ArgsCheckAnswer`](context:fs/authoring.core-types.approvals-ts#core-argscheckanswer), [`ClaimsAnswer`](context:fs/authoring.core-types.claims-ts#core-claimsanswer), [`ConfigValue`](context:fs/authoring.core-types.link-ts#core-configvalue), [`ConnectResult`](context:fs/authoring.core-types.connections-ts#core-connectresult), [`ContentRef`](context:fs/authoring.core-types.resources-ts#core-contentref), [`DecideAnswer`](context:fs/authoring.core-types.decisions-ts#core-decideanswer), [`FlagsAnswer`](context:fs/authoring.core-types.sensitivity-ts#core-flagsanswer), [`FleetInstance`](context:fs/authoring.core-types.package-ts#core-fleetinstance), [`HandlerAnswer`](context:fs/authoring.core-types.run-ts#core-handleranswer), [`Hello`](context:fs/authoring.core-types.link-ts#core-hello), [`HubLinkSpec`](context:fs/authoring.core-types.link-ts#core-hublinkspec), [`HubModelInfo`](context:fs/authoring.core-types.admin-ts#core-hubmodelinfo), [`InstanceName`](context:fs/authoring.core-types.primitives-ts#core-instancename), [`Json`](context:fs/authoring.core-types.primitives-ts#core-json), [`JsonObject`](context:fs/authoring.core-types.primitives-ts#core-jsonobject), [`KindEstimateAnswer`](context:fs/authoring.core-types.fn-facts-ts#core-kindestimateanswer), [`KindFnShape`](context:fs/authoring.core-types.contextdecl#core-kindfnshape), [`KindFnWire`](context:fs/authoring.core-types.owner-runs-ts#core-kindfnwire), [`LinkSession`](context:fs/authoring.core-types.link-ts#core-linksession), [`LlmForward`](context:fs/authoring.core-types.llm-ts#core-llmforward), [`LlmForwardChunk`](context:fs/authoring.core-types.llm-ts#core-llmforwardchunk), [`LogLine`](context:fs/authoring.core-types.link-ts#core-logline), [`Manifest`](context:fs/authoring.core-types.manifest#core-manifest), [`ManifestPatch`](context:fs/authoring.core-types.manifestpatch#core-manifestpatch), [`MentionResourceSearch`](context:fs/authoring.core-types.mention-search-ts#core-mentionresourcesearch), [`ModelForward`](context:fs/authoring.core-types.model-calls-ts#core-modelforward), [`ModelForwardResult`](context:fs/authoring.core-types.model-calls-ts#core-modelforwardresult), [`OutcomeWire`](context:fs/authoring.core-types.run-ts#core-outcomewire), [`PairingGrant`](context:fs/authoring.core-types.approvals-ts#core-pairinggrant), [`PairingGrantRequest`](context:fs/authoring.core-types.approvals-ts#core-pairinggrantrequest), [`PairingId`](context:fs/authoring.core-types.primitives-ts#core-pairingid), [`PairingInfo`](context:fs/authoring.core-types.package-ts#core-pairinginfo), [`PreviewAnswer`](context:fs/authoring.core-types.lifecycle-ts#core-previewanswer), [`ProposedRun`](context:fs/authoring.core-types.approvals-ts#core-proposedrun), [`QualifiedName`](context:fs/authoring.core-types.primitives-ts#core-qualifiedname), [`ResourceHit`](context:fs/authoring.core-types.resources-ts#core-resourcehit), [`ResourceRead`](context:fs/authoring.core-types.resources-ts#core-resourceread), [`RunControl`](context:fs/authoring.core-types.link-ts#core-runcontrol), [`RunInfo`](context:fs/authoring.core-types.run-ts#core-runinfo), [`RunRequest`](context:fs/authoring.core-types.link-ts#core-runrequest), [`RunSettled`](context:fs/authoring.core-types.run-ts#core-runsettled), [`Section`](context:fs/authoring.core-types.resources-ts#core-section), [`StartedRun`](context:fs/authoring.core-types.owner-runs-ts#core-startedrun), [`StateOwner`](context:fs/authoring.core-types.link-ts#core-stateowner), [`SystemLinkSpec`](context:fs/authoring.core-types.link-ts#core-systemlinkspec), [`TypeDefinitions`](context:fs/authoring.core-types.records-systems-ts#core-typedefinitions).
|
|
231
|
+
Refers to: [`ActorId`](context:fs/authoring.core-types.primitives-ts#core-actorid), [`AdminNotice`](context:fs/authoring.core-types.link-ts#core-adminnotice), [`ArgsCheckAnswer`](context:fs/authoring.core-types.approvals-ts#core-argscheckanswer), [`ClaimsAnswer`](context:fs/authoring.core-types.claims-ts#core-claimsanswer), [`ConfigValue`](context:fs/authoring.core-types.link-ts#core-configvalue), [`ConnectResult`](context:fs/authoring.core-types.connections-ts#core-connectresult), [`ContentRef`](context:fs/authoring.core-types.resources-ts#core-contentref), [`DecideAnswer`](context:fs/authoring.core-types.decisions-ts#core-decideanswer), [`FlagsAnswer`](context:fs/authoring.core-types.sensitivity-ts#core-flagsanswer), [`FleetInstance`](context:fs/authoring.core-types.package-ts#core-fleetinstance), [`HandlerAnswer`](context:fs/authoring.core-types.run-ts#core-handleranswer), [`Hello`](context:fs/authoring.core-types.link-ts#core-hello), [`HubLinkSpec`](context:fs/authoring.core-types.link-ts#core-hublinkspec), [`HubModelInfo`](context:fs/authoring.core-types.admin-ts#core-hubmodelinfo), [`InstanceName`](context:fs/authoring.core-types.primitives-ts#core-instancename), [`Json`](context:fs/authoring.core-types.primitives-ts#core-json), [`JsonObject`](context:fs/authoring.core-types.primitives-ts#core-jsonobject), [`KindEstimateAnswer`](context:fs/authoring.core-types.fn-facts-ts#core-kindestimateanswer), [`KindFnShape`](context:fs/authoring.core-types.contextdecl#core-kindfnshape), [`KindFnWire`](context:fs/authoring.core-types.owner-runs-ts#core-kindfnwire), [`LinkSession`](context:fs/authoring.core-types.link-ts#core-linksession), [`LlmForward`](context:fs/authoring.core-types.llm-ts#core-llmforward), [`LlmForwardChunk`](context:fs/authoring.core-types.llm-ts#core-llmforwardchunk), [`LogLine`](context:fs/authoring.core-types.link-ts#core-logline), [`Manifest`](context:fs/authoring.core-types.manifest#core-manifest), [`ManifestPatch`](context:fs/authoring.core-types.manifestpatch#core-manifestpatch), [`MentionResourceSearch`](context:fs/authoring.core-types.mention-search-ts#core-mentionresourcesearch), [`ModelForward`](context:fs/authoring.core-types.model-calls-ts#core-modelforward), [`ModelForwardResult`](context:fs/authoring.core-types.model-calls-ts#core-modelforwardresult), [`OutcomeWire`](context:fs/authoring.core-types.run-ts#core-outcomewire), [`PairingGrant`](context:fs/authoring.core-types.approvals-ts#core-pairinggrant), [`PairingGrantRequest`](context:fs/authoring.core-types.approvals-ts#core-pairinggrantrequest), [`PairingId`](context:fs/authoring.core-types.primitives-ts#core-pairingid), [`PairingInfo`](context:fs/authoring.core-types.package-ts#core-pairinginfo), [`PreviewAnswer`](context:fs/authoring.core-types.lifecycle-ts#core-previewanswer), [`ProposedRun`](context:fs/authoring.core-types.approvals-ts#core-proposedrun), [`QualifiedName`](context:fs/authoring.core-types.primitives-ts#core-qualifiedname), [`ResourceHit`](context:fs/authoring.core-types.resources-ts#core-resourcehit), [`ResourceRead`](context:fs/authoring.core-types.resources-ts#core-resourceread), [`RunControl`](context:fs/authoring.core-types.link-ts#core-runcontrol), [`RunInfo`](context:fs/authoring.core-types.run-ts#core-runinfo), [`RunRequest`](context:fs/authoring.core-types.link-ts#core-runrequest), [`RunSettled`](context:fs/authoring.core-types.run-ts#core-runsettled), [`Section`](context:fs/authoring.core-types.resources-ts#core-section), [`StartedRun`](context:fs/authoring.core-types.owner-runs-ts#core-startedrun), [`StateOwner`](context:fs/authoring.core-types.link-ts#core-stateowner), [`StoreStatusReport`](context:fs/authoring.core-types.stores-ts#core-storestatusreport), [`SystemLinkSpec`](context:fs/authoring.core-types.link-ts#core-systemlinkspec), [`TypeDefinitions`](context:fs/authoring.core-types.records-systems-ts#core-typedefinitions).
|
|
216
232
|
|
|
217
233
|
#### `FakeHubOptions`
|
|
218
234
|
|
|
@@ -240,10 +256,12 @@ interface FakeHubOptions {
|
|
|
240
256
|
autoPair?: AutoPairGrant;
|
|
241
257
|
/** Refuse every hello that brings an auto-pair secret, as the hub does for an expired or revoked one. */
|
|
242
258
|
refuseAutoPair?: boolean;
|
|
259
|
+
/** Where the welcome says the system's store lives (default absent: with the system). */
|
|
260
|
+
store?: StoreOpen;
|
|
243
261
|
}
|
|
244
262
|
```
|
|
245
263
|
|
|
246
|
-
Refers to: [`AutoPairGrant`](context:fs/authoring.core-types.auto-pair-ts#core-autopairgrant), [`InstanceName`](context:fs/authoring.core-types.primitives-ts#core-instancename).
|
|
264
|
+
Refers to: [`AutoPairGrant`](context:fs/authoring.core-types.auto-pair-ts#core-autopairgrant), [`InstanceName`](context:fs/authoring.core-types.primitives-ts#core-instancename), [`StoreOpen`](context:fs/authoring.core-types.stores-ts#core-storeopen).
|
|
247
265
|
|
|
248
266
|
#### `FakeProcess`
|
|
249
267
|
|
|
@@ -287,13 +305,13 @@ const TEST_PLACE: SystemPlace;
|
|
|
287
305
|
|
|
288
306
|
const · `import { NO_ASKS } from '@harness/sdk/server/testing'`
|
|
289
307
|
|
|
290
|
-
`ctx.propose`, `ctx.decide`, `ctx.ai`, `ctx.runs` and `ctx.
|
|
308
|
+
`ctx.propose`, `ctx.decide`, `ctx.ai`, `ctx.runs`, `ctx.notify` and `ctx.store` (none) for a hand-made test context that has no hub:
|
|
291
309
|
proposing and starting runs fail (the test didn't expect them), the decision model is off, notices and kind fns are
|
|
292
310
|
none, and `ctx.ai()` is an aeye `AI` over `FakeModelLink` answering `ok`.
|
|
293
311
|
Spread it in beside `TEST_PLACE`; `FakeHub` serves the real ones.
|
|
294
312
|
|
|
295
313
|
```ts
|
|
296
|
-
const NO_ASKS: Proposals & Decisions & Fleets & FnSearch & AiSource & AdminNotices & InstanceConnects & OwnerRuns & RunNotices;
|
|
314
|
+
const NO_ASKS: Proposals & Decisions & Fleets & FnSearch & AiSource & AdminNotices & ResultUpdates & InstanceConnects & OwnerRuns & RunNotices & { readonly store: undefined };
|
|
297
315
|
```
|
|
298
316
|
|
|
299
317
|
#### `HubBody`
|
|
@@ -357,40 +375,3 @@ A compile-time assertion: `expectType<Equal<A, B>>(true)` fails to compile unles
|
|
|
357
375
|
```ts
|
|
358
376
|
const expectType: <T extends true>(_proof: T) => void;
|
|
359
377
|
```
|
|
360
|
-
|
|
361
|
-
#### `Equal`
|
|
362
|
-
|
|
363
|
-
type · `import { Equal } from '@harness/sdk'`
|
|
364
|
-
|
|
365
|
-
True when `A` and `B` are the same type (used by the compile-time tests).
|
|
366
|
-
|
|
367
|
-
```ts
|
|
368
|
-
type Equal<A, B> = (<T>() => T extends A ? 1 : 2) extends (<T>() => T extends B ? 1 : 2) ? true : false;
|
|
369
|
-
```
|
|
370
|
-
|
|
371
|
-
#### `Simplify`
|
|
372
|
-
|
|
373
|
-
type · `import { Simplify } from '@harness/sdk'`
|
|
374
|
-
|
|
375
|
-
Flattens an intersection into one object type, so hovers read as a plain shape.
|
|
376
|
-
|
|
377
|
-
```ts
|
|
378
|
-
type Simplify<T> = { [K in keyof T]: T[K] } & {};
|
|
379
|
-
```
|
|
380
|
-
|
|
381
|
-
#### `MemoryKeyStore`
|
|
382
|
-
|
|
383
|
-
class · `import { MemoryKeyStore } from '@harness/sdk/server'`
|
|
384
|
-
|
|
385
|
-
Keys held in memory, made on first use. For tests and throwaway systems.
|
|
386
|
-
|
|
387
|
-
```ts
|
|
388
|
-
class MemoryKeyStore implements KeyStore {
|
|
389
|
-
publicKey(): Promise<string>;
|
|
390
|
-
sign(nonce: string): Promise<string>;
|
|
391
|
-
autoPair(): Promise<AutoPairGrant | undefined>;
|
|
392
|
-
saveAutoPair(grant: AutoPairGrant | undefined): Promise<void>;
|
|
393
|
-
}
|
|
394
|
-
```
|
|
395
|
-
|
|
396
|
-
Refers to: [`AutoPairGrant`](context:fs/authoring.core-types.auto-pair-ts#core-autopairgrant).
|
|
@@ -1,10 +1,15 @@
|
|
|
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 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
|
-
summary: "Testing: reference: toolCall, ScriptStep, examplesChecked, DIALECT_MODELS, ModelRecording, RecordedModelLink, RecordingOptions
|
|
3
|
+
key: "authoring.testing.reference.kindprops"
|
|
4
|
+
title: "Testing: reference: KindProps … localStoreConnect"
|
|
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
|
+
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 30 more?"
|
|
8
|
+
when: "When code uses KindProps, mockModel, toolCall, ScriptStep, examplesChecked, DIALECT_MODELS and 30 more and needs an exact signature, field or option."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.testing.reference"
|
|
12
|
+
next: "fs/authoring.testing.reference.openmemorystore"
|
|
8
13
|
suggest: "none"
|
|
9
14
|
tags: ["authoring", "reference"]
|
|
10
15
|
niche: "developer"
|
|
@@ -12,6 +17,47 @@ niche: "developer"
|
|
|
12
17
|
|
|
13
18
|
### Reference: testing
|
|
14
19
|
|
|
20
|
+
#### `KindProps`
|
|
21
|
+
|
|
22
|
+
interface · `import { KindProps } from '@harness/sdk/testing'`
|
|
23
|
+
|
|
24
|
+
What a kind makes of a payload: the problems with it, and the fn props it derives (signature, facts, display, …).
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
interface KindProps {
|
|
28
|
+
readonly problems: readonly string[];
|
|
29
|
+
readonly description: KindDescription | undefined;
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Refers to: [`KindDescription`](context:fs/authoring.core-types.contextdecl#core-kinddescription).
|
|
34
|
+
|
|
35
|
+
#### `mockModel`
|
|
36
|
+
|
|
37
|
+
function · `import { mockModel } from '@harness/sdk/testing'`
|
|
38
|
+
|
|
39
|
+
A model for fast unit tests. Given steps, it answers each chat forward with the next step (then `done` once they
|
|
40
|
+
run out); given a recording, it replays it, recording first from a real model when the file is missing.
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
const model = mockModel([toolCall('search', { text: 'notes' }), 'Saved notes/by_tag.']);
|
|
44
|
+
const kit = await testHub(notes, impl, { model });
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
````ts
|
|
48
|
+
/** A model for fast unit tests. Given steps, it answers each chat forward with the next step (then `done` once they
|
|
49
|
+
run out); given a recording, it replays it, recording first from a real model when the file is missing.
|
|
50
|
+
|
|
51
|
+
```ts
|
|
52
|
+
const model = mockModel([toolCall('search', { text: 'notes' }), 'Saved notes/by_tag.']);
|
|
53
|
+
const kit = await testHub(notes, impl, { model });
|
|
54
|
+
``` */
|
|
55
|
+
function mockModel(steps: readonly ScriptStep[], options?: { models?: readonly HubModelInfo[]; }): FakeModelLink;
|
|
56
|
+
function mockModel(recording: RecordingOptions): RecordedModelLink;
|
|
57
|
+
````
|
|
58
|
+
|
|
59
|
+
Refers to: [`HubModelInfo`](context:fs/authoring.core-types.admin-ts#core-hubmodelinfo).
|
|
60
|
+
|
|
15
61
|
#### `toolCall`
|
|
16
62
|
|
|
17
63
|
function · `import { toolCall } from '@harness/sdk/testing'`
|
|
@@ -507,3 +553,64 @@ type StoredTypeDecl = TypeDecl & { readonly records: RecordStorage };
|
|
|
507
553
|
```
|
|
508
554
|
|
|
509
555
|
Refers to: [`RecordStorage`](context:fs/authoring.core-types.data-ts#core-recordstorage), [`TypeDecl`](context:fs/authoring.core-types.manifestpatch#core-typedecl).
|
|
556
|
+
|
|
557
|
+
#### `FakeStoreEndpoints`
|
|
558
|
+
|
|
559
|
+
interface · `import { FakeStoreEndpoints } from '@harness/sdk/server/testing'`
|
|
560
|
+
|
|
561
|
+
A store the hub keeps, as the fake hub answers its endpoints (`FakeHub.stores`). The hub's own store host fits it;
|
|
562
|
+
by default every call is refused, as a hub that keeps no store for the system would.
|
|
563
|
+
|
|
564
|
+
```ts
|
|
565
|
+
interface FakeStoreEndpoints {
|
|
566
|
+
open(): Promise<{ bytes: number }>;
|
|
567
|
+
run(statement: StoreStatement): Promise<StoreResult>;
|
|
568
|
+
begin(): Promise<StoreLease>;
|
|
569
|
+
commit(lease: StoreLeaseId): Promise<void>;
|
|
570
|
+
rollback(lease: StoreLeaseId): Promise<void>;
|
|
571
|
+
snapshot(): Promise<StoreSnapshotName>;
|
|
572
|
+
restore(snapshot: StoreSnapshotName): Promise<void>;
|
|
573
|
+
/** A move from the hub: a whole copy of the store, its size and sha-256. */
|
|
574
|
+
export?(move: StoreMoveId): Promise<{ bytes: number; hash: string }>;
|
|
575
|
+
/** A chunk of that copy, base64. */
|
|
576
|
+
download?(move: StoreMoveId, offset: number, length: number): Promise<{ chunk: string }>;
|
|
577
|
+
/** A move to the hub: a chunk of the copy, base64. */
|
|
578
|
+
upload?(move: StoreMoveId, offset: number, chunk: string): Promise<void>;
|
|
579
|
+
/** The copy is all sent. */
|
|
580
|
+
uploadDone?(move: StoreMoveId, bytes: number, hash: string): Promise<void>;
|
|
581
|
+
}
|
|
582
|
+
```
|
|
583
|
+
|
|
584
|
+
Refers to: [`StoreLease`](context:fs/authoring.core-types.stores-ts#core-storelease), [`StoreLeaseId`](context:fs/authoring.core-types.stores-ts#core-storeleaseid), [`StoreMoveId`](context:fs/authoring.core-types.stores-ts#core-storemoveid), [`StoreResult`](context:fs/authoring.core-types.stores-ts#core-storeresult), [`StoreSnapshotName`](context:fs/authoring.core-types.stores-ts#core-storesnapshotname), [`StoreStatement`](context:fs/authoring.core-types.stores-ts#core-storestatement).
|
|
585
|
+
|
|
586
|
+
#### `NO_STORE`
|
|
587
|
+
|
|
588
|
+
const · `import { NO_STORE } from '@harness/sdk/server/testing'`
|
|
589
|
+
|
|
590
|
+
`ctx.store` for a hand-made test context of a system that declares a store, when the code under test never touches
|
|
591
|
+
it: every statement is refused, saying so. Spread it in beside `NO_ASKS` (`{ ...NO_ASKS, store: NO_STORE }`).
|
|
592
|
+
|
|
593
|
+
```ts
|
|
594
|
+
const NO_STORE: SystemStore<StoreDb>;
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
#### `testStore`
|
|
598
|
+
|
|
599
|
+
function · `import { testStore } from '@harness/sdk/server/testing'`
|
|
600
|
+
|
|
601
|
+
A store for a unit test without a hub: SQLite in memory (or a real file in `dir`), migrated with `migrations`, as
|
|
602
|
+
`ctx.store` would be. Close it when the test is done.
|
|
603
|
+
|
|
604
|
+
```ts
|
|
605
|
+
function testStore(migrations: readonly Migration[], options?: { readonly dir?: string; }): Promise<{ readonly store: SystemStore<StoreDb>; close(): Promise<void>; }>;
|
|
606
|
+
```
|
|
607
|
+
|
|
608
|
+
#### `localStoreConnect`
|
|
609
|
+
|
|
610
|
+
function · `import { localStoreConnect } from '@harness/sdk/server/testing'`
|
|
611
|
+
|
|
612
|
+
A `LinkHostDeps.storeConnect` that keeps a store with the system as a real SQLite file in `dir` (`<dir>/store/store.db`).
|
|
613
|
+
|
|
614
|
+
```ts
|
|
615
|
+
function localStoreConnect(dir: string, now?: () => number): () => Promise<StoreConnection>;
|
|
616
|
+
```
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Generated by scripts/docs/authoring.ts from the authoring guide (npm run docs:authoring); do not edit.
|
|
3
|
+
key: "authoring.testing.reference.openmemorystore"
|
|
4
|
+
title: "Testing: reference: openMemoryStore … CheckClock"
|
|
5
|
+
description: "Testing: reference, the part on openMemoryStore, StoreConnection, WORK_BACKEND_CHECKS, WorkBackendCheck, WorkBackendMaker, CheckClock."
|
|
6
|
+
summary: "Testing: reference: openMemoryStore, StoreConnection, WORK_BACKEND_CHECKS, WorkBackendCheck, WorkBackendMaker, CheckClock."
|
|
7
|
+
question: "What are the exact signatures and options of openMemoryStore, StoreConnection, WORK_BACKEND_CHECKS, WorkBackendCheck, WorkBackendMaker and CheckClock?"
|
|
8
|
+
when: "When code uses openMemoryStore, StoreConnection, WORK_BACKEND_CHECKS, WorkBackendCheck, WorkBackendMaker and CheckClock and needs an exact signature, field or option."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
11
|
+
parent: "fs/authoring.testing.reference"
|
|
12
|
+
suggest: "none"
|
|
13
|
+
tags: ["authoring", "reference"]
|
|
14
|
+
niche: "developer"
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
### Reference: testing
|
|
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
|
+
#### `StoreConnection`
|
|
32
|
+
|
|
33
|
+
interface · `import { StoreConnection } from '@harness/sdk/server/testing'`
|
|
34
|
+
|
|
35
|
+
An open store connection: Kysely over it, where its tables are, and what its engine can do besides.
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
interface StoreConnection {
|
|
39
|
+
readonly db: AnyKysely;
|
|
40
|
+
readonly place: StorePlace;
|
|
41
|
+
readonly plugin: PortablePlugin;
|
|
42
|
+
/** Set on a store held in memory (a test's): it has no file, so it is measured but can't be moved. */
|
|
43
|
+
readonly memory?: true;
|
|
44
|
+
/** Copy the store aside before migrations (SQLite only); returns the snapshot's name. */
|
|
45
|
+
snapshot?(): Promise<string>;
|
|
46
|
+
/** Count its tables' rows (and size a SQLite file) for the Storage panel; absent on the hub, which measures it itself. */
|
|
47
|
+
measure?(now: number): Promise<StoreMeasure>;
|
|
48
|
+
/**
|
|
49
|
+
* Fold a SQLite file's write-ahead log into the file itself and empty the log (`wal_checkpoint(TRUNCATE)`), so a
|
|
50
|
+
* copy of the data folder taken now has the whole store in `store.db`, with or without its `-wal`. Only a store with
|
|
51
|
+
* the system has one: the hub's file is the hub's, and an external database isn't in the folder.
|
|
52
|
+
*/
|
|
53
|
+
checkpoint?(): Promise<void>;
|
|
54
|
+
/** Put a snapshot back in place of the store; the connection is closed by then and must not be used again. */
|
|
55
|
+
restore?(snapshot: string): Promise<void>;
|
|
56
|
+
close(): Promise<void>;
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Refers to: [`StoreMeasure`](context:fs/authoring.core-types.stores-ts#core-storemeasure).
|
|
61
|
+
|
|
62
|
+
#### `WORK_BACKEND_CHECKS`
|
|
63
|
+
|
|
64
|
+
const · `import { WORK_BACKEND_CHECKS } from '@harness/sdk/server/testing'`
|
|
65
|
+
|
|
66
|
+
```ts
|
|
67
|
+
const WORK_BACKEND_CHECKS: readonly WorkBackendCheck[];
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
#### `WorkBackendCheck`
|
|
71
|
+
|
|
72
|
+
interface · `import { WorkBackendCheck } from '@harness/sdk/server/testing'`
|
|
73
|
+
|
|
74
|
+
One check: its name, and the run that throws when the backend gets it wrong.
|
|
75
|
+
|
|
76
|
+
```ts
|
|
77
|
+
interface WorkBackendCheck {
|
|
78
|
+
readonly name: string;
|
|
79
|
+
run(make: WorkBackendMaker): Promise<void>;
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
#### `WorkBackendMaker`
|
|
84
|
+
|
|
85
|
+
type · `import { WorkBackendMaker } from '@harness/sdk/server/testing'`
|
|
86
|
+
|
|
87
|
+
Makes a backend over the store under test: a check passes its clock, queue name and options.
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
type WorkBackendMaker = (options: StoreWorkOptions) => StoreWorkBackend | Promise<StoreWorkBackend>;
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
#### `CheckClock`
|
|
94
|
+
|
|
95
|
+
class · `import { CheckClock } from '@harness/sdk/server/testing'`
|
|
96
|
+
|
|
97
|
+
A clock a check moves by hand.
|
|
98
|
+
|
|
99
|
+
```ts
|
|
100
|
+
class CheckClock {
|
|
101
|
+
t: number;
|
|
102
|
+
readonly now: () => number;
|
|
103
|
+
advance(ms: number): void;
|
|
104
|
+
}
|
|
105
|
+
```
|
|
@@ -4,21 +4,28 @@ key: "authoring.testing.reference"
|
|
|
4
4
|
title: "Testing: reference"
|
|
5
5
|
description: "The API reference of Testing: every export with its TSDoc and signature."
|
|
6
6
|
summary: "Signatures and options for testing."
|
|
7
|
+
question: "What are the exact signatures and options in the API of testing?"
|
|
8
|
+
when: "When writing code for testing and an exact signature, field or option is needed."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.testing"
|
|
8
12
|
suggest: "none"
|
|
9
13
|
tags: ["authoring", "reference"]
|
|
10
14
|
niche: "developer"
|
|
11
15
|
choices:
|
|
12
16
|
- to: "fs/authoring.testing.reference.fakehub"
|
|
13
|
-
when: "Pick this for FakeHub, FakeHubOptions, FakeProcess, TEST_USER, TEST_PLACE, NO_ASKS, HubBody, SystemBody, streamOf, liveEnv, liveModels, expectType
|
|
14
|
-
- to: "fs/authoring.testing.reference.
|
|
15
|
-
when: "Pick this for MemoryJournal, FakeHubFns, KeptFn, FakeHubWidgets, HUB_WIDGET_FNS, FakeTableSource, FakeModelLink, fakeHubAi, replyChunks, FakeModelOptions, FakeReply
|
|
16
|
-
- to: "fs/authoring.testing.reference.
|
|
17
|
-
when: "Pick this for toolCall, ScriptStep, examplesChecked, DIALECT_MODELS, ModelRecording, RecordedModelLink, RecordingOptions, realModel, RealModelTest, liveTurn
|
|
17
|
+
when: "Pick this for FakeHub, FakeHubOptions, FakeProcess, TEST_USER, TEST_PLACE, NO_ASKS, HubBody, SystemBody, streamOf, liveEnv, liveModels, expectType."
|
|
18
|
+
- to: "fs/authoring.testing.reference.equal"
|
|
19
|
+
when: "Pick this for Equal, Simplify, MemoryKeyStore, MemoryJournal, FakeHubFns, KeptFn, FakeHubWidgets, HUB_WIDGET_FNS, FakeTableSource, FakeModelLink, fakeHubAi, replyChunks, FakeModelOptions, FakeReply,…"
|
|
20
|
+
- to: "fs/authoring.testing.reference.kindprops"
|
|
21
|
+
when: "Pick this for KindProps, mockModel, toolCall, ScriptStep, examplesChecked, DIALECT_MODELS, ModelRecording, RecordedModelLink, RecordingOptions, realModel, RealModelTest, liveTurn,…"
|
|
22
|
+
- to: "fs/authoring.testing.reference.openmemorystore"
|
|
23
|
+
when: "Pick this for openMemoryStore, StoreConnection, WORK_BACKEND_CHECKS, WorkBackendCheck, WorkBackendMaker, CheckClock."
|
|
18
24
|
---
|
|
19
25
|
|
|
20
|
-
This part is in
|
|
26
|
+
This part is in 4 pieces; load the one you need:
|
|
21
27
|
|
|
22
|
-
- [FakeHub …
|
|
23
|
-
- [
|
|
24
|
-
- [
|
|
28
|
+
- [FakeHub … expectType](context:fs/authoring.testing.reference.fakehub)
|
|
29
|
+
- [Equal … KindPayloadOf](context:fs/authoring.testing.reference.equal)
|
|
30
|
+
- [KindProps … localStoreConnect](context:fs/authoring.testing.reference.kindprops)
|
|
31
|
+
- [openMemoryStore … CheckClock](context:fs/authoring.testing.reference.openmemorystore)
|
|
@@ -4,6 +4,10 @@ key: "authoring.widgets"
|
|
|
4
4
|
title: "Visuals and widgets"
|
|
5
5
|
description: "Writing a harness system: Visuals and widgets."
|
|
6
6
|
summary: "Visuals in the hub registry with their shapes, and widgets: saved views of a table fn with controls, paging and row actions."
|
|
7
|
+
question: "How does a system add a visual, or work with widgets?"
|
|
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
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.topics.client"
|
|
8
12
|
next: "fs/authoring.packaging"
|
|
9
13
|
fns: ["fs/read", "fs/write", "fs/edit", "fs/bash"]
|
|
@@ -16,7 +20,7 @@ choices:
|
|
|
16
20
|
when: "Pick this to go on in order: Packaging: system.json, build, pack, install."
|
|
17
21
|
---
|
|
18
22
|
|
|
19
|
-
##
|
|
23
|
+
## 28. Visuals and widgets
|
|
20
24
|
|
|
21
25
|
A fn that returns a `ResultTable` (a database query, `hub/records_table`, any fn of that shape) is drawn by the result
|
|
22
26
|
view, which offers every **visual** that can draw it: a table, value cards and twelve chart families (part of a whole,
|
|
@@ -4,6 +4,10 @@ key: "authoring.widgets.reference.hub-visuals"
|
|
|
4
4
|
title: "Visuals and widgets: reference: HUB_VISUALS … WidgetCheckResult"
|
|
5
5
|
description: "Visuals and widgets: reference, the part on HUB_VISUALS, BUILT_IN_CONTRIBUTIONS, visual, VisualInput, channel, ChannelOptions, resultFacts, ginTypeFacts, rankedVisuals, VisualContribution, RankedVisual, VisualView, VisualEntry, VisualPalette, VisualRange, VISUAL_EMITS, VisualEmits, visualTheme, VisualTheme, WIDGETS_SYSTEM, WIDGET_KIND, argsOf, ArgInfo, WINDOW_ARGS, pagingOf, rangeOf, widgetArgs,…"
|
|
6
6
|
summary: "Visuals and widgets: reference: HUB_VISUALS, BUILT_IN_CONTRIBUTIONS, visual, VisualInput, channel, ChannelOptions, resultFacts, ginTypeFacts, rankedVisuals,…"
|
|
7
|
+
question: "What are the exact signatures and options of HUB_VISUALS, BUILT_IN_CONTRIBUTIONS, visual, VisualInput, channel, ChannelOptions and 36 more?"
|
|
8
|
+
when: "When code uses HUB_VISUALS, BUILT_IN_CONTRIBUTIONS, visual, VisualInput, channel, ChannelOptions and 36 more and needs an exact signature, field or option."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.widgets.reference"
|
|
8
12
|
next: "fs/authoring.widgets.reference.sourcecompatible"
|
|
9
13
|
suggest: "none"
|
|
@@ -4,6 +4,10 @@ key: "authoring.widgets.reference.sourcecompatible"
|
|
|
4
4
|
title: "Visuals and widgets: reference: sourceCompatible … WidgetDraft"
|
|
5
5
|
description: "Visuals and widgets: reference, the part on sourceCompatible, SourceCompatibleOptions, widgetProposalSchema, WidgetProposalSchemaInput, WidgetProposalSchema, WidgetDraftInput, WidgetDraft."
|
|
6
6
|
summary: "Visuals and widgets: reference: sourceCompatible, SourceCompatibleOptions, widgetProposalSchema, WidgetProposalSchemaInput, WidgetProposalSchema,…"
|
|
7
|
+
question: "What are the exact signatures and options of sourceCompatible, SourceCompatibleOptions, widgetProposalSchema, WidgetProposalSchemaInput, WidgetProposalSchema, WidgetDraftInput and 1 more?"
|
|
8
|
+
when: "When code uses sourceCompatible, SourceCompatibleOptions, widgetProposalSchema, WidgetProposalSchemaInput, WidgetProposalSchema, WidgetDraftInput and 1 more and needs an exact signature, field or option."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.widgets.reference"
|
|
8
12
|
suggest: "none"
|
|
9
13
|
tags: ["authoring", "reference"]
|
|
@@ -4,6 +4,10 @@ key: "authoring.widgets.reference"
|
|
|
4
4
|
title: "Visuals and widgets: reference"
|
|
5
5
|
description: "The API reference of Visuals and widgets: every export with its TSDoc and signature."
|
|
6
6
|
summary: "Signatures and options for visuals and widgets."
|
|
7
|
+
question: "What are the exact signatures and options in the API of visuals and widgets?"
|
|
8
|
+
when: "When writing code for visuals and widgets and an exact signature, field or option is needed."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.widgets"
|
|
8
12
|
suggest: "none"
|
|
9
13
|
tags: ["authoring", "reference"]
|
|
@@ -4,6 +4,10 @@ key: "authoring.topics.begin"
|
|
|
4
4
|
title: "Making a system: folder, contract, install and tests"
|
|
5
5
|
description: "The folder and the template, the contract, packaging and installing, testing, and the usual mistakes."
|
|
6
6
|
summary: "The folder and the template, the contract, packaging and installing, testing, and the usual mistakes."
|
|
7
|
+
question: "How do I make a new harness system, from the template to installing it?"
|
|
8
|
+
when: "When starting a new system, copying the template, writing its contract, or building, testing, installing or fixing one."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring"
|
|
8
12
|
fns: ["fs/read", "fs/write", "fs/edit", "fs/bash", "fs/install_system", "fs/system_status"]
|
|
9
13
|
tags: ["authoring"]
|
|
@@ -4,6 +4,10 @@ key: "authoring.topics.client"
|
|
|
4
4
|
title: "The client: renderers, views, visuals and widgets"
|
|
5
5
|
description: "Vue renderers, inputs and resource views typed by the contract, and the visuals and widgets results draw with."
|
|
6
6
|
summary: "Vue renderers, inputs and resource views typed by the contract, and the visuals and widgets results draw with."
|
|
7
|
+
question: "How does a harness system draw its results and inputs in the app?"
|
|
8
|
+
when: "When a system needs Vue renderers, inputs, resource views or pages, or adds visuals and widgets."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring"
|
|
8
12
|
fns: ["fs/read", "fs/write", "fs/edit", "fs/bash"]
|
|
9
13
|
tags: ["authoring"]
|
|
@@ -4,6 +4,10 @@ key: "authoring.topics.declare"
|
|
|
4
4
|
title: "Other things a contract declares"
|
|
5
5
|
description: "Settings and attachments, context and commands, hooks, mentions, actions, model providers and resources."
|
|
6
6
|
summary: "Settings and attachments, context and commands, hooks, mentions, actions, model providers and resources."
|
|
7
|
+
question: "What else can a harness system's contract declare besides fns and types?"
|
|
8
|
+
when: "When a system adds settings, attachments, context or commands, hooks, mentions, actions, model providers or resources."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring"
|
|
8
12
|
fns: ["fs/read", "fs/write", "fs/edit", "fs/bash"]
|
|
9
13
|
tags: ["authoring"]
|