Commit graph

3 commits

Author SHA1 Message Date
Kayshen-X a4b7f62e9a Merge feat/rust-ification into v0.8.0 (Step 0 Rust workspace bootstrap)
Step 0 of OP Rust-ification (per kickoff spec v7 FROZEN):
- Cargo workspace at root (members = ["crates/*"], glob)
- 9 skeleton crates: openpencil-app, openpencil-shell-{core,web,native},
  pen-{types,core,engine,codegen,figma}
- rust-toolchain.toml pinned 1.85 (forced from 1.80 → 1.82 → 1.85
  due to crates.io ecosystem edition2024 requirements)
- deny.toml with kickoff §1.2 wasm32 ban invariant
- 2 GitHub Actions: rust-check.yml (3-platform native + cargo-deny)
  and wasm-bundle-check.yml (wasm32 forward + reverse cargo-deny bans)
- vendor/agent submodule → github.com/ZSeven-W/agent-rs
- Bun script wrappers (cargo:check / :test / :wasm-check / :deny)
- README "Rust subsystem" section + Phase boundary note

§1.2 invariants live:
- Forward wasm32 check: shell-web + 5 bucket A crates compile
- Reverse cargo-deny check bans: native + wasm32 both clean
- compile_error guard: shell-native fails wasm32 build with explicit
  message, validated by canary

Step 1+ owns real implementation; Phase 0 docs (snapshot / plan
patches / IPC inventory / parley-taffy matrix / cargo-deny validation)
in openpencil-docs.
2026-05-04 21:00:00 +08:00
MseeP.ai 112921c9ea Add MseeP.ai badge to README.md (#124) 2026-04-29 09:50:57 +08:00
Fini e80326473d feat(githooks): post-commit hook to auto-rebuild MCP binary
When element-tool source changes (pen-core/element-builders/, pen-mcp/
tools/, element-tool-defs*.ts, elements*.md), automatically regenerate
out/mcp-server.cjs so external MCP clients (Claude Code / Codex CLI /
Cursor) see the new tools.

Opt-in: requires \`git config core.hooksPath .githooks\` (one-time per
clone — same setup as the pre-commit version-sync hook). Without it,
the hook file sits dormant and dev rebuilds manually after element-tool
changes per add-checklist Step 8.

Real failure mode without this hook (2026-05-03): P3 shipped 94 v1
builders to source but mcp-server.cjs stayed 13 days stale; Codex CLI
+ gpt-5.5 generated 138 nodes, used 0 v1 tools.
2026-04-29 09:50:34 +08:00