- Remove the Zig `agent-native` git submodule (no Rust crate depends on it; the built-in agent runtime is the Rust `agent` crate under vendor/agent). - Make the repo root a pure Cargo workspace: delete root package.json + bun.lock; move all web-SDK JS/Bun tooling into packages/ (new packages/package.json workspace root, generate-iconify-catalog.mjs, and the oxlint/oxfmt configs). - Scrub agent-native from all docs and fix README dev commands + prerequisites to reflect the Rust product (cargo directly; bun tooling runs from packages/). - Drop the deleted-root-package.json read from the op-host-web ci_workflow test.
1.9 KiB
Packages
The web SDK packages that remain after the TypeScript retirement. This directory is the npm/Bun workspace root (packages/package.json); the repository root is a pure Cargo workspace with no package.json.
The
pen-*packages (pen-types, pen-core, pen-engine, pen-renderer, pen-figma, pen-mcp, pen-ai-skills, pen-sdk, pen-react, pen-acp) and pen-codegen were retired along withapps/*. Their functionality now lives in the Rustcrates/(seecrates/CLAUDE.md). Nothing here depends on them. Theagent-nativeZig runtime was also removed — the built-in agent runtime is now the Rustagentcrate (vendor/agent, shared with Zode).
Workspace tooling
Run these from packages/:
- Lint / format the SDK:
bun run lint(oxlint) /bun run format(oxfmt). - Iconify catalog (Rust assets):
bun run generate-iconify-catalog—scripts/generate-iconify-catalog.mjsreads@iconify-json/*and writescrates/op-editor-ui/assets/iconify-catalog-{core,brands}.json(the icon catalog embedded in / served by the Rust web target). - Bump SDK versions:
bun run bump <version>(syncs the SDKpackage.jsons; Rust versions live in Cargo.toml).
op-web-sdk (op-web-sdk/)
Read-only OpenPencil .op viewer SDK for the web, wasm-backed. Wraps the op-host-web CanvasKit wasm bundle behind a small JS/TS embedding API (mount / load .op / viewport control / zoom-to-fit). Replaces the public role of the retired pen-react (viewing only — editing is not a goal of the public SDK).
- Zero runtime dependencies; ships its own wasm under
wasm/. - Build:
tsup(bun run buildinside the package). Tests:vitest.
op-web-sdk-react (op-web-sdk-react/)
React 19 adapter for op-web-sdk (component + hooks wrapper). Depends only on @zseven-w/op-web-sdk (+ peer react / react-dom).
op-web-sdk-vue (op-web-sdk-vue/)
Vue 3 adapter for op-web-sdk. Depends only on @zseven-w/op-web-sdk (+ peer vue).