@hypit/hypit 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/public/caption.d.ts +206 -183
- package/dist/public/composition.d.ts +25 -3
- package/dist/public/endpoint-kit.d.ts +24 -2
- package/dist/public/generation.d.ts +5 -1
- package/dist/public/hyperframes.d.ts +19 -1
- package/dist/public/narrative.d.ts +17 -3
- package/dist/public/performance.d.ts +1590 -0
- package/dist/public/program-space.d.ts +179 -32
- package/dist/public/runtime-kit.d.ts +21 -8
- package/dist/public/sound.d.ts +822 -0
- package/dist/public/speech.d.ts +41 -0
- package/dist/public/studio-adapter.d.ts +77 -15
- package/dist/public/temporal-markup.d.ts +9 -44
- package/dist/public/temporal.d.ts +37 -28
- package/dist/public/{semantic-track.d.ts → timeline.d.ts} +62 -49
- package/examples/README.md +18 -10
- package/examples/minimal-author-package/packages/example-component/preview/preview.svml +19 -12
- package/examples/minimal-author-package/packages/example-component/src/component.ts +5 -5
- package/examples/minimal-author-package/packages/example-component/src/fragment.ts +3 -5
- package/examples/minimal-author-package/packages/example-component/src/manifest.ts +8 -10
- package/examples/minimal-author-package/packages/example-component/src/surface.ts +2 -2
- package/examples/provider-package/README.md +78 -0
- package/examples/provider-package/hypit.runtime.json +12 -0
- package/examples/provider-package/packages/provider-images/package.json +11 -0
- package/examples/provider-package/packages/provider-images/src/activation.ts +24 -0
- package/examples/provider-package/packages/provider-images/src/provider.ts +122 -0
- package/examples/provider-package/packages/provider-images/tsconfig.json +9 -0
- package/examples/semantic-composition/README.md +6 -0
- package/examples/semantic-composition/chat.svml +6 -5
- package/examples/semantic-composition/packages/chat-scene/README.md +3 -3
- package/examples/semantic-composition/packages/chat-scene/src/activation.ts +18 -21
- package/examples/semantic-composition/packages/chat-scene/src/render.ts +4 -4
- package/examples/semantic-composition/packages/performance-styles/README.md +42 -0
- package/examples/semantic-composition/packages/performance-styles/package.json +25 -0
- package/examples/semantic-composition/packages/performance-styles/src/activation.ts +57 -0
- package/examples/semantic-composition/packages/performance-styles/src/render.ts +54 -0
- package/examples/semantic-composition/packages/performance-styles/src/studio.ts +28 -0
- package/examples/semantic-composition/packages/performance-styles/tsconfig.json +18 -0
- package/examples/semantic-composition/packages/responsive-explainer/README.md +16 -9
- package/examples/semantic-composition/packages/responsive-explainer/src/activation.ts +12 -12
- package/examples/semantic-composition/packages/responsive-explainer/src/render.ts +5 -5
- package/examples/semantic-composition/packages/sound-styles/README.md +36 -0
- package/examples/semantic-composition/packages/sound-styles/package.json +25 -0
- package/examples/semantic-composition/packages/sound-styles/src/activation.ts +53 -0
- package/examples/semantic-composition/packages/sound-styles/src/render.ts +14 -0
- package/examples/semantic-composition/packages/sound-styles/tsconfig.json +18 -0
- package/package.json +32 -15
- package/packages/audio-track/README.md +20 -13
- package/packages/audio-track/package.json +1 -1
- package/packages/audio-track/src/component.ts +4 -4
- package/packages/audio-track/src/fragment.ts +6 -5
- package/packages/audio-track/src/index.ts +1 -1
- package/packages/audio-track/src/manifest.ts +17 -16
- package/packages/audio-track/src/program.ts +21 -25
- package/packages/audio-track/src/surface.ts +19 -18
- package/packages/audio-track-studio/README.md +23 -0
- package/packages/audio-track-studio/src/index.ts +28 -17
- package/packages/author-kit/README.md +1 -1
- package/packages/background-removal/README.md +4 -7
- package/packages/browser-capture/package.json +1 -1
- package/packages/build-result/README.md +11 -0
- package/packages/build-result/src/decode.ts +2 -0
- package/packages/build-result/src/execution-log.ts +17 -0
- package/packages/build-result/src/index.ts +1 -0
- package/packages/build-result/src/store.ts +14 -1
- package/packages/build-result/src/types.ts +3 -0
- package/packages/build-result-s3/src/repository.ts +4 -0
- package/packages/caption/README.md +61 -73
- package/packages/caption/package.json +3 -2
- package/packages/caption/src/activation.ts +2 -2
- package/packages/caption/src/component.ts +20 -5
- package/packages/caption/src/display.ts +3 -18
- package/packages/caption/src/fragment.ts +3 -7
- package/packages/caption/src/index.ts +6 -5
- package/packages/caption/src/manifest.ts +29 -46
- package/packages/caption/src/style.ts +24 -135
- package/packages/caption/src/surface.ts +12 -92
- package/packages/caption/src/temporalize.ts +18 -53
- package/packages/caption/src/types.ts +8 -35
- package/packages/caption/src/visibility.ts +23 -0
- package/packages/caption-fine/README.md +14 -9
- package/packages/caption-fine/package.json +4 -2
- package/packages/caption-fine/src/component.ts +3 -3
- package/packages/caption-fine/src/fragment.ts +7 -19
- package/packages/caption-fine/src/index.ts +2 -0
- package/packages/caption-fine/src/manifest.ts +26 -17
- package/packages/caption-fine/src/recipe.ts +7 -0
- package/packages/caption-fine/src/render.ts +14 -13
- package/packages/caption-fine/src/schedule.ts +39 -35
- package/packages/caption-fine/src/style.ts +10 -9
- package/packages/caption-fine/src/surface.ts +62 -35
- package/packages/caption-fine/src/types.ts +2 -0
- package/packages/caption-fine-studio/README.md +24 -2
- package/packages/caption-fine-studio/package.json +3 -1
- package/packages/caption-fine-studio/src/activation.ts +3 -3
- package/packages/caption-fine-studio/src/index.ts +54 -42
- package/packages/cli/README.md +57 -4
- package/packages/cli/package.json +1 -0
- package/packages/cli/src/arguments.ts +25 -6
- package/packages/cli/src/build-planning.ts +3 -2
- package/packages/cli/src/command.ts +6 -0
- package/packages/cli/src/commands/environment.ts +28 -18
- package/packages/cli/src/commands/execution.ts +81 -26
- package/packages/cli/src/commands/results.ts +7 -11
- package/packages/cli/src/index.ts +2 -2
- package/packages/cli/src/machine-view.ts +3 -2
- package/packages/cli/src/main.ts +34 -42
- package/packages/cli/src/observation.ts +7 -1
- package/packages/cli/src/output.ts +65 -23
- package/packages/cli/src/view.ts +64 -18
- package/packages/comment-sticker/README.md +3 -3
- package/packages/comment-sticker/package.json +1 -1
- package/packages/comment-sticker/src/component.ts +4 -4
- package/packages/comment-sticker/src/fragment.ts +5 -4
- package/packages/comment-sticker/src/manifest.ts +7 -6
- package/packages/comment-sticker/src/program.ts +9 -9
- package/packages/comment-sticker/src/surface.ts +6 -7
- package/packages/composition/README.md +21 -0
- package/packages/composition/src/audio-presentation.ts +44 -0
- package/packages/composition/src/index.ts +3 -0
- package/packages/composition/src/schema.ts +8 -3
- package/packages/composition/src/track.ts +15 -1
- package/packages/credential-store-env/README.md +1 -1
- package/packages/deck-track/README.md +3 -3
- package/packages/deck-track/package.json +1 -1
- package/packages/deck-track/src/component.ts +5 -5
- package/packages/deck-track/src/fragment.ts +6 -5
- package/packages/deck-track/src/lower.ts +12 -12
- package/packages/deck-track/src/manifest.ts +8 -7
- package/packages/deck-track/src/program.ts +13 -16
- package/packages/deck-track/src/surface.ts +9 -10
- package/packages/driver-node/src/driver.ts +41 -3
- package/packages/elevenlabs-speech/README.md +27 -0
- package/packages/{provider-xiaomi-mimo → elevenlabs-speech}/package.json +5 -8
- package/packages/elevenlabs-speech/src/activation.ts +26 -0
- package/packages/elevenlabs-speech/src/fragment.ts +11 -0
- package/packages/elevenlabs-speech/src/index.ts +111 -0
- package/packages/elevenlabs-speech/src/surface.ts +167 -0
- package/packages/endpoint-kit/README.md +24 -0
- package/packages/endpoint-kit/src/index.ts +7 -1
- package/packages/film/README.md +12 -7
- package/packages/film/package.json +1 -1
- package/packages/film/src/component.ts +4 -4
- package/packages/film/src/fragment.ts +6 -5
- package/packages/film/src/manifest.ts +11 -10
- package/packages/film/src/program.ts +5 -5
- package/packages/film/src/recipe.ts +2 -1
- package/packages/film/src/surface.ts +6 -6
- package/packages/film-studio/package.json +1 -1
- package/packages/film-studio/src/index.ts +2 -2
- package/packages/fishaudio-speech/README.md +33 -0
- package/packages/fishaudio-speech/package.json +21 -0
- package/packages/fishaudio-speech/src/activation.ts +32 -0
- package/packages/fishaudio-speech/src/fragment.ts +11 -0
- package/packages/fishaudio-speech/src/index.ts +156 -0
- package/packages/fishaudio-speech/src/surface.ts +192 -0
- package/packages/generation/README.md +11 -1
- package/packages/generation/src/mapping.ts +28 -30
- package/packages/gpt-image/README.md +1 -2
- package/packages/grok-imagine/README.md +1 -2
- package/packages/hyperframes/README.md +7 -3
- package/packages/hyperframes/src/browser-program.ts +11 -2
- package/packages/hyperframes/src/document.ts +15 -2
- package/packages/interview-emoji-reveal/README.md +4 -4
- package/packages/interview-emoji-reveal/package.json +1 -1
- package/packages/interview-emoji-reveal/src/component.ts +4 -4
- package/packages/interview-emoji-reveal/src/fragment.ts +6 -5
- package/packages/interview-emoji-reveal/src/manifest.ts +9 -8
- package/packages/interview-emoji-reveal/src/program.ts +14 -14
- package/packages/interview-emoji-reveal/src/surface.ts +8 -9
- package/packages/media-execution/README.md +7 -3
- package/packages/media-execution/src/audio-presentation.ts +23 -0
- package/packages/media-execution/src/execute.ts +2 -0
- package/packages/media-pipeline/README.md +7 -3
- package/packages/media-pipeline/src/audio-plan.ts +4 -1
- package/packages/media-pipeline/src/component.ts +16 -2
- package/packages/media-pipeline/src/manifest.ts +3 -1
- package/packages/media-pipeline/src/types.ts +2 -1
- package/packages/media-track/README.md +14 -47
- package/packages/media-track/package.json +1 -1
- package/packages/media-track/preview/preview.svml +5 -5
- package/packages/media-track/src/author.ts +12 -6
- package/packages/media-track/src/component.ts +10 -16
- package/packages/media-track/src/fragment.ts +8 -7
- package/packages/media-track/src/index.ts +3 -1
- package/packages/media-track/src/lower.ts +7 -7
- package/packages/media-track/src/manifest.ts +16 -38
- package/packages/media-track/src/program.ts +62 -67
- package/packages/media-track/src/sampling.ts +6 -6
- package/packages/media-track/src/sequence.ts +8 -8
- package/packages/media-track/src/surface.ts +25 -43
- package/packages/media-track-studio/README.md +9 -0
- package/packages/media-track-studio/src/index.ts +16 -11
- package/packages/mimo-speech/README.md +1 -1
- package/packages/minimax-h3/README.md +1 -1
- package/packages/nano-banana/README.md +1 -1
- package/packages/narrative/README.md +23 -1
- package/packages/narrative/src/identity.ts +11 -0
- package/packages/narrative/src/index.ts +3 -0
- package/packages/narrative/src/schema.ts +28 -27
- package/packages/narrative/src/selection.ts +52 -0
- package/packages/narrative/src/types.ts +2 -0
- package/packages/package-loader-node/README.md +30 -0
- package/packages/package-loader-node/package.json +5 -2
- package/packages/package-loader-node/src/distribution-resolution.ts +10 -3
- package/packages/package-loader-node/src/index.ts +1 -0
- package/packages/package-loader-node/src/loader.ts +12 -15
- package/packages/package-loader-node/src/location.ts +27 -1
- package/packages/package-loader-node/src/module-scope.ts +183 -0
- package/packages/package-loader-node/src/types.ts +4 -0
- package/packages/performance/README.md +83 -0
- package/packages/performance/package.json +30 -0
- package/packages/performance/src/activation.ts +11 -0
- package/packages/performance/src/component.ts +46 -0
- package/packages/performance/src/index.ts +6 -0
- package/packages/performance/src/manifest.ts +53 -0
- package/packages/{media-track/src/performance.ts → performance/src/media.ts} +9 -10
- package/packages/performance/src/program.ts +51 -0
- package/packages/performance/src/style.ts +35 -0
- package/packages/performance/src/surface.ts +99 -0
- package/packages/performance-studio/README.md +25 -0
- package/packages/performance-studio/package.json +21 -0
- package/packages/performance-studio/src/activation.ts +6 -0
- package/packages/performance-studio/src/index.ts +84 -0
- package/packages/program-space/README.md +9 -18
- package/packages/program-space/src/activation.ts +1 -5
- package/packages/program-space/src/index.ts +2 -11
- package/packages/program-space/src/surface.ts +1 -20
- package/packages/project-context-node/README.md +20 -0
- package/packages/project-context-node/package.json +10 -0
- package/packages/project-context-node/src/index.ts +3 -0
- package/packages/{cli → project-context-node}/src/runtime-selection.ts +7 -2
- package/packages/provider-hyperframes-local/README.md +43 -15
- package/packages/provider-hyperframes-local/src/activation.ts +4 -3
- package/packages/provider-hyperframes-local/src/capture-process.ts +26 -4
- package/packages/provider-hyperframes-local/src/capture.ts +96 -26
- package/packages/provider-hyperframes-local/src/concurrency.ts +86 -0
- package/packages/provider-hyperframes-local/src/opaque-capture.ts +92 -0
- package/packages/provider-hyperframes-local/src/options.ts +2 -0
- package/packages/provider-hyperframes-local/src/program.ts +6 -3
- package/packages/provider-hyperframes-local/src/progress.ts +53 -0
- package/packages/provider-hyperframes-local/src/provider.ts +18 -5
- package/packages/provider-hyperframes-local/src/render.ts +48 -7
- package/packages/provider-hypihub/README.md +48 -17
- package/packages/provider-hypihub/package.json +2 -0
- package/packages/provider-hypihub/src/mapping.ts +31 -7
- package/packages/provider-hypihub/src/oauth.ts +6 -0
- package/packages/provider-hypihub/src/provider.ts +25 -13
- package/packages/provider-hypihub/src/routes.ts +1 -2
- package/packages/provider-hypihub/src/upload.ts +2 -0
- package/packages/provider-media-local/README.md +3 -4
- package/packages/provider-whisperx-local/src/program.ts +1 -0
- package/packages/provider-whisperx-local/src/provider.ts +3 -0
- package/packages/ranking/README.md +8 -6
- package/packages/ranking/package.json +1 -1
- package/packages/ranking/src/component.ts +6 -6
- package/packages/ranking/src/fragment.ts +11 -7
- package/packages/ranking/src/manifest.ts +21 -14
- package/packages/ranking/src/render.ts +22 -26
- package/packages/ranking/src/schedule.ts +16 -19
- package/packages/ranking/src/surface.ts +12 -13
- package/packages/ranking-studio/README.md +18 -0
- package/packages/ranking-studio/src/index.ts +61 -9
- package/packages/render-hyperframes/README.md +7 -7
- package/packages/render-hyperframes/package.json +1 -1
- package/packages/render-hyperframes/src/component.ts +11 -1
- package/packages/render-hyperframes/src/fragment.ts +7 -4
- package/packages/render-hyperframes/src/manifest.ts +4 -4
- package/packages/render-hyperframes/src/surface.ts +6 -6
- package/packages/runtime/README.md +8 -1
- package/packages/runtime/src/execution.ts +15 -4
- package/packages/runtime/src/index.ts +2 -1
- package/packages/runtime/src/log.ts +51 -0
- package/packages/runtime/src/types.ts +5 -8
- package/packages/runtime-host-node/README.md +30 -0
- package/packages/runtime-host-node/package.json +1 -0
- package/packages/runtime-host-node/src/index.ts +24 -9
- package/packages/runtime-host-node/src/packages.ts +47 -50
- package/packages/runtime-kit/README.md +5 -0
- package/packages/runtime-kit/src/index.ts +3 -1
- package/packages/runtime-local/README.md +92 -4
- package/packages/runtime-local/src/config.ts +202 -56
- package/packages/runtime-local/src/control.ts +9 -1
- package/packages/runtime-local/src/executor.ts +66 -0
- package/packages/runtime-local/src/host.ts +37 -17
- package/packages/runtime-local/src/log.ts +48 -0
- package/packages/runtime-local/src/programs.ts +2 -1
- package/packages/runtime-local/src/result-writer.ts +2 -0
- package/packages/runtime-local/src/runtime.ts +8 -6
- package/packages/runtime-local/src/supervisor.ts +142 -0
- package/packages/runtime-local/src/types.ts +9 -2
- package/packages/runtime-local/src/worker-process.ts +7 -24
- package/packages/runtime-local/src/worker.ts +55 -83
- package/packages/screen-overlay/README.md +3 -3
- package/packages/screen-overlay/package.json +1 -1
- package/packages/screen-overlay/src/component.ts +3 -3
- package/packages/screen-overlay/src/fragment.ts +5 -4
- package/packages/screen-overlay/src/manifest.ts +7 -6
- package/packages/screen-overlay/src/program.ts +9 -9
- package/packages/screen-overlay/src/surface.ts +6 -7
- package/packages/script/README.md +15 -2
- package/packages/script/src/manifest.ts +2 -2
- package/packages/script/src/narrative.ts +1 -0
- package/packages/script/src/surface.ts +4 -3
- package/packages/script/src/types.ts +1 -1
- package/packages/script-studio/package.json +9 -3
- package/packages/script-studio/src/index.ts +2 -0
- package/packages/script-studio/src/projection.ts +105 -0
- package/packages/seedance/README.md +30 -1
- package/packages/seedance/src/index.ts +18 -7
- package/packages/seedance/src/surface.ts +17 -4
- package/packages/seedance-kits/README.md +7 -1
- package/packages/seedream/README.md +1 -1
- package/packages/sound/README.md +81 -0
- package/packages/sound/package.json +25 -0
- package/packages/sound/src/activation.ts +11 -0
- package/packages/sound/src/component.ts +28 -0
- package/packages/sound/src/index.ts +5 -0
- package/packages/sound/src/manifest.ts +47 -0
- package/packages/sound/src/program.ts +84 -0
- package/packages/sound/src/style.ts +34 -0
- package/packages/sound/src/surface.ts +90 -0
- package/packages/sound-studio/README.md +22 -0
- package/packages/sound-studio/package.json +20 -0
- package/packages/sound-studio/src/activation.ts +6 -0
- package/packages/sound-studio/src/index.ts +74 -0
- package/packages/speech/README.md +2 -2
- package/packages/speech-alignment/src/local.ts +8 -0
- package/packages/speech-alignment/src/locate.ts +1 -1
- package/packages/store-sqlite/README.md +7 -0
- package/packages/store-sqlite/src/store.ts +84 -83
- package/packages/studio/INSPECTOR.md +15 -2
- package/packages/studio/README.md +88 -14
- package/packages/studio/package.json +8 -7
- package/packages/studio/src/companion-assembly.ts +1 -0
- package/packages/studio/src/domain.ts +1 -1
- package/packages/studio/src/fallback-companions.ts +3 -3
- package/packages/studio/src/feedback-server.ts +51 -0
- package/packages/studio/src/feedback-store.ts +66 -0
- package/packages/studio/src/feedback.ts +60 -0
- package/packages/studio/src/parameter-values.ts +43 -1
- package/packages/studio/src/parameters.ts +114 -24
- package/packages/studio/src/preview/render.ts +5 -1
- package/packages/studio/src/preview/runtime-shim.ts +49 -3
- package/packages/studio/src/programme.ts +14 -30
- package/packages/studio/src/server.ts +10 -6
- package/packages/studio/src/shared.ts +4 -2
- package/packages/studio/src/snapshot.ts +21 -132
- package/packages/studio/src/studio-preflight.ts +3 -3
- package/packages/studio/src/studio-registry.ts +50 -6
- package/packages/studio/src/style.css +209 -48
- package/packages/studio/src/ui/comments.ts +233 -0
- package/packages/studio/src/ui/icons.ts +5 -0
- package/packages/studio/src/ui/main.ts +145 -86
- package/packages/studio/src/ui/overlay.ts +12 -8
- package/packages/studio/src/ui/scrub-preview.ts +108 -0
- package/packages/studio/src/ui/stage.ts +67 -4
- package/packages/studio/src/ui/timeline.ts +177 -108
- package/packages/studio/start.ts +4 -2
- package/packages/studio-adapter/README.md +130 -11
- package/packages/studio-adapter/src/index.ts +100 -13
- package/packages/temporal/README.md +6 -6
- package/packages/temporal/package.json +1 -1
- package/packages/temporal/src/component.ts +5 -6
- package/packages/temporal/src/index.ts +8 -6
- package/packages/temporal/src/location.ts +11 -11
- package/packages/temporal/src/projection.ts +19 -19
- package/packages/temporal/src/rational.ts +4 -4
- package/packages/temporal-markup/EDITING.md +2 -2
- package/packages/temporal-markup/README.md +27 -11
- package/packages/temporal-markup/package.json +1 -1
- package/packages/temporal-markup/src/index.ts +20 -25
- package/packages/temporal-markup/src/space.ts +10 -41
- package/packages/timeline/README.md +31 -0
- package/packages/{semantic-track → timeline}/package.json +1 -1
- package/packages/timeline/src/activation.ts +8 -0
- package/packages/timeline/src/component.ts +24 -0
- package/packages/timeline/src/identity.ts +60 -0
- package/packages/timeline/src/index.ts +6 -0
- package/packages/{semantic-track → timeline}/src/location.ts +20 -20
- package/packages/timeline/src/manifest.ts +39 -0
- package/packages/{semantic-track → timeline}/src/projection.ts +14 -14
- package/packages/timeline/src/types.ts +24 -0
- package/packages/timeline-author/README.md +68 -0
- package/packages/{speech-track → timeline-author}/package.json +6 -4
- package/packages/timeline-author/src/activation.ts +22 -0
- package/packages/{speech-track → timeline-author}/src/component.ts +15 -13
- package/packages/{speech-track → timeline-author}/src/fragment.ts +14 -23
- package/packages/timeline-author/src/index.ts +7 -0
- package/packages/timeline-author/src/manifest.ts +78 -0
- package/packages/timeline-author/src/program.ts +107 -0
- package/packages/timeline-author/src/surface.ts +46 -0
- package/packages/timeline-author/src/types.ts +6 -0
- package/packages/typography-track/README.md +4 -4
- package/packages/typography-track/package.json +1 -1
- package/packages/typography-track/src/component.ts +4 -4
- package/packages/typography-track/src/fragment.ts +4 -3
- package/packages/typography-track/src/manifest.ts +11 -9
- package/packages/typography-track/src/program.ts +15 -15
- package/packages/typography-track/src/surface.ts +17 -18
- package/packages/video-cli/README.md +4 -1
- package/packages/video-cli/package.json +2 -1
- package/packages/video-cli/src/creation.ts +14 -4
- package/packages/video-cli/src/index.ts +1 -1
- package/packages/video-cli/src/studio-distribution.ts +2 -1
- package/packages/volcengine-matting/README.md +3 -3
- package/packages/whisperx/README.md +1 -1
- package/services/whisperx/README.md +14 -0
- package/services/whisperx/pyproject.toml +2 -0
- package/services/whisperx/uv.lock +20 -20
- package/packages/provider-hyperframes-aws-lambda/README.md +0 -30
- package/packages/provider-hyperframes-aws-lambda/package.json +0 -30
- package/packages/provider-hyperframes-aws-lambda/src/activation.ts +0 -97
- package/packages/provider-hyperframes-aws-lambda/src/client.ts +0 -114
- package/packages/provider-hyperframes-aws-lambda/src/index.ts +0 -21
- package/packages/provider-hyperframes-aws-lambda/src/provider.ts +0 -522
- package/packages/provider-kie/README.md +0 -134
- package/packages/provider-kie/package.json +0 -43
- package/packages/provider-kie/src/activation.ts +0 -71
- package/packages/provider-kie/src/index.ts +0 -10
- package/packages/provider-kie/src/mapping.ts +0 -182
- package/packages/provider-kie/src/provider.ts +0 -657
- package/packages/provider-kie/src/routes.ts +0 -150
- package/packages/provider-xiaomi-mimo/README.md +0 -32
- package/packages/provider-xiaomi-mimo/src/activation.ts +0 -57
- package/packages/provider-xiaomi-mimo/src/index.ts +0 -5
- package/packages/provider-xiaomi-mimo/src/provider.ts +0 -214
- package/packages/runtime/src/environment.ts +0 -6
- package/packages/semantic-track/README.md +0 -21
- package/packages/semantic-track/src/activation.ts +0 -8
- package/packages/semantic-track/src/component.ts +0 -24
- package/packages/semantic-track/src/identity.ts +0 -58
- package/packages/semantic-track/src/index.ts +0 -6
- package/packages/semantic-track/src/manifest.ts +0 -38
- package/packages/semantic-track/src/types.ts +0 -26
- package/packages/speech-track/README.md +0 -51
- package/packages/speech-track/src/activation.ts +0 -19
- package/packages/speech-track/src/index.ts +0 -7
- package/packages/speech-track/src/manifest.ts +0 -73
- package/packages/speech-track/src/program.ts +0 -64
- package/packages/speech-track/src/surface.ts +0 -35
- package/packages/speech-track/src/types.ts +0 -6
- package/packages/speech-track-studio/README.md +0 -3
- package/packages/speech-track-studio/package.json +0 -14
- package/packages/speech-track-studio/src/activation.ts +0 -7
- package/packages/speech-track-studio/src/index.ts +0 -40
- /package/packages/{cli → project-context-node}/src/project-context.ts +0 -0
- /package/packages/{speech-track → timeline-author}/preview/Track.png +0 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { feedbackClock } from "../feedback.js";
|
|
2
|
+
import type { FeedbackComment, FeedbackMutation, FeedbackView } from "../feedback.js";
|
|
3
|
+
import { icon } from "./icons.js";
|
|
4
|
+
import type { Store } from "./selection.js";
|
|
5
|
+
import type { Stage } from "./stage.js";
|
|
6
|
+
|
|
7
|
+
type Anchor = Pick<FeedbackComment, "at">;
|
|
8
|
+
|
|
9
|
+
export function createComments(store: Store, stage: Stage) {
|
|
10
|
+
const element = document.createElement("aside");
|
|
11
|
+
element.className = "comments-panel";
|
|
12
|
+
element.innerHTML = `
|
|
13
|
+
<div class="pane-heading comments-heading">
|
|
14
|
+
<div class="pane-title">${icon("comments")}<h2>Comments</h2><span data-count></span></div>
|
|
15
|
+
<button type="button" class="comments-icon" data-refresh aria-label="Refresh comments" title="Refresh comments">${icon("refresh")}</button>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="comments-filters" role="group" aria-label="Filter comments">
|
|
18
|
+
<button type="button" data-filter="all" aria-pressed="true">All</button>
|
|
19
|
+
<button type="button" data-filter="open" aria-pressed="false">Open</button>
|
|
20
|
+
<button type="button" data-filter="done" aria-pressed="false">Done</button>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="comments-error" role="status" aria-live="polite" hidden></div>
|
|
23
|
+
<div class="comments-list" aria-label="Comments"></div>
|
|
24
|
+
<form class="comment-composer">
|
|
25
|
+
<div class="comment-anchor">
|
|
26
|
+
<button type="button" class="comment-time" data-current-time title="Use current frame" aria-label="Use current frame">${icon("when")}<span>00:00.00</span></button>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="comment-input">
|
|
29
|
+
<textarea rows="3" aria-label="Write a comment" placeholder="What would you like to change?" spellcheck="true" enterkeyhint="send"></textarea>
|
|
30
|
+
<div class="comment-input-actions">
|
|
31
|
+
<div class="comment-tools">
|
|
32
|
+
<button type="button" class="comments-icon" aria-label="Emoji — coming later" title="Emoji — coming later" disabled>${icon("smile")}</button>
|
|
33
|
+
<button type="button" class="comments-icon" aria-label="Draw — coming later" title="Draw — coming later" disabled>${icon("edit")}</button>
|
|
34
|
+
</div>
|
|
35
|
+
<button class="comment-submit" type="submit" aria-label="Send comment" title="Send comment (Enter)" disabled>${icon("send")}</button>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</form>`;
|
|
39
|
+
const list = element.querySelector<HTMLElement>(".comments-list")!;
|
|
40
|
+
const form = element.querySelector<HTMLFormElement>("form")!;
|
|
41
|
+
const input = form.querySelector<HTMLTextAreaElement>("textarea")!;
|
|
42
|
+
const submit = form.querySelector<HTMLButtonElement>(".comment-submit")!;
|
|
43
|
+
const counter = element.querySelector<HTMLElement>("[data-count]")!;
|
|
44
|
+
const timeLabel = form.querySelector<HTMLElement>("[data-current-time] span")!;
|
|
45
|
+
const errorView = element.querySelector<HTMLElement>(".comments-error")!;
|
|
46
|
+
let view: FeedbackView | undefined;
|
|
47
|
+
let filter = "all";
|
|
48
|
+
let selected: string | undefined;
|
|
49
|
+
let anchor: Anchor | undefined;
|
|
50
|
+
let busy = false;
|
|
51
|
+
let active = false;
|
|
52
|
+
let fetchId = 0;
|
|
53
|
+
let editing: { id: string; before: FeedbackComment; text: string } | undefined;
|
|
54
|
+
|
|
55
|
+
const showError = (error?: unknown): void => {
|
|
56
|
+
errorView.hidden = error === undefined;
|
|
57
|
+
errorView.textContent = error === undefined ? "" : error instanceof Error ? error.message : String(error);
|
|
58
|
+
};
|
|
59
|
+
const currentAnchor = (): Anchor | undefined => {
|
|
60
|
+
const state = store.current();
|
|
61
|
+
if (state === undefined) return undefined;
|
|
62
|
+
return {
|
|
63
|
+
at: state.playhead.frame * state.snapshot.space.frameRate.denominator / state.snapshot.space.frameRate.numerator,
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const renderAnchor = (): void => {
|
|
67
|
+
timeLabel.textContent = feedbackClock(anchor?.at ?? 0);
|
|
68
|
+
submit.disabled = busy || view === undefined || anchor === undefined || input.value.trim().length === 0;
|
|
69
|
+
};
|
|
70
|
+
const capture = (): void => { stage.pause(); anchor = currentAnchor(); renderAnchor(); };
|
|
71
|
+
const button = (name: string, label: string, action: () => void): HTMLButtonElement => {
|
|
72
|
+
const node = document.createElement("button");
|
|
73
|
+
node.type = "button"; node.className = "comments-icon";
|
|
74
|
+
node.innerHTML = icon(name); node.title = label; node.setAttribute("aria-label", label);
|
|
75
|
+
node.disabled = busy;
|
|
76
|
+
node.addEventListener("click", (event) => { event.stopPropagation(); action(); });
|
|
77
|
+
return node;
|
|
78
|
+
};
|
|
79
|
+
const locate = (comment: FeedbackComment): void => {
|
|
80
|
+
stage.pause(); stage.showComposition();
|
|
81
|
+
const state = store.current();
|
|
82
|
+
if (state === undefined) return;
|
|
83
|
+
const frame = Math.round(comment.at * state.snapshot.space.frameRate.numerator / state.snapshot.space.frameRate.denominator);
|
|
84
|
+
store.seek(frame, "video");
|
|
85
|
+
selected = comment.id;
|
|
86
|
+
render();
|
|
87
|
+
};
|
|
88
|
+
const render = (): void => {
|
|
89
|
+
const focusedEdit = list.querySelector<HTMLTextAreaElement>(".comment-edit textarea");
|
|
90
|
+
const cursor = focusedEdit === document.activeElement && focusedEdit !== null
|
|
91
|
+
? { start: focusedEdit.selectionStart, end: focusedEdit.selectionEnd } : undefined;
|
|
92
|
+
counter.textContent = view === undefined ? "" : String(view.comments.length);
|
|
93
|
+
// Notes are appended to the file in submission order. Number that order;
|
|
94
|
+
// time sorting and filters only change where a note is displayed.
|
|
95
|
+
const comments = [...view?.comments ?? []]
|
|
96
|
+
.map((comment, index) => ({ comment, number: index + 1 }))
|
|
97
|
+
.sort((a, b) => a.comment.at - b.comment.at)
|
|
98
|
+
.filter(({ comment }) => filter === "all" || (filter === "done") === (comment.resolved === true));
|
|
99
|
+
list.replaceChildren();
|
|
100
|
+
if (comments.length === 0) {
|
|
101
|
+
const empty = document.createElement("div");
|
|
102
|
+
empty.className = "comments-empty";
|
|
103
|
+
empty.innerHTML = `${icon(filter === "done" ? "check" : "comments")}<strong></strong><p></p>`;
|
|
104
|
+
empty.querySelector("strong")!.textContent = view === undefined ? "Loading comments…" : filter === "done" ? "No completed comments" : filter === "open" ? "All caught up" : "A note starts here";
|
|
105
|
+
empty.querySelector("p")!.textContent = filter === "all" ? "Pause on a frame and describe what you would like to change." : "Switch filters to see the other comments.";
|
|
106
|
+
list.append(empty);
|
|
107
|
+
}
|
|
108
|
+
for (const { comment, number } of comments) {
|
|
109
|
+
const row = document.createElement("article");
|
|
110
|
+
row.className = `comment-card${comment.resolved ? " resolved" : ""}${comment.id === selected ? " selected" : ""}`;
|
|
111
|
+
row.dataset.commentId = comment.id;
|
|
112
|
+
const head = document.createElement("div"); head.className = "comment-card-head";
|
|
113
|
+
const location = document.createElement("button"); location.type = "button"; location.className = "comment-location";
|
|
114
|
+
const label = document.createElement("span"); label.className = "comment-number"; label.textContent = `#${number}`;
|
|
115
|
+
const time = document.createElement("span"); time.className = "comment-time"; time.textContent = feedbackClock(comment.at);
|
|
116
|
+
location.append(time);
|
|
117
|
+
location.title = "Go to this frame"; location.addEventListener("click", () => locate(comment));
|
|
118
|
+
row.addEventListener("click", (event) => {
|
|
119
|
+
if ((event.target as Element).closest("button, form") !== null || window.getSelection()?.isCollapsed === false) return;
|
|
120
|
+
locate(comment);
|
|
121
|
+
});
|
|
122
|
+
const actions = document.createElement("div"); actions.className = "comment-actions";
|
|
123
|
+
const resolve = button("check", comment.resolved ? "Reopen comment" : "Mark complete", () => {
|
|
124
|
+
void mutate({ type: "replace", before: comment, comment: { ...comment, resolved: !comment.resolved } });
|
|
125
|
+
});
|
|
126
|
+
resolve.classList.toggle("is-done", comment.resolved === true);
|
|
127
|
+
resolve.setAttribute("aria-pressed", String(comment.resolved === true));
|
|
128
|
+
actions.append(label, resolve, button("edit", "Edit comment", () => {
|
|
129
|
+
editing = { id: comment.id, before: comment, text: comment.text }; selected = comment.id; render();
|
|
130
|
+
list.querySelector<HTMLTextAreaElement>(".comment-edit textarea")?.focus();
|
|
131
|
+
}), button("trash", "Delete comment", () => { void mutate({ type: "delete", before: comment }); }));
|
|
132
|
+
head.append(location, actions); row.append(head);
|
|
133
|
+
if (editing?.id === comment.id) {
|
|
134
|
+
const edit = document.createElement("form"); edit.className = "comment-edit";
|
|
135
|
+
const text = document.createElement("textarea"); text.rows = 3; text.value = editing.text;
|
|
136
|
+
text.setAttribute("aria-label", "Edit comment text");
|
|
137
|
+
text.addEventListener("input", () => { if (editing !== undefined) editing.text = text.value; });
|
|
138
|
+
const controls = document.createElement("div"); controls.className = "comment-edit-actions";
|
|
139
|
+
const cancel = document.createElement("button"); cancel.type = "button"; cancel.textContent = "Cancel";
|
|
140
|
+
cancel.addEventListener("click", () => { editing = undefined; render(); });
|
|
141
|
+
const save = document.createElement("button"); save.type = "submit"; save.textContent = "Save"; save.disabled = busy;
|
|
142
|
+
controls.append(cancel, save); edit.append(text, controls);
|
|
143
|
+
edit.addEventListener("submit", (event) => {
|
|
144
|
+
event.preventDefault();
|
|
145
|
+
if (editing === undefined || text.value.trim().length === 0) return;
|
|
146
|
+
void mutate({ type: "replace", before: editing.before, comment: { ...editing.before, text: text.value.trim() } }, () => { editing = undefined; });
|
|
147
|
+
}); row.append(edit);
|
|
148
|
+
} else {
|
|
149
|
+
const text = document.createElement("p"); text.className = "comment-text"; text.textContent = comment.text;
|
|
150
|
+
row.append(text);
|
|
151
|
+
}
|
|
152
|
+
list.append(row);
|
|
153
|
+
}
|
|
154
|
+
if (cursor !== undefined) {
|
|
155
|
+
const next = list.querySelector<HTMLTextAreaElement>(".comment-edit textarea");
|
|
156
|
+
next?.focus({ preventScroll: true }); next?.setSelectionRange(cursor.start, cursor.end);
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
const refresh = async (): Promise<void> => {
|
|
160
|
+
const request = ++fetchId;
|
|
161
|
+
try {
|
|
162
|
+
const response = await fetch("/__studio/feedback");
|
|
163
|
+
const data = await response.json() as FeedbackView & { error?: string };
|
|
164
|
+
if (!response.ok) throw new Error(data.error ?? "Could not read comments.");
|
|
165
|
+
if (request !== fetchId) return;
|
|
166
|
+
if (JSON.stringify(view) !== JSON.stringify(data)) { view = data; render(); }
|
|
167
|
+
showError(); renderAnchor();
|
|
168
|
+
} catch (error) { if (request === fetchId) showError(error); }
|
|
169
|
+
};
|
|
170
|
+
const mutate = async (mutation: FeedbackMutation, saved?: () => void): Promise<void> => {
|
|
171
|
+
if (busy) return;
|
|
172
|
+
busy = true; showError(); renderAnchor();
|
|
173
|
+
try {
|
|
174
|
+
const response = await fetch("/__studio/feedback", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify(mutation) });
|
|
175
|
+
const data = await response.json() as FeedbackView & { error?: string };
|
|
176
|
+
if (!response.ok) throw new Error(data.error ?? "Could not save comment.");
|
|
177
|
+
++fetchId; view = data; busy = false; saved?.();
|
|
178
|
+
if (mutation.type === "delete" && selected === mutation.before.id) selected = undefined;
|
|
179
|
+
if (mutation.type === "delete" && editing?.id === mutation.before.id) editing = undefined;
|
|
180
|
+
render();
|
|
181
|
+
} catch (error) { showError(error); }
|
|
182
|
+
finally { busy = false; renderAnchor(); }
|
|
183
|
+
};
|
|
184
|
+
form.addEventListener("submit", (event) => {
|
|
185
|
+
event.preventDefault();
|
|
186
|
+
if (view === undefined || anchor === undefined || input.value.trim().length === 0) return;
|
|
187
|
+
const comment: FeedbackComment = { id: `c-${crypto.randomUUID()}`, run: view.run, ...anchor, text: input.value.trim() };
|
|
188
|
+
void mutate({ type: "add", comment }, () => {
|
|
189
|
+
input.value = ""; input.style.height = ""; selected = comment.id; anchor = currentAnchor();
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
input.addEventListener("focus", () => { if (input.value.length === 0) capture(); else stage.pause(); });
|
|
193
|
+
input.addEventListener("input", () => {
|
|
194
|
+
input.style.height = "auto"; input.style.height = `${Math.min(180, input.scrollHeight)}px`; renderAnchor();
|
|
195
|
+
});
|
|
196
|
+
element.addEventListener("keydown", (event) => {
|
|
197
|
+
if (!(event.target instanceof HTMLTextAreaElement) || event.key !== "Enter") return;
|
|
198
|
+
// Some IMEs report the confirming Enter as keyCode 229 after compositionend.
|
|
199
|
+
if (event.isComposing || event.keyCode === 229 || event.shiftKey || event.altKey) return;
|
|
200
|
+
event.preventDefault();
|
|
201
|
+
event.stopPropagation();
|
|
202
|
+
if (!event.repeat) event.target.form?.requestSubmit();
|
|
203
|
+
});
|
|
204
|
+
document.addEventListener("pointerdown", (event) => {
|
|
205
|
+
if (!active || selected === undefined) return;
|
|
206
|
+
const row = event.target instanceof Element ? event.target.closest(".comment-card") : null;
|
|
207
|
+
if (row?.getAttribute("data-comment-id") === selected) return;
|
|
208
|
+
selected = undefined;
|
|
209
|
+
// Keep the clicked control and any unsaved editor mounted through pointerup.
|
|
210
|
+
list.querySelector(".comment-card.selected")?.classList.remove("selected");
|
|
211
|
+
});
|
|
212
|
+
form.querySelector("[data-current-time]")!.addEventListener("click", capture);
|
|
213
|
+
element.querySelector("[data-refresh]")!.addEventListener("click", () => { void refresh(); });
|
|
214
|
+
element.querySelectorAll<HTMLButtonElement>("[data-filter]").forEach((button) => button.addEventListener("click", () => {
|
|
215
|
+
filter = button.dataset.filter!;
|
|
216
|
+
element.querySelectorAll<HTMLButtonElement>("[data-filter]").forEach((item) => item.setAttribute("aria-pressed", String(item === button)));
|
|
217
|
+
render();
|
|
218
|
+
}));
|
|
219
|
+
store.subscribe(() => {
|
|
220
|
+
if (input.value.length === 0) { anchor = currentAnchor(); renderAnchor(); }
|
|
221
|
+
});
|
|
222
|
+
type Hot = { on(event: string, listener: () => void): void };
|
|
223
|
+
(import.meta as ImportMeta & { hot?: Hot }).hot?.on("studio:feedback-changed", () => { if (active) void refresh(); });
|
|
224
|
+
render();
|
|
225
|
+
return {
|
|
226
|
+
element,
|
|
227
|
+
activate(value: boolean) {
|
|
228
|
+
active = value;
|
|
229
|
+
stage.setReviewMode(value);
|
|
230
|
+
if (active) { stage.showComposition(); anchor ??= currentAnchor(); renderAnchor(); void refresh(); }
|
|
231
|
+
},
|
|
232
|
+
};
|
|
233
|
+
}
|
|
@@ -2,6 +2,11 @@ const paths: Readonly<Record<string, string>> = {
|
|
|
2
2
|
brand: '<g transform="translate(0 1.282) scale(.091603) translate(-50 -180)"><path fill="currentColor" stroke="none" d="M303.78,277.82c-5.98-8.63-15.83-13.77-26.32-13.77h-93.41c-12.28,0-24.92,7.44-29.6,18.8l-28.26,75.82c-4.6,11.25-4.54,24.05,2.22,34.16,6.79,10.15,19.36,16.15,31.57,16.15h85.98c14.12,0,26.9-8.88,31.84-22.1l29.69-79.57c3.67-9.84,2.29-20.86-3.69-29.48v-.02h-.02ZM252.02,377.25c-.94,2.52-3.39,4.22-6.08,4.22h-83.45c-4.34,0-6.68-2.8-7.49-3.99s-2.5-4.43-.84-8.44l23.85-66.24c2.29-6.35,8.08-10.87,14.82-11.22.33-.02.67-.02,1.02-.02h75.41s12.51,1.42,9.29,14.61l-26.53,71.09h0ZM106.85,361.73s-22.36-11.59-17.66-32.66l29.67-82.23c4.78-13.25,17.36-22.09,31.45-22.09h95.02c6.25,0,12.1,3.03,15.71,8.14l13.89,19.68h-112.97c-8.7,0-16.49,5.41-19.52,13.57l-35.59,95.6h0ZM73.3,323.27s-22.37-11.59-17.66-32.66l29.67-82.23c4.79-13.25,17.37-22.09,31.45-22.09h89.91c6.25,0,12.1,3.03,15.71,8.14l13.89,19.68h-107.84c-8.7,0-16.49,5.41-19.52,13.57l-35.59,95.6h-.02Z"/></g>',
|
|
3
3
|
code: '<path d="M9 7 4 12l5 5M15 7l5 5-5 5M13 4l-2 16"/>',
|
|
4
4
|
edit: '<path d="m4 16-.8 4 4-.8L18.5 8.9 15.1 5.5 4 16Z"/><path d="m13.8 6.8 3.4 3.4"/>',
|
|
5
|
+
studio: '<rect x="3" y="4" width="18" height="16" rx="1.5"/><path d="M3 14h18M8 4v10M15 14v6"/>',
|
|
6
|
+
comments: '<path d="M6 17H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-8l-5 4v-4Z"/><path d="M7 8h10M7 12h7"/>',
|
|
7
|
+
trash: '<path d="M3 6h18M9 6V3h6v3M6 6l1 15h10l1-15M10 10v7M14 10v7"/>',
|
|
8
|
+
send: '<path d="M12 20V4m-6 6 6-6 6 6"/>',
|
|
9
|
+
smile: '<circle cx="12" cy="12" r="9"/><path d="M8 14a4.5 4.5 0 0 0 8 0M8.5 9h.01M15.5 9h.01"/>',
|
|
5
10
|
eye: '<path d="M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6Z"/><circle cx="12" cy="12" r="2.5"/>',
|
|
6
11
|
preview: '<rect x="3" y="4" width="18" height="14" rx="2"/><path d="m10 8 5 3.5-5 3.5V8ZM8 21h8"/>',
|
|
7
12
|
tune: '<path d="M4 7h10M18 7h2M4 17h2M10 17h10"/><circle cx="16" cy="7" r="2"/><circle cx="8" cy="17" r="2"/>',
|