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
package/systems/fs/context/authoring/parts/client.reference/{fnpillprops.md → textareaprops.md}
RENAMED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
# Generated by scripts/docs/authoring.ts from the authoring guide (npm run docs:authoring); do not edit.
|
|
3
|
-
key: "authoring.client.reference.
|
|
4
|
-
title: "The client: renderers, inputs, resource views and pages: reference:
|
|
5
|
-
description: "The client: renderers, inputs, resource views and pages: reference, the part on FnPillProps, ApprovalProps, ConversationCall, ConversationPiece, ConversationEntry, ConversationProps, ComposerProps, safeHref, RESOURCE_LINK, APP_PATH."
|
|
6
|
-
summary: "The client: renderers, inputs, resource views and pages: reference:
|
|
3
|
+
key: "authoring.client.reference.textareaprops"
|
|
4
|
+
title: "The client: renderers, inputs, resource views and pages: reference: TextareaProps … APP_PATH"
|
|
5
|
+
description: "The client: renderers, inputs, resource views and pages: reference, the part on TextareaProps, DialogProps, BannerProps, BadgeProps, SkeletonProps, FnPillProps, ApprovalProps, ConversationCall, ConversationPiece, ConversationEntry, ConversationProps, ComposerProps, safeHref, RESOURCE_LINK, APP_PATH."
|
|
6
|
+
summary: "The client: renderers, inputs, resource views and pages: reference: TextareaProps, DialogProps, BannerProps, BadgeProps, SkeletonProps, FnPillProps,…"
|
|
7
|
+
question: "What are the exact signatures and options of TextareaProps, DialogProps, BannerProps, BadgeProps, SkeletonProps, FnPillProps and 9 more?"
|
|
8
|
+
when: "When code uses TextareaProps, DialogProps, BannerProps, BadgeProps, SkeletonProps, FnPillProps and 9 more and needs an exact signature, field or option."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.client.reference"
|
|
8
12
|
suggest: "none"
|
|
9
13
|
tags: ["authoring", "reference"]
|
|
@@ -12,6 +16,56 @@ niche: "developer"
|
|
|
12
16
|
|
|
13
17
|
### Reference: the client: renderers, inputs, resource views and pages
|
|
14
18
|
|
|
19
|
+
#### `TextareaProps`
|
|
20
|
+
|
|
21
|
+
interface · `import { TextareaProps } from '@harness/sdk'`
|
|
22
|
+
|
|
23
|
+
Props of the app's growing text area (`v-model` is the text).
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
interface TextareaProps { modelValue: string; label?: string; hint?: string; error?: string; placeholder?: string; rows?: number; maxRows?: number; required?: boolean; disabled?: boolean; hideLabel?: boolean }
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
#### `DialogProps`
|
|
30
|
+
|
|
31
|
+
interface · `import { DialogProps } from '@harness/sdk'`
|
|
32
|
+
|
|
33
|
+
Props of the app's dialog (`v-model:open`); slots: the body, and `footer` for its buttons.
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
interface DialogProps { open: boolean; title: string; description?: string; width?: string }
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
#### `BannerProps`
|
|
40
|
+
|
|
41
|
+
interface · `import { BannerProps } from '@harness/sdk'`
|
|
42
|
+
|
|
43
|
+
Props of the app's banner; slots: the text, and `actions`.
|
|
44
|
+
|
|
45
|
+
```ts
|
|
46
|
+
interface BannerProps { tone?: PartTone; icon?: string | undefined }
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
#### `BadgeProps`
|
|
50
|
+
|
|
51
|
+
interface · `import { BadgeProps } from '@harness/sdk'`
|
|
52
|
+
|
|
53
|
+
Props of the app's badge (a status word with its dot, which pulses while `live`).
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
interface BadgeProps { tone?: PartTone; dot?: boolean; live?: boolean }
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
#### `SkeletonProps`
|
|
60
|
+
|
|
61
|
+
interface · `import { SkeletonProps } from '@harness/sdk'`
|
|
62
|
+
|
|
63
|
+
Props of the app's loading skeleton.
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
interface SkeletonProps { shape?: 'lines' | 'circle' | 'block'; lines?: number; size?: number }
|
|
67
|
+
```
|
|
68
|
+
|
|
15
69
|
#### `FnPillProps`
|
|
16
70
|
|
|
17
71
|
interface · `import { FnPillProps } from '@harness/sdk'`
|
|
@@ -4,6 +4,10 @@ key: "authoring.client.reference"
|
|
|
4
4
|
title: "The client: renderers, inputs, resource views and pages: reference"
|
|
5
5
|
description: "The API reference of The client: renderers, inputs, resource views and pages: every export with its TSDoc and signature."
|
|
6
6
|
summary: "Signatures and options for the client: renderers, inputs, resource views and pages."
|
|
7
|
+
question: "What are the exact signatures and options in the API of the client: renderers, inputs, resource views and pages?"
|
|
8
|
+
when: "When writing code for the client: renderers, inputs, resource views and pages and an exact signature, field or option is needed."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.client"
|
|
8
12
|
suggest: "none"
|
|
9
13
|
tags: ["authoring", "reference"]
|
|
@@ -13,12 +17,12 @@ choices:
|
|
|
13
17
|
when: "Pick this for client, ClientRenderers, ClientModule, Renderer, FnView, FnViewOf, AttachmentView, AttachmentViewOf, InputView, InputViewOf, MentionView, ResourceView, SystemClient, WithSystem,…"
|
|
14
18
|
- to: "fs/authoring.client.reference.resultview"
|
|
15
19
|
when: "Pick this for ResultView, ResultViewOf, RESULT_VIEW, APP_COMPONENTS, ResultViewProps, ResultLook, CHAT_HOST, ChatHost, RunOutcome, ChatStart, PageView, PageViewOf, PageHost, PAGE_HOST, PageLocation,…"
|
|
16
|
-
- to: "fs/authoring.client.reference.
|
|
17
|
-
when: "Pick this for
|
|
20
|
+
- to: "fs/authoring.client.reference.textareaprops"
|
|
21
|
+
when: "Pick this for TextareaProps, DialogProps, BannerProps, BadgeProps, SkeletonProps, FnPillProps, ApprovalProps, ConversationCall, ConversationPiece, ConversationEntry, ConversationProps,…"
|
|
18
22
|
---
|
|
19
23
|
|
|
20
24
|
This part is in 3 pieces; load the one you need:
|
|
21
25
|
|
|
22
26
|
- [client … VISUALS](context:fs/authoring.client.reference.client)
|
|
23
|
-
- [ResultView …
|
|
24
|
-
- [
|
|
27
|
+
- [ResultView … SelectProps](context:fs/authoring.client.reference.resultview)
|
|
28
|
+
- [TextareaProps … APP_PATH](context:fs/authoring.client.reference.textareaprops)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Generated by scripts/docs/authoring.ts from the authoring guide (npm run docs:authoring); do not edit.
|
|
3
|
+
key: "authoring.context.questions"
|
|
4
|
+
title: "How do I write a context item as one question?"
|
|
5
|
+
description: "Writing a harness system, Context and commands: How do I write a context item as one question?"
|
|
6
|
+
summary: "Each context item answers one question: question, when, lastModified and askedBy, and splitting an item that answers several."
|
|
7
|
+
question: "How do I write a context item as one question?"
|
|
8
|
+
when: "When writing or reviewing a system's context items, in the contract or a context/ folder: what question, when, lastModified and askedBy say, and when to split an item."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
11
|
+
parent: "fs/authoring.context"
|
|
12
|
+
fns: ["fs/read", "fs/write", "fs/edit", "fs/bash"]
|
|
13
|
+
tags: ["authoring"]
|
|
14
|
+
niche: "developer"
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
### How do I write a context item as one question?
|
|
18
|
+
|
|
19
|
+
The hub treats every context item as the answer to one question, and searches compare a request's meaning with each
|
|
20
|
+
item's question (or with its content, when it has none). So the question is how an item is found, and how the hub
|
|
21
|
+
tells that two items say the same thing. Give every item, in the contract or in a context file's header:
|
|
22
|
+
|
|
23
|
+
- `question`: the one question it answers, worded the way someone who needs it would ask, ending with its only `?`
|
|
24
|
+
("How do I keep a fn's results in a table?"). Not a title ("Tables"), and not two questions joined ("What is a
|
|
25
|
+
table, and how do I add one?").
|
|
26
|
+
- `when`: the situations it is for, written for a model that decides whether to read it ("When the person asks to
|
|
27
|
+
change how a fn retries."). Start with "When", and name what the request would be about rather than the words it
|
|
28
|
+
would use.
|
|
29
|
+
- `lastModified`: when its text last changed, in ms since the epoch (`Date.parse('2026-11-28')`); a context file may
|
|
30
|
+
write the date (`2026-11-28`) or an ISO time. Change it with the text. Without it the hub uses when it first saw
|
|
31
|
+
this version of the item. Of two items that say the same thing, the older is the one marked as a possible duplicate.
|
|
32
|
+
- `askedBy` (optional): who would ask it. `system` for how a piece of software or the harness works or is used (a
|
|
33
|
+
system's guides are this), `person` for a person's own life, work or choices, `research` for a fact that could be
|
|
34
|
+
looked up.
|
|
35
|
+
|
|
36
|
+
**One item per question.** When an item answers several questions (how to declare a thing, and how to test it, and
|
|
37
|
+
what goes wrong), write one item for each, and keep them together with links: a short overview item whose `imports`
|
|
38
|
+
name the others loads them all, each item's `fns` bring what its answer needs, and `parent`, `next` and `choices` let a
|
|
39
|
+
model walk from one to the next. The hub's metadata model splits a hub item that answers several questions on its own
|
|
40
|
+
(an admin can ask it to split a system's item too, which hides the original), so a system that writes one item per
|
|
41
|
+
question keeps control of its own wording.
|
|
42
|
+
|
|
43
|
+
**What the hub does with them.** Every item has a status: `active` (in use), `hidden`, `pending_approval` (an admin
|
|
44
|
+
chose to approve new context from systems first, in Admin › Context › Review), `pending_removal` (a new contract no
|
|
45
|
+
longer declares it; it keeps working until an admin confirms the removal), `not_applicable` and `pending_plan` (the
|
|
46
|
+
questions of plans `hub/ctx_plan` makes). A decision model compares a new or changed item with its nearest neighbours
|
|
47
|
+
and flags possible duplicates and contradictions for Review.
|
|
48
|
+
|
|
49
|
+
Fns for this: fn:fs/read, fn:fs/write, fn:fs/edit, fn:fs/bash.
|
|
@@ -4,19 +4,25 @@ key: "authoring.context"
|
|
|
4
4
|
title: "Context and commands"
|
|
5
5
|
description: "Writing a harness system: Context and commands."
|
|
6
6
|
summary: "Context items and /commands, static or dynamic, and the context/ folder."
|
|
7
|
+
question: "How does a system offer context items and /commands?"
|
|
8
|
+
when: "When a system offers guides, references or state as context, a /command, or a context/ folder of markdown items."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.topics.declare"
|
|
8
12
|
next: "fs/authoring.hooks"
|
|
9
13
|
fns: ["fs/read", "fs/write", "fs/edit", "fs/bash"]
|
|
10
14
|
tags: ["authoring"]
|
|
11
15
|
niche: "developer"
|
|
12
16
|
choices:
|
|
17
|
+
- to: "fs/authoring.context.questions"
|
|
18
|
+
when: "Pick this for: How do I write a context item as one question?"
|
|
13
19
|
- to: "fs/authoring.context.reference"
|
|
14
20
|
when: "Pick this when you need the exact signatures and options."
|
|
15
21
|
- to: "fs/authoring.hooks"
|
|
16
22
|
when: "Pick this to go on in order: Hooks."
|
|
17
23
|
---
|
|
18
24
|
|
|
19
|
-
##
|
|
25
|
+
## 14. Context and commands
|
|
20
26
|
|
|
21
27
|
**Context** is text for the LLM: a guide, a skill, a reference, the state of something. The hub suggests it when a
|
|
22
28
|
message is about it, an agent can always have it (`agent({ context })`), it can be injected into agents' system
|
|
@@ -45,6 +51,8 @@ prompts (`inject`), and a person loads it with a `/command`. `context({ descript
|
|
|
45
51
|
be used. `mode: 'tools' | 'static'` only when the text is true in one chat mode.
|
|
46
52
|
- An agent says how it takes its injected section: `agent({ injected: { detail: 'summary', maxTokens: 600 } })`, or
|
|
47
53
|
`injected: 'none'`. A hook says what its block means with `hook({ explains })`, injected with its system's items.
|
|
54
|
+
- `question`, `when`, `lastModified` and `askedBy`: the one question the item answers, when it is worth reading, when
|
|
55
|
+
its text last changed and who would ask it (**How do I write a context item as one question?**, below).
|
|
48
56
|
- For the graph contextor (the one small local models use): `weight` (0 to 2, default 1) is how much it counts,
|
|
49
57
|
`summary` a short form sent when the budget allows only a little, `parent` and `next` place it in a hierarchy or a
|
|
50
58
|
chain of pieces, and `links` are weighted edges (`{ to, relation, weight? }`) to other context, fns, named types or
|
|
@@ -59,6 +67,12 @@ context: {
|
|
|
59
67
|
description: 'How to keep notes here: search before adding, short titles, lowercase tags.',
|
|
60
68
|
content: 'Search with notes/find before adding a note, so you do not add one twice. Keep titles short and tags lowercase.',
|
|
61
69
|
fns: [fns.find, fns.add],
|
|
70
|
+
// the one question it answers (searches compare with it) and when a model should read it
|
|
71
|
+
question: 'How should notes be added and tagged here?',
|
|
72
|
+
when: 'When adding, titling or tagging a note.',
|
|
73
|
+
// when its text last changed, and who would ask it: a system's own guide is asked by `system`
|
|
74
|
+
lastModified: Date.parse('2026-11-28'),
|
|
75
|
+
askedBy: 'system',
|
|
62
76
|
// for the graph contextor: how much it counts, a short form for tight budgets, and what it relates to
|
|
63
77
|
weight: 1.2,
|
|
64
78
|
summary: 'Search before adding; short titles; lowercase tags.',
|
|
@@ -102,6 +116,10 @@ key: guide
|
|
|
102
116
|
title: Notes guide
|
|
103
117
|
description: Where to start with notes.
|
|
104
118
|
summary: The index of the notes guide; pick the part you need.
|
|
119
|
+
question: How do I keep and find notes?
|
|
120
|
+
when: When the person wants to write down, change or look up a note.
|
|
121
|
+
lastModified: 2026-11-28
|
|
122
|
+
askedBy: system
|
|
105
123
|
choices:
|
|
106
124
|
- to: notes/guide.adding
|
|
107
125
|
when: You are adding or editing a note.
|
|
@@ -116,4 +134,8 @@ with `HARNESS_CONTEXT_WATCH=true` (development) it watches the folder and sends
|
|
|
116
134
|
item to one idea with a short summary, start with a shallow index whose `choices` are worded as decisions, and let a
|
|
117
135
|
small model walk the graph a step at a time instead of reading one long list.
|
|
118
136
|
|
|
137
|
+
Each of these questions is an item of its own; load the one you need:
|
|
138
|
+
|
|
139
|
+
- [How do I write a context item as one question?](context:fs/authoring.context.questions)
|
|
140
|
+
|
|
119
141
|
Fns for this: fn:fs/read, fn:fs/write, fn:fs/edit, fn:fs/bash.
|
|
@@ -4,6 +4,10 @@ key: "authoring.context.reference"
|
|
|
4
4
|
title: "Context and commands: reference"
|
|
5
5
|
description: "The API reference of Context and commands: every export with its TSDoc and signature."
|
|
6
6
|
summary: "Signatures and options for context and commands."
|
|
7
|
+
question: "What are the exact signatures and options in the API of context and commands?"
|
|
8
|
+
when: "When writing code for context and commands and an exact signature, field or option is needed."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.context"
|
|
8
12
|
suggest: "none"
|
|
9
13
|
tags: ["authoring", "reference"]
|
|
@@ -239,10 +243,22 @@ interface ContextInput<Args extends Record<string, ArgDef<boolean>>> {
|
|
|
239
243
|
next?: AnyContextRef;
|
|
240
244
|
/** Weighted links to other context, fns, types and resources. */
|
|
241
245
|
links?: ContextLinkDef[];
|
|
246
|
+
/**
|
|
247
|
+
* The one question it answers, worded the way someone who needs it would ask ("How do I keep a fn's results in a
|
|
248
|
+
* table?"). Searches compare a request's meaning with each item's question, so a good question is how an item is
|
|
249
|
+
* found. Without one the hub searches its content instead. Write one item per question.
|
|
250
|
+
*/
|
|
251
|
+
question?: string;
|
|
252
|
+
/** When reading it is the right thing to do, for a model: "When the person asks to change how a fn retries." */
|
|
253
|
+
when?: string;
|
|
254
|
+
/** When its text last changed, in ms since the epoch (`Date.parse('2026-11-28')`); the hub uses when it first saw this version when absent. */
|
|
255
|
+
lastModified?: number;
|
|
256
|
+
/** Who would ask its question: `person` (their own choices), `system` (how software or the harness works: a system's guides) or `research` (a fact to look up). */
|
|
257
|
+
askedBy?: ContextAskedBy;
|
|
242
258
|
}
|
|
243
259
|
```
|
|
244
260
|
|
|
245
|
-
Refers to: [`Audience`](context:fs/authoring.core-types.primitives-ts#core-audience).
|
|
261
|
+
Refers to: [`Audience`](context:fs/authoring.core-types.primitives-ts#core-audience), [`ContextAskedBy`](context:fs/authoring.core-types.context-questions-ts#core-contextaskedby).
|
|
246
262
|
|
|
247
263
|
#### `ContextDef`
|
|
248
264
|
|
|
@@ -277,12 +293,20 @@ interface ContextDef<A, Dynamic extends boolean> {
|
|
|
277
293
|
/** The next piece of a chain (a long text in ordered pieces). */
|
|
278
294
|
readonly next: AnyContextRef | undefined;
|
|
279
295
|
readonly links: readonly ContextLinkDef[];
|
|
296
|
+
/** The one question it answers, as someone who needs it would ask; searches compare with it. */
|
|
297
|
+
readonly question: string | undefined;
|
|
298
|
+
/** When it is the right thing to read, for a model ("When the person asks to change how a fn retries."). */
|
|
299
|
+
readonly when: string | undefined;
|
|
300
|
+
/** When its text last changed (ms since the epoch); the hub uses when it first saw this version when absent. */
|
|
301
|
+
readonly lastModified: number | undefined;
|
|
302
|
+
/** Who would ask its question: `person`, `system` (a system's own guides) or `research`. */
|
|
303
|
+
readonly askedBy: ContextAskedBy | undefined;
|
|
280
304
|
/** Phantom: the command's args. Never set at runtime. */
|
|
281
305
|
readonly argsType?: A;
|
|
282
306
|
}
|
|
283
307
|
```
|
|
284
308
|
|
|
285
|
-
Refers to: [`Audience`](context:fs/authoring.core-types.primitives-ts#core-audience).
|
|
309
|
+
Refers to: [`Audience`](context:fs/authoring.core-types.primitives-ts#core-audience), [`ContextAskedBy`](context:fs/authoring.core-types.context-questions-ts#core-contextaskedby).
|
|
286
310
|
|
|
287
311
|
#### `AnyContextDef`
|
|
288
312
|
|
|
@@ -299,7 +323,7 @@ type · `import { ContextImpl } from '@harness/sdk'`
|
|
|
299
323
|
A dynamic context's implementation: its content for these args.
|
|
300
324
|
|
|
301
325
|
```ts
|
|
302
|
-
type ContextImpl<A, Cfg = unknown, O extends
|
|
326
|
+
type ContextImpl<A, Cfg = unknown, O extends AnyOwn = Own> = (args: A, ctx: SystemCtx<Cfg, O> & Partial<AskerCtx> & Pick<AskerCtx, 'user' | 'time'>) => Promise<string>;
|
|
303
327
|
```
|
|
304
328
|
|
|
305
329
|
#### `ContextLinkDef`
|
|
@@ -4,6 +4,10 @@ key: "authoring.contract"
|
|
|
4
4
|
title: "The contract"
|
|
5
5
|
description: "Writing a harness system: The contract."
|
|
6
6
|
summary: "The contract in shared/index.ts: system(), with() and its sections."
|
|
7
|
+
question: "How do I write a system's contract in shared/index.ts?"
|
|
8
|
+
when: "When writing or changing a system's shared/index.ts: system(), with() and the sections a contract has."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.topics.begin"
|
|
8
12
|
next: "fs/authoring.gin"
|
|
9
13
|
fns: ["fs/read", "fs/write", "fs/edit", "fs/bash"]
|
|
@@ -32,6 +36,12 @@ _From `scripts/docs/example/shared/index.ts`:_
|
|
|
32
36
|
description: 'How to keep notes here: search before adding, short titles, lowercase tags.',
|
|
33
37
|
content: 'Search with notes/find before adding a note, so you do not add one twice. Keep titles short and tags lowercase.',
|
|
34
38
|
fns: [fns.find, fns.add],
|
|
39
|
+
// the one question it answers (searches compare with it) and when a model should read it
|
|
40
|
+
question: 'How should notes be added and tagged here?',
|
|
41
|
+
when: 'When adding, titling or tagging a note.',
|
|
42
|
+
// when its text last changed, and who would ask it: a system's own guide is asked by `system`
|
|
43
|
+
lastModified: Date.parse('2026-11-28'),
|
|
44
|
+
askedBy: 'system',
|
|
35
45
|
// for the graph contextor: how much it counts, a short form for tight budgets, and what it relates to
|
|
36
46
|
weight: 1.2,
|
|
37
47
|
summary: 'Search before adding; short titles; lowercase tags.',
|
|
@@ -4,6 +4,10 @@ key: "authoring.contract.reference"
|
|
|
4
4
|
title: "The contract: reference"
|
|
5
5
|
description: "The API reference of The contract: every export with its TSDoc and signature."
|
|
6
6
|
summary: "Signatures and options for the contract."
|
|
7
|
+
question: "What are the exact signatures and options in the API of the contract?"
|
|
8
|
+
when: "When writing code for the contract and an exact signature, field or option is needed."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.contract"
|
|
8
12
|
suggest: "none"
|
|
9
13
|
tags: ["authoring", "reference"]
|
|
@@ -59,6 +63,11 @@ interface SystemContract<N extends string, C extends ContractShape> extends Syst
|
|
|
59
63
|
readonly defs: C;
|
|
60
64
|
/** Add declarations: any sections, given directly or built from the refs so far. */
|
|
61
65
|
with<const P extends Partial<ContractShape>>(part: P | ((self: SystemRefs<N, C>) => P)): SystemContract<N, Merge<C, P>>;
|
|
66
|
+
/**
|
|
67
|
+
* Type an implementation against this contract, with the store's tables as `Db` (`notes.implement<NotesDb>({ ... })`),
|
|
68
|
+
* so `ctx.store` is Kysely over them. It returns the implementation as given; `SystemImpl<C, Db>` is the same type.
|
|
69
|
+
*/
|
|
70
|
+
readonly implement: Implement<C>;
|
|
62
71
|
}
|
|
63
72
|
```
|
|
64
73
|
|
|
@@ -117,6 +126,11 @@ interface ContractShape {
|
|
|
117
126
|
* fns act as them. `undefined` for a system everyone shares. The implementation then serves `connect`.
|
|
118
127
|
*/
|
|
119
128
|
connect: ConnectDecl | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* The system's own SQL store (`store()`), or `undefined` for a system that keeps nothing of its own. Its code sees it
|
|
131
|
+
* as `ctx.store`, typed by the table interface given to `implement<Db>`.
|
|
132
|
+
*/
|
|
133
|
+
store: StoreDecl | undefined;
|
|
120
134
|
/** The system's name (`schedule`), so what is computed from the contract alone (the refs its ctxs take) is named. */
|
|
121
135
|
system: string;
|
|
122
136
|
/** Its declared pages, by segment (`system(name, { pages })`), so links to them are refs (`contract.page.item`). */
|
|
@@ -124,16 +138,16 @@ interface ContractShape {
|
|
|
124
138
|
}
|
|
125
139
|
```
|
|
126
140
|
|
|
127
|
-
Refers to: [`ConnectDecl`](context:fs/authoring.core-types.connections-ts#core-connectdecl), [`SystemPageDecl`](context:fs/authoring.core-types.system-pages-ts#core-systempagedecl).
|
|
141
|
+
Refers to: [`ConnectDecl`](context:fs/authoring.core-types.connections-ts#core-connectdecl), [`StoreDecl`](context:fs/authoring.core-types.stores-ts#core-storedecl), [`SystemPageDecl`](context:fs/authoring.core-types.system-pages-ts#core-systempagedecl).
|
|
128
142
|
|
|
129
143
|
#### `ContractSection`
|
|
130
144
|
|
|
131
145
|
type · `import { ContractSection } from '@harness/sdk'`
|
|
132
146
|
|
|
133
|
-
The sections of a contract that add named declarations (all but `config`, `connect`, `system` and `pages`).
|
|
147
|
+
The sections of a contract that add named declarations (all but `config`, `connect`, `store`, `system` and `pages`).
|
|
134
148
|
|
|
135
149
|
```ts
|
|
136
|
-
type ContractSection = Exclude<keyof ContractShape, 'config' | 'connect' | 'system' | 'pages'>;
|
|
150
|
+
type ContractSection = Exclude<keyof ContractShape, 'config' | 'connect' | 'store' | 'system' | 'pages'>;
|
|
137
151
|
```
|
|
138
152
|
|
|
139
153
|
#### `CONTRACT_SECTIONS`
|
|
@@ -167,6 +181,7 @@ interface EmptyContract<N extends string = string, S extends string = never> {
|
|
|
167
181
|
config: GinType<{}>;
|
|
168
182
|
types: {}; settings: {}; attachments: {}; kinds: {}; fns: {}; context: {}; hooks: {}; mentions: {}; sectioners: {}; actions: {}; providers: {};
|
|
169
183
|
connect: undefined;
|
|
184
|
+
store: undefined;
|
|
170
185
|
system: N;
|
|
171
186
|
pages: { [K in S]: SystemPageDecl };
|
|
172
187
|
}
|
|
@@ -178,8 +193,8 @@ Refers to: [`SystemPageDecl`](context:fs/authoring.core-types.system-pages-ts#co
|
|
|
178
193
|
|
|
179
194
|
type · `import { Merge } from '@harness/sdk'`
|
|
180
195
|
|
|
181
|
-
A contract with more sections merged in: `config` and `
|
|
182
|
-
declared once, by `system()`), every other section adds to what was declared.
|
|
196
|
+
A contract with more sections merged in: `config`, `connect` and `store` are replaced, `system` and `pages` are kept
|
|
197
|
+
(they are declared once, by `system()`), every other section adds to what was declared.
|
|
183
198
|
|
|
184
199
|
```ts
|
|
185
200
|
type Merge<C extends ContractShape, P extends Partial<ContractShape>> = {
|
|
@@ -187,13 +202,15 @@ type Merge<C extends ContractShape, P extends Partial<ContractShape>> = {
|
|
|
187
202
|
? (P extends { config: infer X extends GinType<object> } ? X : C['config'])
|
|
188
203
|
: K extends 'connect'
|
|
189
204
|
? (P extends { connect: infer X extends ConnectDecl } ? X : C['connect'])
|
|
190
|
-
: K extends '
|
|
191
|
-
? C[
|
|
192
|
-
:
|
|
205
|
+
: K extends 'store'
|
|
206
|
+
? (P extends { store: infer X extends StoreDecl } ? X : C['store'])
|
|
207
|
+
: K extends 'system' | 'pages'
|
|
208
|
+
? C[K]
|
|
209
|
+
: Simplify<C[K] & (K extends keyof P ? NonNullable<P[K]> : {})>;
|
|
193
210
|
};
|
|
194
211
|
```
|
|
195
212
|
|
|
196
|
-
Refers to: [`ConnectDecl`](context:fs/authoring.core-types.connections-ts#core-connectdecl).
|
|
213
|
+
Refers to: [`ConnectDecl`](context:fs/authoring.core-types.connections-ts#core-connectdecl), [`StoreDecl`](context:fs/authoring.core-types.stores-ts#core-storedecl).
|
|
197
214
|
|
|
198
215
|
#### `AnyContract`
|
|
199
216
|
|
|
@@ -4,6 +4,10 @@ key: "authoring.core-types.access-ts"
|
|
|
4
4
|
title: "Core types: From packages/core/src/access.ts"
|
|
5
5
|
description: "Core types, the part on From packages/core/src/access.ts."
|
|
6
6
|
summary: "Core types: From packages/core/src/access.ts."
|
|
7
|
+
question: "Which core types does packages/core/src/access.ts define, with their fields?"
|
|
8
|
+
when: "When code uses a core type from packages/core/src/access.ts."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.core-types"
|
|
8
12
|
next: "fs/authoring.core-types.admin-ts"
|
|
9
13
|
suggest: "none"
|
|
@@ -4,6 +4,10 @@ key: "authoring.core-types.admin-ts"
|
|
|
4
4
|
title: "Core types: From packages/core/src/admin.ts"
|
|
5
5
|
description: "Core types, the part on From packages/core/src/admin.ts."
|
|
6
6
|
summary: "Core types: From packages/core/src/admin.ts."
|
|
7
|
+
question: "Which core types does packages/core/src/admin.ts define, with their fields?"
|
|
8
|
+
when: "When code uses a core type from packages/core/src/admin.ts."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.core-types"
|
|
8
12
|
next: "fs/authoring.core-types.api-index-ts"
|
|
9
13
|
suggest: "none"
|
|
@@ -28,7 +32,7 @@ type HubModelInfo = {
|
|
|
28
32
|
name: string;
|
|
29
33
|
capabilities: string[];
|
|
30
34
|
tier: "flagship" | "efficient" | "legacy" | "experimental";
|
|
31
|
-
roles: ("ocr" | "chat" | "transcribe" | "dictate" | "speak" | "describe" | "decide")[];
|
|
35
|
+
roles: ("metadata" | "ocr" | "chat" | "transcribe" | "dictate" | "speak" | "describe" | "decide" | "plan")[];
|
|
32
36
|
contextWindow?: number | undefined;
|
|
33
37
|
pricing?: {
|
|
34
38
|
input: number;
|
|
@@ -4,6 +4,10 @@ key: "authoring.core-types.api-index-ts"
|
|
|
4
4
|
title: "Core types: From packages/core/src/api-index.ts"
|
|
5
5
|
description: "Core types, the part on From packages/core/src/api-index.ts."
|
|
6
6
|
summary: "Core types: From packages/core/src/api-index.ts."
|
|
7
|
+
question: "Which core types does packages/core/src/api-index.ts define, with their fields?"
|
|
8
|
+
when: "When code uses a core type from packages/core/src/api-index.ts."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.core-types"
|
|
8
12
|
next: "fs/authoring.core-types.approvals-ts"
|
|
9
13
|
suggest: "none"
|
|
@@ -4,6 +4,10 @@ key: "authoring.core-types.approvals-ts"
|
|
|
4
4
|
title: "Core types: From packages/core/src/approvals.ts"
|
|
5
5
|
description: "Core types, the part on From packages/core/src/approvals.ts."
|
|
6
6
|
summary: "Core types: From packages/core/src/approvals.ts."
|
|
7
|
+
question: "Which core types does packages/core/src/approvals.ts define, with their fields?"
|
|
8
|
+
when: "When code uses a core type from packages/core/src/approvals.ts."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.core-types"
|
|
8
12
|
next: "fs/authoring.core-types.auto-pair-ts"
|
|
9
13
|
suggest: "none"
|
|
@@ -106,7 +110,7 @@ type ApprovalPreview = {
|
|
|
106
110
|
grants?: {
|
|
107
111
|
hub: ("search" | "embed" | "fns" | "settings" | "state" | "resources" | "approvals" | "connections" | "decide" | "data" | "runs" | "ai")[];
|
|
108
112
|
models?: {
|
|
109
|
-
roles?: ("ocr" | "chat" | "transcribe" | "dictate" | "speak" | "describe" | "decide")[] | undefined;
|
|
113
|
+
roles?: ("metadata" | "ocr" | "chat" | "transcribe" | "dictate" | "speak" | "describe" | "decide" | "plan")[] | undefined;
|
|
110
114
|
models?: string[] | undefined;
|
|
111
115
|
perRun?: number | undefined;
|
|
112
116
|
perDay?: number | undefined;
|
|
@@ -182,8 +186,8 @@ type ApprovalPreview = {
|
|
|
182
186
|
lead?: string | undefined;
|
|
183
187
|
tail?: string | undefined;
|
|
184
188
|
}[];
|
|
185
|
-
grants?: "
|
|
186
|
-
config?: "
|
|
189
|
+
grants?: "changed" | "added" | "widened" | "narrowed" | undefined;
|
|
190
|
+
config?: "changed" | "removed" | "added" | undefined;
|
|
187
191
|
} | undefined;
|
|
188
192
|
};
|
|
189
193
|
```
|
|
@@ -283,7 +287,7 @@ type ApprovedRun = {
|
|
|
283
287
|
grants?: {
|
|
284
288
|
hub: ("search" | "embed" | "fns" | "settings" | "state" | "resources" | "approvals" | "connections" | "decide" | "data" | "runs" | "ai")[];
|
|
285
289
|
models?: {
|
|
286
|
-
roles?: ("ocr" | "chat" | "transcribe" | "dictate" | "speak" | "describe" | "decide")[] | undefined;
|
|
290
|
+
roles?: ("metadata" | "ocr" | "chat" | "transcribe" | "dictate" | "speak" | "describe" | "decide" | "plan")[] | undefined;
|
|
287
291
|
models?: string[] | undefined;
|
|
288
292
|
perRun?: number | undefined;
|
|
289
293
|
perDay?: number | undefined;
|
|
@@ -359,8 +363,8 @@ type ApprovedRun = {
|
|
|
359
363
|
lead?: string | undefined;
|
|
360
364
|
tail?: string | undefined;
|
|
361
365
|
}[];
|
|
362
|
-
grants?: "
|
|
363
|
-
config?: "
|
|
366
|
+
grants?: "changed" | "added" | "widened" | "narrowed" | undefined;
|
|
367
|
+
config?: "changed" | "removed" | "added" | undefined;
|
|
364
368
|
} | undefined;
|
|
365
369
|
};
|
|
366
370
|
};
|
|
@@ -434,7 +438,7 @@ type PairingGrantRequest = {
|
|
|
434
438
|
grants?: {
|
|
435
439
|
hub: ("search" | "embed" | "fns" | "settings" | "state" | "resources" | "approvals" | "connections" | "decide" | "data" | "runs" | "ai")[];
|
|
436
440
|
models?: {
|
|
437
|
-
roles?: ("ocr" | "chat" | "transcribe" | "dictate" | "speak" | "describe" | "decide")[] | undefined;
|
|
441
|
+
roles?: ("metadata" | "ocr" | "chat" | "transcribe" | "dictate" | "speak" | "describe" | "decide" | "plan")[] | undefined;
|
|
438
442
|
models?: string[] | undefined;
|
|
439
443
|
perRun?: number | undefined;
|
|
440
444
|
perDay?: number | undefined;
|
|
@@ -4,6 +4,10 @@ key: "authoring.core-types.auto-pair-ts"
|
|
|
4
4
|
title: "Core types: From packages/core/src/auto-pair.ts"
|
|
5
5
|
description: "Core types, the part on From packages/core/src/auto-pair.ts."
|
|
6
6
|
summary: "Core types: From packages/core/src/auto-pair.ts."
|
|
7
|
+
question: "Which core types does packages/core/src/auto-pair.ts define, with their fields?"
|
|
8
|
+
when: "When code uses a core type from packages/core/src/auto-pair.ts."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.core-types"
|
|
8
12
|
next: "fs/authoring.core-types.checks-ts"
|
|
9
13
|
suggest: "none"
|
|
@@ -4,6 +4,10 @@ key: "authoring.core-types.checks-ts"
|
|
|
4
4
|
title: "Core types: From packages/core/src/checks.ts"
|
|
5
5
|
description: "Core types, the part on From packages/core/src/checks.ts."
|
|
6
6
|
summary: "Core types: From packages/core/src/checks.ts."
|
|
7
|
+
question: "Which core types does packages/core/src/checks.ts define, with their fields?"
|
|
8
|
+
when: "When code uses a core type from packages/core/src/checks.ts."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.core-types"
|
|
8
12
|
next: "fs/authoring.core-types.claims-ts"
|
|
9
13
|
suggest: "none"
|
|
@@ -4,6 +4,10 @@ key: "authoring.core-types.claims-ts"
|
|
|
4
4
|
title: "Core types: From packages/core/src/claims.ts"
|
|
5
5
|
description: "Core types, the part on From packages/core/src/claims.ts."
|
|
6
6
|
summary: "Core types: From packages/core/src/claims.ts."
|
|
7
|
+
question: "Which core types does packages/core/src/claims.ts define, with their fields?"
|
|
8
|
+
when: "When code uses a core type from packages/core/src/claims.ts."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.core-types"
|
|
8
12
|
next: "fs/authoring.core-types.config-secrets-ts"
|
|
9
13
|
suggest: "none"
|
|
@@ -4,6 +4,10 @@ key: "authoring.core-types.config-secrets-ts"
|
|
|
4
4
|
title: "Core types: From packages/core/src/config-secrets.ts"
|
|
5
5
|
description: "Core types, the part on From packages/core/src/config-secrets.ts."
|
|
6
6
|
summary: "Core types: From packages/core/src/config-secrets.ts."
|
|
7
|
+
question: "Which core types does packages/core/src/config-secrets.ts define, with their fields?"
|
|
8
|
+
when: "When code uses a core type from packages/core/src/config-secrets.ts."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.core-types"
|
|
8
12
|
next: "fs/authoring.core-types.connections-ts"
|
|
9
13
|
suggest: "none"
|
|
@@ -4,6 +4,10 @@ key: "authoring.core-types.connections-ts"
|
|
|
4
4
|
title: "Core types: From packages/core/src/connections.ts"
|
|
5
5
|
description: "Core types, the part on From packages/core/src/connections.ts."
|
|
6
6
|
summary: "Core types: From packages/core/src/connections.ts."
|
|
7
|
+
question: "Which core types does packages/core/src/connections.ts define, with their fields?"
|
|
8
|
+
when: "When code uses a core type from packages/core/src/connections.ts."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.core-types"
|
|
8
12
|
next: "fs/authoring.core-types.context-files-ts"
|
|
9
13
|
suggest: "none"
|
|
@@ -4,6 +4,10 @@ key: "authoring.core-types.context-files-ts"
|
|
|
4
4
|
title: "Core types: From packages/core/src/context-files.ts"
|
|
5
5
|
description: "Core types, the part on From packages/core/src/context-files.ts."
|
|
6
6
|
summary: "Core types: From packages/core/src/context-files.ts."
|
|
7
|
+
question: "Which core types does packages/core/src/context-files.ts define, with their fields?"
|
|
8
|
+
when: "When code uses a core type from packages/core/src/context-files.ts."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.core-types"
|
|
8
12
|
next: "fs/authoring.core-types.context-graph-ts"
|
|
9
13
|
suggest: "none"
|
|
@@ -33,6 +37,7 @@ type ContextFileHeader = {
|
|
|
33
37
|
suggest: "user" | "llm" | "none" | "both";
|
|
34
38
|
visible: "user" | "llm" | "none" | "both";
|
|
35
39
|
tags: string[];
|
|
40
|
+
when?: string | undefined;
|
|
36
41
|
title?: string | undefined;
|
|
37
42
|
links?: {
|
|
38
43
|
to: {
|
|
@@ -53,8 +58,10 @@ type ContextFileHeader = {
|
|
|
53
58
|
weight: number;
|
|
54
59
|
}[] | undefined;
|
|
55
60
|
weight?: number | undefined;
|
|
61
|
+
question?: string | undefined;
|
|
56
62
|
niche?: "admin" | "developer" | "reference" | undefined;
|
|
57
63
|
next?: `${string}/${string}` | undefined;
|
|
64
|
+
askedBy?: "person" | "system" | "research" | undefined;
|
|
58
65
|
inject?: {
|
|
59
66
|
into: string[];
|
|
60
67
|
order: number;
|
|
@@ -75,6 +82,7 @@ type ContextFileHeader = {
|
|
|
75
82
|
to: `${string}/${string}`;
|
|
76
83
|
when: string;
|
|
77
84
|
}[] | undefined;
|
|
85
|
+
lastModified?: number | undefined;
|
|
78
86
|
};
|
|
79
87
|
```
|
|
80
88
|
|
|
@@ -4,8 +4,12 @@ key: "authoring.core-types.context-graph-ts"
|
|
|
4
4
|
title: "Core types: From packages/core/src/context-graph.ts"
|
|
5
5
|
description: "Core types, the part on From packages/core/src/context-graph.ts."
|
|
6
6
|
summary: "Core types: From packages/core/src/context-graph.ts."
|
|
7
|
+
question: "Which core types does packages/core/src/context-graph.ts define, with their fields?"
|
|
8
|
+
when: "When code uses a core type from packages/core/src/context-graph.ts."
|
|
9
|
+
askedBy: "system"
|
|
10
|
+
lastModified: "2026-11-28"
|
|
7
11
|
parent: "fs/authoring.core-types"
|
|
8
|
-
next: "fs/authoring.core-types.
|
|
12
|
+
next: "fs/authoring.core-types.context-questions-ts"
|
|
9
13
|
suggest: "none"
|
|
10
14
|
tags: ["authoring", "reference"]
|
|
11
15
|
niche: "developer"
|