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
|
@@ -4,6 +4,10 @@ key: "authoring.internals"
|
|
|
4
4
|
title: "Runtime internals"
|
|
5
5
|
description: "Writing a harness system: Runtime internals."
|
|
6
6
|
summary: "How the runtime works inside: the link, runs and replays."
|
|
7
|
+
question: "How does the SDK's runtime work inside?"
|
|
8
|
+
when: "Only when debugging the SDK itself: the link, runs and replays."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.topics.server"
|
|
8
12
|
next: "fs/authoring.core-types"
|
|
9
13
|
suggest: "none"
|
|
@@ -20,7 +24,7 @@ choices:
|
|
|
20
24
|
when: "Pick this to go on in order: Core types."
|
|
21
25
|
---
|
|
22
26
|
|
|
23
|
-
##
|
|
27
|
+
## 33. Runtime internals
|
|
24
28
|
|
|
25
29
|
The rest of what the SDK exports: the pieces `serve` is built from (the manifest builder, keys, the outcome journal, the
|
|
26
30
|
link transport, the LLM wire, the MCP face, files and process control, client bundles). A system rarely uses these
|
|
@@ -36,4 +40,4 @@ This part is in 3 pieces; load the one you need:
|
|
|
36
40
|
|
|
37
41
|
- [manifestOf … SHARED_ENV](context:fs/authoring.internals.manifestof)
|
|
38
42
|
- [permissionArgs … usageToWire](context:fs/authoring.internals.permissionargs)
|
|
39
|
-
- [usageFromWire …
|
|
43
|
+
- [usageFromWire … fileHash](context:fs/authoring.internals.usagefromwire)
|
|
@@ -4,6 +4,10 @@ key: "authoring.kinds-agents"
|
|
|
4
4
|
title: "Kinds and agents"
|
|
5
5
|
description: "Writing a harness system: Kinds and agents."
|
|
6
6
|
summary: "Kinds that make fns from a payload, and agents that are a prompt with tools."
|
|
7
|
+
question: "How do I write a kind or an agent?"
|
|
8
|
+
when: "When a system makes fns from a payload (a kind) or declares an agent: a prompt with the fns it may call."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.topics.fns"
|
|
8
12
|
next: "fs/authoring.settings-attachments"
|
|
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: Settings and attachments."
|
|
17
21
|
---
|
|
18
22
|
|
|
19
|
-
##
|
|
23
|
+
## 12. Kinds and agents
|
|
20
24
|
|
|
21
25
|
### Kinds
|
|
22
26
|
|
|
@@ -4,6 +4,10 @@ key: "authoring.kinds-agents.reference.authoringsession"
|
|
|
4
4
|
title: "Kinds and agents: reference: AuthoringSession … authoringEnv"
|
|
5
5
|
description: "Kinds and agents: reference, the part on AuthoringSession, AuthoringStage, AUTHORING_STAGES, ShowArgs, AuthoringText, ToolStage, SkippableStage, DraftCheck, Disclosure, authoredFn, AuthoredFn, AuthoringError, authoringEnv."
|
|
6
6
|
summary: "Kinds and agents: reference: AuthoringSession, AuthoringStage, AUTHORING_STAGES, ShowArgs, AuthoringText, ToolStage, SkippableStage, DraftCheck, Disclosure,…"
|
|
7
|
+
question: "What are the exact signatures and options of AuthoringSession, AuthoringStage, AUTHORING_STAGES, ShowArgs, AuthoringText, ToolStage and 7 more?"
|
|
8
|
+
when: "When code uses AuthoringSession, AuthoringStage, AUTHORING_STAGES, ShowArgs, AuthoringText, ToolStage and 7 more and needs an exact signature, field or option."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.kinds-agents.reference"
|
|
8
12
|
suggest: "none"
|
|
9
13
|
tags: ["authoring", "reference"]
|
|
@@ -4,6 +4,10 @@ key: "authoring.kinds-agents.reference.kind"
|
|
|
4
4
|
title: "Kinds and agents: reference: kind … AuthoringToolInput"
|
|
5
5
|
description: "Kinds and agents: reference, the part on kind, KindDef, KindImpl, KindEstimateInput, KindCheckCtx, KindRunCtx, KindRef, AnyKindRef, kindFn, KindFnInput, KindFnTypes, UntypedFn, agent, AgentInput, AgentFnTypes, AgentInjected, LlmPayload, LlmKind, AgentRef, FnRefOf, authoringAgent, AuthoringAgent, AuthoringAgentInput, authoringTool, AuthoringTool, AuthoringToolInput."
|
|
6
6
|
summary: "Kinds and agents: reference: kind, KindDef, KindImpl, KindEstimateInput, KindCheckCtx, KindRunCtx, KindRef, AnyKindRef, kindFn, KindFnInput, KindFnTypes,…"
|
|
7
|
+
question: "What are the exact signatures and options of kind, KindDef, KindImpl, KindEstimateInput, KindCheckCtx, KindRunCtx and 20 more?"
|
|
8
|
+
when: "When code uses kind, KindDef, KindImpl, KindEstimateInput, KindCheckCtx, KindRunCtx and 20 more and needs an exact signature, field or option."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.kinds-agents.reference"
|
|
8
12
|
next: "fs/authoring.kinds-agents.reference.authoringsession"
|
|
9
13
|
suggest: "none"
|
|
@@ -53,12 +57,12 @@ A kind's implementation. The payload is typed; a fn's args and result aren't (th
|
|
|
53
57
|
arrive as JSON the hub has already checked against `describe`'s types.
|
|
54
58
|
|
|
55
59
|
```ts
|
|
56
|
-
interface KindImpl<P, Cfg = unknown, O extends
|
|
60
|
+
interface KindImpl<P, Cfg = unknown, O extends AnyOwn = Own> {
|
|
57
61
|
/** Problems with a payload beyond its type (an unknown fn, a program that doesn't type-check). */
|
|
58
62
|
check(payload: P, ctx: KindCheckCtx): Promise<string[]>;
|
|
59
63
|
describe(payload: P, ctx: KindCheckCtx): Promise<KindDescription>;
|
|
60
64
|
run(payload: P, args: Json, ctx: KindRunCtx<Cfg, O>): Promise<Outcome<UntypedFn>>;
|
|
61
|
-
undo?(payload: P, undo: Json, ctx: UndoCtx<Cfg>): Promise<UndoOutcome>;
|
|
65
|
+
undo?(payload: P, undo: Json, ctx: UndoCtx<Cfg, O['store']>): Promise<UndoOutcome>;
|
|
62
66
|
/** What a run of a payload's fn would do, for a fn `describe` gave an `approval` with a preview (a write query). */
|
|
63
67
|
preview?(payload: P, args: Json, ctx: PreviewCtx<Cfg, O>): Promise<PreviewAnswer>;
|
|
64
68
|
/**
|
|
@@ -109,7 +113,7 @@ interface · `import { KindRunCtx } from '@harness/sdk'`
|
|
|
109
113
|
A kind's run context: like `FnCtx`, but calls are by name (limited to the deps `describe` returned).
|
|
110
114
|
|
|
111
115
|
```ts
|
|
112
|
-
interface KindRunCtx<Cfg = unknown, O extends
|
|
116
|
+
interface KindRunCtx<Cfg = unknown, O extends AnyOwn = Own> extends Omit<FnCtx<UntypedFn, Cfg, O>, 'fns' | 'handlers' | 'progress'> {
|
|
113
117
|
call(fn: QualifiedName, args: Json, options?: { key?: string; background?: boolean }): FnCall<Json>;
|
|
114
118
|
handler(name: string, args: Json): Promise<Json>;
|
|
115
119
|
progress(state: { fraction: number; message?: string } | { step: string; status: StepStatus; detail?: string }): void;
|
|
@@ -4,6 +4,10 @@ key: "authoring.kinds-agents.reference"
|
|
|
4
4
|
title: "Kinds and agents: reference"
|
|
5
5
|
description: "The API reference of Kinds and agents: every export with its TSDoc and signature."
|
|
6
6
|
summary: "Signatures and options for kinds and agents."
|
|
7
|
+
question: "What are the exact signatures and options in the API of kinds and agents?"
|
|
8
|
+
when: "When writing code for kinds and agents and an exact signature, field or option is needed."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.kinds-agents"
|
|
8
12
|
suggest: "none"
|
|
9
13
|
tags: ["authoring", "reference"]
|
|
@@ -4,6 +4,10 @@ key: "authoring.lifecycle"
|
|
|
4
4
|
title: "Config, events, lifecycle and data"
|
|
5
5
|
description: "Writing a harness system: Config, events, lifecycle and data."
|
|
6
6
|
summary: "Config, events, the lifecycle hooks and the data folders."
|
|
7
|
+
question: "How does a system handle its config, events and lifecycle?"
|
|
8
|
+
when: "When a system has config, reacts to hub events, starts and stops work, or keeps files in its data folders."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.topics.server"
|
|
8
12
|
next: "fs/authoring.owner-runs"
|
|
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: Runs a system starts by itself, and notices."
|
|
17
21
|
---
|
|
18
22
|
|
|
19
|
-
##
|
|
23
|
+
## 24. Config, events, lifecycle and data
|
|
20
24
|
|
|
21
25
|
### Config
|
|
22
26
|
|
|
@@ -74,8 +78,9 @@ lifecycle: {
|
|
|
74
78
|
The hub gives each installed instance its own folders, outside the package, so upgrades and rollbacks keep them:
|
|
75
79
|
`<hub data>/systems/<name>/instances/<instance>/{state,data,cache}`. Code reaches them through every context:
|
|
76
80
|
|
|
77
|
-
- `ctx.dataDir`:
|
|
78
|
-
never here: it is hub records ([Stored types and the data system](context:fs/authoring.data)).
|
|
81
|
+
- `ctx.dataDir`: files that are the system's alone (its keys, a working copy of something it syncs). Data kept for
|
|
82
|
+
people is never here: it is hub records ([Stored types and the data system](context:fs/authoring.data)). Tables the system's code keeps for
|
|
83
|
+
itself are a store ([A store of the system’s own](context:fs/authoring.store)), never a database file of its own here. The hub exports this folder with the
|
|
79
84
|
instance's config (`harness system export-data`) and installs it back.
|
|
80
85
|
- `ctx.cacheDir`: what can be made again (client builds, indexes). Never exported; may be cleared.
|
|
81
86
|
- `ctx.instance`: this instance's name, `main` for a system that runs one copy. Several copies of one system can be
|
|
@@ -4,6 +4,10 @@ key: "authoring.lifecycle.reference"
|
|
|
4
4
|
title: "Config, events, lifecycle and data: reference"
|
|
5
5
|
description: "The API reference of Config, events, lifecycle and data: every export with its TSDoc and signature."
|
|
6
6
|
summary: "Signatures and options for config, events, lifecycle and data."
|
|
7
|
+
question: "What are the exact signatures and options in the API of config, events, lifecycle and data?"
|
|
8
|
+
when: "When writing code for config, events, lifecycle and data and an exact signature, field or option is needed."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.lifecycle"
|
|
8
12
|
suggest: "none"
|
|
9
13
|
tags: ["authoring", "reference"]
|
|
@@ -19,7 +23,7 @@ interface · `import { Lifecycle } from '@harness/sdk'`
|
|
|
19
23
|
Moments in a system's life. All optional; each gets the system's context with its current config.
|
|
20
24
|
|
|
21
25
|
```ts
|
|
22
|
-
interface Lifecycle<Cfg, O extends
|
|
26
|
+
interface Lifecycle<Cfg, O extends AnyOwn = Own> {
|
|
23
27
|
/** The first time it connects after being paired or installed (with a valid config). */
|
|
24
28
|
installed?(ctx: SystemCtx<Cfg, O>): Promise<void>;
|
|
25
29
|
/** Every time it connects with a valid config and its contract is imported. */
|
|
@@ -52,7 +56,7 @@ type · `import { EventHandlers } from '@harness/sdk'`
|
|
|
52
56
|
Hub events a system handles, by event type. Subscriptions follow the handlers given.
|
|
53
57
|
|
|
54
58
|
```ts
|
|
55
|
-
type EventHandlers<Cfg, O extends
|
|
59
|
+
type EventHandlers<Cfg, O extends AnyOwn = Own> = {
|
|
56
60
|
readonly [E in SystemEvent['type']]?: (event: Extract<SystemEvent, { type: E }>, ctx: SystemCtx<Cfg, O>) => Promise<void>;
|
|
57
61
|
};
|
|
58
62
|
```
|
|
@@ -4,6 +4,10 @@ key: "authoring.mentions"
|
|
|
4
4
|
title: "Mentions"
|
|
5
5
|
description: "Writing a harness system: Mentions."
|
|
6
6
|
summary: "@ mentions: search, hover cards and the text the model gets."
|
|
7
|
+
question: "How do people @ mention a system's things?"
|
|
8
|
+
when: "When people should @ mention a system's things in a message: the search, the hover card and the text the model gets."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.topics.declare"
|
|
8
12
|
next: "fs/authoring.actions"
|
|
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: Actions."
|
|
17
21
|
---
|
|
18
22
|
|
|
19
|
-
##
|
|
23
|
+
## 16. Mentions
|
|
20
24
|
|
|
21
25
|
A **mention provider** lets people point at things the system knows with `@` in the chat (a file, a database row, a
|
|
22
26
|
note). Declare it with `mention({ title, description, target, of? })`: `target` is the gin type of the key that gets
|
|
@@ -4,6 +4,10 @@ key: "authoring.mentions.reference"
|
|
|
4
4
|
title: "Mentions: reference"
|
|
5
5
|
description: "The API reference of Mentions: every export with its TSDoc and signature."
|
|
6
6
|
summary: "Signatures and options for mentions."
|
|
7
|
+
question: "What are the exact signatures and options in the API of mentions?"
|
|
8
|
+
when: "When writing code for mentions and an exact signature, field or option is needed."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.mentions"
|
|
8
12
|
suggest: "none"
|
|
9
13
|
tags: ["authoring", "reference"]
|
|
@@ -49,7 +53,7 @@ interface · `import { MentionImpl } from '@harness/sdk'`
|
|
|
49
53
|
A mention provider's implementation.
|
|
50
54
|
|
|
51
55
|
```ts
|
|
52
|
-
interface MentionImpl<T, V, Cfg = unknown, O extends
|
|
56
|
+
interface MentionImpl<T, V, Cfg = unknown, O extends AnyOwn = Own> {
|
|
53
57
|
/** Results for what the person typed after `@`. */
|
|
54
58
|
search(query: string, ctx: MentionCtx<Cfg, O>): Promise<MentionOption<T>[]>;
|
|
55
59
|
/** The hover card, asked for when hovered so it is current; `undefined` when the thing no longer exists. */
|
|
@@ -85,7 +89,7 @@ interface · `import { MentionCtx } from '@harness/sdk'`
|
|
|
85
89
|
What a mention provider's implementation gets: the person mentioning, so results are limited to what they may see.
|
|
86
90
|
|
|
87
91
|
```ts
|
|
88
|
-
interface MentionCtx<Cfg = unknown, O extends
|
|
92
|
+
interface MentionCtx<Cfg = unknown, O extends AnyOwn = Own> extends SystemCtx<Cfg, O>, AskerCtx {}
|
|
89
93
|
```
|
|
90
94
|
|
|
91
95
|
#### `MentionRef`
|
|
@@ -4,6 +4,10 @@ key: "authoring.mistakes"
|
|
|
4
4
|
title: "Common mistakes"
|
|
5
5
|
description: "Writing a harness system: Common mistakes."
|
|
6
6
|
summary: "The mistakes the compiler refuses, each with its fix."
|
|
7
|
+
question: "Which mistakes does the compiler refuse in a system, and how is each fixed?"
|
|
8
|
+
when: "When a system's typecheck fails and the error is unclear."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.topics.begin"
|
|
8
12
|
next: "fs/authoring.examples"
|
|
9
13
|
fns: ["fs/read", "fs/write", "fs/edit", "fs/bash"]
|
|
@@ -14,7 +18,7 @@ choices:
|
|
|
14
18
|
when: "Pick this to go on in order: Worked examples."
|
|
15
19
|
---
|
|
16
20
|
|
|
17
|
-
##
|
|
21
|
+
## 31. Common mistakes
|
|
18
22
|
|
|
19
23
|
### Mistakes the compiler refuses
|
|
20
24
|
|
|
@@ -445,7 +449,8 @@ reason given. If you see one of these errors, the fix is in the reason.
|
|
|
445
449
|
- **Keeping data in the system.** Notes, tasks, contacts, anything kept for people or looked up later, are records of a
|
|
446
450
|
stored type (`type({ records })`, `ctx.data`), so the hub checks, versions, shares and searches them. A JSON file or
|
|
447
451
|
a SQLite database in `ctx.dataDir` is invisible to the hub: no search, no Data page, no widgets, no access rules.
|
|
448
|
-
`ctx.dataDir` is for the system's own keys, caches and working copies
|
|
452
|
+
`ctx.dataDir` is for the system's own keys, caches and working copies; tables only its code reads (a queue, an
|
|
453
|
+
index) go in its store (`store()`, `ctx.store`), which the hub places, migrates, backs up and moves.
|
|
449
454
|
- **Loading everything to filter it.** `ctx.data.find` with `filters`, `sort`, `limit` and `search` runs in the hub's
|
|
450
455
|
database; a loop over every record (or `limit: 200` and a filter in code) doesn't scale and misses pages. Walk many
|
|
451
456
|
records a page at a time with `cursor`.
|
|
@@ -4,6 +4,10 @@ key: "authoring.named-types"
|
|
|
4
4
|
title: "Named types and methods"
|
|
5
5
|
description: "Writing a harness system: Named types and methods."
|
|
6
6
|
summary: "Named types (type()) and the methods on them."
|
|
7
|
+
question: "How do I declare a named type with methods?"
|
|
8
|
+
when: "When a value of a system needs a name other systems can refer to, or methods that models can call on it."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.topics.types"
|
|
8
12
|
next: "fs/authoring.data"
|
|
9
13
|
fns: ["fs/read", "fs/write", "fs/edit", "fs/bash"]
|
|
@@ -4,6 +4,10 @@ key: "authoring.named-types.reference"
|
|
|
4
4
|
title: "Named types and methods: reference"
|
|
5
5
|
description: "The API reference of Named types and methods: every export with its TSDoc and signature."
|
|
6
6
|
summary: "Signatures and options for named types and methods."
|
|
7
|
+
question: "What are the exact signatures and options in the API of named types and methods?"
|
|
8
|
+
when: "When writing code for named types and methods and an exact signature, field or option is needed."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.named-types"
|
|
8
12
|
suggest: "none"
|
|
9
13
|
tags: ["authoring", "reference"]
|
|
@@ -160,9 +164,9 @@ type · `import { MethodImpl } from '@harness/sdk'`
|
|
|
160
164
|
A method's implementation: a native fn that also gets the value it was called on.
|
|
161
165
|
|
|
162
166
|
```ts
|
|
163
|
-
type MethodImpl<V, T extends FnTypes, Cfg = unknown, O extends
|
|
167
|
+
type MethodImpl<V, T extends FnTypes, Cfg = unknown, O extends AnyOwn = Own> =
|
|
164
168
|
{ run(self: V, args: T['args'], ctx: FnCtx<T, Cfg, O>): Promise<Outcome<T>> } &
|
|
165
|
-
([T['undo']] extends [never] ? { undo?: never } : { undo(payload: T['undo'], ctx: UndoCtx<Cfg>): Promise<UndoOutcome> });
|
|
169
|
+
([T['undo']] extends [never] ? { undo?: never } : { undo(payload: T['undo'], ctx: UndoCtx<Cfg, O['store']>): Promise<UndoOutcome> });
|
|
166
170
|
```
|
|
167
171
|
|
|
168
172
|
Refers to: [`UndoOutcome`](context:fs/authoring.core-types.run-ts#core-undooutcome).
|
|
@@ -4,6 +4,10 @@ key: "authoring.outcomes"
|
|
|
4
4
|
title: "Outcomes: done, invalid input, failed, paused, cancelled, undo"
|
|
5
5
|
description: "Writing a harness system: Outcomes: done, invalid input, failed, paused, cancelled, undo."
|
|
6
6
|
summary: "How a run ends: done, invalid input, failed, paused, cancelled, and undo."
|
|
7
|
+
question: "How does a fn end its run, and how is it undone?"
|
|
8
|
+
when: "When deciding what a fn returns on success or failure (done, invalid input, failed, paused, cancelled) and how it is undone."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.topics.fns"
|
|
8
12
|
next: "fs/authoring.kinds-agents"
|
|
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: Kinds and agents."
|
|
17
21
|
---
|
|
18
22
|
|
|
19
|
-
##
|
|
23
|
+
## 11. Outcomes: done, invalid input, failed, paused, cancelled, undo
|
|
20
24
|
|
|
21
25
|
Every run ends in an **outcome**, built with the ctx helpers, which are typed to the fn (its result, undo and resume
|
|
22
26
|
types). Return exactly one; never throw to report something the caller should hear.
|
|
@@ -4,6 +4,10 @@ key: "authoring.outcomes.reference"
|
|
|
4
4
|
title: "Outcomes: done, invalid input, failed, paused, cancelled, undo: reference"
|
|
5
5
|
description: "The API reference of Outcomes: done, invalid input, failed, paused, cancelled, undo: every export with its TSDoc and signature."
|
|
6
6
|
summary: "Signatures and options for outcomes: done, invalid input, failed, paused, cancelled, undo."
|
|
7
|
+
question: "What are the exact signatures and options in the API of outcomes: done, invalid input, failed, paused, cancelled, undo?"
|
|
8
|
+
when: "When writing code for outcomes: done, invalid input, failed, paused, cancelled, undo and an exact signature, field or option is needed."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.outcomes"
|
|
8
12
|
suggest: "none"
|
|
9
13
|
tags: ["authoring", "reference"]
|
|
@@ -4,6 +4,10 @@ key: "authoring.owner-runs"
|
|
|
4
4
|
title: "Runs a system starts by itself, and notices"
|
|
5
5
|
description: "Writing a harness system: Runs a system starts by itself, and notices."
|
|
6
6
|
summary: "Starting the saved fns of your kinds later as their owners (ctx.runs), notices to people, and removing a saved fn."
|
|
7
|
+
question: "How does a system run people's saved fns by itself?"
|
|
8
|
+
when: "When a system starts the saved fns of its kinds later as their owners, tells people how runs went, or removes a saved fn."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.topics.server"
|
|
8
12
|
next: "fs/authoring.remote"
|
|
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: Remote services: fleets, sign-in and connections per instance."
|
|
17
21
|
---
|
|
18
22
|
|
|
19
|
-
##
|
|
23
|
+
## 25. Runs a system starts by itself, and notices
|
|
20
24
|
|
|
21
25
|
A system that owns a kind can run its people's fns of that kind later by itself, outside any chat, and tell those
|
|
22
26
|
people how each run went. It declares the `runs` hub grant (`grants: { hub: ['runs', …] }`); the review page flags it
|
|
@@ -4,6 +4,10 @@ key: "authoring.owner-runs.reference"
|
|
|
4
4
|
title: "Runs a system starts by itself, and notices: reference"
|
|
5
5
|
description: "The API reference of Runs a system starts by itself, and notices: every export with its TSDoc and signature."
|
|
6
6
|
summary: "Signatures and options for runs a system starts by itself, and notices."
|
|
7
|
+
question: "What are the exact signatures and options in the API of runs a system starts by itself, and notices?"
|
|
8
|
+
when: "When writing code for runs a system starts by itself, and notices and an exact signature, field or option is needed."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.owner-runs"
|
|
8
12
|
suggest: "none"
|
|
9
13
|
tags: ["authoring", "reference"]
|
|
@@ -17,29 +21,50 @@ niche: "developer"
|
|
|
17
21
|
type · `import { OwnOf } from '@harness/sdk'`
|
|
18
22
|
|
|
19
23
|
What a contract's implementation calls its own (`Own`): the refs of its kinds and of its pages, so `ctx.runs` and
|
|
20
|
-
notices take those and nothing of another system's
|
|
24
|
+
notices take those and nothing of another system's, and its store over its own tables (`Db`) when it declares a
|
|
25
|
+
store. Without one it is the plain context's store type (`undefined` at run time), so such a context still fits
|
|
26
|
+
where a plain `SystemCtx` is taken and the other way round.
|
|
21
27
|
|
|
22
28
|
```ts
|
|
23
|
-
type OwnOf<C extends ContractShape> = Own<
|
|
29
|
+
type OwnOf<C extends ContractShape, Db extends StoreDb = StoreDb> = Own<
|
|
24
30
|
{ [K in keyof C['kinds']]: C['kinds'][K] extends KindDef<infer P> ? KindRef<Q<C['system'], K>, P> : never }[keyof C['kinds']],
|
|
25
|
-
{ [K in keyof C['pages']]: PageRef<Q<C['system'], K>> }[keyof C['pages']]
|
|
31
|
+
{ [K in keyof C['pages']]: PageRef<Q<C['system'], K>> }[keyof C['pages']],
|
|
32
|
+
C['store'] extends StoreDecl ? SystemStore<Db> : SystemStore<StoreDb> | undefined
|
|
26
33
|
>;
|
|
27
34
|
```
|
|
28
35
|
|
|
36
|
+
Refers to: [`StoreDecl`](context:fs/authoring.core-types.stores-ts#core-storedecl).
|
|
37
|
+
|
|
29
38
|
#### `Own`
|
|
30
39
|
|
|
31
40
|
interface · `import { Own } from '@harness/sdk'`
|
|
32
41
|
|
|
33
|
-
What a ctx knows of its own contract: the refs of its kinds and of its pages. `SystemImpl<Defs>`
|
|
34
|
-
hands out with its own (`OwnOf`), so another system's kind, fn or page doesn't fit where only its
|
|
42
|
+
What a ctx knows of its own contract: the refs of its kinds and of its pages, and its store's tables. `SystemImpl<Defs>`
|
|
43
|
+
types every ctx it hands out with its own (`OwnOf`), so another system's kind, fn or page doesn't fit where only its
|
|
44
|
+
own do, and `ctx.store` is typed by the system's table interface (`implement<Db>`), or absent without a store.
|
|
35
45
|
|
|
36
46
|
```ts
|
|
37
|
-
interface Own<K extends AnyKindRef = AnyKindRef, P extends AnyPageRef = AnyPageRef> {
|
|
47
|
+
interface Own<K extends AnyKindRef = AnyKindRef, P extends AnyPageRef = AnyPageRef, S = SystemStore<StoreDb> | undefined> {
|
|
38
48
|
readonly kinds: K;
|
|
39
49
|
readonly pages: P;
|
|
50
|
+
/**
|
|
51
|
+
* What `ctx.store` is (a type only): the store over the system's own tables (`SystemStore<Db>`) for a contract that
|
|
52
|
+
* declares one; for one that doesn't, the plain context's (it is `undefined` at run time).
|
|
53
|
+
*/
|
|
54
|
+
readonly store: S;
|
|
40
55
|
}
|
|
41
56
|
```
|
|
42
57
|
|
|
58
|
+
#### `AnyOwn`
|
|
59
|
+
|
|
60
|
+
type · `import { AnyOwn } from '@harness/sdk'`
|
|
61
|
+
|
|
62
|
+
What any context's own refs and store may be: the bound every `O` takes, so one with a typed store fits too.
|
|
63
|
+
|
|
64
|
+
```ts
|
|
65
|
+
type AnyOwn = Own<AnyKindRef, AnyPageRef, unknown>;
|
|
66
|
+
```
|
|
67
|
+
|
|
43
68
|
#### `KindRuns`
|
|
44
69
|
|
|
45
70
|
interface · `import { KindRuns } from '@harness/sdk'`
|
|
@@ -54,7 +79,7 @@ await ctx.runs.notify(items[0], { title: 'Weekly summary ran', body: '12 rows',
|
|
|
54
79
|
```
|
|
55
80
|
|
|
56
81
|
```ts
|
|
57
|
-
interface KindRuns<O extends
|
|
82
|
+
interface KindRuns<O extends AnyOwn = Own> {
|
|
58
83
|
/** The fns of one of this system's kinds, with owner, title, version and parsed payload, a page at a time. */
|
|
59
84
|
kindFns<K extends O['kinds']>(kind: K, query?: { readonly changedSince?: Timestamp; readonly cursor?: string }): Promise<{ readonly items: Array<KindFn<K>>; readonly cursor?: string }>;
|
|
60
85
|
/**
|
|
@@ -136,7 +161,7 @@ interface · `import { OwnerRuns } from '@harness/sdk'`
|
|
|
136
161
|
`ctx.runs`: in a system's context (hooks, events, lifecycle, timers), never in a run's.
|
|
137
162
|
|
|
138
163
|
```ts
|
|
139
|
-
interface OwnerRuns<O extends
|
|
164
|
+
interface OwnerRuns<O extends AnyOwn = Own> {
|
|
140
165
|
/** Runs of this system's own kinds' fns, as their owners, and notices to those owners. Needs the `runs` grant. */
|
|
141
166
|
readonly runs: KindRuns<O>;
|
|
142
167
|
}
|
|
@@ -149,7 +174,7 @@ interface · `import { RunNotices } from '@harness/sdk'`
|
|
|
149
174
|
`ctx.notify`: in a run's context only.
|
|
150
175
|
|
|
151
176
|
```ts
|
|
152
|
-
interface RunNotices<O extends
|
|
177
|
+
interface RunNotices<O extends AnyOwn = Own> {
|
|
153
178
|
/** Notify the person this run is for (inbox and push), never anyone else. The run's settled event says it did (`notified`). */
|
|
154
179
|
notify(notice: Notice<O>): Promise<void>;
|
|
155
180
|
}
|
|
@@ -162,7 +187,7 @@ interface · `import { Notice } from '@harness/sdk'`
|
|
|
162
187
|
A notice to one person: the owner of a kind fn (`runs.notify`) or the person a run is for (`ctx.notify`).
|
|
163
188
|
|
|
164
189
|
```ts
|
|
165
|
-
interface Notice<O extends
|
|
190
|
+
interface Notice<O extends AnyOwn = Own> {
|
|
166
191
|
readonly title: string;
|
|
167
192
|
/** At most `NOTIFICATION_BODY` (160) characters; longer is clamped on a word boundary. */
|
|
168
193
|
readonly body: string;
|
|
@@ -186,7 +211,7 @@ type · `import { NoticeLink } from '@harness/sdk'`
|
|
|
186
211
|
Where a notice leads: a run of the person's, or one of this system's own pages (a ref, with more path and a query).
|
|
187
212
|
|
|
188
213
|
```ts
|
|
189
|
-
type NoticeLink<O extends
|
|
214
|
+
type NoticeLink<O extends AnyOwn = Own> =
|
|
190
215
|
| { readonly run: RunId }
|
|
191
216
|
| { readonly page: O['pages']; readonly path?: readonly string[]; readonly query?: Readonly<Record<string, string>> };
|
|
192
217
|
```
|
|
@@ -4,6 +4,10 @@ key: "authoring.packaging"
|
|
|
4
4
|
title: "Packaging: system.json, build, pack, install"
|
|
5
5
|
description: "Writing a harness system: Packaging: system.json, build, pack, install."
|
|
6
6
|
summary: "system.json, building, packing and installing, from the chat with fs/install_system or the CLI."
|
|
7
|
+
question: "How do I build, pack and install a system?"
|
|
8
|
+
when: "When writing system.json, or building, packing or installing a system from the chat or the CLI."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.topics.begin"
|
|
8
12
|
next: "fs/authoring.testing"
|
|
9
13
|
fns: ["fs/read", "fs/write", "fs/edit", "fs/bash", "fs/install_system", "fs/system_status"]
|
|
@@ -16,7 +20,7 @@ choices:
|
|
|
16
20
|
when: "Pick this to go on in order: Testing."
|
|
17
21
|
---
|
|
18
22
|
|
|
19
|
-
##
|
|
23
|
+
## 29. Packaging: system.json, build, pack, install
|
|
20
24
|
|
|
21
25
|
### `system.json`
|
|
22
26
|
|
|
@@ -147,13 +151,16 @@ Every command, read from the CLI itself:
|
|
|
147
151
|
| `harness system build [dir] [--skip-typecheck] [--hub <url>] [--token <token>]` | Typecheck a system, check its name and context, and bundle its server and client into dist/. |
|
|
148
152
|
| `harness test [dir] [--previews] [--json] [--filter <text>]` | Run a system's own tests (the SDK test kit); --previews also shoots its components into a gallery. |
|
|
149
153
|
| `harness system pack [dir] [--out <file>] [--skip-typecheck]` | Build if needed, then zip dist/ with every file hashed into a package the hub installs. |
|
|
150
|
-
| `harness system install <zip \| folder \| premade-name \| npm-spec> [--config <file.json>] [--instance <name>] [--data <export.zip>] [--no-start] [--wait <ms>]` | Install a package zip, a folder, a premade system by name or an npm package on a hub, which pairs, configures and starts it. |
|
|
154
|
+
| `harness system install <zip \| folder \| premade-name \| npm-spec> [--config <file.json>] [--instance <name>] [--data <export.zip>] [--no-start] [--wait <ms>] [--store system\|hub\|external [--store-engine postgres\|sqlserver --store-url-env <VAR> \| --store-url <url> --store-schema <schema>]]` | Install a package zip, a folder, a premade system by name or an npm package on a hub, which pairs, configures and starts it. |
|
|
151
155
|
| `harness system export-data <system> [--instance <name>] [--out <file>] [--with-secrets --yes]` | Download an installed instance’s data folder as a zip (its config too, with --with-secrets --yes). |
|
|
152
156
|
| `harness system list` | List the hub’s systems and their instances. |
|
|
153
157
|
| `harness system start <system> [--instance <name>]` | Start an installed system (every instance, or one with --instance). |
|
|
154
158
|
| `harness system stop <system> [--instance <name>]` | Stop an installed system (every instance, or one with --instance). |
|
|
155
159
|
| `harness system upgrade <system> [--version <version>]` | Upgrade an installed system from its npm or git source (a zip upgrades by installing a newer zip). |
|
|
156
|
-
| `harness system uninstall <system> [--instance <name>]` | Stop and remove an installed system’s instances (one with --instance); their data folders stay. |
|
|
160
|
+
| `harness system uninstall <system> [--instance <name>] [--delete-store]` | Stop and remove an installed system’s instances (one with --instance); their data folders stay, and so does each one’s own store unless --delete-store. |
|
|
161
|
+
| `harness system store <system> [--instance <name>]` | Show a system’s own store: where it lives, its state, size and tables, its migrations, its backups and its move. |
|
|
162
|
+
| `harness system store move <system> --to hub\|system\|external [--engine postgres\|sqlserver --url <url\|-> --schema <name>] [--instance <name>] [--cancel-runs \| --keep-waiting]` | Move a system’s store to the hub, the system, or an external database, and follow the move until it ends. |
|
|
163
|
+
| `harness system store answer <system> cancel\|wait [--instance <name>]` | Answer a store move waiting on runs still going: cancel them, or keep waiting until they finish. |
|
|
157
164
|
| `harness mcp <slug> [--hub <url>] (the secret in HARNESS_MCP_SECRET)` | Bridge a hub MCP to stdin and stdout, for MCP clients that speak stdio only. |
|
|
158
165
|
|
|
159
166
|
`harness system new` fills the name in everywhere the template has `template`: as is in strings and paths, in camel
|
|
@@ -4,6 +4,10 @@ key: "authoring.packaging.reference"
|
|
|
4
4
|
title: "Packaging: system.json, build, pack, install: reference"
|
|
5
5
|
description: "The API reference of Packaging: system.json, build, pack, install: every export with its TSDoc and signature."
|
|
6
6
|
summary: "Signatures and options for packaging: system.json, build, pack, install."
|
|
7
|
+
question: "What are the exact signatures and options in the API of packaging: system.json, build, pack, install?"
|
|
8
|
+
when: "When writing code for packaging: system.json, build, pack, install and an exact signature, field or option is needed."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.packaging"
|
|
8
12
|
suggest: "none"
|
|
9
13
|
tags: ["authoring", "reference"]
|
|
@@ -65,8 +69,9 @@ Refers to: [`InstanceName`](context:fs/authoring.core-types.primitives-ts#core-i
|
|
|
65
69
|
function · `import { packageProblems } from '@harness/sdk/server'`
|
|
66
70
|
|
|
67
71
|
What is wrong with a package for the contract it ships: the contract's name must be the manifest's, the manifest
|
|
68
|
-
must speak this SDK's link protocol (its format is checked by the schema),
|
|
69
|
-
(`instances: 'one'`) runs only as `main
|
|
72
|
+
must speak this SDK's link protocol (its format is checked by the schema), a system that runs one instance
|
|
73
|
+
(`instances: 'one'`) runs only as `main`, and a system with a store lists its SQLite drivers in `server.external`.
|
|
74
|
+
Empty when they agree.
|
|
70
75
|
|
|
71
76
|
```ts
|
|
72
77
|
function packageProblems(contract: AnyContract, manifest: SystemPackageManifest, instance?: InstanceName): string[];
|
|
@@ -4,6 +4,10 @@ key: "authoring.providers"
|
|
|
4
4
|
title: "Model providers"
|
|
5
5
|
description: "Writing a harness system: Model providers."
|
|
6
6
|
summary: "Model providers a system can add to the hub."
|
|
7
|
+
question: "How does a system serve a model to the hub?"
|
|
8
|
+
when: "When a system adds a model provider (chat, embeddings, speech) the hub can use."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.topics.declare"
|
|
8
12
|
next: "fs/authoring.resources"
|
|
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: Resources, embedders and sectioners."
|
|
17
21
|
---
|
|
18
22
|
|
|
19
|
-
##
|
|
23
|
+
## 18. Model providers
|
|
20
24
|
|
|
21
25
|
A system can bring **model providers**: models whose calls run in the system (a GPU box, a private API, a gateway the
|
|
22
26
|
hub can't reach). Declare each in the contract with `provider({ description, models })`: every model's id, abilities
|
|
@@ -4,6 +4,10 @@ key: "authoring.providers.reference"
|
|
|
4
4
|
title: "Model providers: reference"
|
|
5
5
|
description: "The API reference of Model providers: every export with its TSDoc and signature."
|
|
6
6
|
summary: "Signatures and options for model providers."
|
|
7
|
+
question: "What are the exact signatures and options in the API of model providers?"
|
|
8
|
+
when: "When writing code for model providers and an exact signature, field or option is needed."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.providers"
|
|
8
12
|
suggest: "none"
|
|
9
13
|
tags: ["authoring", "reference"]
|
|
@@ -69,7 +73,7 @@ The implementation of a declared provider: make the aeye `Provider` for the curr
|
|
|
69
73
|
the config changes, and kept otherwise.
|
|
70
74
|
|
|
71
75
|
```ts
|
|
72
|
-
type ProviderImpl<Cfg = unknown, O extends
|
|
76
|
+
type ProviderImpl<Cfg = unknown, O extends AnyOwn = Own> = (ctx: SystemCtx<Cfg, O>) => Provider;
|
|
73
77
|
```
|
|
74
78
|
|
|
75
79
|
#### `ProviderRef`
|
|
@@ -4,6 +4,10 @@ key: "authoring.remote"
|
|
|
4
4
|
title: "Remote services: fleets, sign-in and connections per instance"
|
|
5
5
|
description: "Writing a harness system: Remote services: fleets, sign-in and connections per instance."
|
|
6
6
|
summary: "Fleets of remote services (MCP servers, APIs): sign-in, per-instance connections and credentials."
|
|
7
|
+
question: "How does a system reach a remote service people sign in to?"
|
|
8
|
+
when: "When each instance of a system calls a remote service (an MCP server, an API) with its own connection and credentials."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.topics.server"
|
|
8
12
|
next: "fs/authoring.client"
|
|
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: The client: renderers, inputs, resource views and pages."
|
|
17
21
|
---
|
|
18
22
|
|
|
19
|
-
##
|
|
23
|
+
## 26. Remote services: fleets, sign-in and connections per instance
|
|
20
24
|
|
|
21
25
|
A system that calls a remote service it was set up for (an MCP server) is a fleet: one instance per service, added from
|
|
22
26
|
the browser with its config (`instances: "many"` in `system.json`). A system that authors code calling many services
|
|
@@ -4,6 +4,10 @@ key: "authoring.remote.reference"
|
|
|
4
4
|
title: "Remote services: fleets, sign-in and connections per instance: reference"
|
|
5
5
|
description: "The API reference of Remote services: fleets, sign-in and connections per instance: every export with its TSDoc and signature."
|
|
6
6
|
summary: "Signatures and options for remote services: fleets, sign-in and connections per instance."
|
|
7
|
+
question: "What are the exact signatures and options in the API of remote services: fleets, sign-in and connections per instance?"
|
|
8
|
+
when: "When writing code for remote services: fleets, sign-in and connections per instance and an exact signature, field or option is needed."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.remote"
|
|
8
12
|
suggest: "none"
|
|
9
13
|
tags: ["authoring", "reference"]
|
|
@@ -4,6 +4,10 @@ key: "authoring.resources"
|
|
|
4
4
|
title: "Resources, embedders and sectioners"
|
|
5
5
|
description: "Writing a harness system: Resources, embedders and sectioners."
|
|
6
6
|
summary: "Resources, embedders and sectioners a system serves."
|
|
7
|
+
question: "How does a system serve files or documents as resources?"
|
|
8
|
+
when: "When a system serves files or documents as resources, or adds an embedder or a sectioner."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.topics.declare"
|
|
8
12
|
next: "fs/authoring.hub"
|
|
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: The hub contract."
|
|
17
21
|
---
|
|
18
22
|
|
|
19
|
-
##
|
|
23
|
+
## 19. Resources, embedders and sectioners
|
|
20
24
|
|
|
21
25
|
### Resources
|
|
22
26
|
|
|
@@ -4,6 +4,10 @@ key: "authoring.resources.reference"
|
|
|
4
4
|
title: "Resources, embedders and sectioners: reference"
|
|
5
5
|
description: "The API reference of Resources, embedders and sectioners: every export with its TSDoc and signature."
|
|
6
6
|
summary: "Signatures and options for resources, embedders and sectioners."
|
|
7
|
+
question: "What are the exact signatures and options in the API of resources, embedders and sectioners?"
|
|
8
|
+
when: "When writing code for resources, embedders and sectioners and an exact signature, field or option is needed."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.resources"
|
|
8
12
|
suggest: "none"
|
|
9
13
|
tags: ["authoring", "reference"]
|