chore(canvas-kit): sync vendored canvas-kit to 2026-07-07.6 - #22
Merged
Conversation
Re-vendor the canonical create-canvas-app kit (2026-07-05.1 -> 2026-07-07.6) into all six canvas extensions. This pulls in the recent kit hardening and feature work: - Strict action/state schema validation at the boundary (validate.mjs) - SSRF-safe fetch with per-redirect re-checks (net.mjs) - Atomic, concurrency-serialized storage tiers - githubStore for shared, multi-writer canvas state via the GitHub Contents API (github-store.mjs) Also update two smoke-test assertions to match the kit's stricter input validation (enum errors now carry the input path prefix; a present-but- undefined optional prop is now type-checked, so "rate current" omits the optional article key instead of passing undefined). Mechanical re-vendor from the canonical kit; no hand-edited kit logic. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.
What
Re-vendor the canonical create-canvas-app kit (
2026-07-05.1→2026-07-07.6) into all six canvas extensions. The vendoredcanvas-kit/copies were behind the published kit and missed the recent hardening + feature work.Why
The extensions ship the kit verbatim (no npm, no build), so a published kit bump doesn't reach them until they're re-vendored. This sync brings in:
validate.mjs)net.mjs)githubStorefor shared, multi-writer canvas state via the GitHub Contents API (github-store.mjs)Scope
code-tutor,language-tutor,news-aggregator,random-animal,stock-ticker,wiki-discoverinput.path prefix (code-tutor)undefinedoptional prop is now type-checked, so "rate current" omits the optionalarticlekey instead of passingundefined(wiki-discover)Verification
Ran the full CI check set locally (matches
validate.yml):node scripts/lint.mjs→ clean (93.mjs, 15.json)node scripts/validate-extensions.mjs→ 6 extensions validnode scripts/run-tests.mjs→ 6 test files passedThe site gallery test is unaffected (it reads extension card metadata, not kit internals).