agentic-dev 0.2.11 → 0.2.13
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 +72 -54
- package/bin/agentic-dev.mjs +162 -11
- package/lib/github.mjs +246 -0
- package/lib/orchestration-assets.mjs +249 -0
- package/lib/scaffold.mjs +89 -0
- package/package.json +8 -19
- package/.dockerignore +0 -8
- package/.env.example +0 -50
- package/.gitignore +0 -16
- package/AGENTS.md +0 -86
- package/SDD_SKILL.md +0 -589
- package/compose.yml +0 -206
- package/infra/compose/.env.dev.example +0 -28
- package/infra/compose/.env.prod.example +0 -29
- package/infra/compose/README.md +0 -35
- package/infra/compose/dev.yml +0 -125
- package/infra/compose/prod.yml +0 -126
- package/infra/terraform/README.md +0 -34
- package/infra/terraform/aws/data/.terraform.lock.hcl +0 -25
- package/infra/terraform/aws/data/README.md +0 -18
- package/infra/terraform/aws/data/main.tf +0 -147
- package/infra/terraform/aws/data/outputs.tf +0 -14
- package/infra/terraform/aws/data/variables.tf +0 -57
- package/infra/terraform/aws/data/versions.tf +0 -10
- package/infra/terraform/aws/domain/.terraform.lock.hcl +0 -25
- package/infra/terraform/aws/domain/README.md +0 -20
- package/infra/terraform/aws/domain/env/dev.tfvars.example +0 -6
- package/infra/terraform/aws/domain/env/prod.tfvars.example +0 -7
- package/infra/terraform/aws/domain/main.tf +0 -149
- package/infra/terraform/aws/domain/outputs.tf +0 -29
- package/infra/terraform/aws/domain/variables.tf +0 -58
- package/infra/terraform/aws/domain/versions.tf +0 -10
- package/infra/terraform/openstack/README.md +0 -38
- package/infra/terraform/openstack/dev/.terraform.lock.hcl +0 -24
- package/infra/terraform/openstack/dev/README.md +0 -18
- package/infra/terraform/openstack/dev/main.tf +0 -49
- package/infra/terraform/openstack/dev/providers.tf +0 -15
- package/infra/terraform/openstack/dev/terraform.tfvars.example +0 -54
- package/infra/terraform/openstack/dev/variables.tf +0 -210
- package/infra/terraform/openstack/dev/versions.tf +0 -10
- package/infra/terraform/openstack/modules/environment_host/main.tf +0 -143
- package/infra/terraform/openstack/modules/environment_host/outputs.tf +0 -25
- package/infra/terraform/openstack/modules/environment_host/templates/docker-host-user-data.sh.tftpl +0 -40
- package/infra/terraform/openstack/modules/environment_host/variables.tf +0 -145
- package/infra/terraform/openstack/modules/environment_host/versions.tf +0 -7
- package/infra/terraform/openstack/prod/.terraform.lock.hcl +0 -24
- package/infra/terraform/openstack/prod/README.md +0 -18
- package/infra/terraform/openstack/prod/main.tf +0 -49
- package/infra/terraform/openstack/prod/providers.tf +0 -15
- package/infra/terraform/openstack/prod/terraform.tfvars.example +0 -55
- package/infra/terraform/openstack/prod/variables.tf +0 -210
- package/infra/terraform/openstack/prod/versions.tf +0 -10
- package/infra/terraform/openstack/server/.terraform.lock.hcl +0 -45
- package/infra/terraform/openstack/server/README.md +0 -47
- package/infra/terraform/openstack/server/main.tf +0 -161
- package/infra/terraform/openstack/server/outputs.tf +0 -30
- package/infra/terraform/openstack/server/providers.tf +0 -30
- package/infra/terraform/openstack/server/templates/server-user-data.sh.tftpl +0 -50
- package/infra/terraform/openstack/server/variables.tf +0 -233
- package/infra/terraform/openstack/server/zz_aspace.auto.tfvars.example.json +0 -29
- package/pnpm-workspace.yaml +0 -2
- package/scripts/dev/audit_sdd_build_ast.py +0 -277
- package/sdd/01_planning/01_feature/INDEX.md +0 -16
- package/sdd/01_planning/01_feature/README.md +0 -76
- package/sdd/01_planning/01_feature/alerts_feature_spec.md +0 -55
- package/sdd/01_planning/01_feature/auth_feature_spec.md +0 -57
- package/sdd/01_planning/01_feature/catalog_feature_spec.md +0 -61
- package/sdd/01_planning/01_feature/fulfillment_feature_spec.md +0 -58
- package/sdd/01_planning/01_feature/health_feature_spec.md +0 -52
- package/sdd/01_planning/01_feature/inventory_feature_spec.md +0 -60
- package/sdd/01_planning/01_feature/order_feature_spec.md +0 -63
- package/sdd/01_planning/01_feature/shipping_feature_spec.md +0 -55
- package/sdd/01_planning/01_feature/support_feature_spec.md +0 -53
- package/sdd/01_planning/01_feature/user_feature_spec.md +0 -54
- package/sdd/01_planning/02_screen/INDEX.md +0 -13
- package/sdd/01_planning/02_screen/README.md +0 -41
- package/sdd/01_planning/02_screen/admin_screen_spec.pdf +0 -0
- package/sdd/01_planning/02_screen/assets/README.md +0 -16
- package/sdd/01_planning/02_screen/assets/example/README.md +0 -13
- package/sdd/01_planning/02_screen/landing_screen_spec.pdf +0 -0
- package/sdd/01_planning/02_screen/mobile_screen_spec.pdf +0 -0
- package/sdd/01_planning/02_screen/web_screen_spec.pdf +0 -0
- package/sdd/01_planning/03_architecture/INDEX.md +0 -9
- package/sdd/01_planning/03_architecture/README.md +0 -25
- package/sdd/01_planning/03_architecture/architecture_document_structure.md +0 -77
- package/sdd/01_planning/03_architecture/backend/README.md +0 -10
- package/sdd/01_planning/03_architecture/frontend/README.md +0 -12
- package/sdd/01_planning/03_architecture/infra/README.md +0 -10
- package/sdd/01_planning/03_architecture/tech-research/README.md +0 -4
- package/sdd/01_planning/03_architecture/templates_system_architecture.md +0 -84
- package/sdd/01_planning/04_data/INDEX.md +0 -4
- package/sdd/01_planning/04_data/README.md +0 -10
- package/sdd/01_planning/04_data/templates_data_modeling.md +0 -119
- package/sdd/01_planning/05_api/README.md +0 -12
- package/sdd/01_planning/05_api/templates_api_contract.md +0 -90
- package/sdd/01_planning/06_iac/README.md +0 -11
- package/sdd/01_planning/06_iac/templates_runtime_and_cicd_baseline.md +0 -46
- package/sdd/01_planning/07_integration/README.md +0 -11
- package/sdd/01_planning/07_integration/templates_frontend_api_integration.md +0 -46
- package/sdd/01_planning/08_nonfunctional/README.md +0 -7
- package/sdd/01_planning/09_security/README.md +0 -7
- package/sdd/01_planning/10_test/README.md +0 -12
- package/sdd/01_planning/10_test/templates_test_strategy.md +0 -60
- package/sdd/01_planning/INDEX.md +0 -19
- package/sdd/01_planning/README.md +0 -17
- package/sdd/02_plan/01_feature/README.md +0 -34
- package/sdd/02_plan/01_feature/_feature_todo_template.md +0 -29
- package/sdd/02_plan/02_screen/INDEX.md +0 -19
- package/sdd/02_plan/02_screen/README.md +0 -39
- package/sdd/02_plan/02_screen/_screen_todo_template.md +0 -60
- package/sdd/02_plan/03_architecture/README.md +0 -23
- package/sdd/02_plan/03_architecture/architecture_document_governance.md +0 -40
- package/sdd/02_plan/03_architecture/build_ast_runtime_tree_governance.md +0 -53
- package/sdd/02_plan/03_architecture/repository_governance.md +0 -39
- package/sdd/02_plan/03_architecture/runtime_and_structure_governance.md +0 -38
- package/sdd/02_plan/03_architecture/templates-hexagonal-template-architecture.md +0 -9
- package/sdd/02_plan/03_architecture/toolchain_governance.md +0 -98
- package/sdd/02_plan/04_data/README.md +0 -5
- package/sdd/02_plan/05_api/README.md +0 -5
- package/sdd/02_plan/06_iac/README.md +0 -11
- package/sdd/02_plan/06_iac/dev_runtime_delivery.md +0 -36
- package/sdd/02_plan/06_iac/template_runtime_delivery.md +0 -50
- package/sdd/02_plan/07_integration/README.md +0 -5
- package/sdd/02_plan/07_integration/frontend_live_integration.md +0 -31
- package/sdd/02_plan/08_nonfunctional/README.md +0 -5
- package/sdd/02_plan/08_nonfunctional/repository_hygiene.md +0 -26
- package/sdd/02_plan/09_security/README.md +0 -5
- package/sdd/02_plan/10_test/README.md +0 -11
- package/sdd/02_plan/10_test/regression_verification.md +0 -39
- package/sdd/02_plan/10_test/templates/README.md +0 -8
- package/sdd/02_plan/10_test/templates/ui_parity_web_contract.template.yaml +0 -23
- package/sdd/02_plan/10_test/verification_strategy.md +0 -43
- package/sdd/02_plan/99_generated/from_planning/ui_parity/.gitkeep +0 -1
- package/sdd/02_plan/README.md +0 -40
- package/sdd/03_build/01_feature/README.md +0 -20
- package/sdd/03_build/01_feature/domain/README.md +0 -3
- package/sdd/03_build/01_feature/domain/account_and_access.md +0 -20
- package/sdd/03_build/01_feature/domain/catalog_and_inventory.md +0 -20
- package/sdd/03_build/01_feature/domain/ordering_and_fulfillment.md +0 -21
- package/sdd/03_build/01_feature/domain/support_and_observability.md +0 -21
- package/sdd/03_build/01_feature/domain_surfaces.md +0 -28
- package/sdd/03_build/01_feature/service/README.md +0 -3
- package/sdd/03_build/01_feature/service/admin_surface.md +0 -15
- package/sdd/03_build/01_feature/service/landing_surface.md +0 -13
- package/sdd/03_build/01_feature/service/mobile_surface.md +0 -14
- package/sdd/03_build/01_feature/service/web_surface.md +0 -14
- package/sdd/03_build/02_screen/README.md +0 -25
- package/sdd/03_build/02_screen/_screen_build_template.md +0 -26
- package/sdd/03_build/02_screen/admin/README.md +0 -5
- package/sdd/03_build/02_screen/landing/README.md +0 -5
- package/sdd/03_build/02_screen/mobile/README.md +0 -5
- package/sdd/03_build/02_screen/web/README.md +0 -5
- package/sdd/03_build/03_architecture/README.md +0 -10
- package/sdd/03_build/03_architecture/architecture_document_governance.md +0 -30
- package/sdd/03_build/03_architecture/build_ast_runtime_tree_governance.md +0 -24
- package/sdd/03_build/03_architecture/repository_governance.md +0 -18
- package/sdd/03_build/03_architecture/toolchain_governance.md +0 -36
- package/sdd/03_build/06_iac/README.md +0 -3
- package/sdd/03_build/06_iac/dev_runtime_delivery.md +0 -10
- package/sdd/03_build/06_iac/template_runtime_delivery.md +0 -49
- package/sdd/03_build/07_integration/README.md +0 -3
- package/sdd/03_build/07_integration/frontend_live_integration.md +0 -11
- package/sdd/03_build/08_nonfunctional/README.md +0 -3
- package/sdd/03_build/08_nonfunctional/repository_hygiene.md +0 -10
- package/sdd/03_build/10_test/README.md +0 -9
- package/sdd/03_build/10_test/regression_verification.md +0 -16
- package/sdd/03_build/10_test/verification_harness.md +0 -11
- package/sdd/03_build/README.md +0 -35
- package/sdd/03_verify/01_feature/README.md +0 -5
- package/sdd/03_verify/01_feature/domain_verification.md +0 -14
- package/sdd/03_verify/01_feature/service_verification.md +0 -22
- package/sdd/03_verify/02_screen/README.md +0 -6
- package/sdd/03_verify/02_screen/_screen_verify_template.md +0 -20
- package/sdd/03_verify/02_screen/admin/README.md +0 -4
- package/sdd/03_verify/02_screen/landing/README.md +0 -4
- package/sdd/03_verify/02_screen/mobile/README.md +0 -4
- package/sdd/03_verify/02_screen/web/README.md +0 -4
- package/sdd/03_verify/03_architecture/README.md +0 -10
- package/sdd/03_verify/03_architecture/architecture_document_governance.md +0 -15
- package/sdd/03_verify/03_architecture/build_ast_runtime_tree_governance.md +0 -28
- package/sdd/03_verify/03_architecture/repository_governance.md +0 -16
- package/sdd/03_verify/03_architecture/toolchain_governance.md +0 -58
- package/sdd/03_verify/06_iac/README.md +0 -3
- package/sdd/03_verify/06_iac/dev_runtime_delivery.md +0 -10
- package/sdd/03_verify/06_iac/template_runtime_delivery.md +0 -42
- package/sdd/03_verify/07_integration/README.md +0 -3
- package/sdd/03_verify/07_integration/frontend_live_integration.md +0 -16
- package/sdd/03_verify/08_nonfunctional/README.md +0 -3
- package/sdd/03_verify/08_nonfunctional/repository_hygiene.md +0 -14
- package/sdd/03_verify/10_test/README.md +0 -9
- package/sdd/03_verify/10_test/regression_verification.md +0 -16
- package/sdd/03_verify/10_test/ui_parity/README.md +0 -4
- package/sdd/03_verify/10_test/ui_parity/loop_runs/.gitkeep +0 -0
- package/sdd/03_verify/10_test/ui_parity/reference/.gitkeep +0 -0
- package/sdd/03_verify/10_test/ui_parity/staged_runs/.gitkeep +0 -0
- package/sdd/03_verify/10_test/verification_harness.md +0 -17
- package/sdd/03_verify/README.md +0 -22
- package/sdd/05_operate/01_runbooks/.gitkeep +0 -1
- package/sdd/05_operate/01_runbooks/README.md +0 -4
- package/sdd/05_operate/02_delivery_status/README.md +0 -4
- package/sdd/05_operate/02_delivery_status/service_status.md +0 -16
- package/sdd/05_operate/README.md +0 -12
- package/sdd/99_toolchain/01_automation/.gitkeep +0 -1
- package/sdd/99_toolchain/01_automation/README.md +0 -76
- package/sdd/99_toolchain/01_automation/agentic-dev/analyze_proof_results.py +0 -132
- package/sdd/99_toolchain/01_automation/agentic-dev/analyze_route_gap.py +0 -85
- package/sdd/99_toolchain/01_automation/agentic-dev/assets/repo-contract.template.json +0 -75
- package/sdd/99_toolchain/01_automation/agentic-dev/bootstrap_frontend_parity.sh +0 -84
- package/sdd/99_toolchain/01_automation/agentic-dev/init_frontend_parity.sh +0 -33
- package/sdd/99_toolchain/01_automation/agentic-dev/init_repo_contract.sh +0 -51
- package/sdd/99_toolchain/01_automation/agentic-dev/repo-contract.json +0 -76
- package/sdd/99_toolchain/01_automation/agentic-dev/resolve_frontend_target.py +0 -52
- package/sdd/99_toolchain/01_automation/agentic-dev/resolve_repo_contract.py +0 -56
- package/sdd/99_toolchain/01_automation/agentic-dev/run_frontend_target.sh +0 -100
- package/sdd/99_toolchain/01_automation/agentic-dev/run_repo_phase.sh +0 -140
- package/sdd/99_toolchain/01_automation/agentic-dev/validate_json_schema.py +0 -39
- package/sdd/99_toolchain/01_automation/agentic-parity-harness-design.md +0 -291
- package/sdd/99_toolchain/01_automation/assets/admin_screen_capture/dashboard.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/admin_screen_capture/login.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/admin_screen_capture/queue.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/admin_screen_capture/support.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/landing_screen_capture/home.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/landing_screen_capture/login.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/landing_screen_capture/workspace.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/mobile_screen_capture/dashboard.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/mobile_screen_capture/fulfillment.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/mobile_screen_capture/login.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/web_screen_capture/dashboard.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/web_screen_capture/login.png +0 -0
- package/sdd/99_toolchain/01_automation/assets/web_screen_capture/orders.png +0 -0
- package/sdd/99_toolchain/01_automation/build_asset_recipes.py +0 -10
- package/sdd/99_toolchain/01_automation/build_screen_spec_pdf.py +0 -427
- package/sdd/99_toolchain/01_automation/capture_screen_assets.mjs +0 -148
- package/sdd/99_toolchain/01_automation/harness-layout.md +0 -34
- package/sdd/99_toolchain/01_automation/parity-execution-tooling-design.md +0 -319
- package/sdd/99_toolchain/01_automation/playwright_exactness_manifest.py +0 -21
- package/sdd/99_toolchain/01_automation/run_playwright_exactness.py +0 -87
- package/sdd/99_toolchain/01_automation/screen_spec_manifest.py +0 -321
- package/sdd/99_toolchain/01_automation/spec_asset_builder.py +0 -274
- package/sdd/99_toolchain/01_automation/ui-contract-projection.md +0 -79
- package/sdd/99_toolchain/01_automation/ui-parity/README.md +0 -60
- package/sdd/99_toolchain/01_automation/ui-parity/cli/extract-reference-pages.mjs +0 -2
- package/sdd/99_toolchain/01_automation/ui-parity/cli/materialize-reference-assets.mjs +0 -58
- package/sdd/99_toolchain/01_automation/ui-parity/cli/normalize-reference-assets.mjs +0 -2
- package/sdd/99_toolchain/01_automation/ui-parity/cli/route-gap-report.mjs +0 -187
- package/sdd/99_toolchain/01_automation/ui-parity/cli/run-proof.mjs +0 -50
- package/sdd/99_toolchain/01_automation/ui-parity/cli/scaffold-contract.mjs +0 -62
- package/sdd/99_toolchain/01_automation/ui-parity/cli/upload-parity1.mjs +0 -2
- package/sdd/99_toolchain/01_automation/ui-parity/contracts/collector-metadata.schema.json +0 -33
- package/sdd/99_toolchain/01_automation/ui-parity/contracts/proof-result.schema.json +0 -76
- package/sdd/99_toolchain/01_automation/ui-parity/contracts/route-gap-report.schema.json +0 -95
- package/sdd/99_toolchain/01_automation/ui-parity/core/capture-runner.mjs +0 -55
- package/sdd/99_toolchain/01_automation/ui-parity/core/load-adapter.mjs +0 -25
- package/sdd/99_toolchain/01_automation/ui-parity/core/load-contract.mjs +0 -81
- package/sdd/99_toolchain/01_automation/ui-parity/core/paths.mjs +0 -23
- package/sdd/99_toolchain/01_automation/ui-parity/core/proof-runner.mjs +0 -255
- package/sdd/99_toolchain/01_automation/ui-parity/interfaces/ui-parity-artifact-layout.md +0 -23
- package/sdd/99_toolchain/01_automation/ui-parity/interfaces/ui-parity-proof-interface.md +0 -60
- package/sdd/99_toolchain/01_automation/ui-parity/interfaces/ui-parity-route-gap-interface.md +0 -82
- package/sdd/99_toolchain/01_automation/ui-parity/runtime/playwright-runtime.mjs +0 -16
- package/sdd/99_toolchain/01_automation/ui-parity/runtime/static-runtime.mjs +0 -6
- package/sdd/99_toolchain/02_policies/.gitkeep +0 -1
- package/sdd/99_toolchain/02_policies/build-ast-governance-policy.md +0 -22
- package/sdd/99_toolchain/02_policies/compose-runtime-baseline-policy.md +0 -24
- package/sdd/99_toolchain/02_policies/convention-storage-policy.md +0 -26
- package/sdd/99_toolchain/02_policies/main-push-before-dev-deploy-policy.md +0 -27
- package/sdd/99_toolchain/02_policies/regression-verification-policy.md +0 -22
- package/sdd/99_toolchain/03_templates/.gitkeep +0 -1
- package/sdd/99_toolchain/03_templates/asset_recipe_manifest.example.py +0 -38
- package/sdd/99_toolchain/03_templates/generated_assets/README.md +0 -11
- package/sdd/99_toolchain/03_templates/generated_assets/example-brand-lockup.svg +0 -3
- package/sdd/99_toolchain/03_templates/generated_assets/example-brand-mark.svg +0 -3
- package/sdd/99_toolchain/03_templates/generated_assets/example-brand-wordmark.svg +0 -3
- package/sdd/99_toolchain/03_templates/playwright_exactness_manifest.example.py +0 -21
- package/sdd/99_toolchain/README.md +0 -23
- package/sdd/README.md +0 -21
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# UI Parity Tooling
|
|
2
|
-
|
|
3
|
-
이 디렉터리는 템플릿을 복제한 각 서비스 레포에서 사용하는 repo-local parity 실행 도구의 정본이다.
|
|
4
|
-
|
|
5
|
-
계층:
|
|
6
|
-
|
|
7
|
-
- `core/`: parity 결과 생성과 공통 유틸
|
|
8
|
-
- `cli/`: scaffold, proof, route-gap 같은 진입점
|
|
9
|
-
- `contracts/`: output/metadata schema 예시
|
|
10
|
-
- `interfaces/`: 실행 계약과 산출물 규약 문서
|
|
11
|
-
- `runtime/`: 브라우저 런타임 adapter
|
|
12
|
-
|
|
13
|
-
복제 직후 초기화:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
bash sdd/99_toolchain/01_automation/agentic-dev/init_frontend_parity.sh . web
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
이 명령은 다음을 생성한다.
|
|
20
|
-
|
|
21
|
-
- `sdd/99_toolchain/01_automation/agentic-dev/repo-contract.json`
|
|
22
|
-
- `.codex/agentic-dev.json`
|
|
23
|
-
- `.claude/agentic-dev.json`
|
|
24
|
-
- `sdd/02_plan/10_test/templates/ui_parity_web_contract.yaml`
|
|
25
|
-
- `sdd/02_plan/99_generated/from_planning/ui_parity/ui_parity_route_gap_report.json`
|
|
26
|
-
- `sdd/02_plan/99_generated/from_planning/ui_parity/ui_parity_route_gap_report.md`
|
|
27
|
-
|
|
28
|
-
대상 프론트 선택:
|
|
29
|
-
|
|
30
|
-
- 기본 대상은 `sdd/99_toolchain/01_automation/agentic-dev/repo-contract.json`의 `frontend.default_target`에서 결정한다.
|
|
31
|
-
- `web`, `mobile`, `admin`, `landing` 같은 각 프론트는 `frontend.targets.<id>`에 `dir`, `adapter_path`, `screens_path`, `routes_path`, `preview_url`을 선언한다.
|
|
32
|
-
예시 `dir` 값은 `client/web`처럼 실제 디렉터리 경로를 가리킨다.
|
|
33
|
-
- `init_frontend_parity.sh`, `bootstrap_frontend_parity.sh`, `run_frontend_target.sh`는 모두 이 metadata만 읽고 동작한다.
|
|
34
|
-
|
|
35
|
-
첫 proof 부트스트랩:
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
bash sdd/99_toolchain/01_automation/agentic-dev/bootstrap_frontend_parity.sh . web
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
이 명령은 preview 서버를 띄운 뒤 reference materialization, route-gap gate, proof gate까지 수행한다.
|
|
42
|
-
`plan_audit`와 `proof` gate는 각각 route-gap/proof JSON을 schema까지 검증한 뒤 판정한다.
|
|
43
|
-
|
|
44
|
-
기본 사용 예시:
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
node sdd/99_toolchain/01_automation/ui-parity/cli/scaffold-contract.mjs \
|
|
48
|
-
--adapter client/web/scripts/ui-parity-web-adapter.mjs \
|
|
49
|
-
--out sdd/02_plan/10_test/templates/ui_parity_web_contract.yaml
|
|
50
|
-
|
|
51
|
-
node sdd/99_toolchain/01_automation/ui-parity/cli/run-proof.mjs \
|
|
52
|
-
--adapter client/web/scripts/ui-parity-web-adapter.mjs \
|
|
53
|
-
--contract sdd/02_plan/10_test/templates/ui_parity_web_contract.yaml \
|
|
54
|
-
--out sdd/03_verify/10_test/ui_parity/templates_web_agentic_dev_latest.json
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
관련 계약:
|
|
58
|
-
|
|
59
|
-
- [UI Parity Proof Interface](interfaces/ui-parity-proof-interface.md)
|
|
60
|
-
- [UI Parity Route Gap Interface](interfaces/ui-parity-route-gap-interface.md)
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
import { createRequire } from "node:module";
|
|
4
|
-
|
|
5
|
-
import { loadAdapter } from "../core/load-adapter.mjs";
|
|
6
|
-
import { loadContract } from "../core/load-contract.mjs";
|
|
7
|
-
import { captureScreen, sanitizeFileName } from "../core/capture-runner.mjs";
|
|
8
|
-
import { createPlaywrightRuntime } from "../runtime/playwright-runtime.mjs";
|
|
9
|
-
|
|
10
|
-
function parseArgs(argv) {
|
|
11
|
-
const args = {
|
|
12
|
-
adapter: "",
|
|
13
|
-
contract: "",
|
|
14
|
-
};
|
|
15
|
-
for (let index = 2; index < argv.length; index += 1) {
|
|
16
|
-
const token = argv[index];
|
|
17
|
-
if (token === "--adapter" && argv[index + 1]) {
|
|
18
|
-
args.adapter = argv[++index];
|
|
19
|
-
} else if (token === "--contract" && argv[index + 1]) {
|
|
20
|
-
args.contract = argv[++index];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
if (!args.adapter || !args.contract) {
|
|
24
|
-
throw new Error("Usage: materialize-reference-assets.mjs --adapter <path> --contract <path>");
|
|
25
|
-
}
|
|
26
|
-
return args;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const args = parseArgs(process.argv);
|
|
30
|
-
const { resolvedPath, adapter } = await loadAdapter(args.adapter);
|
|
31
|
-
const requireFromAdapter = createRequire(resolvedPath);
|
|
32
|
-
const yaml = requireFromAdapter("yaml");
|
|
33
|
-
const { contract } = loadContract(args.contract, (text) => yaml.parse(text));
|
|
34
|
-
const runtime = await createPlaywrightRuntime(requireFromAdapter);
|
|
35
|
-
const baseUrl = adapter.targetBaseUrl ?? contract.targetBaseUrl ?? "http://127.0.0.1:4301";
|
|
36
|
-
const viewport = adapter.viewport ?? { width: 1440, height: 1024 };
|
|
37
|
-
const repoRoot = contract.repoRoot ?? process.cwd();
|
|
38
|
-
|
|
39
|
-
let generated = 0;
|
|
40
|
-
for (const screen of contract.screens) {
|
|
41
|
-
const targetPath = path.resolve(
|
|
42
|
-
repoRoot,
|
|
43
|
-
screen.referenceImage ?? `sdd/03_verify/10_test/ui_parity/reference/${sanitizeFileName(screen.id)}.png`,
|
|
44
|
-
);
|
|
45
|
-
await captureScreen({
|
|
46
|
-
browser: runtime.browser,
|
|
47
|
-
screen,
|
|
48
|
-
adapter,
|
|
49
|
-
outputPath: targetPath,
|
|
50
|
-
baseUrl,
|
|
51
|
-
viewport,
|
|
52
|
-
});
|
|
53
|
-
generated += 1;
|
|
54
|
-
console.log(`reference_image=${targetPath}`);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
await runtime.dispose();
|
|
58
|
-
console.log(`generated=${generated}`);
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import fs from "node:fs";
|
|
3
|
-
import path from "node:path";
|
|
4
|
-
import { ensureDirectory, writeJson } from "../core/paths.mjs";
|
|
5
|
-
|
|
6
|
-
function loadJson(jsonPath) {
|
|
7
|
-
return JSON.parse(fs.readFileSync(jsonPath, "utf8"));
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function parseArgs(argv) {
|
|
11
|
-
const args = {
|
|
12
|
-
service: "",
|
|
13
|
-
screens: "",
|
|
14
|
-
routes: "",
|
|
15
|
-
out: "",
|
|
16
|
-
markdownOut: "",
|
|
17
|
-
};
|
|
18
|
-
for (let index = 2; index < argv.length; index += 1) {
|
|
19
|
-
const token = argv[index];
|
|
20
|
-
if (token === "--service" && argv[index + 1]) {
|
|
21
|
-
args.service = argv[++index];
|
|
22
|
-
} else if (token === "--screens" && argv[index + 1]) {
|
|
23
|
-
args.screens = argv[++index];
|
|
24
|
-
} else if (token === "--routes" && argv[index + 1]) {
|
|
25
|
-
args.routes = argv[++index];
|
|
26
|
-
} else if (token === "--out" && argv[index + 1]) {
|
|
27
|
-
args.out = argv[++index];
|
|
28
|
-
} else if (token === "--markdown-out" && argv[index + 1]) {
|
|
29
|
-
args.markdownOut = argv[++index];
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
if (!args.screens || !args.routes || !args.out) {
|
|
33
|
-
throw new Error(
|
|
34
|
-
"Usage: route-gap-report.mjs [--service <name>] --screens <json> --routes <json> --out <json> [--markdown-out <md>]",
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
return args;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function normalizeStringArray(values) {
|
|
41
|
-
if (!Array.isArray(values)) return [];
|
|
42
|
-
return [...new Set(values.map((value) => String(value ?? "").trim()).filter(Boolean))];
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function routeStatusFor(entry, routeUsage) {
|
|
46
|
-
if (!entry) return "missing";
|
|
47
|
-
const binding = String(entry.binding ?? entry.mode ?? "direct").trim().toLowerCase();
|
|
48
|
-
if (binding === "stateful") return "stateful";
|
|
49
|
-
if (binding === "shared") return "shared";
|
|
50
|
-
if (binding === "missing") return "missing";
|
|
51
|
-
const route = String(entry.route ?? "").trim();
|
|
52
|
-
if (!route) return "missing";
|
|
53
|
-
if ((routeUsage.get(route) ?? 0) > 1) return "shared";
|
|
54
|
-
return "direct";
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function bindingSourceFor(entry) {
|
|
58
|
-
if (!entry) return "missing";
|
|
59
|
-
return entry.binding || entry.mode ? "explicit" : "inferred";
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function coverageStateFor(status) {
|
|
63
|
-
if (status === "direct") return "route_bound";
|
|
64
|
-
if (status === "shared") return "shared_route";
|
|
65
|
-
if (status === "stateful") return "state_transition";
|
|
66
|
-
return "unmapped";
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
function evidenceLevelFor(status, bindingSource, hasNotes, hasTags) {
|
|
70
|
-
if (status === "missing") return "missing";
|
|
71
|
-
if (status === "stateful") return "weak";
|
|
72
|
-
if (status === "shared") return hasNotes || hasTags ? "medium" : "weak";
|
|
73
|
-
if (bindingSource === "explicit" && (hasNotes || hasTags)) return "strong";
|
|
74
|
-
if (bindingSource === "explicit") return "medium";
|
|
75
|
-
return hasNotes || hasTags ? "medium" : "weak";
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function renderMarkdown(report) {
|
|
79
|
-
const lines = [
|
|
80
|
-
"# UI Parity Route Gap Report",
|
|
81
|
-
"",
|
|
82
|
-
`- Service: ${report.service}`,
|
|
83
|
-
`- Generated At: ${report.generated_at}`,
|
|
84
|
-
`- Total: ${report.summary.total}`,
|
|
85
|
-
`- Direct: ${report.summary.direct}`,
|
|
86
|
-
`- Shared: ${report.summary.shared}`,
|
|
87
|
-
`- Stateful: ${report.summary.stateful}`,
|
|
88
|
-
`- Missing: ${report.summary.missing}`,
|
|
89
|
-
`- Coverage Ratio: ${report.summary.coverage_ratio}`,
|
|
90
|
-
`- Strong Evidence: ${report.summary.strong_evidence}`,
|
|
91
|
-
`- With Notes: ${report.summary.with_notes}`,
|
|
92
|
-
`- With Tags: ${report.summary.with_tags}`,
|
|
93
|
-
"",
|
|
94
|
-
"| ID | Title | Route | Status | Evidence | Tags | Linked Screens |",
|
|
95
|
-
"| --- | --- | --- | --- | --- | --- | --- |",
|
|
96
|
-
];
|
|
97
|
-
for (const screen of report.screens) {
|
|
98
|
-
lines.push(
|
|
99
|
-
`| ${screen.id} | ${screen.title} | ${screen.route ?? ""} | ${screen.status} | ${screen.evidence_level} | ${screen.tags.join(", ")} | ${screen.duplicate_route_ids.join(", ")} |`,
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
return `${lines.join("\n")}\n`;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
const args = parseArgs(process.argv);
|
|
106
|
-
const screens = loadJson(path.resolve(args.screens));
|
|
107
|
-
const routes = loadJson(path.resolve(args.routes));
|
|
108
|
-
const routeUsage = new Map();
|
|
109
|
-
for (const routeEntry of routes) {
|
|
110
|
-
const route = String(routeEntry.route ?? "").trim();
|
|
111
|
-
if (!route) continue;
|
|
112
|
-
routeUsage.set(route, (routeUsage.get(route) ?? 0) + 1);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
const routeMap = new Map(routes.map((entry) => [entry.id, entry]));
|
|
116
|
-
const duplicateRouteGroups = [];
|
|
117
|
-
const rows = screens.map((screen) => {
|
|
118
|
-
const entry = routeMap.get(screen.id) ?? null;
|
|
119
|
-
const status = routeStatusFor(entry, routeUsage);
|
|
120
|
-
const route = entry?.route ?? null;
|
|
121
|
-
const duplicateRouteIds =
|
|
122
|
-
route && (routeUsage.get(route) ?? 0) > 1
|
|
123
|
-
? routes.filter((routeEntry) => routeEntry.route === route && routeEntry.id !== screen.id).map((routeEntry) => routeEntry.id)
|
|
124
|
-
: [];
|
|
125
|
-
if (route && duplicateRouteIds.length > 0 && !duplicateRouteGroups.some((group) => group.route === route)) {
|
|
126
|
-
duplicateRouteGroups.push({
|
|
127
|
-
route,
|
|
128
|
-
screen_ids: routes.filter((routeEntry) => routeEntry.route === route).map((routeEntry) => routeEntry.id),
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
const tags = normalizeStringArray([...(screen.tags ?? []), ...(entry?.tags ?? [])]);
|
|
132
|
-
const notes = normalizeStringArray([...(screen.notes ?? []), ...(entry?.notes ?? [])]);
|
|
133
|
-
const bindingSource = bindingSourceFor(entry);
|
|
134
|
-
return {
|
|
135
|
-
id: screen.id,
|
|
136
|
-
title: screen.title,
|
|
137
|
-
route,
|
|
138
|
-
status,
|
|
139
|
-
binding: String(entry?.binding ?? entry?.mode ?? status),
|
|
140
|
-
binding_source: bindingSource,
|
|
141
|
-
coverage_state: coverageStateFor(status),
|
|
142
|
-
evidence_level: evidenceLevelFor(status, bindingSource, notes.length > 0, tags.length > 0),
|
|
143
|
-
route_defined: Boolean(route),
|
|
144
|
-
has_notes: notes.length > 0,
|
|
145
|
-
has_tags: tags.length > 0,
|
|
146
|
-
duplicate_route_ids: duplicateRouteIds,
|
|
147
|
-
tags,
|
|
148
|
-
notes,
|
|
149
|
-
};
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
const report = {
|
|
153
|
-
generated_at: new Date().toISOString(),
|
|
154
|
-
service: args.service || path.basename(path.dirname(path.resolve(args.screens))),
|
|
155
|
-
screens_path: path.resolve(args.screens),
|
|
156
|
-
routes_path: path.resolve(args.routes),
|
|
157
|
-
summary: {
|
|
158
|
-
total: rows.length,
|
|
159
|
-
direct: rows.filter((row) => row.status === "direct").length,
|
|
160
|
-
shared: rows.filter((row) => row.status === "shared").length,
|
|
161
|
-
stateful: rows.filter((row) => row.status === "stateful").length,
|
|
162
|
-
missing: rows.filter((row) => row.status === "missing").length,
|
|
163
|
-
coverage_ratio: rows.length > 0 ? Number((rows.filter((row) => row.status === "direct").length / rows.length).toFixed(4)) : 0,
|
|
164
|
-
explicit_bindings: rows.filter((row) => row.binding_source === "explicit").length,
|
|
165
|
-
strong_evidence: rows.filter((row) => row.evidence_level === "strong").length,
|
|
166
|
-
medium_evidence: rows.filter((row) => row.evidence_level === "medium").length,
|
|
167
|
-
weak_evidence: rows.filter((row) => row.evidence_level === "weak").length,
|
|
168
|
-
with_notes: rows.filter((row) => row.has_notes).length,
|
|
169
|
-
with_tags: rows.filter((row) => row.has_tags).length,
|
|
170
|
-
duplicate_route_groups: duplicateRouteGroups.length,
|
|
171
|
-
},
|
|
172
|
-
duplicate_route_groups: duplicateRouteGroups,
|
|
173
|
-
screens: rows,
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
ensureDirectory(path.dirname(path.resolve(args.out)));
|
|
177
|
-
writeJson(path.resolve(args.out), report);
|
|
178
|
-
|
|
179
|
-
if (args.markdownOut) {
|
|
180
|
-
ensureDirectory(path.dirname(path.resolve(args.markdownOut)));
|
|
181
|
-
fs.writeFileSync(path.resolve(args.markdownOut), renderMarkdown(report), "utf8");
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
console.log(`route_gap_output=${path.resolve(args.out)}`);
|
|
185
|
-
if (args.markdownOut) {
|
|
186
|
-
console.log(`route_gap_markdown=${path.resolve(args.markdownOut)}`);
|
|
187
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
import { createRequire } from "node:module";
|
|
4
|
-
import { loadAdapter } from "../core/load-adapter.mjs";
|
|
5
|
-
import { loadContract } from "../core/load-contract.mjs";
|
|
6
|
-
import { runProof } from "../core/proof-runner.mjs";
|
|
7
|
-
import { createPlaywrightRuntime } from "../runtime/playwright-runtime.mjs";
|
|
8
|
-
|
|
9
|
-
function parseArgs(argv) {
|
|
10
|
-
const args = {
|
|
11
|
-
adapter: "",
|
|
12
|
-
contract: "",
|
|
13
|
-
out: "",
|
|
14
|
-
};
|
|
15
|
-
for (let index = 2; index < argv.length; index += 1) {
|
|
16
|
-
const token = argv[index];
|
|
17
|
-
if (token === "--adapter" && argv[index + 1]) {
|
|
18
|
-
args.adapter = argv[++index];
|
|
19
|
-
} else if (token === "--contract" && argv[index + 1]) {
|
|
20
|
-
args.contract = argv[++index];
|
|
21
|
-
} else if (token === "--out" && argv[index + 1]) {
|
|
22
|
-
args.out = argv[++index];
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
if (!args.adapter || !args.contract || !args.out) {
|
|
26
|
-
throw new Error("Usage: run-proof.mjs --adapter <path> --contract <path> --out <path>");
|
|
27
|
-
}
|
|
28
|
-
return args;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const args = parseArgs(process.argv);
|
|
32
|
-
const { resolvedPath, adapter } = await loadAdapter(args.adapter);
|
|
33
|
-
const requireFromAdapter = createRequire(resolvedPath);
|
|
34
|
-
const yaml = requireFromAdapter("yaml");
|
|
35
|
-
const { resolvedPath: resolvedContractPath, contract } = loadContract(args.contract, (text) => yaml.parse(text));
|
|
36
|
-
const runtime = await createPlaywrightRuntime(requireFromAdapter);
|
|
37
|
-
const payload = await runProof({
|
|
38
|
-
adapterPath: path.relative(process.cwd(), resolvedPath),
|
|
39
|
-
contractPath: path.relative(process.cwd(), resolvedContractPath),
|
|
40
|
-
outPath: path.resolve(args.out),
|
|
41
|
-
adapter,
|
|
42
|
-
contract,
|
|
43
|
-
browser: runtime.browser,
|
|
44
|
-
requireFromAdapter,
|
|
45
|
-
});
|
|
46
|
-
await runtime.dispose();
|
|
47
|
-
console.log(`proof_output=${path.resolve(args.out)}`);
|
|
48
|
-
console.log(`screens=${payload.summary.total}`);
|
|
49
|
-
console.log(`missing_reference=${payload.summary.missing_reference}`);
|
|
50
|
-
console.log(`capture_error=${payload.summary.capture_error}`);
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import fs from "node:fs";
|
|
3
|
-
import path from "node:path";
|
|
4
|
-
import { loadAdapter } from "../core/load-adapter.mjs";
|
|
5
|
-
import { ensureDirectory } from "../core/paths.mjs";
|
|
6
|
-
|
|
7
|
-
function parseArgs(argv) {
|
|
8
|
-
const args = {
|
|
9
|
-
adapter: "",
|
|
10
|
-
out: "",
|
|
11
|
-
};
|
|
12
|
-
for (let index = 2; index < argv.length; index += 1) {
|
|
13
|
-
const token = argv[index];
|
|
14
|
-
if (token === "--adapter" && argv[index + 1]) {
|
|
15
|
-
args.adapter = argv[++index];
|
|
16
|
-
} else if (token === "--out" && argv[index + 1]) {
|
|
17
|
-
args.out = argv[++index];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
if (!args.adapter || !args.out) {
|
|
21
|
-
throw new Error("Usage: scaffold-contract.mjs --adapter <path> --out <path>");
|
|
22
|
-
}
|
|
23
|
-
return args;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function renderYaml(adapterPath, adapter) {
|
|
27
|
-
const screens = Array.isArray(adapter.screens) ? adapter.screens : [];
|
|
28
|
-
const lines = [
|
|
29
|
-
"kind: ui-parity",
|
|
30
|
-
"metadata:",
|
|
31
|
-
` service: ${adapter.service ?? "replace-service-name"}`,
|
|
32
|
-
" generated_by: sdd/99_toolchain/01_automation/ui-parity/cli/scaffold-contract.mjs",
|
|
33
|
-
"spec:",
|
|
34
|
-
` target_base_url: ${adapter.targetBaseUrl ?? "http://127.0.0.1:4301"}`,
|
|
35
|
-
` adapter_path: ${adapterPath}`,
|
|
36
|
-
"screens:",
|
|
37
|
-
];
|
|
38
|
-
if (screens.length === 0) {
|
|
39
|
-
lines.push(" - id: TMP_001");
|
|
40
|
-
lines.push(" route: /");
|
|
41
|
-
lines.push(" reference_image: sdd/03_verify/10_test/ui_parity/reference/TMP_001.png");
|
|
42
|
-
} else {
|
|
43
|
-
for (const screen of screens) {
|
|
44
|
-
lines.push(` - id: ${screen.id}`);
|
|
45
|
-
lines.push(` route: ${screen.route}`);
|
|
46
|
-
lines.push(
|
|
47
|
-
` reference_image: ${screen.referenceImage ?? `sdd/03_verify/10_test/ui_parity/reference/${screen.id}.png`}`,
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return `${lines.join("\n")}\n`;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const args = parseArgs(process.argv);
|
|
55
|
-
const { resolvedPath, adapter } = await loadAdapter(args.adapter);
|
|
56
|
-
ensureDirectory(path.dirname(path.resolve(args.out)));
|
|
57
|
-
fs.writeFileSync(
|
|
58
|
-
path.resolve(args.out),
|
|
59
|
-
renderYaml(path.relative(process.cwd(), resolvedPath), adapter),
|
|
60
|
-
"utf8",
|
|
61
|
-
);
|
|
62
|
-
console.log(`contract_output=${path.resolve(args.out)}`);
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"title": "ParityCollectorMetadata",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"required": [
|
|
6
|
-
"project",
|
|
7
|
-
"repo",
|
|
8
|
-
"screen_code",
|
|
9
|
-
"route",
|
|
10
|
-
"diff_ratio",
|
|
11
|
-
"proof_artifacts_root"
|
|
12
|
-
],
|
|
13
|
-
"properties": {
|
|
14
|
-
"project": {
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
17
|
-
"repo": {
|
|
18
|
-
"type": "string"
|
|
19
|
-
},
|
|
20
|
-
"screen_code": {
|
|
21
|
-
"type": "string"
|
|
22
|
-
},
|
|
23
|
-
"route": {
|
|
24
|
-
"type": "string"
|
|
25
|
-
},
|
|
26
|
-
"diff_ratio": {
|
|
27
|
-
"type": "number"
|
|
28
|
-
},
|
|
29
|
-
"proof_artifacts_root": {
|
|
30
|
-
"type": "string"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"title": "UIParityProofResult",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"required": [
|
|
6
|
-
"generated_at",
|
|
7
|
-
"service",
|
|
8
|
-
"adapter_path",
|
|
9
|
-
"contract_path",
|
|
10
|
-
"target_base_url",
|
|
11
|
-
"default_viewport",
|
|
12
|
-
"screens",
|
|
13
|
-
"summary"
|
|
14
|
-
],
|
|
15
|
-
"properties": {
|
|
16
|
-
"generated_at": {
|
|
17
|
-
"type": "string"
|
|
18
|
-
},
|
|
19
|
-
"service": {
|
|
20
|
-
"type": "string"
|
|
21
|
-
},
|
|
22
|
-
"adapter_path": {
|
|
23
|
-
"type": "string"
|
|
24
|
-
},
|
|
25
|
-
"contract_path": {
|
|
26
|
-
"type": "string"
|
|
27
|
-
},
|
|
28
|
-
"target_base_url": {
|
|
29
|
-
"type": "string"
|
|
30
|
-
},
|
|
31
|
-
"default_viewport": {
|
|
32
|
-
"type": "object",
|
|
33
|
-
"required": ["width", "height"],
|
|
34
|
-
"properties": {
|
|
35
|
-
"width": { "type": "number" },
|
|
36
|
-
"height": { "type": "number" }
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"screens": {
|
|
40
|
-
"type": "array",
|
|
41
|
-
"items": {
|
|
42
|
-
"type": "object",
|
|
43
|
-
"required": ["id", "route", "status", "diff_ratio"],
|
|
44
|
-
"properties": {
|
|
45
|
-
"id": { "type": "string" },
|
|
46
|
-
"title": { "type": ["string", "null"] },
|
|
47
|
-
"route": { "type": "string" },
|
|
48
|
-
"tags": {
|
|
49
|
-
"type": "array",
|
|
50
|
-
"items": { "type": "string" }
|
|
51
|
-
},
|
|
52
|
-
"status": { "type": "string" },
|
|
53
|
-
"diff_ratio": { "type": "number" },
|
|
54
|
-
"max_diff_ratio": { "type": "number" },
|
|
55
|
-
"reference_image": { "type": ["string", "null"] },
|
|
56
|
-
"actual_image": { "type": ["string", "null"] },
|
|
57
|
-
"diff_image": { "type": ["string", "null"] },
|
|
58
|
-
"detail": { "type": "string" },
|
|
59
|
-
"target_url": { "type": "string" }
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"summary": {
|
|
64
|
-
"type": "object",
|
|
65
|
-
"required": ["total", "passed", "failed", "missing_reference", "capture_error", "matched"],
|
|
66
|
-
"properties": {
|
|
67
|
-
"total": { "type": "number" },
|
|
68
|
-
"passed": { "type": "number" },
|
|
69
|
-
"failed": { "type": "number" },
|
|
70
|
-
"missing_reference": { "type": "number" },
|
|
71
|
-
"capture_error": { "type": "number" },
|
|
72
|
-
"matched": { "type": "boolean" }
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"title": "UIParityRouteGapReport",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"required": [
|
|
6
|
-
"generated_at",
|
|
7
|
-
"service",
|
|
8
|
-
"screens_path",
|
|
9
|
-
"routes_path",
|
|
10
|
-
"summary",
|
|
11
|
-
"screens"
|
|
12
|
-
],
|
|
13
|
-
"properties": {
|
|
14
|
-
"generated_at": {
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
17
|
-
"service": {
|
|
18
|
-
"type": "string"
|
|
19
|
-
},
|
|
20
|
-
"screens_path": {
|
|
21
|
-
"type": "string"
|
|
22
|
-
},
|
|
23
|
-
"routes_path": {
|
|
24
|
-
"type": "string"
|
|
25
|
-
},
|
|
26
|
-
"summary": {
|
|
27
|
-
"type": "object",
|
|
28
|
-
"required": ["total", "direct", "shared", "stateful", "missing"],
|
|
29
|
-
"properties": {
|
|
30
|
-
"total": { "type": "number" },
|
|
31
|
-
"direct": { "type": "number" },
|
|
32
|
-
"shared": { "type": "number" },
|
|
33
|
-
"stateful": { "type": "number" },
|
|
34
|
-
"missing": { "type": "number" },
|
|
35
|
-
"coverage_ratio": { "type": "number" },
|
|
36
|
-
"explicit_bindings": { "type": "number" },
|
|
37
|
-
"strong_evidence": { "type": "number" },
|
|
38
|
-
"medium_evidence": { "type": "number" },
|
|
39
|
-
"weak_evidence": { "type": "number" },
|
|
40
|
-
"with_notes": { "type": "number" },
|
|
41
|
-
"with_tags": { "type": "number" },
|
|
42
|
-
"duplicate_route_groups": { "type": "number" }
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"duplicate_route_groups": {
|
|
46
|
-
"type": "array",
|
|
47
|
-
"items": {
|
|
48
|
-
"type": "object",
|
|
49
|
-
"required": ["route", "screen_ids"],
|
|
50
|
-
"properties": {
|
|
51
|
-
"route": { "type": "string" },
|
|
52
|
-
"screen_ids": {
|
|
53
|
-
"type": "array",
|
|
54
|
-
"items": { "type": "string" }
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"screens": {
|
|
60
|
-
"type": "array",
|
|
61
|
-
"items": {
|
|
62
|
-
"type": "object",
|
|
63
|
-
"required": ["id", "title", "status"],
|
|
64
|
-
"properties": {
|
|
65
|
-
"id": { "type": "string" },
|
|
66
|
-
"title": { "type": "string" },
|
|
67
|
-
"route": { "type": ["string", "null"] },
|
|
68
|
-
"binding": { "type": "string" },
|
|
69
|
-
"binding_source": { "type": "string" },
|
|
70
|
-
"coverage_state": { "type": "string" },
|
|
71
|
-
"evidence_level": { "type": "string" },
|
|
72
|
-
"route_defined": { "type": "boolean" },
|
|
73
|
-
"has_notes": { "type": "boolean" },
|
|
74
|
-
"has_tags": { "type": "boolean" },
|
|
75
|
-
"duplicate_route_ids": {
|
|
76
|
-
"type": "array",
|
|
77
|
-
"items": { "type": "string" }
|
|
78
|
-
},
|
|
79
|
-
"tags": {
|
|
80
|
-
"type": "array",
|
|
81
|
-
"items": { "type": "string" }
|
|
82
|
-
},
|
|
83
|
-
"status": {
|
|
84
|
-
"type": "string",
|
|
85
|
-
"enum": ["direct", "shared", "stateful", "missing"]
|
|
86
|
-
},
|
|
87
|
-
"notes": {
|
|
88
|
-
"type": "array",
|
|
89
|
-
"items": { "type": "string" }
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|