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,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: address-review
|
|
3
|
+
description: review.json の open チケット(annotation)を edit.json への実対応 → edit-lint → チケット更新まで型どおりに執行するスキル。「a-0002 と a-0003 に対応して」「open チケット全部に対応して」で発動する。状態機械(open → addressed + response 必須・resolved 不可侵・黙殺禁止)を bin/respond.mjs が原子的に守る QA ループの消費側。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# open チケットへ対応する
|
|
7
|
+
|
|
8
|
+
> **Language**: Respond in the user's language — 対話・質問・承認確認・レポートはユーザーの使用言語に合わせる(例: 英語で話しかけられたら英語で応答する)。
|
|
9
|
+
|
|
10
|
+
正典: 非公開の内部契約(`akari-video-internal`)— review-annotations 契約 §1/§3/§5(状態機械)+
|
|
11
|
+
review-session 契約 §6(session 由来の増補フィールド)。
|
|
12
|
+
|
|
13
|
+
## ハードルール
|
|
14
|
+
|
|
15
|
+
1. **状態機械を厳密に守る**: `open → addressed` は必ず `response`(`summary` + `action` +
|
|
16
|
+
`respondedAt`)を伴う。`resolved` には**絶対に書き込まない**(人間専用の承認ゲート)。
|
|
17
|
+
`addressed` からの再対応もしない。これらは `bin/respond.mjs` がプログラムとして拒否する
|
|
18
|
+
(ガードを迂回して review.json を手で書き換えない)。
|
|
19
|
+
2. **黙殺しない**: 対応しない/できないと判断したチケットも必ず `declined` + 理由を `summary`
|
|
20
|
+
に書いて `respond` する。判断に迷う場合も、open のまま放置せず `declined` + 質問を
|
|
21
|
+
summary に書く。
|
|
22
|
+
3. **`[要確認]` は明示指名されたときのみ対象**: `text` が `[要確認]` で始まる annotation は
|
|
23
|
+
`--all-open` では対象外(`bin/list.mjs` が自動でスキップし、スキップした旨を出力する)。
|
|
24
|
+
`--ids` で当該 id を明示したときだけ対象にする。`[要確認]` はオーナーへの質問であり、
|
|
25
|
+
エージェントが勝手に解釈して消化してよいものではない。
|
|
26
|
+
4. **edit.json への実装は edit-lint を通してから respond する**: 字幕系の指示は captions 規約
|
|
27
|
+
([字幕とカット編集](../../docs/notes-2026-07-14-captions-and-cut-editing.md) — 隙間の原則・
|
|
28
|
+
実発話区間・最短 1.0s)に従う。`node packages/edit-lint/bin/edit-lint.mjs <project> --media`
|
|
29
|
+
が PASS してから `respond` を打つ(PASS 前に addressed にしない)。
|
|
30
|
+
5. **判断(編集内容の解釈・実装)はエージェントが行い、bin は機械可能な部分(列挙・状態遷移の
|
|
31
|
+
執行)だけを担う**。bin に「どう直すか」の判断をさせない。
|
|
32
|
+
|
|
33
|
+
## 実行順
|
|
34
|
+
|
|
35
|
+
1. 対象を列挙する。
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
node skills/address-review/bin/list.mjs <project-root> --ids a-0002,a-0003
|
|
39
|
+
node skills/address-review/bin/list.mjs <project-root> --all-open
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
出力には `sourceT` / `sourceRange` / `target`(`cut:<index>` 等)/ `text` / `input` に加え、
|
|
43
|
+
session 由来(§6 増補)なら `session`(id・recRange・confidence)と `strokes`(sessionRef 付き)
|
|
44
|
+
を人間可読に整形して表示する。`--all-open` は `[要確認]` annotation を自動でスキップし、
|
|
45
|
+
スキップした id と件数を出力に含める。
|
|
46
|
+
2. 各チケットについて `text` の指示(source 秒・target が入っている)を読み、対応方針を決める。
|
|
47
|
+
- 対応する場合: edit.json(必要なら captions.json)を編集し、
|
|
48
|
+
`node packages/edit-lint/bin/edit-lint.mjs <project-root> --media` を PASS させる。
|
|
49
|
+
- 対応しない場合: 理由を明確にする(黙殺しない)。
|
|
50
|
+
3. 判断が確定したチケットごとに状態を執行する。
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
node skills/address-review/bin/respond.mjs <project-root> \
|
|
54
|
+
--id a-0002 --action edited --summary "captions.json に c-0009〜c-0013 を追加。edit-lint --media PASS 確認済み。"
|
|
55
|
+
|
|
56
|
+
node skills/address-review/bin/respond.mjs <project-root> \
|
|
57
|
+
--id a-0003 --action declined --summary "参照素材が assets/ に無いため見送り。素材が揃ったら再度チケットを切ってください。"
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
`respond` は対象が `open` でなければ(`resolved` / `addressed` / 未知 id いずれも)拒否し、
|
|
61
|
+
`summary` が空でも拒否する。いずれの拒否も review.json を一切変更しない
|
|
62
|
+
(exit code: 成功 0 / ガード拒否 1 / 入力・実行環境エラー 2)。
|
|
63
|
+
4. 全 respond 後に対応サマリを 1 枚報告する: 対応 id ごとの action(edited/declined)・
|
|
64
|
+
summary の要旨、スキップした `[要確認]` id、拒否があればその理由。
|
|
65
|
+
|
|
66
|
+
## オプション
|
|
67
|
+
|
|
68
|
+
- `list.mjs --ids <id,id,...>`: 指定 id だけを列挙する(`[要確認]` も対象に含まれる)。
|
|
69
|
+
- `list.mjs --all-open`: `status: "open"` すべてを列挙し、`[要確認]` はスキップして報告する。
|
|
70
|
+
- `list.mjs --json` / `respond.mjs --json`: 機械可読な出力を stdout に出す。
|
|
71
|
+
- `respond.mjs --id --action edited|declined --summary "..."`: 状態遷移の実行器。
|
|
72
|
+
`respondedAt` は実行時刻から自動生成する(ISO8601、上書き不可)。
|
|
73
|
+
|
|
74
|
+
## 出力
|
|
75
|
+
|
|
76
|
+
- `bin/list.mjs`: 対象チケットの一覧(人間可読 or `--json`)。ファイルへの書き込みはしない。
|
|
77
|
+
- `bin/respond.mjs`: `review.json` への原子的な状態遷移(`open → addressed` + `response`)。
|
|
78
|
+
対象以外の annotation・対象の他フィールドはバイト単位で不変。
|
|
79
|
+
|
|
80
|
+
## 実プロジェクトへの適用について
|
|
81
|
+
|
|
82
|
+
本スキル自体は open チケットへの対応を型どおりに実行する道具である。どの edit.json の変更が
|
|
83
|
+
「対応」に当たるかの判断(字幕の正確な範囲、削るべきカット等)はプロジェクトごとに一次情報
|
|
84
|
+
(音声・映像・transcript)を確認して行うエージェントの仕事であり、bin が代行しない。
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import fs from "node:fs/promises";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
|
|
4
|
+
export const KNOWN_STATUSES = ["open", "addressed", "resolved"];
|
|
5
|
+
export const KNOWN_ACTIONS = ["edited", "declined"];
|
|
6
|
+
|
|
7
|
+
export async function writeAtomic(destination, source) {
|
|
8
|
+
await fs.mkdir(path.dirname(destination), { recursive: true });
|
|
9
|
+
const temporary = `${destination}.${process.pid}.${Date.now()}.tmp`;
|
|
10
|
+
try {
|
|
11
|
+
await fs.writeFile(temporary, source);
|
|
12
|
+
await fs.rename(temporary, destination);
|
|
13
|
+
} catch (error) {
|
|
14
|
+
await fs.rm(temporary, { force: true }).catch(() => {});
|
|
15
|
+
throw error;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export async function readReviewSource(reviewPath) {
|
|
20
|
+
try {
|
|
21
|
+
return await fs.readFile(reviewPath, "utf8");
|
|
22
|
+
} catch (error) {
|
|
23
|
+
if (error?.code === "ENOENT") return null;
|
|
24
|
+
throw error;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function findAnnotationsArrayStart(source) {
|
|
29
|
+
const match = /"annotations"\s*:\s*\[/.exec(source);
|
|
30
|
+
if (!match) throw new Error("review.json に annotations 配列が見つかりません");
|
|
31
|
+
return match.index + match[0].length;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// annotations 配列の各要素(常に JSON オブジェクト)の [start, end) をテキスト走査で特定する。
|
|
35
|
+
// 文字列中の { } [ ] やエスケープを誤検出しないよう、文字列内はスキップする。
|
|
36
|
+
// 対象要素だけを丸ごと置換するための座標として使う(他要素のバイト列には一切触れない)。
|
|
37
|
+
function splitObjectArrayElements(source, arrayContentStart) {
|
|
38
|
+
const elements = [];
|
|
39
|
+
let depth = 0;
|
|
40
|
+
let elementStart = null;
|
|
41
|
+
let inString = false;
|
|
42
|
+
let arrayEnd = null;
|
|
43
|
+
for (let index = arrayContentStart; index < source.length; index += 1) {
|
|
44
|
+
const char = source[index];
|
|
45
|
+
if (inString) {
|
|
46
|
+
if (char === "\\") { index += 1; continue; }
|
|
47
|
+
if (char === '"') inString = false;
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
if (char === '"') { inString = true; continue; }
|
|
51
|
+
if (char === "{") {
|
|
52
|
+
depth += 1;
|
|
53
|
+
if (depth === 1) elementStart = index;
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
if (char === "}") {
|
|
57
|
+
depth -= 1;
|
|
58
|
+
if (depth === 0 && elementStart !== null) {
|
|
59
|
+
elements.push({ start: elementStart, end: index + 1 });
|
|
60
|
+
elementStart = null;
|
|
61
|
+
}
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
if (char === "]" && depth === 0 && elementStart === null) {
|
|
65
|
+
arrayEnd = index;
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
if (arrayEnd === null) throw new Error("review.json の annotations 配列の閉じ括弧が見つかりません");
|
|
70
|
+
return elements;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function locateAnnotations(source) {
|
|
74
|
+
const start = findAnnotationsArrayStart(source);
|
|
75
|
+
return splitObjectArrayElements(source, start).map(({ start: elementStart, end: elementEnd }) => {
|
|
76
|
+
const raw = source.slice(elementStart, elementEnd);
|
|
77
|
+
let value;
|
|
78
|
+
try {
|
|
79
|
+
value = JSON.parse(raw);
|
|
80
|
+
} catch {
|
|
81
|
+
throw new Error(`review.json の annotation を JSON として解釈できません: ${raw.slice(0, 60)}...`);
|
|
82
|
+
}
|
|
83
|
+
return { start: elementStart, end: elementEnd, raw, value };
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function parseReviewDocument(source) {
|
|
88
|
+
let parsed;
|
|
89
|
+
try {
|
|
90
|
+
parsed = JSON.parse(source);
|
|
91
|
+
} catch {
|
|
92
|
+
throw new Error("review.json が有効な JSON ではありません");
|
|
93
|
+
}
|
|
94
|
+
if (!parsed || !Array.isArray(parsed.annotations)) {
|
|
95
|
+
throw new Error("review.json に annotations 配列がありません");
|
|
96
|
+
}
|
|
97
|
+
return parsed;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function needsConfirmation(annotation) {
|
|
101
|
+
return typeof annotation?.text === "string" && annotation.text.trimStart().startsWith("[要確認]");
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function lineIndent(text, index) {
|
|
105
|
+
const lineStart = text.lastIndexOf("\n", index - 1) + 1;
|
|
106
|
+
const match = /^[ \t]*/.exec(text.slice(lineStart, index));
|
|
107
|
+
return match ? match[0] : "";
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function serializeResponseValue(text, keyIndex, response) {
|
|
111
|
+
// 契約の response 例(contract-2026-07-15 §3)と同じキー順で固定する。呼び出し側の
|
|
112
|
+
// オブジェクトプロパティ順に依らせない(JSON.stringify はプロパティ挿入順に従うため)。
|
|
113
|
+
const canonical = { summary: response.summary, action: response.action, respondedAt: response.respondedAt };
|
|
114
|
+
const isMultiline = text.includes("\n");
|
|
115
|
+
if (!isMultiline) return JSON.stringify(canonical);
|
|
116
|
+
const indent = lineIndent(text, keyIndex);
|
|
117
|
+
const innerIndent = `${indent} `;
|
|
118
|
+
return [
|
|
119
|
+
"{",
|
|
120
|
+
`${innerIndent}"summary": ${JSON.stringify(response.summary)},`,
|
|
121
|
+
`${innerIndent}"action": ${JSON.stringify(response.action)},`,
|
|
122
|
+
`${innerIndent}"respondedAt": ${JSON.stringify(response.respondedAt)}`,
|
|
123
|
+
`${indent}}`,
|
|
124
|
+
].join("\n");
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// 対象 annotation の生テキストのうち "status" と "response" の値だけを差し替える。
|
|
128
|
+
// 他のキー(id / createdAt / sourceT / text / session / strokes 等)の文字列表現には一切触れない
|
|
129
|
+
// ため、対象 annotation の他フィールドと、他の annotation は常にバイト不変になる。
|
|
130
|
+
export function spliceResponseIntoAnnotation(raw, { action, summary, respondedAt }) {
|
|
131
|
+
const statusMatch = /("status"\s*:\s*")open(")/.exec(raw);
|
|
132
|
+
if (!statusMatch) {
|
|
133
|
+
throw new Error('対象 annotation に "status": "open" が見つかりません(想定外の形式です)');
|
|
134
|
+
}
|
|
135
|
+
const afterStatus = `${raw.slice(0, statusMatch.index)}${statusMatch[1]}addressed${statusMatch[2]}${raw.slice(statusMatch.index + statusMatch[0].length)}`;
|
|
136
|
+
|
|
137
|
+
const responseMatch = /("response"\s*:\s*)null\b/.exec(afterStatus);
|
|
138
|
+
if (!responseMatch) {
|
|
139
|
+
throw new Error('対象 annotation に "response": null が見つかりません(既に応答済みの可能性があります)');
|
|
140
|
+
}
|
|
141
|
+
const serialized = serializeResponseValue(afterStatus, responseMatch.index, { action, summary, respondedAt });
|
|
142
|
+
return (
|
|
143
|
+
afterStatus.slice(0, responseMatch.index)
|
|
144
|
+
+ responseMatch[1]
|
|
145
|
+
+ serialized
|
|
146
|
+
+ afterStatus.slice(responseMatch.index + responseMatch[0].length)
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// open → addressed の状態遷移を原子的に執行する。ガードに 1 つでも引っかかれば
|
|
151
|
+
// review.json は一切書き換えない(呼び出し側は ok:false の code/reason で理由を判別する)。
|
|
152
|
+
export async function respondToAnnotation(reviewPath, { id, action, summary, respondedAt }) {
|
|
153
|
+
if (typeof id !== "string" || !id.trim()) {
|
|
154
|
+
return { ok: false, code: "invalid-id", reason: "id が指定されていません" };
|
|
155
|
+
}
|
|
156
|
+
if (!KNOWN_ACTIONS.includes(action)) {
|
|
157
|
+
return { ok: false, code: "invalid-action", reason: `action は ${KNOWN_ACTIONS.join(" / ")} のいずれかを指定してください` };
|
|
158
|
+
}
|
|
159
|
+
if (typeof summary !== "string" || !summary.trim()) {
|
|
160
|
+
return { ok: false, code: "missing-summary", reason: "summary は必須です(黙殺・空文字は不可)" };
|
|
161
|
+
}
|
|
162
|
+
if (typeof respondedAt !== "string" || !respondedAt.trim()) {
|
|
163
|
+
return { ok: false, code: "invalid-responded-at", reason: "respondedAt が不正です" };
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
const source = await readReviewSource(reviewPath);
|
|
167
|
+
if (source === null) {
|
|
168
|
+
return { ok: false, code: "no-review", reason: "review.json がありません" };
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
let elements;
|
|
172
|
+
try {
|
|
173
|
+
elements = locateAnnotations(source);
|
|
174
|
+
} catch (error) {
|
|
175
|
+
return { ok: false, code: "malformed", reason: error instanceof Error ? error.message : String(error) };
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
const target = elements.find((element) => element.value?.id === id);
|
|
179
|
+
if (!target) {
|
|
180
|
+
return { ok: false, code: "unknown-id", reason: `未知の id です: ${id}` };
|
|
181
|
+
}
|
|
182
|
+
if (target.value.status !== "open") {
|
|
183
|
+
return {
|
|
184
|
+
ok: false,
|
|
185
|
+
code: "not-open",
|
|
186
|
+
reason: `status が "open" ではないため対応できません(現在: "${target.value.status}")。open のみ addressed へ遷移できます`,
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
let updatedRaw;
|
|
191
|
+
try {
|
|
192
|
+
updatedRaw = spliceResponseIntoAnnotation(target.raw, { action, summary, respondedAt });
|
|
193
|
+
} catch (error) {
|
|
194
|
+
return { ok: false, code: "malformed", reason: error instanceof Error ? error.message : String(error) };
|
|
195
|
+
}
|
|
196
|
+
const updatedSource = `${source.slice(0, target.start)}${updatedRaw}${source.slice(target.end)}`;
|
|
197
|
+
|
|
198
|
+
// 全体が依然として有効な JSON であることをディスクへ書く前に確認する(自己防御。
|
|
199
|
+
// 通常は起きないが、想定外の入力で splice が壊れた場合に review.json を汚さない)。
|
|
200
|
+
let updatedAnnotation;
|
|
201
|
+
try {
|
|
202
|
+
const parsedDocument = parseReviewDocument(updatedSource);
|
|
203
|
+
updatedAnnotation = parsedDocument.annotations.find((annotation) => annotation.id === id);
|
|
204
|
+
} catch (error) {
|
|
205
|
+
return { ok: false, code: "malformed", reason: error instanceof Error ? error.message : String(error) };
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
await writeAtomic(reviewPath, updatedSource);
|
|
209
|
+
return { ok: true, annotation: updatedAnnotation };
|
|
210
|
+
}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
|
|
5
|
+
import { locateAnnotations, needsConfirmation, readReviewSource } from "./core/review-store.mjs";
|
|
6
|
+
|
|
7
|
+
const USAGE = [
|
|
8
|
+
"使い方:",
|
|
9
|
+
" node skills/address-review/bin/list.mjs <project-root> --ids a-0002,a-0003 [--json]",
|
|
10
|
+
" node skills/address-review/bin/list.mjs <project-root> --all-open [--json]",
|
|
11
|
+
].join("\n");
|
|
12
|
+
|
|
13
|
+
class CliError extends Error {}
|
|
14
|
+
|
|
15
|
+
function parseArguments(argv) {
|
|
16
|
+
const options = { projectRoot: null, ids: null, allOpen: false, json: false };
|
|
17
|
+
for (let index = 0; index < argv.length; index += 1) {
|
|
18
|
+
const argument = argv[index];
|
|
19
|
+
if (argument === "--help" || argument === "-h") {
|
|
20
|
+
process.stdout.write(`${USAGE}\n`);
|
|
21
|
+
process.exit(0);
|
|
22
|
+
} else if (argument === "--all-open") {
|
|
23
|
+
options.allOpen = true;
|
|
24
|
+
} else if (argument === "--json") {
|
|
25
|
+
options.json = true;
|
|
26
|
+
} else if (argument === "--ids") {
|
|
27
|
+
const value = argv[index + 1];
|
|
28
|
+
if (!value || value.startsWith("--")) throw new CliError("--ids の値がありません");
|
|
29
|
+
options.ids = value.split(",").map((id) => id.trim()).filter(Boolean);
|
|
30
|
+
index += 1;
|
|
31
|
+
} else if (argument.startsWith("-")) {
|
|
32
|
+
throw new CliError(`不明なオプションです: ${argument}`);
|
|
33
|
+
} else if (options.projectRoot === null) {
|
|
34
|
+
options.projectRoot = path.resolve(argument);
|
|
35
|
+
} else {
|
|
36
|
+
throw new CliError("project-root は 1 つだけ指定してください");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if (!options.projectRoot) throw new CliError(USAGE);
|
|
40
|
+
if (options.allOpen && options.ids) throw new CliError("--ids と --all-open は同時に指定できません");
|
|
41
|
+
if (!options.allOpen && !options.ids) throw new CliError("--ids または --all-open のどちらかが必要です");
|
|
42
|
+
if (options.ids) {
|
|
43
|
+
for (const id of options.ids) {
|
|
44
|
+
if (!/^a-\d{4,}$/.test(id)) throw new CliError(`--ids の形式が不正です: ${id}`);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return options;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function errorText(error) {
|
|
51
|
+
return error instanceof Error ? error.message : String(error);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function number(value) {
|
|
55
|
+
return Number.isFinite(value) ? value.toFixed(3) : "—";
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function describeSession(session) {
|
|
59
|
+
if (!session) return null;
|
|
60
|
+
const range = Array.isArray(session.recRange)
|
|
61
|
+
? `${number(session.recRange[0])}–${number(session.recRange[1])}`
|
|
62
|
+
: "—";
|
|
63
|
+
return `session ${session.id ?? "?"} recRange=${range} confidence=${session.confidence ?? "?"}`;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function describeStrokes(strokes) {
|
|
67
|
+
if (!Array.isArray(strokes) || strokes.length === 0) return null;
|
|
68
|
+
const refs = strokes.map((stroke) => stroke?.sessionRef).filter(Boolean);
|
|
69
|
+
return `strokes ${strokes.length} 件${refs.length ? ` (${refs.join(", ")})` : ""}`;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function formatAnnotation(value) {
|
|
73
|
+
const target = value.target ?? value.targetKind ?? "(なし)";
|
|
74
|
+
const lines = [
|
|
75
|
+
`- ${value.id} [${value.status}] sourceT=${number(value.sourceT)}`
|
|
76
|
+
+ `${Array.isArray(value.sourceRange) ? ` sourceRange=${number(value.sourceRange[0])}-${number(value.sourceRange[1])}` : ""}`
|
|
77
|
+
+ ` target=${target}`,
|
|
78
|
+
` text: ${value.text}`,
|
|
79
|
+
` input: ${value.input}`,
|
|
80
|
+
];
|
|
81
|
+
const sessionLine = describeSession(value.session);
|
|
82
|
+
if (sessionLine) lines.push(` ${sessionLine}`);
|
|
83
|
+
const strokesLine = describeStrokes(value.strokes);
|
|
84
|
+
if (strokesLine) lines.push(` ${strokesLine}`);
|
|
85
|
+
if (value.audio) lines.push(` audio: ${value.audio}`);
|
|
86
|
+
if (value.response) {
|
|
87
|
+
lines.push(
|
|
88
|
+
` response: action=${value.response.action} respondedAt=${value.response.respondedAt}`,
|
|
89
|
+
` response.summary: ${value.response.summary}`,
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
return lines;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function buildResult(options, source) {
|
|
96
|
+
if (source === null) {
|
|
97
|
+
return {
|
|
98
|
+
projectRoot: options.projectRoot,
|
|
99
|
+
mode: options.allOpen ? "all-open" : "ids",
|
|
100
|
+
targets: [],
|
|
101
|
+
skipped: [],
|
|
102
|
+
notFound: options.ids ?? [],
|
|
103
|
+
note: "review.json がありません(annotation ゼロ扱い)",
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
const annotations = locateAnnotations(source).map((entry) => entry.value);
|
|
107
|
+
if (options.allOpen) {
|
|
108
|
+
const openAnnotations = annotations.filter((value) => value.status === "open");
|
|
109
|
+
const skipped = openAnnotations.filter((value) => needsConfirmation(value));
|
|
110
|
+
const targets = openAnnotations.filter((value) => !needsConfirmation(value));
|
|
111
|
+
return {
|
|
112
|
+
projectRoot: options.projectRoot,
|
|
113
|
+
mode: "all-open",
|
|
114
|
+
targets,
|
|
115
|
+
skipped,
|
|
116
|
+
notFound: [],
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
const byId = new Map(annotations.map((value) => [value.id, value]));
|
|
120
|
+
const targets = [];
|
|
121
|
+
const notFound = [];
|
|
122
|
+
for (const id of options.ids) {
|
|
123
|
+
const value = byId.get(id);
|
|
124
|
+
if (value) targets.push(value);
|
|
125
|
+
else notFound.push(id);
|
|
126
|
+
}
|
|
127
|
+
return { projectRoot: options.projectRoot, mode: "ids", targets, skipped: [], notFound };
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function printHuman(result) {
|
|
131
|
+
const lines = [];
|
|
132
|
+
if (result.note) {
|
|
133
|
+
lines.push(result.note, "");
|
|
134
|
+
}
|
|
135
|
+
lines.push(
|
|
136
|
+
result.mode === "all-open"
|
|
137
|
+
? `対象 ${result.targets.length} 件(--all-open)`
|
|
138
|
+
: `対象 ${result.targets.length} 件(--ids)`,
|
|
139
|
+
);
|
|
140
|
+
if (result.targets.length === 0) {
|
|
141
|
+
lines.push("- なし");
|
|
142
|
+
} else {
|
|
143
|
+
for (const value of result.targets) lines.push(...formatAnnotation(value));
|
|
144
|
+
}
|
|
145
|
+
if (result.mode === "all-open") {
|
|
146
|
+
lines.push(
|
|
147
|
+
"",
|
|
148
|
+
`要確認スキップ ${result.skipped.length} 件([要確認] は --all-open では対象外。--ids で明示指定すれば対象にできます)`,
|
|
149
|
+
);
|
|
150
|
+
if (result.skipped.length === 0) {
|
|
151
|
+
lines.push("- なし");
|
|
152
|
+
} else {
|
|
153
|
+
for (const value of result.skipped) lines.push(`- ${value.id}: ${value.text}`);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
if (result.notFound.length > 0) {
|
|
157
|
+
lines.push("", `未検出の id: ${result.notFound.join(", ")}`);
|
|
158
|
+
}
|
|
159
|
+
process.stdout.write(`${lines.join("\n")}\n`);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
async function main() {
|
|
163
|
+
let options;
|
|
164
|
+
try {
|
|
165
|
+
options = parseArguments(process.argv.slice(2));
|
|
166
|
+
} catch (error) {
|
|
167
|
+
process.stderr.write(`${errorText(error)}\n${USAGE}\n`);
|
|
168
|
+
process.exitCode = 2;
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
const reviewPath = path.join(options.projectRoot, "review.json");
|
|
172
|
+
let source;
|
|
173
|
+
try {
|
|
174
|
+
source = await readReviewSource(reviewPath);
|
|
175
|
+
} catch (error) {
|
|
176
|
+
process.stderr.write(`${errorText(error)}\n`);
|
|
177
|
+
process.exitCode = 2;
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
let result;
|
|
181
|
+
try {
|
|
182
|
+
result = buildResult(options, source);
|
|
183
|
+
} catch (error) {
|
|
184
|
+
process.stderr.write(`${errorText(error)}\n`);
|
|
185
|
+
process.exitCode = 2;
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
if (options.json) {
|
|
189
|
+
process.stdout.write(`${JSON.stringify(result)}\n`);
|
|
190
|
+
} else {
|
|
191
|
+
printHuman(result);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
main().catch((error) => {
|
|
196
|
+
process.stderr.write(`${errorText(error)}\n`);
|
|
197
|
+
process.exitCode = 2;
|
|
198
|
+
});
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
|
|
5
|
+
import { respondToAnnotation } from "./core/review-store.mjs";
|
|
6
|
+
|
|
7
|
+
const USAGE = [
|
|
8
|
+
"使い方:",
|
|
9
|
+
" node skills/address-review/bin/respond.mjs <project-root> --id a-0002",
|
|
10
|
+
" --action edited|declined --summary \"...\" [--json]",
|
|
11
|
+
].join("\n");
|
|
12
|
+
|
|
13
|
+
class CliError extends Error {}
|
|
14
|
+
|
|
15
|
+
function parseArguments(argv) {
|
|
16
|
+
const options = { projectRoot: null, id: null, action: null, summary: null, json: false };
|
|
17
|
+
for (let index = 0; index < argv.length; index += 1) {
|
|
18
|
+
const argument = argv[index];
|
|
19
|
+
if (argument === "--help" || argument === "-h") {
|
|
20
|
+
process.stdout.write(`${USAGE}\n`);
|
|
21
|
+
process.exit(0);
|
|
22
|
+
} else if (argument === "--json") {
|
|
23
|
+
options.json = true;
|
|
24
|
+
} else if (argument === "--id" || argument === "--action" || argument === "--summary") {
|
|
25
|
+
const value = argv[index + 1];
|
|
26
|
+
if (value === undefined) throw new CliError(`${argument} の値がありません`);
|
|
27
|
+
if (argument === "--id") options.id = value;
|
|
28
|
+
else if (argument === "--action") options.action = value;
|
|
29
|
+
else options.summary = value;
|
|
30
|
+
index += 1;
|
|
31
|
+
} else if (argument.startsWith("-")) {
|
|
32
|
+
throw new CliError(`不明なオプションです: ${argument}`);
|
|
33
|
+
} else if (options.projectRoot === null) {
|
|
34
|
+
options.projectRoot = path.resolve(argument);
|
|
35
|
+
} else {
|
|
36
|
+
throw new CliError("project-root は 1 つだけ指定してください");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if (!options.projectRoot) throw new CliError(USAGE);
|
|
40
|
+
if (!options.id) throw new CliError("--id は必須です");
|
|
41
|
+
return options;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function errorText(error) {
|
|
45
|
+
return error instanceof Error ? error.message : String(error);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
async function main() {
|
|
49
|
+
let options;
|
|
50
|
+
try {
|
|
51
|
+
options = parseArguments(process.argv.slice(2));
|
|
52
|
+
} catch (error) {
|
|
53
|
+
process.stderr.write(`${errorText(error)}\n${USAGE}\n`);
|
|
54
|
+
process.exitCode = 2;
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const reviewPath = path.join(options.projectRoot, "review.json");
|
|
59
|
+
let result;
|
|
60
|
+
try {
|
|
61
|
+
result = await respondToAnnotation(reviewPath, {
|
|
62
|
+
id: options.id,
|
|
63
|
+
action: options.action,
|
|
64
|
+
summary: options.summary,
|
|
65
|
+
respondedAt: new Date().toISOString(),
|
|
66
|
+
});
|
|
67
|
+
} catch (error) {
|
|
68
|
+
process.stderr.write(`${errorText(error)}\n`);
|
|
69
|
+
process.exitCode = 2;
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (options.json) {
|
|
74
|
+
process.stdout.write(`${JSON.stringify(result)}\n`);
|
|
75
|
+
} else if (result.ok) {
|
|
76
|
+
process.stdout.write(
|
|
77
|
+
`${result.annotation.id}: open → addressed(action=${result.annotation.response.action}, `
|
|
78
|
+
+ `respondedAt=${result.annotation.response.respondedAt})\n`,
|
|
79
|
+
);
|
|
80
|
+
} else {
|
|
81
|
+
process.stdout.write(`拒否 [${result.code}]: ${result.reason}\n`);
|
|
82
|
+
}
|
|
83
|
+
process.exitCode = result.ok ? 0 : 1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
main().catch((error) => {
|
|
87
|
+
process.stderr.write(`${errorText(error)}\n`);
|
|
88
|
+
process.exitCode = 2;
|
|
89
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "c-0001",
|
|
4
|
+
"start": 5,
|
|
5
|
+
"end": 9,
|
|
6
|
+
"text": "今日はここまで",
|
|
7
|
+
"display_text": "今日は、ここまで",
|
|
8
|
+
"speaker": null,
|
|
9
|
+
"sourceRef": null,
|
|
10
|
+
"edited": false
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"id": "c-0002",
|
|
14
|
+
"start": 105,
|
|
15
|
+
"end": 108,
|
|
16
|
+
"text": "続きはこちら",
|
|
17
|
+
"display_text": "続きは、こちら",
|
|
18
|
+
"speaker": null,
|
|
19
|
+
"sourceRef": null,
|
|
20
|
+
"edited": false
|
|
21
|
+
}
|
|
22
|
+
]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 0,
|
|
3
|
+
"output": { "width": 1280, "height": 720, "fps": 30 },
|
|
4
|
+
"source": { "path": "source.mp4", "proxy": null },
|
|
5
|
+
"cuts": [
|
|
6
|
+
{ "in": 0, "out": 30, "transition_out": null },
|
|
7
|
+
{ "in": 100, "out": 140, "transition_out": null }
|
|
8
|
+
],
|
|
9
|
+
"overlays": [],
|
|
10
|
+
"layers": [],
|
|
11
|
+
"audio": { "bgm": null, "sfx": [] }
|
|
12
|
+
}
|