Add a parse5-backed mutation path for CE HTML artifacts with docs and validation coverage. - Add safe CE HTML mutation helpers for open-question append, heading repair, whitespace normalization, visible-text replacement, atomic writes, and rollback on validation failure. - Cover DOM mutation behavior and ce-doc-review HTML-mode expectations with focused tests. - Update CE skill/reference guidance and workflow docs to require DOM-safe artifact edits with report-only fallback. - Add parse5 to the compound engineering plugin and record the published CLI changeset. Files changed: .changeset/fn-7149-dom-safe-html-mutation.md | 7 + docs/workflow-editor.md | 2 +- docs/workflow-steps.md | 10 +- .../package.json | 1 + .../src/__tests__/ce-doc-review-html-mode.test.ts | 38 +- .../src/artifacts/__tests__/html-mutation.test.ts | 228 +++++++++ .../src/artifacts/html-mutation.ts | 519 +++++++++++++++++++++ .../src/skills/ce-brainstorm/references/handoff.md | 12 +- .../ce-brainstorm/references/html-rendering.md | 12 +- .../src/skills/ce-doc-review/SKILL.md | 20 +- .../skills/ce-ideate/references/html-rendering.md | 12 +- .../src/skills/ce-plan/SKILL.md | 18 +- .../skills/ce-plan/references/html-rendering.md | 16 +- .../src/skills/ce-plan/references/plan-handoff.md | 24 +- pnpm-lock.yaml | 3 + 15 files changed, 853 insertions(+), 69 deletions(-) Fusion-Task-Id: FN-7149 Fusion-Task-Lineage: eaf84a8b-a52b-487d-9517-22e4499e8af7 Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
40 lines
1.0 KiB
JSON
40 lines
1.0 KiB
JSON
{
|
|
"name": "@fusion-plugin-examples/compound-engineering",
|
|
"version": "0.1.13",
|
|
"type": "module",
|
|
"description": "Compound Engineering plugin for Fusion",
|
|
"private": true,
|
|
"exports": {
|
|
".": {
|
|
"types": "./src/index.ts",
|
|
"import": "./src/index.ts"
|
|
},
|
|
"./dashboard-view": {
|
|
"types": "./src/dashboard-view.tsx",
|
|
"import": "./src/dashboard-view.tsx"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc && node scripts/copy-css.mjs",
|
|
"pretest": "node ../../scripts/ensure-test-artifacts.mjs",
|
|
"test": "vitest run --silent=passed-only --reporter=dot"
|
|
},
|
|
"dependencies": {
|
|
"@fusion/core": "workspace:*",
|
|
"@fusion/plugin-sdk": "workspace:*",
|
|
"lucide-react": "^0.542.0",
|
|
"parse5": "^8.0.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.2.4"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/jest-dom": "^6.6.3",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/react": "^19.0.0",
|
|
"@types/node": "^25.5.2",
|
|
"typescript": "^5.7.0",
|
|
"vitest": "^4.1.0"
|
|
}
|
|
}
|