create-yss-spec 2.1.4 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/template/.agents/skills/high-fidelity-html-prototype/SKILL.md +16 -12
- package/template/.agents/skills/product-design-prototype/SKILL.md +6 -2
- package/template/.agents/skills/prototype-review/SKILL.md +6 -2
- package/template/.agents/skills/wireframe-prototype/SKILL.md +5 -1
- package/template/.agents/skills/yss-audit-log/references/source-index.md +4 -3
- package/template/.agents/skills/yss-cache/references/source-index.md +4 -3
- package/template/.agents/skills/yss-components/references/frontend-docs.md +1 -1
- package/template/.agents/skills/yss-db2mybatis/SKILL.md +6 -5
- package/template/.agents/skills/yss-db2mybatis/scripts/db2mybatis.mjs +145 -0
- package/template/.agents/skills/yss-db2mybatis/scripts/db2mybatis.test.mjs +32 -0
- package/template/.agents/skills/yss-ddd-scaffold-generator/SKILL.md +5 -5
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +2 -2
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +225 -0
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +32 -0
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +26 -0
- package/template/.agents/skills/yss-design-system/SKILL.md +6 -5
- package/template/.agents/skills/yss-design-system/scripts/validate-frontmatter.mjs +36 -0
- package/template/.agents/skills/yss-design-system/scripts/validate-frontmatter.test.mjs +12 -0
- package/template/.agents/skills/yss-dictionary/references/source-index.md +25 -25
- package/template/.agents/skills/yss-distributed-id/references/source-index.md +6 -6
- package/template/.agents/skills/yss-dto/references/source-index.md +7 -4
- package/template/.agents/skills/yss-excel-mvc/references/source-index.md +3 -3
- package/template/.agents/skills/yss-exception/references/source-index.md +3 -3
- package/template/.agents/skills/yss-hook/references/frontend-docs.md +1 -1
- package/template/.agents/skills/yss-jdbc/references/source-index.md +3 -3
- package/template/.agents/skills/yss-log/references/source-index.md +3 -3
- package/template/.agents/skills/yss-mybatis/references/source-index.md +3 -3
- package/template/.agents/skills/yss-page-module-development/references/frontend-docs.md +1 -1
- package/template/.agents/skills/yss-product-lifecycle/SKILL.md +4 -2
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
- package/template/.agents/skills/yss-prototype-stage/SKILL.md +40 -0
- package/template/.agents/skills/yss-resilience4j/references/source-index.md +3 -3
- package/template/.agents/skills/yss-router/references/router-contract.yaml +5 -2
- package/template/.agents/skills/yss-router/references/slice-implementation-contract.md +3 -0
- package/template/.agents/skills/yss-security-algorithm/references/source-index.md +3 -3
- package/template/.agents/skills/yss-source-index/SKILL.md +3 -3
- package/template/.agents/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +24 -0
- package/template/.agents/skills/yss-source-index/scripts/refresh-yss-skill-index.test.mjs +15 -0
- package/template/.agents/skills/yss-taskflow/references/source-index.md +3 -3
- package/template/.agents/skills/yss-ui/references/frontend-docs.md +1 -1
- package/template/.agents/skills/yss-use-table-height/references/frontend-docs.md +1 -1
- package/template/.agents/skills/yss-use-tree-height/references/frontend-docs.md +1 -1
- package/template/.agents/skills/yss-userinfo/references/source-index.md +3 -3
- package/template/.agents/skills/yss-validation/references/source-index.md +5 -24
- package/template/.agents/skills/yss-valuation/references/source-index.md +3 -3
- package/template/.agents/skills/yss-variable/references/source-index.md +6 -34
- package/template/.agents/skills/yss-web-controller/SKILL.md +4 -4
- package/template/.agents/skills/yss-web-controller/scripts/generate_controller.mjs +77 -0
- package/template/.agents/skills/yss-web-controller/scripts/generate_controller.test.mjs +19 -0
- package/template/.claude/skills/high-fidelity-html-prototype/SKILL.md +16 -12
- package/template/.claude/skills/product-design-prototype/SKILL.md +6 -2
- package/template/.claude/skills/prototype-review/SKILL.md +6 -2
- package/template/.claude/skills/wireframe-prototype/SKILL.md +5 -1
- package/template/.claude/skills/yss-audit-log/references/source-index.md +4 -3
- package/template/.claude/skills/yss-cache/references/source-index.md +4 -3
- package/template/.claude/skills/yss-components/references/frontend-docs.md +1 -1
- package/template/.claude/skills/yss-db2mybatis/SKILL.md +6 -5
- package/template/.claude/skills/yss-db2mybatis/scripts/db2mybatis.mjs +145 -0
- package/template/.claude/skills/yss-db2mybatis/scripts/db2mybatis.test.mjs +32 -0
- package/template/.claude/skills/yss-ddd-scaffold-generator/SKILL.md +5 -5
- package/template/.claude/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +2 -2
- package/template/.claude/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +225 -0
- package/template/.claude/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +32 -0
- package/template/.claude/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +26 -0
- package/template/.claude/skills/yss-design-system/SKILL.md +6 -5
- package/template/.claude/skills/yss-design-system/scripts/validate-frontmatter.mjs +36 -0
- package/template/.claude/skills/yss-design-system/scripts/validate-frontmatter.test.mjs +12 -0
- package/template/.claude/skills/yss-dictionary/references/source-index.md +25 -25
- package/template/.claude/skills/yss-distributed-id/references/source-index.md +6 -6
- package/template/.claude/skills/yss-dto/references/source-index.md +7 -4
- package/template/.claude/skills/yss-excel-mvc/references/source-index.md +3 -3
- package/template/.claude/skills/yss-exception/references/source-index.md +3 -3
- package/template/.claude/skills/yss-hook/references/frontend-docs.md +1 -1
- package/template/.claude/skills/yss-jdbc/references/source-index.md +3 -3
- package/template/.claude/skills/yss-log/references/source-index.md +3 -3
- package/template/.claude/skills/yss-mybatis/references/source-index.md +3 -3
- package/template/.claude/skills/yss-page-module-development/references/frontend-docs.md +1 -1
- package/template/.claude/skills/yss-product-lifecycle/SKILL.md +4 -2
- package/template/.claude/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
- package/template/.claude/skills/yss-prototype-stage/SKILL.md +40 -0
- package/template/.claude/skills/yss-resilience4j/references/source-index.md +3 -3
- package/template/.claude/skills/yss-router/references/router-contract.yaml +5 -2
- package/template/.claude/skills/yss-router/references/slice-implementation-contract.md +3 -0
- package/template/.claude/skills/yss-security-algorithm/references/source-index.md +3 -3
- package/template/.claude/skills/yss-source-index/SKILL.md +3 -3
- package/template/.claude/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +24 -0
- package/template/.claude/skills/yss-source-index/scripts/refresh-yss-skill-index.test.mjs +15 -0
- package/template/.claude/skills/yss-taskflow/references/source-index.md +3 -3
- package/template/.claude/skills/yss-ui/references/frontend-docs.md +1 -1
- package/template/.claude/skills/yss-use-table-height/references/frontend-docs.md +1 -1
- package/template/.claude/skills/yss-use-tree-height/references/frontend-docs.md +1 -1
- package/template/.claude/skills/yss-userinfo/references/source-index.md +3 -3
- package/template/.claude/skills/yss-validation/references/source-index.md +5 -24
- package/template/.claude/skills/yss-valuation/references/source-index.md +3 -3
- package/template/.claude/skills/yss-variable/references/source-index.md +6 -34
- package/template/.claude/skills/yss-web-controller/SKILL.md +4 -4
- package/template/.claude/skills/yss-web-controller/scripts/generate_controller.mjs +77 -0
- package/template/.claude/skills/yss-web-controller/scripts/generate_controller.test.mjs +19 -0
- package/template/.codex/skills/high-fidelity-html-prototype/SKILL.md +16 -12
- package/template/.codex/skills/product-design-prototype/SKILL.md +6 -2
- package/template/.codex/skills/prototype-review/SKILL.md +6 -2
- package/template/.codex/skills/wireframe-prototype/SKILL.md +5 -1
- package/template/.codex/skills/yss-audit-log/references/source-index.md +4 -3
- package/template/.codex/skills/yss-cache/references/source-index.md +4 -3
- package/template/.codex/skills/yss-components/references/frontend-docs.md +1 -1
- package/template/.codex/skills/yss-db2mybatis/SKILL.md +6 -5
- package/template/.codex/skills/yss-db2mybatis/scripts/db2mybatis.mjs +145 -0
- package/template/.codex/skills/yss-db2mybatis/scripts/db2mybatis.test.mjs +32 -0
- package/template/.codex/skills/yss-ddd-scaffold-generator/SKILL.md +5 -5
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +2 -2
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +225 -0
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +32 -0
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +26 -0
- package/template/.codex/skills/yss-design-system/SKILL.md +6 -5
- package/template/.codex/skills/yss-design-system/scripts/validate-frontmatter.mjs +36 -0
- package/template/.codex/skills/yss-design-system/scripts/validate-frontmatter.test.mjs +12 -0
- package/template/.codex/skills/yss-dictionary/references/source-index.md +25 -25
- package/template/.codex/skills/yss-distributed-id/references/source-index.md +6 -6
- package/template/.codex/skills/yss-dto/references/source-index.md +7 -4
- package/template/.codex/skills/yss-excel-mvc/references/source-index.md +3 -3
- package/template/.codex/skills/yss-exception/references/source-index.md +3 -3
- package/template/.codex/skills/yss-hook/references/frontend-docs.md +1 -1
- package/template/.codex/skills/yss-jdbc/references/source-index.md +3 -3
- package/template/.codex/skills/yss-log/references/source-index.md +3 -3
- package/template/.codex/skills/yss-mybatis/references/source-index.md +3 -3
- package/template/.codex/skills/yss-page-module-development/references/frontend-docs.md +1 -1
- package/template/.codex/skills/yss-product-lifecycle/SKILL.md +4 -2
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
- package/template/.codex/skills/yss-prototype-stage/SKILL.md +40 -0
- package/template/.codex/skills/yss-resilience4j/references/source-index.md +3 -3
- package/template/.codex/skills/yss-router/references/router-contract.yaml +5 -2
- package/template/.codex/skills/yss-router/references/slice-implementation-contract.md +3 -0
- package/template/.codex/skills/yss-security-algorithm/references/source-index.md +3 -3
- package/template/.codex/skills/yss-source-index/SKILL.md +3 -3
- package/template/.codex/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +24 -0
- package/template/.codex/skills/yss-source-index/scripts/refresh-yss-skill-index.test.mjs +15 -0
- package/template/.codex/skills/yss-taskflow/references/source-index.md +3 -3
- package/template/.codex/skills/yss-ui/references/frontend-docs.md +1 -1
- package/template/.codex/skills/yss-use-table-height/references/frontend-docs.md +1 -1
- package/template/.codex/skills/yss-use-tree-height/references/frontend-docs.md +1 -1
- package/template/.codex/skills/yss-userinfo/references/source-index.md +3 -3
- package/template/.codex/skills/yss-validation/references/source-index.md +5 -24
- package/template/.codex/skills/yss-valuation/references/source-index.md +3 -3
- package/template/.codex/skills/yss-variable/references/source-index.md +6 -34
- package/template/.codex/skills/yss-web-controller/SKILL.md +4 -4
- package/template/.codex/skills/yss-web-controller/scripts/generate_controller.mjs +77 -0
- package/template/.codex/skills/yss-web-controller/scripts/generate_controller.test.mjs +19 -0
- package/template/.github/workflows/template-node-tooling.yml +59 -0
- package/template/.hermes/skills/high-fidelity-html-prototype/SKILL.md +16 -12
- package/template/.hermes/skills/product-design-prototype/SKILL.md +6 -2
- package/template/.hermes/skills/prototype-review/SKILL.md +6 -2
- package/template/.hermes/skills/wireframe-prototype/SKILL.md +5 -1
- package/template/.hermes/skills/yss-audit-log/references/source-index.md +4 -3
- package/template/.hermes/skills/yss-cache/references/source-index.md +4 -3
- package/template/.hermes/skills/yss-components/references/frontend-docs.md +1 -1
- package/template/.hermes/skills/yss-db2mybatis/SKILL.md +6 -5
- package/template/.hermes/skills/yss-db2mybatis/scripts/db2mybatis.mjs +145 -0
- package/template/.hermes/skills/yss-db2mybatis/scripts/db2mybatis.test.mjs +32 -0
- package/template/.hermes/skills/yss-ddd-scaffold-generator/SKILL.md +5 -5
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +2 -2
- package/template/.hermes/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +225 -0
- package/template/.hermes/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +32 -0
- package/template/.hermes/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +26 -0
- package/template/.hermes/skills/yss-design-system/SKILL.md +6 -5
- package/template/.hermes/skills/yss-design-system/scripts/validate-frontmatter.mjs +36 -0
- package/template/.hermes/skills/yss-design-system/scripts/validate-frontmatter.test.mjs +12 -0
- package/template/.hermes/skills/yss-dictionary/references/source-index.md +25 -25
- package/template/.hermes/skills/yss-distributed-id/references/source-index.md +6 -6
- package/template/.hermes/skills/yss-dto/references/source-index.md +7 -4
- package/template/.hermes/skills/yss-excel-mvc/references/source-index.md +3 -3
- package/template/.hermes/skills/yss-exception/references/source-index.md +3 -3
- package/template/.hermes/skills/yss-hook/references/frontend-docs.md +1 -1
- package/template/.hermes/skills/yss-jdbc/references/source-index.md +3 -3
- package/template/.hermes/skills/yss-log/references/source-index.md +3 -3
- package/template/.hermes/skills/yss-mybatis/references/source-index.md +3 -3
- package/template/.hermes/skills/yss-page-module-development/references/frontend-docs.md +1 -1
- package/template/.hermes/skills/yss-product-lifecycle/SKILL.md +4 -2
- package/template/.hermes/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
- package/template/.hermes/skills/yss-prototype-stage/SKILL.md +40 -0
- package/template/.hermes/skills/yss-resilience4j/references/source-index.md +3 -3
- package/template/.hermes/skills/yss-router/references/router-contract.yaml +5 -2
- package/template/.hermes/skills/yss-router/references/slice-implementation-contract.md +3 -0
- package/template/.hermes/skills/yss-security-algorithm/references/source-index.md +3 -3
- package/template/.hermes/skills/yss-source-index/SKILL.md +3 -3
- package/template/.hermes/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +24 -0
- package/template/.hermes/skills/yss-source-index/scripts/refresh-yss-skill-index.test.mjs +15 -0
- package/template/.hermes/skills/yss-taskflow/references/source-index.md +3 -3
- package/template/.hermes/skills/yss-ui/references/frontend-docs.md +1 -1
- package/template/.hermes/skills/yss-use-table-height/references/frontend-docs.md +1 -1
- package/template/.hermes/skills/yss-use-tree-height/references/frontend-docs.md +1 -1
- package/template/.hermes/skills/yss-userinfo/references/source-index.md +3 -3
- package/template/.hermes/skills/yss-validation/references/source-index.md +5 -24
- package/template/.hermes/skills/yss-valuation/references/source-index.md +3 -3
- package/template/.hermes/skills/yss-variable/references/source-index.md +6 -34
- package/template/.hermes/skills/yss-web-controller/SKILL.md +4 -4
- package/template/.hermes/skills/yss-web-controller/scripts/generate_controller.mjs +77 -0
- package/template/.hermes/skills/yss-web-controller/scripts/generate_controller.test.mjs +19 -0
- package/template/.nvmrc +1 -0
- package/template/.pi/skills/high-fidelity-html-prototype/SKILL.md +16 -12
- package/template/.pi/skills/product-design-prototype/SKILL.md +6 -2
- package/template/.pi/skills/prototype-review/SKILL.md +6 -2
- package/template/.pi/skills/wireframe-prototype/SKILL.md +5 -1
- package/template/.pi/skills/yss-audit-log/references/source-index.md +4 -3
- package/template/.pi/skills/yss-cache/references/source-index.md +4 -3
- package/template/.pi/skills/yss-components/references/frontend-docs.md +1 -1
- package/template/.pi/skills/yss-db2mybatis/SKILL.md +6 -5
- package/template/.pi/skills/yss-db2mybatis/scripts/db2mybatis.mjs +145 -0
- package/template/.pi/skills/yss-db2mybatis/scripts/db2mybatis.test.mjs +32 -0
- package/template/.pi/skills/yss-ddd-scaffold-generator/SKILL.md +5 -5
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +2 -2
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +225 -0
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +32 -0
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +26 -0
- package/template/.pi/skills/yss-design-system/SKILL.md +6 -5
- package/template/.pi/skills/yss-design-system/scripts/validate-frontmatter.mjs +36 -0
- package/template/.pi/skills/yss-design-system/scripts/validate-frontmatter.test.mjs +12 -0
- package/template/.pi/skills/yss-dictionary/references/source-index.md +25 -25
- package/template/.pi/skills/yss-distributed-id/references/source-index.md +6 -6
- package/template/.pi/skills/yss-dto/references/source-index.md +7 -4
- package/template/.pi/skills/yss-excel-mvc/references/source-index.md +3 -3
- package/template/.pi/skills/yss-exception/references/source-index.md +3 -3
- package/template/.pi/skills/yss-hook/references/frontend-docs.md +1 -1
- package/template/.pi/skills/yss-jdbc/references/source-index.md +3 -3
- package/template/.pi/skills/yss-log/references/source-index.md +3 -3
- package/template/.pi/skills/yss-mybatis/references/source-index.md +3 -3
- package/template/.pi/skills/yss-page-module-development/references/frontend-docs.md +1 -1
- package/template/.pi/skills/yss-product-lifecycle/SKILL.md +4 -2
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
- package/template/.pi/skills/yss-prototype-stage/SKILL.md +40 -0
- package/template/.pi/skills/yss-resilience4j/references/source-index.md +3 -3
- package/template/.pi/skills/yss-router/references/router-contract.yaml +5 -2
- package/template/.pi/skills/yss-router/references/slice-implementation-contract.md +3 -0
- package/template/.pi/skills/yss-security-algorithm/references/source-index.md +3 -3
- package/template/.pi/skills/yss-source-index/SKILL.md +3 -3
- package/template/.pi/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +24 -0
- package/template/.pi/skills/yss-source-index/scripts/refresh-yss-skill-index.test.mjs +15 -0
- package/template/.pi/skills/yss-taskflow/references/source-index.md +3 -3
- package/template/.pi/skills/yss-ui/references/frontend-docs.md +1 -1
- package/template/.pi/skills/yss-use-table-height/references/frontend-docs.md +1 -1
- package/template/.pi/skills/yss-use-tree-height/references/frontend-docs.md +1 -1
- package/template/.pi/skills/yss-userinfo/references/source-index.md +3 -3
- package/template/.pi/skills/yss-validation/references/source-index.md +5 -24
- package/template/.pi/skills/yss-valuation/references/source-index.md +3 -3
- package/template/.pi/skills/yss-variable/references/source-index.md +6 -34
- package/template/.pi/skills/yss-web-controller/SKILL.md +4 -4
- package/template/.pi/skills/yss-web-controller/scripts/generate_controller.mjs +77 -0
- package/template/.pi/skills/yss-web-controller/scripts/generate_controller.test.mjs +19 -0
- package/template/.qoder/skills/high-fidelity-html-prototype/SKILL.md +16 -12
- package/template/.qoder/skills/product-design-prototype/SKILL.md +6 -2
- package/template/.qoder/skills/prototype-review/SKILL.md +6 -2
- package/template/.qoder/skills/wireframe-prototype/SKILL.md +5 -1
- package/template/.qoder/skills/yss-audit-log/references/source-index.md +4 -3
- package/template/.qoder/skills/yss-cache/references/source-index.md +4 -3
- package/template/.qoder/skills/yss-components/references/frontend-docs.md +1 -1
- package/template/.qoder/skills/yss-db2mybatis/SKILL.md +6 -5
- package/template/.qoder/skills/yss-db2mybatis/scripts/db2mybatis.mjs +145 -0
- package/template/.qoder/skills/yss-db2mybatis/scripts/db2mybatis.test.mjs +32 -0
- package/template/.qoder/skills/yss-ddd-scaffold-generator/SKILL.md +5 -5
- package/template/.qoder/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +2 -2
- package/template/.qoder/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +225 -0
- package/template/.qoder/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +32 -0
- package/template/.qoder/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +26 -0
- package/template/.qoder/skills/yss-design-system/SKILL.md +6 -5
- package/template/.qoder/skills/yss-design-system/scripts/validate-frontmatter.mjs +36 -0
- package/template/.qoder/skills/yss-design-system/scripts/validate-frontmatter.test.mjs +12 -0
- package/template/.qoder/skills/yss-dictionary/references/source-index.md +25 -25
- package/template/.qoder/skills/yss-distributed-id/references/source-index.md +6 -6
- package/template/.qoder/skills/yss-dto/references/source-index.md +7 -4
- package/template/.qoder/skills/yss-excel-mvc/references/source-index.md +3 -3
- package/template/.qoder/skills/yss-exception/references/source-index.md +3 -3
- package/template/.qoder/skills/yss-hook/references/frontend-docs.md +1 -1
- package/template/.qoder/skills/yss-jdbc/references/source-index.md +3 -3
- package/template/.qoder/skills/yss-log/references/source-index.md +3 -3
- package/template/.qoder/skills/yss-mybatis/references/source-index.md +3 -3
- package/template/.qoder/skills/yss-page-module-development/references/frontend-docs.md +1 -1
- package/template/.qoder/skills/yss-product-lifecycle/SKILL.md +4 -2
- package/template/.qoder/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
- package/template/.qoder/skills/yss-prototype-stage/SKILL.md +40 -0
- package/template/.qoder/skills/yss-resilience4j/references/source-index.md +3 -3
- package/template/.qoder/skills/yss-router/references/router-contract.yaml +5 -2
- package/template/.qoder/skills/yss-router/references/slice-implementation-contract.md +3 -0
- package/template/.qoder/skills/yss-security-algorithm/references/source-index.md +3 -3
- package/template/.qoder/skills/yss-source-index/SKILL.md +3 -3
- package/template/.qoder/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +24 -0
- package/template/.qoder/skills/yss-source-index/scripts/refresh-yss-skill-index.test.mjs +15 -0
- package/template/.qoder/skills/yss-taskflow/references/source-index.md +3 -3
- package/template/.qoder/skills/yss-ui/references/frontend-docs.md +1 -1
- package/template/.qoder/skills/yss-use-table-height/references/frontend-docs.md +1 -1
- package/template/.qoder/skills/yss-use-tree-height/references/frontend-docs.md +1 -1
- package/template/.qoder/skills/yss-userinfo/references/source-index.md +3 -3
- package/template/.qoder/skills/yss-validation/references/source-index.md +5 -24
- package/template/.qoder/skills/yss-valuation/references/source-index.md +3 -3
- package/template/.qoder/skills/yss-variable/references/source-index.md +6 -34
- package/template/.qoder/skills/yss-web-controller/SKILL.md +4 -4
- package/template/.qoder/skills/yss-web-controller/scripts/generate_controller.mjs +77 -0
- package/template/.qoder/skills/yss-web-controller/scripts/generate_controller.test.mjs +19 -0
- package/template/.trae/skills/high-fidelity-html-prototype/SKILL.md +16 -12
- package/template/.trae/skills/product-design-prototype/SKILL.md +6 -2
- package/template/.trae/skills/prototype-review/SKILL.md +6 -2
- package/template/.trae/skills/wireframe-prototype/SKILL.md +5 -1
- package/template/.trae/skills/yss-audit-log/references/source-index.md +4 -3
- package/template/.trae/skills/yss-cache/references/source-index.md +4 -3
- package/template/.trae/skills/yss-components/references/frontend-docs.md +1 -1
- package/template/.trae/skills/yss-db2mybatis/SKILL.md +6 -5
- package/template/.trae/skills/yss-db2mybatis/scripts/db2mybatis.mjs +145 -0
- package/template/.trae/skills/yss-db2mybatis/scripts/db2mybatis.test.mjs +32 -0
- package/template/.trae/skills/yss-ddd-scaffold-generator/SKILL.md +5 -5
- package/template/.trae/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +2 -2
- package/template/.trae/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +225 -0
- package/template/.trae/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +32 -0
- package/template/.trae/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +26 -0
- package/template/.trae/skills/yss-design-system/SKILL.md +6 -5
- package/template/.trae/skills/yss-design-system/scripts/validate-frontmatter.mjs +36 -0
- package/template/.trae/skills/yss-design-system/scripts/validate-frontmatter.test.mjs +12 -0
- package/template/.trae/skills/yss-dictionary/references/source-index.md +25 -25
- package/template/.trae/skills/yss-distributed-id/references/source-index.md +6 -6
- package/template/.trae/skills/yss-dto/references/source-index.md +7 -4
- package/template/.trae/skills/yss-excel-mvc/references/source-index.md +3 -3
- package/template/.trae/skills/yss-exception/references/source-index.md +3 -3
- package/template/.trae/skills/yss-hook/references/frontend-docs.md +1 -1
- package/template/.trae/skills/yss-jdbc/references/source-index.md +3 -3
- package/template/.trae/skills/yss-log/references/source-index.md +3 -3
- package/template/.trae/skills/yss-mybatis/references/source-index.md +3 -3
- package/template/.trae/skills/yss-page-module-development/references/frontend-docs.md +1 -1
- package/template/.trae/skills/yss-product-lifecycle/SKILL.md +4 -2
- package/template/.trae/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
- package/template/.trae/skills/yss-prototype-stage/SKILL.md +40 -0
- package/template/.trae/skills/yss-resilience4j/references/source-index.md +3 -3
- package/template/.trae/skills/yss-router/references/router-contract.yaml +5 -2
- package/template/.trae/skills/yss-router/references/slice-implementation-contract.md +3 -0
- package/template/.trae/skills/yss-security-algorithm/references/source-index.md +3 -3
- package/template/.trae/skills/yss-source-index/SKILL.md +3 -3
- package/template/.trae/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +24 -0
- package/template/.trae/skills/yss-source-index/scripts/refresh-yss-skill-index.test.mjs +15 -0
- package/template/.trae/skills/yss-taskflow/references/source-index.md +3 -3
- package/template/.trae/skills/yss-ui/references/frontend-docs.md +1 -1
- package/template/.trae/skills/yss-use-table-height/references/frontend-docs.md +1 -1
- package/template/.trae/skills/yss-use-tree-height/references/frontend-docs.md +1 -1
- package/template/.trae/skills/yss-userinfo/references/source-index.md +3 -3
- package/template/.trae/skills/yss-validation/references/source-index.md +5 -24
- package/template/.trae/skills/yss-valuation/references/source-index.md +3 -3
- package/template/.trae/skills/yss-variable/references/source-index.md +6 -34
- package/template/.trae/skills/yss-web-controller/SKILL.md +4 -4
- package/template/.trae/skills/yss-web-controller/scripts/generate_controller.mjs +77 -0
- package/template/.trae/skills/yss-web-controller/scripts/generate_controller.test.mjs +19 -0
- package/template/AGENTS.md +1 -1
- package/template/CONTEXT.md +2 -0
- package/template/README.md +0 -2
- package/template/__yss_dotfile__.gitignore +2 -17
- package/template/docs/adr/0001-product-design-prototype-entrypoint.md +1 -1
- package/template/docs/agents/skills-maintenance.md +2 -0
- package/template/docs/architecture/README.md +1 -18
- package/template/docs/design/README.md +5 -4
- package/template/docs/design/design.md +4 -0
- package/template/docs/design/templates/interaction-spec-template.md +3 -3
- package/template/docs/design/templates/prototype-confirmation-template.md +9 -6
- package/template/docs/design/templates/prototype-evidence-template.yaml +46 -0
- package/template/docs/design/templates/prototype-review-checklist.md +4 -4
- package/template/docs/process/lifecycle-artifact-map.md +10 -1
- package/template/docs/process/lifecycle-registry-baseline.json +10 -1
- package/template/docs/process/lifecycle-registry.yaml +35 -1
- package/template/docs/user-guide//345/244/226/351/203/250/345/221/275/344/273/244/350/241/214/345/267/245/345/205/267/345/256/236/350/267/265/346/214/207/345/215/227.md +1 -1
- package/template/docs/user-guide//350/247/204/346/240/274/344/270/216/344/273/273/345/212/241/350/277/201/347/247/273/346/214/207/345/215/227.md +4 -0
- package/template/scripts/export-yss-skills +3 -385
- package/template/scripts/generate-lifecycle-artifacts +2 -26
- package/template/scripts/implementation-path-policy +6 -0
- package/template/scripts/lib/export-skills.mjs +186 -0
- package/template/scripts/lib/implementation-path-policy.mjs +32 -0
- package/template/scripts/lib/lifecycle-registry.mjs +175 -0
- package/template/scripts/lib/repository-mode.mjs +39 -0
- package/template/scripts/lib/scenario-checks.mjs +54 -0
- package/template/scripts/lib/skill-supply-chain.mjs +124 -0
- package/template/scripts/node-generate-lifecycle-artifacts.mjs +33 -0
- package/template/scripts/node-verify-lifecycle-registry.mjs +61 -0
- package/template/scripts/repository-mode +9 -0
- package/template/scripts/sync-skills +9 -154
- package/template/scripts/update-skill-lock +8 -254
- package/template/scripts/vendor/NOTICES.md +45 -0
- package/template/scripts/vendor/manifest.json +563 -0
- package/template/scripts/vendor/xml.mjs +4103 -0
- package/template/scripts/vendor/yaml.mjs +6311 -0
- package/template/scripts/verify-governance-release +37 -38
- package/template/scripts/verify-implementation-path-scenarios +36 -39
- package/template/scripts/verify-lifecycle-registry +2 -67
- package/template/scripts/verify-lifecycle-scenarios +4 -621
- package/template/scripts/verify-matt-yss-integration-scenarios +3 -801
- package/template/scripts/verify-openapi-json-handoff-scenarios +3 -270
- package/template/scripts/verify-openapi-yaml-first-scenarios +3 -120
- package/template/scripts/verify-prototype-backend-scaffold-scenarios +3 -239
- package/template/scripts/verify-scaffold-generator-scenarios +4 -4
- package/template/scripts/verify-template +18 -277
- package/template/scripts/verify-yss-router-scenarios +3 -933
- package/template/scripts/verify-yss-ui-scenarios +54 -65
- package/template/skills-lock.json +103 -163
- package/template/wiki/raw/README.md +0 -2
- package/template/wiki/raw/skills-lock.json +0 -75
- package/template/yss-public-skills.json +2 -0
- package/template.manifest.json +1 -0
- package/template.snapshot.json +5 -26
- package/template/.agents/skills/beautiful-article/README.md +0 -450
- package/template/.agents/skills/beautiful-article/README.zh-CN.md +0 -450
- package/template/.agents/skills/beautiful-article/SKILL.md +0 -466
- package/template/.agents/skills/beautiful-article/assets/scaffold-template/__yss_dotfile__.npmrc +0 -1
- package/template/.agents/skills/beautiful-article/assets/scaffold-template/article/Article.tsx +0 -69
- package/template/.agents/skills/beautiful-article/assets/scaffold-template/article/Cover.tsx +0 -172
- package/template/.agents/skills/beautiful-article/assets/scaffold-template/article/main.tsx +0 -26
- package/template/.agents/skills/beautiful-article/assets/scaffold-template/article/sections/01-opening.tsx +0 -30
- package/template/.agents/skills/beautiful-article/assets/scaffold-template/index.html +0 -19
- package/template/.agents/skills/beautiful-article/assets/scaffold-template/package.json +0 -26
- package/template/.agents/skills/beautiful-article/assets/scaffold-template/tsconfig.json +0 -20
- package/template/.agents/skills/beautiful-article/assets/scaffold-template/tsconfig.node.json +0 -11
- package/template/.agents/skills/beautiful-article/assets/scaffold-template/vite.config.ts +0 -18
- package/template/.agents/skills/beautiful-article/manifest.json +0 -15
- package/template/.agents/skills/beautiful-article/references/article-types/briefing.md +0 -32
- package/template/.agents/skills/beautiful-article/references/article-types/dialogue.md +0 -30
- package/template/.agents/skills/beautiful-article/references/article-types/essay.md +0 -31
- package/template/.agents/skills/beautiful-article/references/article-types/explainer.md +0 -32
- package/template/.agents/skills/beautiful-article/references/article-types/full-report.md +0 -32
- package/template/.agents/skills/beautiful-article/references/article-types/interactive-explainer.md +0 -66
- package/template/.agents/skills/beautiful-article/references/article-types/longform.md +0 -32
- package/template/.agents/skills/beautiful-article/references/article-types/review.md +0 -32
- package/template/.agents/skills/beautiful-article/references/article-types/tutorial.md +0 -30
- package/template/.agents/skills/beautiful-article/references/article-types/visual-essay.md +0 -33
- package/template/.agents/skills/beautiful-article/references/article-types.md +0 -42
- package/template/.agents/skills/beautiful-article/references/asset-policy.md +0 -71
- package/template/.agents/skills/beautiful-article/references/component-policy.md +0 -103
- package/template/.agents/skills/beautiful-article/references/cover.md +0 -208
- package/template/.agents/skills/beautiful-article/references/harness.md +0 -35
- package/template/.agents/skills/beautiful-article/references/html-output.md +0 -42
- package/template/.agents/skills/beautiful-article/references/information-density.md +0 -50
- package/template/.agents/skills/beautiful-article/references/layout.md +0 -46
- package/template/.agents/skills/beautiful-article/references/pdf-output.md +0 -208
- package/template/.agents/skills/beautiful-article/references/plan-template.md +0 -109
- package/template/.agents/skills/beautiful-article/references/raw-policy.md +0 -86
- package/template/.agents/skills/beautiful-article/references/repair-policy.md +0 -35
- package/template/.agents/skills/beautiful-article/references/review-checklist.md +0 -133
- package/template/.agents/skills/beautiful-article/references/scaffold.md +0 -77
- package/template/.agents/skills/beautiful-article/references/section-build.md +0 -100
- package/template/.agents/skills/beautiful-article/references/source-to-markdown.md +0 -118
- package/template/.agents/skills/beautiful-article/references/theme-selection.md +0 -48
- package/template/.agents/skills/beautiful-article/scripts/html-to-pdf.sh +0 -160
- package/template/.agents/skills/beautiful-article/scripts/pdf-print-overrides.css +0 -192
- package/template/.agents/skills/beautiful-article/scripts/scaffold.sh +0 -172
- package/template/.agents/skills/beautiful-article/scripts/source-to-markdown-markitdown.py +0 -100
- package/template/.agents/skills/beautiful-article/scripts/source-to-markdown.py +0 -174
- package/template/.agents/skills/beautiful-article/theme-profiles/andy.md +0 -57
- package/template/.agents/skills/beautiful-article/theme-profiles/bayer.md +0 -57
- package/template/.agents/skills/beautiful-article/theme-profiles/bodoni.md +0 -57
- package/template/.agents/skills/beautiful-article/theme-profiles/freddie.md +0 -57
- package/template/.agents/skills/beautiful-article/theme-profiles/fuller.md +0 -56
- package/template/.agents/skills/beautiful-article/theme-profiles/index.json +0 -112
- package/template/.agents/skills/beautiful-article/theme-profiles/knuth.md +0 -60
- package/template/.agents/skills/beautiful-article/theme-profiles/press.md +0 -61
- package/template/.agents/skills/beautiful-article/theme-profiles/shannon.md +0 -64
- package/template/.agents/skills/beautiful-article/theme-profiles/sottsass.md +0 -57
- package/template/.agents/skills/beautiful-article/theme-profiles/tufte.md +0 -64
- package/template/.agents/skills/beautiful-article/theme-profiles/vignelli.md +0 -63
- package/template/.agents/skills/drawio/.mcp.json +0 -8
- package/template/.agents/skills/drawio/CHANGELOG.md +0 -216
- package/template/.agents/skills/drawio/SKILL.md +0 -157
- package/template/.agents/skills/drawio/agents/interface.yaml +0 -26
- package/template/.agents/skills/drawio/agents/openai.yaml +0 -26
- package/template/.agents/skills/drawio/assets/catalog/ai-icons.json.gz +0 -0
- package/template/.agents/skills/drawio/assets/catalog/shape-catalog.json.gz +0 -0
- package/template/.agents/skills/drawio/assets/catalog/shape-index.json.gz +0 -0
- package/template/.agents/skills/drawio/assets/examples/login-flow-test.drawio +0 -6
- package/template/.agents/skills/drawio/assets/examples/login-flow.drawio +0 -6
- package/template/.agents/skills/drawio/assets/examples/microservices.drawio +0 -6
- package/template/.agents/skills/drawio/assets/examples/neural-network.drawio +0 -6
- package/template/.agents/skills/drawio/assets/licenses/architecture-diagram-generator-MIT.txt +0 -26
- package/template/.agents/skills/drawio/assets/licenses/drawio-mcp-shape-index-Apache-2.0.txt +0 -8
- package/template/.agents/skills/drawio/assets/licenses/lobe-icons-MIT.txt +0 -26
- package/template/.agents/skills/drawio/assets/licenses/lucide-ISC.txt +0 -41
- package/template/.agents/skills/drawio/assets/palettes/c4-blue.json +0 -29
- package/template/.agents/skills/drawio/assets/palettes/cloud-aws.json +0 -30
- package/template/.agents/skills/drawio/assets/palettes/drawio-classic.json +0 -21
- package/template/.agents/skills/drawio/assets/palettes/ieee-bw.json +0 -26
- package/template/.agents/skills/drawio/assets/palettes/ieee-color.json +0 -17
- package/template/.agents/skills/drawio/assets/palettes/journal-jama.json +0 -20
- package/template/.agents/skills/drawio/assets/palettes/journal-npg.json +0 -23
- package/template/.agents/skills/drawio/assets/palettes/matlab-lines.json +0 -20
- package/template/.agents/skills/drawio/assets/palettes/morandi.json +0 -21
- package/template/.agents/skills/drawio/assets/palettes/okabe-ito.json +0 -21
- package/template/.agents/skills/drawio/assets/palettes/seaborn-colorblind.json +0 -23
- package/template/.agents/skills/drawio/assets/palettes/tol-bright.json +0 -20
- package/template/.agents/skills/drawio/assets/palettes/tol-high-contrast.json +0 -18
- package/template/.agents/skills/drawio/assets/palettes/tol-light-fill.json +0 -22
- package/template/.agents/skills/drawio/assets/palettes/tol-muted.json +0 -22
- package/template/.agents/skills/drawio/assets/schemas/graph-projection.schema.json +0 -135
- package/template/.agents/skills/drawio/assets/schemas/spec.schema.json +0 -620
- package/template/.agents/skills/drawio/assets/themes/academic-color.json +0 -299
- package/template/.agents/skills/drawio/assets/themes/academic.json +0 -245
- package/template/.agents/skills/drawio/assets/themes/arch-dark.json +0 -253
- package/template/.agents/skills/drawio/assets/themes/blueprint.json +0 -246
- package/template/.agents/skills/drawio/assets/themes/dark-luxury.json +0 -246
- package/template/.agents/skills/drawio/assets/themes/dark-terminal.json +0 -244
- package/template/.agents/skills/drawio/assets/themes/dark.json +0 -220
- package/template/.agents/skills/drawio/assets/themes/high-contrast.json +0 -220
- package/template/.agents/skills/drawio/assets/themes/nature.json +0 -220
- package/template/.agents/skills/drawio/assets/themes/notion-clean.json +0 -246
- package/template/.agents/skills/drawio/assets/themes/tech-blue.json +0 -220
- package/template/.agents/skills/drawio/evals/README.md +0 -17
- package/template/.agents/skills/drawio/evals/ai-icon-catalog-cases.json +0 -89
- package/template/.agents/skills/drawio/evals/baseline-prompts.json +0 -122
- package/template/.agents/skills/drawio/evals/darwin-results.tsv +0 -4
- package/template/.agents/skills/drawio/evals/evals.json +0 -223
- package/template/.agents/skills/drawio/evals/evidence/ai-icon-catalog-desktop.json +0 -134
- package/template/.agents/skills/drawio/evals/fixtures/ai-icons-advanced-svg.yaml +0 -25
- package/template/.agents/skills/drawio/evals/fixtures/ai-icons-cjk-agent-rag.yaml +0 -55
- package/template/.agents/skills/drawio/evals/fixtures/ai-icons-core-aliases.yaml +0 -50
- package/template/.agents/skills/drawio/evals/fixtures/ai-icons-current-color.yaml +0 -25
- package/template/.agents/skills/drawio/evals/fixtures/ai-icons-gradients.yaml +0 -25
- package/template/.agents/skills/drawio/evals/fixtures/import-simple-compressed.drawio +0 -5
- package/template/.agents/skills/drawio/evals/fixtures/import-simple.drawio +0 -28
- package/template/.agents/skills/drawio/evals/fixtures/industrial-architecture.yaml +0 -239
- package/template/.agents/skills/drawio/evals/fixtures/replicate-academic-highlight.svg +0 -13
- package/template/.agents/skills/drawio/evals/fixtures/replicate-brand-architecture.svg +0 -14
- package/template/.agents/skills/drawio/evals/fixtures/replicate-warm-approval.svg +0 -13
- package/template/.agents/skills/drawio/evals/fixtures/vision-tall-workflow.yaml +0 -47
- package/template/.agents/skills/drawio/evals/upstream-integration-cases.json +0 -78
- package/template/.agents/skills/drawio/evals/vision-preview-cases.json +0 -147
- package/template/.agents/skills/drawio/references/docs/agent-diagrams.md +0 -164
- package/template/.agents/skills/drawio/references/docs/ah-format.md +0 -322
- package/template/.agents/skills/drawio/references/docs/architecture-diagrams.md +0 -159
- package/template/.agents/skills/drawio/references/docs/canonical-graph-projection.md +0 -54
- package/template/.agents/skills/drawio/references/docs/code-importers.md +0 -53
- package/template/.agents/skills/drawio/references/docs/config-importers.md +0 -68
- package/template/.agents/skills/drawio/references/docs/design-system/README.md +0 -204
- package/template/.agents/skills/drawio/references/docs/design-system/color-guide.md +0 -255
- package/template/.agents/skills/drawio/references/docs/design-system/connectors.md +0 -388
- package/template/.agents/skills/drawio/references/docs/design-system/formulas.md +0 -196
- package/template/.agents/skills/drawio/references/docs/design-system/icons.md +0 -332
- package/template/.agents/skills/drawio/references/docs/design-system/shapes.md +0 -269
- package/template/.agents/skills/drawio/references/docs/design-system/specification.md +0 -754
- package/template/.agents/skills/drawio/references/docs/design-system/themes.md +0 -441
- package/template/.agents/skills/drawio/references/docs/design-system/tokens.md +0 -232
- package/template/.agents/skills/drawio/references/docs/edge-quality-rules.md +0 -65
- package/template/.agents/skills/drawio/references/docs/ieee-network-diagrams.md +0 -145
- package/template/.agents/skills/drawio/references/docs/live-snapshots-drift.md +0 -72
- package/template/.agents/skills/drawio/references/docs/math-typesetting.md +0 -258
- package/template/.agents/skills/drawio/references/docs/mcp-tools.md +0 -85
- package/template/.agents/skills/drawio/references/docs/migration-readiness.md +0 -73
- package/template/.agents/skills/drawio/references/docs/stencil-library-guide.md +0 -97
- package/template/.agents/skills/drawio/references/docs/style-extraction.md +0 -261
- package/template/.agents/skills/drawio/references/docs/style-presets.md +0 -126
- package/template/.agents/skills/drawio/references/docs/upstream-capability-compatibility.md +0 -61
- package/template/.agents/skills/drawio/references/docs/xml-format.md +0 -53
- package/template/.agents/skills/drawio/references/examples/README.md +0 -33
- package/template/.agents/skills/drawio/references/examples/agentic-rag.yaml +0 -71
- package/template/.agents/skills/drawio/references/examples/arch-dark-aws-serverless.yaml +0 -103
- package/template/.agents/skills/drawio/references/examples/arch-dark-microservices.yaml +0 -146
- package/template/.agents/skills/drawio/references/examples/arch-dark-web-app.yaml +0 -62
- package/template/.agents/skills/drawio/references/examples/auto-layout-workflow.yaml +0 -81
- package/template/.agents/skills/drawio/references/examples/aws-vpc-topology.yaml +0 -66
- package/template/.agents/skills/drawio/references/examples/campus-lan-topology.yaml +0 -89
- package/template/.agents/skills/drawio/references/examples/cloud-reference-architecture.yaml +0 -34
- package/template/.agents/skills/drawio/references/examples/e-commerce.yaml +0 -141
- package/template/.agents/skills/drawio/references/examples/importers/README.md +0 -10
- package/template/.agents/skills/drawio/references/examples/importers/live/compose-drift-evidence.json +0 -49
- package/template/.agents/skills/drawio/references/examples/importers/live/compose-drift-report.json +0 -300
- package/template/.agents/skills/drawio/references/examples/importers/live/compose-drift.spec.yaml +0 -75
- package/template/.agents/skills/drawio/references/examples/importers/live/docker-inspect.json +0 -55
- package/template/.agents/skills/drawio/references/examples/importers/live/drift-declared-compose.yaml +0 -13
- package/template/.agents/skills/drawio/references/examples/importers/live/kubernetes-live.json +0 -71
- package/template/.agents/skills/drawio/references/examples/importers/live/terraform-state.json +0 -70
- package/template/.agents/skills/drawio/references/examples/importers/schema.sql +0 -10
- package/template/.agents/skills/drawio/references/examples/importers/terraform.tf +0 -9
- package/template/.agents/skills/drawio/references/examples/login-flow.yaml +0 -65
- package/template/.agents/skills/drawio/references/examples/mem0-memory-layer.yaml +0 -63
- package/template/.agents/skills/drawio/references/examples/microservices.yaml +0 -58
- package/template/.agents/skills/drawio/references/examples/multi-agent-orchestration.yaml +0 -67
- package/template/.agents/skills/drawio/references/examples/neural-network.yaml +0 -66
- package/template/.agents/skills/drawio/references/examples/onprem-dmz-topology.yaml +0 -62
- package/template/.agents/skills/drawio/references/examples/palettes/README.md +0 -29
- package/template/.agents/skills/drawio/references/examples/palettes/c4-blue.drawio +0 -6
- package/template/.agents/skills/drawio/references/examples/palettes/c4-blue.svg +0 -36
- package/template/.agents/skills/drawio/references/examples/palettes/cloud-aws.drawio +0 -6
- package/template/.agents/skills/drawio/references/examples/palettes/cloud-aws.svg +0 -36
- package/template/.agents/skills/drawio/references/examples/palettes/drawio-classic.drawio +0 -6
- package/template/.agents/skills/drawio/references/examples/palettes/drawio-classic.svg +0 -36
- package/template/.agents/skills/drawio/references/examples/palettes/ieee-bw.drawio +0 -6
- package/template/.agents/skills/drawio/references/examples/palettes/ieee-bw.svg +0 -36
- package/template/.agents/skills/drawio/references/examples/palettes/ieee-color.drawio +0 -6
- package/template/.agents/skills/drawio/references/examples/palettes/ieee-color.svg +0 -36
- package/template/.agents/skills/drawio/references/examples/palettes/journal-jama.drawio +0 -6
- package/template/.agents/skills/drawio/references/examples/palettes/journal-jama.svg +0 -36
- package/template/.agents/skills/drawio/references/examples/palettes/journal-npg.drawio +0 -6
- package/template/.agents/skills/drawio/references/examples/palettes/journal-npg.svg +0 -36
- package/template/.agents/skills/drawio/references/examples/palettes/matlab-lines.drawio +0 -6
- package/template/.agents/skills/drawio/references/examples/palettes/matlab-lines.svg +0 -36
- package/template/.agents/skills/drawio/references/examples/palettes/morandi.drawio +0 -6
- package/template/.agents/skills/drawio/references/examples/palettes/morandi.svg +0 -36
- package/template/.agents/skills/drawio/references/examples/palettes/okabe-ito.drawio +0 -6
- package/template/.agents/skills/drawio/references/examples/palettes/okabe-ito.svg +0 -36
- package/template/.agents/skills/drawio/references/examples/palettes/palette-swatch.template.yaml +0 -56
- package/template/.agents/skills/drawio/references/examples/palettes/seaborn-colorblind.drawio +0 -6
- package/template/.agents/skills/drawio/references/examples/palettes/seaborn-colorblind.svg +0 -36
- package/template/.agents/skills/drawio/references/examples/palettes/tol-bright.drawio +0 -6
- package/template/.agents/skills/drawio/references/examples/palettes/tol-bright.svg +0 -36
- package/template/.agents/skills/drawio/references/examples/palettes/tol-high-contrast.drawio +0 -6
- package/template/.agents/skills/drawio/references/examples/palettes/tol-high-contrast.svg +0 -36
- package/template/.agents/skills/drawio/references/examples/palettes/tol-light-fill.drawio +0 -6
- package/template/.agents/skills/drawio/references/examples/palettes/tol-light-fill.svg +0 -36
- package/template/.agents/skills/drawio/references/examples/palettes/tol-muted.drawio +0 -6
- package/template/.agents/skills/drawio/references/examples/palettes/tol-muted.svg +0 -36
- package/template/.agents/skills/drawio/references/examples/rag-pipeline.yaml +0 -67
- package/template/.agents/skills/drawio/references/examples/replicated-brand-flow.yaml +0 -89
- package/template/.agents/skills/drawio/references/examples/swimlane-engineering-review.yaml +0 -44
- package/template/.agents/skills/drawio/references/examples/tiered-network-topology.yaml +0 -59
- package/template/.agents/skills/drawio/references/examples/tool-call-loop.yaml +0 -63
- package/template/.agents/skills/drawio/references/examples/vendor-device-mapping.yaml +0 -46
- package/template/.agents/skills/drawio/references/official/style-reference.md +0 -936
- package/template/.agents/skills/drawio/references/official/xml-reference.md +0 -262
- package/template/.agents/skills/drawio/references/palette.schema.json +0 -59
- package/template/.agents/skills/drawio/references/theme.schema.json +0 -249
- package/template/.agents/skills/drawio/references/upstream/pure-drawio-skill.md +0 -615
- package/template/.agents/skills/drawio/references/workflows/create.md +0 -195
- package/template/.agents/skills/drawio/references/workflows/edit.md +0 -174
- package/template/.agents/skills/drawio/references/workflows/replicate.md +0 -239
- package/template/.agents/skills/drawio/references/workflows/visual-review.md +0 -108
- package/template/.agents/skills/drawio/reports/output_quality_scorecard.md +0 -106
- package/template/.agents/skills/drawio/reports/upstream-port-release-evidence.md +0 -43
- package/template/.agents/skills/drawio/scripts/adapters/ci.js +0 -139
- package/template/.agents/skills/drawio/scripts/adapters/ci.test.js +0 -41
- package/template/.agents/skills/drawio/scripts/adapters/code-common.js +0 -171
- package/template/.agents/skills/drawio/scripts/adapters/code-imports.test.js +0 -80
- package/template/.agents/skills/drawio/scripts/adapters/code-parsers.integration.test.js +0 -71
- package/template/.agents/skills/drawio/scripts/adapters/compose.js +0 -134
- package/template/.agents/skills/drawio/scripts/adapters/compose.test.js +0 -54
- package/template/.agents/skills/drawio/scripts/adapters/config-adapters.integration.test.js +0 -58
- package/template/.agents/skills/drawio/scripts/adapters/config-common.js +0 -131
- package/template/.agents/skills/drawio/scripts/adapters/config-common.test.js +0 -32
- package/template/.agents/skills/drawio/scripts/adapters/docker-inspect.js +0 -127
- package/template/.agents/skills/drawio/scripts/adapters/docker-inspect.test.js +0 -62
- package/template/.agents/skills/drawio/scripts/adapters/fixtures/raster-extraction.json +0 -31
- package/template/.agents/skills/drawio/scripts/adapters/go-code-adapter.test.js +0 -59
- package/template/.agents/skills/drawio/scripts/adapters/go-code.js +0 -168
- package/template/.agents/skills/drawio/scripts/adapters/graph-drift.file.test.js +0 -67
- package/template/.agents/skills/drawio/scripts/adapters/graph-drift.js +0 -358
- package/template/.agents/skills/drawio/scripts/adapters/graph-drift.test.js +0 -272
- package/template/.agents/skills/drawio/scripts/adapters/graph-projection.js +0 -335
- package/template/.agents/skills/drawio/scripts/adapters/graph-projection.test.js +0 -141
- package/template/.agents/skills/drawio/scripts/adapters/identity.js +0 -244
- package/template/.agents/skills/drawio/scripts/adapters/identity.test.js +0 -123
- package/template/.agents/skills/drawio/scripts/adapters/index.js +0 -489
- package/template/.agents/skills/drawio/scripts/adapters/index.test.js +0 -152
- package/template/.agents/skills/drawio/scripts/adapters/js-code-adapter.test.js +0 -42
- package/template/.agents/skills/drawio/scripts/adapters/js-code.js +0 -141
- package/template/.agents/skills/drawio/scripts/adapters/kubernetes-live.test.js +0 -46
- package/template/.agents/skills/drawio/scripts/adapters/kubernetes.js +0 -258
- package/template/.agents/skills/drawio/scripts/adapters/kubernetes.test.js +0 -81
- package/template/.agents/skills/drawio/scripts/adapters/openapi.js +0 -98
- package/template/.agents/skills/drawio/scripts/adapters/openapi.test.js +0 -46
- package/template/.agents/skills/drawio/scripts/adapters/optional-python-code.js +0 -16
- package/template/.agents/skills/drawio/scripts/adapters/optional-python.integration.test.js +0 -32
- package/template/.agents/skills/drawio/scripts/adapters/optional-python.js +0 -127
- package/template/.agents/skills/drawio/scripts/adapters/optional-python.test.js +0 -55
- package/template/.agents/skills/drawio/scripts/adapters/projection-to-spec.js +0 -116
- package/template/.agents/skills/drawio/scripts/adapters/projection-to-spec.test.js +0 -139
- package/template/.agents/skills/drawio/scripts/adapters/python/code-parser-worker.py +0 -93
- package/template/.agents/skills/drawio/scripts/adapters/python/config-parser-worker.py +0 -237
- package/template/.agents/skills/drawio/scripts/adapters/python/requirements.txt +0 -2
- package/template/.agents/skills/drawio/scripts/adapters/python-code-adapter.test.js +0 -127
- package/template/.agents/skills/drawio/scripts/adapters/python-code.js +0 -246
- package/template/.agents/skills/drawio/scripts/adapters/raster-extraction.js +0 -258
- package/template/.agents/skills/drawio/scripts/adapters/raster-extraction.test.js +0 -308
- package/template/.agents/skills/drawio/scripts/adapters/rust-code-adapter.test.js +0 -64
- package/template/.agents/skills/drawio/scripts/adapters/rust-code.js +0 -207
- package/template/.agents/skills/drawio/scripts/adapters/sql-ddl.js +0 -118
- package/template/.agents/skills/drawio/scripts/adapters/sql-ddl.test.js +0 -56
- package/template/.agents/skills/drawio/scripts/adapters/terraform-config.js +0 -141
- package/template/.agents/skills/drawio/scripts/adapters/terraform-config.test.js +0 -67
- package/template/.agents/skills/drawio/scripts/adapters/terraform-state.js +0 -157
- package/template/.agents/skills/drawio/scripts/adapters/terraform-state.test.js +0 -69
- package/template/.agents/skills/drawio/scripts/cli.js +0 -700
- package/template/.agents/skills/drawio/scripts/dsl/ah-to-drawio.js +0 -276
- package/template/.agents/skills/drawio/scripts/dsl/ah-to-drawio.test.js +0 -77
- package/template/.agents/skills/drawio/scripts/dsl/ai-icon-catalog.js +0 -126
- package/template/.agents/skills/drawio/scripts/dsl/ai-icon-catalog.test.js +0 -86
- package/template/.agents/skills/drawio/scripts/dsl/auto-layout.js +0 -206
- package/template/.agents/skills/drawio/scripts/dsl/auto-layout.test.js +0 -249
- package/template/.agents/skills/drawio/scripts/dsl/catalog-ranking.js +0 -54
- package/template/.agents/skills/drawio/scripts/dsl/catalog-search.js +0 -58
- package/template/.agents/skills/drawio/scripts/dsl/catalog-search.test.js +0 -44
- package/template/.agents/skills/drawio/scripts/dsl/document-spec.js +0 -256
- package/template/.agents/skills/drawio/scripts/dsl/document-spec.test.js +0 -147
- package/template/.agents/skills/drawio/scripts/dsl/drawio-to-spec.js +0 -497
- package/template/.agents/skills/drawio/scripts/dsl/examples-baseline.test.js +0 -30
- package/template/.agents/skills/drawio/scripts/dsl/icon-mappings.js +0 -65
- package/template/.agents/skills/drawio/scripts/dsl/icon-mappings.test.js +0 -19
- package/template/.agents/skills/drawio/scripts/dsl/icon-resolver.js +0 -153
- package/template/.agents/skills/drawio/scripts/dsl/icon-resolver.test.js +0 -62
- package/template/.agents/skills/drawio/scripts/dsl/multi-page.js +0 -224
- package/template/.agents/skills/drawio/scripts/dsl/multi-page.test.js +0 -107
- package/template/.agents/skills/drawio/scripts/dsl/palette-catalog.test.js +0 -138
- package/template/.agents/skills/drawio/scripts/dsl/palette-integration.test.js +0 -182
- package/template/.agents/skills/drawio/scripts/dsl/palette-validate.js +0 -91
- package/template/.agents/skills/drawio/scripts/dsl/palette.js +0 -302
- package/template/.agents/skills/drawio/scripts/dsl/palette.test.js +0 -197
- package/template/.agents/skills/drawio/scripts/dsl/shape-catalog.js +0 -89
- package/template/.agents/skills/drawio/scripts/dsl/shape-catalog.test.js +0 -21
- package/template/.agents/skills/drawio/scripts/dsl/spec-to-drawio.js +0 -3739
- package/template/.agents/skills/drawio/scripts/dsl/spec-to-drawio.test.js +0 -3022
- package/template/.agents/skills/drawio/scripts/generate-palette-swatches.js +0 -87
- package/template/.agents/skills/drawio/scripts/install.bat +0 -64
- package/template/.agents/skills/drawio/scripts/install.sh +0 -44
- package/template/.agents/skills/drawio/scripts/math/index.js +0 -317
- package/template/.agents/skills/drawio/scripts/math/index.test.js +0 -62
- package/template/.agents/skills/drawio/scripts/package.json +0 -1
- package/template/.agents/skills/drawio/scripts/postprocess/artifacts.js +0 -142
- package/template/.agents/skills/drawio/scripts/postprocess/artifacts.test.js +0 -86
- package/template/.agents/skills/drawio/scripts/postprocess/cli.js +0 -228
- package/template/.agents/skills/drawio/scripts/postprocess/cli.test.js +0 -129
- package/template/.agents/skills/drawio/scripts/postprocess/fixtures/bundle.yaml +0 -75
- package/template/.agents/skills/drawio/scripts/postprocess/fixtures/legacy.yaml +0 -21
- package/template/.agents/skills/drawio/scripts/postprocess/html.js +0 -197
- package/template/.agents/skills/drawio/scripts/postprocess/html.test.js +0 -50
- package/template/.agents/skills/drawio/scripts/postprocess/index.js +0 -5
- package/template/.agents/skills/drawio/scripts/postprocess/input.js +0 -112
- package/template/.agents/skills/drawio/scripts/postprocess/input.test.js +0 -73
- package/template/.agents/skills/drawio/scripts/postprocess/mutate.js +0 -584
- package/template/.agents/skills/drawio/scripts/postprocess/mutate.test.js +0 -193
- package/template/.agents/skills/drawio/scripts/postprocess/projection.js +0 -178
- package/template/.agents/skills/drawio/scripts/postprocess/projection.test.js +0 -67
- package/template/.agents/skills/drawio/scripts/runtime/artifacts.js +0 -283
- package/template/.agents/skills/drawio/scripts/runtime/desktop.js +0 -204
- package/template/.agents/skills/drawio/scripts/runtime/desktop.test.js +0 -121
- package/template/.agents/skills/drawio/scripts/runtime/diagrams-net-url.js +0 -122
- package/template/.agents/skills/drawio/scripts/runtime/export-stability.js +0 -75
- package/template/.agents/skills/drawio/scripts/runtime/export-stability.test.js +0 -81
- package/template/.agents/skills/drawio/scripts/runtime/png-inspection.js +0 -157
- package/template/.agents/skills/drawio/scripts/runtime/png-inspection.test.js +0 -120
- package/template/.agents/skills/drawio/scripts/runtime/vision-preview.js +0 -77
- package/template/.agents/skills/drawio/scripts/runtime/vision-preview.test.js +0 -103
- package/template/.agents/skills/drawio/scripts/shared/ai-icon-contract.js +0 -13
- package/template/.agents/skills/drawio/scripts/shared/xml-utils.js +0 -241
- package/template/.agents/skills/drawio/scripts/svg/drawio-to-svg.js +0 -918
- package/template/.agents/skills/drawio/scripts/svg/drawio-to-svg.test.js +0 -763
- package/template/.agents/skills/drawio/scripts/tools/build-ai-icon-catalog.js +0 -208
- package/template/.agents/skills/drawio/scripts/tools/build-ai-icon-catalog.test.js +0 -107
- package/template/.agents/skills/drawio/scripts/tools/build-shape-catalog.js +0 -84
- package/template/.agents/skills/drawio/scripts/tools/build-shape-catalog.test.js +0 -43
- package/template/.agents/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/alpha-color.svg +0 -1
- package/template/.agents/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/alpha.svg +0 -1
- package/template/.agents/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/beta-brand-color.svg +0 -1
- package/template/.agents/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/beta.svg +0 -1
- package/template/.agents/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/civitai-text-color.svg +0 -1
- package/template/.agents/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/civitai.svg +0 -1
- package/template/.agents/skills/drawio/scripts/tools/fixtures/ai-icons-package/package.json +0 -5
- package/template/.agents/skills/drawio/scripts/vendor/elkjs/LICENSE.md +0 -264
- package/template/.agents/skills/drawio/scripts/vendor/elkjs/README.md +0 -18
- package/template/.agents/skills/drawio/scripts/vendor/elkjs/elk.bundled.cjs +0 -6589
- package/template/.agents/skills/drawio/styles/built-in/corporate.json +0 -49
- package/template/.agents/skills/drawio/styles/built-in/default.json +0 -49
- package/template/.agents/skills/drawio/styles/built-in/handdrawn.json +0 -49
- package/template/.agents/skills/drawio/styles/schema.json +0 -112
- package/template/.agents/skills/drawio-academic-skills/CHANGELOG.md +0 -67
- package/template/.agents/skills/drawio-academic-skills/README.md +0 -103
- package/template/.agents/skills/drawio-academic-skills/README_CN.md +0 -103
- package/template/.agents/skills/drawio-academic-skills/SKILL.md +0 -161
- package/template/.agents/skills/drawio-academic-skills/__yss_dotfile__.gitignore +0 -12
- package/template/.agents/skills/drawio-academic-skills/agents/interface.yaml +0 -25
- package/template/.agents/skills/drawio-academic-skills/agents/openai.yaml +0 -24
- package/template/.agents/skills/drawio-academic-skills/evals/README.md +0 -13
- package/template/.agents/skills/drawio-academic-skills/evals/baseline-prompts.json +0 -52
- package/template/.agents/skills/drawio-academic-skills/evals/darwin-results.tsv +0 -3
- package/template/.agents/skills/drawio-academic-skills/evals/evals.json +0 -228
- package/template/.agents/skills/drawio-academic-skills/evals/test-prompts.json +0 -17
- package/template/.agents/skills/drawio-academic-skills/references/docs/academic-export-checklist.md +0 -45
- package/template/.agents/skills/drawio-academic-skills/references/docs/academic-figure-playbook.md +0 -349
- package/template/.agents/skills/drawio-academic-skills/references/docs/publication-overlay.md +0 -206
- package/template/.agents/skills/drawio-academic-skills/references/examples/ablation-study-pipeline.yaml +0 -39
- package/template/.agents/skills/drawio-academic-skills/references/examples/ieee-network-paper.yaml +0 -44
- package/template/.agents/skills/drawio-academic-skills/references/examples/industrial-architecture-cn-paper.yaml +0 -106
- package/template/.agents/skills/drawio-academic-skills/references/examples/max-pooling-operation-paper.yaml +0 -75
- package/template/.agents/skills/drawio-academic-skills/references/examples/research-pipeline.yaml +0 -54
- package/template/.agents/skills/drawio-academic-skills/references/examples/system-architecture-paper.yaml +0 -45
- package/template/.agents/skills/drawio-academic-skills/references/examples/technical-roadmap-paper.yaml +0 -54
- package/template/.agents/skills/drawio-academic-skills/references/examples/yolo-model-architecture-paper.yaml +0 -118
- package/template/.agents/skills/drawio-academic-skills/references/templates/multi-module-system-compact.yaml +0 -251
- package/template/.agents/skills/drawio-academic-skills/references/templates/neural-network-architecture-compact.yaml +0 -267
- package/template/.agents/skills/excalidraw-diagram-generator/SKILL.md +0 -634
- package/template/.agents/skills/excalidraw-diagram-generator/references/element-types.md +0 -497
- package/template/.agents/skills/excalidraw-diagram-generator/references/excalidraw-schema.md +0 -350
- package/template/.agents/skills/excalidraw-diagram-generator/scripts/README.md +0 -193
- package/template/.agents/skills/excalidraw-diagram-generator/scripts/__yss_dotfile__.gitignore +0 -34
- package/template/.agents/skills/excalidraw-diagram-generator/scripts/add-arrow.py +0 -315
- package/template/.agents/skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py +0 -406
- package/template/.agents/skills/excalidraw-diagram-generator/scripts/split-excalidraw-library.py +0 -183
- package/template/.agents/skills/excalidraw-diagram-generator/templates/business-flow-swimlane-template.excalidraw +0 -334
- package/template/.agents/skills/excalidraw-diagram-generator/templates/class-diagram-template.excalidraw +0 -558
- package/template/.agents/skills/excalidraw-diagram-generator/templates/data-flow-diagram-template.excalidraw +0 -279
- package/template/.agents/skills/excalidraw-diagram-generator/templates/er-diagram-template.excalidraw +0 -662
- package/template/.agents/skills/excalidraw-diagram-generator/templates/flowchart-template.excalidraw +0 -179
- package/template/.agents/skills/excalidraw-diagram-generator/templates/mindmap-template.excalidraw +0 -244
- package/template/.agents/skills/excalidraw-diagram-generator/templates/relationship-template.excalidraw +0 -145
- package/template/.agents/skills/excalidraw-diagram-generator/templates/sequence-diagram-template.excalidraw +0 -509
- package/template/.agents/skills/kb-retriever/README.md +0 -197
- package/template/.agents/skills/kb-retriever/README.zh-CN.md +0 -197
- package/template/.agents/skills/kb-retriever/SKILL.md +0 -250
- package/template/.agents/skills/kb-retriever/manifest.json +0 -15
- package/template/.agents/skills/kb-retriever/references/excel_analysis.md +0 -129
- package/template/.agents/skills/kb-retriever/references/excel_reading.md +0 -72
- package/template/.agents/skills/kb-retriever/references/pdf_reading.md +0 -362
- package/template/.agents/skills/kb-retriever/scripts/convert_pdf_to_images.py +0 -35
- package/template/.agents/skills/yss-db2mybatis/requirements.txt +0 -4
- package/template/.agents/skills/yss-db2mybatis/scripts/db2mybatis.py +0 -1494
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.py +0 -728
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.py +0 -155
- package/template/.agents/skills/yss-design-system/scripts/validate-frontmatter.py +0 -50
- package/template/.agents/skills/yss-source-index/scripts/refresh-yss-skill-index.py +0 -371
- package/template/.agents/skills/yss-web-controller/scripts/generate_controller.py +0 -293
- package/template/.agents/skills/yss-web-controller/scripts/test_generate_controller.py +0 -68
- package/template/.claude/skills/beautiful-article/README.md +0 -450
- package/template/.claude/skills/beautiful-article/README.zh-CN.md +0 -450
- package/template/.claude/skills/beautiful-article/SKILL.md +0 -466
- package/template/.claude/skills/beautiful-article/assets/scaffold-template/__yss_dotfile__.npmrc +0 -1
- package/template/.claude/skills/beautiful-article/assets/scaffold-template/article/Article.tsx +0 -69
- package/template/.claude/skills/beautiful-article/assets/scaffold-template/article/Cover.tsx +0 -172
- package/template/.claude/skills/beautiful-article/assets/scaffold-template/article/main.tsx +0 -26
- package/template/.claude/skills/beautiful-article/assets/scaffold-template/article/sections/01-opening.tsx +0 -30
- package/template/.claude/skills/beautiful-article/assets/scaffold-template/index.html +0 -19
- package/template/.claude/skills/beautiful-article/assets/scaffold-template/package.json +0 -26
- package/template/.claude/skills/beautiful-article/assets/scaffold-template/tsconfig.json +0 -20
- package/template/.claude/skills/beautiful-article/assets/scaffold-template/tsconfig.node.json +0 -11
- package/template/.claude/skills/beautiful-article/assets/scaffold-template/vite.config.ts +0 -18
- package/template/.claude/skills/beautiful-article/manifest.json +0 -15
- package/template/.claude/skills/beautiful-article/references/article-types/briefing.md +0 -32
- package/template/.claude/skills/beautiful-article/references/article-types/dialogue.md +0 -30
- package/template/.claude/skills/beautiful-article/references/article-types/essay.md +0 -31
- package/template/.claude/skills/beautiful-article/references/article-types/explainer.md +0 -32
- package/template/.claude/skills/beautiful-article/references/article-types/full-report.md +0 -32
- package/template/.claude/skills/beautiful-article/references/article-types/interactive-explainer.md +0 -66
- package/template/.claude/skills/beautiful-article/references/article-types/longform.md +0 -32
- package/template/.claude/skills/beautiful-article/references/article-types/review.md +0 -32
- package/template/.claude/skills/beautiful-article/references/article-types/tutorial.md +0 -30
- package/template/.claude/skills/beautiful-article/references/article-types/visual-essay.md +0 -33
- package/template/.claude/skills/beautiful-article/references/article-types.md +0 -42
- package/template/.claude/skills/beautiful-article/references/asset-policy.md +0 -71
- package/template/.claude/skills/beautiful-article/references/component-policy.md +0 -103
- package/template/.claude/skills/beautiful-article/references/cover.md +0 -208
- package/template/.claude/skills/beautiful-article/references/harness.md +0 -35
- package/template/.claude/skills/beautiful-article/references/html-output.md +0 -42
- package/template/.claude/skills/beautiful-article/references/information-density.md +0 -50
- package/template/.claude/skills/beautiful-article/references/layout.md +0 -46
- package/template/.claude/skills/beautiful-article/references/pdf-output.md +0 -208
- package/template/.claude/skills/beautiful-article/references/plan-template.md +0 -109
- package/template/.claude/skills/beautiful-article/references/raw-policy.md +0 -86
- package/template/.claude/skills/beautiful-article/references/repair-policy.md +0 -35
- package/template/.claude/skills/beautiful-article/references/review-checklist.md +0 -133
- package/template/.claude/skills/beautiful-article/references/scaffold.md +0 -77
- package/template/.claude/skills/beautiful-article/references/section-build.md +0 -100
- package/template/.claude/skills/beautiful-article/references/source-to-markdown.md +0 -118
- package/template/.claude/skills/beautiful-article/references/theme-selection.md +0 -48
- package/template/.claude/skills/beautiful-article/scripts/html-to-pdf.sh +0 -160
- package/template/.claude/skills/beautiful-article/scripts/pdf-print-overrides.css +0 -192
- package/template/.claude/skills/beautiful-article/scripts/scaffold.sh +0 -172
- package/template/.claude/skills/beautiful-article/scripts/source-to-markdown-markitdown.py +0 -100
- package/template/.claude/skills/beautiful-article/scripts/source-to-markdown.py +0 -174
- package/template/.claude/skills/beautiful-article/theme-profiles/andy.md +0 -57
- package/template/.claude/skills/beautiful-article/theme-profiles/bayer.md +0 -57
- package/template/.claude/skills/beautiful-article/theme-profiles/bodoni.md +0 -57
- package/template/.claude/skills/beautiful-article/theme-profiles/freddie.md +0 -57
- package/template/.claude/skills/beautiful-article/theme-profiles/fuller.md +0 -56
- package/template/.claude/skills/beautiful-article/theme-profiles/index.json +0 -112
- package/template/.claude/skills/beautiful-article/theme-profiles/knuth.md +0 -60
- package/template/.claude/skills/beautiful-article/theme-profiles/press.md +0 -61
- package/template/.claude/skills/beautiful-article/theme-profiles/shannon.md +0 -64
- package/template/.claude/skills/beautiful-article/theme-profiles/sottsass.md +0 -57
- package/template/.claude/skills/beautiful-article/theme-profiles/tufte.md +0 -64
- package/template/.claude/skills/beautiful-article/theme-profiles/vignelli.md +0 -63
- package/template/.claude/skills/drawio/.mcp.json +0 -8
- package/template/.claude/skills/drawio/CHANGELOG.md +0 -216
- package/template/.claude/skills/drawio/SKILL.md +0 -157
- package/template/.claude/skills/drawio/agents/interface.yaml +0 -26
- package/template/.claude/skills/drawio/agents/openai.yaml +0 -26
- package/template/.claude/skills/drawio/assets/catalog/ai-icons.json.gz +0 -0
- package/template/.claude/skills/drawio/assets/catalog/shape-catalog.json.gz +0 -0
- package/template/.claude/skills/drawio/assets/catalog/shape-index.json.gz +0 -0
- package/template/.claude/skills/drawio/assets/examples/login-flow-test.drawio +0 -6
- package/template/.claude/skills/drawio/assets/examples/login-flow.drawio +0 -6
- package/template/.claude/skills/drawio/assets/examples/microservices.drawio +0 -6
- package/template/.claude/skills/drawio/assets/examples/neural-network.drawio +0 -6
- package/template/.claude/skills/drawio/assets/licenses/architecture-diagram-generator-MIT.txt +0 -26
- package/template/.claude/skills/drawio/assets/licenses/drawio-mcp-shape-index-Apache-2.0.txt +0 -8
- package/template/.claude/skills/drawio/assets/licenses/lobe-icons-MIT.txt +0 -26
- package/template/.claude/skills/drawio/assets/licenses/lucide-ISC.txt +0 -41
- package/template/.claude/skills/drawio/assets/palettes/c4-blue.json +0 -29
- package/template/.claude/skills/drawio/assets/palettes/cloud-aws.json +0 -30
- package/template/.claude/skills/drawio/assets/palettes/drawio-classic.json +0 -21
- package/template/.claude/skills/drawio/assets/palettes/ieee-bw.json +0 -26
- package/template/.claude/skills/drawio/assets/palettes/ieee-color.json +0 -17
- package/template/.claude/skills/drawio/assets/palettes/journal-jama.json +0 -20
- package/template/.claude/skills/drawio/assets/palettes/journal-npg.json +0 -23
- package/template/.claude/skills/drawio/assets/palettes/matlab-lines.json +0 -20
- package/template/.claude/skills/drawio/assets/palettes/morandi.json +0 -21
- package/template/.claude/skills/drawio/assets/palettes/okabe-ito.json +0 -21
- package/template/.claude/skills/drawio/assets/palettes/seaborn-colorblind.json +0 -23
- package/template/.claude/skills/drawio/assets/palettes/tol-bright.json +0 -20
- package/template/.claude/skills/drawio/assets/palettes/tol-high-contrast.json +0 -18
- package/template/.claude/skills/drawio/assets/palettes/tol-light-fill.json +0 -22
- package/template/.claude/skills/drawio/assets/palettes/tol-muted.json +0 -22
- package/template/.claude/skills/drawio/assets/schemas/graph-projection.schema.json +0 -135
- package/template/.claude/skills/drawio/assets/schemas/spec.schema.json +0 -620
- package/template/.claude/skills/drawio/assets/themes/academic-color.json +0 -299
- package/template/.claude/skills/drawio/assets/themes/academic.json +0 -245
- package/template/.claude/skills/drawio/assets/themes/arch-dark.json +0 -253
- package/template/.claude/skills/drawio/assets/themes/blueprint.json +0 -246
- package/template/.claude/skills/drawio/assets/themes/dark-luxury.json +0 -246
- package/template/.claude/skills/drawio/assets/themes/dark-terminal.json +0 -244
- package/template/.claude/skills/drawio/assets/themes/dark.json +0 -220
- package/template/.claude/skills/drawio/assets/themes/high-contrast.json +0 -220
- package/template/.claude/skills/drawio/assets/themes/nature.json +0 -220
- package/template/.claude/skills/drawio/assets/themes/notion-clean.json +0 -246
- package/template/.claude/skills/drawio/assets/themes/tech-blue.json +0 -220
- package/template/.claude/skills/drawio/evals/README.md +0 -17
- package/template/.claude/skills/drawio/evals/ai-icon-catalog-cases.json +0 -89
- package/template/.claude/skills/drawio/evals/baseline-prompts.json +0 -122
- package/template/.claude/skills/drawio/evals/darwin-results.tsv +0 -4
- package/template/.claude/skills/drawio/evals/evals.json +0 -223
- package/template/.claude/skills/drawio/evals/evidence/ai-icon-catalog-desktop.json +0 -134
- package/template/.claude/skills/drawio/evals/fixtures/ai-icons-advanced-svg.yaml +0 -25
- package/template/.claude/skills/drawio/evals/fixtures/ai-icons-cjk-agent-rag.yaml +0 -55
- package/template/.claude/skills/drawio/evals/fixtures/ai-icons-core-aliases.yaml +0 -50
- package/template/.claude/skills/drawio/evals/fixtures/ai-icons-current-color.yaml +0 -25
- package/template/.claude/skills/drawio/evals/fixtures/ai-icons-gradients.yaml +0 -25
- package/template/.claude/skills/drawio/evals/fixtures/import-simple-compressed.drawio +0 -5
- package/template/.claude/skills/drawio/evals/fixtures/import-simple.drawio +0 -28
- package/template/.claude/skills/drawio/evals/fixtures/industrial-architecture.yaml +0 -239
- package/template/.claude/skills/drawio/evals/fixtures/replicate-academic-highlight.svg +0 -13
- package/template/.claude/skills/drawio/evals/fixtures/replicate-brand-architecture.svg +0 -14
- package/template/.claude/skills/drawio/evals/fixtures/replicate-warm-approval.svg +0 -13
- package/template/.claude/skills/drawio/evals/fixtures/vision-tall-workflow.yaml +0 -47
- package/template/.claude/skills/drawio/evals/upstream-integration-cases.json +0 -78
- package/template/.claude/skills/drawio/evals/vision-preview-cases.json +0 -147
- package/template/.claude/skills/drawio/references/docs/agent-diagrams.md +0 -164
- package/template/.claude/skills/drawio/references/docs/ah-format.md +0 -322
- package/template/.claude/skills/drawio/references/docs/architecture-diagrams.md +0 -159
- package/template/.claude/skills/drawio/references/docs/canonical-graph-projection.md +0 -54
- package/template/.claude/skills/drawio/references/docs/code-importers.md +0 -53
- package/template/.claude/skills/drawio/references/docs/config-importers.md +0 -68
- package/template/.claude/skills/drawio/references/docs/design-system/README.md +0 -204
- package/template/.claude/skills/drawio/references/docs/design-system/color-guide.md +0 -255
- package/template/.claude/skills/drawio/references/docs/design-system/connectors.md +0 -388
- package/template/.claude/skills/drawio/references/docs/design-system/formulas.md +0 -196
- package/template/.claude/skills/drawio/references/docs/design-system/icons.md +0 -332
- package/template/.claude/skills/drawio/references/docs/design-system/shapes.md +0 -269
- package/template/.claude/skills/drawio/references/docs/design-system/specification.md +0 -754
- package/template/.claude/skills/drawio/references/docs/design-system/themes.md +0 -441
- package/template/.claude/skills/drawio/references/docs/design-system/tokens.md +0 -232
- package/template/.claude/skills/drawio/references/docs/edge-quality-rules.md +0 -65
- package/template/.claude/skills/drawio/references/docs/ieee-network-diagrams.md +0 -145
- package/template/.claude/skills/drawio/references/docs/live-snapshots-drift.md +0 -72
- package/template/.claude/skills/drawio/references/docs/math-typesetting.md +0 -258
- package/template/.claude/skills/drawio/references/docs/mcp-tools.md +0 -85
- package/template/.claude/skills/drawio/references/docs/migration-readiness.md +0 -73
- package/template/.claude/skills/drawio/references/docs/stencil-library-guide.md +0 -97
- package/template/.claude/skills/drawio/references/docs/style-extraction.md +0 -261
- package/template/.claude/skills/drawio/references/docs/style-presets.md +0 -126
- package/template/.claude/skills/drawio/references/docs/upstream-capability-compatibility.md +0 -61
- package/template/.claude/skills/drawio/references/docs/xml-format.md +0 -53
- package/template/.claude/skills/drawio/references/examples/README.md +0 -33
- package/template/.claude/skills/drawio/references/examples/agentic-rag.yaml +0 -71
- package/template/.claude/skills/drawio/references/examples/arch-dark-aws-serverless.yaml +0 -103
- package/template/.claude/skills/drawio/references/examples/arch-dark-microservices.yaml +0 -146
- package/template/.claude/skills/drawio/references/examples/arch-dark-web-app.yaml +0 -62
- package/template/.claude/skills/drawio/references/examples/auto-layout-workflow.yaml +0 -81
- package/template/.claude/skills/drawio/references/examples/aws-vpc-topology.yaml +0 -66
- package/template/.claude/skills/drawio/references/examples/campus-lan-topology.yaml +0 -89
- package/template/.claude/skills/drawio/references/examples/cloud-reference-architecture.yaml +0 -34
- package/template/.claude/skills/drawio/references/examples/e-commerce.yaml +0 -141
- package/template/.claude/skills/drawio/references/examples/importers/README.md +0 -10
- package/template/.claude/skills/drawio/references/examples/importers/live/compose-drift-evidence.json +0 -49
- package/template/.claude/skills/drawio/references/examples/importers/live/compose-drift-report.json +0 -300
- package/template/.claude/skills/drawio/references/examples/importers/live/compose-drift.spec.yaml +0 -75
- package/template/.claude/skills/drawio/references/examples/importers/live/docker-inspect.json +0 -55
- package/template/.claude/skills/drawio/references/examples/importers/live/drift-declared-compose.yaml +0 -13
- package/template/.claude/skills/drawio/references/examples/importers/live/kubernetes-live.json +0 -71
- package/template/.claude/skills/drawio/references/examples/importers/live/terraform-state.json +0 -70
- package/template/.claude/skills/drawio/references/examples/importers/schema.sql +0 -10
- package/template/.claude/skills/drawio/references/examples/importers/terraform.tf +0 -9
- package/template/.claude/skills/drawio/references/examples/login-flow.yaml +0 -65
- package/template/.claude/skills/drawio/references/examples/mem0-memory-layer.yaml +0 -63
- package/template/.claude/skills/drawio/references/examples/microservices.yaml +0 -58
- package/template/.claude/skills/drawio/references/examples/multi-agent-orchestration.yaml +0 -67
- package/template/.claude/skills/drawio/references/examples/neural-network.yaml +0 -66
- package/template/.claude/skills/drawio/references/examples/onprem-dmz-topology.yaml +0 -62
- package/template/.claude/skills/drawio/references/examples/palettes/README.md +0 -29
- package/template/.claude/skills/drawio/references/examples/palettes/c4-blue.drawio +0 -6
- package/template/.claude/skills/drawio/references/examples/palettes/c4-blue.svg +0 -36
- package/template/.claude/skills/drawio/references/examples/palettes/cloud-aws.drawio +0 -6
- package/template/.claude/skills/drawio/references/examples/palettes/cloud-aws.svg +0 -36
- package/template/.claude/skills/drawio/references/examples/palettes/drawio-classic.drawio +0 -6
- package/template/.claude/skills/drawio/references/examples/palettes/drawio-classic.svg +0 -36
- package/template/.claude/skills/drawio/references/examples/palettes/ieee-bw.drawio +0 -6
- package/template/.claude/skills/drawio/references/examples/palettes/ieee-bw.svg +0 -36
- package/template/.claude/skills/drawio/references/examples/palettes/ieee-color.drawio +0 -6
- package/template/.claude/skills/drawio/references/examples/palettes/ieee-color.svg +0 -36
- package/template/.claude/skills/drawio/references/examples/palettes/journal-jama.drawio +0 -6
- package/template/.claude/skills/drawio/references/examples/palettes/journal-jama.svg +0 -36
- package/template/.claude/skills/drawio/references/examples/palettes/journal-npg.drawio +0 -6
- package/template/.claude/skills/drawio/references/examples/palettes/journal-npg.svg +0 -36
- package/template/.claude/skills/drawio/references/examples/palettes/matlab-lines.drawio +0 -6
- package/template/.claude/skills/drawio/references/examples/palettes/matlab-lines.svg +0 -36
- package/template/.claude/skills/drawio/references/examples/palettes/morandi.drawio +0 -6
- package/template/.claude/skills/drawio/references/examples/palettes/morandi.svg +0 -36
- package/template/.claude/skills/drawio/references/examples/palettes/okabe-ito.drawio +0 -6
- package/template/.claude/skills/drawio/references/examples/palettes/okabe-ito.svg +0 -36
- package/template/.claude/skills/drawio/references/examples/palettes/palette-swatch.template.yaml +0 -56
- package/template/.claude/skills/drawio/references/examples/palettes/seaborn-colorblind.drawio +0 -6
- package/template/.claude/skills/drawio/references/examples/palettes/seaborn-colorblind.svg +0 -36
- package/template/.claude/skills/drawio/references/examples/palettes/tol-bright.drawio +0 -6
- package/template/.claude/skills/drawio/references/examples/palettes/tol-bright.svg +0 -36
- package/template/.claude/skills/drawio/references/examples/palettes/tol-high-contrast.drawio +0 -6
- package/template/.claude/skills/drawio/references/examples/palettes/tol-high-contrast.svg +0 -36
- package/template/.claude/skills/drawio/references/examples/palettes/tol-light-fill.drawio +0 -6
- package/template/.claude/skills/drawio/references/examples/palettes/tol-light-fill.svg +0 -36
- package/template/.claude/skills/drawio/references/examples/palettes/tol-muted.drawio +0 -6
- package/template/.claude/skills/drawio/references/examples/palettes/tol-muted.svg +0 -36
- package/template/.claude/skills/drawio/references/examples/rag-pipeline.yaml +0 -67
- package/template/.claude/skills/drawio/references/examples/replicated-brand-flow.yaml +0 -89
- package/template/.claude/skills/drawio/references/examples/swimlane-engineering-review.yaml +0 -44
- package/template/.claude/skills/drawio/references/examples/tiered-network-topology.yaml +0 -59
- package/template/.claude/skills/drawio/references/examples/tool-call-loop.yaml +0 -63
- package/template/.claude/skills/drawio/references/examples/vendor-device-mapping.yaml +0 -46
- package/template/.claude/skills/drawio/references/official/style-reference.md +0 -936
- package/template/.claude/skills/drawio/references/official/xml-reference.md +0 -262
- package/template/.claude/skills/drawio/references/palette.schema.json +0 -59
- package/template/.claude/skills/drawio/references/theme.schema.json +0 -249
- package/template/.claude/skills/drawio/references/upstream/pure-drawio-skill.md +0 -615
- package/template/.claude/skills/drawio/references/workflows/create.md +0 -195
- package/template/.claude/skills/drawio/references/workflows/edit.md +0 -174
- package/template/.claude/skills/drawio/references/workflows/replicate.md +0 -239
- package/template/.claude/skills/drawio/references/workflows/visual-review.md +0 -108
- package/template/.claude/skills/drawio/reports/output_quality_scorecard.md +0 -106
- package/template/.claude/skills/drawio/reports/upstream-port-release-evidence.md +0 -43
- package/template/.claude/skills/drawio/scripts/adapters/ci.js +0 -139
- package/template/.claude/skills/drawio/scripts/adapters/ci.test.js +0 -41
- package/template/.claude/skills/drawio/scripts/adapters/code-common.js +0 -171
- package/template/.claude/skills/drawio/scripts/adapters/code-imports.test.js +0 -80
- package/template/.claude/skills/drawio/scripts/adapters/code-parsers.integration.test.js +0 -71
- package/template/.claude/skills/drawio/scripts/adapters/compose.js +0 -134
- package/template/.claude/skills/drawio/scripts/adapters/compose.test.js +0 -54
- package/template/.claude/skills/drawio/scripts/adapters/config-adapters.integration.test.js +0 -58
- package/template/.claude/skills/drawio/scripts/adapters/config-common.js +0 -131
- package/template/.claude/skills/drawio/scripts/adapters/config-common.test.js +0 -32
- package/template/.claude/skills/drawio/scripts/adapters/docker-inspect.js +0 -127
- package/template/.claude/skills/drawio/scripts/adapters/docker-inspect.test.js +0 -62
- package/template/.claude/skills/drawio/scripts/adapters/fixtures/raster-extraction.json +0 -31
- package/template/.claude/skills/drawio/scripts/adapters/go-code-adapter.test.js +0 -59
- package/template/.claude/skills/drawio/scripts/adapters/go-code.js +0 -168
- package/template/.claude/skills/drawio/scripts/adapters/graph-drift.file.test.js +0 -67
- package/template/.claude/skills/drawio/scripts/adapters/graph-drift.js +0 -358
- package/template/.claude/skills/drawio/scripts/adapters/graph-drift.test.js +0 -272
- package/template/.claude/skills/drawio/scripts/adapters/graph-projection.js +0 -335
- package/template/.claude/skills/drawio/scripts/adapters/graph-projection.test.js +0 -141
- package/template/.claude/skills/drawio/scripts/adapters/identity.js +0 -244
- package/template/.claude/skills/drawio/scripts/adapters/identity.test.js +0 -123
- package/template/.claude/skills/drawio/scripts/adapters/index.js +0 -489
- package/template/.claude/skills/drawio/scripts/adapters/index.test.js +0 -152
- package/template/.claude/skills/drawio/scripts/adapters/js-code-adapter.test.js +0 -42
- package/template/.claude/skills/drawio/scripts/adapters/js-code.js +0 -141
- package/template/.claude/skills/drawio/scripts/adapters/kubernetes-live.test.js +0 -46
- package/template/.claude/skills/drawio/scripts/adapters/kubernetes.js +0 -258
- package/template/.claude/skills/drawio/scripts/adapters/kubernetes.test.js +0 -81
- package/template/.claude/skills/drawio/scripts/adapters/openapi.js +0 -98
- package/template/.claude/skills/drawio/scripts/adapters/openapi.test.js +0 -46
- package/template/.claude/skills/drawio/scripts/adapters/optional-python-code.js +0 -16
- package/template/.claude/skills/drawio/scripts/adapters/optional-python.integration.test.js +0 -32
- package/template/.claude/skills/drawio/scripts/adapters/optional-python.js +0 -127
- package/template/.claude/skills/drawio/scripts/adapters/optional-python.test.js +0 -55
- package/template/.claude/skills/drawio/scripts/adapters/projection-to-spec.js +0 -116
- package/template/.claude/skills/drawio/scripts/adapters/projection-to-spec.test.js +0 -139
- package/template/.claude/skills/drawio/scripts/adapters/python/code-parser-worker.py +0 -93
- package/template/.claude/skills/drawio/scripts/adapters/python/config-parser-worker.py +0 -237
- package/template/.claude/skills/drawio/scripts/adapters/python/requirements.txt +0 -2
- package/template/.claude/skills/drawio/scripts/adapters/python-code-adapter.test.js +0 -127
- package/template/.claude/skills/drawio/scripts/adapters/python-code.js +0 -246
- package/template/.claude/skills/drawio/scripts/adapters/raster-extraction.js +0 -258
- package/template/.claude/skills/drawio/scripts/adapters/raster-extraction.test.js +0 -308
- package/template/.claude/skills/drawio/scripts/adapters/rust-code-adapter.test.js +0 -64
- package/template/.claude/skills/drawio/scripts/adapters/rust-code.js +0 -207
- package/template/.claude/skills/drawio/scripts/adapters/sql-ddl.js +0 -118
- package/template/.claude/skills/drawio/scripts/adapters/sql-ddl.test.js +0 -56
- package/template/.claude/skills/drawio/scripts/adapters/terraform-config.js +0 -141
- package/template/.claude/skills/drawio/scripts/adapters/terraform-config.test.js +0 -67
- package/template/.claude/skills/drawio/scripts/adapters/terraform-state.js +0 -157
- package/template/.claude/skills/drawio/scripts/adapters/terraform-state.test.js +0 -69
- package/template/.claude/skills/drawio/scripts/cli.js +0 -700
- package/template/.claude/skills/drawio/scripts/dsl/ah-to-drawio.js +0 -276
- package/template/.claude/skills/drawio/scripts/dsl/ah-to-drawio.test.js +0 -77
- package/template/.claude/skills/drawio/scripts/dsl/ai-icon-catalog.js +0 -126
- package/template/.claude/skills/drawio/scripts/dsl/ai-icon-catalog.test.js +0 -86
- package/template/.claude/skills/drawio/scripts/dsl/auto-layout.js +0 -206
- package/template/.claude/skills/drawio/scripts/dsl/auto-layout.test.js +0 -249
- package/template/.claude/skills/drawio/scripts/dsl/catalog-ranking.js +0 -54
- package/template/.claude/skills/drawio/scripts/dsl/catalog-search.js +0 -58
- package/template/.claude/skills/drawio/scripts/dsl/catalog-search.test.js +0 -44
- package/template/.claude/skills/drawio/scripts/dsl/document-spec.js +0 -256
- package/template/.claude/skills/drawio/scripts/dsl/document-spec.test.js +0 -147
- package/template/.claude/skills/drawio/scripts/dsl/drawio-to-spec.js +0 -497
- package/template/.claude/skills/drawio/scripts/dsl/examples-baseline.test.js +0 -30
- package/template/.claude/skills/drawio/scripts/dsl/icon-mappings.js +0 -65
- package/template/.claude/skills/drawio/scripts/dsl/icon-mappings.test.js +0 -19
- package/template/.claude/skills/drawio/scripts/dsl/icon-resolver.js +0 -153
- package/template/.claude/skills/drawio/scripts/dsl/icon-resolver.test.js +0 -62
- package/template/.claude/skills/drawio/scripts/dsl/multi-page.js +0 -224
- package/template/.claude/skills/drawio/scripts/dsl/multi-page.test.js +0 -107
- package/template/.claude/skills/drawio/scripts/dsl/palette-catalog.test.js +0 -138
- package/template/.claude/skills/drawio/scripts/dsl/palette-integration.test.js +0 -182
- package/template/.claude/skills/drawio/scripts/dsl/palette-validate.js +0 -91
- package/template/.claude/skills/drawio/scripts/dsl/palette.js +0 -302
- package/template/.claude/skills/drawio/scripts/dsl/palette.test.js +0 -197
- package/template/.claude/skills/drawio/scripts/dsl/shape-catalog.js +0 -89
- package/template/.claude/skills/drawio/scripts/dsl/shape-catalog.test.js +0 -21
- package/template/.claude/skills/drawio/scripts/dsl/spec-to-drawio.js +0 -3739
- package/template/.claude/skills/drawio/scripts/dsl/spec-to-drawio.test.js +0 -3022
- package/template/.claude/skills/drawio/scripts/generate-palette-swatches.js +0 -87
- package/template/.claude/skills/drawio/scripts/install.bat +0 -64
- package/template/.claude/skills/drawio/scripts/install.sh +0 -44
- package/template/.claude/skills/drawio/scripts/math/index.js +0 -317
- package/template/.claude/skills/drawio/scripts/math/index.test.js +0 -62
- package/template/.claude/skills/drawio/scripts/package.json +0 -1
- package/template/.claude/skills/drawio/scripts/postprocess/artifacts.js +0 -142
- package/template/.claude/skills/drawio/scripts/postprocess/artifacts.test.js +0 -86
- package/template/.claude/skills/drawio/scripts/postprocess/cli.js +0 -228
- package/template/.claude/skills/drawio/scripts/postprocess/cli.test.js +0 -129
- package/template/.claude/skills/drawio/scripts/postprocess/fixtures/bundle.yaml +0 -75
- package/template/.claude/skills/drawio/scripts/postprocess/fixtures/legacy.yaml +0 -21
- package/template/.claude/skills/drawio/scripts/postprocess/html.js +0 -197
- package/template/.claude/skills/drawio/scripts/postprocess/html.test.js +0 -50
- package/template/.claude/skills/drawio/scripts/postprocess/index.js +0 -5
- package/template/.claude/skills/drawio/scripts/postprocess/input.js +0 -112
- package/template/.claude/skills/drawio/scripts/postprocess/input.test.js +0 -73
- package/template/.claude/skills/drawio/scripts/postprocess/mutate.js +0 -584
- package/template/.claude/skills/drawio/scripts/postprocess/mutate.test.js +0 -193
- package/template/.claude/skills/drawio/scripts/postprocess/projection.js +0 -178
- package/template/.claude/skills/drawio/scripts/postprocess/projection.test.js +0 -67
- package/template/.claude/skills/drawio/scripts/runtime/artifacts.js +0 -283
- package/template/.claude/skills/drawio/scripts/runtime/desktop.js +0 -204
- package/template/.claude/skills/drawio/scripts/runtime/desktop.test.js +0 -121
- package/template/.claude/skills/drawio/scripts/runtime/diagrams-net-url.js +0 -122
- package/template/.claude/skills/drawio/scripts/runtime/export-stability.js +0 -75
- package/template/.claude/skills/drawio/scripts/runtime/export-stability.test.js +0 -81
- package/template/.claude/skills/drawio/scripts/runtime/png-inspection.js +0 -157
- package/template/.claude/skills/drawio/scripts/runtime/png-inspection.test.js +0 -120
- package/template/.claude/skills/drawio/scripts/runtime/vision-preview.js +0 -77
- package/template/.claude/skills/drawio/scripts/runtime/vision-preview.test.js +0 -103
- package/template/.claude/skills/drawio/scripts/shared/ai-icon-contract.js +0 -13
- package/template/.claude/skills/drawio/scripts/shared/xml-utils.js +0 -241
- package/template/.claude/skills/drawio/scripts/svg/drawio-to-svg.js +0 -918
- package/template/.claude/skills/drawio/scripts/svg/drawio-to-svg.test.js +0 -763
- package/template/.claude/skills/drawio/scripts/tools/build-ai-icon-catalog.js +0 -208
- package/template/.claude/skills/drawio/scripts/tools/build-ai-icon-catalog.test.js +0 -107
- package/template/.claude/skills/drawio/scripts/tools/build-shape-catalog.js +0 -84
- package/template/.claude/skills/drawio/scripts/tools/build-shape-catalog.test.js +0 -43
- package/template/.claude/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/alpha-color.svg +0 -1
- package/template/.claude/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/alpha.svg +0 -1
- package/template/.claude/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/beta-brand-color.svg +0 -1
- package/template/.claude/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/beta.svg +0 -1
- package/template/.claude/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/civitai-text-color.svg +0 -1
- package/template/.claude/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/civitai.svg +0 -1
- package/template/.claude/skills/drawio/scripts/tools/fixtures/ai-icons-package/package.json +0 -5
- package/template/.claude/skills/drawio/scripts/vendor/elkjs/LICENSE.md +0 -264
- package/template/.claude/skills/drawio/scripts/vendor/elkjs/README.md +0 -18
- package/template/.claude/skills/drawio/scripts/vendor/elkjs/elk.bundled.cjs +0 -6589
- package/template/.claude/skills/drawio/styles/built-in/corporate.json +0 -49
- package/template/.claude/skills/drawio/styles/built-in/default.json +0 -49
- package/template/.claude/skills/drawio/styles/built-in/handdrawn.json +0 -49
- package/template/.claude/skills/drawio/styles/schema.json +0 -112
- package/template/.claude/skills/drawio-academic-skills/CHANGELOG.md +0 -67
- package/template/.claude/skills/drawio-academic-skills/README.md +0 -103
- package/template/.claude/skills/drawio-academic-skills/README_CN.md +0 -103
- package/template/.claude/skills/drawio-academic-skills/SKILL.md +0 -161
- package/template/.claude/skills/drawio-academic-skills/__yss_dotfile__.gitignore +0 -12
- package/template/.claude/skills/drawio-academic-skills/agents/interface.yaml +0 -25
- package/template/.claude/skills/drawio-academic-skills/agents/openai.yaml +0 -24
- package/template/.claude/skills/drawio-academic-skills/evals/README.md +0 -13
- package/template/.claude/skills/drawio-academic-skills/evals/baseline-prompts.json +0 -52
- package/template/.claude/skills/drawio-academic-skills/evals/darwin-results.tsv +0 -3
- package/template/.claude/skills/drawio-academic-skills/evals/evals.json +0 -228
- package/template/.claude/skills/drawio-academic-skills/evals/test-prompts.json +0 -17
- package/template/.claude/skills/drawio-academic-skills/references/docs/academic-export-checklist.md +0 -45
- package/template/.claude/skills/drawio-academic-skills/references/docs/academic-figure-playbook.md +0 -349
- package/template/.claude/skills/drawio-academic-skills/references/docs/publication-overlay.md +0 -206
- package/template/.claude/skills/drawio-academic-skills/references/examples/ablation-study-pipeline.yaml +0 -39
- package/template/.claude/skills/drawio-academic-skills/references/examples/ieee-network-paper.yaml +0 -44
- package/template/.claude/skills/drawio-academic-skills/references/examples/industrial-architecture-cn-paper.yaml +0 -106
- package/template/.claude/skills/drawio-academic-skills/references/examples/max-pooling-operation-paper.yaml +0 -75
- package/template/.claude/skills/drawio-academic-skills/references/examples/research-pipeline.yaml +0 -54
- package/template/.claude/skills/drawio-academic-skills/references/examples/system-architecture-paper.yaml +0 -45
- package/template/.claude/skills/drawio-academic-skills/references/examples/technical-roadmap-paper.yaml +0 -54
- package/template/.claude/skills/drawio-academic-skills/references/examples/yolo-model-architecture-paper.yaml +0 -118
- package/template/.claude/skills/drawio-academic-skills/references/templates/multi-module-system-compact.yaml +0 -251
- package/template/.claude/skills/drawio-academic-skills/references/templates/neural-network-architecture-compact.yaml +0 -267
- package/template/.claude/skills/excalidraw-diagram-generator/SKILL.md +0 -634
- package/template/.claude/skills/excalidraw-diagram-generator/references/element-types.md +0 -497
- package/template/.claude/skills/excalidraw-diagram-generator/references/excalidraw-schema.md +0 -350
- package/template/.claude/skills/excalidraw-diagram-generator/scripts/README.md +0 -193
- package/template/.claude/skills/excalidraw-diagram-generator/scripts/__yss_dotfile__.gitignore +0 -34
- package/template/.claude/skills/excalidraw-diagram-generator/scripts/add-arrow.py +0 -315
- package/template/.claude/skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py +0 -406
- package/template/.claude/skills/excalidraw-diagram-generator/scripts/split-excalidraw-library.py +0 -183
- package/template/.claude/skills/excalidraw-diagram-generator/templates/business-flow-swimlane-template.excalidraw +0 -334
- package/template/.claude/skills/excalidraw-diagram-generator/templates/class-diagram-template.excalidraw +0 -558
- package/template/.claude/skills/excalidraw-diagram-generator/templates/data-flow-diagram-template.excalidraw +0 -279
- package/template/.claude/skills/excalidraw-diagram-generator/templates/er-diagram-template.excalidraw +0 -662
- package/template/.claude/skills/excalidraw-diagram-generator/templates/flowchart-template.excalidraw +0 -179
- package/template/.claude/skills/excalidraw-diagram-generator/templates/mindmap-template.excalidraw +0 -244
- package/template/.claude/skills/excalidraw-diagram-generator/templates/relationship-template.excalidraw +0 -145
- package/template/.claude/skills/excalidraw-diagram-generator/templates/sequence-diagram-template.excalidraw +0 -509
- package/template/.claude/skills/kb-retriever/README.md +0 -197
- package/template/.claude/skills/kb-retriever/README.zh-CN.md +0 -197
- package/template/.claude/skills/kb-retriever/SKILL.md +0 -250
- package/template/.claude/skills/kb-retriever/manifest.json +0 -15
- package/template/.claude/skills/kb-retriever/references/excel_analysis.md +0 -129
- package/template/.claude/skills/kb-retriever/references/excel_reading.md +0 -72
- package/template/.claude/skills/kb-retriever/references/pdf_reading.md +0 -362
- package/template/.claude/skills/kb-retriever/scripts/convert_pdf_to_images.py +0 -35
- package/template/.claude/skills/yss-db2mybatis/requirements.txt +0 -4
- package/template/.claude/skills/yss-db2mybatis/scripts/db2mybatis.py +0 -1494
- package/template/.claude/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.py +0 -728
- package/template/.claude/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.py +0 -155
- package/template/.claude/skills/yss-design-system/scripts/validate-frontmatter.py +0 -50
- package/template/.claude/skills/yss-source-index/scripts/refresh-yss-skill-index.py +0 -371
- package/template/.claude/skills/yss-web-controller/scripts/generate_controller.py +0 -293
- package/template/.claude/skills/yss-web-controller/scripts/test_generate_controller.py +0 -68
- package/template/.codex/skills/beautiful-article/README.md +0 -450
- package/template/.codex/skills/beautiful-article/README.zh-CN.md +0 -450
- package/template/.codex/skills/beautiful-article/SKILL.md +0 -466
- package/template/.codex/skills/beautiful-article/assets/scaffold-template/__yss_dotfile__.npmrc +0 -1
- package/template/.codex/skills/beautiful-article/assets/scaffold-template/article/Article.tsx +0 -69
- package/template/.codex/skills/beautiful-article/assets/scaffold-template/article/Cover.tsx +0 -172
- package/template/.codex/skills/beautiful-article/assets/scaffold-template/article/main.tsx +0 -26
- package/template/.codex/skills/beautiful-article/assets/scaffold-template/article/sections/01-opening.tsx +0 -30
- package/template/.codex/skills/beautiful-article/assets/scaffold-template/index.html +0 -19
- package/template/.codex/skills/beautiful-article/assets/scaffold-template/package.json +0 -26
- package/template/.codex/skills/beautiful-article/assets/scaffold-template/tsconfig.json +0 -20
- package/template/.codex/skills/beautiful-article/assets/scaffold-template/tsconfig.node.json +0 -11
- package/template/.codex/skills/beautiful-article/assets/scaffold-template/vite.config.ts +0 -18
- package/template/.codex/skills/beautiful-article/manifest.json +0 -15
- package/template/.codex/skills/beautiful-article/references/article-types/briefing.md +0 -32
- package/template/.codex/skills/beautiful-article/references/article-types/dialogue.md +0 -30
- package/template/.codex/skills/beautiful-article/references/article-types/essay.md +0 -31
- package/template/.codex/skills/beautiful-article/references/article-types/explainer.md +0 -32
- package/template/.codex/skills/beautiful-article/references/article-types/full-report.md +0 -32
- package/template/.codex/skills/beautiful-article/references/article-types/interactive-explainer.md +0 -66
- package/template/.codex/skills/beautiful-article/references/article-types/longform.md +0 -32
- package/template/.codex/skills/beautiful-article/references/article-types/review.md +0 -32
- package/template/.codex/skills/beautiful-article/references/article-types/tutorial.md +0 -30
- package/template/.codex/skills/beautiful-article/references/article-types/visual-essay.md +0 -33
- package/template/.codex/skills/beautiful-article/references/article-types.md +0 -42
- package/template/.codex/skills/beautiful-article/references/asset-policy.md +0 -71
- package/template/.codex/skills/beautiful-article/references/component-policy.md +0 -103
- package/template/.codex/skills/beautiful-article/references/cover.md +0 -208
- package/template/.codex/skills/beautiful-article/references/harness.md +0 -35
- package/template/.codex/skills/beautiful-article/references/html-output.md +0 -42
- package/template/.codex/skills/beautiful-article/references/information-density.md +0 -50
- package/template/.codex/skills/beautiful-article/references/layout.md +0 -46
- package/template/.codex/skills/beautiful-article/references/pdf-output.md +0 -208
- package/template/.codex/skills/beautiful-article/references/plan-template.md +0 -109
- package/template/.codex/skills/beautiful-article/references/raw-policy.md +0 -86
- package/template/.codex/skills/beautiful-article/references/repair-policy.md +0 -35
- package/template/.codex/skills/beautiful-article/references/review-checklist.md +0 -133
- package/template/.codex/skills/beautiful-article/references/scaffold.md +0 -77
- package/template/.codex/skills/beautiful-article/references/section-build.md +0 -100
- package/template/.codex/skills/beautiful-article/references/source-to-markdown.md +0 -118
- package/template/.codex/skills/beautiful-article/references/theme-selection.md +0 -48
- package/template/.codex/skills/beautiful-article/scripts/html-to-pdf.sh +0 -160
- package/template/.codex/skills/beautiful-article/scripts/pdf-print-overrides.css +0 -192
- package/template/.codex/skills/beautiful-article/scripts/scaffold.sh +0 -172
- package/template/.codex/skills/beautiful-article/scripts/source-to-markdown-markitdown.py +0 -100
- package/template/.codex/skills/beautiful-article/scripts/source-to-markdown.py +0 -174
- package/template/.codex/skills/beautiful-article/theme-profiles/andy.md +0 -57
- package/template/.codex/skills/beautiful-article/theme-profiles/bayer.md +0 -57
- package/template/.codex/skills/beautiful-article/theme-profiles/bodoni.md +0 -57
- package/template/.codex/skills/beautiful-article/theme-profiles/freddie.md +0 -57
- package/template/.codex/skills/beautiful-article/theme-profiles/fuller.md +0 -56
- package/template/.codex/skills/beautiful-article/theme-profiles/index.json +0 -112
- package/template/.codex/skills/beautiful-article/theme-profiles/knuth.md +0 -60
- package/template/.codex/skills/beautiful-article/theme-profiles/press.md +0 -61
- package/template/.codex/skills/beautiful-article/theme-profiles/shannon.md +0 -64
- package/template/.codex/skills/beautiful-article/theme-profiles/sottsass.md +0 -57
- package/template/.codex/skills/beautiful-article/theme-profiles/tufte.md +0 -64
- package/template/.codex/skills/beautiful-article/theme-profiles/vignelli.md +0 -63
- package/template/.codex/skills/drawio/.mcp.json +0 -8
- package/template/.codex/skills/drawio/CHANGELOG.md +0 -216
- package/template/.codex/skills/drawio/SKILL.md +0 -157
- package/template/.codex/skills/drawio/agents/interface.yaml +0 -26
- package/template/.codex/skills/drawio/agents/openai.yaml +0 -26
- package/template/.codex/skills/drawio/assets/catalog/ai-icons.json.gz +0 -0
- package/template/.codex/skills/drawio/assets/catalog/shape-catalog.json.gz +0 -0
- package/template/.codex/skills/drawio/assets/catalog/shape-index.json.gz +0 -0
- package/template/.codex/skills/drawio/assets/examples/login-flow-test.drawio +0 -6
- package/template/.codex/skills/drawio/assets/examples/login-flow.drawio +0 -6
- package/template/.codex/skills/drawio/assets/examples/microservices.drawio +0 -6
- package/template/.codex/skills/drawio/assets/examples/neural-network.drawio +0 -6
- package/template/.codex/skills/drawio/assets/licenses/architecture-diagram-generator-MIT.txt +0 -26
- package/template/.codex/skills/drawio/assets/licenses/drawio-mcp-shape-index-Apache-2.0.txt +0 -8
- package/template/.codex/skills/drawio/assets/licenses/lobe-icons-MIT.txt +0 -26
- package/template/.codex/skills/drawio/assets/licenses/lucide-ISC.txt +0 -41
- package/template/.codex/skills/drawio/assets/palettes/c4-blue.json +0 -29
- package/template/.codex/skills/drawio/assets/palettes/cloud-aws.json +0 -30
- package/template/.codex/skills/drawio/assets/palettes/drawio-classic.json +0 -21
- package/template/.codex/skills/drawio/assets/palettes/ieee-bw.json +0 -26
- package/template/.codex/skills/drawio/assets/palettes/ieee-color.json +0 -17
- package/template/.codex/skills/drawio/assets/palettes/journal-jama.json +0 -20
- package/template/.codex/skills/drawio/assets/palettes/journal-npg.json +0 -23
- package/template/.codex/skills/drawio/assets/palettes/matlab-lines.json +0 -20
- package/template/.codex/skills/drawio/assets/palettes/morandi.json +0 -21
- package/template/.codex/skills/drawio/assets/palettes/okabe-ito.json +0 -21
- package/template/.codex/skills/drawio/assets/palettes/seaborn-colorblind.json +0 -23
- package/template/.codex/skills/drawio/assets/palettes/tol-bright.json +0 -20
- package/template/.codex/skills/drawio/assets/palettes/tol-high-contrast.json +0 -18
- package/template/.codex/skills/drawio/assets/palettes/tol-light-fill.json +0 -22
- package/template/.codex/skills/drawio/assets/palettes/tol-muted.json +0 -22
- package/template/.codex/skills/drawio/assets/schemas/graph-projection.schema.json +0 -135
- package/template/.codex/skills/drawio/assets/schemas/spec.schema.json +0 -620
- package/template/.codex/skills/drawio/assets/themes/academic-color.json +0 -299
- package/template/.codex/skills/drawio/assets/themes/academic.json +0 -245
- package/template/.codex/skills/drawio/assets/themes/arch-dark.json +0 -253
- package/template/.codex/skills/drawio/assets/themes/blueprint.json +0 -246
- package/template/.codex/skills/drawio/assets/themes/dark-luxury.json +0 -246
- package/template/.codex/skills/drawio/assets/themes/dark-terminal.json +0 -244
- package/template/.codex/skills/drawio/assets/themes/dark.json +0 -220
- package/template/.codex/skills/drawio/assets/themes/high-contrast.json +0 -220
- package/template/.codex/skills/drawio/assets/themes/nature.json +0 -220
- package/template/.codex/skills/drawio/assets/themes/notion-clean.json +0 -246
- package/template/.codex/skills/drawio/assets/themes/tech-blue.json +0 -220
- package/template/.codex/skills/drawio/evals/README.md +0 -17
- package/template/.codex/skills/drawio/evals/ai-icon-catalog-cases.json +0 -89
- package/template/.codex/skills/drawio/evals/baseline-prompts.json +0 -122
- package/template/.codex/skills/drawio/evals/darwin-results.tsv +0 -4
- package/template/.codex/skills/drawio/evals/evals.json +0 -223
- package/template/.codex/skills/drawio/evals/evidence/ai-icon-catalog-desktop.json +0 -134
- package/template/.codex/skills/drawio/evals/fixtures/ai-icons-advanced-svg.yaml +0 -25
- package/template/.codex/skills/drawio/evals/fixtures/ai-icons-cjk-agent-rag.yaml +0 -55
- package/template/.codex/skills/drawio/evals/fixtures/ai-icons-core-aliases.yaml +0 -50
- package/template/.codex/skills/drawio/evals/fixtures/ai-icons-current-color.yaml +0 -25
- package/template/.codex/skills/drawio/evals/fixtures/ai-icons-gradients.yaml +0 -25
- package/template/.codex/skills/drawio/evals/fixtures/import-simple-compressed.drawio +0 -5
- package/template/.codex/skills/drawio/evals/fixtures/import-simple.drawio +0 -28
- package/template/.codex/skills/drawio/evals/fixtures/industrial-architecture.yaml +0 -239
- package/template/.codex/skills/drawio/evals/fixtures/replicate-academic-highlight.svg +0 -13
- package/template/.codex/skills/drawio/evals/fixtures/replicate-brand-architecture.svg +0 -14
- package/template/.codex/skills/drawio/evals/fixtures/replicate-warm-approval.svg +0 -13
- package/template/.codex/skills/drawio/evals/fixtures/vision-tall-workflow.yaml +0 -47
- package/template/.codex/skills/drawio/evals/upstream-integration-cases.json +0 -78
- package/template/.codex/skills/drawio/evals/vision-preview-cases.json +0 -147
- package/template/.codex/skills/drawio/references/docs/agent-diagrams.md +0 -164
- package/template/.codex/skills/drawio/references/docs/ah-format.md +0 -322
- package/template/.codex/skills/drawio/references/docs/architecture-diagrams.md +0 -159
- package/template/.codex/skills/drawio/references/docs/canonical-graph-projection.md +0 -54
- package/template/.codex/skills/drawio/references/docs/code-importers.md +0 -53
- package/template/.codex/skills/drawio/references/docs/config-importers.md +0 -68
- package/template/.codex/skills/drawio/references/docs/design-system/README.md +0 -204
- package/template/.codex/skills/drawio/references/docs/design-system/color-guide.md +0 -255
- package/template/.codex/skills/drawio/references/docs/design-system/connectors.md +0 -388
- package/template/.codex/skills/drawio/references/docs/design-system/formulas.md +0 -196
- package/template/.codex/skills/drawio/references/docs/design-system/icons.md +0 -332
- package/template/.codex/skills/drawio/references/docs/design-system/shapes.md +0 -269
- package/template/.codex/skills/drawio/references/docs/design-system/specification.md +0 -754
- package/template/.codex/skills/drawio/references/docs/design-system/themes.md +0 -441
- package/template/.codex/skills/drawio/references/docs/design-system/tokens.md +0 -232
- package/template/.codex/skills/drawio/references/docs/edge-quality-rules.md +0 -65
- package/template/.codex/skills/drawio/references/docs/ieee-network-diagrams.md +0 -145
- package/template/.codex/skills/drawio/references/docs/live-snapshots-drift.md +0 -72
- package/template/.codex/skills/drawio/references/docs/math-typesetting.md +0 -258
- package/template/.codex/skills/drawio/references/docs/mcp-tools.md +0 -85
- package/template/.codex/skills/drawio/references/docs/migration-readiness.md +0 -73
- package/template/.codex/skills/drawio/references/docs/stencil-library-guide.md +0 -97
- package/template/.codex/skills/drawio/references/docs/style-extraction.md +0 -261
- package/template/.codex/skills/drawio/references/docs/style-presets.md +0 -126
- package/template/.codex/skills/drawio/references/docs/upstream-capability-compatibility.md +0 -61
- package/template/.codex/skills/drawio/references/docs/xml-format.md +0 -53
- package/template/.codex/skills/drawio/references/examples/README.md +0 -33
- package/template/.codex/skills/drawio/references/examples/agentic-rag.yaml +0 -71
- package/template/.codex/skills/drawio/references/examples/arch-dark-aws-serverless.yaml +0 -103
- package/template/.codex/skills/drawio/references/examples/arch-dark-microservices.yaml +0 -146
- package/template/.codex/skills/drawio/references/examples/arch-dark-web-app.yaml +0 -62
- package/template/.codex/skills/drawio/references/examples/auto-layout-workflow.yaml +0 -81
- package/template/.codex/skills/drawio/references/examples/aws-vpc-topology.yaml +0 -66
- package/template/.codex/skills/drawio/references/examples/campus-lan-topology.yaml +0 -89
- package/template/.codex/skills/drawio/references/examples/cloud-reference-architecture.yaml +0 -34
- package/template/.codex/skills/drawio/references/examples/e-commerce.yaml +0 -141
- package/template/.codex/skills/drawio/references/examples/importers/README.md +0 -10
- package/template/.codex/skills/drawio/references/examples/importers/live/compose-drift-evidence.json +0 -49
- package/template/.codex/skills/drawio/references/examples/importers/live/compose-drift-report.json +0 -300
- package/template/.codex/skills/drawio/references/examples/importers/live/compose-drift.spec.yaml +0 -75
- package/template/.codex/skills/drawio/references/examples/importers/live/docker-inspect.json +0 -55
- package/template/.codex/skills/drawio/references/examples/importers/live/drift-declared-compose.yaml +0 -13
- package/template/.codex/skills/drawio/references/examples/importers/live/kubernetes-live.json +0 -71
- package/template/.codex/skills/drawio/references/examples/importers/live/terraform-state.json +0 -70
- package/template/.codex/skills/drawio/references/examples/importers/schema.sql +0 -10
- package/template/.codex/skills/drawio/references/examples/importers/terraform.tf +0 -9
- package/template/.codex/skills/drawio/references/examples/login-flow.yaml +0 -65
- package/template/.codex/skills/drawio/references/examples/mem0-memory-layer.yaml +0 -63
- package/template/.codex/skills/drawio/references/examples/microservices.yaml +0 -58
- package/template/.codex/skills/drawio/references/examples/multi-agent-orchestration.yaml +0 -67
- package/template/.codex/skills/drawio/references/examples/neural-network.yaml +0 -66
- package/template/.codex/skills/drawio/references/examples/onprem-dmz-topology.yaml +0 -62
- package/template/.codex/skills/drawio/references/examples/palettes/README.md +0 -29
- package/template/.codex/skills/drawio/references/examples/palettes/c4-blue.drawio +0 -6
- package/template/.codex/skills/drawio/references/examples/palettes/c4-blue.svg +0 -36
- package/template/.codex/skills/drawio/references/examples/palettes/cloud-aws.drawio +0 -6
- package/template/.codex/skills/drawio/references/examples/palettes/cloud-aws.svg +0 -36
- package/template/.codex/skills/drawio/references/examples/palettes/drawio-classic.drawio +0 -6
- package/template/.codex/skills/drawio/references/examples/palettes/drawio-classic.svg +0 -36
- package/template/.codex/skills/drawio/references/examples/palettes/ieee-bw.drawio +0 -6
- package/template/.codex/skills/drawio/references/examples/palettes/ieee-bw.svg +0 -36
- package/template/.codex/skills/drawio/references/examples/palettes/ieee-color.drawio +0 -6
- package/template/.codex/skills/drawio/references/examples/palettes/ieee-color.svg +0 -36
- package/template/.codex/skills/drawio/references/examples/palettes/journal-jama.drawio +0 -6
- package/template/.codex/skills/drawio/references/examples/palettes/journal-jama.svg +0 -36
- package/template/.codex/skills/drawio/references/examples/palettes/journal-npg.drawio +0 -6
- package/template/.codex/skills/drawio/references/examples/palettes/journal-npg.svg +0 -36
- package/template/.codex/skills/drawio/references/examples/palettes/matlab-lines.drawio +0 -6
- package/template/.codex/skills/drawio/references/examples/palettes/matlab-lines.svg +0 -36
- package/template/.codex/skills/drawio/references/examples/palettes/morandi.drawio +0 -6
- package/template/.codex/skills/drawio/references/examples/palettes/morandi.svg +0 -36
- package/template/.codex/skills/drawio/references/examples/palettes/okabe-ito.drawio +0 -6
- package/template/.codex/skills/drawio/references/examples/palettes/okabe-ito.svg +0 -36
- package/template/.codex/skills/drawio/references/examples/palettes/palette-swatch.template.yaml +0 -56
- package/template/.codex/skills/drawio/references/examples/palettes/seaborn-colorblind.drawio +0 -6
- package/template/.codex/skills/drawio/references/examples/palettes/seaborn-colorblind.svg +0 -36
- package/template/.codex/skills/drawio/references/examples/palettes/tol-bright.drawio +0 -6
- package/template/.codex/skills/drawio/references/examples/palettes/tol-bright.svg +0 -36
- package/template/.codex/skills/drawio/references/examples/palettes/tol-high-contrast.drawio +0 -6
- package/template/.codex/skills/drawio/references/examples/palettes/tol-high-contrast.svg +0 -36
- package/template/.codex/skills/drawio/references/examples/palettes/tol-light-fill.drawio +0 -6
- package/template/.codex/skills/drawio/references/examples/palettes/tol-light-fill.svg +0 -36
- package/template/.codex/skills/drawio/references/examples/palettes/tol-muted.drawio +0 -6
- package/template/.codex/skills/drawio/references/examples/palettes/tol-muted.svg +0 -36
- package/template/.codex/skills/drawio/references/examples/rag-pipeline.yaml +0 -67
- package/template/.codex/skills/drawio/references/examples/replicated-brand-flow.yaml +0 -89
- package/template/.codex/skills/drawio/references/examples/swimlane-engineering-review.yaml +0 -44
- package/template/.codex/skills/drawio/references/examples/tiered-network-topology.yaml +0 -59
- package/template/.codex/skills/drawio/references/examples/tool-call-loop.yaml +0 -63
- package/template/.codex/skills/drawio/references/examples/vendor-device-mapping.yaml +0 -46
- package/template/.codex/skills/drawio/references/official/style-reference.md +0 -936
- package/template/.codex/skills/drawio/references/official/xml-reference.md +0 -262
- package/template/.codex/skills/drawio/references/palette.schema.json +0 -59
- package/template/.codex/skills/drawio/references/theme.schema.json +0 -249
- package/template/.codex/skills/drawio/references/upstream/pure-drawio-skill.md +0 -615
- package/template/.codex/skills/drawio/references/workflows/create.md +0 -195
- package/template/.codex/skills/drawio/references/workflows/edit.md +0 -174
- package/template/.codex/skills/drawio/references/workflows/replicate.md +0 -239
- package/template/.codex/skills/drawio/references/workflows/visual-review.md +0 -108
- package/template/.codex/skills/drawio/reports/output_quality_scorecard.md +0 -106
- package/template/.codex/skills/drawio/reports/upstream-port-release-evidence.md +0 -43
- package/template/.codex/skills/drawio/scripts/adapters/ci.js +0 -139
- package/template/.codex/skills/drawio/scripts/adapters/ci.test.js +0 -41
- package/template/.codex/skills/drawio/scripts/adapters/code-common.js +0 -171
- package/template/.codex/skills/drawio/scripts/adapters/code-imports.test.js +0 -80
- package/template/.codex/skills/drawio/scripts/adapters/code-parsers.integration.test.js +0 -71
- package/template/.codex/skills/drawio/scripts/adapters/compose.js +0 -134
- package/template/.codex/skills/drawio/scripts/adapters/compose.test.js +0 -54
- package/template/.codex/skills/drawio/scripts/adapters/config-adapters.integration.test.js +0 -58
- package/template/.codex/skills/drawio/scripts/adapters/config-common.js +0 -131
- package/template/.codex/skills/drawio/scripts/adapters/config-common.test.js +0 -32
- package/template/.codex/skills/drawio/scripts/adapters/docker-inspect.js +0 -127
- package/template/.codex/skills/drawio/scripts/adapters/docker-inspect.test.js +0 -62
- package/template/.codex/skills/drawio/scripts/adapters/fixtures/raster-extraction.json +0 -31
- package/template/.codex/skills/drawio/scripts/adapters/go-code-adapter.test.js +0 -59
- package/template/.codex/skills/drawio/scripts/adapters/go-code.js +0 -168
- package/template/.codex/skills/drawio/scripts/adapters/graph-drift.file.test.js +0 -67
- package/template/.codex/skills/drawio/scripts/adapters/graph-drift.js +0 -358
- package/template/.codex/skills/drawio/scripts/adapters/graph-drift.test.js +0 -272
- package/template/.codex/skills/drawio/scripts/adapters/graph-projection.js +0 -335
- package/template/.codex/skills/drawio/scripts/adapters/graph-projection.test.js +0 -141
- package/template/.codex/skills/drawio/scripts/adapters/identity.js +0 -244
- package/template/.codex/skills/drawio/scripts/adapters/identity.test.js +0 -123
- package/template/.codex/skills/drawio/scripts/adapters/index.js +0 -489
- package/template/.codex/skills/drawio/scripts/adapters/index.test.js +0 -152
- package/template/.codex/skills/drawio/scripts/adapters/js-code-adapter.test.js +0 -42
- package/template/.codex/skills/drawio/scripts/adapters/js-code.js +0 -141
- package/template/.codex/skills/drawio/scripts/adapters/kubernetes-live.test.js +0 -46
- package/template/.codex/skills/drawio/scripts/adapters/kubernetes.js +0 -258
- package/template/.codex/skills/drawio/scripts/adapters/kubernetes.test.js +0 -81
- package/template/.codex/skills/drawio/scripts/adapters/openapi.js +0 -98
- package/template/.codex/skills/drawio/scripts/adapters/openapi.test.js +0 -46
- package/template/.codex/skills/drawio/scripts/adapters/optional-python-code.js +0 -16
- package/template/.codex/skills/drawio/scripts/adapters/optional-python.integration.test.js +0 -32
- package/template/.codex/skills/drawio/scripts/adapters/optional-python.js +0 -127
- package/template/.codex/skills/drawio/scripts/adapters/optional-python.test.js +0 -55
- package/template/.codex/skills/drawio/scripts/adapters/projection-to-spec.js +0 -116
- package/template/.codex/skills/drawio/scripts/adapters/projection-to-spec.test.js +0 -139
- package/template/.codex/skills/drawio/scripts/adapters/python/code-parser-worker.py +0 -93
- package/template/.codex/skills/drawio/scripts/adapters/python/config-parser-worker.py +0 -237
- package/template/.codex/skills/drawio/scripts/adapters/python/requirements.txt +0 -2
- package/template/.codex/skills/drawio/scripts/adapters/python-code-adapter.test.js +0 -127
- package/template/.codex/skills/drawio/scripts/adapters/python-code.js +0 -246
- package/template/.codex/skills/drawio/scripts/adapters/raster-extraction.js +0 -258
- package/template/.codex/skills/drawio/scripts/adapters/raster-extraction.test.js +0 -308
- package/template/.codex/skills/drawio/scripts/adapters/rust-code-adapter.test.js +0 -64
- package/template/.codex/skills/drawio/scripts/adapters/rust-code.js +0 -207
- package/template/.codex/skills/drawio/scripts/adapters/sql-ddl.js +0 -118
- package/template/.codex/skills/drawio/scripts/adapters/sql-ddl.test.js +0 -56
- package/template/.codex/skills/drawio/scripts/adapters/terraform-config.js +0 -141
- package/template/.codex/skills/drawio/scripts/adapters/terraform-config.test.js +0 -67
- package/template/.codex/skills/drawio/scripts/adapters/terraform-state.js +0 -157
- package/template/.codex/skills/drawio/scripts/adapters/terraform-state.test.js +0 -69
- package/template/.codex/skills/drawio/scripts/cli.js +0 -700
- package/template/.codex/skills/drawio/scripts/dsl/ah-to-drawio.js +0 -276
- package/template/.codex/skills/drawio/scripts/dsl/ah-to-drawio.test.js +0 -77
- package/template/.codex/skills/drawio/scripts/dsl/ai-icon-catalog.js +0 -126
- package/template/.codex/skills/drawio/scripts/dsl/ai-icon-catalog.test.js +0 -86
- package/template/.codex/skills/drawio/scripts/dsl/auto-layout.js +0 -206
- package/template/.codex/skills/drawio/scripts/dsl/auto-layout.test.js +0 -249
- package/template/.codex/skills/drawio/scripts/dsl/catalog-ranking.js +0 -54
- package/template/.codex/skills/drawio/scripts/dsl/catalog-search.js +0 -58
- package/template/.codex/skills/drawio/scripts/dsl/catalog-search.test.js +0 -44
- package/template/.codex/skills/drawio/scripts/dsl/document-spec.js +0 -256
- package/template/.codex/skills/drawio/scripts/dsl/document-spec.test.js +0 -147
- package/template/.codex/skills/drawio/scripts/dsl/drawio-to-spec.js +0 -497
- package/template/.codex/skills/drawio/scripts/dsl/examples-baseline.test.js +0 -30
- package/template/.codex/skills/drawio/scripts/dsl/icon-mappings.js +0 -65
- package/template/.codex/skills/drawio/scripts/dsl/icon-mappings.test.js +0 -19
- package/template/.codex/skills/drawio/scripts/dsl/icon-resolver.js +0 -153
- package/template/.codex/skills/drawio/scripts/dsl/icon-resolver.test.js +0 -62
- package/template/.codex/skills/drawio/scripts/dsl/multi-page.js +0 -224
- package/template/.codex/skills/drawio/scripts/dsl/multi-page.test.js +0 -107
- package/template/.codex/skills/drawio/scripts/dsl/palette-catalog.test.js +0 -138
- package/template/.codex/skills/drawio/scripts/dsl/palette-integration.test.js +0 -182
- package/template/.codex/skills/drawio/scripts/dsl/palette-validate.js +0 -91
- package/template/.codex/skills/drawio/scripts/dsl/palette.js +0 -302
- package/template/.codex/skills/drawio/scripts/dsl/palette.test.js +0 -197
- package/template/.codex/skills/drawio/scripts/dsl/shape-catalog.js +0 -89
- package/template/.codex/skills/drawio/scripts/dsl/shape-catalog.test.js +0 -21
- package/template/.codex/skills/drawio/scripts/dsl/spec-to-drawio.js +0 -3739
- package/template/.codex/skills/drawio/scripts/dsl/spec-to-drawio.test.js +0 -3022
- package/template/.codex/skills/drawio/scripts/generate-palette-swatches.js +0 -87
- package/template/.codex/skills/drawio/scripts/install.bat +0 -64
- package/template/.codex/skills/drawio/scripts/install.sh +0 -44
- package/template/.codex/skills/drawio/scripts/math/index.js +0 -317
- package/template/.codex/skills/drawio/scripts/math/index.test.js +0 -62
- package/template/.codex/skills/drawio/scripts/package.json +0 -1
- package/template/.codex/skills/drawio/scripts/postprocess/artifacts.js +0 -142
- package/template/.codex/skills/drawio/scripts/postprocess/artifacts.test.js +0 -86
- package/template/.codex/skills/drawio/scripts/postprocess/cli.js +0 -228
- package/template/.codex/skills/drawio/scripts/postprocess/cli.test.js +0 -129
- package/template/.codex/skills/drawio/scripts/postprocess/fixtures/bundle.yaml +0 -75
- package/template/.codex/skills/drawio/scripts/postprocess/fixtures/legacy.yaml +0 -21
- package/template/.codex/skills/drawio/scripts/postprocess/html.js +0 -197
- package/template/.codex/skills/drawio/scripts/postprocess/html.test.js +0 -50
- package/template/.codex/skills/drawio/scripts/postprocess/index.js +0 -5
- package/template/.codex/skills/drawio/scripts/postprocess/input.js +0 -112
- package/template/.codex/skills/drawio/scripts/postprocess/input.test.js +0 -73
- package/template/.codex/skills/drawio/scripts/postprocess/mutate.js +0 -584
- package/template/.codex/skills/drawio/scripts/postprocess/mutate.test.js +0 -193
- package/template/.codex/skills/drawio/scripts/postprocess/projection.js +0 -178
- package/template/.codex/skills/drawio/scripts/postprocess/projection.test.js +0 -67
- package/template/.codex/skills/drawio/scripts/runtime/artifacts.js +0 -283
- package/template/.codex/skills/drawio/scripts/runtime/desktop.js +0 -204
- package/template/.codex/skills/drawio/scripts/runtime/desktop.test.js +0 -121
- package/template/.codex/skills/drawio/scripts/runtime/diagrams-net-url.js +0 -122
- package/template/.codex/skills/drawio/scripts/runtime/export-stability.js +0 -75
- package/template/.codex/skills/drawio/scripts/runtime/export-stability.test.js +0 -81
- package/template/.codex/skills/drawio/scripts/runtime/png-inspection.js +0 -157
- package/template/.codex/skills/drawio/scripts/runtime/png-inspection.test.js +0 -120
- package/template/.codex/skills/drawio/scripts/runtime/vision-preview.js +0 -77
- package/template/.codex/skills/drawio/scripts/runtime/vision-preview.test.js +0 -103
- package/template/.codex/skills/drawio/scripts/shared/ai-icon-contract.js +0 -13
- package/template/.codex/skills/drawio/scripts/shared/xml-utils.js +0 -241
- package/template/.codex/skills/drawio/scripts/svg/drawio-to-svg.js +0 -918
- package/template/.codex/skills/drawio/scripts/svg/drawio-to-svg.test.js +0 -763
- package/template/.codex/skills/drawio/scripts/tools/build-ai-icon-catalog.js +0 -208
- package/template/.codex/skills/drawio/scripts/tools/build-ai-icon-catalog.test.js +0 -107
- package/template/.codex/skills/drawio/scripts/tools/build-shape-catalog.js +0 -84
- package/template/.codex/skills/drawio/scripts/tools/build-shape-catalog.test.js +0 -43
- package/template/.codex/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/alpha-color.svg +0 -1
- package/template/.codex/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/alpha.svg +0 -1
- package/template/.codex/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/beta-brand-color.svg +0 -1
- package/template/.codex/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/beta.svg +0 -1
- package/template/.codex/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/civitai-text-color.svg +0 -1
- package/template/.codex/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/civitai.svg +0 -1
- package/template/.codex/skills/drawio/scripts/tools/fixtures/ai-icons-package/package.json +0 -5
- package/template/.codex/skills/drawio/scripts/vendor/elkjs/LICENSE.md +0 -264
- package/template/.codex/skills/drawio/scripts/vendor/elkjs/README.md +0 -18
- package/template/.codex/skills/drawio/scripts/vendor/elkjs/elk.bundled.cjs +0 -6589
- package/template/.codex/skills/drawio/styles/built-in/corporate.json +0 -49
- package/template/.codex/skills/drawio/styles/built-in/default.json +0 -49
- package/template/.codex/skills/drawio/styles/built-in/handdrawn.json +0 -49
- package/template/.codex/skills/drawio/styles/schema.json +0 -112
- package/template/.codex/skills/drawio-academic-skills/CHANGELOG.md +0 -67
- package/template/.codex/skills/drawio-academic-skills/README.md +0 -103
- package/template/.codex/skills/drawio-academic-skills/README_CN.md +0 -103
- package/template/.codex/skills/drawio-academic-skills/SKILL.md +0 -161
- package/template/.codex/skills/drawio-academic-skills/__yss_dotfile__.gitignore +0 -12
- package/template/.codex/skills/drawio-academic-skills/agents/interface.yaml +0 -25
- package/template/.codex/skills/drawio-academic-skills/agents/openai.yaml +0 -24
- package/template/.codex/skills/drawio-academic-skills/evals/README.md +0 -13
- package/template/.codex/skills/drawio-academic-skills/evals/baseline-prompts.json +0 -52
- package/template/.codex/skills/drawio-academic-skills/evals/darwin-results.tsv +0 -3
- package/template/.codex/skills/drawio-academic-skills/evals/evals.json +0 -228
- package/template/.codex/skills/drawio-academic-skills/evals/test-prompts.json +0 -17
- package/template/.codex/skills/drawio-academic-skills/references/docs/academic-export-checklist.md +0 -45
- package/template/.codex/skills/drawio-academic-skills/references/docs/academic-figure-playbook.md +0 -349
- package/template/.codex/skills/drawio-academic-skills/references/docs/publication-overlay.md +0 -206
- package/template/.codex/skills/drawio-academic-skills/references/examples/ablation-study-pipeline.yaml +0 -39
- package/template/.codex/skills/drawio-academic-skills/references/examples/ieee-network-paper.yaml +0 -44
- package/template/.codex/skills/drawio-academic-skills/references/examples/industrial-architecture-cn-paper.yaml +0 -106
- package/template/.codex/skills/drawio-academic-skills/references/examples/max-pooling-operation-paper.yaml +0 -75
- package/template/.codex/skills/drawio-academic-skills/references/examples/research-pipeline.yaml +0 -54
- package/template/.codex/skills/drawio-academic-skills/references/examples/system-architecture-paper.yaml +0 -45
- package/template/.codex/skills/drawio-academic-skills/references/examples/technical-roadmap-paper.yaml +0 -54
- package/template/.codex/skills/drawio-academic-skills/references/examples/yolo-model-architecture-paper.yaml +0 -118
- package/template/.codex/skills/drawio-academic-skills/references/templates/multi-module-system-compact.yaml +0 -251
- package/template/.codex/skills/drawio-academic-skills/references/templates/neural-network-architecture-compact.yaml +0 -267
- package/template/.codex/skills/excalidraw-diagram-generator/SKILL.md +0 -634
- package/template/.codex/skills/excalidraw-diagram-generator/references/element-types.md +0 -497
- package/template/.codex/skills/excalidraw-diagram-generator/references/excalidraw-schema.md +0 -350
- package/template/.codex/skills/excalidraw-diagram-generator/scripts/README.md +0 -193
- package/template/.codex/skills/excalidraw-diagram-generator/scripts/__yss_dotfile__.gitignore +0 -34
- package/template/.codex/skills/excalidraw-diagram-generator/scripts/add-arrow.py +0 -315
- package/template/.codex/skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py +0 -406
- package/template/.codex/skills/excalidraw-diagram-generator/scripts/split-excalidraw-library.py +0 -183
- package/template/.codex/skills/excalidraw-diagram-generator/templates/business-flow-swimlane-template.excalidraw +0 -334
- package/template/.codex/skills/excalidraw-diagram-generator/templates/class-diagram-template.excalidraw +0 -558
- package/template/.codex/skills/excalidraw-diagram-generator/templates/data-flow-diagram-template.excalidraw +0 -279
- package/template/.codex/skills/excalidraw-diagram-generator/templates/er-diagram-template.excalidraw +0 -662
- package/template/.codex/skills/excalidraw-diagram-generator/templates/flowchart-template.excalidraw +0 -179
- package/template/.codex/skills/excalidraw-diagram-generator/templates/mindmap-template.excalidraw +0 -244
- package/template/.codex/skills/excalidraw-diagram-generator/templates/relationship-template.excalidraw +0 -145
- package/template/.codex/skills/excalidraw-diagram-generator/templates/sequence-diagram-template.excalidraw +0 -509
- package/template/.codex/skills/kb-retriever/README.md +0 -197
- package/template/.codex/skills/kb-retriever/README.zh-CN.md +0 -197
- package/template/.codex/skills/kb-retriever/SKILL.md +0 -250
- package/template/.codex/skills/kb-retriever/manifest.json +0 -15
- package/template/.codex/skills/kb-retriever/references/excel_analysis.md +0 -129
- package/template/.codex/skills/kb-retriever/references/excel_reading.md +0 -72
- package/template/.codex/skills/kb-retriever/references/pdf_reading.md +0 -362
- package/template/.codex/skills/kb-retriever/scripts/convert_pdf_to_images.py +0 -35
- package/template/.codex/skills/yss-db2mybatis/requirements.txt +0 -4
- package/template/.codex/skills/yss-db2mybatis/scripts/db2mybatis.py +0 -1494
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.py +0 -728
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.py +0 -155
- package/template/.codex/skills/yss-design-system/scripts/validate-frontmatter.py +0 -50
- package/template/.codex/skills/yss-source-index/scripts/refresh-yss-skill-index.py +0 -371
- package/template/.codex/skills/yss-web-controller/scripts/generate_controller.py +0 -293
- package/template/.codex/skills/yss-web-controller/scripts/test_generate_controller.py +0 -68
- package/template/.hermes/skills/beautiful-article/README.md +0 -450
- package/template/.hermes/skills/beautiful-article/README.zh-CN.md +0 -450
- package/template/.hermes/skills/beautiful-article/SKILL.md +0 -466
- package/template/.hermes/skills/beautiful-article/assets/scaffold-template/__yss_dotfile__.npmrc +0 -1
- package/template/.hermes/skills/beautiful-article/assets/scaffold-template/article/Article.tsx +0 -69
- package/template/.hermes/skills/beautiful-article/assets/scaffold-template/article/Cover.tsx +0 -172
- package/template/.hermes/skills/beautiful-article/assets/scaffold-template/article/main.tsx +0 -26
- package/template/.hermes/skills/beautiful-article/assets/scaffold-template/article/sections/01-opening.tsx +0 -30
- package/template/.hermes/skills/beautiful-article/assets/scaffold-template/index.html +0 -19
- package/template/.hermes/skills/beautiful-article/assets/scaffold-template/package.json +0 -26
- package/template/.hermes/skills/beautiful-article/assets/scaffold-template/tsconfig.json +0 -20
- package/template/.hermes/skills/beautiful-article/assets/scaffold-template/tsconfig.node.json +0 -11
- package/template/.hermes/skills/beautiful-article/assets/scaffold-template/vite.config.ts +0 -18
- package/template/.hermes/skills/beautiful-article/manifest.json +0 -15
- package/template/.hermes/skills/beautiful-article/references/article-types/briefing.md +0 -32
- package/template/.hermes/skills/beautiful-article/references/article-types/dialogue.md +0 -30
- package/template/.hermes/skills/beautiful-article/references/article-types/essay.md +0 -31
- package/template/.hermes/skills/beautiful-article/references/article-types/explainer.md +0 -32
- package/template/.hermes/skills/beautiful-article/references/article-types/full-report.md +0 -32
- package/template/.hermes/skills/beautiful-article/references/article-types/interactive-explainer.md +0 -66
- package/template/.hermes/skills/beautiful-article/references/article-types/longform.md +0 -32
- package/template/.hermes/skills/beautiful-article/references/article-types/review.md +0 -32
- package/template/.hermes/skills/beautiful-article/references/article-types/tutorial.md +0 -30
- package/template/.hermes/skills/beautiful-article/references/article-types/visual-essay.md +0 -33
- package/template/.hermes/skills/beautiful-article/references/article-types.md +0 -42
- package/template/.hermes/skills/beautiful-article/references/asset-policy.md +0 -71
- package/template/.hermes/skills/beautiful-article/references/component-policy.md +0 -103
- package/template/.hermes/skills/beautiful-article/references/cover.md +0 -208
- package/template/.hermes/skills/beautiful-article/references/harness.md +0 -35
- package/template/.hermes/skills/beautiful-article/references/html-output.md +0 -42
- package/template/.hermes/skills/beautiful-article/references/information-density.md +0 -50
- package/template/.hermes/skills/beautiful-article/references/layout.md +0 -46
- package/template/.hermes/skills/beautiful-article/references/pdf-output.md +0 -208
- package/template/.hermes/skills/beautiful-article/references/plan-template.md +0 -109
- package/template/.hermes/skills/beautiful-article/references/raw-policy.md +0 -86
- package/template/.hermes/skills/beautiful-article/references/repair-policy.md +0 -35
- package/template/.hermes/skills/beautiful-article/references/review-checklist.md +0 -133
- package/template/.hermes/skills/beautiful-article/references/scaffold.md +0 -77
- package/template/.hermes/skills/beautiful-article/references/section-build.md +0 -100
- package/template/.hermes/skills/beautiful-article/references/source-to-markdown.md +0 -118
- package/template/.hermes/skills/beautiful-article/references/theme-selection.md +0 -48
- package/template/.hermes/skills/beautiful-article/scripts/html-to-pdf.sh +0 -160
- package/template/.hermes/skills/beautiful-article/scripts/pdf-print-overrides.css +0 -192
- package/template/.hermes/skills/beautiful-article/scripts/scaffold.sh +0 -172
- package/template/.hermes/skills/beautiful-article/scripts/source-to-markdown-markitdown.py +0 -100
- package/template/.hermes/skills/beautiful-article/scripts/source-to-markdown.py +0 -174
- package/template/.hermes/skills/beautiful-article/theme-profiles/andy.md +0 -57
- package/template/.hermes/skills/beautiful-article/theme-profiles/bayer.md +0 -57
- package/template/.hermes/skills/beautiful-article/theme-profiles/bodoni.md +0 -57
- package/template/.hermes/skills/beautiful-article/theme-profiles/freddie.md +0 -57
- package/template/.hermes/skills/beautiful-article/theme-profiles/fuller.md +0 -56
- package/template/.hermes/skills/beautiful-article/theme-profiles/index.json +0 -112
- package/template/.hermes/skills/beautiful-article/theme-profiles/knuth.md +0 -60
- package/template/.hermes/skills/beautiful-article/theme-profiles/press.md +0 -61
- package/template/.hermes/skills/beautiful-article/theme-profiles/shannon.md +0 -64
- package/template/.hermes/skills/beautiful-article/theme-profiles/sottsass.md +0 -57
- package/template/.hermes/skills/beautiful-article/theme-profiles/tufte.md +0 -64
- package/template/.hermes/skills/beautiful-article/theme-profiles/vignelli.md +0 -63
- package/template/.hermes/skills/drawio/.mcp.json +0 -8
- package/template/.hermes/skills/drawio/CHANGELOG.md +0 -216
- package/template/.hermes/skills/drawio/SKILL.md +0 -157
- package/template/.hermes/skills/drawio/agents/interface.yaml +0 -26
- package/template/.hermes/skills/drawio/agents/openai.yaml +0 -26
- package/template/.hermes/skills/drawio/assets/catalog/ai-icons.json.gz +0 -0
- package/template/.hermes/skills/drawio/assets/catalog/shape-catalog.json.gz +0 -0
- package/template/.hermes/skills/drawio/assets/catalog/shape-index.json.gz +0 -0
- package/template/.hermes/skills/drawio/assets/examples/login-flow-test.drawio +0 -6
- package/template/.hermes/skills/drawio/assets/examples/login-flow.drawio +0 -6
- package/template/.hermes/skills/drawio/assets/examples/microservices.drawio +0 -6
- package/template/.hermes/skills/drawio/assets/examples/neural-network.drawio +0 -6
- package/template/.hermes/skills/drawio/assets/licenses/architecture-diagram-generator-MIT.txt +0 -26
- package/template/.hermes/skills/drawio/assets/licenses/drawio-mcp-shape-index-Apache-2.0.txt +0 -8
- package/template/.hermes/skills/drawio/assets/licenses/lobe-icons-MIT.txt +0 -26
- package/template/.hermes/skills/drawio/assets/licenses/lucide-ISC.txt +0 -41
- package/template/.hermes/skills/drawio/assets/palettes/c4-blue.json +0 -29
- package/template/.hermes/skills/drawio/assets/palettes/cloud-aws.json +0 -30
- package/template/.hermes/skills/drawio/assets/palettes/drawio-classic.json +0 -21
- package/template/.hermes/skills/drawio/assets/palettes/ieee-bw.json +0 -26
- package/template/.hermes/skills/drawio/assets/palettes/ieee-color.json +0 -17
- package/template/.hermes/skills/drawio/assets/palettes/journal-jama.json +0 -20
- package/template/.hermes/skills/drawio/assets/palettes/journal-npg.json +0 -23
- package/template/.hermes/skills/drawio/assets/palettes/matlab-lines.json +0 -20
- package/template/.hermes/skills/drawio/assets/palettes/morandi.json +0 -21
- package/template/.hermes/skills/drawio/assets/palettes/okabe-ito.json +0 -21
- package/template/.hermes/skills/drawio/assets/palettes/seaborn-colorblind.json +0 -23
- package/template/.hermes/skills/drawio/assets/palettes/tol-bright.json +0 -20
- package/template/.hermes/skills/drawio/assets/palettes/tol-high-contrast.json +0 -18
- package/template/.hermes/skills/drawio/assets/palettes/tol-light-fill.json +0 -22
- package/template/.hermes/skills/drawio/assets/palettes/tol-muted.json +0 -22
- package/template/.hermes/skills/drawio/assets/schemas/graph-projection.schema.json +0 -135
- package/template/.hermes/skills/drawio/assets/schemas/spec.schema.json +0 -620
- package/template/.hermes/skills/drawio/assets/themes/academic-color.json +0 -299
- package/template/.hermes/skills/drawio/assets/themes/academic.json +0 -245
- package/template/.hermes/skills/drawio/assets/themes/arch-dark.json +0 -253
- package/template/.hermes/skills/drawio/assets/themes/blueprint.json +0 -246
- package/template/.hermes/skills/drawio/assets/themes/dark-luxury.json +0 -246
- package/template/.hermes/skills/drawio/assets/themes/dark-terminal.json +0 -244
- package/template/.hermes/skills/drawio/assets/themes/dark.json +0 -220
- package/template/.hermes/skills/drawio/assets/themes/high-contrast.json +0 -220
- package/template/.hermes/skills/drawio/assets/themes/nature.json +0 -220
- package/template/.hermes/skills/drawio/assets/themes/notion-clean.json +0 -246
- package/template/.hermes/skills/drawio/assets/themes/tech-blue.json +0 -220
- package/template/.hermes/skills/drawio/evals/README.md +0 -17
- package/template/.hermes/skills/drawio/evals/ai-icon-catalog-cases.json +0 -89
- package/template/.hermes/skills/drawio/evals/baseline-prompts.json +0 -122
- package/template/.hermes/skills/drawio/evals/darwin-results.tsv +0 -4
- package/template/.hermes/skills/drawio/evals/evals.json +0 -223
- package/template/.hermes/skills/drawio/evals/evidence/ai-icon-catalog-desktop.json +0 -134
- package/template/.hermes/skills/drawio/evals/fixtures/ai-icons-advanced-svg.yaml +0 -25
- package/template/.hermes/skills/drawio/evals/fixtures/ai-icons-cjk-agent-rag.yaml +0 -55
- package/template/.hermes/skills/drawio/evals/fixtures/ai-icons-core-aliases.yaml +0 -50
- package/template/.hermes/skills/drawio/evals/fixtures/ai-icons-current-color.yaml +0 -25
- package/template/.hermes/skills/drawio/evals/fixtures/ai-icons-gradients.yaml +0 -25
- package/template/.hermes/skills/drawio/evals/fixtures/import-simple-compressed.drawio +0 -5
- package/template/.hermes/skills/drawio/evals/fixtures/import-simple.drawio +0 -28
- package/template/.hermes/skills/drawio/evals/fixtures/industrial-architecture.yaml +0 -239
- package/template/.hermes/skills/drawio/evals/fixtures/replicate-academic-highlight.svg +0 -13
- package/template/.hermes/skills/drawio/evals/fixtures/replicate-brand-architecture.svg +0 -14
- package/template/.hermes/skills/drawio/evals/fixtures/replicate-warm-approval.svg +0 -13
- package/template/.hermes/skills/drawio/evals/fixtures/vision-tall-workflow.yaml +0 -47
- package/template/.hermes/skills/drawio/evals/upstream-integration-cases.json +0 -78
- package/template/.hermes/skills/drawio/evals/vision-preview-cases.json +0 -147
- package/template/.hermes/skills/drawio/references/docs/agent-diagrams.md +0 -164
- package/template/.hermes/skills/drawio/references/docs/ah-format.md +0 -322
- package/template/.hermes/skills/drawio/references/docs/architecture-diagrams.md +0 -159
- package/template/.hermes/skills/drawio/references/docs/canonical-graph-projection.md +0 -54
- package/template/.hermes/skills/drawio/references/docs/code-importers.md +0 -53
- package/template/.hermes/skills/drawio/references/docs/config-importers.md +0 -68
- package/template/.hermes/skills/drawio/references/docs/design-system/README.md +0 -204
- package/template/.hermes/skills/drawio/references/docs/design-system/color-guide.md +0 -255
- package/template/.hermes/skills/drawio/references/docs/design-system/connectors.md +0 -388
- package/template/.hermes/skills/drawio/references/docs/design-system/formulas.md +0 -196
- package/template/.hermes/skills/drawio/references/docs/design-system/icons.md +0 -332
- package/template/.hermes/skills/drawio/references/docs/design-system/shapes.md +0 -269
- package/template/.hermes/skills/drawio/references/docs/design-system/specification.md +0 -754
- package/template/.hermes/skills/drawio/references/docs/design-system/themes.md +0 -441
- package/template/.hermes/skills/drawio/references/docs/design-system/tokens.md +0 -232
- package/template/.hermes/skills/drawio/references/docs/edge-quality-rules.md +0 -65
- package/template/.hermes/skills/drawio/references/docs/ieee-network-diagrams.md +0 -145
- package/template/.hermes/skills/drawio/references/docs/live-snapshots-drift.md +0 -72
- package/template/.hermes/skills/drawio/references/docs/math-typesetting.md +0 -258
- package/template/.hermes/skills/drawio/references/docs/mcp-tools.md +0 -85
- package/template/.hermes/skills/drawio/references/docs/migration-readiness.md +0 -73
- package/template/.hermes/skills/drawio/references/docs/stencil-library-guide.md +0 -97
- package/template/.hermes/skills/drawio/references/docs/style-extraction.md +0 -261
- package/template/.hermes/skills/drawio/references/docs/style-presets.md +0 -126
- package/template/.hermes/skills/drawio/references/docs/upstream-capability-compatibility.md +0 -61
- package/template/.hermes/skills/drawio/references/docs/xml-format.md +0 -53
- package/template/.hermes/skills/drawio/references/examples/README.md +0 -33
- package/template/.hermes/skills/drawio/references/examples/agentic-rag.yaml +0 -71
- package/template/.hermes/skills/drawio/references/examples/arch-dark-aws-serverless.yaml +0 -103
- package/template/.hermes/skills/drawio/references/examples/arch-dark-microservices.yaml +0 -146
- package/template/.hermes/skills/drawio/references/examples/arch-dark-web-app.yaml +0 -62
- package/template/.hermes/skills/drawio/references/examples/auto-layout-workflow.yaml +0 -81
- package/template/.hermes/skills/drawio/references/examples/aws-vpc-topology.yaml +0 -66
- package/template/.hermes/skills/drawio/references/examples/campus-lan-topology.yaml +0 -89
- package/template/.hermes/skills/drawio/references/examples/cloud-reference-architecture.yaml +0 -34
- package/template/.hermes/skills/drawio/references/examples/e-commerce.yaml +0 -141
- package/template/.hermes/skills/drawio/references/examples/importers/README.md +0 -10
- package/template/.hermes/skills/drawio/references/examples/importers/live/compose-drift-evidence.json +0 -49
- package/template/.hermes/skills/drawio/references/examples/importers/live/compose-drift-report.json +0 -300
- package/template/.hermes/skills/drawio/references/examples/importers/live/compose-drift.spec.yaml +0 -75
- package/template/.hermes/skills/drawio/references/examples/importers/live/docker-inspect.json +0 -55
- package/template/.hermes/skills/drawio/references/examples/importers/live/drift-declared-compose.yaml +0 -13
- package/template/.hermes/skills/drawio/references/examples/importers/live/kubernetes-live.json +0 -71
- package/template/.hermes/skills/drawio/references/examples/importers/live/terraform-state.json +0 -70
- package/template/.hermes/skills/drawio/references/examples/importers/schema.sql +0 -10
- package/template/.hermes/skills/drawio/references/examples/importers/terraform.tf +0 -9
- package/template/.hermes/skills/drawio/references/examples/login-flow.yaml +0 -65
- package/template/.hermes/skills/drawio/references/examples/mem0-memory-layer.yaml +0 -63
- package/template/.hermes/skills/drawio/references/examples/microservices.yaml +0 -58
- package/template/.hermes/skills/drawio/references/examples/multi-agent-orchestration.yaml +0 -67
- package/template/.hermes/skills/drawio/references/examples/neural-network.yaml +0 -66
- package/template/.hermes/skills/drawio/references/examples/onprem-dmz-topology.yaml +0 -62
- package/template/.hermes/skills/drawio/references/examples/palettes/README.md +0 -29
- package/template/.hermes/skills/drawio/references/examples/palettes/c4-blue.drawio +0 -6
- package/template/.hermes/skills/drawio/references/examples/palettes/c4-blue.svg +0 -36
- package/template/.hermes/skills/drawio/references/examples/palettes/cloud-aws.drawio +0 -6
- package/template/.hermes/skills/drawio/references/examples/palettes/cloud-aws.svg +0 -36
- package/template/.hermes/skills/drawio/references/examples/palettes/drawio-classic.drawio +0 -6
- package/template/.hermes/skills/drawio/references/examples/palettes/drawio-classic.svg +0 -36
- package/template/.hermes/skills/drawio/references/examples/palettes/ieee-bw.drawio +0 -6
- package/template/.hermes/skills/drawio/references/examples/palettes/ieee-bw.svg +0 -36
- package/template/.hermes/skills/drawio/references/examples/palettes/ieee-color.drawio +0 -6
- package/template/.hermes/skills/drawio/references/examples/palettes/ieee-color.svg +0 -36
- package/template/.hermes/skills/drawio/references/examples/palettes/journal-jama.drawio +0 -6
- package/template/.hermes/skills/drawio/references/examples/palettes/journal-jama.svg +0 -36
- package/template/.hermes/skills/drawio/references/examples/palettes/journal-npg.drawio +0 -6
- package/template/.hermes/skills/drawio/references/examples/palettes/journal-npg.svg +0 -36
- package/template/.hermes/skills/drawio/references/examples/palettes/matlab-lines.drawio +0 -6
- package/template/.hermes/skills/drawio/references/examples/palettes/matlab-lines.svg +0 -36
- package/template/.hermes/skills/drawio/references/examples/palettes/morandi.drawio +0 -6
- package/template/.hermes/skills/drawio/references/examples/palettes/morandi.svg +0 -36
- package/template/.hermes/skills/drawio/references/examples/palettes/okabe-ito.drawio +0 -6
- package/template/.hermes/skills/drawio/references/examples/palettes/okabe-ito.svg +0 -36
- package/template/.hermes/skills/drawio/references/examples/palettes/palette-swatch.template.yaml +0 -56
- package/template/.hermes/skills/drawio/references/examples/palettes/seaborn-colorblind.drawio +0 -6
- package/template/.hermes/skills/drawio/references/examples/palettes/seaborn-colorblind.svg +0 -36
- package/template/.hermes/skills/drawio/references/examples/palettes/tol-bright.drawio +0 -6
- package/template/.hermes/skills/drawio/references/examples/palettes/tol-bright.svg +0 -36
- package/template/.hermes/skills/drawio/references/examples/palettes/tol-high-contrast.drawio +0 -6
- package/template/.hermes/skills/drawio/references/examples/palettes/tol-high-contrast.svg +0 -36
- package/template/.hermes/skills/drawio/references/examples/palettes/tol-light-fill.drawio +0 -6
- package/template/.hermes/skills/drawio/references/examples/palettes/tol-light-fill.svg +0 -36
- package/template/.hermes/skills/drawio/references/examples/palettes/tol-muted.drawio +0 -6
- package/template/.hermes/skills/drawio/references/examples/palettes/tol-muted.svg +0 -36
- package/template/.hermes/skills/drawio/references/examples/rag-pipeline.yaml +0 -67
- package/template/.hermes/skills/drawio/references/examples/replicated-brand-flow.yaml +0 -89
- package/template/.hermes/skills/drawio/references/examples/swimlane-engineering-review.yaml +0 -44
- package/template/.hermes/skills/drawio/references/examples/tiered-network-topology.yaml +0 -59
- package/template/.hermes/skills/drawio/references/examples/tool-call-loop.yaml +0 -63
- package/template/.hermes/skills/drawio/references/examples/vendor-device-mapping.yaml +0 -46
- package/template/.hermes/skills/drawio/references/official/style-reference.md +0 -936
- package/template/.hermes/skills/drawio/references/official/xml-reference.md +0 -262
- package/template/.hermes/skills/drawio/references/palette.schema.json +0 -59
- package/template/.hermes/skills/drawio/references/theme.schema.json +0 -249
- package/template/.hermes/skills/drawio/references/upstream/pure-drawio-skill.md +0 -615
- package/template/.hermes/skills/drawio/references/workflows/create.md +0 -195
- package/template/.hermes/skills/drawio/references/workflows/edit.md +0 -174
- package/template/.hermes/skills/drawio/references/workflows/replicate.md +0 -239
- package/template/.hermes/skills/drawio/references/workflows/visual-review.md +0 -108
- package/template/.hermes/skills/drawio/reports/output_quality_scorecard.md +0 -106
- package/template/.hermes/skills/drawio/reports/upstream-port-release-evidence.md +0 -43
- package/template/.hermes/skills/drawio/scripts/adapters/ci.js +0 -139
- package/template/.hermes/skills/drawio/scripts/adapters/ci.test.js +0 -41
- package/template/.hermes/skills/drawio/scripts/adapters/code-common.js +0 -171
- package/template/.hermes/skills/drawio/scripts/adapters/code-imports.test.js +0 -80
- package/template/.hermes/skills/drawio/scripts/adapters/code-parsers.integration.test.js +0 -71
- package/template/.hermes/skills/drawio/scripts/adapters/compose.js +0 -134
- package/template/.hermes/skills/drawio/scripts/adapters/compose.test.js +0 -54
- package/template/.hermes/skills/drawio/scripts/adapters/config-adapters.integration.test.js +0 -58
- package/template/.hermes/skills/drawio/scripts/adapters/config-common.js +0 -131
- package/template/.hermes/skills/drawio/scripts/adapters/config-common.test.js +0 -32
- package/template/.hermes/skills/drawio/scripts/adapters/docker-inspect.js +0 -127
- package/template/.hermes/skills/drawio/scripts/adapters/docker-inspect.test.js +0 -62
- package/template/.hermes/skills/drawio/scripts/adapters/fixtures/raster-extraction.json +0 -31
- package/template/.hermes/skills/drawio/scripts/adapters/go-code-adapter.test.js +0 -59
- package/template/.hermes/skills/drawio/scripts/adapters/go-code.js +0 -168
- package/template/.hermes/skills/drawio/scripts/adapters/graph-drift.file.test.js +0 -67
- package/template/.hermes/skills/drawio/scripts/adapters/graph-drift.js +0 -358
- package/template/.hermes/skills/drawio/scripts/adapters/graph-drift.test.js +0 -272
- package/template/.hermes/skills/drawio/scripts/adapters/graph-projection.js +0 -335
- package/template/.hermes/skills/drawio/scripts/adapters/graph-projection.test.js +0 -141
- package/template/.hermes/skills/drawio/scripts/adapters/identity.js +0 -244
- package/template/.hermes/skills/drawio/scripts/adapters/identity.test.js +0 -123
- package/template/.hermes/skills/drawio/scripts/adapters/index.js +0 -489
- package/template/.hermes/skills/drawio/scripts/adapters/index.test.js +0 -152
- package/template/.hermes/skills/drawio/scripts/adapters/js-code-adapter.test.js +0 -42
- package/template/.hermes/skills/drawio/scripts/adapters/js-code.js +0 -141
- package/template/.hermes/skills/drawio/scripts/adapters/kubernetes-live.test.js +0 -46
- package/template/.hermes/skills/drawio/scripts/adapters/kubernetes.js +0 -258
- package/template/.hermes/skills/drawio/scripts/adapters/kubernetes.test.js +0 -81
- package/template/.hermes/skills/drawio/scripts/adapters/openapi.js +0 -98
- package/template/.hermes/skills/drawio/scripts/adapters/openapi.test.js +0 -46
- package/template/.hermes/skills/drawio/scripts/adapters/optional-python-code.js +0 -16
- package/template/.hermes/skills/drawio/scripts/adapters/optional-python.integration.test.js +0 -32
- package/template/.hermes/skills/drawio/scripts/adapters/optional-python.js +0 -127
- package/template/.hermes/skills/drawio/scripts/adapters/optional-python.test.js +0 -55
- package/template/.hermes/skills/drawio/scripts/adapters/projection-to-spec.js +0 -116
- package/template/.hermes/skills/drawio/scripts/adapters/projection-to-spec.test.js +0 -139
- package/template/.hermes/skills/drawio/scripts/adapters/python/code-parser-worker.py +0 -93
- package/template/.hermes/skills/drawio/scripts/adapters/python/config-parser-worker.py +0 -237
- package/template/.hermes/skills/drawio/scripts/adapters/python/requirements.txt +0 -2
- package/template/.hermes/skills/drawio/scripts/adapters/python-code-adapter.test.js +0 -127
- package/template/.hermes/skills/drawio/scripts/adapters/python-code.js +0 -246
- package/template/.hermes/skills/drawio/scripts/adapters/raster-extraction.js +0 -258
- package/template/.hermes/skills/drawio/scripts/adapters/raster-extraction.test.js +0 -308
- package/template/.hermes/skills/drawio/scripts/adapters/rust-code-adapter.test.js +0 -64
- package/template/.hermes/skills/drawio/scripts/adapters/rust-code.js +0 -207
- package/template/.hermes/skills/drawio/scripts/adapters/sql-ddl.js +0 -118
- package/template/.hermes/skills/drawio/scripts/adapters/sql-ddl.test.js +0 -56
- package/template/.hermes/skills/drawio/scripts/adapters/terraform-config.js +0 -141
- package/template/.hermes/skills/drawio/scripts/adapters/terraform-config.test.js +0 -67
- package/template/.hermes/skills/drawio/scripts/adapters/terraform-state.js +0 -157
- package/template/.hermes/skills/drawio/scripts/adapters/terraform-state.test.js +0 -69
- package/template/.hermes/skills/drawio/scripts/cli.js +0 -700
- package/template/.hermes/skills/drawio/scripts/dsl/ah-to-drawio.js +0 -276
- package/template/.hermes/skills/drawio/scripts/dsl/ah-to-drawio.test.js +0 -77
- package/template/.hermes/skills/drawio/scripts/dsl/ai-icon-catalog.js +0 -126
- package/template/.hermes/skills/drawio/scripts/dsl/ai-icon-catalog.test.js +0 -86
- package/template/.hermes/skills/drawio/scripts/dsl/auto-layout.js +0 -206
- package/template/.hermes/skills/drawio/scripts/dsl/auto-layout.test.js +0 -249
- package/template/.hermes/skills/drawio/scripts/dsl/catalog-ranking.js +0 -54
- package/template/.hermes/skills/drawio/scripts/dsl/catalog-search.js +0 -58
- package/template/.hermes/skills/drawio/scripts/dsl/catalog-search.test.js +0 -44
- package/template/.hermes/skills/drawio/scripts/dsl/document-spec.js +0 -256
- package/template/.hermes/skills/drawio/scripts/dsl/document-spec.test.js +0 -147
- package/template/.hermes/skills/drawio/scripts/dsl/drawio-to-spec.js +0 -497
- package/template/.hermes/skills/drawio/scripts/dsl/examples-baseline.test.js +0 -30
- package/template/.hermes/skills/drawio/scripts/dsl/icon-mappings.js +0 -65
- package/template/.hermes/skills/drawio/scripts/dsl/icon-mappings.test.js +0 -19
- package/template/.hermes/skills/drawio/scripts/dsl/icon-resolver.js +0 -153
- package/template/.hermes/skills/drawio/scripts/dsl/icon-resolver.test.js +0 -62
- package/template/.hermes/skills/drawio/scripts/dsl/multi-page.js +0 -224
- package/template/.hermes/skills/drawio/scripts/dsl/multi-page.test.js +0 -107
- package/template/.hermes/skills/drawio/scripts/dsl/palette-catalog.test.js +0 -138
- package/template/.hermes/skills/drawio/scripts/dsl/palette-integration.test.js +0 -182
- package/template/.hermes/skills/drawio/scripts/dsl/palette-validate.js +0 -91
- package/template/.hermes/skills/drawio/scripts/dsl/palette.js +0 -302
- package/template/.hermes/skills/drawio/scripts/dsl/palette.test.js +0 -197
- package/template/.hermes/skills/drawio/scripts/dsl/shape-catalog.js +0 -89
- package/template/.hermes/skills/drawio/scripts/dsl/shape-catalog.test.js +0 -21
- package/template/.hermes/skills/drawio/scripts/dsl/spec-to-drawio.js +0 -3739
- package/template/.hermes/skills/drawio/scripts/dsl/spec-to-drawio.test.js +0 -3022
- package/template/.hermes/skills/drawio/scripts/generate-palette-swatches.js +0 -87
- package/template/.hermes/skills/drawio/scripts/install.bat +0 -64
- package/template/.hermes/skills/drawio/scripts/install.sh +0 -44
- package/template/.hermes/skills/drawio/scripts/math/index.js +0 -317
- package/template/.hermes/skills/drawio/scripts/math/index.test.js +0 -62
- package/template/.hermes/skills/drawio/scripts/package.json +0 -1
- package/template/.hermes/skills/drawio/scripts/postprocess/artifacts.js +0 -142
- package/template/.hermes/skills/drawio/scripts/postprocess/artifacts.test.js +0 -86
- package/template/.hermes/skills/drawio/scripts/postprocess/cli.js +0 -228
- package/template/.hermes/skills/drawio/scripts/postprocess/cli.test.js +0 -129
- package/template/.hermes/skills/drawio/scripts/postprocess/fixtures/bundle.yaml +0 -75
- package/template/.hermes/skills/drawio/scripts/postprocess/fixtures/legacy.yaml +0 -21
- package/template/.hermes/skills/drawio/scripts/postprocess/html.js +0 -197
- package/template/.hermes/skills/drawio/scripts/postprocess/html.test.js +0 -50
- package/template/.hermes/skills/drawio/scripts/postprocess/index.js +0 -5
- package/template/.hermes/skills/drawio/scripts/postprocess/input.js +0 -112
- package/template/.hermes/skills/drawio/scripts/postprocess/input.test.js +0 -73
- package/template/.hermes/skills/drawio/scripts/postprocess/mutate.js +0 -584
- package/template/.hermes/skills/drawio/scripts/postprocess/mutate.test.js +0 -193
- package/template/.hermes/skills/drawio/scripts/postprocess/projection.js +0 -178
- package/template/.hermes/skills/drawio/scripts/postprocess/projection.test.js +0 -67
- package/template/.hermes/skills/drawio/scripts/runtime/artifacts.js +0 -283
- package/template/.hermes/skills/drawio/scripts/runtime/desktop.js +0 -204
- package/template/.hermes/skills/drawio/scripts/runtime/desktop.test.js +0 -121
- package/template/.hermes/skills/drawio/scripts/runtime/diagrams-net-url.js +0 -122
- package/template/.hermes/skills/drawio/scripts/runtime/export-stability.js +0 -75
- package/template/.hermes/skills/drawio/scripts/runtime/export-stability.test.js +0 -81
- package/template/.hermes/skills/drawio/scripts/runtime/png-inspection.js +0 -157
- package/template/.hermes/skills/drawio/scripts/runtime/png-inspection.test.js +0 -120
- package/template/.hermes/skills/drawio/scripts/runtime/vision-preview.js +0 -77
- package/template/.hermes/skills/drawio/scripts/runtime/vision-preview.test.js +0 -103
- package/template/.hermes/skills/drawio/scripts/shared/ai-icon-contract.js +0 -13
- package/template/.hermes/skills/drawio/scripts/shared/xml-utils.js +0 -241
- package/template/.hermes/skills/drawio/scripts/svg/drawio-to-svg.js +0 -918
- package/template/.hermes/skills/drawio/scripts/svg/drawio-to-svg.test.js +0 -763
- package/template/.hermes/skills/drawio/scripts/tools/build-ai-icon-catalog.js +0 -208
- package/template/.hermes/skills/drawio/scripts/tools/build-ai-icon-catalog.test.js +0 -107
- package/template/.hermes/skills/drawio/scripts/tools/build-shape-catalog.js +0 -84
- package/template/.hermes/skills/drawio/scripts/tools/build-shape-catalog.test.js +0 -43
- package/template/.hermes/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/alpha-color.svg +0 -1
- package/template/.hermes/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/alpha.svg +0 -1
- package/template/.hermes/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/beta-brand-color.svg +0 -1
- package/template/.hermes/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/beta.svg +0 -1
- package/template/.hermes/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/civitai-text-color.svg +0 -1
- package/template/.hermes/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/civitai.svg +0 -1
- package/template/.hermes/skills/drawio/scripts/tools/fixtures/ai-icons-package/package.json +0 -5
- package/template/.hermes/skills/drawio/scripts/vendor/elkjs/LICENSE.md +0 -264
- package/template/.hermes/skills/drawio/scripts/vendor/elkjs/README.md +0 -18
- package/template/.hermes/skills/drawio/scripts/vendor/elkjs/elk.bundled.cjs +0 -6589
- package/template/.hermes/skills/drawio/styles/built-in/corporate.json +0 -49
- package/template/.hermes/skills/drawio/styles/built-in/default.json +0 -49
- package/template/.hermes/skills/drawio/styles/built-in/handdrawn.json +0 -49
- package/template/.hermes/skills/drawio/styles/schema.json +0 -112
- package/template/.hermes/skills/drawio-academic-skills/CHANGELOG.md +0 -67
- package/template/.hermes/skills/drawio-academic-skills/README.md +0 -103
- package/template/.hermes/skills/drawio-academic-skills/README_CN.md +0 -103
- package/template/.hermes/skills/drawio-academic-skills/SKILL.md +0 -161
- package/template/.hermes/skills/drawio-academic-skills/__yss_dotfile__.gitignore +0 -12
- package/template/.hermes/skills/drawio-academic-skills/agents/interface.yaml +0 -25
- package/template/.hermes/skills/drawio-academic-skills/agents/openai.yaml +0 -24
- package/template/.hermes/skills/drawio-academic-skills/evals/README.md +0 -13
- package/template/.hermes/skills/drawio-academic-skills/evals/baseline-prompts.json +0 -52
- package/template/.hermes/skills/drawio-academic-skills/evals/darwin-results.tsv +0 -3
- package/template/.hermes/skills/drawio-academic-skills/evals/evals.json +0 -228
- package/template/.hermes/skills/drawio-academic-skills/evals/test-prompts.json +0 -17
- package/template/.hermes/skills/drawio-academic-skills/references/docs/academic-export-checklist.md +0 -45
- package/template/.hermes/skills/drawio-academic-skills/references/docs/academic-figure-playbook.md +0 -349
- package/template/.hermes/skills/drawio-academic-skills/references/docs/publication-overlay.md +0 -206
- package/template/.hermes/skills/drawio-academic-skills/references/examples/ablation-study-pipeline.yaml +0 -39
- package/template/.hermes/skills/drawio-academic-skills/references/examples/ieee-network-paper.yaml +0 -44
- package/template/.hermes/skills/drawio-academic-skills/references/examples/industrial-architecture-cn-paper.yaml +0 -106
- package/template/.hermes/skills/drawio-academic-skills/references/examples/max-pooling-operation-paper.yaml +0 -75
- package/template/.hermes/skills/drawio-academic-skills/references/examples/research-pipeline.yaml +0 -54
- package/template/.hermes/skills/drawio-academic-skills/references/examples/system-architecture-paper.yaml +0 -45
- package/template/.hermes/skills/drawio-academic-skills/references/examples/technical-roadmap-paper.yaml +0 -54
- package/template/.hermes/skills/drawio-academic-skills/references/examples/yolo-model-architecture-paper.yaml +0 -118
- package/template/.hermes/skills/drawio-academic-skills/references/templates/multi-module-system-compact.yaml +0 -251
- package/template/.hermes/skills/drawio-academic-skills/references/templates/neural-network-architecture-compact.yaml +0 -267
- package/template/.hermes/skills/excalidraw-diagram-generator/SKILL.md +0 -634
- package/template/.hermes/skills/excalidraw-diagram-generator/references/element-types.md +0 -497
- package/template/.hermes/skills/excalidraw-diagram-generator/references/excalidraw-schema.md +0 -350
- package/template/.hermes/skills/excalidraw-diagram-generator/scripts/README.md +0 -193
- package/template/.hermes/skills/excalidraw-diagram-generator/scripts/__yss_dotfile__.gitignore +0 -34
- package/template/.hermes/skills/excalidraw-diagram-generator/scripts/add-arrow.py +0 -315
- package/template/.hermes/skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py +0 -406
- package/template/.hermes/skills/excalidraw-diagram-generator/scripts/split-excalidraw-library.py +0 -183
- package/template/.hermes/skills/excalidraw-diagram-generator/templates/business-flow-swimlane-template.excalidraw +0 -334
- package/template/.hermes/skills/excalidraw-diagram-generator/templates/class-diagram-template.excalidraw +0 -558
- package/template/.hermes/skills/excalidraw-diagram-generator/templates/data-flow-diagram-template.excalidraw +0 -279
- package/template/.hermes/skills/excalidraw-diagram-generator/templates/er-diagram-template.excalidraw +0 -662
- package/template/.hermes/skills/excalidraw-diagram-generator/templates/flowchart-template.excalidraw +0 -179
- package/template/.hermes/skills/excalidraw-diagram-generator/templates/mindmap-template.excalidraw +0 -244
- package/template/.hermes/skills/excalidraw-diagram-generator/templates/relationship-template.excalidraw +0 -145
- package/template/.hermes/skills/excalidraw-diagram-generator/templates/sequence-diagram-template.excalidraw +0 -509
- package/template/.hermes/skills/kb-retriever/README.md +0 -197
- package/template/.hermes/skills/kb-retriever/README.zh-CN.md +0 -197
- package/template/.hermes/skills/kb-retriever/SKILL.md +0 -250
- package/template/.hermes/skills/kb-retriever/manifest.json +0 -15
- package/template/.hermes/skills/kb-retriever/references/excel_analysis.md +0 -129
- package/template/.hermes/skills/kb-retriever/references/excel_reading.md +0 -72
- package/template/.hermes/skills/kb-retriever/references/pdf_reading.md +0 -362
- package/template/.hermes/skills/kb-retriever/scripts/convert_pdf_to_images.py +0 -35
- package/template/.hermes/skills/yss-db2mybatis/requirements.txt +0 -4
- package/template/.hermes/skills/yss-db2mybatis/scripts/db2mybatis.py +0 -1494
- package/template/.hermes/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.py +0 -728
- package/template/.hermes/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.py +0 -155
- package/template/.hermes/skills/yss-design-system/scripts/validate-frontmatter.py +0 -50
- package/template/.hermes/skills/yss-source-index/scripts/refresh-yss-skill-index.py +0 -371
- package/template/.hermes/skills/yss-web-controller/scripts/generate_controller.py +0 -293
- package/template/.hermes/skills/yss-web-controller/scripts/test_generate_controller.py +0 -68
- package/template/.pi/skills/beautiful-article/README.md +0 -450
- package/template/.pi/skills/beautiful-article/README.zh-CN.md +0 -450
- package/template/.pi/skills/beautiful-article/SKILL.md +0 -466
- package/template/.pi/skills/beautiful-article/assets/scaffold-template/__yss_dotfile__.npmrc +0 -1
- package/template/.pi/skills/beautiful-article/assets/scaffold-template/article/Article.tsx +0 -69
- package/template/.pi/skills/beautiful-article/assets/scaffold-template/article/Cover.tsx +0 -172
- package/template/.pi/skills/beautiful-article/assets/scaffold-template/article/main.tsx +0 -26
- package/template/.pi/skills/beautiful-article/assets/scaffold-template/article/sections/01-opening.tsx +0 -30
- package/template/.pi/skills/beautiful-article/assets/scaffold-template/index.html +0 -19
- package/template/.pi/skills/beautiful-article/assets/scaffold-template/package.json +0 -26
- package/template/.pi/skills/beautiful-article/assets/scaffold-template/tsconfig.json +0 -20
- package/template/.pi/skills/beautiful-article/assets/scaffold-template/tsconfig.node.json +0 -11
- package/template/.pi/skills/beautiful-article/assets/scaffold-template/vite.config.ts +0 -18
- package/template/.pi/skills/beautiful-article/manifest.json +0 -15
- package/template/.pi/skills/beautiful-article/references/article-types/briefing.md +0 -32
- package/template/.pi/skills/beautiful-article/references/article-types/dialogue.md +0 -30
- package/template/.pi/skills/beautiful-article/references/article-types/essay.md +0 -31
- package/template/.pi/skills/beautiful-article/references/article-types/explainer.md +0 -32
- package/template/.pi/skills/beautiful-article/references/article-types/full-report.md +0 -32
- package/template/.pi/skills/beautiful-article/references/article-types/interactive-explainer.md +0 -66
- package/template/.pi/skills/beautiful-article/references/article-types/longform.md +0 -32
- package/template/.pi/skills/beautiful-article/references/article-types/review.md +0 -32
- package/template/.pi/skills/beautiful-article/references/article-types/tutorial.md +0 -30
- package/template/.pi/skills/beautiful-article/references/article-types/visual-essay.md +0 -33
- package/template/.pi/skills/beautiful-article/references/article-types.md +0 -42
- package/template/.pi/skills/beautiful-article/references/asset-policy.md +0 -71
- package/template/.pi/skills/beautiful-article/references/component-policy.md +0 -103
- package/template/.pi/skills/beautiful-article/references/cover.md +0 -208
- package/template/.pi/skills/beautiful-article/references/harness.md +0 -35
- package/template/.pi/skills/beautiful-article/references/html-output.md +0 -42
- package/template/.pi/skills/beautiful-article/references/information-density.md +0 -50
- package/template/.pi/skills/beautiful-article/references/layout.md +0 -46
- package/template/.pi/skills/beautiful-article/references/pdf-output.md +0 -208
- package/template/.pi/skills/beautiful-article/references/plan-template.md +0 -109
- package/template/.pi/skills/beautiful-article/references/raw-policy.md +0 -86
- package/template/.pi/skills/beautiful-article/references/repair-policy.md +0 -35
- package/template/.pi/skills/beautiful-article/references/review-checklist.md +0 -133
- package/template/.pi/skills/beautiful-article/references/scaffold.md +0 -77
- package/template/.pi/skills/beautiful-article/references/section-build.md +0 -100
- package/template/.pi/skills/beautiful-article/references/source-to-markdown.md +0 -118
- package/template/.pi/skills/beautiful-article/references/theme-selection.md +0 -48
- package/template/.pi/skills/beautiful-article/scripts/html-to-pdf.sh +0 -160
- package/template/.pi/skills/beautiful-article/scripts/pdf-print-overrides.css +0 -192
- package/template/.pi/skills/beautiful-article/scripts/scaffold.sh +0 -172
- package/template/.pi/skills/beautiful-article/scripts/source-to-markdown-markitdown.py +0 -100
- package/template/.pi/skills/beautiful-article/scripts/source-to-markdown.py +0 -174
- package/template/.pi/skills/beautiful-article/theme-profiles/andy.md +0 -57
- package/template/.pi/skills/beautiful-article/theme-profiles/bayer.md +0 -57
- package/template/.pi/skills/beautiful-article/theme-profiles/bodoni.md +0 -57
- package/template/.pi/skills/beautiful-article/theme-profiles/freddie.md +0 -57
- package/template/.pi/skills/beautiful-article/theme-profiles/fuller.md +0 -56
- package/template/.pi/skills/beautiful-article/theme-profiles/index.json +0 -112
- package/template/.pi/skills/beautiful-article/theme-profiles/knuth.md +0 -60
- package/template/.pi/skills/beautiful-article/theme-profiles/press.md +0 -61
- package/template/.pi/skills/beautiful-article/theme-profiles/shannon.md +0 -64
- package/template/.pi/skills/beautiful-article/theme-profiles/sottsass.md +0 -57
- package/template/.pi/skills/beautiful-article/theme-profiles/tufte.md +0 -64
- package/template/.pi/skills/beautiful-article/theme-profiles/vignelli.md +0 -63
- package/template/.pi/skills/drawio/.mcp.json +0 -8
- package/template/.pi/skills/drawio/CHANGELOG.md +0 -216
- package/template/.pi/skills/drawio/SKILL.md +0 -157
- package/template/.pi/skills/drawio/agents/interface.yaml +0 -26
- package/template/.pi/skills/drawio/agents/openai.yaml +0 -26
- package/template/.pi/skills/drawio/assets/catalog/ai-icons.json.gz +0 -0
- package/template/.pi/skills/drawio/assets/catalog/shape-catalog.json.gz +0 -0
- package/template/.pi/skills/drawio/assets/catalog/shape-index.json.gz +0 -0
- package/template/.pi/skills/drawio/assets/examples/login-flow-test.drawio +0 -6
- package/template/.pi/skills/drawio/assets/examples/login-flow.drawio +0 -6
- package/template/.pi/skills/drawio/assets/examples/microservices.drawio +0 -6
- package/template/.pi/skills/drawio/assets/examples/neural-network.drawio +0 -6
- package/template/.pi/skills/drawio/assets/licenses/architecture-diagram-generator-MIT.txt +0 -26
- package/template/.pi/skills/drawio/assets/licenses/drawio-mcp-shape-index-Apache-2.0.txt +0 -8
- package/template/.pi/skills/drawio/assets/licenses/lobe-icons-MIT.txt +0 -26
- package/template/.pi/skills/drawio/assets/licenses/lucide-ISC.txt +0 -41
- package/template/.pi/skills/drawio/assets/palettes/c4-blue.json +0 -29
- package/template/.pi/skills/drawio/assets/palettes/cloud-aws.json +0 -30
- package/template/.pi/skills/drawio/assets/palettes/drawio-classic.json +0 -21
- package/template/.pi/skills/drawio/assets/palettes/ieee-bw.json +0 -26
- package/template/.pi/skills/drawio/assets/palettes/ieee-color.json +0 -17
- package/template/.pi/skills/drawio/assets/palettes/journal-jama.json +0 -20
- package/template/.pi/skills/drawio/assets/palettes/journal-npg.json +0 -23
- package/template/.pi/skills/drawio/assets/palettes/matlab-lines.json +0 -20
- package/template/.pi/skills/drawio/assets/palettes/morandi.json +0 -21
- package/template/.pi/skills/drawio/assets/palettes/okabe-ito.json +0 -21
- package/template/.pi/skills/drawio/assets/palettes/seaborn-colorblind.json +0 -23
- package/template/.pi/skills/drawio/assets/palettes/tol-bright.json +0 -20
- package/template/.pi/skills/drawio/assets/palettes/tol-high-contrast.json +0 -18
- package/template/.pi/skills/drawio/assets/palettes/tol-light-fill.json +0 -22
- package/template/.pi/skills/drawio/assets/palettes/tol-muted.json +0 -22
- package/template/.pi/skills/drawio/assets/schemas/graph-projection.schema.json +0 -135
- package/template/.pi/skills/drawio/assets/schemas/spec.schema.json +0 -620
- package/template/.pi/skills/drawio/assets/themes/academic-color.json +0 -299
- package/template/.pi/skills/drawio/assets/themes/academic.json +0 -245
- package/template/.pi/skills/drawio/assets/themes/arch-dark.json +0 -253
- package/template/.pi/skills/drawio/assets/themes/blueprint.json +0 -246
- package/template/.pi/skills/drawio/assets/themes/dark-luxury.json +0 -246
- package/template/.pi/skills/drawio/assets/themes/dark-terminal.json +0 -244
- package/template/.pi/skills/drawio/assets/themes/dark.json +0 -220
- package/template/.pi/skills/drawio/assets/themes/high-contrast.json +0 -220
- package/template/.pi/skills/drawio/assets/themes/nature.json +0 -220
- package/template/.pi/skills/drawio/assets/themes/notion-clean.json +0 -246
- package/template/.pi/skills/drawio/assets/themes/tech-blue.json +0 -220
- package/template/.pi/skills/drawio/evals/README.md +0 -17
- package/template/.pi/skills/drawio/evals/ai-icon-catalog-cases.json +0 -89
- package/template/.pi/skills/drawio/evals/baseline-prompts.json +0 -122
- package/template/.pi/skills/drawio/evals/darwin-results.tsv +0 -4
- package/template/.pi/skills/drawio/evals/evals.json +0 -223
- package/template/.pi/skills/drawio/evals/evidence/ai-icon-catalog-desktop.json +0 -134
- package/template/.pi/skills/drawio/evals/fixtures/ai-icons-advanced-svg.yaml +0 -25
- package/template/.pi/skills/drawio/evals/fixtures/ai-icons-cjk-agent-rag.yaml +0 -55
- package/template/.pi/skills/drawio/evals/fixtures/ai-icons-core-aliases.yaml +0 -50
- package/template/.pi/skills/drawio/evals/fixtures/ai-icons-current-color.yaml +0 -25
- package/template/.pi/skills/drawio/evals/fixtures/ai-icons-gradients.yaml +0 -25
- package/template/.pi/skills/drawio/evals/fixtures/import-simple-compressed.drawio +0 -5
- package/template/.pi/skills/drawio/evals/fixtures/import-simple.drawio +0 -28
- package/template/.pi/skills/drawio/evals/fixtures/industrial-architecture.yaml +0 -239
- package/template/.pi/skills/drawio/evals/fixtures/replicate-academic-highlight.svg +0 -13
- package/template/.pi/skills/drawio/evals/fixtures/replicate-brand-architecture.svg +0 -14
- package/template/.pi/skills/drawio/evals/fixtures/replicate-warm-approval.svg +0 -13
- package/template/.pi/skills/drawio/evals/fixtures/vision-tall-workflow.yaml +0 -47
- package/template/.pi/skills/drawio/evals/upstream-integration-cases.json +0 -78
- package/template/.pi/skills/drawio/evals/vision-preview-cases.json +0 -147
- package/template/.pi/skills/drawio/references/docs/agent-diagrams.md +0 -164
- package/template/.pi/skills/drawio/references/docs/ah-format.md +0 -322
- package/template/.pi/skills/drawio/references/docs/architecture-diagrams.md +0 -159
- package/template/.pi/skills/drawio/references/docs/canonical-graph-projection.md +0 -54
- package/template/.pi/skills/drawio/references/docs/code-importers.md +0 -53
- package/template/.pi/skills/drawio/references/docs/config-importers.md +0 -68
- package/template/.pi/skills/drawio/references/docs/design-system/README.md +0 -204
- package/template/.pi/skills/drawio/references/docs/design-system/color-guide.md +0 -255
- package/template/.pi/skills/drawio/references/docs/design-system/connectors.md +0 -388
- package/template/.pi/skills/drawio/references/docs/design-system/formulas.md +0 -196
- package/template/.pi/skills/drawio/references/docs/design-system/icons.md +0 -332
- package/template/.pi/skills/drawio/references/docs/design-system/shapes.md +0 -269
- package/template/.pi/skills/drawio/references/docs/design-system/specification.md +0 -754
- package/template/.pi/skills/drawio/references/docs/design-system/themes.md +0 -441
- package/template/.pi/skills/drawio/references/docs/design-system/tokens.md +0 -232
- package/template/.pi/skills/drawio/references/docs/edge-quality-rules.md +0 -65
- package/template/.pi/skills/drawio/references/docs/ieee-network-diagrams.md +0 -145
- package/template/.pi/skills/drawio/references/docs/live-snapshots-drift.md +0 -72
- package/template/.pi/skills/drawio/references/docs/math-typesetting.md +0 -258
- package/template/.pi/skills/drawio/references/docs/mcp-tools.md +0 -85
- package/template/.pi/skills/drawio/references/docs/migration-readiness.md +0 -73
- package/template/.pi/skills/drawio/references/docs/stencil-library-guide.md +0 -97
- package/template/.pi/skills/drawio/references/docs/style-extraction.md +0 -261
- package/template/.pi/skills/drawio/references/docs/style-presets.md +0 -126
- package/template/.pi/skills/drawio/references/docs/upstream-capability-compatibility.md +0 -61
- package/template/.pi/skills/drawio/references/docs/xml-format.md +0 -53
- package/template/.pi/skills/drawio/references/examples/README.md +0 -33
- package/template/.pi/skills/drawio/references/examples/agentic-rag.yaml +0 -71
- package/template/.pi/skills/drawio/references/examples/arch-dark-aws-serverless.yaml +0 -103
- package/template/.pi/skills/drawio/references/examples/arch-dark-microservices.yaml +0 -146
- package/template/.pi/skills/drawio/references/examples/arch-dark-web-app.yaml +0 -62
- package/template/.pi/skills/drawio/references/examples/auto-layout-workflow.yaml +0 -81
- package/template/.pi/skills/drawio/references/examples/aws-vpc-topology.yaml +0 -66
- package/template/.pi/skills/drawio/references/examples/campus-lan-topology.yaml +0 -89
- package/template/.pi/skills/drawio/references/examples/cloud-reference-architecture.yaml +0 -34
- package/template/.pi/skills/drawio/references/examples/e-commerce.yaml +0 -141
- package/template/.pi/skills/drawio/references/examples/importers/README.md +0 -10
- package/template/.pi/skills/drawio/references/examples/importers/live/compose-drift-evidence.json +0 -49
- package/template/.pi/skills/drawio/references/examples/importers/live/compose-drift-report.json +0 -300
- package/template/.pi/skills/drawio/references/examples/importers/live/compose-drift.spec.yaml +0 -75
- package/template/.pi/skills/drawio/references/examples/importers/live/docker-inspect.json +0 -55
- package/template/.pi/skills/drawio/references/examples/importers/live/drift-declared-compose.yaml +0 -13
- package/template/.pi/skills/drawio/references/examples/importers/live/kubernetes-live.json +0 -71
- package/template/.pi/skills/drawio/references/examples/importers/live/terraform-state.json +0 -70
- package/template/.pi/skills/drawio/references/examples/importers/schema.sql +0 -10
- package/template/.pi/skills/drawio/references/examples/importers/terraform.tf +0 -9
- package/template/.pi/skills/drawio/references/examples/login-flow.yaml +0 -65
- package/template/.pi/skills/drawio/references/examples/mem0-memory-layer.yaml +0 -63
- package/template/.pi/skills/drawio/references/examples/microservices.yaml +0 -58
- package/template/.pi/skills/drawio/references/examples/multi-agent-orchestration.yaml +0 -67
- package/template/.pi/skills/drawio/references/examples/neural-network.yaml +0 -66
- package/template/.pi/skills/drawio/references/examples/onprem-dmz-topology.yaml +0 -62
- package/template/.pi/skills/drawio/references/examples/palettes/README.md +0 -29
- package/template/.pi/skills/drawio/references/examples/palettes/c4-blue.drawio +0 -6
- package/template/.pi/skills/drawio/references/examples/palettes/c4-blue.svg +0 -36
- package/template/.pi/skills/drawio/references/examples/palettes/cloud-aws.drawio +0 -6
- package/template/.pi/skills/drawio/references/examples/palettes/cloud-aws.svg +0 -36
- package/template/.pi/skills/drawio/references/examples/palettes/drawio-classic.drawio +0 -6
- package/template/.pi/skills/drawio/references/examples/palettes/drawio-classic.svg +0 -36
- package/template/.pi/skills/drawio/references/examples/palettes/ieee-bw.drawio +0 -6
- package/template/.pi/skills/drawio/references/examples/palettes/ieee-bw.svg +0 -36
- package/template/.pi/skills/drawio/references/examples/palettes/ieee-color.drawio +0 -6
- package/template/.pi/skills/drawio/references/examples/palettes/ieee-color.svg +0 -36
- package/template/.pi/skills/drawio/references/examples/palettes/journal-jama.drawio +0 -6
- package/template/.pi/skills/drawio/references/examples/palettes/journal-jama.svg +0 -36
- package/template/.pi/skills/drawio/references/examples/palettes/journal-npg.drawio +0 -6
- package/template/.pi/skills/drawio/references/examples/palettes/journal-npg.svg +0 -36
- package/template/.pi/skills/drawio/references/examples/palettes/matlab-lines.drawio +0 -6
- package/template/.pi/skills/drawio/references/examples/palettes/matlab-lines.svg +0 -36
- package/template/.pi/skills/drawio/references/examples/palettes/morandi.drawio +0 -6
- package/template/.pi/skills/drawio/references/examples/palettes/morandi.svg +0 -36
- package/template/.pi/skills/drawio/references/examples/palettes/okabe-ito.drawio +0 -6
- package/template/.pi/skills/drawio/references/examples/palettes/okabe-ito.svg +0 -36
- package/template/.pi/skills/drawio/references/examples/palettes/palette-swatch.template.yaml +0 -56
- package/template/.pi/skills/drawio/references/examples/palettes/seaborn-colorblind.drawio +0 -6
- package/template/.pi/skills/drawio/references/examples/palettes/seaborn-colorblind.svg +0 -36
- package/template/.pi/skills/drawio/references/examples/palettes/tol-bright.drawio +0 -6
- package/template/.pi/skills/drawio/references/examples/palettes/tol-bright.svg +0 -36
- package/template/.pi/skills/drawio/references/examples/palettes/tol-high-contrast.drawio +0 -6
- package/template/.pi/skills/drawio/references/examples/palettes/tol-high-contrast.svg +0 -36
- package/template/.pi/skills/drawio/references/examples/palettes/tol-light-fill.drawio +0 -6
- package/template/.pi/skills/drawio/references/examples/palettes/tol-light-fill.svg +0 -36
- package/template/.pi/skills/drawio/references/examples/palettes/tol-muted.drawio +0 -6
- package/template/.pi/skills/drawio/references/examples/palettes/tol-muted.svg +0 -36
- package/template/.pi/skills/drawio/references/examples/rag-pipeline.yaml +0 -67
- package/template/.pi/skills/drawio/references/examples/replicated-brand-flow.yaml +0 -89
- package/template/.pi/skills/drawio/references/examples/swimlane-engineering-review.yaml +0 -44
- package/template/.pi/skills/drawio/references/examples/tiered-network-topology.yaml +0 -59
- package/template/.pi/skills/drawio/references/examples/tool-call-loop.yaml +0 -63
- package/template/.pi/skills/drawio/references/examples/vendor-device-mapping.yaml +0 -46
- package/template/.pi/skills/drawio/references/official/style-reference.md +0 -936
- package/template/.pi/skills/drawio/references/official/xml-reference.md +0 -262
- package/template/.pi/skills/drawio/references/palette.schema.json +0 -59
- package/template/.pi/skills/drawio/references/theme.schema.json +0 -249
- package/template/.pi/skills/drawio/references/upstream/pure-drawio-skill.md +0 -615
- package/template/.pi/skills/drawio/references/workflows/create.md +0 -195
- package/template/.pi/skills/drawio/references/workflows/edit.md +0 -174
- package/template/.pi/skills/drawio/references/workflows/replicate.md +0 -239
- package/template/.pi/skills/drawio/references/workflows/visual-review.md +0 -108
- package/template/.pi/skills/drawio/reports/output_quality_scorecard.md +0 -106
- package/template/.pi/skills/drawio/reports/upstream-port-release-evidence.md +0 -43
- package/template/.pi/skills/drawio/scripts/adapters/ci.js +0 -139
- package/template/.pi/skills/drawio/scripts/adapters/ci.test.js +0 -41
- package/template/.pi/skills/drawio/scripts/adapters/code-common.js +0 -171
- package/template/.pi/skills/drawio/scripts/adapters/code-imports.test.js +0 -80
- package/template/.pi/skills/drawio/scripts/adapters/code-parsers.integration.test.js +0 -71
- package/template/.pi/skills/drawio/scripts/adapters/compose.js +0 -134
- package/template/.pi/skills/drawio/scripts/adapters/compose.test.js +0 -54
- package/template/.pi/skills/drawio/scripts/adapters/config-adapters.integration.test.js +0 -58
- package/template/.pi/skills/drawio/scripts/adapters/config-common.js +0 -131
- package/template/.pi/skills/drawio/scripts/adapters/config-common.test.js +0 -32
- package/template/.pi/skills/drawio/scripts/adapters/docker-inspect.js +0 -127
- package/template/.pi/skills/drawio/scripts/adapters/docker-inspect.test.js +0 -62
- package/template/.pi/skills/drawio/scripts/adapters/fixtures/raster-extraction.json +0 -31
- package/template/.pi/skills/drawio/scripts/adapters/go-code-adapter.test.js +0 -59
- package/template/.pi/skills/drawio/scripts/adapters/go-code.js +0 -168
- package/template/.pi/skills/drawio/scripts/adapters/graph-drift.file.test.js +0 -67
- package/template/.pi/skills/drawio/scripts/adapters/graph-drift.js +0 -358
- package/template/.pi/skills/drawio/scripts/adapters/graph-drift.test.js +0 -272
- package/template/.pi/skills/drawio/scripts/adapters/graph-projection.js +0 -335
- package/template/.pi/skills/drawio/scripts/adapters/graph-projection.test.js +0 -141
- package/template/.pi/skills/drawio/scripts/adapters/identity.js +0 -244
- package/template/.pi/skills/drawio/scripts/adapters/identity.test.js +0 -123
- package/template/.pi/skills/drawio/scripts/adapters/index.js +0 -489
- package/template/.pi/skills/drawio/scripts/adapters/index.test.js +0 -152
- package/template/.pi/skills/drawio/scripts/adapters/js-code-adapter.test.js +0 -42
- package/template/.pi/skills/drawio/scripts/adapters/js-code.js +0 -141
- package/template/.pi/skills/drawio/scripts/adapters/kubernetes-live.test.js +0 -46
- package/template/.pi/skills/drawio/scripts/adapters/kubernetes.js +0 -258
- package/template/.pi/skills/drawio/scripts/adapters/kubernetes.test.js +0 -81
- package/template/.pi/skills/drawio/scripts/adapters/openapi.js +0 -98
- package/template/.pi/skills/drawio/scripts/adapters/openapi.test.js +0 -46
- package/template/.pi/skills/drawio/scripts/adapters/optional-python-code.js +0 -16
- package/template/.pi/skills/drawio/scripts/adapters/optional-python.integration.test.js +0 -32
- package/template/.pi/skills/drawio/scripts/adapters/optional-python.js +0 -127
- package/template/.pi/skills/drawio/scripts/adapters/optional-python.test.js +0 -55
- package/template/.pi/skills/drawio/scripts/adapters/projection-to-spec.js +0 -116
- package/template/.pi/skills/drawio/scripts/adapters/projection-to-spec.test.js +0 -139
- package/template/.pi/skills/drawio/scripts/adapters/python/code-parser-worker.py +0 -93
- package/template/.pi/skills/drawio/scripts/adapters/python/config-parser-worker.py +0 -237
- package/template/.pi/skills/drawio/scripts/adapters/python/requirements.txt +0 -2
- package/template/.pi/skills/drawio/scripts/adapters/python-code-adapter.test.js +0 -127
- package/template/.pi/skills/drawio/scripts/adapters/python-code.js +0 -246
- package/template/.pi/skills/drawio/scripts/adapters/raster-extraction.js +0 -258
- package/template/.pi/skills/drawio/scripts/adapters/raster-extraction.test.js +0 -308
- package/template/.pi/skills/drawio/scripts/adapters/rust-code-adapter.test.js +0 -64
- package/template/.pi/skills/drawio/scripts/adapters/rust-code.js +0 -207
- package/template/.pi/skills/drawio/scripts/adapters/sql-ddl.js +0 -118
- package/template/.pi/skills/drawio/scripts/adapters/sql-ddl.test.js +0 -56
- package/template/.pi/skills/drawio/scripts/adapters/terraform-config.js +0 -141
- package/template/.pi/skills/drawio/scripts/adapters/terraform-config.test.js +0 -67
- package/template/.pi/skills/drawio/scripts/adapters/terraform-state.js +0 -157
- package/template/.pi/skills/drawio/scripts/adapters/terraform-state.test.js +0 -69
- package/template/.pi/skills/drawio/scripts/cli.js +0 -700
- package/template/.pi/skills/drawio/scripts/dsl/ah-to-drawio.js +0 -276
- package/template/.pi/skills/drawio/scripts/dsl/ah-to-drawio.test.js +0 -77
- package/template/.pi/skills/drawio/scripts/dsl/ai-icon-catalog.js +0 -126
- package/template/.pi/skills/drawio/scripts/dsl/ai-icon-catalog.test.js +0 -86
- package/template/.pi/skills/drawio/scripts/dsl/auto-layout.js +0 -206
- package/template/.pi/skills/drawio/scripts/dsl/auto-layout.test.js +0 -249
- package/template/.pi/skills/drawio/scripts/dsl/catalog-ranking.js +0 -54
- package/template/.pi/skills/drawio/scripts/dsl/catalog-search.js +0 -58
- package/template/.pi/skills/drawio/scripts/dsl/catalog-search.test.js +0 -44
- package/template/.pi/skills/drawio/scripts/dsl/document-spec.js +0 -256
- package/template/.pi/skills/drawio/scripts/dsl/document-spec.test.js +0 -147
- package/template/.pi/skills/drawio/scripts/dsl/drawio-to-spec.js +0 -497
- package/template/.pi/skills/drawio/scripts/dsl/examples-baseline.test.js +0 -30
- package/template/.pi/skills/drawio/scripts/dsl/icon-mappings.js +0 -65
- package/template/.pi/skills/drawio/scripts/dsl/icon-mappings.test.js +0 -19
- package/template/.pi/skills/drawio/scripts/dsl/icon-resolver.js +0 -153
- package/template/.pi/skills/drawio/scripts/dsl/icon-resolver.test.js +0 -62
- package/template/.pi/skills/drawio/scripts/dsl/multi-page.js +0 -224
- package/template/.pi/skills/drawio/scripts/dsl/multi-page.test.js +0 -107
- package/template/.pi/skills/drawio/scripts/dsl/palette-catalog.test.js +0 -138
- package/template/.pi/skills/drawio/scripts/dsl/palette-integration.test.js +0 -182
- package/template/.pi/skills/drawio/scripts/dsl/palette-validate.js +0 -91
- package/template/.pi/skills/drawio/scripts/dsl/palette.js +0 -302
- package/template/.pi/skills/drawio/scripts/dsl/palette.test.js +0 -197
- package/template/.pi/skills/drawio/scripts/dsl/shape-catalog.js +0 -89
- package/template/.pi/skills/drawio/scripts/dsl/shape-catalog.test.js +0 -21
- package/template/.pi/skills/drawio/scripts/dsl/spec-to-drawio.js +0 -3739
- package/template/.pi/skills/drawio/scripts/dsl/spec-to-drawio.test.js +0 -3022
- package/template/.pi/skills/drawio/scripts/generate-palette-swatches.js +0 -87
- package/template/.pi/skills/drawio/scripts/install.bat +0 -64
- package/template/.pi/skills/drawio/scripts/install.sh +0 -44
- package/template/.pi/skills/drawio/scripts/math/index.js +0 -317
- package/template/.pi/skills/drawio/scripts/math/index.test.js +0 -62
- package/template/.pi/skills/drawio/scripts/package.json +0 -1
- package/template/.pi/skills/drawio/scripts/postprocess/artifacts.js +0 -142
- package/template/.pi/skills/drawio/scripts/postprocess/artifacts.test.js +0 -86
- package/template/.pi/skills/drawio/scripts/postprocess/cli.js +0 -228
- package/template/.pi/skills/drawio/scripts/postprocess/cli.test.js +0 -129
- package/template/.pi/skills/drawio/scripts/postprocess/fixtures/bundle.yaml +0 -75
- package/template/.pi/skills/drawio/scripts/postprocess/fixtures/legacy.yaml +0 -21
- package/template/.pi/skills/drawio/scripts/postprocess/html.js +0 -197
- package/template/.pi/skills/drawio/scripts/postprocess/html.test.js +0 -50
- package/template/.pi/skills/drawio/scripts/postprocess/index.js +0 -5
- package/template/.pi/skills/drawio/scripts/postprocess/input.js +0 -112
- package/template/.pi/skills/drawio/scripts/postprocess/input.test.js +0 -73
- package/template/.pi/skills/drawio/scripts/postprocess/mutate.js +0 -584
- package/template/.pi/skills/drawio/scripts/postprocess/mutate.test.js +0 -193
- package/template/.pi/skills/drawio/scripts/postprocess/projection.js +0 -178
- package/template/.pi/skills/drawio/scripts/postprocess/projection.test.js +0 -67
- package/template/.pi/skills/drawio/scripts/runtime/artifacts.js +0 -283
- package/template/.pi/skills/drawio/scripts/runtime/desktop.js +0 -204
- package/template/.pi/skills/drawio/scripts/runtime/desktop.test.js +0 -121
- package/template/.pi/skills/drawio/scripts/runtime/diagrams-net-url.js +0 -122
- package/template/.pi/skills/drawio/scripts/runtime/export-stability.js +0 -75
- package/template/.pi/skills/drawio/scripts/runtime/export-stability.test.js +0 -81
- package/template/.pi/skills/drawio/scripts/runtime/png-inspection.js +0 -157
- package/template/.pi/skills/drawio/scripts/runtime/png-inspection.test.js +0 -120
- package/template/.pi/skills/drawio/scripts/runtime/vision-preview.js +0 -77
- package/template/.pi/skills/drawio/scripts/runtime/vision-preview.test.js +0 -103
- package/template/.pi/skills/drawio/scripts/shared/ai-icon-contract.js +0 -13
- package/template/.pi/skills/drawio/scripts/shared/xml-utils.js +0 -241
- package/template/.pi/skills/drawio/scripts/svg/drawio-to-svg.js +0 -918
- package/template/.pi/skills/drawio/scripts/svg/drawio-to-svg.test.js +0 -763
- package/template/.pi/skills/drawio/scripts/tools/build-ai-icon-catalog.js +0 -208
- package/template/.pi/skills/drawio/scripts/tools/build-ai-icon-catalog.test.js +0 -107
- package/template/.pi/skills/drawio/scripts/tools/build-shape-catalog.js +0 -84
- package/template/.pi/skills/drawio/scripts/tools/build-shape-catalog.test.js +0 -43
- package/template/.pi/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/alpha-color.svg +0 -1
- package/template/.pi/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/alpha.svg +0 -1
- package/template/.pi/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/beta-brand-color.svg +0 -1
- package/template/.pi/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/beta.svg +0 -1
- package/template/.pi/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/civitai-text-color.svg +0 -1
- package/template/.pi/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/civitai.svg +0 -1
- package/template/.pi/skills/drawio/scripts/tools/fixtures/ai-icons-package/package.json +0 -5
- package/template/.pi/skills/drawio/scripts/vendor/elkjs/LICENSE.md +0 -264
- package/template/.pi/skills/drawio/scripts/vendor/elkjs/README.md +0 -18
- package/template/.pi/skills/drawio/scripts/vendor/elkjs/elk.bundled.cjs +0 -6589
- package/template/.pi/skills/drawio/styles/built-in/corporate.json +0 -49
- package/template/.pi/skills/drawio/styles/built-in/default.json +0 -49
- package/template/.pi/skills/drawio/styles/built-in/handdrawn.json +0 -49
- package/template/.pi/skills/drawio/styles/schema.json +0 -112
- package/template/.pi/skills/drawio-academic-skills/CHANGELOG.md +0 -67
- package/template/.pi/skills/drawio-academic-skills/README.md +0 -103
- package/template/.pi/skills/drawio-academic-skills/README_CN.md +0 -103
- package/template/.pi/skills/drawio-academic-skills/SKILL.md +0 -161
- package/template/.pi/skills/drawio-academic-skills/__yss_dotfile__.gitignore +0 -12
- package/template/.pi/skills/drawio-academic-skills/agents/interface.yaml +0 -25
- package/template/.pi/skills/drawio-academic-skills/agents/openai.yaml +0 -24
- package/template/.pi/skills/drawio-academic-skills/evals/README.md +0 -13
- package/template/.pi/skills/drawio-academic-skills/evals/baseline-prompts.json +0 -52
- package/template/.pi/skills/drawio-academic-skills/evals/darwin-results.tsv +0 -3
- package/template/.pi/skills/drawio-academic-skills/evals/evals.json +0 -228
- package/template/.pi/skills/drawio-academic-skills/evals/test-prompts.json +0 -17
- package/template/.pi/skills/drawio-academic-skills/references/docs/academic-export-checklist.md +0 -45
- package/template/.pi/skills/drawio-academic-skills/references/docs/academic-figure-playbook.md +0 -349
- package/template/.pi/skills/drawio-academic-skills/references/docs/publication-overlay.md +0 -206
- package/template/.pi/skills/drawio-academic-skills/references/examples/ablation-study-pipeline.yaml +0 -39
- package/template/.pi/skills/drawio-academic-skills/references/examples/ieee-network-paper.yaml +0 -44
- package/template/.pi/skills/drawio-academic-skills/references/examples/industrial-architecture-cn-paper.yaml +0 -106
- package/template/.pi/skills/drawio-academic-skills/references/examples/max-pooling-operation-paper.yaml +0 -75
- package/template/.pi/skills/drawio-academic-skills/references/examples/research-pipeline.yaml +0 -54
- package/template/.pi/skills/drawio-academic-skills/references/examples/system-architecture-paper.yaml +0 -45
- package/template/.pi/skills/drawio-academic-skills/references/examples/technical-roadmap-paper.yaml +0 -54
- package/template/.pi/skills/drawio-academic-skills/references/examples/yolo-model-architecture-paper.yaml +0 -118
- package/template/.pi/skills/drawio-academic-skills/references/templates/multi-module-system-compact.yaml +0 -251
- package/template/.pi/skills/drawio-academic-skills/references/templates/neural-network-architecture-compact.yaml +0 -267
- package/template/.pi/skills/excalidraw-diagram-generator/SKILL.md +0 -634
- package/template/.pi/skills/excalidraw-diagram-generator/references/element-types.md +0 -497
- package/template/.pi/skills/excalidraw-diagram-generator/references/excalidraw-schema.md +0 -350
- package/template/.pi/skills/excalidraw-diagram-generator/scripts/README.md +0 -193
- package/template/.pi/skills/excalidraw-diagram-generator/scripts/__yss_dotfile__.gitignore +0 -34
- package/template/.pi/skills/excalidraw-diagram-generator/scripts/add-arrow.py +0 -315
- package/template/.pi/skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py +0 -406
- package/template/.pi/skills/excalidraw-diagram-generator/scripts/split-excalidraw-library.py +0 -183
- package/template/.pi/skills/excalidraw-diagram-generator/templates/business-flow-swimlane-template.excalidraw +0 -334
- package/template/.pi/skills/excalidraw-diagram-generator/templates/class-diagram-template.excalidraw +0 -558
- package/template/.pi/skills/excalidraw-diagram-generator/templates/data-flow-diagram-template.excalidraw +0 -279
- package/template/.pi/skills/excalidraw-diagram-generator/templates/er-diagram-template.excalidraw +0 -662
- package/template/.pi/skills/excalidraw-diagram-generator/templates/flowchart-template.excalidraw +0 -179
- package/template/.pi/skills/excalidraw-diagram-generator/templates/mindmap-template.excalidraw +0 -244
- package/template/.pi/skills/excalidraw-diagram-generator/templates/relationship-template.excalidraw +0 -145
- package/template/.pi/skills/excalidraw-diagram-generator/templates/sequence-diagram-template.excalidraw +0 -509
- package/template/.pi/skills/kb-retriever/README.md +0 -197
- package/template/.pi/skills/kb-retriever/README.zh-CN.md +0 -197
- package/template/.pi/skills/kb-retriever/SKILL.md +0 -250
- package/template/.pi/skills/kb-retriever/manifest.json +0 -15
- package/template/.pi/skills/kb-retriever/references/excel_analysis.md +0 -129
- package/template/.pi/skills/kb-retriever/references/excel_reading.md +0 -72
- package/template/.pi/skills/kb-retriever/references/pdf_reading.md +0 -362
- package/template/.pi/skills/kb-retriever/scripts/convert_pdf_to_images.py +0 -35
- package/template/.pi/skills/yss-db2mybatis/requirements.txt +0 -4
- package/template/.pi/skills/yss-db2mybatis/scripts/db2mybatis.py +0 -1494
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.py +0 -728
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.py +0 -155
- package/template/.pi/skills/yss-design-system/scripts/validate-frontmatter.py +0 -50
- package/template/.pi/skills/yss-source-index/scripts/refresh-yss-skill-index.py +0 -371
- package/template/.pi/skills/yss-web-controller/scripts/generate_controller.py +0 -293
- package/template/.pi/skills/yss-web-controller/scripts/test_generate_controller.py +0 -68
- package/template/.qoder/skills/beautiful-article/README.md +0 -450
- package/template/.qoder/skills/beautiful-article/README.zh-CN.md +0 -450
- package/template/.qoder/skills/beautiful-article/SKILL.md +0 -466
- package/template/.qoder/skills/beautiful-article/assets/scaffold-template/__yss_dotfile__.npmrc +0 -1
- package/template/.qoder/skills/beautiful-article/assets/scaffold-template/article/Article.tsx +0 -69
- package/template/.qoder/skills/beautiful-article/assets/scaffold-template/article/Cover.tsx +0 -172
- package/template/.qoder/skills/beautiful-article/assets/scaffold-template/article/main.tsx +0 -26
- package/template/.qoder/skills/beautiful-article/assets/scaffold-template/article/sections/01-opening.tsx +0 -30
- package/template/.qoder/skills/beautiful-article/assets/scaffold-template/index.html +0 -19
- package/template/.qoder/skills/beautiful-article/assets/scaffold-template/package.json +0 -26
- package/template/.qoder/skills/beautiful-article/assets/scaffold-template/tsconfig.json +0 -20
- package/template/.qoder/skills/beautiful-article/assets/scaffold-template/tsconfig.node.json +0 -11
- package/template/.qoder/skills/beautiful-article/assets/scaffold-template/vite.config.ts +0 -18
- package/template/.qoder/skills/beautiful-article/manifest.json +0 -15
- package/template/.qoder/skills/beautiful-article/references/article-types/briefing.md +0 -32
- package/template/.qoder/skills/beautiful-article/references/article-types/dialogue.md +0 -30
- package/template/.qoder/skills/beautiful-article/references/article-types/essay.md +0 -31
- package/template/.qoder/skills/beautiful-article/references/article-types/explainer.md +0 -32
- package/template/.qoder/skills/beautiful-article/references/article-types/full-report.md +0 -32
- package/template/.qoder/skills/beautiful-article/references/article-types/interactive-explainer.md +0 -66
- package/template/.qoder/skills/beautiful-article/references/article-types/longform.md +0 -32
- package/template/.qoder/skills/beautiful-article/references/article-types/review.md +0 -32
- package/template/.qoder/skills/beautiful-article/references/article-types/tutorial.md +0 -30
- package/template/.qoder/skills/beautiful-article/references/article-types/visual-essay.md +0 -33
- package/template/.qoder/skills/beautiful-article/references/article-types.md +0 -42
- package/template/.qoder/skills/beautiful-article/references/asset-policy.md +0 -71
- package/template/.qoder/skills/beautiful-article/references/component-policy.md +0 -103
- package/template/.qoder/skills/beautiful-article/references/cover.md +0 -208
- package/template/.qoder/skills/beautiful-article/references/harness.md +0 -35
- package/template/.qoder/skills/beautiful-article/references/html-output.md +0 -42
- package/template/.qoder/skills/beautiful-article/references/information-density.md +0 -50
- package/template/.qoder/skills/beautiful-article/references/layout.md +0 -46
- package/template/.qoder/skills/beautiful-article/references/pdf-output.md +0 -208
- package/template/.qoder/skills/beautiful-article/references/plan-template.md +0 -109
- package/template/.qoder/skills/beautiful-article/references/raw-policy.md +0 -86
- package/template/.qoder/skills/beautiful-article/references/repair-policy.md +0 -35
- package/template/.qoder/skills/beautiful-article/references/review-checklist.md +0 -133
- package/template/.qoder/skills/beautiful-article/references/scaffold.md +0 -77
- package/template/.qoder/skills/beautiful-article/references/section-build.md +0 -100
- package/template/.qoder/skills/beautiful-article/references/source-to-markdown.md +0 -118
- package/template/.qoder/skills/beautiful-article/references/theme-selection.md +0 -48
- package/template/.qoder/skills/beautiful-article/scripts/html-to-pdf.sh +0 -160
- package/template/.qoder/skills/beautiful-article/scripts/pdf-print-overrides.css +0 -192
- package/template/.qoder/skills/beautiful-article/scripts/scaffold.sh +0 -172
- package/template/.qoder/skills/beautiful-article/scripts/source-to-markdown-markitdown.py +0 -100
- package/template/.qoder/skills/beautiful-article/scripts/source-to-markdown.py +0 -174
- package/template/.qoder/skills/beautiful-article/theme-profiles/andy.md +0 -57
- package/template/.qoder/skills/beautiful-article/theme-profiles/bayer.md +0 -57
- package/template/.qoder/skills/beautiful-article/theme-profiles/bodoni.md +0 -57
- package/template/.qoder/skills/beautiful-article/theme-profiles/freddie.md +0 -57
- package/template/.qoder/skills/beautiful-article/theme-profiles/fuller.md +0 -56
- package/template/.qoder/skills/beautiful-article/theme-profiles/index.json +0 -112
- package/template/.qoder/skills/beautiful-article/theme-profiles/knuth.md +0 -60
- package/template/.qoder/skills/beautiful-article/theme-profiles/press.md +0 -61
- package/template/.qoder/skills/beautiful-article/theme-profiles/shannon.md +0 -64
- package/template/.qoder/skills/beautiful-article/theme-profiles/sottsass.md +0 -57
- package/template/.qoder/skills/beautiful-article/theme-profiles/tufte.md +0 -64
- package/template/.qoder/skills/beautiful-article/theme-profiles/vignelli.md +0 -63
- package/template/.qoder/skills/drawio/.mcp.json +0 -8
- package/template/.qoder/skills/drawio/CHANGELOG.md +0 -216
- package/template/.qoder/skills/drawio/SKILL.md +0 -157
- package/template/.qoder/skills/drawio/agents/interface.yaml +0 -26
- package/template/.qoder/skills/drawio/agents/openai.yaml +0 -26
- package/template/.qoder/skills/drawio/assets/catalog/ai-icons.json.gz +0 -0
- package/template/.qoder/skills/drawio/assets/catalog/shape-catalog.json.gz +0 -0
- package/template/.qoder/skills/drawio/assets/catalog/shape-index.json.gz +0 -0
- package/template/.qoder/skills/drawio/assets/examples/login-flow-test.drawio +0 -6
- package/template/.qoder/skills/drawio/assets/examples/login-flow.drawio +0 -6
- package/template/.qoder/skills/drawio/assets/examples/microservices.drawio +0 -6
- package/template/.qoder/skills/drawio/assets/examples/neural-network.drawio +0 -6
- package/template/.qoder/skills/drawio/assets/licenses/architecture-diagram-generator-MIT.txt +0 -26
- package/template/.qoder/skills/drawio/assets/licenses/drawio-mcp-shape-index-Apache-2.0.txt +0 -8
- package/template/.qoder/skills/drawio/assets/licenses/lobe-icons-MIT.txt +0 -26
- package/template/.qoder/skills/drawio/assets/licenses/lucide-ISC.txt +0 -41
- package/template/.qoder/skills/drawio/assets/palettes/c4-blue.json +0 -29
- package/template/.qoder/skills/drawio/assets/palettes/cloud-aws.json +0 -30
- package/template/.qoder/skills/drawio/assets/palettes/drawio-classic.json +0 -21
- package/template/.qoder/skills/drawio/assets/palettes/ieee-bw.json +0 -26
- package/template/.qoder/skills/drawio/assets/palettes/ieee-color.json +0 -17
- package/template/.qoder/skills/drawio/assets/palettes/journal-jama.json +0 -20
- package/template/.qoder/skills/drawio/assets/palettes/journal-npg.json +0 -23
- package/template/.qoder/skills/drawio/assets/palettes/matlab-lines.json +0 -20
- package/template/.qoder/skills/drawio/assets/palettes/morandi.json +0 -21
- package/template/.qoder/skills/drawio/assets/palettes/okabe-ito.json +0 -21
- package/template/.qoder/skills/drawio/assets/palettes/seaborn-colorblind.json +0 -23
- package/template/.qoder/skills/drawio/assets/palettes/tol-bright.json +0 -20
- package/template/.qoder/skills/drawio/assets/palettes/tol-high-contrast.json +0 -18
- package/template/.qoder/skills/drawio/assets/palettes/tol-light-fill.json +0 -22
- package/template/.qoder/skills/drawio/assets/palettes/tol-muted.json +0 -22
- package/template/.qoder/skills/drawio/assets/schemas/graph-projection.schema.json +0 -135
- package/template/.qoder/skills/drawio/assets/schemas/spec.schema.json +0 -620
- package/template/.qoder/skills/drawio/assets/themes/academic-color.json +0 -299
- package/template/.qoder/skills/drawio/assets/themes/academic.json +0 -245
- package/template/.qoder/skills/drawio/assets/themes/arch-dark.json +0 -253
- package/template/.qoder/skills/drawio/assets/themes/blueprint.json +0 -246
- package/template/.qoder/skills/drawio/assets/themes/dark-luxury.json +0 -246
- package/template/.qoder/skills/drawio/assets/themes/dark-terminal.json +0 -244
- package/template/.qoder/skills/drawio/assets/themes/dark.json +0 -220
- package/template/.qoder/skills/drawio/assets/themes/high-contrast.json +0 -220
- package/template/.qoder/skills/drawio/assets/themes/nature.json +0 -220
- package/template/.qoder/skills/drawio/assets/themes/notion-clean.json +0 -246
- package/template/.qoder/skills/drawio/assets/themes/tech-blue.json +0 -220
- package/template/.qoder/skills/drawio/evals/README.md +0 -17
- package/template/.qoder/skills/drawio/evals/ai-icon-catalog-cases.json +0 -89
- package/template/.qoder/skills/drawio/evals/baseline-prompts.json +0 -122
- package/template/.qoder/skills/drawio/evals/darwin-results.tsv +0 -4
- package/template/.qoder/skills/drawio/evals/evals.json +0 -223
- package/template/.qoder/skills/drawio/evals/evidence/ai-icon-catalog-desktop.json +0 -134
- package/template/.qoder/skills/drawio/evals/fixtures/ai-icons-advanced-svg.yaml +0 -25
- package/template/.qoder/skills/drawio/evals/fixtures/ai-icons-cjk-agent-rag.yaml +0 -55
- package/template/.qoder/skills/drawio/evals/fixtures/ai-icons-core-aliases.yaml +0 -50
- package/template/.qoder/skills/drawio/evals/fixtures/ai-icons-current-color.yaml +0 -25
- package/template/.qoder/skills/drawio/evals/fixtures/ai-icons-gradients.yaml +0 -25
- package/template/.qoder/skills/drawio/evals/fixtures/import-simple-compressed.drawio +0 -5
- package/template/.qoder/skills/drawio/evals/fixtures/import-simple.drawio +0 -28
- package/template/.qoder/skills/drawio/evals/fixtures/industrial-architecture.yaml +0 -239
- package/template/.qoder/skills/drawio/evals/fixtures/replicate-academic-highlight.svg +0 -13
- package/template/.qoder/skills/drawio/evals/fixtures/replicate-brand-architecture.svg +0 -14
- package/template/.qoder/skills/drawio/evals/fixtures/replicate-warm-approval.svg +0 -13
- package/template/.qoder/skills/drawio/evals/fixtures/vision-tall-workflow.yaml +0 -47
- package/template/.qoder/skills/drawio/evals/upstream-integration-cases.json +0 -78
- package/template/.qoder/skills/drawio/evals/vision-preview-cases.json +0 -147
- package/template/.qoder/skills/drawio/references/docs/agent-diagrams.md +0 -164
- package/template/.qoder/skills/drawio/references/docs/ah-format.md +0 -322
- package/template/.qoder/skills/drawio/references/docs/architecture-diagrams.md +0 -159
- package/template/.qoder/skills/drawio/references/docs/canonical-graph-projection.md +0 -54
- package/template/.qoder/skills/drawio/references/docs/code-importers.md +0 -53
- package/template/.qoder/skills/drawio/references/docs/config-importers.md +0 -68
- package/template/.qoder/skills/drawio/references/docs/design-system/README.md +0 -204
- package/template/.qoder/skills/drawio/references/docs/design-system/color-guide.md +0 -255
- package/template/.qoder/skills/drawio/references/docs/design-system/connectors.md +0 -388
- package/template/.qoder/skills/drawio/references/docs/design-system/formulas.md +0 -196
- package/template/.qoder/skills/drawio/references/docs/design-system/icons.md +0 -332
- package/template/.qoder/skills/drawio/references/docs/design-system/shapes.md +0 -269
- package/template/.qoder/skills/drawio/references/docs/design-system/specification.md +0 -754
- package/template/.qoder/skills/drawio/references/docs/design-system/themes.md +0 -441
- package/template/.qoder/skills/drawio/references/docs/design-system/tokens.md +0 -232
- package/template/.qoder/skills/drawio/references/docs/edge-quality-rules.md +0 -65
- package/template/.qoder/skills/drawio/references/docs/ieee-network-diagrams.md +0 -145
- package/template/.qoder/skills/drawio/references/docs/live-snapshots-drift.md +0 -72
- package/template/.qoder/skills/drawio/references/docs/math-typesetting.md +0 -258
- package/template/.qoder/skills/drawio/references/docs/mcp-tools.md +0 -85
- package/template/.qoder/skills/drawio/references/docs/migration-readiness.md +0 -73
- package/template/.qoder/skills/drawio/references/docs/stencil-library-guide.md +0 -97
- package/template/.qoder/skills/drawio/references/docs/style-extraction.md +0 -261
- package/template/.qoder/skills/drawio/references/docs/style-presets.md +0 -126
- package/template/.qoder/skills/drawio/references/docs/upstream-capability-compatibility.md +0 -61
- package/template/.qoder/skills/drawio/references/docs/xml-format.md +0 -53
- package/template/.qoder/skills/drawio/references/examples/README.md +0 -33
- package/template/.qoder/skills/drawio/references/examples/agentic-rag.yaml +0 -71
- package/template/.qoder/skills/drawio/references/examples/arch-dark-aws-serverless.yaml +0 -103
- package/template/.qoder/skills/drawio/references/examples/arch-dark-microservices.yaml +0 -146
- package/template/.qoder/skills/drawio/references/examples/arch-dark-web-app.yaml +0 -62
- package/template/.qoder/skills/drawio/references/examples/auto-layout-workflow.yaml +0 -81
- package/template/.qoder/skills/drawio/references/examples/aws-vpc-topology.yaml +0 -66
- package/template/.qoder/skills/drawio/references/examples/campus-lan-topology.yaml +0 -89
- package/template/.qoder/skills/drawio/references/examples/cloud-reference-architecture.yaml +0 -34
- package/template/.qoder/skills/drawio/references/examples/e-commerce.yaml +0 -141
- package/template/.qoder/skills/drawio/references/examples/importers/README.md +0 -10
- package/template/.qoder/skills/drawio/references/examples/importers/live/compose-drift-evidence.json +0 -49
- package/template/.qoder/skills/drawio/references/examples/importers/live/compose-drift-report.json +0 -300
- package/template/.qoder/skills/drawio/references/examples/importers/live/compose-drift.spec.yaml +0 -75
- package/template/.qoder/skills/drawio/references/examples/importers/live/docker-inspect.json +0 -55
- package/template/.qoder/skills/drawio/references/examples/importers/live/drift-declared-compose.yaml +0 -13
- package/template/.qoder/skills/drawio/references/examples/importers/live/kubernetes-live.json +0 -71
- package/template/.qoder/skills/drawio/references/examples/importers/live/terraform-state.json +0 -70
- package/template/.qoder/skills/drawio/references/examples/importers/schema.sql +0 -10
- package/template/.qoder/skills/drawio/references/examples/importers/terraform.tf +0 -9
- package/template/.qoder/skills/drawio/references/examples/login-flow.yaml +0 -65
- package/template/.qoder/skills/drawio/references/examples/mem0-memory-layer.yaml +0 -63
- package/template/.qoder/skills/drawio/references/examples/microservices.yaml +0 -58
- package/template/.qoder/skills/drawio/references/examples/multi-agent-orchestration.yaml +0 -67
- package/template/.qoder/skills/drawio/references/examples/neural-network.yaml +0 -66
- package/template/.qoder/skills/drawio/references/examples/onprem-dmz-topology.yaml +0 -62
- package/template/.qoder/skills/drawio/references/examples/palettes/README.md +0 -29
- package/template/.qoder/skills/drawio/references/examples/palettes/c4-blue.drawio +0 -6
- package/template/.qoder/skills/drawio/references/examples/palettes/c4-blue.svg +0 -36
- package/template/.qoder/skills/drawio/references/examples/palettes/cloud-aws.drawio +0 -6
- package/template/.qoder/skills/drawio/references/examples/palettes/cloud-aws.svg +0 -36
- package/template/.qoder/skills/drawio/references/examples/palettes/drawio-classic.drawio +0 -6
- package/template/.qoder/skills/drawio/references/examples/palettes/drawio-classic.svg +0 -36
- package/template/.qoder/skills/drawio/references/examples/palettes/ieee-bw.drawio +0 -6
- package/template/.qoder/skills/drawio/references/examples/palettes/ieee-bw.svg +0 -36
- package/template/.qoder/skills/drawio/references/examples/palettes/ieee-color.drawio +0 -6
- package/template/.qoder/skills/drawio/references/examples/palettes/ieee-color.svg +0 -36
- package/template/.qoder/skills/drawio/references/examples/palettes/journal-jama.drawio +0 -6
- package/template/.qoder/skills/drawio/references/examples/palettes/journal-jama.svg +0 -36
- package/template/.qoder/skills/drawio/references/examples/palettes/journal-npg.drawio +0 -6
- package/template/.qoder/skills/drawio/references/examples/palettes/journal-npg.svg +0 -36
- package/template/.qoder/skills/drawio/references/examples/palettes/matlab-lines.drawio +0 -6
- package/template/.qoder/skills/drawio/references/examples/palettes/matlab-lines.svg +0 -36
- package/template/.qoder/skills/drawio/references/examples/palettes/morandi.drawio +0 -6
- package/template/.qoder/skills/drawio/references/examples/palettes/morandi.svg +0 -36
- package/template/.qoder/skills/drawio/references/examples/palettes/okabe-ito.drawio +0 -6
- package/template/.qoder/skills/drawio/references/examples/palettes/okabe-ito.svg +0 -36
- package/template/.qoder/skills/drawio/references/examples/palettes/palette-swatch.template.yaml +0 -56
- package/template/.qoder/skills/drawio/references/examples/palettes/seaborn-colorblind.drawio +0 -6
- package/template/.qoder/skills/drawio/references/examples/palettes/seaborn-colorblind.svg +0 -36
- package/template/.qoder/skills/drawio/references/examples/palettes/tol-bright.drawio +0 -6
- package/template/.qoder/skills/drawio/references/examples/palettes/tol-bright.svg +0 -36
- package/template/.qoder/skills/drawio/references/examples/palettes/tol-high-contrast.drawio +0 -6
- package/template/.qoder/skills/drawio/references/examples/palettes/tol-high-contrast.svg +0 -36
- package/template/.qoder/skills/drawio/references/examples/palettes/tol-light-fill.drawio +0 -6
- package/template/.qoder/skills/drawio/references/examples/palettes/tol-light-fill.svg +0 -36
- package/template/.qoder/skills/drawio/references/examples/palettes/tol-muted.drawio +0 -6
- package/template/.qoder/skills/drawio/references/examples/palettes/tol-muted.svg +0 -36
- package/template/.qoder/skills/drawio/references/examples/rag-pipeline.yaml +0 -67
- package/template/.qoder/skills/drawio/references/examples/replicated-brand-flow.yaml +0 -89
- package/template/.qoder/skills/drawio/references/examples/swimlane-engineering-review.yaml +0 -44
- package/template/.qoder/skills/drawio/references/examples/tiered-network-topology.yaml +0 -59
- package/template/.qoder/skills/drawio/references/examples/tool-call-loop.yaml +0 -63
- package/template/.qoder/skills/drawio/references/examples/vendor-device-mapping.yaml +0 -46
- package/template/.qoder/skills/drawio/references/official/style-reference.md +0 -936
- package/template/.qoder/skills/drawio/references/official/xml-reference.md +0 -262
- package/template/.qoder/skills/drawio/references/palette.schema.json +0 -59
- package/template/.qoder/skills/drawio/references/theme.schema.json +0 -249
- package/template/.qoder/skills/drawio/references/upstream/pure-drawio-skill.md +0 -615
- package/template/.qoder/skills/drawio/references/workflows/create.md +0 -195
- package/template/.qoder/skills/drawio/references/workflows/edit.md +0 -174
- package/template/.qoder/skills/drawio/references/workflows/replicate.md +0 -239
- package/template/.qoder/skills/drawio/references/workflows/visual-review.md +0 -108
- package/template/.qoder/skills/drawio/reports/output_quality_scorecard.md +0 -106
- package/template/.qoder/skills/drawio/reports/upstream-port-release-evidence.md +0 -43
- package/template/.qoder/skills/drawio/scripts/adapters/ci.js +0 -139
- package/template/.qoder/skills/drawio/scripts/adapters/ci.test.js +0 -41
- package/template/.qoder/skills/drawio/scripts/adapters/code-common.js +0 -171
- package/template/.qoder/skills/drawio/scripts/adapters/code-imports.test.js +0 -80
- package/template/.qoder/skills/drawio/scripts/adapters/code-parsers.integration.test.js +0 -71
- package/template/.qoder/skills/drawio/scripts/adapters/compose.js +0 -134
- package/template/.qoder/skills/drawio/scripts/adapters/compose.test.js +0 -54
- package/template/.qoder/skills/drawio/scripts/adapters/config-adapters.integration.test.js +0 -58
- package/template/.qoder/skills/drawio/scripts/adapters/config-common.js +0 -131
- package/template/.qoder/skills/drawio/scripts/adapters/config-common.test.js +0 -32
- package/template/.qoder/skills/drawio/scripts/adapters/docker-inspect.js +0 -127
- package/template/.qoder/skills/drawio/scripts/adapters/docker-inspect.test.js +0 -62
- package/template/.qoder/skills/drawio/scripts/adapters/fixtures/raster-extraction.json +0 -31
- package/template/.qoder/skills/drawio/scripts/adapters/go-code-adapter.test.js +0 -59
- package/template/.qoder/skills/drawio/scripts/adapters/go-code.js +0 -168
- package/template/.qoder/skills/drawio/scripts/adapters/graph-drift.file.test.js +0 -67
- package/template/.qoder/skills/drawio/scripts/adapters/graph-drift.js +0 -358
- package/template/.qoder/skills/drawio/scripts/adapters/graph-drift.test.js +0 -272
- package/template/.qoder/skills/drawio/scripts/adapters/graph-projection.js +0 -335
- package/template/.qoder/skills/drawio/scripts/adapters/graph-projection.test.js +0 -141
- package/template/.qoder/skills/drawio/scripts/adapters/identity.js +0 -244
- package/template/.qoder/skills/drawio/scripts/adapters/identity.test.js +0 -123
- package/template/.qoder/skills/drawio/scripts/adapters/index.js +0 -489
- package/template/.qoder/skills/drawio/scripts/adapters/index.test.js +0 -152
- package/template/.qoder/skills/drawio/scripts/adapters/js-code-adapter.test.js +0 -42
- package/template/.qoder/skills/drawio/scripts/adapters/js-code.js +0 -141
- package/template/.qoder/skills/drawio/scripts/adapters/kubernetes-live.test.js +0 -46
- package/template/.qoder/skills/drawio/scripts/adapters/kubernetes.js +0 -258
- package/template/.qoder/skills/drawio/scripts/adapters/kubernetes.test.js +0 -81
- package/template/.qoder/skills/drawio/scripts/adapters/openapi.js +0 -98
- package/template/.qoder/skills/drawio/scripts/adapters/openapi.test.js +0 -46
- package/template/.qoder/skills/drawio/scripts/adapters/optional-python-code.js +0 -16
- package/template/.qoder/skills/drawio/scripts/adapters/optional-python.integration.test.js +0 -32
- package/template/.qoder/skills/drawio/scripts/adapters/optional-python.js +0 -127
- package/template/.qoder/skills/drawio/scripts/adapters/optional-python.test.js +0 -55
- package/template/.qoder/skills/drawio/scripts/adapters/projection-to-spec.js +0 -116
- package/template/.qoder/skills/drawio/scripts/adapters/projection-to-spec.test.js +0 -139
- package/template/.qoder/skills/drawio/scripts/adapters/python/code-parser-worker.py +0 -93
- package/template/.qoder/skills/drawio/scripts/adapters/python/config-parser-worker.py +0 -237
- package/template/.qoder/skills/drawio/scripts/adapters/python/requirements.txt +0 -2
- package/template/.qoder/skills/drawio/scripts/adapters/python-code-adapter.test.js +0 -127
- package/template/.qoder/skills/drawio/scripts/adapters/python-code.js +0 -246
- package/template/.qoder/skills/drawio/scripts/adapters/raster-extraction.js +0 -258
- package/template/.qoder/skills/drawio/scripts/adapters/raster-extraction.test.js +0 -308
- package/template/.qoder/skills/drawio/scripts/adapters/rust-code-adapter.test.js +0 -64
- package/template/.qoder/skills/drawio/scripts/adapters/rust-code.js +0 -207
- package/template/.qoder/skills/drawio/scripts/adapters/sql-ddl.js +0 -118
- package/template/.qoder/skills/drawio/scripts/adapters/sql-ddl.test.js +0 -56
- package/template/.qoder/skills/drawio/scripts/adapters/terraform-config.js +0 -141
- package/template/.qoder/skills/drawio/scripts/adapters/terraform-config.test.js +0 -67
- package/template/.qoder/skills/drawio/scripts/adapters/terraform-state.js +0 -157
- package/template/.qoder/skills/drawio/scripts/adapters/terraform-state.test.js +0 -69
- package/template/.qoder/skills/drawio/scripts/cli.js +0 -700
- package/template/.qoder/skills/drawio/scripts/dsl/ah-to-drawio.js +0 -276
- package/template/.qoder/skills/drawio/scripts/dsl/ah-to-drawio.test.js +0 -77
- package/template/.qoder/skills/drawio/scripts/dsl/ai-icon-catalog.js +0 -126
- package/template/.qoder/skills/drawio/scripts/dsl/ai-icon-catalog.test.js +0 -86
- package/template/.qoder/skills/drawio/scripts/dsl/auto-layout.js +0 -206
- package/template/.qoder/skills/drawio/scripts/dsl/auto-layout.test.js +0 -249
- package/template/.qoder/skills/drawio/scripts/dsl/catalog-ranking.js +0 -54
- package/template/.qoder/skills/drawio/scripts/dsl/catalog-search.js +0 -58
- package/template/.qoder/skills/drawio/scripts/dsl/catalog-search.test.js +0 -44
- package/template/.qoder/skills/drawio/scripts/dsl/document-spec.js +0 -256
- package/template/.qoder/skills/drawio/scripts/dsl/document-spec.test.js +0 -147
- package/template/.qoder/skills/drawio/scripts/dsl/drawio-to-spec.js +0 -497
- package/template/.qoder/skills/drawio/scripts/dsl/examples-baseline.test.js +0 -30
- package/template/.qoder/skills/drawio/scripts/dsl/icon-mappings.js +0 -65
- package/template/.qoder/skills/drawio/scripts/dsl/icon-mappings.test.js +0 -19
- package/template/.qoder/skills/drawio/scripts/dsl/icon-resolver.js +0 -153
- package/template/.qoder/skills/drawio/scripts/dsl/icon-resolver.test.js +0 -62
- package/template/.qoder/skills/drawio/scripts/dsl/multi-page.js +0 -224
- package/template/.qoder/skills/drawio/scripts/dsl/multi-page.test.js +0 -107
- package/template/.qoder/skills/drawio/scripts/dsl/palette-catalog.test.js +0 -138
- package/template/.qoder/skills/drawio/scripts/dsl/palette-integration.test.js +0 -182
- package/template/.qoder/skills/drawio/scripts/dsl/palette-validate.js +0 -91
- package/template/.qoder/skills/drawio/scripts/dsl/palette.js +0 -302
- package/template/.qoder/skills/drawio/scripts/dsl/palette.test.js +0 -197
- package/template/.qoder/skills/drawio/scripts/dsl/shape-catalog.js +0 -89
- package/template/.qoder/skills/drawio/scripts/dsl/shape-catalog.test.js +0 -21
- package/template/.qoder/skills/drawio/scripts/dsl/spec-to-drawio.js +0 -3739
- package/template/.qoder/skills/drawio/scripts/dsl/spec-to-drawio.test.js +0 -3022
- package/template/.qoder/skills/drawio/scripts/generate-palette-swatches.js +0 -87
- package/template/.qoder/skills/drawio/scripts/install.bat +0 -64
- package/template/.qoder/skills/drawio/scripts/install.sh +0 -44
- package/template/.qoder/skills/drawio/scripts/math/index.js +0 -317
- package/template/.qoder/skills/drawio/scripts/math/index.test.js +0 -62
- package/template/.qoder/skills/drawio/scripts/package.json +0 -1
- package/template/.qoder/skills/drawio/scripts/postprocess/artifacts.js +0 -142
- package/template/.qoder/skills/drawio/scripts/postprocess/artifacts.test.js +0 -86
- package/template/.qoder/skills/drawio/scripts/postprocess/cli.js +0 -228
- package/template/.qoder/skills/drawio/scripts/postprocess/cli.test.js +0 -129
- package/template/.qoder/skills/drawio/scripts/postprocess/fixtures/bundle.yaml +0 -75
- package/template/.qoder/skills/drawio/scripts/postprocess/fixtures/legacy.yaml +0 -21
- package/template/.qoder/skills/drawio/scripts/postprocess/html.js +0 -197
- package/template/.qoder/skills/drawio/scripts/postprocess/html.test.js +0 -50
- package/template/.qoder/skills/drawio/scripts/postprocess/index.js +0 -5
- package/template/.qoder/skills/drawio/scripts/postprocess/input.js +0 -112
- package/template/.qoder/skills/drawio/scripts/postprocess/input.test.js +0 -73
- package/template/.qoder/skills/drawio/scripts/postprocess/mutate.js +0 -584
- package/template/.qoder/skills/drawio/scripts/postprocess/mutate.test.js +0 -193
- package/template/.qoder/skills/drawio/scripts/postprocess/projection.js +0 -178
- package/template/.qoder/skills/drawio/scripts/postprocess/projection.test.js +0 -67
- package/template/.qoder/skills/drawio/scripts/runtime/artifacts.js +0 -283
- package/template/.qoder/skills/drawio/scripts/runtime/desktop.js +0 -204
- package/template/.qoder/skills/drawio/scripts/runtime/desktop.test.js +0 -121
- package/template/.qoder/skills/drawio/scripts/runtime/diagrams-net-url.js +0 -122
- package/template/.qoder/skills/drawio/scripts/runtime/export-stability.js +0 -75
- package/template/.qoder/skills/drawio/scripts/runtime/export-stability.test.js +0 -81
- package/template/.qoder/skills/drawio/scripts/runtime/png-inspection.js +0 -157
- package/template/.qoder/skills/drawio/scripts/runtime/png-inspection.test.js +0 -120
- package/template/.qoder/skills/drawio/scripts/runtime/vision-preview.js +0 -77
- package/template/.qoder/skills/drawio/scripts/runtime/vision-preview.test.js +0 -103
- package/template/.qoder/skills/drawio/scripts/shared/ai-icon-contract.js +0 -13
- package/template/.qoder/skills/drawio/scripts/shared/xml-utils.js +0 -241
- package/template/.qoder/skills/drawio/scripts/svg/drawio-to-svg.js +0 -918
- package/template/.qoder/skills/drawio/scripts/svg/drawio-to-svg.test.js +0 -763
- package/template/.qoder/skills/drawio/scripts/tools/build-ai-icon-catalog.js +0 -208
- package/template/.qoder/skills/drawio/scripts/tools/build-ai-icon-catalog.test.js +0 -107
- package/template/.qoder/skills/drawio/scripts/tools/build-shape-catalog.js +0 -84
- package/template/.qoder/skills/drawio/scripts/tools/build-shape-catalog.test.js +0 -43
- package/template/.qoder/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/alpha-color.svg +0 -1
- package/template/.qoder/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/alpha.svg +0 -1
- package/template/.qoder/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/beta-brand-color.svg +0 -1
- package/template/.qoder/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/beta.svg +0 -1
- package/template/.qoder/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/civitai-text-color.svg +0 -1
- package/template/.qoder/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/civitai.svg +0 -1
- package/template/.qoder/skills/drawio/scripts/tools/fixtures/ai-icons-package/package.json +0 -5
- package/template/.qoder/skills/drawio/scripts/vendor/elkjs/LICENSE.md +0 -264
- package/template/.qoder/skills/drawio/scripts/vendor/elkjs/README.md +0 -18
- package/template/.qoder/skills/drawio/scripts/vendor/elkjs/elk.bundled.cjs +0 -6589
- package/template/.qoder/skills/drawio/styles/built-in/corporate.json +0 -49
- package/template/.qoder/skills/drawio/styles/built-in/default.json +0 -49
- package/template/.qoder/skills/drawio/styles/built-in/handdrawn.json +0 -49
- package/template/.qoder/skills/drawio/styles/schema.json +0 -112
- package/template/.qoder/skills/drawio-academic-skills/CHANGELOG.md +0 -67
- package/template/.qoder/skills/drawio-academic-skills/README.md +0 -103
- package/template/.qoder/skills/drawio-academic-skills/README_CN.md +0 -103
- package/template/.qoder/skills/drawio-academic-skills/SKILL.md +0 -161
- package/template/.qoder/skills/drawio-academic-skills/__yss_dotfile__.gitignore +0 -12
- package/template/.qoder/skills/drawio-academic-skills/agents/interface.yaml +0 -25
- package/template/.qoder/skills/drawio-academic-skills/agents/openai.yaml +0 -24
- package/template/.qoder/skills/drawio-academic-skills/evals/README.md +0 -13
- package/template/.qoder/skills/drawio-academic-skills/evals/baseline-prompts.json +0 -52
- package/template/.qoder/skills/drawio-academic-skills/evals/darwin-results.tsv +0 -3
- package/template/.qoder/skills/drawio-academic-skills/evals/evals.json +0 -228
- package/template/.qoder/skills/drawio-academic-skills/evals/test-prompts.json +0 -17
- package/template/.qoder/skills/drawio-academic-skills/references/docs/academic-export-checklist.md +0 -45
- package/template/.qoder/skills/drawio-academic-skills/references/docs/academic-figure-playbook.md +0 -349
- package/template/.qoder/skills/drawio-academic-skills/references/docs/publication-overlay.md +0 -206
- package/template/.qoder/skills/drawio-academic-skills/references/examples/ablation-study-pipeline.yaml +0 -39
- package/template/.qoder/skills/drawio-academic-skills/references/examples/ieee-network-paper.yaml +0 -44
- package/template/.qoder/skills/drawio-academic-skills/references/examples/industrial-architecture-cn-paper.yaml +0 -106
- package/template/.qoder/skills/drawio-academic-skills/references/examples/max-pooling-operation-paper.yaml +0 -75
- package/template/.qoder/skills/drawio-academic-skills/references/examples/research-pipeline.yaml +0 -54
- package/template/.qoder/skills/drawio-academic-skills/references/examples/system-architecture-paper.yaml +0 -45
- package/template/.qoder/skills/drawio-academic-skills/references/examples/technical-roadmap-paper.yaml +0 -54
- package/template/.qoder/skills/drawio-academic-skills/references/examples/yolo-model-architecture-paper.yaml +0 -118
- package/template/.qoder/skills/drawio-academic-skills/references/templates/multi-module-system-compact.yaml +0 -251
- package/template/.qoder/skills/drawio-academic-skills/references/templates/neural-network-architecture-compact.yaml +0 -267
- package/template/.qoder/skills/excalidraw-diagram-generator/SKILL.md +0 -634
- package/template/.qoder/skills/excalidraw-diagram-generator/references/element-types.md +0 -497
- package/template/.qoder/skills/excalidraw-diagram-generator/references/excalidraw-schema.md +0 -350
- package/template/.qoder/skills/excalidraw-diagram-generator/scripts/README.md +0 -193
- package/template/.qoder/skills/excalidraw-diagram-generator/scripts/__yss_dotfile__.gitignore +0 -34
- package/template/.qoder/skills/excalidraw-diagram-generator/scripts/add-arrow.py +0 -315
- package/template/.qoder/skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py +0 -406
- package/template/.qoder/skills/excalidraw-diagram-generator/scripts/split-excalidraw-library.py +0 -183
- package/template/.qoder/skills/excalidraw-diagram-generator/templates/business-flow-swimlane-template.excalidraw +0 -334
- package/template/.qoder/skills/excalidraw-diagram-generator/templates/class-diagram-template.excalidraw +0 -558
- package/template/.qoder/skills/excalidraw-diagram-generator/templates/data-flow-diagram-template.excalidraw +0 -279
- package/template/.qoder/skills/excalidraw-diagram-generator/templates/er-diagram-template.excalidraw +0 -662
- package/template/.qoder/skills/excalidraw-diagram-generator/templates/flowchart-template.excalidraw +0 -179
- package/template/.qoder/skills/excalidraw-diagram-generator/templates/mindmap-template.excalidraw +0 -244
- package/template/.qoder/skills/excalidraw-diagram-generator/templates/relationship-template.excalidraw +0 -145
- package/template/.qoder/skills/excalidraw-diagram-generator/templates/sequence-diagram-template.excalidraw +0 -509
- package/template/.qoder/skills/kb-retriever/README.md +0 -197
- package/template/.qoder/skills/kb-retriever/README.zh-CN.md +0 -197
- package/template/.qoder/skills/kb-retriever/SKILL.md +0 -250
- package/template/.qoder/skills/kb-retriever/manifest.json +0 -15
- package/template/.qoder/skills/kb-retriever/references/excel_analysis.md +0 -129
- package/template/.qoder/skills/kb-retriever/references/excel_reading.md +0 -72
- package/template/.qoder/skills/kb-retriever/references/pdf_reading.md +0 -362
- package/template/.qoder/skills/kb-retriever/scripts/convert_pdf_to_images.py +0 -35
- package/template/.qoder/skills/yss-db2mybatis/requirements.txt +0 -4
- package/template/.qoder/skills/yss-db2mybatis/scripts/db2mybatis.py +0 -1494
- package/template/.qoder/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.py +0 -728
- package/template/.qoder/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.py +0 -155
- package/template/.qoder/skills/yss-design-system/scripts/validate-frontmatter.py +0 -50
- package/template/.qoder/skills/yss-source-index/scripts/refresh-yss-skill-index.py +0 -371
- package/template/.qoder/skills/yss-web-controller/scripts/generate_controller.py +0 -293
- package/template/.qoder/skills/yss-web-controller/scripts/test_generate_controller.py +0 -68
- package/template/.trae/skills/beautiful-article/README.md +0 -450
- package/template/.trae/skills/beautiful-article/README.zh-CN.md +0 -450
- package/template/.trae/skills/beautiful-article/SKILL.md +0 -466
- package/template/.trae/skills/beautiful-article/assets/scaffold-template/__yss_dotfile__.npmrc +0 -1
- package/template/.trae/skills/beautiful-article/assets/scaffold-template/article/Article.tsx +0 -69
- package/template/.trae/skills/beautiful-article/assets/scaffold-template/article/Cover.tsx +0 -172
- package/template/.trae/skills/beautiful-article/assets/scaffold-template/article/main.tsx +0 -26
- package/template/.trae/skills/beautiful-article/assets/scaffold-template/article/sections/01-opening.tsx +0 -30
- package/template/.trae/skills/beautiful-article/assets/scaffold-template/index.html +0 -19
- package/template/.trae/skills/beautiful-article/assets/scaffold-template/package.json +0 -26
- package/template/.trae/skills/beautiful-article/assets/scaffold-template/tsconfig.json +0 -20
- package/template/.trae/skills/beautiful-article/assets/scaffold-template/tsconfig.node.json +0 -11
- package/template/.trae/skills/beautiful-article/assets/scaffold-template/vite.config.ts +0 -18
- package/template/.trae/skills/beautiful-article/manifest.json +0 -15
- package/template/.trae/skills/beautiful-article/references/article-types/briefing.md +0 -32
- package/template/.trae/skills/beautiful-article/references/article-types/dialogue.md +0 -30
- package/template/.trae/skills/beautiful-article/references/article-types/essay.md +0 -31
- package/template/.trae/skills/beautiful-article/references/article-types/explainer.md +0 -32
- package/template/.trae/skills/beautiful-article/references/article-types/full-report.md +0 -32
- package/template/.trae/skills/beautiful-article/references/article-types/interactive-explainer.md +0 -66
- package/template/.trae/skills/beautiful-article/references/article-types/longform.md +0 -32
- package/template/.trae/skills/beautiful-article/references/article-types/review.md +0 -32
- package/template/.trae/skills/beautiful-article/references/article-types/tutorial.md +0 -30
- package/template/.trae/skills/beautiful-article/references/article-types/visual-essay.md +0 -33
- package/template/.trae/skills/beautiful-article/references/article-types.md +0 -42
- package/template/.trae/skills/beautiful-article/references/asset-policy.md +0 -71
- package/template/.trae/skills/beautiful-article/references/component-policy.md +0 -103
- package/template/.trae/skills/beautiful-article/references/cover.md +0 -208
- package/template/.trae/skills/beautiful-article/references/harness.md +0 -35
- package/template/.trae/skills/beautiful-article/references/html-output.md +0 -42
- package/template/.trae/skills/beautiful-article/references/information-density.md +0 -50
- package/template/.trae/skills/beautiful-article/references/layout.md +0 -46
- package/template/.trae/skills/beautiful-article/references/pdf-output.md +0 -208
- package/template/.trae/skills/beautiful-article/references/plan-template.md +0 -109
- package/template/.trae/skills/beautiful-article/references/raw-policy.md +0 -86
- package/template/.trae/skills/beautiful-article/references/repair-policy.md +0 -35
- package/template/.trae/skills/beautiful-article/references/review-checklist.md +0 -133
- package/template/.trae/skills/beautiful-article/references/scaffold.md +0 -77
- package/template/.trae/skills/beautiful-article/references/section-build.md +0 -100
- package/template/.trae/skills/beautiful-article/references/source-to-markdown.md +0 -118
- package/template/.trae/skills/beautiful-article/references/theme-selection.md +0 -48
- package/template/.trae/skills/beautiful-article/scripts/html-to-pdf.sh +0 -160
- package/template/.trae/skills/beautiful-article/scripts/pdf-print-overrides.css +0 -192
- package/template/.trae/skills/beautiful-article/scripts/scaffold.sh +0 -172
- package/template/.trae/skills/beautiful-article/scripts/source-to-markdown-markitdown.py +0 -100
- package/template/.trae/skills/beautiful-article/scripts/source-to-markdown.py +0 -174
- package/template/.trae/skills/beautiful-article/theme-profiles/andy.md +0 -57
- package/template/.trae/skills/beautiful-article/theme-profiles/bayer.md +0 -57
- package/template/.trae/skills/beautiful-article/theme-profiles/bodoni.md +0 -57
- package/template/.trae/skills/beautiful-article/theme-profiles/freddie.md +0 -57
- package/template/.trae/skills/beautiful-article/theme-profiles/fuller.md +0 -56
- package/template/.trae/skills/beautiful-article/theme-profiles/index.json +0 -112
- package/template/.trae/skills/beautiful-article/theme-profiles/knuth.md +0 -60
- package/template/.trae/skills/beautiful-article/theme-profiles/press.md +0 -61
- package/template/.trae/skills/beautiful-article/theme-profiles/shannon.md +0 -64
- package/template/.trae/skills/beautiful-article/theme-profiles/sottsass.md +0 -57
- package/template/.trae/skills/beautiful-article/theme-profiles/tufte.md +0 -64
- package/template/.trae/skills/beautiful-article/theme-profiles/vignelli.md +0 -63
- package/template/.trae/skills/drawio/.mcp.json +0 -8
- package/template/.trae/skills/drawio/CHANGELOG.md +0 -216
- package/template/.trae/skills/drawio/SKILL.md +0 -157
- package/template/.trae/skills/drawio/agents/interface.yaml +0 -26
- package/template/.trae/skills/drawio/agents/openai.yaml +0 -26
- package/template/.trae/skills/drawio/assets/catalog/ai-icons.json.gz +0 -0
- package/template/.trae/skills/drawio/assets/catalog/shape-catalog.json.gz +0 -0
- package/template/.trae/skills/drawio/assets/catalog/shape-index.json.gz +0 -0
- package/template/.trae/skills/drawio/assets/examples/login-flow-test.drawio +0 -6
- package/template/.trae/skills/drawio/assets/examples/login-flow.drawio +0 -6
- package/template/.trae/skills/drawio/assets/examples/microservices.drawio +0 -6
- package/template/.trae/skills/drawio/assets/examples/neural-network.drawio +0 -6
- package/template/.trae/skills/drawio/assets/licenses/architecture-diagram-generator-MIT.txt +0 -26
- package/template/.trae/skills/drawio/assets/licenses/drawio-mcp-shape-index-Apache-2.0.txt +0 -8
- package/template/.trae/skills/drawio/assets/licenses/lobe-icons-MIT.txt +0 -26
- package/template/.trae/skills/drawio/assets/licenses/lucide-ISC.txt +0 -41
- package/template/.trae/skills/drawio/assets/palettes/c4-blue.json +0 -29
- package/template/.trae/skills/drawio/assets/palettes/cloud-aws.json +0 -30
- package/template/.trae/skills/drawio/assets/palettes/drawio-classic.json +0 -21
- package/template/.trae/skills/drawio/assets/palettes/ieee-bw.json +0 -26
- package/template/.trae/skills/drawio/assets/palettes/ieee-color.json +0 -17
- package/template/.trae/skills/drawio/assets/palettes/journal-jama.json +0 -20
- package/template/.trae/skills/drawio/assets/palettes/journal-npg.json +0 -23
- package/template/.trae/skills/drawio/assets/palettes/matlab-lines.json +0 -20
- package/template/.trae/skills/drawio/assets/palettes/morandi.json +0 -21
- package/template/.trae/skills/drawio/assets/palettes/okabe-ito.json +0 -21
- package/template/.trae/skills/drawio/assets/palettes/seaborn-colorblind.json +0 -23
- package/template/.trae/skills/drawio/assets/palettes/tol-bright.json +0 -20
- package/template/.trae/skills/drawio/assets/palettes/tol-high-contrast.json +0 -18
- package/template/.trae/skills/drawio/assets/palettes/tol-light-fill.json +0 -22
- package/template/.trae/skills/drawio/assets/palettes/tol-muted.json +0 -22
- package/template/.trae/skills/drawio/assets/schemas/graph-projection.schema.json +0 -135
- package/template/.trae/skills/drawio/assets/schemas/spec.schema.json +0 -620
- package/template/.trae/skills/drawio/assets/themes/academic-color.json +0 -299
- package/template/.trae/skills/drawio/assets/themes/academic.json +0 -245
- package/template/.trae/skills/drawio/assets/themes/arch-dark.json +0 -253
- package/template/.trae/skills/drawio/assets/themes/blueprint.json +0 -246
- package/template/.trae/skills/drawio/assets/themes/dark-luxury.json +0 -246
- package/template/.trae/skills/drawio/assets/themes/dark-terminal.json +0 -244
- package/template/.trae/skills/drawio/assets/themes/dark.json +0 -220
- package/template/.trae/skills/drawio/assets/themes/high-contrast.json +0 -220
- package/template/.trae/skills/drawio/assets/themes/nature.json +0 -220
- package/template/.trae/skills/drawio/assets/themes/notion-clean.json +0 -246
- package/template/.trae/skills/drawio/assets/themes/tech-blue.json +0 -220
- package/template/.trae/skills/drawio/evals/README.md +0 -17
- package/template/.trae/skills/drawio/evals/ai-icon-catalog-cases.json +0 -89
- package/template/.trae/skills/drawio/evals/baseline-prompts.json +0 -122
- package/template/.trae/skills/drawio/evals/darwin-results.tsv +0 -4
- package/template/.trae/skills/drawio/evals/evals.json +0 -223
- package/template/.trae/skills/drawio/evals/evidence/ai-icon-catalog-desktop.json +0 -134
- package/template/.trae/skills/drawio/evals/fixtures/ai-icons-advanced-svg.yaml +0 -25
- package/template/.trae/skills/drawio/evals/fixtures/ai-icons-cjk-agent-rag.yaml +0 -55
- package/template/.trae/skills/drawio/evals/fixtures/ai-icons-core-aliases.yaml +0 -50
- package/template/.trae/skills/drawio/evals/fixtures/ai-icons-current-color.yaml +0 -25
- package/template/.trae/skills/drawio/evals/fixtures/ai-icons-gradients.yaml +0 -25
- package/template/.trae/skills/drawio/evals/fixtures/import-simple-compressed.drawio +0 -5
- package/template/.trae/skills/drawio/evals/fixtures/import-simple.drawio +0 -28
- package/template/.trae/skills/drawio/evals/fixtures/industrial-architecture.yaml +0 -239
- package/template/.trae/skills/drawio/evals/fixtures/replicate-academic-highlight.svg +0 -13
- package/template/.trae/skills/drawio/evals/fixtures/replicate-brand-architecture.svg +0 -14
- package/template/.trae/skills/drawio/evals/fixtures/replicate-warm-approval.svg +0 -13
- package/template/.trae/skills/drawio/evals/fixtures/vision-tall-workflow.yaml +0 -47
- package/template/.trae/skills/drawio/evals/upstream-integration-cases.json +0 -78
- package/template/.trae/skills/drawio/evals/vision-preview-cases.json +0 -147
- package/template/.trae/skills/drawio/references/docs/agent-diagrams.md +0 -164
- package/template/.trae/skills/drawio/references/docs/ah-format.md +0 -322
- package/template/.trae/skills/drawio/references/docs/architecture-diagrams.md +0 -159
- package/template/.trae/skills/drawio/references/docs/canonical-graph-projection.md +0 -54
- package/template/.trae/skills/drawio/references/docs/code-importers.md +0 -53
- package/template/.trae/skills/drawio/references/docs/config-importers.md +0 -68
- package/template/.trae/skills/drawio/references/docs/design-system/README.md +0 -204
- package/template/.trae/skills/drawio/references/docs/design-system/color-guide.md +0 -255
- package/template/.trae/skills/drawio/references/docs/design-system/connectors.md +0 -388
- package/template/.trae/skills/drawio/references/docs/design-system/formulas.md +0 -196
- package/template/.trae/skills/drawio/references/docs/design-system/icons.md +0 -332
- package/template/.trae/skills/drawio/references/docs/design-system/shapes.md +0 -269
- package/template/.trae/skills/drawio/references/docs/design-system/specification.md +0 -754
- package/template/.trae/skills/drawio/references/docs/design-system/themes.md +0 -441
- package/template/.trae/skills/drawio/references/docs/design-system/tokens.md +0 -232
- package/template/.trae/skills/drawio/references/docs/edge-quality-rules.md +0 -65
- package/template/.trae/skills/drawio/references/docs/ieee-network-diagrams.md +0 -145
- package/template/.trae/skills/drawio/references/docs/live-snapshots-drift.md +0 -72
- package/template/.trae/skills/drawio/references/docs/math-typesetting.md +0 -258
- package/template/.trae/skills/drawio/references/docs/mcp-tools.md +0 -85
- package/template/.trae/skills/drawio/references/docs/migration-readiness.md +0 -73
- package/template/.trae/skills/drawio/references/docs/stencil-library-guide.md +0 -97
- package/template/.trae/skills/drawio/references/docs/style-extraction.md +0 -261
- package/template/.trae/skills/drawio/references/docs/style-presets.md +0 -126
- package/template/.trae/skills/drawio/references/docs/upstream-capability-compatibility.md +0 -61
- package/template/.trae/skills/drawio/references/docs/xml-format.md +0 -53
- package/template/.trae/skills/drawio/references/examples/README.md +0 -33
- package/template/.trae/skills/drawio/references/examples/agentic-rag.yaml +0 -71
- package/template/.trae/skills/drawio/references/examples/arch-dark-aws-serverless.yaml +0 -103
- package/template/.trae/skills/drawio/references/examples/arch-dark-microservices.yaml +0 -146
- package/template/.trae/skills/drawio/references/examples/arch-dark-web-app.yaml +0 -62
- package/template/.trae/skills/drawio/references/examples/auto-layout-workflow.yaml +0 -81
- package/template/.trae/skills/drawio/references/examples/aws-vpc-topology.yaml +0 -66
- package/template/.trae/skills/drawio/references/examples/campus-lan-topology.yaml +0 -89
- package/template/.trae/skills/drawio/references/examples/cloud-reference-architecture.yaml +0 -34
- package/template/.trae/skills/drawio/references/examples/e-commerce.yaml +0 -141
- package/template/.trae/skills/drawio/references/examples/importers/README.md +0 -10
- package/template/.trae/skills/drawio/references/examples/importers/live/compose-drift-evidence.json +0 -49
- package/template/.trae/skills/drawio/references/examples/importers/live/compose-drift-report.json +0 -300
- package/template/.trae/skills/drawio/references/examples/importers/live/compose-drift.spec.yaml +0 -75
- package/template/.trae/skills/drawio/references/examples/importers/live/docker-inspect.json +0 -55
- package/template/.trae/skills/drawio/references/examples/importers/live/drift-declared-compose.yaml +0 -13
- package/template/.trae/skills/drawio/references/examples/importers/live/kubernetes-live.json +0 -71
- package/template/.trae/skills/drawio/references/examples/importers/live/terraform-state.json +0 -70
- package/template/.trae/skills/drawio/references/examples/importers/schema.sql +0 -10
- package/template/.trae/skills/drawio/references/examples/importers/terraform.tf +0 -9
- package/template/.trae/skills/drawio/references/examples/login-flow.yaml +0 -65
- package/template/.trae/skills/drawio/references/examples/mem0-memory-layer.yaml +0 -63
- package/template/.trae/skills/drawio/references/examples/microservices.yaml +0 -58
- package/template/.trae/skills/drawio/references/examples/multi-agent-orchestration.yaml +0 -67
- package/template/.trae/skills/drawio/references/examples/neural-network.yaml +0 -66
- package/template/.trae/skills/drawio/references/examples/onprem-dmz-topology.yaml +0 -62
- package/template/.trae/skills/drawio/references/examples/palettes/README.md +0 -29
- package/template/.trae/skills/drawio/references/examples/palettes/c4-blue.drawio +0 -6
- package/template/.trae/skills/drawio/references/examples/palettes/c4-blue.svg +0 -36
- package/template/.trae/skills/drawio/references/examples/palettes/cloud-aws.drawio +0 -6
- package/template/.trae/skills/drawio/references/examples/palettes/cloud-aws.svg +0 -36
- package/template/.trae/skills/drawio/references/examples/palettes/drawio-classic.drawio +0 -6
- package/template/.trae/skills/drawio/references/examples/palettes/drawio-classic.svg +0 -36
- package/template/.trae/skills/drawio/references/examples/palettes/ieee-bw.drawio +0 -6
- package/template/.trae/skills/drawio/references/examples/palettes/ieee-bw.svg +0 -36
- package/template/.trae/skills/drawio/references/examples/palettes/ieee-color.drawio +0 -6
- package/template/.trae/skills/drawio/references/examples/palettes/ieee-color.svg +0 -36
- package/template/.trae/skills/drawio/references/examples/palettes/journal-jama.drawio +0 -6
- package/template/.trae/skills/drawio/references/examples/palettes/journal-jama.svg +0 -36
- package/template/.trae/skills/drawio/references/examples/palettes/journal-npg.drawio +0 -6
- package/template/.trae/skills/drawio/references/examples/palettes/journal-npg.svg +0 -36
- package/template/.trae/skills/drawio/references/examples/palettes/matlab-lines.drawio +0 -6
- package/template/.trae/skills/drawio/references/examples/palettes/matlab-lines.svg +0 -36
- package/template/.trae/skills/drawio/references/examples/palettes/morandi.drawio +0 -6
- package/template/.trae/skills/drawio/references/examples/palettes/morandi.svg +0 -36
- package/template/.trae/skills/drawio/references/examples/palettes/okabe-ito.drawio +0 -6
- package/template/.trae/skills/drawio/references/examples/palettes/okabe-ito.svg +0 -36
- package/template/.trae/skills/drawio/references/examples/palettes/palette-swatch.template.yaml +0 -56
- package/template/.trae/skills/drawio/references/examples/palettes/seaborn-colorblind.drawio +0 -6
- package/template/.trae/skills/drawio/references/examples/palettes/seaborn-colorblind.svg +0 -36
- package/template/.trae/skills/drawio/references/examples/palettes/tol-bright.drawio +0 -6
- package/template/.trae/skills/drawio/references/examples/palettes/tol-bright.svg +0 -36
- package/template/.trae/skills/drawio/references/examples/palettes/tol-high-contrast.drawio +0 -6
- package/template/.trae/skills/drawio/references/examples/palettes/tol-high-contrast.svg +0 -36
- package/template/.trae/skills/drawio/references/examples/palettes/tol-light-fill.drawio +0 -6
- package/template/.trae/skills/drawio/references/examples/palettes/tol-light-fill.svg +0 -36
- package/template/.trae/skills/drawio/references/examples/palettes/tol-muted.drawio +0 -6
- package/template/.trae/skills/drawio/references/examples/palettes/tol-muted.svg +0 -36
- package/template/.trae/skills/drawio/references/examples/rag-pipeline.yaml +0 -67
- package/template/.trae/skills/drawio/references/examples/replicated-brand-flow.yaml +0 -89
- package/template/.trae/skills/drawio/references/examples/swimlane-engineering-review.yaml +0 -44
- package/template/.trae/skills/drawio/references/examples/tiered-network-topology.yaml +0 -59
- package/template/.trae/skills/drawio/references/examples/tool-call-loop.yaml +0 -63
- package/template/.trae/skills/drawio/references/examples/vendor-device-mapping.yaml +0 -46
- package/template/.trae/skills/drawio/references/official/style-reference.md +0 -936
- package/template/.trae/skills/drawio/references/official/xml-reference.md +0 -262
- package/template/.trae/skills/drawio/references/palette.schema.json +0 -59
- package/template/.trae/skills/drawio/references/theme.schema.json +0 -249
- package/template/.trae/skills/drawio/references/upstream/pure-drawio-skill.md +0 -615
- package/template/.trae/skills/drawio/references/workflows/create.md +0 -195
- package/template/.trae/skills/drawio/references/workflows/edit.md +0 -174
- package/template/.trae/skills/drawio/references/workflows/replicate.md +0 -239
- package/template/.trae/skills/drawio/references/workflows/visual-review.md +0 -108
- package/template/.trae/skills/drawio/reports/output_quality_scorecard.md +0 -106
- package/template/.trae/skills/drawio/reports/upstream-port-release-evidence.md +0 -43
- package/template/.trae/skills/drawio/scripts/adapters/ci.js +0 -139
- package/template/.trae/skills/drawio/scripts/adapters/ci.test.js +0 -41
- package/template/.trae/skills/drawio/scripts/adapters/code-common.js +0 -171
- package/template/.trae/skills/drawio/scripts/adapters/code-imports.test.js +0 -80
- package/template/.trae/skills/drawio/scripts/adapters/code-parsers.integration.test.js +0 -71
- package/template/.trae/skills/drawio/scripts/adapters/compose.js +0 -134
- package/template/.trae/skills/drawio/scripts/adapters/compose.test.js +0 -54
- package/template/.trae/skills/drawio/scripts/adapters/config-adapters.integration.test.js +0 -58
- package/template/.trae/skills/drawio/scripts/adapters/config-common.js +0 -131
- package/template/.trae/skills/drawio/scripts/adapters/config-common.test.js +0 -32
- package/template/.trae/skills/drawio/scripts/adapters/docker-inspect.js +0 -127
- package/template/.trae/skills/drawio/scripts/adapters/docker-inspect.test.js +0 -62
- package/template/.trae/skills/drawio/scripts/adapters/fixtures/raster-extraction.json +0 -31
- package/template/.trae/skills/drawio/scripts/adapters/go-code-adapter.test.js +0 -59
- package/template/.trae/skills/drawio/scripts/adapters/go-code.js +0 -168
- package/template/.trae/skills/drawio/scripts/adapters/graph-drift.file.test.js +0 -67
- package/template/.trae/skills/drawio/scripts/adapters/graph-drift.js +0 -358
- package/template/.trae/skills/drawio/scripts/adapters/graph-drift.test.js +0 -272
- package/template/.trae/skills/drawio/scripts/adapters/graph-projection.js +0 -335
- package/template/.trae/skills/drawio/scripts/adapters/graph-projection.test.js +0 -141
- package/template/.trae/skills/drawio/scripts/adapters/identity.js +0 -244
- package/template/.trae/skills/drawio/scripts/adapters/identity.test.js +0 -123
- package/template/.trae/skills/drawio/scripts/adapters/index.js +0 -489
- package/template/.trae/skills/drawio/scripts/adapters/index.test.js +0 -152
- package/template/.trae/skills/drawio/scripts/adapters/js-code-adapter.test.js +0 -42
- package/template/.trae/skills/drawio/scripts/adapters/js-code.js +0 -141
- package/template/.trae/skills/drawio/scripts/adapters/kubernetes-live.test.js +0 -46
- package/template/.trae/skills/drawio/scripts/adapters/kubernetes.js +0 -258
- package/template/.trae/skills/drawio/scripts/adapters/kubernetes.test.js +0 -81
- package/template/.trae/skills/drawio/scripts/adapters/openapi.js +0 -98
- package/template/.trae/skills/drawio/scripts/adapters/openapi.test.js +0 -46
- package/template/.trae/skills/drawio/scripts/adapters/optional-python-code.js +0 -16
- package/template/.trae/skills/drawio/scripts/adapters/optional-python.integration.test.js +0 -32
- package/template/.trae/skills/drawio/scripts/adapters/optional-python.js +0 -127
- package/template/.trae/skills/drawio/scripts/adapters/optional-python.test.js +0 -55
- package/template/.trae/skills/drawio/scripts/adapters/projection-to-spec.js +0 -116
- package/template/.trae/skills/drawio/scripts/adapters/projection-to-spec.test.js +0 -139
- package/template/.trae/skills/drawio/scripts/adapters/python/code-parser-worker.py +0 -93
- package/template/.trae/skills/drawio/scripts/adapters/python/config-parser-worker.py +0 -237
- package/template/.trae/skills/drawio/scripts/adapters/python/requirements.txt +0 -2
- package/template/.trae/skills/drawio/scripts/adapters/python-code-adapter.test.js +0 -127
- package/template/.trae/skills/drawio/scripts/adapters/python-code.js +0 -246
- package/template/.trae/skills/drawio/scripts/adapters/raster-extraction.js +0 -258
- package/template/.trae/skills/drawio/scripts/adapters/raster-extraction.test.js +0 -308
- package/template/.trae/skills/drawio/scripts/adapters/rust-code-adapter.test.js +0 -64
- package/template/.trae/skills/drawio/scripts/adapters/rust-code.js +0 -207
- package/template/.trae/skills/drawio/scripts/adapters/sql-ddl.js +0 -118
- package/template/.trae/skills/drawio/scripts/adapters/sql-ddl.test.js +0 -56
- package/template/.trae/skills/drawio/scripts/adapters/terraform-config.js +0 -141
- package/template/.trae/skills/drawio/scripts/adapters/terraform-config.test.js +0 -67
- package/template/.trae/skills/drawio/scripts/adapters/terraform-state.js +0 -157
- package/template/.trae/skills/drawio/scripts/adapters/terraform-state.test.js +0 -69
- package/template/.trae/skills/drawio/scripts/cli.js +0 -700
- package/template/.trae/skills/drawio/scripts/dsl/ah-to-drawio.js +0 -276
- package/template/.trae/skills/drawio/scripts/dsl/ah-to-drawio.test.js +0 -77
- package/template/.trae/skills/drawio/scripts/dsl/ai-icon-catalog.js +0 -126
- package/template/.trae/skills/drawio/scripts/dsl/ai-icon-catalog.test.js +0 -86
- package/template/.trae/skills/drawio/scripts/dsl/auto-layout.js +0 -206
- package/template/.trae/skills/drawio/scripts/dsl/auto-layout.test.js +0 -249
- package/template/.trae/skills/drawio/scripts/dsl/catalog-ranking.js +0 -54
- package/template/.trae/skills/drawio/scripts/dsl/catalog-search.js +0 -58
- package/template/.trae/skills/drawio/scripts/dsl/catalog-search.test.js +0 -44
- package/template/.trae/skills/drawio/scripts/dsl/document-spec.js +0 -256
- package/template/.trae/skills/drawio/scripts/dsl/document-spec.test.js +0 -147
- package/template/.trae/skills/drawio/scripts/dsl/drawio-to-spec.js +0 -497
- package/template/.trae/skills/drawio/scripts/dsl/examples-baseline.test.js +0 -30
- package/template/.trae/skills/drawio/scripts/dsl/icon-mappings.js +0 -65
- package/template/.trae/skills/drawio/scripts/dsl/icon-mappings.test.js +0 -19
- package/template/.trae/skills/drawio/scripts/dsl/icon-resolver.js +0 -153
- package/template/.trae/skills/drawio/scripts/dsl/icon-resolver.test.js +0 -62
- package/template/.trae/skills/drawio/scripts/dsl/multi-page.js +0 -224
- package/template/.trae/skills/drawio/scripts/dsl/multi-page.test.js +0 -107
- package/template/.trae/skills/drawio/scripts/dsl/palette-catalog.test.js +0 -138
- package/template/.trae/skills/drawio/scripts/dsl/palette-integration.test.js +0 -182
- package/template/.trae/skills/drawio/scripts/dsl/palette-validate.js +0 -91
- package/template/.trae/skills/drawio/scripts/dsl/palette.js +0 -302
- package/template/.trae/skills/drawio/scripts/dsl/palette.test.js +0 -197
- package/template/.trae/skills/drawio/scripts/dsl/shape-catalog.js +0 -89
- package/template/.trae/skills/drawio/scripts/dsl/shape-catalog.test.js +0 -21
- package/template/.trae/skills/drawio/scripts/dsl/spec-to-drawio.js +0 -3739
- package/template/.trae/skills/drawio/scripts/dsl/spec-to-drawio.test.js +0 -3022
- package/template/.trae/skills/drawio/scripts/generate-palette-swatches.js +0 -87
- package/template/.trae/skills/drawio/scripts/install.bat +0 -64
- package/template/.trae/skills/drawio/scripts/install.sh +0 -44
- package/template/.trae/skills/drawio/scripts/math/index.js +0 -317
- package/template/.trae/skills/drawio/scripts/math/index.test.js +0 -62
- package/template/.trae/skills/drawio/scripts/package.json +0 -1
- package/template/.trae/skills/drawio/scripts/postprocess/artifacts.js +0 -142
- package/template/.trae/skills/drawio/scripts/postprocess/artifacts.test.js +0 -86
- package/template/.trae/skills/drawio/scripts/postprocess/cli.js +0 -228
- package/template/.trae/skills/drawio/scripts/postprocess/cli.test.js +0 -129
- package/template/.trae/skills/drawio/scripts/postprocess/fixtures/bundle.yaml +0 -75
- package/template/.trae/skills/drawio/scripts/postprocess/fixtures/legacy.yaml +0 -21
- package/template/.trae/skills/drawio/scripts/postprocess/html.js +0 -197
- package/template/.trae/skills/drawio/scripts/postprocess/html.test.js +0 -50
- package/template/.trae/skills/drawio/scripts/postprocess/index.js +0 -5
- package/template/.trae/skills/drawio/scripts/postprocess/input.js +0 -112
- package/template/.trae/skills/drawio/scripts/postprocess/input.test.js +0 -73
- package/template/.trae/skills/drawio/scripts/postprocess/mutate.js +0 -584
- package/template/.trae/skills/drawio/scripts/postprocess/mutate.test.js +0 -193
- package/template/.trae/skills/drawio/scripts/postprocess/projection.js +0 -178
- package/template/.trae/skills/drawio/scripts/postprocess/projection.test.js +0 -67
- package/template/.trae/skills/drawio/scripts/runtime/artifacts.js +0 -283
- package/template/.trae/skills/drawio/scripts/runtime/desktop.js +0 -204
- package/template/.trae/skills/drawio/scripts/runtime/desktop.test.js +0 -121
- package/template/.trae/skills/drawio/scripts/runtime/diagrams-net-url.js +0 -122
- package/template/.trae/skills/drawio/scripts/runtime/export-stability.js +0 -75
- package/template/.trae/skills/drawio/scripts/runtime/export-stability.test.js +0 -81
- package/template/.trae/skills/drawio/scripts/runtime/png-inspection.js +0 -157
- package/template/.trae/skills/drawio/scripts/runtime/png-inspection.test.js +0 -120
- package/template/.trae/skills/drawio/scripts/runtime/vision-preview.js +0 -77
- package/template/.trae/skills/drawio/scripts/runtime/vision-preview.test.js +0 -103
- package/template/.trae/skills/drawio/scripts/shared/ai-icon-contract.js +0 -13
- package/template/.trae/skills/drawio/scripts/shared/xml-utils.js +0 -241
- package/template/.trae/skills/drawio/scripts/svg/drawio-to-svg.js +0 -918
- package/template/.trae/skills/drawio/scripts/svg/drawio-to-svg.test.js +0 -763
- package/template/.trae/skills/drawio/scripts/tools/build-ai-icon-catalog.js +0 -208
- package/template/.trae/skills/drawio/scripts/tools/build-ai-icon-catalog.test.js +0 -107
- package/template/.trae/skills/drawio/scripts/tools/build-shape-catalog.js +0 -84
- package/template/.trae/skills/drawio/scripts/tools/build-shape-catalog.test.js +0 -43
- package/template/.trae/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/alpha-color.svg +0 -1
- package/template/.trae/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/alpha.svg +0 -1
- package/template/.trae/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/beta-brand-color.svg +0 -1
- package/template/.trae/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/beta.svg +0 -1
- package/template/.trae/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/civitai-text-color.svg +0 -1
- package/template/.trae/skills/drawio/scripts/tools/fixtures/ai-icons-package/icons/civitai.svg +0 -1
- package/template/.trae/skills/drawio/scripts/tools/fixtures/ai-icons-package/package.json +0 -5
- package/template/.trae/skills/drawio/scripts/vendor/elkjs/LICENSE.md +0 -264
- package/template/.trae/skills/drawio/scripts/vendor/elkjs/README.md +0 -18
- package/template/.trae/skills/drawio/scripts/vendor/elkjs/elk.bundled.cjs +0 -6589
- package/template/.trae/skills/drawio/styles/built-in/corporate.json +0 -49
- package/template/.trae/skills/drawio/styles/built-in/default.json +0 -49
- package/template/.trae/skills/drawio/styles/built-in/handdrawn.json +0 -49
- package/template/.trae/skills/drawio/styles/schema.json +0 -112
- package/template/.trae/skills/drawio-academic-skills/CHANGELOG.md +0 -67
- package/template/.trae/skills/drawio-academic-skills/README.md +0 -103
- package/template/.trae/skills/drawio-academic-skills/README_CN.md +0 -103
- package/template/.trae/skills/drawio-academic-skills/SKILL.md +0 -161
- package/template/.trae/skills/drawio-academic-skills/__yss_dotfile__.gitignore +0 -12
- package/template/.trae/skills/drawio-academic-skills/agents/interface.yaml +0 -25
- package/template/.trae/skills/drawio-academic-skills/agents/openai.yaml +0 -24
- package/template/.trae/skills/drawio-academic-skills/evals/README.md +0 -13
- package/template/.trae/skills/drawio-academic-skills/evals/baseline-prompts.json +0 -52
- package/template/.trae/skills/drawio-academic-skills/evals/darwin-results.tsv +0 -3
- package/template/.trae/skills/drawio-academic-skills/evals/evals.json +0 -228
- package/template/.trae/skills/drawio-academic-skills/evals/test-prompts.json +0 -17
- package/template/.trae/skills/drawio-academic-skills/references/docs/academic-export-checklist.md +0 -45
- package/template/.trae/skills/drawio-academic-skills/references/docs/academic-figure-playbook.md +0 -349
- package/template/.trae/skills/drawio-academic-skills/references/docs/publication-overlay.md +0 -206
- package/template/.trae/skills/drawio-academic-skills/references/examples/ablation-study-pipeline.yaml +0 -39
- package/template/.trae/skills/drawio-academic-skills/references/examples/ieee-network-paper.yaml +0 -44
- package/template/.trae/skills/drawio-academic-skills/references/examples/industrial-architecture-cn-paper.yaml +0 -106
- package/template/.trae/skills/drawio-academic-skills/references/examples/max-pooling-operation-paper.yaml +0 -75
- package/template/.trae/skills/drawio-academic-skills/references/examples/research-pipeline.yaml +0 -54
- package/template/.trae/skills/drawio-academic-skills/references/examples/system-architecture-paper.yaml +0 -45
- package/template/.trae/skills/drawio-academic-skills/references/examples/technical-roadmap-paper.yaml +0 -54
- package/template/.trae/skills/drawio-academic-skills/references/examples/yolo-model-architecture-paper.yaml +0 -118
- package/template/.trae/skills/drawio-academic-skills/references/templates/multi-module-system-compact.yaml +0 -251
- package/template/.trae/skills/drawio-academic-skills/references/templates/neural-network-architecture-compact.yaml +0 -267
- package/template/.trae/skills/excalidraw-diagram-generator/SKILL.md +0 -634
- package/template/.trae/skills/excalidraw-diagram-generator/references/element-types.md +0 -497
- package/template/.trae/skills/excalidraw-diagram-generator/references/excalidraw-schema.md +0 -350
- package/template/.trae/skills/excalidraw-diagram-generator/scripts/README.md +0 -193
- package/template/.trae/skills/excalidraw-diagram-generator/scripts/__yss_dotfile__.gitignore +0 -34
- package/template/.trae/skills/excalidraw-diagram-generator/scripts/add-arrow.py +0 -315
- package/template/.trae/skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py +0 -406
- package/template/.trae/skills/excalidraw-diagram-generator/scripts/split-excalidraw-library.py +0 -183
- package/template/.trae/skills/excalidraw-diagram-generator/templates/business-flow-swimlane-template.excalidraw +0 -334
- package/template/.trae/skills/excalidraw-diagram-generator/templates/class-diagram-template.excalidraw +0 -558
- package/template/.trae/skills/excalidraw-diagram-generator/templates/data-flow-diagram-template.excalidraw +0 -279
- package/template/.trae/skills/excalidraw-diagram-generator/templates/er-diagram-template.excalidraw +0 -662
- package/template/.trae/skills/excalidraw-diagram-generator/templates/flowchart-template.excalidraw +0 -179
- package/template/.trae/skills/excalidraw-diagram-generator/templates/mindmap-template.excalidraw +0 -244
- package/template/.trae/skills/excalidraw-diagram-generator/templates/relationship-template.excalidraw +0 -145
- package/template/.trae/skills/excalidraw-diagram-generator/templates/sequence-diagram-template.excalidraw +0 -509
- package/template/.trae/skills/kb-retriever/README.md +0 -197
- package/template/.trae/skills/kb-retriever/README.zh-CN.md +0 -197
- package/template/.trae/skills/kb-retriever/SKILL.md +0 -250
- package/template/.trae/skills/kb-retriever/manifest.json +0 -15
- package/template/.trae/skills/kb-retriever/references/excel_analysis.md +0 -129
- package/template/.trae/skills/kb-retriever/references/excel_reading.md +0 -72
- package/template/.trae/skills/kb-retriever/references/pdf_reading.md +0 -362
- package/template/.trae/skills/kb-retriever/scripts/convert_pdf_to_images.py +0 -35
- package/template/.trae/skills/yss-db2mybatis/requirements.txt +0 -4
- package/template/.trae/skills/yss-db2mybatis/scripts/db2mybatis.py +0 -1494
- package/template/.trae/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.py +0 -728
- package/template/.trae/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.py +0 -155
- package/template/.trae/skills/yss-design-system/scripts/validate-frontmatter.py +0 -50
- package/template/.trae/skills/yss-source-index/scripts/refresh-yss-skill-index.py +0 -371
- package/template/.trae/skills/yss-web-controller/scripts/generate_controller.py +0 -293
- package/template/.trae/skills/yss-web-controller/scripts/test_generate_controller.py +0 -68
- package/template/docs/adr/0004-split-lifecycle-and-router-registry-domains.md +0 -5
- package/template/docs/adr/0005-cross-repository-ecosystem-release-manifest.md +0 -5
- package/template/docs/adr/0007-separate-skill-routing-registry-from-integrity-lock.md +0 -5
- package/template/docs/implementation/create-yss-spec-repository-mode-contract.md +0 -90
- package/template/docs/process/harness-optimization-backlog.md +0 -9
- package/template/docs/process/harness-work-unit-map.md +0 -16
- package/template/docs/releases/next-major-template-governance.md +0 -32
- package/template/docs/reviews/lifecycle-registry-phase0-1-red-green-2026-08-17.md +0 -61
- package/template/docs/reviews/matt-yss-p0-ticket-review-git-red-green-2026-08-17.md +0 -91
- package/template/docs/reviews/openapi-skill-primary-source-research-2026-08-16.md +0 -76
- package/template/docs/reviews/openapi-yaml-first-independent-review-2026-08-16.md +0 -121
- package/template/docs/reviews/openapi-yaml-first-pressure-scenarios-2026-08-16.md +0 -191
- package/template/docs/reviews/openapi-yaml-first-red-green-2026-08-16.md +0 -76
- package/template/docs/reviews/openapi-yaml-json-output-independent-review-2026-08-16.md +0 -30
- package/template/docs/reviews/openapi-yaml-json-output-scope-red-green-2026-08-16.md +0 -154
- package/template/docs/reviews/research-create-yss-spec-2026-08-10.md +0 -141
- package/template/docs/reviews/research-create-yss-spec-refresh-2026-08-16.md +0 -164
- package/template/docs/reviews/security-permission-lifecycle-simplification-red-green-2026-08-16.md +0 -43
- package/template/docs/reviews/template-release-review-remediation-red-green-2026-08-17.md +0 -41
- package/template/docs/reviews/yss-local-tracker-red-green-2026-08-10.md +0 -50
- package/template/docs/user-guide//345/233/276/347/244/272/347/224/237/346/210/220/345/231/250/344/275/277/347/224/250/346/214/207/345/215/227.md +0 -143
- package/template/scripts/implementation-path-policy.rb +0 -50
- package/template/scripts/lifecycle-registry.rb +0 -194
- package/template/scripts/test-export-yss-skills.rb +0 -130
- package/template/scripts/test-lifecycle-registry.rb +0 -74
|
@@ -0,0 +1,4103 @@
|
|
|
1
|
+
// node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/util.js
|
|
2
|
+
var nameStartChar = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
|
|
3
|
+
var nameChar = nameStartChar + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
|
|
4
|
+
var nameRegexp = "[" + nameStartChar + "][" + nameChar + "]*";
|
|
5
|
+
var regexName = new RegExp("^" + nameRegexp + "$");
|
|
6
|
+
function getAllMatches(string, regex) {
|
|
7
|
+
const matches = [];
|
|
8
|
+
let match = regex.exec(string);
|
|
9
|
+
while (match) {
|
|
10
|
+
const allmatches = [];
|
|
11
|
+
allmatches.startIndex = regex.lastIndex - match[0].length;
|
|
12
|
+
const len = match.length;
|
|
13
|
+
for (let index = 0; index < len; index++) {
|
|
14
|
+
allmatches.push(match[index]);
|
|
15
|
+
}
|
|
16
|
+
matches.push(allmatches);
|
|
17
|
+
match = regex.exec(string);
|
|
18
|
+
}
|
|
19
|
+
return matches;
|
|
20
|
+
}
|
|
21
|
+
var isName = function(string) {
|
|
22
|
+
const match = regexName.exec(string);
|
|
23
|
+
return !(match === null || typeof match === "undefined");
|
|
24
|
+
};
|
|
25
|
+
function isExist(v) {
|
|
26
|
+
return typeof v !== "undefined";
|
|
27
|
+
}
|
|
28
|
+
var DANGEROUS_PROPERTY_NAMES = [
|
|
29
|
+
// '__proto__',
|
|
30
|
+
// 'constructor',
|
|
31
|
+
// 'prototype',
|
|
32
|
+
"hasOwnProperty",
|
|
33
|
+
"toString",
|
|
34
|
+
"valueOf",
|
|
35
|
+
"__defineGetter__",
|
|
36
|
+
"__defineSetter__",
|
|
37
|
+
"__lookupGetter__",
|
|
38
|
+
"__lookupSetter__"
|
|
39
|
+
];
|
|
40
|
+
var criticalProperties = ["__proto__", "constructor", "prototype"];
|
|
41
|
+
|
|
42
|
+
// node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/validator.js
|
|
43
|
+
var defaultOptions = {
|
|
44
|
+
allowBooleanAttributes: false,
|
|
45
|
+
//A tag can have attributes without any value
|
|
46
|
+
unpairedTags: []
|
|
47
|
+
};
|
|
48
|
+
function validate(xmlData, options) {
|
|
49
|
+
options = Object.assign({}, defaultOptions, options);
|
|
50
|
+
const tags = [];
|
|
51
|
+
let tagFound = false;
|
|
52
|
+
let reachedRoot = false;
|
|
53
|
+
if (xmlData[0] === "\uFEFF") {
|
|
54
|
+
xmlData = xmlData.substr(1);
|
|
55
|
+
}
|
|
56
|
+
for (let i = 0; i < xmlData.length; i++) {
|
|
57
|
+
if (xmlData[i] === "<" && xmlData[i + 1] === "?") {
|
|
58
|
+
i += 2;
|
|
59
|
+
i = readPI(xmlData, i);
|
|
60
|
+
if (i.err) return i;
|
|
61
|
+
} else if (xmlData[i] === "<") {
|
|
62
|
+
let tagStartPos = i;
|
|
63
|
+
i++;
|
|
64
|
+
if (xmlData[i] === "!") {
|
|
65
|
+
i = readCommentAndCDATA(xmlData, i);
|
|
66
|
+
continue;
|
|
67
|
+
} else {
|
|
68
|
+
let closingTag = false;
|
|
69
|
+
if (xmlData[i] === "/") {
|
|
70
|
+
closingTag = true;
|
|
71
|
+
i++;
|
|
72
|
+
}
|
|
73
|
+
let tagName = "";
|
|
74
|
+
for (; i < xmlData.length && xmlData[i] !== ">" && xmlData[i] !== " " && xmlData[i] !== " " && xmlData[i] !== "\n" && xmlData[i] !== "\r"; i++) {
|
|
75
|
+
tagName += xmlData[i];
|
|
76
|
+
}
|
|
77
|
+
tagName = tagName.trim();
|
|
78
|
+
if (tagName[tagName.length - 1] === "/") {
|
|
79
|
+
tagName = tagName.substring(0, tagName.length - 1);
|
|
80
|
+
i--;
|
|
81
|
+
}
|
|
82
|
+
if (!validateTagName(tagName)) {
|
|
83
|
+
let msg;
|
|
84
|
+
if (tagName.trim().length === 0) {
|
|
85
|
+
msg = "Invalid space after '<'.";
|
|
86
|
+
} else {
|
|
87
|
+
msg = "Tag '" + tagName + "' is an invalid name.";
|
|
88
|
+
}
|
|
89
|
+
return getErrorObject("InvalidTag", msg, getLineNumberForPosition(xmlData, i));
|
|
90
|
+
}
|
|
91
|
+
const result = readAttributeStr(xmlData, i);
|
|
92
|
+
if (result === false) {
|
|
93
|
+
return getErrorObject("InvalidAttr", "Attributes for '" + tagName + "' have open quote.", getLineNumberForPosition(xmlData, i));
|
|
94
|
+
}
|
|
95
|
+
let attrStr = result.value;
|
|
96
|
+
i = result.index;
|
|
97
|
+
if (attrStr[attrStr.length - 1] === "/") {
|
|
98
|
+
const attrStrStart = i - attrStr.length;
|
|
99
|
+
attrStr = attrStr.substring(0, attrStr.length - 1);
|
|
100
|
+
const isValid = validateAttributeString(attrStr, options);
|
|
101
|
+
if (isValid === true) {
|
|
102
|
+
tagFound = true;
|
|
103
|
+
} else {
|
|
104
|
+
return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, attrStrStart + isValid.err.line));
|
|
105
|
+
}
|
|
106
|
+
} else if (closingTag) {
|
|
107
|
+
if (!result.tagClosed) {
|
|
108
|
+
return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' doesn't have proper closing.", getLineNumberForPosition(xmlData, i));
|
|
109
|
+
} else if (attrStr.trim().length > 0) {
|
|
110
|
+
return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData, tagStartPos));
|
|
111
|
+
} else if (tags.length === 0) {
|
|
112
|
+
return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' has not been opened.", getLineNumberForPosition(xmlData, tagStartPos));
|
|
113
|
+
} else {
|
|
114
|
+
const otg = tags.pop();
|
|
115
|
+
if (tagName !== otg.tagName) {
|
|
116
|
+
let openPos = getLineNumberForPosition(xmlData, otg.tagStartPos);
|
|
117
|
+
return getErrorObject(
|
|
118
|
+
"InvalidTag",
|
|
119
|
+
"Expected closing tag '" + otg.tagName + "' (opened in line " + openPos.line + ", col " + openPos.col + ") instead of closing tag '" + tagName + "'.",
|
|
120
|
+
getLineNumberForPosition(xmlData, tagStartPos)
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
if (tags.length == 0) {
|
|
124
|
+
reachedRoot = true;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
} else {
|
|
128
|
+
const isValid = validateAttributeString(attrStr, options);
|
|
129
|
+
if (isValid !== true) {
|
|
130
|
+
return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line));
|
|
131
|
+
}
|
|
132
|
+
if (reachedRoot === true) {
|
|
133
|
+
return getErrorObject("InvalidXml", "Multiple possible root nodes found.", getLineNumberForPosition(xmlData, i));
|
|
134
|
+
} else if (options.unpairedTags.indexOf(tagName) !== -1) {
|
|
135
|
+
} else {
|
|
136
|
+
tags.push({ tagName, tagStartPos });
|
|
137
|
+
}
|
|
138
|
+
tagFound = true;
|
|
139
|
+
}
|
|
140
|
+
for (i++; i < xmlData.length; i++) {
|
|
141
|
+
if (xmlData[i] === "<") {
|
|
142
|
+
if (xmlData[i + 1] === "!") {
|
|
143
|
+
i++;
|
|
144
|
+
i = readCommentAndCDATA(xmlData, i);
|
|
145
|
+
continue;
|
|
146
|
+
} else if (xmlData[i + 1] === "?") {
|
|
147
|
+
i = readPI(xmlData, ++i);
|
|
148
|
+
if (i.err) return i;
|
|
149
|
+
} else {
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
} else if (xmlData[i] === "&") {
|
|
153
|
+
const afterAmp = validateAmpersand(xmlData, i);
|
|
154
|
+
if (afterAmp == -1)
|
|
155
|
+
return getErrorObject("InvalidChar", "char '&' is not expected.", getLineNumberForPosition(xmlData, i));
|
|
156
|
+
i = afterAmp;
|
|
157
|
+
} else {
|
|
158
|
+
if (reachedRoot === true && !isWhiteSpace(xmlData[i])) {
|
|
159
|
+
return getErrorObject("InvalidXml", "Extra text at the end", getLineNumberForPosition(xmlData, i));
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
if (xmlData[i] === "<") {
|
|
164
|
+
i--;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
} else {
|
|
168
|
+
if (isWhiteSpace(xmlData[i])) {
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
return getErrorObject("InvalidChar", "char '" + xmlData[i] + "' is not expected.", getLineNumberForPosition(xmlData, i));
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
if (!tagFound) {
|
|
175
|
+
return getErrorObject("InvalidXml", "Start tag expected.", 1);
|
|
176
|
+
} else if (tags.length == 1) {
|
|
177
|
+
return getErrorObject("InvalidTag", "Unclosed tag '" + tags[0].tagName + "'.", getLineNumberForPosition(xmlData, tags[0].tagStartPos));
|
|
178
|
+
} else if (tags.length > 0) {
|
|
179
|
+
return getErrorObject("InvalidXml", "Invalid '" + JSON.stringify(tags.map((t) => t.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 });
|
|
180
|
+
}
|
|
181
|
+
return true;
|
|
182
|
+
}
|
|
183
|
+
function isWhiteSpace(char) {
|
|
184
|
+
return char === " " || char === " " || char === "\n" || char === "\r";
|
|
185
|
+
}
|
|
186
|
+
function readPI(xmlData, i) {
|
|
187
|
+
const start = i;
|
|
188
|
+
for (; i < xmlData.length; i++) {
|
|
189
|
+
if (xmlData[i] == "?" || xmlData[i] == " ") {
|
|
190
|
+
const tagname = xmlData.substr(start, i - start);
|
|
191
|
+
if (i > 5 && tagname === "xml") {
|
|
192
|
+
return getErrorObject("InvalidXml", "XML declaration allowed only at the start of the document.", getLineNumberForPosition(xmlData, i));
|
|
193
|
+
} else if (xmlData[i] == "?" && xmlData[i + 1] == ">") {
|
|
194
|
+
i++;
|
|
195
|
+
break;
|
|
196
|
+
} else {
|
|
197
|
+
continue;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return i;
|
|
202
|
+
}
|
|
203
|
+
function readCommentAndCDATA(xmlData, i) {
|
|
204
|
+
if (xmlData.length > i + 5 && xmlData[i + 1] === "-" && xmlData[i + 2] === "-") {
|
|
205
|
+
for (i += 3; i < xmlData.length; i++) {
|
|
206
|
+
if (xmlData[i] === "-" && xmlData[i + 1] === "-" && xmlData[i + 2] === ">") {
|
|
207
|
+
i += 2;
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
} else if (xmlData.length > i + 8 && xmlData[i + 1] === "D" && xmlData[i + 2] === "O" && xmlData[i + 3] === "C" && xmlData[i + 4] === "T" && xmlData[i + 5] === "Y" && xmlData[i + 6] === "P" && xmlData[i + 7] === "E") {
|
|
212
|
+
let angleBracketsCount = 1;
|
|
213
|
+
for (i += 8; i < xmlData.length; i++) {
|
|
214
|
+
if (xmlData[i] === "<") {
|
|
215
|
+
angleBracketsCount++;
|
|
216
|
+
} else if (xmlData[i] === ">") {
|
|
217
|
+
angleBracketsCount--;
|
|
218
|
+
if (angleBracketsCount === 0) {
|
|
219
|
+
break;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
} else if (xmlData.length > i + 9 && xmlData[i + 1] === "[" && xmlData[i + 2] === "C" && xmlData[i + 3] === "D" && xmlData[i + 4] === "A" && xmlData[i + 5] === "T" && xmlData[i + 6] === "A" && xmlData[i + 7] === "[") {
|
|
224
|
+
for (i += 8; i < xmlData.length; i++) {
|
|
225
|
+
if (xmlData[i] === "]" && xmlData[i + 1] === "]" && xmlData[i + 2] === ">") {
|
|
226
|
+
i += 2;
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
return i;
|
|
232
|
+
}
|
|
233
|
+
var doubleQuote = '"';
|
|
234
|
+
var singleQuote = "'";
|
|
235
|
+
function readAttributeStr(xmlData, i) {
|
|
236
|
+
let attrStr = "";
|
|
237
|
+
let startChar = "";
|
|
238
|
+
let tagClosed = false;
|
|
239
|
+
for (; i < xmlData.length; i++) {
|
|
240
|
+
if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) {
|
|
241
|
+
if (startChar === "") {
|
|
242
|
+
startChar = xmlData[i];
|
|
243
|
+
} else if (startChar !== xmlData[i]) {
|
|
244
|
+
} else {
|
|
245
|
+
startChar = "";
|
|
246
|
+
}
|
|
247
|
+
} else if (xmlData[i] === ">") {
|
|
248
|
+
if (startChar === "") {
|
|
249
|
+
tagClosed = true;
|
|
250
|
+
break;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
attrStr += xmlData[i];
|
|
254
|
+
}
|
|
255
|
+
if (startChar !== "") {
|
|
256
|
+
return false;
|
|
257
|
+
}
|
|
258
|
+
return {
|
|
259
|
+
value: attrStr,
|
|
260
|
+
index: i,
|
|
261
|
+
tagClosed
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
var validAttrStrRegxp = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
|
|
265
|
+
function validateAttributeString(attrStr, options) {
|
|
266
|
+
const matches = getAllMatches(attrStr, validAttrStrRegxp);
|
|
267
|
+
const attrNames = {};
|
|
268
|
+
for (let i = 0; i < matches.length; i++) {
|
|
269
|
+
if (matches[i][1].length === 0) {
|
|
270
|
+
return getErrorObject("InvalidAttr", "Attribute '" + matches[i][2] + "' has no space in starting.", getPositionFromMatch(matches[i]));
|
|
271
|
+
} else if (matches[i][3] !== void 0 && matches[i][4] === void 0) {
|
|
272
|
+
return getErrorObject("InvalidAttr", "Attribute '" + matches[i][2] + "' is without value.", getPositionFromMatch(matches[i]));
|
|
273
|
+
} else if (matches[i][3] === void 0 && !options.allowBooleanAttributes) {
|
|
274
|
+
return getErrorObject("InvalidAttr", "boolean attribute '" + matches[i][2] + "' is not allowed.", getPositionFromMatch(matches[i]));
|
|
275
|
+
}
|
|
276
|
+
const attrName = matches[i][2];
|
|
277
|
+
if (!validateAttrName(attrName)) {
|
|
278
|
+
return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is an invalid name.", getPositionFromMatch(matches[i]));
|
|
279
|
+
}
|
|
280
|
+
if (!Object.prototype.hasOwnProperty.call(attrNames, attrName)) {
|
|
281
|
+
attrNames[attrName] = 1;
|
|
282
|
+
} else {
|
|
283
|
+
return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is repeated.", getPositionFromMatch(matches[i]));
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return true;
|
|
287
|
+
}
|
|
288
|
+
function validateNumberAmpersand(xmlData, i) {
|
|
289
|
+
let re = /\d/;
|
|
290
|
+
if (xmlData[i] === "x") {
|
|
291
|
+
i++;
|
|
292
|
+
re = /[\da-fA-F]/;
|
|
293
|
+
}
|
|
294
|
+
for (; i < xmlData.length; i++) {
|
|
295
|
+
if (xmlData[i] === ";")
|
|
296
|
+
return i;
|
|
297
|
+
if (!xmlData[i].match(re))
|
|
298
|
+
break;
|
|
299
|
+
}
|
|
300
|
+
return -1;
|
|
301
|
+
}
|
|
302
|
+
function validateAmpersand(xmlData, i) {
|
|
303
|
+
i++;
|
|
304
|
+
if (xmlData[i] === ";")
|
|
305
|
+
return -1;
|
|
306
|
+
if (xmlData[i] === "#") {
|
|
307
|
+
i++;
|
|
308
|
+
return validateNumberAmpersand(xmlData, i);
|
|
309
|
+
}
|
|
310
|
+
let count = 0;
|
|
311
|
+
for (; i < xmlData.length; i++, count++) {
|
|
312
|
+
if (xmlData[i].match(/\w/) && count < 20)
|
|
313
|
+
continue;
|
|
314
|
+
if (xmlData[i] === ";")
|
|
315
|
+
break;
|
|
316
|
+
return -1;
|
|
317
|
+
}
|
|
318
|
+
return i;
|
|
319
|
+
}
|
|
320
|
+
function getErrorObject(code, message, lineNumber) {
|
|
321
|
+
return {
|
|
322
|
+
err: {
|
|
323
|
+
code,
|
|
324
|
+
msg: message,
|
|
325
|
+
line: lineNumber.line || lineNumber,
|
|
326
|
+
col: lineNumber.col
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
function validateAttrName(attrName) {
|
|
331
|
+
return isName(attrName);
|
|
332
|
+
}
|
|
333
|
+
function validateTagName(tagname) {
|
|
334
|
+
return isName(tagname);
|
|
335
|
+
}
|
|
336
|
+
function getLineNumberForPosition(xmlData, index) {
|
|
337
|
+
const lines = xmlData.substring(0, index).split(/\r?\n/);
|
|
338
|
+
return {
|
|
339
|
+
line: lines.length,
|
|
340
|
+
// column number is last line's length + 1, because column numbering starts at 1:
|
|
341
|
+
col: lines[lines.length - 1].length + 1
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
function getPositionFromMatch(match) {
|
|
345
|
+
return match.startIndex + match[1].length;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
// node_modules/.pnpm/@nodable+entities@3.0.0/node_modules/@nodable/entities/src/entities.js
|
|
349
|
+
var CURRENCY = {
|
|
350
|
+
cent: "\xA2",
|
|
351
|
+
pound: "\xA3",
|
|
352
|
+
curren: "\xA4",
|
|
353
|
+
yen: "\xA5",
|
|
354
|
+
euro: "\u20AC",
|
|
355
|
+
dollar: "$",
|
|
356
|
+
fnof: "\u0192",
|
|
357
|
+
inr: "\u20B9",
|
|
358
|
+
af: "\u060B",
|
|
359
|
+
birr: "\u1265\u122D",
|
|
360
|
+
peso: "\u20B1",
|
|
361
|
+
rub: "\u20BD",
|
|
362
|
+
won: "\u20A9",
|
|
363
|
+
yuan: "\xA5",
|
|
364
|
+
cedil: "\xB8"
|
|
365
|
+
};
|
|
366
|
+
var XML = {
|
|
367
|
+
amp: "&",
|
|
368
|
+
apos: "'",
|
|
369
|
+
gt: ">",
|
|
370
|
+
lt: "<",
|
|
371
|
+
quot: '"'
|
|
372
|
+
};
|
|
373
|
+
var COMMON_HTML = {
|
|
374
|
+
nbsp: "\xA0",
|
|
375
|
+
copy: "\xA9",
|
|
376
|
+
reg: "\xAE",
|
|
377
|
+
trade: "\u2122",
|
|
378
|
+
mdash: "\u2014",
|
|
379
|
+
ndash: "\u2013",
|
|
380
|
+
hellip: "\u2026",
|
|
381
|
+
laquo: "\xAB",
|
|
382
|
+
raquo: "\xBB",
|
|
383
|
+
lsquo: "\u2018",
|
|
384
|
+
rsquo: "\u2019",
|
|
385
|
+
ldquo: "\u201C",
|
|
386
|
+
rdquo: "\u201D",
|
|
387
|
+
bull: "\u2022",
|
|
388
|
+
para: "\xB6",
|
|
389
|
+
sect: "\xA7",
|
|
390
|
+
deg: "\xB0",
|
|
391
|
+
frac12: "\xBD",
|
|
392
|
+
frac14: "\xBC",
|
|
393
|
+
frac34: "\xBE"
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
// node_modules/.pnpm/@nodable+entities@3.0.0/node_modules/@nodable/entities/src/EntityDecoder.js
|
|
397
|
+
var ENTITY_ACTION = Object.freeze({
|
|
398
|
+
/** Resolve and expand the entity normally. */
|
|
399
|
+
ALLOW: "allow",
|
|
400
|
+
/** Silently skip this entity — it will not be registered. */
|
|
401
|
+
BLOCK: "block",
|
|
402
|
+
/** Throw an error, aborting entity registration entirely. */
|
|
403
|
+
THROW: "throw"
|
|
404
|
+
});
|
|
405
|
+
var SPECIAL_CHARS = new Set("!?\\\\/[]$%{}^&*()<>|+");
|
|
406
|
+
function validateEntityName(name) {
|
|
407
|
+
if (name[0] === "#") {
|
|
408
|
+
throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${name}"`);
|
|
409
|
+
}
|
|
410
|
+
for (const ch of name) {
|
|
411
|
+
if (SPECIAL_CHARS.has(ch)) {
|
|
412
|
+
throw new Error(`[EntityReplacer] Invalid character '${ch}' in entity name: "${name}"`);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
return name;
|
|
416
|
+
}
|
|
417
|
+
function mergeEntityMaps(...maps) {
|
|
418
|
+
const out = /* @__PURE__ */ Object.create(null);
|
|
419
|
+
for (const map of maps) {
|
|
420
|
+
if (!map) continue;
|
|
421
|
+
for (const key of Object.keys(map)) {
|
|
422
|
+
const raw = map[key];
|
|
423
|
+
if (typeof raw === "string") {
|
|
424
|
+
out[key] = raw;
|
|
425
|
+
} else if (raw && typeof raw === "object" && raw.val !== void 0) {
|
|
426
|
+
const val = raw.val;
|
|
427
|
+
if (typeof val === "string") {
|
|
428
|
+
out[key] = val;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
return out;
|
|
434
|
+
}
|
|
435
|
+
var LIMIT_TIER_EXTERNAL = "external";
|
|
436
|
+
var LIMIT_TIER_BASE = "base";
|
|
437
|
+
var LIMIT_TIER_ALL = "all";
|
|
438
|
+
function parseLimitTiers(raw) {
|
|
439
|
+
if (!raw || raw === LIMIT_TIER_EXTERNAL) return /* @__PURE__ */ new Set([LIMIT_TIER_EXTERNAL]);
|
|
440
|
+
if (raw === LIMIT_TIER_ALL) return /* @__PURE__ */ new Set([LIMIT_TIER_ALL]);
|
|
441
|
+
if (raw === LIMIT_TIER_BASE) return /* @__PURE__ */ new Set([LIMIT_TIER_BASE]);
|
|
442
|
+
if (Array.isArray(raw)) return new Set(raw);
|
|
443
|
+
return /* @__PURE__ */ new Set([LIMIT_TIER_EXTERNAL]);
|
|
444
|
+
}
|
|
445
|
+
var NCR_LEVEL = Object.freeze({ allow: 0, leave: 1, remove: 2, throw: 3 });
|
|
446
|
+
var XML10_ALLOWED_C0 = /* @__PURE__ */ new Set([9, 10, 13]);
|
|
447
|
+
function parseNCRConfig(ncr) {
|
|
448
|
+
if (!ncr) {
|
|
449
|
+
return { xmlVersion: 1, onLevel: NCR_LEVEL.allow, nullLevel: NCR_LEVEL.remove };
|
|
450
|
+
}
|
|
451
|
+
const xmlVersion = ncr.xmlVersion === 1.1 ? 1.1 : 1;
|
|
452
|
+
const onLevel = NCR_LEVEL[ncr.onNCR] ?? NCR_LEVEL.allow;
|
|
453
|
+
const nullLevel = NCR_LEVEL[ncr.nullNCR] ?? NCR_LEVEL.remove;
|
|
454
|
+
const clampedNull = Math.max(nullLevel, NCR_LEVEL.remove);
|
|
455
|
+
return { xmlVersion, onLevel, nullLevel: clampedNull };
|
|
456
|
+
}
|
|
457
|
+
var EntityDecoder = class {
|
|
458
|
+
/**
|
|
459
|
+
* @param {object} [options]
|
|
460
|
+
* @param {object|null} [options.namedEntities] — extra named entities merged into base map
|
|
461
|
+
* @param {object} [options.limit] — security limits
|
|
462
|
+
* @param {number} [options.limit.maxTotalExpansions=0] — 0 = unlimited
|
|
463
|
+
* @param {number} [options.limit.maxExpandedLength=0] — 0 = unlimited
|
|
464
|
+
* @param {'external'|'base'|'all'|string[]} [options.limit.applyLimitsTo='external']
|
|
465
|
+
* Which entity tiers count against the security limits:
|
|
466
|
+
* - 'external' (default) — only input/runtime + persistent external entities
|
|
467
|
+
* - 'base' — only DEFAULT_XML_ENTITIES + namedEntities
|
|
468
|
+
* - 'all' — every entity regardless of tier
|
|
469
|
+
* - string[] — explicit combination, e.g. ['external', 'base']
|
|
470
|
+
* @param {((resolved: string, original: string) => string)|null} [options.postCheck=null]
|
|
471
|
+
* @param {string[]} [options.remove=[]] — entity names (e.g. ['nbsp', '#13']) to delete (replace with empty string)
|
|
472
|
+
* @param {string[]} [options.leave=[]] — entity names to keep as literal (unchanged in output)
|
|
473
|
+
* @param {object} [options.ncr] — Numeric Character Reference controls
|
|
474
|
+
* @param {1.0|1.1} [options.ncr.xmlVersion=1.0]
|
|
475
|
+
* XML version governing which codepoint ranges are restricted:
|
|
476
|
+
* - 1.0 — C0 controls U+0001–U+001F (except U+0009/000A/000D) are prohibited
|
|
477
|
+
* - 1.1 — C0 controls are allowed when written as NCRs; C1 (U+007F–U+009F) decoded as-is
|
|
478
|
+
* @param {'allow'|'leave'|'remove'|'throw'} [options.ncr.onNCR='allow']
|
|
479
|
+
* Base action for numeric references. Severity order: allow < leave < remove < throw.
|
|
480
|
+
* For codepoint ranges that carry a minimum level (surrogates → remove, XML 1.0 C0 → remove),
|
|
481
|
+
* the effective action is max(onNCR, rangeMinimum).
|
|
482
|
+
* @param {'remove'|'throw'} [options.ncr.nullNCR='remove']
|
|
483
|
+
* Action for U+0000 (null). 'allow' and 'leave' are clamped to 'remove' since null is never safe.
|
|
484
|
+
* @param {((name: string, value: string) => 'allow'|'block'|'throw')|null} [options.onExternalEntity=null]
|
|
485
|
+
* Hook called when an external entity is registered via `setExternalEntities()` or
|
|
486
|
+
* `addExternalEntity()`. Return `ENTITY_ACTION.ALLOW` to accept the entity,
|
|
487
|
+
* `ENTITY_ACTION.BLOCK` to silently skip it, or `ENTITY_ACTION.THROW` to abort with an error.
|
|
488
|
+
* @param {((name: string, value: string) => 'allow'|'block'|'throw')|null} [options.onInputEntity=null]
|
|
489
|
+
* Hook called when an input entity is registered via `addInputEntities()`. Return
|
|
490
|
+
* `ENTITY_ACTION.ALLOW` to accept, `ENTITY_ACTION.BLOCK` to silently skip, or
|
|
491
|
+
* `ENTITY_ACTION.THROW` to abort with an error.
|
|
492
|
+
*/
|
|
493
|
+
constructor(options = {}) {
|
|
494
|
+
this._limit = options.limit || {};
|
|
495
|
+
this._maxTotalExpansions = this._limit.maxTotalExpansions || 0;
|
|
496
|
+
this._maxExpandedLength = this._limit.maxExpandedLength || 0;
|
|
497
|
+
this._postCheck = typeof options.postCheck === "function" ? options.postCheck : (r) => r;
|
|
498
|
+
this._limitTiers = parseLimitTiers(this._limit.applyLimitsTo ?? LIMIT_TIER_EXTERNAL);
|
|
499
|
+
this._numericAllowed = options.numericAllowed ?? true;
|
|
500
|
+
this._baseMap = mergeEntityMaps(XML, options.namedEntities || null);
|
|
501
|
+
this._externalMap = /* @__PURE__ */ Object.create(null);
|
|
502
|
+
this._inputMap = /* @__PURE__ */ Object.create(null);
|
|
503
|
+
this._totalExpansions = 0;
|
|
504
|
+
this._expandedLength = 0;
|
|
505
|
+
this._removeSet = new Set(options.remove && Array.isArray(options.remove) ? options.remove : []);
|
|
506
|
+
this._leaveSet = new Set(options.leave && Array.isArray(options.leave) ? options.leave : []);
|
|
507
|
+
const ncrCfg = parseNCRConfig(options.ncr);
|
|
508
|
+
this._ncrXmlVersion = ncrCfg.xmlVersion;
|
|
509
|
+
this._ncrOnLevel = ncrCfg.onLevel;
|
|
510
|
+
this._ncrNullLevel = ncrCfg.nullLevel;
|
|
511
|
+
this._onExternalEntity = typeof options.onExternalEntity === "function" ? options.onExternalEntity : null;
|
|
512
|
+
this._onInputEntity = typeof options.onInputEntity === "function" ? options.onInputEntity : null;
|
|
513
|
+
}
|
|
514
|
+
// -------------------------------------------------------------------------
|
|
515
|
+
// Private: registration hook dispatch
|
|
516
|
+
// -------------------------------------------------------------------------
|
|
517
|
+
/**
|
|
518
|
+
* Invoke a registration hook for a single entity name/value pair.
|
|
519
|
+
* Returns true when the entity should be accepted, false when it should be
|
|
520
|
+
* silently skipped (BLOCK), and throws when the hook returns THROW.
|
|
521
|
+
*
|
|
522
|
+
* @param {((name: string, value: string) => 'allow'|'block'|'throw')|null} hook
|
|
523
|
+
* @param {string} name
|
|
524
|
+
* @param {string} value
|
|
525
|
+
* @param {string} context — used in error messages ('external' | 'input')
|
|
526
|
+
* @returns {boolean} true = accept, false = skip
|
|
527
|
+
*/
|
|
528
|
+
_applyRegistrationHook(hook, name, value, context) {
|
|
529
|
+
if (!hook) return true;
|
|
530
|
+
const action = hook(name, value);
|
|
531
|
+
if (action === ENTITY_ACTION.BLOCK) return false;
|
|
532
|
+
if (action === ENTITY_ACTION.THROW) {
|
|
533
|
+
throw new Error(
|
|
534
|
+
`[EntityDecoder] Registration of ${context} entity "&${name};" was rejected by hook`
|
|
535
|
+
);
|
|
536
|
+
}
|
|
537
|
+
return true;
|
|
538
|
+
}
|
|
539
|
+
// -------------------------------------------------------------------------
|
|
540
|
+
// Persistent external entity registration
|
|
541
|
+
// -------------------------------------------------------------------------
|
|
542
|
+
/**
|
|
543
|
+
* Replace the full set of persistent external entities.
|
|
544
|
+
* All keys are validated — throws on invalid characters.
|
|
545
|
+
* If `onExternalEntity` is set, it is called once per entry; entries that
|
|
546
|
+
* return `ENTITY_ACTION.BLOCK` are silently omitted, `ENTITY_ACTION.THROW`
|
|
547
|
+
* aborts the whole call.
|
|
548
|
+
* @param {Record<string, string | { regex?: RegExp, val: string }>} map
|
|
549
|
+
*/
|
|
550
|
+
setExternalEntities(map) {
|
|
551
|
+
if (map) {
|
|
552
|
+
for (const key of Object.keys(map)) {
|
|
553
|
+
validateEntityName(key);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
if (!this._onExternalEntity) {
|
|
557
|
+
this._externalMap = mergeEntityMaps(map);
|
|
558
|
+
return;
|
|
559
|
+
}
|
|
560
|
+
const flat = mergeEntityMaps(map);
|
|
561
|
+
const filtered = /* @__PURE__ */ Object.create(null);
|
|
562
|
+
for (const [name, value] of Object.entries(flat)) {
|
|
563
|
+
if (this._applyRegistrationHook(this._onExternalEntity, name, value, "external")) {
|
|
564
|
+
filtered[name] = value;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
this._externalMap = filtered;
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* Add a single persistent external entity.
|
|
571
|
+
* If `onExternalEntity` is set it is called before the entity is stored;
|
|
572
|
+
* `ENTITY_ACTION.BLOCK` silently skips storage, `ENTITY_ACTION.THROW` raises.
|
|
573
|
+
* @param {string} key
|
|
574
|
+
* @param {string} value
|
|
575
|
+
*/
|
|
576
|
+
addExternalEntity(key, value) {
|
|
577
|
+
validateEntityName(key);
|
|
578
|
+
if (typeof value === "string" && value.indexOf("&") === -1) {
|
|
579
|
+
if (this._applyRegistrationHook(this._onExternalEntity, key, value, "external")) {
|
|
580
|
+
this._externalMap[key] = value;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
// -------------------------------------------------------------------------
|
|
585
|
+
// Input / runtime entity registration (per document)
|
|
586
|
+
// -------------------------------------------------------------------------
|
|
587
|
+
/**
|
|
588
|
+
* Inject DOCTYPE entities for the current document.
|
|
589
|
+
* Also resets per-document expansion counters.
|
|
590
|
+
* If `onInputEntity` is set it is called once per entry; entries returning
|
|
591
|
+
* `ENTITY_ACTION.BLOCK` are silently omitted, `ENTITY_ACTION.THROW` aborts.
|
|
592
|
+
* @param {Record<string, string | { regx?: RegExp, regex?: RegExp, val: string }>} map
|
|
593
|
+
*/
|
|
594
|
+
addInputEntities(map) {
|
|
595
|
+
this._totalExpansions = 0;
|
|
596
|
+
this._expandedLength = 0;
|
|
597
|
+
if (!this._onInputEntity) {
|
|
598
|
+
this._inputMap = mergeEntityMaps(map);
|
|
599
|
+
return;
|
|
600
|
+
}
|
|
601
|
+
const flat = mergeEntityMaps(map);
|
|
602
|
+
const filtered = /* @__PURE__ */ Object.create(null);
|
|
603
|
+
for (const [name, value] of Object.entries(flat)) {
|
|
604
|
+
if (this._applyRegistrationHook(this._onInputEntity, name, value, "input")) {
|
|
605
|
+
filtered[name] = value;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
this._inputMap = filtered;
|
|
609
|
+
}
|
|
610
|
+
// -------------------------------------------------------------------------
|
|
611
|
+
// Per-document reset
|
|
612
|
+
// -------------------------------------------------------------------------
|
|
613
|
+
/**
|
|
614
|
+
* Wipe input/runtime entities and reset counters.
|
|
615
|
+
* Call this before processing each new document.
|
|
616
|
+
* @returns {this}
|
|
617
|
+
*/
|
|
618
|
+
reset() {
|
|
619
|
+
this._inputMap = /* @__PURE__ */ Object.create(null);
|
|
620
|
+
this._totalExpansions = 0;
|
|
621
|
+
this._expandedLength = 0;
|
|
622
|
+
return this;
|
|
623
|
+
}
|
|
624
|
+
// -------------------------------------------------------------------------
|
|
625
|
+
// XML version (can be set after construction, e.g. once parser reads <?xml?>)
|
|
626
|
+
// -------------------------------------------------------------------------
|
|
627
|
+
/**
|
|
628
|
+
* Update the XML version used for NCR classification.
|
|
629
|
+
* Call this as soon as the document's `<?xml version="...">` declaration is parsed.
|
|
630
|
+
* @param {1.0|1.1|number} version
|
|
631
|
+
*/
|
|
632
|
+
setXmlVersion(version) {
|
|
633
|
+
this._ncrXmlVersion = version === 1.1 ? 1.1 : 1;
|
|
634
|
+
}
|
|
635
|
+
// -------------------------------------------------------------------------
|
|
636
|
+
// Primary API
|
|
637
|
+
// -------------------------------------------------------------------------
|
|
638
|
+
/**
|
|
639
|
+
* Replace all entity references in `str` in a single pass.
|
|
640
|
+
*
|
|
641
|
+
* @param {string} str
|
|
642
|
+
* @returns {string}
|
|
643
|
+
*/
|
|
644
|
+
decode(str) {
|
|
645
|
+
if (typeof str !== "string" || str.length === 0) return str;
|
|
646
|
+
if (str.indexOf("&") === -1) return str;
|
|
647
|
+
const original = str;
|
|
648
|
+
const chunks = [];
|
|
649
|
+
const len = str.length;
|
|
650
|
+
let last = 0;
|
|
651
|
+
let i = 0;
|
|
652
|
+
const limitExpansions = this._maxTotalExpansions > 0;
|
|
653
|
+
const limitLength = this._maxExpandedLength > 0;
|
|
654
|
+
const checkLimits = limitExpansions || limitLength;
|
|
655
|
+
while (i < len) {
|
|
656
|
+
if (str.charCodeAt(i) !== 38) {
|
|
657
|
+
i++;
|
|
658
|
+
continue;
|
|
659
|
+
}
|
|
660
|
+
let j = i + 1;
|
|
661
|
+
while (j < len && str.charCodeAt(j) !== 59 && j - i <= 32) j++;
|
|
662
|
+
if (j >= len || str.charCodeAt(j) !== 59) {
|
|
663
|
+
i++;
|
|
664
|
+
continue;
|
|
665
|
+
}
|
|
666
|
+
const token = str.slice(i + 1, j);
|
|
667
|
+
if (token.length === 0) {
|
|
668
|
+
i++;
|
|
669
|
+
continue;
|
|
670
|
+
}
|
|
671
|
+
let replacement;
|
|
672
|
+
let tier;
|
|
673
|
+
if (this._removeSet.has(token)) {
|
|
674
|
+
replacement = "";
|
|
675
|
+
if (tier === void 0) {
|
|
676
|
+
tier = LIMIT_TIER_EXTERNAL;
|
|
677
|
+
}
|
|
678
|
+
} else if (this._leaveSet.has(token)) {
|
|
679
|
+
i++;
|
|
680
|
+
continue;
|
|
681
|
+
} else if (token.charCodeAt(0) === 35) {
|
|
682
|
+
const ncrResult = this._resolveNCR(token);
|
|
683
|
+
if (ncrResult === void 0) {
|
|
684
|
+
i++;
|
|
685
|
+
continue;
|
|
686
|
+
}
|
|
687
|
+
replacement = ncrResult;
|
|
688
|
+
tier = LIMIT_TIER_BASE;
|
|
689
|
+
} else {
|
|
690
|
+
const resolved = this._resolveName(token);
|
|
691
|
+
replacement = resolved?.value;
|
|
692
|
+
tier = resolved?.tier;
|
|
693
|
+
}
|
|
694
|
+
if (replacement === void 0) {
|
|
695
|
+
i++;
|
|
696
|
+
continue;
|
|
697
|
+
}
|
|
698
|
+
if (i > last) chunks.push(str.slice(last, i));
|
|
699
|
+
chunks.push(replacement);
|
|
700
|
+
last = j + 1;
|
|
701
|
+
i = last;
|
|
702
|
+
if (checkLimits && this._tierCounts(tier)) {
|
|
703
|
+
if (limitExpansions) {
|
|
704
|
+
this._totalExpansions++;
|
|
705
|
+
if (this._totalExpansions > this._maxTotalExpansions) {
|
|
706
|
+
throw new Error(
|
|
707
|
+
`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`
|
|
708
|
+
);
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
if (limitLength) {
|
|
712
|
+
const delta = replacement.length - (token.length + 2);
|
|
713
|
+
if (delta > 0) {
|
|
714
|
+
this._expandedLength += delta;
|
|
715
|
+
if (this._expandedLength > this._maxExpandedLength) {
|
|
716
|
+
throw new Error(
|
|
717
|
+
`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`
|
|
718
|
+
);
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
if (last < len) chunks.push(str.slice(last));
|
|
725
|
+
const result = chunks.length === 0 ? str : chunks.join("");
|
|
726
|
+
return this._postCheck(result, original);
|
|
727
|
+
}
|
|
728
|
+
// -------------------------------------------------------------------------
|
|
729
|
+
// Private: limit tier check
|
|
730
|
+
// -------------------------------------------------------------------------
|
|
731
|
+
/**
|
|
732
|
+
* Returns true if a resolved entity of the given tier should count
|
|
733
|
+
* against the expansion/length limits.
|
|
734
|
+
* @param {string} tier — LIMIT_TIER_EXTERNAL | LIMIT_TIER_BASE
|
|
735
|
+
* @returns {boolean}
|
|
736
|
+
*/
|
|
737
|
+
_tierCounts(tier) {
|
|
738
|
+
if (this._limitTiers.has(LIMIT_TIER_ALL)) return true;
|
|
739
|
+
return this._limitTiers.has(tier);
|
|
740
|
+
}
|
|
741
|
+
// -------------------------------------------------------------------------
|
|
742
|
+
// Private: entity resolution
|
|
743
|
+
// -------------------------------------------------------------------------
|
|
744
|
+
/**
|
|
745
|
+
* Resolve a named entity token (without & and ;).
|
|
746
|
+
* Priority: inputMap > externalMap > baseMap
|
|
747
|
+
* Returns the resolved value tagged with its limit tier.
|
|
748
|
+
*
|
|
749
|
+
* @param {string} name
|
|
750
|
+
* @returns {{ value: string, tier: string }|undefined}
|
|
751
|
+
*/
|
|
752
|
+
_resolveName(name) {
|
|
753
|
+
if (name in this._inputMap) return { value: this._inputMap[name], tier: LIMIT_TIER_EXTERNAL };
|
|
754
|
+
if (name in this._externalMap) return { value: this._externalMap[name], tier: LIMIT_TIER_EXTERNAL };
|
|
755
|
+
if (name in this._baseMap) return { value: this._baseMap[name], tier: LIMIT_TIER_BASE };
|
|
756
|
+
return void 0;
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* Classify a codepoint and return the minimum action level that must be applied.
|
|
760
|
+
* Returns -1 when no minimum is imposed (normal allow path).
|
|
761
|
+
*
|
|
762
|
+
* Ranges checked (in priority order):
|
|
763
|
+
* 1. U+0000 — null, governed by nullNCR (always ≥ remove)
|
|
764
|
+
* 2. U+D800–U+DFFF — surrogates, always prohibited (min: remove)
|
|
765
|
+
* 3. U+0001–U+001F \ {0x09,0x0A,0x0D} — XML 1.0 restricted C0 (min: remove)
|
|
766
|
+
* (skipped in XML 1.1 — C0 controls are allowed when written as NCRs)
|
|
767
|
+
*
|
|
768
|
+
* @param {number} cp — codepoint
|
|
769
|
+
* @returns {number} — minimum NCR_LEVEL value, or -1 for no restriction
|
|
770
|
+
*/
|
|
771
|
+
_classifyNCR(cp) {
|
|
772
|
+
if (cp === 0) return this._ncrNullLevel;
|
|
773
|
+
if (cp >= 55296 && cp <= 57343) return NCR_LEVEL.remove;
|
|
774
|
+
if (this._ncrXmlVersion === 1) {
|
|
775
|
+
if (cp >= 1 && cp <= 31 && !XML10_ALLOWED_C0.has(cp)) return NCR_LEVEL.remove;
|
|
776
|
+
}
|
|
777
|
+
return -1;
|
|
778
|
+
}
|
|
779
|
+
/**
|
|
780
|
+
* Execute a resolved NCR action.
|
|
781
|
+
*
|
|
782
|
+
* @param {number} action — NCR_LEVEL value
|
|
783
|
+
* @param {string} token — raw token (e.g. '#38') for error messages
|
|
784
|
+
* @param {number} cp — codepoint, used only for error messages
|
|
785
|
+
* @returns {string|undefined}
|
|
786
|
+
* - decoded character string → 'allow'
|
|
787
|
+
* - '' → 'remove'
|
|
788
|
+
* - undefined → 'leave' (caller must skip past '&' only)
|
|
789
|
+
* - throws Error → 'throw'
|
|
790
|
+
*/
|
|
791
|
+
_applyNCRAction(action, token, cp) {
|
|
792
|
+
switch (action) {
|
|
793
|
+
case NCR_LEVEL.allow:
|
|
794
|
+
return String.fromCodePoint(cp);
|
|
795
|
+
case NCR_LEVEL.remove:
|
|
796
|
+
return "";
|
|
797
|
+
case NCR_LEVEL.leave:
|
|
798
|
+
return void 0;
|
|
799
|
+
// signal: keep literal
|
|
800
|
+
case NCR_LEVEL.throw:
|
|
801
|
+
throw new Error(
|
|
802
|
+
`[EntityDecoder] Prohibited numeric character reference &${token}; (U+${cp.toString(16).toUpperCase().padStart(4, "0")})`
|
|
803
|
+
);
|
|
804
|
+
default:
|
|
805
|
+
return String.fromCodePoint(cp);
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* Full NCR resolution pipeline for a numeric token.
|
|
810
|
+
*
|
|
811
|
+
* Steps:
|
|
812
|
+
* 1. Parse the codepoint (decimal or hex).
|
|
813
|
+
* 2. Validate the raw codepoint range (NaN, <0, >0x10FFFF).
|
|
814
|
+
* 3. If numericAllowed is false and no minimum restriction applies → leave as-is.
|
|
815
|
+
* 4. Classify the codepoint to find the minimum required action level.
|
|
816
|
+
* 5. Resolve effective action = max(onNCR, minimum).
|
|
817
|
+
* 6. Apply and return.
|
|
818
|
+
*
|
|
819
|
+
* @param {string} token — e.g. '#38', '#x26', '#X26'
|
|
820
|
+
* @returns {string|undefined}
|
|
821
|
+
* - string (incl. '') — replacement ('' = remove)
|
|
822
|
+
* - undefined — leave original &token; as-is
|
|
823
|
+
*/
|
|
824
|
+
_resolveNCR(token) {
|
|
825
|
+
const second = token.charCodeAt(1);
|
|
826
|
+
let cp;
|
|
827
|
+
if (second === 120 || second === 88) {
|
|
828
|
+
cp = parseInt(token.slice(2), 16);
|
|
829
|
+
} else {
|
|
830
|
+
cp = parseInt(token.slice(1), 10);
|
|
831
|
+
}
|
|
832
|
+
if (Number.isNaN(cp) || cp < 0 || cp > 1114111) return void 0;
|
|
833
|
+
const minimum = this._classifyNCR(cp);
|
|
834
|
+
if (!this._numericAllowed && minimum < NCR_LEVEL.remove) return void 0;
|
|
835
|
+
const effective = minimum === -1 ? this._ncrOnLevel : Math.max(this._ncrOnLevel, minimum);
|
|
836
|
+
return this._applyNCRAction(effective, token, cp);
|
|
837
|
+
}
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
// node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
|
|
841
|
+
var defaultOnDangerousProperty = (name) => {
|
|
842
|
+
if (DANGEROUS_PROPERTY_NAMES.includes(name)) {
|
|
843
|
+
return "__" + name;
|
|
844
|
+
}
|
|
845
|
+
return name;
|
|
846
|
+
};
|
|
847
|
+
var defaultOptions2 = {
|
|
848
|
+
preserveOrder: false,
|
|
849
|
+
attributeNamePrefix: "@_",
|
|
850
|
+
attributesGroupName: false,
|
|
851
|
+
textNodeName: "#text",
|
|
852
|
+
ignoreAttributes: true,
|
|
853
|
+
removeNSPrefix: false,
|
|
854
|
+
// remove NS from tag name or attribute name if true
|
|
855
|
+
allowBooleanAttributes: false,
|
|
856
|
+
//a tag can have attributes without any value
|
|
857
|
+
//ignoreRootElement : false,
|
|
858
|
+
parseTagValue: true,
|
|
859
|
+
parseAttributeValue: false,
|
|
860
|
+
trimValues: true,
|
|
861
|
+
//Trim string values of tag and attributes
|
|
862
|
+
cdataPropName: false,
|
|
863
|
+
numberParseOptions: {
|
|
864
|
+
hex: true,
|
|
865
|
+
leadingZeros: true,
|
|
866
|
+
eNotation: true,
|
|
867
|
+
unicode: false
|
|
868
|
+
},
|
|
869
|
+
tagValueProcessor: function(tagName, val) {
|
|
870
|
+
return val;
|
|
871
|
+
},
|
|
872
|
+
attributeValueProcessor: function(attrName, val) {
|
|
873
|
+
return val;
|
|
874
|
+
},
|
|
875
|
+
stopNodes: [],
|
|
876
|
+
//nested tags will not be parsed even for errors
|
|
877
|
+
alwaysCreateTextNode: false,
|
|
878
|
+
isArray: () => false,
|
|
879
|
+
commentPropName: false,
|
|
880
|
+
unpairedTags: [],
|
|
881
|
+
processEntities: true,
|
|
882
|
+
htmlEntities: false,
|
|
883
|
+
entityDecoder: null,
|
|
884
|
+
ignoreDeclaration: false,
|
|
885
|
+
ignorePiTags: false,
|
|
886
|
+
transformTagName: false,
|
|
887
|
+
transformAttributeName: false,
|
|
888
|
+
updateTag: function(tagName, jPath, attrs) {
|
|
889
|
+
return tagName;
|
|
890
|
+
},
|
|
891
|
+
// skipEmptyListItem: false
|
|
892
|
+
captureMetaData: false,
|
|
893
|
+
maxNestedTags: 100,
|
|
894
|
+
strictReservedNames: true,
|
|
895
|
+
jPath: true,
|
|
896
|
+
// if true, pass jPath string to callbacks; if false, pass matcher instance
|
|
897
|
+
onDangerousProperty: defaultOnDangerousProperty
|
|
898
|
+
};
|
|
899
|
+
function validatePropertyName(propertyName, optionName) {
|
|
900
|
+
if (typeof propertyName !== "string") {
|
|
901
|
+
return;
|
|
902
|
+
}
|
|
903
|
+
const normalized = propertyName.toLowerCase();
|
|
904
|
+
if (DANGEROUS_PROPERTY_NAMES.some((dangerous) => normalized === dangerous.toLowerCase())) {
|
|
905
|
+
throw new Error(
|
|
906
|
+
`[SECURITY] Invalid ${optionName}: "${propertyName}" is a reserved JavaScript keyword that could cause prototype pollution`
|
|
907
|
+
);
|
|
908
|
+
}
|
|
909
|
+
if (criticalProperties.some((dangerous) => normalized === dangerous.toLowerCase())) {
|
|
910
|
+
throw new Error(
|
|
911
|
+
`[SECURITY] Invalid ${optionName}: "${propertyName}" is a reserved JavaScript keyword that could cause prototype pollution`
|
|
912
|
+
);
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
function normalizeProcessEntities(value, htmlEntities) {
|
|
916
|
+
if (typeof value === "boolean") {
|
|
917
|
+
return {
|
|
918
|
+
enabled: value,
|
|
919
|
+
// true or false
|
|
920
|
+
maxEntitySize: 1e4,
|
|
921
|
+
maxExpansionDepth: 1e4,
|
|
922
|
+
maxTotalExpansions: Infinity,
|
|
923
|
+
maxExpandedLength: 1e5,
|
|
924
|
+
maxEntityCount: 1e3,
|
|
925
|
+
allowedTags: null,
|
|
926
|
+
tagFilter: null,
|
|
927
|
+
appliesTo: "all"
|
|
928
|
+
};
|
|
929
|
+
}
|
|
930
|
+
if (typeof value === "object" && value !== null) {
|
|
931
|
+
return {
|
|
932
|
+
enabled: value.enabled !== false,
|
|
933
|
+
maxEntitySize: Math.max(1, value.maxEntitySize ?? 1e4),
|
|
934
|
+
maxExpansionDepth: Math.max(1, value.maxExpansionDepth ?? 1e4),
|
|
935
|
+
maxTotalExpansions: Math.max(1, value.maxTotalExpansions ?? Infinity),
|
|
936
|
+
maxExpandedLength: Math.max(1, value.maxExpandedLength ?? 1e5),
|
|
937
|
+
maxEntityCount: Math.max(1, value.maxEntityCount ?? 1e3),
|
|
938
|
+
allowedTags: value.allowedTags ?? null,
|
|
939
|
+
tagFilter: value.tagFilter ?? null,
|
|
940
|
+
appliesTo: value.appliesTo ?? "all"
|
|
941
|
+
};
|
|
942
|
+
}
|
|
943
|
+
return normalizeProcessEntities(true);
|
|
944
|
+
}
|
|
945
|
+
var buildOptions = function(options) {
|
|
946
|
+
const built = Object.assign({}, defaultOptions2, options);
|
|
947
|
+
const propertyNameOptions = [
|
|
948
|
+
{ value: built.attributeNamePrefix, name: "attributeNamePrefix" },
|
|
949
|
+
{ value: built.attributesGroupName, name: "attributesGroupName" },
|
|
950
|
+
{ value: built.textNodeName, name: "textNodeName" },
|
|
951
|
+
{ value: built.cdataPropName, name: "cdataPropName" },
|
|
952
|
+
{ value: built.commentPropName, name: "commentPropName" }
|
|
953
|
+
];
|
|
954
|
+
for (const { value, name } of propertyNameOptions) {
|
|
955
|
+
if (value) {
|
|
956
|
+
validatePropertyName(value, name);
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
if (built.onDangerousProperty === null) {
|
|
960
|
+
built.onDangerousProperty = defaultOnDangerousProperty;
|
|
961
|
+
}
|
|
962
|
+
built.processEntities = normalizeProcessEntities(built.processEntities, built.htmlEntities);
|
|
963
|
+
built.unpairedTagsSet = new Set(built.unpairedTags);
|
|
964
|
+
if (built.stopNodes && Array.isArray(built.stopNodes)) {
|
|
965
|
+
built.stopNodes = built.stopNodes.map((node) => {
|
|
966
|
+
if (typeof node === "string" && node.startsWith("*.")) {
|
|
967
|
+
return ".." + node.substring(2);
|
|
968
|
+
}
|
|
969
|
+
return node;
|
|
970
|
+
});
|
|
971
|
+
}
|
|
972
|
+
return built;
|
|
973
|
+
};
|
|
974
|
+
|
|
975
|
+
// node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js
|
|
976
|
+
var METADATA_SYMBOL;
|
|
977
|
+
if (typeof Symbol !== "function") {
|
|
978
|
+
METADATA_SYMBOL = "@@xmlMetadata";
|
|
979
|
+
} else {
|
|
980
|
+
METADATA_SYMBOL = /* @__PURE__ */ Symbol("XML Node Metadata");
|
|
981
|
+
}
|
|
982
|
+
var XmlNode = class {
|
|
983
|
+
constructor(tagname) {
|
|
984
|
+
this.tagname = tagname;
|
|
985
|
+
this.child = [];
|
|
986
|
+
this[":@"] = /* @__PURE__ */ Object.create(null);
|
|
987
|
+
}
|
|
988
|
+
add(key, val) {
|
|
989
|
+
if (key === "__proto__") key = "#__proto__";
|
|
990
|
+
this.child.push({ [key]: val });
|
|
991
|
+
}
|
|
992
|
+
addChild(node, startIndex) {
|
|
993
|
+
if (node.tagname === "__proto__") node.tagname = "#__proto__";
|
|
994
|
+
if (node[":@"] && Object.keys(node[":@"]).length > 0) {
|
|
995
|
+
this.child.push({ [node.tagname]: node.child, [":@"]: node[":@"] });
|
|
996
|
+
} else {
|
|
997
|
+
this.child.push({ [node.tagname]: node.child });
|
|
998
|
+
}
|
|
999
|
+
this.addStartIndex(startIndex);
|
|
1000
|
+
}
|
|
1001
|
+
addStartIndex(startIndex) {
|
|
1002
|
+
if (startIndex !== void 0) {
|
|
1003
|
+
this.child[this.child.length - 1][METADATA_SYMBOL] = { startIndex };
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
addEndIndex(endIndex) {
|
|
1007
|
+
const lastChild = this.child[this.child.length - 1];
|
|
1008
|
+
if (lastChild !== void 0 && lastChild[METADATA_SYMBOL] !== void 0 && lastChild[METADATA_SYMBOL].endIndex === void 0) {
|
|
1009
|
+
lastChild[METADATA_SYMBOL].endIndex = endIndex;
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
/** symbol used for metadata */
|
|
1013
|
+
static getMetaDataSymbol() {
|
|
1014
|
+
return METADATA_SYMBOL;
|
|
1015
|
+
}
|
|
1016
|
+
};
|
|
1017
|
+
|
|
1018
|
+
// node_modules/.pnpm/xml-naming@0.3.0/node_modules/xml-naming/src/index.js
|
|
1019
|
+
var nameStartChar10 = ":A-Za-z_\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u0486\u0488-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD";
|
|
1020
|
+
var nameChar10 = nameStartChar10 + "\\-\\.\\d\xB7\u0300-\u036F\u203F-\u2040";
|
|
1021
|
+
var nameStartChar11 = ":A-Za-z_\xC0-\u02FF\u0370-\u037D\u037F-\u0486\u0488-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}";
|
|
1022
|
+
var nameChar11 = nameStartChar11 + "\\-\\.\\d\xB7\u0300-\u036F\u0487\u203F-\u2040";
|
|
1023
|
+
var buildRegexes = (startChar, char, flags = "") => {
|
|
1024
|
+
const ncStart = startChar.replace(":", "");
|
|
1025
|
+
const ncChar = char.replace(":", "");
|
|
1026
|
+
const ncNamePat = `[${ncStart}][${ncChar}]*`;
|
|
1027
|
+
return {
|
|
1028
|
+
name: new RegExp(`^[${startChar}][${char}]*$`, flags),
|
|
1029
|
+
ncName: new RegExp(`^${ncNamePat}$`, flags),
|
|
1030
|
+
qName: new RegExp(`^${ncNamePat}(?::${ncNamePat})?$`, flags),
|
|
1031
|
+
nmToken: new RegExp(`^[${char}]+$`, flags),
|
|
1032
|
+
nmTokens: new RegExp(`^[${char}]+(?:\\s+[${char}]+)*$`, flags)
|
|
1033
|
+
};
|
|
1034
|
+
};
|
|
1035
|
+
var regexes10 = buildRegexes(nameStartChar10, nameChar10);
|
|
1036
|
+
var regexes11 = buildRegexes(nameStartChar11, nameChar11, "u");
|
|
1037
|
+
var nameStartCharAscii = ":A-Za-z_";
|
|
1038
|
+
var nameCharAscii = nameStartCharAscii + "\\-\\.\\d";
|
|
1039
|
+
var regexesAscii = buildRegexes(nameStartCharAscii, nameCharAscii);
|
|
1040
|
+
var getRegexes = (xmlVersion = "1.0", asciiOnly = false) => {
|
|
1041
|
+
if (asciiOnly) return regexesAscii;
|
|
1042
|
+
return xmlVersion === "1.1" ? regexes11 : regexes10;
|
|
1043
|
+
};
|
|
1044
|
+
var qName = (str, { xmlVersion = "1.0", asciiOnly = false } = {}) => getRegexes(xmlVersion, asciiOnly).qName.test(str);
|
|
1045
|
+
|
|
1046
|
+
// node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
|
|
1047
|
+
var DocTypeReader = class {
|
|
1048
|
+
constructor(options, xmlVersion) {
|
|
1049
|
+
this.suppressValidationErr = !options;
|
|
1050
|
+
this.options = options;
|
|
1051
|
+
this.xmlVersion = xmlVersion || 1;
|
|
1052
|
+
}
|
|
1053
|
+
setXmlVersion(xmlVersion = 1) {
|
|
1054
|
+
this.xmlVersion = xmlVersion;
|
|
1055
|
+
}
|
|
1056
|
+
readDocType(xmlData, i) {
|
|
1057
|
+
const entities = /* @__PURE__ */ Object.create(null);
|
|
1058
|
+
let entityCount = 0;
|
|
1059
|
+
if (xmlData[i + 3] === "O" && xmlData[i + 4] === "C" && xmlData[i + 5] === "T" && xmlData[i + 6] === "Y" && xmlData[i + 7] === "P" && xmlData[i + 8] === "E") {
|
|
1060
|
+
i = i + 9;
|
|
1061
|
+
let angleBracketsCount = 1;
|
|
1062
|
+
let hasBody = false, comment = false;
|
|
1063
|
+
let quoteChar = null;
|
|
1064
|
+
let exp = "";
|
|
1065
|
+
for (; i < xmlData.length; i++) {
|
|
1066
|
+
if (quoteChar !== null) {
|
|
1067
|
+
if (xmlData[i] === quoteChar) quoteChar = null;
|
|
1068
|
+
exp += xmlData[i];
|
|
1069
|
+
continue;
|
|
1070
|
+
}
|
|
1071
|
+
if (!hasBody && !comment && (xmlData[i] === '"' || xmlData[i] === "'")) {
|
|
1072
|
+
quoteChar = xmlData[i];
|
|
1073
|
+
exp += xmlData[i];
|
|
1074
|
+
continue;
|
|
1075
|
+
}
|
|
1076
|
+
if (xmlData[i] === "<" && !comment) {
|
|
1077
|
+
if (hasBody && hasSeq(xmlData, "!ENTITY", i)) {
|
|
1078
|
+
i += 7;
|
|
1079
|
+
let entityName, val;
|
|
1080
|
+
[entityName, val, i] = this.readEntityExp(xmlData, i + 1, this.suppressValidationErr);
|
|
1081
|
+
if (val.indexOf("&") === -1) {
|
|
1082
|
+
if (this.options.enabled !== false && this.options.maxEntityCount != null && entityCount >= this.options.maxEntityCount) {
|
|
1083
|
+
throw new Error(
|
|
1084
|
+
`Entity count (${entityCount + 1}) exceeds maximum allowed (${this.options.maxEntityCount})`
|
|
1085
|
+
);
|
|
1086
|
+
}
|
|
1087
|
+
entities[entityName] = val;
|
|
1088
|
+
entityCount++;
|
|
1089
|
+
}
|
|
1090
|
+
} else if (hasBody && hasSeq(xmlData, "!ELEMENT", i)) {
|
|
1091
|
+
i += 8;
|
|
1092
|
+
const { index } = this.readElementExp(xmlData, i + 1);
|
|
1093
|
+
i = index;
|
|
1094
|
+
} else if (hasBody && hasSeq(xmlData, "!ATTLIST", i)) {
|
|
1095
|
+
i += 8;
|
|
1096
|
+
} else if (hasBody && hasSeq(xmlData, "!NOTATION", i)) {
|
|
1097
|
+
i += 9;
|
|
1098
|
+
const { index } = this.readNotationExp(xmlData, i + 1, this.suppressValidationErr);
|
|
1099
|
+
i = index;
|
|
1100
|
+
} else if (hasSeq(xmlData, "!--", i)) comment = true;
|
|
1101
|
+
else throw new Error(`Invalid DOCTYPE`);
|
|
1102
|
+
angleBracketsCount++;
|
|
1103
|
+
exp = "";
|
|
1104
|
+
} else if (xmlData[i] === ">") {
|
|
1105
|
+
if (comment) {
|
|
1106
|
+
if (xmlData[i - 1] === "-" && xmlData[i - 2] === "-") {
|
|
1107
|
+
comment = false;
|
|
1108
|
+
angleBracketsCount--;
|
|
1109
|
+
}
|
|
1110
|
+
} else {
|
|
1111
|
+
angleBracketsCount--;
|
|
1112
|
+
}
|
|
1113
|
+
if (angleBracketsCount === 0) {
|
|
1114
|
+
break;
|
|
1115
|
+
}
|
|
1116
|
+
} else if (xmlData[i] === "[") {
|
|
1117
|
+
hasBody = true;
|
|
1118
|
+
} else {
|
|
1119
|
+
exp += xmlData[i];
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
if (quoteChar !== null || angleBracketsCount !== 0) {
|
|
1123
|
+
throw new Error(`Unclosed DOCTYPE`);
|
|
1124
|
+
}
|
|
1125
|
+
} else {
|
|
1126
|
+
throw new Error(`Invalid Tag instead of DOCTYPE`);
|
|
1127
|
+
}
|
|
1128
|
+
return { entities, i };
|
|
1129
|
+
}
|
|
1130
|
+
readEntityExp(xmlData, i) {
|
|
1131
|
+
i = skipWhitespace(xmlData, i);
|
|
1132
|
+
const startIndex = i;
|
|
1133
|
+
while (i < xmlData.length && !/\s/.test(xmlData[i]) && xmlData[i] !== '"' && xmlData[i] !== "'") {
|
|
1134
|
+
i++;
|
|
1135
|
+
}
|
|
1136
|
+
let entityName = xmlData.substring(startIndex, i);
|
|
1137
|
+
validateEntityName2(entityName, { xmlVersion: this.xmlVersion });
|
|
1138
|
+
i = skipWhitespace(xmlData, i);
|
|
1139
|
+
if (!this.suppressValidationErr) {
|
|
1140
|
+
if (xmlData.substring(i, i + 6).toUpperCase() === "SYSTEM") {
|
|
1141
|
+
throw new Error("External entities are not supported");
|
|
1142
|
+
} else if (xmlData[i] === "%") {
|
|
1143
|
+
throw new Error("Parameter entities are not supported");
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
let entityValue = "";
|
|
1147
|
+
[i, entityValue] = this.readIdentifierVal(xmlData, i, "entity");
|
|
1148
|
+
if (this.options.enabled !== false && this.options.maxEntitySize != null && entityValue.length > this.options.maxEntitySize) {
|
|
1149
|
+
throw new Error(
|
|
1150
|
+
`Entity "${entityName}" size (${entityValue.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`
|
|
1151
|
+
);
|
|
1152
|
+
}
|
|
1153
|
+
i--;
|
|
1154
|
+
return [entityName, entityValue, i];
|
|
1155
|
+
}
|
|
1156
|
+
readNotationExp(xmlData, i) {
|
|
1157
|
+
i = skipWhitespace(xmlData, i);
|
|
1158
|
+
const startIndex = i;
|
|
1159
|
+
while (i < xmlData.length && !/\s/.test(xmlData[i])) {
|
|
1160
|
+
i++;
|
|
1161
|
+
}
|
|
1162
|
+
let notationName = xmlData.substring(startIndex, i);
|
|
1163
|
+
!this.suppressValidationErr && validateEntityName2(notationName, { xmlVersion: this.xmlVersion });
|
|
1164
|
+
i = skipWhitespace(xmlData, i);
|
|
1165
|
+
const identifierType = xmlData.substring(i, i + 6).toUpperCase();
|
|
1166
|
+
if (!this.suppressValidationErr && identifierType !== "SYSTEM" && identifierType !== "PUBLIC") {
|
|
1167
|
+
throw new Error(`Expected SYSTEM or PUBLIC, found "${identifierType}"`);
|
|
1168
|
+
}
|
|
1169
|
+
i += identifierType.length;
|
|
1170
|
+
i = skipWhitespace(xmlData, i);
|
|
1171
|
+
let publicIdentifier = null;
|
|
1172
|
+
let systemIdentifier = null;
|
|
1173
|
+
if (identifierType === "PUBLIC") {
|
|
1174
|
+
[i, publicIdentifier] = this.readIdentifierVal(xmlData, i, "publicIdentifier");
|
|
1175
|
+
i = skipWhitespace(xmlData, i);
|
|
1176
|
+
if (xmlData[i] === '"' || xmlData[i] === "'") {
|
|
1177
|
+
[i, systemIdentifier] = this.readIdentifierVal(xmlData, i, "systemIdentifier");
|
|
1178
|
+
}
|
|
1179
|
+
} else if (identifierType === "SYSTEM") {
|
|
1180
|
+
[i, systemIdentifier] = this.readIdentifierVal(xmlData, i, "systemIdentifier");
|
|
1181
|
+
if (!this.suppressValidationErr && !systemIdentifier) {
|
|
1182
|
+
throw new Error("Missing mandatory system identifier for SYSTEM notation");
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
return { notationName, publicIdentifier, systemIdentifier, index: --i };
|
|
1186
|
+
}
|
|
1187
|
+
readIdentifierVal(xmlData, i, type) {
|
|
1188
|
+
let identifierVal = "";
|
|
1189
|
+
const startChar = xmlData[i];
|
|
1190
|
+
if (startChar !== '"' && startChar !== "'") {
|
|
1191
|
+
throw new Error(`Expected quoted string, found "${startChar}"`);
|
|
1192
|
+
}
|
|
1193
|
+
i++;
|
|
1194
|
+
const startIndex = i;
|
|
1195
|
+
while (i < xmlData.length && xmlData[i] !== startChar) {
|
|
1196
|
+
i++;
|
|
1197
|
+
}
|
|
1198
|
+
identifierVal = xmlData.substring(startIndex, i);
|
|
1199
|
+
if (xmlData[i] !== startChar) {
|
|
1200
|
+
throw new Error(`Unterminated ${type} value`);
|
|
1201
|
+
}
|
|
1202
|
+
i++;
|
|
1203
|
+
return [i, identifierVal];
|
|
1204
|
+
}
|
|
1205
|
+
readElementExp(xmlData, i) {
|
|
1206
|
+
i = skipWhitespace(xmlData, i);
|
|
1207
|
+
const startIndex = i;
|
|
1208
|
+
while (i < xmlData.length && !/\s/.test(xmlData[i])) {
|
|
1209
|
+
i++;
|
|
1210
|
+
}
|
|
1211
|
+
let elementName = xmlData.substring(startIndex, i);
|
|
1212
|
+
if (!this.suppressValidationErr && !qName(elementName, { xmlVersion: this.xmlVersion })) {
|
|
1213
|
+
throw new Error(`Invalid element name: "${elementName}"`);
|
|
1214
|
+
}
|
|
1215
|
+
i = skipWhitespace(xmlData, i);
|
|
1216
|
+
let contentModel = "";
|
|
1217
|
+
if (xmlData[i] === "E" && hasSeq(xmlData, "MPTY", i)) i += 4;
|
|
1218
|
+
else if (xmlData[i] === "A" && hasSeq(xmlData, "NY", i)) i += 2;
|
|
1219
|
+
else if (xmlData[i] === "(") {
|
|
1220
|
+
i++;
|
|
1221
|
+
const startIndex2 = i;
|
|
1222
|
+
while (i < xmlData.length && xmlData[i] !== ")") {
|
|
1223
|
+
i++;
|
|
1224
|
+
}
|
|
1225
|
+
contentModel = xmlData.substring(startIndex2, i);
|
|
1226
|
+
if (xmlData[i] !== ")") {
|
|
1227
|
+
throw new Error("Unterminated content model");
|
|
1228
|
+
}
|
|
1229
|
+
} else if (!this.suppressValidationErr) {
|
|
1230
|
+
throw new Error(`Invalid Element Expression, found "${xmlData[i]}"`);
|
|
1231
|
+
}
|
|
1232
|
+
return {
|
|
1233
|
+
elementName,
|
|
1234
|
+
contentModel: contentModel.trim(),
|
|
1235
|
+
index: i
|
|
1236
|
+
};
|
|
1237
|
+
}
|
|
1238
|
+
readAttlistExp(xmlData, i) {
|
|
1239
|
+
i = skipWhitespace(xmlData, i);
|
|
1240
|
+
let startIndex = i;
|
|
1241
|
+
while (i < xmlData.length && !/\s/.test(xmlData[i])) {
|
|
1242
|
+
i++;
|
|
1243
|
+
}
|
|
1244
|
+
let elementName = xmlData.substring(startIndex, i);
|
|
1245
|
+
validateEntityName2(elementName, { xmlVersion: this.xmlVersion });
|
|
1246
|
+
i = skipWhitespace(xmlData, i);
|
|
1247
|
+
startIndex = i;
|
|
1248
|
+
while (i < xmlData.length && !/\s/.test(xmlData[i])) {
|
|
1249
|
+
i++;
|
|
1250
|
+
}
|
|
1251
|
+
let attributeName = xmlData.substring(startIndex, i);
|
|
1252
|
+
if (!validateEntityName2(attributeName, { xmlVersion: this.xmlVersion })) {
|
|
1253
|
+
throw new Error(`Invalid attribute name: "${attributeName}"`);
|
|
1254
|
+
}
|
|
1255
|
+
i = skipWhitespace(xmlData, i);
|
|
1256
|
+
let attributeType = "";
|
|
1257
|
+
if (xmlData.substring(i, i + 8).toUpperCase() === "NOTATION") {
|
|
1258
|
+
attributeType = "NOTATION";
|
|
1259
|
+
i += 8;
|
|
1260
|
+
i = skipWhitespace(xmlData, i);
|
|
1261
|
+
if (xmlData[i] !== "(") {
|
|
1262
|
+
throw new Error(`Expected '(', found "${xmlData[i]}"`);
|
|
1263
|
+
}
|
|
1264
|
+
i++;
|
|
1265
|
+
let allowedNotations = [];
|
|
1266
|
+
while (i < xmlData.length && xmlData[i] !== ")") {
|
|
1267
|
+
const startIndex2 = i;
|
|
1268
|
+
while (i < xmlData.length && xmlData[i] !== "|" && xmlData[i] !== ")") {
|
|
1269
|
+
i++;
|
|
1270
|
+
}
|
|
1271
|
+
let notation = xmlData.substring(startIndex2, i);
|
|
1272
|
+
notation = notation.trim();
|
|
1273
|
+
if (!validateEntityName2(notation, { xmlVersion: this.xmlVersion })) {
|
|
1274
|
+
throw new Error(`Invalid notation name: "${notation}"`);
|
|
1275
|
+
}
|
|
1276
|
+
allowedNotations.push(notation);
|
|
1277
|
+
if (xmlData[i] === "|") {
|
|
1278
|
+
i++;
|
|
1279
|
+
i = skipWhitespace(xmlData, i);
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
if (xmlData[i] !== ")") {
|
|
1283
|
+
throw new Error("Unterminated list of notations");
|
|
1284
|
+
}
|
|
1285
|
+
i++;
|
|
1286
|
+
attributeType += " (" + allowedNotations.join("|") + ")";
|
|
1287
|
+
} else {
|
|
1288
|
+
const startIndex2 = i;
|
|
1289
|
+
while (i < xmlData.length && !/\s/.test(xmlData[i])) {
|
|
1290
|
+
i++;
|
|
1291
|
+
}
|
|
1292
|
+
attributeType += xmlData.substring(startIndex2, i);
|
|
1293
|
+
const validTypes = ["CDATA", "ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NMTOKEN", "NMTOKENS"];
|
|
1294
|
+
if (!this.suppressValidationErr && !validTypes.includes(attributeType.toUpperCase())) {
|
|
1295
|
+
throw new Error(`Invalid attribute type: "${attributeType}"`);
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
i = skipWhitespace(xmlData, i);
|
|
1299
|
+
let defaultValue = "";
|
|
1300
|
+
if (xmlData.substring(i, i + 8).toUpperCase() === "#REQUIRED") {
|
|
1301
|
+
defaultValue = "#REQUIRED";
|
|
1302
|
+
i += 8;
|
|
1303
|
+
} else if (xmlData.substring(i, i + 7).toUpperCase() === "#IMPLIED") {
|
|
1304
|
+
defaultValue = "#IMPLIED";
|
|
1305
|
+
i += 7;
|
|
1306
|
+
} else {
|
|
1307
|
+
[i, defaultValue] = this.readIdentifierVal(xmlData, i, "ATTLIST");
|
|
1308
|
+
}
|
|
1309
|
+
return {
|
|
1310
|
+
elementName,
|
|
1311
|
+
attributeName,
|
|
1312
|
+
attributeType,
|
|
1313
|
+
defaultValue,
|
|
1314
|
+
index: i
|
|
1315
|
+
};
|
|
1316
|
+
}
|
|
1317
|
+
};
|
|
1318
|
+
var skipWhitespace = (data, index) => {
|
|
1319
|
+
while (index < data.length && /\s/.test(data[index])) {
|
|
1320
|
+
index++;
|
|
1321
|
+
}
|
|
1322
|
+
return index;
|
|
1323
|
+
};
|
|
1324
|
+
function hasSeq(data, seq, i) {
|
|
1325
|
+
for (let j = 0; j < seq.length; j++) {
|
|
1326
|
+
if (seq[j] !== data[i + j + 1]) return false;
|
|
1327
|
+
}
|
|
1328
|
+
return true;
|
|
1329
|
+
}
|
|
1330
|
+
function validateEntityName2(name, xmlVersion) {
|
|
1331
|
+
if (qName(name, { xmlVersion }))
|
|
1332
|
+
return name;
|
|
1333
|
+
else
|
|
1334
|
+
throw new Error(`Invalid entity name ${name}`);
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
// node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/digitTable.js
|
|
1338
|
+
var SCRIPT_ZEROS = [
|
|
1339
|
+
// Basic Latin (ASCII) — included for completeness / pass-through
|
|
1340
|
+
48,
|
|
1341
|
+
// 0-9
|
|
1342
|
+
// Arabic scripts
|
|
1343
|
+
1632,
|
|
1344
|
+
// Arabic-Indic ٠١٢٣٤٥٦٧٨٩
|
|
1345
|
+
1776,
|
|
1346
|
+
// Extended Arabic-Indic (Urdu/Persian/Sindhi) ۰۱۲۳
|
|
1347
|
+
// Indic scripts
|
|
1348
|
+
2406,
|
|
1349
|
+
// Devanagari ०१२३४५६७८९
|
|
1350
|
+
2534,
|
|
1351
|
+
// Bengali ০১২৩৪৫৬৭৮৯
|
|
1352
|
+
2662,
|
|
1353
|
+
// Gurmukhi ੦੧੨੩੪੫੬੭੮੯
|
|
1354
|
+
2790,
|
|
1355
|
+
// Gujarati ૦૧૨૩૪૫૬૭૮૯
|
|
1356
|
+
2918,
|
|
1357
|
+
// Odia ୦୧୨୩୪୫୬୭୮୯
|
|
1358
|
+
3046,
|
|
1359
|
+
// Tamil ௦௧௨௩௪௫௬௭௮௯
|
|
1360
|
+
3174,
|
|
1361
|
+
// Telugu ౦౧౨౩౪౫౬౭౮౯
|
|
1362
|
+
3302,
|
|
1363
|
+
// Kannada ೦೧೨೩೪೫೬೭೮೯
|
|
1364
|
+
3430,
|
|
1365
|
+
// Malayalam ൦൧൨൩൪൫൬൭൮൯
|
|
1366
|
+
3558,
|
|
1367
|
+
// Sinhala Archaic ෦෧෨෩෪෫෬෭෮෯
|
|
1368
|
+
// Southeast Asian scripts
|
|
1369
|
+
3664,
|
|
1370
|
+
// Thai ๐๑๒๓๔๕๖๗๘๙
|
|
1371
|
+
3792,
|
|
1372
|
+
// Lao ໐໑໒໓໔໕໖໗໘໙
|
|
1373
|
+
3872,
|
|
1374
|
+
// Tibetan ༠༡༢༣༤༥༦༧༨༩
|
|
1375
|
+
4160,
|
|
1376
|
+
// Myanmar ၀၁၂၃၄၅၆၇၈၉
|
|
1377
|
+
4240,
|
|
1378
|
+
// Myanmar Shan ႐႑႒႓႔႕႖႗႘႙
|
|
1379
|
+
6112,
|
|
1380
|
+
// Khmer ០១២៣៤៥៦៧៨៩
|
|
1381
|
+
6160,
|
|
1382
|
+
// Mongolian ᠐᠑᠒᠓᠔᠕᠖᠗᠘᠙
|
|
1383
|
+
6470,
|
|
1384
|
+
// Limbu ᥆᥇᥈᥉᥊᥋᥌᥍᥎᥏
|
|
1385
|
+
6608,
|
|
1386
|
+
// New Tai Lue ᧐᧑᧒᧓᧔᧕᧖᧗᧘᧙
|
|
1387
|
+
6784,
|
|
1388
|
+
// Tai Tham Hora ᪀᪁᪂᪃᪄᪅᪆᪇᪈᪉
|
|
1389
|
+
6800,
|
|
1390
|
+
// Tai Tham Tham ᪐᪑᪒᪓᪔᪕᪖᪗᪘᪙
|
|
1391
|
+
6992,
|
|
1392
|
+
// Balinese ᭐᭑᭒᭓᭔᭕᭖᭗᭘᭙
|
|
1393
|
+
7088,
|
|
1394
|
+
// Sundanese ᮰᮱᮲᮳᮴᮵᮶᮷᮸᮹
|
|
1395
|
+
7232,
|
|
1396
|
+
// Lepcha ᱀᱁᱂᱃᱄᱅᱆᱇᱈᱉
|
|
1397
|
+
7248,
|
|
1398
|
+
// Ol Chiki ᱐᱑᱒᱓᱔᱕᱖᱗᱘᱙
|
|
1399
|
+
// Fullwidth (CJK context)
|
|
1400
|
+
65296,
|
|
1401
|
+
// Fullwidth 0123456789
|
|
1402
|
+
// Mathematical digit variants (Unicode math block)
|
|
1403
|
+
120782,
|
|
1404
|
+
// Mathematical Bold
|
|
1405
|
+
120792,
|
|
1406
|
+
// Mathematical Double-Struck
|
|
1407
|
+
120802,
|
|
1408
|
+
// Mathematical Sans-Serif
|
|
1409
|
+
120812,
|
|
1410
|
+
// Mathematical Sans-Serif Bold
|
|
1411
|
+
120822,
|
|
1412
|
+
// Mathematical Monospace
|
|
1413
|
+
// Other scripts
|
|
1414
|
+
66720,
|
|
1415
|
+
// Osmanya 𐒠𐒡𐒢𐒣𐒤𐒥𐒦𐒧𐒨𐒩
|
|
1416
|
+
68912,
|
|
1417
|
+
// Hanifi Rohingya 𐴰𐴱𐴲𐴳𐴴𐴵𐴶𐴷𐴸𐴹
|
|
1418
|
+
69734,
|
|
1419
|
+
// Brahmi 𑁦𑁧𑁨𑁩𑁪𑁫𑁬𑁭𑁮𑁯
|
|
1420
|
+
69872,
|
|
1421
|
+
// Sora Sompeng 𑃰𑃱𑃲𑃳𑃴𑃵𑃶𑃷𑃸𑃹
|
|
1422
|
+
69942,
|
|
1423
|
+
// Chakma 𑄶𑄷𑄸𑄹𑄺𑄻𑄼𑄽𑄾𑄿
|
|
1424
|
+
70096,
|
|
1425
|
+
// Sharada 𑇐𑇑𑇒𑇓𑇔𑇕𑇖𑇗𑇘𑇙
|
|
1426
|
+
70384,
|
|
1427
|
+
// Khudawadi 𑋰𑋱𑋲𑋳𑋴𑋵𑋶𑋷𑋸𑋹
|
|
1428
|
+
70736,
|
|
1429
|
+
// Newa 𑑐𑑑𑑒𑑓𑑔𑑕𑑖𑑗𑑘𑑙
|
|
1430
|
+
70864,
|
|
1431
|
+
// Tirhuta 𑓐𑓑𑓒𑓓𑓔𑓕𑓖𑓗𑓘𑓙
|
|
1432
|
+
71248,
|
|
1433
|
+
// Modi 𑙐𑙑𑙒𑙓𑙔𑙕𑙖𑙗𑙘𑙙
|
|
1434
|
+
71360,
|
|
1435
|
+
// Takri 𑛀𑛁𑛂𑛃𑛄𑛅𑛆𑛇𑛈𑛉
|
|
1436
|
+
71472,
|
|
1437
|
+
// Ahom 𑜰𑜱𑜲𑜳𑜴𑜵𑜶𑜷𑜸𑜹
|
|
1438
|
+
71904,
|
|
1439
|
+
// Warang Citi 𑣠𑣡𑣢𑣣𑣤𑣥𑣦𑣧𑣨𑣩
|
|
1440
|
+
72016,
|
|
1441
|
+
// Dives Akuru 𑥐𑥑𑥒𑥓𑥔𑥕𑥖𑥗𑥘𑥙
|
|
1442
|
+
72688,
|
|
1443
|
+
// Khitan Small Script
|
|
1444
|
+
72784,
|
|
1445
|
+
// Bhaiksuki 𑱐𑱑𑱒𑱓𑱔𑱕𑱖𑱗𑱘𑱙
|
|
1446
|
+
73040,
|
|
1447
|
+
// Masaram Gondi 𑵐𑵑𑵒𑵓𑵔𑵕𑵖𑵗𑵘𑵙
|
|
1448
|
+
73120,
|
|
1449
|
+
// Gunjala Gondi 𑶠𑶡𑶢𑶣𑶤𑶥𑶦𑶧𑶨𑶩
|
|
1450
|
+
73552,
|
|
1451
|
+
// Kawi 𑽐𑽑𑽒𑽓𑽔𑽕𑽖𑽗𑽘𑽙
|
|
1452
|
+
92768,
|
|
1453
|
+
// Mro 𖩠𖩡𖩢𖩣𖩤𖩥𖩦𖩧𖩨𖩩
|
|
1454
|
+
92864,
|
|
1455
|
+
// Tangsa 𖫀𖫁𖫂𖫃𖫄𖫅𖫆𖫇𖫈𖫉
|
|
1456
|
+
93008,
|
|
1457
|
+
// Pahawh Hmong 𖭐𖭑𖭒𖭓𖭔𖭕𖭖𖭗𖭘𖭙
|
|
1458
|
+
123200,
|
|
1459
|
+
// Nyiakeng Puachue Hmong 𞅀𞅁𞅂𞅃𞅄𞅅𞅆𞅇𞅈𞅉
|
|
1460
|
+
123632,
|
|
1461
|
+
// Wancho 𞋰𞋱𞋲𞋳𞋴𞋵𞋶𞋷𞋸𞋹
|
|
1462
|
+
124144,
|
|
1463
|
+
// Nag Mundari 𞓰𞓱𞓲𞓳𞓴𞓵𞓶𞓷𞓸𞓹
|
|
1464
|
+
125264,
|
|
1465
|
+
// Adlam 𞥐𞥑𞥒𞥓𞥔𞥕𞥖𞥗𞥘𞥙
|
|
1466
|
+
130032
|
|
1467
|
+
// Segmented digit symbols 🯰🯱🯲🯳🯴🯵🯶🯷🯸🯹
|
|
1468
|
+
];
|
|
1469
|
+
var NOT_DIGIT = 255;
|
|
1470
|
+
var HIGH_MAP = /* @__PURE__ */ new Map();
|
|
1471
|
+
var LOW_MAX = 65535;
|
|
1472
|
+
var LOW_MIN = 1632;
|
|
1473
|
+
var TABLE_OFFSET = LOW_MIN;
|
|
1474
|
+
var TABLE_SIZE = LOW_MAX - LOW_MIN + 1;
|
|
1475
|
+
var TABLE = new Uint8Array(TABLE_SIZE).fill(NOT_DIGIT);
|
|
1476
|
+
for (const zero of SCRIPT_ZEROS) {
|
|
1477
|
+
for (let d = 0; d < 10; d++) {
|
|
1478
|
+
const cp = zero + d;
|
|
1479
|
+
if (cp <= LOW_MAX) {
|
|
1480
|
+
TABLE[cp - TABLE_OFFSET] = d;
|
|
1481
|
+
} else {
|
|
1482
|
+
HIGH_MAP.set(cp, d);
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
// node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/anynum.js
|
|
1488
|
+
var CHAR_0 = 48;
|
|
1489
|
+
var CHAR_9 = 57;
|
|
1490
|
+
var CHAR_MINUS = 45;
|
|
1491
|
+
var MINUS_SET = /* @__PURE__ */ new Set([8722, 65293, 65123]);
|
|
1492
|
+
function anynum(str) {
|
|
1493
|
+
if (typeof str !== "string") return str;
|
|
1494
|
+
const len = str.length;
|
|
1495
|
+
if (len === 0) return str;
|
|
1496
|
+
let firstHit = -1;
|
|
1497
|
+
for (let i = 0; i < len; i++) {
|
|
1498
|
+
const cc = str.charCodeAt(i);
|
|
1499
|
+
if (cc >= CHAR_0 && cc <= CHAR_9 || cc === CHAR_MINUS) continue;
|
|
1500
|
+
if (cc < TABLE_OFFSET) {
|
|
1501
|
+
if (MINUS_SET.has(cc)) {
|
|
1502
|
+
firstHit = i;
|
|
1503
|
+
break;
|
|
1504
|
+
}
|
|
1505
|
+
continue;
|
|
1506
|
+
}
|
|
1507
|
+
if (cc >= 55296 && cc <= 56319) {
|
|
1508
|
+
if (i + 1 < len) {
|
|
1509
|
+
const low = str.charCodeAt(i + 1);
|
|
1510
|
+
if (low >= 56320 && low <= 57343) {
|
|
1511
|
+
const cp = 65536 + (cc - 55296 << 10) + (low - 56320);
|
|
1512
|
+
if (HIGH_MAP.has(cp)) {
|
|
1513
|
+
firstHit = i;
|
|
1514
|
+
break;
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
continue;
|
|
1519
|
+
}
|
|
1520
|
+
if (TABLE[cc - TABLE_OFFSET] !== NOT_DIGIT || MINUS_SET.has(cc)) {
|
|
1521
|
+
firstHit = i;
|
|
1522
|
+
break;
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
if (firstHit === -1) return str;
|
|
1526
|
+
const chars = [];
|
|
1527
|
+
if (firstHit > 0) chars.push(str.slice(0, firstHit));
|
|
1528
|
+
for (let i = firstHit; i < len; i++) {
|
|
1529
|
+
const cc = str.charCodeAt(i);
|
|
1530
|
+
if (cc >= CHAR_0 && cc <= CHAR_9 || cc === CHAR_MINUS) {
|
|
1531
|
+
chars.push(str[i]);
|
|
1532
|
+
continue;
|
|
1533
|
+
}
|
|
1534
|
+
if (cc < TABLE_OFFSET) {
|
|
1535
|
+
chars.push(MINUS_SET.has(cc) ? "-" : str[i]);
|
|
1536
|
+
continue;
|
|
1537
|
+
}
|
|
1538
|
+
if (cc >= 55296 && cc <= 56319) {
|
|
1539
|
+
if (i + 1 < len) {
|
|
1540
|
+
const low = str.charCodeAt(i + 1);
|
|
1541
|
+
if (low >= 56320 && low <= 57343) {
|
|
1542
|
+
const cp = 65536 + (cc - 55296 << 10) + (low - 56320);
|
|
1543
|
+
const d2 = HIGH_MAP.get(cp);
|
|
1544
|
+
if (d2 !== void 0) {
|
|
1545
|
+
chars.push(String.fromCharCode(d2 + 48));
|
|
1546
|
+
i++;
|
|
1547
|
+
continue;
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
chars.push(str[i]);
|
|
1552
|
+
continue;
|
|
1553
|
+
}
|
|
1554
|
+
if (MINUS_SET.has(cc)) {
|
|
1555
|
+
chars.push("-");
|
|
1556
|
+
continue;
|
|
1557
|
+
}
|
|
1558
|
+
const d = TABLE[cc - TABLE_OFFSET];
|
|
1559
|
+
chars.push(d !== NOT_DIGIT ? String.fromCharCode(d + 48) : str[i]);
|
|
1560
|
+
}
|
|
1561
|
+
return chars.join("");
|
|
1562
|
+
}
|
|
1563
|
+
var anynum_default = anynum;
|
|
1564
|
+
|
|
1565
|
+
// node_modules/.pnpm/strnum@2.4.2/node_modules/strnum/strnum.js
|
|
1566
|
+
var hexRegex = /^[-+]?0x[a-fA-F0-9]+$/;
|
|
1567
|
+
var binRegex = /^0b[01]+$/;
|
|
1568
|
+
var octRegex = /^0o[0-7]+$/;
|
|
1569
|
+
var numRegex = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/;
|
|
1570
|
+
var consider = {
|
|
1571
|
+
hex: true,
|
|
1572
|
+
binary: false,
|
|
1573
|
+
octal: false,
|
|
1574
|
+
leadingZeros: true,
|
|
1575
|
+
decimalPoint: ".",
|
|
1576
|
+
eNotation: true,
|
|
1577
|
+
//skipLike: /regex/,
|
|
1578
|
+
infinity: "original",
|
|
1579
|
+
// "null", "infinity" (Infinity type), "string" ("Infinity" (the string literal))
|
|
1580
|
+
unicode: false
|
|
1581
|
+
};
|
|
1582
|
+
function toNumber(str, options = {}) {
|
|
1583
|
+
options = Object.assign({}, consider, options);
|
|
1584
|
+
if (!str || typeof str !== "string") return str;
|
|
1585
|
+
let trimmedStr = str.trim();
|
|
1586
|
+
if (trimmedStr.length === 0) return str;
|
|
1587
|
+
else if (options.skipLike !== void 0 && options.skipLike.test(trimmedStr)) return str;
|
|
1588
|
+
else if (trimmedStr === "0") return 0;
|
|
1589
|
+
if (options.unicode) {
|
|
1590
|
+
trimmedStr = anynum_default(trimmedStr);
|
|
1591
|
+
if (trimmedStr === "0") return 0;
|
|
1592
|
+
}
|
|
1593
|
+
if (options.hex && hexRegex.test(trimmedStr)) {
|
|
1594
|
+
return parse_int(trimmedStr, 16);
|
|
1595
|
+
} else if (options.binary && binRegex.test(trimmedStr)) {
|
|
1596
|
+
return parse_int(trimmedStr, 2);
|
|
1597
|
+
} else if (options.octal && octRegex.test(trimmedStr)) {
|
|
1598
|
+
return parse_int(trimmedStr, 8);
|
|
1599
|
+
} else if (!isFinite(trimmedStr)) {
|
|
1600
|
+
return handleInfinity(str, Number(trimmedStr), options);
|
|
1601
|
+
} else if (trimmedStr.includes("e") || trimmedStr.includes("E")) {
|
|
1602
|
+
return resolveEnotation(str, trimmedStr, options);
|
|
1603
|
+
} else {
|
|
1604
|
+
const match = numRegex.exec(trimmedStr);
|
|
1605
|
+
if (match) {
|
|
1606
|
+
const sign = match[1] || "";
|
|
1607
|
+
const leadingZeros = match[2];
|
|
1608
|
+
let numTrimmedByZeros = trimZeros(match[3]);
|
|
1609
|
+
const decimalAdjacentToLeadingZeros = sign ? (
|
|
1610
|
+
// 0., -00., 000.
|
|
1611
|
+
str[leadingZeros.length + 1] === "."
|
|
1612
|
+
) : str[leadingZeros.length] === ".";
|
|
1613
|
+
if (!options.leadingZeros && (leadingZeros.length > 1 || leadingZeros.length === 1 && !decimalAdjacentToLeadingZeros)) {
|
|
1614
|
+
return str;
|
|
1615
|
+
} else {
|
|
1616
|
+
const num = Number(trimmedStr);
|
|
1617
|
+
const parsedStr = String(num);
|
|
1618
|
+
if (num === 0) return num;
|
|
1619
|
+
if (parsedStr.search(/[eE]/) !== -1) {
|
|
1620
|
+
if (options.eNotation) return num;
|
|
1621
|
+
else return str;
|
|
1622
|
+
} else if (trimmedStr.indexOf(".") !== -1) {
|
|
1623
|
+
if (parsedStr === "0") return num;
|
|
1624
|
+
else if (parsedStr === numTrimmedByZeros) return num;
|
|
1625
|
+
else if (parsedStr === `${sign}${numTrimmedByZeros}`) return num;
|
|
1626
|
+
else return str;
|
|
1627
|
+
}
|
|
1628
|
+
let n = leadingZeros ? numTrimmedByZeros : trimmedStr;
|
|
1629
|
+
if (leadingZeros) {
|
|
1630
|
+
return n === parsedStr || sign + n === parsedStr ? num : str;
|
|
1631
|
+
} else {
|
|
1632
|
+
return n === parsedStr || n === sign + parsedStr ? num : str;
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
} else {
|
|
1636
|
+
return str;
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
var eNotationRegx = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
|
|
1641
|
+
function resolveEnotation(str, trimmedStr, options) {
|
|
1642
|
+
if (!options.eNotation) return str;
|
|
1643
|
+
const notation = trimmedStr.match(eNotationRegx);
|
|
1644
|
+
if (notation) {
|
|
1645
|
+
let sign = notation[1] || "";
|
|
1646
|
+
const eChar = notation[3].indexOf("e") === -1 ? "E" : "e";
|
|
1647
|
+
const leadingZeros = notation[2];
|
|
1648
|
+
const eAdjacentToLeadingZeros = sign ? (
|
|
1649
|
+
// 0E.
|
|
1650
|
+
str[leadingZeros.length + 1] === eChar
|
|
1651
|
+
) : str[leadingZeros.length] === eChar;
|
|
1652
|
+
if (leadingZeros.length > 1 && eAdjacentToLeadingZeros) return str;
|
|
1653
|
+
else if (leadingZeros.length === 1 && (notation[3].startsWith(`.${eChar}`) || notation[3][0] === eChar)) {
|
|
1654
|
+
return Number(trimmedStr);
|
|
1655
|
+
} else if (leadingZeros.length > 0) {
|
|
1656
|
+
if (options.leadingZeros && !eAdjacentToLeadingZeros) {
|
|
1657
|
+
trimmedStr = (notation[1] || "") + notation[3];
|
|
1658
|
+
return Number(trimmedStr);
|
|
1659
|
+
} else return str;
|
|
1660
|
+
} else {
|
|
1661
|
+
return Number(trimmedStr);
|
|
1662
|
+
}
|
|
1663
|
+
} else {
|
|
1664
|
+
return str;
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
function trimZeros(numStr) {
|
|
1668
|
+
if (numStr && numStr.indexOf(".") !== -1) {
|
|
1669
|
+
let end = numStr.length;
|
|
1670
|
+
while (end > 0 && numStr.charCodeAt(end - 1) === 48) end--;
|
|
1671
|
+
numStr = numStr.slice(0, end);
|
|
1672
|
+
if (numStr === ".") numStr = "0";
|
|
1673
|
+
else if (numStr[0] === ".") numStr = "0" + numStr;
|
|
1674
|
+
else if (numStr[numStr.length - 1] === ".") numStr = numStr.substring(0, numStr.length - 1);
|
|
1675
|
+
return numStr;
|
|
1676
|
+
}
|
|
1677
|
+
return numStr;
|
|
1678
|
+
}
|
|
1679
|
+
function parse_int(numStr, base) {
|
|
1680
|
+
const str = numStr.trim();
|
|
1681
|
+
if (base === 2 || base === 8) numStr = str.substring(2);
|
|
1682
|
+
if (parseInt) return parseInt(numStr, base);
|
|
1683
|
+
else if (Number.parseInt) return Number.parseInt(numStr, base);
|
|
1684
|
+
else if (window && window.parseInt) return window.parseInt(numStr, base);
|
|
1685
|
+
else throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
|
|
1686
|
+
}
|
|
1687
|
+
function handleInfinity(str, num, options) {
|
|
1688
|
+
const isPositive = num === Infinity;
|
|
1689
|
+
switch (options.infinity.toLowerCase()) {
|
|
1690
|
+
case "null":
|
|
1691
|
+
return null;
|
|
1692
|
+
case "infinity":
|
|
1693
|
+
return num;
|
|
1694
|
+
// Return Infinity or -Infinity
|
|
1695
|
+
case "string":
|
|
1696
|
+
return isPositive ? "Infinity" : "-Infinity";
|
|
1697
|
+
case "original":
|
|
1698
|
+
default:
|
|
1699
|
+
return str;
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
// node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/ignoreAttributes.js
|
|
1704
|
+
function getIgnoreAttributesFn(ignoreAttributes) {
|
|
1705
|
+
if (typeof ignoreAttributes === "function") {
|
|
1706
|
+
return ignoreAttributes;
|
|
1707
|
+
}
|
|
1708
|
+
if (Array.isArray(ignoreAttributes)) {
|
|
1709
|
+
return (attrName) => {
|
|
1710
|
+
for (const pattern of ignoreAttributes) {
|
|
1711
|
+
if (typeof pattern === "string" && attrName === pattern) {
|
|
1712
|
+
return true;
|
|
1713
|
+
}
|
|
1714
|
+
if (pattern instanceof RegExp && pattern.test(attrName)) {
|
|
1715
|
+
return true;
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
};
|
|
1719
|
+
}
|
|
1720
|
+
return () => false;
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
// node_modules/.pnpm/path-expression-matcher@1.6.2/node_modules/path-expression-matcher/src/Expression.js
|
|
1724
|
+
var Expression = class {
|
|
1725
|
+
/**
|
|
1726
|
+
* Create a new Expression
|
|
1727
|
+
* @param {string} pattern - Pattern string (e.g., "root.users.user", "..user[id]")
|
|
1728
|
+
* @param {Object} options - Configuration options
|
|
1729
|
+
* @param {string} options.separator - Path separator (default: '.')
|
|
1730
|
+
*/
|
|
1731
|
+
constructor(pattern, options = {}, data) {
|
|
1732
|
+
this.pattern = pattern;
|
|
1733
|
+
this.separator = options.separator || ".";
|
|
1734
|
+
this.segments = this._parse(pattern);
|
|
1735
|
+
this.data = data;
|
|
1736
|
+
this._hasDeepWildcard = this.segments.some((seg) => seg.type === "deep-wildcard");
|
|
1737
|
+
this._hasAttributeCondition = this.segments.some((seg) => seg.attrName !== void 0);
|
|
1738
|
+
this._hasPositionSelector = this.segments.some((seg) => seg.position !== void 0);
|
|
1739
|
+
}
|
|
1740
|
+
/**
|
|
1741
|
+
* Parse pattern string into segments
|
|
1742
|
+
* @private
|
|
1743
|
+
* @param {string} pattern - Pattern to parse
|
|
1744
|
+
* @returns {Array} Array of segment objects
|
|
1745
|
+
*/
|
|
1746
|
+
_parse(pattern) {
|
|
1747
|
+
const segments = [];
|
|
1748
|
+
let i = 0;
|
|
1749
|
+
let currentPart = "";
|
|
1750
|
+
while (i < pattern.length) {
|
|
1751
|
+
if (pattern[i] === this.separator) {
|
|
1752
|
+
if (i + 1 < pattern.length && pattern[i + 1] === this.separator) {
|
|
1753
|
+
if (currentPart.trim()) {
|
|
1754
|
+
segments.push(this._parseSegment(currentPart.trim()));
|
|
1755
|
+
currentPart = "";
|
|
1756
|
+
}
|
|
1757
|
+
segments.push({ type: "deep-wildcard" });
|
|
1758
|
+
i += 2;
|
|
1759
|
+
} else {
|
|
1760
|
+
if (currentPart.trim()) {
|
|
1761
|
+
segments.push(this._parseSegment(currentPart.trim()));
|
|
1762
|
+
}
|
|
1763
|
+
currentPart = "";
|
|
1764
|
+
i++;
|
|
1765
|
+
}
|
|
1766
|
+
} else {
|
|
1767
|
+
currentPart += pattern[i];
|
|
1768
|
+
i++;
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
if (currentPart.trim()) {
|
|
1772
|
+
segments.push(this._parseSegment(currentPart.trim()));
|
|
1773
|
+
}
|
|
1774
|
+
return segments;
|
|
1775
|
+
}
|
|
1776
|
+
/**
|
|
1777
|
+
* Parse a single segment
|
|
1778
|
+
* @private
|
|
1779
|
+
* @param {string} part - Segment string (e.g., "user", "ns::user", "user[id]", "ns::user:first")
|
|
1780
|
+
* @returns {Object} Segment object
|
|
1781
|
+
*/
|
|
1782
|
+
_parseSegment(part) {
|
|
1783
|
+
const segment = { type: "tag" };
|
|
1784
|
+
let bracketContent = null;
|
|
1785
|
+
let withoutBrackets = part;
|
|
1786
|
+
const bracketMatch = part.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);
|
|
1787
|
+
if (bracketMatch) {
|
|
1788
|
+
withoutBrackets = bracketMatch[1] + bracketMatch[3];
|
|
1789
|
+
if (bracketMatch[2]) {
|
|
1790
|
+
const content = bracketMatch[2].slice(1, -1);
|
|
1791
|
+
if (content) {
|
|
1792
|
+
bracketContent = content;
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
let namespace = void 0;
|
|
1797
|
+
let tagAndPosition = withoutBrackets;
|
|
1798
|
+
if (withoutBrackets.includes("::")) {
|
|
1799
|
+
const nsIndex = withoutBrackets.indexOf("::");
|
|
1800
|
+
namespace = withoutBrackets.substring(0, nsIndex).trim();
|
|
1801
|
+
tagAndPosition = withoutBrackets.substring(nsIndex + 2).trim();
|
|
1802
|
+
if (!namespace) {
|
|
1803
|
+
throw new Error(`Invalid namespace in pattern: ${part}`);
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
let tag = void 0;
|
|
1807
|
+
let positionMatch = null;
|
|
1808
|
+
if (tagAndPosition.includes(":")) {
|
|
1809
|
+
const colonIndex = tagAndPosition.lastIndexOf(":");
|
|
1810
|
+
const tagPart = tagAndPosition.substring(0, colonIndex).trim();
|
|
1811
|
+
const posPart = tagAndPosition.substring(colonIndex + 1).trim();
|
|
1812
|
+
const isPositionKeyword = ["first", "last", "odd", "even"].includes(posPart) || /^nth\(\d+\)$/.test(posPart);
|
|
1813
|
+
if (isPositionKeyword) {
|
|
1814
|
+
tag = tagPart;
|
|
1815
|
+
positionMatch = posPart;
|
|
1816
|
+
} else {
|
|
1817
|
+
tag = tagAndPosition;
|
|
1818
|
+
}
|
|
1819
|
+
} else {
|
|
1820
|
+
tag = tagAndPosition;
|
|
1821
|
+
}
|
|
1822
|
+
if (!tag) {
|
|
1823
|
+
throw new Error(`Invalid segment pattern: ${part}`);
|
|
1824
|
+
}
|
|
1825
|
+
segment.tag = tag;
|
|
1826
|
+
if (namespace) {
|
|
1827
|
+
segment.namespace = namespace;
|
|
1828
|
+
}
|
|
1829
|
+
if (bracketContent) {
|
|
1830
|
+
if (bracketContent.includes("=")) {
|
|
1831
|
+
const eqIndex = bracketContent.indexOf("=");
|
|
1832
|
+
segment.attrName = bracketContent.substring(0, eqIndex).trim();
|
|
1833
|
+
segment.attrValue = bracketContent.substring(eqIndex + 1).trim();
|
|
1834
|
+
} else {
|
|
1835
|
+
segment.attrName = bracketContent.trim();
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
if (positionMatch) {
|
|
1839
|
+
const nthMatch = positionMatch.match(/^nth\((\d+)\)$/);
|
|
1840
|
+
if (nthMatch) {
|
|
1841
|
+
segment.position = "nth";
|
|
1842
|
+
segment.positionValue = parseInt(nthMatch[1], 10);
|
|
1843
|
+
} else {
|
|
1844
|
+
segment.position = positionMatch;
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
return segment;
|
|
1848
|
+
}
|
|
1849
|
+
/**
|
|
1850
|
+
* Get the number of segments
|
|
1851
|
+
* @returns {number}
|
|
1852
|
+
*/
|
|
1853
|
+
get length() {
|
|
1854
|
+
return this.segments.length;
|
|
1855
|
+
}
|
|
1856
|
+
/**
|
|
1857
|
+
* Check if expression contains deep wildcard
|
|
1858
|
+
* @returns {boolean}
|
|
1859
|
+
*/
|
|
1860
|
+
hasDeepWildcard() {
|
|
1861
|
+
return this._hasDeepWildcard;
|
|
1862
|
+
}
|
|
1863
|
+
/**
|
|
1864
|
+
* Check if expression has attribute conditions
|
|
1865
|
+
* @returns {boolean}
|
|
1866
|
+
*/
|
|
1867
|
+
hasAttributeCondition() {
|
|
1868
|
+
return this._hasAttributeCondition;
|
|
1869
|
+
}
|
|
1870
|
+
/**
|
|
1871
|
+
* Check if expression has position selectors
|
|
1872
|
+
* @returns {boolean}
|
|
1873
|
+
*/
|
|
1874
|
+
hasPositionSelector() {
|
|
1875
|
+
return this._hasPositionSelector;
|
|
1876
|
+
}
|
|
1877
|
+
/**
|
|
1878
|
+
* Get string representation
|
|
1879
|
+
* @returns {string}
|
|
1880
|
+
*/
|
|
1881
|
+
toString() {
|
|
1882
|
+
return this.pattern;
|
|
1883
|
+
}
|
|
1884
|
+
};
|
|
1885
|
+
|
|
1886
|
+
// node_modules/.pnpm/path-expression-matcher@1.6.2/node_modules/path-expression-matcher/src/ExpressionSet.js
|
|
1887
|
+
var ExpressionSet = class {
|
|
1888
|
+
constructor() {
|
|
1889
|
+
this._byDepthAndTag = /* @__PURE__ */ new Map();
|
|
1890
|
+
this._wildcardByDepth = /* @__PURE__ */ new Map();
|
|
1891
|
+
this._deepWildcards = [];
|
|
1892
|
+
this._deepByTerminalTag = /* @__PURE__ */ new Map();
|
|
1893
|
+
this._patterns = /* @__PURE__ */ new Set();
|
|
1894
|
+
this._sealed = false;
|
|
1895
|
+
}
|
|
1896
|
+
/**
|
|
1897
|
+
* Add an Expression to the set.
|
|
1898
|
+
* Duplicate patterns (same pattern string) are silently ignored.
|
|
1899
|
+
*
|
|
1900
|
+
* @param {import('./Expression.js').default} expression - A pre-constructed Expression instance
|
|
1901
|
+
* @returns {this} for chaining
|
|
1902
|
+
* @throws {TypeError} if called after seal()
|
|
1903
|
+
*
|
|
1904
|
+
* @example
|
|
1905
|
+
* set.add(new Expression('root.users.user'));
|
|
1906
|
+
* set.add(new Expression('..script'));
|
|
1907
|
+
*/
|
|
1908
|
+
add(expression) {
|
|
1909
|
+
if (this._sealed) {
|
|
1910
|
+
throw new TypeError(
|
|
1911
|
+
"ExpressionSet is sealed. Create a new ExpressionSet to add more expressions."
|
|
1912
|
+
);
|
|
1913
|
+
}
|
|
1914
|
+
if (this._patterns.has(expression.pattern)) return this;
|
|
1915
|
+
this._patterns.add(expression.pattern);
|
|
1916
|
+
if (expression.hasDeepWildcard()) {
|
|
1917
|
+
const lastSeg2 = expression.segments[expression.segments.length - 1];
|
|
1918
|
+
if (lastSeg2 && lastSeg2.type !== "deep-wildcard" && lastSeg2.tag !== "*") {
|
|
1919
|
+
const tag2 = lastSeg2.tag;
|
|
1920
|
+
if (!this._deepByTerminalTag.has(tag2)) this._deepByTerminalTag.set(tag2, []);
|
|
1921
|
+
this._deepByTerminalTag.get(tag2).push(expression);
|
|
1922
|
+
} else {
|
|
1923
|
+
this._deepWildcards.push(expression);
|
|
1924
|
+
}
|
|
1925
|
+
return this;
|
|
1926
|
+
}
|
|
1927
|
+
const depth = expression.length;
|
|
1928
|
+
const lastSeg = expression.segments[expression.segments.length - 1];
|
|
1929
|
+
const tag = lastSeg?.tag;
|
|
1930
|
+
if (!tag || tag === "*") {
|
|
1931
|
+
if (!this._wildcardByDepth.has(depth)) this._wildcardByDepth.set(depth, []);
|
|
1932
|
+
this._wildcardByDepth.get(depth).push(expression);
|
|
1933
|
+
} else {
|
|
1934
|
+
const key = `${depth}:${tag}`;
|
|
1935
|
+
if (!this._byDepthAndTag.has(key)) this._byDepthAndTag.set(key, []);
|
|
1936
|
+
this._byDepthAndTag.get(key).push(expression);
|
|
1937
|
+
}
|
|
1938
|
+
return this;
|
|
1939
|
+
}
|
|
1940
|
+
/**
|
|
1941
|
+
* Add multiple expressions at once.
|
|
1942
|
+
*
|
|
1943
|
+
* @param {import('./Expression.js').default[]} expressions - Array of Expression instances
|
|
1944
|
+
* @returns {this} for chaining
|
|
1945
|
+
*
|
|
1946
|
+
* @example
|
|
1947
|
+
* set.addAll([
|
|
1948
|
+
* new Expression('root.users.user'),
|
|
1949
|
+
* new Expression('root.config.setting'),
|
|
1950
|
+
* ]);
|
|
1951
|
+
*/
|
|
1952
|
+
addAll(expressions) {
|
|
1953
|
+
for (const expr of expressions) this.add(expr);
|
|
1954
|
+
return this;
|
|
1955
|
+
}
|
|
1956
|
+
/**
|
|
1957
|
+
* Check whether a pattern string is already present in the set.
|
|
1958
|
+
*
|
|
1959
|
+
* @param {import('./Expression.js').default} expression
|
|
1960
|
+
* @returns {boolean}
|
|
1961
|
+
*/
|
|
1962
|
+
has(expression) {
|
|
1963
|
+
return this._patterns.has(expression.pattern);
|
|
1964
|
+
}
|
|
1965
|
+
/**
|
|
1966
|
+
* Number of expressions in the set.
|
|
1967
|
+
* @type {number}
|
|
1968
|
+
*/
|
|
1969
|
+
get size() {
|
|
1970
|
+
return this._patterns.size;
|
|
1971
|
+
}
|
|
1972
|
+
/**
|
|
1973
|
+
* Seal the set against further modifications.
|
|
1974
|
+
* Useful to prevent accidental mutations after config is built.
|
|
1975
|
+
* Calling add() or addAll() on a sealed set throws a TypeError.
|
|
1976
|
+
*
|
|
1977
|
+
* @returns {this}
|
|
1978
|
+
*/
|
|
1979
|
+
seal() {
|
|
1980
|
+
this._sealed = true;
|
|
1981
|
+
return this;
|
|
1982
|
+
}
|
|
1983
|
+
/**
|
|
1984
|
+
* Whether the set has been sealed.
|
|
1985
|
+
* @type {boolean}
|
|
1986
|
+
*/
|
|
1987
|
+
get isSealed() {
|
|
1988
|
+
return this._sealed;
|
|
1989
|
+
}
|
|
1990
|
+
/**
|
|
1991
|
+
* Test whether the matcher's current path matches any expression in the set.
|
|
1992
|
+
*
|
|
1993
|
+
* Evaluation order (cheapest → most expensive):
|
|
1994
|
+
* 1. Exact depth + tag bucket — O(1) lookup, typically 0–2 expressions
|
|
1995
|
+
* 2. Depth-only wildcard bucket — O(1) lookup, rare
|
|
1996
|
+
* 3. Deep-wildcard list — always checked, but usually small
|
|
1997
|
+
*
|
|
1998
|
+
* @param {import('./Matcher.js').default} matcher - Matcher instance (or readOnly view)
|
|
1999
|
+
* @returns {boolean} true if any expression matches the current path
|
|
2000
|
+
*
|
|
2001
|
+
* @example
|
|
2002
|
+
* if (stopNodes.matchesAny(matcher)) {
|
|
2003
|
+
* // handle stop node
|
|
2004
|
+
* }
|
|
2005
|
+
*/
|
|
2006
|
+
matchesAny(matcher) {
|
|
2007
|
+
return this.findMatch(matcher) !== null;
|
|
2008
|
+
}
|
|
2009
|
+
/**
|
|
2010
|
+
* Find and return the first Expression that matches the matcher's current path.
|
|
2011
|
+
*
|
|
2012
|
+
* Uses the same evaluation order as matchesAny (cheapest → most expensive):
|
|
2013
|
+
* 1. Exact depth + tag bucket
|
|
2014
|
+
* 2. Depth-only wildcard bucket
|
|
2015
|
+
* 3. Deep-wildcard list
|
|
2016
|
+
*
|
|
2017
|
+
* @param {import('./Matcher.js').default} matcher - Matcher instance (or readOnly view)
|
|
2018
|
+
* @returns {import('./Expression.js').default | null} the first matching Expression, or null
|
|
2019
|
+
*
|
|
2020
|
+
* @example
|
|
2021
|
+
* const expr = stopNodes.findMatch(matcher);
|
|
2022
|
+
* if (expr) {
|
|
2023
|
+
* // access expr.config, expr.pattern, etc.
|
|
2024
|
+
* }
|
|
2025
|
+
*/
|
|
2026
|
+
findMatch(matcher) {
|
|
2027
|
+
const depth = matcher.getDepth();
|
|
2028
|
+
const tag = matcher.getCurrentTag();
|
|
2029
|
+
const exactKey = `${depth}:${tag}`;
|
|
2030
|
+
const exactBucket = this._byDepthAndTag.get(exactKey);
|
|
2031
|
+
if (exactBucket) {
|
|
2032
|
+
for (let i = 0; i < exactBucket.length; i++) {
|
|
2033
|
+
if (matcher.matches(exactBucket[i])) return exactBucket[i];
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
const wildcardBucket = this._wildcardByDepth.get(depth);
|
|
2037
|
+
if (wildcardBucket) {
|
|
2038
|
+
for (let i = 0; i < wildcardBucket.length; i++) {
|
|
2039
|
+
if (matcher.matches(wildcardBucket[i])) return wildcardBucket[i];
|
|
2040
|
+
}
|
|
2041
|
+
}
|
|
2042
|
+
const deepBucket = this._deepByTerminalTag.get(tag);
|
|
2043
|
+
if (deepBucket) {
|
|
2044
|
+
for (let i = 0; i < deepBucket.length; i++) {
|
|
2045
|
+
if (matcher.matches(deepBucket[i])) return deepBucket[i];
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
for (let i = 0; i < this._deepWildcards.length; i++) {
|
|
2049
|
+
if (matcher.matches(this._deepWildcards[i])) return this._deepWildcards[i];
|
|
2050
|
+
}
|
|
2051
|
+
return null;
|
|
2052
|
+
}
|
|
2053
|
+
};
|
|
2054
|
+
|
|
2055
|
+
// node_modules/.pnpm/path-expression-matcher@1.6.2/node_modules/path-expression-matcher/src/Matcher.js
|
|
2056
|
+
var MatcherView = class {
|
|
2057
|
+
/**
|
|
2058
|
+
* @param {Matcher} matcher - The parent Matcher instance to read from.
|
|
2059
|
+
*/
|
|
2060
|
+
constructor(matcher) {
|
|
2061
|
+
this._matcher = matcher;
|
|
2062
|
+
}
|
|
2063
|
+
/**
|
|
2064
|
+
* Get the path separator used by the parent matcher.
|
|
2065
|
+
* @returns {string}
|
|
2066
|
+
*/
|
|
2067
|
+
get separator() {
|
|
2068
|
+
return this._matcher.separator;
|
|
2069
|
+
}
|
|
2070
|
+
/**
|
|
2071
|
+
* Get current tag name.
|
|
2072
|
+
* @returns {string|undefined}
|
|
2073
|
+
*/
|
|
2074
|
+
getCurrentTag() {
|
|
2075
|
+
const path = this._matcher.path;
|
|
2076
|
+
return path.length > 0 ? path[path.length - 1].tag : void 0;
|
|
2077
|
+
}
|
|
2078
|
+
/**
|
|
2079
|
+
* Get current namespace.
|
|
2080
|
+
* @returns {string|undefined}
|
|
2081
|
+
*/
|
|
2082
|
+
getCurrentNamespace() {
|
|
2083
|
+
const path = this._matcher.path;
|
|
2084
|
+
return path.length > 0 ? path[path.length - 1].namespace : void 0;
|
|
2085
|
+
}
|
|
2086
|
+
/**
|
|
2087
|
+
* Get current node's attribute value.
|
|
2088
|
+
* @param {string} attrName
|
|
2089
|
+
* @returns {*}
|
|
2090
|
+
*/
|
|
2091
|
+
getAttrValue(attrName) {
|
|
2092
|
+
const path = this._matcher.path;
|
|
2093
|
+
if (path.length === 0) return void 0;
|
|
2094
|
+
return path[path.length - 1].values?.[attrName];
|
|
2095
|
+
}
|
|
2096
|
+
/**
|
|
2097
|
+
* Check if current node has an attribute.
|
|
2098
|
+
* @param {string} attrName
|
|
2099
|
+
* @returns {boolean}
|
|
2100
|
+
*/
|
|
2101
|
+
hasAttr(attrName) {
|
|
2102
|
+
const path = this._matcher.path;
|
|
2103
|
+
if (path.length === 0) return false;
|
|
2104
|
+
const current = path[path.length - 1];
|
|
2105
|
+
return current.values !== void 0 && attrName in current.values;
|
|
2106
|
+
}
|
|
2107
|
+
/**
|
|
2108
|
+
* Get the value of a "kept" attribute from the nearest ancestor (or
|
|
2109
|
+
* current node) that declared it via `push(tag, attrs, ns, { keep: [...] })`.
|
|
2110
|
+
* @param {string} attrName
|
|
2111
|
+
* @returns {*}
|
|
2112
|
+
*/
|
|
2113
|
+
getAnyParentAttr(attrName) {
|
|
2114
|
+
return this._matcher.getAnyParentAttr(attrName);
|
|
2115
|
+
}
|
|
2116
|
+
/**
|
|
2117
|
+
* Check whether any ancestor (or the current node) kept the given
|
|
2118
|
+
* attribute via `push(tag, attrs, ns, { keep: [...] })`.
|
|
2119
|
+
* @param {string} attrName
|
|
2120
|
+
* @returns {boolean}
|
|
2121
|
+
*/
|
|
2122
|
+
hasAnyParentAttr(attrName) {
|
|
2123
|
+
return this._matcher.hasAnyParentAttr(attrName);
|
|
2124
|
+
}
|
|
2125
|
+
/**
|
|
2126
|
+
* Get current node's sibling position (child index in parent).
|
|
2127
|
+
* @returns {number}
|
|
2128
|
+
*/
|
|
2129
|
+
getPosition() {
|
|
2130
|
+
const path = this._matcher.path;
|
|
2131
|
+
if (path.length === 0) return -1;
|
|
2132
|
+
return path[path.length - 1].position ?? 0;
|
|
2133
|
+
}
|
|
2134
|
+
/**
|
|
2135
|
+
* Get current node's repeat counter (occurrence count of this tag name).
|
|
2136
|
+
* @returns {number}
|
|
2137
|
+
*/
|
|
2138
|
+
getCounter() {
|
|
2139
|
+
const path = this._matcher.path;
|
|
2140
|
+
if (path.length === 0) return -1;
|
|
2141
|
+
return path[path.length - 1].counter ?? 0;
|
|
2142
|
+
}
|
|
2143
|
+
/**
|
|
2144
|
+
* Get current node's sibling index (alias for getPosition).
|
|
2145
|
+
* @returns {number}
|
|
2146
|
+
* @deprecated Use getPosition() or getCounter() instead
|
|
2147
|
+
*/
|
|
2148
|
+
getIndex() {
|
|
2149
|
+
return this.getPosition();
|
|
2150
|
+
}
|
|
2151
|
+
/**
|
|
2152
|
+
* Get current path depth.
|
|
2153
|
+
* @returns {number}
|
|
2154
|
+
*/
|
|
2155
|
+
getDepth() {
|
|
2156
|
+
return this._matcher.path.length;
|
|
2157
|
+
}
|
|
2158
|
+
/**
|
|
2159
|
+
* Get path as string.
|
|
2160
|
+
* @param {string} [separator] - Optional separator (uses default if not provided)
|
|
2161
|
+
* @param {boolean} [includeNamespace=true]
|
|
2162
|
+
* @returns {string}
|
|
2163
|
+
*/
|
|
2164
|
+
toString(separator, includeNamespace = true) {
|
|
2165
|
+
return this._matcher.toString(separator, includeNamespace);
|
|
2166
|
+
}
|
|
2167
|
+
/**
|
|
2168
|
+
* Get path as array of tag names.
|
|
2169
|
+
* @returns {string[]}
|
|
2170
|
+
*/
|
|
2171
|
+
toArray() {
|
|
2172
|
+
return this._matcher.path.map((n) => n.tag);
|
|
2173
|
+
}
|
|
2174
|
+
/**
|
|
2175
|
+
* Match current path against an Expression.
|
|
2176
|
+
* @param {Expression} expression
|
|
2177
|
+
* @returns {boolean}
|
|
2178
|
+
*/
|
|
2179
|
+
matches(expression) {
|
|
2180
|
+
return this._matcher.matches(expression);
|
|
2181
|
+
}
|
|
2182
|
+
/**
|
|
2183
|
+
* Match any expression in the given set against the current path.
|
|
2184
|
+
* @param {ExpressionSet} exprSet
|
|
2185
|
+
* @returns {boolean}
|
|
2186
|
+
*/
|
|
2187
|
+
matchesAny(exprSet) {
|
|
2188
|
+
return exprSet.matchesAny(this._matcher);
|
|
2189
|
+
}
|
|
2190
|
+
};
|
|
2191
|
+
var Matcher = class {
|
|
2192
|
+
/**
|
|
2193
|
+
* Create a new Matcher.
|
|
2194
|
+
* @param {Object} [options={}]
|
|
2195
|
+
* @param {string} [options.separator='.'] - Default path separator
|
|
2196
|
+
*/
|
|
2197
|
+
constructor(options = {}) {
|
|
2198
|
+
this.separator = options.separator || ".";
|
|
2199
|
+
this.path = [];
|
|
2200
|
+
this.siblingStacks = [];
|
|
2201
|
+
this._pathStringCache = null;
|
|
2202
|
+
this._view = new MatcherView(this);
|
|
2203
|
+
this._keptAttrs = [];
|
|
2204
|
+
}
|
|
2205
|
+
/**
|
|
2206
|
+
* Push a new tag onto the path.
|
|
2207
|
+
* @param {string} tagName
|
|
2208
|
+
* @param {Object|null} [attrValues=null]
|
|
2209
|
+
* @param {string|null} [namespace=null]
|
|
2210
|
+
* @param {Object|null} [options=null]
|
|
2211
|
+
* @param {string[]} [options.keep] - Names of attributes (from attrValues)
|
|
2212
|
+
*/
|
|
2213
|
+
push(tagName, attrValues = null, namespace = null, options = null) {
|
|
2214
|
+
this._pathStringCache = null;
|
|
2215
|
+
if (this.path.length > 0) {
|
|
2216
|
+
this.path[this.path.length - 1].values = void 0;
|
|
2217
|
+
}
|
|
2218
|
+
const currentLevel = this.path.length;
|
|
2219
|
+
let level = this.siblingStacks[currentLevel];
|
|
2220
|
+
if (!level) {
|
|
2221
|
+
level = { counts: /* @__PURE__ */ new Map(), total: 0 };
|
|
2222
|
+
this.siblingStacks[currentLevel] = level;
|
|
2223
|
+
}
|
|
2224
|
+
const siblingKey = namespace ? `${namespace}:${tagName}` : tagName;
|
|
2225
|
+
const counter = level.counts.get(siblingKey) || 0;
|
|
2226
|
+
const position = level.total;
|
|
2227
|
+
level.counts.set(siblingKey, counter + 1);
|
|
2228
|
+
level.total++;
|
|
2229
|
+
const node = {
|
|
2230
|
+
tag: tagName,
|
|
2231
|
+
position,
|
|
2232
|
+
counter
|
|
2233
|
+
};
|
|
2234
|
+
if (namespace !== null && namespace !== void 0) {
|
|
2235
|
+
node.namespace = namespace;
|
|
2236
|
+
}
|
|
2237
|
+
if (attrValues !== null && attrValues !== void 0) {
|
|
2238
|
+
node.values = attrValues;
|
|
2239
|
+
}
|
|
2240
|
+
this.path.push(node);
|
|
2241
|
+
const depth = this.path.length;
|
|
2242
|
+
const keep = options !== null ? options.keep : null;
|
|
2243
|
+
if (keep !== null && keep !== void 0 && keep.length > 0 && attrValues) {
|
|
2244
|
+
for (let i = 0; i < keep.length; i++) {
|
|
2245
|
+
const name = keep[i];
|
|
2246
|
+
if (attrValues[name] !== void 0) {
|
|
2247
|
+
this._keptAttrs.push({ depth, name, value: attrValues[name] });
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
/**
|
|
2253
|
+
* Pop the last tag from the path.
|
|
2254
|
+
* @returns {Object|undefined} The popped node
|
|
2255
|
+
*/
|
|
2256
|
+
pop() {
|
|
2257
|
+
if (this.path.length === 0) return void 0;
|
|
2258
|
+
this._pathStringCache = null;
|
|
2259
|
+
const node = this.path.pop();
|
|
2260
|
+
if (this.siblingStacks.length > this.path.length + 1) {
|
|
2261
|
+
this.siblingStacks.length = this.path.length + 1;
|
|
2262
|
+
}
|
|
2263
|
+
const poppedDepth = this.path.length + 1;
|
|
2264
|
+
while (this._keptAttrs.length > 0 && this._keptAttrs[this._keptAttrs.length - 1].depth >= poppedDepth) {
|
|
2265
|
+
this._keptAttrs.pop();
|
|
2266
|
+
}
|
|
2267
|
+
return node;
|
|
2268
|
+
}
|
|
2269
|
+
/**
|
|
2270
|
+
* Update current node's attribute values.
|
|
2271
|
+
* Useful when attributes are parsed after push.
|
|
2272
|
+
* @param {Object} attrValues
|
|
2273
|
+
*/
|
|
2274
|
+
updateCurrent(attrValues) {
|
|
2275
|
+
if (this.path.length > 0) {
|
|
2276
|
+
const current = this.path[this.path.length - 1];
|
|
2277
|
+
if (attrValues !== null && attrValues !== void 0) {
|
|
2278
|
+
current.values = attrValues;
|
|
2279
|
+
}
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
/**
|
|
2283
|
+
* Get current tag name.
|
|
2284
|
+
* @returns {string|undefined}
|
|
2285
|
+
*/
|
|
2286
|
+
getCurrentTag() {
|
|
2287
|
+
return this.path.length > 0 ? this.path[this.path.length - 1].tag : void 0;
|
|
2288
|
+
}
|
|
2289
|
+
/**
|
|
2290
|
+
* Get current namespace.
|
|
2291
|
+
* @returns {string|undefined}
|
|
2292
|
+
*/
|
|
2293
|
+
getCurrentNamespace() {
|
|
2294
|
+
return this.path.length > 0 ? this.path[this.path.length - 1].namespace : void 0;
|
|
2295
|
+
}
|
|
2296
|
+
/**
|
|
2297
|
+
* Get current node's attribute value.
|
|
2298
|
+
* @param {string} attrName
|
|
2299
|
+
* @returns {*}
|
|
2300
|
+
*/
|
|
2301
|
+
getAttrValue(attrName) {
|
|
2302
|
+
if (this.path.length === 0) return void 0;
|
|
2303
|
+
return this.path[this.path.length - 1].values?.[attrName];
|
|
2304
|
+
}
|
|
2305
|
+
/**
|
|
2306
|
+
* Check if current node has an attribute.
|
|
2307
|
+
* @param {string} attrName
|
|
2308
|
+
* @returns {boolean}
|
|
2309
|
+
*/
|
|
2310
|
+
hasAttr(attrName) {
|
|
2311
|
+
if (this.path.length === 0) return false;
|
|
2312
|
+
const current = this.path[this.path.length - 1];
|
|
2313
|
+
return current.values !== void 0 && attrName in current.values;
|
|
2314
|
+
}
|
|
2315
|
+
/**
|
|
2316
|
+
* Get the value of a "kept" attribute from the nearest ancestor (or
|
|
2317
|
+
* current node) that declared it via `push(tag, attrs, ns, { keep: [...] })`.
|
|
2318
|
+
* Unlike getAttrValue(), this works regardless of how deep the path has
|
|
2319
|
+
* gone since the attribute was pushed — but only for attribute names that
|
|
2320
|
+
* were explicitly marked with `keep` at push time. Cost is proportional to
|
|
2321
|
+
* the number of currently-kept attributes (typically 0-3), not path depth.
|
|
2322
|
+
* @param {string} attrName
|
|
2323
|
+
* @returns {*} the value, or undefined if no ancestor kept this attribute
|
|
2324
|
+
*/
|
|
2325
|
+
getAnyParentAttr(attrName) {
|
|
2326
|
+
const kept = this._keptAttrs;
|
|
2327
|
+
for (let i = kept.length - 1; i >= 0; i--) {
|
|
2328
|
+
if (kept[i].name === attrName) return kept[i].value;
|
|
2329
|
+
}
|
|
2330
|
+
return void 0;
|
|
2331
|
+
}
|
|
2332
|
+
/**
|
|
2333
|
+
* Check whether any ancestor (or the current node) kept the given
|
|
2334
|
+
* attribute via `push(tag, attrs, ns, { keep: [...] })`.
|
|
2335
|
+
* @param {string} attrName
|
|
2336
|
+
* @returns {boolean}
|
|
2337
|
+
*/
|
|
2338
|
+
hasAnyParentAttr(attrName) {
|
|
2339
|
+
const kept = this._keptAttrs;
|
|
2340
|
+
for (let i = kept.length - 1; i >= 0; i--) {
|
|
2341
|
+
if (kept[i].name === attrName) return true;
|
|
2342
|
+
}
|
|
2343
|
+
return false;
|
|
2344
|
+
}
|
|
2345
|
+
/**
|
|
2346
|
+
* Get current node's sibling position (child index in parent).
|
|
2347
|
+
* @returns {number}
|
|
2348
|
+
*/
|
|
2349
|
+
getPosition() {
|
|
2350
|
+
if (this.path.length === 0) return -1;
|
|
2351
|
+
return this.path[this.path.length - 1].position ?? 0;
|
|
2352
|
+
}
|
|
2353
|
+
/**
|
|
2354
|
+
* Get current node's repeat counter (occurrence count of this tag name).
|
|
2355
|
+
* @returns {number}
|
|
2356
|
+
*/
|
|
2357
|
+
getCounter() {
|
|
2358
|
+
if (this.path.length === 0) return -1;
|
|
2359
|
+
return this.path[this.path.length - 1].counter ?? 0;
|
|
2360
|
+
}
|
|
2361
|
+
/**
|
|
2362
|
+
* Get current node's sibling index (alias for getPosition).
|
|
2363
|
+
* @returns {number}
|
|
2364
|
+
* @deprecated Use getPosition() or getCounter() instead
|
|
2365
|
+
*/
|
|
2366
|
+
getIndex() {
|
|
2367
|
+
return this.getPosition();
|
|
2368
|
+
}
|
|
2369
|
+
/**
|
|
2370
|
+
* Get current path depth.
|
|
2371
|
+
* @returns {number}
|
|
2372
|
+
*/
|
|
2373
|
+
getDepth() {
|
|
2374
|
+
return this.path.length;
|
|
2375
|
+
}
|
|
2376
|
+
/**
|
|
2377
|
+
* Get path as string.
|
|
2378
|
+
* @param {string} [separator] - Optional separator (uses default if not provided)
|
|
2379
|
+
* @param {boolean} [includeNamespace=true]
|
|
2380
|
+
* @returns {string}
|
|
2381
|
+
*/
|
|
2382
|
+
toString(separator, includeNamespace = true) {
|
|
2383
|
+
const sep2 = separator || this.separator;
|
|
2384
|
+
const isDefault = sep2 === this.separator && includeNamespace === true;
|
|
2385
|
+
if (isDefault) {
|
|
2386
|
+
if (this._pathStringCache !== null) {
|
|
2387
|
+
return this._pathStringCache;
|
|
2388
|
+
}
|
|
2389
|
+
const result = this.path.map(
|
|
2390
|
+
(n) => n.namespace ? `${n.namespace}:${n.tag}` : n.tag
|
|
2391
|
+
).join(sep2);
|
|
2392
|
+
this._pathStringCache = result;
|
|
2393
|
+
return result;
|
|
2394
|
+
}
|
|
2395
|
+
return this.path.map(
|
|
2396
|
+
(n) => includeNamespace && n.namespace ? `${n.namespace}:${n.tag}` : n.tag
|
|
2397
|
+
).join(sep2);
|
|
2398
|
+
}
|
|
2399
|
+
/**
|
|
2400
|
+
* Get path as array of tag names.
|
|
2401
|
+
* @returns {string[]}
|
|
2402
|
+
*/
|
|
2403
|
+
toArray() {
|
|
2404
|
+
return this.path.map((n) => n.tag);
|
|
2405
|
+
}
|
|
2406
|
+
/**
|
|
2407
|
+
* Reset the path to empty.
|
|
2408
|
+
*/
|
|
2409
|
+
reset() {
|
|
2410
|
+
this._pathStringCache = null;
|
|
2411
|
+
this.path = [];
|
|
2412
|
+
this.siblingStacks = [];
|
|
2413
|
+
this._keptAttrs = [];
|
|
2414
|
+
}
|
|
2415
|
+
/**
|
|
2416
|
+
* Match current path against an Expression.
|
|
2417
|
+
* @param {Expression} expression
|
|
2418
|
+
* @returns {boolean}
|
|
2419
|
+
*/
|
|
2420
|
+
matches(expression) {
|
|
2421
|
+
const segments = expression.segments;
|
|
2422
|
+
if (segments.length === 0) {
|
|
2423
|
+
return false;
|
|
2424
|
+
}
|
|
2425
|
+
if (expression.hasDeepWildcard()) {
|
|
2426
|
+
return this._matchWithDeepWildcard(segments);
|
|
2427
|
+
}
|
|
2428
|
+
return this._matchSimple(segments);
|
|
2429
|
+
}
|
|
2430
|
+
/**
|
|
2431
|
+
* @private
|
|
2432
|
+
*/
|
|
2433
|
+
_matchSimple(segments) {
|
|
2434
|
+
if (this.path.length !== segments.length) {
|
|
2435
|
+
return false;
|
|
2436
|
+
}
|
|
2437
|
+
for (let i = 0; i < segments.length; i++) {
|
|
2438
|
+
if (!this._matchSegment(segments[i], this.path[i], i === this.path.length - 1)) {
|
|
2439
|
+
return false;
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
return true;
|
|
2443
|
+
}
|
|
2444
|
+
/**
|
|
2445
|
+
* @private
|
|
2446
|
+
*/
|
|
2447
|
+
_matchWithDeepWildcard(segments) {
|
|
2448
|
+
let pathIdx = this.path.length - 1;
|
|
2449
|
+
let segIdx = segments.length - 1;
|
|
2450
|
+
while (segIdx >= 0 && pathIdx >= 0) {
|
|
2451
|
+
const segment = segments[segIdx];
|
|
2452
|
+
if (segment.type === "deep-wildcard") {
|
|
2453
|
+
segIdx--;
|
|
2454
|
+
if (segIdx < 0) {
|
|
2455
|
+
return true;
|
|
2456
|
+
}
|
|
2457
|
+
const nextSeg = segments[segIdx];
|
|
2458
|
+
let found = false;
|
|
2459
|
+
for (let i = pathIdx; i >= 0; i--) {
|
|
2460
|
+
if (this._matchSegment(nextSeg, this.path[i], i === this.path.length - 1)) {
|
|
2461
|
+
pathIdx = i - 1;
|
|
2462
|
+
segIdx--;
|
|
2463
|
+
found = true;
|
|
2464
|
+
break;
|
|
2465
|
+
}
|
|
2466
|
+
}
|
|
2467
|
+
if (!found) {
|
|
2468
|
+
return false;
|
|
2469
|
+
}
|
|
2470
|
+
} else {
|
|
2471
|
+
if (!this._matchSegment(segment, this.path[pathIdx], pathIdx === this.path.length - 1)) {
|
|
2472
|
+
return false;
|
|
2473
|
+
}
|
|
2474
|
+
pathIdx--;
|
|
2475
|
+
segIdx--;
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2478
|
+
return segIdx < 0;
|
|
2479
|
+
}
|
|
2480
|
+
/**
|
|
2481
|
+
* @private
|
|
2482
|
+
*/
|
|
2483
|
+
_matchSegment(segment, node, isCurrentNode) {
|
|
2484
|
+
if (segment.tag !== "*" && segment.tag !== node.tag) {
|
|
2485
|
+
return false;
|
|
2486
|
+
}
|
|
2487
|
+
if (segment.namespace !== void 0) {
|
|
2488
|
+
if (segment.namespace !== "*" && segment.namespace !== node.namespace) {
|
|
2489
|
+
return false;
|
|
2490
|
+
}
|
|
2491
|
+
}
|
|
2492
|
+
if (segment.attrName !== void 0) {
|
|
2493
|
+
if (!isCurrentNode) {
|
|
2494
|
+
return false;
|
|
2495
|
+
}
|
|
2496
|
+
if (!node.values || !(segment.attrName in node.values)) {
|
|
2497
|
+
return false;
|
|
2498
|
+
}
|
|
2499
|
+
if (segment.attrValue !== void 0) {
|
|
2500
|
+
if (String(node.values[segment.attrName]) !== String(segment.attrValue)) {
|
|
2501
|
+
return false;
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
if (segment.position !== void 0) {
|
|
2506
|
+
if (!isCurrentNode) {
|
|
2507
|
+
return false;
|
|
2508
|
+
}
|
|
2509
|
+
const counter = node.counter ?? 0;
|
|
2510
|
+
if (segment.position === "first" && counter !== 0) {
|
|
2511
|
+
return false;
|
|
2512
|
+
} else if (segment.position === "odd" && counter % 2 !== 1) {
|
|
2513
|
+
return false;
|
|
2514
|
+
} else if (segment.position === "even" && counter % 2 !== 0) {
|
|
2515
|
+
return false;
|
|
2516
|
+
} else if (segment.position === "nth" && counter !== segment.positionValue) {
|
|
2517
|
+
return false;
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2520
|
+
return true;
|
|
2521
|
+
}
|
|
2522
|
+
/**
|
|
2523
|
+
* Match any expression in the given set against the current path.
|
|
2524
|
+
* @param {ExpressionSet} exprSet
|
|
2525
|
+
* @returns {boolean}
|
|
2526
|
+
*/
|
|
2527
|
+
matchesAny(exprSet) {
|
|
2528
|
+
return exprSet.matchesAny(this);
|
|
2529
|
+
}
|
|
2530
|
+
/**
|
|
2531
|
+
* Create a snapshot of current state.
|
|
2532
|
+
* @returns {Object}
|
|
2533
|
+
*/
|
|
2534
|
+
snapshot() {
|
|
2535
|
+
return {
|
|
2536
|
+
path: this.path.map((node) => ({ ...node })),
|
|
2537
|
+
siblingStacks: this.siblingStacks.map((level) => level ? { counts: new Map(level.counts), total: level.total } : level),
|
|
2538
|
+
keptAttrs: this._keptAttrs.map((entry) => ({ ...entry }))
|
|
2539
|
+
};
|
|
2540
|
+
}
|
|
2541
|
+
/**
|
|
2542
|
+
* Restore state from snapshot.
|
|
2543
|
+
* @param {Object} snapshot
|
|
2544
|
+
*/
|
|
2545
|
+
restore(snapshot) {
|
|
2546
|
+
this._pathStringCache = null;
|
|
2547
|
+
this.path = snapshot.path.map((node) => ({ ...node }));
|
|
2548
|
+
this.siblingStacks = snapshot.siblingStacks.map((level) => level ? { counts: new Map(level.counts), total: level.total } : level);
|
|
2549
|
+
this._keptAttrs = (snapshot.keptAttrs || []).map((entry) => ({ ...entry }));
|
|
2550
|
+
}
|
|
2551
|
+
/**
|
|
2552
|
+
* Return the read-only {@link MatcherView} for this matcher.
|
|
2553
|
+
*
|
|
2554
|
+
* The same instance is returned on every call — no allocation occurs.
|
|
2555
|
+
* It always reflects the current parser state and is safe to pass to
|
|
2556
|
+
* user callbacks without risk of accidental mutation.
|
|
2557
|
+
*
|
|
2558
|
+
* @returns {MatcherView}
|
|
2559
|
+
*
|
|
2560
|
+
* @example
|
|
2561
|
+
* const view = matcher.readOnly();
|
|
2562
|
+
* // pass view to callbacks — it stays in sync automatically
|
|
2563
|
+
* view.matches(expr); // ✓
|
|
2564
|
+
* view.getCurrentTag(); // ✓
|
|
2565
|
+
* // view.push(...) // ✗ method does not exist — caught by TypeScript
|
|
2566
|
+
*/
|
|
2567
|
+
readOnly() {
|
|
2568
|
+
return this._view;
|
|
2569
|
+
}
|
|
2570
|
+
};
|
|
2571
|
+
|
|
2572
|
+
// node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/contexts/html.js
|
|
2573
|
+
var HTML_PATTERNS = [
|
|
2574
|
+
{
|
|
2575
|
+
id: "html-script-open",
|
|
2576
|
+
description: "<script opening tag",
|
|
2577
|
+
pattern: /<script[\s>/]/i
|
|
2578
|
+
},
|
|
2579
|
+
{
|
|
2580
|
+
id: "html-script-close",
|
|
2581
|
+
description: "</script closing tag",
|
|
2582
|
+
pattern: /<\/script[\s>]/i
|
|
2583
|
+
},
|
|
2584
|
+
{
|
|
2585
|
+
id: "html-javascript-protocol",
|
|
2586
|
+
description: "javascript: URI scheme (with optional whitespace/encoding)",
|
|
2587
|
+
// Handles javascript:, j\u0061vascript:, and whitespace variants
|
|
2588
|
+
pattern: /j[\t\n\r ]*a[\t\n\r ]*v[\t\n\r ]*a[\t\n\r ]*s[\t\n\r ]*c[\t\n\r ]*r[\t\n\r ]*i[\t\n\r ]*p[\t\n\r ]*t[\t\n\r ]*:/i
|
|
2589
|
+
},
|
|
2590
|
+
{
|
|
2591
|
+
id: "html-vbscript-protocol",
|
|
2592
|
+
description: "vbscript: URI scheme",
|
|
2593
|
+
pattern: /vbscript[\t\n\r ]*:/i
|
|
2594
|
+
},
|
|
2595
|
+
{
|
|
2596
|
+
id: "html-data-html",
|
|
2597
|
+
description: "data:text/html URI \u2014 can execute scripts in browsers",
|
|
2598
|
+
pattern: /data[\t\n\r ]*:[\t\n\r ]*text\/html/i
|
|
2599
|
+
},
|
|
2600
|
+
{
|
|
2601
|
+
id: "html-data-xhtml",
|
|
2602
|
+
description: "data:application/xhtml+xml URI",
|
|
2603
|
+
pattern: /data[\t\n\r ]*:[\t\n\r ]*application\/xhtml/i
|
|
2604
|
+
},
|
|
2605
|
+
{
|
|
2606
|
+
id: "html-data-svg",
|
|
2607
|
+
description: "data:image/svg+xml URI \u2014 can execute scripts",
|
|
2608
|
+
pattern: /data[\t\n\r ]*:[\t\n\r ]*image\/svg\+xml/i
|
|
2609
|
+
},
|
|
2610
|
+
{
|
|
2611
|
+
id: "html-inline-event-handler",
|
|
2612
|
+
description: "Inline event handler attributes: onclick=, onerror=, onload=, etc.",
|
|
2613
|
+
// \bon ensures we match a word boundary so "phonetic=" is not caught
|
|
2614
|
+
pattern: /\bon\w{1,30}\s*=/i
|
|
2615
|
+
},
|
|
2616
|
+
{
|
|
2617
|
+
id: "html-entity-obfuscated-script",
|
|
2618
|
+
description: "HTML-entity-encoded <script (e.g. <script or <script)",
|
|
2619
|
+
// Entities include optional trailing semicolon: < or < (both valid in HTML5)
|
|
2620
|
+
pattern: /(?:�*3[Cc];?|�*60;?|<)\s*script/i
|
|
2621
|
+
},
|
|
2622
|
+
{
|
|
2623
|
+
id: "html-entity-obfuscated-javascript",
|
|
2624
|
+
description: 'HTML-entity-encoded javascript: (partial \u2014 catches common j or j for "j")',
|
|
2625
|
+
pattern: /(?:�*6[Aa];?|�*106;?)\s*(?:�*61;?|a)[\s\S]{0,80}script\s*:/i
|
|
2626
|
+
},
|
|
2627
|
+
{
|
|
2628
|
+
id: "html-style-expression",
|
|
2629
|
+
description: "CSS expression() \u2014 IE-era code execution in style attributes",
|
|
2630
|
+
pattern: /style[\s\S]{0,20}expression\s*\(/i
|
|
2631
|
+
},
|
|
2632
|
+
{
|
|
2633
|
+
id: "html-object-embed",
|
|
2634
|
+
description: "<object or <embed tags that can load active content",
|
|
2635
|
+
pattern: /<(?:object|embed)[\s>/]/i
|
|
2636
|
+
},
|
|
2637
|
+
{
|
|
2638
|
+
id: "html-base-tag",
|
|
2639
|
+
description: "<base href= \u2014 can hijack all relative URLs on a page",
|
|
2640
|
+
pattern: /<base[\s>]/i
|
|
2641
|
+
},
|
|
2642
|
+
{
|
|
2643
|
+
id: "html-meta-refresh",
|
|
2644
|
+
description: '<meta http-equiv="refresh" \u2014 can redirect users',
|
|
2645
|
+
pattern: /<meta[\s\S]{0,40}http-equiv[\s\S]{0,20}refresh/i
|
|
2646
|
+
},
|
|
2647
|
+
{
|
|
2648
|
+
id: "html-srcdoc",
|
|
2649
|
+
description: "srcdoc= attribute on iframes \u2014 embeds HTML that can run scripts",
|
|
2650
|
+
pattern: /srcdoc\s*=/i
|
|
2651
|
+
},
|
|
2652
|
+
{
|
|
2653
|
+
id: "html-iframe",
|
|
2654
|
+
description: "<iframe tag",
|
|
2655
|
+
pattern: /<iframe[\s>/]/i
|
|
2656
|
+
},
|
|
2657
|
+
{
|
|
2658
|
+
id: "html-form",
|
|
2659
|
+
description: "<form tag \u2014 can be used for phishing / credential harvesting injection",
|
|
2660
|
+
pattern: /<form[\s>/]/i
|
|
2661
|
+
}
|
|
2662
|
+
];
|
|
2663
|
+
var html_default = HTML_PATTERNS;
|
|
2664
|
+
|
|
2665
|
+
// node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/contexts/xml.js
|
|
2666
|
+
var XML_PATTERNS = [
|
|
2667
|
+
{
|
|
2668
|
+
id: "xml-cdata-injection",
|
|
2669
|
+
description: "CDATA section injection: <![CDATA[ breaks out of text node context",
|
|
2670
|
+
pattern: /<!\[CDATA\[/i
|
|
2671
|
+
},
|
|
2672
|
+
{
|
|
2673
|
+
id: "xml-cdata-close",
|
|
2674
|
+
description: "CDATA close sequence: ]]> can terminate an enclosing CDATA section",
|
|
2675
|
+
pattern: /\]\]>/
|
|
2676
|
+
},
|
|
2677
|
+
{
|
|
2678
|
+
id: "xml-processing-instruction",
|
|
2679
|
+
description: "XML processing instruction: <?xml-stylesheet or <?php etc.",
|
|
2680
|
+
pattern: /<\?(?:xml[\- ]|php|asp)/i
|
|
2681
|
+
},
|
|
2682
|
+
{
|
|
2683
|
+
id: "xml-doctype-injection",
|
|
2684
|
+
description: "DOCTYPE declaration embedded in content \u2014 can define entities",
|
|
2685
|
+
// Match <!DOCTYPE followed by end-of-string, whitespace, or [ (internal subset)
|
|
2686
|
+
pattern: /<!DOCTYPE(?:[\s[]|$)/i
|
|
2687
|
+
},
|
|
2688
|
+
{
|
|
2689
|
+
id: "xml-entity-system",
|
|
2690
|
+
description: "SYSTEM keyword \u2014 used in external entity declarations (XXE)",
|
|
2691
|
+
pattern: /\bSYSTEM\s+["']/i
|
|
2692
|
+
},
|
|
2693
|
+
{
|
|
2694
|
+
id: "xml-entity-public",
|
|
2695
|
+
description: "PUBLIC keyword \u2014 used in external entity declarations (XXE)",
|
|
2696
|
+
pattern: /\bPUBLIC\s+["']/i
|
|
2697
|
+
},
|
|
2698
|
+
{
|
|
2699
|
+
id: "xml-entity-declaration",
|
|
2700
|
+
description: "<!ENTITY declaration \u2014 defines entities, potential XXE or entity expansion",
|
|
2701
|
+
pattern: /<!ENTITY[\s%]/i
|
|
2702
|
+
},
|
|
2703
|
+
{
|
|
2704
|
+
id: "xml-billion-laughs",
|
|
2705
|
+
description: "Entity reference chaining / billion laughs: repeated &eX; style references",
|
|
2706
|
+
// Heuristic: 3+ consecutive entity refs suggests expansion attack
|
|
2707
|
+
pattern: /(?:&\w{1,20};){3,}/
|
|
2708
|
+
},
|
|
2709
|
+
{
|
|
2710
|
+
id: "xml-namespace-confusion",
|
|
2711
|
+
description: "xmlns: attribute injection \u2014 can redefine namespaces to confuse parsers",
|
|
2712
|
+
pattern: /\bxmlns\s*(?::\w{1,40})?\s*=/i
|
|
2713
|
+
},
|
|
2714
|
+
{
|
|
2715
|
+
id: "xml-comment-injection",
|
|
2716
|
+
description: "<!-- comment injection \u2014 can hide content from some parsers",
|
|
2717
|
+
pattern: /<!--/
|
|
2718
|
+
},
|
|
2719
|
+
{
|
|
2720
|
+
id: "xml-comment-close",
|
|
2721
|
+
description: "--> closes an enclosing XML comment",
|
|
2722
|
+
pattern: /-->/
|
|
2723
|
+
},
|
|
2724
|
+
{
|
|
2725
|
+
id: "xml-pi-close",
|
|
2726
|
+
description: "?> closes an enclosing processing instruction",
|
|
2727
|
+
pattern: /\?>/
|
|
2728
|
+
}
|
|
2729
|
+
];
|
|
2730
|
+
var xml_default = XML_PATTERNS;
|
|
2731
|
+
|
|
2732
|
+
// node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/contexts/svg.js
|
|
2733
|
+
var SVG_PATTERNS = [
|
|
2734
|
+
{
|
|
2735
|
+
id: "svg-script-element",
|
|
2736
|
+
description: "<script element inside SVG executes JavaScript",
|
|
2737
|
+
pattern: /<script[\s>/]/i
|
|
2738
|
+
},
|
|
2739
|
+
{
|
|
2740
|
+
id: "svg-xlink-href-javascript",
|
|
2741
|
+
description: "xlink:href with javascript: \u2014 classic SVG XSS via <a> or <use>",
|
|
2742
|
+
pattern: /xlink\s*:\s*href\s*=\s*["']?\s*javascript\s*:/i
|
|
2743
|
+
},
|
|
2744
|
+
{
|
|
2745
|
+
id: "svg-href-javascript",
|
|
2746
|
+
description: "href= with javascript: in SVG context (<a>, <animate>, etc.)",
|
|
2747
|
+
pattern: /href\s*=\s*["']?\s*javascript\s*:/i
|
|
2748
|
+
},
|
|
2749
|
+
{
|
|
2750
|
+
id: "svg-foreignobject",
|
|
2751
|
+
description: "<foreignObject embeds HTML inside SVG \u2014 can execute scripts",
|
|
2752
|
+
pattern: /<foreignObject[\s>/]/i
|
|
2753
|
+
},
|
|
2754
|
+
{
|
|
2755
|
+
id: "svg-use-external",
|
|
2756
|
+
description: "<use xlink:href or href pointing to external resource (non-fragment URL)",
|
|
2757
|
+
// Match <use with href= where the value starts with a non-# character (external URL)
|
|
2758
|
+
// [\"'][^#] catches quoted values not starting with #; [^\"'#\s>] catches unquoted
|
|
2759
|
+
pattern: /<use[\s\S]{0,60}(?:xlink\s*:\s*)?href\s*=\s*(?:["'][^#]|[^"'#\s>])/i
|
|
2760
|
+
},
|
|
2761
|
+
{
|
|
2762
|
+
id: "svg-animate-href",
|
|
2763
|
+
description: '<animate attributeName="href" \u2014 can dynamically change href to javascript:',
|
|
2764
|
+
pattern: /<animate[\s\S]{0,80}attributeName\s*=\s*["'][\s]*href["']/i
|
|
2765
|
+
},
|
|
2766
|
+
{
|
|
2767
|
+
id: "svg-animate-xlinkhref",
|
|
2768
|
+
description: '<animate attributeName="xlink:href"',
|
|
2769
|
+
pattern: /<animate[\s\S]{0,80}attributeName\s*=\s*["'][\s]*xlink\s*:\s*href["']/i
|
|
2770
|
+
},
|
|
2771
|
+
{
|
|
2772
|
+
id: "svg-set-javascript",
|
|
2773
|
+
description: '<set to="javascript:..." \u2014 sets an attribute to a javascript: URI',
|
|
2774
|
+
pattern: /<set[\s\S]{0,80}to\s*=\s*["']?\s*javascript\s*:/i
|
|
2775
|
+
},
|
|
2776
|
+
{
|
|
2777
|
+
id: "svg-event-handler",
|
|
2778
|
+
description: "SVG-specific event handler attributes: onload=, onerror=, onactivate=, etc.",
|
|
2779
|
+
pattern: /\bon(?:load|error|activate|begin|end|repeat|focus|blur|click|mouse\w{1,20}|key\w{1,20})\s*=/i
|
|
2780
|
+
},
|
|
2781
|
+
{
|
|
2782
|
+
id: "svg-handler-generic",
|
|
2783
|
+
description: "Generic on* handler catch-all for SVG attributes",
|
|
2784
|
+
pattern: /\bon\w{1,30}\s*=/i
|
|
2785
|
+
},
|
|
2786
|
+
{
|
|
2787
|
+
id: "svg-filter-feimage",
|
|
2788
|
+
description: "<feImage href= \u2014 filter primitive that can load external resources",
|
|
2789
|
+
pattern: /<feImage[\s\S]{0,80}(?:xlink\s*:\s*)?href\s*=/i
|
|
2790
|
+
},
|
|
2791
|
+
{
|
|
2792
|
+
id: "svg-image-external",
|
|
2793
|
+
description: "<image xlink:href with http/https or javascript protocol",
|
|
2794
|
+
pattern: /<image[\s\S]{0,80}(?:xlink\s*:\s*)?href\s*=\s*["']?\s*(?:https?|javascript)\s*:/i
|
|
2795
|
+
},
|
|
2796
|
+
{
|
|
2797
|
+
id: "svg-style-javascript",
|
|
2798
|
+
description: "style= attribute containing javascript: (e.g. background:url(javascript:...))",
|
|
2799
|
+
pattern: /style\s*=[\s\S]{0,60}javascript\s*:/i
|
|
2800
|
+
}
|
|
2801
|
+
];
|
|
2802
|
+
var svg_default = SVG_PATTERNS;
|
|
2803
|
+
|
|
2804
|
+
// node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/contexts/sql.js
|
|
2805
|
+
var SQL_PATTERNS = [
|
|
2806
|
+
{
|
|
2807
|
+
id: "sql-block-comment-open",
|
|
2808
|
+
description: "SQL block comment open: /* ... */ \u2014 unusual in legitimate user text",
|
|
2809
|
+
pattern: /\/\*/
|
|
2810
|
+
},
|
|
2811
|
+
{
|
|
2812
|
+
id: "sql-union-select",
|
|
2813
|
+
description: "UNION SELECT \u2014 most common SQL injection aggregation attack",
|
|
2814
|
+
pattern: /\bUNION\s{1,20}(?:ALL\s{1,20})?SELECT\b/i
|
|
2815
|
+
},
|
|
2816
|
+
{
|
|
2817
|
+
id: "sql-drop-table",
|
|
2818
|
+
description: "DROP TABLE \u2014 destructive DDL injection",
|
|
2819
|
+
pattern: /\bDROP\s{1,20}TABLE\b/i
|
|
2820
|
+
},
|
|
2821
|
+
{
|
|
2822
|
+
id: "sql-drop-database",
|
|
2823
|
+
description: "DROP DATABASE \u2014 destructive DDL injection",
|
|
2824
|
+
pattern: /\bDROP\s{1,20}DATABASE\b/i
|
|
2825
|
+
},
|
|
2826
|
+
{
|
|
2827
|
+
id: "sql-insert-into",
|
|
2828
|
+
description: "INSERT INTO \u2014 data injection",
|
|
2829
|
+
pattern: /\bINSERT\s{1,20}INTO\b/i
|
|
2830
|
+
},
|
|
2831
|
+
{
|
|
2832
|
+
id: "sql-delete-from",
|
|
2833
|
+
description: "DELETE FROM \u2014 data deletion injection",
|
|
2834
|
+
pattern: /\bDELETE\s{1,20}FROM\b/i
|
|
2835
|
+
},
|
|
2836
|
+
{
|
|
2837
|
+
id: "sql-update-set",
|
|
2838
|
+
description: "UPDATE ... SET \u2014 data modification injection",
|
|
2839
|
+
// Allows arbitrary content between UPDATE and SET (table name, alias, etc.)
|
|
2840
|
+
pattern: /\bUPDATE\b[\s\S]{1,60}\bSET\b/i
|
|
2841
|
+
},
|
|
2842
|
+
{
|
|
2843
|
+
id: "sql-exec-xp",
|
|
2844
|
+
description: "EXEC xp_ \u2014 MSSQL extended stored procedure execution",
|
|
2845
|
+
pattern: /\bEXEC(?:UTE)?\s{1,20}xp_/i
|
|
2846
|
+
},
|
|
2847
|
+
{
|
|
2848
|
+
id: "sql-tautology-string",
|
|
2849
|
+
description: `Classic string tautology: ' OR '1'='1 or " OR "1"="1"`,
|
|
2850
|
+
// Last quote is optional — injection may truncate it: ' OR '1'='1--
|
|
2851
|
+
pattern: /'\s{0,10}OR\s{0,10}'[^']{0,20}'\s*=\s*'[^']{0,20}/i
|
|
2852
|
+
},
|
|
2853
|
+
{
|
|
2854
|
+
id: "sql-tautology-numeric",
|
|
2855
|
+
description: "Numeric tautology: OR 1=1",
|
|
2856
|
+
pattern: /\bOR\s{1,10}1\s*=\s*1\b/i
|
|
2857
|
+
},
|
|
2858
|
+
{
|
|
2859
|
+
id: "sql-always-true-zero",
|
|
2860
|
+
description: "Numeric tautology: OR 0=0",
|
|
2861
|
+
pattern: /\bOR\s{1,10}0\s*=\s*0\b/i
|
|
2862
|
+
},
|
|
2863
|
+
{
|
|
2864
|
+
id: "sql-sleep-benchmark",
|
|
2865
|
+
description: "Time-based blind injection: SLEEP() or BENCHMARK()",
|
|
2866
|
+
pattern: /\b(?:SLEEP|BENCHMARK)\s*\(/i
|
|
2867
|
+
},
|
|
2868
|
+
{
|
|
2869
|
+
id: "sql-waitfor-delay",
|
|
2870
|
+
description: "MSSQL time-based blind injection: WAITFOR DELAY",
|
|
2871
|
+
pattern: /\bWAITFOR\s{1,20}DELAY\b/i
|
|
2872
|
+
},
|
|
2873
|
+
{
|
|
2874
|
+
id: "sql-char-function",
|
|
2875
|
+
description: "CHAR() function \u2014 used to obfuscate injected strings",
|
|
2876
|
+
pattern: /\bCHAR\s*\(\s*\d{1,3}/i
|
|
2877
|
+
},
|
|
2878
|
+
{
|
|
2879
|
+
id: "sql-information-schema",
|
|
2880
|
+
description: "INFORMATION_SCHEMA \u2014 reconnaissance query for table/column enumeration",
|
|
2881
|
+
pattern: /\bINFORMATION_SCHEMA\b/i
|
|
2882
|
+
}
|
|
2883
|
+
];
|
|
2884
|
+
var sql_default = SQL_PATTERNS;
|
|
2885
|
+
|
|
2886
|
+
// node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/contexts/shell.js
|
|
2887
|
+
var SHELL_PATTERNS = [
|
|
2888
|
+
{
|
|
2889
|
+
id: "shell-path-traversal-unix",
|
|
2890
|
+
description: "Unix path traversal: ../ \u2014 climbing the directory tree",
|
|
2891
|
+
pattern: /\.\.\//
|
|
2892
|
+
},
|
|
2893
|
+
{
|
|
2894
|
+
id: "shell-path-traversal-windows",
|
|
2895
|
+
description: "Windows path traversal: ..\\ \u2014 climbing the directory tree",
|
|
2896
|
+
pattern: /\.\.\\/
|
|
2897
|
+
},
|
|
2898
|
+
{
|
|
2899
|
+
id: "shell-path-traversal-encoded",
|
|
2900
|
+
description: "URL-encoded path traversal: %2e%2e or %2f variants",
|
|
2901
|
+
pattern: /%2e%2e|%2f\.\.|\.\.%2f/i
|
|
2902
|
+
},
|
|
2903
|
+
{
|
|
2904
|
+
id: "shell-null-byte",
|
|
2905
|
+
description: "Null byte injection: \\x00 or %00 \u2014 truncates strings in C-backed functions",
|
|
2906
|
+
pattern: /\x00|%00/
|
|
2907
|
+
},
|
|
2908
|
+
{
|
|
2909
|
+
id: "shell-semicolon",
|
|
2910
|
+
description: "Semicolon command separator: cmd1; cmd2",
|
|
2911
|
+
pattern: /;/
|
|
2912
|
+
},
|
|
2913
|
+
{
|
|
2914
|
+
id: "shell-pipe",
|
|
2915
|
+
description: "Pipe operator: cmd1 | cmd2",
|
|
2916
|
+
pattern: /\|/
|
|
2917
|
+
},
|
|
2918
|
+
{
|
|
2919
|
+
id: "shell-and-operator",
|
|
2920
|
+
description: "AND operator: cmd1 && cmd2",
|
|
2921
|
+
pattern: /&&/
|
|
2922
|
+
},
|
|
2923
|
+
{
|
|
2924
|
+
id: "shell-or-operator",
|
|
2925
|
+
description: "OR operator: cmd1 || cmd2",
|
|
2926
|
+
pattern: /\|\|/
|
|
2927
|
+
},
|
|
2928
|
+
{
|
|
2929
|
+
id: "shell-backtick",
|
|
2930
|
+
description: "Backtick command substitution: `cmd`",
|
|
2931
|
+
pattern: /`/
|
|
2932
|
+
},
|
|
2933
|
+
{
|
|
2934
|
+
id: "shell-dollar-paren",
|
|
2935
|
+
description: "Dollar-paren command substitution: $(cmd)",
|
|
2936
|
+
pattern: /\$\(/
|
|
2937
|
+
},
|
|
2938
|
+
{
|
|
2939
|
+
id: "shell-dollar-brace",
|
|
2940
|
+
description: "Dollar-brace variable expansion: ${var} \u2014 can be abused for injection",
|
|
2941
|
+
pattern: /\$\{/
|
|
2942
|
+
},
|
|
2943
|
+
{
|
|
2944
|
+
id: "shell-redirect-out",
|
|
2945
|
+
description: "Output redirection: cmd > file or cmd >> file",
|
|
2946
|
+
pattern: />{1,2}/
|
|
2947
|
+
},
|
|
2948
|
+
{
|
|
2949
|
+
id: "shell-redirect-in",
|
|
2950
|
+
description: "Input redirection: cmd < file",
|
|
2951
|
+
pattern: /</
|
|
2952
|
+
},
|
|
2953
|
+
{
|
|
2954
|
+
id: "shell-newline-injection",
|
|
2955
|
+
description: "Newline injection: \\n or \\r \u2014 can inject new shell commands",
|
|
2956
|
+
pattern: /[\n\r]/
|
|
2957
|
+
},
|
|
2958
|
+
{
|
|
2959
|
+
id: "shell-glob-star",
|
|
2960
|
+
description: "Glob expansion: * or ? \u2014 can expand to unintended files",
|
|
2961
|
+
// Only flag when combined with path separators to reduce false positives
|
|
2962
|
+
pattern: /[/\\][*?]/
|
|
2963
|
+
},
|
|
2964
|
+
{
|
|
2965
|
+
id: "shell-absolute-root",
|
|
2966
|
+
description: "Absolute root path injection: string starting with / or \\ (Windows UNC)",
|
|
2967
|
+
pattern: /^(?:\/|\\\\)/
|
|
2968
|
+
},
|
|
2969
|
+
{
|
|
2970
|
+
id: "shell-windows-drive",
|
|
2971
|
+
description: "Windows drive letter path injection: C:\\ or D:/",
|
|
2972
|
+
pattern: /^[a-zA-Z]:[/\\]/
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
id: "shell-curl-wget",
|
|
2976
|
+
description: "curl/wget with URL or flags \u2014 can exfiltrate data or download payloads",
|
|
2977
|
+
// Require a URL scheme (http/https/ftp) or a flag (-) to reduce false positives
|
|
2978
|
+
// "curl is a tool" won't match; "curl http://..." or "curl -s ..." will
|
|
2979
|
+
pattern: /\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i
|
|
2980
|
+
}
|
|
2981
|
+
];
|
|
2982
|
+
var shell_default = SHELL_PATTERNS;
|
|
2983
|
+
|
|
2984
|
+
// node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/contexts/redos.js
|
|
2985
|
+
var REDOS_PATTERNS = [
|
|
2986
|
+
{
|
|
2987
|
+
id: "redos-nested-quantifier-plus",
|
|
2988
|
+
description: "Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.",
|
|
2989
|
+
// Matches any group containing a + quantifier, with an outer * or + — catches (a+)+, (.+b)*, etc.
|
|
2990
|
+
pattern: /\([^)]*\+[^)]*\)[+*]/
|
|
2991
|
+
},
|
|
2992
|
+
{
|
|
2993
|
+
id: "redos-nested-quantifier-star",
|
|
2994
|
+
description: "Nested * quantifier: (a*)* or (a*)+ \u2014 catastrophic backtracking",
|
|
2995
|
+
pattern: /\([^)]*\*[^)]*\)[*+]/
|
|
2996
|
+
},
|
|
2997
|
+
{
|
|
2998
|
+
id: "redos-nested-groups",
|
|
2999
|
+
description: "Doubly nested quantified groups: ((a+)+) \u2014 guaranteed catastrophic",
|
|
3000
|
+
pattern: /\(\([^)]{0,40}\)[+*]\)[+*]/
|
|
3001
|
+
},
|
|
3002
|
+
{
|
|
3003
|
+
id: "redos-alternation-overlap",
|
|
3004
|
+
description: "Overlapping alternation under quantifier: (a|a)+ \u2014 ambiguous NFA paths",
|
|
3005
|
+
// Detect repeated identical alternatives under a quantifier
|
|
3006
|
+
pattern: /\(([^|()]{1,20})\|(?:\1)(?:\|[^|()]{1,20}){0,5}\)[+*?]{1,2}/
|
|
3007
|
+
},
|
|
3008
|
+
{
|
|
3009
|
+
id: "redos-star-plus-concat",
|
|
3010
|
+
description: "(x*x)+ pattern \u2014 triggers super-linear backtracking",
|
|
3011
|
+
pattern: /\([^)]{0,10}\*[^)]{0,10}\)[+*]/
|
|
3012
|
+
},
|
|
3013
|
+
{
|
|
3014
|
+
id: "redos-dot-star-greedy",
|
|
3015
|
+
description: "(.*){n,} or (.+){n,} \u2014 repeated greedy dot quantifiers",
|
|
3016
|
+
pattern: /\(\.[*+]\)\{?\d/
|
|
3017
|
+
},
|
|
3018
|
+
{
|
|
3019
|
+
id: "redos-large-repetition",
|
|
3020
|
+
description: "Very large fixed or range repetition count {1000,} or {1000,n} \u2014 denial of service via backtracking",
|
|
3021
|
+
// Matches { followed by 4+ digits (≥1000), then optional ,digits }
|
|
3022
|
+
pattern: /\{\d{4,}(?:,\d*)?\}/
|
|
3023
|
+
},
|
|
3024
|
+
{
|
|
3025
|
+
id: "redos-catastrophic-alternation",
|
|
3026
|
+
description: "Long alternation with many similar branches \u2014 polynomial backtracking risk",
|
|
3027
|
+
// Heuristic: 10+ pipe-separated alternatives in a single group
|
|
3028
|
+
pattern: /\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/
|
|
3029
|
+
}
|
|
3030
|
+
];
|
|
3031
|
+
var redos_default = REDOS_PATTERNS;
|
|
3032
|
+
|
|
3033
|
+
// node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/contexts/nosql.js
|
|
3034
|
+
var sep = `["'\\s]*:`;
|
|
3035
|
+
var NOSQL_PATTERNS = [
|
|
3036
|
+
// ─── MongoDB $ operator injection ────────────────────────────────────────
|
|
3037
|
+
{
|
|
3038
|
+
id: "nosql-where-operator",
|
|
3039
|
+
description: "$where \u2014 executes arbitrary JavaScript server-side in MongoDB",
|
|
3040
|
+
pattern: new RegExp(`\\$where${sep}`, "i")
|
|
3041
|
+
},
|
|
3042
|
+
{
|
|
3043
|
+
id: "nosql-ne-operator",
|
|
3044
|
+
description: '$ne \u2014 "not equal" operator used to bypass equality checks',
|
|
3045
|
+
pattern: new RegExp(`\\$ne${sep}`, "i")
|
|
3046
|
+
},
|
|
3047
|
+
{
|
|
3048
|
+
id: "nosql-gt-operator",
|
|
3049
|
+
description: '$gt \u2014 "greater than" used to bypass password/value checks',
|
|
3050
|
+
pattern: new RegExp(`\\$gte?${sep}`, "i")
|
|
3051
|
+
},
|
|
3052
|
+
{
|
|
3053
|
+
id: "nosql-lt-operator",
|
|
3054
|
+
description: '$lt / $lte \u2014 "less than" bypass variants',
|
|
3055
|
+
pattern: new RegExp(`\\$lte?${sep}`, "i")
|
|
3056
|
+
},
|
|
3057
|
+
{
|
|
3058
|
+
id: "nosql-regex-operator",
|
|
3059
|
+
description: "$regex \u2014 can be used to extract data character by character (blind injection)",
|
|
3060
|
+
pattern: new RegExp(`\\$regex${sep}`, "i")
|
|
3061
|
+
},
|
|
3062
|
+
{
|
|
3063
|
+
id: "nosql-or-operator",
|
|
3064
|
+
description: "$or \u2014 logical OR; used to create always-true conditions",
|
|
3065
|
+
pattern: new RegExp(`\\$or${sep}\\s*\\[`, "i")
|
|
3066
|
+
},
|
|
3067
|
+
{
|
|
3068
|
+
id: "nosql-and-operator",
|
|
3069
|
+
description: "$and \u2014 logical AND operator injection",
|
|
3070
|
+
pattern: new RegExp(`\\$and${sep}\\s*\\[`, "i")
|
|
3071
|
+
},
|
|
3072
|
+
{
|
|
3073
|
+
id: "nosql-nor-operator",
|
|
3074
|
+
description: "$nor \u2014 logical NOR operator injection",
|
|
3075
|
+
pattern: new RegExp(`\\$nor${sep}\\s*\\[`, "i")
|
|
3076
|
+
},
|
|
3077
|
+
{
|
|
3078
|
+
id: "nosql-exists-operator",
|
|
3079
|
+
description: "$exists \u2014 can enumerate fields to determine schema",
|
|
3080
|
+
pattern: new RegExp(`\\$exists${sep}`, "i")
|
|
3081
|
+
},
|
|
3082
|
+
{
|
|
3083
|
+
id: "nosql-in-operator",
|
|
3084
|
+
description: "$in \u2014 matches any value in a list; can enumerate values",
|
|
3085
|
+
pattern: new RegExp(`\\$in${sep}\\s*\\[`, "i")
|
|
3086
|
+
},
|
|
3087
|
+
{
|
|
3088
|
+
id: "nosql-expr-operator",
|
|
3089
|
+
description: "$expr \u2014 allows aggregation expressions in queries (MongoDB 3.6+)",
|
|
3090
|
+
pattern: new RegExp(`\\$expr${sep}`, "i")
|
|
3091
|
+
},
|
|
3092
|
+
{
|
|
3093
|
+
id: "nosql-function-operator",
|
|
3094
|
+
description: "$function \u2014 executes arbitrary JavaScript in MongoDB 4.4+",
|
|
3095
|
+
pattern: new RegExp(`\\$function${sep}`, "i")
|
|
3096
|
+
},
|
|
3097
|
+
{
|
|
3098
|
+
id: "nosql-accumulator-operator",
|
|
3099
|
+
description: "$accumulator \u2014 custom aggregation with arbitrary JS execution",
|
|
3100
|
+
pattern: new RegExp(`\\$accumulator${sep}`, "i")
|
|
3101
|
+
},
|
|
3102
|
+
// ─── Prototype pollution ─────────────────────────────────────────────────
|
|
3103
|
+
{
|
|
3104
|
+
id: "nosql-proto-pollution",
|
|
3105
|
+
description: "__proto__ \u2014 prototype pollution via object key injection",
|
|
3106
|
+
pattern: /__proto__/
|
|
3107
|
+
},
|
|
3108
|
+
{
|
|
3109
|
+
id: "nosql-constructor-prototype",
|
|
3110
|
+
description: "constructor.prototype \u2014 alternative prototype pollution vector (dot notation or JSON key)",
|
|
3111
|
+
// Matches dot-notation (obj.constructor.prototype) and JSON key adjacency
|
|
3112
|
+
// ("constructor": {"prototype": ...})
|
|
3113
|
+
pattern: /constructor[\s"':.,{\[]*prototype/i
|
|
3114
|
+
},
|
|
3115
|
+
{
|
|
3116
|
+
id: "nosql-proto-bracket",
|
|
3117
|
+
description: '["__proto__"] \u2014 bracket-notation prototype pollution',
|
|
3118
|
+
pattern: /\[["']__proto__["']\]/
|
|
3119
|
+
}
|
|
3120
|
+
];
|
|
3121
|
+
var nosql_default = NOSQL_PATTERNS;
|
|
3122
|
+
|
|
3123
|
+
// node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/contexts/log.js
|
|
3124
|
+
var LOG_PATTERNS = [
|
|
3125
|
+
// ─── CRLF / newline injection ─────────────────────────────────────────────
|
|
3126
|
+
{
|
|
3127
|
+
id: "log-crlf-injection",
|
|
3128
|
+
description: "CRLF injection: literal \\r or \\n embeds fake log lines",
|
|
3129
|
+
pattern: /[\r\n]/
|
|
3130
|
+
},
|
|
3131
|
+
{
|
|
3132
|
+
id: "log-url-encoded-crlf",
|
|
3133
|
+
description: "URL-encoded CRLF: %0d, %0a, %0D, %0A \u2014 decoded by some log parsers",
|
|
3134
|
+
pattern: /%0[dDaA]/
|
|
3135
|
+
},
|
|
3136
|
+
{
|
|
3137
|
+
id: "log-unicode-newline",
|
|
3138
|
+
description: "Unicode newline variants: U+2028 (line separator), U+2029 (paragraph separator)",
|
|
3139
|
+
pattern: /[\u2028\u2029]/
|
|
3140
|
+
},
|
|
3141
|
+
// ─── Log4Shell / JNDI injection (CVE-2021-44228) ─────────────────────────
|
|
3142
|
+
{
|
|
3143
|
+
id: "log-log4shell-jndi",
|
|
3144
|
+
description: "Log4Shell: ${jndi:...} triggers remote code execution in Apache Log4j",
|
|
3145
|
+
pattern: /\$\{jndi\s*:/i
|
|
3146
|
+
},
|
|
3147
|
+
{
|
|
3148
|
+
id: "log-log4shell-obfuscated",
|
|
3149
|
+
description: "Obfuscated Log4Shell: ${::-j}... lookup-bypass prefix used to evade WAF detection",
|
|
3150
|
+
// ${::- is the Log4j lookup-bypass escape sequence; presence alone is suspicious
|
|
3151
|
+
pattern: /\$\{::-/
|
|
3152
|
+
},
|
|
3153
|
+
{
|
|
3154
|
+
id: "log-log4j-lookup",
|
|
3155
|
+
description: "Log4j lookup syntax: ${env:...}, ${sys:...}, ${ctx:...} \u2014 data exfiltration",
|
|
3156
|
+
pattern: /\$\{(?:env|sys|ctx|main|map|sd|web|docker|k8s|spring)\s*:/i
|
|
3157
|
+
},
|
|
3158
|
+
// ─── Server-Side Template Injection (SSTI) in log messages ───────────────
|
|
3159
|
+
{
|
|
3160
|
+
id: "log-ssti-double-brace",
|
|
3161
|
+
description: "SSTI double-brace: {{expression}} \u2014 Jinja2, Twig, Handlebars, etc.",
|
|
3162
|
+
pattern: /\{\{[\s\S]{0,80}\}\}/
|
|
3163
|
+
},
|
|
3164
|
+
{
|
|
3165
|
+
id: "log-ssti-hash-brace",
|
|
3166
|
+
description: "SSTI hash-brace: #{expression} \u2014 Thymeleaf, Velocity, Ruby ERB",
|
|
3167
|
+
pattern: /#\{[\s\S]{0,80}\}/
|
|
3168
|
+
},
|
|
3169
|
+
{
|
|
3170
|
+
id: "log-ssti-dollar-brace",
|
|
3171
|
+
description: "SSTI/EL injection: ${expression with operators or method calls} \u2014 JSP EL, Freemarker, SpEL",
|
|
3172
|
+
// Require that the ${...} content looks like an expression, not a plain variable name.
|
|
3173
|
+
// Flags if the content contains: . ( * + operators, or known SSTI keywords.
|
|
3174
|
+
// This avoids flagging ${PATH}, ${HOME} etc. (plain shell variables).
|
|
3175
|
+
pattern: /\$\{[^}]*(?:\.|\(|\*|\+|\bclass\b|\bruntime\b|\bprocess\b|\bexec\b)[^}]{0,80}\}/i
|
|
3176
|
+
},
|
|
3177
|
+
{
|
|
3178
|
+
id: "log-ssti-percent-tag",
|
|
3179
|
+
description: "SSTI ERB/ASP tag: <%= expression %> \u2014 Ruby ERB, ASP",
|
|
3180
|
+
pattern: /<%=[\s\S]{0,80}%>/
|
|
3181
|
+
},
|
|
3182
|
+
// ─── Null byte ────────────────────────────────────────────────────────────
|
|
3183
|
+
{
|
|
3184
|
+
id: "log-null-byte",
|
|
3185
|
+
description: "Null byte: \\x00 or %00 \u2014 can truncate log entries in C-backed loggers",
|
|
3186
|
+
pattern: /\x00|%00/
|
|
3187
|
+
},
|
|
3188
|
+
// ─── ANSI escape injection ────────────────────────────────────────────────
|
|
3189
|
+
{
|
|
3190
|
+
id: "log-ansi-escape",
|
|
3191
|
+
description: "ANSI escape sequence: ESC[ \u2014 can manipulate terminal output when logs are tailed",
|
|
3192
|
+
pattern: /\x1b\[/
|
|
3193
|
+
}
|
|
3194
|
+
];
|
|
3195
|
+
var log_default = LOG_PATTERNS;
|
|
3196
|
+
|
|
3197
|
+
// node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/contexts/sql-strict.js
|
|
3198
|
+
var SQL_STRICT_EXTRA = [
|
|
3199
|
+
{
|
|
3200
|
+
id: "sql-line-comment",
|
|
3201
|
+
description: "SQL line comment: -- followed by whitespace or end of string",
|
|
3202
|
+
pattern: /--(?:\s|$)/
|
|
3203
|
+
},
|
|
3204
|
+
{
|
|
3205
|
+
id: "sql-stacked-query",
|
|
3206
|
+
description: "Stacked queries: semicolon immediately followed by a SQL keyword",
|
|
3207
|
+
pattern: /;\s{0,10}(?:SELECT|INSERT|UPDATE|DELETE|DROP|CREATE|ALTER|EXEC)\b/i
|
|
3208
|
+
},
|
|
3209
|
+
{
|
|
3210
|
+
id: "sql-hex-encoding",
|
|
3211
|
+
description: "Hex-encoded string injection: 0x41414141 style (MySQL)",
|
|
3212
|
+
pattern: /\b0x[0-9a-f]{4,}/i
|
|
3213
|
+
}
|
|
3214
|
+
];
|
|
3215
|
+
var SQL_STRICT_PATTERNS = [...sql_default, ...SQL_STRICT_EXTRA];
|
|
3216
|
+
var sql_strict_default = SQL_STRICT_PATTERNS;
|
|
3217
|
+
|
|
3218
|
+
// node_modules/.pnpm/is-unsafe@2.0.0/node_modules/is-unsafe/src/index.js
|
|
3219
|
+
html_default.label = "HTML";
|
|
3220
|
+
xml_default.label = "XML";
|
|
3221
|
+
svg_default.label = "SVG";
|
|
3222
|
+
sql_default.label = "SQL";
|
|
3223
|
+
sql_strict_default.label = "SQL-STRICT";
|
|
3224
|
+
shell_default.label = "SHELL";
|
|
3225
|
+
redos_default.label = "REDOS";
|
|
3226
|
+
nosql_default.label = "NOSQL";
|
|
3227
|
+
log_default.label = "LOG";
|
|
3228
|
+
var VALID_CONTEXTS = Object.freeze({
|
|
3229
|
+
HTML: html_default,
|
|
3230
|
+
XML: xml_default,
|
|
3231
|
+
SVG: svg_default,
|
|
3232
|
+
SQL: sql_default,
|
|
3233
|
+
"SQL-STRICT": sql_strict_default,
|
|
3234
|
+
SHELL: shell_default,
|
|
3235
|
+
REDOS: redos_default,
|
|
3236
|
+
NOSQL: nosql_default,
|
|
3237
|
+
LOG: log_default
|
|
3238
|
+
});
|
|
3239
|
+
function assertString(value) {
|
|
3240
|
+
if (typeof value !== "string") {
|
|
3241
|
+
throw new TypeError(
|
|
3242
|
+
`is-unsafe: first argument must be a string, got ${typeof value}`
|
|
3243
|
+
);
|
|
3244
|
+
}
|
|
3245
|
+
}
|
|
3246
|
+
function assertContext(context) {
|
|
3247
|
+
if (context instanceof RegExp) return;
|
|
3248
|
+
if (Array.isArray(context)) {
|
|
3249
|
+
if (context.length === 0) {
|
|
3250
|
+
throw new TypeError("is-unsafe: context must not be an empty array");
|
|
3251
|
+
}
|
|
3252
|
+
if (Array.isArray(context[0])) {
|
|
3253
|
+
for (const list of context) {
|
|
3254
|
+
if (!Array.isArray(list) || list.length === 0) {
|
|
3255
|
+
throw new TypeError(
|
|
3256
|
+
"is-unsafe: each context in the array must be a non-empty pattern array (PatternList)"
|
|
3257
|
+
);
|
|
3258
|
+
}
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
return;
|
|
3262
|
+
}
|
|
3263
|
+
throw new TypeError(
|
|
3264
|
+
`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof context}`
|
|
3265
|
+
);
|
|
3266
|
+
}
|
|
3267
|
+
function normalise(context) {
|
|
3268
|
+
if (context instanceof RegExp) return { lists: null, regex: context };
|
|
3269
|
+
if (Array.isArray(context[0])) return { lists: context, regex: null };
|
|
3270
|
+
return { lists: [context], regex: null };
|
|
3271
|
+
}
|
|
3272
|
+
function matchList(value, list) {
|
|
3273
|
+
const label = list.label ?? "CUSTOM";
|
|
3274
|
+
for (const rule of list) {
|
|
3275
|
+
if (rule.pattern.test(value)) {
|
|
3276
|
+
return { context: label, id: rule.id, description: rule.description, pattern: rule.pattern };
|
|
3277
|
+
}
|
|
3278
|
+
}
|
|
3279
|
+
return null;
|
|
3280
|
+
}
|
|
3281
|
+
function isUnsafe(value, context) {
|
|
3282
|
+
assertString(value);
|
|
3283
|
+
assertContext(context);
|
|
3284
|
+
const { lists, regex } = normalise(context);
|
|
3285
|
+
if (regex) return regex.test(value);
|
|
3286
|
+
for (const list of lists) {
|
|
3287
|
+
if (matchList(value, list) !== null) return true;
|
|
3288
|
+
}
|
|
3289
|
+
return false;
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3292
|
+
// node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
|
|
3293
|
+
function extractRawAttributes(prefixedAttrs, options) {
|
|
3294
|
+
if (!prefixedAttrs) return {};
|
|
3295
|
+
const attrs = options.attributesGroupName ? prefixedAttrs[options.attributesGroupName] : prefixedAttrs;
|
|
3296
|
+
if (!attrs) return {};
|
|
3297
|
+
const rawAttrs = {};
|
|
3298
|
+
for (const key in attrs) {
|
|
3299
|
+
if (key.startsWith(options.attributeNamePrefix)) {
|
|
3300
|
+
const rawName = key.substring(options.attributeNamePrefix.length);
|
|
3301
|
+
rawAttrs[rawName] = attrs[key];
|
|
3302
|
+
} else {
|
|
3303
|
+
rawAttrs[key] = attrs[key];
|
|
3304
|
+
}
|
|
3305
|
+
}
|
|
3306
|
+
return rawAttrs;
|
|
3307
|
+
}
|
|
3308
|
+
function extractNamespace(rawTagName) {
|
|
3309
|
+
if (!rawTagName || typeof rawTagName !== "string") return void 0;
|
|
3310
|
+
const colonIndex = rawTagName.indexOf(":");
|
|
3311
|
+
if (colonIndex !== -1 && colonIndex > 0) {
|
|
3312
|
+
const ns = rawTagName.substring(0, colonIndex);
|
|
3313
|
+
if (ns !== "xmlns") {
|
|
3314
|
+
return ns;
|
|
3315
|
+
}
|
|
3316
|
+
}
|
|
3317
|
+
return void 0;
|
|
3318
|
+
}
|
|
3319
|
+
var OrderedObjParser = class {
|
|
3320
|
+
constructor(options, externalEntities) {
|
|
3321
|
+
this.options = options;
|
|
3322
|
+
this.currentNode = null;
|
|
3323
|
+
this.tagsNodeStack = [];
|
|
3324
|
+
this.parseXml = parseXml;
|
|
3325
|
+
this.parseTextData = parseTextData;
|
|
3326
|
+
this.resolveNameSpace = resolveNameSpace;
|
|
3327
|
+
this.buildAttributesMap = buildAttributesMap;
|
|
3328
|
+
this.isItStopNode = isItStopNode;
|
|
3329
|
+
this.replaceEntitiesValue = replaceEntitiesValue;
|
|
3330
|
+
this.readStopNodeData = readStopNodeData;
|
|
3331
|
+
this.saveTextToParentTag = saveTextToParentTag;
|
|
3332
|
+
this.addChild = addChild;
|
|
3333
|
+
this.ignoreAttributesFn = getIgnoreAttributesFn(this.options.ignoreAttributes);
|
|
3334
|
+
this.entityExpansionCount = 0;
|
|
3335
|
+
this.currentExpandedLength = 0;
|
|
3336
|
+
this.doctypefound = false;
|
|
3337
|
+
let namedEntities = { ...XML };
|
|
3338
|
+
if (this.options.entityDecoder) {
|
|
3339
|
+
this.entityDecoder = this.options.entityDecoder;
|
|
3340
|
+
} else {
|
|
3341
|
+
if (typeof this.options.htmlEntities === "object") namedEntities = this.options.htmlEntities;
|
|
3342
|
+
else if (this.options.htmlEntities === true) namedEntities = { ...COMMON_HTML, ...CURRENCY };
|
|
3343
|
+
this.entityDecoder = new EntityDecoder({
|
|
3344
|
+
namedEntities: { ...namedEntities, ...externalEntities },
|
|
3345
|
+
numericAllowed: this.options.htmlEntities,
|
|
3346
|
+
limit: {
|
|
3347
|
+
maxTotalExpansions: this.options.processEntities.maxTotalExpansions,
|
|
3348
|
+
maxExpandedLength: this.options.processEntities.maxExpandedLength,
|
|
3349
|
+
applyLimitsTo: this.options.processEntities.appliesTo
|
|
3350
|
+
},
|
|
3351
|
+
// onExternalEntity: (name, value) => isUnsafe(value) ? 'block' : 'allow',
|
|
3352
|
+
onInputEntity: (name, value) => (
|
|
3353
|
+
//TODO: VALID_CONTEXTS.HTML should be set only if this.options.htmlEntities
|
|
3354
|
+
isUnsafe(value, [html_default, xml_default]) ? ENTITY_ACTION.BLOCK : ENTITY_ACTION.ALLOW
|
|
3355
|
+
)
|
|
3356
|
+
//postCheck: resolved => resolved
|
|
3357
|
+
});
|
|
3358
|
+
}
|
|
3359
|
+
this.matcher = new Matcher();
|
|
3360
|
+
this.readonlyMatcher = this.matcher.readOnly();
|
|
3361
|
+
this.isCurrentNodeStopNode = false;
|
|
3362
|
+
this.stopNodeExpressionsSet = new ExpressionSet();
|
|
3363
|
+
const stopNodesOpts = this.options.stopNodes;
|
|
3364
|
+
if (stopNodesOpts && stopNodesOpts.length > 0) {
|
|
3365
|
+
for (let i = 0; i < stopNodesOpts.length; i++) {
|
|
3366
|
+
const stopNodeExp = stopNodesOpts[i];
|
|
3367
|
+
if (typeof stopNodeExp === "string") {
|
|
3368
|
+
this.stopNodeExpressionsSet.add(new Expression(stopNodeExp));
|
|
3369
|
+
} else if (stopNodeExp instanceof Expression) {
|
|
3370
|
+
this.stopNodeExpressionsSet.add(stopNodeExp);
|
|
3371
|
+
}
|
|
3372
|
+
}
|
|
3373
|
+
this.stopNodeExpressionsSet.seal();
|
|
3374
|
+
}
|
|
3375
|
+
}
|
|
3376
|
+
};
|
|
3377
|
+
function parseTextData(val, tagName, jPath, dontTrim, hasAttributes, isLeafNode, escapeEntities) {
|
|
3378
|
+
const options = this.options;
|
|
3379
|
+
if (val !== void 0) {
|
|
3380
|
+
if (options.trimValues && !dontTrim) {
|
|
3381
|
+
val = val.trim();
|
|
3382
|
+
}
|
|
3383
|
+
if (val.length > 0) {
|
|
3384
|
+
if (!escapeEntities) val = this.replaceEntitiesValue(val, tagName, jPath);
|
|
3385
|
+
const jPathOrMatcher = options.jPath ? jPath.toString() : jPath;
|
|
3386
|
+
const newval = options.tagValueProcessor(tagName, val, jPathOrMatcher, hasAttributes, isLeafNode);
|
|
3387
|
+
if (newval === null || newval === void 0) {
|
|
3388
|
+
return val;
|
|
3389
|
+
} else if (typeof newval !== typeof val || newval !== val) {
|
|
3390
|
+
return newval;
|
|
3391
|
+
} else if (options.trimValues) {
|
|
3392
|
+
return parseValue(val, options.parseTagValue, options.numberParseOptions);
|
|
3393
|
+
} else {
|
|
3394
|
+
const trimmedVal = val.trim();
|
|
3395
|
+
if (trimmedVal === val) {
|
|
3396
|
+
return parseValue(val, options.parseTagValue, options.numberParseOptions);
|
|
3397
|
+
} else {
|
|
3398
|
+
return val;
|
|
3399
|
+
}
|
|
3400
|
+
}
|
|
3401
|
+
}
|
|
3402
|
+
}
|
|
3403
|
+
}
|
|
3404
|
+
function resolveNameSpace(tagname) {
|
|
3405
|
+
if (this.options.removeNSPrefix) {
|
|
3406
|
+
const tags = tagname.split(":");
|
|
3407
|
+
const prefix = tagname.charAt(0) === "/" ? "/" : "";
|
|
3408
|
+
if (tags[0] === "xmlns") {
|
|
3409
|
+
return "";
|
|
3410
|
+
}
|
|
3411
|
+
if (tags.length === 2) {
|
|
3412
|
+
tagname = prefix + tags[1];
|
|
3413
|
+
}
|
|
3414
|
+
}
|
|
3415
|
+
return tagname;
|
|
3416
|
+
}
|
|
3417
|
+
var attrsRegx = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
|
|
3418
|
+
function buildAttributesMap(attrStr, jPath, tagName, force = false) {
|
|
3419
|
+
const options = this.options;
|
|
3420
|
+
if (force === true || options.ignoreAttributes !== true && typeof attrStr === "string") {
|
|
3421
|
+
const matches = getAllMatches(attrStr, attrsRegx);
|
|
3422
|
+
const len = matches.length;
|
|
3423
|
+
const attrs = {};
|
|
3424
|
+
const processedVals = new Array(len);
|
|
3425
|
+
let hasRawAttrs = false;
|
|
3426
|
+
const rawAttrsForMatcher = {};
|
|
3427
|
+
for (let i = 0; i < len; i++) {
|
|
3428
|
+
const attrName = this.resolveNameSpace(matches[i][1]);
|
|
3429
|
+
const oldVal = matches[i][4];
|
|
3430
|
+
if (attrName.length && oldVal !== void 0) {
|
|
3431
|
+
let val = oldVal;
|
|
3432
|
+
if (options.trimValues) val = val.trim();
|
|
3433
|
+
val = this.replaceEntitiesValue(val, tagName, this.readonlyMatcher);
|
|
3434
|
+
processedVals[i] = val;
|
|
3435
|
+
rawAttrsForMatcher[attrName] = val;
|
|
3436
|
+
hasRawAttrs = true;
|
|
3437
|
+
}
|
|
3438
|
+
}
|
|
3439
|
+
if (hasRawAttrs && typeof jPath === "object" && jPath.updateCurrent) {
|
|
3440
|
+
jPath.updateCurrent(rawAttrsForMatcher);
|
|
3441
|
+
}
|
|
3442
|
+
const jPathStr = options.jPath ? jPath.toString() : this.readonlyMatcher;
|
|
3443
|
+
let hasAttrs = false;
|
|
3444
|
+
for (let i = 0; i < len; i++) {
|
|
3445
|
+
const attrName = this.resolveNameSpace(matches[i][1]);
|
|
3446
|
+
if (this.ignoreAttributesFn(attrName, jPathStr)) continue;
|
|
3447
|
+
let aName = options.attributeNamePrefix + attrName;
|
|
3448
|
+
if (attrName.length) {
|
|
3449
|
+
if (options.transformAttributeName) {
|
|
3450
|
+
aName = options.transformAttributeName(aName);
|
|
3451
|
+
}
|
|
3452
|
+
aName = sanitizeName(aName, options);
|
|
3453
|
+
if (matches[i][4] !== void 0) {
|
|
3454
|
+
const oldVal = processedVals[i];
|
|
3455
|
+
const newVal = options.attributeValueProcessor(attrName, oldVal, jPathStr);
|
|
3456
|
+
if (newVal === null || newVal === void 0) {
|
|
3457
|
+
attrs[aName] = oldVal;
|
|
3458
|
+
} else if (typeof newVal !== typeof oldVal || newVal !== oldVal) {
|
|
3459
|
+
attrs[aName] = newVal;
|
|
3460
|
+
} else {
|
|
3461
|
+
attrs[aName] = parseValue(oldVal, options.parseAttributeValue, options.numberParseOptions);
|
|
3462
|
+
}
|
|
3463
|
+
hasAttrs = true;
|
|
3464
|
+
} else if (options.allowBooleanAttributes) {
|
|
3465
|
+
attrs[aName] = true;
|
|
3466
|
+
hasAttrs = true;
|
|
3467
|
+
}
|
|
3468
|
+
}
|
|
3469
|
+
}
|
|
3470
|
+
if (!hasAttrs) return;
|
|
3471
|
+
if (options.attributesGroupName && !options.preserveOrder) {
|
|
3472
|
+
const attrCollection = {};
|
|
3473
|
+
attrCollection[options.attributesGroupName] = attrs;
|
|
3474
|
+
return attrCollection;
|
|
3475
|
+
}
|
|
3476
|
+
return attrs;
|
|
3477
|
+
}
|
|
3478
|
+
}
|
|
3479
|
+
var parseXml = function(xmlData) {
|
|
3480
|
+
xmlData = xmlData.replace(/\r\n?/g, "\n");
|
|
3481
|
+
const xmlObj = new XmlNode("!xml");
|
|
3482
|
+
let currentNode = xmlObj;
|
|
3483
|
+
let textData = "";
|
|
3484
|
+
this.matcher.reset();
|
|
3485
|
+
this.entityDecoder.reset();
|
|
3486
|
+
this.entityExpansionCount = 0;
|
|
3487
|
+
this.currentExpandedLength = 0;
|
|
3488
|
+
this.doctypefound = false;
|
|
3489
|
+
const options = this.options;
|
|
3490
|
+
const docTypeReader = new DocTypeReader(options.processEntities);
|
|
3491
|
+
const xmlLen = xmlData.length;
|
|
3492
|
+
for (let i = 0; i < xmlLen; i++) {
|
|
3493
|
+
const ch = xmlData[i];
|
|
3494
|
+
if (ch === "<") {
|
|
3495
|
+
const c1 = xmlData.charCodeAt(i + 1);
|
|
3496
|
+
if (c1 === 47) {
|
|
3497
|
+
const closeIndex = findClosingIndex(xmlData, ">", i, "Closing Tag is not closed.");
|
|
3498
|
+
let tagName = xmlData.substring(i + 2, closeIndex).trim();
|
|
3499
|
+
if (options.removeNSPrefix) {
|
|
3500
|
+
const colonIndex = tagName.indexOf(":");
|
|
3501
|
+
if (colonIndex !== -1) {
|
|
3502
|
+
tagName = tagName.substr(colonIndex + 1);
|
|
3503
|
+
}
|
|
3504
|
+
}
|
|
3505
|
+
tagName = transformTagName(options.transformTagName, tagName, "", options).tagName;
|
|
3506
|
+
if (currentNode) {
|
|
3507
|
+
textData = this.saveTextToParentTag(textData, currentNode, this.readonlyMatcher);
|
|
3508
|
+
}
|
|
3509
|
+
const lastTagName = this.matcher.getCurrentTag();
|
|
3510
|
+
if (tagName && options.unpairedTagsSet.has(tagName)) {
|
|
3511
|
+
throw new Error(`Unpaired tag can not be used as closing tag: </${tagName}>`);
|
|
3512
|
+
}
|
|
3513
|
+
if (lastTagName && options.unpairedTagsSet.has(lastTagName)) {
|
|
3514
|
+
this.matcher.pop();
|
|
3515
|
+
this.tagsNodeStack.pop();
|
|
3516
|
+
}
|
|
3517
|
+
this.matcher.pop();
|
|
3518
|
+
this.isCurrentNodeStopNode = false;
|
|
3519
|
+
currentNode = this.tagsNodeStack.pop() || xmlObj;
|
|
3520
|
+
if (options.captureMetaData && currentNode) {
|
|
3521
|
+
currentNode.addEndIndex(closeIndex + 1);
|
|
3522
|
+
}
|
|
3523
|
+
textData = "";
|
|
3524
|
+
i = closeIndex;
|
|
3525
|
+
} else if (c1 === 63) {
|
|
3526
|
+
let tagData = readTagExp(xmlData, i, false, "?>");
|
|
3527
|
+
if (!tagData) throw new Error("Pi Tag is not closed.");
|
|
3528
|
+
textData = this.saveTextToParentTag(textData, currentNode, this.readonlyMatcher);
|
|
3529
|
+
const attsMap = this.buildAttributesMap(tagData.tagExp, this.matcher, tagData.tagName, true);
|
|
3530
|
+
if (attsMap) {
|
|
3531
|
+
const ver = attsMap[this.options.attributeNamePrefix + "version"];
|
|
3532
|
+
this.entityDecoder.setXmlVersion(Number(ver) || 1);
|
|
3533
|
+
docTypeReader.setXmlVersion(Number(ver) || 1);
|
|
3534
|
+
}
|
|
3535
|
+
if (options.ignoreDeclaration && tagData.tagName === "?xml" || options.ignorePiTags) {
|
|
3536
|
+
} else {
|
|
3537
|
+
const childNode = new XmlNode(tagData.tagName);
|
|
3538
|
+
childNode.add(options.textNodeName, "");
|
|
3539
|
+
if (tagData.tagName !== tagData.tagExp && tagData.attrExpPresent && options.ignoreAttributes !== true) {
|
|
3540
|
+
childNode[":@"] = attsMap;
|
|
3541
|
+
}
|
|
3542
|
+
this.addChild(currentNode, childNode, this.readonlyMatcher, i);
|
|
3543
|
+
if (options.captureMetaData) {
|
|
3544
|
+
currentNode.addEndIndex(tagData.closeIndex + 2);
|
|
3545
|
+
}
|
|
3546
|
+
}
|
|
3547
|
+
i = tagData.closeIndex + 1;
|
|
3548
|
+
} else if (c1 === 33 && xmlData.charCodeAt(i + 2) === 45 && xmlData.charCodeAt(i + 3) === 45) {
|
|
3549
|
+
const endIndex = findClosingIndex(xmlData, "-->", i + 4, "Comment is not closed.");
|
|
3550
|
+
if (options.commentPropName) {
|
|
3551
|
+
const comment = xmlData.substring(i + 4, endIndex - 2);
|
|
3552
|
+
textData = this.saveTextToParentTag(textData, currentNode, this.readonlyMatcher);
|
|
3553
|
+
currentNode.add(options.commentPropName, [{ [options.textNodeName]: comment }]);
|
|
3554
|
+
}
|
|
3555
|
+
i = endIndex;
|
|
3556
|
+
} else if (c1 === 33 && xmlData.charCodeAt(i + 2) === 68) {
|
|
3557
|
+
if (this.doctypefound) throw new Error("Multiple DOCTYPE declarations found.");
|
|
3558
|
+
this.doctypefound = true;
|
|
3559
|
+
const result = docTypeReader.readDocType(xmlData, i);
|
|
3560
|
+
this.entityDecoder.addInputEntities(result.entities);
|
|
3561
|
+
i = result.i;
|
|
3562
|
+
} else if (c1 === 33 && xmlData.charCodeAt(i + 2) === 91) {
|
|
3563
|
+
const closeIndex = findClosingIndex(xmlData, "]]>", i, "CDATA is not closed.") - 2;
|
|
3564
|
+
const tagExp = xmlData.substring(i + 9, closeIndex);
|
|
3565
|
+
textData = this.saveTextToParentTag(textData, currentNode, this.readonlyMatcher);
|
|
3566
|
+
let val = this.parseTextData(tagExp, currentNode.tagname, this.readonlyMatcher, true, false, true, true);
|
|
3567
|
+
if (val == void 0) val = "";
|
|
3568
|
+
if (options.cdataPropName) {
|
|
3569
|
+
currentNode.add(options.cdataPropName, [{ [options.textNodeName]: tagExp }]);
|
|
3570
|
+
} else {
|
|
3571
|
+
currentNode.add(options.textNodeName, val);
|
|
3572
|
+
}
|
|
3573
|
+
i = closeIndex + 2;
|
|
3574
|
+
} else {
|
|
3575
|
+
let result = readTagExp(xmlData, i, options.removeNSPrefix);
|
|
3576
|
+
if (!result) {
|
|
3577
|
+
const context = xmlData.substring(Math.max(0, i - 50), Math.min(xmlLen, i + 50));
|
|
3578
|
+
throw new Error(`readTagExp returned undefined at position ${i}. Context: "${context}"`);
|
|
3579
|
+
}
|
|
3580
|
+
let tagName = result.tagName;
|
|
3581
|
+
const rawTagName = result.rawTagName;
|
|
3582
|
+
let tagExp = result.tagExp;
|
|
3583
|
+
let attrExpPresent = result.attrExpPresent;
|
|
3584
|
+
let closeIndex = result.closeIndex;
|
|
3585
|
+
({ tagName, tagExp } = transformTagName(options.transformTagName, tagName, tagExp, options));
|
|
3586
|
+
if (options.strictReservedNames && (tagName === options.commentPropName || tagName === options.cdataPropName || tagName === options.textNodeName || tagName === options.attributesGroupName)) {
|
|
3587
|
+
throw new Error(`Invalid tag name: ${tagName}`);
|
|
3588
|
+
}
|
|
3589
|
+
if (currentNode && textData) {
|
|
3590
|
+
if (currentNode.tagname !== "!xml") {
|
|
3591
|
+
textData = this.saveTextToParentTag(textData, currentNode, this.readonlyMatcher, false);
|
|
3592
|
+
}
|
|
3593
|
+
}
|
|
3594
|
+
const lastTag = currentNode;
|
|
3595
|
+
if (lastTag && options.unpairedTagsSet.has(lastTag.tagname)) {
|
|
3596
|
+
currentNode = this.tagsNodeStack.pop();
|
|
3597
|
+
this.matcher.pop();
|
|
3598
|
+
}
|
|
3599
|
+
let isSelfClosing = false;
|
|
3600
|
+
if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
|
|
3601
|
+
isSelfClosing = true;
|
|
3602
|
+
if (tagName[tagName.length - 1] === "/") {
|
|
3603
|
+
tagName = tagName.substr(0, tagName.length - 1);
|
|
3604
|
+
tagExp = tagName;
|
|
3605
|
+
} else {
|
|
3606
|
+
tagExp = tagExp.substr(0, tagExp.length - 1);
|
|
3607
|
+
}
|
|
3608
|
+
attrExpPresent = tagName !== tagExp;
|
|
3609
|
+
}
|
|
3610
|
+
let prefixedAttrs = null;
|
|
3611
|
+
let rawAttrs = {};
|
|
3612
|
+
let namespace = void 0;
|
|
3613
|
+
namespace = extractNamespace(rawTagName);
|
|
3614
|
+
if (tagName !== xmlObj.tagname) {
|
|
3615
|
+
this.matcher.push(tagName, {}, namespace);
|
|
3616
|
+
}
|
|
3617
|
+
if (tagName !== tagExp && attrExpPresent) {
|
|
3618
|
+
prefixedAttrs = this.buildAttributesMap(tagExp, this.matcher, tagName);
|
|
3619
|
+
if (prefixedAttrs) {
|
|
3620
|
+
rawAttrs = extractRawAttributes(prefixedAttrs, options);
|
|
3621
|
+
}
|
|
3622
|
+
}
|
|
3623
|
+
if (tagName !== xmlObj.tagname) {
|
|
3624
|
+
this.isCurrentNodeStopNode = this.isItStopNode();
|
|
3625
|
+
}
|
|
3626
|
+
const startIndex = i;
|
|
3627
|
+
if (this.isCurrentNodeStopNode) {
|
|
3628
|
+
let tagContent = "";
|
|
3629
|
+
if (isSelfClosing) {
|
|
3630
|
+
i = result.closeIndex;
|
|
3631
|
+
} else if (options.unpairedTagsSet.has(tagName)) {
|
|
3632
|
+
i = result.closeIndex;
|
|
3633
|
+
} else {
|
|
3634
|
+
const result2 = this.readStopNodeData(xmlData, rawTagName, closeIndex + 1);
|
|
3635
|
+
if (!result2) throw new Error(`Unexpected end of ${rawTagName}`);
|
|
3636
|
+
i = result2.i;
|
|
3637
|
+
tagContent = result2.tagContent;
|
|
3638
|
+
}
|
|
3639
|
+
const childNode = new XmlNode(tagName);
|
|
3640
|
+
if (prefixedAttrs) {
|
|
3641
|
+
childNode[":@"] = prefixedAttrs;
|
|
3642
|
+
}
|
|
3643
|
+
childNode.add(options.textNodeName, tagContent);
|
|
3644
|
+
this.matcher.pop();
|
|
3645
|
+
this.isCurrentNodeStopNode = false;
|
|
3646
|
+
this.addChild(currentNode, childNode, this.readonlyMatcher, startIndex);
|
|
3647
|
+
if (options.captureMetaData) {
|
|
3648
|
+
currentNode.addEndIndex(i + 1);
|
|
3649
|
+
}
|
|
3650
|
+
} else {
|
|
3651
|
+
if (isSelfClosing) {
|
|
3652
|
+
({ tagName, tagExp } = transformTagName(options.transformTagName, tagName, tagExp, options));
|
|
3653
|
+
const childNode = new XmlNode(tagName);
|
|
3654
|
+
if (prefixedAttrs) {
|
|
3655
|
+
childNode[":@"] = prefixedAttrs;
|
|
3656
|
+
}
|
|
3657
|
+
this.addChild(currentNode, childNode, this.readonlyMatcher, startIndex);
|
|
3658
|
+
if (options.captureMetaData) {
|
|
3659
|
+
currentNode.addEndIndex(closeIndex + 1);
|
|
3660
|
+
}
|
|
3661
|
+
this.matcher.pop();
|
|
3662
|
+
this.isCurrentNodeStopNode = false;
|
|
3663
|
+
} else if (options.unpairedTagsSet.has(tagName)) {
|
|
3664
|
+
const childNode = new XmlNode(tagName);
|
|
3665
|
+
if (prefixedAttrs) {
|
|
3666
|
+
childNode[":@"] = prefixedAttrs;
|
|
3667
|
+
}
|
|
3668
|
+
this.addChild(currentNode, childNode, this.readonlyMatcher, startIndex);
|
|
3669
|
+
if (options.captureMetaData) {
|
|
3670
|
+
currentNode.addEndIndex(result.closeIndex + 1);
|
|
3671
|
+
}
|
|
3672
|
+
this.matcher.pop();
|
|
3673
|
+
this.isCurrentNodeStopNode = false;
|
|
3674
|
+
i = result.closeIndex;
|
|
3675
|
+
continue;
|
|
3676
|
+
} else {
|
|
3677
|
+
const childNode = new XmlNode(tagName);
|
|
3678
|
+
if (this.tagsNodeStack.length > options.maxNestedTags) {
|
|
3679
|
+
throw new Error("Maximum nested tags exceeded");
|
|
3680
|
+
}
|
|
3681
|
+
this.tagsNodeStack.push(currentNode);
|
|
3682
|
+
if (prefixedAttrs) {
|
|
3683
|
+
childNode[":@"] = prefixedAttrs;
|
|
3684
|
+
}
|
|
3685
|
+
this.addChild(currentNode, childNode, this.readonlyMatcher, startIndex);
|
|
3686
|
+
currentNode = childNode;
|
|
3687
|
+
}
|
|
3688
|
+
textData = "";
|
|
3689
|
+
i = closeIndex;
|
|
3690
|
+
}
|
|
3691
|
+
}
|
|
3692
|
+
} else {
|
|
3693
|
+
textData += xmlData[i];
|
|
3694
|
+
}
|
|
3695
|
+
}
|
|
3696
|
+
return xmlObj.child;
|
|
3697
|
+
};
|
|
3698
|
+
function addChild(currentNode, childNode, matcher, startIndex) {
|
|
3699
|
+
if (!this.options.captureMetaData) startIndex = void 0;
|
|
3700
|
+
const jPathOrMatcher = this.options.jPath ? matcher.toString() : matcher;
|
|
3701
|
+
const result = this.options.updateTag(childNode.tagname, jPathOrMatcher, childNode[":@"]);
|
|
3702
|
+
if (result === false) {
|
|
3703
|
+
} else if (typeof result === "string") {
|
|
3704
|
+
childNode.tagname = result;
|
|
3705
|
+
currentNode.addChild(childNode, startIndex);
|
|
3706
|
+
} else {
|
|
3707
|
+
currentNode.addChild(childNode, startIndex);
|
|
3708
|
+
}
|
|
3709
|
+
}
|
|
3710
|
+
function replaceEntitiesValue(val, tagName, jPath) {
|
|
3711
|
+
const entityConfig = this.options.processEntities;
|
|
3712
|
+
if (!entityConfig || !entityConfig.enabled) {
|
|
3713
|
+
return val;
|
|
3714
|
+
}
|
|
3715
|
+
if (entityConfig.allowedTags) {
|
|
3716
|
+
const jPathOrMatcher = this.options.jPath ? jPath.toString() : jPath;
|
|
3717
|
+
const allowed = Array.isArray(entityConfig.allowedTags) ? entityConfig.allowedTags.includes(tagName) : entityConfig.allowedTags(tagName, jPathOrMatcher);
|
|
3718
|
+
if (!allowed) {
|
|
3719
|
+
return val;
|
|
3720
|
+
}
|
|
3721
|
+
}
|
|
3722
|
+
if (entityConfig.tagFilter) {
|
|
3723
|
+
const jPathOrMatcher = this.options.jPath ? jPath.toString() : jPath;
|
|
3724
|
+
if (!entityConfig.tagFilter(tagName, jPathOrMatcher)) {
|
|
3725
|
+
return val;
|
|
3726
|
+
}
|
|
3727
|
+
}
|
|
3728
|
+
return this.entityDecoder.decode(val);
|
|
3729
|
+
}
|
|
3730
|
+
function saveTextToParentTag(textData, parentNode, matcher, isLeafNode) {
|
|
3731
|
+
if (textData) {
|
|
3732
|
+
if (isLeafNode === void 0) isLeafNode = parentNode.child.length === 0;
|
|
3733
|
+
textData = this.parseTextData(
|
|
3734
|
+
textData,
|
|
3735
|
+
parentNode.tagname,
|
|
3736
|
+
matcher,
|
|
3737
|
+
false,
|
|
3738
|
+
parentNode[":@"] ? Object.keys(parentNode[":@"]).length !== 0 : false,
|
|
3739
|
+
isLeafNode
|
|
3740
|
+
);
|
|
3741
|
+
if (textData !== void 0 && textData !== "")
|
|
3742
|
+
parentNode.add(this.options.textNodeName, textData);
|
|
3743
|
+
textData = "";
|
|
3744
|
+
}
|
|
3745
|
+
return textData;
|
|
3746
|
+
}
|
|
3747
|
+
function isItStopNode() {
|
|
3748
|
+
if (this.stopNodeExpressionsSet.size === 0) return false;
|
|
3749
|
+
return this.matcher.matchesAny(this.stopNodeExpressionsSet);
|
|
3750
|
+
}
|
|
3751
|
+
function tagExpWithClosingIndex(xmlData, i, closingChar = ">") {
|
|
3752
|
+
let attrBoundary = 0;
|
|
3753
|
+
const len = xmlData.length;
|
|
3754
|
+
const closeCode0 = closingChar.charCodeAt(0);
|
|
3755
|
+
const closeCode1 = closingChar.length > 1 ? closingChar.charCodeAt(1) : -1;
|
|
3756
|
+
let result = "";
|
|
3757
|
+
let segmentStart = i;
|
|
3758
|
+
for (let index = i; index < len; index++) {
|
|
3759
|
+
const code = xmlData.charCodeAt(index);
|
|
3760
|
+
if (attrBoundary) {
|
|
3761
|
+
if (code === attrBoundary) attrBoundary = 0;
|
|
3762
|
+
} else if (code === 34 || code === 39) {
|
|
3763
|
+
attrBoundary = code;
|
|
3764
|
+
} else if (code === closeCode0) {
|
|
3765
|
+
if (closeCode1 !== -1) {
|
|
3766
|
+
if (xmlData.charCodeAt(index + 1) === closeCode1) {
|
|
3767
|
+
result += xmlData.substring(segmentStart, index);
|
|
3768
|
+
return { data: result, index };
|
|
3769
|
+
}
|
|
3770
|
+
} else {
|
|
3771
|
+
result += xmlData.substring(segmentStart, index);
|
|
3772
|
+
return { data: result, index };
|
|
3773
|
+
}
|
|
3774
|
+
} else if (code === 9 && !attrBoundary) {
|
|
3775
|
+
result += xmlData.substring(segmentStart, index) + " ";
|
|
3776
|
+
segmentStart = index + 1;
|
|
3777
|
+
}
|
|
3778
|
+
}
|
|
3779
|
+
}
|
|
3780
|
+
function findClosingIndex(xmlData, str, i, errMsg) {
|
|
3781
|
+
const closingIndex = xmlData.indexOf(str, i);
|
|
3782
|
+
if (closingIndex === -1) {
|
|
3783
|
+
throw new Error(errMsg);
|
|
3784
|
+
} else {
|
|
3785
|
+
return closingIndex + str.length - 1;
|
|
3786
|
+
}
|
|
3787
|
+
}
|
|
3788
|
+
function findClosingChar(xmlData, char, i, errMsg) {
|
|
3789
|
+
const closingIndex = xmlData.indexOf(char, i);
|
|
3790
|
+
if (closingIndex === -1) throw new Error(errMsg);
|
|
3791
|
+
return closingIndex;
|
|
3792
|
+
}
|
|
3793
|
+
function readTagExp(xmlData, i, removeNSPrefix, closingChar = ">") {
|
|
3794
|
+
const result = tagExpWithClosingIndex(xmlData, i + 1, closingChar);
|
|
3795
|
+
if (!result) return;
|
|
3796
|
+
let tagExp = result.data;
|
|
3797
|
+
const closeIndex = result.index;
|
|
3798
|
+
const separatorIndex = tagExp.search(/\s/);
|
|
3799
|
+
let tagName = tagExp;
|
|
3800
|
+
let attrExpPresent = true;
|
|
3801
|
+
if (separatorIndex !== -1) {
|
|
3802
|
+
tagName = tagExp.substring(0, separatorIndex);
|
|
3803
|
+
tagExp = tagExp.substring(separatorIndex + 1).trimStart();
|
|
3804
|
+
}
|
|
3805
|
+
const rawTagName = tagName;
|
|
3806
|
+
if (removeNSPrefix) {
|
|
3807
|
+
const colonIndex = tagName.indexOf(":");
|
|
3808
|
+
if (colonIndex !== -1) {
|
|
3809
|
+
tagName = tagName.substr(colonIndex + 1);
|
|
3810
|
+
attrExpPresent = tagName !== result.data.substr(colonIndex + 1);
|
|
3811
|
+
}
|
|
3812
|
+
}
|
|
3813
|
+
return {
|
|
3814
|
+
tagName,
|
|
3815
|
+
tagExp,
|
|
3816
|
+
closeIndex,
|
|
3817
|
+
attrExpPresent,
|
|
3818
|
+
rawTagName
|
|
3819
|
+
};
|
|
3820
|
+
}
|
|
3821
|
+
function readStopNodeData(xmlData, tagName, i) {
|
|
3822
|
+
const startIndex = i;
|
|
3823
|
+
let openTagCount = 1;
|
|
3824
|
+
const xmllen = xmlData.length;
|
|
3825
|
+
for (; i < xmllen; i++) {
|
|
3826
|
+
if (xmlData[i] === "<") {
|
|
3827
|
+
const c1 = xmlData.charCodeAt(i + 1);
|
|
3828
|
+
if (c1 === 47) {
|
|
3829
|
+
const closeIndex = findClosingChar(xmlData, ">", i, `${tagName} is not closed`);
|
|
3830
|
+
let closeTagName = xmlData.substring(i + 2, closeIndex).trim();
|
|
3831
|
+
if (closeTagName === tagName) {
|
|
3832
|
+
openTagCount--;
|
|
3833
|
+
if (openTagCount === 0) {
|
|
3834
|
+
return {
|
|
3835
|
+
tagContent: xmlData.substring(startIndex, i),
|
|
3836
|
+
i: closeIndex
|
|
3837
|
+
};
|
|
3838
|
+
}
|
|
3839
|
+
}
|
|
3840
|
+
i = closeIndex;
|
|
3841
|
+
} else if (c1 === 63) {
|
|
3842
|
+
const closeIndex = findClosingIndex(xmlData, "?>", i + 1, "StopNode is not closed.");
|
|
3843
|
+
i = closeIndex;
|
|
3844
|
+
} else if (c1 === 33 && xmlData.charCodeAt(i + 2) === 45 && xmlData.charCodeAt(i + 3) === 45) {
|
|
3845
|
+
const closeIndex = findClosingIndex(xmlData, "-->", i + 3, "StopNode is not closed.");
|
|
3846
|
+
i = closeIndex;
|
|
3847
|
+
} else if (c1 === 33 && xmlData.charCodeAt(i + 2) === 91) {
|
|
3848
|
+
const closeIndex = findClosingIndex(xmlData, "]]>", i, "StopNode is not closed.") - 2;
|
|
3849
|
+
i = closeIndex;
|
|
3850
|
+
} else {
|
|
3851
|
+
const tagData = readTagExp(xmlData, i, false);
|
|
3852
|
+
if (tagData) {
|
|
3853
|
+
const openTagName = tagData && tagData.tagName;
|
|
3854
|
+
if (openTagName === tagName && tagData.tagExp[tagData.tagExp.length - 1] !== "/") {
|
|
3855
|
+
openTagCount++;
|
|
3856
|
+
}
|
|
3857
|
+
i = tagData.closeIndex;
|
|
3858
|
+
}
|
|
3859
|
+
}
|
|
3860
|
+
}
|
|
3861
|
+
}
|
|
3862
|
+
}
|
|
3863
|
+
function parseValue(val, shouldParse, options) {
|
|
3864
|
+
if (shouldParse && typeof val === "string") {
|
|
3865
|
+
const newval = val.trim();
|
|
3866
|
+
if (newval === "true") return true;
|
|
3867
|
+
else if (newval === "false") return false;
|
|
3868
|
+
else return toNumber(val, options);
|
|
3869
|
+
} else {
|
|
3870
|
+
if (isExist(val)) {
|
|
3871
|
+
return val;
|
|
3872
|
+
} else {
|
|
3873
|
+
return "";
|
|
3874
|
+
}
|
|
3875
|
+
}
|
|
3876
|
+
}
|
|
3877
|
+
function transformTagName(fn, tagName, tagExp, options) {
|
|
3878
|
+
if (fn) {
|
|
3879
|
+
const newTagName = fn(tagName);
|
|
3880
|
+
if (tagExp === tagName) {
|
|
3881
|
+
tagExp = newTagName;
|
|
3882
|
+
}
|
|
3883
|
+
tagName = newTagName;
|
|
3884
|
+
}
|
|
3885
|
+
tagName = sanitizeName(tagName, options);
|
|
3886
|
+
return { tagName, tagExp };
|
|
3887
|
+
}
|
|
3888
|
+
function sanitizeName(name, options) {
|
|
3889
|
+
if (criticalProperties.includes(name)) {
|
|
3890
|
+
throw new Error(`[SECURITY] Invalid name: "${name}" is a reserved JavaScript keyword that could cause prototype pollution`);
|
|
3891
|
+
} else if (DANGEROUS_PROPERTY_NAMES.includes(name)) {
|
|
3892
|
+
return options.onDangerousProperty(name);
|
|
3893
|
+
}
|
|
3894
|
+
return name;
|
|
3895
|
+
}
|
|
3896
|
+
|
|
3897
|
+
// node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/xmlparser/node2json.js
|
|
3898
|
+
var METADATA_SYMBOL2 = XmlNode.getMetaDataSymbol();
|
|
3899
|
+
function stripAttributePrefix(attrs, prefix) {
|
|
3900
|
+
if (!attrs || typeof attrs !== "object") return {};
|
|
3901
|
+
if (!prefix) return attrs;
|
|
3902
|
+
const rawAttrs = {};
|
|
3903
|
+
for (const key in attrs) {
|
|
3904
|
+
if (key.startsWith(prefix)) {
|
|
3905
|
+
const rawName = key.substring(prefix.length);
|
|
3906
|
+
rawAttrs[rawName] = attrs[key];
|
|
3907
|
+
} else {
|
|
3908
|
+
rawAttrs[key] = attrs[key];
|
|
3909
|
+
}
|
|
3910
|
+
}
|
|
3911
|
+
return rawAttrs;
|
|
3912
|
+
}
|
|
3913
|
+
function prettify(node, options, matcher, readonlyMatcher) {
|
|
3914
|
+
return compress(node, options, matcher, readonlyMatcher);
|
|
3915
|
+
}
|
|
3916
|
+
function compress(arr, options, matcher, readonlyMatcher) {
|
|
3917
|
+
let text;
|
|
3918
|
+
const compressedObj = {};
|
|
3919
|
+
for (let i = 0; i < arr.length; i++) {
|
|
3920
|
+
const tagObj = arr[i];
|
|
3921
|
+
const property = propName(tagObj);
|
|
3922
|
+
if (property !== void 0 && property !== options.textNodeName) {
|
|
3923
|
+
const rawAttrs = stripAttributePrefix(
|
|
3924
|
+
tagObj[":@"] || {},
|
|
3925
|
+
options.attributeNamePrefix
|
|
3926
|
+
);
|
|
3927
|
+
matcher.push(property, rawAttrs);
|
|
3928
|
+
}
|
|
3929
|
+
if (property === options.textNodeName) {
|
|
3930
|
+
if (text === void 0) text = tagObj[property];
|
|
3931
|
+
else text += "" + tagObj[property];
|
|
3932
|
+
} else if (property === void 0) {
|
|
3933
|
+
continue;
|
|
3934
|
+
} else if (tagObj[property]) {
|
|
3935
|
+
let val = compress(tagObj[property], options, matcher, readonlyMatcher);
|
|
3936
|
+
const isLeaf = isLeafTag(val, options);
|
|
3937
|
+
if (Object.keys(val).length === 0 && options.alwaysCreateTextNode) {
|
|
3938
|
+
val[options.textNodeName] = "";
|
|
3939
|
+
}
|
|
3940
|
+
if (tagObj[":@"]) {
|
|
3941
|
+
assignAttributes(val, tagObj[":@"], readonlyMatcher, options);
|
|
3942
|
+
} else if (Object.keys(val).length === 1 && val[options.textNodeName] !== void 0 && !options.alwaysCreateTextNode) {
|
|
3943
|
+
val = val[options.textNodeName];
|
|
3944
|
+
} else if (Object.keys(val).length === 0) {
|
|
3945
|
+
if (options.alwaysCreateTextNode) val[options.textNodeName] = "";
|
|
3946
|
+
else val = "";
|
|
3947
|
+
}
|
|
3948
|
+
if (tagObj[METADATA_SYMBOL2] !== void 0 && typeof val === "object" && val !== null) {
|
|
3949
|
+
val[METADATA_SYMBOL2] = tagObj[METADATA_SYMBOL2];
|
|
3950
|
+
}
|
|
3951
|
+
if (compressedObj[property] !== void 0 && Object.prototype.hasOwnProperty.call(compressedObj, property)) {
|
|
3952
|
+
if (!Array.isArray(compressedObj[property])) {
|
|
3953
|
+
compressedObj[property] = [compressedObj[property]];
|
|
3954
|
+
}
|
|
3955
|
+
compressedObj[property].push(val);
|
|
3956
|
+
} else {
|
|
3957
|
+
const jPathOrMatcher = options.jPath ? readonlyMatcher.toString() : readonlyMatcher;
|
|
3958
|
+
if (options.isArray(property, jPathOrMatcher, isLeaf)) {
|
|
3959
|
+
compressedObj[property] = [val];
|
|
3960
|
+
} else {
|
|
3961
|
+
compressedObj[property] = val;
|
|
3962
|
+
}
|
|
3963
|
+
}
|
|
3964
|
+
if (property !== void 0 && property !== options.textNodeName) {
|
|
3965
|
+
matcher.pop();
|
|
3966
|
+
}
|
|
3967
|
+
}
|
|
3968
|
+
}
|
|
3969
|
+
if (typeof text === "string") {
|
|
3970
|
+
if (text.length > 0) compressedObj[options.textNodeName] = text;
|
|
3971
|
+
} else if (text !== void 0) compressedObj[options.textNodeName] = text;
|
|
3972
|
+
return compressedObj;
|
|
3973
|
+
}
|
|
3974
|
+
function propName(obj) {
|
|
3975
|
+
const keys = Object.keys(obj);
|
|
3976
|
+
for (let i = 0; i < keys.length; i++) {
|
|
3977
|
+
const key = keys[i];
|
|
3978
|
+
if (key !== ":@") return key;
|
|
3979
|
+
}
|
|
3980
|
+
}
|
|
3981
|
+
function assignAttributes(obj, attrMap, readonlyMatcher, options) {
|
|
3982
|
+
if (attrMap) {
|
|
3983
|
+
const keys = Object.keys(attrMap);
|
|
3984
|
+
const len = keys.length;
|
|
3985
|
+
for (let i = 0; i < len; i++) {
|
|
3986
|
+
const atrrName = keys[i];
|
|
3987
|
+
const rawAttrName = atrrName.startsWith(options.attributeNamePrefix) ? atrrName.substring(options.attributeNamePrefix.length) : atrrName;
|
|
3988
|
+
const jPathOrMatcher = options.jPath ? readonlyMatcher.toString() + "." + rawAttrName : readonlyMatcher;
|
|
3989
|
+
if (options.isArray(atrrName, jPathOrMatcher, true, true)) {
|
|
3990
|
+
obj[atrrName] = [attrMap[atrrName]];
|
|
3991
|
+
} else {
|
|
3992
|
+
obj[atrrName] = attrMap[atrrName];
|
|
3993
|
+
}
|
|
3994
|
+
}
|
|
3995
|
+
}
|
|
3996
|
+
}
|
|
3997
|
+
function isLeafTag(obj, options) {
|
|
3998
|
+
const { textNodeName } = options;
|
|
3999
|
+
const propCount = Object.keys(obj).length;
|
|
4000
|
+
if (propCount === 0) {
|
|
4001
|
+
return true;
|
|
4002
|
+
}
|
|
4003
|
+
if (propCount === 1 && (obj[textNodeName] || typeof obj[textNodeName] === "boolean" || obj[textNodeName] === 0)) {
|
|
4004
|
+
return true;
|
|
4005
|
+
}
|
|
4006
|
+
return false;
|
|
4007
|
+
}
|
|
4008
|
+
|
|
4009
|
+
// node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
|
|
4010
|
+
var XMLParser = class {
|
|
4011
|
+
constructor(options) {
|
|
4012
|
+
this.externalEntities = {};
|
|
4013
|
+
this.options = buildOptions(options);
|
|
4014
|
+
}
|
|
4015
|
+
/**
|
|
4016
|
+
* Parse XML dats to JS object
|
|
4017
|
+
* @param {string|Uint8Array} xmlData
|
|
4018
|
+
* @param {boolean|Object} validationOption
|
|
4019
|
+
*/
|
|
4020
|
+
parse(xmlData, validationOption) {
|
|
4021
|
+
if (typeof xmlData !== "string" && xmlData.toString) {
|
|
4022
|
+
xmlData = xmlData.toString();
|
|
4023
|
+
} else if (typeof xmlData !== "string") {
|
|
4024
|
+
throw new Error("XML data is accepted in String or Bytes[] form.");
|
|
4025
|
+
}
|
|
4026
|
+
if (validationOption) {
|
|
4027
|
+
if (validationOption === true) validationOption = {};
|
|
4028
|
+
const result = validate(xmlData, validationOption);
|
|
4029
|
+
if (result !== true) {
|
|
4030
|
+
throw Error(`${result.err.msg}:${result.err.line}:${result.err.col}`);
|
|
4031
|
+
}
|
|
4032
|
+
}
|
|
4033
|
+
const orderedObjParser = new OrderedObjParser(this.options, this.externalEntities);
|
|
4034
|
+
const orderedResult = orderedObjParser.parseXml(xmlData);
|
|
4035
|
+
if (this.options.preserveOrder || orderedResult === void 0) return orderedResult;
|
|
4036
|
+
else return prettify(orderedResult, this.options, orderedObjParser.matcher, orderedObjParser.readonlyMatcher);
|
|
4037
|
+
}
|
|
4038
|
+
/**
|
|
4039
|
+
* Add Entity which is not by default supported by this library
|
|
4040
|
+
* @param {string} key
|
|
4041
|
+
* @param {string} value
|
|
4042
|
+
*/
|
|
4043
|
+
addEntity(key, value) {
|
|
4044
|
+
if (value.indexOf("&") !== -1) {
|
|
4045
|
+
throw new Error("Entity value can't have '&'");
|
|
4046
|
+
} else if (key.indexOf("&") !== -1 || key.indexOf(";") !== -1) {
|
|
4047
|
+
throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");
|
|
4048
|
+
} else if (value === "&") {
|
|
4049
|
+
throw new Error("An entity with value '&' is not permitted");
|
|
4050
|
+
} else {
|
|
4051
|
+
this.externalEntities[key] = value;
|
|
4052
|
+
}
|
|
4053
|
+
}
|
|
4054
|
+
/**
|
|
4055
|
+
* Returns a Symbol that can be used to access the metadata
|
|
4056
|
+
* property on a node.
|
|
4057
|
+
*
|
|
4058
|
+
* If Symbol is not available in the environment, an ordinary property is used
|
|
4059
|
+
* and the name of the property is here returned.
|
|
4060
|
+
*
|
|
4061
|
+
* The XMLMetaData property is only present when `captureMetaData`
|
|
4062
|
+
* is true in the options.
|
|
4063
|
+
*/
|
|
4064
|
+
static getMetaDataSymbol() {
|
|
4065
|
+
return XmlNode.getMetaDataSymbol();
|
|
4066
|
+
}
|
|
4067
|
+
};
|
|
4068
|
+
|
|
4069
|
+
// node_modules/.pnpm/fast-xml-parser@5.11.0/node_modules/fast-xml-parser/src/fxp.js
|
|
4070
|
+
var XMLValidator = {
|
|
4071
|
+
validate
|
|
4072
|
+
};
|
|
4073
|
+
|
|
4074
|
+
// vendor-entry-xml.mjs
|
|
4075
|
+
function rootDeclaration(source) {
|
|
4076
|
+
const match = source.match(/<([A-Za-z_][\w:.-]*)(\s[^>]*)?>/);
|
|
4077
|
+
if (!match) throw new TypeError("XML \u7F3A\u5C11\u6839\u5143\u7D20");
|
|
4078
|
+
return { name: match[1], attributes: match[2] ?? "" };
|
|
4079
|
+
}
|
|
4080
|
+
function parseXmlDocument(source, { expectedRoot, expectedNamespace } = {}) {
|
|
4081
|
+
if (typeof source !== "string") throw new TypeError("XML \u8F93\u5165\u5FC5\u987B\u662F UTF-8 \u5B57\u7B26\u4E32");
|
|
4082
|
+
if (/<!DOCTYPE/i.test(source)) throw new TypeError("XML \u4E0D\u5141\u8BB8 DOCTYPE");
|
|
4083
|
+
const validation = XMLValidator.validate(source);
|
|
4084
|
+
if (validation !== true) throw new TypeError(`XML \u65E0\u6CD5\u89E3\u6790: ${validation.err.msg}`);
|
|
4085
|
+
const root = rootDeclaration(source);
|
|
4086
|
+
if (expectedRoot && root.name.split(":").at(-1) !== expectedRoot) throw new TypeError(`XML \u6839\u5143\u7D20\u5FC5\u987B\u662F ${expectedRoot}`);
|
|
4087
|
+
if (expectedNamespace) {
|
|
4088
|
+
const namespace = root.attributes.match(/\sxmlns\s*=\s*["']([^"']+)["']/)?.[1];
|
|
4089
|
+
if (namespace !== expectedNamespace) throw new TypeError(`XML \u9ED8\u8BA4\u547D\u540D\u7A7A\u95F4\u5FC5\u987B\u662F ${expectedNamespace}`);
|
|
4090
|
+
}
|
|
4091
|
+
return new XMLParser({
|
|
4092
|
+
allowBooleanAttributes: false,
|
|
4093
|
+
ignoreAttributes: false,
|
|
4094
|
+
parseAttributeValue: false,
|
|
4095
|
+
parseTagValue: false,
|
|
4096
|
+
processEntities: false,
|
|
4097
|
+
removeNSPrefix: false,
|
|
4098
|
+
trimValues: false
|
|
4099
|
+
}).parse(source);
|
|
4100
|
+
}
|
|
4101
|
+
export {
|
|
4102
|
+
parseXmlDocument
|
|
4103
|
+
};
|