@capyclaw/ppt-suite 2.4.9 → 2.5.67
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 +45 -42
- package/composition.lock.json +46 -70
- package/contract/ppt-contract.json +310 -11
- package/cordis.patch.yml +5 -25
- package/dsh-suite.json +108 -194
- package/lib/index.mjs +1 -1
- package/node_modules/@capyclaw/asset-service/README.md +48 -0
- package/node_modules/@capyclaw/asset-service/cordis.patch.yml +4 -0
- package/node_modules/@capyclaw/asset-service/dsh-suite.json +29 -0
- package/node_modules/@capyclaw/asset-service/lib/host.mjs +14 -0
- package/node_modules/@capyclaw/asset-service/package.json +59 -0
- package/node_modules/@capyclaw/asset-service/src/index.mjs +223 -0
- package/node_modules/@capyclaw/document-workbench/README.md +125 -0
- package/node_modules/@capyclaw/document-workbench/package.json +44 -0
- package/node_modules/@capyclaw/document-workbench/src/bridge/index.mjs +321 -0
- package/node_modules/@capyclaw/document-workbench/src/client/index.mjs +625 -0
- package/node_modules/@capyclaw/document-workbench/src/client/screenshot.mjs +98 -0
- package/node_modules/@capyclaw/document-workbench/src/index.mjs +9 -0
- package/node_modules/@capyclaw/document-workbench/src/model/audit.mjs +101 -0
- package/node_modules/@capyclaw/document-workbench/src/model/conformance.mjs +92 -0
- package/node_modules/@capyclaw/document-workbench/src/model/ids.mjs +56 -0
- package/node_modules/@capyclaw/document-workbench/src/model/index.mjs +18 -0
- package/node_modules/@capyclaw/document-workbench/src/model/locate.mjs +118 -0
- package/node_modules/@capyclaw/document-workbench/src/model/manifest.mjs +148 -0
- package/node_modules/@capyclaw/document-workbench/src/model/ops.mjs +160 -0
- package/node_modules/@capyclaw/document-workbench/src/model/validate.mjs +72 -0
- package/node_modules/@capyclaw/document-workbench/src/ops/index.mjs +93 -0
- package/node_modules/@capyclaw/document-workbench/src/session/context.mjs +91 -0
- package/node_modules/@capyclaw/document-workbench/src/session/index.mjs +394 -0
- package/node_modules/@capyclaw/document-workbench/src/session/lease.mjs +105 -0
- package/node_modules/@capyclaw/document-workbench/src/session/mode.mjs +80 -0
- package/node_modules/@capyclaw/document-workbench/src/session/sanitize.mjs +107 -0
- package/node_modules/@capyclaw/document-workbench/src/session/state.mjs +159 -0
- package/node_modules/@capyclaw/document-workbench/src/session/watch.mjs +63 -0
- package/node_modules/@capyclaw/document-workbench/src/store/file-backend.mjs +158 -0
- package/node_modules/@capyclaw/document-workbench/src/testing/index.mjs +75 -0
- package/node_modules/@capyclaw/editor-host/README.md +37 -0
- package/node_modules/@capyclaw/editor-host/cordis.patch.yml +4 -0
- package/node_modules/@capyclaw/editor-host/dsh-suite.json +29 -0
- package/node_modules/@capyclaw/editor-host/lib/host.mjs +14 -0
- package/node_modules/@capyclaw/editor-host/package.json +59 -0
- package/node_modules/@capyclaw/editor-host/src/index.mjs +159 -0
- package/node_modules/@capyclaw/foundation/README.md +51 -0
- package/node_modules/@capyclaw/foundation/abi/bridge.mjs +86 -0
- package/node_modules/@capyclaw/foundation/abi/errors.mjs +63 -0
- package/node_modules/@capyclaw/foundation/abi/index.mjs +35 -0
- package/node_modules/@capyclaw/foundation/abi/kinds.mjs +271 -0
- package/node_modules/@capyclaw/foundation/abi/loader.mjs +345 -0
- package/node_modules/@capyclaw/foundation/abi/schema.mjs +98 -0
- package/node_modules/@capyclaw/foundation/abi/spec.mjs +255 -0
- package/node_modules/@capyclaw/foundation/abi/validate.mjs +24 -0
- package/node_modules/@capyclaw/foundation/abi/version.mjs +82 -0
- package/node_modules/@capyclaw/foundation/cordis.patch.yml +5 -0
- package/node_modules/@capyclaw/foundation/kit/index.mjs +6 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/client-panel.mjs +98 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/host-event.mjs +35 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/http-router.mjs +69 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/lifecycle-hook.mjs +55 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/own-server.mjs +113 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/raw.mjs +68 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/runtime-driver.mjs +113 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/service-provider.mjs +77 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/skill-provider.mjs +56 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/tool-provider.mjs +50 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/ui-panel.mjs +64 -0
- package/node_modules/@capyclaw/foundation/lib/ctx-service.mjs +42 -0
- package/node_modules/@capyclaw/foundation/lib/host/caps.mjs +34 -0
- package/node_modules/@capyclaw/foundation/lib/host/contract.mjs +85 -0
- package/node_modules/@capyclaw/foundation/lib/host/dsh.mjs +50 -0
- package/node_modules/@capyclaw/foundation/lib/host/memory.mjs +160 -0
- package/node_modules/@capyclaw/foundation/lib/host.mjs +23 -0
- package/node_modules/@capyclaw/foundation/lib/kernel.mjs +185 -0
- package/node_modules/@capyclaw/foundation/lib/skill/scan.mjs +87 -0
- package/node_modules/@capyclaw/foundation/lib/subsystems/events.mjs +60 -0
- package/node_modules/@capyclaw/foundation/lib/subsystems/log.mjs +51 -0
- package/node_modules/@capyclaw/foundation/lib/subsystems/net.mjs +188 -0
- package/node_modules/@capyclaw/foundation/package.json +53 -0
- package/node_modules/@capyclaw/foundation/runtime/index.mjs +20 -0
- package/node_modules/@capyclaw/plugin-kit/INTEGRATION.md +100 -0
- package/node_modules/@capyclaw/plugin-kit/README.md +70 -0
- package/node_modules/@capyclaw/plugin-kit/bin/sync.mjs +103 -0
- package/node_modules/@capyclaw/plugin-kit/package.json +69 -0
- package/node_modules/@capyclaw/plugin-kit/src/cli.mjs +56 -0
- package/node_modules/@capyclaw/plugin-kit/src/config.mjs +142 -0
- package/node_modules/@capyclaw/plugin-kit/src/editor/heartbeat-worker.js +129 -0
- package/node_modules/@capyclaw/plugin-kit/src/editor/lease.mjs +139 -0
- package/node_modules/@capyclaw/plugin-kit/src/editor/shadow.mjs +219 -0
- package/node_modules/@capyclaw/plugin-kit/src/editor/transport.js +13 -0
- package/node_modules/@capyclaw/plugin-kit/src/index.mjs +13 -0
- package/node_modules/@capyclaw/plugin-kit/src/pack.mjs +230 -0
- package/node_modules/@capyclaw/plugin-kit/src/runtime/context.mjs +128 -0
- package/node_modules/@capyclaw/plugin-kit/src/self-contained.mjs +307 -0
- package/node_modules/@capyclaw/plugin-kit/src/service/api.mjs +45 -0
- package/node_modules/@capyclaw/plugin-kit/src/service/http.mjs +113 -0
- package/node_modules/@capyclaw/plugin-kit/src/service/mcp-http.mjs +143 -0
- package/node_modules/@capyclaw/plugin-kit/src/service/server.mjs +131 -0
- package/node_modules/@capyclaw/plugin-kit/src/skills/provider.mjs +82 -0
- package/node_modules/@capyclaw/plugin-kit/src/store/blob-store.mjs +109 -0
- package/node_modules/@capyclaw/plugin-kit/src/store/content-store.mjs +17 -0
- package/node_modules/@capyclaw/plugin-kit/src/store/journal-store.mjs +89 -0
- package/node_modules/@capyclaw/plugin-kit/src/tools/result.mjs +41 -0
- package/node_modules/@capyclaw/plugin-kit/src/tools/validate.mjs +150 -0
- package/node_modules/@capyclaw/plugin-kit/src/tuning.mjs +82 -0
- package/node_modules/@capyclaw/plugin-kit/src/util/fs-lock.mjs +132 -0
- package/node_modules/@capyclaw/plugin-kit/src/util/http.mjs +130 -0
- package/node_modules/@capyclaw/plugin-kit/src/workspace/manager.mjs +656 -0
- package/node_modules/@capyclaw/plugin-kit/src/zip.mjs +181 -0
- package/node_modules/@capyclaw/portal/README.md +70 -0
- package/node_modules/@capyclaw/portal/lib/index.mjs +387 -0
- package/node_modules/@capyclaw/portal/lib/ledger.mjs +194 -0
- package/node_modules/@capyclaw/portal/lib/portal-agent.ps1 +811 -0
- package/node_modules/@capyclaw/portal/lib/portal-darwin.mjs +183 -0
- package/node_modules/@capyclaw/portal/package.json +40 -0
- package/node_modules/@capyclaw/ppt-editor/LICENSE +661 -0
- package/node_modules/@capyclaw/ppt-editor/README.md +86 -0
- package/node_modules/@capyclaw/ppt-editor/THIRD_PARTY_NOTICES.md +21 -0
- package/node_modules/@capyclaw/ppt-editor/app.js +6298 -0
- package/node_modules/@capyclaw/ppt-editor/contract/ppt-contract.json +1828 -0
- package/node_modules/@capyclaw/ppt-editor/heartbeat-worker.js +129 -0
- package/node_modules/@capyclaw/ppt-editor/index.html +176 -0
- package/node_modules/@capyclaw/ppt-editor/lib/index.mjs +8 -0
- package/node_modules/@capyclaw/ppt-editor/package.json +57 -0
- package/node_modules/@capyclaw/ppt-editor/ppt-full-app.js +381 -0
- package/node_modules/@capyclaw/ppt-skill-api/README.md +3 -0
- package/node_modules/@capyclaw/ppt-skill-api/contract/ppt-contract.json +1828 -0
- package/node_modules/@capyclaw/ppt-skill-api/cordis.patch.yml +4 -0
- package/node_modules/@capyclaw/ppt-skill-api/package.json +49 -0
- package/node_modules/@capyclaw/ppt-skill-api/plugin.mjs +15 -0
- package/node_modules/@capyclaw/ppt-skill-api/skills/pptist-api/SKILL.md +137 -0
- package/node_modules/@capyclaw/ppt-skill-api/skills/pptist-api/references/tool-contract.md +1646 -0
- package/node_modules/@capyclaw/ppt-skill-api/skills/pptist-api/references/visual-qa.md +28 -0
- package/node_modules/@capyclaw/ppt-skill-proposal/README.md +3 -0
- package/node_modules/@capyclaw/ppt-skill-proposal/contract/ppt-contract.json +1828 -0
- package/node_modules/@capyclaw/ppt-skill-proposal/cordis.patch.yml +4 -0
- package/node_modules/@capyclaw/ppt-skill-proposal/package.json +49 -0
- package/node_modules/@capyclaw/ppt-skill-proposal/plugin.mjs +15 -0
- package/node_modules/@capyclaw/ppt-skill-proposal/skills/pptmaster-proposal/SKILL.md +83 -0
- package/node_modules/@capyclaw/ppt-skill-proposal/skills/pptmaster-proposal/references/anti-ai-slop.md +18 -0
- package/node_modules/@capyclaw/ppt-skill-proposal/skills/pptmaster-proposal/references/deck-structure.md +42 -0
- package/node_modules/@capyclaw/ppt-skill-proposal/skills/pptmaster-proposal/references/design-tokens.md +36 -0
- package/node_modules/@capyclaw/ppt-skill-proposal/skills/pptmaster-proposal/references/layout-system.md +30 -0
- package/node_modules/@capyclaw/ppt-skill-proposal/skills/pptmaster-proposal/references/page-craft.md +31 -0
- package/node_modules/@capyclaw/ppt-skill-proposal/skills/pptmaster-proposal/references/scqa-pyramid.md +26 -0
- package/node_modules/@capyclaw/ppt-workbench/LICENSE +661 -0
- package/node_modules/@capyclaw/ppt-workbench/README.md +173 -0
- package/node_modules/@capyclaw/ppt-workbench/THIRD_PARTY_NOTICES.md +21 -0
- package/node_modules/@capyclaw/ppt-workbench/contract/ppt-contract.json +1828 -0
- package/node_modules/@capyclaw/ppt-workbench/core/audit.js +507 -0
- package/node_modules/@capyclaw/ppt-workbench/core/chart.js +199 -0
- package/node_modules/@capyclaw/ppt-workbench/core/color.js +170 -0
- package/node_modules/@capyclaw/ppt-workbench/core/deck-layout.js +375 -0
- package/node_modules/@capyclaw/ppt-workbench/core/formula.js +80 -0
- package/node_modules/@capyclaw/ppt-workbench/core/hfmath/hershey.js +1763 -0
- package/node_modules/@capyclaw/ppt-workbench/core/hfmath/index.js +1176 -0
- package/node_modules/@capyclaw/ppt-workbench/core/hfmath/stretch.js +41 -0
- package/node_modules/@capyclaw/ppt-workbench/core/hfmath/symbols.js +408 -0
- package/node_modules/@capyclaw/ppt-workbench/core/inspect.js +366 -0
- package/node_modules/@capyclaw/ppt-workbench/core/manuscript/compare.mjs +103 -0
- package/node_modules/@capyclaw/ppt-workbench/core/manuscript/compile.mjs +322 -0
- package/node_modules/@capyclaw/ppt-workbench/core/manuscript/edit.mjs +239 -0
- package/node_modules/@capyclaw/ppt-workbench/core/manuscript/parse.mjs +346 -0
- package/node_modules/@capyclaw/ppt-workbench/core/manuscript/render-html.mjs +84 -0
- package/node_modules/@capyclaw/ppt-workbench/core/manuscript/sync.mjs +101 -0
- package/node_modules/@capyclaw/ppt-workbench/core/measure.js +104 -0
- package/node_modules/@capyclaw/ppt-workbench/core/ops/browser.js +28 -0
- package/node_modules/@capyclaw/ppt-workbench/core/ops/chart.js +64 -0
- package/node_modules/@capyclaw/ppt-workbench/core/ops/deck.js +21 -0
- package/node_modules/@capyclaw/ppt-workbench/core/ops/element.js +55 -0
- package/node_modules/@capyclaw/ppt-workbench/core/ops/history.js +11 -0
- package/node_modules/@capyclaw/ppt-workbench/core/ops/import.js +95 -0
- package/node_modules/@capyclaw/ppt-workbench/core/ops/index.js +39 -0
- package/node_modules/@capyclaw/ppt-workbench/core/ops/playback.js +9 -0
- package/node_modules/@capyclaw/ppt-workbench/core/ops/recolor.js +87 -0
- package/node_modules/@capyclaw/ppt-workbench/core/ops/slide.js +66 -0
- package/node_modules/@capyclaw/ppt-workbench/core/ops/table.js +85 -0
- package/node_modules/@capyclaw/ppt-workbench/core/ops/text.js +35 -0
- package/node_modules/@capyclaw/ppt-workbench/core/ops/view.js +13 -0
- package/node_modules/@capyclaw/ppt-workbench/core/ops.js +12 -0
- package/node_modules/@capyclaw/ppt-workbench/core/quick.js +52 -0
- package/node_modules/@capyclaw/ppt-workbench/core/shape-library.js +122 -0
- package/node_modules/@capyclaw/ppt-workbench/core/table.js +178 -0
- package/node_modules/@capyclaw/ppt-workbench/core/text.js +200 -0
- package/node_modules/@capyclaw/ppt-workbench/lib/host.mjs +1 -0
- package/node_modules/@capyclaw/ppt-workbench/package.json +73 -0
- package/node_modules/@capyclaw/ppt-workbench/plugin.mjs +1 -0
- package/node_modules/@capyclaw/ppt-workbench/server/audit.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/bridge-client.mjs +308 -0
- package/node_modules/@capyclaw/ppt-workbench/server/constants.mjs +21 -0
- package/node_modules/@capyclaw/ppt-workbench/server/contract-snapshots.mjs +89 -0
- package/node_modules/@capyclaw/ppt-workbench/server/contract.mjs +24 -0
- package/node_modules/@capyclaw/ppt-workbench/server/deck-layout.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/editor-assets.mjs +132 -0
- package/node_modules/@capyclaw/ppt-workbench/server/embedded-host.mjs +252 -0
- package/node_modules/@capyclaw/ppt-workbench/server/http-utils.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/infra/http.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/infra/runtime/context.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/infra/store/blob-store.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/infra/tuning.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/infra/util/fs-lock.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/infra/workspace/manager.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/mcp/dispatch.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/mcp/handler.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/mcp/instructions.mjs +66 -0
- package/node_modules/@capyclaw/ppt-workbench/server/ppt-shim.mjs +168 -0
- package/node_modules/@capyclaw/ppt-workbench/server/relay.mjs +282 -0
- package/node_modules/@capyclaw/ppt-workbench/server/routes/assets.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/routes/bridge.mjs +74 -0
- package/node_modules/@capyclaw/ppt-workbench/server/routes/editor.mjs +9 -0
- package/node_modules/@capyclaw/ppt-workbench/server/routes/import.mjs +260 -0
- package/node_modules/@capyclaw/ppt-workbench/server/routes/manuscript.mjs +414 -0
- package/node_modules/@capyclaw/ppt-workbench/server/routes/mcp.mjs +17 -0
- package/node_modules/@capyclaw/ppt-workbench/server/routes/session.mjs +29 -0
- package/node_modules/@capyclaw/ppt-workbench/server/runtime/recovery.mjs +9 -0
- package/node_modules/@capyclaw/ppt-workbench/server/runtime/watch.mjs +17 -0
- package/node_modules/@capyclaw/ppt-workbench/server/session-context.mjs +5 -0
- package/node_modules/@capyclaw/ppt-workbench/server/shared/SHARED_MANIFEST.json +70 -0
- package/node_modules/@capyclaw/ppt-workbench/server/shared/asset-service.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/shared/editor-host.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/shared/kit/editor/lease.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/shared/kit/service/api.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/shared/kit/service/http.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/shared/kit/service/mcp-http.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/shared/kit/tools/validate.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/shared/kit/tuning.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/shared/kit/util/fs-lock.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/shared/service-host.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/shared/tool-host.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/shared/tuning.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/store/backends/file-backend.mjs +13 -0
- package/node_modules/@capyclaw/ppt-workbench/server/store/checkpoints.mjs +28 -0
- package/node_modules/@capyclaw/ppt-workbench/server/store/deck-sanitize.mjs +68 -0
- package/node_modules/@capyclaw/ppt-workbench/server/store/doc.mjs +56 -0
- package/node_modules/@capyclaw/ppt-workbench/server/store/index.mjs +34 -0
- package/node_modules/@capyclaw/ppt-workbench/server/store/journal.mjs +9 -0
- package/node_modules/@capyclaw/ppt-workbench/server/store/lease.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/store/sanitize.mjs +33 -0
- package/node_modules/@capyclaw/ppt-workbench/server/store/sessions.mjs +303 -0
- package/node_modules/@capyclaw/ppt-workbench/server/store.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/apply.mjs +33 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/audit.mjs +28 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/chart.mjs +83 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/compose.mjs +97 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/contract.mjs +38 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/deck.mjs +27 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/element.mjs +67 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/export.mjs +99 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/formula.mjs +72 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/history.mjs +29 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/image.mjs +174 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/imagesearch.mjs +203 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/import.mjs +180 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/index.mjs +64 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/inspect.mjs +46 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/line.mjs +58 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/manuscript.mjs +208 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/notes.mjs +33 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/present.mjs +34 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/recolor.mjs +62 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/screenshot.mjs +191 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/shape.mjs +64 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/slide.mjs +81 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/style.mjs +48 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/table.mjs +127 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/task.mjs +52 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/capabilities/text.mjs +82 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/domains/color.mjs +4 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/domains/image.mjs +78 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/domains/index.mjs +7 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/domains/manuscript-media.mjs +159 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/domains/offline-render.mjs +256 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/domains/pptx-export.mjs +577 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/domains/recolor.mjs +25 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/domains/remote-image.mjs +443 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/domains/slide.mjs +21 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/domains/text-style.mjs +11 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/domains/tooling.mjs +13 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/index.mjs +14 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/kernel/define.mjs +5 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/kernel/ports.mjs +52 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/kernel/registry.mjs +17 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools/model/deck-schema.mjs +105 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tools.mjs +18 -0
- package/node_modules/@capyclaw/ppt-workbench/server/tuning.mjs +93 -0
- package/node_modules/@capyclaw/ppt-workbench/server/validate.mjs +2 -0
- package/node_modules/@capyclaw/ppt-workbench/server/workbench-framework.mjs +305 -0
- package/node_modules/@capyclaw/service-broker/README.md +104 -0
- package/node_modules/@capyclaw/service-broker/cordis.patch.yml +8 -0
- package/node_modules/@capyclaw/service-broker/dsh-suite.json +21 -0
- package/node_modules/@capyclaw/service-broker/lib/control.mjs +193 -0
- package/node_modules/@capyclaw/service-broker/lib/discovery.mjs +109 -0
- package/node_modules/@capyclaw/service-broker/lib/engine.mjs +1236 -0
- package/node_modules/@capyclaw/service-broker/lib/host.mjs +182 -0
- package/node_modules/@capyclaw/service-broker/lib/manifest.mjs +249 -0
- package/node_modules/@capyclaw/service-broker/lib/recovery.mjs +325 -0
- package/node_modules/@capyclaw/service-broker/lib/skills-client.mjs +28 -0
- package/node_modules/@capyclaw/service-broker/lib/spec.mjs +78 -0
- package/node_modules/@capyclaw/service-broker/package.json +65 -0
- package/node_modules/@capyclaw/service-broker/server.mjs +81 -0
- package/node_modules/@capyclaw/service-broker/service.schema.json +62 -0
- package/node_modules/@capyclaw/service-broker/services.json +3 -0
- package/node_modules/@capyclaw/service-host/README.md +86 -0
- package/node_modules/@capyclaw/service-host/cordis.patch.yml +4 -0
- package/node_modules/@capyclaw/service-host/dsh-suite.json +29 -0
- package/node_modules/@capyclaw/service-host/lib/host.mjs +22 -0
- package/node_modules/@capyclaw/service-host/package.json +60 -0
- package/node_modules/@capyclaw/service-host/src/index.mjs +571 -0
- package/node_modules/@capyclaw/service-host/src/tuning.mjs +63 -0
- package/node_modules/@capyclaw/skills-service/README.md +31 -0
- package/node_modules/@capyclaw/skills-service/package.json +30 -0
- package/node_modules/@capyclaw/skills-service/server.mjs +237 -0
- package/node_modules/@capyclaw/tool-host/README.md +56 -0
- package/node_modules/@capyclaw/tool-host/cordis.patch.yml +4 -0
- package/node_modules/@capyclaw/tool-host/dsh-suite.json +30 -0
- package/node_modules/@capyclaw/tool-host/lib/host.mjs +16 -0
- package/node_modules/@capyclaw/tool-host/package.json +59 -0
- package/node_modules/@capyclaw/tool-host/src/descriptors.mjs +142 -0
- package/node_modules/@capyclaw/tool-host/src/index.mjs +390 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +15 -0
- package/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/node_modules/@types/node/assert.d.ts +1005 -0
- package/node_modules/@types/node/async_hooks.d.ts +586 -0
- package/node_modules/@types/node/buffer.buffer.d.ts +457 -0
- package/node_modules/@types/node/buffer.d.ts +1901 -0
- package/node_modules/@types/node/child_process.d.ts +1453 -0
- package/node_modules/@types/node/cluster.d.ts +578 -0
- package/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
- package/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
- package/node_modules/@types/node/console.d.ts +452 -0
- package/node_modules/@types/node/constants.d.ts +21 -0
- package/node_modules/@types/node/crypto.d.ts +4504 -0
- package/node_modules/@types/node/dgram.d.ts +596 -0
- package/node_modules/@types/node/diagnostics_channel.d.ts +551 -0
- package/node_modules/@types/node/dns/promises.d.ts +477 -0
- package/node_modules/@types/node/dns.d.ts +860 -0
- package/node_modules/@types/node/domain.d.ts +170 -0
- package/node_modules/@types/node/events.d.ts +863 -0
- package/node_modules/@types/node/fs/promises.d.ts +1208 -0
- package/node_modules/@types/node/fs.d.ts +4332 -0
- package/node_modules/@types/node/globals.d.ts +170 -0
- package/node_modules/@types/node/globals.typedarray.d.ts +21 -0
- package/node_modules/@types/node/http.d.ts +1919 -0
- package/node_modules/@types/node/http2.d.ts +2580 -0
- package/node_modules/@types/node/https.d.ts +549 -0
- package/node_modules/@types/node/index.d.ts +92 -0
- package/node_modules/@types/node/inspector.generated.d.ts +2775 -0
- package/node_modules/@types/node/module.d.ts +503 -0
- package/node_modules/@types/node/net.d.ts +924 -0
- package/node_modules/@types/node/os.d.ts +480 -0
- package/node_modules/@types/node/package.json +145 -0
- package/node_modules/@types/node/path.d.ts +191 -0
- package/node_modules/@types/node/perf_hooks.d.ts +860 -0
- package/node_modules/@types/node/process.d.ts +1632 -0
- package/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@types/node/querystring.d.ts +140 -0
- package/node_modules/@types/node/readline/promises.d.ts +154 -0
- package/node_modules/@types/node/readline.d.ts +715 -0
- package/node_modules/@types/node/repl.d.ts +430 -0
- package/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/node_modules/@types/node/stream/web.d.ts +527 -0
- package/node_modules/@types/node/stream.d.ts +1680 -0
- package/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@types/node/test.d.ts +1208 -0
- package/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/node_modules/@types/node/timers.d.ts +286 -0
- package/node_modules/@types/node/tls.d.ts +1204 -0
- package/node_modules/@types/node/trace_events.d.ts +171 -0
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +455 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +92 -0
- package/node_modules/@types/node/tty.d.ts +206 -0
- package/node_modules/@types/node/url.d.ts +957 -0
- package/node_modules/@types/node/util.d.ts +2083 -0
- package/node_modules/@types/node/v8.d.ts +753 -0
- package/node_modules/@types/node/vm.d.ts +704 -0
- package/node_modules/@types/node/wasi.d.ts +160 -0
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/node_modules/@types/node/web-globals/events.d.ts +81 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +38 -0
- package/node_modules/@types/node/worker_threads.d.ts +698 -0
- package/node_modules/@types/node/zlib.d.ts +517 -0
- package/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/core-util-is/README.md +3 -0
- package/node_modules/core-util-is/lib/util.js +107 -0
- package/node_modules/core-util-is/package.json +38 -0
- package/node_modules/https/package.json +15 -0
- package/node_modules/image-size/LICENSE +9 -0
- package/node_modules/image-size/Readme.md +184 -0
- package/node_modules/image-size/bin/image-size.js +53 -0
- package/node_modules/image-size/dist/detector.d.ts +2 -0
- package/node_modules/image-size/dist/detector.js +30 -0
- package/node_modules/image-size/dist/index.d.ts +10 -0
- package/node_modules/image-size/dist/index.js +129 -0
- package/node_modules/image-size/dist/types/bmp.d.ts +2 -0
- package/node_modules/image-size/dist/types/bmp.js +11 -0
- package/node_modules/image-size/dist/types/cur.d.ts +2 -0
- package/node_modules/image-size/dist/types/cur.js +17 -0
- package/node_modules/image-size/dist/types/dds.d.ts +2 -0
- package/node_modules/image-size/dist/types/dds.js +11 -0
- package/node_modules/image-size/dist/types/gif.d.ts +2 -0
- package/node_modules/image-size/dist/types/gif.js +12 -0
- package/node_modules/image-size/dist/types/heif.d.ts +2 -0
- package/node_modules/image-size/dist/types/heif.js +40 -0
- package/node_modules/image-size/dist/types/icns.d.ts +2 -0
- package/node_modules/image-size/dist/types/icns.js +101 -0
- package/node_modules/image-size/dist/types/ico.d.ts +2 -0
- package/node_modules/image-size/dist/types/ico.js +68 -0
- package/node_modules/image-size/dist/types/index.d.ts +23 -0
- package/node_modules/image-size/dist/types/index.js +46 -0
- package/node_modules/image-size/dist/types/interface.d.ts +13 -0
- package/node_modules/image-size/dist/types/interface.js +2 -0
- package/node_modules/image-size/dist/types/j2c.d.ts +2 -0
- package/node_modules/image-size/dist/types/j2c.js +12 -0
- package/node_modules/image-size/dist/types/jp2.d.ts +2 -0
- package/node_modules/image-size/dist/types/jp2.js +27 -0
- package/node_modules/image-size/dist/types/jpg.d.ts +2 -0
- package/node_modules/image-size/dist/types/jpg.js +123 -0
- package/node_modules/image-size/dist/types/jxl-stream.d.ts +2 -0
- package/node_modules/image-size/dist/types/jxl-stream.js +45 -0
- package/node_modules/image-size/dist/types/jxl.d.ts +2 -0
- package/node_modules/image-size/dist/types/jxl.js +59 -0
- package/node_modules/image-size/dist/types/ktx.d.ts +2 -0
- package/node_modules/image-size/dist/types/ktx.js +19 -0
- package/node_modules/image-size/dist/types/png.d.ts +2 -0
- package/node_modules/image-size/dist/types/png.js +35 -0
- package/node_modules/image-size/dist/types/pnm.d.ts +2 -0
- package/node_modules/image-size/dist/types/pnm.js +72 -0
- package/node_modules/image-size/dist/types/psd.d.ts +2 -0
- package/node_modules/image-size/dist/types/psd.js +11 -0
- package/node_modules/image-size/dist/types/svg.d.ts +2 -0
- package/node_modules/image-size/dist/types/svg.js +90 -0
- package/node_modules/image-size/dist/types/tga.d.ts +2 -0
- package/node_modules/image-size/dist/types/tga.js +15 -0
- package/node_modules/image-size/dist/types/tiff.d.ts +2 -0
- package/node_modules/image-size/dist/types/tiff.js +95 -0
- package/node_modules/image-size/dist/types/utils.d.ts +15 -0
- package/node_modules/image-size/dist/types/utils.js +75 -0
- package/node_modules/image-size/dist/types/webp.d.ts +2 -0
- package/node_modules/image-size/dist/types/webp.js +60 -0
- package/node_modules/image-size/dist/utils/bit-reader.d.ts +10 -0
- package/node_modules/image-size/dist/utils/bit-reader.js +44 -0
- package/node_modules/image-size/package.json +81 -0
- package/node_modules/immediate/LICENSE.txt +20 -0
- package/node_modules/immediate/README.md +93 -0
- package/node_modules/immediate/dist/immediate.js +75 -0
- package/node_modules/immediate/dist/immediate.min.js +1 -0
- package/node_modules/immediate/lib/browser.js +69 -0
- package/node_modules/immediate/lib/index.js +73 -0
- package/node_modules/immediate/package.json +42 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/isarray/.npmignore +1 -0
- package/node_modules/isarray/.travis.yml +4 -0
- package/node_modules/isarray/Makefile +6 -0
- package/node_modules/isarray/README.md +60 -0
- package/node_modules/isarray/component.json +19 -0
- package/node_modules/isarray/index.js +5 -0
- package/node_modules/isarray/package.json +45 -0
- package/node_modules/isarray/test.js +20 -0
- package/node_modules/jszip/.codeclimate.yml +16 -0
- package/node_modules/jszip/.editorconfig +8 -0
- package/node_modules/jszip/.eslintrc.js +43 -0
- package/node_modules/jszip/CHANGES.md +210 -0
- package/node_modules/jszip/LICENSE.markdown +651 -0
- package/node_modules/jszip/README.markdown +33 -0
- package/node_modules/jszip/dist/jszip.js +11586 -0
- package/node_modules/jszip/dist/jszip.min.js +13 -0
- package/node_modules/jszip/index.d.ts +344 -0
- package/node_modules/jszip/lib/base64.js +106 -0
- package/node_modules/jszip/lib/compressedObject.js +74 -0
- package/node_modules/jszip/lib/compressions.js +14 -0
- package/node_modules/jszip/lib/crc32.js +77 -0
- package/node_modules/jszip/lib/defaults.js +11 -0
- package/node_modules/jszip/lib/external.js +18 -0
- package/node_modules/jszip/lib/flate.js +85 -0
- package/node_modules/jszip/lib/generate/ZipFileWorker.js +539 -0
- package/node_modules/jszip/lib/generate/index.js +57 -0
- package/node_modules/jszip/lib/index.js +55 -0
- package/node_modules/jszip/lib/license_header.js +11 -0
- package/node_modules/jszip/lib/load.js +88 -0
- package/node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js +74 -0
- package/node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +42 -0
- package/node_modules/jszip/lib/nodejsUtils.js +57 -0
- package/node_modules/jszip/lib/object.js +384 -0
- package/node_modules/jszip/lib/readable-stream-browser.js +10 -0
- package/node_modules/jszip/lib/reader/ArrayReader.js +57 -0
- package/node_modules/jszip/lib/reader/DataReader.js +116 -0
- package/node_modules/jszip/lib/reader/NodeBufferReader.js +19 -0
- package/node_modules/jszip/lib/reader/StringReader.js +38 -0
- package/node_modules/jszip/lib/reader/Uint8ArrayReader.js +22 -0
- package/node_modules/jszip/lib/reader/readerFor.js +28 -0
- package/node_modules/jszip/lib/signature.js +7 -0
- package/node_modules/jszip/lib/stream/ConvertWorker.js +26 -0
- package/node_modules/jszip/lib/stream/Crc32Probe.js +24 -0
- package/node_modules/jszip/lib/stream/DataLengthProbe.js +29 -0
- package/node_modules/jszip/lib/stream/DataWorker.js +116 -0
- package/node_modules/jszip/lib/stream/GenericWorker.js +263 -0
- package/node_modules/jszip/lib/stream/StreamHelper.js +214 -0
- package/node_modules/jszip/lib/support.js +38 -0
- package/node_modules/jszip/lib/utf8.js +275 -0
- package/node_modules/jszip/lib/utils.js +510 -0
- package/node_modules/jszip/lib/zipEntries.js +261 -0
- package/node_modules/jszip/lib/zipEntry.js +293 -0
- package/node_modules/jszip/lib/zipObject.js +133 -0
- package/node_modules/jszip/package.json +67 -0
- package/node_modules/jszip/sponsors.md +21 -0
- package/node_modules/jszip/tsconfig.json +101 -0
- package/node_modules/jszip/vendor/FileSaver.js +247 -0
- package/node_modules/lie/README.md +62 -0
- package/node_modules/lie/dist/lie.js +350 -0
- package/node_modules/lie/dist/lie.min.js +1 -0
- package/node_modules/lie/dist/lie.polyfill.js +358 -0
- package/node_modules/lie/dist/lie.polyfill.min.js +1 -0
- package/node_modules/lie/lib/browser.js +273 -0
- package/node_modules/lie/lib/index.js +298 -0
- package/node_modules/lie/license.md +7 -0
- package/node_modules/lie/lie.d.ts +244 -0
- package/node_modules/lie/package.json +69 -0
- package/node_modules/lie/polyfill.js +4 -0
- package/node_modules/pako/LICENSE +21 -0
- package/node_modules/pako/README.md +191 -0
- package/node_modules/pako/dist/pako.js +6818 -0
- package/node_modules/pako/dist/pako.min.js +1 -0
- package/node_modules/pako/dist/pako_deflate.js +3997 -0
- package/node_modules/pako/dist/pako_deflate.min.js +1 -0
- package/node_modules/pako/dist/pako_inflate.js +3300 -0
- package/node_modules/pako/dist/pako_inflate.min.js +1 -0
- package/node_modules/pako/index.js +14 -0
- package/node_modules/pako/lib/deflate.js +400 -0
- package/node_modules/pako/lib/inflate.js +423 -0
- package/node_modules/pako/lib/utils/common.js +105 -0
- package/node_modules/pako/lib/utils/strings.js +187 -0
- package/node_modules/pako/lib/zlib/README +59 -0
- package/node_modules/pako/lib/zlib/adler32.js +51 -0
- package/node_modules/pako/lib/zlib/constants.js +68 -0
- package/node_modules/pako/lib/zlib/crc32.js +59 -0
- package/node_modules/pako/lib/zlib/deflate.js +1874 -0
- package/node_modules/pako/lib/zlib/gzheader.js +58 -0
- package/node_modules/pako/lib/zlib/inffast.js +345 -0
- package/node_modules/pako/lib/zlib/inflate.js +1556 -0
- package/node_modules/pako/lib/zlib/inftrees.js +343 -0
- package/node_modules/pako/lib/zlib/messages.js +32 -0
- package/node_modules/pako/lib/zlib/trees.js +1222 -0
- package/node_modules/pako/lib/zlib/zstream.js +47 -0
- package/node_modules/pako/package.json +44 -0
- package/node_modules/playwright-core/LICENSE +202 -0
- package/node_modules/playwright-core/NOTICE +5 -0
- package/node_modules/playwright-core/README.md +3 -0
- package/node_modules/playwright-core/ThirdPartyNotices.txt +13 -0
- package/node_modules/playwright-core/bin/install_media_pack.ps1 +5 -0
- package/node_modules/playwright-core/bin/install_webkit_wsl.ps1 +33 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +42 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +13 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1 +24 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +42 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +12 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1 +24 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +48 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +11 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1 +23 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +48 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +11 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1 +23 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +48 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +11 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1 +24 -0
- package/node_modules/playwright-core/browsers.json +52 -0
- package/node_modules/playwright-core/cli.js +22 -0
- package/node_modules/playwright-core/index.d.ts +17 -0
- package/node_modules/playwright-core/index.js +17 -0
- package/node_modules/playwright-core/index.mjs +28 -0
- package/node_modules/playwright-core/lib/bootstrap.js +149 -0
- package/node_modules/playwright-core/lib/coreBundle.js +78041 -0
- package/node_modules/playwright-core/lib/entry/cliDaemon.js +5 -0
- package/node_modules/playwright-core/lib/entry/dashboardApp.js +3 -0
- package/node_modules/playwright-core/lib/entry/mcp.js +10 -0
- package/node_modules/playwright-core/lib/entry/oopBrowserDownload.js +3 -0
- package/node_modules/playwright-core/lib/package.js +50 -0
- package/node_modules/playwright-core/lib/server/chromium/appIcon.png +0 -0
- package/node_modules/playwright-core/lib/server/electron/loader.js +123 -0
- package/node_modules/playwright-core/lib/serverRegistry.js +1939 -0
- package/node_modules/playwright-core/lib/serverRegistry.js.LICENSE +65 -0
- package/node_modules/playwright-core/lib/tools/cli-client/channelSessions.js +141 -0
- package/node_modules/playwright-core/lib/tools/cli-client/cli.js +7 -0
- package/node_modules/playwright-core/lib/tools/cli-client/help.json +808 -0
- package/node_modules/playwright-core/lib/tools/cli-client/minimist.js +128 -0
- package/node_modules/playwright-core/lib/tools/cli-client/output.js +352 -0
- package/node_modules/playwright-core/lib/tools/cli-client/program.js +422 -0
- package/node_modules/playwright-core/lib/tools/cli-client/registry.js +180 -0
- package/node_modules/playwright-core/lib/tools/cli-client/session.js +261 -0
- package/node_modules/playwright-core/lib/tools/dashboard/appIcon.png +0 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/SKILL.md +493 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/element-attributes.md +23 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/playwright-tests.md +39 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/pr-attachments.md +60 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/request-mocking.md +87 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/running-code.md +245 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/session-management.md +227 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/storage-state.md +275 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/test-generation.md +433 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/tracing.md +139 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/video-recording.md +216 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/SKILL.md +136 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/gallery-spec.md +144 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/migration.md +89 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/react.md +69 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/typing.md +173 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/vue.md +77 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-trace/SKILL.md +174 -0
- package/node_modules/playwright-core/lib/tools/utils/extension.js +112 -0
- package/node_modules/playwright-core/lib/tools/utils/socketConnection.js +108 -0
- package/node_modules/playwright-core/lib/utilsBundle.js +86078 -0
- package/node_modules/playwright-core/lib/utilsBundle.js.LICENSE +1890 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/codeMirrorModule--QdMvsKi.css +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/codeMirrorModule-CQ8RZGBm.js +32 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/codicon-DCmgc-ay.ttf +0 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-1bWoP6pv.svg +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-beta-k3eOH_eK.svg +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-nightly-Cp5nfeDT.svg +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/index-AwgwcYie.css +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/index-hRvO4yU2.js +12 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/safari-na3_-uQk.svg +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/index.html +29 -0
- package/node_modules/playwright-core/lib/vite/dashboard/playwright-logo.svg +24 -0
- package/node_modules/playwright-core/lib/vite/htmlReport/index.html +16 -0
- package/node_modules/playwright-core/lib/vite/htmlReport/report.css +2 -0
- package/node_modules/playwright-core/lib/vite/htmlReport/report.js +32 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule--QdMvsKi.css +1 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DK72OMRi.js +32 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/index-BZpYJZ-P.css +1 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/index-Cn0mmDuv.js +129 -0
- package/node_modules/playwright-core/lib/vite/recorder/index.html +29 -0
- package/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg +9 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-BEB2e8M3.js +32 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-D-g2vrvf.js +184 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/urlMatch-L3liM589.js +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-B794rD2Z.js +7 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.-QdMvsKi.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.C8BeHuxd.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/index.B_TqY17P.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/index.html +44 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/index.oNry3Hjv.js +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/manifest.webmanifest +16 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/playwright-logo.svg +9 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/snapshot.B_Jk1wbt.js +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +10 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +4 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.CYwC_gH1.js +5 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.CyMfwkXJ.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +18 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.kHJ-D0s7.css +1 -0
- package/node_modules/playwright-core/lib/webp_codec.LICENSE +173 -0
- package/node_modules/playwright-core/lib/webp_codec.wasm +0 -0
- package/node_modules/playwright-core/lib/xdg-open +1267 -0
- package/node_modules/playwright-core/package.json +34 -0
- package/node_modules/playwright-core/types/protocol.d.ts +24776 -0
- package/node_modules/playwright-core/types/structs.d.ts +52 -0
- package/node_modules/playwright-core/types/types.d.ts +27167 -0
- package/node_modules/pptxgenjs/LICENSE +21 -0
- package/node_modules/pptxgenjs/README.md +284 -0
- package/node_modules/pptxgenjs/dist/pptxgen.bundle.js +3 -0
- package/node_modules/pptxgenjs/dist/pptxgen.bundle.js.map +1 -0
- package/node_modules/pptxgenjs/dist/pptxgen.cjs.js +7445 -0
- package/node_modules/pptxgenjs/dist/pptxgen.es.js +7439 -0
- package/node_modules/pptxgenjs/dist/pptxgen.min.js +3 -0
- package/node_modules/pptxgenjs/dist/pptxgen.min.js.map +1 -0
- package/node_modules/pptxgenjs/package.json +89 -0
- package/node_modules/pptxgenjs/types/index.d.ts +2670 -0
- package/node_modules/process-nextick-args/index.js +45 -0
- package/node_modules/process-nextick-args/license.md +19 -0
- package/node_modules/process-nextick-args/package.json +25 -0
- package/node_modules/process-nextick-args/readme.md +18 -0
- package/node_modules/queue/LICENSE +8 -0
- package/node_modules/queue/index.d.ts +173 -0
- package/node_modules/queue/index.js +195 -0
- package/node_modules/queue/package.json +43 -0
- package/node_modules/queue/readme.md +221 -0
- package/node_modules/readable-stream/.travis.yml +34 -0
- package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/readable-stream/README.md +58 -0
- package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
- package/node_modules/readable-stream/duplex-browser.js +1 -0
- package/node_modules/readable-stream/duplex.js +1 -0
- package/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
- package/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
- package/node_modules/readable-stream/lib/_stream_transform.js +214 -0
- package/node_modules/readable-stream/lib/_stream_writable.js +685 -0
- package/node_modules/readable-stream/lib/internal/streams/BufferList.js +78 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +84 -0
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/readable-stream/package.json +52 -0
- package/node_modules/readable-stream/passthrough.js +1 -0
- package/node_modules/readable-stream/readable-browser.js +7 -0
- package/node_modules/readable-stream/readable.js +19 -0
- package/node_modules/readable-stream/transform.js +1 -0
- package/node_modules/readable-stream/writable-browser.js +1 -0
- package/node_modules/readable-stream/writable.js +8 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/setimmediate/LICENSE.txt +20 -0
- package/node_modules/setimmediate/package.json +30 -0
- package/node_modules/setimmediate/setImmediate.js +186 -0
- package/node_modules/string_decoder/.travis.yml +50 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/package.json +31 -0
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client.d.ts +97 -0
- package/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/node_modules/undici-types/errors.d.ts +128 -0
- package/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/handlers.d.ts +9 -0
- package/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/undici-types/index.d.ts +63 -0
- package/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +28 -0
- package/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/node_modules/undici-types/readable.d.ts +61 -0
- package/node_modules/undici-types/webidl.d.ts +220 -0
- package/node_modules/undici-types/websocket.d.ts +131 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +27 -0
- package/package.json +54 -21
- package/services.json +1 -20
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 形状库:常用 SVG 形状的 path 生成(viewBox 200×200 空间,编辑器按元素宽高缩放)。
|
|
3
|
+
* 零 DOM,node:test 直测;ppt_shape 工具的数据源。
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/** 正 n 边形顶点(外接圆半径 R,中心 100,100,顶点朝上)。 */
|
|
7
|
+
function polygon(n, rot = -90) {
|
|
8
|
+
const pts = []
|
|
9
|
+
for (let i = 0; i < n; i++) {
|
|
10
|
+
const a = ((rot + (360 / n) * i) * Math.PI) / 180
|
|
11
|
+
pts.push([100 + 100 * Math.cos(a), 100 + 100 * Math.sin(a)])
|
|
12
|
+
}
|
|
13
|
+
return pts
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** 顶点数组 → path(闭合)。 */
|
|
17
|
+
const toPath = (pts) => 'M ' + pts.map(([x, y]) => `${x.toFixed(1)} ${y.toFixed(1)}`).join(' L ') + ' Z'
|
|
18
|
+
|
|
19
|
+
/** 五角星(外径 100,内径 40)。 */
|
|
20
|
+
function star5() {
|
|
21
|
+
const pts = []
|
|
22
|
+
for (let i = 0; i < 10; i++) {
|
|
23
|
+
const r = i % 2 === 0 ? 100 : 42
|
|
24
|
+
const a = ((-90 + 36 * i) * Math.PI) / 180
|
|
25
|
+
pts.push([100 + r * Math.cos(a), 100 + r * Math.sin(a)])
|
|
26
|
+
}
|
|
27
|
+
return toPath(pts)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** 圆角矩形 path(顺时针,四角四段圆弧)。 */
|
|
31
|
+
function roundRect(radius = 32) {
|
|
32
|
+
const r = Math.min(radius, 100)
|
|
33
|
+
return `M 0 ${r} ` +
|
|
34
|
+
`A ${r} ${r} 0 0 1 ${r} 0 L ${200 - r} 0 A ${r} ${r} 0 0 1 200 ${r} ` +
|
|
35
|
+
`L 200 ${200 - r} A ${r} ${r} 0 0 1 ${200 - r} 200 L ${r} 200 ` +
|
|
36
|
+
`A ${r} ${r} 0 0 1 0 ${200 - r} Z`
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** 水平箭头 path(指向 dx 方向:1 右 / -1 左)。 */
|
|
40
|
+
function arrowH(dx) {
|
|
41
|
+
const pts = dx > 0
|
|
42
|
+
? [[0, 75], [125, 75], [125, 40], [200, 100], [125, 160], [125, 125], [0, 125]]
|
|
43
|
+
: [[200, 75], [75, 75], [75, 40], [0, 100], [75, 160], [75, 125], [200, 125]]
|
|
44
|
+
return toPath(pts)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** 垂直箭头 path(指向 dy 方向:1 下 / -1 上)。 */
|
|
48
|
+
function arrowV(dy) {
|
|
49
|
+
const pts = dy > 0
|
|
50
|
+
? [[75, 0], [75, 125], [40, 125], [100, 200], [160, 125], [125, 125], [125, 0]]
|
|
51
|
+
: [[75, 200], [75, 75], [40, 75], [100, 0], [160, 75], [125, 75], [125, 200]]
|
|
52
|
+
return toPath(pts)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** 双向水平箭头。 */
|
|
56
|
+
const doubleArrow = toPath([[0, 100], [50, 55], [50, 80], [150, 80], [150, 55], [200, 100], [150, 145], [150, 120], [50, 120], [50, 145]])
|
|
57
|
+
|
|
58
|
+
/** 对话气泡(圆角矩形 + 左下尾巴)。 */
|
|
59
|
+
const bubble = 'M 24 12 L 176 12 A 20 20 0 0 1 196 32 L 196 120 A 20 20 0 0 1 176 140 L 88 140 L 44 184 L 52 140 L 24 140 A 20 20 0 0 1 4 120 L 4 32 A 20 20 0 0 1 24 12 Z'
|
|
60
|
+
|
|
61
|
+
/** 爱心。 */
|
|
62
|
+
const heart = 'M 100 178 C 32 128 8 92 8 60 C 8 30 32 12 56 12 C 76 12 92 24 100 40 C 108 24 124 12 144 12 C 168 12 192 30 192 60 C 192 92 168 128 100 178 Z'
|
|
63
|
+
|
|
64
|
+
/** 云朵。 */
|
|
65
|
+
const cloud = 'M 56 160 A 44 44 0 0 1 56 72 A 52 52 0 0 1 152 60 A 46 46 0 0 1 152 160 Z'
|
|
66
|
+
|
|
67
|
+
/** 闪电。 */
|
|
68
|
+
const bolt = 'M 112 4 L 40 112 L 92 112 L 76 196 L 160 80 L 104 80 Z'
|
|
69
|
+
|
|
70
|
+
/** 十字。 */
|
|
71
|
+
const cross = 'M 70 8 L 130 8 L 130 70 L 192 70 L 192 130 L 130 130 L 130 192 L 70 192 L 70 130 L 8 130 L 8 70 L 70 70 Z'
|
|
72
|
+
|
|
73
|
+
/** 三角函数圆弧(四分之一圆 path)。 */
|
|
74
|
+
const quarter = (cx, cy, sx, sy, ex, ey) => `M ${sx} ${sy} A 100 100 0 0 1 ${ex} ${ey} L ${cx} ${cy} Z`
|
|
75
|
+
|
|
76
|
+
/** 圆柱(数据库/桶形)。 */
|
|
77
|
+
const cylinder = 'M 20 40 A 80 26 0 0 1 180 40 L 180 160 A 80 26 0 0 1 20 160 Z'
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* 形状库:key → { name, path }(viewBox 统一 0 0 200 200)。
|
|
81
|
+
*/
|
|
82
|
+
export const SHAPE_LIBRARY = {
|
|
83
|
+
rect: { name: '矩形', path: 'M 0 0 L 200 0 L 200 200 L 0 200 Z' },
|
|
84
|
+
'round-rect': { name: '圆角矩形', path: roundRect(32) },
|
|
85
|
+
circle: { name: '圆形', path: 'M 0 100 A 100 100 0 1 1 200 100 A 100 100 0 1 1 0 100 Z' },
|
|
86
|
+
triangle: { name: '三角形', path: toPath(polygon(3)) },
|
|
87
|
+
'triangle-down': { name: '倒三角', path: toPath(polygon(3, 90)) },
|
|
88
|
+
diamond: { name: '菱形', path: toPath([[100, 0], [200, 100], [100, 200], [0, 100]]) },
|
|
89
|
+
pentagon: { name: '五边形', path: toPath(polygon(5)) },
|
|
90
|
+
hexagon: { name: '六边形', path: toPath(polygon(6, 0)) },
|
|
91
|
+
'star-5': { name: '五角星', path: star5() },
|
|
92
|
+
'arrow-right': { name: '右箭头', path: arrowH(1) },
|
|
93
|
+
'arrow-left': { name: '左箭头', path: arrowH(-1) },
|
|
94
|
+
'arrow-up': { name: '上箭头', path: arrowV(-1) },
|
|
95
|
+
'arrow-down': { name: '下箭头', path: arrowV(1) },
|
|
96
|
+
'double-arrow': { name: '双向箭头', path: doubleArrow },
|
|
97
|
+
bubble: { name: '气泡', path: bubble },
|
|
98
|
+
heart: { name: '爱心', path: heart },
|
|
99
|
+
cloud: { name: '云朵', path: cloud },
|
|
100
|
+
bolt: { name: '闪电', path: bolt },
|
|
101
|
+
cross: { name: '十字', path: cross },
|
|
102
|
+
'pie-quarter': { name: '扇形', path: quarter(100, 100, 100, 0, 200, 100) },
|
|
103
|
+
cylinder: { name: '圆柱', path: cylinder },
|
|
104
|
+
'round-frame': {
|
|
105
|
+
name: '圆角边框',
|
|
106
|
+
path: 'M 24 4 L 176 4 A 20 20 0 0 1 196 24 L 196 176 A 20 20 0 0 1 176 196 L 24 196 A 20 20 0 0 1 4 176 L 4 24 A 20 20 0 0 1 24 4 Z M 24 20 A 4 4 0 0 0 20 24 L 20 176 A 4 4 0 0 0 24 180 L 176 180 A 4 4 0 0 0 180 176 L 180 24 A 4 4 0 0 0 176 20 Z',
|
|
107
|
+
},
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export const SHAPE_KEYS = Object.keys(SHAPE_LIBRARY)
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* 取形状定义。
|
|
114
|
+
* @param {string} key SHAPE_KEYS 之一
|
|
115
|
+
*/
|
|
116
|
+
export function getShape(key) {
|
|
117
|
+
const s = SHAPE_LIBRARY[String(key || '')]
|
|
118
|
+
if (!s) {
|
|
119
|
+
throw new Error(`未知形状: ${key}(可用: ${SHAPE_KEYS.join(', ')})`)
|
|
120
|
+
}
|
|
121
|
+
return { viewBox: [200, 200], ...s }
|
|
122
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 表格元素纯函数:数据归一化 + 元素构建(零 DOM,node:test 直测)。
|
|
3
|
+
*
|
|
4
|
+
* PPTist table 元素结构(编辑器原生渲染):
|
|
5
|
+
* { type:'table', data:[[cell...]], colWidths:[比例...], rowHeights?, cellMinHeight,
|
|
6
|
+
* theme:{ color, rowHeader, rowFooter, colHeader, colFooter },
|
|
7
|
+
* outline:{ style, width, color } }
|
|
8
|
+
* cell = { id, colspan, rowspan, text, style?{ bold, color, backcolor, align, fontsize } }
|
|
9
|
+
*
|
|
10
|
+
* buildTableData 支持直接丢二维数组(字符串/数字/对象混合)。
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { parseColor } from './color.js'
|
|
14
|
+
|
|
15
|
+
/** 表格缺省主题色(与编辑器模板主题色同族)。 */
|
|
16
|
+
export const DEFAULT_TABLE_COLOR = '#5b9bd5'
|
|
17
|
+
|
|
18
|
+
const isNum = (v) => typeof v === 'number' && isFinite(v)
|
|
19
|
+
|
|
20
|
+
/** 生成 cell id。 */
|
|
21
|
+
const cellId = (r, c) => `c${r + 1}_${c + 1}`
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* 颜色加白(tint):把主题色向白色混合,用于表头底色。
|
|
25
|
+
* @param {string} color 任意可解析颜色
|
|
26
|
+
* @param {number} ratio 0~1,越大越浅
|
|
27
|
+
*/
|
|
28
|
+
export function tint(color, ratio = 0.85) {
|
|
29
|
+
const rgb = parseColor(String(color || DEFAULT_TABLE_COLOR))
|
|
30
|
+
if (!rgb) return '#f2f6fc'
|
|
31
|
+
const mix = (ch) => Math.round(ch + (255 - ch) * ratio)
|
|
32
|
+
const to2 = (n) => n.toString(16).padStart(2, '0')
|
|
33
|
+
return `#${to2(mix(rgb[0]))}${to2(mix(rgb[1]))}${to2(mix(rgb[2]))}`
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** 单元格样式白名单。 */
|
|
37
|
+
const CELL_STYLE_KEYS = ['bold', 'italic', 'underline', 'strikethrough', 'color', 'backcolor', 'align', 'fontsize', 'fontname']
|
|
38
|
+
|
|
39
|
+
/** 归一化单元格:字符串/数字 → 纯文本 cell;对象 → 文本 + 样式白名单。 */
|
|
40
|
+
export function normalizeCell(input, r, c) {
|
|
41
|
+
const base = { id: input && input.id ? String(input.id) : cellId(r, c), colspan: 1, rowspan: 1, text: '' }
|
|
42
|
+
if (input == null) return base
|
|
43
|
+
if (typeof input === 'string' || isNum(input)) {
|
|
44
|
+
base.text = String(input)
|
|
45
|
+
return base
|
|
46
|
+
}
|
|
47
|
+
if (typeof input !== 'object') throw new Error(`表格单元格格式错误(第 ${r + 1} 行第 ${c + 1} 列)`)
|
|
48
|
+
base.text = String(input.text != null ? input.text : '')
|
|
49
|
+
if (Number(input.colspan) > 1) base.colspan = Math.floor(Number(input.colspan))
|
|
50
|
+
if (Number(input.rowspan) > 1) base.rowspan = Math.floor(Number(input.rowspan))
|
|
51
|
+
const style = {}
|
|
52
|
+
for (const k of CELL_STYLE_KEYS) {
|
|
53
|
+
if (input[k] != null) style[k] = input[k]
|
|
54
|
+
}
|
|
55
|
+
if (Object.keys(style).length) base.style = style
|
|
56
|
+
return base
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* 构建表格 data。
|
|
61
|
+
* @param {Array<Array>} rows 二维数组(必填)
|
|
62
|
+
* @param {object} opts { header?: boolean 首行表头, themeColor?: string }
|
|
63
|
+
*/
|
|
64
|
+
export function buildTableData(rows, opts = {}) {
|
|
65
|
+
if (!Array.isArray(rows) || rows.length === 0) throw new Error('表格数据 rows 不能为空')
|
|
66
|
+
if (!Array.isArray(rows[0]) || rows[0].length === 0) throw new Error('表格 rows 必须是二维数组')
|
|
67
|
+
|
|
68
|
+
const width = rows[0].length
|
|
69
|
+
const themeColor = opts.themeColor ? String(opts.themeColor) : DEFAULT_TABLE_COLOR
|
|
70
|
+
const header = Boolean(opts.header)
|
|
71
|
+
|
|
72
|
+
return rows.map((row, r) => {
|
|
73
|
+
if (!Array.isArray(row) || row.length !== width) {
|
|
74
|
+
throw new Error(`表格第 ${r + 1} 行列数(${Array.isArray(row) ? row.length : 0})与首行(${width})不一致`)
|
|
75
|
+
}
|
|
76
|
+
return row.map((input, c) => {
|
|
77
|
+
const cell = normalizeCell(input, r, c)
|
|
78
|
+
if (opts.header && r === 0) {
|
|
79
|
+
cell.style = {
|
|
80
|
+
bold: true,
|
|
81
|
+
backcolor: tint(themeColor, 0.88),
|
|
82
|
+
...(cell.style && typeof cell.style === 'object' ? cell.style : {}),
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return cell
|
|
86
|
+
})
|
|
87
|
+
})
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* 归一化列宽:比例(和≈1)直通;像素值(和>1.5)自动归一为比例。
|
|
92
|
+
*/
|
|
93
|
+
export function normalizeColWidths(colWidths, cols) {
|
|
94
|
+
if (!Array.isArray(colWidths) || colWidths.length === 0) {
|
|
95
|
+
return Array.from({ length: cols }, () => 1 / cols)
|
|
96
|
+
}
|
|
97
|
+
if (colWidths.length !== cols) {
|
|
98
|
+
throw new Error(`colWidths 长度(${colWidths.length})与列数(${cols})不一致`)
|
|
99
|
+
}
|
|
100
|
+
const nums = colWidths.map(Number)
|
|
101
|
+
if (nums.some((n) => !isFinite(n) || n <= 0)) throw new Error('colWidths 必须是正数')
|
|
102
|
+
const sum = nums.reduce((a, b) => a + b, 0)
|
|
103
|
+
if (sum <= 1.5) {
|
|
104
|
+
// 已是比例:按总和归一兜底
|
|
105
|
+
return nums.map((n) => n / sum)
|
|
106
|
+
}
|
|
107
|
+
return nums.map((n) => n / sum)
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* 构建表格元素。
|
|
112
|
+
* @param {object} e { rows, header?, themeColor?, left/top/width/height?, colWidths?, cellMinHeight?, outline? }
|
|
113
|
+
*/
|
|
114
|
+
export function makeTableElement(e) {
|
|
115
|
+
if (!e || typeof e !== 'object') throw new Error('表格元素必须是对象')
|
|
116
|
+
const rows = e.rows
|
|
117
|
+
const header = Boolean(e.header)
|
|
118
|
+
const data = buildTableData(rows, { header, themeColor: e.themeColor })
|
|
119
|
+
|
|
120
|
+
const cols = data[0].length
|
|
121
|
+
const nRows = data.length
|
|
122
|
+
const themeColor = e.themeColor ? String(e.themeColor) : DEFAULT_TABLE_COLOR
|
|
123
|
+
const cellMinHeight = Number(e.cellMinHeight != null ? e.cellMinHeight : 36)
|
|
124
|
+
const width = Number(e.width != null ? e.width : 640)
|
|
125
|
+
const height = Number(e.height != null ? e.height : nRows * cellMinHeight)
|
|
126
|
+
|
|
127
|
+
const el = {
|
|
128
|
+
type: 'table',
|
|
129
|
+
id: e.id || `table_${Date.now()}_${Math.floor(Math.random() * 1000)}`,
|
|
130
|
+
left: Number(e.left != null ? e.left : Math.round((1000 - width) / 2)),
|
|
131
|
+
top: Number(e.top != null ? e.top : 110),
|
|
132
|
+
width,
|
|
133
|
+
height,
|
|
134
|
+
rotate: Number(e.rotate || 0),
|
|
135
|
+
outline: e.outline && typeof e.outline === 'object'
|
|
136
|
+
? {
|
|
137
|
+
style: String(e.outline.style || 'solid'),
|
|
138
|
+
width: Number(e.outline.width != null ? e.outline.width : 1),
|
|
139
|
+
color: String(e.outline.color || '#d9d9d9'),
|
|
140
|
+
}
|
|
141
|
+
: { style: 'solid', width: 1, color: '#d9d9d9' },
|
|
142
|
+
theme: {
|
|
143
|
+
color: themeColor,
|
|
144
|
+
rowHeader: header,
|
|
145
|
+
rowFooter: false,
|
|
146
|
+
colHeader: Boolean(e.colHeader),
|
|
147
|
+
colFooter: false,
|
|
148
|
+
},
|
|
149
|
+
colWidths: normalizeColWidths(e.colWidths, cols),
|
|
150
|
+
cellMinHeight,
|
|
151
|
+
data,
|
|
152
|
+
}
|
|
153
|
+
if (Array.isArray(e.rowHeights) && e.rowHeights.length === nRows) {
|
|
154
|
+
el.rowHeights = e.rowHeights.map(Number)
|
|
155
|
+
}
|
|
156
|
+
return el
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* 归一化单元格补丁(set-table-cells 用):
|
|
161
|
+
* [{row, col, text?, bold?, color?, backcolor?, align?, fontsize?}]
|
|
162
|
+
*/
|
|
163
|
+
export function normalizeCellPatches(cells) {
|
|
164
|
+
if (!Array.isArray(cells) || cells.length === 0) throw new Error('cells 不能为空')
|
|
165
|
+
return cells.map((c, i) => {
|
|
166
|
+
if (!c || typeof c !== 'object' || !isNum(Number(c.row)) || !isNum(Number(c.col))) {
|
|
167
|
+
throw new Error(`cells[${i}] 需要 row / col`)
|
|
168
|
+
}
|
|
169
|
+
const patch = { row: Math.floor(Number(c.row)), col: Math.floor(Number(c.col)) }
|
|
170
|
+
if (c.text != null) patch.text = String(c.text)
|
|
171
|
+
const style = {}
|
|
172
|
+
for (const k of CELL_STYLE_KEYS) {
|
|
173
|
+
if (c[k] != null) style[k] = c[k]
|
|
174
|
+
}
|
|
175
|
+
if (Object.keys(style).length) patch.style = style
|
|
176
|
+
return patch
|
|
177
|
+
})
|
|
178
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PPT Bridge 中间件 —— 纯文本/样式工具(DOM-free,可在 node:test 直接测)。
|
|
3
|
+
* 2026-10-22 结构批:从 keystudio.works 抽取,行为保持不变。
|
|
4
|
+
* 2026-10-30 解耦批:颜色解析/对比色收敛到 core/color.js。
|
|
5
|
+
*/
|
|
6
|
+
import { parseColor, contrastColor } from './color.js'
|
|
7
|
+
import { makeChartElement } from './chart.js'
|
|
8
|
+
import { makeTableElement } from './table.js'
|
|
9
|
+
import { makeFormulaElement } from './formula.js'
|
|
10
|
+
|
|
11
|
+
export { parseColor } from './color.js'
|
|
12
|
+
|
|
13
|
+
export const escapeHtml = (s) => String(s == null ? '' : s)
|
|
14
|
+
.replace(/[&<>"']/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]))
|
|
15
|
+
|
|
16
|
+
export const fontSizeOf = (html) => {
|
|
17
|
+
const m = /font-size:\s*(\d+(?:\.\d+)?)px/.exec(String(html || ''))
|
|
18
|
+
return m ? Number(m[1]) : 0
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** 文本载体:text 元素本身,或带 text.content 的 shape(卡片标题)。 */
|
|
22
|
+
export function textHolder(el) {
|
|
23
|
+
if (!el) return null
|
|
24
|
+
if (el.type === 'text') return el
|
|
25
|
+
if (el.type === 'shape' && el.text && typeof el.text.content === 'string') return el.text
|
|
26
|
+
return null
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const htmlOf = (el) => {
|
|
30
|
+
const h = textHolder(el)
|
|
31
|
+
return h ? String(h.content || '') : ''
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 保留完整标签树(含 span 的 font-size/颜色/背景),只替换文本节点。
|
|
36
|
+
* 原字号住在 <span style="font-size:54px"> 里;DOM 版依赖 DOMParser,
|
|
37
|
+
* 这里用正则遍历文本节点实现同样语义,便于单测。
|
|
38
|
+
*/
|
|
39
|
+
export function setPlainText(current, text) {
|
|
40
|
+
const src = String(current || '')
|
|
41
|
+
const body = escapeHtml(text == null ? '' : text)
|
|
42
|
+
let first = true
|
|
43
|
+
const out = src.replace(/>([^<>]*)</g, (m, txt) => {
|
|
44
|
+
if (!String(txt).trim()) return m
|
|
45
|
+
if (first) { first = false; return '>' + body + '<' }
|
|
46
|
+
return '><'
|
|
47
|
+
})
|
|
48
|
+
if (first) return '<p>' + body + '</p>'
|
|
49
|
+
return out
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** 文本样式改写:缺省保留原文(去标签取纯文本),样式从 props 合并。 */
|
|
53
|
+
export function textHtml(current, props, st) {
|
|
54
|
+
let inner = props.html
|
|
55
|
+
if (inner == null) {
|
|
56
|
+
if (props.text != null) inner = escapeHtml(String(props.text))
|
|
57
|
+
else inner = String(current || '').replace(/<p[^>]*>/i, '').replace(/<\/p>\s*$/i, '')
|
|
58
|
+
}
|
|
59
|
+
let body = inner
|
|
60
|
+
if (st && st.bold) body = '<strong>' + body + '</strong>'
|
|
61
|
+
const size = st && st.fontSize != null ? Number(st.fontSize) : 28
|
|
62
|
+
let style = 'font-size: ' + size + 'px;'
|
|
63
|
+
if (st && st.color) style += ' color: ' + String(st.color) + ';'
|
|
64
|
+
if (st && st.align) style += ' text-align: ' + String(st.align) + ';'
|
|
65
|
+
return '<p style="' + style + '">' + body + '</p>'
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** 元素属性补丁:几何 / 填充 / 文本样式(content 重写保留正文)。 */
|
|
69
|
+
export function patchElement(el, props) {
|
|
70
|
+
;['left', 'top', 'width', 'height', 'rotate', 'opacity'].forEach(k => {
|
|
71
|
+
if (props[k] != null && isFinite(Number(props[k]))) el[k] = Number(props[k])
|
|
72
|
+
})
|
|
73
|
+
if (props.fill != null) el.fill = String(props.fill)
|
|
74
|
+
if (el.type === 'image') {
|
|
75
|
+
if (props.src != null) el.src = String(props.src)
|
|
76
|
+
if (props.clip != null) el.clip = props.clip
|
|
77
|
+
return
|
|
78
|
+
}
|
|
79
|
+
/* 公式元素:path/latex/viewBox 由渲染器产出,样式走 stroke。 */
|
|
80
|
+
if (el.type === 'latex') {
|
|
81
|
+
if (props.path != null) el.path = String(props.path)
|
|
82
|
+
if (props.latex != null) el.latex = String(props.latex)
|
|
83
|
+
if (Array.isArray(props.viewBox) && props.viewBox.length === 2 &&
|
|
84
|
+
props.viewBox.every(n => isFinite(Number(n)) && Number(n) > 0)) {
|
|
85
|
+
el.viewBox = [Number(props.viewBox[0]), Number(props.viewBox[1])]
|
|
86
|
+
}
|
|
87
|
+
if (props.color != null) el.color = String(props.color)
|
|
88
|
+
if (props.strokeWidth != null && isFinite(Number(props.strokeWidth))) {
|
|
89
|
+
el.strokeWidth = Number(props.strokeWidth)
|
|
90
|
+
}
|
|
91
|
+
return
|
|
92
|
+
}
|
|
93
|
+
const holder = textHolder(el)
|
|
94
|
+
if (!holder) return
|
|
95
|
+
/* 只改颜色:直接替换 inline color,保留字号/加粗(否则 textHtml 会回落到 28px) */
|
|
96
|
+
if (props.color != null && props.text == null && props.html == null &&
|
|
97
|
+
props.fontSize == null && props.bold == null && props.align == null) {
|
|
98
|
+
holder.content = String(holder.content || '').replace(/color:\s*[^;"']+/g, 'color: ' + String(props.color))
|
|
99
|
+
if (el.type === 'text') el.defaultColor = String(props.color)
|
|
100
|
+
return
|
|
101
|
+
}
|
|
102
|
+
if (props.defaultColor != null && el.type === 'text') el.defaultColor = String(props.defaultColor)
|
|
103
|
+
const hasText = props.text != null || props.html != null
|
|
104
|
+
const hasStyle = props.fontSize != null || props.color != null ||
|
|
105
|
+
props.bold != null || props.align != null
|
|
106
|
+
if (hasText && !hasStyle) {
|
|
107
|
+
/* 槽位填充:只换文字,保留原字号/颜色/加粗(版式不破) */
|
|
108
|
+
holder.content = setPlainText(holder.content, props.text)
|
|
109
|
+
}
|
|
110
|
+
else if (hasText || hasStyle) {
|
|
111
|
+
holder.content = textHtml(holder.content, props, hasStyle ? props : null)
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function makeElement(e) {
|
|
116
|
+
const type = String(e.type || 'text')
|
|
117
|
+
if (type !== 'text' && type !== 'shape' && type !== 'image' &&
|
|
118
|
+
type !== 'chart' && type !== 'table' && type !== 'line' && type !== 'latex') {
|
|
119
|
+
throw new Error('不支持的 element.type: ' + type +
|
|
120
|
+
'(只支持 text / shape / image / chart / table / line / latex)')
|
|
121
|
+
}
|
|
122
|
+
/* 线条:start/end 用画布绝对坐标表达,落库转为元素相对坐标;
|
|
123
|
+
PPTist line 元素不存包围盒宽高——width 字段是线宽。 */
|
|
124
|
+
if (type === 'line') {
|
|
125
|
+
const sx = e.start ? Number(e.start[0]) : Number(e.x1 != null ? e.x1 : 0)
|
|
126
|
+
const sy = e.start ? Number(e.start[1]) : Number(e.y1 != null ? e.y1 : 0)
|
|
127
|
+
const ex = e.end ? Number(e.end[0]) : Number(e.x2 != null ? e.x2 : 200)
|
|
128
|
+
const ey = e.end ? Number(e.end[1]) : Number(e.y2 != null ? e.y2 : 0)
|
|
129
|
+
if (![sx, sy, ex, ey].every(isFinite)) throw new Error('line 需要 start/end(画布坐标)或 x1/y1/x2/y2')
|
|
130
|
+
const left = Math.min(sx, ex)
|
|
131
|
+
const top = Math.min(sy, ey)
|
|
132
|
+
const pointOf = (v) => (v && v !== 'none' ? String(v) : '')
|
|
133
|
+
const el = {
|
|
134
|
+
id: e.id || ('line_' + Date.now() + '_' + Math.floor(Math.random() * 1000)),
|
|
135
|
+
type,
|
|
136
|
+
left,
|
|
137
|
+
top,
|
|
138
|
+
start: [sx - left, sy - top],
|
|
139
|
+
end: [ex - left, ey - top],
|
|
140
|
+
points: Array.isArray(e.points)
|
|
141
|
+
? e.points.map(String)
|
|
142
|
+
: [pointOf(e.start_point), pointOf(e.end_point)],
|
|
143
|
+
color: e.color || '#5b9bd5',
|
|
144
|
+
style: String(e.style || 'solid'),
|
|
145
|
+
width: Number(e.width || e.lineWidth || 2),
|
|
146
|
+
}
|
|
147
|
+
if (Array.isArray(e.broken) && e.broken.length === 2) {
|
|
148
|
+
el.broken = [Number(e.broken[0]) - left, Number(e.broken[1]) - top]
|
|
149
|
+
}
|
|
150
|
+
return el
|
|
151
|
+
}
|
|
152
|
+
/* 图表 / 表格 / 公式:委托给各自的构建器(数据归一化 + 校验)。 */
|
|
153
|
+
if (type === 'chart') return makeChartElement(e)
|
|
154
|
+
if (type === 'table') return makeTableElement(e)
|
|
155
|
+
if (type === 'latex') return makeFormulaElement(e)
|
|
156
|
+
const id = e.id || ('el_' + Date.now() + '_' + Math.floor(Math.random() * 1000))
|
|
157
|
+
const base = {
|
|
158
|
+
id, type,
|
|
159
|
+
left: Number(e.left != null ? e.left : 60), top: Number(e.top != null ? e.top : 120),
|
|
160
|
+
width: Number(e.width != null ? e.width : 400), height: Number(e.height != null ? e.height : 60),
|
|
161
|
+
rotate: Number(e.rotate || 0), fixedRatio: false,
|
|
162
|
+
}
|
|
163
|
+
if (type === 'shape') {
|
|
164
|
+
return Object.assign(base, {
|
|
165
|
+
path: e.path || 'M 0 0 L 200 0 L 200 200 L 0 200 Z',
|
|
166
|
+
viewBox: e.viewBox || [200, 200],
|
|
167
|
+
fill: e.fill || 'rgb(209, 68, 36)',
|
|
168
|
+
})
|
|
169
|
+
}
|
|
170
|
+
if (type === 'image') {
|
|
171
|
+
const src = String(e.src || '')
|
|
172
|
+
if (!src) throw new Error('image 元素需要 src(请用 ppt_image,支持 attachment_id)')
|
|
173
|
+
if (/^[a-zA-Z]:[\\/]/.test(src) || src.startsWith('file:')) {
|
|
174
|
+
throw new Error('本机路径不能直接插入图片;请用 ppt_image(会自动转 data URL)')
|
|
175
|
+
}
|
|
176
|
+
return Object.assign(base, {
|
|
177
|
+
src,
|
|
178
|
+
clip: e.clip || null,
|
|
179
|
+
...(e.opacity != null ? { opacity: Number(e.opacity) } : {}),
|
|
180
|
+
})
|
|
181
|
+
}
|
|
182
|
+
return Object.assign(base, {
|
|
183
|
+
content: e.content || textHtml('', { text: e.text || '' },
|
|
184
|
+
{ fontSize: e.fontSize || 28, color: e.color || '#333333' }),
|
|
185
|
+
defaultColor: e.color || '#333333', defaultFontName: '',
|
|
186
|
+
})
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/** 背景明暗 → 文本自动对比度:浅底深字 / 深底白字。 */
|
|
190
|
+
export function contrast(slide, bg) {
|
|
191
|
+
if (!parseColor(bg)) return
|
|
192
|
+
const fg = contrastColor(bg)
|
|
193
|
+
;(slide.elements || []).forEach(el => {
|
|
194
|
+
if (el.type !== 'text') return
|
|
195
|
+
el.defaultColor = fg
|
|
196
|
+
if (typeof el.content === 'string') {
|
|
197
|
+
el.content = el.content.replace(/color:\s*[^;"']+/g, 'color: ' + fg)
|
|
198
|
+
}
|
|
199
|
+
})
|
|
200
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { name, apply } from '../server/embedded-host.mjs'
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@capyclaw/ppt-workbench",
|
|
3
|
+
"version": "2.5.67",
|
|
4
|
+
"description": "PPT 工作台运行时(headless 可用):32 个 ppt_* MCP 工具(导入/导出 PPTX + 图表/表格/公式/形状/线条/备注 + 契约探测);浏览器实时编辑器由可选成员包 @capyclaw/ppt-editor 提供。",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./plugin.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./plugin.mjs",
|
|
9
|
+
"./package.json": "./package.json"
|
|
10
|
+
},
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=18",
|
|
13
|
+
"dsh": "^0.2.0-rc.2"
|
|
14
|
+
},
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"dsh": {
|
|
19
|
+
"member": true,
|
|
20
|
+
"category": "service",
|
|
21
|
+
"platform": "both",
|
|
22
|
+
"capabilities": {
|
|
23
|
+
"source": "server/tools/capabilities",
|
|
24
|
+
"manifest": "capabilities.json"
|
|
25
|
+
},
|
|
26
|
+
"requires": {
|
|
27
|
+
"capabilities": {
|
|
28
|
+
"os.proc": "^1.0.0"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"meta": {
|
|
33
|
+
"title": "PPT 工作台运行时",
|
|
34
|
+
"description": "AI 生成/编辑 PPT:32 个 ppt_* 工具(headless 可用);装上 @capyclaw/ppt-editor 后在 dsh 的 /capyclaw/ppt 提供浏览器实时编辑器"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"plugin.mjs",
|
|
38
|
+
"lib/",
|
|
39
|
+
"server/",
|
|
40
|
+
"core/",
|
|
41
|
+
"!server/.relay-instance.lock",
|
|
42
|
+
"contract/",
|
|
43
|
+
"README.md",
|
|
44
|
+
"THIRD_PARTY_NOTICES.md"
|
|
45
|
+
],
|
|
46
|
+
"license": "AGPL-3.0-or-later",
|
|
47
|
+
"scripts": {},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@capyclaw/asset-service": "^0.1.4",
|
|
50
|
+
"@capyclaw/document-workbench": "^0.2.2",
|
|
51
|
+
"@capyclaw/editor-host": "^0.1.5",
|
|
52
|
+
"@capyclaw/foundation": "^0.1.9",
|
|
53
|
+
"@capyclaw/plugin-kit": "^0.2.6",
|
|
54
|
+
"@capyclaw/service-host": "^0.1.5",
|
|
55
|
+
"@capyclaw/tool-host": "^0.2.0",
|
|
56
|
+
"playwright-core": "^1.60.0",
|
|
57
|
+
"pptxgenjs": "^3.12.0"
|
|
58
|
+
},
|
|
59
|
+
"author": {
|
|
60
|
+
"name": "CapyClaw",
|
|
61
|
+
"url": "https://github.com/capyclaw",
|
|
62
|
+
"email": "support@capyclaw.dev"
|
|
63
|
+
},
|
|
64
|
+
"repository": {
|
|
65
|
+
"type": "git",
|
|
66
|
+
"url": "git+https://github.com/Maple496/capyclaw.git",
|
|
67
|
+
"directory": "A/projects/ppt/artifacts/plugin/capyclaw-ppt-workbench"
|
|
68
|
+
},
|
|
69
|
+
"bugs": {
|
|
70
|
+
"url": "https://github.com/Maple496/capyclaw/issues"
|
|
71
|
+
},
|
|
72
|
+
"homepage": "https://github.com/Maple496/capyclaw/tree/main/A/projects/ppt/artifacts/plugin/capyclaw-ppt-workbench#readme"
|
|
73
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { name, inject, apply } from './server/embedded-host.mjs'
|