@deveco-test/deveco-cli-common 1.3.11-Test.3 → 1.3.11-Test.4
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 +64 -21
- package/THIRD-PARTY-LICENSES +33 -3
- package/dist/cli.js +213 -165
- package/dist/design2arkts-engine/LICENSE +21 -0
- package/dist/design2arkts-engine/dist/index.d.ts +2739 -0
- package/dist/design2arkts-engine/dist/index.js +6207 -0
- package/dist/design2arkts-engine/package.json +40 -0
- package/dist/design2arkts-engine/pixso-arkts.mjs +98 -0
- package/dist/design2arkts-engine/resources/skill/LICENSE +21 -0
- package/dist/design2arkts-engine/resources/skill/SKILL.md +176 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkts-logic-completer/INSTRUCTIONS.md +310 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkts-logic-completer/evals/evals.json +249 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkts-logic-completer/references/basics-and-display.md +146 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkts-logic-completer/references/containers-and-navigation.md +527 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkts-logic-completer/references/feedback-and-overlay.md +275 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkts-logic-completer/references/hds-components.md +667 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkts-logic-completer/references/input-and-selection.md +382 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkts-logic-completer/references/patterns/data-and-form.md +440 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkts-logic-completer/references/patterns/state-management.md +213 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkui-scoring-workflow/INSTRUCTIONS.md +164 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkui2hds/INSTRUCTIONS.md +138 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkui2hds/references/components.md +777 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-arkui2hds/references/migration-patterns.md +187 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/INSTRUCTIONS.md +350 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-basic-mapping.md +455 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-common-issues.md +516 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/button.md +104 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/flex.md +115 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/grid.md +121 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/image.md +118 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/list.md +152 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/location.md +160 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/richeditor.md +132 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/row-column.md +118 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/stack.md +106 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/swiper.md +117 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/tabs.md +163 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/text-input.md +147 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/text.md +145 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/api-cards/waterflow.md +116 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/index.md +23 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/arkui-knowledge-base/matching.md +127 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-react-to-arkui/references/clarification-template.md +53 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/INSTRUCTIONS.md +163 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/references/architecture-patterns/api-architecture.md +17 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/references/architecture-patterns/data-architecture.md +17 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/references/architecture-patterns/logic-architecture.md +17 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/references/architecture-patterns/ui-architecture.md +23 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/references/methodology/behavior-audit.md +143 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/references/methodology/diff-analysis.md +115 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/references/methodology/dimension-identification.md +86 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/references/methodology/output-format.md +347 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-repo-understand/references/methodology/understanding-modes.md +214 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-responsive-layout-generator/INSTRUCTIONS.md +86 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-responsive-layout-generator/references/breakpoints.md +86 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-responsive-layout-generator/references/chunks.md +48 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-responsive-layout-generator/references/dsl-schema.md +151 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-responsive-layout-generator/references/patterns.md +147 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-responsive-layout-generator/references/rules.md +115 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-solution-design/INSTRUCTIONS.md +572 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-solution-design/assets/template-ui-page.md +293 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-solution-design/references/animation-design.md +84 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-ui-reconstruction-score/INSTRUCTIONS.md +195 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-ui-reconstruction-score/references/analysis_workflow.md +119 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-ui-reconstruction-score/references/scoring_schema.md +83 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-ui-reconstruction-score/references/vlm_prompt.md +61 -0
- package/dist/design2arkts-engine/resources/skill/references/capabilities/hmos-d2a-ui-reconstruction-score/scripts/ui_score.py +691 -0
- package/dist/design2arkts-engine/resources/skill/references/cli-integration.md +94 -0
- package/dist/design2arkts-engine/resources/skill/references/design-doc-auto-recovery.md +91 -0
- package/dist/design2arkts-engine/resources/skill/references/figma/fast/stages/01-acquire-figma-react-source.md +96 -0
- package/dist/design2arkts-engine/resources/skill/references/figma/fast/stages/02-convert-react-to-arkui.md +92 -0
- package/dist/design2arkts-engine/resources/skill/references/figma/fast/stages/03-complete-interaction-logic.md +26 -0
- package/dist/design2arkts-engine/resources/skill/references/figma/fast/stages/04-quality-and-build.md +43 -0
- package/dist/design2arkts-engine/resources/skill/references/figma/fast/stages/05-summary.md +36 -0
- package/dist/design2arkts-engine/resources/skill/references/figma/full/stages/01-acquire-figma-react-source.md +161 -0
- package/dist/design2arkts-engine/resources/skill/references/figma/full/stages/02-convert-react-to-arkui.md +219 -0
- package/dist/design2arkts-engine/resources/skill/references/figma/full/stages/03-complete-interaction-logic.md +31 -0
- package/dist/design2arkts-engine/resources/skill/references/figma/full/stages/04-quality-and-build.md +28 -0
- package/dist/design2arkts-engine/resources/skill/references/figma/full/stages/05-visual-calibration.md +190 -0
- package/dist/design2arkts-engine/resources/skill/references/figma/full/stages/06-summary.md +29 -0
- package/dist/design2arkts-engine/resources/skill/references/figma/stage-catalog-fast.json +40 -0
- package/dist/design2arkts-engine/resources/skill/references/figma/stage-catalog-full.json +47 -0
- package/dist/design2arkts-engine/resources/skill/references/host-vision.md +56 -0
- package/dist/design2arkts-engine/resources/skill/references/mcp-dependency.md +62 -0
- package/dist/design2arkts-engine/resources/skill/references/page-revisions.md +42 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/fast/stages/01-acquire-pixso-dsl.md +287 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/fast/stages/02-generate-skeleton-and-assets.md +245 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/fast/stages/03-understand-repository.md +133 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/fast/stages/05-design-component-tree.md +222 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/fast/stages/06-implement-static-layout.md +143 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/fast/stages/07-complete-interaction-logic.md +131 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/fast/stages/08-quality-build-and-audits.md +343 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/fast/stages/09-summary.md +103 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/full/stages/01-acquire-pixso-dsl.md +287 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/full/stages/02-generate-skeleton-and-assets.md +245 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/full/stages/03-understand-repository.md +133 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/full/stages/05-design-and-confirm-component-tree.md +282 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/full/stages/06-implement-static-layout.md +143 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/full/stages/07-complete-interaction-logic.md +131 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/full/stages/08-quality-build-and-audits.md +343 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/full/stages/09-visual-calibration.md +190 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/full/stages/10-summary.md +105 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/stage-catalog-fast.json +58 -0
- package/dist/design2arkts-engine/resources/skill/references/pixso/stage-catalog-full.json +64 -0
- package/dist/design2arkts-engine/resources/skill/references/requirement-clarification.md +131 -0
- package/dist/design2arkts-engine/resources/skill/references/resource-revisions.md +13 -0
- package/dist/design2arkts-engine/resources/skill/references/runtime-contract.md +435 -0
- package/dist/design2arkts-engine/resources/skill/references/score-engine.json +5 -0
- package/dist/design2arkts-engine/resources/skill/references/source-tools.md +17 -0
- package/dist/design2arkts-engine/resources/skill/references/standalone-capabilities.md +63 -0
- package/dist/design2arkts-engine/resources/skill/references/workflow-origin.json +96 -0
- package/dist/design2arkts-engine/resources/skill/scripts/file-lock.mjs +131 -0
- package/dist/design2arkts-engine/resources/skill/scripts/workflow.mjs +3672 -0
- package/dist/design2arkts-engine/runner.mjs +44 -0
- package/dist/internal/telemetry-upload-background.js +3 -3
- package/package.json +10 -5
- package/skills/deveco-cli/SKILL.md +55 -14
- package/skills/hmos-arkui-develop-skill/SKILL.md +77 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/01-layout.md +634 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/02-basic-components.md +649 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/03-data-display.md +81 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/04-selectors.md +109 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/05-media.md +90 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/06-advanced.md +32 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/07-security.md +30 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/08-state-decorators.md +120 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/09-animation.md +118 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/10-gesture.md +89 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/11-dialog-menu.md +152 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/12-navigation.md +127 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/13-rendering.md +52 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/14-extension.md +22 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/15-theme-style.md +10 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/16-enums.md +128 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/17-resources.md +401 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/18-error-code.md +24 -0
- package/skills/hmos-arkui-develop-skill/references/quick-apis/_index.md +76 -0
- package/skills/hmos-arkui-develop-skill/references/quick-rules/00-arkts-syntax.md +229 -0
- package/skills/hmos-arkui-develop-skill/references/quick-rules/01-import.md +116 -0
- package/skills/hmos-arkui-develop-skill/references/quick-rules/02-uicontext.md +56 -0
- package/skills/hmos-arkui-develop-skill/references/quick-rules/03-component.md +105 -0
- package/skills/hmos-arkui-develop-skill/references/quick-rules/04-build.md +41 -0
- package/skills/hmos-arkui-develop-skill/references/quick-rules/05-state.md +300 -0
- package/skills/hmos-arkui-develop-skill/references/quick-rules/06-rendering.md +67 -0
- package/skills/hmos-arkui-develop-skill/references/quick-rules/07-attribute-params.md +219 -0
- package/skills/hmos-arkui-develop-skill/references/quick-rules/08-navigation.md +102 -0
- package/skills/hmos-arkui-develop-skill/references/quick-rules/09-dialog.md +72 -0
- package/skills/hmos-arkui-develop-skill/references/quick-rules/10-style.md +90 -0
- package/skills/hmos-arkui-develop-skill/references/quick-rules/11-extension.md +54 -0
- package/skills/hmos-arkui-develop-skill/references/quick-rules/12-layout.md +69 -0
- package/skills/hmos-arkui-develop-skill/references/quick-rules/13-performance.md +27 -0
- package/skills/hmos-arkui-develop-skill/references/quick-rules/14-deprecated.md +28 -0
- package/skills/hmos-arkui-develop-skill/references/quick-rules/_index.md +79 -0
- package/skills/hmos-arkui-develop-skill/references/style-guide.md +491 -0
- package/skills/hmos-arkui-develop-skill/test-cases/code_gen_cases.json +292 -0
- package/skills/hmos-dfx-analyzer/SKILL.md +683 -0
- package/skills/hmos-dfx-analyzer/changelog/CHANGELOG.md +17 -0
- package/skills/hmos-dfx-analyzer/evals/evals.json +119 -0
- package/skills/hmos-dfx-analyzer/references/appfreeze/analyzer.md +471 -0
- package/skills/hmos-dfx-analyzer/references/appfreeze/references/fault-mode-library.md +94 -0
- package/skills/hmos-dfx-analyzer/references/appfreeze/references/ffrt-freeze-analysis.md +132 -0
- package/skills/hmos-dfx-analyzer/references/appfreeze/references/libuv-freeze-analysis.md +116 -0
- package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/freeze/__init__.py +40 -0
- package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/freeze/binder.py +343 -0
- package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/freeze/collector.py +84 -0
- package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/freeze/common.py +132 -0
- package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/freeze/faultlog.py +212 -0
- package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/freeze/main.py +81 -0
- package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/freeze/report.py +675 -0
- package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/freeze/sections.py +377 -0
- package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/freeze/stack.py +165 -0
- package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/llvm_addr2line.py +123 -0
- package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/match_so.py +120 -0
- package/skills/hmos-dfx-analyzer/references/appfreeze/scripts/sample_stack_analyzer.py +209 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/analyzer.md +470 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/references/arkdata.md +325 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/references/arkui.md +266 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/references/arkweb.md +144 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/references/fault_mode.md +178 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/references/gwp_asan.md +300 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/references/jsruntime.md +339 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/references/jsvm.md +203 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/references/libuv.md +166 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/references/memory_corruption.md +348 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/references/memory_corruption_second_scene.md +74 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/references/multithreading.md +284 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/references/render_service.md +300 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/references/rosen_text.md +41 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/__init__.py +36 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/collector.py +93 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/common.py +68 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/crash_log.py +275 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/extract_hilog.py +69 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/hints.py +251 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/main.py +82 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/match_so.py +120 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/ohos_llvm_tools.py +279 -0
- package/skills/hmos-dfx-analyzer/references/cppcrash/scripts/report.py +226 -0
- package/skills/hmos-dfx-analyzer/references/jscrash/analyzer.md +174 -0
- package/skills/hmos-dfx-analyzer/references/jscrash/references/fault-mode-library.md +107 -0
- package/skills/hmos-dfx-analyzer/references/jscrash/references/jscrash-patterns.md +92 -0
- package/skills/hmos-dfx-analyzer/references/jscrash/references/sourcemap-symbolication.md +67 -0
- package/skills/hmos-dfx-analyzer/references/jscrash/scripts/hstack/bin/hstack +25 -0
- package/skills/hmos-dfx-analyzer/references/jscrash/scripts/hstack/bin/hstack.bat +26 -0
- package/skills/hmos-dfx-analyzer/references/jscrash/scripts/hstack/lib/index.js +2 -0
- package/skills/hmos-dfx-analyzer/references/jscrash/scripts/hstack/lib/index.js.LICENSE.txt +1 -0
- package/skills/hmos-dfx-analyzer/references/jscrash/scripts/hstack/lib/mappings.wasm +0 -0
- package/skills/hmos-dfx-analyzer/references/white-screen/analyzer.md +129 -0
- package/skills/hmos-dfx-analyzer/scripts/collect/collect-hilog.mjs +120 -0
- package/skills/hmos-dfx-analyzer/scripts/collect/jscrash-report.mjs +138 -0
- package/skills/hmos-dfx-analyzer/scripts/collect/parse-jscrash-log.mjs +126 -0
- package/skills/hmos-dfx-analyzer/scripts/collect/shared/deveco-cli.mjs +79 -0
- package/skills/hmos-dfx-analyzer/scripts/collect/shared/jscrash-parse.mjs +389 -0
- package/skills/hmos-dfx-analyzer/scripts/collect/shared/utils.mjs +27 -0
- package/skills/hmos-dfx-analyzer/scripts/export_report.py +373 -0
- package/skills/hmos-dfx-analyzer/scripts/identify_fault_log.py +500 -0
- package/skills/hmos-dfx-analyzer/scripts/report_template.html +103 -0
- package/skills/hmos-dfx-analyzer/test-cases/functional.md +112 -0
- package/skills/hmos-dfx-analyzer/test-cases/smoke.md +86 -0
- package/skills/hmos-dfx-analyzer/test-cases/test-prompts.md +35 -0
- package/skills/hmos-dfx-analyzer/test-cases/trigger.md +121 -0
- package/skills/index.json +17 -0
- package/src/resources/arkts-check.cjs +163 -1
|
@@ -0,0 +1,2739 @@
|
|
|
1
|
+
import { renameSync } from 'node:fs';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
declare const PROJECT_DIRECTORY_NAMES: readonly ["design2arkts", "d2a", "design2arkui"];
|
|
5
|
+
type ProjectDirectoryName = (typeof PROJECT_DIRECTORY_NAMES)[number];
|
|
6
|
+
interface Design2ArktsProjectConfig {
|
|
7
|
+
schemaVersion: 1;
|
|
8
|
+
defaultSource: 'pixso' | 'figma';
|
|
9
|
+
defaultVariant: 'fast' | 'full';
|
|
10
|
+
targetModule?: string;
|
|
11
|
+
mcpServices?: {
|
|
12
|
+
pixso?: string;
|
|
13
|
+
figma?: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class Design2ArktsProjectAdapter {
|
|
18
|
+
discoverProjectRoot(startDirectory: string): string;
|
|
19
|
+
getDefaultDirectory(projectRoot: string): string;
|
|
20
|
+
getSelectedDirectory(projectRoot: string, name: ProjectDirectoryName): string;
|
|
21
|
+
/** History protects project files across current, alias and legacy directories. */
|
|
22
|
+
getHistoryDirectories(projectRoot: string): string[];
|
|
23
|
+
readProjectConfig(projectRoot: string, directoryName?: ProjectDirectoryName): Design2ArktsProjectConfig | undefined;
|
|
24
|
+
initializeProjectConfig(startDirectory: string, config: Design2ArktsProjectConfig, directoryName?: ProjectDirectoryName): string;
|
|
25
|
+
createProjectConfig(projectRoot: string, config: Design2ArktsProjectConfig, directoryName?: ProjectDirectoryName): string;
|
|
26
|
+
createRunDirectory(startDirectory: string, directoryName?: ProjectDirectoryName): {
|
|
27
|
+
runId: string;
|
|
28
|
+
runDirectory: string;
|
|
29
|
+
};
|
|
30
|
+
getRunDirectory(run: string, projectRoot: string, directoryName?: ProjectDirectoryName): string;
|
|
31
|
+
assertSafeDataPath(projectRoot: string, target: string): void;
|
|
32
|
+
private assertWithinProject;
|
|
33
|
+
private assertExistingParentWithinProject;
|
|
34
|
+
private directoryExists;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** Snapshot paths are relative to the run directory. */
|
|
38
|
+
type DesignInputSnapshot = {
|
|
39
|
+
source: 'pixso';
|
|
40
|
+
format: 'pixso-dsl';
|
|
41
|
+
path: string;
|
|
42
|
+
sha256: string;
|
|
43
|
+
} | {
|
|
44
|
+
source: 'figma';
|
|
45
|
+
format: 'react-jsx';
|
|
46
|
+
path: string;
|
|
47
|
+
sha256: string;
|
|
48
|
+
};
|
|
49
|
+
interface DesignResolveRequest {
|
|
50
|
+
source: DesignInputSnapshot['source'];
|
|
51
|
+
run?: string;
|
|
52
|
+
variant?: 'fast' | 'full';
|
|
53
|
+
mcpService?: string;
|
|
54
|
+
input: {
|
|
55
|
+
kind: 'url';
|
|
56
|
+
url: string;
|
|
57
|
+
} | {
|
|
58
|
+
kind: 'local';
|
|
59
|
+
path: string;
|
|
60
|
+
screenshotPath?: string;
|
|
61
|
+
screenshotScale?: 1 | 2;
|
|
62
|
+
componentScreenshotPath?: string;
|
|
63
|
+
assetsDirectory?: string;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
interface DesignReferenceScreenshot {
|
|
67
|
+
path: string;
|
|
68
|
+
purpose: 'general-visual-reference' | 'recognize-ui-components-only';
|
|
69
|
+
scale: number;
|
|
70
|
+
width: number;
|
|
71
|
+
height: number;
|
|
72
|
+
size: number;
|
|
73
|
+
sha256: string;
|
|
74
|
+
}
|
|
75
|
+
type DesignAssetHint = {
|
|
76
|
+
status: 'referenced';
|
|
77
|
+
reference: string;
|
|
78
|
+
} | {
|
|
79
|
+
status: 'local';
|
|
80
|
+
reference: string;
|
|
81
|
+
path: string;
|
|
82
|
+
size: number;
|
|
83
|
+
sha256: string;
|
|
84
|
+
};
|
|
85
|
+
interface DesignResolveResult {
|
|
86
|
+
schemaVersion: 1 | 2;
|
|
87
|
+
runId: string;
|
|
88
|
+
target?: {
|
|
89
|
+
fileId?: string;
|
|
90
|
+
nodeId: string;
|
|
91
|
+
};
|
|
92
|
+
snapshot: DesignInputSnapshot;
|
|
93
|
+
screenshots: DesignReferenceScreenshot[];
|
|
94
|
+
assetHints: DesignAssetHint[];
|
|
95
|
+
warnings: Array<{
|
|
96
|
+
code: string;
|
|
97
|
+
message: string;
|
|
98
|
+
}>;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare class Design2ArktsResolveAdapter {
|
|
102
|
+
private readonly renameInput;
|
|
103
|
+
private readonly publishRecord;
|
|
104
|
+
constructor(renameInput?: typeof renameSync, publishRecord?: typeof renameSync);
|
|
105
|
+
readVerifiedInput(runId: string, startDirectory: string, directoryName?: ProjectDirectoryName, expectedSource?: DesignInputSnapshot['source']): {
|
|
106
|
+
result: DesignResolveResult;
|
|
107
|
+
content: Buffer;
|
|
108
|
+
runDirectory: string;
|
|
109
|
+
projectRoot: string;
|
|
110
|
+
};
|
|
111
|
+
private verifyRunSource;
|
|
112
|
+
private verifyInputSnapshot;
|
|
113
|
+
resolveDesign(request: unknown, startDirectory: string, directoryName?: ProjectDirectoryName): DesignResolveResult;
|
|
114
|
+
private collectAttachments;
|
|
115
|
+
private commitInput;
|
|
116
|
+
/** Moves the staged snapshot and its record into the run, rolling back a half-published input. */
|
|
117
|
+
private publishStagedInput;
|
|
118
|
+
private inputRecord;
|
|
119
|
+
private saveResolveResult;
|
|
120
|
+
private cleanupFailedRun;
|
|
121
|
+
private saveInputSnapshot;
|
|
122
|
+
private readLocalInput;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
declare class Design2ArktsArtifactAdapter {
|
|
126
|
+
readFileWithin(root: string, relative: string): Buffer;
|
|
127
|
+
/** Compare existing files without assuming filesystem case sensitivity. */
|
|
128
|
+
isSameFileWithin(root: string, left: string, right: string): boolean;
|
|
129
|
+
private assertRelativePath;
|
|
130
|
+
private filePathWithin;
|
|
131
|
+
digest(content: Buffer | string): string;
|
|
132
|
+
exportArktsPage(run: string, project: string, pageName: string, directory?: ProjectDirectoryName, source?: 'pixso' | 'figma', signal?: AbortSignal): Promise<{
|
|
133
|
+
directory: string;
|
|
134
|
+
producer: "agent" | "engine";
|
|
135
|
+
schemaVersion: 1;
|
|
136
|
+
runId: string;
|
|
137
|
+
sourceSha256: string;
|
|
138
|
+
pageName: string;
|
|
139
|
+
page: {
|
|
140
|
+
path: string;
|
|
141
|
+
sha256: string;
|
|
142
|
+
};
|
|
143
|
+
images: {
|
|
144
|
+
path: string;
|
|
145
|
+
sha256: string;
|
|
146
|
+
};
|
|
147
|
+
engine?: {
|
|
148
|
+
name: string;
|
|
149
|
+
version: string;
|
|
150
|
+
commit?: string | undefined;
|
|
151
|
+
} | undefined;
|
|
152
|
+
raw?: {
|
|
153
|
+
path: string;
|
|
154
|
+
sha256: string;
|
|
155
|
+
} | undefined;
|
|
156
|
+
result?: {
|
|
157
|
+
path: string;
|
|
158
|
+
sha256: string;
|
|
159
|
+
} | undefined;
|
|
160
|
+
}>;
|
|
161
|
+
private enginePageManifest;
|
|
162
|
+
private encodeGeneration;
|
|
163
|
+
stageAgentPage(run: string, project: string, pageName: string, codePath: string, imagesPath: string, directory?: ProjectDirectoryName, source?: 'pixso' | 'figma'): {
|
|
164
|
+
directory: string;
|
|
165
|
+
producer: "agent" | "engine";
|
|
166
|
+
schemaVersion: 1;
|
|
167
|
+
runId: string;
|
|
168
|
+
sourceSha256: string;
|
|
169
|
+
pageName: string;
|
|
170
|
+
page: {
|
|
171
|
+
path: string;
|
|
172
|
+
sha256: string;
|
|
173
|
+
};
|
|
174
|
+
images: {
|
|
175
|
+
path: string;
|
|
176
|
+
sha256: string;
|
|
177
|
+
};
|
|
178
|
+
engine?: {
|
|
179
|
+
name: string;
|
|
180
|
+
version: string;
|
|
181
|
+
commit?: string | undefined;
|
|
182
|
+
} | undefined;
|
|
183
|
+
raw?: {
|
|
184
|
+
path: string;
|
|
185
|
+
sha256: string;
|
|
186
|
+
} | undefined;
|
|
187
|
+
result?: {
|
|
188
|
+
path: string;
|
|
189
|
+
sha256: string;
|
|
190
|
+
} | undefined;
|
|
191
|
+
};
|
|
192
|
+
private saveAgentPage;
|
|
193
|
+
private assertGeneratedFiles;
|
|
194
|
+
private savePage;
|
|
195
|
+
readExportedPage(runDirectory: string, pageName: string): {
|
|
196
|
+
manifest: {
|
|
197
|
+
producer: "agent" | "engine";
|
|
198
|
+
schemaVersion: 1;
|
|
199
|
+
runId: string;
|
|
200
|
+
sourceSha256: string;
|
|
201
|
+
pageName: string;
|
|
202
|
+
page: {
|
|
203
|
+
path: string;
|
|
204
|
+
sha256: string;
|
|
205
|
+
};
|
|
206
|
+
images: {
|
|
207
|
+
path: string;
|
|
208
|
+
sha256: string;
|
|
209
|
+
};
|
|
210
|
+
engine?: {
|
|
211
|
+
name: string;
|
|
212
|
+
version: string;
|
|
213
|
+
commit?: string | undefined;
|
|
214
|
+
} | undefined;
|
|
215
|
+
raw?: {
|
|
216
|
+
path: string;
|
|
217
|
+
sha256: string;
|
|
218
|
+
} | undefined;
|
|
219
|
+
result?: {
|
|
220
|
+
path: string;
|
|
221
|
+
sha256: string;
|
|
222
|
+
} | undefined;
|
|
223
|
+
};
|
|
224
|
+
code: Buffer<ArrayBufferLike>;
|
|
225
|
+
imageIds: string[];
|
|
226
|
+
};
|
|
227
|
+
private verifyEngineEvidence;
|
|
228
|
+
createOutputDirectory(runDirectory: string, relative: string): string;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
declare class Design2ArktsImportAdapter {
|
|
232
|
+
private readonly commitFile;
|
|
233
|
+
constructor(commitFile?: typeof renameSync);
|
|
234
|
+
private readonly artifacts;
|
|
235
|
+
createPlan(run: string, project: string, directory?: ProjectDirectoryName, module?: string, pageName?: string, source?: 'pixso' | 'figma', resourceRevision?: string, pageRevision?: string): {
|
|
236
|
+
planPath: string;
|
|
237
|
+
diffPath: string;
|
|
238
|
+
plan: {
|
|
239
|
+
schemaVersion: 1;
|
|
240
|
+
planId: string;
|
|
241
|
+
projectRoot: string;
|
|
242
|
+
runId: string;
|
|
243
|
+
module: string;
|
|
244
|
+
modulePath: string;
|
|
245
|
+
pageName: string;
|
|
246
|
+
sourceSha256: string;
|
|
247
|
+
files: {
|
|
248
|
+
source: string;
|
|
249
|
+
target: string;
|
|
250
|
+
before: string | null;
|
|
251
|
+
after: string;
|
|
252
|
+
diff: string;
|
|
253
|
+
}[];
|
|
254
|
+
pageFile?: string | undefined;
|
|
255
|
+
pageRevision?: string | undefined;
|
|
256
|
+
resourceRevision?: string | undefined;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
private savePlan;
|
|
260
|
+
applyPlan(run: string, project: string, planPath: string, directory?: ProjectDirectoryName, source?: 'pixso' | 'figma'): {
|
|
261
|
+
applied: boolean;
|
|
262
|
+
runId: string;
|
|
263
|
+
planId: string;
|
|
264
|
+
files: string[];
|
|
265
|
+
};
|
|
266
|
+
private applyVerifiedPlan;
|
|
267
|
+
private assertHistory;
|
|
268
|
+
private readPlan;
|
|
269
|
+
private prepare;
|
|
270
|
+
private verifiedExport;
|
|
271
|
+
private assertResourceRevision;
|
|
272
|
+
private assetFiles;
|
|
273
|
+
resolveModule(root: string, name: string): string;
|
|
274
|
+
private onlyPage;
|
|
275
|
+
private targetPath;
|
|
276
|
+
private fileEntry;
|
|
277
|
+
private diff;
|
|
278
|
+
private writeFiles;
|
|
279
|
+
private rollbackFiles;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
declare class Design2ArktsInspectionAdapter {
|
|
283
|
+
inspect(run: string, project: string, section?: string, directory?: ProjectDirectoryName, source?: 'pixso' | 'figma'): Promise<DesignResolveResult | {
|
|
284
|
+
schemaVersion: number;
|
|
285
|
+
runId: string;
|
|
286
|
+
section: string;
|
|
287
|
+
report: DesignResolveResult | {
|
|
288
|
+
code: string;
|
|
289
|
+
message: string;
|
|
290
|
+
}[] | {
|
|
291
|
+
screenshots: DesignReferenceScreenshot[];
|
|
292
|
+
hints: DesignAssetHint[];
|
|
293
|
+
localFilesVerified: boolean;
|
|
294
|
+
coverageVerified: boolean;
|
|
295
|
+
} | {
|
|
296
|
+
status: "bounds-only";
|
|
297
|
+
nodeCount: number;
|
|
298
|
+
types: Record<string, number>;
|
|
299
|
+
roots: unknown[];
|
|
300
|
+
zeroSizeNodes: string[];
|
|
301
|
+
visualComparisonPerformed: false;
|
|
302
|
+
} | {
|
|
303
|
+
status: string;
|
|
304
|
+
reason: string;
|
|
305
|
+
} | {
|
|
306
|
+
evaluated: boolean;
|
|
307
|
+
items: never[];
|
|
308
|
+
reason: string;
|
|
309
|
+
} | {
|
|
310
|
+
input: DesignResolveResult;
|
|
311
|
+
assets: {
|
|
312
|
+
screenshots: DesignReferenceScreenshot[];
|
|
313
|
+
hints: DesignAssetHint[];
|
|
314
|
+
localFilesVerified: boolean;
|
|
315
|
+
coverageVerified: boolean;
|
|
316
|
+
} | undefined;
|
|
317
|
+
layout: {
|
|
318
|
+
status: "bounds-only";
|
|
319
|
+
nodeCount: number;
|
|
320
|
+
types: Record<string, number>;
|
|
321
|
+
roots: unknown[];
|
|
322
|
+
zeroSizeNodes: string[];
|
|
323
|
+
visualComparisonPerformed: false;
|
|
324
|
+
} | {
|
|
325
|
+
status: string;
|
|
326
|
+
reason: string;
|
|
327
|
+
} | undefined;
|
|
328
|
+
risks: {
|
|
329
|
+
code: string;
|
|
330
|
+
message: string;
|
|
331
|
+
}[];
|
|
332
|
+
fallbacks: {
|
|
333
|
+
evaluated: boolean;
|
|
334
|
+
items: never[];
|
|
335
|
+
reason: string;
|
|
336
|
+
};
|
|
337
|
+
} | undefined;
|
|
338
|
+
}>;
|
|
339
|
+
private layout;
|
|
340
|
+
private risks;
|
|
341
|
+
private inspectAssets;
|
|
342
|
+
doctor(project: string, directory?: ProjectDirectoryName): {
|
|
343
|
+
ok: boolean;
|
|
344
|
+
checks: {
|
|
345
|
+
name: string;
|
|
346
|
+
ok: boolean;
|
|
347
|
+
details: unknown;
|
|
348
|
+
}[];
|
|
349
|
+
capabilities: {
|
|
350
|
+
pixsoArktsPage: boolean;
|
|
351
|
+
figmaArktsPage: boolean;
|
|
352
|
+
arkuiIr: boolean;
|
|
353
|
+
htmlPreview: boolean;
|
|
354
|
+
deviceCapture: boolean;
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
captureDevicePreview(run: string, project: string, device?: string, directory?: ProjectDirectoryName, source?: 'pixso' | 'figma'): Promise<{
|
|
358
|
+
runId: string;
|
|
359
|
+
device: string;
|
|
360
|
+
path: string;
|
|
361
|
+
warning: string;
|
|
362
|
+
}>;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
declare class Design2ArktsRegistryAdapter {
|
|
366
|
+
private directory;
|
|
367
|
+
list(project: string, directory?: ProjectDirectoryName): {
|
|
368
|
+
directory: string;
|
|
369
|
+
registrations: {
|
|
370
|
+
id: string;
|
|
371
|
+
name: string;
|
|
372
|
+
mode: "replace" | "before" | "after";
|
|
373
|
+
target: string;
|
|
374
|
+
path: string;
|
|
375
|
+
files: Record<string, string>;
|
|
376
|
+
}[];
|
|
377
|
+
};
|
|
378
|
+
register(project: string, skill: string, mode: 'replace' | 'before' | 'after', target: string, directory?: ProjectDirectoryName): {
|
|
379
|
+
id: `${string}-${string}-${string}-${string}-${string}`;
|
|
380
|
+
name: string;
|
|
381
|
+
mode: "replace" | "before" | "after";
|
|
382
|
+
target: string;
|
|
383
|
+
path: string;
|
|
384
|
+
files: Record<string, string>;
|
|
385
|
+
};
|
|
386
|
+
/** Writes the full registration list atomically over any previous record. */
|
|
387
|
+
private publishRegistrations;
|
|
388
|
+
private assertCopyDestination;
|
|
389
|
+
private assertRegistrationAvailable;
|
|
390
|
+
private validateRegistration;
|
|
391
|
+
private inventory;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
declare class Design2ArktsSourceAdapter {
|
|
395
|
+
private location;
|
|
396
|
+
configure(project: string, file: string, directory?: ProjectDirectoryName): {
|
|
397
|
+
path: string;
|
|
398
|
+
services: string[];
|
|
399
|
+
};
|
|
400
|
+
list(project: string, directory?: ProjectDirectoryName): {
|
|
401
|
+
componentRecognition?: string | undefined;
|
|
402
|
+
name: string;
|
|
403
|
+
source: "pixso" | "figma";
|
|
404
|
+
transport: "stdio" | "http";
|
|
405
|
+
tool: string | undefined;
|
|
406
|
+
}[];
|
|
407
|
+
private readServices;
|
|
408
|
+
resolveUrl(project: string, source: 'pixso' | 'figma', url: string, name?: string, directory?: ProjectDirectoryName, run?: string, variant?: 'fast' | 'full', signal?: AbortSignal): Promise<DesignResolveResult>;
|
|
409
|
+
private assertResolvableRun;
|
|
410
|
+
private acquireLocalInput;
|
|
411
|
+
private selectService;
|
|
412
|
+
recognizeComponents(project: string, image: string, requirements: string, outputPath: string, name?: string, directory?: ProjectDirectoryName, signal?: AbortSignal): Promise<{
|
|
413
|
+
tool: string;
|
|
414
|
+
transport: "stdio" | "http";
|
|
415
|
+
}>;
|
|
416
|
+
private projectRoot;
|
|
417
|
+
private verifyRecognitionOutput;
|
|
418
|
+
private recognitionArguments;
|
|
419
|
+
private transport;
|
|
420
|
+
private environment;
|
|
421
|
+
private acquire;
|
|
422
|
+
fetchPageResources(run: string, project: string, pageName: string, url: string, name?: string, directory?: ProjectDirectoryName, signal?: AbortSignal, revise?: boolean): Promise<{
|
|
423
|
+
resourceRevision?: string | undefined;
|
|
424
|
+
manifestPath: string;
|
|
425
|
+
manifest: {
|
|
426
|
+
schemaVersion: 1;
|
|
427
|
+
runId: string;
|
|
428
|
+
pageName: string;
|
|
429
|
+
sourceSha256: string;
|
|
430
|
+
pageSha256: string;
|
|
431
|
+
assets: {
|
|
432
|
+
imageId: string;
|
|
433
|
+
name: string;
|
|
434
|
+
path: string;
|
|
435
|
+
sha256: string;
|
|
436
|
+
size: number;
|
|
437
|
+
suppliedBy: "snapshot" | "local-directory";
|
|
438
|
+
}[];
|
|
439
|
+
revision?: {
|
|
440
|
+
id: string;
|
|
441
|
+
baseSha256: string;
|
|
442
|
+
} | undefined;
|
|
443
|
+
};
|
|
444
|
+
}>;
|
|
445
|
+
private fetchPreparedResources;
|
|
446
|
+
private resourceWorkspace;
|
|
447
|
+
private closeWorkspaceClient;
|
|
448
|
+
private saveResourceAudit;
|
|
449
|
+
private prepareResourceFetch;
|
|
450
|
+
private assertResourceFetchPage;
|
|
451
|
+
private acquirePageAssets;
|
|
452
|
+
private fetchImage;
|
|
453
|
+
private exportArguments;
|
|
454
|
+
private readImageBlock;
|
|
455
|
+
private readWorkspaceFile;
|
|
456
|
+
private acquireScreenshot;
|
|
457
|
+
private assetsDirectory;
|
|
458
|
+
private pointer;
|
|
459
|
+
private arguments;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/** Allocates artifact storage; the installed Skill owns workflow state. */
|
|
463
|
+
declare class Design2ArktsRunAdapter {
|
|
464
|
+
createRun(project: string, source?: 'pixso' | 'figma', variant?: 'fast' | 'full', directory?: ProjectDirectoryName): {
|
|
465
|
+
metadata: {
|
|
466
|
+
schemaVersion: 1;
|
|
467
|
+
runId: string;
|
|
468
|
+
projectRoot: string;
|
|
469
|
+
designSource: "pixso" | "figma";
|
|
470
|
+
variant: "fast" | "full";
|
|
471
|
+
createdAt: string;
|
|
472
|
+
};
|
|
473
|
+
runId: string;
|
|
474
|
+
runDirectory: string;
|
|
475
|
+
};
|
|
476
|
+
readRun(run: string, project: string, directory?: ProjectDirectoryName): {
|
|
477
|
+
runId: string;
|
|
478
|
+
runDirectory: string;
|
|
479
|
+
metadata: {
|
|
480
|
+
schemaVersion: 1;
|
|
481
|
+
runId: string;
|
|
482
|
+
projectRoot: string;
|
|
483
|
+
designSource: "pixso" | "figma";
|
|
484
|
+
variant: "fast" | "full";
|
|
485
|
+
createdAt: string;
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
readRunForInput(run: string, project: string, source: 'pixso' | 'figma', directory?: ProjectDirectoryName, variant?: 'fast' | 'full'): {
|
|
489
|
+
runId: string;
|
|
490
|
+
runDirectory: string;
|
|
491
|
+
metadata: {
|
|
492
|
+
schemaVersion: 1;
|
|
493
|
+
runId: string;
|
|
494
|
+
projectRoot: string;
|
|
495
|
+
designSource: "pixso" | "figma";
|
|
496
|
+
variant: "fast" | "full";
|
|
497
|
+
createdAt: string;
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
assertInputSlotEmpty(root: string): void;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
declare const runMetadataSchema: z.ZodObject<{
|
|
504
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
505
|
+
runId: z.ZodUUID;
|
|
506
|
+
projectRoot: z.ZodString;
|
|
507
|
+
designSource: z.ZodEnum<{
|
|
508
|
+
pixso: "pixso";
|
|
509
|
+
figma: "figma";
|
|
510
|
+
}>;
|
|
511
|
+
variant: z.ZodEnum<{
|
|
512
|
+
fast: "fast";
|
|
513
|
+
full: "full";
|
|
514
|
+
}>;
|
|
515
|
+
createdAt: z.ZodISODateTime;
|
|
516
|
+
}, z.core.$strict>;
|
|
517
|
+
type Design2ArktsRunMetadata = z.infer<typeof runMetadataSchema>;
|
|
518
|
+
|
|
519
|
+
declare const resourceManifestSchema: z.ZodObject<{
|
|
520
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
521
|
+
runId: z.ZodUUID;
|
|
522
|
+
pageName: z.ZodString;
|
|
523
|
+
sourceSha256: z.ZodString;
|
|
524
|
+
pageSha256: z.ZodString;
|
|
525
|
+
revision: z.ZodOptional<z.ZodObject<{
|
|
526
|
+
id: z.ZodUUID;
|
|
527
|
+
baseSha256: z.ZodString;
|
|
528
|
+
}, z.core.$strict>>;
|
|
529
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
530
|
+
imageId: z.ZodString;
|
|
531
|
+
name: z.ZodString;
|
|
532
|
+
path: z.ZodString;
|
|
533
|
+
sha256: z.ZodString;
|
|
534
|
+
size: z.ZodNumber;
|
|
535
|
+
suppliedBy: z.ZodEnum<{
|
|
536
|
+
snapshot: "snapshot";
|
|
537
|
+
"local-directory": "local-directory";
|
|
538
|
+
}>;
|
|
539
|
+
}, z.core.$strict>>;
|
|
540
|
+
}, z.core.$strict>;
|
|
541
|
+
type PreparedResource = z.infer<typeof resourceManifestSchema>['assets'][number];
|
|
542
|
+
|
|
543
|
+
type Input$1 = ReturnType<Design2ArktsResolveAdapter['readVerifiedInput']>;
|
|
544
|
+
type Page$1 = ReturnType<Design2ArktsArtifactAdapter['readExportedPage']>;
|
|
545
|
+
declare class Design2ArktsResourceAdapter {
|
|
546
|
+
private readonly artifacts;
|
|
547
|
+
prepareExportedResources(run: string, project: string, pageName: string, options: {
|
|
548
|
+
assets?: string;
|
|
549
|
+
mapping?: string;
|
|
550
|
+
fetch?: boolean;
|
|
551
|
+
url?: string;
|
|
552
|
+
mcp?: string;
|
|
553
|
+
directory?: ProjectDirectoryName;
|
|
554
|
+
revise?: boolean;
|
|
555
|
+
}, signal?: AbortSignal): Promise<{
|
|
556
|
+
resourceRevision?: string | undefined;
|
|
557
|
+
manifestPath: string;
|
|
558
|
+
manifest: {
|
|
559
|
+
schemaVersion: 1;
|
|
560
|
+
runId: string;
|
|
561
|
+
pageName: string;
|
|
562
|
+
sourceSha256: string;
|
|
563
|
+
pageSha256: string;
|
|
564
|
+
assets: {
|
|
565
|
+
imageId: string;
|
|
566
|
+
name: string;
|
|
567
|
+
path: string;
|
|
568
|
+
sha256: string;
|
|
569
|
+
size: number;
|
|
570
|
+
suppliedBy: "snapshot" | "local-directory";
|
|
571
|
+
}[];
|
|
572
|
+
revision?: {
|
|
573
|
+
id: string;
|
|
574
|
+
baseSha256: string;
|
|
575
|
+
} | undefined;
|
|
576
|
+
};
|
|
577
|
+
}>;
|
|
578
|
+
preparePageResources(run: string, project: string, pageName: string, assetsDirectory?: string, directory?: ProjectDirectoryName, mappingFile?: string, revise?: boolean): {
|
|
579
|
+
resourceRevision?: string | undefined;
|
|
580
|
+
manifestPath: string;
|
|
581
|
+
manifest: {
|
|
582
|
+
schemaVersion: 1;
|
|
583
|
+
runId: string;
|
|
584
|
+
pageName: string;
|
|
585
|
+
sourceSha256: string;
|
|
586
|
+
pageSha256: string;
|
|
587
|
+
assets: {
|
|
588
|
+
imageId: string;
|
|
589
|
+
name: string;
|
|
590
|
+
path: string;
|
|
591
|
+
sha256: string;
|
|
592
|
+
size: number;
|
|
593
|
+
suppliedBy: "snapshot" | "local-directory";
|
|
594
|
+
}[];
|
|
595
|
+
revision?: {
|
|
596
|
+
id: string;
|
|
597
|
+
baseSha256: string;
|
|
598
|
+
} | undefined;
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
private buildResourceManifest;
|
|
602
|
+
private readMapping;
|
|
603
|
+
private collectPageResources;
|
|
604
|
+
private savePreparedResources;
|
|
605
|
+
readPageResources(input: Input$1, page: Page$1, revision?: string): PreparedResource[] | undefined;
|
|
606
|
+
private readManifest;
|
|
607
|
+
private importRecord;
|
|
608
|
+
private resourceFolder;
|
|
609
|
+
private createRevision;
|
|
610
|
+
assertRevisionForImport(input: Input$1, page: Page$1, revision: string, pageFile: string): void;
|
|
611
|
+
private assertImportedResources;
|
|
612
|
+
private verifyManifestFiles;
|
|
613
|
+
private assertPageIdentity;
|
|
614
|
+
private collectResource;
|
|
615
|
+
private readLocalResource;
|
|
616
|
+
private readSnapshotResource;
|
|
617
|
+
private checkPng;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
type Input = ReturnType<Design2ArktsResolveAdapter['readVerifiedInput']>;
|
|
621
|
+
type Page = ReturnType<Design2ArktsArtifactAdapter['readExportedPage']>;
|
|
622
|
+
/** Stages code changes without accepting edits made directly in the project. */
|
|
623
|
+
declare class Design2ArktsPageRevisionAdapter {
|
|
624
|
+
private readonly files;
|
|
625
|
+
readImportedPage(run: string, project: string, pageName: string, directory?: ProjectDirectoryName, source?: 'pixso' | 'figma'): {
|
|
626
|
+
pageName: string;
|
|
627
|
+
pageFile: string;
|
|
628
|
+
sha256: string;
|
|
629
|
+
imageIds: string[];
|
|
630
|
+
};
|
|
631
|
+
stagePageRevision(run: string, project: string, pageName: string, codePath: string, imagesPath: string, directory?: ProjectDirectoryName, source?: 'pixso' | 'figma'): {
|
|
632
|
+
pageRevision: string;
|
|
633
|
+
manifestPath: string;
|
|
634
|
+
manifest: {
|
|
635
|
+
schemaVersion: 1;
|
|
636
|
+
id: string;
|
|
637
|
+
runId: string;
|
|
638
|
+
pageName: string;
|
|
639
|
+
pageFile: string;
|
|
640
|
+
sourceSha256: string;
|
|
641
|
+
exportSha256: string;
|
|
642
|
+
imagesSha256: string;
|
|
643
|
+
baseRecordSha256: string;
|
|
644
|
+
producer: "agent";
|
|
645
|
+
page: {
|
|
646
|
+
path: string;
|
|
647
|
+
sha256: string;
|
|
648
|
+
size: number;
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
/** Uses the successful revision by default; an explicit candidate must match its baseline. */
|
|
653
|
+
readPageCode(input: Input, page: Page, requested?: string, pageFile?: string): {
|
|
654
|
+
code: Buffer<ArrayBufferLike>;
|
|
655
|
+
path: string;
|
|
656
|
+
};
|
|
657
|
+
private record;
|
|
658
|
+
private recordDigest;
|
|
659
|
+
private assertImportedFiles;
|
|
660
|
+
private assertCode;
|
|
661
|
+
private resourceNames;
|
|
662
|
+
private readCandidate;
|
|
663
|
+
private readLocal;
|
|
664
|
+
private folder;
|
|
665
|
+
private save;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
declare const pageRevisionSchema: z.ZodObject<{
|
|
669
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
670
|
+
id: z.ZodUUID;
|
|
671
|
+
runId: z.ZodUUID;
|
|
672
|
+
pageName: z.ZodString;
|
|
673
|
+
pageFile: z.ZodString;
|
|
674
|
+
sourceSha256: z.ZodString;
|
|
675
|
+
exportSha256: z.ZodString;
|
|
676
|
+
imagesSha256: z.ZodString;
|
|
677
|
+
baseRecordSha256: z.ZodString;
|
|
678
|
+
producer: z.ZodLiteral<"agent">;
|
|
679
|
+
page: z.ZodObject<{
|
|
680
|
+
path: z.ZodString;
|
|
681
|
+
sha256: z.ZodString;
|
|
682
|
+
size: z.ZodNumber;
|
|
683
|
+
}, z.core.$strict>;
|
|
684
|
+
}, z.core.$strict>;
|
|
685
|
+
type PageRevision = z.infer<typeof pageRevisionSchema>;
|
|
686
|
+
|
|
687
|
+
declare class Design2ArktsVisionAdapter {
|
|
688
|
+
private readonly files;
|
|
689
|
+
recognizePageComponents(run: string, project: string, requirementsFile: string, service?: string, directory?: ProjectDirectoryName, signal?: AbortSignal, modelConfig?: string): Promise<{
|
|
690
|
+
ok: boolean;
|
|
691
|
+
runId: string;
|
|
692
|
+
outputPath: string;
|
|
693
|
+
receiptPath: string;
|
|
694
|
+
status: "ok" | "degraded";
|
|
695
|
+
sha256: string;
|
|
696
|
+
reused: boolean;
|
|
697
|
+
}>;
|
|
698
|
+
private readRequirements;
|
|
699
|
+
private readRecognitionImage;
|
|
700
|
+
private recognizePrepared;
|
|
701
|
+
private recognitionResponse;
|
|
702
|
+
private assertOutputSlotEmpty;
|
|
703
|
+
private reuseInvocation;
|
|
704
|
+
private callProvider;
|
|
705
|
+
private saveReceipt;
|
|
706
|
+
private verifyResult;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
declare class Design2ArktsScoringAdapter {
|
|
710
|
+
private readonly files;
|
|
711
|
+
scoreRound(run: string, project: string, candidate: string, round: number, python?: string, directory?: ProjectDirectoryName, signal?: AbortSignal): Promise<{
|
|
712
|
+
ok: boolean;
|
|
713
|
+
round: number;
|
|
714
|
+
score: number;
|
|
715
|
+
scorePath: string;
|
|
716
|
+
receiptPath: string;
|
|
717
|
+
reportDirectory: string;
|
|
718
|
+
metricsPaths: string[];
|
|
719
|
+
}>;
|
|
720
|
+
private scoreUnlocked;
|
|
721
|
+
private prepareRoundFiles;
|
|
722
|
+
private executeScore;
|
|
723
|
+
private publishScore;
|
|
724
|
+
private saveScoreReceipt;
|
|
725
|
+
private readCandidate;
|
|
726
|
+
private verifiedScript;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
/** Prepares isolated instructions and inputs for the current Agent to execute. */
|
|
730
|
+
declare class Design2ArktsCapabilityAdapter {
|
|
731
|
+
private readonly files;
|
|
732
|
+
prepareInvocation(parameters: unknown, project: string): Promise<({
|
|
733
|
+
projectRoot: string;
|
|
734
|
+
invocationId: `${string}-${string}-${string}-${string}-${string}`;
|
|
735
|
+
workDirectory: string;
|
|
736
|
+
invocationPath: string;
|
|
737
|
+
options: {
|
|
738
|
+
pageName: string | undefined;
|
|
739
|
+
route: string;
|
|
740
|
+
device: string | undefined;
|
|
741
|
+
maxRounds: number;
|
|
742
|
+
scoreThreshold: number;
|
|
743
|
+
module?: undefined;
|
|
744
|
+
source?: undefined;
|
|
745
|
+
} | {
|
|
746
|
+
pageName: string | undefined;
|
|
747
|
+
module: string | undefined;
|
|
748
|
+
source: "pixso" | "figma" | undefined;
|
|
749
|
+
route?: undefined;
|
|
750
|
+
device?: undefined;
|
|
751
|
+
maxRounds?: undefined;
|
|
752
|
+
scoreThreshold?: undefined;
|
|
753
|
+
};
|
|
754
|
+
skillRoot: string;
|
|
755
|
+
capability: "hmos-d2a-arkui-scoring-workflow" | "hmos-d2a-arkui2hds" | "hmos-d2a-react-to-arkui" | "hmos-d2a-solution-design";
|
|
756
|
+
capabilityRoot: string;
|
|
757
|
+
instructionPath: string;
|
|
758
|
+
integrationPath: string;
|
|
759
|
+
schemaVersion: 1;
|
|
760
|
+
status: "ready-for-agent";
|
|
761
|
+
execution: "agent";
|
|
762
|
+
invocationMode: "standalone";
|
|
763
|
+
inputMode: "direct";
|
|
764
|
+
command: "scoring-workflow" | "arkui2hds" | "react-to-arkui" | "solution-design";
|
|
765
|
+
} & {
|
|
766
|
+
inputs: {
|
|
767
|
+
[k: string]: {
|
|
768
|
+
path: string;
|
|
769
|
+
originalPath: string;
|
|
770
|
+
sha256: string;
|
|
771
|
+
};
|
|
772
|
+
};
|
|
773
|
+
targetPage: {
|
|
774
|
+
writePolicy: {
|
|
775
|
+
mode: "d2a-revision";
|
|
776
|
+
runId: string;
|
|
777
|
+
pageName: string;
|
|
778
|
+
directory: ProjectDirectoryName;
|
|
779
|
+
} | {
|
|
780
|
+
mode: "reviewed-edit";
|
|
781
|
+
runId?: undefined;
|
|
782
|
+
pageName?: undefined;
|
|
783
|
+
directory?: undefined;
|
|
784
|
+
};
|
|
785
|
+
pageName?: string | undefined;
|
|
786
|
+
pageFile: string;
|
|
787
|
+
sha256: string;
|
|
788
|
+
imageIds?: string[] | undefined;
|
|
789
|
+
} | undefined;
|
|
790
|
+
}) | {
|
|
791
|
+
invocationId: `${string}-${string}-${string}-${string}-${string}`;
|
|
792
|
+
invocationPath: string;
|
|
793
|
+
projectRoot: string;
|
|
794
|
+
runId: string;
|
|
795
|
+
runDirectory: string;
|
|
796
|
+
workDirectory: string;
|
|
797
|
+
inputs: {
|
|
798
|
+
design: {
|
|
799
|
+
snapshot: DesignInputSnapshot & {
|
|
800
|
+
path: string;
|
|
801
|
+
};
|
|
802
|
+
screenshots: (DesignReferenceScreenshot & {
|
|
803
|
+
path: string;
|
|
804
|
+
})[];
|
|
805
|
+
assetHints: ({
|
|
806
|
+
status: "referenced";
|
|
807
|
+
reference: string;
|
|
808
|
+
} | ({
|
|
809
|
+
status: "local";
|
|
810
|
+
reference: string;
|
|
811
|
+
path: string;
|
|
812
|
+
size: number;
|
|
813
|
+
sha256: string;
|
|
814
|
+
} & {
|
|
815
|
+
path: string;
|
|
816
|
+
}))[];
|
|
817
|
+
schemaVersion: 1 | 2;
|
|
818
|
+
runId: string;
|
|
819
|
+
target?: {
|
|
820
|
+
fileId?: string;
|
|
821
|
+
nodeId: string;
|
|
822
|
+
};
|
|
823
|
+
warnings: Array<{
|
|
824
|
+
code: string;
|
|
825
|
+
message: string;
|
|
826
|
+
}>;
|
|
827
|
+
};
|
|
828
|
+
page: {
|
|
829
|
+
pageName: string;
|
|
830
|
+
pageFile: string;
|
|
831
|
+
sha256: string;
|
|
832
|
+
imageIds: string[];
|
|
833
|
+
} | undefined;
|
|
834
|
+
requirements: {
|
|
835
|
+
path: string;
|
|
836
|
+
sha256: string;
|
|
837
|
+
} | undefined;
|
|
838
|
+
};
|
|
839
|
+
options: {
|
|
840
|
+
directory: string;
|
|
841
|
+
pageName: string;
|
|
842
|
+
} | {
|
|
843
|
+
directory: string;
|
|
844
|
+
route: string;
|
|
845
|
+
device: string | undefined;
|
|
846
|
+
maxRounds: number;
|
|
847
|
+
scoreThreshold: number;
|
|
848
|
+
pageName: string;
|
|
849
|
+
} | {
|
|
850
|
+
directory: string;
|
|
851
|
+
module: string | undefined;
|
|
852
|
+
pageName: string;
|
|
853
|
+
};
|
|
854
|
+
capability: "hmos-d2a-arkui-scoring-workflow" | "hmos-d2a-arkui2hds" | "hmos-d2a-react-to-arkui" | "hmos-d2a-solution-design";
|
|
855
|
+
skillRoot: string;
|
|
856
|
+
capabilityRoot: string;
|
|
857
|
+
instructionPath: string;
|
|
858
|
+
integrationPath: string;
|
|
859
|
+
schemaVersion: 1;
|
|
860
|
+
status: "ready-for-agent";
|
|
861
|
+
execution: "agent";
|
|
862
|
+
invocationMode: "standalone";
|
|
863
|
+
inputMode: "run";
|
|
864
|
+
command: "scoring-workflow" | "arkui2hds" | "react-to-arkui" | "solution-design";
|
|
865
|
+
}>;
|
|
866
|
+
private instructionFiles;
|
|
867
|
+
private createInvocation;
|
|
868
|
+
private assertStandaloneRun;
|
|
869
|
+
private assertDesignInputs;
|
|
870
|
+
private readTargetPage;
|
|
871
|
+
private readRequirements;
|
|
872
|
+
private absoluteDesign;
|
|
873
|
+
private executionOptions;
|
|
874
|
+
private saveInvocation;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
declare const runCapabilityRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
878
|
+
command: z.ZodLiteral<"scoring-workflow">;
|
|
879
|
+
route: z.ZodString;
|
|
880
|
+
device: z.ZodOptional<z.ZodString>;
|
|
881
|
+
maxRounds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
882
|
+
scoreThreshold: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
883
|
+
project: z.ZodOptional<z.ZodString>;
|
|
884
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
885
|
+
design2arkts: "design2arkts";
|
|
886
|
+
d2a: "d2a";
|
|
887
|
+
design2arkui: "design2arkui";
|
|
888
|
+
}>>;
|
|
889
|
+
run: z.ZodUUID;
|
|
890
|
+
page: z.ZodOptional<z.ZodNever>;
|
|
891
|
+
reference: z.ZodOptional<z.ZodNever>;
|
|
892
|
+
input: z.ZodOptional<z.ZodNever>;
|
|
893
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
894
|
+
pixso: "pixso";
|
|
895
|
+
figma: "figma";
|
|
896
|
+
}>>;
|
|
897
|
+
pageName: z.ZodString;
|
|
898
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
899
|
+
command: z.ZodLiteral<"arkui2hds">;
|
|
900
|
+
project: z.ZodOptional<z.ZodString>;
|
|
901
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
902
|
+
design2arkts: "design2arkts";
|
|
903
|
+
d2a: "d2a";
|
|
904
|
+
design2arkui: "design2arkui";
|
|
905
|
+
}>>;
|
|
906
|
+
run: z.ZodUUID;
|
|
907
|
+
page: z.ZodOptional<z.ZodNever>;
|
|
908
|
+
reference: z.ZodOptional<z.ZodNever>;
|
|
909
|
+
input: z.ZodOptional<z.ZodNever>;
|
|
910
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
911
|
+
pixso: "pixso";
|
|
912
|
+
figma: "figma";
|
|
913
|
+
}>>;
|
|
914
|
+
pageName: z.ZodString;
|
|
915
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
916
|
+
command: z.ZodLiteral<"react-to-arkui">;
|
|
917
|
+
requirements: z.ZodString;
|
|
918
|
+
module: z.ZodOptional<z.ZodString>;
|
|
919
|
+
project: z.ZodOptional<z.ZodString>;
|
|
920
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
921
|
+
design2arkts: "design2arkts";
|
|
922
|
+
d2a: "d2a";
|
|
923
|
+
design2arkui: "design2arkui";
|
|
924
|
+
}>>;
|
|
925
|
+
run: z.ZodUUID;
|
|
926
|
+
page: z.ZodOptional<z.ZodNever>;
|
|
927
|
+
reference: z.ZodOptional<z.ZodNever>;
|
|
928
|
+
input: z.ZodOptional<z.ZodNever>;
|
|
929
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
930
|
+
pixso: "pixso";
|
|
931
|
+
figma: "figma";
|
|
932
|
+
}>>;
|
|
933
|
+
pageName: z.ZodString;
|
|
934
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
935
|
+
command: z.ZodLiteral<"solution-design">;
|
|
936
|
+
requirements: z.ZodString;
|
|
937
|
+
module: z.ZodOptional<z.ZodString>;
|
|
938
|
+
project: z.ZodOptional<z.ZodString>;
|
|
939
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
940
|
+
design2arkts: "design2arkts";
|
|
941
|
+
d2a: "d2a";
|
|
942
|
+
design2arkui: "design2arkui";
|
|
943
|
+
}>>;
|
|
944
|
+
run: z.ZodUUID;
|
|
945
|
+
page: z.ZodOptional<z.ZodNever>;
|
|
946
|
+
reference: z.ZodOptional<z.ZodNever>;
|
|
947
|
+
input: z.ZodOptional<z.ZodNever>;
|
|
948
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
949
|
+
pixso: "pixso";
|
|
950
|
+
figma: "figma";
|
|
951
|
+
}>>;
|
|
952
|
+
pageName: z.ZodString;
|
|
953
|
+
}, z.core.$strip>], "command">;
|
|
954
|
+
type RunCapabilityRequest = z.output<typeof runCapabilityRequestSchema>;
|
|
955
|
+
type CapabilityCommand = RunCapabilityRequest['command'];
|
|
956
|
+
declare const directCapabilityRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
957
|
+
command: z.ZodLiteral<"scoring-workflow">;
|
|
958
|
+
page: z.ZodString;
|
|
959
|
+
reference: z.ZodString;
|
|
960
|
+
route: z.ZodString;
|
|
961
|
+
device: z.ZodOptional<z.ZodString>;
|
|
962
|
+
maxRounds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
963
|
+
scoreThreshold: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
964
|
+
project: z.ZodOptional<z.ZodString>;
|
|
965
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
966
|
+
design2arkts: "design2arkts";
|
|
967
|
+
d2a: "d2a";
|
|
968
|
+
design2arkui: "design2arkui";
|
|
969
|
+
}>>;
|
|
970
|
+
run: z.ZodOptional<z.ZodNever>;
|
|
971
|
+
pageName: z.ZodOptional<z.ZodString>;
|
|
972
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
973
|
+
command: z.ZodLiteral<"arkui2hds">;
|
|
974
|
+
page: z.ZodString;
|
|
975
|
+
project: z.ZodOptional<z.ZodString>;
|
|
976
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
977
|
+
design2arkts: "design2arkts";
|
|
978
|
+
d2a: "d2a";
|
|
979
|
+
design2arkui: "design2arkui";
|
|
980
|
+
}>>;
|
|
981
|
+
run: z.ZodOptional<z.ZodNever>;
|
|
982
|
+
pageName: z.ZodOptional<z.ZodString>;
|
|
983
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
984
|
+
command: z.ZodLiteral<"react-to-arkui">;
|
|
985
|
+
reference: z.ZodString;
|
|
986
|
+
input: z.ZodString;
|
|
987
|
+
requirements: z.ZodString;
|
|
988
|
+
module: z.ZodOptional<z.ZodString>;
|
|
989
|
+
project: z.ZodOptional<z.ZodString>;
|
|
990
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
991
|
+
design2arkts: "design2arkts";
|
|
992
|
+
d2a: "d2a";
|
|
993
|
+
design2arkui: "design2arkui";
|
|
994
|
+
}>>;
|
|
995
|
+
run: z.ZodOptional<z.ZodNever>;
|
|
996
|
+
pageName: z.ZodOptional<z.ZodString>;
|
|
997
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
998
|
+
command: z.ZodLiteral<"solution-design">;
|
|
999
|
+
input: z.ZodOptional<z.ZodString>;
|
|
1000
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1001
|
+
pixso: "pixso";
|
|
1002
|
+
figma: "figma";
|
|
1003
|
+
}>>;
|
|
1004
|
+
requirements: z.ZodString;
|
|
1005
|
+
module: z.ZodOptional<z.ZodString>;
|
|
1006
|
+
reference: z.ZodOptional<z.ZodString>;
|
|
1007
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1008
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1009
|
+
design2arkts: "design2arkts";
|
|
1010
|
+
d2a: "d2a";
|
|
1011
|
+
design2arkui: "design2arkui";
|
|
1012
|
+
}>>;
|
|
1013
|
+
run: z.ZodOptional<z.ZodNever>;
|
|
1014
|
+
pageName: z.ZodOptional<z.ZodString>;
|
|
1015
|
+
}, z.core.$strip>], "command">;
|
|
1016
|
+
type DirectCapabilityRequest = z.output<typeof directCapabilityRequestSchema>;
|
|
1017
|
+
declare const capabilityRequestSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1018
|
+
command: z.ZodLiteral<"scoring-workflow">;
|
|
1019
|
+
route: z.ZodString;
|
|
1020
|
+
device: z.ZodOptional<z.ZodString>;
|
|
1021
|
+
maxRounds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1022
|
+
scoreThreshold: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1023
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1024
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1025
|
+
design2arkts: "design2arkts";
|
|
1026
|
+
d2a: "d2a";
|
|
1027
|
+
design2arkui: "design2arkui";
|
|
1028
|
+
}>>;
|
|
1029
|
+
run: z.ZodUUID;
|
|
1030
|
+
page: z.ZodOptional<z.ZodNever>;
|
|
1031
|
+
reference: z.ZodOptional<z.ZodNever>;
|
|
1032
|
+
input: z.ZodOptional<z.ZodNever>;
|
|
1033
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1034
|
+
pixso: "pixso";
|
|
1035
|
+
figma: "figma";
|
|
1036
|
+
}>>;
|
|
1037
|
+
pageName: z.ZodString;
|
|
1038
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1039
|
+
command: z.ZodLiteral<"arkui2hds">;
|
|
1040
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1041
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1042
|
+
design2arkts: "design2arkts";
|
|
1043
|
+
d2a: "d2a";
|
|
1044
|
+
design2arkui: "design2arkui";
|
|
1045
|
+
}>>;
|
|
1046
|
+
run: z.ZodUUID;
|
|
1047
|
+
page: z.ZodOptional<z.ZodNever>;
|
|
1048
|
+
reference: z.ZodOptional<z.ZodNever>;
|
|
1049
|
+
input: z.ZodOptional<z.ZodNever>;
|
|
1050
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1051
|
+
pixso: "pixso";
|
|
1052
|
+
figma: "figma";
|
|
1053
|
+
}>>;
|
|
1054
|
+
pageName: z.ZodString;
|
|
1055
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1056
|
+
command: z.ZodLiteral<"react-to-arkui">;
|
|
1057
|
+
requirements: z.ZodString;
|
|
1058
|
+
module: z.ZodOptional<z.ZodString>;
|
|
1059
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1060
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1061
|
+
design2arkts: "design2arkts";
|
|
1062
|
+
d2a: "d2a";
|
|
1063
|
+
design2arkui: "design2arkui";
|
|
1064
|
+
}>>;
|
|
1065
|
+
run: z.ZodUUID;
|
|
1066
|
+
page: z.ZodOptional<z.ZodNever>;
|
|
1067
|
+
reference: z.ZodOptional<z.ZodNever>;
|
|
1068
|
+
input: z.ZodOptional<z.ZodNever>;
|
|
1069
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1070
|
+
pixso: "pixso";
|
|
1071
|
+
figma: "figma";
|
|
1072
|
+
}>>;
|
|
1073
|
+
pageName: z.ZodString;
|
|
1074
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1075
|
+
command: z.ZodLiteral<"solution-design">;
|
|
1076
|
+
requirements: z.ZodString;
|
|
1077
|
+
module: z.ZodOptional<z.ZodString>;
|
|
1078
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1079
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1080
|
+
design2arkts: "design2arkts";
|
|
1081
|
+
d2a: "d2a";
|
|
1082
|
+
design2arkui: "design2arkui";
|
|
1083
|
+
}>>;
|
|
1084
|
+
run: z.ZodUUID;
|
|
1085
|
+
page: z.ZodOptional<z.ZodNever>;
|
|
1086
|
+
reference: z.ZodOptional<z.ZodNever>;
|
|
1087
|
+
input: z.ZodOptional<z.ZodNever>;
|
|
1088
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1089
|
+
pixso: "pixso";
|
|
1090
|
+
figma: "figma";
|
|
1091
|
+
}>>;
|
|
1092
|
+
pageName: z.ZodString;
|
|
1093
|
+
}, z.core.$strip>], "command">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1094
|
+
command: z.ZodLiteral<"scoring-workflow">;
|
|
1095
|
+
page: z.ZodString;
|
|
1096
|
+
reference: z.ZodString;
|
|
1097
|
+
route: z.ZodString;
|
|
1098
|
+
device: z.ZodOptional<z.ZodString>;
|
|
1099
|
+
maxRounds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1100
|
+
scoreThreshold: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1101
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1102
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1103
|
+
design2arkts: "design2arkts";
|
|
1104
|
+
d2a: "d2a";
|
|
1105
|
+
design2arkui: "design2arkui";
|
|
1106
|
+
}>>;
|
|
1107
|
+
run: z.ZodOptional<z.ZodNever>;
|
|
1108
|
+
pageName: z.ZodOptional<z.ZodString>;
|
|
1109
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1110
|
+
command: z.ZodLiteral<"arkui2hds">;
|
|
1111
|
+
page: z.ZodString;
|
|
1112
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1113
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1114
|
+
design2arkts: "design2arkts";
|
|
1115
|
+
d2a: "d2a";
|
|
1116
|
+
design2arkui: "design2arkui";
|
|
1117
|
+
}>>;
|
|
1118
|
+
run: z.ZodOptional<z.ZodNever>;
|
|
1119
|
+
pageName: z.ZodOptional<z.ZodString>;
|
|
1120
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1121
|
+
command: z.ZodLiteral<"react-to-arkui">;
|
|
1122
|
+
reference: z.ZodString;
|
|
1123
|
+
input: z.ZodString;
|
|
1124
|
+
requirements: z.ZodString;
|
|
1125
|
+
module: z.ZodOptional<z.ZodString>;
|
|
1126
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1127
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1128
|
+
design2arkts: "design2arkts";
|
|
1129
|
+
d2a: "d2a";
|
|
1130
|
+
design2arkui: "design2arkui";
|
|
1131
|
+
}>>;
|
|
1132
|
+
run: z.ZodOptional<z.ZodNever>;
|
|
1133
|
+
pageName: z.ZodOptional<z.ZodString>;
|
|
1134
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1135
|
+
command: z.ZodLiteral<"solution-design">;
|
|
1136
|
+
input: z.ZodOptional<z.ZodString>;
|
|
1137
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1138
|
+
pixso: "pixso";
|
|
1139
|
+
figma: "figma";
|
|
1140
|
+
}>>;
|
|
1141
|
+
requirements: z.ZodString;
|
|
1142
|
+
module: z.ZodOptional<z.ZodString>;
|
|
1143
|
+
reference: z.ZodOptional<z.ZodString>;
|
|
1144
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1145
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1146
|
+
design2arkts: "design2arkts";
|
|
1147
|
+
d2a: "d2a";
|
|
1148
|
+
design2arkui: "design2arkui";
|
|
1149
|
+
}>>;
|
|
1150
|
+
run: z.ZodOptional<z.ZodNever>;
|
|
1151
|
+
pageName: z.ZodOptional<z.ZodString>;
|
|
1152
|
+
}, z.core.$strip>], "command">]>;
|
|
1153
|
+
type CapabilityRequest = z.output<typeof capabilityRequestSchema>;
|
|
1154
|
+
|
|
1155
|
+
/** Bundled Skill canonical name and alias; CLI choices and engine schemas derive from this set. */
|
|
1156
|
+
declare const BUNDLED_SKILL_NAMES: readonly ["hmos-design2arkts", "hmos-d2a"];
|
|
1157
|
+
declare const BUNDLED_SKILL_NAME: "hmos-design2arkts";
|
|
1158
|
+
/** Legacy installs kept on the protected lifecycle path. */
|
|
1159
|
+
declare const LEGACY_BUNDLED_SKILL_NAMES: readonly ["hmos-design2arkui"];
|
|
1160
|
+
declare function isBundledSkillName(name: string): boolean;
|
|
1161
|
+
declare function getBundledSkillDirectory(): string;
|
|
1162
|
+
declare function getBundledWorkflowGuide(): {
|
|
1163
|
+
execution: "agent";
|
|
1164
|
+
mode: "workflow";
|
|
1165
|
+
skillRoot: string;
|
|
1166
|
+
instructionPath: string;
|
|
1167
|
+
integrationPath: string;
|
|
1168
|
+
controllerPath: string;
|
|
1169
|
+
nextAction: string;
|
|
1170
|
+
};
|
|
1171
|
+
|
|
1172
|
+
interface VerificationCheck {
|
|
1173
|
+
name: string;
|
|
1174
|
+
status: 'passed' | 'failed' | 'not-run' | 'unsupported';
|
|
1175
|
+
evidence?: unknown;
|
|
1176
|
+
reason?: string;
|
|
1177
|
+
}
|
|
1178
|
+
interface VerifyRequest {
|
|
1179
|
+
projectRoot: string;
|
|
1180
|
+
runId: string;
|
|
1181
|
+
runDirectory: string;
|
|
1182
|
+
files: string[];
|
|
1183
|
+
checks: Array<'arkts' | 'lint' | 'build' | 'run' | 'visual'>;
|
|
1184
|
+
device?: string;
|
|
1185
|
+
module?: string;
|
|
1186
|
+
signal?: AbortSignal;
|
|
1187
|
+
}
|
|
1188
|
+
interface RuntimeHost {
|
|
1189
|
+
discoverProjectRoot?(start: string): string;
|
|
1190
|
+
captureDevice?(request: {
|
|
1191
|
+
projectRoot: string;
|
|
1192
|
+
device?: string;
|
|
1193
|
+
path: string;
|
|
1194
|
+
signal?: AbortSignal;
|
|
1195
|
+
}): Promise<string>;
|
|
1196
|
+
verifyProject?(request: VerifyRequest): Promise<VerificationCheck[]>;
|
|
1197
|
+
}
|
|
1198
|
+
interface JsonPostOptions {
|
|
1199
|
+
signal?: AbortSignal;
|
|
1200
|
+
timeout?: number;
|
|
1201
|
+
maxContentLength?: number;
|
|
1202
|
+
maxBodyLength?: number;
|
|
1203
|
+
headers?: Record<string, string>;
|
|
1204
|
+
params?: Record<string, unknown>;
|
|
1205
|
+
}
|
|
1206
|
+
interface RuntimeContext {
|
|
1207
|
+
signal?: AbortSignal;
|
|
1208
|
+
host?: RuntimeHost;
|
|
1209
|
+
logger?: (message: string) => void;
|
|
1210
|
+
postJson?: (url: string, options: JsonPostOptions) => Promise<{
|
|
1211
|
+
data: string;
|
|
1212
|
+
}>;
|
|
1213
|
+
}
|
|
1214
|
+
interface RuntimeOptions extends Omit<RuntimeContext, 'signal'> {
|
|
1215
|
+
projectRoot?: string;
|
|
1216
|
+
cwd?: string;
|
|
1217
|
+
}
|
|
1218
|
+
interface ExecutionOptions {
|
|
1219
|
+
signal?: AbortSignal;
|
|
1220
|
+
timeoutMs?: number;
|
|
1221
|
+
}
|
|
1222
|
+
type D2AErrorCode = 'INVALID_REQUEST' | 'CANCELLED' | 'TIMEOUT' | 'UNSUPPORTED' | 'EXECUTION_FAILED';
|
|
1223
|
+
type D2AResponse<T = unknown> = {
|
|
1224
|
+
ok: true;
|
|
1225
|
+
operation: string;
|
|
1226
|
+
data: T;
|
|
1227
|
+
} | {
|
|
1228
|
+
ok: false;
|
|
1229
|
+
operation: string;
|
|
1230
|
+
error: {
|
|
1231
|
+
code: D2AErrorCode;
|
|
1232
|
+
message: string;
|
|
1233
|
+
details?: Record<string, unknown>;
|
|
1234
|
+
};
|
|
1235
|
+
};
|
|
1236
|
+
|
|
1237
|
+
declare function withRuntimeContext<T>(context: RuntimeContext, work: () => T): T;
|
|
1238
|
+
|
|
1239
|
+
/** Shared operation schemas; entry points may add descriptions and strict keys. */
|
|
1240
|
+
declare const parameterSchemas: {
|
|
1241
|
+
workflow_guide: z.ZodObject<{}, z.core.$strip>;
|
|
1242
|
+
capability_prepare: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1243
|
+
command: z.ZodLiteral<"scoring-workflow">;
|
|
1244
|
+
route: z.ZodString;
|
|
1245
|
+
device: z.ZodOptional<z.ZodString>;
|
|
1246
|
+
maxRounds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1247
|
+
scoreThreshold: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1248
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1249
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1250
|
+
design2arkts: "design2arkts";
|
|
1251
|
+
d2a: "d2a";
|
|
1252
|
+
design2arkui: "design2arkui";
|
|
1253
|
+
}>>;
|
|
1254
|
+
run: z.ZodUUID;
|
|
1255
|
+
page: z.ZodOptional<z.ZodNever>;
|
|
1256
|
+
reference: z.ZodOptional<z.ZodNever>;
|
|
1257
|
+
input: z.ZodOptional<z.ZodNever>;
|
|
1258
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1259
|
+
pixso: "pixso";
|
|
1260
|
+
figma: "figma";
|
|
1261
|
+
}>>;
|
|
1262
|
+
pageName: z.ZodString;
|
|
1263
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1264
|
+
command: z.ZodLiteral<"arkui2hds">;
|
|
1265
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1266
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1267
|
+
design2arkts: "design2arkts";
|
|
1268
|
+
d2a: "d2a";
|
|
1269
|
+
design2arkui: "design2arkui";
|
|
1270
|
+
}>>;
|
|
1271
|
+
run: z.ZodUUID;
|
|
1272
|
+
page: z.ZodOptional<z.ZodNever>;
|
|
1273
|
+
reference: z.ZodOptional<z.ZodNever>;
|
|
1274
|
+
input: z.ZodOptional<z.ZodNever>;
|
|
1275
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1276
|
+
pixso: "pixso";
|
|
1277
|
+
figma: "figma";
|
|
1278
|
+
}>>;
|
|
1279
|
+
pageName: z.ZodString;
|
|
1280
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1281
|
+
command: z.ZodLiteral<"react-to-arkui">;
|
|
1282
|
+
requirements: z.ZodString;
|
|
1283
|
+
module: z.ZodOptional<z.ZodString>;
|
|
1284
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1285
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1286
|
+
design2arkts: "design2arkts";
|
|
1287
|
+
d2a: "d2a";
|
|
1288
|
+
design2arkui: "design2arkui";
|
|
1289
|
+
}>>;
|
|
1290
|
+
run: z.ZodUUID;
|
|
1291
|
+
page: z.ZodOptional<z.ZodNever>;
|
|
1292
|
+
reference: z.ZodOptional<z.ZodNever>;
|
|
1293
|
+
input: z.ZodOptional<z.ZodNever>;
|
|
1294
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1295
|
+
pixso: "pixso";
|
|
1296
|
+
figma: "figma";
|
|
1297
|
+
}>>;
|
|
1298
|
+
pageName: z.ZodString;
|
|
1299
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1300
|
+
command: z.ZodLiteral<"solution-design">;
|
|
1301
|
+
requirements: z.ZodString;
|
|
1302
|
+
module: z.ZodOptional<z.ZodString>;
|
|
1303
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1304
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1305
|
+
design2arkts: "design2arkts";
|
|
1306
|
+
d2a: "d2a";
|
|
1307
|
+
design2arkui: "design2arkui";
|
|
1308
|
+
}>>;
|
|
1309
|
+
run: z.ZodUUID;
|
|
1310
|
+
page: z.ZodOptional<z.ZodNever>;
|
|
1311
|
+
reference: z.ZodOptional<z.ZodNever>;
|
|
1312
|
+
input: z.ZodOptional<z.ZodNever>;
|
|
1313
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1314
|
+
pixso: "pixso";
|
|
1315
|
+
figma: "figma";
|
|
1316
|
+
}>>;
|
|
1317
|
+
pageName: z.ZodString;
|
|
1318
|
+
}, z.core.$strip>], "command">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1319
|
+
command: z.ZodLiteral<"scoring-workflow">;
|
|
1320
|
+
page: z.ZodString;
|
|
1321
|
+
reference: z.ZodString;
|
|
1322
|
+
route: z.ZodString;
|
|
1323
|
+
device: z.ZodOptional<z.ZodString>;
|
|
1324
|
+
maxRounds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1325
|
+
scoreThreshold: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1326
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1327
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1328
|
+
design2arkts: "design2arkts";
|
|
1329
|
+
d2a: "d2a";
|
|
1330
|
+
design2arkui: "design2arkui";
|
|
1331
|
+
}>>;
|
|
1332
|
+
run: z.ZodOptional<z.ZodNever>;
|
|
1333
|
+
pageName: z.ZodOptional<z.ZodString>;
|
|
1334
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1335
|
+
command: z.ZodLiteral<"arkui2hds">;
|
|
1336
|
+
page: z.ZodString;
|
|
1337
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1338
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1339
|
+
design2arkts: "design2arkts";
|
|
1340
|
+
d2a: "d2a";
|
|
1341
|
+
design2arkui: "design2arkui";
|
|
1342
|
+
}>>;
|
|
1343
|
+
run: z.ZodOptional<z.ZodNever>;
|
|
1344
|
+
pageName: z.ZodOptional<z.ZodString>;
|
|
1345
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1346
|
+
command: z.ZodLiteral<"react-to-arkui">;
|
|
1347
|
+
reference: z.ZodString;
|
|
1348
|
+
input: z.ZodString;
|
|
1349
|
+
requirements: z.ZodString;
|
|
1350
|
+
module: z.ZodOptional<z.ZodString>;
|
|
1351
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1352
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1353
|
+
design2arkts: "design2arkts";
|
|
1354
|
+
d2a: "d2a";
|
|
1355
|
+
design2arkui: "design2arkui";
|
|
1356
|
+
}>>;
|
|
1357
|
+
run: z.ZodOptional<z.ZodNever>;
|
|
1358
|
+
pageName: z.ZodOptional<z.ZodString>;
|
|
1359
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1360
|
+
command: z.ZodLiteral<"solution-design">;
|
|
1361
|
+
input: z.ZodOptional<z.ZodString>;
|
|
1362
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1363
|
+
pixso: "pixso";
|
|
1364
|
+
figma: "figma";
|
|
1365
|
+
}>>;
|
|
1366
|
+
requirements: z.ZodString;
|
|
1367
|
+
module: z.ZodOptional<z.ZodString>;
|
|
1368
|
+
reference: z.ZodOptional<z.ZodString>;
|
|
1369
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1370
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1371
|
+
design2arkts: "design2arkts";
|
|
1372
|
+
d2a: "d2a";
|
|
1373
|
+
design2arkui: "design2arkui";
|
|
1374
|
+
}>>;
|
|
1375
|
+
run: z.ZodOptional<z.ZodNever>;
|
|
1376
|
+
pageName: z.ZodOptional<z.ZodString>;
|
|
1377
|
+
}, z.core.$strip>], "command">]>;
|
|
1378
|
+
resolve: z.ZodObject<{
|
|
1379
|
+
source: z.ZodEnum<{
|
|
1380
|
+
pixso: "pixso";
|
|
1381
|
+
figma: "figma";
|
|
1382
|
+
}>;
|
|
1383
|
+
run: z.ZodOptional<z.ZodUUID>;
|
|
1384
|
+
input: z.ZodOptional<z.ZodString>;
|
|
1385
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
1386
|
+
mcp: z.ZodOptional<z.ZodString>;
|
|
1387
|
+
screenshot: z.ZodOptional<z.ZodString>;
|
|
1388
|
+
screenshotScale: z.ZodOptional<z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>>;
|
|
1389
|
+
componentScreenshot: z.ZodOptional<z.ZodString>;
|
|
1390
|
+
assets: z.ZodOptional<z.ZodString>;
|
|
1391
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
1392
|
+
fast: "fast";
|
|
1393
|
+
full: "full";
|
|
1394
|
+
}>>;
|
|
1395
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1396
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1397
|
+
design2arkts: "design2arkts";
|
|
1398
|
+
d2a: "d2a";
|
|
1399
|
+
design2arkui: "design2arkui";
|
|
1400
|
+
}>>;
|
|
1401
|
+
}, z.core.$strip>;
|
|
1402
|
+
run_create: z.ZodObject<{
|
|
1403
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1404
|
+
pixso: "pixso";
|
|
1405
|
+
figma: "figma";
|
|
1406
|
+
}>>;
|
|
1407
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
1408
|
+
fast: "fast";
|
|
1409
|
+
full: "full";
|
|
1410
|
+
}>>;
|
|
1411
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1412
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1413
|
+
design2arkts: "design2arkts";
|
|
1414
|
+
d2a: "d2a";
|
|
1415
|
+
design2arkui: "design2arkui";
|
|
1416
|
+
}>>;
|
|
1417
|
+
}, z.core.$strip>;
|
|
1418
|
+
export_arkts_page: z.ZodObject<{
|
|
1419
|
+
revise: z.ZodOptional<z.ZodBoolean>;
|
|
1420
|
+
pageName: z.ZodString;
|
|
1421
|
+
input: z.ZodOptional<z.ZodString>;
|
|
1422
|
+
imageIds: z.ZodOptional<z.ZodString>;
|
|
1423
|
+
run: z.ZodUUID;
|
|
1424
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1425
|
+
pixso: "pixso";
|
|
1426
|
+
figma: "figma";
|
|
1427
|
+
}>>;
|
|
1428
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1429
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1430
|
+
design2arkts: "design2arkts";
|
|
1431
|
+
d2a: "d2a";
|
|
1432
|
+
design2arkui: "design2arkui";
|
|
1433
|
+
}>>;
|
|
1434
|
+
}, z.core.$strip>;
|
|
1435
|
+
resources_prepare: z.ZodObject<{
|
|
1436
|
+
pageName: z.ZodString;
|
|
1437
|
+
assets: z.ZodOptional<z.ZodString>;
|
|
1438
|
+
mapping: z.ZodOptional<z.ZodString>;
|
|
1439
|
+
fetch: z.ZodOptional<z.ZodBoolean>;
|
|
1440
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1441
|
+
mcp: z.ZodOptional<z.ZodString>;
|
|
1442
|
+
revise: z.ZodOptional<z.ZodBoolean>;
|
|
1443
|
+
run: z.ZodUUID;
|
|
1444
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1445
|
+
pixso: "pixso";
|
|
1446
|
+
figma: "figma";
|
|
1447
|
+
}>>;
|
|
1448
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1449
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1450
|
+
design2arkts: "design2arkts";
|
|
1451
|
+
d2a: "d2a";
|
|
1452
|
+
design2arkui: "design2arkui";
|
|
1453
|
+
}>>;
|
|
1454
|
+
}, z.core.$strip>;
|
|
1455
|
+
inspect: z.ZodObject<{
|
|
1456
|
+
section: z.ZodDefault<z.ZodEnum<{
|
|
1457
|
+
input: "input";
|
|
1458
|
+
all: "all";
|
|
1459
|
+
layout: "layout";
|
|
1460
|
+
assets: "assets";
|
|
1461
|
+
risks: "risks";
|
|
1462
|
+
fallbacks: "fallbacks";
|
|
1463
|
+
}>>;
|
|
1464
|
+
run: z.ZodUUID;
|
|
1465
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1466
|
+
pixso: "pixso";
|
|
1467
|
+
figma: "figma";
|
|
1468
|
+
}>>;
|
|
1469
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1470
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1471
|
+
design2arkts: "design2arkts";
|
|
1472
|
+
d2a: "d2a";
|
|
1473
|
+
design2arkui: "design2arkui";
|
|
1474
|
+
}>>;
|
|
1475
|
+
}, z.core.$strip>;
|
|
1476
|
+
preview: z.ZodObject<{
|
|
1477
|
+
mode: z.ZodLiteral<"device">;
|
|
1478
|
+
device: z.ZodOptional<z.ZodString>;
|
|
1479
|
+
run: z.ZodUUID;
|
|
1480
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1481
|
+
pixso: "pixso";
|
|
1482
|
+
figma: "figma";
|
|
1483
|
+
}>>;
|
|
1484
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1485
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1486
|
+
design2arkts: "design2arkts";
|
|
1487
|
+
d2a: "d2a";
|
|
1488
|
+
design2arkui: "design2arkui";
|
|
1489
|
+
}>>;
|
|
1490
|
+
}, z.core.$strip>;
|
|
1491
|
+
import_page_plan: z.ZodObject<{
|
|
1492
|
+
module: z.ZodOptional<z.ZodString>;
|
|
1493
|
+
pageName: z.ZodOptional<z.ZodString>;
|
|
1494
|
+
resourceRevision: z.ZodOptional<z.ZodUUID>;
|
|
1495
|
+
pageRevision: z.ZodOptional<z.ZodUUID>;
|
|
1496
|
+
run: z.ZodUUID;
|
|
1497
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1498
|
+
pixso: "pixso";
|
|
1499
|
+
figma: "figma";
|
|
1500
|
+
}>>;
|
|
1501
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1502
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1503
|
+
design2arkts: "design2arkts";
|
|
1504
|
+
d2a: "d2a";
|
|
1505
|
+
design2arkui: "design2arkui";
|
|
1506
|
+
}>>;
|
|
1507
|
+
}, z.core.$strip>;
|
|
1508
|
+
import_page_apply: z.ZodObject<{
|
|
1509
|
+
plan: z.ZodString;
|
|
1510
|
+
run: z.ZodUUID;
|
|
1511
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1512
|
+
pixso: "pixso";
|
|
1513
|
+
figma: "figma";
|
|
1514
|
+
}>>;
|
|
1515
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1516
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1517
|
+
design2arkts: "design2arkts";
|
|
1518
|
+
d2a: "d2a";
|
|
1519
|
+
design2arkui: "design2arkui";
|
|
1520
|
+
}>>;
|
|
1521
|
+
}, z.core.$strip>;
|
|
1522
|
+
register: z.ZodObject<{
|
|
1523
|
+
skill: z.ZodString;
|
|
1524
|
+
mode: z.ZodEnum<{
|
|
1525
|
+
replace: "replace";
|
|
1526
|
+
before: "before";
|
|
1527
|
+
after: "after";
|
|
1528
|
+
}>;
|
|
1529
|
+
target: z.ZodString;
|
|
1530
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1531
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1532
|
+
design2arkts: "design2arkts";
|
|
1533
|
+
d2a: "d2a";
|
|
1534
|
+
design2arkui: "design2arkui";
|
|
1535
|
+
}>>;
|
|
1536
|
+
}, z.core.$strip>;
|
|
1537
|
+
registry: z.ZodObject<{
|
|
1538
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1539
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1540
|
+
design2arkts: "design2arkts";
|
|
1541
|
+
d2a: "d2a";
|
|
1542
|
+
design2arkui: "design2arkui";
|
|
1543
|
+
}>>;
|
|
1544
|
+
}, z.core.$strip>;
|
|
1545
|
+
doctor: z.ZodObject<{
|
|
1546
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1547
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1548
|
+
design2arkts: "design2arkts";
|
|
1549
|
+
d2a: "d2a";
|
|
1550
|
+
design2arkui: "design2arkui";
|
|
1551
|
+
}>>;
|
|
1552
|
+
}, z.core.$strip>;
|
|
1553
|
+
configure: z.ZodObject<{
|
|
1554
|
+
source: z.ZodDefault<z.ZodEnum<{
|
|
1555
|
+
pixso: "pixso";
|
|
1556
|
+
figma: "figma";
|
|
1557
|
+
}>>;
|
|
1558
|
+
variant: z.ZodDefault<z.ZodEnum<{
|
|
1559
|
+
fast: "fast";
|
|
1560
|
+
full: "full";
|
|
1561
|
+
}>>;
|
|
1562
|
+
module: z.ZodOptional<z.ZodString>;
|
|
1563
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1564
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1565
|
+
design2arkts: "design2arkts";
|
|
1566
|
+
d2a: "d2a";
|
|
1567
|
+
design2arkui: "design2arkui";
|
|
1568
|
+
}>>;
|
|
1569
|
+
}, z.core.$strip>;
|
|
1570
|
+
mcp_configure_source: z.ZodObject<{
|
|
1571
|
+
file: z.ZodString;
|
|
1572
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1573
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1574
|
+
design2arkts: "design2arkts";
|
|
1575
|
+
d2a: "d2a";
|
|
1576
|
+
design2arkui: "design2arkui";
|
|
1577
|
+
}>>;
|
|
1578
|
+
}, z.core.$strip>;
|
|
1579
|
+
mcp_list_sources: z.ZodObject<{
|
|
1580
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1581
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1582
|
+
design2arkts: "design2arkts";
|
|
1583
|
+
d2a: "d2a";
|
|
1584
|
+
design2arkui: "design2arkui";
|
|
1585
|
+
}>>;
|
|
1586
|
+
}, z.core.$strip>;
|
|
1587
|
+
recognize: z.ZodObject<{
|
|
1588
|
+
requirements: z.ZodString;
|
|
1589
|
+
mcp: z.ZodOptional<z.ZodString>;
|
|
1590
|
+
modelConfig: z.ZodOptional<z.ZodString>;
|
|
1591
|
+
run: z.ZodUUID;
|
|
1592
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1593
|
+
pixso: "pixso";
|
|
1594
|
+
figma: "figma";
|
|
1595
|
+
}>>;
|
|
1596
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1597
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1598
|
+
design2arkts: "design2arkts";
|
|
1599
|
+
d2a: "d2a";
|
|
1600
|
+
design2arkui: "design2arkui";
|
|
1601
|
+
}>>;
|
|
1602
|
+
}, z.core.$strip>;
|
|
1603
|
+
score: z.ZodObject<{
|
|
1604
|
+
candidate: z.ZodString;
|
|
1605
|
+
round: z.ZodCoercedNumber<unknown>;
|
|
1606
|
+
python: z.ZodOptional<z.ZodString>;
|
|
1607
|
+
run: z.ZodUUID;
|
|
1608
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1609
|
+
pixso: "pixso";
|
|
1610
|
+
figma: "figma";
|
|
1611
|
+
}>>;
|
|
1612
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1613
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1614
|
+
design2arkts: "design2arkts";
|
|
1615
|
+
d2a: "d2a";
|
|
1616
|
+
design2arkui: "design2arkui";
|
|
1617
|
+
}>>;
|
|
1618
|
+
}, z.core.$strip>;
|
|
1619
|
+
verify: z.ZodObject<{
|
|
1620
|
+
pageName: z.ZodOptional<z.ZodString>;
|
|
1621
|
+
checks: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1622
|
+
arkts: "arkts";
|
|
1623
|
+
lint: "lint";
|
|
1624
|
+
build: "build";
|
|
1625
|
+
run: "run";
|
|
1626
|
+
visual: "visual";
|
|
1627
|
+
}>>>;
|
|
1628
|
+
device: z.ZodOptional<z.ZodString>;
|
|
1629
|
+
module: z.ZodOptional<z.ZodString>;
|
|
1630
|
+
run: z.ZodUUID;
|
|
1631
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1632
|
+
pixso: "pixso";
|
|
1633
|
+
figma: "figma";
|
|
1634
|
+
}>>;
|
|
1635
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1636
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1637
|
+
design2arkts: "design2arkts";
|
|
1638
|
+
d2a: "d2a";
|
|
1639
|
+
design2arkui: "design2arkui";
|
|
1640
|
+
}>>;
|
|
1641
|
+
}, z.core.$strip>;
|
|
1642
|
+
report: z.ZodObject<{
|
|
1643
|
+
run: z.ZodUUID;
|
|
1644
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1645
|
+
pixso: "pixso";
|
|
1646
|
+
figma: "figma";
|
|
1647
|
+
}>>;
|
|
1648
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1649
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1650
|
+
design2arkts: "design2arkts";
|
|
1651
|
+
d2a: "d2a";
|
|
1652
|
+
design2arkui: "design2arkui";
|
|
1653
|
+
}>>;
|
|
1654
|
+
}, z.core.$strip>;
|
|
1655
|
+
pipeline: z.ZodObject<{
|
|
1656
|
+
pageName: z.ZodString;
|
|
1657
|
+
module: z.ZodOptional<z.ZodString>;
|
|
1658
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1659
|
+
imageIds: z.ZodOptional<z.ZodString>;
|
|
1660
|
+
mapping: z.ZodOptional<z.ZodString>;
|
|
1661
|
+
source: z.ZodEnum<{
|
|
1662
|
+
pixso: "pixso";
|
|
1663
|
+
figma: "figma";
|
|
1664
|
+
}>;
|
|
1665
|
+
run: z.ZodOptional<z.ZodUUID>;
|
|
1666
|
+
input: z.ZodOptional<z.ZodString>;
|
|
1667
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
1668
|
+
mcp: z.ZodOptional<z.ZodString>;
|
|
1669
|
+
screenshot: z.ZodOptional<z.ZodString>;
|
|
1670
|
+
screenshotScale: z.ZodOptional<z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>>;
|
|
1671
|
+
componentScreenshot: z.ZodOptional<z.ZodString>;
|
|
1672
|
+
assets: z.ZodOptional<z.ZodString>;
|
|
1673
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
1674
|
+
fast: "fast";
|
|
1675
|
+
full: "full";
|
|
1676
|
+
}>>;
|
|
1677
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1678
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1679
|
+
design2arkts: "design2arkts";
|
|
1680
|
+
d2a: "d2a";
|
|
1681
|
+
design2arkui: "design2arkui";
|
|
1682
|
+
}>>;
|
|
1683
|
+
}, z.core.$strip>;
|
|
1684
|
+
pipeline_apply: z.ZodObject<{
|
|
1685
|
+
plan: z.ZodString;
|
|
1686
|
+
pageName: z.ZodOptional<z.ZodString>;
|
|
1687
|
+
checks: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1688
|
+
arkts: "arkts";
|
|
1689
|
+
lint: "lint";
|
|
1690
|
+
build: "build";
|
|
1691
|
+
run: "run";
|
|
1692
|
+
visual: "visual";
|
|
1693
|
+
}>>>;
|
|
1694
|
+
device: z.ZodOptional<z.ZodString>;
|
|
1695
|
+
module: z.ZodOptional<z.ZodString>;
|
|
1696
|
+
run: z.ZodUUID;
|
|
1697
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1698
|
+
pixso: "pixso";
|
|
1699
|
+
figma: "figma";
|
|
1700
|
+
}>>;
|
|
1701
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1702
|
+
directory: z.ZodOptional<z.ZodEnum<{
|
|
1703
|
+
design2arkts: "design2arkts";
|
|
1704
|
+
d2a: "d2a";
|
|
1705
|
+
design2arkui: "design2arkui";
|
|
1706
|
+
}>>;
|
|
1707
|
+
}, z.core.$strip>;
|
|
1708
|
+
};
|
|
1709
|
+
type D2AOperation = keyof typeof parameterSchemas;
|
|
1710
|
+
type D2AParameters<K extends D2AOperation> = z.output<(typeof parameterSchemas)[K]>;
|
|
1711
|
+
type D2ARequest<K extends D2AOperation = D2AOperation> = {
|
|
1712
|
+
[P in K]: {
|
|
1713
|
+
operation: P;
|
|
1714
|
+
parameters: D2AParameters<P>;
|
|
1715
|
+
};
|
|
1716
|
+
}[K];
|
|
1717
|
+
type D2ACommand<K extends D2AOperation = D2AOperation> = {
|
|
1718
|
+
operation: K;
|
|
1719
|
+
parameters?: Record<string, unknown>;
|
|
1720
|
+
};
|
|
1721
|
+
/** Converts entry parameters to one validated, host-independent request. */
|
|
1722
|
+
declare function mapRequest<K extends D2AOperation>(command: D2ACommand<K>, cwd?: string): D2ARequest<K>;
|
|
1723
|
+
|
|
1724
|
+
declare const handlers: {
|
|
1725
|
+
workflow_guide: () => {
|
|
1726
|
+
execution: "agent";
|
|
1727
|
+
mode: "workflow";
|
|
1728
|
+
skillRoot: string;
|
|
1729
|
+
instructionPath: string;
|
|
1730
|
+
integrationPath: string;
|
|
1731
|
+
controllerPath: string;
|
|
1732
|
+
nextAction: string;
|
|
1733
|
+
};
|
|
1734
|
+
capability_prepare: (p: {
|
|
1735
|
+
command: "scoring-workflow";
|
|
1736
|
+
route: string;
|
|
1737
|
+
maxRounds: number;
|
|
1738
|
+
scoreThreshold: number;
|
|
1739
|
+
run: string;
|
|
1740
|
+
pageName: string;
|
|
1741
|
+
device?: string | undefined;
|
|
1742
|
+
project?: string | undefined;
|
|
1743
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
1744
|
+
page?: undefined;
|
|
1745
|
+
reference?: undefined;
|
|
1746
|
+
input?: undefined;
|
|
1747
|
+
source?: "pixso" | "figma" | undefined;
|
|
1748
|
+
} | {
|
|
1749
|
+
command: "arkui2hds";
|
|
1750
|
+
run: string;
|
|
1751
|
+
pageName: string;
|
|
1752
|
+
project?: string | undefined;
|
|
1753
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
1754
|
+
page?: undefined;
|
|
1755
|
+
reference?: undefined;
|
|
1756
|
+
input?: undefined;
|
|
1757
|
+
source?: "pixso" | "figma" | undefined;
|
|
1758
|
+
} | {
|
|
1759
|
+
command: "react-to-arkui";
|
|
1760
|
+
requirements: string;
|
|
1761
|
+
run: string;
|
|
1762
|
+
pageName: string;
|
|
1763
|
+
module?: string | undefined;
|
|
1764
|
+
project?: string | undefined;
|
|
1765
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
1766
|
+
page?: undefined;
|
|
1767
|
+
reference?: undefined;
|
|
1768
|
+
input?: undefined;
|
|
1769
|
+
source?: "pixso" | "figma" | undefined;
|
|
1770
|
+
} | {
|
|
1771
|
+
command: "solution-design";
|
|
1772
|
+
requirements: string;
|
|
1773
|
+
run: string;
|
|
1774
|
+
pageName: string;
|
|
1775
|
+
module?: string | undefined;
|
|
1776
|
+
project?: string | undefined;
|
|
1777
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
1778
|
+
page?: undefined;
|
|
1779
|
+
reference?: undefined;
|
|
1780
|
+
input?: undefined;
|
|
1781
|
+
source?: "pixso" | "figma" | undefined;
|
|
1782
|
+
} | {
|
|
1783
|
+
command: "solution-design";
|
|
1784
|
+
requirements: string;
|
|
1785
|
+
input?: string | undefined;
|
|
1786
|
+
source?: "pixso" | "figma" | undefined;
|
|
1787
|
+
module?: string | undefined;
|
|
1788
|
+
reference?: string | undefined;
|
|
1789
|
+
project?: string | undefined;
|
|
1790
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
1791
|
+
run?: undefined;
|
|
1792
|
+
pageName?: string | undefined;
|
|
1793
|
+
} | {
|
|
1794
|
+
command: "scoring-workflow";
|
|
1795
|
+
page: string;
|
|
1796
|
+
reference: string;
|
|
1797
|
+
route: string;
|
|
1798
|
+
maxRounds: number;
|
|
1799
|
+
scoreThreshold: number;
|
|
1800
|
+
device?: string | undefined;
|
|
1801
|
+
project?: string | undefined;
|
|
1802
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
1803
|
+
run?: undefined;
|
|
1804
|
+
pageName?: string | undefined;
|
|
1805
|
+
} | {
|
|
1806
|
+
command: "arkui2hds";
|
|
1807
|
+
page: string;
|
|
1808
|
+
project?: string | undefined;
|
|
1809
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
1810
|
+
run?: undefined;
|
|
1811
|
+
pageName?: string | undefined;
|
|
1812
|
+
} | {
|
|
1813
|
+
command: "react-to-arkui";
|
|
1814
|
+
reference: string;
|
|
1815
|
+
input: string;
|
|
1816
|
+
requirements: string;
|
|
1817
|
+
module?: string | undefined;
|
|
1818
|
+
project?: string | undefined;
|
|
1819
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
1820
|
+
run?: undefined;
|
|
1821
|
+
pageName?: string | undefined;
|
|
1822
|
+
}, project: string) => Promise<({
|
|
1823
|
+
projectRoot: string;
|
|
1824
|
+
invocationId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1825
|
+
workDirectory: string;
|
|
1826
|
+
invocationPath: string;
|
|
1827
|
+
options: {
|
|
1828
|
+
pageName: string | undefined;
|
|
1829
|
+
route: string;
|
|
1830
|
+
device: string | undefined;
|
|
1831
|
+
maxRounds: number;
|
|
1832
|
+
scoreThreshold: number;
|
|
1833
|
+
module?: undefined;
|
|
1834
|
+
source?: undefined;
|
|
1835
|
+
} | {
|
|
1836
|
+
pageName: string | undefined;
|
|
1837
|
+
module: string | undefined;
|
|
1838
|
+
source: "pixso" | "figma" | undefined;
|
|
1839
|
+
route?: undefined;
|
|
1840
|
+
device?: undefined;
|
|
1841
|
+
maxRounds?: undefined;
|
|
1842
|
+
scoreThreshold?: undefined;
|
|
1843
|
+
};
|
|
1844
|
+
skillRoot: string;
|
|
1845
|
+
capability: "hmos-d2a-arkui-scoring-workflow" | "hmos-d2a-arkui2hds" | "hmos-d2a-react-to-arkui" | "hmos-d2a-solution-design";
|
|
1846
|
+
capabilityRoot: string;
|
|
1847
|
+
instructionPath: string;
|
|
1848
|
+
integrationPath: string;
|
|
1849
|
+
schemaVersion: 1;
|
|
1850
|
+
status: "ready-for-agent";
|
|
1851
|
+
execution: "agent";
|
|
1852
|
+
invocationMode: "standalone";
|
|
1853
|
+
inputMode: "direct";
|
|
1854
|
+
command: "scoring-workflow" | "arkui2hds" | "react-to-arkui" | "solution-design";
|
|
1855
|
+
} & {
|
|
1856
|
+
inputs: {
|
|
1857
|
+
[k: string]: {
|
|
1858
|
+
path: string;
|
|
1859
|
+
originalPath: string;
|
|
1860
|
+
sha256: string;
|
|
1861
|
+
};
|
|
1862
|
+
};
|
|
1863
|
+
targetPage: {
|
|
1864
|
+
writePolicy: {
|
|
1865
|
+
mode: "d2a-revision";
|
|
1866
|
+
runId: string;
|
|
1867
|
+
pageName: string;
|
|
1868
|
+
directory: ProjectDirectoryName;
|
|
1869
|
+
} | {
|
|
1870
|
+
mode: "reviewed-edit";
|
|
1871
|
+
runId?: undefined;
|
|
1872
|
+
pageName?: undefined;
|
|
1873
|
+
directory?: undefined;
|
|
1874
|
+
};
|
|
1875
|
+
pageName?: string | undefined;
|
|
1876
|
+
pageFile: string;
|
|
1877
|
+
sha256: string;
|
|
1878
|
+
imageIds?: string[] | undefined;
|
|
1879
|
+
} | undefined;
|
|
1880
|
+
}) | {
|
|
1881
|
+
invocationId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1882
|
+
invocationPath: string;
|
|
1883
|
+
projectRoot: string;
|
|
1884
|
+
runId: string;
|
|
1885
|
+
runDirectory: string;
|
|
1886
|
+
workDirectory: string;
|
|
1887
|
+
inputs: {
|
|
1888
|
+
design: {
|
|
1889
|
+
snapshot: DesignInputSnapshot & {
|
|
1890
|
+
path: string;
|
|
1891
|
+
};
|
|
1892
|
+
screenshots: (DesignReferenceScreenshot & {
|
|
1893
|
+
path: string;
|
|
1894
|
+
})[];
|
|
1895
|
+
assetHints: ({
|
|
1896
|
+
status: "referenced";
|
|
1897
|
+
reference: string;
|
|
1898
|
+
} | ({
|
|
1899
|
+
status: "local";
|
|
1900
|
+
reference: string;
|
|
1901
|
+
path: string;
|
|
1902
|
+
size: number;
|
|
1903
|
+
sha256: string;
|
|
1904
|
+
} & {
|
|
1905
|
+
path: string;
|
|
1906
|
+
}))[];
|
|
1907
|
+
schemaVersion: 1 | 2;
|
|
1908
|
+
runId: string;
|
|
1909
|
+
target?: {
|
|
1910
|
+
fileId?: string;
|
|
1911
|
+
nodeId: string;
|
|
1912
|
+
};
|
|
1913
|
+
warnings: Array<{
|
|
1914
|
+
code: string;
|
|
1915
|
+
message: string;
|
|
1916
|
+
}>;
|
|
1917
|
+
};
|
|
1918
|
+
page: {
|
|
1919
|
+
pageName: string;
|
|
1920
|
+
pageFile: string;
|
|
1921
|
+
sha256: string;
|
|
1922
|
+
imageIds: string[];
|
|
1923
|
+
} | undefined;
|
|
1924
|
+
requirements: {
|
|
1925
|
+
path: string;
|
|
1926
|
+
sha256: string;
|
|
1927
|
+
} | undefined;
|
|
1928
|
+
};
|
|
1929
|
+
options: {
|
|
1930
|
+
directory: string;
|
|
1931
|
+
pageName: string;
|
|
1932
|
+
} | {
|
|
1933
|
+
directory: string;
|
|
1934
|
+
route: string;
|
|
1935
|
+
device: string | undefined;
|
|
1936
|
+
maxRounds: number;
|
|
1937
|
+
scoreThreshold: number;
|
|
1938
|
+
pageName: string;
|
|
1939
|
+
} | {
|
|
1940
|
+
directory: string;
|
|
1941
|
+
module: string | undefined;
|
|
1942
|
+
pageName: string;
|
|
1943
|
+
};
|
|
1944
|
+
capability: "hmos-d2a-arkui-scoring-workflow" | "hmos-d2a-arkui2hds" | "hmos-d2a-react-to-arkui" | "hmos-d2a-solution-design";
|
|
1945
|
+
skillRoot: string;
|
|
1946
|
+
capabilityRoot: string;
|
|
1947
|
+
instructionPath: string;
|
|
1948
|
+
integrationPath: string;
|
|
1949
|
+
schemaVersion: 1;
|
|
1950
|
+
status: "ready-for-agent";
|
|
1951
|
+
execution: "agent";
|
|
1952
|
+
invocationMode: "standalone";
|
|
1953
|
+
inputMode: "run";
|
|
1954
|
+
command: "scoring-workflow" | "arkui2hds" | "react-to-arkui" | "solution-design";
|
|
1955
|
+
}>;
|
|
1956
|
+
resolve: (p: {
|
|
1957
|
+
source: "pixso" | "figma";
|
|
1958
|
+
run?: string | undefined;
|
|
1959
|
+
input?: string | undefined;
|
|
1960
|
+
url?: string | undefined;
|
|
1961
|
+
mcp?: string | undefined;
|
|
1962
|
+
screenshot?: string | undefined;
|
|
1963
|
+
screenshotScale?: 1 | 2 | undefined;
|
|
1964
|
+
componentScreenshot?: string | undefined;
|
|
1965
|
+
assets?: string | undefined;
|
|
1966
|
+
variant?: "fast" | "full" | undefined;
|
|
1967
|
+
project?: string | undefined;
|
|
1968
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
1969
|
+
}, project: string) => DesignResolveResult | Promise<DesignResolveResult>;
|
|
1970
|
+
run_create: (p: {
|
|
1971
|
+
source?: "pixso" | "figma" | undefined;
|
|
1972
|
+
variant?: "fast" | "full" | undefined;
|
|
1973
|
+
project?: string | undefined;
|
|
1974
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
1975
|
+
}, project: string) => {
|
|
1976
|
+
metadata: {
|
|
1977
|
+
schemaVersion: 1;
|
|
1978
|
+
runId: string;
|
|
1979
|
+
projectRoot: string;
|
|
1980
|
+
designSource: "pixso" | "figma";
|
|
1981
|
+
variant: "fast" | "full";
|
|
1982
|
+
createdAt: string;
|
|
1983
|
+
};
|
|
1984
|
+
runId: string;
|
|
1985
|
+
runDirectory: string;
|
|
1986
|
+
};
|
|
1987
|
+
export_arkts_page: (p: {
|
|
1988
|
+
pageName: string;
|
|
1989
|
+
run: string;
|
|
1990
|
+
revise?: boolean | undefined;
|
|
1991
|
+
input?: string | undefined;
|
|
1992
|
+
imageIds?: string | undefined;
|
|
1993
|
+
source?: "pixso" | "figma" | undefined;
|
|
1994
|
+
project?: string | undefined;
|
|
1995
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
1996
|
+
}, project: string) => {
|
|
1997
|
+
pageRevision: string;
|
|
1998
|
+
manifestPath: string;
|
|
1999
|
+
manifest: {
|
|
2000
|
+
schemaVersion: 1;
|
|
2001
|
+
id: string;
|
|
2002
|
+
runId: string;
|
|
2003
|
+
pageName: string;
|
|
2004
|
+
pageFile: string;
|
|
2005
|
+
sourceSha256: string;
|
|
2006
|
+
exportSha256: string;
|
|
2007
|
+
imagesSha256: string;
|
|
2008
|
+
baseRecordSha256: string;
|
|
2009
|
+
producer: "agent";
|
|
2010
|
+
page: {
|
|
2011
|
+
path: string;
|
|
2012
|
+
sha256: string;
|
|
2013
|
+
size: number;
|
|
2014
|
+
};
|
|
2015
|
+
};
|
|
2016
|
+
} | {
|
|
2017
|
+
directory: string;
|
|
2018
|
+
producer: "agent" | "engine";
|
|
2019
|
+
schemaVersion: 1;
|
|
2020
|
+
runId: string;
|
|
2021
|
+
sourceSha256: string;
|
|
2022
|
+
pageName: string;
|
|
2023
|
+
page: {
|
|
2024
|
+
path: string;
|
|
2025
|
+
sha256: string;
|
|
2026
|
+
};
|
|
2027
|
+
images: {
|
|
2028
|
+
path: string;
|
|
2029
|
+
sha256: string;
|
|
2030
|
+
};
|
|
2031
|
+
engine?: {
|
|
2032
|
+
name: string;
|
|
2033
|
+
version: string;
|
|
2034
|
+
commit?: string | undefined;
|
|
2035
|
+
} | undefined;
|
|
2036
|
+
raw?: {
|
|
2037
|
+
path: string;
|
|
2038
|
+
sha256: string;
|
|
2039
|
+
} | undefined;
|
|
2040
|
+
result?: {
|
|
2041
|
+
path: string;
|
|
2042
|
+
sha256: string;
|
|
2043
|
+
} | undefined;
|
|
2044
|
+
} | Promise<{
|
|
2045
|
+
directory: string;
|
|
2046
|
+
producer: "agent" | "engine";
|
|
2047
|
+
schemaVersion: 1;
|
|
2048
|
+
runId: string;
|
|
2049
|
+
sourceSha256: string;
|
|
2050
|
+
pageName: string;
|
|
2051
|
+
page: {
|
|
2052
|
+
path: string;
|
|
2053
|
+
sha256: string;
|
|
2054
|
+
};
|
|
2055
|
+
images: {
|
|
2056
|
+
path: string;
|
|
2057
|
+
sha256: string;
|
|
2058
|
+
};
|
|
2059
|
+
engine?: {
|
|
2060
|
+
name: string;
|
|
2061
|
+
version: string;
|
|
2062
|
+
commit?: string | undefined;
|
|
2063
|
+
} | undefined;
|
|
2064
|
+
raw?: {
|
|
2065
|
+
path: string;
|
|
2066
|
+
sha256: string;
|
|
2067
|
+
} | undefined;
|
|
2068
|
+
result?: {
|
|
2069
|
+
path: string;
|
|
2070
|
+
sha256: string;
|
|
2071
|
+
} | undefined;
|
|
2072
|
+
}>;
|
|
2073
|
+
resources_prepare: (p: {
|
|
2074
|
+
pageName: string;
|
|
2075
|
+
run: string;
|
|
2076
|
+
assets?: string | undefined;
|
|
2077
|
+
mapping?: string | undefined;
|
|
2078
|
+
fetch?: boolean | undefined;
|
|
2079
|
+
url?: string | undefined;
|
|
2080
|
+
mcp?: string | undefined;
|
|
2081
|
+
revise?: boolean | undefined;
|
|
2082
|
+
source?: "pixso" | "figma" | undefined;
|
|
2083
|
+
project?: string | undefined;
|
|
2084
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
2085
|
+
}, project: string) => Promise<{
|
|
2086
|
+
resourceRevision?: string | undefined;
|
|
2087
|
+
manifestPath: string;
|
|
2088
|
+
manifest: {
|
|
2089
|
+
schemaVersion: 1;
|
|
2090
|
+
runId: string;
|
|
2091
|
+
pageName: string;
|
|
2092
|
+
sourceSha256: string;
|
|
2093
|
+
pageSha256: string;
|
|
2094
|
+
assets: {
|
|
2095
|
+
imageId: string;
|
|
2096
|
+
name: string;
|
|
2097
|
+
path: string;
|
|
2098
|
+
sha256: string;
|
|
2099
|
+
size: number;
|
|
2100
|
+
suppliedBy: "snapshot" | "local-directory";
|
|
2101
|
+
}[];
|
|
2102
|
+
revision?: {
|
|
2103
|
+
id: string;
|
|
2104
|
+
baseSha256: string;
|
|
2105
|
+
} | undefined;
|
|
2106
|
+
};
|
|
2107
|
+
}>;
|
|
2108
|
+
inspect: (p: {
|
|
2109
|
+
section: "input" | "all" | "layout" | "assets" | "risks" | "fallbacks";
|
|
2110
|
+
run: string;
|
|
2111
|
+
source?: "pixso" | "figma" | undefined;
|
|
2112
|
+
project?: string | undefined;
|
|
2113
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
2114
|
+
}, project: string) => Promise<DesignResolveResult | {
|
|
2115
|
+
schemaVersion: number;
|
|
2116
|
+
runId: string;
|
|
2117
|
+
section: string;
|
|
2118
|
+
report: DesignResolveResult | {
|
|
2119
|
+
code: string;
|
|
2120
|
+
message: string;
|
|
2121
|
+
}[] | {
|
|
2122
|
+
status: "bounds-only";
|
|
2123
|
+
nodeCount: number;
|
|
2124
|
+
types: Record<string, number>;
|
|
2125
|
+
roots: unknown[];
|
|
2126
|
+
zeroSizeNodes: string[];
|
|
2127
|
+
visualComparisonPerformed: false;
|
|
2128
|
+
} | {
|
|
2129
|
+
screenshots: DesignReferenceScreenshot[];
|
|
2130
|
+
hints: DesignAssetHint[];
|
|
2131
|
+
localFilesVerified: boolean;
|
|
2132
|
+
coverageVerified: boolean;
|
|
2133
|
+
} | {
|
|
2134
|
+
status: string;
|
|
2135
|
+
reason: string;
|
|
2136
|
+
} | {
|
|
2137
|
+
evaluated: boolean;
|
|
2138
|
+
items: never[];
|
|
2139
|
+
reason: string;
|
|
2140
|
+
} | {
|
|
2141
|
+
input: DesignResolveResult;
|
|
2142
|
+
assets: {
|
|
2143
|
+
screenshots: DesignReferenceScreenshot[];
|
|
2144
|
+
hints: DesignAssetHint[];
|
|
2145
|
+
localFilesVerified: boolean;
|
|
2146
|
+
coverageVerified: boolean;
|
|
2147
|
+
} | undefined;
|
|
2148
|
+
layout: {
|
|
2149
|
+
status: "bounds-only";
|
|
2150
|
+
nodeCount: number;
|
|
2151
|
+
types: Record<string, number>;
|
|
2152
|
+
roots: unknown[];
|
|
2153
|
+
zeroSizeNodes: string[];
|
|
2154
|
+
visualComparisonPerformed: false;
|
|
2155
|
+
} | {
|
|
2156
|
+
status: string;
|
|
2157
|
+
reason: string;
|
|
2158
|
+
} | undefined;
|
|
2159
|
+
risks: {
|
|
2160
|
+
code: string;
|
|
2161
|
+
message: string;
|
|
2162
|
+
}[];
|
|
2163
|
+
fallbacks: {
|
|
2164
|
+
evaluated: boolean;
|
|
2165
|
+
items: never[];
|
|
2166
|
+
reason: string;
|
|
2167
|
+
};
|
|
2168
|
+
} | undefined;
|
|
2169
|
+
}>;
|
|
2170
|
+
preview: (p: {
|
|
2171
|
+
mode: "device";
|
|
2172
|
+
run: string;
|
|
2173
|
+
device?: string | undefined;
|
|
2174
|
+
source?: "pixso" | "figma" | undefined;
|
|
2175
|
+
project?: string | undefined;
|
|
2176
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
2177
|
+
}, project: string) => Promise<{
|
|
2178
|
+
runId: string;
|
|
2179
|
+
device: string;
|
|
2180
|
+
path: string;
|
|
2181
|
+
warning: string;
|
|
2182
|
+
}>;
|
|
2183
|
+
import_page_plan: (p: {
|
|
2184
|
+
run: string;
|
|
2185
|
+
module?: string | undefined;
|
|
2186
|
+
pageName?: string | undefined;
|
|
2187
|
+
resourceRevision?: string | undefined;
|
|
2188
|
+
pageRevision?: string | undefined;
|
|
2189
|
+
source?: "pixso" | "figma" | undefined;
|
|
2190
|
+
project?: string | undefined;
|
|
2191
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
2192
|
+
}, project: string) => {
|
|
2193
|
+
planPath: string;
|
|
2194
|
+
diffPath: string;
|
|
2195
|
+
plan: {
|
|
2196
|
+
schemaVersion: 1;
|
|
2197
|
+
planId: string;
|
|
2198
|
+
projectRoot: string;
|
|
2199
|
+
runId: string;
|
|
2200
|
+
module: string;
|
|
2201
|
+
modulePath: string;
|
|
2202
|
+
pageName: string;
|
|
2203
|
+
sourceSha256: string;
|
|
2204
|
+
files: {
|
|
2205
|
+
source: string;
|
|
2206
|
+
target: string;
|
|
2207
|
+
before: string | null;
|
|
2208
|
+
after: string;
|
|
2209
|
+
diff: string;
|
|
2210
|
+
}[];
|
|
2211
|
+
pageFile?: string | undefined;
|
|
2212
|
+
pageRevision?: string | undefined;
|
|
2213
|
+
resourceRevision?: string | undefined;
|
|
2214
|
+
};
|
|
2215
|
+
};
|
|
2216
|
+
import_page_apply: (p: {
|
|
2217
|
+
plan: string;
|
|
2218
|
+
run: string;
|
|
2219
|
+
source?: "pixso" | "figma" | undefined;
|
|
2220
|
+
project?: string | undefined;
|
|
2221
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
2222
|
+
}, project: string) => {
|
|
2223
|
+
applied: boolean;
|
|
2224
|
+
runId: string;
|
|
2225
|
+
planId: string;
|
|
2226
|
+
files: string[];
|
|
2227
|
+
};
|
|
2228
|
+
register: (p: {
|
|
2229
|
+
skill: string;
|
|
2230
|
+
mode: "replace" | "before" | "after";
|
|
2231
|
+
target: string;
|
|
2232
|
+
project?: string | undefined;
|
|
2233
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
2234
|
+
}, project: string) => {
|
|
2235
|
+
id: `${string}-${string}-${string}-${string}-${string}`;
|
|
2236
|
+
name: string;
|
|
2237
|
+
mode: "replace" | "before" | "after";
|
|
2238
|
+
target: string;
|
|
2239
|
+
path: string;
|
|
2240
|
+
files: Record<string, string>;
|
|
2241
|
+
};
|
|
2242
|
+
registry: (p: {
|
|
2243
|
+
project?: string | undefined;
|
|
2244
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
2245
|
+
}, project: string) => {
|
|
2246
|
+
directory: string;
|
|
2247
|
+
registrations: {
|
|
2248
|
+
id: string;
|
|
2249
|
+
name: string;
|
|
2250
|
+
mode: "replace" | "before" | "after";
|
|
2251
|
+
target: string;
|
|
2252
|
+
path: string;
|
|
2253
|
+
files: Record<string, string>;
|
|
2254
|
+
}[];
|
|
2255
|
+
};
|
|
2256
|
+
doctor: (p: {
|
|
2257
|
+
project?: string | undefined;
|
|
2258
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
2259
|
+
}, project: string) => {
|
|
2260
|
+
ok: boolean;
|
|
2261
|
+
checks: {
|
|
2262
|
+
name: string;
|
|
2263
|
+
ok: boolean;
|
|
2264
|
+
details: unknown;
|
|
2265
|
+
}[];
|
|
2266
|
+
capabilities: {
|
|
2267
|
+
pixsoArktsPage: boolean;
|
|
2268
|
+
figmaArktsPage: boolean;
|
|
2269
|
+
arkuiIr: boolean;
|
|
2270
|
+
htmlPreview: boolean;
|
|
2271
|
+
deviceCapture: boolean;
|
|
2272
|
+
};
|
|
2273
|
+
};
|
|
2274
|
+
configure: (p: {
|
|
2275
|
+
source: "pixso" | "figma";
|
|
2276
|
+
variant: "fast" | "full";
|
|
2277
|
+
module?: string | undefined;
|
|
2278
|
+
project?: string | undefined;
|
|
2279
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
2280
|
+
}, project: string) => {
|
|
2281
|
+
path: string;
|
|
2282
|
+
};
|
|
2283
|
+
mcp_configure_source: (p: {
|
|
2284
|
+
file: string;
|
|
2285
|
+
project?: string | undefined;
|
|
2286
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
2287
|
+
}, project: string) => {
|
|
2288
|
+
path: string;
|
|
2289
|
+
services: string[];
|
|
2290
|
+
};
|
|
2291
|
+
mcp_list_sources: (p: {
|
|
2292
|
+
project?: string | undefined;
|
|
2293
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
2294
|
+
}, project: string) => {
|
|
2295
|
+
componentRecognition?: string | undefined;
|
|
2296
|
+
name: string;
|
|
2297
|
+
source: "pixso" | "figma";
|
|
2298
|
+
transport: "stdio" | "http";
|
|
2299
|
+
tool: string | undefined;
|
|
2300
|
+
}[];
|
|
2301
|
+
recognize: (p: {
|
|
2302
|
+
requirements: string;
|
|
2303
|
+
run: string;
|
|
2304
|
+
mcp?: string | undefined;
|
|
2305
|
+
modelConfig?: string | undefined;
|
|
2306
|
+
source?: "pixso" | "figma" | undefined;
|
|
2307
|
+
project?: string | undefined;
|
|
2308
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
2309
|
+
}, project: string) => Promise<{
|
|
2310
|
+
ok: boolean;
|
|
2311
|
+
runId: string;
|
|
2312
|
+
outputPath: string;
|
|
2313
|
+
receiptPath: string;
|
|
2314
|
+
status: "ok" | "degraded";
|
|
2315
|
+
sha256: string;
|
|
2316
|
+
reused: boolean;
|
|
2317
|
+
}>;
|
|
2318
|
+
score: (p: {
|
|
2319
|
+
candidate: string;
|
|
2320
|
+
round: number;
|
|
2321
|
+
run: string;
|
|
2322
|
+
python?: string | undefined;
|
|
2323
|
+
source?: "pixso" | "figma" | undefined;
|
|
2324
|
+
project?: string | undefined;
|
|
2325
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
2326
|
+
}, project: string) => Promise<{
|
|
2327
|
+
ok: boolean;
|
|
2328
|
+
round: number;
|
|
2329
|
+
score: number;
|
|
2330
|
+
scorePath: string;
|
|
2331
|
+
receiptPath: string;
|
|
2332
|
+
reportDirectory: string;
|
|
2333
|
+
metricsPaths: string[];
|
|
2334
|
+
}>;
|
|
2335
|
+
verify: (p: {
|
|
2336
|
+
checks: ("arkts" | "lint" | "build" | "run" | "visual")[];
|
|
2337
|
+
run: string;
|
|
2338
|
+
pageName?: string | undefined;
|
|
2339
|
+
device?: string | undefined;
|
|
2340
|
+
module?: string | undefined;
|
|
2341
|
+
source?: "pixso" | "figma" | undefined;
|
|
2342
|
+
project?: string | undefined;
|
|
2343
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
2344
|
+
}, project: string) => Promise<{
|
|
2345
|
+
path: string;
|
|
2346
|
+
schemaVersion: 1;
|
|
2347
|
+
runId: string;
|
|
2348
|
+
sourceSha256: string;
|
|
2349
|
+
ok: boolean;
|
|
2350
|
+
status: string;
|
|
2351
|
+
checks: VerificationCheck[];
|
|
2352
|
+
completedAt: string;
|
|
2353
|
+
}>;
|
|
2354
|
+
report: (p: {
|
|
2355
|
+
run: string;
|
|
2356
|
+
source?: "pixso" | "figma" | undefined;
|
|
2357
|
+
project?: string | undefined;
|
|
2358
|
+
directory?: "design2arkts" | "d2a" | "design2arkui" | undefined;
|
|
2359
|
+
}, project: string) => Promise<{
|
|
2360
|
+
path: string;
|
|
2361
|
+
ok: boolean;
|
|
2362
|
+
status: string;
|
|
2363
|
+
schemaVersion: number;
|
|
2364
|
+
runId: string;
|
|
2365
|
+
source: "pixso" | "figma";
|
|
2366
|
+
sourceSha256: string;
|
|
2367
|
+
verification: {
|
|
2368
|
+
path: string;
|
|
2369
|
+
schemaVersion: 1;
|
|
2370
|
+
runId: string;
|
|
2371
|
+
sourceSha256: string;
|
|
2372
|
+
ok: boolean;
|
|
2373
|
+
status: string;
|
|
2374
|
+
checks: VerificationCheck[];
|
|
2375
|
+
completedAt: string;
|
|
2376
|
+
};
|
|
2377
|
+
inspection: DesignResolveResult | {
|
|
2378
|
+
schemaVersion: number;
|
|
2379
|
+
runId: string;
|
|
2380
|
+
section: string;
|
|
2381
|
+
report: DesignResolveResult | {
|
|
2382
|
+
code: string;
|
|
2383
|
+
message: string;
|
|
2384
|
+
}[] | {
|
|
2385
|
+
status: "bounds-only";
|
|
2386
|
+
nodeCount: number;
|
|
2387
|
+
types: Record<string, number>;
|
|
2388
|
+
roots: unknown[];
|
|
2389
|
+
zeroSizeNodes: string[];
|
|
2390
|
+
visualComparisonPerformed: false;
|
|
2391
|
+
} | {
|
|
2392
|
+
screenshots: DesignReferenceScreenshot[];
|
|
2393
|
+
hints: DesignAssetHint[];
|
|
2394
|
+
localFilesVerified: boolean;
|
|
2395
|
+
coverageVerified: boolean;
|
|
2396
|
+
} | {
|
|
2397
|
+
status: string;
|
|
2398
|
+
reason: string;
|
|
2399
|
+
} | {
|
|
2400
|
+
evaluated: boolean;
|
|
2401
|
+
items: never[];
|
|
2402
|
+
reason: string;
|
|
2403
|
+
} | {
|
|
2404
|
+
input: DesignResolveResult;
|
|
2405
|
+
assets: {
|
|
2406
|
+
screenshots: DesignReferenceScreenshot[];
|
|
2407
|
+
hints: DesignAssetHint[];
|
|
2408
|
+
localFilesVerified: boolean;
|
|
2409
|
+
coverageVerified: boolean;
|
|
2410
|
+
} | undefined;
|
|
2411
|
+
layout: {
|
|
2412
|
+
status: "bounds-only";
|
|
2413
|
+
nodeCount: number;
|
|
2414
|
+
types: Record<string, number>;
|
|
2415
|
+
roots: unknown[];
|
|
2416
|
+
zeroSizeNodes: string[];
|
|
2417
|
+
visualComparisonPerformed: false;
|
|
2418
|
+
} | {
|
|
2419
|
+
status: string;
|
|
2420
|
+
reason: string;
|
|
2421
|
+
} | undefined;
|
|
2422
|
+
risks: {
|
|
2423
|
+
code: string;
|
|
2424
|
+
message: string;
|
|
2425
|
+
}[];
|
|
2426
|
+
fallbacks: {
|
|
2427
|
+
evaluated: boolean;
|
|
2428
|
+
items: never[];
|
|
2429
|
+
reason: string;
|
|
2430
|
+
};
|
|
2431
|
+
} | undefined;
|
|
2432
|
+
} | {
|
|
2433
|
+
status: "unavailable";
|
|
2434
|
+
reason: string;
|
|
2435
|
+
};
|
|
2436
|
+
limitations: string[];
|
|
2437
|
+
}>;
|
|
2438
|
+
};
|
|
2439
|
+
type OperationResults = {
|
|
2440
|
+
[K in keyof typeof handlers]: Awaited<ReturnType<(typeof handlers)[K]>>;
|
|
2441
|
+
};
|
|
2442
|
+
|
|
2443
|
+
/** Executes technical stages; never reads or advances Skill workflow-state.json. */
|
|
2444
|
+
declare class D2AOrchestrator {
|
|
2445
|
+
private readonly project;
|
|
2446
|
+
constructor(project: string);
|
|
2447
|
+
prepare(p: D2AParameters<'pipeline'>): Promise<{
|
|
2448
|
+
ok: boolean;
|
|
2449
|
+
state: "failed" | "awaiting_apply";
|
|
2450
|
+
runId: string;
|
|
2451
|
+
runDirectory: string;
|
|
2452
|
+
page: {
|
|
2453
|
+
pageRevision: string;
|
|
2454
|
+
manifestPath: string;
|
|
2455
|
+
manifest: {
|
|
2456
|
+
schemaVersion: 1;
|
|
2457
|
+
id: string;
|
|
2458
|
+
runId: string;
|
|
2459
|
+
pageName: string;
|
|
2460
|
+
pageFile: string;
|
|
2461
|
+
sourceSha256: string;
|
|
2462
|
+
exportSha256: string;
|
|
2463
|
+
imagesSha256: string;
|
|
2464
|
+
baseRecordSha256: string;
|
|
2465
|
+
producer: "agent";
|
|
2466
|
+
page: {
|
|
2467
|
+
path: string;
|
|
2468
|
+
sha256: string;
|
|
2469
|
+
size: number;
|
|
2470
|
+
};
|
|
2471
|
+
};
|
|
2472
|
+
} | {
|
|
2473
|
+
directory: string;
|
|
2474
|
+
producer: "agent" | "engine";
|
|
2475
|
+
schemaVersion: 1;
|
|
2476
|
+
runId: string;
|
|
2477
|
+
sourceSha256: string;
|
|
2478
|
+
pageName: string;
|
|
2479
|
+
page: {
|
|
2480
|
+
path: string;
|
|
2481
|
+
sha256: string;
|
|
2482
|
+
};
|
|
2483
|
+
images: {
|
|
2484
|
+
path: string;
|
|
2485
|
+
sha256: string;
|
|
2486
|
+
};
|
|
2487
|
+
engine?: {
|
|
2488
|
+
name: string;
|
|
2489
|
+
version: string;
|
|
2490
|
+
commit?: string | undefined;
|
|
2491
|
+
} | undefined;
|
|
2492
|
+
raw?: {
|
|
2493
|
+
path: string;
|
|
2494
|
+
sha256: string;
|
|
2495
|
+
} | undefined;
|
|
2496
|
+
result?: {
|
|
2497
|
+
path: string;
|
|
2498
|
+
sha256: string;
|
|
2499
|
+
} | undefined;
|
|
2500
|
+
};
|
|
2501
|
+
plan: {
|
|
2502
|
+
planPath: string;
|
|
2503
|
+
diffPath: string;
|
|
2504
|
+
plan: {
|
|
2505
|
+
schemaVersion: 1;
|
|
2506
|
+
planId: string;
|
|
2507
|
+
projectRoot: string;
|
|
2508
|
+
runId: string;
|
|
2509
|
+
module: string;
|
|
2510
|
+
modulePath: string;
|
|
2511
|
+
pageName: string;
|
|
2512
|
+
sourceSha256: string;
|
|
2513
|
+
files: {
|
|
2514
|
+
source: string;
|
|
2515
|
+
target: string;
|
|
2516
|
+
before: string | null;
|
|
2517
|
+
after: string;
|
|
2518
|
+
diff: string;
|
|
2519
|
+
}[];
|
|
2520
|
+
pageFile?: string | undefined;
|
|
2521
|
+
pageRevision?: string | undefined;
|
|
2522
|
+
resourceRevision?: string | undefined;
|
|
2523
|
+
};
|
|
2524
|
+
};
|
|
2525
|
+
verification: {
|
|
2526
|
+
path: string;
|
|
2527
|
+
schemaVersion: 1;
|
|
2528
|
+
runId: string;
|
|
2529
|
+
sourceSha256: string;
|
|
2530
|
+
ok: boolean;
|
|
2531
|
+
status: string;
|
|
2532
|
+
checks: VerificationCheck[];
|
|
2533
|
+
completedAt: string;
|
|
2534
|
+
};
|
|
2535
|
+
report: {
|
|
2536
|
+
path: string;
|
|
2537
|
+
ok: boolean;
|
|
2538
|
+
status: string;
|
|
2539
|
+
schemaVersion: number;
|
|
2540
|
+
runId: string;
|
|
2541
|
+
source: "pixso" | "figma";
|
|
2542
|
+
sourceSha256: string;
|
|
2543
|
+
verification: {
|
|
2544
|
+
path: string;
|
|
2545
|
+
schemaVersion: 1;
|
|
2546
|
+
runId: string;
|
|
2547
|
+
sourceSha256: string;
|
|
2548
|
+
ok: boolean;
|
|
2549
|
+
status: string;
|
|
2550
|
+
checks: VerificationCheck[];
|
|
2551
|
+
completedAt: string;
|
|
2552
|
+
};
|
|
2553
|
+
inspection: DesignResolveResult | {
|
|
2554
|
+
schemaVersion: number;
|
|
2555
|
+
runId: string;
|
|
2556
|
+
section: string;
|
|
2557
|
+
report: DesignResolveResult | {
|
|
2558
|
+
code: string;
|
|
2559
|
+
message: string;
|
|
2560
|
+
}[] | {
|
|
2561
|
+
status: "bounds-only";
|
|
2562
|
+
nodeCount: number;
|
|
2563
|
+
types: Record<string, number>;
|
|
2564
|
+
roots: unknown[];
|
|
2565
|
+
zeroSizeNodes: string[];
|
|
2566
|
+
visualComparisonPerformed: false;
|
|
2567
|
+
} | {
|
|
2568
|
+
screenshots: DesignReferenceScreenshot[];
|
|
2569
|
+
hints: DesignAssetHint[];
|
|
2570
|
+
localFilesVerified: boolean;
|
|
2571
|
+
coverageVerified: boolean;
|
|
2572
|
+
} | {
|
|
2573
|
+
status: string;
|
|
2574
|
+
reason: string;
|
|
2575
|
+
} | {
|
|
2576
|
+
evaluated: boolean;
|
|
2577
|
+
items: never[];
|
|
2578
|
+
reason: string;
|
|
2579
|
+
} | {
|
|
2580
|
+
input: DesignResolveResult;
|
|
2581
|
+
assets: {
|
|
2582
|
+
screenshots: DesignReferenceScreenshot[];
|
|
2583
|
+
hints: DesignAssetHint[];
|
|
2584
|
+
localFilesVerified: boolean;
|
|
2585
|
+
coverageVerified: boolean;
|
|
2586
|
+
} | undefined;
|
|
2587
|
+
layout: {
|
|
2588
|
+
status: "bounds-only";
|
|
2589
|
+
nodeCount: number;
|
|
2590
|
+
types: Record<string, number>;
|
|
2591
|
+
roots: unknown[];
|
|
2592
|
+
zeroSizeNodes: string[];
|
|
2593
|
+
visualComparisonPerformed: false;
|
|
2594
|
+
} | {
|
|
2595
|
+
status: string;
|
|
2596
|
+
reason: string;
|
|
2597
|
+
} | undefined;
|
|
2598
|
+
risks: {
|
|
2599
|
+
code: string;
|
|
2600
|
+
message: string;
|
|
2601
|
+
}[];
|
|
2602
|
+
fallbacks: {
|
|
2603
|
+
evaluated: boolean;
|
|
2604
|
+
items: never[];
|
|
2605
|
+
reason: string;
|
|
2606
|
+
};
|
|
2607
|
+
} | undefined;
|
|
2608
|
+
} | {
|
|
2609
|
+
status: "unavailable";
|
|
2610
|
+
reason: string;
|
|
2611
|
+
};
|
|
2612
|
+
limitations: string[];
|
|
2613
|
+
};
|
|
2614
|
+
}>;
|
|
2615
|
+
private prepareRun;
|
|
2616
|
+
private preparePageArtifacts;
|
|
2617
|
+
apply(p: D2AParameters<'pipeline_apply'>): Promise<{
|
|
2618
|
+
ok: boolean;
|
|
2619
|
+
applied: {
|
|
2620
|
+
applied: boolean;
|
|
2621
|
+
runId: string;
|
|
2622
|
+
planId: string;
|
|
2623
|
+
files: string[];
|
|
2624
|
+
};
|
|
2625
|
+
verification: {
|
|
2626
|
+
path: string;
|
|
2627
|
+
schemaVersion: 1;
|
|
2628
|
+
runId: string;
|
|
2629
|
+
sourceSha256: string;
|
|
2630
|
+
ok: boolean;
|
|
2631
|
+
status: string;
|
|
2632
|
+
checks: VerificationCheck[];
|
|
2633
|
+
completedAt: string;
|
|
2634
|
+
};
|
|
2635
|
+
report: {
|
|
2636
|
+
path: string;
|
|
2637
|
+
ok: boolean;
|
|
2638
|
+
status: string;
|
|
2639
|
+
schemaVersion: number;
|
|
2640
|
+
runId: string;
|
|
2641
|
+
source: "pixso" | "figma";
|
|
2642
|
+
sourceSha256: string;
|
|
2643
|
+
verification: {
|
|
2644
|
+
path: string;
|
|
2645
|
+
schemaVersion: 1;
|
|
2646
|
+
runId: string;
|
|
2647
|
+
sourceSha256: string;
|
|
2648
|
+
ok: boolean;
|
|
2649
|
+
status: string;
|
|
2650
|
+
checks: VerificationCheck[];
|
|
2651
|
+
completedAt: string;
|
|
2652
|
+
};
|
|
2653
|
+
inspection: DesignResolveResult | {
|
|
2654
|
+
schemaVersion: number;
|
|
2655
|
+
runId: string;
|
|
2656
|
+
section: string;
|
|
2657
|
+
report: DesignResolveResult | {
|
|
2658
|
+
code: string;
|
|
2659
|
+
message: string;
|
|
2660
|
+
}[] | {
|
|
2661
|
+
status: "bounds-only";
|
|
2662
|
+
nodeCount: number;
|
|
2663
|
+
types: Record<string, number>;
|
|
2664
|
+
roots: unknown[];
|
|
2665
|
+
zeroSizeNodes: string[];
|
|
2666
|
+
visualComparisonPerformed: false;
|
|
2667
|
+
} | {
|
|
2668
|
+
screenshots: DesignReferenceScreenshot[];
|
|
2669
|
+
hints: DesignAssetHint[];
|
|
2670
|
+
localFilesVerified: boolean;
|
|
2671
|
+
coverageVerified: boolean;
|
|
2672
|
+
} | {
|
|
2673
|
+
status: string;
|
|
2674
|
+
reason: string;
|
|
2675
|
+
} | {
|
|
2676
|
+
evaluated: boolean;
|
|
2677
|
+
items: never[];
|
|
2678
|
+
reason: string;
|
|
2679
|
+
} | {
|
|
2680
|
+
input: DesignResolveResult;
|
|
2681
|
+
assets: {
|
|
2682
|
+
screenshots: DesignReferenceScreenshot[];
|
|
2683
|
+
hints: DesignAssetHint[];
|
|
2684
|
+
localFilesVerified: boolean;
|
|
2685
|
+
coverageVerified: boolean;
|
|
2686
|
+
} | undefined;
|
|
2687
|
+
layout: {
|
|
2688
|
+
status: "bounds-only";
|
|
2689
|
+
nodeCount: number;
|
|
2690
|
+
types: Record<string, number>;
|
|
2691
|
+
roots: unknown[];
|
|
2692
|
+
zeroSizeNodes: string[];
|
|
2693
|
+
visualComparisonPerformed: false;
|
|
2694
|
+
} | {
|
|
2695
|
+
status: string;
|
|
2696
|
+
reason: string;
|
|
2697
|
+
} | undefined;
|
|
2698
|
+
risks: {
|
|
2699
|
+
code: string;
|
|
2700
|
+
message: string;
|
|
2701
|
+
}[];
|
|
2702
|
+
fallbacks: {
|
|
2703
|
+
evaluated: boolean;
|
|
2704
|
+
items: never[];
|
|
2705
|
+
reason: string;
|
|
2706
|
+
};
|
|
2707
|
+
} | undefined;
|
|
2708
|
+
} | {
|
|
2709
|
+
status: "unavailable";
|
|
2710
|
+
reason: string;
|
|
2711
|
+
};
|
|
2712
|
+
limitations: string[];
|
|
2713
|
+
};
|
|
2714
|
+
}>;
|
|
2715
|
+
private step;
|
|
2716
|
+
}
|
|
2717
|
+
|
|
2718
|
+
type D2AResults = OperationResults & {
|
|
2719
|
+
pipeline: Awaited<ReturnType<D2AOrchestrator['prepare']>>;
|
|
2720
|
+
pipeline_apply: Awaited<ReturnType<D2AOrchestrator['apply']>>;
|
|
2721
|
+
};
|
|
2722
|
+
declare class D2ARuntime {
|
|
2723
|
+
private readonly options;
|
|
2724
|
+
constructor(options?: RuntimeOptions);
|
|
2725
|
+
execute<K extends D2AOperation>(command: D2ACommand<K>, execution?: ExecutionOptions): Promise<D2AResponse<D2AResults[K]>>;
|
|
2726
|
+
private dispatch;
|
|
2727
|
+
}
|
|
2728
|
+
declare function createD2ARuntime(options?: RuntimeOptions): D2ARuntime;
|
|
2729
|
+
|
|
2730
|
+
declare class D2AError extends Error {
|
|
2731
|
+
readonly code: D2AErrorCode;
|
|
2732
|
+
readonly details?: Record<string, unknown> | undefined;
|
|
2733
|
+
constructor(code: D2AErrorCode, message: string, details?: Record<string, unknown> | undefined);
|
|
2734
|
+
}
|
|
2735
|
+
declare function mapResponse<T>(operation: string, data: T): D2AResponse<T>;
|
|
2736
|
+
declare function mapFailure(operation: string, error: unknown, signal?: AbortSignal): D2AResponse<never>;
|
|
2737
|
+
declare function unwrapResponse<T>(response: D2AResponse<T>): T;
|
|
2738
|
+
|
|
2739
|
+
export { BUNDLED_SKILL_NAME, BUNDLED_SKILL_NAMES, type CapabilityCommand, type CapabilityRequest, type D2ACommand, D2AError, type D2AErrorCode, type D2AOperation, D2AOrchestrator, type D2AParameters, type D2ARequest, type D2AResponse, type D2AResults, D2ARuntime, Design2ArktsArtifactAdapter, Design2ArktsCapabilityAdapter, Design2ArktsImportAdapter, Design2ArktsInspectionAdapter, Design2ArktsPageRevisionAdapter, Design2ArktsProjectAdapter, type Design2ArktsProjectConfig, Design2ArktsRegistryAdapter, Design2ArktsResolveAdapter, Design2ArktsResourceAdapter, Design2ArktsRunAdapter, type Design2ArktsRunMetadata, Design2ArktsScoringAdapter, Design2ArktsSourceAdapter, Design2ArktsVisionAdapter, type DesignAssetHint, type DesignInputSnapshot, type DesignReferenceScreenshot, type DesignResolveRequest, type DesignResolveResult, type DirectCapabilityRequest, type ExecutionOptions, type JsonPostOptions, LEGACY_BUNDLED_SKILL_NAMES, PROJECT_DIRECTORY_NAMES, type PageRevision, type ProjectDirectoryName, type RunCapabilityRequest, type RuntimeContext, type RuntimeHost, type RuntimeOptions, type VerificationCheck, type VerifyRequest, createD2ARuntime, getBundledSkillDirectory, getBundledWorkflowGuide, isBundledSkillName, mapFailure, mapRequest, mapResponse, unwrapResponse, withRuntimeContext };
|