fnloom 0.0.0-stage → 0.1.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.
Files changed (1598) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +162 -2
  3. package/package.json +77 -4
  4. package/packages/build/package.json +31 -0
  5. package/packages/build/src/build-system.ts +186 -0
  6. package/packages/build/src/builder.ts +225 -0
  7. package/packages/build/src/context.ts +2 -0
  8. package/packages/build/src/files.ts +73 -0
  9. package/packages/build/src/folder.ts +52 -0
  10. package/packages/build/src/index.ts +20 -0
  11. package/packages/build/src/scan.ts +82 -0
  12. package/packages/build/src/tests.ts +138 -0
  13. package/packages/build/tsconfig.json +6 -0
  14. package/packages/cli/bin/harness.mjs +17 -0
  15. package/packages/cli/package.json +27 -0
  16. package/packages/cli/src/catalog.ts +35 -0
  17. package/packages/cli/src/cli.ts +83 -0
  18. package/packages/cli/src/command.ts +112 -0
  19. package/packages/cli/src/commands/available.ts +66 -0
  20. package/packages/cli/src/commands/build.ts +57 -0
  21. package/packages/cli/src/commands/data.ts +36 -0
  22. package/packages/cli/src/commands/install.ts +109 -0
  23. package/packages/cli/src/commands/manage.ts +104 -0
  24. package/packages/cli/src/commands/mcp.ts +198 -0
  25. package/packages/cli/src/commands/new.ts +139 -0
  26. package/packages/cli/src/commands/pack.ts +37 -0
  27. package/packages/cli/src/commands/start.ts +22 -0
  28. package/packages/cli/src/commands/test.ts +57 -0
  29. package/packages/cli/src/files.ts +5 -0
  30. package/packages/cli/src/hub-client.ts +84 -0
  31. package/packages/cli/src/hub.ts +169 -0
  32. package/packages/cli/src/index.ts +12 -0
  33. package/packages/cli/src/io.ts +32 -0
  34. package/packages/cli/src/live.ts +66 -0
  35. package/packages/cli/src/local.ts +94 -0
  36. package/packages/cli/src/main.ts +6 -0
  37. package/packages/cli/src/testing.ts +216 -0
  38. package/packages/cli/tsconfig.json +6 -0
  39. package/packages/core/package.json +21 -0
  40. package/packages/core/src/access.ts +97 -0
  41. package/packages/core/src/admin.ts +90 -0
  42. package/packages/core/src/api-index.ts +26 -0
  43. package/packages/core/src/approvals.ts +229 -0
  44. package/packages/core/src/auto-pair.ts +47 -0
  45. package/packages/core/src/changes.ts +61 -0
  46. package/packages/core/src/checks.ts +93 -0
  47. package/packages/core/src/claims.ts +98 -0
  48. package/packages/core/src/compare.ts +47 -0
  49. package/packages/core/src/config-secrets.ts +28 -0
  50. package/packages/core/src/connections.ts +193 -0
  51. package/packages/core/src/context-files.ts +179 -0
  52. package/packages/core/src/context-graph.ts +270 -0
  53. package/packages/core/src/csv.ts +33 -0
  54. package/packages/core/src/data.ts +176 -0
  55. package/packages/core/src/decisions.ts +98 -0
  56. package/packages/core/src/flow.ts +225 -0
  57. package/packages/core/src/fn-block.ts +51 -0
  58. package/packages/core/src/fn-facts.ts +533 -0
  59. package/packages/core/src/fn-renames.ts +102 -0
  60. package/packages/core/src/gin-a.ts +185 -0
  61. package/packages/core/src/gin-record.ts +142 -0
  62. package/packages/core/src/gin.ts +104 -0
  63. package/packages/core/src/grants.ts +84 -0
  64. package/packages/core/src/graph-kinds.ts +44 -0
  65. package/packages/core/src/graph.ts +95 -0
  66. package/packages/core/src/https.ts +35 -0
  67. package/packages/core/src/identity.ts +38 -0
  68. package/packages/core/src/image-embeddings.ts +96 -0
  69. package/packages/core/src/index.ts +129 -0
  70. package/packages/core/src/inject.ts +104 -0
  71. package/packages/core/src/issues.ts +137 -0
  72. package/packages/core/src/labels.ts +96 -0
  73. package/packages/core/src/lifecycle.ts +237 -0
  74. package/packages/core/src/link.ts +491 -0
  75. package/packages/core/src/llm.ts +167 -0
  76. package/packages/core/src/manifest.ts +657 -0
  77. package/packages/core/src/mcp-servers.ts +134 -0
  78. package/packages/core/src/media-types.ts +145 -0
  79. package/packages/core/src/mention-search.ts +27 -0
  80. package/packages/core/src/metrics.ts +91 -0
  81. package/packages/core/src/model-calls.ts +223 -0
  82. package/packages/core/src/model-names.ts +704 -0
  83. package/packages/core/src/modes.ts +325 -0
  84. package/packages/core/src/objects.ts +15 -0
  85. package/packages/core/src/owner-runs.ts +89 -0
  86. package/packages/core/src/package.ts +195 -0
  87. package/packages/core/src/partial.ts +69 -0
  88. package/packages/core/src/people-only.ts +52 -0
  89. package/packages/core/src/pickers.ts +31 -0
  90. package/packages/core/src/ports.ts +14 -0
  91. package/packages/core/src/primitives.ts +287 -0
  92. package/packages/core/src/programs.ts +155 -0
  93. package/packages/core/src/query.ts +264 -0
  94. package/packages/core/src/records/actors.ts +188 -0
  95. package/packages/core/src/records/announced.ts +39 -0
  96. package/packages/core/src/records/chat.ts +279 -0
  97. package/packages/core/src/records/citations.ts +126 -0
  98. package/packages/core/src/records/compare.ts +97 -0
  99. package/packages/core/src/records/content.ts +196 -0
  100. package/packages/core/src/records/injections.ts +146 -0
  101. package/packages/core/src/records/mcps.ts +115 -0
  102. package/packages/core/src/records/runs.ts +280 -0
  103. package/packages/core/src/records/spend.ts +158 -0
  104. package/packages/core/src/records/systems.ts +298 -0
  105. package/packages/core/src/records/tables.ts +164 -0
  106. package/packages/core/src/registries.ts +229 -0
  107. package/packages/core/src/remote-auth.ts +111 -0
  108. package/packages/core/src/resource-forms.ts +218 -0
  109. package/packages/core/src/resources.ts +166 -0
  110. package/packages/core/src/review-summary.ts +69 -0
  111. package/packages/core/src/run.ts +312 -0
  112. package/packages/core/src/sensitivity.ts +101 -0
  113. package/packages/core/src/sso.ts +268 -0
  114. package/packages/core/src/status.ts +158 -0
  115. package/packages/core/src/suggestions.ts +228 -0
  116. package/packages/core/src/system-events.ts +47 -0
  117. package/packages/core/src/system-pages.ts +72 -0
  118. package/packages/core/src/system-parts.ts +51 -0
  119. package/packages/core/src/system-providers.ts +163 -0
  120. package/packages/core/src/urls.ts +50 -0
  121. package/packages/core/src/validation.ts +39 -0
  122. package/packages/core/src/versions.ts +52 -0
  123. package/packages/core/src/visuals.ts +478 -0
  124. package/packages/core/src/web.ts +965 -0
  125. package/packages/core/src/widgets-v1.ts +73 -0
  126. package/packages/core/src/widgets.ts +427 -0
  127. package/packages/core/tsconfig.json +5 -0
  128. package/packages/hub/context/asking.md +16 -0
  129. package/packages/hub/context/attached_files.md +27 -0
  130. package/packages/hub/context/background_runs.md +14 -0
  131. package/packages/hub/context/earlier_chats.md +16 -0
  132. package/packages/hub/context/examples.md +13 -0
  133. package/packages/hub/context/finding_fns.md +18 -0
  134. package/packages/hub/context/images.md +24 -0
  135. package/packages/hub/context/later.md +27 -0
  136. package/packages/hub/context/limits.md +13 -0
  137. package/packages/hub/context/memory.md +38 -0
  138. package/packages/hub/context/resources.md +21 -0
  139. package/packages/hub/context/saved_fns.md +28 -0
  140. package/packages/hub/context/undo.md +20 -0
  141. package/packages/hub/package.json +55 -0
  142. package/packages/hub/src/access/create.ts +29 -0
  143. package/packages/hub/src/access/hits.ts +57 -0
  144. package/packages/hub/src/access/index.ts +119 -0
  145. package/packages/hub/src/access/scope.ts +133 -0
  146. package/packages/hub/src/access/service.ts +171 -0
  147. package/packages/hub/src/api/admin-ops.ts +410 -0
  148. package/packages/hub/src/api/auth.ts +286 -0
  149. package/packages/hub/src/api/client-address.ts +55 -0
  150. package/packages/hub/src/api/connect.ts +45 -0
  151. package/packages/hub/src/api/dual.ts +103 -0
  152. package/packages/hub/src/api/events.ts +185 -0
  153. package/packages/hub/src/api/files.ts +209 -0
  154. package/packages/hub/src/api/hash.ts +23 -0
  155. package/packages/hub/src/api/http.ts +171 -0
  156. package/packages/hub/src/api/https.ts +125 -0
  157. package/packages/hub/src/api/identities.ts +246 -0
  158. package/packages/hub/src/api/index.ts +94 -0
  159. package/packages/hub/src/api/injections.ts +256 -0
  160. package/packages/hub/src/api/mime.ts +31 -0
  161. package/packages/hub/src/api/person-ops.ts +153 -0
  162. package/packages/hub/src/api/push.ts +97 -0
  163. package/packages/hub/src/api/reads.ts +145 -0
  164. package/packages/hub/src/api/secrets.ts +71 -0
  165. package/packages/hub/src/api/serve.ts +280 -0
  166. package/packages/hub/src/api/signed.ts +66 -0
  167. package/packages/hub/src/api/sso-route.ts +73 -0
  168. package/packages/hub/src/api/sso.ts +382 -0
  169. package/packages/hub/src/api/system-parts.ts +97 -0
  170. package/packages/hub/src/api/testing/issuer.ts +128 -0
  171. package/packages/hub/src/api/testing/rig.ts +272 -0
  172. package/packages/hub/src/api/tls.ts +383 -0
  173. package/packages/hub/src/api/web/access.ts +84 -0
  174. package/packages/hub/src/api/web/admin.ts +90 -0
  175. package/packages/hub/src/api/web/auth.ts +103 -0
  176. package/packages/hub/src/api/web/build3.ts +44 -0
  177. package/packages/hub/src/api/web/build4.ts +24 -0
  178. package/packages/hub/src/api/web/build5.ts +120 -0
  179. package/packages/hub/src/api/web/chat.ts +144 -0
  180. package/packages/hub/src/api/web/content.ts +42 -0
  181. package/packages/hub/src/api/web/context.ts +41 -0
  182. package/packages/hub/src/api/web/contextor.ts +37 -0
  183. package/packages/hub/src/api/web/data.ts +33 -0
  184. package/packages/hub/src/api/web/explorer.ts +22 -0
  185. package/packages/hub/src/api/web/find.ts +50 -0
  186. package/packages/hub/src/api/web/graph.ts +17 -0
  187. package/packages/hub/src/api/web/https.ts +18 -0
  188. package/packages/hub/src/api/web/identity.ts +18 -0
  189. package/packages/hub/src/api/web/images.ts +18 -0
  190. package/packages/hub/src/api/web/inbox.ts +35 -0
  191. package/packages/hub/src/api/web/index.ts +137 -0
  192. package/packages/hub/src/api/web/injections.ts +22 -0
  193. package/packages/hub/src/api/web/mcps.ts +32 -0
  194. package/packages/hub/src/api/web/metrics.ts +24 -0
  195. package/packages/hub/src/api/web/models.ts +21 -0
  196. package/packages/hub/src/api/web/outside-images.ts +32 -0
  197. package/packages/hub/src/api/web/packaging.ts +31 -0
  198. package/packages/hub/src/api/web/pages.ts +55 -0
  199. package/packages/hub/src/api/web/people.ts +92 -0
  200. package/packages/hub/src/api/web/pickers.ts +115 -0
  201. package/packages/hub/src/api/web/resources.ts +42 -0
  202. package/packages/hub/src/api/web/review.ts +119 -0
  203. package/packages/hub/src/api/web/runs.ts +94 -0
  204. package/packages/hub/src/api/web/settings.ts +35 -0
  205. package/packages/hub/src/api/web/systems.ts +83 -0
  206. package/packages/hub/src/api/web/tables.ts +31 -0
  207. package/packages/hub/src/api/web/versions.ts +17 -0
  208. package/packages/hub/src/api/web/visibility.ts +47 -0
  209. package/packages/hub/src/boot/admin-fns.ts +78 -0
  210. package/packages/hub/src/boot/admin-secrets.ts +140 -0
  211. package/packages/hub/src/boot/env.ts +170 -0
  212. package/packages/hub/src/boot/hub-context.ts +39 -0
  213. package/packages/hub/src/boot/hub-fns.ts +549 -0
  214. package/packages/hub/src/boot/hub-groups.ts +34 -0
  215. package/packages/hub/src/boot/identity.ts +66 -0
  216. package/packages/hub/src/boot/index.ts +191 -0
  217. package/packages/hub/src/boot/info.ts +22 -0
  218. package/packages/hub/src/boot/keys.ts +60 -0
  219. package/packages/hub/src/boot/log.ts +31 -0
  220. package/packages/hub/src/boot/modules.ts +277 -0
  221. package/packages/hub/src/boot/person-fns.ts +78 -0
  222. package/packages/hub/src/boot/read-fns.ts +73 -0
  223. package/packages/hub/src/boot/services.ts +156 -0
  224. package/packages/hub/src/boot/start.ts +246 -0
  225. package/packages/hub/src/bus/memory.ts +60 -0
  226. package/packages/hub/src/bus.ts +80 -0
  227. package/packages/hub/src/catalog/api-index.ts +72 -0
  228. package/packages/hub/src/catalog/availability.ts +210 -0
  229. package/packages/hub/src/catalog/catalog.ts +1062 -0
  230. package/packages/hub/src/catalog/definitions.ts +19 -0
  231. package/packages/hub/src/catalog/fixtures.ts +82 -0
  232. package/packages/hub/src/catalog/fn-names.ts +128 -0
  233. package/packages/hub/src/catalog/index.ts +126 -0
  234. package/packages/hub/src/catalog/injections.ts +90 -0
  235. package/packages/hub/src/catalog/scope.ts +86 -0
  236. package/packages/hub/src/catalog/serial.ts +10 -0
  237. package/packages/hub/src/catalog/signature.ts +69 -0
  238. package/packages/hub/src/catalog/versions.ts +110 -0
  239. package/packages/hub/src/chat/announce.ts +145 -0
  240. package/packages/hub/src/chat/cache.ts +50 -0
  241. package/packages/hub/src/chat/chat.ts +72 -0
  242. package/packages/hub/src/chat/cite-rule.ts +64 -0
  243. package/packages/hub/src/chat/cites.ts +236 -0
  244. package/packages/hub/src/chat/compare.ts +290 -0
  245. package/packages/hub/src/chat/deliveries.ts +187 -0
  246. package/packages/hub/src/chat/deps.ts +69 -0
  247. package/packages/hub/src/chat/enrich.ts +601 -0
  248. package/packages/hub/src/chat/env.ts +33 -0
  249. package/packages/hub/src/chat/errors.ts +38 -0
  250. package/packages/hub/src/chat/files.ts +72 -0
  251. package/packages/hub/src/chat/index.ts +259 -0
  252. package/packages/hub/src/chat/mention-requests.ts +49 -0
  253. package/packages/hub/src/chat/mention-search.ts +64 -0
  254. package/packages/hub/src/chat/mentions.ts +274 -0
  255. package/packages/hub/src/chat/notifications.ts +278 -0
  256. package/packages/hub/src/chat/people.ts +59 -0
  257. package/packages/hub/src/chat/presence.ts +48 -0
  258. package/packages/hub/src/chat/reply.ts +23 -0
  259. package/packages/hub/src/chat/sessions.ts +306 -0
  260. package/packages/hub/src/chat/shown.ts +158 -0
  261. package/packages/hub/src/chat/state.ts +270 -0
  262. package/packages/hub/src/chat/streams.ts +92 -0
  263. package/packages/hub/src/chat/suggestions.ts +383 -0
  264. package/packages/hub/src/chat/support.ts +144 -0
  265. package/packages/hub/src/chat/testing.ts +488 -0
  266. package/packages/hub/src/chat/turns.ts +586 -0
  267. package/packages/hub/src/chat/undo.ts +177 -0
  268. package/packages/hub/src/connections/create.ts +25 -0
  269. package/packages/hub/src/connections/env.ts +14 -0
  270. package/packages/hub/src/connections/index.ts +86 -0
  271. package/packages/hub/src/connections/service.ts +536 -0
  272. package/packages/hub/src/contextor/brought.ts +64 -0
  273. package/packages/hub/src/contextor/budget.ts +74 -0
  274. package/packages/hub/src/contextor/calibration.ts +35 -0
  275. package/packages/hub/src/contextor/choose.ts +116 -0
  276. package/packages/hub/src/contextor/contextors.ts +550 -0
  277. package/packages/hub/src/contextor/crawl.ts +252 -0
  278. package/packages/hub/src/contextor/create.ts +113 -0
  279. package/packages/hub/src/contextor/dynamic.ts +102 -0
  280. package/packages/hub/src/contextor/env.ts +83 -0
  281. package/packages/hub/src/contextor/examples.ts +204 -0
  282. package/packages/hub/src/contextor/fns.ts +147 -0
  283. package/packages/hub/src/contextor/graph.ts +137 -0
  284. package/packages/hub/src/contextor/history.ts +211 -0
  285. package/packages/hub/src/contextor/index.ts +524 -0
  286. package/packages/hub/src/contextor/injected.ts +401 -0
  287. package/packages/hub/src/contextor/limits.ts +168 -0
  288. package/packages/hub/src/contextor/links.ts +67 -0
  289. package/packages/hub/src/contextor/modes.ts +520 -0
  290. package/packages/hub/src/contextor/planner.ts +626 -0
  291. package/packages/hub/src/contextor/render.ts +531 -0
  292. package/packages/hub/src/contextor/score.ts +93 -0
  293. package/packages/hub/src/contextor/testing.ts +161 -0
  294. package/packages/hub/src/contextor/tokens.ts +102 -0
  295. package/packages/hub/src/contextor/views.ts +171 -0
  296. package/packages/hub/src/contextor/xml.ts +140 -0
  297. package/packages/hub/src/data/create.ts +45 -0
  298. package/packages/hub/src/data/env.ts +16 -0
  299. package/packages/hub/src/data/fields.ts +71 -0
  300. package/packages/hub/src/data/fns.ts +50 -0
  301. package/packages/hub/src/data/index.ts +50 -0
  302. package/packages/hub/src/data/service.ts +348 -0
  303. package/packages/hub/src/execution/agent.ts +1381 -0
  304. package/packages/hub/src/execution/ai.ts +408 -0
  305. package/packages/hub/src/execution/channel.ts +38 -0
  306. package/packages/hub/src/execution/claims.ts +103 -0
  307. package/packages/hub/src/execution/create.ts +261 -0
  308. package/packages/hub/src/execution/deadlines.ts +74 -0
  309. package/packages/hub/src/execution/deciders.ts +60 -0
  310. package/packages/hub/src/execution/env.ts +28 -0
  311. package/packages/hub/src/execution/errors.ts +103 -0
  312. package/packages/hub/src/execution/executors.ts +246 -0
  313. package/packages/hub/src/execution/gateway.ts +209 -0
  314. package/packages/hub/src/execution/handlers.ts +154 -0
  315. package/packages/hub/src/execution/hub-fns.ts +50 -0
  316. package/packages/hub/src/execution/index.ts +244 -0
  317. package/packages/hub/src/execution/interactions.ts +65 -0
  318. package/packages/hub/src/execution/ledger.ts +168 -0
  319. package/packages/hub/src/execution/limits.ts +175 -0
  320. package/packages/hub/src/execution/link-handlers.ts +142 -0
  321. package/packages/hub/src/execution/media.ts +240 -0
  322. package/packages/hub/src/execution/models.ts +42 -0
  323. package/packages/hub/src/execution/policies.ts +371 -0
  324. package/packages/hub/src/execution/ports.ts +159 -0
  325. package/packages/hub/src/execution/providers.ts +106 -0
  326. package/packages/hub/src/execution/queues.ts +161 -0
  327. package/packages/hub/src/execution/runs.ts +1237 -0
  328. package/packages/hub/src/execution/scope.ts +152 -0
  329. package/packages/hub/src/execution/spend.ts +75 -0
  330. package/packages/hub/src/execution/stream-guard.ts +138 -0
  331. package/packages/hub/src/execution/testing.ts +490 -0
  332. package/packages/hub/src/execution/time.ts +36 -0
  333. package/packages/hub/src/execution/tools.ts +84 -0
  334. package/packages/hub/src/execution/wire.ts +99 -0
  335. package/packages/hub/src/execution/wording.ts +38 -0
  336. package/packages/hub/src/fns/auto.ts +109 -0
  337. package/packages/hub/src/fns/client-logs.ts +83 -0
  338. package/packages/hub/src/fns/costs.ts +139 -0
  339. package/packages/hub/src/fns/create.ts +140 -0
  340. package/packages/hub/src/fns/decided.ts +313 -0
  341. package/packages/hub/src/fns/env.ts +23 -0
  342. package/packages/hub/src/fns/examples.ts +184 -0
  343. package/packages/hub/src/fns/facts.ts +251 -0
  344. package/packages/hub/src/fns/gate.ts +40 -0
  345. package/packages/hub/src/fns/index.ts +149 -0
  346. package/packages/hub/src/fns/search.ts +351 -0
  347. package/packages/hub/src/graph/graph.ts +667 -0
  348. package/packages/hub/src/graph/source.ts +42 -0
  349. package/packages/hub/src/index/batch.ts +96 -0
  350. package/packages/hub/src/index/context-sections.ts +51 -0
  351. package/packages/hub/src/index/embedders.ts +242 -0
  352. package/packages/hub/src/index/env.ts +25 -0
  353. package/packages/hub/src/index/image-setting.ts +55 -0
  354. package/packages/hub/src/index/images.ts +43 -0
  355. package/packages/hub/src/index/index.ts +168 -0
  356. package/packages/hub/src/index/indexer.ts +663 -0
  357. package/packages/hub/src/index/search.ts +168 -0
  358. package/packages/hub/src/index/sectioners.ts +209 -0
  359. package/packages/hub/src/index/sectioning.ts +57 -0
  360. package/packages/hub/src/index/suggester.ts +65 -0
  361. package/packages/hub/src/index/testing.ts +113 -0
  362. package/packages/hub/src/index.ts +19 -0
  363. package/packages/hub/src/link/auto-pair.ts +225 -0
  364. package/packages/hub/src/link/build.ts +216 -0
  365. package/packages/hub/src/link/config-secrets.ts +171 -0
  366. package/packages/hub/src/link/config.ts +140 -0
  367. package/packages/hub/src/link/connections.ts +139 -0
  368. package/packages/hub/src/link/describer.ts +29 -0
  369. package/packages/hub/src/link/env.ts +42 -0
  370. package/packages/hub/src/link/events.ts +123 -0
  371. package/packages/hub/src/link/gate.ts +117 -0
  372. package/packages/hub/src/link/grants.ts +346 -0
  373. package/packages/hub/src/link/handlers.ts +301 -0
  374. package/packages/hub/src/link/index.ts +232 -0
  375. package/packages/hub/src/link/install.ts +92 -0
  376. package/packages/hub/src/link/keys.ts +32 -0
  377. package/packages/hub/src/link/lifecycle.ts +520 -0
  378. package/packages/hub/src/link/migrate-api.ts +210 -0
  379. package/packages/hub/src/link/migrate.ts +44 -0
  380. package/packages/hub/src/link/output.ts +63 -0
  381. package/packages/hub/src/link/owner-runs.ts +313 -0
  382. package/packages/hub/src/link/package/data.ts +53 -0
  383. package/packages/hub/src/link/package/format.ts +126 -0
  384. package/packages/hub/src/link/package/index.ts +9 -0
  385. package/packages/hub/src/link/package/zip.ts +137 -0
  386. package/packages/hub/src/link/packages.ts +180 -0
  387. package/packages/hub/src/link/pairing.ts +503 -0
  388. package/packages/hub/src/link/process.ts +93 -0
  389. package/packages/hub/src/link/reads.ts +91 -0
  390. package/packages/hub/src/link/resources.ts +166 -0
  391. package/packages/hub/src/link/review-summary.ts +279 -0
  392. package/packages/hub/src/link/rig.ts +335 -0
  393. package/packages/hub/src/link/router.ts +118 -0
  394. package/packages/hub/src/link/services.ts +294 -0
  395. package/packages/hub/src/link/status.ts +126 -0
  396. package/packages/hub/src/link/supervisor.ts +547 -0
  397. package/packages/hub/src/link/systems.ts +101 -0
  398. package/packages/hub/src/link/tokens.ts +30 -0
  399. package/packages/hub/src/main.ts +19 -0
  400. package/packages/hub/src/mcp/calls.ts +153 -0
  401. package/packages/hub/src/mcp/create.ts +51 -0
  402. package/packages/hub/src/mcp/endpoints.ts +206 -0
  403. package/packages/hub/src/mcp/env.ts +19 -0
  404. package/packages/hub/src/mcp/fns.ts +23 -0
  405. package/packages/hub/src/mcp/index.ts +76 -0
  406. package/packages/hub/src/mcp/registry.ts +150 -0
  407. package/packages/hub/src/mcp/scopes.ts +218 -0
  408. package/packages/hub/src/mcp/sources.ts +154 -0
  409. package/packages/hub/src/mcp/tokens.ts +72 -0
  410. package/packages/hub/src/mcp/tools.ts +173 -0
  411. package/packages/hub/src/metrics/calls.ts +123 -0
  412. package/packages/hub/src/metrics/create.ts +15 -0
  413. package/packages/hub/src/metrics/fn-metrics.ts +97 -0
  414. package/packages/hub/src/metrics/index.ts +58 -0
  415. package/packages/hub/src/metrics/rollup.ts +188 -0
  416. package/packages/hub/src/models/create.ts +65 -0
  417. package/packages/hub/src/models/decide.ts +134 -0
  418. package/packages/hub/src/models/gateway.ts +102 -0
  419. package/packages/hub/src/models/index.ts +82 -0
  420. package/packages/hub/src/models/pinned.ts +10 -0
  421. package/packages/hub/src/models/remote.ts +386 -0
  422. package/packages/hub/src/models/roles.ts +160 -0
  423. package/packages/hub/src/models/structured.ts +30 -0
  424. package/packages/hub/src/query/columns.ts +55 -0
  425. package/packages/hub/src/query/contexts.ts +102 -0
  426. package/packages/hub/src/query/env.ts +17 -0
  427. package/packages/hub/src/query/evaluate.ts +181 -0
  428. package/packages/hub/src/query/index.ts +32 -0
  429. package/packages/hub/src/query/service.ts +64 -0
  430. package/packages/hub/src/query/sources.ts +344 -0
  431. package/packages/hub/src/query/sql-source.ts +93 -0
  432. package/packages/hub/src/resources/browse.ts +131 -0
  433. package/packages/hub/src/resources/content.ts +183 -0
  434. package/packages/hub/src/resources/context.ts +405 -0
  435. package/packages/hub/src/resources/converters.ts +78 -0
  436. package/packages/hub/src/resources/create.ts +88 -0
  437. package/packages/hub/src/resources/env.ts +24 -0
  438. package/packages/hub/src/resources/fetch.ts +140 -0
  439. package/packages/hub/src/resources/fns.ts +172 -0
  440. package/packages/hub/src/resources/forms.ts +285 -0
  441. package/packages/hub/src/resources/images.ts +182 -0
  442. package/packages/hub/src/resources/index.ts +186 -0
  443. package/packages/hub/src/resources/library.ts +228 -0
  444. package/packages/hub/src/resources/models.ts +116 -0
  445. package/packages/hub/src/resources/pdf-pages.ts +455 -0
  446. package/packages/hub/src/resources/raw.ts +108 -0
  447. package/packages/hub/src/resources/reader.ts +224 -0
  448. package/packages/hub/src/resources/rules.ts +110 -0
  449. package/packages/hub/src/resources/sqlite-files.ts +140 -0
  450. package/packages/hub/src/resources/storage.ts +40 -0
  451. package/packages/hub/src/resources/testing.ts +292 -0
  452. package/packages/hub/src/store/always-for.ts +46 -0
  453. package/packages/hub/src/store/auxTables.ts +97 -0
  454. package/packages/hub/src/store/codec.ts +109 -0
  455. package/packages/hub/src/store/db.ts +137 -0
  456. package/packages/hub/src/store/env.ts +13 -0
  457. package/packages/hub/src/store/errors.ts +36 -0
  458. package/packages/hub/src/store/fixtures.ts +53 -0
  459. package/packages/hub/src/store/fn-renames.ts +72 -0
  460. package/packages/hub/src/store/hybrid.ts +130 -0
  461. package/packages/hub/src/store/index.ts +231 -0
  462. package/packages/hub/src/store/lists.ts +172 -0
  463. package/packages/hub/src/store/migrate-fn-names.ts +135 -0
  464. package/packages/hub/src/store/migrate.ts +121 -0
  465. package/packages/hub/src/store/ports.ts +163 -0
  466. package/packages/hub/src/store/query.ts +166 -0
  467. package/packages/hub/src/store/records.ts +119 -0
  468. package/packages/hub/src/store/rows.ts +105 -0
  469. package/packages/hub/src/store/schema.ts +184 -0
  470. package/packages/hub/src/store/sqlite.ts +136 -0
  471. package/packages/hub/src/store/table.ts +113 -0
  472. package/packages/hub/src/store/text.ts +92 -0
  473. package/packages/hub/src/store/vectors.ts +232 -0
  474. package/packages/hub/src/tables/env.ts +15 -0
  475. package/packages/hub/src/tables/fns.ts +29 -0
  476. package/packages/hub/src/tables/index.ts +45 -0
  477. package/packages/hub/src/tables/migrate.ts +105 -0
  478. package/packages/hub/src/tables/service.ts +245 -0
  479. package/packages/hub/src/testing.ts +128 -0
  480. package/packages/hub/tsconfig.json +6 -0
  481. package/packages/sdk/AUTHORING.md +25228 -0
  482. package/packages/sdk/package.json +58 -0
  483. package/packages/sdk/src/a-gin.ts +132 -0
  484. package/packages/sdk/src/agent.ts +121 -0
  485. package/packages/sdk/src/authoring.ts +546 -0
  486. package/packages/sdk/src/build.ts +97 -0
  487. package/packages/sdk/src/chat-prompt.ts +202 -0
  488. package/packages/sdk/src/claims.ts +20 -0
  489. package/packages/sdk/src/client-runtime.ts +514 -0
  490. package/packages/sdk/src/client.ts +672 -0
  491. package/packages/sdk/src/ctx.ts +659 -0
  492. package/packages/sdk/src/declare.ts +480 -0
  493. package/packages/sdk/src/fn.ts +514 -0
  494. package/packages/sdk/src/gin.ts +245 -0
  495. package/packages/sdk/src/hub.ts +1065 -0
  496. package/packages/sdk/src/impl.ts +35 -0
  497. package/packages/sdk/src/index.ts +87 -0
  498. package/packages/sdk/src/links.ts +35 -0
  499. package/packages/sdk/src/manifest.ts +372 -0
  500. package/packages/sdk/src/page-parts.ts +153 -0
  501. package/packages/sdk/src/program/env.ts +29 -0
  502. package/packages/sdk/src/program/index.ts +13 -0
  503. package/packages/sdk/src/program/lookups.ts +82 -0
  504. package/packages/sdk/src/program/runtime.ts +576 -0
  505. package/packages/sdk/src/program/tools.ts +268 -0
  506. package/packages/sdk/src/providers.ts +77 -0
  507. package/packages/sdk/src/refs.ts +161 -0
  508. package/packages/sdk/src/relative-dates.ts +197 -0
  509. package/packages/sdk/src/remote-auth.ts +113 -0
  510. package/packages/sdk/src/resources.ts +28 -0
  511. package/packages/sdk/src/results.ts +47 -0
  512. package/packages/sdk/src/server/address.ts +167 -0
  513. package/packages/sdk/src/server/asks.ts +111 -0
  514. package/packages/sdk/src/server/assets.ts +47 -0
  515. package/packages/sdk/src/server/authored-names.ts +79 -0
  516. package/packages/sdk/src/server/calls.ts +260 -0
  517. package/packages/sdk/src/server/content.ts +124 -0
  518. package/packages/sdk/src/server/context-check.ts +214 -0
  519. package/packages/sdk/src/server/context-files.ts +244 -0
  520. package/packages/sdk/src/server/data.ts +90 -0
  521. package/packages/sdk/src/server/env.ts +144 -0
  522. package/packages/sdk/src/server/fake-hub-fns.ts +124 -0
  523. package/packages/sdk/src/server/fake-hub-widgets.ts +67 -0
  524. package/packages/sdk/src/server/fake-models.ts +89 -0
  525. package/packages/sdk/src/server/fake-records.ts +217 -0
  526. package/packages/sdk/src/server/files.ts +118 -0
  527. package/packages/sdk/src/server/host.ts +742 -0
  528. package/packages/sdk/src/server/hosted-network-guard.ts +18 -0
  529. package/packages/sdk/src/server/index.ts +220 -0
  530. package/packages/sdk/src/server/journal.ts +131 -0
  531. package/packages/sdk/src/server/js-yaml.d.ts +19 -0
  532. package/packages/sdk/src/server/keys.ts +148 -0
  533. package/packages/sdk/src/server/link.ts +93 -0
  534. package/packages/sdk/src/server/live.ts +22 -0
  535. package/packages/sdk/src/server/llm-wire.ts +647 -0
  536. package/packages/sdk/src/server/llm.ts +555 -0
  537. package/packages/sdk/src/server/log.ts +108 -0
  538. package/packages/sdk/src/server/manifest-state.ts +113 -0
  539. package/packages/sdk/src/server/mcp-caller.ts +15 -0
  540. package/packages/sdk/src/server/mcp-prompts.ts +54 -0
  541. package/packages/sdk/src/server/mcp-resources.ts +130 -0
  542. package/packages/sdk/src/server/mcp.ts +194 -0
  543. package/packages/sdk/src/server/owner-runs.ts +109 -0
  544. package/packages/sdk/src/server/package.ts +141 -0
  545. package/packages/sdk/src/server/pairing.ts +97 -0
  546. package/packages/sdk/src/server/process.ts +53 -0
  547. package/packages/sdk/src/server/providers.ts +180 -0
  548. package/packages/sdk/src/server/proxy.ts +196 -0
  549. package/packages/sdk/src/server/renderers.ts +28 -0
  550. package/packages/sdk/src/server/resources.ts +89 -0
  551. package/packages/sdk/src/server/results.ts +121 -0
  552. package/packages/sdk/src/server/run.ts +492 -0
  553. package/packages/sdk/src/server/runs.ts +103 -0
  554. package/packages/sdk/src/server/runtime.ts +597 -0
  555. package/packages/sdk/src/server/socket-guard.ts +162 -0
  556. package/packages/sdk/src/server/state.ts +112 -0
  557. package/packages/sdk/src/server/supervise.ts +257 -0
  558. package/packages/sdk/src/server/table.ts +490 -0
  559. package/packages/sdk/src/server/testing.ts +883 -0
  560. package/packages/sdk/src/server/types.ts +26 -0
  561. package/packages/sdk/src/server/wire.ts +172 -0
  562. package/packages/sdk/src/status.ts +50 -0
  563. package/packages/sdk/src/system.ts +459 -0
  564. package/packages/sdk/src/testing/context.ts +48 -0
  565. package/packages/sdk/src/testing/env.ts +28 -0
  566. package/packages/sdk/src/testing/fixtures/NoteCard.vue +17 -0
  567. package/packages/sdk/src/testing/fixtures/context/guide.md +12 -0
  568. package/packages/sdk/src/testing/hub.ts +294 -0
  569. package/packages/sdk/src/testing/index.ts +30 -0
  570. package/packages/sdk/src/testing/models.ts +192 -0
  571. package/packages/sdk/src/testing/openrouter.ts +94 -0
  572. package/packages/sdk/src/testing/preview.ts +207 -0
  573. package/packages/sdk/src/testing/scratch.ts +58 -0
  574. package/packages/sdk/src/testing/shots.ts +17 -0
  575. package/packages/sdk/src/util.ts +35 -0
  576. package/packages/sdk/src/widget-check.ts +182 -0
  577. package/packages/sdk/src/widget-schema.ts +251 -0
  578. package/packages/sdk/src/widgets.ts +386 -0
  579. package/packages/sdk/src/zod-gin.ts +213 -0
  580. package/packages/sdk/tsconfig.json +6 -0
  581. package/packages/web/dist/assets/ActorSettingsView-BuMYRDqv.js +2 -0
  582. package/packages/web/dist/assets/ActorSettingsView-GTxPZw8N.css +1 -0
  583. package/packages/web/dist/assets/AdminLayout-1hbRPV3d.css +1 -0
  584. package/packages/web/dist/assets/AdminLayout-sLjVTrmV.js +2 -0
  585. package/packages/web/dist/assets/ApiServiceForm-BrMTU-7u.js +2 -0
  586. package/packages/web/dist/assets/ApiServiceForm-BxprSaAq.css +1 -0
  587. package/packages/web/dist/assets/ApiServiceView-BMF2zD6Q.js +2 -0
  588. package/packages/web/dist/assets/ApiServiceView-BVmdRCjR.css +1 -0
  589. package/packages/web/dist/assets/ApiServicesView-BTLV6c8n.css +1 -0
  590. package/packages/web/dist/assets/ApiServicesView-bjLAWO_j.js +2 -0
  591. package/packages/web/dist/assets/AppPage-BBzZ0Pru.css +1 -0
  592. package/packages/web/dist/assets/AppPage-DSzDKCFz.js +2 -0
  593. package/packages/web/dist/assets/AutoPairPicker-ClF4nB0n.css +1 -0
  594. package/packages/web/dist/assets/AutoPairPicker-nV38ALjl.js +2 -0
  595. package/packages/web/dist/assets/BrowserFrame-Bic7U7jN.js +2 -0
  596. package/packages/web/dist/assets/BrowserFrame-BzEdhmsF.css +1 -0
  597. package/packages/web/dist/assets/ChartVisual-BnFG9aFi.css +1 -0
  598. package/packages/web/dist/assets/ChartVisual-DWw7WsfN.js +11 -0
  599. package/packages/web/dist/assets/ChatPage-7Yebk7rl.js +4 -0
  600. package/packages/web/dist/assets/ChatPage-CbsRmktV.css +1 -0
  601. package/packages/web/dist/assets/CodeViewer-D6A30AJ9.css +1 -0
  602. package/packages/web/dist/assets/CodeViewer-xHS3Xah9.js +5 -0
  603. package/packages/web/dist/assets/ConfigWithCustom-C74DTXuy.css +1 -0
  604. package/packages/web/dist/assets/ConfigWithCustom-DreTUdf0.js +3 -0
  605. package/packages/web/dist/assets/ConfirmDialog-DjQUzNqk.js +2 -0
  606. package/packages/web/dist/assets/ConfirmDialog-oABDbIMz.css +1 -0
  607. package/packages/web/dist/assets/ConnectPage-CfRDrXvJ.js +2 -0
  608. package/packages/web/dist/assets/ConnectPage-Zz1nFbcn.css +1 -0
  609. package/packages/web/dist/assets/ContextItemPage-B6rJG3OT.js +2 -0
  610. package/packages/web/dist/assets/ContextItemPage-BRsWxOmu.css +1 -0
  611. package/packages/web/dist/assets/ContextPage-CloIZ_2y.js +2 -0
  612. package/packages/web/dist/assets/ContextPage-rYKxjiVI.css +1 -0
  613. package/packages/web/dist/assets/ContextRow-Byz_7HG-.css +1 -0
  614. package/packages/web/dist/assets/ContextRow-Dvv8CTFk.js +2 -0
  615. package/packages/web/dist/assets/DataPage-CLgJtQwS.css +1 -0
  616. package/packages/web/dist/assets/DataPage-wSIoGcb5.js +2 -0
  617. package/packages/web/dist/assets/DataTypePage-Ba_zBV4b.js +4 -0
  618. package/packages/web/dist/assets/DataTypePage-Cr238Hx_.css +1 -0
  619. package/packages/web/dist/assets/DesignPage-BFC4A-wO.css +1 -0
  620. package/packages/web/dist/assets/DesignPage-DidMUX8m.js +49 -0
  621. package/packages/web/dist/assets/ExplorePage-DJmOOIhs.css +1 -0
  622. package/packages/web/dist/assets/ExplorePage-MUyVydVB.js +2 -0
  623. package/packages/web/dist/assets/FactList-CeAbKajD.js +2 -0
  624. package/packages/web/dist/assets/FactList-DuDPr7n7.css +1 -0
  625. package/packages/web/dist/assets/FnList-BCnb4kOB.css +1 -0
  626. package/packages/web/dist/assets/FnList-CjQRwYaT.js +2 -0
  627. package/packages/web/dist/assets/FnPill-BNIWrqXN.css +1 -0
  628. package/packages/web/dist/assets/FnPill-BshAvm2I.js +2 -0
  629. package/packages/web/dist/assets/FnView-B8MGAOoB.js +2 -0
  630. package/packages/web/dist/assets/FnView-BBFbPAQz.css +1 -0
  631. package/packages/web/dist/assets/FnsView-CeqIoaBT.js +2 -0
  632. package/packages/web/dist/assets/FnsView-D575syq-.css +1 -0
  633. package/packages/web/dist/assets/GinExprView-DYVUwZrd.js +4 -0
  634. package/packages/web/dist/assets/GinExprView-dqtf5BKF.css +1 -0
  635. package/packages/web/dist/assets/GinForm-CVEsGoBo.css +1 -0
  636. package/packages/web/dist/assets/GinForm-D3mwMRTQ.js +2 -0
  637. package/packages/web/dist/assets/GinTypeView-B5CGqWvh.css +1 -0
  638. package/packages/web/dist/assets/GinTypeView-C0YifSmE.js +2 -0
  639. package/packages/web/dist/assets/GinValueView-HfEPq9le.js +4 -0
  640. package/packages/web/dist/assets/GinValueView-zhWn-X48.css +1 -0
  641. package/packages/web/dist/assets/GraphPage-ySnuA4Hp.js +2 -0
  642. package/packages/web/dist/assets/GraphPanel-B9jxpJfb.css +1 -0
  643. package/packages/web/dist/assets/GraphPanel-Cy5-KGo1.js +2 -0
  644. package/packages/web/dist/assets/HubPicker-C_vA752L.js +2 -0
  645. package/packages/web/dist/assets/InboxApprovals-DcPCCmZ5.js +2 -0
  646. package/packages/web/dist/assets/InboxApprovals-DmC94LNf.css +1 -0
  647. package/packages/web/dist/assets/InboxPage-C2DT2nuF.js +2 -0
  648. package/packages/web/dist/assets/InjectedList-BgxdlaHJ.css +1 -0
  649. package/packages/web/dist/assets/InjectedList-CJsEFEbz.js +2 -0
  650. package/packages/web/dist/assets/InstallDialog-C9GDoUI2.js +2 -0
  651. package/packages/web/dist/assets/InstallDialog-yWLZK_zN.css +1 -0
  652. package/packages/web/dist/assets/InstanceTypes-D8Jcxn70.js +2 -0
  653. package/packages/web/dist/assets/InstanceTypes-DAowwLB7.css +1 -0
  654. package/packages/web/dist/assets/InstanceView-CuBD3JPU.css +1 -0
  655. package/packages/web/dist/assets/InstanceView-p7tMaylE.js +2 -0
  656. package/packages/web/dist/assets/ItemHistory-CUGa8b6s.js +2 -0
  657. package/packages/web/dist/assets/ItemHistory-Czzpyiud.css +1 -0
  658. package/packages/web/dist/assets/LimitsView-DlPW-cLw.css +1 -0
  659. package/packages/web/dist/assets/LimitsView-DsZG6u5P.js +2 -0
  660. package/packages/web/dist/assets/ListSearch-BK4p7Nxa.js +2 -0
  661. package/packages/web/dist/assets/ListSearch-CdxSo6UW.css +1 -0
  662. package/packages/web/dist/assets/LlmCallDetails-2yQftCqd.js +2 -0
  663. package/packages/web/dist/assets/LlmCallDetails-gymdroc_.css +1 -0
  664. package/packages/web/dist/assets/LlmCallsView-B1yHEIBG.css +1 -0
  665. package/packages/web/dist/assets/LlmCallsView-DOHX3r0K.js +2 -0
  666. package/packages/web/dist/assets/LoadState-C4VYnFly.css +1 -0
  667. package/packages/web/dist/assets/LoadState-DeXfLvYv.js +2 -0
  668. package/packages/web/dist/assets/McpDialog-BSCt_jWB.css +1 -0
  669. package/packages/web/dist/assets/McpDialog-CA_0WKWF.js +2 -0
  670. package/packages/web/dist/assets/McpServerForm-CAG8Wp2N.js +2 -0
  671. package/packages/web/dist/assets/McpServerForm-DsHaf5Um.css +1 -0
  672. package/packages/web/dist/assets/McpServerView-7I76EznB.css +1 -0
  673. package/packages/web/dist/assets/McpServerView-CD8qw6W_.js +2 -0
  674. package/packages/web/dist/assets/McpServersView-DNycG35u.js +2 -0
  675. package/packages/web/dist/assets/McpView-CC2oNOMa.js +2 -0
  676. package/packages/web/dist/assets/McpView-W5PhGI4_.css +1 -0
  677. package/packages/web/dist/assets/McpsView-CwJvyyxV.js +2 -0
  678. package/packages/web/dist/assets/McpsView-yH-K4ifd.css +1 -0
  679. package/packages/web/dist/assets/MemoryDialog-CpfIsygL.css +1 -0
  680. package/packages/web/dist/assets/MemoryDialog-Dbvh5uLq.js +2 -0
  681. package/packages/web/dist/assets/ModelCallsView-B__CIDge.css +1 -0
  682. package/packages/web/dist/assets/ModelCallsView-RvnW3EBP.js +2 -0
  683. package/packages/web/dist/assets/ModelPicker-5BC8W10p.css +1 -0
  684. package/packages/web/dist/assets/ModelPicker-DcjwQFHC.js +2 -0
  685. package/packages/web/dist/assets/ModelsView-C_iN19xt.js +2 -0
  686. package/packages/web/dist/assets/ModelsView-DjD8H9vc.css +1 -0
  687. package/packages/web/dist/assets/NotFoundPage-CeSwzTV-.js +2 -0
  688. package/packages/web/dist/assets/NotFoundPage-ZUNomG9O.css +1 -0
  689. package/packages/web/dist/assets/PairPage-Bs2KuRjC.css +1 -0
  690. package/packages/web/dist/assets/PairPage-TEXPpsqi.js +2 -0
  691. package/packages/web/dist/assets/PanelHost-BkrFAnPa.js +2 -0
  692. package/packages/web/dist/assets/PanelHost-_z5RyAnS.css +1 -0
  693. package/packages/web/dist/assets/PeopleView-CJ8yArTh.css +1 -0
  694. package/packages/web/dist/assets/PeopleView-D1QGPYp7.js +2 -0
  695. package/packages/web/dist/assets/PoliciesView-BU1fudNF.js +2 -0
  696. package/packages/web/dist/assets/PoliciesView-yVE8d8mj.css +1 -0
  697. package/packages/web/dist/assets/RefusalList-B3OBAsYc.css +1 -0
  698. package/packages/web/dist/assets/RefusalList-DQoyUoPG.js +2 -0
  699. package/packages/web/dist/assets/RemoteAuthFields-Dm44vz2t.css +1 -0
  700. package/packages/web/dist/assets/RemoteAuthFields-nxGWfmhf.js +2 -0
  701. package/packages/web/dist/assets/ResourceViewer-A9ZSaLUH.css +1 -0
  702. package/packages/web/dist/assets/ResourceViewer-Po24y4pj.js +2 -0
  703. package/packages/web/dist/assets/ResourcesPage-YluNBqIv.js +2 -0
  704. package/packages/web/dist/assets/ResourcesPage-mr0U0l6U.css +1 -0
  705. package/packages/web/dist/assets/ResultGrid-CuUQyTjW.css +1 -0
  706. package/packages/web/dist/assets/ResultGrid-uoq4yUYj.js +2 -0
  707. package/packages/web/dist/assets/ReviewSummaryStrip-B3ZQs5wR.css +1 -0
  708. package/packages/web/dist/assets/ReviewSummaryStrip-k3HevESg.js +2 -0
  709. package/packages/web/dist/assets/ReviewView-79Z5rU1v.js +3 -0
  710. package/packages/web/dist/assets/ReviewView-CxbVjz_R.css +1 -0
  711. package/packages/web/dist/assets/RuleRow-CG_XCvUu.css +1 -0
  712. package/packages/web/dist/assets/RuleRow-CoXDA-SH.js +2 -0
  713. package/packages/web/dist/assets/RunCard-CBSGdwdQ.js +2 -0
  714. package/packages/web/dist/assets/RunCard-CfyRaDLS.css +1 -0
  715. package/packages/web/dist/assets/RunDetails-CGhQQ6OI.js +2 -0
  716. package/packages/web/dist/assets/RunDetails-CHHCWGrP.css +1 -0
  717. package/packages/web/dist/assets/RunDot-Ch_45985.js +2 -0
  718. package/packages/web/dist/assets/RunDot-CkNUsFwg.css +1 -0
  719. package/packages/web/dist/assets/RunPage-C_t20pB7.js +2 -0
  720. package/packages/web/dist/assets/RunPage-Cq6UV6h-.css +1 -0
  721. package/packages/web/dist/assets/RunProgress-Bq2yc7Il.css +1 -0
  722. package/packages/web/dist/assets/RunProgress-VrZUHUEC.js +2 -0
  723. package/packages/web/dist/assets/RunsView-Dz9Xsvu5.js +2 -0
  724. package/packages/web/dist/assets/RunsView-fBMrETRF.css +1 -0
  725. package/packages/web/dist/assets/ServiceRows-6BU4-MeL.css +1 -0
  726. package/packages/web/dist/assets/ServiceRows-DNzDiutg.js +2 -0
  727. package/packages/web/dist/assets/SettingsPage-CykfuYj1.js +3 -0
  728. package/packages/web/dist/assets/SettingsPage-t03BqXw8.css +1 -0
  729. package/packages/web/dist/assets/SignInPage-Djx-M-0U.css +1 -0
  730. package/packages/web/dist/assets/SignInPage-DrXZ1sG2.js +2 -0
  731. package/packages/web/dist/assets/StatusBadge-Dpb9uG5e.js +2 -0
  732. package/packages/web/dist/assets/SystemConfig-72qKRkUk.js +2 -0
  733. package/packages/web/dist/assets/SystemConfig-CDtMyVWy.css +1 -0
  734. package/packages/web/dist/assets/SystemPageHost-BeZ-6N0-.css +1 -0
  735. package/packages/web/dist/assets/SystemPageHost-DLNg2FYK.js +2 -0
  736. package/packages/web/dist/assets/SystemView-C8ScHUe2.css +1 -0
  737. package/packages/web/dist/assets/SystemView-Es5wtkYU.js +2 -0
  738. package/packages/web/dist/assets/SystemsView-B6HEL9VS.css +1 -0
  739. package/packages/web/dist/assets/SystemsView-CeuSFhlF.js +2 -0
  740. package/packages/web/dist/assets/TableViewer-1Jf5BNat.css +1 -0
  741. package/packages/web/dist/assets/TableViewer-BQ7bYLOP.js +6 -0
  742. package/packages/web/dist/assets/ThemePicker-C2nJ21Vd.js +2 -0
  743. package/packages/web/dist/assets/TurnTree-CORdfTHj.js +2 -0
  744. package/packages/web/dist/assets/TurnTree-CPivE4sF.css +1 -0
  745. package/packages/web/dist/assets/UserMessage-BtECa8ka.css +1 -0
  746. package/packages/web/dist/assets/UserMessage-qyc8dG5D.js +9 -0
  747. package/packages/web/dist/assets/ValueVisual-D5Rw7PlS.css +1 -0
  748. package/packages/web/dist/assets/ValueVisual-aXEUaQ5Y.js +2 -0
  749. package/packages/web/dist/assets/WidgetView-BZyDyYRI.js +3 -0
  750. package/packages/web/dist/assets/WidgetView-DQUDeFkB.css +1 -0
  751. package/packages/web/dist/assets/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
  752. package/packages/web/dist/assets/abap-CLvhMVsD.js +2 -0
  753. package/packages/web/dist/assets/abnfDiagram-S7VZAUFO-CzFPJy4G.js +2 -0
  754. package/packages/web/dist/assets/actionscript-3-Cs6JJXT5.js +2 -0
  755. package/packages/web/dist/assets/ada-X3Y2mlq2.js +2 -0
  756. package/packages/web/dist/assets/ahk-DwADkxyd.js +2 -0
  757. package/packages/web/dist/assets/ahk2-_6rzW9BS.js +2 -0
  758. package/packages/web/dist/assets/angular-html-wiqevbIE.js +2 -0
  759. package/packages/web/dist/assets/angular-ts-C32iChAu.js +2 -0
  760. package/packages/web/dist/assets/apache-U0d_L8uA.js +2 -0
  761. package/packages/web/dist/assets/apex-KFGFyKwG.js +2 -0
  762. package/packages/web/dist/assets/apl-Bl61Unn0.js +2 -0
  763. package/packages/web/dist/assets/applescript-CCn79oCD.js +2 -0
  764. package/packages/web/dist/assets/ara-4CJ0cIlV.js +2 -0
  765. package/packages/web/dist/assets/architecture-WOLXFQ4H-_l4nRfFJ.js +1 -0
  766. package/packages/web/dist/assets/architectureDiagram-YGSQEFNW-CMpVysh5.js +37 -0
  767. package/packages/web/dist/assets/asciidoc-SCjQUq34.js +2 -0
  768. package/packages/web/dist/assets/asm-Cmm7eHzH.js +2 -0
  769. package/packages/web/dist/assets/astro-CojMNcHO.js +2 -0
  770. package/packages/web/dist/assets/awk-BWXHIvNe.js +2 -0
  771. package/packages/web/dist/assets/ballerina-B7ZEbQpA.js +2 -0
  772. package/packages/web/dist/assets/bat-qdxAdBWQ.js +2 -0
  773. package/packages/web/dist/assets/beancount-C2IN4Vk8.js +2 -0
  774. package/packages/web/dist/assets/berry-DKpUyyne.js +2 -0
  775. package/packages/web/dist/assets/bibtex-Ci_nEsc7.js +2 -0
  776. package/packages/web/dist/assets/bicep-CUHmPFLl.js +2 -0
  777. package/packages/web/dist/assets/bird2-CYIUgYqB.js +2 -0
  778. package/packages/web/dist/assets/blade-CRk3fo4p.js +2 -0
  779. package/packages/web/dist/assets/blockDiagram-APKKGZFW-Jua4t10S.js +141 -0
  780. package/packages/web/dist/assets/bpmnIcons-APHXDYXF-C0jbCElo.js +2 -0
  781. package/packages/web/dist/assets/browser-BHOqNy7R.js +9 -0
  782. package/packages/web/dist/assets/browsers-BSc3bW3l.js +2 -0
  783. package/packages/web/dist/assets/bsl-_VjlB9mv.js +2 -0
  784. package/packages/web/dist/assets/c-CiNtTPN_.js +2 -0
  785. package/packages/web/dist/assets/c3-D0apG41V.js +2 -0
  786. package/packages/web/dist/assets/c4Diagram-KJ2TOQU5-08x9w6G9.js +39 -0
  787. package/packages/web/dist/assets/cadence-CQ2zXKGN.js +2 -0
  788. package/packages/web/dist/assets/cairo-DLTphjLi.js +2 -0
  789. package/packages/web/dist/assets/chapel-D5ik6Ccv.js +2 -0
  790. package/packages/web/dist/assets/chunk-2Q5K7J3B-C1jixKkw.js +2 -0
  791. package/packages/web/dist/assets/chunk-5VM5RSS4-ZNzvKenW.js +16 -0
  792. package/packages/web/dist/assets/chunk-6MUBBAK2-BHXbrulB.js +3 -0
  793. package/packages/web/dist/assets/chunk-AXFCVDMN-CI0arS1F.js +63 -0
  794. package/packages/web/dist/assets/chunk-BG4553SI-DGn4S0JL.js +130 -0
  795. package/packages/web/dist/assets/chunk-DQASFODM-ClbbgMVy.js +11 -0
  796. package/packages/web/dist/assets/chunk-DUW6YSOI-Dgx8z5s3.js +2 -0
  797. package/packages/web/dist/assets/chunk-HFQBQIA3-BNltuj9p.js +2 -0
  798. package/packages/web/dist/assets/chunk-J5ZVWO5B-oDCd-gWO.js +2 -0
  799. package/packages/web/dist/assets/chunk-JWPE2WC7-DVXcaiue.js +2 -0
  800. package/packages/web/dist/assets/chunk-KQLB2F66-DsHe5EtY.js +3 -0
  801. package/packages/web/dist/assets/chunk-KS47KZWR-BZg3mYeD.js +2 -0
  802. package/packages/web/dist/assets/chunk-LEVMRMFU-paszafIt.js +2 -0
  803. package/packages/web/dist/assets/chunk-M57EVK23-qYz6TUV4.js +2 -0
  804. package/packages/web/dist/assets/chunk-NGNAAXSQ-DI_UYJZ4.js +137 -0
  805. package/packages/web/dist/assets/chunk-OY52VR5R-Ct_YDCfL.js +89 -0
  806. package/packages/web/dist/assets/chunk-QB3YPZ4I-i7-AWGNa.js +214 -0
  807. package/packages/web/dist/assets/chunk-R3KSYZAL-DW0WB_9q.js +2 -0
  808. package/packages/web/dist/assets/chunk-STOXU5M4-D5Gd-wq9.js +73 -0
  809. package/packages/web/dist/assets/chunk-TU62E6Q5-WtwDME_1.js +2 -0
  810. package/packages/web/dist/assets/chunk-X4PVCEUW-YYhMSieL.js +2 -0
  811. package/packages/web/dist/assets/chunk-XXDRQBXY-i7MKP1NY.js +2 -0
  812. package/packages/web/dist/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +2 -0
  813. package/packages/web/dist/assets/clarity-CtfBBspg.js +2 -0
  814. package/packages/web/dist/assets/classDiagram-v2-L25IHNXF-d25-M1pJ.js +218 -0
  815. package/packages/web/dist/assets/clojure-DqKBuwfJ.js +2 -0
  816. package/packages/web/dist/assets/cmake-Bj61d0ZC.js +2 -0
  817. package/packages/web/dist/assets/cobol-BRB8FTbz.js +2 -0
  818. package/packages/web/dist/assets/codeowners-C8r90Shi.js +2 -0
  819. package/packages/web/dist/assets/codeql-oeQT6MSM.js +2 -0
  820. package/packages/web/dist/assets/coffee-B1WQFatZ.js +2 -0
  821. package/packages/web/dist/assets/common-lisp-Cv5bFMCO.js +2 -0
  822. package/packages/web/dist/assets/coq-CGaSfhwR.js +2 -0
  823. package/packages/web/dist/assets/core-DdF778CY.js +13 -0
  824. package/packages/web/dist/assets/cose-bilkent-JH36ORCC-CYLhHv3W.js +2 -0
  825. package/packages/web/dist/assets/cpp-CxyntmKf.js +2 -0
  826. package/packages/web/dist/assets/crystal-CayBj_Aw.js +2 -0
  827. package/packages/web/dist/assets/csharp-dmMxLVLW.js +2 -0
  828. package/packages/web/dist/assets/css-CB_fh0k2.js +2 -0
  829. package/packages/web/dist/assets/csv-Dx-8-gkx.js +2 -0
  830. package/packages/web/dist/assets/cue-CE9AQfxI.js +2 -0
  831. package/packages/web/dist/assets/cynefin-EF2NZ3EQ-BOE_VX_3.js +1 -0
  832. package/packages/web/dist/assets/cynefinDiagram-L36ESFBY-cDLwrPve.js +63 -0
  833. package/packages/web/dist/assets/cypher-ClKdZ_lG.js +2 -0
  834. package/packages/web/dist/assets/cytoscape.esm-DpfQbjy7.js +322 -0
  835. package/packages/web/dist/assets/d-qD-0Kul2.js +2 -0
  836. package/packages/web/dist/assets/d3-scale-CElPUUud.js +2 -0
  837. package/packages/web/dist/assets/d3-selection-COWvaQNI.js +2 -0
  838. package/packages/web/dist/assets/dagre-SPEB5RXH-ChUYszsQ.js +5 -0
  839. package/packages/web/dist/assets/dart-CHZY9Xhz.js +2 -0
  840. package/packages/web/dist/assets/dax-BkyTk9wS.js +2 -0
  841. package/packages/web/dist/assets/desktop-Dlh5hvp9.js +2 -0
  842. package/packages/web/dist/assets/diagram-3B7GL73J-C4RMi43c.js +201 -0
  843. package/packages/web/dist/assets/diagram-DNEMPZML-COQGGiEP.js +25 -0
  844. package/packages/web/dist/assets/diagram-L3MUGCDN-mowv9Itp.js +42 -0
  845. package/packages/web/dist/assets/diagram-LA4NIPWU-hNJQSGhv.js +25 -0
  846. package/packages/web/dist/assets/diagram-MHCOC4E2-Dp-COOAx.js +4 -0
  847. package/packages/web/dist/assets/diagram-XPFHEONP-D2wzCykS.js +31 -0
  848. package/packages/web/dist/assets/diff-woXpYk--.js +2 -0
  849. package/packages/web/dist/assets/dist-DdXDFcej.js +2 -0
  850. package/packages/web/dist/assets/docker-IyjqRm3v.js +2 -0
  851. package/packages/web/dist/assets/dotenv-CuH5my32.js +2 -0
  852. package/packages/web/dist/assets/dream-maker-DW3nJb8Q.js +2 -0
  853. package/packages/web/dist/assets/ebnfDiagram-UZSYDL2S-5WCudwet.js +2 -0
  854. package/packages/web/dist/assets/edge-6p6a27tD.js +2 -0
  855. package/packages/web/dist/assets/elixir-fXwtrlGU.js +2 -0
  856. package/packages/web/dist/assets/elk-XV6XMXQE-BknTcAbm.js +28 -0
  857. package/packages/web/dist/assets/elm-rUi9A3mh.js +2 -0
  858. package/packages/web/dist/assets/emacs-lisp-DR2vtWaj.js +2 -0
  859. package/packages/web/dist/assets/engine-javascript-C30F4iNc.js +142 -0
  860. package/packages/web/dist/assets/erDiagram-EYBAPDEH-UOE6iZ1t.js +100 -0
  861. package/packages/web/dist/assets/erb-BvmuIdN-.js +2 -0
  862. package/packages/web/dist/assets/erlang-Cphh6RMH.js +2 -0
  863. package/packages/web/dist/assets/eventmodeling-K75KTNOO-CIs2h_8S.js +1 -0
  864. package/packages/web/dist/assets/export-BwFkEtcm.js +15 -0
  865. package/packages/web/dist/assets/fennel-DQxkIbk2.js +2 -0
  866. package/packages/web/dist/assets/fish-BJitypiv.js +2 -0
  867. package/packages/web/dist/assets/flowDiagram-MALGAFMO-CQLEuZ0I.js +1 -0
  868. package/packages/web/dist/assets/fluent-C03EYrpw.js +2 -0
  869. package/packages/web/dist/assets/fn-modal-DqcxUhOQ.js +2 -0
  870. package/packages/web/dist/assets/fn-notices-BYaH6IoA.js +2 -0
  871. package/packages/web/dist/assets/fn-notices-Da4tVHqJ.css +1 -0
  872. package/packages/web/dist/assets/formats-DI__ADVG.js +2 -0
  873. package/packages/web/dist/assets/fortran-fixed-form-DEKoE2YW.js +2 -0
  874. package/packages/web/dist/assets/fortran-free-form-CYNrtFtB.js +2 -0
  875. package/packages/web/dist/assets/fsharp-D13ZGOAj.js +2 -0
  876. package/packages/web/dist/assets/ganttDiagram-23REXITY-KBK93CXW.js +293 -0
  877. package/packages/web/dist/assets/gdresource-xMC7jr7x.js +2 -0
  878. package/packages/web/dist/assets/gdscript-DYvRD3hg.js +2 -0
  879. package/packages/web/dist/assets/gdshader-CBce3t8t.js +2 -0
  880. package/packages/web/dist/assets/genie-CV2tkWYe.js +2 -0
  881. package/packages/web/dist/assets/gherkin-DExj1W_8.js +2 -0
  882. package/packages/web/dist/assets/git-commit-BSykSTBG.js +2 -0
  883. package/packages/web/dist/assets/git-rebase-B09wAERM.js +2 -0
  884. package/packages/web/dist/assets/gitGraph-VSP46ZUC-Dwmw1QLM.js +1 -0
  885. package/packages/web/dist/assets/gitGraphDiagram-STJD7YCW-B2T13-ZJ.js +107 -0
  886. package/packages/web/dist/assets/gleam-CSRkHgEL.js +2 -0
  887. package/packages/web/dist/assets/glimmer-js-CpWvy9gf.js +2 -0
  888. package/packages/web/dist/assets/glimmer-ts-BAH8Czr9.js +2 -0
  889. package/packages/web/dist/assets/glsl-CVY0WJyt.js +2 -0
  890. package/packages/web/dist/assets/gn-CAXYAgV-.js +2 -0
  891. package/packages/web/dist/assets/gnuplot-7GGW24-e.js +2 -0
  892. package/packages/web/dist/assets/go-rLFTqkRN.js +2 -0
  893. package/packages/web/dist/assets/graphlib-DS17s2tU.js +2 -0
  894. package/packages/web/dist/assets/graphql-CDPCtuoQ.js +2 -0
  895. package/packages/web/dist/assets/groovy-CacY0gHj.js +2 -0
  896. package/packages/web/dist/assets/hack-CLEpeEqq.js +2 -0
  897. package/packages/web/dist/assets/haml-Bvpgs3uG.js +2 -0
  898. package/packages/web/dist/assets/handlebars-vXY9zmj1.js +2 -0
  899. package/packages/web/dist/assets/haskell-D8IpX4py.js +2 -0
  900. package/packages/web/dist/assets/haxe-C8oCnwJJ.js +2 -0
  901. package/packages/web/dist/assets/hcl-Dh228itO.js +2 -0
  902. package/packages/web/dist/assets/hjson-CxZEssPk.js +2 -0
  903. package/packages/web/dist/assets/hlsl-Cvrh5tZx.js +2 -0
  904. package/packages/web/dist/assets/html-CKMeXkCW.js +2 -0
  905. package/packages/web/dist/assets/html-derivative-C8trdkzI.js +2 -0
  906. package/packages/web/dist/assets/http-UJwVfHv3.js +2 -0
  907. package/packages/web/dist/assets/hurl-7erhC4fM.js +2 -0
  908. package/packages/web/dist/assets/hxml-Dcm88srW.js +2 -0
  909. package/packages/web/dist/assets/hy-CZbG8q4J.js +2 -0
  910. package/packages/web/dist/assets/imba-DsUTQ-LC.js +2 -0
  911. package/packages/web/dist/assets/index-Bv42jNvr.js +4 -0
  912. package/packages/web/dist/assets/index-CSisx5mi.css +1 -0
  913. package/packages/web/dist/assets/info-OHQRW6UA-Ob4q-Ec6.js +1 -0
  914. package/packages/web/dist/assets/infoDiagram-KBXO4MBG-CGQ6MwL3.js +3 -0
  915. package/packages/web/dist/assets/ini-B5eOa1yu.js +2 -0
  916. package/packages/web/dist/assets/ishikawaDiagram-M35NCXHK-CuoxiCk-.js +71 -0
  917. package/packages/web/dist/assets/java-DGv6_9mf.js +2 -0
  918. package/packages/web/dist/assets/javascript-wyDA4Fnk.js +2 -0
  919. package/packages/web/dist/assets/jinja-CRKn4_DT.js +2 -0
  920. package/packages/web/dist/assets/jison-C5fjf-e-.js +2 -0
  921. package/packages/web/dist/assets/journeyDiagram-OPLOXDXO-zEDEMkq6.js +140 -0
  922. package/packages/web/dist/assets/json-B_qwZ7m_.js +2 -0
  923. package/packages/web/dist/assets/json5-BR5RXkoi.js +2 -0
  924. package/packages/web/dist/assets/jsonc-CYpm1nAK.js +2 -0
  925. package/packages/web/dist/assets/jsonl-CmCQp5Yx.js +2 -0
  926. package/packages/web/dist/assets/jsonnet-CJTPZ8u_.js +2 -0
  927. package/packages/web/dist/assets/jssm-DXw9l8Rf.js +2 -0
  928. package/packages/web/dist/assets/jsx-Ba8EQqYd.js +2 -0
  929. package/packages/web/dist/assets/julia-mJS6zhvp.js +2 -0
  930. package/packages/web/dist/assets/just-n_L73pBN.js +2 -0
  931. package/packages/web/dist/assets/kanban-definition-BZKZHSQY-q5yqVxKo.js +90 -0
  932. package/packages/web/dist/assets/katex-MEuSR36T.js +258 -0
  933. package/packages/web/dist/assets/kdl-CsD5j6eV.js +2 -0
  934. package/packages/web/dist/assets/kotlin-DhhofPvG.js +2 -0
  935. package/packages/web/dist/assets/kusto-C7mF5XQf.js +2 -0
  936. package/packages/web/dist/assets/labels-BhJpmLWA.js +2 -0
  937. package/packages/web/dist/assets/langs-CVIiVMBh.js +3 -0
  938. package/packages/web/dist/assets/latex-0iQGLWul.js +2 -0
  939. package/packages/web/dist/assets/layout-DQKldU13.js +2 -0
  940. package/packages/web/dist/assets/lean-CewbzKMR.js +2 -0
  941. package/packages/web/dist/assets/less-DVTAwKKz.js +2 -0
  942. package/packages/web/dist/assets/liquid-B8kEVR50.js +2 -0
  943. package/packages/web/dist/assets/live-kTMxmy8I.js +2 -0
  944. package/packages/web/dist/assets/llvm-DqHOMS-s.js +2 -0
  945. package/packages/web/dist/assets/log-BNLmms1o.js +2 -0
  946. package/packages/web/dist/assets/logo-Cluzi2Zq.js +2 -0
  947. package/packages/web/dist/assets/lua-BDnDZ8k4.js +2 -0
  948. package/packages/web/dist/assets/luau-VGWVLoqX.js +2 -0
  949. package/packages/web/dist/assets/made-DYU0Ohi4.js +2 -0
  950. package/packages/web/dist/assets/make-Dixweg8N.js +2 -0
  951. package/packages/web/dist/assets/markdown-BYOwaDjH.js +2 -0
  952. package/packages/web/dist/assets/marko-Bk0_iGvT.js +2 -0
  953. package/packages/web/dist/assets/matlab-D7qyCx1q.js +2 -0
  954. package/packages/web/dist/assets/mdc-DhizV3YK.js +2 -0
  955. package/packages/web/dist/assets/mdx-DQZ5AkYe.js +2 -0
  956. package/packages/web/dist/assets/mermaid-BxpfTIzt.js +2 -0
  957. package/packages/web/dist/assets/mermaid-parser.core-BGN5zmcs.js +8 -0
  958. package/packages/web/dist/assets/mermaid.core-BNF3dRf5.js +45 -0
  959. package/packages/web/dist/assets/metrics-Cio5ykX6.js +2 -0
  960. package/packages/web/dist/assets/mindmap-definition-I2QAS2VK-CoiSJ4W4.js +99 -0
  961. package/packages/web/dist/assets/mipsasm-BMqwQI7S.js +2 -0
  962. package/packages/web/dist/assets/mojo-fg40_ntQ.js +2 -0
  963. package/packages/web/dist/assets/moonbit-D9W784E_.js +2 -0
  964. package/packages/web/dist/assets/move-BYnGhZoM.js +2 -0
  965. package/packages/web/dist/assets/narrat-_X_XdTYD.js +2 -0
  966. package/packages/web/dist/assets/nextflow-CSgcYZcx.js +2 -0
  967. package/packages/web/dist/assets/nextflow-groovy-D7IRt6Pp.js +2 -0
  968. package/packages/web/dist/assets/nginx-DoalMtUh.js +2 -0
  969. package/packages/web/dist/assets/nim-DdsQnl3h.js +2 -0
  970. package/packages/web/dist/assets/nix-IvuFDN5E.js +2 -0
  971. package/packages/web/dist/assets/now-40JhSjx0.js +2 -0
  972. package/packages/web/dist/assets/nsis-CjNLYCLg.js +2 -0
  973. package/packages/web/dist/assets/nushell--0fT3PI1.js +2 -0
  974. package/packages/web/dist/assets/objective-c-D1A_Heim.js +2 -0
  975. package/packages/web/dist/assets/objective-cpp-BsSzOQcm.js +2 -0
  976. package/packages/web/dist/assets/ocaml-O90oeIOV.js +2 -0
  977. package/packages/web/dist/assets/odin-B1RWQWA5.js +2 -0
  978. package/packages/web/dist/assets/openscad-BUDT5pXO.js +2 -0
  979. package/packages/web/dist/assets/org-B2d-Pz26.js +2 -0
  980. package/packages/web/dist/assets/packet-JDAUHWVQ-kID5-AEG.js +1 -0
  981. package/packages/web/dist/assets/pascal-4ZHwLPI5.js +2 -0
  982. package/packages/web/dist/assets/pdf-YwugTw7Y.js +55 -0
  983. package/packages/web/dist/assets/pdf.worker.min-CIqJB0yW.mjs +28 -0
  984. package/packages/web/dist/assets/pdf.worker.min-UqOn5EDC.js +2 -0
  985. package/packages/web/dist/assets/pegDiagram-FD4XPPHP-DvO7r8qd.js +2 -0
  986. package/packages/web/dist/assets/perl-CpJxFnsT.js +2 -0
  987. package/packages/web/dist/assets/php-CG5ES-ob.js +2 -0
  988. package/packages/web/dist/assets/pie-XZMESJXO-By0gro0O.js +1 -0
  989. package/packages/web/dist/assets/pieDiagram-J4AKIIQI-f_Jeo_8D.js +40 -0
  990. package/packages/web/dist/assets/pkl-ot-7Btpt.js +2 -0
  991. package/packages/web/dist/assets/plsql-DGHpHOYJ.js +2 -0
  992. package/packages/web/dist/assets/po-BiJDBrnU.js +2 -0
  993. package/packages/web/dist/assets/polar-C7UOKdEL.js +2 -0
  994. package/packages/web/dist/assets/postcss-BXeXVLqQ.js +2 -0
  995. package/packages/web/dist/assets/powerquery-DNMTfnFr.js +2 -0
  996. package/packages/web/dist/assets/powershell-QtSnmXcu.js +2 -0
  997. package/packages/web/dist/assets/preload-helper-7y9sWmk5.js +1 -0
  998. package/packages/web/dist/assets/prisma-DMgNhnYS.js +2 -0
  999. package/packages/web/dist/assets/problems-BZY0Dwif.js +2 -0
  1000. package/packages/web/dist/assets/prolog-iXnhIJG7.js +2 -0
  1001. package/packages/web/dist/assets/proto-DB4EqR-F.js +2 -0
  1002. package/packages/web/dist/assets/pug-b31sGWmp.js +2 -0
  1003. package/packages/web/dist/assets/puppet-CDv2pdJW.js +2 -0
  1004. package/packages/web/dist/assets/purescript-9MfHhQsQ.js +2 -0
  1005. package/packages/web/dist/assets/push-payload-D5efGCzd.js +402 -0
  1006. package/packages/web/dist/assets/python-gzcpVVnB.js +2 -0
  1007. package/packages/web/dist/assets/qml-Dd7VLkrA.js +2 -0
  1008. package/packages/web/dist/assets/qmldir-DCQb3MpD.js +2 -0
  1009. package/packages/web/dist/assets/qss-Fe1Jh2GI.js +2 -0
  1010. package/packages/web/dist/assets/quadrantDiagram-XTYBLID2-Cr6SWkGn.js +8 -0
  1011. package/packages/web/dist/assets/r-yyMNTq5r.js +2 -0
  1012. package/packages/web/dist/assets/racket-DcIDlBhZ.js +2 -0
  1013. package/packages/web/dist/assets/radar-ABXABTNO-yHosJs_M.js +1 -0
  1014. package/packages/web/dist/assets/railroad-I3PHUGI6-C-LR5A-v.js +1 -0
  1015. package/packages/web/dist/assets/railroad-abnf-LNEFI6M7-DjGnF9uf.js +1 -0
  1016. package/packages/web/dist/assets/railroad-ebnf-DWYD2UWJ-BgsDVMJk.js +1 -0
  1017. package/packages/web/dist/assets/railroad-peg-JR7BVNR7-DkSNpypW.js +1 -0
  1018. package/packages/web/dist/assets/railroadDiagram-MRQ6NCDL-BdGdKtFJ.js +2 -0
  1019. package/packages/web/dist/assets/raku-B3gFvitq.js +2 -0
  1020. package/packages/web/dist/assets/razor-B0rzWF9b.js +2 -0
  1021. package/packages/web/dist/assets/rbs-C0MpOrj4.js +2 -0
  1022. package/packages/web/dist/assets/record-edits-CveFEsal.js +2 -0
  1023. package/packages/web/dist/assets/reg-CRGYupPL.js +2 -0
  1024. package/packages/web/dist/assets/regexp-DYMieNym.js +2 -0
  1025. package/packages/web/dist/assets/rel-BtDbiS_P.js +2 -0
  1026. package/packages/web/dist/assets/remote-config-BkaarDf3.js +2 -0
  1027. package/packages/web/dist/assets/requirementDiagram-Y7LWUY3S-ImkACz5a.js +85 -0
  1028. package/packages/web/dist/assets/review-CGUGvRV9.js +4 -0
  1029. package/packages/web/dist/assets/riscv-Ckw8ddFX.js +2 -0
  1030. package/packages/web/dist/assets/rolldown-runtime-COiEfhsA.js +1 -0
  1031. package/packages/web/dist/assets/ron-VUp2lXgN.js +2 -0
  1032. package/packages/web/dist/assets/rosmsg-CAekHB0j.js +2 -0
  1033. package/packages/web/dist/assets/rough.esm-Dy-Kn_BL.js +2 -0
  1034. package/packages/web/dist/assets/routes-qP_j74V5.js +4 -0
  1035. package/packages/web/dist/assets/rst-BtnuOAUZ.js +2 -0
  1036. package/packages/web/dist/assets/ruby-Dx9fBFuB.js +2 -0
  1037. package/packages/web/dist/assets/runs-k76usGfd.js +2 -0
  1038. package/packages/web/dist/assets/runtime-core.esm-bundler-wlpNGAAZ.js +4 -0
  1039. package/packages/web/dist/assets/rust-DpiIf5JO.js +2 -0
  1040. package/packages/web/dist/assets/sankeyDiagram-WGJFYUXA-Crpx7BLQ.js +41 -0
  1041. package/packages/web/dist/assets/sas-CYVU3X7O.js +2 -0
  1042. package/packages/web/dist/assets/sass-DXrisJhu.js +2 -0
  1043. package/packages/web/dist/assets/scala-BiFt_7mu.js +2 -0
  1044. package/packages/web/dist/assets/scheme-DQCgrYNe.js +2 -0
  1045. package/packages/web/dist/assets/scss-BAOTDanj.js +2 -0
  1046. package/packages/web/dist/assets/sdbl-bTVj8UrX.js +2 -0
  1047. package/packages/web/dist/assets/sequenceDiagram-5NDRBG5M-Ch5L-aWg.js +170 -0
  1048. package/packages/web/dist/assets/shaderlab-TOUzSsQk.js +2 -0
  1049. package/packages/web/dist/assets/shared-DTpYDMc_.js +2 -0
  1050. package/packages/web/dist/assets/shellscript-DUxm18QR.js +2 -0
  1051. package/packages/web/dist/assets/shellsession-DphNsVk1.js +2 -0
  1052. package/packages/web/dist/assets/size-BwnshyOe.js +2 -0
  1053. package/packages/web/dist/assets/sizeCapture-INFHLROL-3uHXrFqA.js +2 -0
  1054. package/packages/web/dist/assets/smalltalk-BHpQb5nM.js +2 -0
  1055. package/packages/web/dist/assets/smithy-Dgaz7aur.js +2 -0
  1056. package/packages/web/dist/assets/solidity-Bj7E1mRn.js +2 -0
  1057. package/packages/web/dist/assets/sources-Bm-TrxhL.js +2 -0
  1058. package/packages/web/dist/assets/soy-BprueKgI.js +2 -0
  1059. package/packages/web/dist/assets/sparql-D_iOobhT.js +2 -0
  1060. package/packages/web/dist/assets/splunk-BC2Px7Mm.js +2 -0
  1061. package/packages/web/dist/assets/sql-D4n2TlMc.js +2 -0
  1062. package/packages/web/dist/assets/src-DLK1P7oz.js +43 -0
  1063. package/packages/web/dist/assets/ssh-config-BgfXC-Er.js +2 -0
  1064. package/packages/web/dist/assets/stata-D3X-un4D.js +2 -0
  1065. package/packages/web/dist/assets/state-CjE-qA2w.js +2 -0
  1066. package/packages/web/dist/assets/state-J8VdpZXA.css +1 -0
  1067. package/packages/web/dist/assets/stateDiagram-v2-FJ4FJNEA-8fpbogV7.js +292 -0
  1068. package/packages/web/dist/assets/stores-BMEvTe-I.js +2 -0
  1069. package/packages/web/dist/assets/stylus-B6D30XZt.js +2 -0
  1070. package/packages/web/dist/assets/surrealql-5--I0FKd.js +2 -0
  1071. package/packages/web/dist/assets/svelte-DlUga76i.js +2 -0
  1072. package/packages/web/dist/assets/swift-CyEgAFGc.js +2 -0
  1073. package/packages/web/dist/assets/swimlanes-UMQ2AFYF-2-xKzyRO.js +2 -0
  1074. package/packages/web/dist/assets/swimlanesDiagram-OMPLPG4O-DHJrYwQz.js +9 -0
  1075. package/packages/web/dist/assets/system-verilog-Dh5ihWbf.js +2 -0
  1076. package/packages/web/dist/assets/systemd-BxMlprV5.js +2 -0
  1077. package/packages/web/dist/assets/systems-DIp94AET.js +2 -0
  1078. package/packages/web/dist/assets/table-LcEs15kL.js +4 -0
  1079. package/packages/web/dist/assets/talonscript-CohzipZa.js +2 -0
  1080. package/packages/web/dist/assets/tasl-DMoTqEGO.js +2 -0
  1081. package/packages/web/dist/assets/tcl-CZd0xW_V.js +2 -0
  1082. package/packages/web/dist/assets/templ-SgILQMBm.js +2 -0
  1083. package/packages/web/dist/assets/terraform-DswuEJGm.js +2 -0
  1084. package/packages/web/dist/assets/tex-B_j0g-0C.js +2 -0
  1085. package/packages/web/dist/assets/timeline-definition-SEUHKTQE-Czq0i_qO.js +121 -0
  1086. package/packages/web/dist/assets/toml-CcmNWLt0.js +2 -0
  1087. package/packages/web/dist/assets/treeView-D4JQ5SDB-B3NKij_H.js +1 -0
  1088. package/packages/web/dist/assets/treemap-SAJKECNS-Dt7uNpkP.js +1 -0
  1089. package/packages/web/dist/assets/ts-tags-Bb2M6NRT.js +2 -0
  1090. package/packages/web/dist/assets/tsv-sltzmVWM.js +2 -0
  1091. package/packages/web/dist/assets/tsx-D2H2cqPj.js +2 -0
  1092. package/packages/web/dist/assets/turtle-ByJddavk.js +2 -0
  1093. package/packages/web/dist/assets/twig-DqWgw3C7.js +2 -0
  1094. package/packages/web/dist/assets/types-D1t1HqPm.js +2 -0
  1095. package/packages/web/dist/assets/typescript-DVfyLS1i.js +2 -0
  1096. package/packages/web/dist/assets/typespec-BGhR2SqG.js +2 -0
  1097. package/packages/web/dist/assets/typst-Cs7gYQVT.js +2 -0
  1098. package/packages/web/dist/assets/ui-C7ZH_6oC.css +1 -0
  1099. package/packages/web/dist/assets/ui-W12UYhVu.js +17 -0
  1100. package/packages/web/dist/assets/url-BIg5IhGs.js +2 -0
  1101. package/packages/web/dist/assets/usecaseDiagram-AFA6YXN4-D3m4xj4y.js +329 -0
  1102. package/packages/web/dist/assets/v-DBj4K9d_.js +2 -0
  1103. package/packages/web/dist/assets/vala-zf12oZj6.js +2 -0
  1104. package/packages/web/dist/assets/vb-DOwzaHZ0.js +2 -0
  1105. package/packages/web/dist/assets/vennDiagram-NNMJR3RB-DeIkukMz.js +35 -0
  1106. package/packages/web/dist/assets/verilog-B2gwz-sJ.js +2 -0
  1107. package/packages/web/dist/assets/vhdl-BroJfC0k.js +2 -0
  1108. package/packages/web/dist/assets/viml-DvXPmvsu.js +2 -0
  1109. package/packages/web/dist/assets/vue-D0OpHdq8.js +2 -0
  1110. package/packages/web/dist/assets/vue-html-DYZahZaV.js +2 -0
  1111. package/packages/web/dist/assets/vue-vine-BsFhbSla.js +2 -0
  1112. package/packages/web/dist/assets/vyper-CgoNMtux.js +2 -0
  1113. package/packages/web/dist/assets/wardley-7MLQ67FV-DSzBQKe8.js +1 -0
  1114. package/packages/web/dist/assets/wardleyDiagram-S7YFUSEH-ef9ee0JD.js +79 -0
  1115. package/packages/web/dist/assets/wasm-ByWQv1Qj.js +2 -0
  1116. package/packages/web/dist/assets/wenyan-C8pVoKbM.js +2 -0
  1117. package/packages/web/dist/assets/wgsl-BsKzXJz4.js +2 -0
  1118. package/packages/web/dist/assets/widget-host-BCf6Tlt5.js +2 -0
  1119. package/packages/web/dist/assets/widgets-CrbkovMT.js +2 -0
  1120. package/packages/web/dist/assets/wikitext-ClFFjSW2.js +2 -0
  1121. package/packages/web/dist/assets/wit-DdvCle-K.js +2 -0
  1122. package/packages/web/dist/assets/wolfram-DLL8P-h_.js +2 -0
  1123. package/packages/web/dist/assets/xml-Cz9mX3j0.js +2 -0
  1124. package/packages/web/dist/assets/xsl-fJeiXJlj.js +2 -0
  1125. package/packages/web/dist/assets/xychartDiagram-GGNKY7IX-CuWtZyN1.js +8 -0
  1126. package/packages/web/dist/assets/yaml-BtwsWWqX.js +2 -0
  1127. package/packages/web/dist/assets/zenscript-BnlCZFoB.js +2 -0
  1128. package/packages/web/dist/assets/zig-CMLA9XwU.js +2 -0
  1129. package/packages/web/dist/favicon.svg +1 -0
  1130. package/packages/web/dist/icons/apple-touch-icon.png +0 -0
  1131. package/packages/web/dist/icons/icon-192.png +0 -0
  1132. package/packages/web/dist/icons/icon-512.png +0 -0
  1133. package/packages/web/dist/icons/maskable-512.png +0 -0
  1134. package/packages/web/dist/index.html +95 -0
  1135. package/packages/web/dist/offline.html +39 -0
  1136. package/packages/web/dist/screenshots/narrow.png +0 -0
  1137. package/packages/web/dist/screenshots/wide.png +0 -0
  1138. package/packages/web/dist/sw.js +2 -0
  1139. package/packages/web/dist/zod-config.js +7 -0
  1140. package/packages/web/package.json +25 -0
  1141. package/scripts/dev-env.ts +30 -0
  1142. package/scripts/hub-client.ts +2 -0
  1143. package/scripts/release/link.cjs +73 -0
  1144. package/scripts/run-stack.ts +98 -0
  1145. package/scripts/stack.ts +302 -0
  1146. package/scripts/start.ts +110 -0
  1147. package/scripts/supervise.ts +98 -0
  1148. package/systems/api/package.json +20 -0
  1149. package/systems/api/server/authoring.ts +348 -0
  1150. package/systems/api/server/env.ts +16 -0
  1151. package/systems/api/server/guard.ts +44 -0
  1152. package/systems/api/server/http.ts +274 -0
  1153. package/systems/api/server/impl.ts +233 -0
  1154. package/systems/api/server/index.ts +10 -0
  1155. package/systems/api/server/main.ts +27 -0
  1156. package/systems/api/server/openapi.ts +51 -0
  1157. package/systems/api/server/program.ts +158 -0
  1158. package/systems/api/server/services.ts +121 -0
  1159. package/systems/api/shared/http.ts +61 -0
  1160. package/systems/api/shared/index.ts +244 -0
  1161. package/systems/api/system.json +9 -0
  1162. package/systems/api/tsconfig.json +6 -0
  1163. package/systems/claude/client/FleetPage.vue +132 -0
  1164. package/systems/claude/client/NewSessionForm.vue +62 -0
  1165. package/systems/claude/client/SessionList.vue +64 -0
  1166. package/systems/claude/client/SessionPage.vue +199 -0
  1167. package/systems/claude/client/TaskList.vue +61 -0
  1168. package/systems/claude/client/fakes.ts +186 -0
  1169. package/systems/claude/client/host.ts +23 -0
  1170. package/systems/claude/client/index.ts +15 -0
  1171. package/systems/claude/client/logic.ts +270 -0
  1172. package/systems/claude/client/state.ts +344 -0
  1173. package/systems/claude/package.json +23 -0
  1174. package/systems/claude/server/agent-sdk.ts +379 -0
  1175. package/systems/claude/server/driver.ts +153 -0
  1176. package/systems/claude/server/env.ts +64 -0
  1177. package/systems/claude/server/fake-driver.ts +112 -0
  1178. package/systems/claude/server/fleet.ts +376 -0
  1179. package/systems/claude/server/impl.ts +568 -0
  1180. package/systems/claude/server/index.ts +8 -0
  1181. package/systems/claude/server/main.ts +38 -0
  1182. package/systems/claude/server/preview.ts +76 -0
  1183. package/systems/claude/server/questions.ts +117 -0
  1184. package/systems/claude/server/transcript.ts +83 -0
  1185. package/systems/claude/shared/index.ts +262 -0
  1186. package/systems/claude/shared/session.ts +284 -0
  1187. package/systems/claude/shared/shapes.ts +106 -0
  1188. package/systems/claude/system.json +18 -0
  1189. package/systems/claude/tsconfig.json +6 -0
  1190. package/systems/code/package.json +20 -0
  1191. package/systems/code/server/authoring.ts +233 -0
  1192. package/systems/code/server/env.ts +13 -0
  1193. package/systems/code/server/impl.ts +128 -0
  1194. package/systems/code/server/index.ts +5 -0
  1195. package/systems/code/server/main.ts +27 -0
  1196. package/systems/code/shared/index.ts +130 -0
  1197. package/systems/code/system.json +9 -0
  1198. package/systems/code/tsconfig.json +6 -0
  1199. package/systems/database/package.json +25 -0
  1200. package/systems/database/server/author.ts +41 -0
  1201. package/systems/database/server/authoring.ts +322 -0
  1202. package/systems/database/server/catalog.ts +117 -0
  1203. package/systems/database/server/compile.ts +332 -0
  1204. package/systems/database/server/dialects.ts +17 -0
  1205. package/systems/database/server/drivers/database.ts +71 -0
  1206. package/systems/database/server/drivers/index.ts +23 -0
  1207. package/systems/database/server/drivers/postgres.ts +157 -0
  1208. package/systems/database/server/drivers/sqlite.ts +151 -0
  1209. package/systems/database/server/drivers/sqlserver.ts +176 -0
  1210. package/systems/database/server/env.ts +35 -0
  1211. package/systems/database/server/fixture.ts +169 -0
  1212. package/systems/database/server/impl.ts +793 -0
  1213. package/systems/database/server/index.ts +7 -0
  1214. package/systems/database/server/instance.ts +398 -0
  1215. package/systems/database/server/main.ts +47 -0
  1216. package/systems/database/server/pick.ts +97 -0
  1217. package/systems/database/server/queries.ts +390 -0
  1218. package/systems/database/server/results.ts +39 -0
  1219. package/systems/database/server/schema.ts +59 -0
  1220. package/systems/database/server/table-fns.ts +237 -0
  1221. package/systems/database/server/types.ts +253 -0
  1222. package/systems/database/shared/index.ts +544 -0
  1223. package/systems/database/shared/shapes.ts +413 -0
  1224. package/systems/database/system.json +14 -0
  1225. package/systems/database/tsconfig.json +6 -0
  1226. package/systems/embedder/package.json +19 -0
  1227. package/systems/embedder/server/env.ts +27 -0
  1228. package/systems/embedder/server/http.ts +154 -0
  1229. package/systems/embedder/server/impl.ts +104 -0
  1230. package/systems/embedder/server/index.ts +22 -0
  1231. package/systems/embedder/server/main.ts +37 -0
  1232. package/systems/embedder/server/provider.ts +60 -0
  1233. package/systems/embedder/shared/index.ts +74 -0
  1234. package/systems/embedder/system.json +9 -0
  1235. package/systems/embedder/tsconfig.json +6 -0
  1236. package/systems/fs/client/BashView.vue +165 -0
  1237. package/systems/fs/client/ChangesView.vue +132 -0
  1238. package/systems/fs/client/DiffBody.vue +95 -0
  1239. package/systems/fs/client/DiffView.vue +73 -0
  1240. package/systems/fs/client/EntryInput.vue +102 -0
  1241. package/systems/fs/client/InstallView.vue +72 -0
  1242. package/systems/fs/client/OutputBlock.vue +65 -0
  1243. package/systems/fs/client/bash.ts +40 -0
  1244. package/systems/fs/client/changes.ts +87 -0
  1245. package/systems/fs/client/diff.ts +151 -0
  1246. package/systems/fs/client/fakes.ts +58 -0
  1247. package/systems/fs/client/index.ts +19 -0
  1248. package/systems/fs/client/preview/Preview.vue +70 -0
  1249. package/systems/fs/client/preview/index.html +12 -0
  1250. package/systems/fs/client/preview/main.ts +9 -0
  1251. package/systems/fs/client/preview/shots.ts +71 -0
  1252. package/systems/fs/client/rerun.ts +36 -0
  1253. package/systems/fs/context/authoring/index.md +42 -0
  1254. package/systems/fs/context/authoring/parts/actions.md +56 -0
  1255. package/systems/fs/context/authoring/parts/actions.reference.md +90 -0
  1256. package/systems/fs/context/authoring/parts/calling.md +71 -0
  1257. package/systems/fs/context/authoring/parts/calling.reference.md +134 -0
  1258. package/systems/fs/context/authoring/parts/client.md +273 -0
  1259. package/systems/fs/context/authoring/parts/client.reference/client.md +638 -0
  1260. package/systems/fs/context/authoring/parts/client.reference/fnpillprops.md +141 -0
  1261. package/systems/fs/context/authoring/parts/client.reference/resultview.md +619 -0
  1262. package/systems/fs/context/authoring/parts/client.reference.md +24 -0
  1263. package/systems/fs/context/authoring/parts/context.md +119 -0
  1264. package/systems/fs/context/authoring/parts/context.reference.md +458 -0
  1265. package/systems/fs/context/authoring/parts/contract.md +167 -0
  1266. package/systems/fs/context/authoring/parts/contract.reference.md +286 -0
  1267. package/systems/fs/context/authoring/parts/core-types/access-ts.md +39 -0
  1268. package/systems/fs/context/authoring/parts/core-types/admin-ts.md +41 -0
  1269. package/systems/fs/context/authoring/parts/core-types/api-index-ts.md +28 -0
  1270. package/systems/fs/context/authoring/parts/core-types/approvals-ts.md +494 -0
  1271. package/systems/fs/context/authoring/parts/core-types/auto-pair-ts.md +28 -0
  1272. package/systems/fs/context/authoring/parts/core-types/checks-ts.md +42 -0
  1273. package/systems/fs/context/authoring/parts/core-types/claims-ts.md +26 -0
  1274. package/systems/fs/context/authoring/parts/core-types/config-secrets-ts.md +24 -0
  1275. package/systems/fs/context/authoring/parts/core-types/connections-ts.md +178 -0
  1276. package/systems/fs/context/authoring/parts/core-types/context-files-ts.md +103 -0
  1277. package/systems/fs/context/authoring/parts/core-types/context-graph-ts.md +22 -0
  1278. package/systems/fs/context/authoring/parts/core-types/contextdecl.md +477 -0
  1279. package/systems/fs/context/authoring/parts/core-types/data-ts.md +236 -0
  1280. package/systems/fs/context/authoring/parts/core-types/decisions-ts.md +52 -0
  1281. package/systems/fs/context/authoring/parts/core-types/fn-block-ts.md +31 -0
  1282. package/systems/fs/context/authoring/parts/core-types/fn-facts-ts.md +228 -0
  1283. package/systems/fs/context/authoring/parts/core-types/gin-ts.md +24 -0
  1284. package/systems/fs/context/authoring/parts/core-types/grants-ts.md +55 -0
  1285. package/systems/fs/context/authoring/parts/core-types/lifecycle-ts.md +658 -0
  1286. package/systems/fs/context/authoring/parts/core-types/link-ts.md +410 -0
  1287. package/systems/fs/context/authoring/parts/core-types/llm-ts.md +268 -0
  1288. package/systems/fs/context/authoring/parts/core-types/manifest.md +460 -0
  1289. package/systems/fs/context/authoring/parts/core-types/manifestpatch.md +519 -0
  1290. package/systems/fs/context/authoring/parts/core-types/mention-search-ts.md +29 -0
  1291. package/systems/fs/context/authoring/parts/core-types/model-calls-ts.md +200 -0
  1292. package/systems/fs/context/authoring/parts/core-types/model-names-ts.md +31 -0
  1293. package/systems/fs/context/authoring/parts/core-types/modes-ts.md +89 -0
  1294. package/systems/fs/context/authoring/parts/core-types/owner-runs-ts.md +47 -0
  1295. package/systems/fs/context/authoring/parts/core-types/package-ts.md +83 -0
  1296. package/systems/fs/context/authoring/parts/core-types/primitives-ts.md +170 -0
  1297. package/systems/fs/context/authoring/parts/core-types/query-ts.md +50 -0
  1298. package/systems/fs/context/authoring/parts/core-types/records-actors-ts.md +259 -0
  1299. package/systems/fs/context/authoring/parts/core-types/records-chat-ts.md +217 -0
  1300. package/systems/fs/context/authoring/parts/core-types/records-content-ts.md +24 -0
  1301. package/systems/fs/context/authoring/parts/core-types/records-runs-ts.md +24 -0
  1302. package/systems/fs/context/authoring/parts/core-types/records-systems-ts.md +69 -0
  1303. package/systems/fs/context/authoring/parts/core-types/registries-ts.md +376 -0
  1304. package/systems/fs/context/authoring/parts/core-types/remote-auth-ts.md +60 -0
  1305. package/systems/fs/context/authoring/parts/core-types/resources-ts.md +250 -0
  1306. package/systems/fs/context/authoring/parts/core-types/run-ts.md +425 -0
  1307. package/systems/fs/context/authoring/parts/core-types/sensitivity-ts.md +52 -0
  1308. package/systems/fs/context/authoring/parts/core-types/system-events-ts.md +90 -0
  1309. package/systems/fs/context/authoring/parts/core-types/system-pages-ts.md +50 -0
  1310. package/systems/fs/context/authoring/parts/core-types/system-providers-ts.md +46 -0
  1311. package/systems/fs/context/authoring/parts/core-types/validation-ts.md +45 -0
  1312. package/systems/fs/context/authoring/parts/core-types/visuals-ts.md +107 -0
  1313. package/systems/fs/context/authoring/parts/core-types/web-ts.md +22 -0
  1314. package/systems/fs/context/authoring/parts/core-types/widgets-ts.md +299 -0
  1315. package/systems/fs/context/authoring/parts/core-types.md +164 -0
  1316. package/systems/fs/context/authoring/parts/ctx.md +94 -0
  1317. package/systems/fs/context/authoring/parts/ctx.reference/fnctx.md +516 -0
  1318. package/systems/fs/context/authoring/parts/ctx.reference/hubai.md +309 -0
  1319. package/systems/fs/context/authoring/parts/ctx.reference.md +21 -0
  1320. package/systems/fs/context/authoring/parts/data.md +162 -0
  1321. package/systems/fs/context/authoring/parts/data.reference.md +119 -0
  1322. package/systems/fs/context/authoring/parts/examples/client-findview-vue.md +77 -0
  1323. package/systems/fs/context/authoring/parts/examples/client-index-ts.md +48 -0
  1324. package/systems/fs/context/authoring/parts/examples/client-notecard-vue.md +43 -0
  1325. package/systems/fs/context/authoring/parts/examples/client-noteinput-vue.md +73 -0
  1326. package/systems/fs/context/authoring/parts/examples/client-notespage-vue.md +82 -0
  1327. package/systems/fs/context/authoring/parts/examples/client-reviewform-vue.md +57 -0
  1328. package/systems/fs/context/authoring/parts/examples/client-wordcount-vue.md +58 -0
  1329. package/systems/fs/context/authoring/parts/examples/package-json.md +40 -0
  1330. package/systems/fs/context/authoring/parts/examples/server-env-ts.md +40 -0
  1331. package/systems/fs/context/authoring/parts/examples/server-impl-ts.md +323 -0
  1332. package/systems/fs/context/authoring/parts/examples/server-index-ts.md +34 -0
  1333. package/systems/fs/context/authoring/parts/examples/server-main-ts.md +57 -0
  1334. package/systems/fs/context/authoring/parts/examples/server-notes-test-ts.md +95 -0
  1335. package/systems/fs/context/authoring/parts/examples/shared-index-ts.md +310 -0
  1336. package/systems/fs/context/authoring/parts/examples/system-json.md +36 -0
  1337. package/systems/fs/context/authoring/parts/examples/systems-fs-shared-index-ts-lines-1-189.md +214 -0
  1338. package/systems/fs/context/authoring/parts/examples/systems-fs-shared-index-ts-lines-190-370.md +202 -0
  1339. package/systems/fs/context/authoring/parts/examples/systems-fs-shared-index-ts-lines-371-533.md +183 -0
  1340. package/systems/fs/context/authoring/parts/examples/tsconfig-json.md +27 -0
  1341. package/systems/fs/context/authoring/parts/examples.md +76 -0
  1342. package/systems/fs/context/authoring/parts/fns.md +225 -0
  1343. package/systems/fs/context/authoring/parts/fns.reference/fillclaims.md +267 -0
  1344. package/systems/fs/context/authoring/parts/fns.reference/fn.md +530 -0
  1345. package/systems/fs/context/authoring/parts/fns.reference.md +21 -0
  1346. package/systems/fs/context/authoring/parts/folder.md +472 -0
  1347. package/systems/fs/context/authoring/parts/gin.md +122 -0
  1348. package/systems/fs/context/authoring/parts/gin.reference.md +483 -0
  1349. package/systems/fs/context/authoring/parts/handlers-progress.md +100 -0
  1350. package/systems/fs/context/authoring/parts/handlers-progress.reference.md +197 -0
  1351. package/systems/fs/context/authoring/parts/hooks.md +56 -0
  1352. package/systems/fs/context/authoring/parts/hooks.reference.md +110 -0
  1353. package/systems/fs/context/authoring/parts/hub/hub-auto-pair-revoke.md +189 -0
  1354. package/systems/fs/context/authoring/parts/hub/hub-fns-load.md +470 -0
  1355. package/systems/fs/context/authoring/parts/hub/hub-run-background.md +562 -0
  1356. package/systems/fs/context/authoring/parts/hub/kinds-of-hub.md +95 -0
  1357. package/systems/fs/context/authoring/parts/hub.md +45 -0
  1358. package/systems/fs/context/authoring/parts/hub.reference.md +476 -0
  1359. package/systems/fs/context/authoring/parts/internals/manifestof.md +721 -0
  1360. package/systems/fs/context/authoring/parts/internals/permissionargs.md +652 -0
  1361. package/systems/fs/context/authoring/parts/internals/usagefromwire.md +257 -0
  1362. package/systems/fs/context/authoring/parts/internals.md +39 -0
  1363. package/systems/fs/context/authoring/parts/kinds-agents.md +278 -0
  1364. package/systems/fs/context/authoring/parts/kinds-agents.reference/authoringsession.md +195 -0
  1365. package/systems/fs/context/authoring/parts/kinds-agents.reference/kind.md +496 -0
  1366. package/systems/fs/context/authoring/parts/kinds-agents.reference.md +21 -0
  1367. package/systems/fs/context/authoring/parts/lifecycle.md +89 -0
  1368. package/systems/fs/context/authoring/parts/lifecycle.reference.md +60 -0
  1369. package/systems/fs/context/authoring/parts/mentions.md +76 -0
  1370. package/systems/fs/context/authoring/parts/mentions.reference.md +105 -0
  1371. package/systems/fs/context/authoring/parts/mistakes.md +465 -0
  1372. package/systems/fs/context/authoring/parts/named-types.md +97 -0
  1373. package/systems/fs/context/authoring/parts/named-types.reference.md +168 -0
  1374. package/systems/fs/context/authoring/parts/outcomes.md +120 -0
  1375. package/systems/fs/context/authoring/parts/outcomes.reference.md +287 -0
  1376. package/systems/fs/context/authoring/parts/owner-runs.md +62 -0
  1377. package/systems/fs/context/authoring/parts/owner-runs.reference.md +224 -0
  1378. package/systems/fs/context/authoring/parts/packaging.md +201 -0
  1379. package/systems/fs/context/authoring/parts/packaging.reference.md +206 -0
  1380. package/systems/fs/context/authoring/parts/providers.md +63 -0
  1381. package/systems/fs/context/authoring/parts/providers.reference.md +88 -0
  1382. package/systems/fs/context/authoring/parts/remote.md +63 -0
  1383. package/systems/fs/context/authoring/parts/remote.reference.md +175 -0
  1384. package/systems/fs/context/authoring/parts/resources.md +58 -0
  1385. package/systems/fs/context/authoring/parts/resources.reference.md +130 -0
  1386. package/systems/fs/context/authoring/parts/server.md +120 -0
  1387. package/systems/fs/context/authoring/parts/server.reference.md +569 -0
  1388. package/systems/fs/context/authoring/parts/settings-attachments.md +55 -0
  1389. package/systems/fs/context/authoring/parts/settings-attachments.reference.md +100 -0
  1390. package/systems/fs/context/authoring/parts/start.md +67 -0
  1391. package/systems/fs/context/authoring/parts/state-forms.md +103 -0
  1392. package/systems/fs/context/authoring/parts/state-forms.reference.md +32 -0
  1393. package/systems/fs/context/authoring/parts/testing.md +160 -0
  1394. package/systems/fs/context/authoring/parts/testing.reference/fakehub.md +396 -0
  1395. package/systems/fs/context/authoring/parts/testing.reference/memoryjournal.md +539 -0
  1396. package/systems/fs/context/authoring/parts/testing.reference/toolcall.md +509 -0
  1397. package/systems/fs/context/authoring/parts/testing.reference.md +24 -0
  1398. package/systems/fs/context/authoring/parts/widgets.md +165 -0
  1399. package/systems/fs/context/authoring/parts/widgets.reference/hub-visuals.md +623 -0
  1400. package/systems/fs/context/authoring/parts/widgets.reference/sourcecompatible.md +150 -0
  1401. package/systems/fs/context/authoring/parts/widgets.reference.md +21 -0
  1402. package/systems/fs/context/authoring/topics/begin.md +37 -0
  1403. package/systems/fs/context/authoring/topics/client.md +25 -0
  1404. package/systems/fs/context/authoring/topics/declare.md +40 -0
  1405. package/systems/fs/context/authoring/topics/examples.md +25 -0
  1406. package/systems/fs/context/authoring/topics/fns.md +37 -0
  1407. package/systems/fs/context/authoring/topics/server.md +40 -0
  1408. package/systems/fs/context/authoring/topics/types.md +28 -0
  1409. package/systems/fs/package.json +28 -0
  1410. package/systems/fs/server/authoring.ts +103 -0
  1411. package/systems/fs/server/builds.ts +101 -0
  1412. package/systems/fs/server/changes.ts +430 -0
  1413. package/systems/fs/server/commands.ts +133 -0
  1414. package/systems/fs/server/documents.ts +96 -0
  1415. package/systems/fs/server/env.ts +123 -0
  1416. package/systems/fs/server/files.ts +218 -0
  1417. package/systems/fs/server/git.ts +99 -0
  1418. package/systems/fs/server/hosting.ts +742 -0
  1419. package/systems/fs/server/impl.ts +451 -0
  1420. package/systems/fs/server/index.ts +151 -0
  1421. package/systems/fs/server/loader.ts +47 -0
  1422. package/systems/fs/server/main.ts +143 -0
  1423. package/systems/fs/server/mentions.ts +176 -0
  1424. package/systems/fs/server/network-guard.ts +10 -0
  1425. package/systems/fs/server/paths.ts +148 -0
  1426. package/systems/fs/server/problem.ts +26 -0
  1427. package/systems/fs/server/resources.ts +236 -0
  1428. package/systems/fs/server/reveal.ts +33 -0
  1429. package/systems/fs/server/run-tests.ts +17 -0
  1430. package/systems/fs/server/runner.ts +221 -0
  1431. package/systems/fs/server/safe.ts +83 -0
  1432. package/systems/fs/server/search.ts +214 -0
  1433. package/systems/fs/server/sections.ts +17 -0
  1434. package/systems/fs/server/sensitive.ts +560 -0
  1435. package/systems/fs/server/shell.ts +255 -0
  1436. package/systems/fs/server/snapshots.ts +119 -0
  1437. package/systems/fs/server/stale.ts +92 -0
  1438. package/systems/fs/server/testing.ts +256 -0
  1439. package/systems/fs/server/tests.ts +203 -0
  1440. package/systems/fs/server/tree.ts +44 -0
  1441. package/systems/fs/server/walk.ts +82 -0
  1442. package/systems/fs/shared/format.ts +29 -0
  1443. package/systems/fs/shared/hosting.ts +65 -0
  1444. package/systems/fs/shared/index.ts +533 -0
  1445. package/systems/fs/system.json +10 -0
  1446. package/systems/fs/tsconfig.json +6 -0
  1447. package/systems/google-calendar/package.json +18 -0
  1448. package/systems/google-calendar/server/calendar.ts +164 -0
  1449. package/systems/google-calendar/server/connector.ts +73 -0
  1450. package/systems/google-calendar/server/env.ts +25 -0
  1451. package/systems/google-calendar/server/fake.ts +127 -0
  1452. package/systems/google-calendar/server/google.ts +234 -0
  1453. package/systems/google-calendar/server/impl.ts +140 -0
  1454. package/systems/google-calendar/server/index.ts +7 -0
  1455. package/systems/google-calendar/server/main.ts +29 -0
  1456. package/systems/google-calendar/shared/index.ts +198 -0
  1457. package/systems/google-calendar/system.json +9 -0
  1458. package/systems/google-calendar/tsconfig.json +6 -0
  1459. package/systems/input/client/FieldInput.vue +118 -0
  1460. package/systems/input/client/FormCard.vue +223 -0
  1461. package/systems/input/client/form.ts +152 -0
  1462. package/systems/input/client/host.ts +13 -0
  1463. package/systems/input/client/index.ts +28 -0
  1464. package/systems/input/package.json +22 -0
  1465. package/systems/input/server/authoring.ts +240 -0
  1466. package/systems/input/server/env.ts +17 -0
  1467. package/systems/input/server/impl.ts +177 -0
  1468. package/systems/input/server/index.ts +4 -0
  1469. package/systems/input/server/main.ts +31 -0
  1470. package/systems/input/shared/forms.ts +106 -0
  1471. package/systems/input/shared/index.ts +389 -0
  1472. package/systems/input/system.json +10 -0
  1473. package/systems/input/tsconfig.json +6 -0
  1474. package/systems/mcp/package.json +21 -0
  1475. package/systems/mcp/server/dial.ts +102 -0
  1476. package/systems/mcp/server/elicitation.ts +103 -0
  1477. package/systems/mcp/server/env.ts +27 -0
  1478. package/systems/mcp/server/fixtures/stdio-server.ts +8 -0
  1479. package/systems/mcp/server/impl.ts +190 -0
  1480. package/systems/mcp/server/index.ts +10 -0
  1481. package/systems/mcp/server/instance.ts +442 -0
  1482. package/systems/mcp/server/main.ts +42 -0
  1483. package/systems/mcp/server/mirror.ts +179 -0
  1484. package/systems/mcp/server/oauth.ts +163 -0
  1485. package/systems/mcp/server/schema.ts +56 -0
  1486. package/systems/mcp/server/server-link.ts +216 -0
  1487. package/systems/mcp/shared/index.ts +130 -0
  1488. package/systems/mcp/shared/shapes.ts +42 -0
  1489. package/systems/mcp/system.json +10 -0
  1490. package/systems/mcp/tsconfig.json +6 -0
  1491. package/systems/ollama/client/ServersPage.vue +242 -0
  1492. package/systems/ollama/client/index.ts +13 -0
  1493. package/systems/ollama/client/logic.ts +108 -0
  1494. package/systems/ollama/package.json +22 -0
  1495. package/systems/ollama/server/api.ts +106 -0
  1496. package/systems/ollama/server/detect.ts +59 -0
  1497. package/systems/ollama/server/env.ts +43 -0
  1498. package/systems/ollama/server/fakes.ts +212 -0
  1499. package/systems/ollama/server/impl.ts +362 -0
  1500. package/systems/ollama/server/index.ts +10 -0
  1501. package/systems/ollama/server/install.ts +348 -0
  1502. package/systems/ollama/server/main.ts +67 -0
  1503. package/systems/ollama/server/models.ts +93 -0
  1504. package/systems/ollama/server/provider.ts +42 -0
  1505. package/systems/ollama/server/serve.ts +315 -0
  1506. package/systems/ollama/shared/index.ts +178 -0
  1507. package/systems/ollama/shared/schemas.ts +258 -0
  1508. package/systems/ollama/system.json +11 -0
  1509. package/systems/ollama/tsconfig.json +6 -0
  1510. package/systems/schedule/client/AgendaList.vue +74 -0
  1511. package/systems/schedule/client/AllSchedulesPage.vue +129 -0
  1512. package/systems/schedule/client/CalendarGrid.vue +155 -0
  1513. package/systems/schedule/client/CalendarPage.vue +203 -0
  1514. package/systems/schedule/client/ChangeResult.vue +23 -0
  1515. package/systems/schedule/client/FiringResult.vue +45 -0
  1516. package/systems/schedule/client/ScheduleCard.vue +63 -0
  1517. package/systems/schedule/client/ScheduleForm.vue +227 -0
  1518. package/systems/schedule/client/ScheduleListResult.vue +36 -0
  1519. package/systems/schedule/client/SchedulePage.vue +342 -0
  1520. package/systems/schedule/client/ScheduleResult.vue +23 -0
  1521. package/systems/schedule/client/host.ts +31 -0
  1522. package/systems/schedule/client/index.ts +29 -0
  1523. package/systems/schedule/client/logic.ts +655 -0
  1524. package/systems/schedule/client/results.ts +114 -0
  1525. package/systems/schedule/client/state.ts +372 -0
  1526. package/systems/schedule/package.json +27 -0
  1527. package/systems/schedule/server/args.ts +137 -0
  1528. package/systems/schedule/server/authoring.ts +202 -0
  1529. package/systems/schedule/server/env.ts +32 -0
  1530. package/systems/schedule/server/fns.ts +791 -0
  1531. package/systems/schedule/server/impl.ts +52 -0
  1532. package/systems/schedule/server/index.ts +10 -0
  1533. package/systems/schedule/server/kind.ts +48 -0
  1534. package/systems/schedule/server/main.ts +33 -0
  1535. package/systems/schedule/server/store.ts +195 -0
  1536. package/systems/schedule/server/summary.ts +184 -0
  1537. package/systems/schedule/server/timer.ts +893 -0
  1538. package/systems/schedule/shared/index.ts +376 -0
  1539. package/systems/schedule/shared/types.ts +264 -0
  1540. package/systems/schedule/shared/when.ts +395 -0
  1541. package/systems/schedule/shared/zoned.ts +44 -0
  1542. package/systems/schedule/system.json +15 -0
  1543. package/systems/schedule/tsconfig.json +6 -0
  1544. package/systems/template/README.md +46 -0
  1545. package/systems/template/client/index.ts +16 -0
  1546. package/systems/template/client/vue-shim.d.ts +13 -0
  1547. package/systems/template/package.json +20 -0
  1548. package/systems/template/server/env.ts +19 -0
  1549. package/systems/template/server/impl.ts +58 -0
  1550. package/systems/template/server/index.ts +13 -0
  1551. package/systems/template/server/main.ts +30 -0
  1552. package/systems/template/shared/index.ts +81 -0
  1553. package/systems/template/system.json +15 -0
  1554. package/systems/template/tsconfig.json +6 -0
  1555. package/systems/web/client/ReadView.vue +110 -0
  1556. package/systems/web/client/SearchView.vue +215 -0
  1557. package/systems/web/client/StatusChip.vue +38 -0
  1558. package/systems/web/client/fakes.ts +48 -0
  1559. package/systems/web/client/index.ts +15 -0
  1560. package/systems/web/client/view.ts +131 -0
  1561. package/systems/web/package.json +22 -0
  1562. package/systems/web/server/chrome.ts +121 -0
  1563. package/systems/web/server/crawl.ts +333 -0
  1564. package/systems/web/server/env.ts +63 -0
  1565. package/systems/web/server/guard.ts +60 -0
  1566. package/systems/web/server/http.ts +89 -0
  1567. package/systems/web/server/impl.ts +203 -0
  1568. package/systems/web/server/index.ts +71 -0
  1569. package/systems/web/server/loader.ts +104 -0
  1570. package/systems/web/server/main.ts +70 -0
  1571. package/systems/web/server/mentions.ts +111 -0
  1572. package/systems/web/server/problem.ts +72 -0
  1573. package/systems/web/server/renderer.ts +243 -0
  1574. package/systems/web/server/robots.ts +75 -0
  1575. package/systems/web/server/searches.ts +29 -0
  1576. package/systems/web/server/tavily.ts +144 -0
  1577. package/systems/web/server/testing.ts +165 -0
  1578. package/systems/web/server/uploads.ts +33 -0
  1579. package/systems/web/shared/index.ts +343 -0
  1580. package/systems/web/shared/urls.ts +60 -0
  1581. package/systems/web/system.json +15 -0
  1582. package/systems/web/tsconfig.json +6 -0
  1583. package/systems/widgets/client/ProposalCard.vue +83 -0
  1584. package/systems/widgets/client/SavedWidget.vue +35 -0
  1585. package/systems/widgets/client/WidgetsPage.vue +112 -0
  1586. package/systems/widgets/client/index.ts +19 -0
  1587. package/systems/widgets/client/proposal.ts +52 -0
  1588. package/systems/widgets/package.json +23 -0
  1589. package/systems/widgets/server/authoring.ts +261 -0
  1590. package/systems/widgets/server/env.ts +21 -0
  1591. package/systems/widgets/server/impl.ts +252 -0
  1592. package/systems/widgets/server/index.ts +6 -0
  1593. package/systems/widgets/server/main.ts +32 -0
  1594. package/systems/widgets/server/run.ts +104 -0
  1595. package/systems/widgets/shared/index.ts +194 -0
  1596. package/systems/widgets/system.json +10 -0
  1597. package/systems/widgets/tsconfig.json +6 -0
  1598. package/tsconfig.base.json +30 -0
@@ -0,0 +1,65 @@
1
+ /**
2
+ * The shapes of fs's hosting fns: installing a system folder from the chat (`install_system`), and seeing, restarting
3
+ * and stopping the systems this fs instance hosts (`system_status`, `restart_system`, `stop_system`). A hosted system
4
+ * runs on fs's machine, from a bundle an admin approved, supervised by fs.
5
+ */
6
+ import { g, type Infer } from '@harness/sdk';
7
+
8
+ /** Where a hosted system is in its life. */
9
+ export const HOSTED_STATES = ['starting', 'connected', 'needs-config', 'crashed', 'stopped', 'disabled'] as const;
10
+ export const HostedState = g.enum(HOSTED_STATES);
11
+
12
+ /** `install_system`'s args. */
13
+ export const InstallArgs = g.obj({
14
+ path: g.field(g.text({ minLength: 1 }), { docs: 'The system folder (the one with system.json): absolute, or relative to a root (`systems/random`).' }),
15
+ instance: g.field(g.optional(g.text({ minLength: 1 })), { docs: 'Which copy of the system this is; `main` when empty.' }),
16
+ replace: g.field(g.optional(g.bool()), { docs: 'Replace a system of this name that runs somewhere else (the card says what it replaces).' }),
17
+ });
18
+
19
+ /** What `install_system` started. */
20
+ export const InstallResult = g.obj({
21
+ system: g.text(),
22
+ instance: g.text(),
23
+ version: g.text(),
24
+ status: g.field(g.enum(['connected', 'needs-config']), { docs: '`needs-config`: it runs but waits for its config, set on its page or asked for in the chat.' }),
25
+ fns: g.field(g.list(g.text()), { docs: 'Its fns, by qualified name: load them with hub/fns_load to call them.' }),
26
+ folder: g.field(g.text(), { docs: 'The source folder it was built from.' }),
27
+ });
28
+
29
+ /** One hosted system as `system_status` reports it. */
30
+ export const HostedStatus = g.obj({
31
+ system: g.text(),
32
+ instance: g.text(),
33
+ version: g.text(),
34
+ state: HostedState,
35
+ pid: g.optional(g.num({ whole: true })),
36
+ restartsLastHour: g.num({ min: 0, whole: true }),
37
+ folder: g.text(),
38
+ bundleHash: g.text(),
39
+ output: g.field(g.text(), { docs: 'The end of what it printed, to read a crash.' }),
40
+ });
41
+
42
+ /** `system_status`'s args. */
43
+ export const StatusArgs = g.obj({ system: g.field(g.optional(g.text({ minLength: 1 })), { docs: 'One system; every hosted one when empty.' }) });
44
+
45
+ /** `restart_system`'s args. */
46
+ export const RestartArgs = g.obj({
47
+ system: g.text({ minLength: 1 }),
48
+ instance: g.field(g.optional(g.text({ minLength: 1 })), { docs: '`main` when empty.' }),
49
+ reason: g.text({ minLength: 1, maxLength: 200 }),
50
+ });
51
+
52
+ /** `stop_system`'s args. */
53
+ export const StopArgs = g.obj({
54
+ system: g.text({ minLength: 1 }),
55
+ instance: g.field(g.optional(g.text({ minLength: 1 })), { docs: '`main` when empty.' }),
56
+ remove: g.field(g.optional(g.bool()), { docs: 'Also delete its hosted folders (its data too); the person is asked first.' }),
57
+ });
58
+
59
+ /** What `stop_system` did. */
60
+ export const StopResult = g.obj({ stopped: g.bool(), removed: g.bool() });
61
+
62
+ /** The result values, typed. */
63
+ export type InstallResultValue = Infer<typeof InstallResult>;
64
+ export type HostedStatusValue = Infer<typeof HostedStatus>;
65
+ export type HostedStateValue = Infer<typeof HostedState>;
@@ -0,0 +1,533 @@
1
+ /**
2
+ * The fs system's contract (`shared/`): files and a shell over chosen folders, served as resources, a restart so
3
+ * changes to its own code go live, and hosting: systems written here are installed from the chat, run on this machine
4
+ * from a bundle an admin approved, and supervised. Other systems import this to call its fns with typed refs; its server
5
+ * implements it and its client draws it.
6
+ */
7
+ import { ChangeSet, SensitivityRule } from '@harness/core';
8
+ import { type Infer, type ValueOf, agent, agents, arg, attachment, context, fn, ginAs, g, handler, hook, hub, linear, mention, setting, system, type } from '@harness/sdk';
9
+ import { HostedState, HostedStatus, InstallArgs, InstallResult, RestartArgs, StatusArgs, StopArgs, StopResult } from './hosting.ts';
10
+
11
+ export * from './hosting.ts';
12
+
13
+ /** A file or folder under one of the roots. */
14
+ export const Entry = type({
15
+ description: 'A file or folder under one of the roots.',
16
+ shape: g.obj({
17
+ path: g.text(),
18
+ type: g.enum(['file', 'folder', 'link']),
19
+ size: g.num({ min: 0, whole: true }),
20
+ modifiedAt: g.timestamp(),
21
+ }),
22
+ display: { label: 'File', plural: 'Files', icon: 'file', color: '#8a8f98', title: 'path', subtitle: 'type' },
23
+ methods: {
24
+ // offered on a file's mention card; people and code can call it, the LLM can't (visibility)
25
+ reveal: fn({
26
+ description: 'Show it in the file manager.',
27
+ instructions: 'Opens the system\'s file manager at the file or folder, on the machine fs runs on. True when the file manager opened.',
28
+ args: g.obj({}),
29
+ returns: g.bool(),
30
+ examples: [{ args: {}, result: true }],
31
+ effects: { mode: 'read', free: true },
32
+ visibility: 'user',
33
+ }),
34
+ },
35
+ });
36
+
37
+ /** The shell's session state: the working folder `cd` sets and `bash` uses. */
38
+ export const Shell = g.obj({ cwd: g.text() });
39
+
40
+ /** What undo needs to put a file back: its earlier content, or nothing if it didn't exist. */
41
+ export const Previous = g.obj({ path: g.text(), previous: g.nullable(hub.types.ContentRef) });
42
+
43
+ /** One folder the system serves and works in. */
44
+ export const Root = g.obj({
45
+ path: g.text({ minLength: 1 }),
46
+ name: g.text({ minLength: 1 }),
47
+ writable: g.bool(),
48
+ index: g.enum(['all', 'on-read', 'none']),
49
+ });
50
+
51
+ /** How many undo copies fs keeps: per file (the newest), and in all (the oldest go first). */
52
+ export const SnapshotLimits = g.obj({
53
+ perFile: g.field(g.num({ min: 1, whole: true }), { docs: 'Undo copies kept per file.' }),
54
+ totalMb: g.field(g.num({ min: 1, whole: true }), { docs: 'Most space all undo copies use, in MB.' }),
55
+ });
56
+
57
+ /** What a command printed and how it ended. */
58
+ export const CommandResult = g.obj({ exitCode: g.num({ whole: true }), stdout: g.text(), stderr: g.text() });
59
+
60
+ /** What a command changed: the files, with a diff for each small text file in git (core `changes.ts`). */
61
+ export const Changes = ginAs(ChangeSet);
62
+
63
+ /** What `bash` returns: what the command printed, how it ended, and the files it changed when they could be found. */
64
+ export const BashResult = g.obj({ exitCode: g.num({ whole: true }), stdout: g.text(), stderr: g.text(), changes: g.optional(Changes) });
65
+
66
+ /** How many sensitive files a listing or search left out (`server/sensitive.ts`). */
67
+ const hidden = () => g.field(g.optional(g.num({ min: 0, whole: true })), { docs: 'Sensitive files left out (gitignored, env files, keys, credentials). Read one by its path if the task needs it; the person is asked first.' });
68
+
69
+ /** The shell setting: whether commands may run at all, and which command prefixes run without asking. */
70
+ export const ShellPolicy = g.obj({ allowed: g.bool(), safe: g.list(g.text()) });
71
+
72
+ /** The diff attachment: a file's text before and after a change. */
73
+ export const DiffData = g.obj({ path: g.text(), before: g.text(), after: g.text() });
74
+
75
+ /** The files mention's target: a root by name and a path inside it, with `/` separators. */
76
+ export const FileTarget = g.obj({ root: g.text(), path: g.text() });
77
+
78
+ /** How fns take a path: absolute inside a root, or relative to the first root (or to a root named first). */
79
+ const PATH_DOCS = 'A path inside one of the folders this system serves (its roots): relative to the first root (`docs/a.md`), starting with a root\'s name (`<root name>/docs/a.md`), or absolute inside a root. `/` and folders outside the roots are refused; `.` is the first root.';
80
+ const path = () => g.field(g.text({ minLength: 1 }), { docs: PATH_DOCS });
81
+
82
+ /** The shortest timeout `bash` accepts, in milliseconds; a shorter one is refused as invalid input. */
83
+ export const COMMAND_TIMEOUT_MIN = 1_000;
84
+
85
+ /** The fs system's contract. */
86
+ export const fs = system('fs', {
87
+ description: 'Files and a shell over chosen folders, served as resources. Can restart itself.',
88
+ about: [
89
+ 'Files and a shell over a few folders of the person\'s machine that an admin chose (its roots); nothing outside them can be reached, and `/` is not a root: paths are relative to the first root (`notes/todo.md`) or start with a root\'s name.',
90
+ 'Its fns read, list and search files (fs/read, fs/list, fs/glob, fs/grep), change them (fs/write, fs/edit, fs/remove: each may ask the person first, and each can be undone) and run bash commands (fs/bash, fs/cd).',
91
+ 'Reach for it to look at or change the person\'s files, and to keep a lasting document they can open later (a note, a list, a summary) as a markdown file. It defines no fn kinds.',
92
+ 'A file the person attached to a chat message is not an fs file: it is a hub resource, read with the hub\'s resource fns. Its fns for installing and hosting systems (fs/install_system, fs/system_status, fs/restart_system, fs/stop_system, fs/restart) are for admins and system authors.',
93
+ 'Load its guide (fs/guide) before the first file change.',
94
+ ].join(' '),
95
+ // its authoring agents use models; installs wait for an admin and pair what they start; it keeps each person's cwd,
96
+ // reads the shell setting, serves and announces resources, and shares the fns it writes
97
+ grants: { hub: ['ai', 'approvals', 'fns', 'state', 'settings', 'resources', 'search'], calls: ['hub/search_resources'] },
98
+ // its API groups: the hub indexes its fns by them (`fs/api`, `fs/api.<group>`)
99
+ groups: [
100
+ { name: 'files', title: 'Files', description: 'Read, write, edit, delete and search files under the roots, and ask questions about the code.' },
101
+ { name: 'shell', title: 'Shell', description: 'Run commands (builds, tests, git) in a working folder; each command lists the files it changed.' },
102
+ { name: 'systems', title: 'Systems', description: 'Install, check, restart and stop the systems this machine hosts, and restart fs itself.' },
103
+ ],
104
+ })
105
+ .with({
106
+ // set by an admin in the hub; the server gets it typed when it starts
107
+ config: g.obj({
108
+ // the folders it serves and works in; nothing outside them is reachable
109
+ roots: g.list(Root),
110
+ // its own source folder, so it can change itself and restart
111
+ self: g.optional(g.text()),
112
+ // which files are sensitive and what reads and writes of them do (server/sensitive.ts); left out: the defaults
113
+ // (gitignored files, env files but the example, keys, credentials, tokens and passwords in content, and writes of
114
+ // files that lead to running code); [] trusts all but writes into .git, which always ask
115
+ sensitive: g.optional(g.list(ginAs(SensitivityRule))),
116
+ // before build 8: globs of files never served as resources (`!` serves one again); turned into rules when
117
+ // `sensitive` is absent
118
+ secrets: g.optional(g.list(g.text())),
119
+ // the env variables bash commands get besides PATH, home, temp and locale (server/shell.ts `commandEnv`); left
120
+ // out: none, so fs's own keys never reach a command
121
+ commandEnv: g.field(g.optional(g.list(g.text({ minLength: 1 }))), { docs: 'Env variables commands also get, by name. Others are never passed on.' }),
122
+ // how many undo copies fs keeps (server/snapshots.ts); left out: SNAPSHOT_DEFAULTS
123
+ snapshots: g.field(g.optional(SnapshotLimits), { docs: 'How many undo copies to keep per file, and how much space they may use in all.' }),
124
+ }),
125
+ types: { Entry },
126
+ settings: {
127
+ shell: setting({
128
+ description: 'Which commands run without asking.',
129
+ type: ShellPolicy,
130
+ appliesTo: ['user', 'group'],
131
+ merge: 'most-restrictive',
132
+ }),
133
+ },
134
+ attachments: {
135
+ diff: attachment({ description: 'A change to a file, drawn as a diff.', data: DiffData }),
136
+ },
137
+ fns: {
138
+ read: fn({
139
+ group: 'files',
140
+ description: 'Read a text file under the roots, whole or a window of its lines. Gives its text, how many lines it has, and whether more follows.',
141
+ instructions: 'Read a file before you change it or say what is in it; never describe a file you have not read. Paths are relative to the first root (`src/app.ts`) or start with a root\'s name when there are several. For a long file read a window with `offset` (the first line, counted from 0) and `limit` (how many lines); `truncated: true` means more follows, and `partial` says which lines are here, how many were left out and how to read the rest: read on before you say what the rest holds. Binary files (PDFs, images) are refused: read those with hub/resource_read or hub/resource_send. A file attached to a chat message is not here: it is a hub resource.',
142
+ examples: [
143
+ { args: { path: 'README.md' }, note: 'The whole file.' },
144
+ { args: { path: 'src/server/main.ts', offset: 120, limit: 60 }, note: 'Lines 121 to 180 of a long file.' },
145
+ ],
146
+ effects: { mode: 'read', free: true },
147
+ // the hub asks which sensitive files a call touches first (server/sensitive.ts)
148
+ flags: true,
149
+ args: g.obj({ path: path(), offset: g.optional(g.num({ min: 0, whole: true })), limit: g.optional(g.num({ min: 1, whole: true })) }),
150
+ returns: g.obj({ text: g.text(), lines: g.num(), truncated: g.bool(), partial: g.optional(g.text()) }),
151
+ status: {
152
+ active: { one: 'Reading {args.path}…', many: 'Reading {n} files…' },
153
+ retry: { one: 'Retrying reading {args.path}…', many: 'Retrying {n} file reads…' },
154
+ done: { one: 'Read {args.path}', many: 'Read {n} files' },
155
+ failed: { one: 'Reading {args.path} failed', many: '{n} file reads failed' },
156
+ },
157
+ tags: ['read'],
158
+ }),
159
+ write: fn({
160
+ group: 'files',
161
+ description: 'Write a whole file under the roots, creating it (and its folders) if needed. Gives whether it was created or replaced.',
162
+ instructions: 'Use it for a new file (a note, a list, a summary the person wants to keep as a document), or to replace a whole small file. To change part of an existing file use fs/edit, so the rest stays as it is. It may ask the person first; the old content is kept, so the write can be undone. Tell the person the path you wrote, so they can find it.',
163
+ examples: [{ args: { path: 'notes/todo.md', text: '# To do\n\n- Write the tests\n' }, result: { created: true }, note: 'A new file.' }],
164
+ effects: { mode: 'write', free: true },
165
+ // the hub asks which sensitive files a call touches first (server/sensitive.ts)
166
+ flags: true,
167
+ args: g.obj({ path: path(), text: hub.types.LongText }),
168
+ // two changes to one file in the same step run in the model's order (server/impl.ts fileClaims)
169
+ dynamicClaims: true,
170
+ returns: g.obj({ created: g.bool() }),
171
+ status: {
172
+ active: { one: 'Writing {args.path}…', many: 'Writing {n} files…' },
173
+ retry: { one: 'Retrying writing {args.path}…', many: 'Retrying {n} file writes…' },
174
+ done: { one: 'Wrote {args.path}', many: 'Wrote {n} files' },
175
+ failed: { one: 'Writing {args.path} failed', many: '{n} file writes failed' },
176
+ },
177
+ undo: Previous,
178
+ }),
179
+ edit: fn({
180
+ group: 'files',
181
+ description: 'Change part of a file: replace exact text with new text. Gives how many places were replaced.',
182
+ instructions: 'Read the file first (fs/read) and copy `find` exactly as it is there, spaces and line breaks included, with enough around it to be unique; the edit fails when it matches nothing or (without `all`) more than once. Set `all` to replace every match (renaming a word). It can be undone.',
183
+ examples: [
184
+ { args: { path: 'src/config.ts', find: 'timeout: 30_000,', replace: 'timeout: 60_000,' }, result: { replacements: 1 } },
185
+ { args: { path: 'docs/guide.md', find: 'colour', replace: 'color', all: true }, result: { replacements: 4 }, note: 'Every match.' },
186
+ ],
187
+ effects: { mode: 'write', free: true },
188
+ // the hub asks which sensitive files a call touches first (server/sensitive.ts)
189
+ flags: true,
190
+ args: g.obj({ path: path(), find: g.text({ minLength: 1 }), replace: g.text(), all: g.optional(g.bool()) }),
191
+ // two changes to one file in the same step run in the model's order (server/impl.ts fileClaims)
192
+ dynamicClaims: true,
193
+ returns: g.obj({ replacements: g.num() }),
194
+ status: {
195
+ active: { one: 'Editing {args.path}…', many: 'Editing {n} files…' },
196
+ retry: { one: 'Retrying the edit to {args.path}…', many: 'Retrying {n} edits…' },
197
+ done: { one: 'Edited {args.path}', many: 'Edited {n} files' },
198
+ failed: { one: 'Editing {args.path} failed', many: '{n} edits failed' },
199
+ },
200
+ undo: Previous,
201
+ }),
202
+ list: fn({
203
+ group: 'files',
204
+ description: 'List what a folder under the roots holds: each file and folder with its type, size and when it changed.',
205
+ instructions: 'Use it to see what a folder holds before guessing names. `.` is the first root; `/` is not a folder you can list (it is outside the roots), so start from `.` or a root\'s name. `depth` 2 or more lists inside subfolders too (up to 5); to find files by name anywhere use fs/glob. `hidden` counts sensitive files left out.',
206
+ examples: [{ args: { path: '.' }, note: 'The root\'s top level.' }, { args: { path: 'src', depth: 2 } }],
207
+ effects: { mode: 'read', free: true },
208
+ // the hub asks which sensitive files a call touches first (server/sensitive.ts)
209
+ flags: true,
210
+ args: g.obj({ path: path(), depth: g.optional(g.num({ min: 1, max: 5, whole: true })) }),
211
+ returns: g.obj({ entries: g.list(Entry.shape), hidden: hidden() }),
212
+ status: {
213
+ active: { one: 'Listing {args.path}…', many: 'Listing {n} folders…' },
214
+ retry: { one: 'Retrying listing {args.path}…', many: 'Retrying {n} folder lists…' },
215
+ done: { one: 'Listed {args.path}', many: 'Listed {n} folders' },
216
+ failed: { one: 'Listing {args.path} failed', many: '{n} folder lists failed' },
217
+ },
218
+ tags: ['read'],
219
+ }),
220
+ glob: fn({
221
+ group: 'files',
222
+ description: 'Find files by name or path with a glob pattern (`*.md`, `src/**/*.ts`). Gives the matching paths.',
223
+ instructions: 'Use it to find files by name or path when you don\'t know where they are. The pattern is relative to the root (every root when none is given); a pattern without `/`, like `*.md`, matches file names at any depth; `**` matches any folders. Folders the system ignores (node_modules, .git) are left out.',
224
+ examples: [
225
+ { args: { pattern: '*.md' }, note: 'Every markdown file.' },
226
+ { args: { pattern: 'src/**/*.test.ts', root: 'app' }, note: 'Tests under src in one root.' },
227
+ ],
228
+ effects: { mode: 'read', free: true },
229
+ // the hub asks which sensitive files a call touches first (server/sensitive.ts)
230
+ flags: true,
231
+ args: g.obj({ pattern: g.text(), root: g.optional(g.text()) }),
232
+ returns: g.obj({ paths: g.list(g.text()), hidden: hidden() }),
233
+ status: {
234
+ active: { one: 'Finding {args.pattern}…', many: 'Running {n} path searches…' },
235
+ retry: { one: 'Retrying the search for {args.pattern}…', many: 'Retrying {n} path searches…' },
236
+ done: { one: 'Found {args.pattern}', many: 'Ran {n} path searches' },
237
+ failed: { one: 'Finding {args.pattern} failed', many: '{n} path searches failed' },
238
+ },
239
+ tags: ['read'],
240
+ }),
241
+ grep: fn({
242
+ group: 'files',
243
+ description: 'Search the text inside files for a regular expression, line by line. Gives each matching line with its path and line number.',
244
+ instructions: 'Use it to find which files mention something before reading them. The pattern is a JavaScript regular expression (the syntax of `new RegExp(pattern)`, no flags), tested on each line: escape `.`, `(`, `?` and the like with a backslash. It is case-sensitive, and inline flags such as `(?i)` are invalid in this syntax: for either case write a character class (`[Gg]rocer`) or both spellings (`Milk|milk`). A match never spans two lines. Narrow big searches with `glob` (`*.md`, `src/**/*.vue`) and `limit`. Each match gives the path and line, so read around it next with fs/read.',
245
+ examples: [
246
+ { args: { pattern: 'function createHub\\(', glob: '*.ts' }, note: 'Where a function is defined.' },
247
+ { args: { pattern: 'TODO|FIXME', glob: 'src/**', limit: 50 } },
248
+ { args: { pattern: '[Ff]lour', glob: '*.md' }, note: 'Either case: a character class, since `(?i)` is not allowed.' },
249
+ ],
250
+ effects: { mode: 'read', free: true },
251
+ // the hub asks which sensitive files a call touches first (server/sensitive.ts)
252
+ flags: true,
253
+ args: g.obj({ pattern: g.text(), root: g.optional(g.text()), glob: g.optional(g.text()), limit: g.optional(g.num({ min: 1, whole: true })) }),
254
+ returns: g.obj({ matches: g.list(g.obj({ path: g.text(), line: g.num(), text: g.text() })), hidden: hidden() }),
255
+ progress: linear,
256
+ status: {
257
+ active: { one: 'Searching for {args.pattern}…', many: 'Running {n} searches…' },
258
+ retry: { one: 'Retrying the search for {args.pattern}…', many: 'Retrying {n} searches…' },
259
+ done: { one: 'Searched for {args.pattern}', many: 'Ran {n} searches' },
260
+ failed: { one: 'Searching for {args.pattern} failed', many: '{n} searches failed' },
261
+ },
262
+ tags: ['read'],
263
+ }),
264
+ cd: fn({
265
+ group: 'shell',
266
+ description: 'Set the working folder that later fs/bash commands in this chat run in. Gives the folder now set.',
267
+ instructions: 'Set it once instead of passing `cwd` to every fs/bash call; it lasts for this chat (undoing the turn puts it back). The folder must be inside a root.',
268
+ examples: [{ args: { path: 'packages/web' }, result: { cwd: 'packages/web' } }],
269
+ effects: { mode: 'read', free: true },
270
+ args: g.obj({ path: path() }),
271
+ returns: g.obj({ cwd: g.text() }),
272
+ // shared with bash through session state; the LLM never has to pass it around
273
+ state: Shell,
274
+ display: 'hidden',
275
+ }),
276
+ bash: fn({
277
+ group: 'shell',
278
+ description: 'Run a bash command on the machine fs runs on, in the working folder set with fs/cd unless `cwd` is given. Gives its exit code, what it printed (stdout, stderr) and the files it changed.',
279
+ instructions: 'The shell is bash (Git Bash on Windows when it is installed), not PowerShell or cmd: write POSIX commands (`ls`, `grep`, `&&`, forward slashes). Use it to build, test, run git or a program the files need; to look at files prefer fs/read, fs/grep and fs/glob, and to change them fs/write and fs/edit (those can be undone; what a command does cannot). Commands your shell setting does not mark safe ask the person first. Give a `timeout` for long builds. Check `exitCode` and `stderr`: a non-zero exit is a failed command, not a failed call. `changes` lists the files the command changed (with diffs in git), so you need not run git diff to see them.',
280
+ examples: [
281
+ { args: { command: 'git status --short' }, note: 'What changed.' },
282
+ { args: { command: 'npm test -- --run src/app.test.ts', timeout: 120_000 }, note: 'One test file, with two minutes.' },
283
+ { args: { command: 'ls -la', cwd: 'docs' } },
284
+ ],
285
+ // a command can do anything a shell can, deleting included; it spends no model money itself
286
+ effects: { mode: 'delete', free: true },
287
+ // the hub asks which sensitive files a call touches first (server/sensitive.ts)
288
+ flags: true,
289
+ args: g.obj({ command: g.text(), cwd: g.optional(g.text()), timeout: g.field(g.optional(g.duration()), { docs: `How long the command may run, in milliseconds (30000 is 30 seconds); at least ${String(COMMAND_TIMEOUT_MIN)}. Leave empty for the default.` }) }),
290
+ returns: BashResult,
291
+ state: Shell,
292
+ progress: linear,
293
+ status: {
294
+ active: { one: 'Running {args.command}…', many: 'Running {n} commands…' },
295
+ retry: { one: 'Retrying {args.command}…', many: 'Retrying {n} commands…' },
296
+ done: { one: 'Ran {args.command}', many: 'Ran {n} commands' },
297
+ failed: { one: '{args.command} failed', many: '{n} commands failed' },
298
+ },
299
+ handlers: {
300
+ confirm: handler({
301
+ description: 'Run this command? Your shell setting asks first.',
302
+ args: g.obj({ command: g.text(), reason: g.text() }),
303
+ returns: g.bool(),
304
+ required: false,
305
+ }),
306
+ },
307
+ }),
308
+ remove: fn({
309
+ group: 'files',
310
+ description: 'Delete one file under the roots. Gives whether it was removed.',
311
+ instructions: 'Only for a file the person asked to delete, or one you made and no longer need. Folders are refused. It may ask the person first; the content is kept, so undoing the turn puts the file back.',
312
+ examples: [{ args: { path: 'notes/scratch.md' }, result: { removed: true } }],
313
+ effects: { mode: 'delete', free: true },
314
+ // the hub asks which sensitive files a call touches first (server/sensitive.ts)
315
+ flags: true,
316
+ args: g.obj({ path: path() }),
317
+ returns: g.obj({ removed: g.bool() }),
318
+ // two changes to one file in the same step run in the model's order (server/impl.ts fileClaims)
319
+ dynamicClaims: true,
320
+ status: {
321
+ active: { one: 'Deleting {args.path}…', many: 'Deleting {n} files…' },
322
+ retry: { one: 'Retrying deleting {args.path}…', many: 'Retrying {n} deletes…' },
323
+ done: { one: 'Deleted {args.path}', many: 'Deleted {n} files' },
324
+ failed: { one: 'Deleting {args.path} failed', many: '{n} deletes failed' },
325
+ },
326
+ undo: Previous,
327
+ }),
328
+ restart: fn({
329
+ group: 'systems',
330
+ description: 'Restart this system so changes to its code go live. It reconnects on its own.',
331
+ instructions: 'Only after changing this system\'s own code (its `self` folder) and checking it builds. Say why in `reason`; runs in progress stop.',
332
+ examples: [{ args: { reason: 'Added the tree command; reload it.' } }],
333
+ effects: { mode: 'write', free: true },
334
+ args: g.obj({ reason: g.text() }),
335
+ returns: g.obj({ restarting: g.literal(true) }),
336
+ operations: { cancel: false, background: false },
337
+ }),
338
+ install_system: fn({
339
+ group: 'systems',
340
+ description: 'Build, check and start a system folder on this machine, and connect it to the hub, once an admin approves.',
341
+ instructions: [
342
+ 'After writing or changing a system folder: builds, checks and starts it on this machine and connects it to the hub. Call it again after each change; it restarts the system with the new code.',
343
+ 'Before anything is asked, the folder is typechecked with its own tsconfig.json, bundled and scanned. When that fails the call comes back as invalid input with `file:line:col message` lines: fix each one with fs/edit and call again.',
344
+ 'A good build becomes a card for an admin with what the system adds, its scan and its hashes; nothing runs until they approve. If it exits before it connects, the call comes back with its exit code and the end of its output, so you can fix the crash.',
345
+ 'The name in system.json must be the contract\'s name. `hub`, and the name of a system that runs somewhere else, are refused unless `replace` is set (the card then says what it replaces).',
346
+ 'Once it is running, load its fns with hub/fns_load to call them. When it needs config, ask the person for it (its page has the form).',
347
+ ].join(' '),
348
+ examples: [
349
+ {
350
+ args: { path: 'systems/random' },
351
+ result: { system: 'random', instance: 'main', version: '0.1.0', status: 'connected', fns: ['random/random'], folder: 'C:/work/harness/systems/random' },
352
+ note: 'A new system, approved and running.',
353
+ },
354
+ { args: { path: 'systems/random' }, note: 'Again after a change: the card shows the diff, and the new code replaces the running one.' },
355
+ { args: { path: 'systems/notes', instance: 'laptop', replace: true }, note: 'Replaces a `notes/laptop` that runs elsewhere.' },
356
+ ],
357
+ args: InstallArgs,
358
+ returns: InstallResult,
359
+ // what runs is new code: an admin looks at every install, and the chat must be in write mode or higher
360
+ approval: { preview: true, remember: false, approver: 'admins' },
361
+ effects: { mode: 'write', free: true },
362
+ operations: { cancel: false, background: false },
363
+ status: {
364
+ active: { one: 'Installing {args.path}…', many: 'Installing {n} systems…' },
365
+ retry: { one: 'Installing {args.path} again…', many: 'Installing {n} systems again…' },
366
+ done: { one: 'Installed {args.path}', many: 'Installed {n} systems' },
367
+ failed: { one: 'Installing {args.path} failed', many: '{n} installs failed' },
368
+ },
369
+ tags: ['admin', 'systems'],
370
+ }),
371
+ system_status: fn({
372
+ group: 'systems',
373
+ description: 'The systems this machine hosts: each one\'s state, version, process, restarts in the last hour and the end of its output.',
374
+ instructions: 'Call it after install_system, restart_system or a crash to see whether a hosted system is up, and read `output` to find why it stopped. Give `system` for one; empty lists all.',
375
+ examples: [
376
+ {
377
+ args: { system: 'random' },
378
+ result: [{ system: 'random', instance: 'main', version: '0.1.0', state: 'connected', pid: 4120, restartsLastHour: 0, folder: 'C:/work/harness/systems/random', bundleHash: '9f2c…', output: 'random.serving …' }],
379
+ },
380
+ { args: {}, note: 'Every hosted system.' },
381
+ ],
382
+ args: StatusArgs,
383
+ returns: g.list(HostedStatus),
384
+ effects: { mode: 'read', free: true },
385
+ display: 'message',
386
+ tags: ['read', 'systems'],
387
+ }),
388
+ restart_system: fn({
389
+ group: 'systems',
390
+ description: 'Restart a system this machine hosts, with the code an admin approved.',
391
+ instructions: 'Use it when a hosted system is stuck, crashed or was disabled after too many crashes. It runs the approved bundle again; it never picks up changed code (call install_system for that). Say why in `reason`.',
392
+ examples: [{ args: { system: 'random', reason: 'It stopped answering after the hub restarted.' }, result: { state: 'connected' } }],
393
+ args: RestartArgs,
394
+ returns: g.obj({ state: HostedState }),
395
+ effects: { mode: 'write', free: true },
396
+ operations: { cancel: false, background: false },
397
+ tags: ['systems'],
398
+ }),
399
+ stop_system: fn({
400
+ group: 'systems',
401
+ description: 'Stop a system this machine hosts; with `remove`, also delete its hosted folders.',
402
+ instructions: 'It stays stopped (also after fs restarts) until install_system or restart_system starts it again. `remove` deletes its bundle, state and data for good, so the person is asked first; use it only when they want the system gone.',
403
+ examples: [
404
+ { args: { system: 'random' }, result: { stopped: true, removed: false } },
405
+ { args: { system: 'random', remove: true }, result: { stopped: true, removed: true }, note: 'Gone for good, after the person said yes.' },
406
+ ],
407
+ args: StopArgs,
408
+ returns: StopResult,
409
+ effects: { mode: 'delete', free: true },
410
+ operations: { cancel: false, background: false },
411
+ handlers: {
412
+ confirm: handler({
413
+ description: 'Delete this hosted system\'s folders, its data included?',
414
+ args: g.obj({ system: g.text(), folders: g.list(g.text()) }),
415
+ returns: g.bool(),
416
+ required: false,
417
+ }),
418
+ },
419
+ tags: ['systems'],
420
+ }),
421
+ },
422
+ hooks: {
423
+ git: hook({
424
+ description: 'Adds the current branch and the changed files.',
425
+ // what `<fs_git>` means to the model: injected with fs's items into the agents that get the block
426
+ explains: '`<fs_git>` is the git state of each folder the files system serves that is a git repository: its branch, and the files changed since the last commit. The person didn\'t type it. Mention it only when it matters to the request.',
427
+ order: 50,
428
+ timeout: 500,
429
+ }),
430
+ },
431
+ })
432
+ // mentions, context and the agent use the types and fns declared above
433
+ .with(({ fns, types }) => ({
434
+ mentions: {
435
+ // chips and cards show as Entry: its label, icon and color, and its reveal method on the card
436
+ files: mention({ title: 'Files', description: 'Files and folders under the roots.', target: FileTarget, of: types.Entry }),
437
+ },
438
+ context: {
439
+ guide: context({
440
+ description: 'How to work with the person\'s files: find, read, then change; keeping notes and lists as files; running commands.',
441
+ content: [
442
+ 'The fs system works only inside the folders an admin chose (its roots). Paths are relative to the first root (`notes/todo.md`), or start with a root\'s name when there are several; `/` is outside the roots and is refused. Start with fs/list on `.` to see the first root.',
443
+ '',
444
+ 'To find something: fs/glob finds files by name (`*.md`, `notes/**`), fs/grep finds lines inside files by a regular expression (case-sensitive; write `[Rr]eport` for either case, never `(?i)`), fs/list shows one folder. Don\'t guess a path: look first. When the request is about when files are from ("this year\'s", "the newest"), list the folder: fs/list gives every file with its modified time, which a search by meaning doesn\'t.',
445
+ 'To read: fs/read, a window at a time for long files (`offset`, `limit`). Say only what you read. fs/read reads text only: read a pdf or other document with hub/resource_read, and look at a picture (or a pdf page with no text) with hub/resource_send, each by the file\'s `file://` uri (as fs/list gives its path).',
446
+ 'To change: fs/edit replaces exact text (copy `find` from what fs/read gave, spaces included); fs/write writes a whole new file; fs/remove deletes one file. Each may ask the person first, and each can be undone with the turn.',
447
+ 'To keep a document for the person (a list, a summary, notes from this chat): write a markdown file, for example fs/write with {"path":"notes/ideas.md","text":"# Ideas\\n\\n- First idea\\n- Second idea\\n"}, then tell them the path. Check the result (`created`) before saying it is saved.',
448
+ 'To run a program, a build, tests or git: fs/bash runs a bash command (not PowerShell); set the folder once with fs/cd. Check `exitCode`: anything but 0 means the command failed. A command your shell setting does not mark safe asks the person first, and what it changes can\'t be undone.',
449
+ '',
450
+ 'A file the person attached to a chat message is a hub resource, not an fs file: read it with hub/resource_read or look at it with hub/resource_send, not fs/read.',
451
+ ].join('\n'),
452
+ // the guide brings the fns it is about, so finding it finds them
453
+ fns: [fns.read, fns.list, fns.glob, fns.grep, fns.edit, fns.write, fns.bash, fns.cd, fns.remove],
454
+ }),
455
+ // what every chat agent is told about files, in its system prompt (plan injected-context, section 5)
456
+ basics: context({
457
+ title: 'Files',
458
+ description: 'Where the files system works (its roots), how paths are written, what can be undone, and that an attached file is not one of its files.',
459
+ summary: 'The files system works only in folders an admin chose: paths are relative to the first root, never `/`. Load fs/guide first.',
460
+ content: [
461
+ 'The **files system** (`fs`) works only inside a few folders of the person\'s machine an admin chose (its roots). Paths are relative to the first root (`notes/todo.md`) or start with a root\'s name; `/` is outside the roots and is refused. Look before you guess a path: fs/list on `.` shows the first root, fs/glob finds files by name, and fs/read reads one.',
462
+ 'fs/write, fs/edit and fs/remove may ask the person first, and what they change can be undone with the turn; what fs/bash changes can\'t. To keep a document for the person (a note, a list, a summary), write a markdown file and tell them its path.',
463
+ 'A file the person attached to a message is not an fs file: it is kept by the hub, not under the roots. Load fs/guide before the first change.',
464
+ ].join('\n'),
465
+ fns: [fns.list, fns.read],
466
+ inject: { into: [agents.startingWith(hub.fns.chat)] },
467
+ }),
468
+ tree: context({
469
+ description: 'The folder tree of a root, as it is now.',
470
+ command: { name: 'tree', args: { root: arg('Which root (default: all)', { required: false }) } },
471
+ }),
472
+ // the start of writing a system: it loads the guide's index (`context/authoring/`, a graph of the SDK guide) with
473
+ // it, and says where the template is on this machine, with the fns to write and install a system
474
+ 'system-authoring': context({
475
+ description: 'How to write and install a harness system: the index of its guide, where the template system is, and how to copy it.',
476
+ command: { name: 'new-system' },
477
+ imports: [{ ref: 'context', name: 'fs/authoring' }],
478
+ fns: [fns.read, fns.write, fns.edit, fns.bash, fns.install_system, fns.system_status],
479
+ }),
480
+ },
481
+ }))
482
+ .with(({ fns, context: ctx }) => ({
483
+ fns: {
484
+ explore: agent({
485
+ description: 'Answers questions about the code by reading it.',
486
+ group: 'files',
487
+ effects: { mode: 'read' },
488
+ usage: 'Use it for a question that needs several files read (how a feature works, where something is decided) so your own context stays small. Ask one clear question; the answer quotes paths and lines.',
489
+ args: g.obj({ question: g.text() }),
490
+ returns: g.text(),
491
+ instructions: [
492
+ 'Answer this question about the code by reading it: {{args.question}}',
493
+ '',
494
+ 'Work in this order:',
495
+ '1. Find where to look: grep for the names in the question (a function, a type, a message), glob for files by name, or hub/search_resources by meaning.',
496
+ '2. Read the files that matter, a window at a time for long ones (offset and limit), and follow the calls and imports the answer depends on.',
497
+ '3. Stop once you can answer; do not read everything.',
498
+ '',
499
+ 'Answer in a few short paragraphs or a list. Quote each path with its line (`src/hub/link.ts:120`) for every claim, and say plainly what you could not find.',
500
+ 'Example: asked "where is the session timeout set?", grep for `timeout`, read the config file it points to, and answer',
501
+ '"The timeout is HARNESS_SESSION_TIMEOUT in packages/hub/src/env.ts:42 (default 30 minutes); packages/hub/src/auth/sessions.ts:88 reads it."',
502
+ ].join('\n'),
503
+ examples: [
504
+ { args: { question: 'How does the hub decide which instance runs a call?' } },
505
+ { args: { question: 'Where are uploaded files stored, and how big may one be?' } },
506
+ ],
507
+ tools: [fns.read, fns.glob, fns.grep, hub.fns.search_resources],
508
+ context: [ctx.guide],
509
+ }),
510
+ },
511
+ }));
512
+
513
+ /** The fs contract's type. */
514
+ export type FsContract = typeof fs;
515
+
516
+ /** A file or folder, as fns return it. */
517
+ export type EntryValue = ValueOf<typeof Entry>;
518
+ /** What a command printed and how it ended. */
519
+ export type CommandOutput = Infer<typeof CommandResult>;
520
+ /** The diff attachment's data. */
521
+ export type DiffValue = Infer<typeof DiffData>;
522
+ /** The shell setting's value. */
523
+ export type ShellPolicyValue = Infer<typeof ShellPolicy>;
524
+ /** How many undo copies fs keeps. */
525
+ export type SnapshotLimitsValue = Infer<typeof SnapshotLimits>;
526
+ /** The undo copies kept when the config names no limits: 20 per file, 500 MB in all. */
527
+ export const SNAPSHOT_DEFAULTS: SnapshotLimitsValue = { perFile: 20, totalMb: 500 };
528
+ /** The files mention's target. */
529
+ export type FileTargetValue = Infer<typeof FileTarget>;
530
+ /** What undo needs to put a file back. */
531
+ export type PreviousValue = Infer<typeof Previous>;
532
+ /** What `bash` returns. */
533
+ export type BashOutput = Infer<typeof BashResult>;
@@ -0,0 +1,10 @@
1
+ {
2
+ "format": 1,
3
+ "name": "fs",
4
+ "version": "0.2.0",
5
+ "description": "Files and a shell over chosen folders, served as resources. Run one instance per machine to reach a fleet of them.",
6
+ "protocol": 1,
7
+ "server": { "entry": "server/main.ts", "external": {} },
8
+ "client": { "entry": "client/index.ts" },
9
+ "instances": "many"
10
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": { "rootDir": ".", "outDir": "../../.types/system-fs", "tsBuildInfoFile": "../../.types/system-fs.tsbuildinfo", "jsx": "preserve", "types": ["vite/client", "node"] },
4
+ "include": ["shared", "server", "client/**/*.ts", "client/**/*.vue"],
5
+ "references": [{ "path": "../../packages/core" }, { "path": "../../packages/sdk" }, { "path": "../../packages/build" }, { "path": "../../packages/web" }]
6
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "dependencies": {
3
+ "@ayepi/env": "^0.6.0",
4
+ "@harness/core": "*",
5
+ "@harness/sdk": "*",
6
+ "zod": "^4.6.7"
7
+ },
8
+ "name": "@harness/system-google-calendar",
9
+ "private": true,
10
+ "version": "0.1.0",
11
+ "license": "Apache-2.0",
12
+ "type": "module",
13
+ "description": "Development only: system.json holds this system's name, version and entries.",
14
+ "exports": {
15
+ ".": "./shared/index.ts",
16
+ "./server": "./server/index.ts"
17
+ }
18
+ }