Repository navigation
feat(artifact): share a folder whose page is index.md - #12
Merged
Merged
Conversation
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.
artifact shareaccepts a folder whose page isindex.md, as well asindex.html. Console renders Markdown pages in the house style once anomalyco/opencode-console's Markdown artifacts PR ships. A Markdown folder's title is its first# heading, with emphasis and code marks dropped. An HTML folder's is still its<title>.This is how agents get images into a Markdown artifact: the MCP
artifacts_updateand OpenCode'sartifact_createtake text only. Console's built-in skill already tells agents that the CLI sharesindex.mdfolders, so this needs a release around the Console deploy.src/artifact.ts:collectfindsindex.htmlorindex.md, and reads the title from whichever it found.src/index.ts,README.md: the help and README say index.md or index.html.test/artifact.test.ts: a Markdown folder titled by its heading, its PNG pulled back byte for byte; the missing-page message.Verified:
bun test test/artifact.test.ts(21 pass) andbun run check(format, lint, typecheck).Not merged or released: needs Adam's go-ahead.