Repository navigation
Conversation
…ks that open on a file
Claude Code cannot embed the Studio (a web page: canvas, image and video
previews), and until now the plugin drew nothing of its own. Give it the
part that is plain text, and let the page open only when someone looks.
claude-plugin/tongflow 0.2.0
- `/tongflow` opens a panel: a project picker and the folder tree of the
project in work; it also opens by itself the first time Claude uses a
TongFlow tool, refreshes after every TongFlow tool call and follows the
project the agent moves to. A file or a workflow is a link to the Studio
page, opened on it.
- The panel reads the studio over the page's own routes. It finds the page
through tongflow_studio_page; that call is put to the permission prompt
like any tool call, so the mod always allows that one tool.
- State lives in $.state under a typed contract (types/index.d.ts).
tongflow-studio 0.1.1
- The Studio page opens where a link says: ?project=<id>&file=<key>
(StudioShell `project` / `file`); a pinned project is not followed away
from. tongflow_studio_page takes `project` and `file`.
- serve.ts accepts the access token as a bearer credential, for a client
that is not a browser.
Verified: `claude plugin validate` / `claude plugin test` (10 tests; the
panel's tree validates on terminal, desktop and vscode); `/tongflow` in a
real headless session against the real server ("15 project(s)"); deep
links in a browser (an output previewed, a workflow on the canvas).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Owner
Author
|
Closing without merging: the mod is being removed from the plugin altogether (it added little that Claude Code can actually draw). The branch stays, in case the Studio page deep links ( |
This branch had an error being 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.
Why
Claude Code cannot embed the Studio — it is a web page (canvas, image and video previews) and no surface draws one. Until now the plugin drew nothing of its own, so in Claude Code TongFlow was tools plus a link. This gives it the part that is plain text, and lets the page open only when someone wants to look at a file or a workflow.
What
claude-plugin/tongflow0.2.0/tongflowopens a panel: a project picker and the folder tree of the project in work. It also opens by itself the first time Claude uses a TongFlow tool, refreshes after every TongFlow tool call, and follows the project the agent moves to (a project the person picked is not undone by a refresh).tongflow_studio_page; a plugin's tool call is put to the permission prompt like any other, so the mod always allows that one tool (it returns a local link and changes nothing).$.stateunder a typed contract (types/index.d.ts). The billing dialog and the status line are unchanged.tongflow-studio0.1.1?project=<id>&file=<key>(StudioShellproject/file). A pinned project is not followed away from.tongflow_studio_pagetakesprojectandfile, so the agent can hand out a link to one result.serve.tsaccepts the access token asAuthorization: Bearer, for a client that is not a browser.Verified
claude plugin validateandclaude plugin test(10 tests, Claude Code 2.1.287). The panel's tree validates on the terminal, desktop and vscode surfaces;tscagainst the engine's declarations./tongflowin a real headless session against the real server:TongFlow panel opened: 15 project(s), showing apple.— the debug log shows the routes answering 200 and the pane placed. The first attempt was refused at the permission check, which is what the always-allow hook is for.localhost.pnpm lint:check,pnpm typecheck,pnpm build:packages,pnpm test:packages(tongflow-studio 49, dsh-tongflow 10).Not verified
Order
.mcp.jsonpinstongflow-studio@0.1.1, so 0.1.1 is published before this merges.🤖 Generated with Claude Code