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,458 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import { execFile } from "node:child_process";
|
|
3
|
+
import fs from "node:fs/promises";
|
|
4
|
+
import os from "node:os";
|
|
5
|
+
import path from "node:path";
|
|
6
|
+
import test from "node:test";
|
|
7
|
+
import { promisify } from "node:util";
|
|
8
|
+
import { fileURLToPath } from "node:url";
|
|
9
|
+
|
|
10
|
+
import {
|
|
11
|
+
proposalToAnnotation,
|
|
12
|
+
provisionalJudgement,
|
|
13
|
+
segmentUtterances,
|
|
14
|
+
} from "../bin/core/compiler.mjs";
|
|
15
|
+
import {
|
|
16
|
+
appendAnnotationLine,
|
|
17
|
+
nextAnnotationNumber,
|
|
18
|
+
} from "../bin/core/review-store.mjs";
|
|
19
|
+
import {
|
|
20
|
+
buildCutMap,
|
|
21
|
+
buildTimelineTrace,
|
|
22
|
+
parseEventsJsonl,
|
|
23
|
+
resolveUtteranceReference,
|
|
24
|
+
} from "../bin/core/time-mapping.mjs";
|
|
25
|
+
import {
|
|
26
|
+
detectVadSpans,
|
|
27
|
+
restoreWhisperTokenWords,
|
|
28
|
+
transcribeAudio,
|
|
29
|
+
} from "../bin/core/transcription.mjs";
|
|
30
|
+
|
|
31
|
+
const execFileAsync = promisify(execFile);
|
|
32
|
+
const compileCli = fileURLToPath(new URL("../bin/compile-review-session.mjs", import.meta.url));
|
|
33
|
+
|
|
34
|
+
const snapshot = {
|
|
35
|
+
cuts: [
|
|
36
|
+
{ in: 10, out: 20 },
|
|
37
|
+
{ in: 100, out: 140 },
|
|
38
|
+
],
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
test("timelineT の cut 境界を半開区間で sourceT へ写像する", () => {
|
|
42
|
+
const map = buildCutMap(snapshot);
|
|
43
|
+
assert.deepEqual(map.locate(9.5), expectLocation(19.5, 0));
|
|
44
|
+
assert.deepEqual(map.locate(10), expectLocation(100, 1));
|
|
45
|
+
assert.deepEqual(map.locate(45), expectLocation(135, 1));
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
test("tick を正として recT から停止・再生位置を復元する", () => {
|
|
49
|
+
const { events, warnings } = parseEventsJsonl([
|
|
50
|
+
'{"recT":0,"type":"start","timelineT":0,"playing":false}',
|
|
51
|
+
'{"recT":0,"type":"play","timelineT":0}',
|
|
52
|
+
'{"recT":10,"type":"tick","timelineT":10}',
|
|
53
|
+
'{"broken":',
|
|
54
|
+
].join("\n"));
|
|
55
|
+
assert.equal(warnings.length, 1);
|
|
56
|
+
const trace = buildTimelineTrace(events);
|
|
57
|
+
assert.equal(trace.stateAt(12).timelineT, 12);
|
|
58
|
+
assert.equal(trace.stateAt(12).playing, true);
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
test("再生中発話は 3 秒窓内の単一 cut 境界へ解決する", () => {
|
|
62
|
+
const { events } = parseEventsJsonl([
|
|
63
|
+
'{"recT":0,"type":"start","timelineT":0,"playing":false}',
|
|
64
|
+
'{"recT":0,"type":"play","timelineT":0}',
|
|
65
|
+
'{"recT":9,"type":"tick","timelineT":9}',
|
|
66
|
+
'{"recT":12,"type":"tick","timelineT":12}',
|
|
67
|
+
].join("\n"));
|
|
68
|
+
const reference = resolveUtteranceReference({
|
|
69
|
+
utterance: { text: "調整する", recT: [12, 15], words: [] },
|
|
70
|
+
trace: buildTimelineTrace(events),
|
|
71
|
+
cutMap: buildCutMap(snapshot),
|
|
72
|
+
});
|
|
73
|
+
assert.equal(reference.sourceT, 100);
|
|
74
|
+
assert.equal(reference.target, "cut:1");
|
|
75
|
+
assert.equal(reference.resolutionMethod, "rewind-window-boundary");
|
|
76
|
+
assert.equal(reference.confidence, "high");
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
test("再生中発話へ近接するストロークを高信頼の frame アンカーとして採用する", () => {
|
|
80
|
+
const { events } = parseEventsJsonl([
|
|
81
|
+
'{"recT":0,"type":"start","timelineT":0,"playing":false}',
|
|
82
|
+
'{"recT":0,"type":"play","timelineT":0}',
|
|
83
|
+
'{"recT":9,"type":"tick","timelineT":9}',
|
|
84
|
+
'{"recT":12,"type":"tick","timelineT":12}',
|
|
85
|
+
].join("\n"));
|
|
86
|
+
const stroke = {
|
|
87
|
+
id: "st-0001",
|
|
88
|
+
tool: "pen",
|
|
89
|
+
space: "content-rect",
|
|
90
|
+
recTStart: 12.4,
|
|
91
|
+
recTEnd: 13.1,
|
|
92
|
+
frame: { timelineT: 7.25, sourceT: 777.5, cutIndex: 7 },
|
|
93
|
+
points: [[0.1, 0.2], [0.8, 0.9]],
|
|
94
|
+
};
|
|
95
|
+
const reference = resolveUtteranceReference({
|
|
96
|
+
utterance: { text: "ここを調整する", recT: [12, 15], words: [] },
|
|
97
|
+
trace: buildTimelineTrace(events),
|
|
98
|
+
cutMap: buildCutMap(snapshot),
|
|
99
|
+
strokes: [stroke],
|
|
100
|
+
});
|
|
101
|
+
assert.equal(reference.resolutionMethod, "stroke-pair");
|
|
102
|
+
assert.equal(reference.timelineT, stroke.frame.timelineT);
|
|
103
|
+
assert.equal(reference.sourceT, stroke.frame.sourceT);
|
|
104
|
+
assert.equal(reference.target, "cut:7");
|
|
105
|
+
assert.equal(reference.confidence, "high");
|
|
106
|
+
assert.equal(reference.pairedStroke, stroke);
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
test("停止中発話はアンカーを保ちつつ近接ストロークを添付する", () => {
|
|
110
|
+
const { events } = parseEventsJsonl([
|
|
111
|
+
'{"recT":0,"type":"start","timelineT":5,"playing":false}',
|
|
112
|
+
'{"recT":6,"type":"end","timelineT":5}',
|
|
113
|
+
].join("\n"));
|
|
114
|
+
const stroke = {
|
|
115
|
+
id: "st-0002",
|
|
116
|
+
tool: "pen",
|
|
117
|
+
space: "content-rect",
|
|
118
|
+
recTStart: 2.2,
|
|
119
|
+
recTEnd: 2.8,
|
|
120
|
+
frame: { timelineT: 18, sourceT: 108, cutIndex: 1 },
|
|
121
|
+
points: [[0.2, 0.3], [0.7, 0.6]],
|
|
122
|
+
};
|
|
123
|
+
const reference = resolveUtteranceReference({
|
|
124
|
+
utterance: { text: "ここを直す", recT: [2, 3], words: [] },
|
|
125
|
+
trace: buildTimelineTrace(events),
|
|
126
|
+
cutMap: buildCutMap(snapshot),
|
|
127
|
+
strokes: [stroke],
|
|
128
|
+
});
|
|
129
|
+
assert.equal(reference.resolutionMethod, "stopped-frame");
|
|
130
|
+
assert.equal(reference.timelineT, 5);
|
|
131
|
+
assert.equal(reference.sourceT, 15);
|
|
132
|
+
assert.equal(reference.target, "cut:0");
|
|
133
|
+
assert.equal(reference.pairedStroke, stroke);
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
test("annotation へ端点を保った最大100点のストロークと sessionRef を埋め込む", () => {
|
|
137
|
+
const points = Array.from({ length: 151 }, (_, index) => [index / 150, index / 300]);
|
|
138
|
+
const pairedStroke = {
|
|
139
|
+
id: "st-0012",
|
|
140
|
+
tool: "pen",
|
|
141
|
+
space: "content-rect",
|
|
142
|
+
frame: { timelineT: 4, sourceT: 14, cutIndex: 0 },
|
|
143
|
+
points,
|
|
144
|
+
};
|
|
145
|
+
const annotation = proposalToAnnotation({
|
|
146
|
+
proposal: {
|
|
147
|
+
transcript: "ここを直す",
|
|
148
|
+
recRange: [1, 2],
|
|
149
|
+
reference: {
|
|
150
|
+
timelineT: 4,
|
|
151
|
+
sourceT: 14,
|
|
152
|
+
sourceRange: null,
|
|
153
|
+
target: "cut:0",
|
|
154
|
+
confidence: "high",
|
|
155
|
+
candidates: [],
|
|
156
|
+
pairedStroke,
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
decision: { action: "annotate", reason: "編集指示", text: "ここを直す", confidence: "high" },
|
|
160
|
+
sessionId: "s-0003",
|
|
161
|
+
audioPath: "review/sessions/s-0003/audio.wav",
|
|
162
|
+
createdAt: "2026-07-24T00:00:00.000Z",
|
|
163
|
+
});
|
|
164
|
+
assert.equal(annotation.strokes.length, 1);
|
|
165
|
+
assert.equal(annotation.strokes[0].points.length, 100);
|
|
166
|
+
assert.deepEqual(annotation.strokes[0].points[0], points[0]);
|
|
167
|
+
assert.deepEqual(annotation.strokes[0].points.at(-1), points.at(-1));
|
|
168
|
+
assert.equal(annotation.strokes[0].sessionRef, "s-0003/st-0012");
|
|
169
|
+
assert.deepEqual(annotation.strokes[0].frame, { sourceT: 14, cutIndex: 0 });
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
test("CLI が strokes.json を読み annotation へ着地し、破損時は warning へ劣化する", async (context) => {
|
|
173
|
+
const temporary = await fs.mkdtemp(path.join(os.tmpdir(), "compile-review-strokes-"));
|
|
174
|
+
context.after(() => fs.rm(temporary, { recursive: true, force: true }));
|
|
175
|
+
await fs.writeFile(
|
|
176
|
+
path.join(temporary, "review.json"),
|
|
177
|
+
'{\n "version": 0,\n "annotations": [\n ]\n}\n',
|
|
178
|
+
);
|
|
179
|
+
const sessionsRoot = path.join(temporary, "review", "sessions");
|
|
180
|
+
await fs.mkdir(sessionsRoot, { recursive: true });
|
|
181
|
+
|
|
182
|
+
for (const [sessionId, strokesSource] of [
|
|
183
|
+
["s-0001", JSON.stringify({
|
|
184
|
+
version: 1,
|
|
185
|
+
strokes: [{
|
|
186
|
+
id: "st-0001",
|
|
187
|
+
tool: "pen",
|
|
188
|
+
space: "content-rect",
|
|
189
|
+
recTStart: 2.1,
|
|
190
|
+
recTEnd: 2.7,
|
|
191
|
+
frame: { timelineT: 6, sourceT: 16, cutIndex: 0 },
|
|
192
|
+
points: [[0.1, 0.2], [0.8, 0.9]],
|
|
193
|
+
}],
|
|
194
|
+
})],
|
|
195
|
+
["s-0002", "{broken"],
|
|
196
|
+
]) {
|
|
197
|
+
const sessionDirectory = path.join(sessionsRoot, sessionId);
|
|
198
|
+
await fs.mkdir(sessionDirectory);
|
|
199
|
+
await fs.writeFile(path.join(sessionDirectory, "session.json"), JSON.stringify({
|
|
200
|
+
version: 1,
|
|
201
|
+
id: sessionId,
|
|
202
|
+
status: "recorded",
|
|
203
|
+
audio: "audio.wav",
|
|
204
|
+
editSnapshot: "edit.snapshot.json",
|
|
205
|
+
compiledAnnotations: null,
|
|
206
|
+
}));
|
|
207
|
+
await fs.writeFile(path.join(sessionDirectory, "edit.snapshot.json"), JSON.stringify({
|
|
208
|
+
cuts: [{ in: 10, out: 30 }],
|
|
209
|
+
}));
|
|
210
|
+
await fs.writeFile(path.join(sessionDirectory, "events.jsonl"), [
|
|
211
|
+
'{"recT":0,"type":"start","timelineT":0,"playing":false}',
|
|
212
|
+
'{"recT":0.5,"type":"play","timelineT":0}',
|
|
213
|
+
'{"recT":4,"type":"end","timelineT":3.5}',
|
|
214
|
+
].join("\n"));
|
|
215
|
+
await fs.writeFile(path.join(sessionDirectory, "transcript.json"), JSON.stringify({
|
|
216
|
+
version: 1,
|
|
217
|
+
backend: "fixture",
|
|
218
|
+
segments: [{
|
|
219
|
+
start: 2,
|
|
220
|
+
end: 3,
|
|
221
|
+
text: "このカットを削除してください",
|
|
222
|
+
words: [{ start: 2, end: 3, text: "このカットを削除してください" }],
|
|
223
|
+
}],
|
|
224
|
+
}));
|
|
225
|
+
await fs.writeFile(path.join(sessionDirectory, "strokes.json"), strokesSource);
|
|
226
|
+
await execFileAsync(process.execPath, [compileCli, temporary, "--session", sessionId, "--json"]);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
const review = JSON.parse(await fs.readFile(path.join(temporary, "review.json"), "utf8"));
|
|
230
|
+
assert.equal(review.annotations.length, 2);
|
|
231
|
+
assert.equal(review.annotations[0].strokes[0].sessionRef, "s-0001/st-0001");
|
|
232
|
+
assert.equal(review.annotations[0].sourceT, 16);
|
|
233
|
+
assert.equal(review.annotations[1].strokes, null);
|
|
234
|
+
const damagedReport = await fs.readFile(
|
|
235
|
+
path.join(sessionsRoot, "s-0002", "compile-report.md"),
|
|
236
|
+
"utf8",
|
|
237
|
+
);
|
|
238
|
+
assert.match(damagedReport, /strokes\.json を無視します/);
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
test("0.3 秒未満の segment を結合し、文末 word で分割する", () => {
|
|
242
|
+
const utterances = segmentUtterances([
|
|
243
|
+
{
|
|
244
|
+
start: 1,
|
|
245
|
+
end: 2,
|
|
246
|
+
text: "一つ目。",
|
|
247
|
+
words: [{ start: 1, end: 2, text: "一つ目。" }],
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
start: 2.2,
|
|
251
|
+
end: 3,
|
|
252
|
+
text: "二つ目",
|
|
253
|
+
words: [{ start: 2.2, end: 3, text: "二つ目" }],
|
|
254
|
+
},
|
|
255
|
+
]);
|
|
256
|
+
assert.equal(utterances.length, 2);
|
|
257
|
+
assert.equal(utterances[0].text, "一つ目。");
|
|
258
|
+
assert.equal(utterances[1].text, "二つ目");
|
|
259
|
+
});
|
|
260
|
+
|
|
261
|
+
test("fixture の編集指示とテスト発話を暫定判定する", () => {
|
|
262
|
+
assert.deepEqual(
|
|
263
|
+
provisionalJudgement("テロップの文字をもう少し大きくしてください").action,
|
|
264
|
+
"annotate",
|
|
265
|
+
);
|
|
266
|
+
assert.deepEqual(
|
|
267
|
+
provisionalJudgement("えー、これはテストです、音声チェックです").action,
|
|
268
|
+
"discard",
|
|
269
|
+
);
|
|
270
|
+
});
|
|
271
|
+
|
|
272
|
+
test("review.json の既存 annotation バイト列を変更せず新しい行を足す", () => {
|
|
273
|
+
const existingLine = ' {"id":"a-0001","text":"保持"}';
|
|
274
|
+
const source = `{\n "version": 0,\n "annotations": [\n${existingLine}\n ]\n}\n`;
|
|
275
|
+
const updated = appendAnnotationLine(source, { id: "a-0002", text: "追加" });
|
|
276
|
+
assert.ok(updated.includes(existingLine));
|
|
277
|
+
assert.equal(updated.split(existingLine).length, 2);
|
|
278
|
+
assert.deepEqual(JSON.parse(updated).annotations.map((item) => item.id), ["a-0001", "a-0002"]);
|
|
279
|
+
assert.equal(nextAnnotationNumber(JSON.parse(updated).annotations), 3);
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
test("whisper token 境界で分断された UTF-8 bytes を連結して word に戻す", () => {
|
|
283
|
+
const bytes = Buffer.from("テ", "utf8");
|
|
284
|
+
const words = restoreWhisperTokenWords([
|
|
285
|
+
{
|
|
286
|
+
text: bytes.subarray(0, 2).toString("latin1"),
|
|
287
|
+
offsets: { from: 1000, to: 1100 },
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
text: bytes.subarray(2).toString("latin1"),
|
|
291
|
+
offsets: { from: 1100, to: 1200 },
|
|
292
|
+
},
|
|
293
|
+
], 1, 2);
|
|
294
|
+
assert.deepEqual(words, [{ start: 1, end: 1.2, text: "テ" }]);
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
test("発話をまたぐ多段スクラブは発話終端の着地点へ高信頼で解決する", () => {
|
|
298
|
+
const scrubSnapshot = {
|
|
299
|
+
cuts: [
|
|
300
|
+
{ in: 0, out: 60 },
|
|
301
|
+
{ in: 1000, out: 1050, at: 60 },
|
|
302
|
+
{ in: 2000, out: 2060, at: 110 },
|
|
303
|
+
],
|
|
304
|
+
};
|
|
305
|
+
const { events } = parseEventsJsonl([
|
|
306
|
+
'{"recT":0,"type":"start","timelineT":0,"playing":false}',
|
|
307
|
+
'{"recT":11.21,"type":"seek","from":0,"to":100.06}',
|
|
308
|
+
'{"recT":12.72,"type":"seek","from":100.06,"to":104.34}',
|
|
309
|
+
'{"recT":12.97,"type":"seek","from":104.34,"to":115.17}',
|
|
310
|
+
'{"recT":12.98,"type":"rate","value":0.9}',
|
|
311
|
+
'{"recT":13.23,"type":"seek","from":115.17,"to":122.88}',
|
|
312
|
+
'{"recT":17.32,"type":"seek","from":122.88,"to":71.25}',
|
|
313
|
+
'{"recT":17.33,"type":"rate","value":1}',
|
|
314
|
+
'{"recT":20.52,"type":"end","timelineT":71.25}',
|
|
315
|
+
].join("\n"));
|
|
316
|
+
const reference = resolveUtteranceReference({
|
|
317
|
+
utterance: { text: "この辺りを明るく調整する", recT: [9.22, 17.94], words: [] },
|
|
318
|
+
trace: buildTimelineTrace(events),
|
|
319
|
+
cutMap: buildCutMap(scrubSnapshot),
|
|
320
|
+
});
|
|
321
|
+
assert.equal(reference.target, "cut:1");
|
|
322
|
+
assert.ok(Math.abs(reference.sourceT - 1011.25) < 0.05, `sourceT=${reference.sourceT}`);
|
|
323
|
+
assert.equal(reference.confidence, "high");
|
|
324
|
+
assert.notEqual(reference.confidence, "low");
|
|
325
|
+
});
|
|
326
|
+
|
|
327
|
+
test("圧縮タイムスタンプを reject して whisper.cpp へ fallback する", async (context) => {
|
|
328
|
+
const temporary = await fs.mkdtemp(path.join(os.tmpdir(), "compile-review-vad-"));
|
|
329
|
+
context.after(() => fs.rm(temporary, { recursive: true, force: true }));
|
|
330
|
+
const audioPath = path.join(temporary, "audio.wav");
|
|
331
|
+
await writePcmWav(audioPath, 18, [
|
|
332
|
+
[1.95, 3.05],
|
|
333
|
+
[4.65, 6.15],
|
|
334
|
+
[7.1, 7.45],
|
|
335
|
+
[8.1, 9.2],
|
|
336
|
+
[11.95, 12.25],
|
|
337
|
+
[14.5, 17.85],
|
|
338
|
+
]);
|
|
339
|
+
const vad = await detectVadSpans(audioPath);
|
|
340
|
+
assert.deepEqual(
|
|
341
|
+
vad.spans.map(({ start, end }) => [start, end]),
|
|
342
|
+
[
|
|
343
|
+
[1.95, 3.05],
|
|
344
|
+
[4.65, 6.15],
|
|
345
|
+
[7.1, 7.45],
|
|
346
|
+
[8.1, 9.2],
|
|
347
|
+
[11.95, 12.25],
|
|
348
|
+
[14.5, 17.85],
|
|
349
|
+
],
|
|
350
|
+
);
|
|
351
|
+
const calls = [];
|
|
352
|
+
const warnings = [];
|
|
353
|
+
const transcript = await transcribeAudio({
|
|
354
|
+
audioPath,
|
|
355
|
+
transcribers: {
|
|
356
|
+
speechAnalyzer: async () => {
|
|
357
|
+
calls.push("speechanalyzer");
|
|
358
|
+
return {
|
|
359
|
+
result: {
|
|
360
|
+
backend: "speechanalyzer",
|
|
361
|
+
segments: timedSegments([[4.38, 6.4], [14.27, 15.16]]),
|
|
362
|
+
},
|
|
363
|
+
reason: null,
|
|
364
|
+
};
|
|
365
|
+
},
|
|
366
|
+
whisper: async () => {
|
|
367
|
+
calls.push("whisper-cpp");
|
|
368
|
+
return {
|
|
369
|
+
result: {
|
|
370
|
+
backend: "whisper-cpp",
|
|
371
|
+
segments: timedSegments([[0, 9.22], [9.22, 17.94]]),
|
|
372
|
+
},
|
|
373
|
+
reason: null,
|
|
374
|
+
};
|
|
375
|
+
},
|
|
376
|
+
},
|
|
377
|
+
logger: { warn: (warning) => warnings.push(warning) },
|
|
378
|
+
});
|
|
379
|
+
|
|
380
|
+
assert.deepEqual(calls, ["speechanalyzer", "whisper-cpp"]);
|
|
381
|
+
assert.equal(transcript.backend, "whisper-cpp");
|
|
382
|
+
assert.equal(transcript.provenance.backend, "whisper-cpp");
|
|
383
|
+
assert.equal(transcript.provenance.fallbackFrom, "speechanalyzer");
|
|
384
|
+
assert.match(transcript.provenance.reason, /coverage=0\.313 .*\/7\.700秒.*< 0\.700/);
|
|
385
|
+
assert.equal(warnings.length, 1);
|
|
386
|
+
assert.match(warnings[0], /タイムスタンプ健全性ゲートで結果を破棄/);
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
test("VAD 発話時間を十分に覆うタイムスタンプはそのまま採用する", async (context) => {
|
|
390
|
+
const temporary = await fs.mkdtemp(path.join(os.tmpdir(), "compile-review-vad-"));
|
|
391
|
+
context.after(() => fs.rm(temporary, { recursive: true, force: true }));
|
|
392
|
+
const audioPath = path.join(temporary, "audio.wav");
|
|
393
|
+
await writePcmWav(audioPath, 3, [[0.5, 1.5], [2, 2.5]]);
|
|
394
|
+
let whisperCalled = false;
|
|
395
|
+
const healthySegments = timedSegments([[0.45, 1.55], [1.95, 2.55]]);
|
|
396
|
+
const transcript = await transcribeAudio({
|
|
397
|
+
audioPath,
|
|
398
|
+
transcribers: {
|
|
399
|
+
speechAnalyzer: async () => ({
|
|
400
|
+
result: { backend: "speechanalyzer", segments: healthySegments },
|
|
401
|
+
reason: null,
|
|
402
|
+
}),
|
|
403
|
+
whisper: async () => {
|
|
404
|
+
whisperCalled = true;
|
|
405
|
+
throw new Error("健全な tier の後に fallback してはいけません");
|
|
406
|
+
},
|
|
407
|
+
},
|
|
408
|
+
logger: { warn: () => assert.fail("健全なタイムスタンプで warning を出してはいけません") },
|
|
409
|
+
});
|
|
410
|
+
|
|
411
|
+
assert.equal(whisperCalled, false);
|
|
412
|
+
assert.equal(transcript.backend, "speechanalyzer");
|
|
413
|
+
assert.deepEqual(transcript.segments, healthySegments);
|
|
414
|
+
assert.deepEqual(transcript.provenance, { backend: "speechanalyzer" });
|
|
415
|
+
});
|
|
416
|
+
|
|
417
|
+
function expectLocation(sourceT, cutIndex) {
|
|
418
|
+
return {
|
|
419
|
+
...buildCutMap(snapshot).intervals[cutIndex],
|
|
420
|
+
timelineT: sourceT < 100 ? sourceT - 10 : sourceT - 90,
|
|
421
|
+
sourceT,
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
function timedSegments(ranges) {
|
|
426
|
+
return ranges.map(([start, end], index) => ({
|
|
427
|
+
start,
|
|
428
|
+
end,
|
|
429
|
+
text: `発話${index + 1}`,
|
|
430
|
+
words: [{ start, end, text: `発話${index + 1}` }],
|
|
431
|
+
}));
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
async function writePcmWav(file, duration, speechSpans, sampleRate = 16000) {
|
|
435
|
+
const frameCount = Math.round(duration * sampleRate);
|
|
436
|
+
const data = Buffer.alloc(frameCount * 2);
|
|
437
|
+
for (let frame = 0; frame < frameCount; frame += 1) {
|
|
438
|
+
const time = frame / sampleRate;
|
|
439
|
+
const voiced = speechSpans.some(([start, end]) => time >= start && time < end);
|
|
440
|
+
data.writeInt16LE(voiced ? 1000 : 0, frame * 2);
|
|
441
|
+
}
|
|
442
|
+
const wav = Buffer.alloc(44 + data.length);
|
|
443
|
+
wav.write("RIFF", 0);
|
|
444
|
+
wav.writeUInt32LE(36 + data.length, 4);
|
|
445
|
+
wav.write("WAVE", 8);
|
|
446
|
+
wav.write("fmt ", 12);
|
|
447
|
+
wav.writeUInt32LE(16, 16);
|
|
448
|
+
wav.writeUInt16LE(1, 20);
|
|
449
|
+
wav.writeUInt16LE(1, 22);
|
|
450
|
+
wav.writeUInt32LE(sampleRate, 24);
|
|
451
|
+
wav.writeUInt32LE(sampleRate * 2, 28);
|
|
452
|
+
wav.writeUInt16LE(2, 32);
|
|
453
|
+
wav.writeUInt16LE(16, 34);
|
|
454
|
+
wav.write("data", 36);
|
|
455
|
+
wav.writeUInt32LE(data.length, 40);
|
|
456
|
+
data.copy(wav, 44);
|
|
457
|
+
await fs.writeFile(file, wav);
|
|
458
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-project
|
|
3
|
+
description: AKARI Video の新規プロジェクトを headless で作成する。`templates/project-default/` を再帰コピーし、雛形バージョンを記録し、安全な場合のみ git 初期化して、作成結果レポート HTML を生成する。アプリ起動は不要。新しい動画プロジェクトを作るとき、または既存フォルダを AKARI Video プロジェクトとして補完するときに使う。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 新規プロジェクトを作成する
|
|
7
|
+
|
|
8
|
+
> **Language**: Respond in the user's language — 対話・質問・承認確認・レポートはユーザーの使用言語に合わせる(例: 英語で話しかけられたら英語で応答する)。
|
|
9
|
+
|
|
10
|
+
## ハードルール
|
|
11
|
+
|
|
12
|
+
1. **雛形は解決順の 2 択のみ。** 存在しない雛形・カテゴリを捏造しない
|
|
13
|
+
2. **既存ファイルを絶対に上書きしない**(`flag:'wx'`。既存フォルダへの適用は不足分の追加のみ、
|
|
14
|
+
CLAUDE.md / AGENTS.md には触れない — 自己完結契約 §5 と同じ規律)
|
|
15
|
+
3. **シンボリックリンクはコピーせず警告**
|
|
16
|
+
4. **F18 ガードを内蔵する**: 作成先で `git rev-parse --show-toplevel` を判定し、
|
|
17
|
+
既存リポ(`_edit` 等)の内側では git init しない。親リポを汚す経路を作らない
|
|
18
|
+
(Wave 9 `f18-parent-repo-guard` と同じ判定基準)
|
|
19
|
+
5. **git 初期化が安全な場合のみ** init + 単一コミット。それ以外は理由を報告して skip
|
|
20
|
+
6. **雛形バージョン(`AKARI-SKILLS-VERSION`)を記録するだけ**で、既存プロジェクトへの
|
|
21
|
+
silent update をしない
|
|
22
|
+
7. **アプリ作成とスキル作成の成果物 diff ゼロを保つ**(§3 の共有実装がその手段)
|
|
23
|
+
|
|
24
|
+
## 実行手順
|
|
25
|
+
|
|
26
|
+
1. `--template <path>` があればその雛形を使い、省略時はリポ checkout の `templates/project-default/` を使う。この 2 択以外の雛形解決を行わない。
|
|
27
|
+
2. 次の CLI を実行する。
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
node skills/create-project/bin/create-project.mjs <target-dir> [--template <path>]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
3. 標準出力に表示された作成結果レポート HTML のパスを確認する。レポートは読み取り専用で、コピー、フォールバック補完、シンボリックリンクのスキップ、雛形バージョン、git 初期化の結果を記録する。
|
|
34
|
+
|
|
35
|
+
## 使い方
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
node skills/create-project/bin/create-project.mjs <target-dir> [--template <path>]
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
- `<target-dir>`: 作成先ディレクトリ。新規でも既存の非空フォルダでもよい。既存ファイルは上書きしない。
|
|
42
|
+
- `--template <path>`: 雛形ディレクトリを明示指定する。省略時はリポ checkout の `templates/project-default/` を使う。それ以外の解決手段はない。
|
|
43
|
+
|
|
44
|
+
## intake.json(進め方フォームの保存先)
|
|
45
|
+
|
|
46
|
+
作成直後の `.akari/intake.json` は `status: "draft"`・空 `tasks` から始まる(契約: `packages/schemas/intake.schema.json`)。プロジェクトの CLAUDE.md には intake の規律を追記する — `status: "submitted"` なら `tasks` / `target` / `autonomy` に従い、`autonomy: "checkpoint"`(既定)なら企画承認・書き出し前などの要所で人に確認し、`status: "draft"` のままなら進め方をフォームまたは対話で確定させてから進める。
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import fs from 'node:fs/promises';
|
|
4
|
+
import path from 'node:path';
|
|
5
|
+
import { fileURLToPath } from 'node:url';
|
|
6
|
+
|
|
7
|
+
import { createProject } from '../../../packages/project-scaffold/src/index.mjs';
|
|
8
|
+
|
|
9
|
+
const usage = '使い方: node skills/create-project/bin/create-project.mjs <target-dir> [--template <path>]';
|
|
10
|
+
|
|
11
|
+
function parseArguments(args) {
|
|
12
|
+
let target;
|
|
13
|
+
let template;
|
|
14
|
+
|
|
15
|
+
for (let index = 0; index < args.length; index += 1) {
|
|
16
|
+
const argument = args[index];
|
|
17
|
+
if (argument === '--template') {
|
|
18
|
+
const value = args[index + 1];
|
|
19
|
+
if (!value || value.startsWith('--')) {
|
|
20
|
+
throw new Error(`${usage}\n--template にはパスが必要です。`);
|
|
21
|
+
}
|
|
22
|
+
template = value;
|
|
23
|
+
index += 1;
|
|
24
|
+
} else if (argument.startsWith('-')) {
|
|
25
|
+
throw new Error(`${usage}\n不明なオプションです: ${argument}`);
|
|
26
|
+
} else if (target === undefined) {
|
|
27
|
+
target = argument;
|
|
28
|
+
} else {
|
|
29
|
+
throw new Error(`${usage}\n作成先は 1 つだけ指定してください。`);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (target === undefined) {
|
|
34
|
+
throw new Error(usage);
|
|
35
|
+
}
|
|
36
|
+
return { target, template };
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
async function directoryHasFile(directory, relativeFile) {
|
|
40
|
+
try {
|
|
41
|
+
return (await fs.stat(path.join(directory, relativeFile))).isFile();
|
|
42
|
+
} catch {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
async function main() {
|
|
48
|
+
const { target, template } = parseArguments(process.argv.slice(2));
|
|
49
|
+
const targetDir = path.resolve(process.cwd(), target);
|
|
50
|
+
const scriptDirectory = path.dirname(fileURLToPath(import.meta.url));
|
|
51
|
+
const templateDir = template
|
|
52
|
+
? path.resolve(process.cwd(), template)
|
|
53
|
+
: path.resolve(scriptDirectory, '../../../templates/project-default');
|
|
54
|
+
|
|
55
|
+
try {
|
|
56
|
+
const templateStat = await fs.stat(templateDir);
|
|
57
|
+
if (!templateStat.isDirectory()) {
|
|
58
|
+
throw new Error('not a directory');
|
|
59
|
+
}
|
|
60
|
+
} catch {
|
|
61
|
+
throw new Error(`雛形が見つかりません: ${templateDir}`);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// スキル正本は自分の 2 つ上(リポ checkout なら skills/、プロジェクト内なら .claude/skills/)。
|
|
65
|
+
const skillsSourceDir = path.resolve(scriptDirectory, '../..');
|
|
66
|
+
const hasSkills = await directoryHasFile(skillsSourceDir, 'analyze-footage/SKILL.md');
|
|
67
|
+
if (!hasSkills) {
|
|
68
|
+
console.warn(`スキル正本が見つからないため、スキル同梱をスキップします: ${skillsSourceDir}`);
|
|
69
|
+
}
|
|
70
|
+
const schemasSourceDir = path.resolve(scriptDirectory, '../../../packages/schemas');
|
|
71
|
+
const hasSchemas = await directoryHasFile(schemasSourceDir, 'analysis.schema.json');
|
|
72
|
+
|
|
73
|
+
const result = await createProject(targetDir, templateDir, hasSkills
|
|
74
|
+
? { skillsSourceDir, schemasSourceDir: hasSchemas ? schemasSourceDir : undefined }
|
|
75
|
+
: {});
|
|
76
|
+
console.log(`プロジェクトを作成しました: ${result.destination}`);
|
|
77
|
+
console.log(`コピー: ${result.copy.copiedFiles.length} 件`);
|
|
78
|
+
console.log(`フォールバック補完: ${result.fallback.writtenFiles.length} 件`);
|
|
79
|
+
console.log(`シンボリックリンクのスキップ: ${result.copy.skippedSymlinks.length} 件`);
|
|
80
|
+
console.log(`スキル同梱: ${hasSkills ? `実施(${skillsSourceDir})` : 'スキップ'}`);
|
|
81
|
+
console.log(`git: ${result.git.action}`);
|
|
82
|
+
console.log(`作成結果レポート: ${result.reportPath}`);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
main().catch(error => {
|
|
86
|
+
console.error(error instanceof Error ? error.message : String(error));
|
|
87
|
+
process.exitCode = 1;
|
|
88
|
+
});
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: edit-lint
|
|
3
|
+
description: edit.json と任意の analysis.json / captions.json / メディアを決定的 CLI で検査し、PASS 後のフレーム視認とレポートまで QA を完了する。edit.json を書いた、または変更した直後、書き出し前、レビュー指摘を反映した後の再確認で使う。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 編集結果を lint して QA を閉じる
|
|
7
|
+
|
|
8
|
+
> **Language**: Respond in the user's language — 対話・質問・承認確認・レポートはユーザーの使用言語に合わせる(例: 英語で話しかけられたら英語で応答する)。
|
|
9
|
+
|
|
10
|
+
## ハードルール
|
|
11
|
+
|
|
12
|
+
1. **決定的であること**: 同一入力 → 同一出力。LLM 判断・乱数・現在時刻を判定に混ぜない
|
|
13
|
+
(`checked_at` の記録は可・判定には使わない)
|
|
14
|
+
2. **外部 npm 依存ゼロ**。ffmpeg / ffprobe は**本体直叩き**(ラッパーライブラリ禁止)
|
|
15
|
+
3. **書き込みは `.akari/lint.json` と `.akari/reports/` のみ**。edit.json を自動修正しない
|
|
16
|
+
(fix は人間/エージェントの編集として git diff に出す)
|
|
17
|
+
4. **ネットワーク禁止**(完全ローカル・headless-first 不変条件どおりアプリ不要)
|
|
18
|
+
5. **外部候補のコード転写禁止**(loudcheck 等は設計参考のみ。survey の転記条件に
|
|
19
|
+
関わらず本 CLI は全量自作 — 依存ゼロ規律と同根)
|
|
20
|
+
6. **analysis.json / captions.json / `.akari/intake.json` 不在をエラーにしない**(skipped 報告。
|
|
21
|
+
プロジェクトの成長段階に関わらず常に走れる)
|
|
22
|
+
7. **`--media` なしの既定実行はメディアをデコードしない**(起動・CI で常用できる速さを守る)
|
|
23
|
+
8. **視認に使うキーフレーム静止画・QA 生成物、ad-hoc な一時検証スクリプトはプロジェクトルート
|
|
24
|
+
直下に書かない**。前者は `.akari/reports/`、後者は `.akari/work/` へ置く
|
|
25
|
+
([project-structure-v0 契約](../../docs/contract-2026-07-25-project-structure-v0.md) §1)
|
|
26
|
+
|
|
27
|
+
## 実行手順
|
|
28
|
+
|
|
29
|
+
1. edit.json を保存した直後に、リポジトリルートから次を実行する。
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
node packages/edit-lint/bin/edit-lint.mjs <project-root|edit.json>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
2. exit code と `<project>/.akari/lint.json` を確認する。`0` は PASS、`1` は FAIL、`2` は入力や実行環境のエラーを表す。
|
|
36
|
+
3. FAIL なら `findings[]` を上から読み、指摘された edit.json、参照ファイル、overlay HTML、captions.json を手で修正する。CLI に自動修正させない。
|
|
37
|
+
4. 同じコマンドを再実行し、error finding がなく `verdict: "pass"` になるまで繰り返す。analysis.json または captions.json が無い検査は `skipped[]` で確認する。
|
|
38
|
+
5. PASS 後に、カット境界と overlay の開始・終了フレームを実際に視認する。機械検査の PASS を意味的な品質確認の代わりにしない。
|
|
39
|
+
6. `<project>/.akari/reports/edit-lint-report.html` とフレーム視認結果を編集レポートへ反映し、checkpoint 状態と provenance を実態に合わせて閉じる。
|
|
40
|
+
|
|
41
|
+
音声も確認するときだけ `--media` を追加する。無音区間と音量値は既定で warning になり、次の明示閾値を指定した検査だけが FAIL になり得る。
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
node packages/edit-lint/bin/edit-lint.mjs <project> --media
|
|
45
|
+
node packages/edit-lint/bin/edit-lint.mjs <project> --media --silence-error-seconds 2 --max-volume-error-db -0.1
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
機械向けの標準出力が必要なら `--json` を追加する。状態の正本は常に `.akari/lint.json` とし、HTML は可視化にだけ使う。
|
|
49
|
+
|
|
50
|
+
`.akari/intake.json`(進め方フォームの保存先。契約: `packages/schemas/intake.schema.json`)が存在すれば、schema 検証と整合検査(未知の task ID・`duration_s`/`keep_length` の同時指定・`status: submitted` なのに `submitted_at` 欠落 等)を合わせて行う。不正値は error(FAIL)、`status: "draft"`(進め方が未確定)は warning に留める。
|
|
51
|
+
|
|
52
|
+
## 非スコープと拡張候補
|
|
53
|
+
|
|
54
|
+
黒フレーム、フリーズ、ビート、シーン、フラッシュフレーム、ギャップ、重複クリップ、オフラインメディア、セーフゾーン、フレームレート不整合は将来候補であり、現在の PASS 条件へ推測で追加しない。
|
|
55
|
+
|
|
56
|
+
## 公開契約
|
|
57
|
+
|
|
58
|
+
edit.json の検査対象は次の公開契約が定めるフィールドである。契約に無いフィールドの検査を推測で
|
|
59
|
+
足さず、契約が定めた検査(構造・id 一意性・範囲・参照整合)は既に実装済みである。
|
|
60
|
+
|
|
61
|
+
- [edit.json v0](../../docs/contract-2026-07-13-m1-m4.md)
|
|
62
|
+
- [マルチソース `sources[]` / `cuts[].src`](../../docs/contract-2026-07-18-edit-json-v1-sources.md)
|
|
63
|
+
— `version: 1` の必須形、`source` と `sources[]` の排他、`sources[].id` の一意性、`cuts[].src` の参照整合
|
|
64
|
+
- [ナレーション `audio.narration[]`](../../docs/contract-2026-07-20-edit-json-v1-narration.md)
|
|
65
|
+
— id 形式と一意性、`t` の timeline 座標、`gain_db` 範囲、provenance と credit
|
|
66
|
+
- [見せ場マーカー `beats[]`](../../docs/contract-2026-07-22-edit-json-v1-beats.md)
|
|
67
|
+
— id・`t`(source 秒)・`kind`・`strength`・`src` の参照整合(`src` は v1 のみ)
|
|
68
|
+
- [演出宣言 `direction`](../../docs/contract-2026-07-23-edit-json-v1-direction.md)
|
|
69
|
+
— `preset` の必須と `intensity` の範囲、`overrides` の型
|
|
70
|
+
- [語レベル演出 `emphasis_words[]`](../../docs/contract-2026-07-23-edit-json-v1-emphasis-words.md)
|
|
71
|
+
— id 形式と一意性、`t_end > t_start`(source 秒)、`src` の参照整合(`src` は v1 のみ)
|
|
72
|
+
- [字幕とカット編集](../../docs/notes-2026-07-14-captions-and-cut-editing.md)
|
|
73
|
+
- [QA lint の方向性](../../docs/notes-2026-07-16-qa-lint-and-transcript-ui.md)
|