Skip to content

feat: add BitFun Canvas support#1400

Merged
GCWing merged 10 commits into
GCWing:mainfrom
wgqqqqq:codex/canvas-revision-workflow
Jul 4, 2026
Merged

feat: add BitFun Canvas support#1400
GCWing merged 10 commits into
GCWing:mainfrom
wgqqqqq:codex/canvas-revision-workflow

Conversation

@wgqqqqq

@wgqqqqq wgqqqqq commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add session-scoped BitFun Canvas tools, runtime, SDK components, and canvas-oriented skills
  • add PatchCanvas for exact targeted source edits alongside full-source UpdateCanvas
  • improve canvas source reading, runtime diagnostics, element selection references, HTML export, and panel refresh behavior
  • preserve aliased and namespace Canvas SDK imports through OXC AST analysis, including runtime bindings for imported aliases
  • move Canvas policy import/default-export checks onto OXC AST when the canvas feature is enabled
  • diagnose invalid useHostTheme token paths before runtime and queue an agent repair turn when a Canvas runtime failure is reported
  • merge latest upstream/main and document BitFun Canvas specialized near-color decisions required by the updated theme audit
  • align Canvas SDK action declarations with the runtime host actions and remove full compiled HTML from write-tool results

Verification

  • cargo test -p bitfun-core patch_canvas
  • cargo test -p bitfun-core shared_coding_mode_tools_include_plan_and_debug_specific_tools
  • cargo test -p bitfun-core cowork_mode_includes_init_miniapp_in_default_tools
  • cargo test -p bitfun-core claw_mode_includes_init_miniapp_in_default_tools
  • cargo test -p bitfun-tool-packs
  • cargo test -p bitfun-product-domains --features canvas canvas_compiler -- --nocapture
  • cargo test -p bitfun-product-domains --features canvas canvas_compiler_reports_invalid_host_theme_tokens -- --nocapture
  • cargo test -p bitfun-product-domains --no-default-features
  • cargo test -p bitfun-core create_read_and_update_canvas_round_trip -- --nocapture
  • pnpm run check:repo-hygiene
  • pnpm run check:github-config
  • pnpm run i18n:contract:test:ci
  • pnpm run i18n:audit
  • pnpm run theme:color-audit:test
  • pnpm run theme:color-audit
  • pnpm run theme:visual-contract
  • pnpm run lint:web
  • pnpm run type-check:web
  • pnpm --dir src/web-ui run test:run src/tools/bitfun-canvas/runtime/canvasRuntimeInstaller.test.ts
  • pnpm --dir src/web-ui run test:run src/tools/bitfun-canvas/BitfunCanvasPanel.test.tsx
  • pnpm --dir src/web-ui run test:run
  • pnpm run build:web
  • pnpm --dir src/mobile-web run type-check
  • pnpm run build:mobile-web
  • git diff --check

@wgqqqqq wgqqqqq force-pushed the codex/canvas-revision-workflow branch from 5d1d457 to 3dce707 Compare July 3, 2026 06:43
@wgqqqqq wgqqqqq changed the title Improve BitFun Canvas revision workflow Add BitFun Canvas support Jul 3, 2026
@wgqqqqq wgqqqqq changed the title Add BitFun Canvas support feat: add BitFun Canvas support Jul 3, 2026
@limityan

limityan commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator
  1. 尽可能不增加大量的颜色色值了,复用之前的,现在已经过度膨胀了
  2. Commit信息可以合一下,稍有点多
  3. 检查一下和docs/architecture/core-decomposition.md文档的一致性关系,要调整一下文件布局

@wgqqqqq wgqqqqq force-pushed the codex/canvas-revision-workflow branch 3 times, most recently from 93321c2 to 06589c2 Compare July 3, 2026 11:46
@wgqqqqq wgqqqqq force-pushed the codex/canvas-revision-workflow branch from 06589c2 to 6560c99 Compare July 3, 2026 12:12
@GCWing GCWing merged commit ea14b2d into GCWing:main Jul 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants