akari-video 0.1.0
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/LICENSE +21 -0
- package/README.md +81 -0
- package/bin/akari.mjs +14 -0
- package/package.json +42 -0
- package/src/cli.mjs +140 -0
- package/src/messages.mjs +100 -0
- package/src/path-lookup.mjs +47 -0
- package/src/project-state.mjs +25 -0
- package/src/repo-assets.mjs +59 -0
- package/src/task-labels.mjs +30 -0
- package/src/update-check.mjs +189 -0
- package/vendor/packages/project-scaffold/package.json +11 -0
- package/vendor/packages/project-scaffold/src/index.mjs +523 -0
- package/vendor/packages/project-scaffold/test/create-project.test.mjs +81 -0
- package/vendor/packages/project-scaffold/test/skill-adapter-link.test.mjs +204 -0
- package/vendor/packages/schemas/analysis.schema.json +475 -0
- package/vendor/packages/schemas/asset-meta.schema.json +225 -0
- package/vendor/packages/schemas/avatar-rendition.schema.json +65 -0
- package/vendor/packages/schemas/avatar.schema.json +178 -0
- package/vendor/packages/schemas/bin/validate-asset.mjs +597 -0
- package/vendor/packages/schemas/bin/validate-avatar.mjs +486 -0
- package/vendor/packages/schemas/bin/validate-captions.mjs +316 -0
- package/vendor/packages/schemas/bin/validate-connections.mjs +295 -0
- package/vendor/packages/schemas/bin/validate-edit.mjs +766 -0
- package/vendor/packages/schemas/bin/validate-intake.mjs +185 -0
- package/vendor/packages/schemas/bin/validate-interpretation.mjs +515 -0
- package/vendor/packages/schemas/bin/validate-plan-comments.mjs +170 -0
- package/vendor/packages/schemas/bin/validate-plan.mjs +365 -0
- package/vendor/packages/schemas/bin/validate-recipe.mjs +267 -0
- package/vendor/packages/schemas/bin/validate-research-plan.mjs +510 -0
- package/vendor/packages/schemas/bin/validate-review.mjs +427 -0
- package/vendor/packages/schemas/captions.schema.json +141 -0
- package/vendor/packages/schemas/connections.schema.json +153 -0
- package/vendor/packages/schemas/edit.schema.json +437 -0
- package/vendor/packages/schemas/examples/analysis-person-matte-valid/analysis.json +18 -0
- package/vendor/packages/schemas/examples/captions-text-style-background-mode-invalid/captions.json +18 -0
- package/vendor/packages/schemas/examples/captions-text-style-color-non-hex-invalid/captions.json +14 -0
- package/vendor/packages/schemas/examples/captions-text-style-default-only-valid/captions.json +27 -0
- package/vendor/packages/schemas/examples/captions-text-style-omitted-valid/captions.json +11 -0
- package/vendor/packages/schemas/examples/captions-text-style-opacity-out-of-range-invalid/captions.json +8 -0
- package/vendor/packages/schemas/examples/captions-text-style-record-override-valid/captions.json +27 -0
- package/vendor/packages/schemas/examples/captions-text-style-size-non-positive-invalid/captions.json +14 -0
- package/vendor/packages/schemas/examples/captions-text-style-zone-invalid/captions.json +16 -0
- package/vendor/packages/schemas/examples/connections-v0-invalid-auth/connections.json +32 -0
- package/vendor/packages/schemas/examples/connections-v0-memory-valid/connections.json +42 -0
- package/vendor/packages/schemas/examples/edit-beats-duplicate-id/edit.json +11 -0
- package/vendor/packages/schemas/examples/edit-beats-invalid-id/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-beats-missing-kind/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-beats-strength-out-of-range/edit.json +11 -0
- package/vendor/packages/schemas/examples/edit-beats-v0-src-present/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-beats-v0-valid/edit.json +29 -0
- package/vendor/packages/schemas/examples/edit-beats-v1-src-missing-reference/edit.json +14 -0
- package/vendor/packages/schemas/examples/edit-beats-v1-valid/edit.json +37 -0
- package/vendor/packages/schemas/examples/edit-bgm-ducking-invalid/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-bgm-fade-invalid/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-bgm-fade-valid/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-bgm-in-invalid/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-bgm-in-valid/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-bgm-missing-path/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-bgm-null-valid/edit.json +11 -0
- package/vendor/packages/schemas/examples/edit-bgm-sfx-gain-out-of-range/edit.json +11 -0
- package/vendor/packages/schemas/examples/edit-bgm-sfx-valid/edit.json +23 -0
- package/vendor/packages/schemas/examples/edit-chroma-key-invalid/edit.json +7 -0
- package/vendor/packages/schemas/examples/edit-cuts-at-negative-invalid/edit.json +7 -0
- package/vendor/packages/schemas/examples/edit-cuts-at-track-valid/edit.json +20 -0
- package/vendor/packages/schemas/examples/edit-cuts-opacity-out-of-range-invalid/edit.json +16 -0
- package/vendor/packages/schemas/examples/edit-cuts-track-invalid/edit.json +7 -0
- package/vendor/packages/schemas/examples/edit-cuts-transform-full-valid/edit.json +17 -0
- package/vendor/packages/schemas/examples/edit-cuts-transform-omitted-valid/edit.json +9 -0
- package/vendor/packages/schemas/examples/edit-cuts-transform-partial-valid/edit.json +16 -0
- package/vendor/packages/schemas/examples/edit-cuts-transform-rotate-invalid/edit.json +16 -0
- package/vendor/packages/schemas/examples/edit-cuts-transform-scale-invalid/edit.json +16 -0
- package/vendor/packages/schemas/examples/edit-cuts-transform-unknown-key-invalid/edit.json +16 -0
- package/vendor/packages/schemas/examples/edit-direction-intensity-negative/edit.json +8 -0
- package/vendor/packages/schemas/examples/edit-direction-intensity-not-integer/edit.json +8 -0
- package/vendor/packages/schemas/examples/edit-direction-intensity-out-of-range/edit.json +8 -0
- package/vendor/packages/schemas/examples/edit-direction-missing-preset/edit.json +8 -0
- package/vendor/packages/schemas/examples/edit-direction-overrides-array/edit.json +8 -0
- package/vendor/packages/schemas/examples/edit-direction-preset-only/edit.json +8 -0
- package/vendor/packages/schemas/examples/edit-direction-valid/edit.json +8 -0
- package/vendor/packages/schemas/examples/edit-emphasis-words-empty-word/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-emphasis-words-invalid-id/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-emphasis-words-missing-emotion/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-emphasis-words-range-invalid/edit.json +11 -0
- package/vendor/packages/schemas/examples/edit-emphasis-words-v0-src-present/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-emphasis-words-v0-valid/edit.json +32 -0
- package/vendor/packages/schemas/examples/edit-emphasis-words-v1-valid/edit.json +39 -0
- package/vendor/packages/schemas/examples/edit-layers-invalid-bad-blend/edit.json +17 -0
- package/vendor/packages/schemas/examples/edit-layers-invalid-chroma-key-on-baked/edit.json +17 -0
- package/vendor/packages/schemas/examples/edit-layers-invalid-duplicate-id/edit.json +11 -0
- package/vendor/packages/schemas/examples/edit-layers-track-invalid/edit.json +8 -0
- package/vendor/packages/schemas/examples/edit-layers-valid/edit.json +31 -0
- package/vendor/packages/schemas/examples/edit-look-invalid/edit.json +7 -0
- package/vendor/packages/schemas/examples/edit-master-invalid/edit.json +8 -0
- package/vendor/packages/schemas/examples/edit-narration-gain-out-of-range/edit.json +18 -0
- package/vendor/packages/schemas/examples/edit-narration-invalid-id/edit.json +17 -0
- package/vendor/packages/schemas/examples/edit-narration-missing-provenance/edit.json +16 -0
- package/vendor/packages/schemas/examples/edit-narration-valid/edit.json +36 -0
- package/vendor/packages/schemas/examples/edit-narration-voicevox-missing-credit/edit.json +20 -0
- package/vendor/packages/schemas/examples/edit-render-basics-valid/edit.json +22 -0
- package/vendor/packages/schemas/examples/edit-sfx-in-invalid/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-sfx-in-out-valid/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-sfx-out-invalid/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-sfx-out-type-invalid/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-sfx-t-invalid/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-sfx-track-invalid/edit.json +8 -0
- package/vendor/packages/schemas/examples/edit-speed-invalid/edit.json +7 -0
- package/vendor/packages/schemas/examples/edit-timeline-declared-valid/edit.json +14 -0
- package/vendor/packages/schemas/examples/edit-timeline-duplicate-id-invalid/edit.json +13 -0
- package/vendor/packages/schemas/examples/edit-timeline-interleaved-valid/edit.json +22 -0
- package/vendor/packages/schemas/examples/edit-timeline-omitted-valid/edit.json +7 -0
- package/vendor/packages/schemas/examples/edit-timeline-ref-invalid/edit.json +13 -0
- package/vendor/packages/schemas/examples/edit-tracks-section-invalid/edit.json +8 -0
- package/vendor/packages/schemas/examples/edit-tracks-section-valid/edit.json +13 -0
- package/vendor/packages/schemas/examples/edit-transition-invalid/edit.json +10 -0
- package/vendor/packages/schemas/examples/edit-v0-sample/edit.json +27 -0
- package/vendor/packages/schemas/examples/edit-v0-sample/overlays/cap-a.html +17 -0
- package/vendor/packages/schemas/examples/edit-v0-sample/overlays/cap-b.html +17 -0
- package/vendor/packages/schemas/examples/edit-v1-bgm-sfx-valid/edit.json +13 -0
- package/vendor/packages/schemas/examples/edit-v1-sample/edit.json +14 -0
- package/vendor/packages/schemas/examples/plan-comments-v0-sample/plan-comments.json +19 -0
- package/vendor/packages/schemas/examples/plan-v0-sample/plan.json +39 -0
- package/vendor/packages/schemas/examples/recipe-v0-sample/product-demo-quick-cuts.json +23 -0
- package/vendor/packages/schemas/examples/review-v1-sample/review.json +11 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-avatar-md-136-lines/AVATAR.md +159 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-avatar-md-136-lines/avatar.json +22 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-avatar-md-136-lines/renditions/2d-bustup/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-avatar-md-136-lines/renditions/2d-bustup/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-avatar-md-136-lines/renditions/2d-bustup/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-avatar-md-136-lines/renditions/2d-bustup/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-avatar-md-136-lines/renditions/2d-bustup/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-avatar-md-136-lines/renditions/2d-fullbody/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-avatar-md-136-lines/renditions/2d-fullbody/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-avatar-md-136-lines/renditions/2d-fullbody/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-avatar-md-136-lines/renditions/2d-fullbody/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-avatar-md-136-lines/renditions/2d-fullbody/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-default-role/AVATAR.md +30 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-default-role/avatar.json +22 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-default-role/renditions/2d-bustup/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-default-role/renditions/2d-bustup/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-default-role/renditions/2d-bustup/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-default-role/renditions/2d-bustup/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-default-role/renditions/2d-bustup/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-default-role/renditions/2d-fullbody/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-default-role/renditions/2d-fullbody/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-default-role/renditions/2d-fullbody/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-default-role/renditions/2d-fullbody/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-default-role/renditions/2d-fullbody/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-energy-out-of-range/AVATAR.md +30 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-energy-out-of-range/avatar.json +22 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-energy-out-of-range/renditions/2d-bustup/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-energy-out-of-range/renditions/2d-bustup/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-energy-out-of-range/renditions/2d-bustup/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-energy-out-of-range/renditions/2d-bustup/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-energy-out-of-range/renditions/2d-bustup/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-energy-out-of-range/renditions/2d-fullbody/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-energy-out-of-range/renditions/2d-fullbody/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-energy-out-of-range/renditions/2d-fullbody/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-energy-out-of-range/renditions/2d-fullbody/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-energy-out-of-range/renditions/2d-fullbody/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-asset/AVATAR.md +30 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-asset/avatar.json +22 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-asset/renditions/2d-bustup/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-asset/renditions/2d-bustup/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-asset/renditions/2d-bustup/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-asset/renditions/2d-bustup/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-asset/renditions/2d-fullbody/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-asset/renditions/2d-fullbody/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-asset/renditions/2d-fullbody/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-asset/renditions/2d-fullbody/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-asset/renditions/2d-fullbody/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-rights/AVATAR.md +30 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-rights/avatar.json +21 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-rights/renditions/2d-bustup/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-rights/renditions/2d-bustup/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-rights/renditions/2d-bustup/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-rights/renditions/2d-bustup/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-rights/renditions/2d-bustup/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-rights/renditions/2d-fullbody/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-rights/renditions/2d-fullbody/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-rights/renditions/2d-fullbody/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-rights/renditions/2d-fullbody/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-missing-rights/renditions/2d-fullbody/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-no-avatar-json/AVATAR.md +30 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-in-catalog/catalog/avatars/impostor/AVATAR.md +30 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-in-catalog/catalog/avatars/impostor/avatar.json +22 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-in-catalog/catalog/avatars/impostor/renditions/2d-bustup/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-in-catalog/catalog/avatars/impostor/renditions/2d-bustup/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-in-catalog/catalog/avatars/impostor/renditions/2d-bustup/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-in-catalog/catalog/avatars/impostor/renditions/2d-bustup/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-in-catalog/catalog/avatars/impostor/renditions/2d-bustup/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-in-catalog/catalog/avatars/impostor/renditions/2d-fullbody/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-in-catalog/catalog/avatars/impostor/renditions/2d-fullbody/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-in-catalog/catalog/avatars/impostor/renditions/2d-fullbody/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-in-catalog/catalog/avatars/impostor/renditions/2d-fullbody/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-in-catalog/catalog/avatars/impostor/renditions/2d-fullbody/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-sellable/AVATAR.md +30 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-sellable/avatar.json +22 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-sellable/renditions/2d-bustup/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-sellable/renditions/2d-bustup/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-sellable/renditions/2d-bustup/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-sellable/renditions/2d-bustup/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-sellable/renditions/2d-bustup/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-sellable/renditions/2d-fullbody/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-sellable/renditions/2d-fullbody/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-sellable/renditions/2d-fullbody/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-sellable/renditions/2d-fullbody/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/invalid-person-sellable/renditions/2d-fullbody/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/unsupported-version/AVATAR.md +30 -0
- package/vendor/packages/schemas/fixtures/avatar/unsupported-version/avatar.json +22 -0
- package/vendor/packages/schemas/fixtures/avatar/unsupported-version/renditions/2d-bustup/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/unsupported-version/renditions/2d-bustup/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/unsupported-version/renditions/2d-bustup/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/unsupported-version/renditions/2d-bustup/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/unsupported-version/renditions/2d-bustup/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/unsupported-version/renditions/2d-fullbody/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/unsupported-version/renditions/2d-fullbody/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/unsupported-version/renditions/2d-fullbody/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/unsupported-version/renditions/2d-fullbody/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/unsupported-version/renditions/2d-fullbody/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/valid/AVATAR.md +30 -0
- package/vendor/packages/schemas/fixtures/avatar/valid/avatar.json +22 -0
- package/vendor/packages/schemas/fixtures/avatar/valid/renditions/2d-bustup/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/valid/renditions/2d-bustup/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/valid/renditions/2d-bustup/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/valid/renditions/2d-bustup/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/valid/renditions/2d-bustup/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/valid/renditions/2d-fullbody/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/valid/renditions/2d-fullbody/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/valid/renditions/2d-fullbody/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/valid/renditions/2d-fullbody/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/valid/renditions/2d-fullbody/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/valid-unknown-fields/AVATAR.md +30 -0
- package/vendor/packages/schemas/fixtures/avatar/valid-unknown-fields/avatar.json +23 -0
- package/vendor/packages/schemas/fixtures/avatar/valid-unknown-fields/renditions/2d-bustup/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/valid-unknown-fields/renditions/2d-bustup/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/valid-unknown-fields/renditions/2d-bustup/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/valid-unknown-fields/renditions/2d-bustup/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/valid-unknown-fields/renditions/2d-bustup/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/valid-unknown-fields/renditions/2d-fullbody/happy.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/valid-unknown-fields/renditions/2d-fullbody/neutral-half.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/valid-unknown-fields/renditions/2d-fullbody/neutral-open.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/valid-unknown-fields/renditions/2d-fullbody/neutral.png +0 -0
- package/vendor/packages/schemas/fixtures/avatar/valid-unknown-fields/renditions/2d-fullbody/rendition.json +18 -0
- package/vendor/packages/schemas/fixtures/avatar/valid-voice-only/AVATAR.md +28 -0
- package/vendor/packages/schemas/fixtures/avatar/valid-voice-only/avatar.json +19 -0
- package/vendor/packages/schemas/fixtures/intake/invalid-duplicate-task/intake.json +8 -0
- package/vendor/packages/schemas/fixtures/intake/invalid-missing-submitted-at/intake.json +8 -0
- package/vendor/packages/schemas/fixtures/intake/invalid-target-exclusive/intake.json +8 -0
- package/vendor/packages/schemas/fixtures/intake/invalid-unknown-task/intake.json +8 -0
- package/vendor/packages/schemas/fixtures/intake/valid-draft/intake.json +8 -0
- package/vendor/packages/schemas/fixtures/intake/valid-submitted/intake.json +8 -0
- package/vendor/packages/schemas/fixtures/plan/invalid-bad-confidence-enum/plan.json +15 -0
- package/vendor/packages/schemas/fixtures/plan/invalid-constraint-bad-applies-to/plan.json +18 -0
- package/vendor/packages/schemas/fixtures/plan/invalid-dangling-media-path/plan.json +15 -0
- package/vendor/packages/schemas/fixtures/plan/invalid-duplicate-slot-id/plan.json +25 -0
- package/vendor/packages/schemas/fixtures/plan/invalid-missing-required-field/plan.json +14 -0
- package/vendor/packages/schemas/fixtures/plan/unsupported-version/plan.json +4 -0
- package/vendor/packages/schemas/fixtures/plan/valid/plan.json +40 -0
- package/vendor/packages/schemas/fixtures/plan/valid/scaffold/beat-01.png +1 -0
- package/vendor/packages/schemas/fixtures/plan/valid/scaffold/beat-01.wav +1 -0
- package/vendor/packages/schemas/fixtures/plan/valid/scaffold/broll.mp4 +1 -0
- package/vendor/packages/schemas/fixtures/plan/warns-confidence-gap/plan.json +28 -0
- package/vendor/packages/schemas/fixtures/plan-comments/invalid-bad-pass/plan-comments.json +6 -0
- package/vendor/packages/schemas/fixtures/plan-comments/invalid-bad-target-id-for-index-kind/plan-comments.json +13 -0
- package/vendor/packages/schemas/fixtures/plan-comments/invalid-bad-target-kind/plan-comments.json +13 -0
- package/vendor/packages/schemas/fixtures/plan-comments/invalid-comments-not-array/plan-comments.json +6 -0
- package/vendor/packages/schemas/fixtures/plan-comments/invalid-missing-comment-field/plan-comments.json +12 -0
- package/vendor/packages/schemas/fixtures/plan-comments/invalid-missing-version/plan-comments.json +5 -0
- package/vendor/packages/schemas/fixtures/plan-comments/unsupported-version/plan-comments.json +6 -0
- package/vendor/packages/schemas/fixtures/plan-comments/valid/plan-comments.json +19 -0
- package/vendor/packages/schemas/fixtures/plan-comments/valid-unknown-fields/plan-comments.json +15 -0
- package/vendor/packages/schemas/fixtures/recipe/invalid-bad-aspect/recipe.json +13 -0
- package/vendor/packages/schemas/fixtures/recipe/invalid-bad-confirmed-by/recipe.json +13 -0
- package/vendor/packages/schemas/fixtures/recipe/invalid-bad-name-casing/recipe.json +13 -0
- package/vendor/packages/schemas/fixtures/recipe/invalid-bad-workflow/recipe.json +13 -0
- package/vendor/packages/schemas/fixtures/recipe/invalid-duplicate-overlay-kind/recipe.json +13 -0
- package/vendor/packages/schemas/fixtures/recipe/invalid-empty-confirmed/recipe.json +9 -0
- package/vendor/packages/schemas/fixtures/recipe/invalid-empty-narration/recipe.json +13 -0
- package/vendor/packages/schemas/fixtures/recipe/invalid-missing-version/recipe.json +12 -0
- package/vendor/packages/schemas/fixtures/recipe/invalid-provenance-mismatch/recipe.json +15 -0
- package/vendor/packages/schemas/fixtures/recipe/invalid-source-project-path/recipe.json +13 -0
- package/vendor/packages/schemas/fixtures/recipe/unsupported-version/recipe.json +13 -0
- package/vendor/packages/schemas/fixtures/recipe/valid/recipe.json +15 -0
- package/vendor/packages/schemas/fixtures/recipe/valid-unknown-fields/recipe.json +16 -0
- package/vendor/packages/schemas/fixtures/review/invalid-malformed-canvas-target/review.json +6 -0
- package/vendor/packages/schemas/fixtures/review/invalid-malformed-doc-target/review.json +6 -0
- package/vendor/packages/schemas/fixtures/review/invalid-malformed-image-target/review.json +6 -0
- package/vendor/packages/schemas/fixtures/review/invalid-strokes-bad-space/review.json +6 -0
- package/vendor/packages/schemas/fixtures/review/invalid-strokes-canvas-rect-with-frame/review.json +6 -0
- package/vendor/packages/schemas/fixtures/review/invalid-strokes-image-rect-with-frame/review.json +6 -0
- package/vendor/packages/schemas/fixtures/review/invalid-video-null-sourcet/review.json +6 -0
- package/vendor/packages/schemas/fixtures/review/valid/review.json +8 -0
- package/vendor/packages/schemas/fixtures/review/valid-canvas-target/review.json +7 -0
- package/vendor/packages/schemas/fixtures/review/valid-input-session/review.json +6 -0
- package/vendor/packages/schemas/fixtures/review/valid-strokes/review.json +8 -0
- package/vendor/packages/schemas/intake.schema.json +117 -0
- package/vendor/packages/schemas/interpretation.schema.json +419 -0
- package/vendor/packages/schemas/package.json +18 -0
- package/vendor/packages/schemas/plan-comments.schema.json +52 -0
- package/vendor/packages/schemas/plan.schema.json +129 -0
- package/vendor/packages/schemas/recipe.schema.json +106 -0
- package/vendor/packages/schemas/research-plan.schema.json +230 -0
- package/vendor/packages/schemas/review.schema.json +227 -0
- package/vendor/packages/schemas/test/fixtures/asset/invalid-matched-by/audio/whoosh-transition/meta.json +31 -0
- package/vendor/packages/schemas/test/fixtures/asset/valid-catalog/audio/whoosh-transition/meta.json +31 -0
- package/vendor/packages/schemas/test/fixtures/asset/valid-library/telop/lower-third-clean/fragment.html +139 -0
- package/vendor/packages/schemas/test/fixtures/asset/valid-library/telop/lower-third-clean/meta.json +32 -0
- package/vendor/packages/schemas/test/fixtures/asset/valid-library/telop/lower-third-clean/preview.png +0 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/invalid-analyses-missing-ref/interpretation.json +131 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/invalid-analyses-ref-mismatch/interpretation.json +132 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/invalid-arc-empty-refs/interpretation.json +126 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/invalid-context-missing-interview/interpretation.json +126 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/invalid-context-null-intake/interpretation.json +133 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/invalid-dangling-arc-ref/interpretation.json +132 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/invalid-duplicate-asset-ref/interpretation.json +132 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/invalid-flag-bad-type/interpretation.json +132 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/invalid-flag-missing-evidence/interpretation.json +131 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/invalid-missing-required-field/interpretation.json +131 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/invalid-open-question-answer-present-when-open/interpretation.json +133 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/invalid-open-question-answered-without-answer/interpretation.json +131 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/invalid-relations-dangling-target/interpretation.json +132 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/invalid-relations-self-reference/interpretation.json +132 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/invalid-section-end-before-start/interpretation.json +132 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/invalid-section-mismatched-start-end/interpretation.json +131 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/invalid-unknown-root-field/interpretation.json +133 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/unsupported-version/interpretation.json +132 -0
- package/vendor/packages/schemas/test/fixtures/interpretation/valid/interpretation.json +132 -0
- package/vendor/packages/schemas/test/fixtures/research-plan/invalid-bad-category-enum/research-plan.json +128 -0
- package/vendor/packages/schemas/test/fixtures/research-plan/invalid-dangling-chapter-ref/research-plan.json +128 -0
- package/vendor/packages/schemas/test/fixtures/research-plan/invalid-dangling-shot-list-ref/research-plan.json +128 -0
- package/vendor/packages/schemas/test/fixtures/research-plan/invalid-decided-at-mismatch/research-plan.json +128 -0
- package/vendor/packages/schemas/test/fixtures/research-plan/invalid-duplicate-candidate-id/research-plan.json +128 -0
- package/vendor/packages/schemas/test/fixtures/research-plan/invalid-japan-sns-notes-empty/research-plan.json +128 -0
- package/vendor/packages/schemas/test/fixtures/research-plan/invalid-missing-required-field/research-plan.json +127 -0
- package/vendor/packages/schemas/test/fixtures/research-plan/invalid-selected-missing-candidate/research-plan.json +128 -0
- package/vendor/packages/schemas/test/fixtures/research-plan/invalid-structure-confirmed-mismatch/research-plan.json +128 -0
- package/vendor/packages/schemas/test/fixtures/research-plan/unsupported-version/research-plan.json +128 -0
- package/vendor/packages/schemas/test/fixtures/research-plan/valid/research-plan.json +79 -0
- package/vendor/packages/schemas/test/fixtures/research-plan/warns-empty-sources/research-plan.json +120 -0
- package/vendor/packages/schemas/test/validate-asset.test.mjs +38 -0
- package/vendor/packages/schemas/test/validate-avatar.test.mjs +109 -0
- package/vendor/packages/schemas/test/validate-captions.test.mjs +59 -0
- package/vendor/packages/schemas/test/validate-connections.test.mjs +31 -0
- package/vendor/packages/schemas/test/validate-edit.test.mjs +490 -0
- package/vendor/packages/schemas/test/validate-intake.test.mjs +66 -0
- package/vendor/packages/schemas/test/validate-interpretation.test.mjs +167 -0
- package/vendor/packages/schemas/test/validate-plan-comments.test.mjs +70 -0
- package/vendor/packages/schemas/test/validate-plan.test.mjs +67 -0
- package/vendor/packages/schemas/test/validate-recipe.test.mjs +107 -0
- package/vendor/packages/schemas/test/validate-research-plan.test.mjs +98 -0
- package/vendor/packages/schemas/test/validate-review.test.mjs +102 -0
- package/vendor/skills/.gitkeep +0 -0
- package/vendor/skills/address-review/SKILL.md +84 -0
- package/vendor/skills/address-review/bin/core/review-store.mjs +210 -0
- package/vendor/skills/address-review/bin/list.mjs +198 -0
- package/vendor/skills/address-review/bin/respond.mjs +89 -0
- package/vendor/skills/address-review/dev-fixtures/fixture-project/captions.json +22 -0
- package/vendor/skills/address-review/dev-fixtures/fixture-project/edit.json +12 -0
- package/vendor/skills/address-review/dev-fixtures/fixture-project/review.json +100 -0
- package/vendor/skills/address-review/test/review-store.test.mjs +201 -0
- package/vendor/skills/analyze-footage/SKILL.md +35 -0
- package/vendor/skills/analyze-footage/analysis-json.md +185 -0
- package/vendor/skills/analyze-footage/bin/person-matte/person-matte-helper.swift +343 -0
- package/vendor/skills/analyze-footage/bin/person-matte/person-matte.mjs +415 -0
- package/vendor/skills/analyze-footage/bin/speechanalyzer-helper.swift +138 -0
- package/vendor/skills/analyze-footage/bin/transcribe-cloud.mjs +486 -0
- package/vendor/skills/analyze-footage/bin/transcribe-sa.mjs +189 -0
- package/vendor/skills/analyze-footage/events-and-hooks.md +93 -0
- package/vendor/skills/analyze-footage/keyframes-and-review.md +130 -0
- package/vendor/skills/analyze-footage/media-and-transcript.md +219 -0
- package/vendor/skills/analyze-footage/person-matte.md +121 -0
- package/vendor/skills/analyze-footage/references/akari-data-contract.md +18 -0
- package/vendor/skills/analyze-footage/references/asset.meta.example.json +23 -0
- package/vendor/skills/analyze-footage/test/fixtures/scribe-punctuation-inflation.json +17 -0
- package/vendor/skills/analyze-footage/test/normalize-scribe.test.mjs +76 -0
- package/vendor/skills/analyze-footage/workflow.md +95 -0
- package/vendor/skills/analyze-project/SKILL.md +58 -0
- package/vendor/skills/analyze-project/collect.md +51 -0
- package/vendor/skills/analyze-project/decision-record.md +55 -0
- package/vendor/skills/analyze-project/interpretation.md +128 -0
- package/vendor/skills/analyze-project/interview.md +66 -0
- package/vendor/skills/analyze-project/references/interpretation-shape.md +42 -0
- package/vendor/skills/analyze-project/references/open-questions-examples.md +35 -0
- package/vendor/skills/analyze-project/validate-and-render.md +66 -0
- package/vendor/skills/bake-3d/SKILL.md +78 -0
- package/vendor/skills/compile-review-session/SKILL.md +78 -0
- package/vendor/skills/compile-review-session/bin/compile-review-session.mjs +799 -0
- package/vendor/skills/compile-review-session/bin/core/canvas-compiler.mjs +105 -0
- package/vendor/skills/compile-review-session/bin/core/compiler.mjs +221 -0
- package/vendor/skills/compile-review-session/bin/core/review-store.mjs +74 -0
- package/vendor/skills/compile-review-session/bin/core/time-mapping.mjs +370 -0
- package/vendor/skills/compile-review-session/bin/core/transcription.mjs +721 -0
- package/vendor/skills/compile-review-session/compilation-rules.md +98 -0
- package/vendor/skills/compile-review-session/dev-fixtures/README.md +24 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0001/audio.wav +0 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0001/edit.snapshot.json +12 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0001/events.jsonl +2 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0001/session.json +11 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0002/audio.wav +0 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0002/edit.snapshot.json +12 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0002/events.jsonl +5 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0002/session.json +11 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0003/audio.wav +0 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0003/edit.snapshot.json +12 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0003/events.jsonl +19 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0003/session.json +11 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0004/audio.wav +0 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0004/edit.snapshot.json +12 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0004/events.jsonl +2 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0004/session.json +11 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0005/session.json +1 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0006/audio.wav +0 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0006/events.jsonl +2 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0006/session.json +11 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0007/audio.wav +0 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0007/edit.snapshot.json +13 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0007/events.jsonl +9 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0007/session.json +11 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0008/audio.wav +0 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0008/edit.snapshot.json +12 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0008/events.jsonl +2 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0008/session.json +11 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review/sessions/s-0008/transcript.json +9 -0
- package/vendor/skills/compile-review-session/dev-fixtures/fixture-project/review.json +7 -0
- package/vendor/skills/compile-review-session/test/canvas-compiler.test.mjs +283 -0
- package/vendor/skills/compile-review-session/test/compiler.test.mjs +458 -0
- package/vendor/skills/create-project/SKILL.md +46 -0
- package/vendor/skills/create-project/bin/create-project.mjs +88 -0
- package/vendor/skills/edit-lint/SKILL.md +73 -0
- package/vendor/skills/edit-plan/SKILL.md +64 -0
- package/vendor/skills/edit-plan/approvals-and-generation.md +106 -0
- package/vendor/skills/edit-plan/avatar-resolution.md +241 -0
- package/vendor/skills/edit-plan/beat-sync.md +545 -0
- package/vendor/skills/edit-plan/beats.md +197 -0
- package/vendor/skills/edit-plan/emphasis-detection.md +366 -0
- package/vendor/skills/edit-plan/execution.md +157 -0
- package/vendor/skills/edit-plan/expression-selection.md +290 -0
- package/vendor/skills/edit-plan/plan-json.md +52 -0
- package/vendor/skills/edit-plan/recipe.md +74 -0
- package/vendor/skills/edit-plan/references/asset.decisions.example.json +12 -0
- package/vendor/skills/edit-plan/references/event.example.json +7 -0
- package/vendor/skills/edit-plan/report-guide.md +192 -0
- package/vendor/skills/edit-plan/workflow.md +108 -0
- package/vendor/skills/generate-narration/SKILL.md +40 -0
- package/vendor/skills/generate-narration/assets/reading-script-v1.md +18 -0
- package/vendor/skills/generate-narration/avatar-voice.md +54 -0
- package/vendor/skills/generate-narration/bin/generate-narration.mjs +572 -0
- package/vendor/skills/generate-narration/engines.md +78 -0
- package/vendor/skills/generate-narration/reading-text.md +36 -0
- package/vendor/skills/generate-narration/voice-profile-setup.md +77 -0
- package/vendor/skills/harvest-asset/SKILL.md +132 -0
- package/vendor/skills/manage-connections/SKILL.md +75 -0
- package/vendor/skills/manage-connections/bin/doctor.mjs +341 -0
- package/vendor/skills/overlay-authoring/3d.md +143 -0
- package/vendor/skills/overlay-authoring/SKILL.md +30 -0
- package/vendor/skills/overlay-authoring/motion.md +58 -0
- package/vendor/skills/overlay-authoring/table.md +41 -0
- package/vendor/skills/overlay-authoring/telop.md +69 -0
- package/vendor/skills/overlay-authoring/text-behind-person.md +224 -0
- package/vendor/skills/overlay-authoring/thumbnail.md +126 -0
- package/vendor/skills/render-cut/SKILL.md +66 -0
- package/vendor/skills/research-plan/SKILL.md +75 -0
- package/vendor/skills/research-plan/competitor.md +50 -0
- package/vendor/skills/research-plan/ideate.md +56 -0
- package/vendor/skills/research-plan/shotlist.md +46 -0
- package/vendor/skills/research-plan/storyboard.md +48 -0
- package/vendor/skills/research-plan/trends.md +33 -0
- package/vendor/skills/setup-audio-library/SKILL.md +93 -0
- package/vendor/skills/setup-audio-library/candidate-list.md +72 -0
- package/vendor/skills/setup-audio-library/drop-folder.md +72 -0
- package/vendor/skills/setup-audio-library/gallery.md +43 -0
- package/vendor/skills/setup-library/SKILL.md +33 -0
- package/vendor/skills/setup-library/fetch-and-validate.md +102 -0
- package/vendor/skills/setup-library/starter-pack.md +55 -0
- package/vendor/skills/setup-library/tools-check.md +83 -0
- package/vendor/skills/verify/SKILL.md +137 -0
- package/vendor/templates/project-default/.akari/cache/.gitkeep +0 -0
- package/vendor/templates/project-default/.akari/connections.json +233 -0
- package/vendor/templates/project-default/.akari/diffs/.gitkeep +1 -0
- package/vendor/templates/project-default/.akari/events/.gitkeep +1 -0
- package/vendor/templates/project-default/.akari/reports/.gitkeep +0 -0
- package/vendor/templates/project-default/.akari/sidecars/.gitkeep +1 -0
- package/vendor/templates/project-default/.akari/work/.gitkeep +0 -0
- package/vendor/templates/project-default/.akari/workflow.json +48 -0
- package/vendor/templates/project-default/.claude/settings.json +15 -0
- package/vendor/templates/project-default/.claude/skills/README.md +26 -0
- package/vendor/templates/project-default/AGENTS.md +49 -0
- package/vendor/templates/project-default/CLAUDE.md +35 -0
- package/vendor/templates/project-default/assets/.gitkeep +1 -0
- package/vendor/templates/project-default/exports/.gitkeep +1 -0
- package/vendor/templates/project-default/planning/.gitkeep +1 -0
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// avatar ディレクトリ(avatar.json + AVATAR.md + renditions/*/rendition.json)を検証する。
|
|
4
|
+
// docs/contract-2026-07-26-avatar-registry-v0.md 参照。
|
|
5
|
+
//
|
|
6
|
+
// 検証対象は単一ファイルではなく「1 アバター = 1 ディレクトリ」全体:
|
|
7
|
+
// <avatar-dir>/avatar.json
|
|
8
|
+
// <avatar-dir>/AVATAR.md
|
|
9
|
+
// <avatar-dir>/renditions/<id>/rendition.json + アセット実ファイル
|
|
10
|
+
//
|
|
11
|
+
// schema 構造検証に加え、以下のルール検査を行う:
|
|
12
|
+
// (a) rights 欄必須(欠落 = fail)
|
|
13
|
+
// (b) rights.subject:"person" × rights.distribution:"sellable" = fail
|
|
14
|
+
// (c) rights.subject:"person" のアバターが公開リポ catalog/avatars/ 配下パスにある = fail
|
|
15
|
+
// (d) AVATAR.md が 136 行以上 = fail(上限 135)
|
|
16
|
+
// (e) rendition.json のアセット参照が実ファイルへ解決できない = fail(全数列挙)
|
|
17
|
+
|
|
18
|
+
import fs from "node:fs";
|
|
19
|
+
import path from "node:path";
|
|
20
|
+
import { fileURLToPath } from "node:url";
|
|
21
|
+
|
|
22
|
+
const usage = "使い方: node packages/schemas/bin/validate-avatar.mjs <avatar-dir>";
|
|
23
|
+
const avatarDirArgument = process.argv[2];
|
|
24
|
+
|
|
25
|
+
if (!avatarDirArgument || process.argv.length !== 3) {
|
|
26
|
+
console.error(usage);
|
|
27
|
+
process.exit(2);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if (avatarDirArgument === "--help" || avatarDirArgument === "-h") {
|
|
31
|
+
console.log(usage);
|
|
32
|
+
process.exit(0);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const avatarDir = path.resolve(avatarDirArgument);
|
|
36
|
+
const errors = [];
|
|
37
|
+
|
|
38
|
+
const AVATAR_SCHEMA_PATH = fileURLToPath(new URL("../avatar.schema.json", import.meta.url));
|
|
39
|
+
const RENDITION_SCHEMA_PATH = fileURLToPath(new URL("../avatar-rendition.schema.json", import.meta.url));
|
|
40
|
+
|
|
41
|
+
const AVATAR_MD_MAX_LINES = 135;
|
|
42
|
+
const RENDITION_KINDS = new Set(["2d", "3d", "photo"]);
|
|
43
|
+
const VOICE_LANES = new Set(["voicevox", "fal-clone", "recorded"]);
|
|
44
|
+
const DEFAULT_ROLES = new Set(["explainer", "listener", "tsukkomi", "narrator", "guest"]);
|
|
45
|
+
const RIGHTS_SUBJECTS = new Set(["person", "original", "third_party"]);
|
|
46
|
+
const RIGHTS_DISTRIBUTIONS = new Set(["private", "org", "sellable"]);
|
|
47
|
+
const ID_PATTERN = /^[a-z0-9]+(-[a-z0-9]+)*$/;
|
|
48
|
+
|
|
49
|
+
if (!isDirectory(avatarDir)) {
|
|
50
|
+
fail(`avatar ディレクトリが見つかりません: ${avatarDir}`);
|
|
51
|
+
finish();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
checkSchemaId(AVATAR_SCHEMA_PATH, "urn:akari-video:schema:avatar:v0", "avatar.schema.json");
|
|
55
|
+
checkSchemaId(RENDITION_SCHEMA_PATH, "urn:akari-video:schema:avatar-rendition:v0", "avatar-rendition.schema.json");
|
|
56
|
+
|
|
57
|
+
const avatarJsonPath = path.join(avatarDir, "avatar.json");
|
|
58
|
+
const avatarMdPath = path.join(avatarDir, "AVATAR.md");
|
|
59
|
+
|
|
60
|
+
let avatar;
|
|
61
|
+
if (!isRegularFile(avatarJsonPath)) {
|
|
62
|
+
fail(`avatar.json が見つかりません: ${avatarJsonPath}`);
|
|
63
|
+
} else {
|
|
64
|
+
try {
|
|
65
|
+
avatar = JSON.parse(fs.readFileSync(avatarJsonPath, "utf8"));
|
|
66
|
+
} catch (error) {
|
|
67
|
+
fail(`avatar.json を JSON として読めません: ${messageOf(error)}`);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// ルール (d): AVATAR.md 行数上限
|
|
72
|
+
if (!isRegularFile(avatarMdPath)) {
|
|
73
|
+
fail(`AVATAR.md が見つかりません: ${avatarMdPath}`);
|
|
74
|
+
} else {
|
|
75
|
+
const content = fs.readFileSync(avatarMdPath, "utf8");
|
|
76
|
+
const lineCount = countLines(content);
|
|
77
|
+
if (lineCount > AVATAR_MD_MAX_LINES) {
|
|
78
|
+
fail(
|
|
79
|
+
`AVATAR.md が上限 ${AVATAR_MD_MAX_LINES} 行を超えています(wc -l 相当の実測 ${lineCount} 行・内部契約 §3)`,
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (avatar !== undefined) {
|
|
85
|
+
validateAvatar(avatar);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
finish();
|
|
89
|
+
|
|
90
|
+
function validateAvatar(value) {
|
|
91
|
+
if (!isPlainObject(value)) {
|
|
92
|
+
fail("avatar.json のルートは object である必要があります");
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (!hasOwn(value, "version")) {
|
|
97
|
+
fail("version は必須です");
|
|
98
|
+
} else if (Number.isInteger(value.version) && value.version > 0) {
|
|
99
|
+
fail(
|
|
100
|
+
`version ${value.version} は新しすぎるため検証できません。このファイルは新しい形式です。スキル / アプリを更新してください`,
|
|
101
|
+
);
|
|
102
|
+
return;
|
|
103
|
+
} else if (value.version !== 0) {
|
|
104
|
+
fail("version は 0 である必要があります");
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (!hasOwn(value, "id")) {
|
|
108
|
+
fail("id は必須です");
|
|
109
|
+
} else if (typeof value.id !== "string" || !ID_PATTERN.test(value.id)) {
|
|
110
|
+
fail(`id は kebab-case(小文字英数字とハイフン)の文字列である必要があります: ${JSON.stringify(value.id)}`);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (!hasOwn(value, "display_name")) {
|
|
114
|
+
fail("display_name は必須です");
|
|
115
|
+
} else if (!isNonEmptyString(value.display_name)) {
|
|
116
|
+
fail("display_name は空でない文字列である必要があります");
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (!hasOwn(value, "variants")) {
|
|
120
|
+
fail("variants は必須です");
|
|
121
|
+
} else {
|
|
122
|
+
validateStringArray(value.variants, "variants", ID_PATTERN, "kebab-case");
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (!hasOwn(value, "persona")) {
|
|
126
|
+
fail("persona は必須です");
|
|
127
|
+
} else {
|
|
128
|
+
validatePersona(value.persona);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (!hasOwn(value, "voice")) {
|
|
132
|
+
fail("voice は必須です");
|
|
133
|
+
} else {
|
|
134
|
+
validateVoiceRef(value.voice);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
let renditionIds = null;
|
|
138
|
+
if (!hasOwn(value, "renditions")) {
|
|
139
|
+
fail("renditions は必須です");
|
|
140
|
+
} else {
|
|
141
|
+
renditionIds = validateRenditionSummaries(value.renditions);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if (!hasOwn(value, "default_rendition")) {
|
|
145
|
+
fail("default_rendition は必須です");
|
|
146
|
+
} else if (value.default_rendition !== null) {
|
|
147
|
+
if (typeof value.default_rendition !== "string" || !ID_PATTERN.test(value.default_rendition)) {
|
|
148
|
+
fail("default_rendition は null または kebab-case の文字列である必要があります");
|
|
149
|
+
} else if (renditionIds && !renditionIds.has(value.default_rendition)) {
|
|
150
|
+
fail(`default_rendition ${value.default_rendition} が renditions[] に存在しません`);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// ルール (a): rights 欄必須
|
|
155
|
+
if (!hasOwn(value, "rights")) {
|
|
156
|
+
fail("rights は必須です(rights 欄必須・欠落は fail。内部契約 §6-3)");
|
|
157
|
+
} else {
|
|
158
|
+
validateRights(value.rights);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (renditionIds) {
|
|
162
|
+
for (const renditionId of renditionIds) {
|
|
163
|
+
validateRenditionFile(renditionId);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function validatePersona(value) {
|
|
169
|
+
if (!isPlainObject(value)) {
|
|
170
|
+
fail("persona は object である必要があります");
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
if (!hasOwn(value, "first_person")) {
|
|
174
|
+
fail("persona.first_person は必須です");
|
|
175
|
+
} else if (!isNonEmptyString(value.first_person)) {
|
|
176
|
+
fail("persona.first_person は空でない文字列である必要があります");
|
|
177
|
+
}
|
|
178
|
+
if (!hasOwn(value, "tone")) {
|
|
179
|
+
fail("persona.tone は必須です");
|
|
180
|
+
} else if (!isNonEmptyString(value.tone)) {
|
|
181
|
+
fail("persona.tone は空でない文字列である必要があります");
|
|
182
|
+
}
|
|
183
|
+
if (!hasOwn(value, "speech_style")) {
|
|
184
|
+
fail("persona.speech_style は必須です");
|
|
185
|
+
} else if (!isNonEmptyString(value.speech_style)) {
|
|
186
|
+
fail("persona.speech_style は空でない文字列である必要があります");
|
|
187
|
+
}
|
|
188
|
+
if (!hasOwn(value, "verbal_tics")) {
|
|
189
|
+
fail("persona.verbal_tics は必須です");
|
|
190
|
+
} else {
|
|
191
|
+
validateStringArray(value.verbal_tics, "persona.verbal_tics");
|
|
192
|
+
}
|
|
193
|
+
if (!hasOwn(value, "energy")) {
|
|
194
|
+
fail("persona.energy は必須です");
|
|
195
|
+
} else if (!Number.isInteger(value.energy) || value.energy < 0 || value.energy > 100) {
|
|
196
|
+
fail("persona.energy は 0-100 の整数である必要があります(ドパ度とは別軸のキャラ熱量。契約 §4)");
|
|
197
|
+
}
|
|
198
|
+
if (!hasOwn(value, "ng")) {
|
|
199
|
+
fail("persona.ng は必須です");
|
|
200
|
+
} else {
|
|
201
|
+
validateStringArray(value.ng, "persona.ng");
|
|
202
|
+
}
|
|
203
|
+
if (!hasOwn(value, "default_role")) {
|
|
204
|
+
fail("persona.default_role は必須です");
|
|
205
|
+
} else if (!DEFAULT_ROLES.has(value.default_role)) {
|
|
206
|
+
fail("persona.default_role は explainer / listener / tsukkomi / narrator / guest のいずれかである必要があります");
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
function validateVoiceRef(value) {
|
|
211
|
+
if (!isPlainObject(value)) {
|
|
212
|
+
fail("voice は object である必要があります");
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
if (!hasOwn(value, "lane")) {
|
|
216
|
+
fail("voice.lane は必須です");
|
|
217
|
+
} else if (!VOICE_LANES.has(value.lane)) {
|
|
218
|
+
fail("voice.lane は voicevox / fal-clone / recorded のいずれかである必要があります");
|
|
219
|
+
}
|
|
220
|
+
if (!hasOwn(value, "ref")) {
|
|
221
|
+
fail("voice.ref は必須です");
|
|
222
|
+
} else if (!isNonEmptyString(value.ref)) {
|
|
223
|
+
fail("voice.ref は空でない文字列である必要があります");
|
|
224
|
+
}
|
|
225
|
+
if (!hasOwn(value, "credit")) {
|
|
226
|
+
fail("voice.credit は必須です");
|
|
227
|
+
} else if (value.credit !== null && !isNonEmptyString(value.credit)) {
|
|
228
|
+
fail("voice.credit は null または空でない文字列である必要があります");
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
function validateRenditionSummaries(value) {
|
|
233
|
+
if (!Array.isArray(value)) {
|
|
234
|
+
fail("renditions は配列である必要があります");
|
|
235
|
+
return null;
|
|
236
|
+
}
|
|
237
|
+
// 0 件 = voice-only アバター(声のみ登録。S2 改訂 2026-07-26 で minItems 1→0 へ緩和)。
|
|
238
|
+
const ids = new Set();
|
|
239
|
+
for (const [index, rendition] of value.entries()) {
|
|
240
|
+
const label = `renditions[${index}]`;
|
|
241
|
+
if (!isPlainObject(rendition)) {
|
|
242
|
+
fail(`${label} は object である必要があります`);
|
|
243
|
+
continue;
|
|
244
|
+
}
|
|
245
|
+
if (!hasOwn(rendition, "id") || !isNonEmptyString(rendition.id) || !ID_PATTERN.test(rendition.id)) {
|
|
246
|
+
fail(`${label}.id は kebab-case の文字列である必要があります`);
|
|
247
|
+
} else {
|
|
248
|
+
if (ids.has(rendition.id)) fail(`renditions の id が重複しています: ${rendition.id}`);
|
|
249
|
+
ids.add(rendition.id);
|
|
250
|
+
}
|
|
251
|
+
if (!hasOwn(rendition, "kind") || !RENDITION_KINDS.has(rendition.kind)) {
|
|
252
|
+
fail(`${label}.kind は 2d / 3d / photo のいずれかである必要があります`);
|
|
253
|
+
}
|
|
254
|
+
if (!hasOwn(rendition, "capabilities")) {
|
|
255
|
+
fail(`${label}.capabilities は必須です`);
|
|
256
|
+
} else {
|
|
257
|
+
validateCapabilities(rendition.capabilities, `${label}.capabilities`);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
return ids;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
function validateCapabilities(value, label) {
|
|
264
|
+
if (!isPlainObject(value)) {
|
|
265
|
+
fail(`${label} は object である必要があります`);
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
if (!hasOwn(value, "lipsync") || typeof value.lipsync !== "boolean") {
|
|
269
|
+
fail(`${label}.lipsync は boolean である必要があります`);
|
|
270
|
+
}
|
|
271
|
+
if (!hasOwn(value, "expressions")) {
|
|
272
|
+
fail(`${label}.expressions は必須です`);
|
|
273
|
+
} else {
|
|
274
|
+
validateStringArray(value.expressions, `${label}.expressions`);
|
|
275
|
+
}
|
|
276
|
+
if (!hasOwn(value, "framing")) {
|
|
277
|
+
fail(`${label}.framing は必須です`);
|
|
278
|
+
} else {
|
|
279
|
+
validateStringArray(value.framing, `${label}.framing`);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
function validateRights(value) {
|
|
284
|
+
if (!isPlainObject(value)) {
|
|
285
|
+
fail("rights は object である必要があります");
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
if (!hasOwn(value, "subject") || !RIGHTS_SUBJECTS.has(value.subject)) {
|
|
289
|
+
fail("rights.subject は person / original / third_party のいずれかである必要があります");
|
|
290
|
+
}
|
|
291
|
+
if (!hasOwn(value, "consent")) {
|
|
292
|
+
fail("rights.consent は必須です");
|
|
293
|
+
} else if (!isValidConsent(value.consent)) {
|
|
294
|
+
fail("rights.consent は self / signed:<path> / terms:<url> のいずれかの形式である必要があります");
|
|
295
|
+
}
|
|
296
|
+
if (!hasOwn(value, "credit_required") || typeof value.credit_required !== "boolean") {
|
|
297
|
+
fail("rights.credit_required は boolean である必要があります");
|
|
298
|
+
}
|
|
299
|
+
if (!hasOwn(value, "distribution") || !RIGHTS_DISTRIBUTIONS.has(value.distribution)) {
|
|
300
|
+
fail("rights.distribution は private / org / sellable のいずれかである必要があります");
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
// ルール (b): person × sellable
|
|
304
|
+
if (value.subject === "person" && value.distribution === "sellable") {
|
|
305
|
+
fail(
|
|
306
|
+
"rights.subject が person のアバターは rights.distribution を sellable にできません(実在人物は販売不可。内部契約 §6-3)",
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// ルール (c): person アバターが公開リポ catalog/avatars/ 配下にある
|
|
311
|
+
if (value.subject === "person" && isUnderPublicCatalogAvatars(avatarDir)) {
|
|
312
|
+
fail(
|
|
313
|
+
`rights.subject が person のアバターは公開リポ catalog/avatars/ 配下に置けません(実体は個人スコープへ。内部契約 §1): ${avatarDir}`,
|
|
314
|
+
);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
function isValidConsent(value) {
|
|
319
|
+
if (typeof value !== "string" || value.trim().length === 0) return false;
|
|
320
|
+
return value === "self" || /^signed:\S+$/.test(value) || /^terms:https?:\/\/\S+$/.test(value);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
function isUnderPublicCatalogAvatars(dir) {
|
|
324
|
+
const normalized = dir.split(path.sep).join("/");
|
|
325
|
+
return /(^|\/)catalog\/avatars(\/|$)/.test(normalized);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
function validateRenditionFile(renditionId) {
|
|
329
|
+
const renditionDir = path.join(avatarDir, "renditions", renditionId);
|
|
330
|
+
const renditionJsonPath = path.join(renditionDir, "rendition.json");
|
|
331
|
+
if (!isRegularFile(renditionJsonPath)) {
|
|
332
|
+
fail(`rendition.json が見つかりません: ${renditionJsonPath}`);
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
335
|
+
let rendition;
|
|
336
|
+
try {
|
|
337
|
+
rendition = JSON.parse(fs.readFileSync(renditionJsonPath, "utf8"));
|
|
338
|
+
} catch (error) {
|
|
339
|
+
fail(`${renditionJsonPath} を JSON として読めません: ${messageOf(error)}`);
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
if (!isPlainObject(rendition)) {
|
|
343
|
+
fail(`${renditionJsonPath} のルートは object である必要があります`);
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
if (!hasOwn(rendition, "version") || rendition.version !== 0) {
|
|
347
|
+
fail(`${renditionJsonPath}: version は 0 である必要があります`);
|
|
348
|
+
}
|
|
349
|
+
if (!hasOwn(rendition, "id") || rendition.id !== renditionId) {
|
|
350
|
+
fail(`${renditionJsonPath}: id はディレクトリ名 ${renditionId} と一致する必要があります`);
|
|
351
|
+
}
|
|
352
|
+
if (!hasOwn(rendition, "kind") || !RENDITION_KINDS.has(rendition.kind)) {
|
|
353
|
+
fail(`${renditionJsonPath}: kind は 2d / 3d / photo のいずれかである必要があります`);
|
|
354
|
+
}
|
|
355
|
+
if (!hasOwn(rendition, "capabilities")) {
|
|
356
|
+
fail(`${renditionJsonPath}: capabilities は必須です`);
|
|
357
|
+
} else {
|
|
358
|
+
validateCapabilities(rendition.capabilities, `${renditionJsonPath} capabilities`);
|
|
359
|
+
}
|
|
360
|
+
if (!hasOwn(rendition, "assets")) {
|
|
361
|
+
fail(`${renditionJsonPath}: assets は必須です`);
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
validateAssetsResolve(rendition.assets, renditionDir, renditionJsonPath);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// ルール (e): アセット参照の実ファイル解決(欠落は全数列挙)
|
|
368
|
+
function validateAssetsResolve(assets, renditionDir, renditionJsonPath) {
|
|
369
|
+
if (!isPlainObject(assets)) {
|
|
370
|
+
fail(`${renditionJsonPath}: assets は object である必要があります`);
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
let sawAny = false;
|
|
374
|
+
for (const group of ["expressions", "lipsync"]) {
|
|
375
|
+
if (!hasOwn(assets, group)) continue;
|
|
376
|
+
const map = assets[group];
|
|
377
|
+
if (!isPlainObject(map)) {
|
|
378
|
+
fail(`${renditionJsonPath}: assets.${group} は object である必要があります`);
|
|
379
|
+
continue;
|
|
380
|
+
}
|
|
381
|
+
for (const [key, filename] of Object.entries(map)) {
|
|
382
|
+
sawAny = true;
|
|
383
|
+
if (!isNonEmptyString(filename)) {
|
|
384
|
+
fail(`${renditionJsonPath}: assets.${group}.${key} は空でない文字列である必要があります`);
|
|
385
|
+
continue;
|
|
386
|
+
}
|
|
387
|
+
const resolved = path.join(renditionDir, filename);
|
|
388
|
+
if (!isRegularFile(resolved)) {
|
|
389
|
+
fail(
|
|
390
|
+
`アセット参照が実ファイルに解決できません: ${renditionJsonPath} assets.${group}.${key} = "${filename}"(解決先 ${resolved})`,
|
|
391
|
+
);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
if (!sawAny) {
|
|
396
|
+
fail(`${renditionJsonPath}: assets.expressions または assets.lipsync に最低 1 件のエントリが必要です`);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
function checkSchemaId(schemaPath, expectedId, label) {
|
|
401
|
+
let schema;
|
|
402
|
+
try {
|
|
403
|
+
schema = JSON.parse(fs.readFileSync(schemaPath, "utf8"));
|
|
404
|
+
} catch (error) {
|
|
405
|
+
fail(`${label} を JSON として読めません: ${messageOf(error)}`);
|
|
406
|
+
finish();
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
if (schema.$id !== expectedId) {
|
|
410
|
+
fail(`${label} の $id が v0 契約と一致しません`);
|
|
411
|
+
finish();
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
function validateStringArray(value, label, pattern, patternLabel) {
|
|
416
|
+
if (!Array.isArray(value)) {
|
|
417
|
+
fail(`${label} は配列である必要があります`);
|
|
418
|
+
return;
|
|
419
|
+
}
|
|
420
|
+
const seen = new Set();
|
|
421
|
+
for (const [index, item] of value.entries()) {
|
|
422
|
+
const itemLabel = `${label}[${index}]`;
|
|
423
|
+
if (!isNonEmptyString(item)) {
|
|
424
|
+
fail(`${itemLabel} は空でない文字列である必要があります`);
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
427
|
+
if (pattern && !pattern.test(item)) {
|
|
428
|
+
fail(`${itemLabel} は ${patternLabel} である必要があります: ${item}`);
|
|
429
|
+
}
|
|
430
|
+
if (seen.has(item)) {
|
|
431
|
+
fail(`${label} に重複があります: ${item}`);
|
|
432
|
+
} else {
|
|
433
|
+
seen.add(item);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
function countLines(content) {
|
|
439
|
+
return (content.match(/\n/g) || []).length;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
function isDirectory(targetPath) {
|
|
443
|
+
try {
|
|
444
|
+
return fs.statSync(targetPath).isDirectory();
|
|
445
|
+
} catch {
|
|
446
|
+
return false;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
function isRegularFile(targetPath) {
|
|
451
|
+
try {
|
|
452
|
+
return fs.statSync(targetPath).isFile();
|
|
453
|
+
} catch {
|
|
454
|
+
return false;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
function isPlainObject(value) {
|
|
459
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
function isNonEmptyString(value) {
|
|
463
|
+
return typeof value === "string" && value.trim().length > 0;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
function hasOwn(value, key) {
|
|
467
|
+
return Object.prototype.hasOwnProperty.call(value, key);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
function messageOf(error) {
|
|
471
|
+
return error instanceof Error ? error.message : String(error);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
function fail(message) {
|
|
475
|
+
errors.push(message);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
function finish() {
|
|
479
|
+
if (errors.length > 0) {
|
|
480
|
+
console.error(`NG: ${avatarDir}`);
|
|
481
|
+
for (const error of errors) console.error(`- ${error}`);
|
|
482
|
+
process.exit(1);
|
|
483
|
+
}
|
|
484
|
+
console.log(`OK: ${avatarDir}`);
|
|
485
|
+
process.exit(0);
|
|
486
|
+
}
|