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,427 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// review.json v1 注釈モデルの構造と、JSON Schema 単体では表せない範囲・整合制約を検証する。
|
|
4
|
+
// targetKind の型別期待フィールド(契約 §3)は助言レベルのため warning(stderr)に出し、
|
|
5
|
+
// exit code は errors のみで決定する。edit.json との参照整合(src 等)は edit-lint の責務。
|
|
6
|
+
|
|
7
|
+
import fs from "node:fs";
|
|
8
|
+
import path from "node:path";
|
|
9
|
+
import { fileURLToPath } from "node:url";
|
|
10
|
+
|
|
11
|
+
const usage = "使い方: node packages/schemas/bin/validate-review.mjs <review.json>";
|
|
12
|
+
const reviewArgument = process.argv[2];
|
|
13
|
+
|
|
14
|
+
if (!reviewArgument || process.argv.length !== 3) {
|
|
15
|
+
console.error(usage);
|
|
16
|
+
process.exit(2);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (reviewArgument === "--help" || reviewArgument === "-h") {
|
|
20
|
+
console.log(usage);
|
|
21
|
+
process.exit(0);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const reviewPath = path.resolve(reviewArgument);
|
|
25
|
+
const schemaPath = fileURLToPath(new URL("../review.schema.json", import.meta.url));
|
|
26
|
+
const errors = [];
|
|
27
|
+
const warnings = [];
|
|
28
|
+
|
|
29
|
+
const TARGET_KINDS = new Set(["instant", "range", "region", "asset", "insert"]);
|
|
30
|
+
const STATUSES = new Set(["open", "addressed", "resolved"]);
|
|
31
|
+
// ライダー r1(2026-07-26-canvas-surface 起票時点で回収): review セッション契約 §6 で
|
|
32
|
+
// input: "session" が昇格済みだったが、この enum は追随していなかった(実データに 2 件エラー)。
|
|
33
|
+
const INPUTS = new Set(["typed", "voice", "session"]);
|
|
34
|
+
// review セッション契約 §4.2 で確定した annotation 着地型。space により frame / sessionRef(canvasRef) の
|
|
35
|
+
// 要否が変わる(content-rect = 動画面・録音セッション由来のみ / image-rect = 画像面・単発注釈可 /
|
|
36
|
+
// canvas-rect = キャンバス面・単発注釈可・contract-2026-07-26-canvas-surface §4)。
|
|
37
|
+
const STROKE_SPACES = new Set(["content-rect", "image-rect", "canvas-rect"]);
|
|
38
|
+
// contract-2026-07-26-doc-image-annotations §1: doc:<プロジェクト相対パス>#<block-id> / image:<プロジェクト相対パス>。
|
|
39
|
+
// contract-2026-07-26-canvas-surface §4: canvas:<c-NNNN>。この 3 種に限り §2 で sourceT: null を許容する。
|
|
40
|
+
const DOC_TARGET_PATTERN = /^doc:(.+)#(.+)$/;
|
|
41
|
+
const IMAGE_TARGET_PATTERN = /^image:(.+)$/;
|
|
42
|
+
const CANVAS_TARGET_PATTERN = /^canvas:(c-\d{4,})$/;
|
|
43
|
+
|
|
44
|
+
if (!isRegularFile(reviewPath)) {
|
|
45
|
+
fail(`review.json が見つかりません: ${reviewPath}`);
|
|
46
|
+
finish();
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
let schema;
|
|
50
|
+
try {
|
|
51
|
+
schema = JSON.parse(fs.readFileSync(schemaPath, "utf8"));
|
|
52
|
+
} catch (error) {
|
|
53
|
+
fail(`review.schema.json を JSON として読めません: ${messageOf(error)}`);
|
|
54
|
+
finish();
|
|
55
|
+
}
|
|
56
|
+
if (schema.$id !== "urn:akari-video:schema:review:v1") {
|
|
57
|
+
fail("review.schema.json の $id が v1 契約と一致しません");
|
|
58
|
+
finish();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
let review;
|
|
62
|
+
try {
|
|
63
|
+
review = JSON.parse(fs.readFileSync(reviewPath, "utf8"));
|
|
64
|
+
} catch (error) {
|
|
65
|
+
fail(`review.json を JSON として読めません: ${messageOf(error)}`);
|
|
66
|
+
finish();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
validateReview(review);
|
|
70
|
+
finish();
|
|
71
|
+
|
|
72
|
+
function validateReview(value) {
|
|
73
|
+
if (!isPlainObject(value)) {
|
|
74
|
+
fail("review.json のルートは object である必要があります");
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (Number.isInteger(value.version) && value.version > 0) {
|
|
78
|
+
fail(
|
|
79
|
+
`version ${value.version} は新しすぎるため検証できません。このファイルは新しい形式です。スキル / アプリを更新してください`,
|
|
80
|
+
);
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
if (value.version !== 0) {
|
|
84
|
+
fail("version は 0 である必要があります");
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
if (!Array.isArray(value.annotations)) {
|
|
88
|
+
fail("annotations は配列である必要があります");
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const ids = new Set();
|
|
92
|
+
for (const [index, annotation] of value.annotations.entries()) {
|
|
93
|
+
validateAnnotation(annotation, index, ids);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function validateAnnotation(value, index, ids) {
|
|
98
|
+
const label = `annotations[${index}]`;
|
|
99
|
+
if (!isPlainObject(value)) {
|
|
100
|
+
fail(`${label} は object である必要があります`);
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
if (!isNonEmptyString(value.id)) {
|
|
104
|
+
fail(`${label}.id は空でない文字列である必要があります`);
|
|
105
|
+
} else {
|
|
106
|
+
if (ids.has(value.id)) fail(`annotations[].id が重複しています: ${value.id}`);
|
|
107
|
+
ids.add(value.id);
|
|
108
|
+
if (!/^a-\d{4,}$/.test(value.id)) {
|
|
109
|
+
warn(`${label}.id が推奨形式 a-0000 と異なります: ${value.id}`);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
if (typeof value.createdAt !== "string") {
|
|
113
|
+
fail(`${label}.createdAt は文字列である必要があります`);
|
|
114
|
+
}
|
|
115
|
+
const docOrImageTarget = isDocOrImageTarget(value.target);
|
|
116
|
+
if (value.sourceT === null) {
|
|
117
|
+
if (!docOrImageTarget) {
|
|
118
|
+
fail(
|
|
119
|
+
`${label}.sourceT は target が doc: / image: のときに限り null を許容します(動画面の注釈には時刻が必要です)`,
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
} else if (!isFiniteNumber(value.sourceT) || value.sourceT < 0) {
|
|
123
|
+
fail(`${label}.sourceT は 0 以上の有限数(source 秒)である必要があります`);
|
|
124
|
+
}
|
|
125
|
+
validateTarget(value.target, label);
|
|
126
|
+
if (typeof value.text !== "string") {
|
|
127
|
+
fail(`${label}.text は文字列である必要があります`);
|
|
128
|
+
}
|
|
129
|
+
if (!INPUTS.has(value.input)) {
|
|
130
|
+
fail(`${label}.input は typed または voice である必要があります`);
|
|
131
|
+
}
|
|
132
|
+
if (!STATUSES.has(value.status)) {
|
|
133
|
+
fail(`${label}.status は open / addressed / resolved のいずれかである必要があります`);
|
|
134
|
+
}
|
|
135
|
+
validateSourceRange(value.sourceRange, label);
|
|
136
|
+
validateOptionalNonEmptyString(value.src, `${label}.src`);
|
|
137
|
+
validateOptionalNonEmptyString(value.audio, `${label}.audio`);
|
|
138
|
+
validateOptionalNonEmptyString(value.intent, `${label}.intent`);
|
|
139
|
+
if (hasOwn(value, "timelineT") && value.timelineT !== null) {
|
|
140
|
+
if (!isFiniteNumber(value.timelineT)) {
|
|
141
|
+
fail(`${label}.timelineT は null または有限数である必要があります`);
|
|
142
|
+
} else {
|
|
143
|
+
warn(
|
|
144
|
+
`${label}.timelineT は非推奨です(timeline 位置は cuts[] からの射影で求める)。新規書き込みは null にしてください`,
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
const targetKind = validateTargetKind(value.targetKind, label);
|
|
149
|
+
const region = validateRegion(value.region, label);
|
|
150
|
+
const strokes = validateStrokes(value.strokes, label);
|
|
151
|
+
const refs = validateRefs(value.refs, label);
|
|
152
|
+
const insertPosition = validateInsertPosition(value.insertPosition, label);
|
|
153
|
+
if (hasOwn(value, "poses") && value.poses !== null) {
|
|
154
|
+
warn(`${label}.poses は予約フィールドです(このバージョンでは無視されます)`);
|
|
155
|
+
}
|
|
156
|
+
validateResponse(value.response, label);
|
|
157
|
+
|
|
158
|
+
if (region && strokes) {
|
|
159
|
+
warn(`${label} は region と strokes の両方を持っています(region.box が優先されます)`);
|
|
160
|
+
}
|
|
161
|
+
if (targetKind === "range" && !Array.isArray(value.sourceRange)) {
|
|
162
|
+
warn(`${label} は targetKind range ですが sourceRange がありません`);
|
|
163
|
+
}
|
|
164
|
+
if (targetKind === "region" && !region && !strokes) {
|
|
165
|
+
warn(`${label} は targetKind region ですが region / strokes のいずれもありません`);
|
|
166
|
+
}
|
|
167
|
+
if (targetKind === "asset" && !refs) {
|
|
168
|
+
warn(`${label} は targetKind asset ですが refs がありません`);
|
|
169
|
+
}
|
|
170
|
+
if (targetKind === "insert" && !insertPosition) {
|
|
171
|
+
warn(`${label} は targetKind insert ですが insertPosition がありません`);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function isDocOrImageTarget(value) {
|
|
176
|
+
return typeof value === "string"
|
|
177
|
+
&& (DOC_TARGET_PATTERN.test(value) || IMAGE_TARGET_PATTERN.test(value) || CANVAS_TARGET_PATTERN.test(value));
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
function validateTarget(value, label) {
|
|
181
|
+
if (value === undefined || value === null) return;
|
|
182
|
+
if (typeof value !== "string" || !value) {
|
|
183
|
+
fail(`${label}.target は null または空でない文字列である必要があります`);
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
if (value.startsWith("doc:") && !DOC_TARGET_PATTERN.test(value)) {
|
|
187
|
+
fail(`${label}.target は doc:<プロジェクト相対パス>#<block-id> の形式である必要があります: ${value}`);
|
|
188
|
+
} else if (value.startsWith("image:") && !IMAGE_TARGET_PATTERN.test(value)) {
|
|
189
|
+
fail(`${label}.target は image:<プロジェクト相対パス> の形式である必要があります: ${value}`);
|
|
190
|
+
} else if (value.startsWith("canvas:") && !CANVAS_TARGET_PATTERN.test(value)) {
|
|
191
|
+
fail(`${label}.target は canvas:<c-NNNN> の形式である必要があります: ${value}`);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
function validateTargetKind(value, label) {
|
|
196
|
+
if (value === undefined || value === null) return null;
|
|
197
|
+
if (!TARGET_KINDS.has(value)) {
|
|
198
|
+
fail(
|
|
199
|
+
`${label}.targetKind は instant / range / region / asset / insert または null である必要があります`,
|
|
200
|
+
);
|
|
201
|
+
return null;
|
|
202
|
+
}
|
|
203
|
+
return value;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
function validateSourceRange(value, label) {
|
|
207
|
+
if (value === undefined || value === null) return;
|
|
208
|
+
if (
|
|
209
|
+
!Array.isArray(value) ||
|
|
210
|
+
value.length !== 2 ||
|
|
211
|
+
!isFiniteNumber(value[0]) ||
|
|
212
|
+
!isFiniteNumber(value[1])
|
|
213
|
+
) {
|
|
214
|
+
fail(`${label}.sourceRange は null または [start, end] の数値 2 要素配列である必要があります`);
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
if (value[0] < 0 || value[1] <= value[0]) {
|
|
218
|
+
fail(`${label}.sourceRange は 0 <= start < end を満たす必要があります`);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
function validateRegion(value, label) {
|
|
223
|
+
if (value === undefined || value === null) return null;
|
|
224
|
+
if (!isPlainObject(value) || !Array.isArray(value.box) || value.box.length !== 4) {
|
|
225
|
+
fail(`${label}.region は null または { box: [x, y, w, h] } である必要があります`);
|
|
226
|
+
return null;
|
|
227
|
+
}
|
|
228
|
+
const [x, y, w, h] = value.box;
|
|
229
|
+
const finite = value.box.every((entry) => isFiniteNumber(entry) && entry >= 0 && entry <= 1);
|
|
230
|
+
if (!finite || w <= 0 || h <= 0 || x + w > 1 || y + h > 1) {
|
|
231
|
+
fail(
|
|
232
|
+
`${label}.region.box は 0〜1 の正規化座標で x+w<=1 かつ y+h<=1 を満たす必要があります(source フレーム基準)`,
|
|
233
|
+
);
|
|
234
|
+
return null;
|
|
235
|
+
}
|
|
236
|
+
return value;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
function validateStrokes(value, label) {
|
|
240
|
+
if (value === undefined || value === null) return null;
|
|
241
|
+
if (!Array.isArray(value) || value.length === 0) {
|
|
242
|
+
fail(`${label}.strokes は null または 1 本以上のストローク配列である必要があります`);
|
|
243
|
+
return null;
|
|
244
|
+
}
|
|
245
|
+
for (const [strokeIndex, stroke] of value.entries()) {
|
|
246
|
+
if (!validateStroke(stroke, `${label}.strokes[${strokeIndex}]`)) {
|
|
247
|
+
return null;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
return value;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
function validateStroke(stroke, label) {
|
|
254
|
+
if (!isPlainObject(stroke) || stroke.tool !== "pen") {
|
|
255
|
+
fail(`${label} は { tool: "pen", space, points, ... } の object である必要があります`);
|
|
256
|
+
return false;
|
|
257
|
+
}
|
|
258
|
+
if (!STROKE_SPACES.has(stroke.space)) {
|
|
259
|
+
fail(`${label}.space は content-rect / image-rect / canvas-rect のいずれかである必要があります`);
|
|
260
|
+
return false;
|
|
261
|
+
}
|
|
262
|
+
if (!validateStrokePoints(stroke.points, label)) {
|
|
263
|
+
return false;
|
|
264
|
+
}
|
|
265
|
+
if (stroke.space === "content-rect") {
|
|
266
|
+
if (!isPlainObject(stroke.frame) || !isFiniteNumber(stroke.frame.sourceT) || stroke.frame.sourceT < 0) {
|
|
267
|
+
fail(`${label}.frame は { sourceT, cutIndex } である必要があります(content-rect は frame 必須)`);
|
|
268
|
+
return false;
|
|
269
|
+
}
|
|
270
|
+
if (
|
|
271
|
+
hasOwn(stroke.frame, "cutIndex") &&
|
|
272
|
+
stroke.frame.cutIndex !== null &&
|
|
273
|
+
!Number.isInteger(stroke.frame.cutIndex)
|
|
274
|
+
) {
|
|
275
|
+
fail(`${label}.frame.cutIndex は null または整数である必要があります`);
|
|
276
|
+
return false;
|
|
277
|
+
}
|
|
278
|
+
if (!isNonEmptyString(stroke.sessionRef)) {
|
|
279
|
+
fail(`${label}.sessionRef は空でない文字列である必要があります(content-rect は必須)`);
|
|
280
|
+
return false;
|
|
281
|
+
}
|
|
282
|
+
return true;
|
|
283
|
+
}
|
|
284
|
+
if (stroke.space === "image-rect") {
|
|
285
|
+
// frame は動画フレームアンカーが存在しないため省略必須・sessionRef は単発注釈では省略可
|
|
286
|
+
// (contract-2026-07-26-doc-image-annotations §3)。
|
|
287
|
+
if (hasOwn(stroke, "frame")) {
|
|
288
|
+
fail(`${label}.frame は image-rect では省略する必要があります(動画フレームアンカーが存在しないため)`);
|
|
289
|
+
return false;
|
|
290
|
+
}
|
|
291
|
+
if (hasOwn(stroke, "sessionRef") && !isNonEmptyString(stroke.sessionRef)) {
|
|
292
|
+
fail(`${label}.sessionRef を持たせる場合は空でない文字列である必要があります`);
|
|
293
|
+
return false;
|
|
294
|
+
}
|
|
295
|
+
return true;
|
|
296
|
+
}
|
|
297
|
+
// space === "canvas-rect"(contract-2026-07-26-canvas-surface §4): image-rect と同型だが
|
|
298
|
+
// 出所参照フィールド名が canvasRef(c-0001/st-0003 形式)。frame は同じ理由で省略必須・canvasRef は任意。
|
|
299
|
+
if (hasOwn(stroke, "frame")) {
|
|
300
|
+
fail(`${label}.frame は canvas-rect では省略する必要があります(動画フレームアンカーが存在しないため)`);
|
|
301
|
+
return false;
|
|
302
|
+
}
|
|
303
|
+
if (hasOwn(stroke, "canvasRef") && !isNonEmptyString(stroke.canvasRef)) {
|
|
304
|
+
fail(`${label}.canvasRef を持たせる場合は空でない文字列である必要があります`);
|
|
305
|
+
return false;
|
|
306
|
+
}
|
|
307
|
+
return true;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
function validateStrokePoints(points, label) {
|
|
311
|
+
if (!Array.isArray(points) || points.length < 2) {
|
|
312
|
+
fail(`${label}.points は 2 点以上の [x, y] 点列である必要があります`);
|
|
313
|
+
return false;
|
|
314
|
+
}
|
|
315
|
+
for (const point of points) {
|
|
316
|
+
if (
|
|
317
|
+
!Array.isArray(point) ||
|
|
318
|
+
point.length !== 2 ||
|
|
319
|
+
!point.every((entry) => isFiniteNumber(entry) && entry >= 0 && entry <= 1)
|
|
320
|
+
) {
|
|
321
|
+
fail(`${label}.points の点は 0〜1 の正規化座標 [x, y] である必要があります`);
|
|
322
|
+
return false;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
return true;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
function validateRefs(value, label) {
|
|
329
|
+
if (value === undefined || value === null) return null;
|
|
330
|
+
if (!Array.isArray(value) || value.length === 0) {
|
|
331
|
+
fail(`${label}.refs は null または 1 件以上の配列である必要があります`);
|
|
332
|
+
return null;
|
|
333
|
+
}
|
|
334
|
+
for (const [refIndex, ref] of value.entries()) {
|
|
335
|
+
if (!isPlainObject(ref)) {
|
|
336
|
+
fail(`${label}.refs[${refIndex}] は object である必要があります`);
|
|
337
|
+
return null;
|
|
338
|
+
}
|
|
339
|
+
const hasSrc = hasOwn(ref, "src");
|
|
340
|
+
const hasPath = hasOwn(ref, "path");
|
|
341
|
+
if (hasSrc === hasPath) {
|
|
342
|
+
fail(`${label}.refs[${refIndex}] は src / path のどちらか一方だけを持つ必要があります`);
|
|
343
|
+
return null;
|
|
344
|
+
}
|
|
345
|
+
const reference = hasSrc ? ref.src : ref.path;
|
|
346
|
+
if (!isNonEmptyString(reference)) {
|
|
347
|
+
fail(`${label}.refs[${refIndex}].${hasSrc ? "src" : "path"} は空でない文字列である必要があります`);
|
|
348
|
+
return null;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
return value;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
function validateInsertPosition(value, label) {
|
|
355
|
+
if (value === undefined || value === null) return null;
|
|
356
|
+
if (value !== "before" && value !== "after") {
|
|
357
|
+
fail(`${label}.insertPosition は before / after または null である必要があります`);
|
|
358
|
+
return null;
|
|
359
|
+
}
|
|
360
|
+
return value;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
function validateResponse(value, label) {
|
|
364
|
+
if (value === undefined || value === null) return;
|
|
365
|
+
if (
|
|
366
|
+
!isPlainObject(value) ||
|
|
367
|
+
typeof value.summary !== "string" ||
|
|
368
|
+
(value.action !== "edited" && value.action !== "declined") ||
|
|
369
|
+
typeof value.respondedAt !== "string"
|
|
370
|
+
) {
|
|
371
|
+
fail(`${label}.response は null または { summary, action, respondedAt } である必要があります`);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
function validateOptionalNonEmptyString(value, label) {
|
|
376
|
+
if (value === undefined || value === null) return;
|
|
377
|
+
if (!isNonEmptyString(value)) {
|
|
378
|
+
fail(`${label} は null または空でない文字列である必要があります`);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
function isRegularFile(filePath) {
|
|
383
|
+
try {
|
|
384
|
+
return fs.statSync(filePath).isFile();
|
|
385
|
+
} catch {
|
|
386
|
+
return false;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
function isPlainObject(value) {
|
|
391
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
function isFiniteNumber(value) {
|
|
395
|
+
return typeof value === "number" && Number.isFinite(value);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
function isNonEmptyString(value) {
|
|
399
|
+
return typeof value === "string" && value.trim().length > 0;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
function hasOwn(value, key) {
|
|
403
|
+
return Object.prototype.hasOwnProperty.call(value, key);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
function messageOf(error) {
|
|
407
|
+
return error instanceof Error ? error.message : String(error);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
function fail(message) {
|
|
411
|
+
errors.push(message);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
function warn(message) {
|
|
415
|
+
warnings.push(message);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
function finish() {
|
|
419
|
+
for (const warning of warnings) console.error(`warning: ${warning}`);
|
|
420
|
+
if (errors.length > 0) {
|
|
421
|
+
console.error(`NG: ${reviewPath}`);
|
|
422
|
+
for (const error of errors) console.error(`- ${error}`);
|
|
423
|
+
process.exit(1);
|
|
424
|
+
}
|
|
425
|
+
console.log(`OK: ${reviewPath}${warnings.length > 0 ? ` (${warnings.length} warnings)` : ""}`);
|
|
426
|
+
process.exit(0);
|
|
427
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "urn:akari-video:schema:captions:v0",
|
|
4
|
+
"title": "AKARI Video captions.json v0",
|
|
5
|
+
"description": "従来の配列ルートと、字幕の既定テキストスタイルを持てる object ルートの公開契約。",
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{ "$ref": "#/$defs/captionsArray" },
|
|
8
|
+
{ "$ref": "#/$defs/captionsRootObject" }
|
|
9
|
+
],
|
|
10
|
+
"$defs": {
|
|
11
|
+
"hexColor": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
14
|
+
},
|
|
15
|
+
"captionZone": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"top-left",
|
|
19
|
+
"top",
|
|
20
|
+
"top-right",
|
|
21
|
+
"left",
|
|
22
|
+
"center",
|
|
23
|
+
"right",
|
|
24
|
+
"bottom-left",
|
|
25
|
+
"bottom",
|
|
26
|
+
"bottom-right"
|
|
27
|
+
],
|
|
28
|
+
"default": "bottom",
|
|
29
|
+
"description": "字幕の 3x3 配置ゾーン。省略時の実効値は bottom。"
|
|
30
|
+
},
|
|
31
|
+
"textStrokeStyle": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"additionalProperties": false,
|
|
34
|
+
"properties": {
|
|
35
|
+
"color": { "$ref": "#/$defs/hexColor" },
|
|
36
|
+
"width_px": { "type": "number", "minimum": 0 }
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"textBackgroundStyle": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"properties": {
|
|
43
|
+
"color": { "$ref": "#/$defs/hexColor" },
|
|
44
|
+
"opacity": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
45
|
+
"radius_px": { "type": "number", "minimum": 0 },
|
|
46
|
+
"mode": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": ["per-line", "block"],
|
|
49
|
+
"default": "per-line",
|
|
50
|
+
"description": "座布団の形。省略時は行ごとに分かれる per-line。"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"description": "字幕の座布団スタイル。mode 省略時の実効値は per-line。"
|
|
54
|
+
},
|
|
55
|
+
"textStyle": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"additionalProperties": false,
|
|
58
|
+
"properties": {
|
|
59
|
+
"color": { "$ref": "#/$defs/hexColor" },
|
|
60
|
+
"size_px": { "type": "number", "exclusiveMinimum": 0 },
|
|
61
|
+
"stroke": { "$ref": "#/$defs/textStrokeStyle" },
|
|
62
|
+
"background": { "$ref": "#/$defs/textBackgroundStyle" },
|
|
63
|
+
"zone": { "$ref": "#/$defs/captionZone" }
|
|
64
|
+
},
|
|
65
|
+
"$comment": "全フィールド任意。captionRecord.text_style は default_text_style をフィールド単位で上書きする。合成処理は消費側の責務。zone 省略時の実効値は bottom。"
|
|
66
|
+
},
|
|
67
|
+
"captionWord": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"required": ["start", "end", "text"],
|
|
71
|
+
"properties": {
|
|
72
|
+
"start": { "type": "number", "minimum": 0 },
|
|
73
|
+
"end": { "type": "number", "minimum": 0 },
|
|
74
|
+
"text": { "type": "string", "minLength": 1, "pattern": "\\S" }
|
|
75
|
+
},
|
|
76
|
+
"$comment": "end >= start と親 caption の範囲外警告は JSON Schema 標準だけでは兄弟値を比較できないため検証器が扱う。"
|
|
77
|
+
},
|
|
78
|
+
"sourceRef": {
|
|
79
|
+
"oneOf": [
|
|
80
|
+
{ "type": "null" },
|
|
81
|
+
{
|
|
82
|
+
"type": "object",
|
|
83
|
+
"additionalProperties": false,
|
|
84
|
+
"required": ["segment"],
|
|
85
|
+
"properties": {
|
|
86
|
+
"segment": { "type": "integer", "minimum": 0 }
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"captionId": {
|
|
92
|
+
"oneOf": [
|
|
93
|
+
{ "type": "string", "pattern": "^c-\\d{4}$" },
|
|
94
|
+
{ "type": "string", "pattern": "^caption-[A-Za-z0-9][A-Za-z0-9_-]*$" }
|
|
95
|
+
],
|
|
96
|
+
"$comment": "正準 ID は c- に続く 4 桁の数字。caption-* は既存 captions.json 資産を無変更で受理するためのレガシー互換形。"
|
|
97
|
+
},
|
|
98
|
+
"captionRecord": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"additionalProperties": false,
|
|
101
|
+
"required": ["id", "start", "end", "text", "speaker", "sourceRef", "edited"],
|
|
102
|
+
"properties": {
|
|
103
|
+
"id": { "$ref": "#/$defs/captionId" },
|
|
104
|
+
"start": { "type": "number", "minimum": 0 },
|
|
105
|
+
"end": { "type": "number", "exclusiveMinimum": 0 },
|
|
106
|
+
"text": { "type": "string", "minLength": 1, "pattern": "\\S" },
|
|
107
|
+
"speaker": {
|
|
108
|
+
"oneOf": [
|
|
109
|
+
{ "type": "string" },
|
|
110
|
+
{ "type": "null" }
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"sourceRef": { "$ref": "#/$defs/sourceRef" },
|
|
114
|
+
"edited": { "type": "boolean" },
|
|
115
|
+
"src": { "type": "string", "minLength": 1, "pattern": "\\S" },
|
|
116
|
+
"words": {
|
|
117
|
+
"type": "array",
|
|
118
|
+
"items": { "$ref": "#/$defs/captionWord" }
|
|
119
|
+
},
|
|
120
|
+
"style": { "enum": ["karaoke", "pop", "reveal"] },
|
|
121
|
+
"display_text": { "type": "string" },
|
|
122
|
+
"text_style": { "$ref": "#/$defs/textStyle" }
|
|
123
|
+
},
|
|
124
|
+
"$comment": "end > start、ID 一意性、words[].end >= start は JSON Schema 標準だけでは兄弟値を比較できないため validate-captions.mjs でも検証する。style は既存の単語リビール演出、text_style は見た目のスタイルであり別契約。"
|
|
125
|
+
},
|
|
126
|
+
"captionsArray": {
|
|
127
|
+
"type": "array",
|
|
128
|
+
"items": { "$ref": "#/$defs/captionRecord" }
|
|
129
|
+
},
|
|
130
|
+
"captionsRootObject": {
|
|
131
|
+
"type": "object",
|
|
132
|
+
"additionalProperties": false,
|
|
133
|
+
"required": ["captions"],
|
|
134
|
+
"properties": {
|
|
135
|
+
"default_text_style": { "$ref": "#/$defs/textStyle" },
|
|
136
|
+
"captions": { "$ref": "#/$defs/captionsArray" }
|
|
137
|
+
},
|
|
138
|
+
"$comment": "default_text_style は任意。省略時は従来表示と同値。"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|