feat(files): workflow-backed HTML dashboards - #8156
Draft
TheodoreSpeaks wants to merge 8 commits into
Draft
TheodoreSpeaks wants to merge 8 commits into
TheodoreSpeaks wants to merge 8 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
…logs Add an explicit read-only table-query design for HTML files and public shares.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HTML workspace files can declare deployed workflow IDs and call them from isolated HTML or file-specific APIs. Calls accept only declared JSON input fields, run synchronously, and appear in workflow logs as
Filewhile using the deployed API input block. The browser document receives a narrow MessagePort API, never a Sim cookie or credential; existing public-share authentication still applies.The admission cache is keyed by file, workflow, audience, and canonical input. The same input reuses its result for five minutes, and a no-input workflow has one cache key. A separate 20-run-per-file/workflow five-minute budget bounds distinct-input fan-out. Successful output remains in Redis for five minutes. The v2 API, generated CLI/MCP operations, Copilot file tool, and HTML bridge can run with input and read that input's cached result without putting values in a URL. A paused run may finish in normal workflow history without republishing its eventual output to this cache.
research/workflow-backed-html-table-query-design.mdcontains the full design for read-only table queries from private and public HTML file shares. Table grants, routes, and browser API are design-only in this PR.Validation: Sim and CLI type checks; 79 focused unit tests; nine PostgreSQL migration/admission tests against a disposable local database; API boundary, migration, OpenAPI, CLI/MCP generation, and Biome checks. See
research/workflow-backed-html-dashboards.mdfor behavior and setup.Target: staging. Apply additive migration
0377_flaky_quicksilver.sqlwith the Sim rollout before enabling the companion Mothership tool in PR #513. ConfigureHTML_CONTENT_ORIGINper environment; production's intended host ishttps://file.simstudio.ai, with TLS and ingress limited to/html-frame. This draft PR does not authorize a merge or production deployment.