fnloom 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (593) hide show
  1. package/README.md +27 -20
  2. package/package.json +14 -11
  3. package/packages/build/package.json +2 -2
  4. package/packages/build/src/tests.ts +2 -2
  5. package/packages/cli/package.json +1 -1
  6. package/packages/cli/src/cli.ts +2 -2
  7. package/packages/cli/src/command.ts +2 -2
  8. package/packages/cli/src/commands/install.ts +1 -1
  9. package/packages/cli/src/commands/mcp.ts +6 -6
  10. package/packages/cli/src/commands/store.ts +3 -3
  11. package/packages/cli/src/hub.ts +25 -25
  12. package/packages/cli/src/index.ts +1 -1
  13. package/packages/cli/src/io.ts +2 -2
  14. package/packages/cli/src/local.ts +7 -7
  15. package/packages/cli/src/premade.ts +1 -1
  16. package/packages/core/package.json +4 -4
  17. package/packages/core/src/auto-pair.ts +1 -1
  18. package/packages/core/src/connections.ts +1 -14
  19. package/packages/core/src/context-graph.ts +1 -1
  20. package/packages/core/src/data.ts +1 -1
  21. package/packages/core/src/gin-a.ts +13 -2
  22. package/packages/core/src/https.ts +2 -2
  23. package/packages/core/src/identity.ts +1 -1
  24. package/packages/core/src/image-embeddings.ts +1 -1
  25. package/packages/core/src/index.ts +5 -7
  26. package/packages/core/src/link.ts +1 -1
  27. package/packages/core/src/manifest.ts +2 -2
  28. package/packages/core/src/mention-search.ts +1 -1
  29. package/packages/core/src/model-calls.ts +1 -1
  30. package/packages/core/src/package.ts +1 -1
  31. package/packages/core/src/ports.ts +2 -2
  32. package/packages/core/src/query.ts +1 -1
  33. package/packages/core/src/records/chat.ts +1 -1
  34. package/packages/core/src/records/runs.ts +1 -1
  35. package/packages/core/src/records/spend.ts +4 -0
  36. package/packages/core/src/registries.ts +9 -3
  37. package/packages/core/src/sso.ts +2 -2
  38. package/packages/core/src/stores.ts +1 -1
  39. package/packages/core/src/suggestions.ts +2 -2
  40. package/packages/core/src/system-pages.ts +32 -6
  41. package/packages/core/src/tables.ts +233 -0
  42. package/packages/core/src/visuals.ts +47 -139
  43. package/packages/core/src/web.ts +2 -2
  44. package/packages/core/src/widgets-v1.ts +78 -1
  45. package/packages/hub/package.json +13 -11
  46. package/packages/hub/src/api/admin-ops.ts +5 -5
  47. package/packages/hub/src/api/auth.ts +2 -2
  48. package/packages/hub/src/api/https.ts +6 -6
  49. package/packages/hub/src/api/identities.ts +1 -1
  50. package/packages/hub/src/api/reads.ts +1 -1
  51. package/packages/hub/src/api/secrets.ts +1 -1
  52. package/packages/hub/src/api/serve.ts +2 -2
  53. package/packages/hub/src/api/sso-route.ts +2 -2
  54. package/packages/hub/src/api/sso.ts +6 -6
  55. package/packages/hub/src/api/store-ops.ts +9 -2
  56. package/packages/hub/src/api/testing/rig.ts +1 -1
  57. package/packages/hub/src/api/tls.ts +2 -2
  58. package/packages/hub/src/api/web/auth.ts +1 -1
  59. package/packages/hub/src/api/web/find.ts +1 -1
  60. package/packages/hub/src/api/web/pages.ts +4 -3
  61. package/packages/hub/src/api/web/pickers.ts +4 -4
  62. package/packages/hub/src/boot/env.ts +82 -78
  63. package/packages/hub/src/boot/hub-fns.ts +1 -1
  64. package/packages/hub/src/boot/identity.ts +2 -2
  65. package/packages/hub/src/boot/index.ts +1 -1
  66. package/packages/hub/src/boot/info.ts +1 -1
  67. package/packages/hub/src/boot/keys.ts +6 -6
  68. package/packages/hub/src/boot/log.ts +4 -4
  69. package/packages/hub/src/boot/modules.ts +4 -4
  70. package/packages/hub/src/boot/services.ts +9 -9
  71. package/packages/hub/src/boot/start.ts +23 -23
  72. package/packages/hub/src/catalog/catalog.ts +3 -2
  73. package/packages/hub/src/chat/cache.ts +1 -1
  74. package/packages/hub/src/chat/chat.ts +1 -1
  75. package/packages/hub/src/chat/compare.ts +2 -2
  76. package/packages/hub/src/chat/deliveries.ts +1 -1
  77. package/packages/hub/src/chat/deps.ts +3 -3
  78. package/packages/hub/src/chat/enrich.ts +7 -7
  79. package/packages/hub/src/chat/env.ts +20 -20
  80. package/packages/hub/src/chat/mention-requests.ts +1 -1
  81. package/packages/hub/src/chat/mention-search.ts +1 -1
  82. package/packages/hub/src/chat/mentions.ts +3 -3
  83. package/packages/hub/src/chat/notifications.ts +2 -2
  84. package/packages/hub/src/chat/presence.ts +2 -2
  85. package/packages/hub/src/chat/sessions.ts +2 -2
  86. package/packages/hub/src/chat/suggestions.ts +8 -8
  87. package/packages/hub/src/chat/testing.ts +1 -1
  88. package/packages/hub/src/chat/turns.ts +6 -6
  89. package/packages/hub/src/chat/undo.ts +1 -1
  90. package/packages/hub/src/connections/create.ts +1 -1
  91. package/packages/hub/src/connections/env.ts +2 -2
  92. package/packages/hub/src/connections/service.ts +5 -9
  93. package/packages/hub/src/contextor/contextors.ts +9 -9
  94. package/packages/hub/src/contextor/crawl.ts +1 -1
  95. package/packages/hub/src/contextor/create.ts +5 -5
  96. package/packages/hub/src/contextor/dynamic.ts +5 -5
  97. package/packages/hub/src/contextor/env.ts +46 -46
  98. package/packages/hub/src/contextor/injected.ts +1 -1
  99. package/packages/hub/src/contextor/limits.ts +9 -9
  100. package/packages/hub/src/contextor/planner.ts +11 -11
  101. package/packages/hub/src/contextor/testing.ts +1 -1
  102. package/packages/hub/src/data/env.ts +3 -3
  103. package/packages/hub/src/data/service.ts +5 -5
  104. package/packages/hub/src/execution/agent.ts +8 -8
  105. package/packages/hub/src/execution/ai.ts +7 -7
  106. package/packages/hub/src/execution/create.ts +11 -6
  107. package/packages/hub/src/execution/env.ts +16 -16
  108. package/packages/hub/src/execution/executors.ts +2 -2
  109. package/packages/hub/src/execution/gateway.ts +1 -1
  110. package/packages/hub/src/execution/index.ts +1 -1
  111. package/packages/hub/src/execution/ledger.ts +2 -2
  112. package/packages/hub/src/execution/limits.ts +2 -2
  113. package/packages/hub/src/execution/models.ts +2 -2
  114. package/packages/hub/src/execution/ports.ts +1 -1
  115. package/packages/hub/src/execution/providers.ts +55 -11
  116. package/packages/hub/src/execution/queues.ts +6 -6
  117. package/packages/hub/src/execution/runs.ts +10 -10
  118. package/packages/hub/src/execution/stream-guard.ts +2 -2
  119. package/packages/hub/src/execution/testing.ts +5 -5
  120. package/packages/hub/src/execution/wire.ts +3 -3
  121. package/packages/hub/src/fns/auto.ts +2 -2
  122. package/packages/hub/src/fns/client-logs.ts +2 -2
  123. package/packages/hub/src/fns/create.ts +2 -2
  124. package/packages/hub/src/fns/decided.ts +2 -2
  125. package/packages/hub/src/fns/env.ts +14 -14
  126. package/packages/hub/src/fns/examples.ts +3 -3
  127. package/packages/hub/src/fns/facts.ts +5 -5
  128. package/packages/hub/src/fns/search.ts +5 -5
  129. package/packages/hub/src/graph/graph.ts +1 -1
  130. package/packages/hub/src/index/context-sections.ts +1 -1
  131. package/packages/hub/src/index/embedders.ts +3 -3
  132. package/packages/hub/src/index/env.ts +12 -12
  133. package/packages/hub/src/index/index.ts +1 -1
  134. package/packages/hub/src/index/indexer.ts +4 -4
  135. package/packages/hub/src/index/search.ts +1 -1
  136. package/packages/hub/src/index/testing.ts +2 -2
  137. package/packages/hub/src/link/build.ts +32 -32
  138. package/packages/hub/src/link/env.ts +14 -14
  139. package/packages/hub/src/link/grants.ts +10 -10
  140. package/packages/hub/src/link/lifecycle.ts +4 -4
  141. package/packages/hub/src/link/migrate-api.ts +55 -15
  142. package/packages/hub/src/link/pairing.ts +1 -1
  143. package/packages/hub/src/link/process.ts +1 -1
  144. package/packages/hub/src/link/rig.ts +12 -12
  145. package/packages/hub/src/link/supervisor.ts +1 -1
  146. package/packages/hub/src/mcp/calls.ts +6 -6
  147. package/packages/hub/src/mcp/create.ts +5 -5
  148. package/packages/hub/src/mcp/env.ts +6 -6
  149. package/packages/hub/src/mcp/fns.ts +2 -2
  150. package/packages/hub/src/mcp/index.ts +2 -2
  151. package/packages/hub/src/mcp/sources.ts +3 -3
  152. package/packages/hub/src/mcp/tokens.ts +1 -1
  153. package/packages/hub/src/models/create.ts +1 -1
  154. package/packages/hub/src/models/decide.ts +2 -2
  155. package/packages/hub/src/models/index.ts +1 -1
  156. package/packages/hub/src/models/roles.ts +12 -12
  157. package/packages/hub/src/query/env.ts +5 -5
  158. package/packages/hub/src/query/sources.ts +3 -3
  159. package/packages/hub/src/questions/plans.ts +1 -1
  160. package/packages/hub/src/questions/worker.ts +2 -2
  161. package/packages/hub/src/resources/context.ts +3 -3
  162. package/packages/hub/src/resources/converters.ts +2 -2
  163. package/packages/hub/src/resources/create.ts +6 -6
  164. package/packages/hub/src/resources/env.ts +15 -15
  165. package/packages/hub/src/resources/fetch.ts +5 -5
  166. package/packages/hub/src/resources/forms.ts +5 -5
  167. package/packages/hub/src/resources/index.ts +1 -1
  168. package/packages/hub/src/resources/library.ts +2 -2
  169. package/packages/hub/src/resources/raw.ts +1 -1
  170. package/packages/hub/src/resources/reader.ts +2 -2
  171. package/packages/hub/src/resources/sqlite-files.ts +1 -1
  172. package/packages/hub/src/resources/storage.ts +5 -5
  173. package/packages/hub/src/resources/testing.ts +6 -6
  174. package/packages/hub/src/store/env.ts +4 -4
  175. package/packages/hub/src/store/hybrid.ts +4 -4
  176. package/packages/hub/src/store/sqlite.ts +3 -3
  177. package/packages/hub/src/stores/drivers.ts +2 -2
  178. package/packages/hub/src/stores/host.ts +3 -3
  179. package/packages/hub/src/stores/moves.ts +2 -2
  180. package/packages/hub/src/stores/service.ts +2 -2
  181. package/packages/hub/src/tables/env.ts +3 -3
  182. package/packages/hub/src/tables/index.ts +5 -5
  183. package/packages/hub/src/tables/service.ts +7 -7
  184. package/packages/sdk/AUTHORING.md +1206 -881
  185. package/packages/sdk/package.json +11 -8
  186. package/packages/sdk/src/agent.ts +1 -1
  187. package/packages/sdk/src/app-parts.ts +95 -0
  188. package/packages/sdk/src/authored.ts +26 -0
  189. package/packages/sdk/src/authoring.ts +13 -30
  190. package/packages/sdk/src/client-runtime.ts +24 -1
  191. package/packages/sdk/src/client-ui/AddServiceDialog.vue +43 -0
  192. package/packages/sdk/src/client-ui/InstanceNameField.vue +29 -0
  193. package/packages/sdk/src/client-ui/PairRowsEditor.vue +74 -0
  194. package/packages/sdk/src/client-ui/RemoteAuthFields.vue +95 -0
  195. package/packages/sdk/src/client-ui/ServiceRows.vue +57 -0
  196. package/packages/sdk/src/client-ui/draft.ts +10 -0
  197. package/packages/sdk/src/client-ui/host.ts +37 -0
  198. package/packages/sdk/src/client-ui/index.ts +19 -0
  199. package/packages/sdk/src/client-ui/loaded.ts +69 -0
  200. package/packages/sdk/src/client-ui/problems.ts +98 -0
  201. package/packages/sdk/src/client-ui/remote-config.ts +199 -0
  202. package/packages/sdk/src/client-ui/service-rows.ts +25 -0
  203. package/packages/sdk/src/client-ui/state.ts +14 -0
  204. package/packages/sdk/src/client-ui/testing.ts +147 -0
  205. package/packages/sdk/src/client-ui/vue-shim.d.ts +13 -0
  206. package/packages/sdk/src/client.ts +82 -11
  207. package/packages/sdk/src/hub.ts +4 -4
  208. package/packages/sdk/src/index.ts +13 -9
  209. package/packages/sdk/src/page-parts.ts +4 -0
  210. package/packages/sdk/src/program/env.ts +7 -7
  211. package/packages/sdk/src/program/runtime.ts +5 -5
  212. package/packages/sdk/src/program/tools.ts +3 -3
  213. package/packages/sdk/src/remote-auth.ts +128 -7
  214. package/packages/sdk/src/server/context-files.ts +1 -1
  215. package/packages/sdk/src/server/env.ts +36 -36
  216. package/packages/sdk/src/server/fake-hub-widgets.ts +7 -6
  217. package/packages/sdk/src/server/host.ts +28 -28
  218. package/packages/sdk/src/server/index.ts +2 -2
  219. package/packages/sdk/src/server/live.ts +4 -4
  220. package/packages/sdk/src/server/llm-wire.ts +54 -5
  221. package/packages/sdk/src/server/pairing.ts +1 -1
  222. package/packages/sdk/src/server/results.ts +4 -4
  223. package/packages/sdk/src/server/socket-guard.ts +1 -1
  224. package/packages/sdk/src/server/start-gate.ts +2 -2
  225. package/packages/sdk/src/server/store/engines.ts +2 -2
  226. package/packages/sdk/src/server/store/keeper.ts +2 -2
  227. package/packages/sdk/src/server/supervise.ts +4 -4
  228. package/packages/sdk/src/testing/env.ts +6 -6
  229. package/packages/sdk/src/testing/hub.ts +3 -1
  230. package/packages/sdk/src/testing/models.ts +3 -3
  231. package/packages/sdk/src/testing/openrouter.ts +3 -2
  232. package/packages/sdk/src/testing/preview.ts +7 -7
  233. package/packages/sdk/src/widgets.ts +21 -136
  234. package/packages/sdk/tsconfig.json +2 -2
  235. package/packages/web/dist/assets/{ActorSettingsView-v2k7v454.js → ActorSettingsView-CiWhrnP4.js} +2 -2
  236. package/packages/web/dist/assets/AdminLayout-CjVNzmYD.js +2 -0
  237. package/packages/web/dist/assets/{AdminLayout-1hbRPV3d.css → AdminLayout-ggcdQGlQ.css} +1 -1
  238. package/packages/web/dist/assets/{AppPage-CFmKZS8G.js → AppPage-D_kkUatv.js} +2 -2
  239. package/packages/web/dist/assets/{AutoPairPicker-C61gihmh.js → AutoPairPicker-BdCHi7dL.js} +2 -2
  240. package/packages/web/dist/assets/{BrowserFrame-Sq9EmQRT.js → BrowserFrame-CVQvfCB8.js} +2 -2
  241. package/packages/web/dist/assets/ChatPage-CPZJ8ya6.js +4 -0
  242. package/packages/web/dist/assets/{ChatPage-CbsRmktV.css → ChatPage-DjPv238m.css} +1 -1
  243. package/packages/web/dist/assets/{CodeViewer-tUNXZB77.js → CodeViewer-DzWZyAp4.js} +2 -2
  244. package/packages/web/dist/assets/ConfigWithCustom-C49loznj.js +3 -0
  245. package/packages/web/dist/assets/{ConfirmDialog-Dd3E4sJt.js → ConfirmDialog-BtugUGEY.js} +2 -2
  246. package/packages/web/dist/assets/{ConnectPage-CX9acyQH.js → ConnectPage-D8k2nSdX.js} +2 -2
  247. package/packages/web/dist/assets/ContextItemPage-DC4FGi8V.js +2 -0
  248. package/packages/web/dist/assets/ContextPage-MlEkKMq0.js +3 -0
  249. package/packages/web/dist/assets/{ContextRow-DrtPumZ5.js → ContextRow-BN26Di1B.js} +2 -2
  250. package/packages/web/dist/assets/{DataPage-DDSsxHro.js → DataPage-CvOYkEkS.js} +2 -2
  251. package/packages/web/dist/assets/DataTypePage-CDEL6BHp.js +2 -0
  252. package/packages/web/dist/assets/{DataTypePage-Cr238Hx_.css → DataTypePage-CWrWvUPs.css} +1 -1
  253. package/packages/web/dist/assets/{DesignPage-6e0XbOFC.js → DesignPage-D-MsKLuP.js} +3 -3
  254. package/packages/web/dist/assets/{ExplorePage-B7ND0W0l.js → ExplorePage-CNQpEe_8.js} +2 -2
  255. package/packages/web/dist/assets/{FnPill-Cp3KuLmP.js → FnPill-Dm5mmffj.js} +2 -2
  256. package/packages/web/dist/assets/{FnView-C0XZdnsS.js → FnView-oiIU5vka.js} +2 -2
  257. package/packages/web/dist/assets/{FnsView-GTH3p7a0.js → FnsView-DgIfza4W.js} +2 -2
  258. package/packages/web/dist/assets/{GinExprView-DGxns6lH.js → GinExprView-C19g0UgI.js} +2 -2
  259. package/packages/web/dist/assets/{GinForm-BDBUzuDP.js → GinForm-p7UsKQ3s.js} +2 -2
  260. package/packages/web/dist/assets/{GinTypeView-CUsymbVf.js → GinTypeView-DvdHc0V4.js} +2 -2
  261. package/packages/web/dist/assets/{GinValueView-jsKIfiEA.js → GinValueView-D6c7E4C_.js} +2 -2
  262. package/packages/web/dist/assets/{GraphPage-BCcPPsHu.js → GraphPage-BTamx4d-.js} +2 -2
  263. package/packages/web/dist/assets/GraphPanel-DKpbijQD.js +2 -0
  264. package/packages/web/dist/assets/{HubPicker-EoOErgmk.js → HubPicker-DfXIcUz1.js} +2 -2
  265. package/packages/web/dist/assets/{InboxApprovals-Dkq7DFp_.js → InboxApprovals-B9qwPCHR.js} +2 -2
  266. package/packages/web/dist/assets/{InboxPage-CHhslePq.js → InboxPage-j2lF00uW.js} +2 -2
  267. package/packages/web/dist/assets/InjectedList-BTGvy8GB.js +2 -0
  268. package/packages/web/dist/assets/{InstallDialog-D-VwfZYF.js → InstallDialog-BRJXLSMJ.js} +2 -2
  269. package/packages/web/dist/assets/InstanceTypes-DYdolFFW.js +2 -0
  270. package/packages/web/dist/assets/InstanceView-C5dJLBPe.js +2 -0
  271. package/packages/web/dist/assets/{ItemHistory-NQAP69ma.js → ItemHistory-vsyIMjIX.js} +2 -2
  272. package/packages/web/dist/assets/LimitsView-BtbQzkX1.js +2 -0
  273. package/packages/web/dist/assets/{ListSearch-BunVrDO0.js → ListSearch-BdVW9FHD.js} +2 -2
  274. package/packages/web/dist/assets/{LlmCallDetails-BoVNDTVs.js → LlmCallDetails-Cd7qtybU.js} +2 -2
  275. package/packages/web/dist/assets/{LlmCallsView-BGpV92RC.js → LlmCallsView-CrZB_I1H.js} +2 -2
  276. package/packages/web/dist/assets/{LoadState-h-K9bTYc.js → LoadState-8UknKQ6e.js} +2 -2
  277. package/packages/web/dist/assets/McpDialog-r-qJDHOO.js +2 -0
  278. package/packages/web/dist/assets/{McpView-GPXdCMne.js → McpView-FeDQWGxu.js} +2 -2
  279. package/packages/web/dist/assets/{McpsView-DJIR2JX5.js → McpsView-Czd2yUdE.js} +2 -2
  280. package/packages/web/dist/assets/{MemoryDialog-BTeIHQyA.js → MemoryDialog-DDiT6wO1.js} +2 -2
  281. package/packages/web/dist/assets/{ModelCallsView-DMcnwF2S.js → ModelCallsView-DsdztwCR.js} +2 -2
  282. package/packages/web/dist/assets/{ModelPicker-CgkMFxSO.js → ModelPicker-Df_3l8nS.js} +2 -2
  283. package/packages/web/dist/assets/ModelsView-YXwRDgWv.js +2 -0
  284. package/packages/web/dist/assets/{NotFoundPage-Tk92K7HN.js → NotFoundPage-DDEOlB6B.js} +2 -2
  285. package/packages/web/dist/assets/{PairPage-D0BK8CCw.js → PairPage-D3uHAkh1.js} +2 -2
  286. package/packages/web/dist/assets/{PanelHost-C-gKrxAk.js → PanelHost-BzWYqH39.js} +2 -2
  287. package/packages/web/dist/assets/PeopleView-Cg9RO5SF.js +2 -0
  288. package/packages/web/dist/assets/{PeopleView-CJ8yArTh.css → PeopleView-DBxdbT1C.css} +1 -1
  289. package/packages/web/dist/assets/{PoliciesView-BRi-QAuo.js → PoliciesView-BoshL7RQ.js} +2 -2
  290. package/packages/web/dist/assets/{RefusalList-DVO0bmeB.js → RefusalList-DnLIfmi-.js} +2 -2
  291. package/packages/web/dist/assets/RendererHost-CmkaVEX0.js +2 -0
  292. package/packages/web/dist/assets/RendererHost-Ym_SMkhp.css +1 -0
  293. package/packages/web/dist/assets/{ResourceViewer-Do0chYxU.js → ResourceViewer-CSAY6xIs.js} +2 -2
  294. package/packages/web/dist/assets/ResourcesPage-DAoa9mDs.js +2 -0
  295. package/packages/web/dist/assets/ResultGrid-CL2WSYQH.css +1 -0
  296. package/packages/web/dist/assets/ResultGrid-DSyc0btv.js +2 -0
  297. package/packages/web/dist/assets/{ReviewSummaryStrip-DO3p64Qj.js → ReviewSummaryStrip-Bzy-KGz_.js} +2 -2
  298. package/packages/web/dist/assets/ReviewView-Cwq8Az_B.js +3 -0
  299. package/packages/web/dist/assets/{RuleRow-DX9v4iGP.js → RuleRow-DAvl2m9p.js} +2 -2
  300. package/packages/web/dist/assets/RunCard-BMyRkKxJ.js +2 -0
  301. package/packages/web/dist/assets/RunCard-CSDiz-Nt.css +1 -0
  302. package/packages/web/dist/assets/{RunDetails-DjR206q6.js → RunDetails-Bvyr1HYK.js} +2 -2
  303. package/packages/web/dist/assets/{RunDot-lHRICdM5.js → RunDot-Lfrt5XR3.js} +2 -2
  304. package/packages/web/dist/assets/{RunPage-CbAQ_WPR.js → RunPage-C0-wY6Uz.js} +2 -2
  305. package/packages/web/dist/assets/{RunProgress-C3-B4tQf.js → RunProgress-BbzwzrTK.js} +2 -2
  306. package/packages/web/dist/assets/{RunsView-DMkPmkqX.js → RunsView-so-UV2Cq.js} +2 -2
  307. package/packages/web/dist/assets/SettingsPage-B4SQLk09.js +3 -0
  308. package/packages/web/dist/assets/{SettingsPage-t03BqXw8.css → SettingsPage-BTl3Ie4F.css} +1 -1
  309. package/packages/web/dist/assets/SignInPage-CXxLf7Rp.css +1 -0
  310. package/packages/web/dist/assets/{SignInPage-ByqGEZfj.js → SignInPage-Ck-v3eH0.js} +2 -2
  311. package/packages/web/dist/assets/{StatusBadge-CXne0sRZ.js → StatusBadge-C4NawPsO.js} +2 -2
  312. package/packages/web/dist/assets/{StorePlacementStep-B6SwTmdM.js → StorePlacementStep-DjLWeQF9.js} +2 -2
  313. package/packages/web/dist/assets/{SystemConfig-vQDL_eUl.js → SystemConfig-B5C5B3b0.js} +2 -2
  314. package/packages/web/dist/assets/SystemPageHost-DX7LrFoN.css +1 -0
  315. package/packages/web/dist/assets/SystemPageHost-DoyQlhKM.js +2 -0
  316. package/packages/web/dist/assets/SystemView-CTdpay8I.js +2 -0
  317. package/packages/web/dist/assets/SystemsView-Cnv2moRw.js +2 -0
  318. package/packages/web/dist/assets/TableView-BK_95qHT.js +3 -0
  319. package/packages/web/dist/assets/TableView-B_4MViVb.css +1 -0
  320. package/packages/web/dist/assets/{TableViewer-Boxx86f5.js → TableViewer-CRsIxdku.js} +3 -3
  321. package/packages/web/dist/assets/{ThemePicker-CIg_oRQX.js → ThemePicker-BlW7qvUd.js} +2 -2
  322. package/packages/web/dist/assets/{TurnTree-Ecm0yA5g.js → TurnTree-D6OYRutQ.js} +2 -2
  323. package/packages/web/dist/assets/{UserMessage-BtECa8ka.css → UserMessage-B63G9sxC.css} +1 -1
  324. package/packages/web/dist/assets/{UserMessage-BlnqZDVU.js → UserMessage-DJH2bXqv.js} +6 -6
  325. package/packages/web/dist/assets/{ValueVisual-C-MWpp7c.js → ValueVisual-BJUrdkHO.js} +2 -2
  326. package/packages/web/dist/assets/{fn-modal-B98MR7JN.js → fn-modal-DFtN7Kn-.js} +2 -2
  327. package/packages/web/dist/assets/{fn-notices-CfTa1E8y.js → fn-notices-C8HXeo7m.js} +2 -2
  328. package/packages/web/dist/assets/{formats-JwoKfXIq.js → formats-CHSYhY4X.js} +2 -2
  329. package/packages/web/dist/assets/index-BY7M8QUk.css +1 -0
  330. package/packages/web/dist/assets/index-Uz-h2M5K.js +4 -0
  331. package/packages/web/dist/assets/{labels-BFbk11BE.js → labels-DkV96Md_.js} +2 -2
  332. package/packages/web/dist/assets/{layout-D1gf481r.js → layout-CTAHAwIH.js} +2 -2
  333. package/packages/web/dist/assets/loaded-BrwmsuZY.js +2 -0
  334. package/packages/web/dist/assets/{metrics-CBPX3W5Y.js → metrics-BBvD6KSk.js} +2 -2
  335. package/packages/web/dist/assets/problems-CI9huk1n.js +2 -0
  336. package/packages/web/dist/assets/{push-payload-BeU1ADYt.js → push-payload-C1ppI5V2.js} +64 -64
  337. package/packages/web/dist/assets/record-edits-DFJBcNnL.js +2 -0
  338. package/packages/web/dist/assets/{review-fP-l9D6H.js → review-DlP8FQiO.js} +3 -3
  339. package/packages/web/dist/assets/routes-oIISbS5Z.js +4 -0
  340. package/packages/web/dist/assets/{runs-CveC2kKo.js → runs-BWVBevgu.js} +2 -2
  341. package/packages/web/dist/assets/{shared-LbaIHjbV.js → shared-Bc4GJbiE.js} +2 -2
  342. package/packages/web/dist/assets/{sources-VPrtgLIi.js → sources-gONU9kk2.js} +2 -2
  343. package/packages/web/dist/assets/src-ClMFVauH.js +43 -0
  344. package/packages/web/dist/assets/state-BQlvjJzT.js +2 -0
  345. package/packages/web/dist/assets/{systems-BqE3WTSF.js → systems-Dt01wDhP.js} +2 -2
  346. package/packages/web/dist/assets/table-host-BvEY0Zxn.js +2 -0
  347. package/packages/web/dist/assets/tables-CkqGZ0Yq.js +2 -0
  348. package/packages/web/dist/assets/{ui-BzgWquIU.js → ui-CjoSgSyZ.js} +5 -5
  349. package/packages/web/dist/assets/{url-DKGcECT1.js → url-Deh5u3O5.js} +2 -2
  350. package/packages/web/dist/index.html +49 -47
  351. package/packages/web/dist/sw.js +1 -1
  352. package/packages/web/package.json +2 -4
  353. package/premade/claude.zip +0 -0
  354. package/premade/database.zip +0 -0
  355. package/premade/web.zip +0 -0
  356. package/scripts/dev-env.ts +9 -9
  357. package/scripts/run-stack.ts +15 -15
  358. package/scripts/stack.ts +3 -3
  359. package/scripts/start.ts +18 -18
  360. package/systems/api/client/ApiServiceForm.vue +55 -0
  361. package/systems/api/client/ServiceList.vue +90 -0
  362. package/systems/api/client/ServicePage.vue +142 -0
  363. package/systems/api/client/ServicesPage.vue +32 -0
  364. package/systems/api/client/index.ts +15 -0
  365. package/systems/api/client/logic.ts +140 -0
  366. package/systems/api/client/state.ts +92 -0
  367. package/systems/api/package.json +9 -6
  368. package/systems/api/server/authoring.ts +2 -1
  369. package/systems/api/server/env.ts +1 -1
  370. package/systems/api/server/guard.ts +1 -1
  371. package/systems/api/server/http.ts +3 -2
  372. package/systems/api/server/impl.ts +3 -2
  373. package/systems/api/server/main.ts +11 -7
  374. package/systems/api/server/openapi.ts +1 -1
  375. package/systems/api/server/program.ts +2 -1
  376. package/systems/api/server/services.ts +2 -1
  377. package/systems/api/shared/http.ts +2 -1
  378. package/systems/api/shared/index.ts +15 -5
  379. package/{packages/core/src/programs.ts → systems/api/shared/services.ts} +7 -51
  380. package/systems/api/system.json +2 -1
  381. package/systems/api/tsconfig.json +2 -2
  382. package/systems/code/package.json +4 -3
  383. package/systems/code/server/authoring.ts +2 -1
  384. package/systems/code/server/impl.ts +2 -1
  385. package/systems/code/server/main.ts +5 -5
  386. package/systems/code/shared/index.ts +2 -3
  387. package/systems/code/shared/program.ts +23 -0
  388. package/systems/embedder/package.json +1 -1
  389. package/systems/embedder/server/env.ts +1 -1
  390. package/systems/embedder/server/main.ts +5 -5
  391. package/systems/embedder/shared/index.ts +1 -1
  392. package/systems/fs/client/machines/fakes.ts +1 -1
  393. package/systems/fs/client/machines/files/CommentComposer.vue +6 -3
  394. package/systems/fs/client/machines/files/FilePane.vue +2 -2
  395. package/systems/fs/client/machines/files/fakes.ts +1 -1
  396. package/systems/fs/client/machines/palette.ts +3 -2
  397. package/systems/fs/context/authoring/parts/client.md +23 -5
  398. package/systems/fs/context/authoring/parts/client.reference/client.md +7 -16
  399. package/systems/fs/context/authoring/parts/client.reference/pageinbox.md +524 -0
  400. package/systems/fs/context/authoring/parts/client.reference/{resultview.md → visuals.md} +85 -116
  401. package/systems/fs/context/authoring/parts/client.reference.md +8 -8
  402. package/systems/fs/context/authoring/parts/context.md +1 -1
  403. package/systems/fs/context/authoring/parts/contract.md +1 -1
  404. package/systems/fs/context/authoring/parts/core-types/admin-ts.md +2 -2
  405. package/systems/fs/context/authoring/parts/core-types/connections-ts.md +12 -1
  406. package/systems/fs/context/authoring/parts/core-types/context-files-ts.md +2 -2
  407. package/systems/fs/context/authoring/parts/core-types/context-graph-ts.md +2 -2
  408. package/systems/fs/context/authoring/parts/core-types/contextdecl.md +2 -2
  409. package/systems/fs/context/authoring/parts/core-types/lifecycle-ts.md +27 -2
  410. package/systems/fs/context/authoring/parts/core-types/manifest.md +27 -2
  411. package/systems/fs/context/authoring/parts/core-types/manifestpatch.md +26 -2
  412. package/systems/fs/context/authoring/parts/core-types/modes-ts.md +3 -3
  413. package/systems/fs/context/authoring/parts/core-types/records-systems-ts.md +145 -1
  414. package/systems/fs/context/authoring/parts/core-types/registries-ts.md +98 -2
  415. package/systems/fs/context/authoring/parts/core-types/run-ts.md +2 -2
  416. package/systems/fs/context/authoring/parts/core-types/system-pages-ts.md +4 -2
  417. package/systems/fs/context/authoring/parts/core-types/system-providers-ts.md +2 -2
  418. package/systems/fs/context/authoring/parts/core-types/tables-ts.md +91 -0
  419. package/systems/fs/context/authoring/parts/core-types/web-ts.md +1 -2
  420. package/systems/fs/context/authoring/parts/core-types.md +5 -8
  421. package/systems/fs/context/authoring/parts/examples/server-main-ts.md +4 -4
  422. package/systems/fs/context/authoring/parts/examples/systems-fs-shared-index-ts-lines-568-660.md +1 -1
  423. package/systems/fs/context/authoring/parts/fns.md +1 -1
  424. package/systems/fs/context/authoring/parts/folder.md +6 -6
  425. package/systems/fs/context/authoring/parts/hub/hub-ctx-from-resource.md +2 -2
  426. package/systems/fs/context/authoring/parts/hub/hub-install-package.md +2 -2
  427. package/systems/fs/context/authoring/parts/hub.reference.md +3 -3
  428. package/systems/fs/context/authoring/parts/internals/manifestof.md +2 -2
  429. package/systems/fs/context/authoring/parts/internals/permissionargs.md +4 -4
  430. package/systems/fs/context/authoring/parts/kinds-agents.md +1 -1
  431. package/systems/fs/context/authoring/parts/kinds-agents.reference/authoringsession.md +7 -5
  432. package/systems/fs/context/authoring/parts/kinds-agents.reference/kind.md +4 -4
  433. package/systems/fs/context/authoring/parts/outcomes.md +2 -2
  434. package/systems/fs/context/authoring/parts/outcomes.reference.md +2 -2
  435. package/systems/fs/context/authoring/parts/packaging.md +4 -4
  436. package/systems/fs/context/authoring/parts/remote.md +5 -5
  437. package/systems/fs/context/authoring/parts/remote.reference.md +201 -17
  438. package/systems/fs/context/authoring/parts/server.md +7 -7
  439. package/systems/fs/context/authoring/parts/server.reference.md +15 -15
  440. package/systems/fs/context/authoring/parts/testing.reference/equal.md +3 -3
  441. package/systems/fs/context/authoring/parts/testing.reference/fakehub.md +1 -1
  442. package/systems/fs/context/authoring/parts/testing.reference/kindprops.md +22 -10
  443. package/systems/fs/context/authoring/parts/testing.reference/{openmemorystore.md → storeconnection.md} +7 -19
  444. package/systems/fs/context/authoring/parts/testing.reference.md +5 -5
  445. package/systems/fs/context/authoring/parts/widgets.md +32 -22
  446. package/systems/fs/context/authoring/parts/widgets.reference.md +503 -9
  447. package/systems/fs/package.json +3 -3
  448. package/systems/fs/server/hosting.ts +10 -10
  449. package/systems/fs/server/main.ts +8 -8
  450. package/systems/fs/server/metrics/os.ts +50 -29
  451. package/systems/fs/server/shell.ts +1 -1
  452. package/systems/fs/shared/index.ts +1 -1
  453. package/systems/google-calendar/package.json +1 -1
  454. package/systems/google-calendar/server/main.ts +4 -4
  455. package/systems/input/package.json +3 -3
  456. package/systems/input/server/main.ts +6 -6
  457. package/systems/mcp/client/McpServerForm.vue +99 -0
  458. package/systems/mcp/client/ServerList.vue +78 -0
  459. package/systems/mcp/client/ServerPage.vue +194 -0
  460. package/systems/mcp/client/ServersPage.vue +32 -0
  461. package/systems/mcp/client/index.ts +15 -0
  462. package/systems/mcp/client/logic.ts +224 -0
  463. package/systems/mcp/client/state.ts +128 -0
  464. package/systems/mcp/package.json +9 -6
  465. package/systems/mcp/server/dial.ts +1 -1
  466. package/systems/mcp/server/impl.ts +2 -1
  467. package/systems/mcp/server/instance.ts +3 -5
  468. package/systems/mcp/server/main.ts +10 -6
  469. package/systems/mcp/server/mirror.ts +2 -3
  470. package/systems/mcp/server/oauth.ts +2 -1
  471. package/systems/mcp/server/server-link.ts +2 -1
  472. package/systems/mcp/shared/index.ts +15 -2
  473. package/{packages/core/src/mcp-servers.ts → systems/mcp/shared/servers.ts} +6 -5
  474. package/systems/mcp/system.json +2 -1
  475. package/systems/mcp/tsconfig.json +2 -2
  476. package/systems/ollama/package.json +3 -3
  477. package/systems/ollama/server/main.ts +5 -5
  478. package/systems/schedule/package.json +3 -3
  479. package/systems/schedule/server/main.ts +6 -6
  480. package/systems/template/README.md +2 -2
  481. package/systems/template/package.json +1 -1
  482. package/systems/template/server/main.ts +4 -4
  483. package/systems/widgets/client/ChipRow.vue +22 -0
  484. package/systems/widgets/client/ProposalCard.vue +6 -5
  485. package/systems/widgets/client/SavedWidget.vue +11 -8
  486. package/systems/widgets/client/WidgetChips.vue +137 -0
  487. package/systems/widgets/client/WidgetView.vue +32 -0
  488. package/systems/widgets/client/charts/ChartVisual.vue +157 -0
  489. package/systems/widgets/client/charts/chart-data.ts +230 -0
  490. package/systems/widgets/client/charts/echarts-setup.ts +69 -0
  491. package/systems/widgets/client/charts/export.ts +36 -0
  492. package/systems/widgets/client/charts/families/calendar.ts +105 -0
  493. package/systems/widgets/client/charts/families/category.ts +186 -0
  494. package/systems/widgets/client/charts/families/crosstab.ts +113 -0
  495. package/systems/widgets/client/charts/families/distribution.ts +160 -0
  496. package/systems/widgets/client/charts/families/finance.ts +96 -0
  497. package/systems/widgets/client/charts/families/gauge.ts +75 -0
  498. package/systems/widgets/client/charts/families/hierarchy.ts +166 -0
  499. package/systems/widgets/client/charts/families/index.ts +21 -0
  500. package/systems/widgets/client/charts/families/network.ts +140 -0
  501. package/systems/widgets/client/charts/families/part.ts +61 -0
  502. package/systems/widgets/client/charts/families/profile.ts +30 -0
  503. package/systems/widgets/client/charts/families/progress.ts +76 -0
  504. package/systems/widgets/client/charts/families/range.ts +107 -0
  505. package/systems/widgets/client/charts/families/time.ts +177 -0
  506. package/systems/widgets/client/charts/families/timeline.ts +114 -0
  507. package/systems/widgets/client/charts/families/wide.ts +41 -0
  508. package/systems/widgets/client/charts/index.ts +37 -0
  509. package/systems/widgets/client/charts/maths.ts +139 -0
  510. package/systems/widgets/client/charts/size.ts +39 -0
  511. package/systems/widgets/client/chips.ts +150 -0
  512. package/systems/widgets/client/index.ts +18 -5
  513. package/systems/widgets/client/proposal.ts +2 -1
  514. package/systems/widgets/package.json +7 -4
  515. package/systems/widgets/server/authoring.ts +13 -7
  516. package/systems/widgets/server/env.ts +1 -1
  517. package/systems/widgets/server/impl.ts +10 -6
  518. package/systems/widgets/server/main.ts +6 -6
  519. package/systems/widgets/server/run.ts +16 -9
  520. package/systems/widgets/server/upgrade.ts +34 -0
  521. package/systems/widgets/shared/args.ts +137 -0
  522. package/systems/widgets/shared/charts.ts +243 -0
  523. package/systems/widgets/shared/index.ts +12 -3
  524. package/{packages/sdk/src → systems/widgets/shared}/relative-dates.ts +2 -1
  525. package/systems/widgets/shared/spec.ts +208 -0
  526. package/{packages/sdk/src → systems/widgets/shared}/widget-check.ts +7 -9
  527. package/{packages/sdk/src → systems/widgets/shared}/widget-schema.ts +4 -4
  528. package/packages/core/src/remote-auth.ts +0 -111
  529. package/packages/core/src/widgets.ts +0 -427
  530. package/packages/web/dist/assets/AdminLayout-B6Jrc_4W.js +0 -2
  531. package/packages/web/dist/assets/ApiServiceForm-BxprSaAq.css +0 -1
  532. package/packages/web/dist/assets/ApiServiceForm-CuuQgOJc.js +0 -2
  533. package/packages/web/dist/assets/ApiServiceView-7bTHSO_Z.js +0 -2
  534. package/packages/web/dist/assets/ApiServiceView-BVmdRCjR.css +0 -1
  535. package/packages/web/dist/assets/ApiServicesView-BTLV6c8n.css +0 -1
  536. package/packages/web/dist/assets/ApiServicesView-BXi24n49.js +0 -2
  537. package/packages/web/dist/assets/ChartVisual-BnFG9aFi.css +0 -1
  538. package/packages/web/dist/assets/ChartVisual-C4mgw4wh.js +0 -11
  539. package/packages/web/dist/assets/ChatPage-CAhHE03Z.js +0 -4
  540. package/packages/web/dist/assets/ConfigWithCustom-D_-rY66L.js +0 -3
  541. package/packages/web/dist/assets/ContextItemPage-rUI3-T_L.js +0 -2
  542. package/packages/web/dist/assets/ContextPage-CtefzyKg.js +0 -3
  543. package/packages/web/dist/assets/DataTypePage-BW9fWaz8.js +0 -2
  544. package/packages/web/dist/assets/FnList-BCnb4kOB.css +0 -1
  545. package/packages/web/dist/assets/FnList-Bx6H-kux.js +0 -2
  546. package/packages/web/dist/assets/GraphPanel-9tztGHmu.js +0 -2
  547. package/packages/web/dist/assets/InjectedList-CSWqRiON.js +0 -2
  548. package/packages/web/dist/assets/InstanceTypes-D3rAEiE7.js +0 -2
  549. package/packages/web/dist/assets/InstanceView-DoH8C-1j.js +0 -2
  550. package/packages/web/dist/assets/LimitsView-DY2C9nYS.js +0 -2
  551. package/packages/web/dist/assets/McpDialog-DhOCk6_E.js +0 -2
  552. package/packages/web/dist/assets/McpServerForm-Cor3fI7s.js +0 -2
  553. package/packages/web/dist/assets/McpServerForm-DsHaf5Um.css +0 -1
  554. package/packages/web/dist/assets/McpServerView-7I76EznB.css +0 -1
  555. package/packages/web/dist/assets/McpServerView-ewXRPEmZ.js +0 -2
  556. package/packages/web/dist/assets/McpServersView-Dd0xmfws.js +0 -2
  557. package/packages/web/dist/assets/ModelsView-cMHygeiK.js +0 -2
  558. package/packages/web/dist/assets/PeopleView-DRfeNWK5.js +0 -2
  559. package/packages/web/dist/assets/RemoteAuthFields-CgiufuqQ.js +0 -2
  560. package/packages/web/dist/assets/RemoteAuthFields-Dm44vz2t.css +0 -1
  561. package/packages/web/dist/assets/ResourcesPage-BBx2u2mw.js +0 -2
  562. package/packages/web/dist/assets/ResultGrid-Bj-0I5HY.js +0 -2
  563. package/packages/web/dist/assets/ResultGrid-CuUQyTjW.css +0 -1
  564. package/packages/web/dist/assets/ReviewView-DZF9E1hb.js +0 -3
  565. package/packages/web/dist/assets/RunCard-BnrtK2Yp.js +0 -2
  566. package/packages/web/dist/assets/RunCard-CfyRaDLS.css +0 -1
  567. package/packages/web/dist/assets/ServiceRows-4WythFpF.js +0 -2
  568. package/packages/web/dist/assets/ServiceRows-HPQ0pN6b.css +0 -1
  569. package/packages/web/dist/assets/SettingsPage-BN4oSzoL.js +0 -3
  570. package/packages/web/dist/assets/SignInPage-Djx-M-0U.css +0 -1
  571. package/packages/web/dist/assets/SystemPageHost-BeZ-6N0-.css +0 -1
  572. package/packages/web/dist/assets/SystemPageHost-DrMrEPyh.js +0 -2
  573. package/packages/web/dist/assets/SystemView-Be6TBM4j.js +0 -2
  574. package/packages/web/dist/assets/SystemsView-DZtT3laz.js +0 -2
  575. package/packages/web/dist/assets/WidgetView-DQUDeFkB.css +0 -1
  576. package/packages/web/dist/assets/WidgetView-DX4ejNb6.js +0 -3
  577. package/packages/web/dist/assets/export-BwFkEtcm.js +0 -15
  578. package/packages/web/dist/assets/index-6ScWTFy2.js +0 -4
  579. package/packages/web/dist/assets/index-CEslGcrX.css +0 -1
  580. package/packages/web/dist/assets/problems-t1E_ovSz.js +0 -2
  581. package/packages/web/dist/assets/record-edits-Bfsi4lU3.js +0 -2
  582. package/packages/web/dist/assets/remote-config-BNQhSDzB.js +0 -2
  583. package/packages/web/dist/assets/routes-DV4IJpwe.js +0 -4
  584. package/packages/web/dist/assets/size-Bh__w5aI.js +0 -2
  585. package/packages/web/dist/assets/src-CT3TeFaM.js +0 -43
  586. package/packages/web/dist/assets/state-xfQqaQPX.js +0 -2
  587. package/packages/web/dist/assets/widget-host-B87MTaTn.js +0 -2
  588. package/packages/web/dist/assets/widgets-BBCuSS6E.js +0 -2
  589. package/systems/fs/context/authoring/parts/client.reference/textareaprops.md +0 -195
  590. package/systems/fs/context/authoring/parts/core-types/remote-auth-ts.md +0 -64
  591. package/systems/fs/context/authoring/parts/core-types/widgets-ts.md +0 -303
  592. package/systems/fs/context/authoring/parts/widgets.reference/hub-visuals.md +0 -627
  593. package/systems/fs/context/authoring/parts/widgets.reference/sourcecompatible.md +0 -154
@@ -1,627 +0,0 @@
1
- ---
2
- # Generated by scripts/docs/authoring.ts from the authoring guide (npm run docs:authoring); do not edit.
3
- key: "authoring.widgets.reference.hub-visuals"
4
- title: "Visuals and widgets: reference: HUB_VISUALS … WidgetCheckResult"
5
- description: "Visuals and widgets: reference, the part on HUB_VISUALS, BUILT_IN_CONTRIBUTIONS, visual, VisualInput, channel, ChannelOptions, resultFacts, ginTypeFacts, rankedVisuals, VisualContribution, RankedVisual, VisualView, VisualEntry, VisualPalette, VisualRange, VISUAL_EMITS, VisualEmits, visualTheme, VisualTheme, WIDGETS_SYSTEM, WIDGET_KIND, argsOf, ArgInfo, WINDOW_ARGS, pagingOf, rangeOf, widgetArgs,…"
6
- summary: "Visuals and widgets: reference: HUB_VISUALS, BUILT_IN_CONTRIBUTIONS, visual, VisualInput, channel, ChannelOptions, resultFacts, ginTypeFacts, rankedVisuals,…"
7
- question: "What are the exact signatures and options of HUB_VISUALS, BUILT_IN_CONTRIBUTIONS, visual, VisualInput, channel, ChannelOptions and 36 more?"
8
- when: "When code uses HUB_VISUALS, BUILT_IN_CONTRIBUTIONS, visual, VisualInput, channel, ChannelOptions and 36 more and needs an exact signature, field or option."
9
- askedBy: "system"
10
- lastModified: "2026-11-28"
11
- parent: "fs/authoring.widgets.reference"
12
- next: "fs/authoring.widgets.reference.sourcecompatible"
13
- suggest: "none"
14
- tags: ["authoring", "reference"]
15
- niche: "developer"
16
- ---
17
-
18
- ### Reference: visuals and widgets
19
-
20
- #### `HUB_VISUALS`
21
-
22
- const · `import { HUB_VISUALS } from '@harness/sdk'`
23
-
24
- The hub's visual registry: every visual any system draws a `ResultTable` with.
25
-
26
- ```ts
27
- const HUB_VISUALS: "hub/visuals";
28
- ```
29
-
30
- #### `BUILT_IN_CONTRIBUTIONS`
31
-
32
- const · `import { BUILT_IN_CONTRIBUTIONS } from '@harness/sdk'`
33
-
34
- The app's own visuals (`BUILT_IN_VISUALS`: the table, the value cards and the twelve ECharts families) as the hub
35
- contributes them to `HUB_VISUALS`, in registry order. The web app draws them; systems add theirs after.
36
-
37
- ```ts
38
- const BUILT_IN_CONTRIBUTIONS: readonly ContributionDecl[];
39
- ```
40
-
41
- Refers to: [`ContributionDecl`](context:fs/authoring.core-types.registries-ts#core-contributiondecl).
42
-
43
- #### `visual`
44
-
45
- function · `import { visual } from '@harness/sdk'`
46
-
47
- A visual this system adds to the hub's visual registry, for `system(name, { contributes: [visual(...)] })`. Its
48
- component (and an optional veto) go in `client({ visuals: { [HUB_VISUALS]: { <name>: { component } } } })`.
49
-
50
- ```ts
51
- visual({ name: 'waffle', label: 'Waffle', shape: { channels: [channel('itemName', 'Square', ['text'], { role: 'group' }), channel('value', 'Size', ['integer'], { role: 'measure' })], rows: { min: 1, max: 10 }, whole: true } })
52
- ```
53
-
54
- ```ts
55
- function visual(input: VisualInput): ContributionDecl;
56
- ```
57
-
58
- Refers to: [`ContributionDecl`](context:fs/authoring.core-types.registries-ts#core-contributiondecl).
59
-
60
- #### `VisualInput`
61
-
62
- interface · `import { VisualInput } from '@harness/sdk'`
63
-
64
- What `visual()` takes: the visual's name, its switcher label and icon, and the data it draws.
65
-
66
- ```ts
67
- interface VisualInput {
68
- readonly name: string;
69
- readonly label: string;
70
- readonly description?: string;
71
- readonly icon?: string;
72
- readonly shape: VisualShapeInput;
73
- }
74
- ```
75
-
76
- Refers to: [`VisualShapeInput`](context:fs/authoring.core-types.registries-ts#core-visualshapeinput).
77
-
78
- #### `channel`
79
-
80
- function · `import { channel } from '@harness/sdk'`
81
-
82
- One input of a visual: `channel('y', 'Value', ['integer', 'number'], { role: 'measure' })`; required and single unless said.
83
-
84
- ```ts
85
- function channel(name: string, label: string, accepts: readonly ColumnKind[], options?: ChannelOptions): VisualChannel;
86
- ```
87
-
88
- Refers to: [`ColumnKind`](context:fs/authoring.core-types.registries-ts#core-columnkind), [`VisualChannel`](context:fs/authoring.core-types.registries-ts#core-visualchannel).
89
-
90
- #### `ChannelOptions`
91
-
92
- interface · `import { ChannelOptions } from '@harness/sdk'`
93
-
94
- What `channel()` takes besides the name, label and kinds: all optional (required and single by default).
95
-
96
- ```ts
97
- interface ChannelOptions {
98
- readonly required?: boolean;
99
- readonly many?: boolean;
100
- /** The fewest columns a `many` channel needs. */
101
- readonly min?: number;
102
- /** The role its columns must have: a category wants a `group` key, a value a `measure`. */
103
- readonly role?: 'group' | 'measure';
104
- }
105
- ```
106
-
107
- #### `resultFacts`
108
-
109
- function · `import { resultFacts } from '@harness/sdk'`
110
-
111
- A table's column facts with its columns' gin facts: what the widgets system attaches and the web recomputes.
112
-
113
- ```ts
114
- function resultFacts(table: Pick<ResultTable, "columns" | "rows" | "offset" | "truncated">): ResultFacts;
115
- ```
116
-
117
- Refers to: [`ResultFacts`](context:fs/authoring.core-types.visuals-ts#core-resultfacts), [`ResultTable`](context:fs/authoring.core-types.registries-ts#core-resulttable).
118
-
119
- #### `ginTypeFacts`
120
-
121
- function · `import { ginTypeFacts } from '@harness/sdk'`
122
-
123
- What a column's gin type says that core can't read (core runs no gin): an enum's members and a number's declared
124
- range. Pass it to `columnFacts` as `typeFacts`, or use `resultFacts`.
125
-
126
- ```ts
127
- function ginTypeFacts(column: ResultColumn): Pick<ColumnFacts, "members" | "bound">;
128
- ```
129
-
130
- Refers to: [`ColumnFacts`](context:fs/authoring.core-types.visuals-ts#core-columnfacts), [`ResultColumn`](context:fs/authoring.core-types.registries-ts#core-resultcolumn).
131
-
132
- #### `rankedVisuals`
133
-
134
- function · `import { rankedVisuals } from '@harness/sdk'`
135
-
136
- Every `HUB_VISUALS` contribution among `entries` that can draw a result, best first (core's `rankVisuals`: coverage,
137
- then priority, then the entries' order). Contributions to other registries and ones without a shape are left out.
138
-
139
- ```ts
140
- function rankedVisuals<E extends VisualContribution>(entries: readonly E[], facts: ResultFacts, table?: Pick<ResultTable, "rows" | "columns">): RankedVisual<E>[];
141
- ```
142
-
143
- Refers to: [`ResultFacts`](context:fs/authoring.core-types.visuals-ts#core-resultfacts), [`ResultTable`](context:fs/authoring.core-types.registries-ts#core-resulttable).
144
-
145
- #### `VisualContribution`
146
-
147
- interface · `import { VisualContribution } from '@harness/sdk'`
148
-
149
- A visual a registry offers, as `rankedVisuals` reads it (`ContributionDecl`, `ContributionView`).
150
-
151
- ```ts
152
- interface VisualContribution {
153
- readonly registry: string;
154
- readonly name: string;
155
- readonly label: string;
156
- readonly shape?: VisualShape | undefined;
157
- }
158
- ```
159
-
160
- Refers to: [`VisualShape`](context:fs/authoring.core-types.registries-ts#core-visualshape).
161
-
162
- #### `RankedVisual`
163
-
164
- interface · `import { RankedVisual } from '@harness/sdk'`
165
-
166
- A contribution that can draw a result, with its rank.
167
-
168
- ```ts
169
- interface RankedVisual<E extends VisualContribution> {
170
- readonly entry: E;
171
- readonly rank: VisualRank;
172
- }
173
- ```
174
-
175
- Refers to: [`VisualRank`](context:fs/authoring.core-types.visuals-ts#core-visualrank).
176
-
177
- #### `VisualView`
178
-
179
- interface · `import { VisualView } from '@harness/sdk'`
180
-
181
- The props of a visual (an entry of a registry such as the hub's `hub/visuals`): the rows to draw, their column facts
182
- (`resultFacts`), the columns bound to each channel (`bind`, complete: the widget's or the default binding), the style
183
- picked in the style picker, and the theme's colours.
184
-
185
- ```ts
186
- interface VisualView {
187
- table: ResultTable;
188
- facts: ResultFacts;
189
- bind: VisualBinding;
190
- style: string;
191
- palette: VisualPalette;
192
- }
193
- ```
194
-
195
- Refers to: [`ResultFacts`](context:fs/authoring.core-types.visuals-ts#core-resultfacts), [`ResultTable`](context:fs/authoring.core-types.registries-ts#core-resulttable), [`VisualBinding`](context:fs/authoring.core-types.visuals-ts#core-visualbinding).
196
-
197
- #### `VisualEntry`
198
-
199
- interface · `import { VisualEntry } from '@harness/sdk'`
200
-
201
- One visual a system adds to a registry: the component that draws it, and an optional `veto`. Whether a result fits
202
- and how it ranks come from the contribution's declared shape (`visual({ shape })`, core's `rankVisuals`), the same in
203
- the hub, the widget agent and the browser; `veto` can only take a fit away (a reason in words), never score one. Keep
204
- it cheap and pure: it runs for every result the person sees.
205
-
206
- ```ts
207
- interface VisualEntry<C extends ContractShape> {
208
- veto?(table: ResultTable, facts: ResultFacts): string | undefined;
209
- component: Renderer<VisualView & WithSystem<C>>;
210
- }
211
- ```
212
-
213
- Refers to: [`ResultFacts`](context:fs/authoring.core-types.visuals-ts#core-resultfacts), [`ResultTable`](context:fs/authoring.core-types.registries-ts#core-resulttable).
214
-
215
- #### `VisualPalette`
216
-
217
- interface · `import { VisualPalette } from '@harness/sdk'`
218
-
219
- The colours a visual draws with, resolved for the current theme from the web app's tokens: the categorical series
220
- colours (`--chart-1` … `--chart-8`, the first the accent), the text and muted text, the grid lines and the surface
221
- behind the chart. Build an ECharts theme from it; it changes when the theme does.
222
-
223
- ```ts
224
- interface VisualPalette {
225
- readonly series: readonly string[];
226
- readonly text: string;
227
- readonly muted: string;
228
- readonly grid: string;
229
- readonly surface: string;
230
- readonly dark: boolean;
231
- }
232
- ```
233
-
234
- #### `VisualRange`
235
-
236
- interface · `import { VisualRange } from '@harness/sdk'`
237
-
238
- A range a visual shows, as its range args take it: a calendar's month, a zoomed time axis (ISO dates or instants).
239
-
240
- ```ts
241
- interface VisualRange {
242
- readonly from: string;
243
- readonly to: string;
244
- }
245
- ```
246
-
247
- #### `VISUAL_EMITS`
248
-
249
- const · `import { VISUAL_EMITS } from '@harness/sdk'`
250
-
251
- What a visual emits, with the checks Vue runs on each (`defineEmits(VISUAL_EMITS)`, or `emits: VISUAL_EMITS`):
252
- `drill` with the index of the clicked row (a bar, slice or point: the widget runs its drill, else opens the row's
253
- action menu), and `range` when the person zooms a time axis or turns a calendar's month (the widget sets its range
254
- args and runs again).
255
-
256
- ```ts
257
- const VISUAL_EMITS: { drill: (rowIndex: number) => boolean; range: (range: VisualRange) => boolean; };
258
- ```
259
-
260
- #### `VisualEmits`
261
-
262
- type · `import { VisualEmits } from '@harness/sdk'`
263
-
264
- ```ts
265
- type VisualEmits = typeof VISUAL_EMITS;
266
- ```
267
-
268
- #### `visualTheme`
269
-
270
- function · `import { visualTheme } from '@harness/sdk'`
271
-
272
- The ECharts theme for a palette: series in the palette's order, text and axes in its colours, no background of its own.
273
-
274
- ```ts
275
- function visualTheme(palette: VisualPalette): VisualTheme;
276
- ```
277
-
278
- #### `VisualTheme`
279
-
280
- interface · `import { VisualTheme } from '@harness/sdk'`
281
-
282
- An ECharts theme object (`init(el, visualTheme(palette))`), so a system's chart looks like the built-in ones.
283
-
284
- ```ts
285
- interface VisualTheme {
286
- readonly color: readonly string[];
287
- readonly backgroundColor: string;
288
- readonly textStyle: { readonly color: string };
289
- readonly legend: { readonly textStyle: { readonly color: string } };
290
- readonly tooltip: { readonly backgroundColor: string; readonly borderColor: string; readonly textStyle: { readonly color: string } };
291
- readonly categoryAxis: VisualAxisTheme;
292
- readonly valueAxis: VisualAxisTheme;
293
- readonly timeAxis: VisualAxisTheme;
294
- readonly logAxis: VisualAxisTheme;
295
- }
296
- ```
297
-
298
- #### `WIDGETS_SYSTEM`
299
-
300
- const · `import { WIDGETS_SYSTEM } from '@harness/sdk'`
301
-
302
- The bundled system that owns widgets.
303
-
304
- ```ts
305
- const WIDGETS_SYSTEM: "widgets";
306
- ```
307
-
308
- #### `WIDGET_KIND`
309
-
310
- const · `import { WIDGET_KIND } from '@harness/sdk'`
311
-
312
- The widget kind.
313
-
314
- ```ts
315
- const WIDGET_KIND: "widgets/widget";
316
- ```
317
-
318
- #### `argsOf`
319
-
320
- function · `import { argsOf } from '@harness/sdk'`
321
-
322
- The args of a fn's args type, in order. A type that is not an object has none.
323
-
324
- ```ts
325
- function argsOf(args: GinTypeDef): ArgInfo[];
326
- ```
327
-
328
- Refers to: [`GinTypeDef`](context:fs/authoring.core-types.gin-ts#core-gintypedef).
329
-
330
- #### `ArgInfo`
331
-
332
- interface · `import { ArgInfo } from '@harness/sdk'`
333
-
334
- One argument of a fn's args type: its type (without an optional wrapper) and whether it must be given.
335
-
336
- ```ts
337
- interface ArgInfo {
338
- readonly name: string;
339
- readonly type: GinTypeDef;
340
- /** Neither optional nor defaulted. */
341
- readonly required: boolean;
342
- /** It declares a default, so leaving it out still gives it a value. */
343
- readonly defaulted: boolean;
344
- }
345
- ```
346
-
347
- Refers to: [`GinTypeDef`](context:fs/authoring.core-types.gin-ts#core-gintypedef).
348
-
349
- #### `WINDOW_ARGS`
350
-
351
- const · `import { WINDOW_ARGS } from '@harness/sdk'`
352
-
353
- The args a buffered pager drives, when a source has both (`limit` and `offset`, as the database's query fns name them).
354
-
355
- ```ts
356
- const WINDOW_ARGS: WidgetPaging;
357
- ```
358
-
359
- Refers to: [`WidgetPaging`](context:fs/authoring.core-types.widgets-ts#core-widgetpaging).
360
-
361
- #### `pagingOf`
362
-
363
- function · `import { pagingOf } from '@harness/sdk'`
364
-
365
- The source's paging args (`WINDOW_ARGS`, both whole-number args), or `undefined` when it doesn't page.
366
-
367
- ```ts
368
- function pagingOf(args: GinTypeDef): WidgetPaging | undefined;
369
- ```
370
-
371
- Refers to: [`GinTypeDef`](context:fs/authoring.core-types.gin-ts#core-gintypedef), [`WidgetPaging`](context:fs/authoring.core-types.widgets-ts#core-widgetpaging).
372
-
373
- #### `rangeOf`
374
-
375
- function · `import { rangeOf } from '@harness/sdk'`
376
-
377
- The source's range args, which a range-claiming visual (time, calendar, timeline, finance) drives: the first pair of
378
- date or timestamp args named `from`/`to`, `start`/`end`, `after`/`before` or `since`/`until`, alone or after a
379
- shared prefix (`due_from`/`due_to`). `undefined` when there is none.
380
-
381
- ```ts
382
- function rangeOf(args: GinTypeDef): WidgetRange | undefined;
383
- ```
384
-
385
- Refers to: [`GinTypeDef`](context:fs/authoring.core-types.gin-ts#core-gintypedef), [`WidgetRange`](context:fs/authoring.core-types.widgets-ts#core-widgetrange).
386
-
387
- #### `widgetArgs`
388
-
389
- function · `import { widgetArgs } from '@harness/sdk'`
390
-
391
- The widget's args type (the kind's `describe`): its source's args minus the pinned ones, with the paging and range
392
- args made optional (the view drives them; a run without them reads the first window of the range the widget opens
393
- on, its range chips' defaults, which `checkWidget` requires of a required range arg). An arg whose "Any" is sent as
394
- `null` (`clearsToNull`) takes `null` too.
395
-
396
- ```ts
397
- function widgetArgs(source: GinTypeDef, spec: Pick<WidgetSpec, "args" | "paging" | "range">): GinTypeDef;
398
- ```
399
-
400
- Refers to: [`GinTypeDef`](context:fs/authoring.core-types.gin-ts#core-gintypedef), [`WidgetSpec`](context:fs/authoring.core-types.widgets-ts#core-widgetspec).
401
-
402
- #### `widgetControls`
403
-
404
- function · `import { widgetControls } from '@harness/sdk'`
405
-
406
- The chip row (`WidgetResult.controls`), in the source's arg order: every arg not pinned, hidden or driven by the
407
- pager, with its plan's words and choices (an enum's members when the plan names none; an "Any" row first on an
408
- optional arg), and its value: the one the run used (`given`), else the plan's default. Range args are chips too, so
409
- a visual that doesn't draw the range still lets the person set it.
410
-
411
- ```ts
412
- function widgetControls(source: GinTypeDef, spec: Pick<WidgetSpec, "args" | "paging">, given?: Readonly<Record<string, Json>>): WidgetShownControl[];
413
- ```
414
-
415
- Refers to: [`GinTypeDef`](context:fs/authoring.core-types.gin-ts#core-gintypedef), [`Json`](context:fs/authoring.core-types.primitives-ts#core-json), [`WidgetShownControl`](context:fs/authoring.core-types.widgets-ts#core-widgetshowncontrol), [`WidgetSpec`](context:fs/authoring.core-types.widgets-ts#core-widgetspec).
416
-
417
- #### `widgetRunArgs`
418
-
419
- function · `import { widgetRunArgs } from '@harness/sdk'`
420
-
421
- The source args a widget run uses: pinned values, then the args given (the chips the person set), then each plan's
422
- default, relative dates resolved; an arg with none of these, or given as `null` ("Any"), is left out (it takes the
423
- source's default). A paged
424
- widget asks for `window` rows from the given offset (0 when none).
425
-
426
- ```ts
427
- function widgetRunArgs(source: GinTypeDef, spec: Pick<WidgetSpec, "args" | "paging">, given: Readonly<Record<string, Json>>, options: WidgetRunOptions): Record<string, Json>;
428
- ```
429
-
430
- Refers to: [`GinTypeDef`](context:fs/authoring.core-types.gin-ts#core-gintypedef), [`Json`](context:fs/authoring.core-types.primitives-ts#core-json), [`WidgetSpec`](context:fs/authoring.core-types.widgets-ts#core-widgetspec).
431
-
432
- #### `WidgetRunOptions`
433
-
434
- interface · `import { WidgetRunOptions } from '@harness/sdk'`
435
-
436
- When and where a widget runs: the moment and time zone relative dates resolve in, and the pager's window.
437
-
438
- ```ts
439
- interface WidgetRunOptions {
440
- readonly now: Date;
441
- /** The person's time zone (an IANA name). */
442
- readonly zone: string;
443
- /** The rows a run asks for when the widget pages (its first visual's page size, or the pager's). */
444
- readonly window: number;
445
- }
446
- ```
447
-
448
- #### `widgetPager`
449
-
450
- function · `import { widgetPager } from '@harness/sdk'`
451
-
452
- The pager's state after a run that asked for `window` rows: a full window means more may follow.
453
-
454
- ```ts
455
- function widgetPager(paging: WidgetPaging, table: Pick<ResultTable, "rows">, window: number): WidgetPager;
456
- ```
457
-
458
- Refers to: [`ResultTable`](context:fs/authoring.core-types.registries-ts#core-resulttable), [`WidgetPager`](context:fs/authoring.core-types.widgets-ts#core-widgetpager), [`WidgetPaging`](context:fs/authoring.core-types.widgets-ts#core-widgetpaging).
459
-
460
- #### `resolveRelative`
461
-
462
- function · `import { resolveRelative } from '@harness/sdk'`
463
-
464
- A relative date as a plain value at `now` in the time zone `zone` (an IANA name): `YYYY-MM-DD` for a day
465
- (`RELATIVE_DATES[expr].yields === 'day'`), ISO text in UTC for an instant. Throws on an unknown time zone.
466
-
467
- ```ts
468
- resolveRelative('startOf(month,today-1mo)', new Date('2026-03-15T10:00:00Z'), 'Europe/London'); // '2026-02-01'
469
- ```
470
-
471
- ```ts
472
- function resolveRelative(expr: RelativeDate, now: Date, zone: string): string;
473
- ```
474
-
475
- Refers to: [`RelativeDate`](context:fs/authoring.core-types.widgets-ts#core-relativedate).
476
-
477
- #### `resolveArgValue`
478
-
479
- function · `import { resolveArgValue } from '@harness/sdk'`
480
-
481
- An argument value as the source takes it: a literal as is, a relative date resolved at `now` in `zone`.
482
-
483
- ```ts
484
- function resolveArgValue(value: ArgValue, now: Date, zone: string): Json;
485
- ```
486
-
487
- Refers to: [`ArgValue`](context:fs/authoring.core-types.widgets-ts#core-argvalue), [`Json`](context:fs/authoring.core-types.primitives-ts#core-json).
488
-
489
- #### `relativeDatesFor`
490
-
491
- function · `import { relativeDatesFor } from '@harness/sdk'`
492
-
493
- The relative dates that fill an argument of a gin type: days for `date`, instants for `timestamp`, else none.
494
-
495
- ```ts
496
- function relativeDatesFor(typeName: string): RelativeDate[];
497
- ```
498
-
499
- Refers to: [`RelativeDate`](context:fs/authoring.core-types.widgets-ts#core-relativedate).
500
-
501
- #### `widgetActionOptions`
502
-
503
- function · `import { widgetActionOptions } from '@harness/sdk'`
504
-
505
- The actions a row offers: every row fn when the widget lists none, else the listed ones in their order, each
506
- labelled (`actionLabel` unless relabelled), confirming when `confirmOf` says so, with its bound args, a form for the
507
- args left (the form comes first; the confirm follows for anything above a read), and what follows: the widget's
508
- `then`, else derived (`deriveThen`: rows returned open, a write refreshes, else a status line). A method's value
509
- (`self`) is bound by the row's ref, so it never shows in the form. A listed action whose fn isn't among `rowFns`
510
- is left out.
511
-
512
- ```ts
513
- function widgetActionOptions(rowFns: readonly RowFn[], actions: readonly WidgetAction[] | undefined): WidgetActionOption[];
514
- ```
515
-
516
- Refers to: [`WidgetAction`](context:fs/authoring.core-types.widgets-ts#core-widgetaction), [`WidgetActionOption`](context:fs/authoring.core-types.widgets-ts#core-widgetactionoption).
517
-
518
- #### `RowFn`
519
-
520
- interface · `import { RowFn } from '@harness/sdk'`
521
-
522
- A fn a row could run: a method of the row's type or any fn a widget binds, with its mode, args and declared return.
523
-
524
- ```ts
525
- interface RowFn {
526
- readonly fn: QualifiedName;
527
- readonly mode: FnMode;
528
- readonly args: GinTypeDef;
529
- /** Its declared return is a table (`returnsTable`), so its rows open as a new level. */
530
- readonly returnsTable: boolean;
531
- }
532
- ```
533
-
534
- Refers to: [`FnMode`](context:fs/authoring.core-types.contextdecl#core-fnmode), [`GinTypeDef`](context:fs/authoring.core-types.gin-ts#core-gintypedef), [`QualifiedName`](context:fs/authoring.core-types.primitives-ts#core-qualifiedname).
535
-
536
- #### `boundArgs`
537
-
538
- function · `import { boundArgs } from '@harness/sdk'`
539
-
540
- The args a click takes from a row (an action's or the drill's `bind`: arg → column), by column name. A column the
541
- table lacks, or a row past its end, throws: the widget's check already refused such a binding.
542
-
543
- ```ts
544
- function boundArgs(bind: Readonly<Record<string, string>>, table: Pick<ResultTable, "columns" | "rows">, rowIndex: number): Record<string, Json>;
545
- ```
546
-
547
- Refers to: [`Json`](context:fs/authoring.core-types.primitives-ts#core-json), [`ResultTable`](context:fs/authoring.core-types.registries-ts#core-resulttable).
548
-
549
- #### `returnsTable`
550
-
551
- function · `import { returnsTable } from '@harness/sdk'`
552
-
553
- Whether a fn's declared return is a table: every value of it is a `ResultTable` (gin `compatible`), so the chat routes
554
- it to the result view (`RESULT_TABLE_ROUTING`) and a widget may draw from it. A return that names a type `scope`
555
- doesn't know is not a table.
556
-
557
- ```ts
558
- function returnsTable(returns: GinTypeDef, scope?: TypeScope): boolean;
559
- ```
560
-
561
- Refers to: [`GinTypeDef`](context:fs/authoring.core-types.gin-ts#core-gintypedef).
562
-
563
- #### `ginTypeOf`
564
-
565
- function · `import { ginTypeOf } from '@harness/sdk'`
566
-
567
- A gin type from its definition, in `scope` (the hub's or loaded types) or `g`. Throws a gin error when it doesn't parse.
568
-
569
- ```ts
570
- function ginTypeOf(def: GinTypeDef, scope?: TypeScope): GinType;
571
- ```
572
-
573
- Refers to: [`GinTypeDef`](context:fs/authoring.core-types.gin-ts#core-gintypedef).
574
-
575
- #### `checkWidget`
576
-
577
- function · `import { checkWidget } from '@harness/sdk'`
578
-
579
- Every problem with a widget spec against its source's args and a real result (or the source's declared columns):
580
- arg plans naming args the source lacks, a required arg hidden, values that aren't the arg's type, presets setting
581
- pinned or unknown args, paging and range args of the wrong kind; visuals not in `HUB_VISUALS`, styles they don't
582
- have, bindings that don't draw (core's `bindingProblems`, a channel left out taking the default binding); action and
583
- drill bindings to columns the result lacks. A visual with a problem leaves `visuals`; the rest keep the spec's order.
584
-
585
- ```ts
586
- function checkWidget(spec: WidgetSpec, input: WidgetCheckInput): WidgetCheckResult;
587
- ```
588
-
589
- Refers to: [`WidgetSpec`](context:fs/authoring.core-types.widgets-ts#core-widgetspec).
590
-
591
- #### `WidgetCheckInput`
592
-
593
- interface · `import { WidgetCheckInput } from '@harness/sdk'`
594
-
595
- What `checkWidget` is given besides the spec.
596
-
597
- ```ts
598
- interface WidgetCheckInput {
599
- /** The source's args type. */
600
- readonly args: GinTypeDef;
601
- /** The facts of a real result of the source (`resultFacts`), or of its declared columns. */
602
- readonly facts: ResultFacts;
603
- /** Every `HUB_VISUALS` contribution (the hub's `hub/visuals`). */
604
- readonly entries: readonly VisualContribution[];
605
- /** The rows, so rules over values (a tree's parent links) are judged too. */
606
- readonly table?: Pick<ResultTable, 'rows' | 'columns'>;
607
- /** Where the args' named types resolve (the hub's scope); `g` without it. */
608
- readonly scope?: TypeScope;
609
- }
610
- ```
611
-
612
- Refers to: [`GinTypeDef`](context:fs/authoring.core-types.gin-ts#core-gintypedef), [`ResultFacts`](context:fs/authoring.core-types.visuals-ts#core-resultfacts), [`ResultTable`](context:fs/authoring.core-types.registries-ts#core-resulttable).
613
-
614
- #### `WidgetCheckResult`
615
-
616
- interface · `import { WidgetCheckResult } from '@harness/sdk'`
617
-
618
- What `checkWidget` finds: the spec's visuals that draw this result, in its order, and every problem in words.
619
-
620
- ```ts
621
- interface WidgetCheckResult {
622
- readonly visuals: WidgetVisual[];
623
- readonly problems: string[];
624
- }
625
- ```
626
-
627
- Refers to: [`WidgetVisual`](context:fs/authoring.core-types.widgets-ts#core-widgetvisual).