fnloom 0.0.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +174 -3
- package/package.json +70 -4
- package/packages/build/package.json +31 -0
- package/packages/build/src/build-system.ts +186 -0
- package/packages/build/src/builder.ts +225 -0
- package/packages/build/src/context.ts +2 -0
- package/packages/build/src/files.ts +73 -0
- package/packages/build/src/folder.ts +52 -0
- package/packages/build/src/index.ts +20 -0
- package/packages/build/src/scan.ts +82 -0
- package/packages/build/src/tests.ts +138 -0
- package/packages/build/tsconfig.json +6 -0
- package/packages/cli/bin/harness.mjs +17 -0
- package/packages/cli/package.json +27 -0
- package/packages/cli/src/catalog.ts +35 -0
- package/packages/cli/src/cli.ts +83 -0
- package/packages/cli/src/command.ts +112 -0
- package/packages/cli/src/commands/available.ts +107 -0
- package/packages/cli/src/commands/build.ts +57 -0
- package/packages/cli/src/commands/data.ts +36 -0
- package/packages/cli/src/commands/install.ts +167 -0
- package/packages/cli/src/commands/manage.ts +104 -0
- package/packages/cli/src/commands/mcp.ts +198 -0
- package/packages/cli/src/commands/new.ts +139 -0
- package/packages/cli/src/commands/pack.ts +37 -0
- package/packages/cli/src/commands/start.ts +22 -0
- package/packages/cli/src/commands/test.ts +57 -0
- package/packages/cli/src/files.ts +5 -0
- package/packages/cli/src/hub-client.ts +84 -0
- package/packages/cli/src/hub.ts +169 -0
- package/packages/cli/src/index.ts +13 -0
- package/packages/cli/src/io.ts +32 -0
- package/packages/cli/src/live.ts +66 -0
- package/packages/cli/src/local.ts +100 -0
- package/packages/cli/src/main.ts +6 -0
- package/packages/cli/src/premade.ts +80 -0
- package/packages/cli/src/testing.ts +216 -0
- package/packages/cli/tsconfig.json +6 -0
- package/packages/core/package.json +21 -0
- package/packages/core/src/access.ts +97 -0
- package/packages/core/src/admin.ts +90 -0
- package/packages/core/src/api-index.ts +26 -0
- package/packages/core/src/approvals.ts +229 -0
- package/packages/core/src/auto-pair.ts +47 -0
- package/packages/core/src/changes.ts +61 -0
- package/packages/core/src/checks.ts +93 -0
- package/packages/core/src/claims.ts +98 -0
- package/packages/core/src/compare.ts +47 -0
- package/packages/core/src/config-secrets.ts +28 -0
- package/packages/core/src/connections.ts +193 -0
- package/packages/core/src/context-files.ts +179 -0
- package/packages/core/src/context-graph.ts +270 -0
- package/packages/core/src/csv.ts +33 -0
- package/packages/core/src/data.ts +176 -0
- package/packages/core/src/decisions.ts +98 -0
- package/packages/core/src/flow.ts +225 -0
- package/packages/core/src/fn-block.ts +51 -0
- package/packages/core/src/fn-facts.ts +533 -0
- package/packages/core/src/fn-renames.ts +102 -0
- package/packages/core/src/gin-a.ts +185 -0
- package/packages/core/src/gin-record.ts +142 -0
- package/packages/core/src/gin.ts +104 -0
- package/packages/core/src/grants.ts +84 -0
- package/packages/core/src/graph-kinds.ts +44 -0
- package/packages/core/src/graph.ts +95 -0
- package/packages/core/src/https.ts +35 -0
- package/packages/core/src/identity.ts +38 -0
- package/packages/core/src/image-embeddings.ts +96 -0
- package/packages/core/src/index.ts +129 -0
- package/packages/core/src/inject.ts +104 -0
- package/packages/core/src/issues.ts +137 -0
- package/packages/core/src/labels.ts +96 -0
- package/packages/core/src/lifecycle.ts +237 -0
- package/packages/core/src/link.ts +491 -0
- package/packages/core/src/llm.ts +167 -0
- package/packages/core/src/manifest.ts +657 -0
- package/packages/core/src/mcp-servers.ts +134 -0
- package/packages/core/src/media-types.ts +145 -0
- package/packages/core/src/mention-search.ts +27 -0
- package/packages/core/src/metrics.ts +91 -0
- package/packages/core/src/model-calls.ts +223 -0
- package/packages/core/src/model-names.ts +704 -0
- package/packages/core/src/modes.ts +325 -0
- package/packages/core/src/objects.ts +15 -0
- package/packages/core/src/owner-runs.ts +89 -0
- package/packages/core/src/package.ts +195 -0
- package/packages/core/src/partial.ts +69 -0
- package/packages/core/src/people-only.ts +52 -0
- package/packages/core/src/pickers.ts +31 -0
- package/packages/core/src/ports.ts +14 -0
- package/packages/core/src/primitives.ts +287 -0
- package/packages/core/src/programs.ts +155 -0
- package/packages/core/src/query.ts +264 -0
- package/packages/core/src/records/actors.ts +188 -0
- package/packages/core/src/records/announced.ts +39 -0
- package/packages/core/src/records/chat.ts +279 -0
- package/packages/core/src/records/citations.ts +126 -0
- package/packages/core/src/records/compare.ts +97 -0
- package/packages/core/src/records/content.ts +196 -0
- package/packages/core/src/records/injections.ts +146 -0
- package/packages/core/src/records/mcps.ts +115 -0
- package/packages/core/src/records/runs.ts +280 -0
- package/packages/core/src/records/spend.ts +158 -0
- package/packages/core/src/records/systems.ts +298 -0
- package/packages/core/src/records/tables.ts +164 -0
- package/packages/core/src/registries.ts +229 -0
- package/packages/core/src/remote-auth.ts +111 -0
- package/packages/core/src/resource-forms.ts +218 -0
- package/packages/core/src/resources.ts +166 -0
- package/packages/core/src/review-summary.ts +69 -0
- package/packages/core/src/run.ts +312 -0
- package/packages/core/src/sensitivity.ts +101 -0
- package/packages/core/src/sso.ts +268 -0
- package/packages/core/src/status.ts +158 -0
- package/packages/core/src/suggestions.ts +228 -0
- package/packages/core/src/system-events.ts +47 -0
- package/packages/core/src/system-pages.ts +72 -0
- package/packages/core/src/system-parts.ts +51 -0
- package/packages/core/src/system-providers.ts +163 -0
- package/packages/core/src/urls.ts +50 -0
- package/packages/core/src/validation.ts +39 -0
- package/packages/core/src/versions.ts +52 -0
- package/packages/core/src/visuals.ts +478 -0
- package/packages/core/src/web.ts +965 -0
- package/packages/core/src/widgets-v1.ts +73 -0
- package/packages/core/src/widgets.ts +427 -0
- package/packages/core/tsconfig.json +5 -0
- package/packages/hub/context/asking.md +16 -0
- package/packages/hub/context/attached_files.md +27 -0
- package/packages/hub/context/background_runs.md +14 -0
- package/packages/hub/context/earlier_chats.md +16 -0
- package/packages/hub/context/examples.md +13 -0
- package/packages/hub/context/finding_fns.md +18 -0
- package/packages/hub/context/images.md +24 -0
- package/packages/hub/context/later.md +27 -0
- package/packages/hub/context/limits.md +13 -0
- package/packages/hub/context/memory.md +38 -0
- package/packages/hub/context/resources.md +21 -0
- package/packages/hub/context/saved_fns.md +28 -0
- package/packages/hub/context/undo.md +20 -0
- package/packages/hub/package.json +55 -0
- package/packages/hub/src/access/create.ts +29 -0
- package/packages/hub/src/access/hits.ts +57 -0
- package/packages/hub/src/access/index.ts +119 -0
- package/packages/hub/src/access/scope.ts +133 -0
- package/packages/hub/src/access/service.ts +171 -0
- package/packages/hub/src/api/admin-ops.ts +410 -0
- package/packages/hub/src/api/auth.ts +286 -0
- package/packages/hub/src/api/client-address.ts +55 -0
- package/packages/hub/src/api/connect.ts +45 -0
- package/packages/hub/src/api/dual.ts +103 -0
- package/packages/hub/src/api/events.ts +185 -0
- package/packages/hub/src/api/files.ts +209 -0
- package/packages/hub/src/api/hash.ts +23 -0
- package/packages/hub/src/api/http.ts +171 -0
- package/packages/hub/src/api/https.ts +125 -0
- package/packages/hub/src/api/identities.ts +246 -0
- package/packages/hub/src/api/index.ts +94 -0
- package/packages/hub/src/api/injections.ts +256 -0
- package/packages/hub/src/api/mime.ts +31 -0
- package/packages/hub/src/api/person-ops.ts +153 -0
- package/packages/hub/src/api/push.ts +97 -0
- package/packages/hub/src/api/reads.ts +145 -0
- package/packages/hub/src/api/secrets.ts +71 -0
- package/packages/hub/src/api/serve.ts +280 -0
- package/packages/hub/src/api/signed.ts +66 -0
- package/packages/hub/src/api/sso-route.ts +73 -0
- package/packages/hub/src/api/sso.ts +382 -0
- package/packages/hub/src/api/system-parts.ts +97 -0
- package/packages/hub/src/api/testing/issuer.ts +128 -0
- package/packages/hub/src/api/testing/rig.ts +272 -0
- package/packages/hub/src/api/tls.ts +383 -0
- package/packages/hub/src/api/web/access.ts +84 -0
- package/packages/hub/src/api/web/admin.ts +90 -0
- package/packages/hub/src/api/web/auth.ts +103 -0
- package/packages/hub/src/api/web/build3.ts +44 -0
- package/packages/hub/src/api/web/build4.ts +24 -0
- package/packages/hub/src/api/web/build5.ts +120 -0
- package/packages/hub/src/api/web/chat.ts +144 -0
- package/packages/hub/src/api/web/content.ts +42 -0
- package/packages/hub/src/api/web/context.ts +41 -0
- package/packages/hub/src/api/web/contextor.ts +37 -0
- package/packages/hub/src/api/web/data.ts +33 -0
- package/packages/hub/src/api/web/explorer.ts +22 -0
- package/packages/hub/src/api/web/find.ts +50 -0
- package/packages/hub/src/api/web/graph.ts +17 -0
- package/packages/hub/src/api/web/https.ts +18 -0
- package/packages/hub/src/api/web/identity.ts +18 -0
- package/packages/hub/src/api/web/images.ts +18 -0
- package/packages/hub/src/api/web/inbox.ts +35 -0
- package/packages/hub/src/api/web/index.ts +137 -0
- package/packages/hub/src/api/web/injections.ts +22 -0
- package/packages/hub/src/api/web/mcps.ts +32 -0
- package/packages/hub/src/api/web/metrics.ts +24 -0
- package/packages/hub/src/api/web/models.ts +21 -0
- package/packages/hub/src/api/web/outside-images.ts +32 -0
- package/packages/hub/src/api/web/packaging.ts +31 -0
- package/packages/hub/src/api/web/pages.ts +55 -0
- package/packages/hub/src/api/web/people.ts +92 -0
- package/packages/hub/src/api/web/pickers.ts +115 -0
- package/packages/hub/src/api/web/resources.ts +42 -0
- package/packages/hub/src/api/web/review.ts +119 -0
- package/packages/hub/src/api/web/runs.ts +94 -0
- package/packages/hub/src/api/web/settings.ts +35 -0
- package/packages/hub/src/api/web/systems.ts +83 -0
- package/packages/hub/src/api/web/tables.ts +31 -0
- package/packages/hub/src/api/web/versions.ts +17 -0
- package/packages/hub/src/api/web/visibility.ts +47 -0
- package/packages/hub/src/boot/admin-fns.ts +78 -0
- package/packages/hub/src/boot/admin-secrets.ts +140 -0
- package/packages/hub/src/boot/env.ts +170 -0
- package/packages/hub/src/boot/hub-context.ts +39 -0
- package/packages/hub/src/boot/hub-fns.ts +549 -0
- package/packages/hub/src/boot/hub-groups.ts +34 -0
- package/packages/hub/src/boot/identity.ts +66 -0
- package/packages/hub/src/boot/index.ts +191 -0
- package/packages/hub/src/boot/info.ts +22 -0
- package/packages/hub/src/boot/keys.ts +60 -0
- package/packages/hub/src/boot/log.ts +31 -0
- package/packages/hub/src/boot/modules.ts +277 -0
- package/packages/hub/src/boot/person-fns.ts +78 -0
- package/packages/hub/src/boot/read-fns.ts +73 -0
- package/packages/hub/src/boot/services.ts +156 -0
- package/packages/hub/src/boot/start.ts +246 -0
- package/packages/hub/src/bus/memory.ts +60 -0
- package/packages/hub/src/bus.ts +80 -0
- package/packages/hub/src/catalog/api-index.ts +72 -0
- package/packages/hub/src/catalog/availability.ts +210 -0
- package/packages/hub/src/catalog/catalog.ts +1062 -0
- package/packages/hub/src/catalog/definitions.ts +19 -0
- package/packages/hub/src/catalog/fixtures.ts +82 -0
- package/packages/hub/src/catalog/fn-names.ts +128 -0
- package/packages/hub/src/catalog/index.ts +126 -0
- package/packages/hub/src/catalog/injections.ts +90 -0
- package/packages/hub/src/catalog/scope.ts +86 -0
- package/packages/hub/src/catalog/serial.ts +10 -0
- package/packages/hub/src/catalog/signature.ts +69 -0
- package/packages/hub/src/catalog/versions.ts +110 -0
- package/packages/hub/src/chat/announce.ts +145 -0
- package/packages/hub/src/chat/cache.ts +50 -0
- package/packages/hub/src/chat/chat.ts +72 -0
- package/packages/hub/src/chat/cite-rule.ts +64 -0
- package/packages/hub/src/chat/cites.ts +236 -0
- package/packages/hub/src/chat/compare.ts +290 -0
- package/packages/hub/src/chat/deliveries.ts +187 -0
- package/packages/hub/src/chat/deps.ts +69 -0
- package/packages/hub/src/chat/enrich.ts +601 -0
- package/packages/hub/src/chat/env.ts +33 -0
- package/packages/hub/src/chat/errors.ts +38 -0
- package/packages/hub/src/chat/files.ts +72 -0
- package/packages/hub/src/chat/index.ts +259 -0
- package/packages/hub/src/chat/mention-requests.ts +49 -0
- package/packages/hub/src/chat/mention-search.ts +64 -0
- package/packages/hub/src/chat/mentions.ts +274 -0
- package/packages/hub/src/chat/notifications.ts +278 -0
- package/packages/hub/src/chat/people.ts +59 -0
- package/packages/hub/src/chat/presence.ts +48 -0
- package/packages/hub/src/chat/reply.ts +23 -0
- package/packages/hub/src/chat/sessions.ts +306 -0
- package/packages/hub/src/chat/shown.ts +158 -0
- package/packages/hub/src/chat/state.ts +270 -0
- package/packages/hub/src/chat/streams.ts +92 -0
- package/packages/hub/src/chat/suggestions.ts +383 -0
- package/packages/hub/src/chat/support.ts +144 -0
- package/packages/hub/src/chat/testing.ts +488 -0
- package/packages/hub/src/chat/turns.ts +586 -0
- package/packages/hub/src/chat/undo.ts +177 -0
- package/packages/hub/src/connections/create.ts +25 -0
- package/packages/hub/src/connections/env.ts +14 -0
- package/packages/hub/src/connections/index.ts +86 -0
- package/packages/hub/src/connections/service.ts +536 -0
- package/packages/hub/src/contextor/brought.ts +64 -0
- package/packages/hub/src/contextor/budget.ts +74 -0
- package/packages/hub/src/contextor/calibration.ts +35 -0
- package/packages/hub/src/contextor/choose.ts +116 -0
- package/packages/hub/src/contextor/contextors.ts +550 -0
- package/packages/hub/src/contextor/crawl.ts +252 -0
- package/packages/hub/src/contextor/create.ts +113 -0
- package/packages/hub/src/contextor/dynamic.ts +102 -0
- package/packages/hub/src/contextor/env.ts +83 -0
- package/packages/hub/src/contextor/examples.ts +204 -0
- package/packages/hub/src/contextor/fns.ts +147 -0
- package/packages/hub/src/contextor/graph.ts +137 -0
- package/packages/hub/src/contextor/history.ts +211 -0
- package/packages/hub/src/contextor/index.ts +524 -0
- package/packages/hub/src/contextor/injected.ts +401 -0
- package/packages/hub/src/contextor/limits.ts +168 -0
- package/packages/hub/src/contextor/links.ts +67 -0
- package/packages/hub/src/contextor/modes.ts +520 -0
- package/packages/hub/src/contextor/planner.ts +626 -0
- package/packages/hub/src/contextor/render.ts +531 -0
- package/packages/hub/src/contextor/score.ts +93 -0
- package/packages/hub/src/contextor/testing.ts +161 -0
- package/packages/hub/src/contextor/tokens.ts +102 -0
- package/packages/hub/src/contextor/views.ts +171 -0
- package/packages/hub/src/contextor/xml.ts +140 -0
- package/packages/hub/src/data/create.ts +45 -0
- package/packages/hub/src/data/env.ts +16 -0
- package/packages/hub/src/data/fields.ts +71 -0
- package/packages/hub/src/data/fns.ts +50 -0
- package/packages/hub/src/data/index.ts +50 -0
- package/packages/hub/src/data/service.ts +348 -0
- package/packages/hub/src/execution/agent.ts +1381 -0
- package/packages/hub/src/execution/ai.ts +408 -0
- package/packages/hub/src/execution/channel.ts +38 -0
- package/packages/hub/src/execution/claims.ts +103 -0
- package/packages/hub/src/execution/create.ts +261 -0
- package/packages/hub/src/execution/deadlines.ts +74 -0
- package/packages/hub/src/execution/deciders.ts +60 -0
- package/packages/hub/src/execution/env.ts +28 -0
- package/packages/hub/src/execution/errors.ts +103 -0
- package/packages/hub/src/execution/executors.ts +246 -0
- package/packages/hub/src/execution/gateway.ts +209 -0
- package/packages/hub/src/execution/handlers.ts +154 -0
- package/packages/hub/src/execution/hub-fns.ts +50 -0
- package/packages/hub/src/execution/index.ts +244 -0
- package/packages/hub/src/execution/interactions.ts +65 -0
- package/packages/hub/src/execution/ledger.ts +168 -0
- package/packages/hub/src/execution/limits.ts +175 -0
- package/packages/hub/src/execution/link-handlers.ts +142 -0
- package/packages/hub/src/execution/media.ts +240 -0
- package/packages/hub/src/execution/models.ts +42 -0
- package/packages/hub/src/execution/policies.ts +371 -0
- package/packages/hub/src/execution/ports.ts +159 -0
- package/packages/hub/src/execution/providers.ts +106 -0
- package/packages/hub/src/execution/queues.ts +161 -0
- package/packages/hub/src/execution/runs.ts +1237 -0
- package/packages/hub/src/execution/scope.ts +152 -0
- package/packages/hub/src/execution/spend.ts +75 -0
- package/packages/hub/src/execution/stream-guard.ts +138 -0
- package/packages/hub/src/execution/testing.ts +490 -0
- package/packages/hub/src/execution/time.ts +36 -0
- package/packages/hub/src/execution/tools.ts +84 -0
- package/packages/hub/src/execution/wire.ts +99 -0
- package/packages/hub/src/execution/wording.ts +38 -0
- package/packages/hub/src/fns/auto.ts +109 -0
- package/packages/hub/src/fns/client-logs.ts +83 -0
- package/packages/hub/src/fns/costs.ts +139 -0
- package/packages/hub/src/fns/create.ts +140 -0
- package/packages/hub/src/fns/decided.ts +313 -0
- package/packages/hub/src/fns/env.ts +23 -0
- package/packages/hub/src/fns/examples.ts +184 -0
- package/packages/hub/src/fns/facts.ts +251 -0
- package/packages/hub/src/fns/gate.ts +40 -0
- package/packages/hub/src/fns/index.ts +149 -0
- package/packages/hub/src/fns/search.ts +351 -0
- package/packages/hub/src/graph/graph.ts +667 -0
- package/packages/hub/src/graph/source.ts +42 -0
- package/packages/hub/src/index/batch.ts +96 -0
- package/packages/hub/src/index/context-sections.ts +51 -0
- package/packages/hub/src/index/embedders.ts +242 -0
- package/packages/hub/src/index/env.ts +25 -0
- package/packages/hub/src/index/image-setting.ts +55 -0
- package/packages/hub/src/index/images.ts +43 -0
- package/packages/hub/src/index/index.ts +168 -0
- package/packages/hub/src/index/indexer.ts +663 -0
- package/packages/hub/src/index/search.ts +168 -0
- package/packages/hub/src/index/sectioners.ts +209 -0
- package/packages/hub/src/index/sectioning.ts +57 -0
- package/packages/hub/src/index/suggester.ts +65 -0
- package/packages/hub/src/index/testing.ts +113 -0
- package/packages/hub/src/index.ts +19 -0
- package/packages/hub/src/link/auto-pair.ts +225 -0
- package/packages/hub/src/link/build.ts +216 -0
- package/packages/hub/src/link/config-secrets.ts +171 -0
- package/packages/hub/src/link/config.ts +140 -0
- package/packages/hub/src/link/connections.ts +139 -0
- package/packages/hub/src/link/describer.ts +29 -0
- package/packages/hub/src/link/env.ts +42 -0
- package/packages/hub/src/link/events.ts +123 -0
- package/packages/hub/src/link/gate.ts +117 -0
- package/packages/hub/src/link/grants.ts +346 -0
- package/packages/hub/src/link/handlers.ts +301 -0
- package/packages/hub/src/link/index.ts +232 -0
- package/packages/hub/src/link/install.ts +92 -0
- package/packages/hub/src/link/keys.ts +32 -0
- package/packages/hub/src/link/lifecycle.ts +520 -0
- package/packages/hub/src/link/migrate-api.ts +210 -0
- package/packages/hub/src/link/migrate.ts +44 -0
- package/packages/hub/src/link/output.ts +63 -0
- package/packages/hub/src/link/owner-runs.ts +313 -0
- package/packages/hub/src/link/package/data.ts +53 -0
- package/packages/hub/src/link/package/format.ts +126 -0
- package/packages/hub/src/link/package/index.ts +9 -0
- package/packages/hub/src/link/package/zip.ts +137 -0
- package/packages/hub/src/link/packages.ts +180 -0
- package/packages/hub/src/link/pairing.ts +503 -0
- package/packages/hub/src/link/process.ts +98 -0
- package/packages/hub/src/link/reads.ts +91 -0
- package/packages/hub/src/link/resources.ts +166 -0
- package/packages/hub/src/link/review-summary.ts +279 -0
- package/packages/hub/src/link/rig.ts +335 -0
- package/packages/hub/src/link/router.ts +118 -0
- package/packages/hub/src/link/services.ts +294 -0
- package/packages/hub/src/link/status.ts +126 -0
- package/packages/hub/src/link/supervisor.ts +547 -0
- package/packages/hub/src/link/systems.ts +101 -0
- package/packages/hub/src/link/tokens.ts +30 -0
- package/packages/hub/src/main.ts +19 -0
- package/packages/hub/src/mcp/calls.ts +153 -0
- package/packages/hub/src/mcp/create.ts +51 -0
- package/packages/hub/src/mcp/endpoints.ts +206 -0
- package/packages/hub/src/mcp/env.ts +19 -0
- package/packages/hub/src/mcp/fns.ts +23 -0
- package/packages/hub/src/mcp/index.ts +76 -0
- package/packages/hub/src/mcp/registry.ts +150 -0
- package/packages/hub/src/mcp/scopes.ts +218 -0
- package/packages/hub/src/mcp/sources.ts +154 -0
- package/packages/hub/src/mcp/tokens.ts +72 -0
- package/packages/hub/src/mcp/tools.ts +173 -0
- package/packages/hub/src/metrics/calls.ts +123 -0
- package/packages/hub/src/metrics/create.ts +15 -0
- package/packages/hub/src/metrics/fn-metrics.ts +97 -0
- package/packages/hub/src/metrics/index.ts +58 -0
- package/packages/hub/src/metrics/rollup.ts +188 -0
- package/packages/hub/src/models/create.ts +65 -0
- package/packages/hub/src/models/decide.ts +134 -0
- package/packages/hub/src/models/gateway.ts +102 -0
- package/packages/hub/src/models/index.ts +82 -0
- package/packages/hub/src/models/pinned.ts +10 -0
- package/packages/hub/src/models/remote.ts +386 -0
- package/packages/hub/src/models/roles.ts +160 -0
- package/packages/hub/src/models/structured.ts +30 -0
- package/packages/hub/src/query/columns.ts +55 -0
- package/packages/hub/src/query/contexts.ts +102 -0
- package/packages/hub/src/query/env.ts +17 -0
- package/packages/hub/src/query/evaluate.ts +181 -0
- package/packages/hub/src/query/index.ts +32 -0
- package/packages/hub/src/query/service.ts +64 -0
- package/packages/hub/src/query/sources.ts +344 -0
- package/packages/hub/src/query/sql-source.ts +93 -0
- package/packages/hub/src/resources/browse.ts +131 -0
- package/packages/hub/src/resources/content.ts +183 -0
- package/packages/hub/src/resources/context.ts +405 -0
- package/packages/hub/src/resources/converters.ts +78 -0
- package/packages/hub/src/resources/create.ts +88 -0
- package/packages/hub/src/resources/env.ts +24 -0
- package/packages/hub/src/resources/fetch.ts +140 -0
- package/packages/hub/src/resources/fns.ts +172 -0
- package/packages/hub/src/resources/forms.ts +285 -0
- package/packages/hub/src/resources/images.ts +182 -0
- package/packages/hub/src/resources/index.ts +186 -0
- package/packages/hub/src/resources/library.ts +228 -0
- package/packages/hub/src/resources/models.ts +116 -0
- package/packages/hub/src/resources/pdf-pages.ts +455 -0
- package/packages/hub/src/resources/raw.ts +108 -0
- package/packages/hub/src/resources/reader.ts +224 -0
- package/packages/hub/src/resources/rules.ts +110 -0
- package/packages/hub/src/resources/sqlite-files.ts +140 -0
- package/packages/hub/src/resources/storage.ts +40 -0
- package/packages/hub/src/resources/testing.ts +292 -0
- package/packages/hub/src/store/always-for.ts +46 -0
- package/packages/hub/src/store/auxTables.ts +97 -0
- package/packages/hub/src/store/codec.ts +109 -0
- package/packages/hub/src/store/db.ts +137 -0
- package/packages/hub/src/store/env.ts +13 -0
- package/packages/hub/src/store/errors.ts +36 -0
- package/packages/hub/src/store/fixtures.ts +53 -0
- package/packages/hub/src/store/fn-renames.ts +72 -0
- package/packages/hub/src/store/hybrid.ts +130 -0
- package/packages/hub/src/store/index.ts +231 -0
- package/packages/hub/src/store/lists.ts +172 -0
- package/packages/hub/src/store/migrate-fn-names.ts +135 -0
- package/packages/hub/src/store/migrate.ts +121 -0
- package/packages/hub/src/store/ports.ts +163 -0
- package/packages/hub/src/store/query.ts +166 -0
- package/packages/hub/src/store/records.ts +119 -0
- package/packages/hub/src/store/rows.ts +105 -0
- package/packages/hub/src/store/schema.ts +184 -0
- package/packages/hub/src/store/sqlite.ts +136 -0
- package/packages/hub/src/store/table.ts +113 -0
- package/packages/hub/src/store/text.ts +92 -0
- package/packages/hub/src/store/vectors.ts +232 -0
- package/packages/hub/src/tables/env.ts +15 -0
- package/packages/hub/src/tables/fns.ts +29 -0
- package/packages/hub/src/tables/index.ts +45 -0
- package/packages/hub/src/tables/migrate.ts +105 -0
- package/packages/hub/src/tables/service.ts +245 -0
- package/packages/hub/src/testing.ts +128 -0
- package/packages/hub/tsconfig.json +6 -0
- package/packages/sdk/AUTHORING.md +25228 -0
- package/packages/sdk/package.json +58 -0
- package/packages/sdk/src/a-gin.ts +132 -0
- package/packages/sdk/src/agent.ts +121 -0
- package/packages/sdk/src/authoring.ts +546 -0
- package/packages/sdk/src/build.ts +97 -0
- package/packages/sdk/src/chat-prompt.ts +202 -0
- package/packages/sdk/src/claims.ts +20 -0
- package/packages/sdk/src/client-runtime.ts +514 -0
- package/packages/sdk/src/client.ts +672 -0
- package/packages/sdk/src/ctx.ts +659 -0
- package/packages/sdk/src/declare.ts +480 -0
- package/packages/sdk/src/fn.ts +514 -0
- package/packages/sdk/src/gin.ts +245 -0
- package/packages/sdk/src/hub.ts +1065 -0
- package/packages/sdk/src/impl.ts +35 -0
- package/packages/sdk/src/index.ts +87 -0
- package/packages/sdk/src/links.ts +35 -0
- package/packages/sdk/src/manifest.ts +372 -0
- package/packages/sdk/src/page-parts.ts +153 -0
- package/packages/sdk/src/program/env.ts +29 -0
- package/packages/sdk/src/program/index.ts +13 -0
- package/packages/sdk/src/program/lookups.ts +82 -0
- package/packages/sdk/src/program/runtime.ts +576 -0
- package/packages/sdk/src/program/tools.ts +268 -0
- package/packages/sdk/src/providers.ts +77 -0
- package/packages/sdk/src/refs.ts +161 -0
- package/packages/sdk/src/relative-dates.ts +197 -0
- package/packages/sdk/src/remote-auth.ts +113 -0
- package/packages/sdk/src/resources.ts +28 -0
- package/packages/sdk/src/results.ts +47 -0
- package/packages/sdk/src/server/address.ts +167 -0
- package/packages/sdk/src/server/asks.ts +111 -0
- package/packages/sdk/src/server/assets.ts +47 -0
- package/packages/sdk/src/server/authored-names.ts +79 -0
- package/packages/sdk/src/server/calls.ts +260 -0
- package/packages/sdk/src/server/content.ts +124 -0
- package/packages/sdk/src/server/context-check.ts +214 -0
- package/packages/sdk/src/server/context-files.ts +244 -0
- package/packages/sdk/src/server/data.ts +90 -0
- package/packages/sdk/src/server/env.ts +144 -0
- package/packages/sdk/src/server/fake-hub-fns.ts +124 -0
- package/packages/sdk/src/server/fake-hub-widgets.ts +67 -0
- package/packages/sdk/src/server/fake-models.ts +89 -0
- package/packages/sdk/src/server/fake-records.ts +217 -0
- package/packages/sdk/src/server/files.ts +118 -0
- package/packages/sdk/src/server/host.ts +742 -0
- package/packages/sdk/src/server/hosted-network-guard.ts +18 -0
- package/packages/sdk/src/server/index.ts +220 -0
- package/packages/sdk/src/server/journal.ts +131 -0
- package/packages/sdk/src/server/js-yaml.d.ts +19 -0
- package/packages/sdk/src/server/keys.ts +148 -0
- package/packages/sdk/src/server/link.ts +93 -0
- package/packages/sdk/src/server/live.ts +22 -0
- package/packages/sdk/src/server/llm-wire.ts +647 -0
- package/packages/sdk/src/server/llm.ts +555 -0
- package/packages/sdk/src/server/log.ts +108 -0
- package/packages/sdk/src/server/manifest-state.ts +113 -0
- package/packages/sdk/src/server/mcp-caller.ts +15 -0
- package/packages/sdk/src/server/mcp-prompts.ts +54 -0
- package/packages/sdk/src/server/mcp-resources.ts +130 -0
- package/packages/sdk/src/server/mcp.ts +194 -0
- package/packages/sdk/src/server/owner-runs.ts +109 -0
- package/packages/sdk/src/server/package.ts +141 -0
- package/packages/sdk/src/server/pairing.ts +97 -0
- package/packages/sdk/src/server/process.ts +53 -0
- package/packages/sdk/src/server/providers.ts +180 -0
- package/packages/sdk/src/server/proxy.ts +196 -0
- package/packages/sdk/src/server/renderers.ts +28 -0
- package/packages/sdk/src/server/resources.ts +89 -0
- package/packages/sdk/src/server/results.ts +121 -0
- package/packages/sdk/src/server/run.ts +492 -0
- package/packages/sdk/src/server/runs.ts +103 -0
- package/packages/sdk/src/server/runtime.ts +597 -0
- package/packages/sdk/src/server/socket-guard.ts +162 -0
- package/packages/sdk/src/server/state.ts +112 -0
- package/packages/sdk/src/server/supervise.ts +257 -0
- package/packages/sdk/src/server/table.ts +490 -0
- package/packages/sdk/src/server/testing.ts +883 -0
- package/packages/sdk/src/server/types.ts +26 -0
- package/packages/sdk/src/server/wire.ts +172 -0
- package/packages/sdk/src/status.ts +50 -0
- package/packages/sdk/src/system.ts +459 -0
- package/packages/sdk/src/testing/context.ts +48 -0
- package/packages/sdk/src/testing/env.ts +28 -0
- package/packages/sdk/src/testing/fixtures/NoteCard.vue +17 -0
- package/packages/sdk/src/testing/fixtures/context/guide.md +12 -0
- package/packages/sdk/src/testing/hub.ts +294 -0
- package/packages/sdk/src/testing/index.ts +30 -0
- package/packages/sdk/src/testing/models.ts +192 -0
- package/packages/sdk/src/testing/openrouter.ts +94 -0
- package/packages/sdk/src/testing/preview.ts +207 -0
- package/packages/sdk/src/testing/scratch.ts +58 -0
- package/packages/sdk/src/testing/shots.ts +17 -0
- package/packages/sdk/src/util.ts +35 -0
- package/packages/sdk/src/widget-check.ts +182 -0
- package/packages/sdk/src/widget-schema.ts +251 -0
- package/packages/sdk/src/widgets.ts +386 -0
- package/packages/sdk/src/zod-gin.ts +213 -0
- package/packages/sdk/tsconfig.json +6 -0
- package/packages/web/dist/assets/ActorSettingsView-BuMYRDqv.js +2 -0
- package/packages/web/dist/assets/ActorSettingsView-GTxPZw8N.css +1 -0
- package/packages/web/dist/assets/AdminLayout-1hbRPV3d.css +1 -0
- package/packages/web/dist/assets/AdminLayout-sLjVTrmV.js +2 -0
- package/packages/web/dist/assets/ApiServiceForm-BrMTU-7u.js +2 -0
- package/packages/web/dist/assets/ApiServiceForm-BxprSaAq.css +1 -0
- package/packages/web/dist/assets/ApiServiceView-BMF2zD6Q.js +2 -0
- package/packages/web/dist/assets/ApiServiceView-BVmdRCjR.css +1 -0
- package/packages/web/dist/assets/ApiServicesView-BTLV6c8n.css +1 -0
- package/packages/web/dist/assets/ApiServicesView-bjLAWO_j.js +2 -0
- package/packages/web/dist/assets/AppPage-BBzZ0Pru.css +1 -0
- package/packages/web/dist/assets/AppPage-DSzDKCFz.js +2 -0
- package/packages/web/dist/assets/AutoPairPicker-ClF4nB0n.css +1 -0
- package/packages/web/dist/assets/AutoPairPicker-nV38ALjl.js +2 -0
- package/packages/web/dist/assets/BrowserFrame-Bic7U7jN.js +2 -0
- package/packages/web/dist/assets/BrowserFrame-BzEdhmsF.css +1 -0
- package/packages/web/dist/assets/ChartVisual-BnFG9aFi.css +1 -0
- package/packages/web/dist/assets/ChartVisual-DWw7WsfN.js +11 -0
- package/packages/web/dist/assets/ChatPage-7Yebk7rl.js +4 -0
- package/packages/web/dist/assets/ChatPage-CbsRmktV.css +1 -0
- package/packages/web/dist/assets/CodeViewer-D6A30AJ9.css +1 -0
- package/packages/web/dist/assets/CodeViewer-xHS3Xah9.js +5 -0
- package/packages/web/dist/assets/ConfigWithCustom-C74DTXuy.css +1 -0
- package/packages/web/dist/assets/ConfigWithCustom-DreTUdf0.js +3 -0
- package/packages/web/dist/assets/ConfirmDialog-DjQUzNqk.js +2 -0
- package/packages/web/dist/assets/ConfirmDialog-oABDbIMz.css +1 -0
- package/packages/web/dist/assets/ConnectPage-CfRDrXvJ.js +2 -0
- package/packages/web/dist/assets/ConnectPage-Zz1nFbcn.css +1 -0
- package/packages/web/dist/assets/ContextItemPage-B6rJG3OT.js +2 -0
- package/packages/web/dist/assets/ContextItemPage-BRsWxOmu.css +1 -0
- package/packages/web/dist/assets/ContextPage-CloIZ_2y.js +2 -0
- package/packages/web/dist/assets/ContextPage-rYKxjiVI.css +1 -0
- package/packages/web/dist/assets/ContextRow-Byz_7HG-.css +1 -0
- package/packages/web/dist/assets/ContextRow-Dvv8CTFk.js +2 -0
- package/packages/web/dist/assets/DataPage-CLgJtQwS.css +1 -0
- package/packages/web/dist/assets/DataPage-wSIoGcb5.js +2 -0
- package/packages/web/dist/assets/DataTypePage-Ba_zBV4b.js +4 -0
- package/packages/web/dist/assets/DataTypePage-Cr238Hx_.css +1 -0
- package/packages/web/dist/assets/DesignPage-BFC4A-wO.css +1 -0
- package/packages/web/dist/assets/DesignPage-DidMUX8m.js +49 -0
- package/packages/web/dist/assets/ExplorePage-DJmOOIhs.css +1 -0
- package/packages/web/dist/assets/ExplorePage-MUyVydVB.js +2 -0
- package/packages/web/dist/assets/FactList-CeAbKajD.js +2 -0
- package/packages/web/dist/assets/FactList-DuDPr7n7.css +1 -0
- package/packages/web/dist/assets/FnList-BCnb4kOB.css +1 -0
- package/packages/web/dist/assets/FnList-CjQRwYaT.js +2 -0
- package/packages/web/dist/assets/FnPill-BNIWrqXN.css +1 -0
- package/packages/web/dist/assets/FnPill-BshAvm2I.js +2 -0
- package/packages/web/dist/assets/FnView-B8MGAOoB.js +2 -0
- package/packages/web/dist/assets/FnView-BBFbPAQz.css +1 -0
- package/packages/web/dist/assets/FnsView-CeqIoaBT.js +2 -0
- package/packages/web/dist/assets/FnsView-D575syq-.css +1 -0
- package/packages/web/dist/assets/GinExprView-DYVUwZrd.js +4 -0
- package/packages/web/dist/assets/GinExprView-dqtf5BKF.css +1 -0
- package/packages/web/dist/assets/GinForm-CVEsGoBo.css +1 -0
- package/packages/web/dist/assets/GinForm-D3mwMRTQ.js +2 -0
- package/packages/web/dist/assets/GinTypeView-B5CGqWvh.css +1 -0
- package/packages/web/dist/assets/GinTypeView-C0YifSmE.js +2 -0
- package/packages/web/dist/assets/GinValueView-HfEPq9le.js +4 -0
- package/packages/web/dist/assets/GinValueView-zhWn-X48.css +1 -0
- package/packages/web/dist/assets/GraphPage-ySnuA4Hp.js +2 -0
- package/packages/web/dist/assets/GraphPanel-B9jxpJfb.css +1 -0
- package/packages/web/dist/assets/GraphPanel-Cy5-KGo1.js +2 -0
- package/packages/web/dist/assets/HubPicker-C_vA752L.js +2 -0
- package/packages/web/dist/assets/InboxApprovals-DcPCCmZ5.js +2 -0
- package/packages/web/dist/assets/InboxApprovals-DmC94LNf.css +1 -0
- package/packages/web/dist/assets/InboxPage-C2DT2nuF.js +2 -0
- package/packages/web/dist/assets/InjectedList-BgxdlaHJ.css +1 -0
- package/packages/web/dist/assets/InjectedList-CJsEFEbz.js +2 -0
- package/packages/web/dist/assets/InstallDialog-C9GDoUI2.js +2 -0
- package/packages/web/dist/assets/InstallDialog-yWLZK_zN.css +1 -0
- package/packages/web/dist/assets/InstanceTypes-D8Jcxn70.js +2 -0
- package/packages/web/dist/assets/InstanceTypes-DAowwLB7.css +1 -0
- package/packages/web/dist/assets/InstanceView-CuBD3JPU.css +1 -0
- package/packages/web/dist/assets/InstanceView-p7tMaylE.js +2 -0
- package/packages/web/dist/assets/ItemHistory-CUGa8b6s.js +2 -0
- package/packages/web/dist/assets/ItemHistory-Czzpyiud.css +1 -0
- package/packages/web/dist/assets/LimitsView-DlPW-cLw.css +1 -0
- package/packages/web/dist/assets/LimitsView-DsZG6u5P.js +2 -0
- package/packages/web/dist/assets/ListSearch-BK4p7Nxa.js +2 -0
- package/packages/web/dist/assets/ListSearch-CdxSo6UW.css +1 -0
- package/packages/web/dist/assets/LlmCallDetails-2yQftCqd.js +2 -0
- package/packages/web/dist/assets/LlmCallDetails-gymdroc_.css +1 -0
- package/packages/web/dist/assets/LlmCallsView-B1yHEIBG.css +1 -0
- package/packages/web/dist/assets/LlmCallsView-DOHX3r0K.js +2 -0
- package/packages/web/dist/assets/LoadState-C4VYnFly.css +1 -0
- package/packages/web/dist/assets/LoadState-DeXfLvYv.js +2 -0
- package/packages/web/dist/assets/McpDialog-BSCt_jWB.css +1 -0
- package/packages/web/dist/assets/McpDialog-CA_0WKWF.js +2 -0
- package/packages/web/dist/assets/McpServerForm-CAG8Wp2N.js +2 -0
- package/packages/web/dist/assets/McpServerForm-DsHaf5Um.css +1 -0
- package/packages/web/dist/assets/McpServerView-7I76EznB.css +1 -0
- package/packages/web/dist/assets/McpServerView-CD8qw6W_.js +2 -0
- package/packages/web/dist/assets/McpServersView-DNycG35u.js +2 -0
- package/packages/web/dist/assets/McpView-CC2oNOMa.js +2 -0
- package/packages/web/dist/assets/McpView-W5PhGI4_.css +1 -0
- package/packages/web/dist/assets/McpsView-CwJvyyxV.js +2 -0
- package/packages/web/dist/assets/McpsView-yH-K4ifd.css +1 -0
- package/packages/web/dist/assets/MemoryDialog-CpfIsygL.css +1 -0
- package/packages/web/dist/assets/MemoryDialog-Dbvh5uLq.js +2 -0
- package/packages/web/dist/assets/ModelCallsView-B__CIDge.css +1 -0
- package/packages/web/dist/assets/ModelCallsView-RvnW3EBP.js +2 -0
- package/packages/web/dist/assets/ModelPicker-5BC8W10p.css +1 -0
- package/packages/web/dist/assets/ModelPicker-DcjwQFHC.js +2 -0
- package/packages/web/dist/assets/ModelsView-C_iN19xt.js +2 -0
- package/packages/web/dist/assets/ModelsView-DjD8H9vc.css +1 -0
- package/packages/web/dist/assets/NotFoundPage-CeSwzTV-.js +2 -0
- package/packages/web/dist/assets/NotFoundPage-ZUNomG9O.css +1 -0
- package/packages/web/dist/assets/PairPage-Bs2KuRjC.css +1 -0
- package/packages/web/dist/assets/PairPage-TEXPpsqi.js +2 -0
- package/packages/web/dist/assets/PanelHost-BkrFAnPa.js +2 -0
- package/packages/web/dist/assets/PanelHost-_z5RyAnS.css +1 -0
- package/packages/web/dist/assets/PeopleView-CJ8yArTh.css +1 -0
- package/packages/web/dist/assets/PeopleView-D1QGPYp7.js +2 -0
- package/packages/web/dist/assets/PoliciesView-BU1fudNF.js +2 -0
- package/packages/web/dist/assets/PoliciesView-yVE8d8mj.css +1 -0
- package/packages/web/dist/assets/RefusalList-B3OBAsYc.css +1 -0
- package/packages/web/dist/assets/RefusalList-DQoyUoPG.js +2 -0
- package/packages/web/dist/assets/RemoteAuthFields-Dm44vz2t.css +1 -0
- package/packages/web/dist/assets/RemoteAuthFields-nxGWfmhf.js +2 -0
- package/packages/web/dist/assets/ResourceViewer-A9ZSaLUH.css +1 -0
- package/packages/web/dist/assets/ResourceViewer-Po24y4pj.js +2 -0
- package/packages/web/dist/assets/ResourcesPage-YluNBqIv.js +2 -0
- package/packages/web/dist/assets/ResourcesPage-mr0U0l6U.css +1 -0
- package/packages/web/dist/assets/ResultGrid-CuUQyTjW.css +1 -0
- package/packages/web/dist/assets/ResultGrid-uoq4yUYj.js +2 -0
- package/packages/web/dist/assets/ReviewSummaryStrip-B3ZQs5wR.css +1 -0
- package/packages/web/dist/assets/ReviewSummaryStrip-k3HevESg.js +2 -0
- package/packages/web/dist/assets/ReviewView-79Z5rU1v.js +3 -0
- package/packages/web/dist/assets/ReviewView-CxbVjz_R.css +1 -0
- package/packages/web/dist/assets/RuleRow-CG_XCvUu.css +1 -0
- package/packages/web/dist/assets/RuleRow-CoXDA-SH.js +2 -0
- package/packages/web/dist/assets/RunCard-CBSGdwdQ.js +2 -0
- package/packages/web/dist/assets/RunCard-CfyRaDLS.css +1 -0
- package/packages/web/dist/assets/RunDetails-CGhQQ6OI.js +2 -0
- package/packages/web/dist/assets/RunDetails-CHHCWGrP.css +1 -0
- package/packages/web/dist/assets/RunDot-Ch_45985.js +2 -0
- package/packages/web/dist/assets/RunDot-CkNUsFwg.css +1 -0
- package/packages/web/dist/assets/RunPage-C_t20pB7.js +2 -0
- package/packages/web/dist/assets/RunPage-Cq6UV6h-.css +1 -0
- package/packages/web/dist/assets/RunProgress-Bq2yc7Il.css +1 -0
- package/packages/web/dist/assets/RunProgress-VrZUHUEC.js +2 -0
- package/packages/web/dist/assets/RunsView-Dz9Xsvu5.js +2 -0
- package/packages/web/dist/assets/RunsView-fBMrETRF.css +1 -0
- package/packages/web/dist/assets/ServiceRows-6BU4-MeL.css +1 -0
- package/packages/web/dist/assets/ServiceRows-DNzDiutg.js +2 -0
- package/packages/web/dist/assets/SettingsPage-CykfuYj1.js +3 -0
- package/packages/web/dist/assets/SettingsPage-t03BqXw8.css +1 -0
- package/packages/web/dist/assets/SignInPage-Djx-M-0U.css +1 -0
- package/packages/web/dist/assets/SignInPage-DrXZ1sG2.js +2 -0
- package/packages/web/dist/assets/StatusBadge-Dpb9uG5e.js +2 -0
- package/packages/web/dist/assets/SystemConfig-72qKRkUk.js +2 -0
- package/packages/web/dist/assets/SystemConfig-CDtMyVWy.css +1 -0
- package/packages/web/dist/assets/SystemPageHost-BeZ-6N0-.css +1 -0
- package/packages/web/dist/assets/SystemPageHost-DLNg2FYK.js +2 -0
- package/packages/web/dist/assets/SystemView-C8ScHUe2.css +1 -0
- package/packages/web/dist/assets/SystemView-Es5wtkYU.js +2 -0
- package/packages/web/dist/assets/SystemsView-B6HEL9VS.css +1 -0
- package/packages/web/dist/assets/SystemsView-CeuSFhlF.js +2 -0
- package/packages/web/dist/assets/TableViewer-1Jf5BNat.css +1 -0
- package/packages/web/dist/assets/TableViewer-BQ7bYLOP.js +6 -0
- package/packages/web/dist/assets/ThemePicker-C2nJ21Vd.js +2 -0
- package/packages/web/dist/assets/TurnTree-CORdfTHj.js +2 -0
- package/packages/web/dist/assets/TurnTree-CPivE4sF.css +1 -0
- package/packages/web/dist/assets/UserMessage-BtECa8ka.css +1 -0
- package/packages/web/dist/assets/UserMessage-qyc8dG5D.js +9 -0
- package/packages/web/dist/assets/ValueVisual-D5Rw7PlS.css +1 -0
- package/packages/web/dist/assets/ValueVisual-aXEUaQ5Y.js +2 -0
- package/packages/web/dist/assets/WidgetView-BZyDyYRI.js +3 -0
- package/packages/web/dist/assets/WidgetView-DQUDeFkB.css +1 -0
- package/packages/web/dist/assets/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
- package/packages/web/dist/assets/abap-CLvhMVsD.js +2 -0
- package/packages/web/dist/assets/abnfDiagram-S7VZAUFO-CzFPJy4G.js +2 -0
- package/packages/web/dist/assets/actionscript-3-Cs6JJXT5.js +2 -0
- package/packages/web/dist/assets/ada-X3Y2mlq2.js +2 -0
- package/packages/web/dist/assets/ahk-DwADkxyd.js +2 -0
- package/packages/web/dist/assets/ahk2-_6rzW9BS.js +2 -0
- package/packages/web/dist/assets/angular-html-wiqevbIE.js +2 -0
- package/packages/web/dist/assets/angular-ts-C32iChAu.js +2 -0
- package/packages/web/dist/assets/apache-U0d_L8uA.js +2 -0
- package/packages/web/dist/assets/apex-KFGFyKwG.js +2 -0
- package/packages/web/dist/assets/apl-Bl61Unn0.js +2 -0
- package/packages/web/dist/assets/applescript-CCn79oCD.js +2 -0
- package/packages/web/dist/assets/ara-4CJ0cIlV.js +2 -0
- package/packages/web/dist/assets/architecture-WOLXFQ4H-_l4nRfFJ.js +1 -0
- package/packages/web/dist/assets/architectureDiagram-YGSQEFNW-CMpVysh5.js +37 -0
- package/packages/web/dist/assets/asciidoc-SCjQUq34.js +2 -0
- package/packages/web/dist/assets/asm-Cmm7eHzH.js +2 -0
- package/packages/web/dist/assets/astro-CojMNcHO.js +2 -0
- package/packages/web/dist/assets/awk-BWXHIvNe.js +2 -0
- package/packages/web/dist/assets/ballerina-B7ZEbQpA.js +2 -0
- package/packages/web/dist/assets/bat-qdxAdBWQ.js +2 -0
- package/packages/web/dist/assets/beancount-C2IN4Vk8.js +2 -0
- package/packages/web/dist/assets/berry-DKpUyyne.js +2 -0
- package/packages/web/dist/assets/bibtex-Ci_nEsc7.js +2 -0
- package/packages/web/dist/assets/bicep-CUHmPFLl.js +2 -0
- package/packages/web/dist/assets/bird2-CYIUgYqB.js +2 -0
- package/packages/web/dist/assets/blade-CRk3fo4p.js +2 -0
- package/packages/web/dist/assets/blockDiagram-APKKGZFW-Jua4t10S.js +141 -0
- package/packages/web/dist/assets/bpmnIcons-APHXDYXF-C0jbCElo.js +2 -0
- package/packages/web/dist/assets/browser-BHOqNy7R.js +9 -0
- package/packages/web/dist/assets/browsers-BSc3bW3l.js +2 -0
- package/packages/web/dist/assets/bsl-_VjlB9mv.js +2 -0
- package/packages/web/dist/assets/c-CiNtTPN_.js +2 -0
- package/packages/web/dist/assets/c3-D0apG41V.js +2 -0
- package/packages/web/dist/assets/c4Diagram-KJ2TOQU5-08x9w6G9.js +39 -0
- package/packages/web/dist/assets/cadence-CQ2zXKGN.js +2 -0
- package/packages/web/dist/assets/cairo-DLTphjLi.js +2 -0
- package/packages/web/dist/assets/chapel-D5ik6Ccv.js +2 -0
- package/packages/web/dist/assets/chunk-2Q5K7J3B-C1jixKkw.js +2 -0
- package/packages/web/dist/assets/chunk-5VM5RSS4-ZNzvKenW.js +16 -0
- package/packages/web/dist/assets/chunk-6MUBBAK2-BHXbrulB.js +3 -0
- package/packages/web/dist/assets/chunk-AXFCVDMN-CI0arS1F.js +63 -0
- package/packages/web/dist/assets/chunk-BG4553SI-DGn4S0JL.js +130 -0
- package/packages/web/dist/assets/chunk-DQASFODM-ClbbgMVy.js +11 -0
- package/packages/web/dist/assets/chunk-DUW6YSOI-Dgx8z5s3.js +2 -0
- package/packages/web/dist/assets/chunk-HFQBQIA3-BNltuj9p.js +2 -0
- package/packages/web/dist/assets/chunk-J5ZVWO5B-oDCd-gWO.js +2 -0
- package/packages/web/dist/assets/chunk-JWPE2WC7-DVXcaiue.js +2 -0
- package/packages/web/dist/assets/chunk-KQLB2F66-DsHe5EtY.js +3 -0
- package/packages/web/dist/assets/chunk-KS47KZWR-BZg3mYeD.js +2 -0
- package/packages/web/dist/assets/chunk-LEVMRMFU-paszafIt.js +2 -0
- package/packages/web/dist/assets/chunk-M57EVK23-qYz6TUV4.js +2 -0
- package/packages/web/dist/assets/chunk-NGNAAXSQ-DI_UYJZ4.js +137 -0
- package/packages/web/dist/assets/chunk-OY52VR5R-Ct_YDCfL.js +89 -0
- package/packages/web/dist/assets/chunk-QB3YPZ4I-i7-AWGNa.js +214 -0
- package/packages/web/dist/assets/chunk-R3KSYZAL-DW0WB_9q.js +2 -0
- package/packages/web/dist/assets/chunk-STOXU5M4-D5Gd-wq9.js +73 -0
- package/packages/web/dist/assets/chunk-TU62E6Q5-WtwDME_1.js +2 -0
- package/packages/web/dist/assets/chunk-X4PVCEUW-YYhMSieL.js +2 -0
- package/packages/web/dist/assets/chunk-XXDRQBXY-i7MKP1NY.js +2 -0
- package/packages/web/dist/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +2 -0
- package/packages/web/dist/assets/clarity-CtfBBspg.js +2 -0
- package/packages/web/dist/assets/classDiagram-v2-L25IHNXF-d25-M1pJ.js +218 -0
- package/packages/web/dist/assets/clojure-DqKBuwfJ.js +2 -0
- package/packages/web/dist/assets/cmake-Bj61d0ZC.js +2 -0
- package/packages/web/dist/assets/cobol-BRB8FTbz.js +2 -0
- package/packages/web/dist/assets/codeowners-C8r90Shi.js +2 -0
- package/packages/web/dist/assets/codeql-oeQT6MSM.js +2 -0
- package/packages/web/dist/assets/coffee-B1WQFatZ.js +2 -0
- package/packages/web/dist/assets/common-lisp-Cv5bFMCO.js +2 -0
- package/packages/web/dist/assets/coq-CGaSfhwR.js +2 -0
- package/packages/web/dist/assets/core-DdF778CY.js +13 -0
- package/packages/web/dist/assets/cose-bilkent-JH36ORCC-CYLhHv3W.js +2 -0
- package/packages/web/dist/assets/cpp-CxyntmKf.js +2 -0
- package/packages/web/dist/assets/crystal-CayBj_Aw.js +2 -0
- package/packages/web/dist/assets/csharp-dmMxLVLW.js +2 -0
- package/packages/web/dist/assets/css-CB_fh0k2.js +2 -0
- package/packages/web/dist/assets/csv-Dx-8-gkx.js +2 -0
- package/packages/web/dist/assets/cue-CE9AQfxI.js +2 -0
- package/packages/web/dist/assets/cynefin-EF2NZ3EQ-BOE_VX_3.js +1 -0
- package/packages/web/dist/assets/cynefinDiagram-L36ESFBY-cDLwrPve.js +63 -0
- package/packages/web/dist/assets/cypher-ClKdZ_lG.js +2 -0
- package/packages/web/dist/assets/cytoscape.esm-DpfQbjy7.js +322 -0
- package/packages/web/dist/assets/d-qD-0Kul2.js +2 -0
- package/packages/web/dist/assets/d3-scale-CElPUUud.js +2 -0
- package/packages/web/dist/assets/d3-selection-COWvaQNI.js +2 -0
- package/packages/web/dist/assets/dagre-SPEB5RXH-ChUYszsQ.js +5 -0
- package/packages/web/dist/assets/dart-CHZY9Xhz.js +2 -0
- package/packages/web/dist/assets/dax-BkyTk9wS.js +2 -0
- package/packages/web/dist/assets/desktop-Dlh5hvp9.js +2 -0
- package/packages/web/dist/assets/diagram-3B7GL73J-C4RMi43c.js +201 -0
- package/packages/web/dist/assets/diagram-DNEMPZML-COQGGiEP.js +25 -0
- package/packages/web/dist/assets/diagram-L3MUGCDN-mowv9Itp.js +42 -0
- package/packages/web/dist/assets/diagram-LA4NIPWU-hNJQSGhv.js +25 -0
- package/packages/web/dist/assets/diagram-MHCOC4E2-Dp-COOAx.js +4 -0
- package/packages/web/dist/assets/diagram-XPFHEONP-D2wzCykS.js +31 -0
- package/packages/web/dist/assets/diff-woXpYk--.js +2 -0
- package/packages/web/dist/assets/dist-DdXDFcej.js +2 -0
- package/packages/web/dist/assets/docker-IyjqRm3v.js +2 -0
- package/packages/web/dist/assets/dotenv-CuH5my32.js +2 -0
- package/packages/web/dist/assets/dream-maker-DW3nJb8Q.js +2 -0
- package/packages/web/dist/assets/ebnfDiagram-UZSYDL2S-5WCudwet.js +2 -0
- package/packages/web/dist/assets/edge-6p6a27tD.js +2 -0
- package/packages/web/dist/assets/elixir-fXwtrlGU.js +2 -0
- package/packages/web/dist/assets/elk-XV6XMXQE-BknTcAbm.js +28 -0
- package/packages/web/dist/assets/elm-rUi9A3mh.js +2 -0
- package/packages/web/dist/assets/emacs-lisp-DR2vtWaj.js +2 -0
- package/packages/web/dist/assets/engine-javascript-C30F4iNc.js +142 -0
- package/packages/web/dist/assets/erDiagram-EYBAPDEH-UOE6iZ1t.js +100 -0
- package/packages/web/dist/assets/erb-BvmuIdN-.js +2 -0
- package/packages/web/dist/assets/erlang-Cphh6RMH.js +2 -0
- package/packages/web/dist/assets/eventmodeling-K75KTNOO-CIs2h_8S.js +1 -0
- package/packages/web/dist/assets/export-BwFkEtcm.js +15 -0
- package/packages/web/dist/assets/fennel-DQxkIbk2.js +2 -0
- package/packages/web/dist/assets/fish-BJitypiv.js +2 -0
- package/packages/web/dist/assets/flowDiagram-MALGAFMO-CQLEuZ0I.js +1 -0
- package/packages/web/dist/assets/fluent-C03EYrpw.js +2 -0
- package/packages/web/dist/assets/fn-modal-DqcxUhOQ.js +2 -0
- package/packages/web/dist/assets/fn-notices-BYaH6IoA.js +2 -0
- package/packages/web/dist/assets/fn-notices-Da4tVHqJ.css +1 -0
- package/packages/web/dist/assets/formats-DI__ADVG.js +2 -0
- package/packages/web/dist/assets/fortran-fixed-form-DEKoE2YW.js +2 -0
- package/packages/web/dist/assets/fortran-free-form-CYNrtFtB.js +2 -0
- package/packages/web/dist/assets/fsharp-D13ZGOAj.js +2 -0
- package/packages/web/dist/assets/ganttDiagram-23REXITY-KBK93CXW.js +293 -0
- package/packages/web/dist/assets/gdresource-xMC7jr7x.js +2 -0
- package/packages/web/dist/assets/gdscript-DYvRD3hg.js +2 -0
- package/packages/web/dist/assets/gdshader-CBce3t8t.js +2 -0
- package/packages/web/dist/assets/genie-CV2tkWYe.js +2 -0
- package/packages/web/dist/assets/gherkin-DExj1W_8.js +2 -0
- package/packages/web/dist/assets/git-commit-BSykSTBG.js +2 -0
- package/packages/web/dist/assets/git-rebase-B09wAERM.js +2 -0
- package/packages/web/dist/assets/gitGraph-VSP46ZUC-Dwmw1QLM.js +1 -0
- package/packages/web/dist/assets/gitGraphDiagram-STJD7YCW-B2T13-ZJ.js +107 -0
- package/packages/web/dist/assets/gleam-CSRkHgEL.js +2 -0
- package/packages/web/dist/assets/glimmer-js-CpWvy9gf.js +2 -0
- package/packages/web/dist/assets/glimmer-ts-BAH8Czr9.js +2 -0
- package/packages/web/dist/assets/glsl-CVY0WJyt.js +2 -0
- package/packages/web/dist/assets/gn-CAXYAgV-.js +2 -0
- package/packages/web/dist/assets/gnuplot-7GGW24-e.js +2 -0
- package/packages/web/dist/assets/go-rLFTqkRN.js +2 -0
- package/packages/web/dist/assets/graphlib-DS17s2tU.js +2 -0
- package/packages/web/dist/assets/graphql-CDPCtuoQ.js +2 -0
- package/packages/web/dist/assets/groovy-CacY0gHj.js +2 -0
- package/packages/web/dist/assets/hack-CLEpeEqq.js +2 -0
- package/packages/web/dist/assets/haml-Bvpgs3uG.js +2 -0
- package/packages/web/dist/assets/handlebars-vXY9zmj1.js +2 -0
- package/packages/web/dist/assets/haskell-D8IpX4py.js +2 -0
- package/packages/web/dist/assets/haxe-C8oCnwJJ.js +2 -0
- package/packages/web/dist/assets/hcl-Dh228itO.js +2 -0
- package/packages/web/dist/assets/hjson-CxZEssPk.js +2 -0
- package/packages/web/dist/assets/hlsl-Cvrh5tZx.js +2 -0
- package/packages/web/dist/assets/html-CKMeXkCW.js +2 -0
- package/packages/web/dist/assets/html-derivative-C8trdkzI.js +2 -0
- package/packages/web/dist/assets/http-UJwVfHv3.js +2 -0
- package/packages/web/dist/assets/hurl-7erhC4fM.js +2 -0
- package/packages/web/dist/assets/hxml-Dcm88srW.js +2 -0
- package/packages/web/dist/assets/hy-CZbG8q4J.js +2 -0
- package/packages/web/dist/assets/imba-DsUTQ-LC.js +2 -0
- package/packages/web/dist/assets/index-Bv42jNvr.js +4 -0
- package/packages/web/dist/assets/index-CSisx5mi.css +1 -0
- package/packages/web/dist/assets/info-OHQRW6UA-Ob4q-Ec6.js +1 -0
- package/packages/web/dist/assets/infoDiagram-KBXO4MBG-CGQ6MwL3.js +3 -0
- package/packages/web/dist/assets/ini-B5eOa1yu.js +2 -0
- package/packages/web/dist/assets/ishikawaDiagram-M35NCXHK-CuoxiCk-.js +71 -0
- package/packages/web/dist/assets/java-DGv6_9mf.js +2 -0
- package/packages/web/dist/assets/javascript-wyDA4Fnk.js +2 -0
- package/packages/web/dist/assets/jinja-CRKn4_DT.js +2 -0
- package/packages/web/dist/assets/jison-C5fjf-e-.js +2 -0
- package/packages/web/dist/assets/journeyDiagram-OPLOXDXO-zEDEMkq6.js +140 -0
- package/packages/web/dist/assets/json-B_qwZ7m_.js +2 -0
- package/packages/web/dist/assets/json5-BR5RXkoi.js +2 -0
- package/packages/web/dist/assets/jsonc-CYpm1nAK.js +2 -0
- package/packages/web/dist/assets/jsonl-CmCQp5Yx.js +2 -0
- package/packages/web/dist/assets/jsonnet-CJTPZ8u_.js +2 -0
- package/packages/web/dist/assets/jssm-DXw9l8Rf.js +2 -0
- package/packages/web/dist/assets/jsx-Ba8EQqYd.js +2 -0
- package/packages/web/dist/assets/julia-mJS6zhvp.js +2 -0
- package/packages/web/dist/assets/just-n_L73pBN.js +2 -0
- package/packages/web/dist/assets/kanban-definition-BZKZHSQY-q5yqVxKo.js +90 -0
- package/packages/web/dist/assets/katex-MEuSR36T.js +258 -0
- package/packages/web/dist/assets/kdl-CsD5j6eV.js +2 -0
- package/packages/web/dist/assets/kotlin-DhhofPvG.js +2 -0
- package/packages/web/dist/assets/kusto-C7mF5XQf.js +2 -0
- package/packages/web/dist/assets/labels-BhJpmLWA.js +2 -0
- package/packages/web/dist/assets/langs-CVIiVMBh.js +3 -0
- package/packages/web/dist/assets/latex-0iQGLWul.js +2 -0
- package/packages/web/dist/assets/layout-DQKldU13.js +2 -0
- package/packages/web/dist/assets/lean-CewbzKMR.js +2 -0
- package/packages/web/dist/assets/less-DVTAwKKz.js +2 -0
- package/packages/web/dist/assets/liquid-B8kEVR50.js +2 -0
- package/packages/web/dist/assets/live-kTMxmy8I.js +2 -0
- package/packages/web/dist/assets/llvm-DqHOMS-s.js +2 -0
- package/packages/web/dist/assets/log-BNLmms1o.js +2 -0
- package/packages/web/dist/assets/logo-Cluzi2Zq.js +2 -0
- package/packages/web/dist/assets/lua-BDnDZ8k4.js +2 -0
- package/packages/web/dist/assets/luau-VGWVLoqX.js +2 -0
- package/packages/web/dist/assets/made-DYU0Ohi4.js +2 -0
- package/packages/web/dist/assets/make-Dixweg8N.js +2 -0
- package/packages/web/dist/assets/markdown-BYOwaDjH.js +2 -0
- package/packages/web/dist/assets/marko-Bk0_iGvT.js +2 -0
- package/packages/web/dist/assets/matlab-D7qyCx1q.js +2 -0
- package/packages/web/dist/assets/mdc-DhizV3YK.js +2 -0
- package/packages/web/dist/assets/mdx-DQZ5AkYe.js +2 -0
- package/packages/web/dist/assets/mermaid-BxpfTIzt.js +2 -0
- package/packages/web/dist/assets/mermaid-parser.core-BGN5zmcs.js +8 -0
- package/packages/web/dist/assets/mermaid.core-BNF3dRf5.js +45 -0
- package/packages/web/dist/assets/metrics-Cio5ykX6.js +2 -0
- package/packages/web/dist/assets/mindmap-definition-I2QAS2VK-CoiSJ4W4.js +99 -0
- package/packages/web/dist/assets/mipsasm-BMqwQI7S.js +2 -0
- package/packages/web/dist/assets/mojo-fg40_ntQ.js +2 -0
- package/packages/web/dist/assets/moonbit-D9W784E_.js +2 -0
- package/packages/web/dist/assets/move-BYnGhZoM.js +2 -0
- package/packages/web/dist/assets/narrat-_X_XdTYD.js +2 -0
- package/packages/web/dist/assets/nextflow-CSgcYZcx.js +2 -0
- package/packages/web/dist/assets/nextflow-groovy-D7IRt6Pp.js +2 -0
- package/packages/web/dist/assets/nginx-DoalMtUh.js +2 -0
- package/packages/web/dist/assets/nim-DdsQnl3h.js +2 -0
- package/packages/web/dist/assets/nix-IvuFDN5E.js +2 -0
- package/packages/web/dist/assets/now-40JhSjx0.js +2 -0
- package/packages/web/dist/assets/nsis-CjNLYCLg.js +2 -0
- package/packages/web/dist/assets/nushell--0fT3PI1.js +2 -0
- package/packages/web/dist/assets/objective-c-D1A_Heim.js +2 -0
- package/packages/web/dist/assets/objective-cpp-BsSzOQcm.js +2 -0
- package/packages/web/dist/assets/ocaml-O90oeIOV.js +2 -0
- package/packages/web/dist/assets/odin-B1RWQWA5.js +2 -0
- package/packages/web/dist/assets/openscad-BUDT5pXO.js +2 -0
- package/packages/web/dist/assets/org-B2d-Pz26.js +2 -0
- package/packages/web/dist/assets/packet-JDAUHWVQ-kID5-AEG.js +1 -0
- package/packages/web/dist/assets/pascal-4ZHwLPI5.js +2 -0
- package/packages/web/dist/assets/pdf-YwugTw7Y.js +55 -0
- package/packages/web/dist/assets/pdf.worker.min-CIqJB0yW.mjs +28 -0
- package/packages/web/dist/assets/pdf.worker.min-UqOn5EDC.js +2 -0
- package/packages/web/dist/assets/pegDiagram-FD4XPPHP-DvO7r8qd.js +2 -0
- package/packages/web/dist/assets/perl-CpJxFnsT.js +2 -0
- package/packages/web/dist/assets/php-CG5ES-ob.js +2 -0
- package/packages/web/dist/assets/pie-XZMESJXO-By0gro0O.js +1 -0
- package/packages/web/dist/assets/pieDiagram-J4AKIIQI-f_Jeo_8D.js +40 -0
- package/packages/web/dist/assets/pkl-ot-7Btpt.js +2 -0
- package/packages/web/dist/assets/plsql-DGHpHOYJ.js +2 -0
- package/packages/web/dist/assets/po-BiJDBrnU.js +2 -0
- package/packages/web/dist/assets/polar-C7UOKdEL.js +2 -0
- package/packages/web/dist/assets/postcss-BXeXVLqQ.js +2 -0
- package/packages/web/dist/assets/powerquery-DNMTfnFr.js +2 -0
- package/packages/web/dist/assets/powershell-QtSnmXcu.js +2 -0
- package/packages/web/dist/assets/preload-helper-7y9sWmk5.js +1 -0
- package/packages/web/dist/assets/prisma-DMgNhnYS.js +2 -0
- package/packages/web/dist/assets/problems-BZY0Dwif.js +2 -0
- package/packages/web/dist/assets/prolog-iXnhIJG7.js +2 -0
- package/packages/web/dist/assets/proto-DB4EqR-F.js +2 -0
- package/packages/web/dist/assets/pug-b31sGWmp.js +2 -0
- package/packages/web/dist/assets/puppet-CDv2pdJW.js +2 -0
- package/packages/web/dist/assets/purescript-9MfHhQsQ.js +2 -0
- package/packages/web/dist/assets/push-payload-D5efGCzd.js +402 -0
- package/packages/web/dist/assets/python-gzcpVVnB.js +2 -0
- package/packages/web/dist/assets/qml-Dd7VLkrA.js +2 -0
- package/packages/web/dist/assets/qmldir-DCQb3MpD.js +2 -0
- package/packages/web/dist/assets/qss-Fe1Jh2GI.js +2 -0
- package/packages/web/dist/assets/quadrantDiagram-XTYBLID2-Cr6SWkGn.js +8 -0
- package/packages/web/dist/assets/r-yyMNTq5r.js +2 -0
- package/packages/web/dist/assets/racket-DcIDlBhZ.js +2 -0
- package/packages/web/dist/assets/radar-ABXABTNO-yHosJs_M.js +1 -0
- package/packages/web/dist/assets/railroad-I3PHUGI6-C-LR5A-v.js +1 -0
- package/packages/web/dist/assets/railroad-abnf-LNEFI6M7-DjGnF9uf.js +1 -0
- package/packages/web/dist/assets/railroad-ebnf-DWYD2UWJ-BgsDVMJk.js +1 -0
- package/packages/web/dist/assets/railroad-peg-JR7BVNR7-DkSNpypW.js +1 -0
- package/packages/web/dist/assets/railroadDiagram-MRQ6NCDL-BdGdKtFJ.js +2 -0
- package/packages/web/dist/assets/raku-B3gFvitq.js +2 -0
- package/packages/web/dist/assets/razor-B0rzWF9b.js +2 -0
- package/packages/web/dist/assets/rbs-C0MpOrj4.js +2 -0
- package/packages/web/dist/assets/record-edits-CveFEsal.js +2 -0
- package/packages/web/dist/assets/reg-CRGYupPL.js +2 -0
- package/packages/web/dist/assets/regexp-DYMieNym.js +2 -0
- package/packages/web/dist/assets/rel-BtDbiS_P.js +2 -0
- package/packages/web/dist/assets/remote-config-BkaarDf3.js +2 -0
- package/packages/web/dist/assets/requirementDiagram-Y7LWUY3S-ImkACz5a.js +85 -0
- package/packages/web/dist/assets/review-CGUGvRV9.js +4 -0
- package/packages/web/dist/assets/riscv-Ckw8ddFX.js +2 -0
- package/packages/web/dist/assets/rolldown-runtime-COiEfhsA.js +1 -0
- package/packages/web/dist/assets/ron-VUp2lXgN.js +2 -0
- package/packages/web/dist/assets/rosmsg-CAekHB0j.js +2 -0
- package/packages/web/dist/assets/rough.esm-Dy-Kn_BL.js +2 -0
- package/packages/web/dist/assets/routes-qP_j74V5.js +4 -0
- package/packages/web/dist/assets/rst-BtnuOAUZ.js +2 -0
- package/packages/web/dist/assets/ruby-Dx9fBFuB.js +2 -0
- package/packages/web/dist/assets/runs-k76usGfd.js +2 -0
- package/packages/web/dist/assets/runtime-core.esm-bundler-wlpNGAAZ.js +4 -0
- package/packages/web/dist/assets/rust-DpiIf5JO.js +2 -0
- package/packages/web/dist/assets/sankeyDiagram-WGJFYUXA-Crpx7BLQ.js +41 -0
- package/packages/web/dist/assets/sas-CYVU3X7O.js +2 -0
- package/packages/web/dist/assets/sass-DXrisJhu.js +2 -0
- package/packages/web/dist/assets/scala-BiFt_7mu.js +2 -0
- package/packages/web/dist/assets/scheme-DQCgrYNe.js +2 -0
- package/packages/web/dist/assets/scss-BAOTDanj.js +2 -0
- package/packages/web/dist/assets/sdbl-bTVj8UrX.js +2 -0
- package/packages/web/dist/assets/sequenceDiagram-5NDRBG5M-Ch5L-aWg.js +170 -0
- package/packages/web/dist/assets/shaderlab-TOUzSsQk.js +2 -0
- package/packages/web/dist/assets/shared-DTpYDMc_.js +2 -0
- package/packages/web/dist/assets/shellscript-DUxm18QR.js +2 -0
- package/packages/web/dist/assets/shellsession-DphNsVk1.js +2 -0
- package/packages/web/dist/assets/size-BwnshyOe.js +2 -0
- package/packages/web/dist/assets/sizeCapture-INFHLROL-3uHXrFqA.js +2 -0
- package/packages/web/dist/assets/smalltalk-BHpQb5nM.js +2 -0
- package/packages/web/dist/assets/smithy-Dgaz7aur.js +2 -0
- package/packages/web/dist/assets/solidity-Bj7E1mRn.js +2 -0
- package/packages/web/dist/assets/sources-Bm-TrxhL.js +2 -0
- package/packages/web/dist/assets/soy-BprueKgI.js +2 -0
- package/packages/web/dist/assets/sparql-D_iOobhT.js +2 -0
- package/packages/web/dist/assets/splunk-BC2Px7Mm.js +2 -0
- package/packages/web/dist/assets/sql-D4n2TlMc.js +2 -0
- package/packages/web/dist/assets/src-DLK1P7oz.js +43 -0
- package/packages/web/dist/assets/ssh-config-BgfXC-Er.js +2 -0
- package/packages/web/dist/assets/stata-D3X-un4D.js +2 -0
- package/packages/web/dist/assets/state-CjE-qA2w.js +2 -0
- package/packages/web/dist/assets/state-J8VdpZXA.css +1 -0
- package/packages/web/dist/assets/stateDiagram-v2-FJ4FJNEA-8fpbogV7.js +292 -0
- package/packages/web/dist/assets/stores-BMEvTe-I.js +2 -0
- package/packages/web/dist/assets/stylus-B6D30XZt.js +2 -0
- package/packages/web/dist/assets/surrealql-5--I0FKd.js +2 -0
- package/packages/web/dist/assets/svelte-DlUga76i.js +2 -0
- package/packages/web/dist/assets/swift-CyEgAFGc.js +2 -0
- package/packages/web/dist/assets/swimlanes-UMQ2AFYF-2-xKzyRO.js +2 -0
- package/packages/web/dist/assets/swimlanesDiagram-OMPLPG4O-DHJrYwQz.js +9 -0
- package/packages/web/dist/assets/system-verilog-Dh5ihWbf.js +2 -0
- package/packages/web/dist/assets/systemd-BxMlprV5.js +2 -0
- package/packages/web/dist/assets/systems-DIp94AET.js +2 -0
- package/packages/web/dist/assets/table-LcEs15kL.js +4 -0
- package/packages/web/dist/assets/talonscript-CohzipZa.js +2 -0
- package/packages/web/dist/assets/tasl-DMoTqEGO.js +2 -0
- package/packages/web/dist/assets/tcl-CZd0xW_V.js +2 -0
- package/packages/web/dist/assets/templ-SgILQMBm.js +2 -0
- package/packages/web/dist/assets/terraform-DswuEJGm.js +2 -0
- package/packages/web/dist/assets/tex-B_j0g-0C.js +2 -0
- package/packages/web/dist/assets/timeline-definition-SEUHKTQE-Czq0i_qO.js +121 -0
- package/packages/web/dist/assets/toml-CcmNWLt0.js +2 -0
- package/packages/web/dist/assets/treeView-D4JQ5SDB-B3NKij_H.js +1 -0
- package/packages/web/dist/assets/treemap-SAJKECNS-Dt7uNpkP.js +1 -0
- package/packages/web/dist/assets/ts-tags-Bb2M6NRT.js +2 -0
- package/packages/web/dist/assets/tsv-sltzmVWM.js +2 -0
- package/packages/web/dist/assets/tsx-D2H2cqPj.js +2 -0
- package/packages/web/dist/assets/turtle-ByJddavk.js +2 -0
- package/packages/web/dist/assets/twig-DqWgw3C7.js +2 -0
- package/packages/web/dist/assets/types-D1t1HqPm.js +2 -0
- package/packages/web/dist/assets/typescript-DVfyLS1i.js +2 -0
- package/packages/web/dist/assets/typespec-BGhR2SqG.js +2 -0
- package/packages/web/dist/assets/typst-Cs7gYQVT.js +2 -0
- package/packages/web/dist/assets/ui-C7ZH_6oC.css +1 -0
- package/packages/web/dist/assets/ui-W12UYhVu.js +17 -0
- package/packages/web/dist/assets/url-BIg5IhGs.js +2 -0
- package/packages/web/dist/assets/usecaseDiagram-AFA6YXN4-D3m4xj4y.js +329 -0
- package/packages/web/dist/assets/v-DBj4K9d_.js +2 -0
- package/packages/web/dist/assets/vala-zf12oZj6.js +2 -0
- package/packages/web/dist/assets/vb-DOwzaHZ0.js +2 -0
- package/packages/web/dist/assets/vennDiagram-NNMJR3RB-DeIkukMz.js +35 -0
- package/packages/web/dist/assets/verilog-B2gwz-sJ.js +2 -0
- package/packages/web/dist/assets/vhdl-BroJfC0k.js +2 -0
- package/packages/web/dist/assets/viml-DvXPmvsu.js +2 -0
- package/packages/web/dist/assets/vue-D0OpHdq8.js +2 -0
- package/packages/web/dist/assets/vue-html-DYZahZaV.js +2 -0
- package/packages/web/dist/assets/vue-vine-BsFhbSla.js +2 -0
- package/packages/web/dist/assets/vyper-CgoNMtux.js +2 -0
- package/packages/web/dist/assets/wardley-7MLQ67FV-DSzBQKe8.js +1 -0
- package/packages/web/dist/assets/wardleyDiagram-S7YFUSEH-ef9ee0JD.js +79 -0
- package/packages/web/dist/assets/wasm-ByWQv1Qj.js +2 -0
- package/packages/web/dist/assets/wenyan-C8pVoKbM.js +2 -0
- package/packages/web/dist/assets/wgsl-BsKzXJz4.js +2 -0
- package/packages/web/dist/assets/widget-host-BCf6Tlt5.js +2 -0
- package/packages/web/dist/assets/widgets-CrbkovMT.js +2 -0
- package/packages/web/dist/assets/wikitext-ClFFjSW2.js +2 -0
- package/packages/web/dist/assets/wit-DdvCle-K.js +2 -0
- package/packages/web/dist/assets/wolfram-DLL8P-h_.js +2 -0
- package/packages/web/dist/assets/xml-Cz9mX3j0.js +2 -0
- package/packages/web/dist/assets/xsl-fJeiXJlj.js +2 -0
- package/packages/web/dist/assets/xychartDiagram-GGNKY7IX-CuWtZyN1.js +8 -0
- package/packages/web/dist/assets/yaml-BtwsWWqX.js +2 -0
- package/packages/web/dist/assets/zenscript-BnlCZFoB.js +2 -0
- package/packages/web/dist/assets/zig-CMLA9XwU.js +2 -0
- package/packages/web/dist/favicon.svg +1 -0
- package/packages/web/dist/icons/apple-touch-icon.png +0 -0
- package/packages/web/dist/icons/icon-192.png +0 -0
- package/packages/web/dist/icons/icon-512.png +0 -0
- package/packages/web/dist/icons/maskable-512.png +0 -0
- package/packages/web/dist/index.html +95 -0
- package/packages/web/dist/offline.html +39 -0
- package/packages/web/dist/screenshots/narrow.png +0 -0
- package/packages/web/dist/screenshots/wide.png +0 -0
- package/packages/web/dist/sw.js +2 -0
- package/packages/web/dist/zod-config.js +7 -0
- package/packages/web/package.json +25 -0
- package/premade/claude.zip +0 -0
- package/premade/database.zip +0 -0
- package/premade/web.zip +0 -0
- package/scripts/dev-env.ts +30 -0
- package/scripts/hub-client.ts +2 -0
- package/scripts/release/link.cjs +73 -0
- package/scripts/run-stack.ts +98 -0
- package/scripts/stack.ts +317 -0
- package/scripts/start.ts +120 -0
- package/scripts/supervise.ts +98 -0
- package/systems/api/package.json +20 -0
- package/systems/api/server/authoring.ts +348 -0
- package/systems/api/server/env.ts +16 -0
- package/systems/api/server/guard.ts +44 -0
- package/systems/api/server/http.ts +274 -0
- package/systems/api/server/impl.ts +233 -0
- package/systems/api/server/index.ts +10 -0
- package/systems/api/server/main.ts +27 -0
- package/systems/api/server/openapi.ts +51 -0
- package/systems/api/server/program.ts +158 -0
- package/systems/api/server/services.ts +121 -0
- package/systems/api/shared/http.ts +61 -0
- package/systems/api/shared/index.ts +244 -0
- package/systems/api/system.json +9 -0
- package/systems/api/tsconfig.json +6 -0
- package/systems/code/package.json +20 -0
- package/systems/code/server/authoring.ts +233 -0
- package/systems/code/server/env.ts +13 -0
- package/systems/code/server/impl.ts +128 -0
- package/systems/code/server/index.ts +5 -0
- package/systems/code/server/main.ts +27 -0
- package/systems/code/shared/index.ts +130 -0
- package/systems/code/system.json +9 -0
- package/systems/code/tsconfig.json +6 -0
- package/systems/embedder/package.json +19 -0
- package/systems/embedder/server/env.ts +27 -0
- package/systems/embedder/server/http.ts +154 -0
- package/systems/embedder/server/impl.ts +104 -0
- package/systems/embedder/server/index.ts +22 -0
- package/systems/embedder/server/main.ts +37 -0
- package/systems/embedder/server/provider.ts +60 -0
- package/systems/embedder/shared/index.ts +74 -0
- package/systems/embedder/system.json +9 -0
- package/systems/embedder/tsconfig.json +6 -0
- package/systems/fs/client/BashView.vue +165 -0
- package/systems/fs/client/ChangesView.vue +132 -0
- package/systems/fs/client/DiffBody.vue +95 -0
- package/systems/fs/client/DiffView.vue +73 -0
- package/systems/fs/client/EntryInput.vue +102 -0
- package/systems/fs/client/InstallView.vue +72 -0
- package/systems/fs/client/OutputBlock.vue +65 -0
- package/systems/fs/client/bash.ts +40 -0
- package/systems/fs/client/changes.ts +87 -0
- package/systems/fs/client/diff.ts +151 -0
- package/systems/fs/client/fakes.ts +58 -0
- package/systems/fs/client/index.ts +19 -0
- package/systems/fs/client/preview/Preview.vue +70 -0
- package/systems/fs/client/preview/index.html +12 -0
- package/systems/fs/client/preview/main.ts +9 -0
- package/systems/fs/client/preview/shots.ts +71 -0
- package/systems/fs/client/rerun.ts +36 -0
- package/systems/fs/context/authoring/index.md +42 -0
- package/systems/fs/context/authoring/parts/actions.md +56 -0
- package/systems/fs/context/authoring/parts/actions.reference.md +90 -0
- package/systems/fs/context/authoring/parts/calling.md +71 -0
- package/systems/fs/context/authoring/parts/calling.reference.md +134 -0
- package/systems/fs/context/authoring/parts/client.md +273 -0
- package/systems/fs/context/authoring/parts/client.reference/client.md +638 -0
- package/systems/fs/context/authoring/parts/client.reference/fnpillprops.md +141 -0
- package/systems/fs/context/authoring/parts/client.reference/resultview.md +619 -0
- package/systems/fs/context/authoring/parts/client.reference.md +24 -0
- package/systems/fs/context/authoring/parts/context.md +119 -0
- package/systems/fs/context/authoring/parts/context.reference.md +458 -0
- package/systems/fs/context/authoring/parts/contract.md +167 -0
- package/systems/fs/context/authoring/parts/contract.reference.md +286 -0
- package/systems/fs/context/authoring/parts/core-types/access-ts.md +39 -0
- package/systems/fs/context/authoring/parts/core-types/admin-ts.md +41 -0
- package/systems/fs/context/authoring/parts/core-types/api-index-ts.md +28 -0
- package/systems/fs/context/authoring/parts/core-types/approvals-ts.md +494 -0
- package/systems/fs/context/authoring/parts/core-types/auto-pair-ts.md +28 -0
- package/systems/fs/context/authoring/parts/core-types/checks-ts.md +42 -0
- package/systems/fs/context/authoring/parts/core-types/claims-ts.md +26 -0
- package/systems/fs/context/authoring/parts/core-types/config-secrets-ts.md +24 -0
- package/systems/fs/context/authoring/parts/core-types/connections-ts.md +178 -0
- package/systems/fs/context/authoring/parts/core-types/context-files-ts.md +103 -0
- package/systems/fs/context/authoring/parts/core-types/context-graph-ts.md +22 -0
- package/systems/fs/context/authoring/parts/core-types/contextdecl.md +477 -0
- package/systems/fs/context/authoring/parts/core-types/data-ts.md +236 -0
- package/systems/fs/context/authoring/parts/core-types/decisions-ts.md +52 -0
- package/systems/fs/context/authoring/parts/core-types/fn-block-ts.md +31 -0
- package/systems/fs/context/authoring/parts/core-types/fn-facts-ts.md +228 -0
- package/systems/fs/context/authoring/parts/core-types/gin-ts.md +24 -0
- package/systems/fs/context/authoring/parts/core-types/grants-ts.md +55 -0
- package/systems/fs/context/authoring/parts/core-types/lifecycle-ts.md +658 -0
- package/systems/fs/context/authoring/parts/core-types/link-ts.md +410 -0
- package/systems/fs/context/authoring/parts/core-types/llm-ts.md +268 -0
- package/systems/fs/context/authoring/parts/core-types/manifest.md +460 -0
- package/systems/fs/context/authoring/parts/core-types/manifestpatch.md +519 -0
- package/systems/fs/context/authoring/parts/core-types/mention-search-ts.md +29 -0
- package/systems/fs/context/authoring/parts/core-types/model-calls-ts.md +200 -0
- package/systems/fs/context/authoring/parts/core-types/model-names-ts.md +31 -0
- package/systems/fs/context/authoring/parts/core-types/modes-ts.md +89 -0
- package/systems/fs/context/authoring/parts/core-types/owner-runs-ts.md +47 -0
- package/systems/fs/context/authoring/parts/core-types/package-ts.md +83 -0
- package/systems/fs/context/authoring/parts/core-types/primitives-ts.md +170 -0
- package/systems/fs/context/authoring/parts/core-types/query-ts.md +50 -0
- package/systems/fs/context/authoring/parts/core-types/records-actors-ts.md +259 -0
- package/systems/fs/context/authoring/parts/core-types/records-chat-ts.md +217 -0
- package/systems/fs/context/authoring/parts/core-types/records-content-ts.md +24 -0
- package/systems/fs/context/authoring/parts/core-types/records-runs-ts.md +24 -0
- package/systems/fs/context/authoring/parts/core-types/records-systems-ts.md +69 -0
- package/systems/fs/context/authoring/parts/core-types/registries-ts.md +376 -0
- package/systems/fs/context/authoring/parts/core-types/remote-auth-ts.md +60 -0
- package/systems/fs/context/authoring/parts/core-types/resources-ts.md +250 -0
- package/systems/fs/context/authoring/parts/core-types/run-ts.md +425 -0
- package/systems/fs/context/authoring/parts/core-types/sensitivity-ts.md +52 -0
- package/systems/fs/context/authoring/parts/core-types/system-events-ts.md +90 -0
- package/systems/fs/context/authoring/parts/core-types/system-pages-ts.md +50 -0
- package/systems/fs/context/authoring/parts/core-types/system-providers-ts.md +46 -0
- package/systems/fs/context/authoring/parts/core-types/validation-ts.md +45 -0
- package/systems/fs/context/authoring/parts/core-types/visuals-ts.md +107 -0
- package/systems/fs/context/authoring/parts/core-types/web-ts.md +22 -0
- package/systems/fs/context/authoring/parts/core-types/widgets-ts.md +299 -0
- package/systems/fs/context/authoring/parts/core-types.md +164 -0
- package/systems/fs/context/authoring/parts/ctx.md +94 -0
- package/systems/fs/context/authoring/parts/ctx.reference/fnctx.md +516 -0
- package/systems/fs/context/authoring/parts/ctx.reference/hubai.md +309 -0
- package/systems/fs/context/authoring/parts/ctx.reference.md +21 -0
- package/systems/fs/context/authoring/parts/data.md +162 -0
- package/systems/fs/context/authoring/parts/data.reference.md +119 -0
- package/systems/fs/context/authoring/parts/examples/client-findview-vue.md +77 -0
- package/systems/fs/context/authoring/parts/examples/client-index-ts.md +48 -0
- package/systems/fs/context/authoring/parts/examples/client-notecard-vue.md +43 -0
- package/systems/fs/context/authoring/parts/examples/client-noteinput-vue.md +73 -0
- package/systems/fs/context/authoring/parts/examples/client-notespage-vue.md +82 -0
- package/systems/fs/context/authoring/parts/examples/client-reviewform-vue.md +57 -0
- package/systems/fs/context/authoring/parts/examples/client-wordcount-vue.md +58 -0
- package/systems/fs/context/authoring/parts/examples/package-json.md +40 -0
- package/systems/fs/context/authoring/parts/examples/server-env-ts.md +40 -0
- package/systems/fs/context/authoring/parts/examples/server-impl-ts.md +323 -0
- package/systems/fs/context/authoring/parts/examples/server-index-ts.md +34 -0
- package/systems/fs/context/authoring/parts/examples/server-main-ts.md +57 -0
- package/systems/fs/context/authoring/parts/examples/server-notes-test-ts.md +95 -0
- package/systems/fs/context/authoring/parts/examples/shared-index-ts.md +310 -0
- package/systems/fs/context/authoring/parts/examples/system-json.md +36 -0
- package/systems/fs/context/authoring/parts/examples/systems-fs-shared-index-ts-lines-1-189.md +214 -0
- package/systems/fs/context/authoring/parts/examples/systems-fs-shared-index-ts-lines-190-370.md +202 -0
- package/systems/fs/context/authoring/parts/examples/systems-fs-shared-index-ts-lines-371-533.md +183 -0
- package/systems/fs/context/authoring/parts/examples/tsconfig-json.md +27 -0
- package/systems/fs/context/authoring/parts/examples.md +76 -0
- package/systems/fs/context/authoring/parts/fns.md +225 -0
- package/systems/fs/context/authoring/parts/fns.reference/fillclaims.md +267 -0
- package/systems/fs/context/authoring/parts/fns.reference/fn.md +530 -0
- package/systems/fs/context/authoring/parts/fns.reference.md +21 -0
- package/systems/fs/context/authoring/parts/folder.md +472 -0
- package/systems/fs/context/authoring/parts/gin.md +122 -0
- package/systems/fs/context/authoring/parts/gin.reference.md +483 -0
- package/systems/fs/context/authoring/parts/handlers-progress.md +100 -0
- package/systems/fs/context/authoring/parts/handlers-progress.reference.md +197 -0
- package/systems/fs/context/authoring/parts/hooks.md +56 -0
- package/systems/fs/context/authoring/parts/hooks.reference.md +110 -0
- package/systems/fs/context/authoring/parts/hub/hub-auto-pair-revoke.md +189 -0
- package/systems/fs/context/authoring/parts/hub/hub-fns-load.md +470 -0
- package/systems/fs/context/authoring/parts/hub/hub-run-background.md +562 -0
- package/systems/fs/context/authoring/parts/hub/kinds-of-hub.md +95 -0
- package/systems/fs/context/authoring/parts/hub.md +45 -0
- package/systems/fs/context/authoring/parts/hub.reference.md +476 -0
- package/systems/fs/context/authoring/parts/internals/manifestof.md +721 -0
- package/systems/fs/context/authoring/parts/internals/permissionargs.md +652 -0
- package/systems/fs/context/authoring/parts/internals/usagefromwire.md +257 -0
- package/systems/fs/context/authoring/parts/internals.md +39 -0
- package/systems/fs/context/authoring/parts/kinds-agents.md +278 -0
- package/systems/fs/context/authoring/parts/kinds-agents.reference/authoringsession.md +195 -0
- package/systems/fs/context/authoring/parts/kinds-agents.reference/kind.md +496 -0
- package/systems/fs/context/authoring/parts/kinds-agents.reference.md +21 -0
- package/systems/fs/context/authoring/parts/lifecycle.md +89 -0
- package/systems/fs/context/authoring/parts/lifecycle.reference.md +60 -0
- package/systems/fs/context/authoring/parts/mentions.md +76 -0
- package/systems/fs/context/authoring/parts/mentions.reference.md +105 -0
- package/systems/fs/context/authoring/parts/mistakes.md +465 -0
- package/systems/fs/context/authoring/parts/named-types.md +97 -0
- package/systems/fs/context/authoring/parts/named-types.reference.md +168 -0
- package/systems/fs/context/authoring/parts/outcomes.md +120 -0
- package/systems/fs/context/authoring/parts/outcomes.reference.md +287 -0
- package/systems/fs/context/authoring/parts/owner-runs.md +62 -0
- package/systems/fs/context/authoring/parts/owner-runs.reference.md +224 -0
- package/systems/fs/context/authoring/parts/packaging.md +201 -0
- package/systems/fs/context/authoring/parts/packaging.reference.md +206 -0
- package/systems/fs/context/authoring/parts/providers.md +63 -0
- package/systems/fs/context/authoring/parts/providers.reference.md +88 -0
- package/systems/fs/context/authoring/parts/remote.md +63 -0
- package/systems/fs/context/authoring/parts/remote.reference.md +175 -0
- package/systems/fs/context/authoring/parts/resources.md +58 -0
- package/systems/fs/context/authoring/parts/resources.reference.md +130 -0
- package/systems/fs/context/authoring/parts/server.md +120 -0
- package/systems/fs/context/authoring/parts/server.reference.md +569 -0
- package/systems/fs/context/authoring/parts/settings-attachments.md +55 -0
- package/systems/fs/context/authoring/parts/settings-attachments.reference.md +100 -0
- package/systems/fs/context/authoring/parts/start.md +67 -0
- package/systems/fs/context/authoring/parts/state-forms.md +103 -0
- package/systems/fs/context/authoring/parts/state-forms.reference.md +32 -0
- package/systems/fs/context/authoring/parts/testing.md +160 -0
- package/systems/fs/context/authoring/parts/testing.reference/fakehub.md +396 -0
- package/systems/fs/context/authoring/parts/testing.reference/memoryjournal.md +539 -0
- package/systems/fs/context/authoring/parts/testing.reference/toolcall.md +509 -0
- package/systems/fs/context/authoring/parts/testing.reference.md +24 -0
- package/systems/fs/context/authoring/parts/widgets.md +165 -0
- package/systems/fs/context/authoring/parts/widgets.reference/hub-visuals.md +623 -0
- package/systems/fs/context/authoring/parts/widgets.reference/sourcecompatible.md +150 -0
- package/systems/fs/context/authoring/parts/widgets.reference.md +21 -0
- package/systems/fs/context/authoring/topics/begin.md +37 -0
- package/systems/fs/context/authoring/topics/client.md +25 -0
- package/systems/fs/context/authoring/topics/declare.md +40 -0
- package/systems/fs/context/authoring/topics/examples.md +25 -0
- package/systems/fs/context/authoring/topics/fns.md +37 -0
- package/systems/fs/context/authoring/topics/server.md +40 -0
- package/systems/fs/context/authoring/topics/types.md +28 -0
- package/systems/fs/package.json +28 -0
- package/systems/fs/server/authoring.ts +103 -0
- package/systems/fs/server/builds.ts +101 -0
- package/systems/fs/server/changes.ts +430 -0
- package/systems/fs/server/commands.ts +133 -0
- package/systems/fs/server/documents.ts +96 -0
- package/systems/fs/server/env.ts +123 -0
- package/systems/fs/server/files.ts +218 -0
- package/systems/fs/server/git.ts +99 -0
- package/systems/fs/server/hosting.ts +742 -0
- package/systems/fs/server/impl.ts +451 -0
- package/systems/fs/server/index.ts +151 -0
- package/systems/fs/server/loader.ts +47 -0
- package/systems/fs/server/main.ts +143 -0
- package/systems/fs/server/mentions.ts +176 -0
- package/systems/fs/server/network-guard.ts +10 -0
- package/systems/fs/server/paths.ts +148 -0
- package/systems/fs/server/problem.ts +26 -0
- package/systems/fs/server/resources.ts +236 -0
- package/systems/fs/server/reveal.ts +33 -0
- package/systems/fs/server/run-tests.ts +17 -0
- package/systems/fs/server/runner.ts +221 -0
- package/systems/fs/server/safe.ts +83 -0
- package/systems/fs/server/search.ts +214 -0
- package/systems/fs/server/sections.ts +17 -0
- package/systems/fs/server/sensitive.ts +560 -0
- package/systems/fs/server/shell.ts +255 -0
- package/systems/fs/server/snapshots.ts +119 -0
- package/systems/fs/server/stale.ts +92 -0
- package/systems/fs/server/testing.ts +256 -0
- package/systems/fs/server/tests.ts +203 -0
- package/systems/fs/server/tree.ts +44 -0
- package/systems/fs/server/walk.ts +82 -0
- package/systems/fs/shared/format.ts +29 -0
- package/systems/fs/shared/hosting.ts +65 -0
- package/systems/fs/shared/index.ts +533 -0
- package/systems/fs/system.json +10 -0
- package/systems/fs/tsconfig.json +6 -0
- package/systems/google-calendar/package.json +18 -0
- package/systems/google-calendar/server/calendar.ts +164 -0
- package/systems/google-calendar/server/connector.ts +73 -0
- package/systems/google-calendar/server/env.ts +25 -0
- package/systems/google-calendar/server/fake.ts +127 -0
- package/systems/google-calendar/server/google.ts +234 -0
- package/systems/google-calendar/server/impl.ts +140 -0
- package/systems/google-calendar/server/index.ts +7 -0
- package/systems/google-calendar/server/main.ts +29 -0
- package/systems/google-calendar/shared/index.ts +198 -0
- package/systems/google-calendar/system.json +9 -0
- package/systems/google-calendar/tsconfig.json +6 -0
- package/systems/input/client/FieldInput.vue +118 -0
- package/systems/input/client/FormCard.vue +223 -0
- package/systems/input/client/form.ts +152 -0
- package/systems/input/client/host.ts +13 -0
- package/systems/input/client/index.ts +28 -0
- package/systems/input/package.json +22 -0
- package/systems/input/server/authoring.ts +240 -0
- package/systems/input/server/env.ts +17 -0
- package/systems/input/server/impl.ts +177 -0
- package/systems/input/server/index.ts +4 -0
- package/systems/input/server/main.ts +31 -0
- package/systems/input/shared/forms.ts +106 -0
- package/systems/input/shared/index.ts +389 -0
- package/systems/input/system.json +10 -0
- package/systems/input/tsconfig.json +6 -0
- package/systems/mcp/package.json +21 -0
- package/systems/mcp/server/dial.ts +102 -0
- package/systems/mcp/server/elicitation.ts +103 -0
- package/systems/mcp/server/env.ts +27 -0
- package/systems/mcp/server/fixtures/stdio-server.ts +8 -0
- package/systems/mcp/server/impl.ts +190 -0
- package/systems/mcp/server/index.ts +10 -0
- package/systems/mcp/server/instance.ts +442 -0
- package/systems/mcp/server/main.ts +42 -0
- package/systems/mcp/server/mirror.ts +179 -0
- package/systems/mcp/server/oauth.ts +163 -0
- package/systems/mcp/server/schema.ts +56 -0
- package/systems/mcp/server/server-link.ts +216 -0
- package/systems/mcp/shared/index.ts +130 -0
- package/systems/mcp/shared/shapes.ts +42 -0
- package/systems/mcp/system.json +10 -0
- package/systems/mcp/tsconfig.json +6 -0
- package/systems/ollama/client/ServersPage.vue +242 -0
- package/systems/ollama/client/index.ts +13 -0
- package/systems/ollama/client/logic.ts +108 -0
- package/systems/ollama/package.json +22 -0
- package/systems/ollama/server/api.ts +106 -0
- package/systems/ollama/server/detect.ts +59 -0
- package/systems/ollama/server/env.ts +43 -0
- package/systems/ollama/server/fakes.ts +212 -0
- package/systems/ollama/server/impl.ts +362 -0
- package/systems/ollama/server/index.ts +10 -0
- package/systems/ollama/server/install.ts +348 -0
- package/systems/ollama/server/main.ts +67 -0
- package/systems/ollama/server/models.ts +93 -0
- package/systems/ollama/server/provider.ts +42 -0
- package/systems/ollama/server/serve.ts +315 -0
- package/systems/ollama/shared/index.ts +178 -0
- package/systems/ollama/shared/schemas.ts +258 -0
- package/systems/ollama/system.json +11 -0
- package/systems/ollama/tsconfig.json +6 -0
- package/systems/schedule/client/AgendaList.vue +74 -0
- package/systems/schedule/client/AllSchedulesPage.vue +129 -0
- package/systems/schedule/client/CalendarGrid.vue +155 -0
- package/systems/schedule/client/CalendarPage.vue +203 -0
- package/systems/schedule/client/ChangeResult.vue +23 -0
- package/systems/schedule/client/FiringResult.vue +45 -0
- package/systems/schedule/client/ScheduleCard.vue +63 -0
- package/systems/schedule/client/ScheduleForm.vue +227 -0
- package/systems/schedule/client/ScheduleListResult.vue +36 -0
- package/systems/schedule/client/SchedulePage.vue +342 -0
- package/systems/schedule/client/ScheduleResult.vue +23 -0
- package/systems/schedule/client/host.ts +31 -0
- package/systems/schedule/client/index.ts +29 -0
- package/systems/schedule/client/logic.ts +655 -0
- package/systems/schedule/client/results.ts +114 -0
- package/systems/schedule/client/state.ts +372 -0
- package/systems/schedule/package.json +27 -0
- package/systems/schedule/server/args.ts +137 -0
- package/systems/schedule/server/authoring.ts +202 -0
- package/systems/schedule/server/env.ts +32 -0
- package/systems/schedule/server/fns.ts +791 -0
- package/systems/schedule/server/impl.ts +52 -0
- package/systems/schedule/server/index.ts +10 -0
- package/systems/schedule/server/kind.ts +48 -0
- package/systems/schedule/server/main.ts +33 -0
- package/systems/schedule/server/store.ts +195 -0
- package/systems/schedule/server/summary.ts +184 -0
- package/systems/schedule/server/timer.ts +893 -0
- package/systems/schedule/shared/index.ts +376 -0
- package/systems/schedule/shared/types.ts +264 -0
- package/systems/schedule/shared/when.ts +395 -0
- package/systems/schedule/shared/zoned.ts +44 -0
- package/systems/schedule/system.json +15 -0
- package/systems/schedule/tsconfig.json +6 -0
- package/systems/template/README.md +46 -0
- package/systems/template/client/index.ts +16 -0
- package/systems/template/client/vue-shim.d.ts +13 -0
- package/systems/template/package.json +20 -0
- package/systems/template/server/env.ts +19 -0
- package/systems/template/server/impl.ts +58 -0
- package/systems/template/server/index.ts +13 -0
- package/systems/template/server/main.ts +30 -0
- package/systems/template/shared/index.ts +81 -0
- package/systems/template/system.json +15 -0
- package/systems/template/tsconfig.json +6 -0
- package/systems/widgets/client/ProposalCard.vue +83 -0
- package/systems/widgets/client/SavedWidget.vue +35 -0
- package/systems/widgets/client/WidgetsPage.vue +112 -0
- package/systems/widgets/client/index.ts +19 -0
- package/systems/widgets/client/proposal.ts +52 -0
- package/systems/widgets/package.json +23 -0
- package/systems/widgets/server/authoring.ts +261 -0
- package/systems/widgets/server/env.ts +21 -0
- package/systems/widgets/server/impl.ts +252 -0
- package/systems/widgets/server/index.ts +6 -0
- package/systems/widgets/server/main.ts +32 -0
- package/systems/widgets/server/run.ts +104 -0
- package/systems/widgets/shared/index.ts +194 -0
- package/systems/widgets/system.json +10 -0
- package/systems/widgets/tsconfig.json +6 -0
- package/tsconfig.base.json +30 -0
|
@@ -0,0 +1,491 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The system link: how the hub and a system talk over the system's one WebSocket. Both directions are plain ayepi
|
|
3
|
+
* request and response. `hubLinkSpec` is what a system calls on the hub; `systemLinkSpec` is what the hub calls on a
|
|
4
|
+
* system (ayepi peers). Every endpoint has a short explicit `ws` id so frames stay small. Large content never rides
|
|
5
|
+
* in a frame: it moves as a `ContentRef` fetched in chunks.
|
|
6
|
+
*/
|
|
7
|
+
import { ctx, endpoint, middleware, spec, use } from '@ayepi/core';
|
|
8
|
+
import { telemetry } from '@ayepi/otel';
|
|
9
|
+
import { z } from 'zod';
|
|
10
|
+
import { LlmForward, LlmForwardChunk } from './llm.ts';
|
|
11
|
+
import { ModelForward, ModelForwardResult } from './model-calls.ts';
|
|
12
|
+
import { FleetInstance, PairingInfo } from './package.ts';
|
|
13
|
+
import { AutoPairGrant, AutoPairProof } from './auto-pair.ts';
|
|
14
|
+
import { FnShare, FnUsable } from './access.ts';
|
|
15
|
+
import { ConnectFinish, ConnectResult, ConnectStart, ConnectionUpdate, InstanceConnect, RunConnection } from './connections.ts';
|
|
16
|
+
import { ProviderChat, ProviderChunk, ProviderDecide, ProviderDecideResult, ProviderEmbed, ProviderEmbedResult, ProviderModels, ProviderModelsResult } from './system-providers.ts';
|
|
17
|
+
import { ValidateAnswer, ValidateRequest } from './validation.ts';
|
|
18
|
+
import { ApprovedRun, ArgsCheckAnswer, ArgsCheckRequest, PairingGrant, PairingGrantRequest, PreviewRequest, ProposeRun, ProposedRun } from './approvals.ts';
|
|
19
|
+
import { HubModelInfo } from './admin.ts';
|
|
20
|
+
import { HostRefusal, PreviewAnswer } from './lifecycle.ts';
|
|
21
|
+
import { DecideAnswer, DecideRequest } from './decisions.ts';
|
|
22
|
+
import { DataRecord, RecordGet, RecordPage, RecordQuery, RecordRemove, RecordSave, RecordTableQuery } from './data.ts';
|
|
23
|
+
import { MentionRequestId, MentionResourceHits, MentionResourceSearch } from './mention-search.ts';
|
|
24
|
+
import { FlagsAnswer } from './sensitivity.ts';
|
|
25
|
+
import { ClaimsAnswer, ClaimsRequest } from './claims.ts';
|
|
26
|
+
import { ResultTable } from './registries.ts';
|
|
27
|
+
import { FnExamplesPage, FnExamplesPatch, FnExamplesQuery, FnSearchPage, FnSearchQuery, KindEstimateAnswer, KindEstimateRequest } from './fn-facts.ts';
|
|
28
|
+
import { HookBlock, HookInput, ImportReport, KindDescription, KindFnShape, Manifest, ManifestPatch, MentionHover, MentionOption } from './manifest.ts';
|
|
29
|
+
import {
|
|
30
|
+
ActorId, DeliveryId, Duration, FnKindName, HandlerCallId, InstanceName, Json, LocalName, MAIN_INSTANCE, JsonObject, PairingId, QualifiedName, RunId, SessionId, SystemName, Timestamp, Usd, page,
|
|
31
|
+
} from './primitives.ts';
|
|
32
|
+
import { HttpUrl } from './urls.ts';
|
|
33
|
+
import { KindFnsPage, KindFnsQuery, StartAsOwner, StartedRun, SystemNotice } from './owner-runs.ts';
|
|
34
|
+
import { InstanceMode, TypeDefinitions } from './records/systems.ts';
|
|
35
|
+
import { SystemEvent } from './system-events.ts';
|
|
36
|
+
import { ContentRef, Link, ReadWant, ResourceChange, ResourceRead, ResourceRoot, ResourceStat, ResourceUri, Section, SectionKey } from './resources.ts';
|
|
37
|
+
import {
|
|
38
|
+
AllowedOperations, BudgetLeft, HandlerAnswer, OutcomeWire, ProgressReport, RunInfo, RunSettled, RunUpdate, TimeInfo, UndoOutcome, UserInfo,
|
|
39
|
+
} from './run.ts';
|
|
40
|
+
|
|
41
|
+
// ─── Handshake ────────────────────────────────────────────────────────────────
|
|
42
|
+
|
|
43
|
+
/** The version of this protocol. */
|
|
44
|
+
export const LINK_PROTOCOL = 1;
|
|
45
|
+
|
|
46
|
+
/** The first call from a system. A new name starts pairing; a known name gets a challenge. */
|
|
47
|
+
export const Hello = z.object({
|
|
48
|
+
protocol: z.literal(LINK_PROTOCOL),
|
|
49
|
+
name: SystemName,
|
|
50
|
+
version: z.string(),
|
|
51
|
+
/** Which copy of the system this is (`HARNESS_INSTANCE`); a system that runs one copy is `main`. */
|
|
52
|
+
instance: InstanceName.default(MAIN_INSTANCE),
|
|
53
|
+
/** Whether the system runs one instance or a fleet (`system.json`'s `instances`); absent for a system without one. */
|
|
54
|
+
instances: InstanceMode.optional(),
|
|
55
|
+
/** New per process start, to tell a restart from a reconnect. */
|
|
56
|
+
boot: z.string(),
|
|
57
|
+
/** The system's public key (Ed25519, SPKI DER as base64). */
|
|
58
|
+
publicKey: z.string(),
|
|
59
|
+
manifestHash: z.string(),
|
|
60
|
+
/**
|
|
61
|
+
* The hash of its contract parts (the SDK's `contractHash`), which a pairing token granted to an approved
|
|
62
|
+
* install (`boundTo.manifestHash`) must match.
|
|
63
|
+
*/
|
|
64
|
+
contractHash: z.string().optional(),
|
|
65
|
+
pairingToken: z.string().optional(),
|
|
66
|
+
/** An auto-pair secret: re-pairs this instance with the new key once the challenge is signed. */
|
|
67
|
+
autoPair: AutoPairProof.optional(),
|
|
68
|
+
});
|
|
69
|
+
export type Hello = z.infer<typeof Hello>;
|
|
70
|
+
|
|
71
|
+
/** The hub's answer to `hello`: sign this nonce, or wait for an admin to approve the pairing. */
|
|
72
|
+
export const HelloReply = z.discriminatedUnion('kind', [
|
|
73
|
+
z.object({ kind: z.literal('challenge'), nonce: z.string() }),
|
|
74
|
+
z.object({
|
|
75
|
+
kind: z.literal('pairing'),
|
|
76
|
+
pairing: PairingId,
|
|
77
|
+
/** Shown by the system so the admin can compare it (absent when a token is being checked). */
|
|
78
|
+
code: z.string().optional(),
|
|
79
|
+
/** Where the admin approves it. */
|
|
80
|
+
url: z.string(),
|
|
81
|
+
expiresAt: Timestamp,
|
|
82
|
+
}),
|
|
83
|
+
]);
|
|
84
|
+
export type HelloReply = z.infer<typeof HelloReply>;
|
|
85
|
+
|
|
86
|
+
/** The system's signature over the challenge nonce. */
|
|
87
|
+
export const ChallengeAnswer = z.object({ signature: z.string() });
|
|
88
|
+
export type ChallengeAnswer = z.infer<typeof ChallengeAnswer>;
|
|
89
|
+
|
|
90
|
+
/** Size limits that keep system traffic small. */
|
|
91
|
+
export const LinkLimits = z.object({
|
|
92
|
+
/** Largest frame; bigger content goes as a `ContentRef`. */
|
|
93
|
+
maxFrame: z.number().int().min(1024),
|
|
94
|
+
maxChunk: z.number().int().min(1024),
|
|
95
|
+
heartbeat: Duration,
|
|
96
|
+
});
|
|
97
|
+
export type LinkLimits = z.infer<typeof LinkLimits>;
|
|
98
|
+
|
|
99
|
+
/** A system's config value as the hub holds it. */
|
|
100
|
+
export const ConfigValue = z.object({ value: Json, version: z.number().int().min(1) });
|
|
101
|
+
export type ConfigValue = z.infer<typeof ConfigValue>;
|
|
102
|
+
|
|
103
|
+
/** The hub accepts the system. */
|
|
104
|
+
export const Welcome = z.object({
|
|
105
|
+
/**
|
|
106
|
+
* The instance the hub knows this key as. An admin may rename an instance as they approve its pairing, so a system
|
|
107
|
+
* takes its name from here rather than from what it asked for.
|
|
108
|
+
*/
|
|
109
|
+
instance: InstanceName,
|
|
110
|
+
/** The system's config, if a valid one is set. Without one the system waits, unusable. */
|
|
111
|
+
config: ConfigValue.optional(),
|
|
112
|
+
/** Why it is starting, so the SDK runs the right lifecycle events. */
|
|
113
|
+
start: z.object({ first: z.boolean(), upgradedFrom: z.string().optional() }),
|
|
114
|
+
/** A short-lived token for HTTP (asset upload, presigned content). */
|
|
115
|
+
token: z.string(),
|
|
116
|
+
/** The hub's copy is stale: send the manifest. */
|
|
117
|
+
sendManifest: z.boolean(),
|
|
118
|
+
limits: LinkLimits,
|
|
119
|
+
/** A new auto-pair secret: when one was granted at pairing, or rotated because the last one was used. */
|
|
120
|
+
autoPair: AutoPairGrant.optional(),
|
|
121
|
+
});
|
|
122
|
+
export type Welcome = z.infer<typeof Welcome>;
|
|
123
|
+
|
|
124
|
+
/** Who is on the other end of a link connection, once the handshake is done: the system, its instance and this process start. */
|
|
125
|
+
export const LinkSession = z.object({ system: SystemName, instance: InstanceName, boot: z.string() });
|
|
126
|
+
export type LinkSession = z.infer<typeof LinkSession>;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The link's session guard. Every hub link endpoint except the handshake requires it; its impl (in the hub's link
|
|
130
|
+
* module) refuses a connection that hasn't finished the handshake and provides `link` to handlers.
|
|
131
|
+
*/
|
|
132
|
+
export const linkSession = middleware('linkSession', { provides: ctx<{ link: LinkSession }>() });
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Request telemetry on the system link (`@ayepi/otel`): every call a system makes on the hub gets a request id, trace
|
|
136
|
+
* context for the logs inside it, and request and response lines. The hub binds it on the link server.
|
|
137
|
+
*/
|
|
138
|
+
export const linkTel = telemetry({ name: 'linkTel' });
|
|
139
|
+
|
|
140
|
+
// ─── Running ──────────────────────────────────────────────────────────────────
|
|
141
|
+
|
|
142
|
+
/** What a resuming run gets back: its resume state and the results of calls that already finished, by key. */
|
|
143
|
+
export const ResumeWire = z.object({
|
|
144
|
+
state: Json,
|
|
145
|
+
calls: z.record(z.string(), RunSettled),
|
|
146
|
+
reason: z.enum(['resumed', 'restart']),
|
|
147
|
+
});
|
|
148
|
+
export type ResumeWire = z.infer<typeof ResumeWire>;
|
|
149
|
+
|
|
150
|
+
/** The hub's request to run a fn. */
|
|
151
|
+
export const RunRequest = z.object({
|
|
152
|
+
/** Who and when: the person, their current time, this system and the caller. */
|
|
153
|
+
run: RunInfo,
|
|
154
|
+
/** The fn's local name (`read`, `Entry.reveal`). */
|
|
155
|
+
fn: z.string(),
|
|
156
|
+
kind: FnKindName,
|
|
157
|
+
payload: Json.optional(),
|
|
158
|
+
args: Json,
|
|
159
|
+
budget: BudgetLeft,
|
|
160
|
+
/** The optional handlers the caller can answer. */
|
|
161
|
+
handlers: z.array(z.string()),
|
|
162
|
+
resume: ResumeWire.optional(),
|
|
163
|
+
deadline: Timestamp,
|
|
164
|
+
/** The config version to run with. The system already has the value, so requests stay small. */
|
|
165
|
+
configVersion: z.number().int().min(0),
|
|
166
|
+
/** The person's connection a per-person fn acts as (`connect` systems), with its credentials revealed. */
|
|
167
|
+
connection: RunConnection.optional(),
|
|
168
|
+
/** The approval this run went ahead on, for a fn with `approval` or `flags` (`ctx.approved`), so it can check what it runs. */
|
|
169
|
+
approved: ApprovedRun.optional(),
|
|
170
|
+
});
|
|
171
|
+
export type RunRequest = z.infer<typeof RunRequest>;
|
|
172
|
+
|
|
173
|
+
/** A run's session state, or an action's: who is asking decides which declared fields are visible. */
|
|
174
|
+
export const StateOwner = z.union([z.object({ run: RunId }), z.object({ delivery: DeliveryId })]);
|
|
175
|
+
export type StateOwner = z.infer<typeof StateOwner>;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Who is asking, for requests a person causes (mentions, actions, dynamic context): their session, their actor, and
|
|
179
|
+
* the same who-and-when a run gets, so a system never guesses at the person or their "today".
|
|
180
|
+
*/
|
|
181
|
+
export const Asker = z.object({ session: SessionId, actor: ActorId, user: UserInfo, time: TimeInfo });
|
|
182
|
+
export type Asker = z.infer<typeof Asker>;
|
|
183
|
+
|
|
184
|
+
/** A log line forwarded from a system. */
|
|
185
|
+
export const LogLine = z.object({ level: z.enum(['debug', 'info', 'warn', 'error']), key: z.string(), fields: JsonObject });
|
|
186
|
+
export type LogLine = z.infer<typeof LogLine>;
|
|
187
|
+
|
|
188
|
+
/** What can be done to a running run: stop it for good, or pause it to resume later. */
|
|
189
|
+
export const RunControlAction = z.enum(['cancel', 'pause']);
|
|
190
|
+
export type RunControlAction = z.infer<typeof RunControlAction>;
|
|
191
|
+
|
|
192
|
+
/** Cancel or pause a run. The hub sends it to the system running the run; a system sends it for its own child calls. */
|
|
193
|
+
export const RunControl = z.object({ run: RunId, action: RunControlAction });
|
|
194
|
+
export type RunControl = z.infer<typeof RunControl>;
|
|
195
|
+
|
|
196
|
+
/** Whether a cancel or pause was taken up, and why not. */
|
|
197
|
+
export const ControlReply = z.object({ accepted: z.boolean(), reason: z.string().optional() });
|
|
198
|
+
export type ControlReply = z.infer<typeof ControlReply>;
|
|
199
|
+
|
|
200
|
+
/** Why a system is told to stop. */
|
|
201
|
+
export const StopReason = z.enum(['restart', 'upgrade', 'shutdown', 'removed']);
|
|
202
|
+
export type StopReason = z.infer<typeof StopReason>;
|
|
203
|
+
|
|
204
|
+
// ─── What a system calls on the hub ──────────────────────────────────────────
|
|
205
|
+
|
|
206
|
+
/** What a system tells its hub's admins (`notifyAdmins`): a short title and a plain-words body. */
|
|
207
|
+
export const AdminNotice = z.object({ title: z.string().min(1).max(120), body: z.string().max(2000) });
|
|
208
|
+
export type AdminNotice = z.infer<typeof AdminNotice>;
|
|
209
|
+
|
|
210
|
+
const linked = use(linkTel, linkSession).group({
|
|
211
|
+
manifest: { body: Manifest, response: ImportReport, ws: 'mf' },
|
|
212
|
+
patch: { body: ManifestPatch, response: ImportReport, ws: 'mp' },
|
|
213
|
+
/** A call from inside a run. Queued like every run; replies when it settles (or goes to the background). */
|
|
214
|
+
call: {
|
|
215
|
+
body: z.object({
|
|
216
|
+
parent: RunId,
|
|
217
|
+
fn: QualifiedName,
|
|
218
|
+
args: Json,
|
|
219
|
+
key: z.string(),
|
|
220
|
+
budget: z.object({ cost: Usd.optional(), time: Duration.optional() }).optional(),
|
|
221
|
+
/** The optional handlers this caller supplies; the hub relays them back over `handler`. */
|
|
222
|
+
handlers: z.array(z.string()),
|
|
223
|
+
background: z.boolean(),
|
|
224
|
+
/** Which instance of a fleet runs the child (`ctx.call(ref, args, { on })`); absent, the hub picks (`InstanceRouter`). */
|
|
225
|
+
on: InstanceName.optional(),
|
|
226
|
+
}),
|
|
227
|
+
response: RunSettled,
|
|
228
|
+
ws: 'call',
|
|
229
|
+
},
|
|
230
|
+
/** A run calls one of its caller's handlers (`ctx.handlers.confirm(...)`). The hub relays it to whoever answers. */
|
|
231
|
+
handle: { body: z.object({ run: RunId, handler: z.string(), args: Json }), response: HandlerAnswer, ws: 'ha' },
|
|
232
|
+
/** Cancel or pause a child run this system called (`FnCall.cancel()` / `pause()`). */
|
|
233
|
+
control: { body: RunControl, response: ControlReply, ws: 'cl' },
|
|
234
|
+
progress: { body: z.object({ run: RunId, progress: ProgressReport }), ws: 'pg' },
|
|
235
|
+
allow: { body: z.object({ run: RunId, operations: AllowedOperations.partial() }), ws: 'al' },
|
|
236
|
+
undoWith: { body: z.object({ run: RunId, undo: Json }), ws: 'uw' },
|
|
237
|
+
/** Attach to the run's assistant message: a system attachment (its data checked by the hub too) or a link. */
|
|
238
|
+
attach: {
|
|
239
|
+
body: z.object({
|
|
240
|
+
run: RunId,
|
|
241
|
+
item: z.union([z.object({ attachment: QualifiedName, data: Json, title: z.string() }), z.object({ link: Link })]),
|
|
242
|
+
}),
|
|
243
|
+
ws: 'at',
|
|
244
|
+
},
|
|
245
|
+
/**
|
|
246
|
+
* Named type definitions another system declared, with every named type they reference (dependencies first), so a
|
|
247
|
+
* system can load and use them. Names the hub doesn't know, or `run`'s person (the system itself without a run) may
|
|
248
|
+
* not see, come back in `missing`.
|
|
249
|
+
*/
|
|
250
|
+
types: { body: z.object({ names: z.array(QualifiedName).min(1), run: RunId.optional() }), response: TypeDefinitions, ws: 'ty' },
|
|
251
|
+
/**
|
|
252
|
+
* Widget pass: another system's fn as a kind's check sees it (`KindCheckCtx.fn`): its args, result and description,
|
|
253
|
+
* absent when the hub doesn't know it or the system may not see it.
|
|
254
|
+
*/
|
|
255
|
+
fnShape: {
|
|
256
|
+
body: z.object({ name: QualifiedName }),
|
|
257
|
+
response: z.object({ fn: KindFnShape.optional() }),
|
|
258
|
+
ws: 'fsh',
|
|
259
|
+
},
|
|
260
|
+
resourcesChanged: { body: z.object({ changes: z.array(ResourceChange) }), ws: 'rc' },
|
|
261
|
+
/** The LLM forward behind `ctx.llm` and the aeye provider systems use. */
|
|
262
|
+
llm: { body: LlmForward, streamOut: LlmForwardChunk, ws: 'llm' },
|
|
263
|
+
/**
|
|
264
|
+
* Every other modality through the hub provider (embeddings, images, transcription, speech): one `ModelCall` each,
|
|
265
|
+
* budgeted and attributed to `run`. Nothing a system does reaches a provider any other way.
|
|
266
|
+
*/
|
|
267
|
+
model: { body: ModelForward, response: ModelForwardResult, ws: 'mdl' },
|
|
268
|
+
/** Resource access for `ctx.resources`, routed to whichever system serves the URI. */
|
|
269
|
+
resource: {
|
|
270
|
+
body: z.object({
|
|
271
|
+
uri: ResourceUri,
|
|
272
|
+
want: z.array(ReadWant),
|
|
273
|
+
run: RunId.optional(),
|
|
274
|
+
/** Only these sections' text (`ctx.resources.text(uri, sections)`). */
|
|
275
|
+
sections: z.array(SectionKey).min(1).optional(),
|
|
276
|
+
}),
|
|
277
|
+
response: ResourceRead,
|
|
278
|
+
ws: 'rs',
|
|
279
|
+
},
|
|
280
|
+
/** A resource's sections (`ctx.resources.sections`), as `run`'s person may read it. */
|
|
281
|
+
resourceSections: { body: z.object({ uri: ResourceUri, run: RunId.optional() }), response: z.array(Section), ws: 'rsc' },
|
|
282
|
+
/** A slice of stored content, read as `run`'s person (the system itself without a run). */
|
|
283
|
+
content: { body: z.object({ ref: ContentRef, offset: z.number().int().min(0), length: z.number().int().min(1), run: RunId.optional() }), response: z.object({ chunk: z.string() }), ws: 'ct' },
|
|
284
|
+
/** Upload content (base64 chunks); the last chunk returns the ref. */
|
|
285
|
+
upload: { body: z.object({ upload: z.string(), chunk: z.string(), last: z.boolean(), mime: z.string() }), response: z.object({ ref: ContentRef.optional() }), ws: 'up' },
|
|
286
|
+
setting: { body: z.object({ run: RunId, setting: QualifiedName }), response: z.object({ value: Json.optional() }), ws: 'st' },
|
|
287
|
+
/** Session state: the hub reads and writes only the fields the fn or action declared, matched by name and type. */
|
|
288
|
+
stateGet: { body: z.object({ owner: StateOwner }), response: z.object({ values: JsonObject, version: z.number().int() }), ws: 'sg' },
|
|
289
|
+
/** Refused with `conflict` if another write came in after `version` (the SDK retries). */
|
|
290
|
+
stateSet: {
|
|
291
|
+
body: z.object({ owner: StateOwner, patch: JsonObject, clear: z.array(z.string()), version: z.number().int().optional() }),
|
|
292
|
+
response: z.union([z.object({ version: z.number().int() }), z.object({ conflict: z.literal(true) })]),
|
|
293
|
+
ws: 'ss',
|
|
294
|
+
},
|
|
295
|
+
log: { body: LogLine, ws: 'lg' },
|
|
296
|
+
/** Refreshed credentials for a person's connection, or that it expired. */
|
|
297
|
+
connectionUpdate: { body: ConnectionUpdate, ws: 'cu' },
|
|
298
|
+
/** Build 9: how people connect to this instance now (an instance-scoped `connect` system), sent on start and on every config change. */
|
|
299
|
+
instanceConnect: { body: InstanceConnect, ws: 'ic' },
|
|
300
|
+
/** A running fn gives a fn of its system (one it added) to its run's person, with who else may use it. */
|
|
301
|
+
shareFn: { body: FnShare, ws: 'sh' },
|
|
302
|
+
/** Which of the named fns of its system a running fn's person may use now (the rest are left out). */
|
|
303
|
+
usableFns: { body: FnUsable, response: z.object({ fns: z.array(LocalName) }), ws: 'uf' },
|
|
304
|
+
/** Add a run of one of its own fns that waits for approval, with its preview (`ctx.propose`). */
|
|
305
|
+
propose: { body: ProposeRun, response: ProposedRun, ws: 'po' },
|
|
306
|
+
/** Ask the admin's decision model to choose between candidates (`ctx.decide`); `off` when none is set. */
|
|
307
|
+
decide: { body: DecideRequest, response: DecideAnswer, ws: 'de' },
|
|
308
|
+
/** Every paired instance of the asking system, with its config (secrets kept back) and its own types. */
|
|
309
|
+
fleet: { body: z.object({}), response: z.array(FleetInstance), ws: 'fl' },
|
|
310
|
+
/**
|
|
311
|
+
* Search fns and context in the hub's database (`ctx.searchFns`), as `run`'s person sees them (as the system
|
|
312
|
+
* itself without one: its own fns and what is public). How `get_input` and `get_query` find saved fns.
|
|
313
|
+
*/
|
|
314
|
+
searchFns: { body: FnSearchQuery.extend({ run: RunId.optional() }), response: FnSearchPage, ws: 'sf' },
|
|
315
|
+
/** A page of a fn's examples, the most relevant to `query` first (`ctx.fnExamples`). */
|
|
316
|
+
fnExamples: { body: FnExamplesQuery, response: FnExamplesPage, ws: 'fx' },
|
|
317
|
+
/** Add, replace or remove examples of the system's own fn while running (`RunningSystem.examples`). */
|
|
318
|
+
examples: { body: FnExamplesPatch, response: z.object({ added: z.number().int().min(0), removed: z.number().int().min(0) }), ws: 'xp' },
|
|
319
|
+
/**
|
|
320
|
+
* The models the system may use, with the roles they fill, for its aeye (`ctx.ai()` / `hubAi()`). The hub
|
|
321
|
+
* answers calls outside runs too, charged to the system's own budget and limits, and records every one.
|
|
322
|
+
*/
|
|
323
|
+
models: { body: z.object({}), response: z.array(HubModelInfo), ws: 'mo' },
|
|
324
|
+
/**
|
|
325
|
+
* An approved install run (`fs/install_system`, approver `admins`) asks for a one-time pairing token bound
|
|
326
|
+
* to its subject. Refused unless `run` is this system instance's running, approved run whose stored preview has an
|
|
327
|
+
* equal `subject`.
|
|
328
|
+
*/
|
|
329
|
+
grantPairing: { body: PairingGrantRequest, response: PairingGrant, ws: 'gp' },
|
|
330
|
+
/**
|
|
331
|
+
* Tell the hub's admins something about this system that needs a person (`ctx.notifyAdmins`), e.g. a hosted
|
|
332
|
+
* system disabled after too many crashes. Each admin gets an inbox item that links to the system's page.
|
|
333
|
+
*/
|
|
334
|
+
notifyAdmins: { body: AdminNotice, ws: 'na' },
|
|
335
|
+
/**
|
|
336
|
+
* Tell the person a run of this system is for something (`ctx.notify`): an inbox item and a push, to them only.
|
|
337
|
+
* Refused unless the run is this instance's and still acting.
|
|
338
|
+
*/
|
|
339
|
+
notify: { body: z.object({ run: RunId, notice: SystemNotice }), ws: 'nf' },
|
|
340
|
+
/**
|
|
341
|
+
* Capability `runs` (owner-runs.ts): the fns of one of this system's kinds, with owner, title, version and payload, a
|
|
342
|
+
* page at a time (`ctx.runs.kindFns`).
|
|
343
|
+
*/
|
|
344
|
+
kindFns: { body: KindFnsQuery, response: KindFnsPage, ws: 'kf' },
|
|
345
|
+
/**
|
|
346
|
+
* Capability `runs`: start a run of a fn of one of this system's kinds, as its owner, outside any run and chat
|
|
347
|
+
* (`ctx.runs.start`). Refused unless the owner can still use the hub, the system is live and the owner may run it.
|
|
348
|
+
*/
|
|
349
|
+
startRun: { body: StartAsOwner, response: StartedRun, ws: 'sru' },
|
|
350
|
+
/** Capability `runs`: tell the owner of a fn of one of this system's kinds something (`ctx.runs.notify`), never anyone else. */
|
|
351
|
+
notifyOwner: { body: z.object({ fn: QualifiedName, notice: SystemNotice }), ws: 'nfo' },
|
|
352
|
+
/**
|
|
353
|
+
* A host reports what its supervisor refused on the machine for an instance it hosts (`HostRefusal`: a host
|
|
354
|
+
* outside `grants.network`, a path outside `grants.files`). Refused unless that instance's `host` is this one.
|
|
355
|
+
*/
|
|
356
|
+
reportRefusal: { body: HostRefusal, ws: 'rx' },
|
|
357
|
+
// Build 8
|
|
358
|
+
/**
|
|
359
|
+
* Search the hub's resources for an `@` search the hub sent this system (`MentionResourceSearch.request`), as the
|
|
360
|
+
* person who is mentioning. Refused when the request is unknown, stale or another system's.
|
|
361
|
+
*/
|
|
362
|
+
mentionResources: { body: MentionResourceSearch, response: MentionResourceHits, ws: 'mr' },
|
|
363
|
+
/** The data system (`data.ts`), as the run's person (`run`), or as the system outside a run. Capability `data`. */
|
|
364
|
+
records: { body: RecordQuery, response: RecordPage, ws: 'rq' },
|
|
365
|
+
record: { body: RecordGet, response: z.object({ record: DataRecord.optional() }), ws: 'rg' },
|
|
366
|
+
recordTable: { body: RecordTableQuery, response: ResultTable, ws: 'rtb' },
|
|
367
|
+
saveRecord: { body: RecordSave, response: DataRecord, ws: 'rsv' },
|
|
368
|
+
removeRecord: { body: RecordRemove, response: z.object({ removed: z.boolean() }), ws: 'rrm' },
|
|
369
|
+
});
|
|
370
|
+
|
|
371
|
+
/** What a system calls on the hub. */
|
|
372
|
+
export const hubLinkSpec = spec({
|
|
373
|
+
endpoints: {
|
|
374
|
+
...use(linkTel).group({
|
|
375
|
+
hello: { body: Hello, response: HelloReply, ws: 'hi' },
|
|
376
|
+
prove: { body: ChallengeAnswer, response: Welcome, ws: 'pr' },
|
|
377
|
+
/**
|
|
378
|
+
* While waiting for pairing: what the pairing page shows (description, instance, config type), so the admin can
|
|
379
|
+
* set config as they approve. Only the socket that started the pairing may send it.
|
|
380
|
+
*/
|
|
381
|
+
pairingInfo: { body: PairingInfo, ws: 'pi' },
|
|
382
|
+
}),
|
|
383
|
+
...linked,
|
|
384
|
+
},
|
|
385
|
+
});
|
|
386
|
+
export type HubLinkSpec = typeof hubLinkSpec;
|
|
387
|
+
|
|
388
|
+
// ─── What the hub calls on a system ──────────────────────────────────────────
|
|
389
|
+
|
|
390
|
+
/** What the hub calls on a system, served by the system over its own connection. */
|
|
391
|
+
export const systemLinkSpec = spec({
|
|
392
|
+
endpoints: {
|
|
393
|
+
/** The pairing was approved: say hello again to get a challenge. */
|
|
394
|
+
paired: endpoint({ body: z.object({ pairing: PairingId }), ws: 'pd' }),
|
|
395
|
+
run: endpoint({ body: RunRequest, response: OutcomeWire, ws: 'run' }),
|
|
396
|
+
control: endpoint({ body: RunControl, response: ControlReply, ws: 'ctl' }),
|
|
397
|
+
/**
|
|
398
|
+
* Undo a finished run with the undo payload it registered. `run` is the run as it ran (who it was for); a fn of a
|
|
399
|
+
* kind also carries its kind and the fn's payload, since the kind's system undoes it.
|
|
400
|
+
*/
|
|
401
|
+
undo: endpoint({
|
|
402
|
+
body: z.object({ run: RunInfo, fn: z.string(), kind: FnKindName, fnPayload: Json.optional(), payload: Json }),
|
|
403
|
+
response: UndoOutcome,
|
|
404
|
+
ws: 'un',
|
|
405
|
+
}),
|
|
406
|
+
/**
|
|
407
|
+
* Relay a handler call to the system whose run supplied the handler. `run` is that (calling) run and `key` the
|
|
408
|
+
* call key it made the call under, so concurrent calls supplying the same handler stay apart.
|
|
409
|
+
*/
|
|
410
|
+
handler: endpoint({ body: z.object({ call: HandlerCallId, run: RunId, key: z.string(), handler: z.string(), args: Json }), response: HandlerAnswer, ws: 'hd' }),
|
|
411
|
+
/**
|
|
412
|
+
* About a child call this system made: the hub created its run (`update` absent), or the run changed. Lets
|
|
413
|
+
* `FnCall.run` resolve as soon as the child exists and `FnCall.watch` follow it.
|
|
414
|
+
*/
|
|
415
|
+
child: endpoint({ body: z.object({ parent: RunId, key: z.string(), run: RunId, update: RunUpdate.optional() }), ws: 'ch' }),
|
|
416
|
+
check: endpoint({ body: z.object({ kind: z.string(), payload: Json }), response: z.object({ problems: z.array(z.string()), description: KindDescription.optional() }), ws: 'ck' }),
|
|
417
|
+
/** Dynamic context for a `/command` or a load. `session` is absent for a load outside a session. */
|
|
418
|
+
context: endpoint({ body: Asker.partial({ session: true }).extend({ name: z.string(), args: z.record(z.string(), z.string()) }), response: z.object({ text: z.string() }), ws: 'cx' }),
|
|
419
|
+
roots: endpoint({ response: z.array(ResourceRoot), ws: 'ro' }),
|
|
420
|
+
list: endpoint({ body: z.object({ uri: ResourceUri, cursor: z.string().optional() }), response: page(ResourceStat), ws: 'ls' }),
|
|
421
|
+
stat: endpoint({ body: z.object({ uri: ResourceUri }), response: z.object({ stat: ResourceStat.optional() }), ws: 'sa' }),
|
|
422
|
+
read: endpoint({ body: z.object({ uri: ResourceUri, want: z.array(ReadWant) }), response: ResourceRead, ws: 'rd' }),
|
|
423
|
+
sections: endpoint({ body: z.object({ sectioner: z.string(), uri: ResourceUri, version: z.string() }), response: z.array(Section), ws: 'sc' }),
|
|
424
|
+
watch: endpoint({ body: z.object({ uris: z.array(ResourceUri), on: z.boolean() }), ws: 'wa' }),
|
|
425
|
+
content: endpoint({ body: z.object({ ref: ContentRef, offset: z.number().int().min(0), length: z.number().int().min(1) }), response: z.object({ chunk: z.string() }), ws: 'ct' }),
|
|
426
|
+
hook: endpoint({ body: z.object({ hook: z.string(), message: HookInput }), response: z.array(HookBlock), ws: 'hk' }),
|
|
427
|
+
/** `@` search. */
|
|
428
|
+
mentions: endpoint({
|
|
429
|
+
// build 8: `request` ties a resource search the system makes for these options to the person asking (`mentionResources`)
|
|
430
|
+
// optional until the hub lane mints one for every search; a system without one can't search resources for it
|
|
431
|
+
body: Asker.extend({ provider: z.string(), query: z.string(), request: MentionRequestId }),
|
|
432
|
+
response: z.array(MentionOption),
|
|
433
|
+
ws: 'mn',
|
|
434
|
+
}),
|
|
435
|
+
/** A mention's hover card, asked for when a person hovers it. */
|
|
436
|
+
mentionHover: endpoint({ body: Asker.extend({ provider: z.string(), target: Json }), response: z.object({ hover: MentionHover.optional() }), ws: 'mh' }),
|
|
437
|
+
/** A mention's text for the LLM, asked for when the message is sent. */
|
|
438
|
+
mentionText: endpoint({ body: Asker.extend({ provider: z.string(), target: Json }), response: z.object({ text: z.string() }), ws: 'mt' }),
|
|
439
|
+
event: endpoint({ body: SystemEvent, ws: 'ev' }),
|
|
440
|
+
/** Deliver a stored action. Replies with the result; the hub keeps it with the delivery. */
|
|
441
|
+
action: endpoint({ body: Asker.extend({ delivery: DeliveryId, action: z.string(), input: Json, run: RunId.optional() }), response: z.object({ result: Json }), ws: 'ac' }),
|
|
442
|
+
/** Deliver a form submission to the run waiting in `ctx.form()`. */
|
|
443
|
+
form: endpoint({ body: z.object({ delivery: DeliveryId, run: RunId, value: Json }), ws: 'fm' }),
|
|
444
|
+
restart: endpoint({ body: z.object({ reason: z.string() }), ws: 'rt' }),
|
|
445
|
+
/** Stop for a reason; the system runs `lifecycle.stopping` first, within `timeout`. */
|
|
446
|
+
stop: endpoint({ body: z.object({ reason: StopReason, timeout: Duration }), ws: 'sp' }),
|
|
447
|
+
/** The config changed (or was set for the first time). The system runs `lifecycle.configured`. */
|
|
448
|
+
configure: endpoint({ body: ConfigValue.extend({ previous: Json.optional() }), ws: 'cf' }),
|
|
449
|
+
/**
|
|
450
|
+
* The hub is about to copy the instance's data folder for an export: the system runs `lifecycle.exporting` (flush,
|
|
451
|
+
* checkpoint) within `timeout`, then answers with where its data folder is, so the hub copies the folder it uses.
|
|
452
|
+
*/
|
|
453
|
+
export: endpoint({ body: z.object({ timeout: Duration }), response: z.object({ data: z.string() }), ws: 'ex' }),
|
|
454
|
+
// Build 4
|
|
455
|
+
/** Run a fn's validation hook (`FnDecl.validate`): its input before the run, its result after it succeeds. */
|
|
456
|
+
validate: endpoint({ body: ValidateRequest, response: ValidateAnswer, ws: 'vl' }),
|
|
457
|
+
/** What a run of a fn with `approval.preview` would do, asked before the person decides. */
|
|
458
|
+
preview: endpoint({ body: PreviewRequest, response: PreviewAnswer, ws: 'pv' }),
|
|
459
|
+
/** What a fn of one of the system's kinds would cost (`KindDecl.estimates`). */
|
|
460
|
+
estimate: endpoint({ body: KindEstimateRequest, response: KindEstimateAnswer, ws: 'es' }),
|
|
461
|
+
/** A chat call for one of the system's providers (manifest `providers`). */
|
|
462
|
+
providerChat: endpoint({ body: ProviderChat, streamOut: ProviderChunk, ws: 'pc' }),
|
|
463
|
+
providerEmbed: endpoint({ body: ProviderEmbed, response: ProviderEmbedResult, ws: 'pe' }),
|
|
464
|
+
/** A decision call for one of the system's providers' decision models (aeye's `decide`). */
|
|
465
|
+
providerDecide: endpoint({ body: ProviderDecide, response: ProviderDecideResult, ws: 'pdc' }),
|
|
466
|
+
/** Which of a provider's models it serves now (its aeye `listModels`); the hub offers only the declared ones. */
|
|
467
|
+
providerModels: endpoint({ body: ProviderModels, response: ProviderModelsResult, ws: 'pml' }),
|
|
468
|
+
/** Per-person systems (`connect`): where to send the person to connect (OAuth), then finish with what came back. */
|
|
469
|
+
connectStart: endpoint({ body: ConnectStart, response: z.object({ url: HttpUrl }), ws: 'cs' }),
|
|
470
|
+
connectFinish: endpoint({ body: ConnectFinish, response: ConnectResult, ws: 'cn' }),
|
|
471
|
+
/** The person disconnected: revoke the credentials at the provider where it can. */
|
|
472
|
+
disconnect: endpoint({ body: RunConnection.pick({ id: true, owner: true, credentials: true }), ws: 'dc' }),
|
|
473
|
+
// Build 8
|
|
474
|
+
/** Which sensitive files a run of a fn with `flags` would touch (`sensitivity.ts`), asked before the mode gate. */
|
|
475
|
+
flags: endpoint({ body: PreviewRequest, response: FlagsAnswer, ws: 'fg' }),
|
|
476
|
+
/** What an agent's call of a fn with `dynamicClaims` operates on (`claims.ts`), asked before the call becomes a run. */
|
|
477
|
+
claims: endpoint({ body: ClaimsRequest, response: ClaimsAnswer, ws: 'pcl' }),
|
|
478
|
+
/**
|
|
479
|
+
* Check a native fn's args before the policies and any approval (`FnDecl.check`): its implementation's `check(args,
|
|
480
|
+
* ctx)`, whose read-only calls are children of the queued run. Problems settle the run as invalid input.
|
|
481
|
+
*/
|
|
482
|
+
checkArgs: endpoint({ body: ArgsCheckRequest, response: ArgsCheckAnswer, ws: 'cka' }),
|
|
483
|
+
},
|
|
484
|
+
});
|
|
485
|
+
export type SystemLinkSpec = typeof systemLinkSpec;
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* The code a system answers `export` with when it could not get its data ready in time (its `lifecycle.exporting`
|
|
489
|
+
* failed or ran late). The hub refuses the export then, since a copy made meanwhile might not be whole.
|
|
490
|
+
*/
|
|
491
|
+
export const EXPORT_NOT_READY = 'EXPORT_NOT_READY';
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LLM traffic on the wire: a system's LLM request forwarded to the hub (the hub is an aeye provider for systems),
|
|
3
|
+
* and what streams back. These are JSON projections of aeye's `Request` / `Chunk` / `Usage`. Tool and output schemas
|
|
4
|
+
* travel as their lenient JSON schema (the code shape, `@aeye/schema`'s `LENIENT`); the hub rebuilds them as `a`
|
|
5
|
+
* schemas, plans them for the model it picks and decodes the model's answers back to the code shape. (zod stays here:
|
|
6
|
+
* this is the link's own wire validation.)
|
|
7
|
+
*/
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
import { Json, LlmInteractionId, RunId, Usd } from './primitives.ts';
|
|
10
|
+
|
|
11
|
+
/** Which model to use: a model id, a named category, or automatic selection by weights. */
|
|
12
|
+
export const ModelChoice = z.union([
|
|
13
|
+
z.object({ model: z.string().min(1) }),
|
|
14
|
+
z.object({ category: z.string().min(1) }),
|
|
15
|
+
z.object({ auto: z.object({ cost: z.number().min(0).optional(), speed: z.number().min(0).optional(), accuracy: z.number().min(0).optional() }) }),
|
|
16
|
+
]);
|
|
17
|
+
export type ModelChoice = z.infer<typeof ModelChoice>;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Whether a model a provider serves is the one a model name means: its own id (`deepseek-r1:7b`), or its id under its
|
|
21
|
+
* provider (`ollama/deepseek-r1:7b`, how the hub names a model pinned to a provider).
|
|
22
|
+
*/
|
|
23
|
+
export function namesModel(name: string, model: { readonly id: string; readonly provider: string }): boolean {
|
|
24
|
+
return model.id === name || `${model.provider}/${model.id}` === name;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* A tool call the model asked for. `arguments` is JSON text: as the model writes it while it streams; once complete
|
|
29
|
+
* (`LlmChunk.toolCall` from the hub) decoded to the code shape under the tool's own name, or as written with `invalid`
|
|
30
|
+
* saying (to the model) why it doesn't fit.
|
|
31
|
+
*/
|
|
32
|
+
export const LlmToolCall = z.object({ id: z.string(), name: z.string(), arguments: z.string(), invalid: z.string().optional() });
|
|
33
|
+
export type LlmToolCall = z.infer<typeof LlmToolCall>;
|
|
34
|
+
|
|
35
|
+
/** One part of a multi-part message. `content` is text, a URL or a data URL. */
|
|
36
|
+
export const LlmContentPart = z.object({
|
|
37
|
+
type: z.enum(['text', 'image', 'file', 'audio', 'video']),
|
|
38
|
+
content: z.string(),
|
|
39
|
+
format: z.string().optional(),
|
|
40
|
+
name: z.string().optional(),
|
|
41
|
+
});
|
|
42
|
+
export type LlmContentPart = z.infer<typeof LlmContentPart>;
|
|
43
|
+
|
|
44
|
+
/** A conversation message, as aeye's `Message` minus provider caches. */
|
|
45
|
+
export const LlmMessage = z.object({
|
|
46
|
+
role: z.enum(['system', 'user', 'assistant', 'tool']),
|
|
47
|
+
content: z.union([z.string(), z.array(LlmContentPart)]),
|
|
48
|
+
name: z.string().optional(),
|
|
49
|
+
toolCallId: z.string().optional(),
|
|
50
|
+
toolCalls: z.array(LlmToolCall).optional(),
|
|
51
|
+
refusal: z.string().optional(),
|
|
52
|
+
tokens: z.number().int().optional(),
|
|
53
|
+
});
|
|
54
|
+
export type LlmMessage = z.infer<typeof LlmMessage>;
|
|
55
|
+
|
|
56
|
+
/** Token use of one call, as aeye's `Usage` text section (the parts harness meters). */
|
|
57
|
+
export const LlmUsage = z.object({
|
|
58
|
+
input: z.number().int().min(0),
|
|
59
|
+
output: z.number().int().min(0),
|
|
60
|
+
cached: z.number().int().min(0).optional(),
|
|
61
|
+
reasoning: z.number().int().min(0).optional(),
|
|
62
|
+
});
|
|
63
|
+
export type LlmUsage = z.infer<typeof LlmUsage>;
|
|
64
|
+
|
|
65
|
+
/** Why a response stopped. */
|
|
66
|
+
export const FinishReason = z.enum(['stop', 'length', 'tool_calls', 'content_filter', 'refusal']);
|
|
67
|
+
export type FinishReason = z.infer<typeof FinishReason>;
|
|
68
|
+
|
|
69
|
+
/** One streamed piece of a response. */
|
|
70
|
+
export const LlmChunk = z.object({
|
|
71
|
+
content: z.string().optional(),
|
|
72
|
+
reasoning: z.string().optional(),
|
|
73
|
+
/** A tool call whose name is known (arguments may still stream). */
|
|
74
|
+
toolCallNamed: LlmToolCall.optional(),
|
|
75
|
+
/** A tool call's arguments so far, whole (what aeye's chunk holds; a stream sends `toolCallMore` instead). */
|
|
76
|
+
toolCallArguments: LlmToolCall.optional(),
|
|
77
|
+
/**
|
|
78
|
+
* More of a tool call's arguments: `arguments` is only the text that came since its last chunk, for the reader to
|
|
79
|
+
* add on (`ChunkReader`). Sending the whole so far on every chunk made a long call quadratic on the link: a model
|
|
80
|
+
* looping on a 130 KB argument sent gigabytes and ran the hub out of memory.
|
|
81
|
+
*/
|
|
82
|
+
toolCallMore: LlmToolCall.optional(),
|
|
83
|
+
/** A tool call that is complete. */
|
|
84
|
+
toolCall: LlmToolCall.optional(),
|
|
85
|
+
finishReason: FinishReason.optional(),
|
|
86
|
+
refusal: z.string().optional(),
|
|
87
|
+
usage: LlmUsage.optional(),
|
|
88
|
+
});
|
|
89
|
+
export type LlmChunk = z.infer<typeof LlmChunk>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* A strict-mode policy, as aeye's: `true` requires strict schemas, `false` forces lenient ones, and a positive number
|
|
93
|
+
* prefers strict with that priority when a model has fewer strict slots than are asked for.
|
|
94
|
+
*/
|
|
95
|
+
export const LlmStrict = z.union([z.boolean(), z.number().positive()]);
|
|
96
|
+
export type LlmStrict = z.infer<typeof LlmStrict>;
|
|
97
|
+
|
|
98
|
+
const ErrorDetail = z.enum(['summary', 'list', 'markers', 'full']);
|
|
99
|
+
|
|
100
|
+
/** How a bad answer is told to the model (`@aeye/schema`'s `ErrorFormatInput`): a detail level, or the whole format. */
|
|
101
|
+
export const LlmErrorFormat = z.union([
|
|
102
|
+
ErrorDetail,
|
|
103
|
+
z.object({
|
|
104
|
+
detail: ErrorDetail.optional(),
|
|
105
|
+
maxErrors: z.number().int().min(0).optional(),
|
|
106
|
+
maxChars: z.number().int().min(0).optional(),
|
|
107
|
+
suggestions: z.boolean().optional(),
|
|
108
|
+
expected: z.boolean().optional(),
|
|
109
|
+
context: z.number().int().min(0).optional(),
|
|
110
|
+
depth: z.number().int().min(0).optional(),
|
|
111
|
+
header: z.boolean().optional(),
|
|
112
|
+
}),
|
|
113
|
+
]);
|
|
114
|
+
export type LlmErrorFormat = z.infer<typeof LlmErrorFormat>;
|
|
115
|
+
|
|
116
|
+
/** A tool offered to the model, with its input as (lenient) JSON schema. */
|
|
117
|
+
export const LlmToolSpec = z.object({
|
|
118
|
+
name: z.string(), description: z.string().optional(), parameters: Json, strict: LlmStrict.optional(), errorFormat: LlmErrorFormat.optional(),
|
|
119
|
+
});
|
|
120
|
+
export type LlmToolSpec = z.infer<typeof LlmToolSpec>;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* What the model should produce: text, any JSON, or JSON matching a (lenient JSON) schema, sent as structured output
|
|
124
|
+
* or as prompt text (`schemaDelivery`, aeye's `SchemaDelivery`).
|
|
125
|
+
*/
|
|
126
|
+
export const LlmResponseFormat = z.union([z.literal('text'), z.literal('json'), z.object({
|
|
127
|
+
schema: Json,
|
|
128
|
+
strict: LlmStrict,
|
|
129
|
+
errorFormat: LlmErrorFormat.optional(),
|
|
130
|
+
schemaDelivery: z.enum(['auto', 'structured', 'json', 'prompt']).optional(),
|
|
131
|
+
})]);
|
|
132
|
+
export type LlmResponseFormat = z.infer<typeof LlmResponseFormat>;
|
|
133
|
+
|
|
134
|
+
/** An LLM request as it crosses the wire. */
|
|
135
|
+
export const LlmRequest = z.object({
|
|
136
|
+
messages: z.array(LlmMessage),
|
|
137
|
+
temperature: z.number().optional(),
|
|
138
|
+
maxTokens: z.number().int().optional(),
|
|
139
|
+
stop: z.array(z.string()).optional(),
|
|
140
|
+
tools: z.array(LlmToolSpec).optional(),
|
|
141
|
+
toolChoice: z.union([z.enum(['auto', 'none', 'required']), z.object({ tool: z.string() })]).optional(),
|
|
142
|
+
responseFormat: LlmResponseFormat.optional(),
|
|
143
|
+
/** How bad answers are told to the model, for every schema of the request (a tool's or the output's own wins). */
|
|
144
|
+
errorFormat: LlmErrorFormat.optional(),
|
|
145
|
+
});
|
|
146
|
+
export type LlmRequest = z.infer<typeof LlmRequest>;
|
|
147
|
+
|
|
148
|
+
/** An LLM request forwarded from a system (behind `ctx.llm` and the aeye provider systems use). */
|
|
149
|
+
export const LlmForward = z.object({
|
|
150
|
+
run: RunId.optional(),
|
|
151
|
+
request: LlmRequest,
|
|
152
|
+
model: ModelChoice.optional(),
|
|
153
|
+
stream: z.boolean(),
|
|
154
|
+
});
|
|
155
|
+
export type LlmForward = z.infer<typeof LlmForward>;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* What streams back: chunks, then the cost. The hub decodes what the model wrote through the plan it sent the request
|
|
159
|
+
* with: a finished tool call comes in the code shape under the tool's own name (or with `invalid`), a structured answer
|
|
160
|
+
* as one content chunk of its code shape, so the system decodes both with its own (lenient) schemas.
|
|
161
|
+
*/
|
|
162
|
+
export const LlmForwardChunk = z.discriminatedUnion('type', [
|
|
163
|
+
z.object({ type: z.literal('chunk'), chunk: LlmChunk }),
|
|
164
|
+
z.object({ type: z.literal('done'), usage: LlmUsage, cost: Usd, interaction: LlmInteractionId, model: z.string() }),
|
|
165
|
+
z.object({ type: z.literal('error'), message: z.string(), kind: z.enum(['model', 'tool', 'limit', 'provider']) }),
|
|
166
|
+
]);
|
|
167
|
+
export type LlmForwardChunk = z.infer<typeof LlmForwardChunk>;
|