@dreamerbird/camera-studio 0.0.0-stage → 0.2.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 +866 -0
- package/assets/models/Y Bot.glb +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-base-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-base-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-point-relaxed-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-point-relaxed-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-point-straight-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-point-straight-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-01-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-01-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-02-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-02-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-03-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-03-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-04-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-04-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-05-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-05-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-06-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-01-base-relaxed-06-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-bowl-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-bowl-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-card-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-card-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-claw-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-claw-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-fist-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-fist-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-grip-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-grip-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-ko-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-ko-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-nail-check-01-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-nail-check-01-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-nail-check-02-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-nail-check-02-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-offer-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-offer-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-push-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-push-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-push-the-button-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-push-the-button-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-scratch-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-scratch-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-spread-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-spread-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-write-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-02-other-write-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-cobblepot-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-cobblepot-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-fingers-crossed-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-fingers-crossed-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-five-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-five-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-four-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-four-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-four-ring-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-four-ring-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-fu-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-fu-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-index-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-index-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-martian-reactor-switch-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-martian-reactor-switch-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-one-does-not-simply-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-one-does-not-simply-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-peace-flipped-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-peace-flipped.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-peace-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-peace-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-perfect-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-perfect-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-pinky-swear-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-pinky-swear-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-rock-out-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-rock-out-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-scout-salute-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-scout-salute-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-spock-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-spock-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-stop-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-stop-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-surf-s-up-flipped-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-surf-s-up-flipped-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-surf-s-up-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-surf-s-up-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-three-hicox-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-three-hicox-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-three-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-three-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-three-ring-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-three-ring-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-thumbs-up-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-03-signs-thumbs-up-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-detonator-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-detonator-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-grip-sword-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-grip-sword-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-gun-01-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-gun-01-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-gun-02-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-gun-02-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-gun-03-l-cock-the-hammer.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-gun-03-r-cock-the-hammer.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-hadoken-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-hadoken-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-pistol-double-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-pistol-double-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-pistol-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-pistol-r.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-throw-l.png +0 -0
- package/assets/poseThumbs/qbx-hands-04-weapons-throw-r.png +0 -0
- package/dist/Anchors.d.ts +11 -0
- package/dist/Anchors.d.ts.map +1 -0
- package/dist/Anchors.js +315 -0
- package/dist/App.hostFlows.test.d.ts +2 -0
- package/dist/App.hostFlows.test.d.ts.map +1 -0
- package/dist/App.hostFlows.test.js +48 -0
- package/dist/CameraPath.d.ts +130 -0
- package/dist/CameraPath.d.ts.map +1 -0
- package/dist/CameraPath.js +920 -0
- package/dist/CameraScene.d.ts +45 -0
- package/dist/CameraScene.d.ts.map +1 -0
- package/dist/CameraScene.js +1777 -0
- package/dist/CameraScene.test.d.ts +2 -0
- package/dist/CameraScene.test.d.ts.map +1 -0
- package/dist/CameraScene.test.js +259 -0
- package/dist/PathPresetDropRig.d.ts +27 -0
- package/dist/PathPresetDropRig.d.ts.map +1 -0
- package/dist/PathPresetDropRig.js +192 -0
- package/dist/PathPresetThumb.d.ts +11 -0
- package/dist/PathPresetThumb.d.ts.map +1 -0
- package/dist/PathPresetThumb.js +85 -0
- package/dist/PipCameraSelector.d.ts +15 -0
- package/dist/PipCameraSelector.d.ts.map +1 -0
- package/dist/PipCameraSelector.js +92 -0
- package/dist/PlacementManager.d.ts +252 -0
- package/dist/PlacementManager.d.ts.map +1 -0
- package/dist/PlacementManager.js +1552 -0
- package/dist/ShotCamera.d.ts +21 -0
- package/dist/ShotCamera.d.ts.map +1 -0
- package/dist/ShotCamera.js +568 -0
- package/dist/TopToolbar.d.ts +43 -0
- package/dist/TopToolbar.d.ts.map +1 -0
- package/dist/TopToolbar.js +167 -0
- package/dist/TopToolbar.test.d.ts +2 -0
- package/dist/TopToolbar.test.d.ts.map +1 -0
- package/dist/TopToolbar.test.js +107 -0
- package/dist/agent/api.d.ts +95 -0
- package/dist/agent/api.d.ts.map +1 -0
- package/dist/agent/api.js +337 -0
- package/dist/agent/api.test.d.ts +2 -0
- package/dist/agent/api.test.d.ts.map +1 -0
- package/dist/agent/api.test.js +907 -0
- package/dist/agent/bridgeClient.d.ts +62 -0
- package/dist/agent/bridgeClient.d.ts.map +1 -0
- package/dist/agent/bridgeClient.js +277 -0
- package/dist/agent/bridgeClient.test.d.ts +2 -0
- package/dist/agent/bridgeClient.test.d.ts.map +1 -0
- package/dist/agent/bridgeClient.test.js +413 -0
- package/dist/agent/bridgeFiles.d.ts +33 -0
- package/dist/agent/bridgeFiles.d.ts.map +1 -0
- package/dist/agent/bridgeFiles.js +193 -0
- package/dist/agent/bridgeFiles.test.d.ts +2 -0
- package/dist/agent/bridgeFiles.test.d.ts.map +1 -0
- package/dist/agent/bridgeFiles.test.js +220 -0
- package/dist/agent/commands/anchors.d.ts +43 -0
- package/dist/agent/commands/anchors.d.ts.map +1 -0
- package/dist/agent/commands/anchors.js +331 -0
- package/dist/agent/commands/anchors.test.d.ts +2 -0
- package/dist/agent/commands/anchors.test.d.ts.map +1 -0
- package/dist/agent/commands/anchors.test.js +447 -0
- package/dist/agent/commands/animations.d.ts +47 -0
- package/dist/agent/commands/animations.d.ts.map +1 -0
- package/dist/agent/commands/animations.js +245 -0
- package/dist/agent/commands/animations.test.d.ts +2 -0
- package/dist/agent/commands/animations.test.d.ts.map +1 -0
- package/dist/agent/commands/animations.test.js +426 -0
- package/dist/agent/commands/assets.d.ts +34 -0
- package/dist/agent/commands/assets.d.ts.map +1 -0
- package/dist/agent/commands/assets.js +367 -0
- package/dist/agent/commands/assets.test.d.ts +2 -0
- package/dist/agent/commands/assets.test.d.ts.map +1 -0
- package/dist/agent/commands/assets.test.js +405 -0
- package/dist/agent/commands/bindings.realStudio.test.d.ts +21 -0
- package/dist/agent/commands/bindings.realStudio.test.d.ts.map +1 -0
- package/dist/agent/commands/bindings.realStudio.test.js +281 -0
- package/dist/agent/commands/cameras.d.ts +65 -0
- package/dist/agent/commands/cameras.d.ts.map +1 -0
- package/dist/agent/commands/cameras.js +498 -0
- package/dist/agent/commands/cameras.test.d.ts +2 -0
- package/dist/agent/commands/cameras.test.d.ts.map +1 -0
- package/dist/agent/commands/cameras.test.js +560 -0
- package/dist/agent/commands/delete.test.d.ts +2 -0
- package/dist/agent/commands/delete.test.d.ts.map +1 -0
- package/dist/agent/commands/delete.test.js +518 -0
- package/dist/agent/commands/exports.d.ts +12 -0
- package/dist/agent/commands/exports.d.ts.map +1 -0
- package/dist/agent/commands/exports.js +132 -0
- package/dist/agent/commands/exports.test.d.ts +2 -0
- package/dist/agent/commands/exports.test.d.ts.map +1 -0
- package/dist/agent/commands/exports.test.js +402 -0
- package/dist/agent/commands/history.d.ts +17 -0
- package/dist/agent/commands/history.d.ts.map +1 -0
- package/dist/agent/commands/history.js +96 -0
- package/dist/agent/commands/history.test.d.ts +2 -0
- package/dist/agent/commands/history.test.d.ts.map +1 -0
- package/dist/agent/commands/history.test.js +140 -0
- package/dist/agent/commands/jobs.d.ts +23 -0
- package/dist/agent/commands/jobs.d.ts.map +1 -0
- package/dist/agent/commands/jobs.js +66 -0
- package/dist/agent/commands/keyframes.d.ts +42 -0
- package/dist/agent/commands/keyframes.d.ts.map +1 -0
- package/dist/agent/commands/keyframes.js +310 -0
- package/dist/agent/commands/keyframes.realStudio.test.d.ts +11 -0
- package/dist/agent/commands/keyframes.realStudio.test.d.ts.map +1 -0
- package/dist/agent/commands/keyframes.realStudio.test.js +95 -0
- package/dist/agent/commands/keyframes.test.d.ts +2 -0
- package/dist/agent/commands/keyframes.test.d.ts.map +1 -0
- package/dist/agent/commands/keyframes.test.js +474 -0
- package/dist/agent/commands/models.d.ts +34 -0
- package/dist/agent/commands/models.d.ts.map +1 -0
- package/dist/agent/commands/models.js +137 -0
- package/dist/agent/commands/models.test.d.ts +2 -0
- package/dist/agent/commands/models.test.d.ts.map +1 -0
- package/dist/agent/commands/models.test.js +268 -0
- package/dist/agent/commands/objects.d.ts +4 -0
- package/dist/agent/commands/objects.d.ts.map +1 -0
- package/dist/agent/commands/objects.js +182 -0
- package/dist/agent/commands/objects.test.d.ts +2 -0
- package/dist/agent/commands/objects.test.d.ts.map +1 -0
- package/dist/agent/commands/objects.test.js +316 -0
- package/dist/agent/commands/paths.d.ts +111 -0
- package/dist/agent/commands/paths.d.ts.map +1 -0
- package/dist/agent/commands/paths.js +576 -0
- package/dist/agent/commands/paths.test.d.ts +2 -0
- package/dist/agent/commands/paths.test.d.ts.map +1 -0
- package/dist/agent/commands/paths.test.js +773 -0
- package/dist/agent/commands/poses.d.ts +101 -0
- package/dist/agent/commands/poses.d.ts.map +1 -0
- package/dist/agent/commands/poses.js +500 -0
- package/dist/agent/commands/poses.realStudio.test.d.ts +15 -0
- package/dist/agent/commands/poses.realStudio.test.d.ts.map +1 -0
- package/dist/agent/commands/poses.realStudio.test.js +161 -0
- package/dist/agent/commands/poses.test.d.ts +2 -0
- package/dist/agent/commands/poses.test.d.ts.map +1 -0
- package/dist/agent/commands/poses.test.js +735 -0
- package/dist/agent/commands/project.d.ts +12 -0
- package/dist/agent/commands/project.d.ts.map +1 -0
- package/dist/agent/commands/project.js +42 -0
- package/dist/agent/commands/project.test.d.ts +2 -0
- package/dist/agent/commands/project.test.d.ts.map +1 -0
- package/dist/agent/commands/project.test.js +125 -0
- package/dist/agent/commands/revision.realStudio.test.d.ts +14 -0
- package/dist/agent/commands/revision.realStudio.test.d.ts.map +1 -0
- package/dist/agent/commands/revision.realStudio.test.js +129 -0
- package/dist/agent/commands/scene.d.ts +32 -0
- package/dist/agent/commands/scene.d.ts.map +1 -0
- package/dist/agent/commands/scene.js +100 -0
- package/dist/agent/commands/scene.test.d.ts +2 -0
- package/dist/agent/commands/scene.test.d.ts.map +1 -0
- package/dist/agent/commands/scene.test.js +147 -0
- package/dist/agent/commands/selection.d.ts +21 -0
- package/dist/agent/commands/selection.d.ts.map +1 -0
- package/dist/agent/commands/selection.js +101 -0
- package/dist/agent/commands/selection.test.d.ts +2 -0
- package/dist/agent/commands/selection.test.d.ts.map +1 -0
- package/dist/agent/commands/selection.test.js +173 -0
- package/dist/agent/commands/sequence.d.ts +25 -0
- package/dist/agent/commands/sequence.d.ts.map +1 -0
- package/dist/agent/commands/sequence.js +174 -0
- package/dist/agent/commands/sequence.test.d.ts +2 -0
- package/dist/agent/commands/sequence.test.d.ts.map +1 -0
- package/dist/agent/commands/sequence.test.js +264 -0
- package/dist/agent/commands/ui.d.ts +40 -0
- package/dist/agent/commands/ui.d.ts.map +1 -0
- package/dist/agent/commands/ui.js +166 -0
- package/dist/agent/commands/view.d.ts +61 -0
- package/dist/agent/commands/view.d.ts.map +1 -0
- package/dist/agent/commands/view.js +229 -0
- package/dist/agent/commands/view.test.d.ts +2 -0
- package/dist/agent/commands/view.test.d.ts.map +1 -0
- package/dist/agent/commands/view.test.js +347 -0
- package/dist/agent/contractCoverage.test.d.ts +2 -0
- package/dist/agent/contractCoverage.test.d.ts.map +1 -0
- package/dist/agent/contractCoverage.test.js +87 -0
- package/dist/agent/deleteHandlers.d.ts +61 -0
- package/dist/agent/deleteHandlers.d.ts.map +1 -0
- package/dist/agent/deleteHandlers.js +41 -0
- package/dist/agent/errors.d.ts +24 -0
- package/dist/agent/errors.d.ts.map +1 -0
- package/dist/agent/errors.js +59 -0
- package/dist/agent/errors.test.d.ts +2 -0
- package/dist/agent/errors.test.d.ts.map +1 -0
- package/dist/agent/errors.test.js +25 -0
- package/dist/agent/expectedCommands.d.ts +9 -0
- package/dist/agent/expectedCommands.d.ts.map +1 -0
- package/dist/agent/expectedCommands.js +79 -0
- package/dist/agent/jobs.d.ts +52 -0
- package/dist/agent/jobs.d.ts.map +1 -0
- package/dist/agent/jobs.js +175 -0
- package/dist/agent/jobs.test.d.ts +2 -0
- package/dist/agent/jobs.test.d.ts.map +1 -0
- package/dist/agent/jobs.test.js +281 -0
- package/dist/agent/keyframeTracks.d.ts +57 -0
- package/dist/agent/keyframeTracks.d.ts.map +1 -0
- package/dist/agent/keyframeTracks.js +127 -0
- package/dist/agent/objectIds.d.ts +7 -0
- package/dist/agent/objectIds.d.ts.map +1 -0
- package/dist/agent/objectIds.js +20 -0
- package/dist/agent/objectIds.test.d.ts +2 -0
- package/dist/agent/objectIds.test.d.ts.map +1 -0
- package/dist/agent/objectIds.test.js +10 -0
- package/dist/agent/objectResolver.d.ts +34 -0
- package/dist/agent/objectResolver.d.ts.map +1 -0
- package/dist/agent/objectResolver.js +112 -0
- package/dist/agent/pathCommands.d.ts +78 -0
- package/dist/agent/pathCommands.d.ts.map +1 -0
- package/dist/agent/pathCommands.js +240 -0
- package/dist/agent/propAccess.d.ts +42 -0
- package/dist/agent/propAccess.d.ts.map +1 -0
- package/dist/agent/propAccess.js +181 -0
- package/dist/agent/registerCommands.d.ts +9 -0
- package/dist/agent/registerCommands.d.ts.map +1 -0
- package/dist/agent/registerCommands.js +77 -0
- package/dist/agent/registry.d.ts +33 -0
- package/dist/agent/registry.d.ts.map +1 -0
- package/dist/agent/registry.js +55 -0
- package/dist/agent/registry.test.d.ts +2 -0
- package/dist/agent/registry.test.d.ts.map +1 -0
- package/dist/agent/registry.test.js +106 -0
- package/dist/agent/runtime/animationStatus.d.ts +25 -0
- package/dist/agent/runtime/animationStatus.d.ts.map +1 -0
- package/dist/agent/runtime/animationStatus.js +13 -0
- package/dist/agent/runtime/cameraLifecycle.d.ts +37 -0
- package/dist/agent/runtime/cameraLifecycle.d.ts.map +1 -0
- package/dist/agent/runtime/cameraLifecycle.js +112 -0
- package/dist/agent/runtime/directorView.d.ts +42 -0
- package/dist/agent/runtime/directorView.d.ts.map +1 -0
- package/dist/agent/runtime/directorView.js +27 -0
- package/dist/agent/runtime/exportRuntime.d.ts +95 -0
- package/dist/agent/runtime/exportRuntime.d.ts.map +1 -0
- package/dist/agent/runtime/exportRuntime.js +227 -0
- package/dist/agent/runtime/objectRuntime.d.ts +26 -0
- package/dist/agent/runtime/objectRuntime.d.ts.map +1 -0
- package/dist/agent/runtime/objectRuntime.js +29 -0
- package/dist/agent/runtime/pathRuntime.d.ts +21 -0
- package/dist/agent/runtime/pathRuntime.d.ts.map +1 -0
- package/dist/agent/runtime/pathRuntime.js +13 -0
- package/dist/agent/runtime/placementLifecycle.d.ts +34 -0
- package/dist/agent/runtime/placementLifecycle.d.ts.map +1 -0
- package/dist/agent/runtime/placementLifecycle.js +63 -0
- package/dist/agent/runtime/placementLifecycle.test.d.ts +2 -0
- package/dist/agent/runtime/placementLifecycle.test.d.ts.map +1 -0
- package/dist/agent/runtime/placementLifecycle.test.js +68 -0
- package/dist/agent/runtime/poseSessionRuntime.d.ts +17 -0
- package/dist/agent/runtime/poseSessionRuntime.d.ts.map +1 -0
- package/dist/agent/runtime/poseSessionRuntime.js +64 -0
- package/dist/agent/runtime.d.ts +67 -0
- package/dist/agent/runtime.d.ts.map +1 -0
- package/dist/agent/runtime.js +214 -0
- package/dist/agent/runtime.test.d.ts +2 -0
- package/dist/agent/runtime.test.d.ts.map +1 -0
- package/dist/agent/runtime.test.js +142 -0
- package/dist/agent/sequenceLength.d.ts +20 -0
- package/dist/agent/sequenceLength.d.ts.map +1 -0
- package/dist/agent/sequenceLength.js +18 -0
- package/dist/agent/types.d.ts +70 -0
- package/dist/agent/types.d.ts.map +1 -0
- package/dist/agent/types.js +6 -0
- package/dist/agent/validation.d.ts +7 -0
- package/dist/agent/validation.d.ts.map +1 -0
- package/dist/agent/validation.js +39 -0
- package/dist/aimTargets.d.ts +128 -0
- package/dist/aimTargets.d.ts.map +1 -0
- package/dist/aimTargets.js +367 -0
- package/dist/aimTargets.test.d.ts +2 -0
- package/dist/aimTargets.test.d.ts.map +1 -0
- package/dist/aimTargets.test.js +84 -0
- package/dist/anchorParenting.test.d.ts +2 -0
- package/dist/anchorParenting.test.d.ts.map +1 -0
- package/dist/anchorParenting.test.js +87 -0
- package/dist/anchorsRegistry.d.ts +45 -0
- package/dist/anchorsRegistry.d.ts.map +1 -0
- package/dist/anchorsRegistry.js +101 -0
- package/dist/anchorsRegistry.test.d.ts +2 -0
- package/dist/anchorsRegistry.test.d.ts.map +1 -0
- package/dist/anchorsRegistry.test.js +29 -0
- package/dist/assetLibrary/AssetLibraryPanel.d.ts +35 -0
- package/dist/assetLibrary/AssetLibraryPanel.d.ts.map +1 -0
- package/dist/assetLibrary/AssetLibraryPanel.js +544 -0
- package/dist/assetLibrary/AssetLibraryPanel.viewer.test.d.ts +2 -0
- package/dist/assetLibrary/AssetLibraryPanel.viewer.test.d.ts.map +1 -0
- package/dist/assetLibrary/AssetLibraryPanel.viewer.test.js +133 -0
- package/dist/assetLibrary/ModelPickerSlot.d.ts +24 -0
- package/dist/assetLibrary/ModelPickerSlot.d.ts.map +1 -0
- package/dist/assetLibrary/ModelPickerSlot.js +32 -0
- package/dist/assetLibrary/catalogThumbs.d.ts +7 -0
- package/dist/assetLibrary/catalogThumbs.d.ts.map +1 -0
- package/dist/assetLibrary/catalogThumbs.js +75 -0
- package/dist/assetLibrary/classify.d.ts +14 -0
- package/dist/assetLibrary/classify.d.ts.map +1 -0
- package/dist/assetLibrary/classify.js +43 -0
- package/dist/assetLibrary/classify.test.d.ts +2 -0
- package/dist/assetLibrary/classify.test.d.ts.map +1 -0
- package/dist/assetLibrary/classify.test.js +44 -0
- package/dist/assetLibrary/contract.indexeddb.test.d.ts +2 -0
- package/dist/assetLibrary/contract.indexeddb.test.d.ts.map +1 -0
- package/dist/assetLibrary/contract.indexeddb.test.js +10 -0
- package/dist/assetLibrary/contractTests.d.ts +12 -0
- package/dist/assetLibrary/contractTests.d.ts.map +1 -0
- package/dist/assetLibrary/contractTests.js +51 -0
- package/dist/assetLibrary/dispose.d.ts +4 -0
- package/dist/assetLibrary/dispose.d.ts.map +1 -0
- package/dist/assetLibrary/dispose.js +21 -0
- package/dist/assetLibrary/draco.d.ts +6 -0
- package/dist/assetLibrary/draco.d.ts.map +1 -0
- package/dist/assetLibrary/draco.js +45 -0
- package/dist/assetLibrary/draco.test.d.ts +2 -0
- package/dist/assetLibrary/draco.test.d.ts.map +1 -0
- package/dist/assetLibrary/draco.test.js +93 -0
- package/dist/assetLibrary/exportGLB.d.ts +45 -0
- package/dist/assetLibrary/exportGLB.d.ts.map +1 -0
- package/dist/assetLibrary/exportGLB.js +125 -0
- package/dist/assetLibrary/exportGLB.test.d.ts +2 -0
- package/dist/assetLibrary/exportGLB.test.d.ts.map +1 -0
- package/dist/assetLibrary/exportGLB.test.js +127 -0
- package/dist/assetLibrary/gltfLoader.d.ts +8 -0
- package/dist/assetLibrary/gltfLoader.d.ts.map +1 -0
- package/dist/assetLibrary/gltfLoader.js +11 -0
- package/dist/assetLibrary/hash.d.ts +7 -0
- package/dist/assetLibrary/hash.d.ts.map +1 -0
- package/dist/assetLibrary/hash.js +17 -0
- package/dist/assetLibrary/importModelFile.d.ts +5 -0
- package/dist/assetLibrary/importModelFile.d.ts.map +1 -0
- package/dist/assetLibrary/importModelFile.js +19 -0
- package/dist/assetLibrary/importModelFile.test.d.ts +2 -0
- package/dist/assetLibrary/importModelFile.test.d.ts.map +1 -0
- package/dist/assetLibrary/importModelFile.test.js +77 -0
- package/dist/assetLibrary/importPipeline.d.ts +61 -0
- package/dist/assetLibrary/importPipeline.d.ts.map +1 -0
- package/dist/assetLibrary/importPipeline.js +253 -0
- package/dist/assetLibrary/importPipeline.test.d.ts +2 -0
- package/dist/assetLibrary/importPipeline.test.d.ts.map +1 -0
- package/dist/assetLibrary/importPipeline.test.js +188 -0
- package/dist/assetLibrary/indexedDBBackend.d.ts +31 -0
- package/dist/assetLibrary/indexedDBBackend.d.ts.map +1 -0
- package/dist/assetLibrary/indexedDBBackend.js +134 -0
- package/dist/assetLibrary/indexedDBBackend.test.d.ts +2 -0
- package/dist/assetLibrary/indexedDBBackend.test.d.ts.map +1 -0
- package/dist/assetLibrary/indexedDBBackend.test.js +148 -0
- package/dist/assetLibrary/legacySeedCleanup.d.ts +19 -0
- package/dist/assetLibrary/legacySeedCleanup.d.ts.map +1 -0
- package/dist/assetLibrary/legacySeedCleanup.js +50 -0
- package/dist/assetLibrary/legacySeedCleanup.test.d.ts +2 -0
- package/dist/assetLibrary/legacySeedCleanup.test.d.ts.map +1 -0
- package/dist/assetLibrary/legacySeedCleanup.test.js +74 -0
- package/dist/assetLibrary/library.d.ts +122 -0
- package/dist/assetLibrary/library.d.ts.map +1 -0
- package/dist/assetLibrary/library.js +424 -0
- package/dist/assetLibrary/library.test.d.ts +2 -0
- package/dist/assetLibrary/library.test.d.ts.map +1 -0
- package/dist/assetLibrary/library.test.js +520 -0
- package/dist/assetLibrary/options.d.ts +9 -0
- package/dist/assetLibrary/options.d.ts.map +1 -0
- package/dist/assetLibrary/options.js +20 -0
- package/dist/assetLibrary/options.test.d.ts +2 -0
- package/dist/assetLibrary/options.test.d.ts.map +1 -0
- package/dist/assetLibrary/options.test.js +70 -0
- package/dist/assetLibrary/pose.d.ts +15 -0
- package/dist/assetLibrary/pose.d.ts.map +1 -0
- package/dist/assetLibrary/pose.js +41 -0
- package/dist/assetLibrary/pose.test.d.ts +2 -0
- package/dist/assetLibrary/pose.test.d.ts.map +1 -0
- package/dist/assetLibrary/pose.test.js +45 -0
- package/dist/assetLibrary/poseThumbnail.d.ts +30 -0
- package/dist/assetLibrary/poseThumbnail.d.ts.map +1 -0
- package/dist/assetLibrary/poseThumbnail.js +144 -0
- package/dist/assetLibrary/poseThumbnail.test.d.ts +2 -0
- package/dist/assetLibrary/poseThumbnail.test.d.ts.map +1 -0
- package/dist/assetLibrary/poseThumbnail.test.js +111 -0
- package/dist/assetLibrary/rig.d.ts +14 -0
- package/dist/assetLibrary/rig.d.ts.map +1 -0
- package/dist/assetLibrary/rig.js +33 -0
- package/dist/assetLibrary/rig.test.d.ts +2 -0
- package/dist/assetLibrary/rig.test.d.ts.map +1 -0
- package/dist/assetLibrary/rig.test.js +55 -0
- package/dist/assetLibrary/seedAssetsManifest.d.ts +24 -0
- package/dist/assetLibrary/seedAssetsManifest.d.ts.map +1 -0
- package/dist/assetLibrary/seedAssetsManifest.js +347 -0
- package/dist/assetLibrary/seedBuiltinPoses.d.ts +29 -0
- package/dist/assetLibrary/seedBuiltinPoses.d.ts.map +1 -0
- package/dist/assetLibrary/seedBuiltinPoses.js +114 -0
- package/dist/assetLibrary/seedBuiltinPoses.test.d.ts +2 -0
- package/dist/assetLibrary/seedBuiltinPoses.test.d.ts.map +1 -0
- package/dist/assetLibrary/seedBuiltinPoses.test.js +176 -0
- package/dist/assetLibrary/seedPoses.d.ts +8 -0
- package/dist/assetLibrary/seedPoses.d.ts.map +1 -0
- package/dist/assetLibrary/seedPoses.js +2414 -0
- package/dist/assetLibrary/seedPosesDpl.d.ts +8 -0
- package/dist/assetLibrary/seedPosesDpl.d.ts.map +1 -0
- package/dist/assetLibrary/seedPosesDpl.js +11660 -0
- package/dist/assetLibrary/seedPosesQbx.d.ts +8 -0
- package/dist/assetLibrary/seedPosesQbx.d.ts.map +1 -0
- package/dist/assetLibrary/seedPosesQbx.js +5612 -0
- package/dist/assetLibrary/seedPosesQbx.test.d.ts +2 -0
- package/dist/assetLibrary/seedPosesQbx.test.d.ts.map +1 -0
- package/dist/assetLibrary/seedPosesQbx.test.js +181 -0
- package/dist/assetLibrary/source.d.ts +45 -0
- package/dist/assetLibrary/source.d.ts.map +1 -0
- package/dist/assetLibrary/source.js +11 -0
- package/dist/assetLibrary/source.test.d.ts +2 -0
- package/dist/assetLibrary/source.test.d.ts.map +1 -0
- package/dist/assetLibrary/source.test.js +28 -0
- package/dist/assetLibrary/staticCatalogSource.d.ts +48 -0
- package/dist/assetLibrary/staticCatalogSource.d.ts.map +1 -0
- package/dist/assetLibrary/staticCatalogSource.js +140 -0
- package/dist/assetLibrary/staticCatalogSource.test.d.ts +2 -0
- package/dist/assetLibrary/staticCatalogSource.test.d.ts.map +1 -0
- package/dist/assetLibrary/staticCatalogSource.test.js +154 -0
- package/dist/assetLibrary/thumbnail.d.ts +14 -0
- package/dist/assetLibrary/thumbnail.d.ts.map +1 -0
- package/dist/assetLibrary/thumbnail.js +70 -0
- package/dist/assetLibrary/types.d.ts +54 -0
- package/dist/assetLibrary/types.d.ts.map +1 -0
- package/dist/assetLibrary/types.js +1 -0
- package/dist/assetLibrary/useModelThumbUrl.d.ts +10 -0
- package/dist/assetLibrary/useModelThumbUrl.d.ts.map +1 -0
- package/dist/assetLibrary/useModelThumbUrl.js +56 -0
- package/dist/boneAnchorWiring.test.d.ts +2 -0
- package/dist/boneAnchorWiring.test.d.ts.map +1 -0
- package/dist/boneAnchorWiring.test.js +173 -0
- package/dist/boneAnchors.d.ts +30 -0
- package/dist/boneAnchors.d.ts.map +1 -0
- package/dist/boneAnchors.js +111 -0
- package/dist/boneAnchors.test.d.ts +2 -0
- package/dist/boneAnchors.test.d.ts.map +1 -0
- package/dist/boneAnchors.test.js +98 -0
- package/dist/bootstrap.d.ts +37 -0
- package/dist/bootstrap.d.ts.map +1 -0
- package/dist/bootstrap.js +394 -0
- package/dist/bootstrap.test.d.ts +2 -0
- package/dist/bootstrap.test.d.ts.map +1 -0
- package/dist/bootstrap.test.js +647 -0
- package/dist/cameraRegistry.d.ts +65 -0
- package/dist/cameraRegistry.d.ts.map +1 -0
- package/dist/cameraRegistry.js +151 -0
- package/dist/cameraRegistry.test.d.ts +2 -0
- package/dist/cameraRegistry.test.d.ts.map +1 -0
- package/dist/cameraRegistry.test.js +68 -0
- package/dist/config.d.ts +92 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +1 -0
- package/dist/contextMenu.d.ts +16 -0
- package/dist/contextMenu.d.ts.map +1 -0
- package/dist/contextMenu.js +10 -0
- package/dist/dropPoint.d.ts +61 -0
- package/dist/dropPoint.d.ts.map +1 -0
- package/dist/dropPoint.js +97 -0
- package/dist/dropPoint.test.d.ts +2 -0
- package/dist/dropPoint.test.d.ts.map +1 -0
- package/dist/dropPoint.test.js +174 -0
- package/dist/editorOnly.d.ts +6 -0
- package/dist/editorOnly.d.ts.map +1 -0
- package/dist/editorOnly.js +32 -0
- package/dist/errors.d.ts +24 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +13 -0
- package/dist/firstScreenGate.d.ts +28 -0
- package/dist/firstScreenGate.d.ts.map +1 -0
- package/dist/firstScreenGate.js +67 -0
- package/dist/firstScreenGate.test.d.ts +2 -0
- package/dist/firstScreenGate.test.d.ts.map +1 -0
- package/dist/firstScreenGate.test.js +83 -0
- package/dist/gestureProps.d.ts +99 -0
- package/dist/gestureProps.d.ts.map +1 -0
- package/dist/gestureProps.js +118 -0
- package/dist/gestureProps.test.d.ts +2 -0
- package/dist/gestureProps.test.d.ts.map +1 -0
- package/dist/gestureProps.test.js +182 -0
- package/dist/gesturePropsEditor.d.ts +27 -0
- package/dist/gesturePropsEditor.d.ts.map +1 -0
- package/dist/gesturePropsEditor.js +121 -0
- package/dist/getDeep.d.ts +8 -0
- package/dist/getDeep.d.ts.map +1 -0
- package/dist/getDeep.js +15 -0
- package/dist/gizmoRegistry.test.d.ts +2 -0
- package/dist/gizmoRegistry.test.d.ts.map +1 -0
- package/dist/gizmoRegistry.test.js +40 -0
- package/dist/hostFlows.d.ts +55 -0
- package/dist/hostFlows.d.ts.map +1 -0
- package/dist/hostFlows.js +77 -0
- package/dist/hostFlows.test.d.ts +2 -0
- package/dist/hostFlows.test.d.ts.map +1 -0
- package/dist/hostFlows.test.js +191 -0
- package/dist/i18n.d.ts +26 -0
- package/dist/i18n.d.ts.map +1 -0
- package/dist/i18n.js +271 -0
- package/dist/i18n.test.d.ts +2 -0
- package/dist/i18n.test.d.ts.map +1 -0
- package/dist/i18n.test.js +41 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/menuModel.d.ts +51 -0
- package/dist/menuModel.d.ts.map +1 -0
- package/dist/menuModel.js +111 -0
- package/dist/menuModel.test.d.ts +2 -0
- package/dist/menuModel.test.d.ts.map +1 -0
- package/dist/menuModel.test.js +197 -0
- package/dist/modalGrab.d.ts +29 -0
- package/dist/modalGrab.d.ts.map +1 -0
- package/dist/modalGrab.js +127 -0
- package/dist/outlineObjectMenu.d.ts +41 -0
- package/dist/outlineObjectMenu.d.ts.map +1 -0
- package/dist/outlineObjectMenu.js +58 -0
- package/dist/outlineObjectMenu.test.d.ts +2 -0
- package/dist/outlineObjectMenu.test.d.ts.map +1 -0
- package/dist/outlineObjectMenu.test.js +83 -0
- package/dist/pathBinding.d.ts +16 -0
- package/dist/pathBinding.d.ts.map +1 -0
- package/dist/pathBinding.js +19 -0
- package/dist/pathBinding.test.d.ts +2 -0
- package/dist/pathBinding.test.d.ts.map +1 -0
- package/dist/pathBinding.test.js +14 -0
- package/dist/pathModel.d.ts +123 -0
- package/dist/pathModel.d.ts.map +1 -0
- package/dist/pathModel.js +343 -0
- package/dist/pathModel.test.d.ts +2 -0
- package/dist/pathModel.test.d.ts.map +1 -0
- package/dist/pathModel.test.js +394 -0
- package/dist/pathPresets.d.ts +38 -0
- package/dist/pathPresets.d.ts.map +1 -0
- package/dist/pathPresets.js +180 -0
- package/dist/pathPresets.test.d.ts +2 -0
- package/dist/pathPresets.test.d.ts.map +1 -0
- package/dist/pathPresets.test.js +154 -0
- package/dist/pathRegistry.d.ts +46 -0
- package/dist/pathRegistry.d.ts.map +1 -0
- package/dist/pathRegistry.js +105 -0
- package/dist/pathRegistry.test.d.ts +2 -0
- package/dist/pathRegistry.test.d.ts.map +1 -0
- package/dist/pathRegistry.test.js +23 -0
- package/dist/pickerRegistry.d.ts +49 -0
- package/dist/pickerRegistry.d.ts.map +1 -0
- package/dist/pickerRegistry.js +17 -0
- package/dist/pickerRegistry.test.d.ts +2 -0
- package/dist/pickerRegistry.test.d.ts.map +1 -0
- package/dist/pickerRegistry.test.js +31 -0
- package/dist/pipLayout.d.ts +7 -0
- package/dist/pipLayout.d.ts.map +1 -0
- package/dist/pipLayout.js +58 -0
- package/dist/placementKey.test.d.ts +2 -0
- package/dist/placementKey.test.d.ts.map +1 -0
- package/dist/placementKey.test.js +32 -0
- package/dist/placementPoseProps.d.ts +29 -0
- package/dist/placementPoseProps.d.ts.map +1 -0
- package/dist/placementPoseProps.js +43 -0
- package/dist/placementPoseProps.test.d.ts +2 -0
- package/dist/placementPoseProps.test.d.ts.map +1 -0
- package/dist/placementPoseProps.test.js +35 -0
- package/dist/poseMode/PoseModeBar.d.ts +18 -0
- package/dist/poseMode/PoseModeBar.d.ts.map +1 -0
- package/dist/poseMode/PoseModeBar.js +127 -0
- package/dist/poseMode/PoseModeRig.d.ts +9 -0
- package/dist/poseMode/PoseModeRig.d.ts.map +1 -0
- package/dist/poseMode/PoseModeRig.js +300 -0
- package/dist/poseMode/PosePickerFrame.d.ts +42 -0
- package/dist/poseMode/PosePickerFrame.d.ts.map +1 -0
- package/dist/poseMode/PosePickerFrame.js +164 -0
- package/dist/poseMode/PosePropEditor.d.ts +30 -0
- package/dist/poseMode/PosePropEditor.d.ts.map +1 -0
- package/dist/poseMode/PosePropEditor.js +139 -0
- package/dist/poseMode/controlSpec.d.ts +26 -0
- package/dist/poseMode/controlSpec.d.ts.map +1 -0
- package/dist/poseMode/controlSpec.js +157 -0
- package/dist/poseMode/controlSpec.test.d.ts +2 -0
- package/dist/poseMode/controlSpec.test.d.ts.map +1 -0
- package/dist/poseMode/controlSpec.test.js +196 -0
- package/dist/poseMode/dragState.d.ts +16 -0
- package/dist/poseMode/dragState.d.ts.map +1 -0
- package/dist/poseMode/dragState.js +15 -0
- package/dist/poseMode/dragState.test.d.ts +2 -0
- package/dist/poseMode/dragState.test.d.ts.map +1 -0
- package/dist/poseMode/dragState.test.js +23 -0
- package/dist/poseMode/poseDisplayText.d.ts +18 -0
- package/dist/poseMode/poseDisplayText.d.ts.map +1 -0
- package/dist/poseMode/poseDisplayText.js +13 -0
- package/dist/poseMode/poseDisplayText.test.d.ts +2 -0
- package/dist/poseMode/poseDisplayText.test.d.ts.map +1 -0
- package/dist/poseMode/poseDisplayText.test.js +35 -0
- package/dist/poseMode/poseExitGuard.d.ts +8 -0
- package/dist/poseMode/poseExitGuard.d.ts.map +1 -0
- package/dist/poseMode/poseExitGuard.js +13 -0
- package/dist/poseMode/poseExitGuard.test.d.ts +2 -0
- package/dist/poseMode/poseExitGuard.test.d.ts.map +1 -0
- package/dist/poseMode/poseExitGuard.test.js +41 -0
- package/dist/poseMode/poseFrame.d.ts +11 -0
- package/dist/poseMode/poseFrame.d.ts.map +1 -0
- package/dist/poseMode/poseFrame.js +7 -0
- package/dist/poseMode/poseFrame.test.d.ts +2 -0
- package/dist/poseMode/poseFrame.test.d.ts.map +1 -0
- package/dist/poseMode/poseFrame.test.js +25 -0
- package/dist/poseMode/poseInterpolate.d.ts +4 -0
- package/dist/poseMode/poseInterpolate.d.ts.map +1 -0
- package/dist/poseMode/poseInterpolate.js +75 -0
- package/dist/poseMode/poseInterpolate.test.d.ts +2 -0
- package/dist/poseMode/poseInterpolate.test.d.ts.map +1 -0
- package/dist/poseMode/poseInterpolate.test.js +61 -0
- package/dist/poseMode/poseLibResolve.d.ts +9 -0
- package/dist/poseMode/poseLibResolve.d.ts.map +1 -0
- package/dist/poseMode/poseLibResolve.js +49 -0
- package/dist/poseMode/poseLibResolve.test.d.ts +2 -0
- package/dist/poseMode/poseLibResolve.test.d.ts.map +1 -0
- package/dist/poseMode/poseLibResolve.test.js +59 -0
- package/dist/poseMode/poseMigration.d.ts +5 -0
- package/dist/poseMode/poseMigration.d.ts.map +1 -0
- package/dist/poseMode/poseMigration.js +16 -0
- package/dist/poseMode/poseMigration.test.d.ts +2 -0
- package/dist/poseMode/poseMigration.test.d.ts.map +1 -0
- package/dist/poseMode/poseMigration.test.js +25 -0
- package/dist/poseMode/poseOptions.d.ts +45 -0
- package/dist/poseMode/poseOptions.d.ts.map +1 -0
- package/dist/poseMode/poseOptions.js +39 -0
- package/dist/poseMode/poseOptions.test.d.ts +2 -0
- package/dist/poseMode/poseOptions.test.d.ts.map +1 -0
- package/dist/poseMode/poseOptions.test.js +83 -0
- package/dist/poseMode/poseOverride.d.ts +13 -0
- package/dist/poseMode/poseOverride.d.ts.map +1 -0
- package/dist/poseMode/poseOverride.js +26 -0
- package/dist/poseMode/poseOverride.test.d.ts +2 -0
- package/dist/poseMode/poseOverride.test.d.ts.map +1 -0
- package/dist/poseMode/poseOverride.test.js +23 -0
- package/dist/poseMode/poseRetarget.d.ts +17 -0
- package/dist/poseMode/poseRetarget.d.ts.map +1 -0
- package/dist/poseMode/poseRetarget.js +53 -0
- package/dist/poseMode/poseRetarget.test.d.ts +2 -0
- package/dist/poseMode/poseRetarget.test.d.ts.map +1 -0
- package/dist/poseMode/poseRetarget.test.js +88 -0
- package/dist/poseMode/poseSession.d.ts +58 -0
- package/dist/poseMode/poseSession.d.ts.map +1 -0
- package/dist/poseMode/poseSession.js +183 -0
- package/dist/poseMode/poseSession.test.d.ts +2 -0
- package/dist/poseMode/poseSession.test.d.ts.map +1 -0
- package/dist/poseMode/poseSession.test.js +159 -0
- package/dist/poseMode/poseSessionHooks.test.d.ts +2 -0
- package/dist/poseMode/poseSessionHooks.test.d.ts.map +1 -0
- package/dist/poseMode/poseSessionHooks.test.js +49 -0
- package/dist/poseMode/poseTrack.d.ts +30 -0
- package/dist/poseMode/poseTrack.d.ts.map +1 -0
- package/dist/poseMode/poseTrack.js +155 -0
- package/dist/poseMode/poseTrack.test.d.ts +2 -0
- package/dist/poseMode/poseTrack.test.d.ts.map +1 -0
- package/dist/poseMode/poseTrack.test.js +84 -0
- package/dist/poseMode/poseValue.d.ts +22 -0
- package/dist/poseMode/poseValue.d.ts.map +1 -0
- package/dist/poseMode/poseValue.js +73 -0
- package/dist/poseMode/poseValue.test.d.ts +2 -0
- package/dist/poseMode/poseValue.test.d.ts.map +1 -0
- package/dist/poseMode/poseValue.test.js +62 -0
- package/dist/poseMode/savePose.d.ts +23 -0
- package/dist/poseMode/savePose.d.ts.map +1 -0
- package/dist/poseMode/savePose.js +29 -0
- package/dist/poseMode/selectionModes.d.ts +14 -0
- package/dist/poseMode/selectionModes.d.ts.map +1 -0
- package/dist/poseMode/selectionModes.js +39 -0
- package/dist/poseMode/selectionModes.test.d.ts +2 -0
- package/dist/poseMode/selectionModes.test.d.ts.map +1 -0
- package/dist/poseMode/selectionModes.test.js +91 -0
- package/dist/poseNameMessages.d.ts +13 -0
- package/dist/poseNameMessages.d.ts.map +1 -0
- package/dist/poseNameMessages.js +370 -0
- package/dist/poseNames.d.ts +14 -0
- package/dist/poseNames.d.ts.map +1 -0
- package/dist/poseNames.js +21 -0
- package/dist/poseNames.test.d.ts +2 -0
- package/dist/poseNames.test.d.ts.map +1 -0
- package/dist/poseNames.test.js +41 -0
- package/dist/poseStatusText.d.ts +2 -0
- package/dist/poseStatusText.d.ts.map +1 -0
- package/dist/poseStatusText.js +11 -0
- package/dist/poseStatusText.test.d.ts +2 -0
- package/dist/poseStatusText.test.d.ts.map +1 -0
- package/dist/poseStatusText.test.js +21 -0
- package/dist/presetThumbGeometry.d.ts +26 -0
- package/dist/presetThumbGeometry.d.ts.map +1 -0
- package/dist/presetThumbGeometry.js +103 -0
- package/dist/presetThumbGeometry.test.d.ts +2 -0
- package/dist/presetThumbGeometry.test.d.ts.map +1 -0
- package/dist/presetThumbGeometry.test.js +83 -0
- package/dist/selectionOutline.d.ts +42 -0
- package/dist/selectionOutline.d.ts.map +1 -0
- package/dist/selectionOutline.js +174 -0
- package/dist/selectionOutline.test.d.ts +2 -0
- package/dist/selectionOutline.test.d.ts.map +1 -0
- package/dist/selectionOutline.test.js +58 -0
- package/dist/smoke.test.d.ts +1 -0
- package/dist/smoke.test.d.ts.map +1 -0
- package/dist/smoke.test.js +17 -0
- package/dist/uiConfig.d.ts +16 -0
- package/dist/uiConfig.d.ts.map +1 -0
- package/dist/uiConfig.js +13 -0
- package/dist/uiConfig.test.d.ts +2 -0
- package/dist/uiConfig.test.d.ts.map +1 -0
- package/dist/uiConfig.test.js +98 -0
- package/dist/undoShortcuts.d.ts +28 -0
- package/dist/undoShortcuts.d.ts.map +1 -0
- package/dist/undoShortcuts.js +59 -0
- package/dist/undoShortcuts.test.d.ts +2 -0
- package/dist/undoShortcuts.test.d.ts.map +1 -0
- package/dist/undoShortcuts.test.js +37 -0
- package/dist/useCameraStudio.d.ts +3 -0
- package/dist/useCameraStudio.d.ts.map +1 -0
- package/dist/useCameraStudio.js +86 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +11 -0
- package/dist/videoExport/BlobCollectSink.d.ts +25 -0
- package/dist/videoExport/BlobCollectSink.d.ts.map +1 -0
- package/dist/videoExport/BlobCollectSink.js +56 -0
- package/dist/videoExport/BlobCollectSink.test.d.ts +2 -0
- package/dist/videoExport/BlobCollectSink.test.d.ts.map +1 -0
- package/dist/videoExport/BlobCollectSink.test.js +78 -0
- package/dist/videoExport/encoder.d.ts +34 -0
- package/dist/videoExport/encoder.d.ts.map +1 -0
- package/dist/videoExport/encoder.js +61 -0
- package/dist/videoExport/encoder.test.d.ts +2 -0
- package/dist/videoExport/encoder.test.d.ts.map +1 -0
- package/dist/videoExport/encoder.test.js +21 -0
- package/dist/videoExport/exporter.d.ts +24 -0
- package/dist/videoExport/exporter.d.ts.map +1 -0
- package/dist/videoExport/exporter.js +74 -0
- package/dist/videoExport/sinks.d.ts +55 -0
- package/dist/videoExport/sinks.d.ts.map +1 -0
- package/dist/videoExport/sinks.js +69 -0
- package/package.json +59 -3
- package/README.md +0 -3
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* exports.startVideo(2026-10-17,Task 13):视频导出任务命令。
|
|
3
|
+
*
|
|
4
|
+
* 布景:真实 core project/sheet + 真实 exportRuntime 控制器(假 React
|
|
5
|
+
* 会话态 getter/setter),startShotExport 走 doMock 晚绑定假实现
|
|
6
|
+
* (jest-esbuild 不提升 jest.mock);node 环境。
|
|
7
|
+
*
|
|
8
|
+
* 契约要点:
|
|
9
|
+
* - job/session、undoable:none、cancelable:true、completion:loaded;
|
|
10
|
+
* - 返回 {jobId};handle.done 是任务成功的唯一权威(句柄返回 ≠ 成功);
|
|
11
|
+
* - 进度随 sequence position 更新;done resolve 后结果为 BlobCollectSink
|
|
12
|
+
* 收集的 VideoExportResult{blob,fileName,mimeType,size};
|
|
13
|
+
* - jobs.cancel → handle.abort + sink.abort,任务置 cancelled(终态不被
|
|
14
|
+
* 迟到的 settle 覆盖)并恢复 ShotView;
|
|
15
|
+
* - 无活动相机/正在导出 → INVALID_STATE;MediaRecorder 不可用(句柄
|
|
16
|
+
* 返回 undefined)→ 任务 failed/CAPABILITY_UNAVAILABLE;
|
|
17
|
+
* - cameraId 类型不符 → INVALID_ID_KIND;相机不存在 → OBJECT_NOT_FOUND;
|
|
18
|
+
* - 控制器未注册 → SCENE_UNAVAILABLE;场景 dispose → 先 abort、恢复视图、
|
|
19
|
+
* 拒绝未完成任务(API_DISPOSED);
|
|
20
|
+
* - jobResultSchema 描述 HTTP FileDescriptor(fileId),JS 结果是 Blob,
|
|
21
|
+
* 不做 JSON 序列化。
|
|
22
|
+
*/
|
|
23
|
+
import { getProject, val } from '@dreamerbird/core';
|
|
24
|
+
import { AgentApiError } from '../errors';
|
|
25
|
+
/** 晚绑定:doMock 工厂只登记一次,各用例在 setup 里换实现 */
|
|
26
|
+
let activeStartShotExport;
|
|
27
|
+
jest.doMock('../../videoExport/exporter', () => ({
|
|
28
|
+
__esModule: true,
|
|
29
|
+
startShotExport: (...args) => activeStartShotExport(...args),
|
|
30
|
+
}));
|
|
31
|
+
let recording;
|
|
32
|
+
/** 假 startShotExport:返回可控 {done,abort,finishEarly};abort 对齐真实行为(sink.abort + done resolve) */
|
|
33
|
+
function stubExporterAvailable() {
|
|
34
|
+
activeStartShotExport = jest.fn((args) => {
|
|
35
|
+
const { sink } = args;
|
|
36
|
+
let resolveDone;
|
|
37
|
+
let rejectDone;
|
|
38
|
+
const done = new Promise((res, rej) => {
|
|
39
|
+
resolveDone = res;
|
|
40
|
+
rejectDone = rej;
|
|
41
|
+
});
|
|
42
|
+
const handle = {
|
|
43
|
+
done,
|
|
44
|
+
abort: jest.fn(() => {
|
|
45
|
+
void sink.abort();
|
|
46
|
+
resolveDone();
|
|
47
|
+
}),
|
|
48
|
+
finishEarly: jest.fn(),
|
|
49
|
+
};
|
|
50
|
+
recording = {
|
|
51
|
+
args: args,
|
|
52
|
+
handle,
|
|
53
|
+
resolveDone,
|
|
54
|
+
rejectDone,
|
|
55
|
+
recordChunks: async (chunks) => {
|
|
56
|
+
await sink.start({
|
|
57
|
+
mimeType: 'video/webm',
|
|
58
|
+
suggestedName: '镜头-test.webm',
|
|
59
|
+
});
|
|
60
|
+
for (const chunk of chunks)
|
|
61
|
+
await sink.write(chunk);
|
|
62
|
+
await sink.finish();
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
return handle;
|
|
66
|
+
});
|
|
67
|
+
return activeStartShotExport;
|
|
68
|
+
}
|
|
69
|
+
/** 编码器不可用:真实 startShotExport 此时返回 undefined 并经 onError 提示 */
|
|
70
|
+
function stubExporterUnavailable() {
|
|
71
|
+
activeStartShotExport = jest.fn((args) => {
|
|
72
|
+
args.onError?.('当前浏览器不支持视频录制(MediaRecorder 无可用格式)');
|
|
73
|
+
return undefined;
|
|
74
|
+
});
|
|
75
|
+
return activeStartShotExport;
|
|
76
|
+
}
|
|
77
|
+
const cleanups = [];
|
|
78
|
+
afterEach(() => {
|
|
79
|
+
while (cleanups.length)
|
|
80
|
+
cleanups.pop()();
|
|
81
|
+
activeStartShotExport = undefined;
|
|
82
|
+
recording = undefined;
|
|
83
|
+
});
|
|
84
|
+
const ctx = () => ({
|
|
85
|
+
requestId: 'test',
|
|
86
|
+
signal: new AbortController().signal,
|
|
87
|
+
});
|
|
88
|
+
const tick = () => new Promise((resolve) => setTimeout(resolve, 0));
|
|
89
|
+
let projectSeq = 0;
|
|
90
|
+
function loadModules() {
|
|
91
|
+
return {
|
|
92
|
+
AgentCommandRegistry: require('../registry').AgentCommandRegistry,
|
|
93
|
+
createAgentRuntime: require('../runtime').createAgentRuntime,
|
|
94
|
+
registerExportCommands: require('./exports').registerExportCommands,
|
|
95
|
+
registerJobCommands: require('./jobs').registerJobCommands,
|
|
96
|
+
createSceneExportController: require('../runtime/exportRuntime')
|
|
97
|
+
.createSceneExportController,
|
|
98
|
+
registerSceneExportController: require('../runtime/exportRuntime')
|
|
99
|
+
.registerSceneExportController,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function makeScene({ withController = true } = {}) {
|
|
103
|
+
const m = loadModules();
|
|
104
|
+
const project = getProject(`agent-exports-${++projectSeq}`);
|
|
105
|
+
const sheet = project.sheet('Scene');
|
|
106
|
+
const runtime = m.createAgentRuntime({
|
|
107
|
+
project,
|
|
108
|
+
sheet,
|
|
109
|
+
library: {},
|
|
110
|
+
getStudio: () => undefined,
|
|
111
|
+
subscribeHistoric: () => () => { },
|
|
112
|
+
});
|
|
113
|
+
const registry = new m.AgentCommandRegistry();
|
|
114
|
+
m.registerExportCommands(registry, runtime);
|
|
115
|
+
m.registerJobCommands(registry, runtime);
|
|
116
|
+
const scene = {
|
|
117
|
+
cameras: ['Cam 1', 'Cam 2'],
|
|
118
|
+
activeCameraKey: 'Cam 1',
|
|
119
|
+
shotView: false,
|
|
120
|
+
exporting: false,
|
|
121
|
+
handle: null,
|
|
122
|
+
lockedCamera: null,
|
|
123
|
+
canvas: {},
|
|
124
|
+
};
|
|
125
|
+
const controller = m.createSceneExportController({
|
|
126
|
+
sheet,
|
|
127
|
+
getActiveCameraKey: () => scene.activeCameraKey,
|
|
128
|
+
hasCamera: (key) => scene.cameras.includes(key),
|
|
129
|
+
setActiveCamera: (key) => {
|
|
130
|
+
scene.activeCameraKey = key;
|
|
131
|
+
},
|
|
132
|
+
isExporting: () => scene.exporting,
|
|
133
|
+
getShotView: () => scene.shotView,
|
|
134
|
+
setShotView: (on) => {
|
|
135
|
+
scene.shotView = on;
|
|
136
|
+
},
|
|
137
|
+
// 页面上只有一个 canvas(快照编辑器的在 shadow DOM 里)
|
|
138
|
+
getCanvas: () => scene.canvas,
|
|
139
|
+
setExporting: (on) => {
|
|
140
|
+
scene.exporting = on;
|
|
141
|
+
},
|
|
142
|
+
setActiveHandle: (handle) => {
|
|
143
|
+
scene.handle = handle;
|
|
144
|
+
},
|
|
145
|
+
lockExportCamera: (key) => {
|
|
146
|
+
scene.lockedCamera = key;
|
|
147
|
+
},
|
|
148
|
+
});
|
|
149
|
+
if (withController) {
|
|
150
|
+
cleanups.push(m.registerSceneExportController(controller));
|
|
151
|
+
}
|
|
152
|
+
cleanups.push(() => controller.dispose(), () => runtime.dispose());
|
|
153
|
+
return { registry, runtime, controller, scene, sheet };
|
|
154
|
+
}
|
|
155
|
+
/** 轮询任务到终态(job manager 的 done 不经命令暴露,测试读快照) */
|
|
156
|
+
async function settleJob(runtime, jobId) {
|
|
157
|
+
for (let i = 0; i < 50; i++) {
|
|
158
|
+
const snapshot = runtime.jobs.get(jobId);
|
|
159
|
+
if (['succeeded', 'failed', 'cancelled'].includes(snapshot.state)) {
|
|
160
|
+
return snapshot;
|
|
161
|
+
}
|
|
162
|
+
await tick();
|
|
163
|
+
}
|
|
164
|
+
return runtime.jobs.get(jobId);
|
|
165
|
+
}
|
|
166
|
+
async function startVideo(registry, args = {}) {
|
|
167
|
+
return (await registry.execute('exports.startVideo', args, ctx()));
|
|
168
|
+
}
|
|
169
|
+
// ── 注册与元数据 ───────────────────────────────────────────────
|
|
170
|
+
test('exports.startVideo 元数据:job/session、undoable:none、cancelable、completion:loaded', () => {
|
|
171
|
+
const { registry } = makeScene();
|
|
172
|
+
expect(registry.has('exports.startVideo')).toBe(true);
|
|
173
|
+
const described = new Map(registry.describe().commands.map((c) => [c.name, c]));
|
|
174
|
+
const command = described.get('exports.startVideo');
|
|
175
|
+
expect(command).toMatchObject({
|
|
176
|
+
kind: 'job',
|
|
177
|
+
stateDomain: 'session',
|
|
178
|
+
undoable: 'none',
|
|
179
|
+
completion: 'loaded',
|
|
180
|
+
cancelable: true,
|
|
181
|
+
acceptsExpectedRevision: false,
|
|
182
|
+
});
|
|
183
|
+
// 二进制契约:jobResultSchema 描述 HTTP FileDescriptor;JS 结果是 Blob,不 JSON 序列化
|
|
184
|
+
expect(command.jobResultSchema.required).toEqual(expect.arrayContaining(['fileId', 'fileName', 'mimeType', 'size']));
|
|
185
|
+
});
|
|
186
|
+
// ── 成功路径 ───────────────────────────────────────────────────
|
|
187
|
+
test('导出成功:返回 jobId,done 是唯一权威,结果为 BlobCollectSink 收集的文件,视角恢复', async () => {
|
|
188
|
+
const { registry, runtime, controller, scene } = makeScene();
|
|
189
|
+
const startShotExport = stubExporterAvailable();
|
|
190
|
+
const { jobId } = await startVideo(registry);
|
|
191
|
+
expect(runtime.jobs.get(jobId)).toMatchObject({
|
|
192
|
+
kind: 'exports.startVideo',
|
|
193
|
+
state: 'running',
|
|
194
|
+
progress: 0,
|
|
195
|
+
phase: 'accepted',
|
|
196
|
+
cancelable: true,
|
|
197
|
+
});
|
|
198
|
+
// 视角未生效前不开录;已请求切到镜头视角
|
|
199
|
+
expect(startShotExport).not.toHaveBeenCalled();
|
|
200
|
+
expect(scene.shotView).toBe(true);
|
|
201
|
+
// 模拟 React 副作用:ShotView 生效,开录
|
|
202
|
+
controller.notifySceneReady();
|
|
203
|
+
expect(startShotExport).toHaveBeenCalledTimes(1);
|
|
204
|
+
expect(scene.exporting).toBe(true);
|
|
205
|
+
expect(scene.lockedCamera).toBe('Cam 1');
|
|
206
|
+
// handle.done 是任务成功的唯一权威:句柄已返回 ≠ 成功
|
|
207
|
+
expect(runtime.jobs.get(jobId).state).toBe('running');
|
|
208
|
+
await recording.recordChunks([
|
|
209
|
+
new Uint8Array([1, 2, 3]),
|
|
210
|
+
new Uint8Array([4, 5]),
|
|
211
|
+
]);
|
|
212
|
+
recording.resolveDone();
|
|
213
|
+
const snapshot = await settleJob(runtime, jobId);
|
|
214
|
+
expect(snapshot.state).toBe('succeeded');
|
|
215
|
+
expect(snapshot.phase).toBe('loaded');
|
|
216
|
+
expect(snapshot.progress).toBe(1);
|
|
217
|
+
const result = snapshot.result;
|
|
218
|
+
expect(result.fileName).toBe('镜头-test.webm');
|
|
219
|
+
expect(result.mimeType).toBe('video/webm');
|
|
220
|
+
expect(result.size).toBe(5);
|
|
221
|
+
expect([...new Uint8Array(await result.blob.arrayBuffer())]).toEqual([
|
|
222
|
+
1, 2, 3, 4, 5,
|
|
223
|
+
]);
|
|
224
|
+
// 收尾:恢复导出前视角、清导出态与句柄
|
|
225
|
+
expect(scene.shotView).toBe(false);
|
|
226
|
+
expect(scene.exporting).toBe(false);
|
|
227
|
+
expect(scene.handle).toBe(null);
|
|
228
|
+
expect(scene.lockedCamera).toBe(null);
|
|
229
|
+
});
|
|
230
|
+
test('进度随 sequence position 更新', async () => {
|
|
231
|
+
const { registry, runtime, controller, sheet } = makeScene();
|
|
232
|
+
stubExporterAvailable();
|
|
233
|
+
const { jobId } = await startVideo(registry);
|
|
234
|
+
controller.notifySceneReady();
|
|
235
|
+
const length = val(sheet.sequence.pointer.length);
|
|
236
|
+
sheet.sequence.position = length / 2;
|
|
237
|
+
await tick();
|
|
238
|
+
expect(runtime.jobs.get(jobId).progress).toBeCloseTo(0.5);
|
|
239
|
+
expect(runtime.jobs.get(jobId).state).toBe('running');
|
|
240
|
+
await recording.recordChunks([new Uint8Array([1])]);
|
|
241
|
+
recording.resolveDone();
|
|
242
|
+
const snapshot = await settleJob(runtime, jobId);
|
|
243
|
+
expect(snapshot.state).toBe('succeeded');
|
|
244
|
+
});
|
|
245
|
+
test('指定 cameraId:先激活该相机再开录', async () => {
|
|
246
|
+
const { registry, runtime, controller, scene } = makeScene();
|
|
247
|
+
stubExporterAvailable();
|
|
248
|
+
const { jobId } = await startVideo(registry, { cameraId: 'camera:Cam 2' });
|
|
249
|
+
expect(scene.activeCameraKey).toBe('Cam 2');
|
|
250
|
+
controller.notifySceneReady();
|
|
251
|
+
expect(scene.lockedCamera).toBe('Cam 2');
|
|
252
|
+
await recording.recordChunks([new Uint8Array([1])]);
|
|
253
|
+
recording.resolveDone();
|
|
254
|
+
expect((await settleJob(runtime, jobId)).state).toBe('succeeded');
|
|
255
|
+
});
|
|
256
|
+
test('shotView 已开启且相机无需切换:立即开录,完成后保持镜头视角', async () => {
|
|
257
|
+
const { registry, runtime, scene } = makeScene();
|
|
258
|
+
const startShotExport = stubExporterAvailable();
|
|
259
|
+
scene.shotView = true;
|
|
260
|
+
const { jobId } = await startVideo(registry);
|
|
261
|
+
expect(startShotExport).toHaveBeenCalledTimes(1);
|
|
262
|
+
await recording.recordChunks([new Uint8Array([1])]);
|
|
263
|
+
recording.resolveDone();
|
|
264
|
+
expect((await settleJob(runtime, jobId)).state).toBe('succeeded');
|
|
265
|
+
// 导出前就在镜头视角:恢复到 true(不退出)
|
|
266
|
+
expect(scene.shotView).toBe(true);
|
|
267
|
+
});
|
|
268
|
+
// ── 取消 ───────────────────────────────────────────────────────
|
|
269
|
+
test('jobs.cancel:handle.abort + sink.abort,任务置 cancelled 且不被迟到 settle 覆盖,视角恢复', async () => {
|
|
270
|
+
const { registry, runtime, controller, scene } = makeScene();
|
|
271
|
+
stubExporterAvailable();
|
|
272
|
+
const { jobId } = await startVideo(registry);
|
|
273
|
+
controller.notifySceneReady();
|
|
274
|
+
await recording.recordChunks([new Uint8Array([1, 2])]);
|
|
275
|
+
const cancelled = (await registry.execute('jobs.cancel', { jobId }, ctx()));
|
|
276
|
+
expect(cancelled.state).toBe('cancelled');
|
|
277
|
+
expect(recording.handle.abort).toHaveBeenCalledTimes(1);
|
|
278
|
+
// sink 已 abort:blob() 抛 INVALID_STATE
|
|
279
|
+
const sink = recording.args.sink;
|
|
280
|
+
expect(() => sink.blob()).toThrow();
|
|
281
|
+
// abort 后 done resolve 是迟到的 settle:终态 cancelled 不被覆盖
|
|
282
|
+
const snapshot = await settleJob(runtime, jobId);
|
|
283
|
+
expect(snapshot.state).toBe('cancelled');
|
|
284
|
+
expect(scene.shotView).toBe(false);
|
|
285
|
+
expect(scene.exporting).toBe(false);
|
|
286
|
+
});
|
|
287
|
+
test('用户侧中止(Esc/开录相机被删,signal 未 abort):任务置 cancelled 并带 JOB_CANCELLED,非 failed/INVALID_STATE', async () => {
|
|
288
|
+
const { registry, runtime, controller, scene } = makeScene();
|
|
289
|
+
stubExporterAvailable();
|
|
290
|
+
const { jobId } = await startVideo(registry);
|
|
291
|
+
controller.notifySceneReady();
|
|
292
|
+
await recording.recordChunks([new Uint8Array([1, 2])]);
|
|
293
|
+
// 模拟 Esc/相机删除:场景直调 handle.abort(signal 不经过 jobs.cancel);
|
|
294
|
+
// 假实现对齐真实 exporter:abort 丢弃内容(sink.abort)后 done resolve
|
|
295
|
+
recording.handle.abort();
|
|
296
|
+
const snapshot = await settleJob(runtime, jobId);
|
|
297
|
+
// 轮询任务的 Agent 必须能区分"被用户中止"与真失败
|
|
298
|
+
expect(snapshot.state).toBe('cancelled');
|
|
299
|
+
expect(snapshot.error.code).toBe('JOB_CANCELLED');
|
|
300
|
+
expect(scene.shotView).toBe(false);
|
|
301
|
+
expect(scene.exporting).toBe(false);
|
|
302
|
+
});
|
|
303
|
+
// ── 前置校验失败(任务启动前拒绝命令) ──────────────────────────
|
|
304
|
+
test('无活动相机 → INVALID_STATE,不起任务', async () => {
|
|
305
|
+
const { registry, scene } = makeScene();
|
|
306
|
+
stubExporterAvailable();
|
|
307
|
+
scene.cameras = [];
|
|
308
|
+
scene.activeCameraKey = null;
|
|
309
|
+
await expect(startVideo(registry)).rejects.toMatchObject({
|
|
310
|
+
code: 'INVALID_STATE',
|
|
311
|
+
});
|
|
312
|
+
expect(activeStartShotExport).not.toHaveBeenCalled();
|
|
313
|
+
});
|
|
314
|
+
test('已有导出进行中 → INVALID_STATE', async () => {
|
|
315
|
+
const { registry, runtime, controller } = makeScene();
|
|
316
|
+
stubExporterAvailable();
|
|
317
|
+
const { jobId } = await startVideo(registry);
|
|
318
|
+
controller.notifySceneReady();
|
|
319
|
+
await expect(startVideo(registry)).rejects.toMatchObject({
|
|
320
|
+
code: 'INVALID_STATE',
|
|
321
|
+
});
|
|
322
|
+
await recording.recordChunks([new Uint8Array([1])]);
|
|
323
|
+
recording.resolveDone();
|
|
324
|
+
expect((await settleJob(runtime, jobId)).state).toBe('succeeded');
|
|
325
|
+
});
|
|
326
|
+
test('cameraId 类型不符 → INVALID_ID_KIND;相机不存在 → OBJECT_NOT_FOUND', async () => {
|
|
327
|
+
const { registry } = makeScene();
|
|
328
|
+
stubExporterAvailable();
|
|
329
|
+
await expect(startVideo(registry, { cameraId: 'model:Y Bot' })).rejects.toMatchObject({ code: 'INVALID_ID_KIND' });
|
|
330
|
+
await expect(startVideo(registry, { cameraId: 'camera:Nope' })).rejects.toMatchObject({ code: 'OBJECT_NOT_FOUND' });
|
|
331
|
+
expect(activeStartShotExport).not.toHaveBeenCalled();
|
|
332
|
+
});
|
|
333
|
+
test('cameraId 非法参数 → INVALID_ARGUMENT', async () => {
|
|
334
|
+
const { registry } = makeScene();
|
|
335
|
+
await expect(startVideo(registry, { cameraId: 123 })).rejects.toMatchObject({
|
|
336
|
+
code: 'INVALID_ARGUMENT',
|
|
337
|
+
});
|
|
338
|
+
await expect(startVideo(registry, { cameraId: '' })).rejects.toMatchObject({
|
|
339
|
+
code: 'INVALID_ARGUMENT',
|
|
340
|
+
});
|
|
341
|
+
});
|
|
342
|
+
test('导出控制器未注册 → SCENE_UNAVAILABLE', async () => {
|
|
343
|
+
const { registry } = makeScene({ withController: false });
|
|
344
|
+
await expect(startVideo(registry)).rejects.toMatchObject({
|
|
345
|
+
code: 'SCENE_UNAVAILABLE',
|
|
346
|
+
});
|
|
347
|
+
});
|
|
348
|
+
// ── 运行期失败与场景卸载 ───────────────────────────────────────
|
|
349
|
+
test('MediaRecorder 不可用(句柄 undefined)→ 任务 failed/CAPABILITY_UNAVAILABLE,视角恢复', async () => {
|
|
350
|
+
const { registry, runtime, controller, scene } = makeScene();
|
|
351
|
+
stubExporterUnavailable();
|
|
352
|
+
const { jobId } = await startVideo(registry);
|
|
353
|
+
controller.notifySceneReady();
|
|
354
|
+
const snapshot = await settleJob(runtime, jobId);
|
|
355
|
+
expect(snapshot.state).toBe('failed');
|
|
356
|
+
expect(snapshot.error.code).toBe('CAPABILITY_UNAVAILABLE');
|
|
357
|
+
expect(scene.shotView).toBe(false);
|
|
358
|
+
expect(scene.exporting).toBe(false);
|
|
359
|
+
});
|
|
360
|
+
test('录制中途失败 → 任务 failed,视角恢复', async () => {
|
|
361
|
+
const { registry, runtime, controller, scene } = makeScene();
|
|
362
|
+
stubExporterAvailable();
|
|
363
|
+
const { jobId } = await startVideo(registry);
|
|
364
|
+
controller.notifySceneReady();
|
|
365
|
+
recording.rejectDone(new Error('编码器炸了'));
|
|
366
|
+
const snapshot = await settleJob(runtime, jobId);
|
|
367
|
+
expect(snapshot.state).toBe('failed');
|
|
368
|
+
expect(snapshot.error.message).toContain('编码器炸了');
|
|
369
|
+
expect(scene.shotView).toBe(false);
|
|
370
|
+
expect(scene.exporting).toBe(false);
|
|
371
|
+
});
|
|
372
|
+
test('录制中途的结构化失败保留原错误码(INVALID_STATE 不被误归为取消)', async () => {
|
|
373
|
+
const { registry, runtime, controller } = makeScene();
|
|
374
|
+
stubExporterAvailable();
|
|
375
|
+
const { jobId } = await startVideo(registry);
|
|
376
|
+
controller.notifySceneReady();
|
|
377
|
+
// 真实路径示例:sink.write 拒绝(写盘失败)经 exporter 收尾后 done 拒绝
|
|
378
|
+
recording.rejectDone(new AgentApiError('INVALID_STATE', '写入失败'));
|
|
379
|
+
const snapshot = await settleJob(runtime, jobId);
|
|
380
|
+
expect(snapshot.state).toBe('failed');
|
|
381
|
+
expect(snapshot.error.code).toBe('INVALID_STATE');
|
|
382
|
+
});
|
|
383
|
+
test('场景 dispose:先 abort 在录任务,再恢复视图,最后拒绝未完成任务(API_DISPOSED)', async () => {
|
|
384
|
+
const { registry, runtime, controller, scene } = makeScene();
|
|
385
|
+
stubExporterAvailable();
|
|
386
|
+
const { jobId } = await startVideo(registry);
|
|
387
|
+
controller.notifySceneReady();
|
|
388
|
+
expect(scene.exporting).toBe(true);
|
|
389
|
+
controller.dispose();
|
|
390
|
+
expect(recording.handle.abort).toHaveBeenCalledTimes(1);
|
|
391
|
+
expect(scene.shotView).toBe(false);
|
|
392
|
+
const snapshot = await settleJob(runtime, jobId);
|
|
393
|
+
expect(snapshot.state).toBe('failed');
|
|
394
|
+
expect(snapshot.error.code).toBe('API_DISPOSED');
|
|
395
|
+
});
|
|
396
|
+
test('会话销毁后 exports.startVideo 返回 API_DISPOSED', async () => {
|
|
397
|
+
const { registry, runtime } = makeScene();
|
|
398
|
+
runtime.dispose();
|
|
399
|
+
await expect(startVideo(registry)).rejects.toMatchObject({
|
|
400
|
+
code: 'API_DISPOSED',
|
|
401
|
+
});
|
|
402
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AgentCommandRegistry } from '../registry';
|
|
2
|
+
import type { AgentRuntime } from '../runtime';
|
|
3
|
+
/** 历史门面(Task 15 由同名命令转发实现) */
|
|
4
|
+
export type HistoryApi = {
|
|
5
|
+
undo(args?: {
|
|
6
|
+
expectedRevision?: number;
|
|
7
|
+
}): Promise<{
|
|
8
|
+
revision: number;
|
|
9
|
+
}>;
|
|
10
|
+
redo(args?: {
|
|
11
|
+
expectedRevision?: number;
|
|
12
|
+
}): Promise<{
|
|
13
|
+
revision: number;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
export declare function registerHistoryCommands(registry: AgentCommandRegistry, runtime: AgentRuntime): void;
|
|
17
|
+
//# sourceMappingURL=history.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../src/agent/commands/history.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAA;AACrD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,YAAY,CAAA;AAI5C,8BAA8B;AAC9B,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,CAAC,IAAI,CAAC,EAAE;QAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAC,GAAG,OAAO,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC,CAAC,CAAA;IACrE,IAAI,CAAC,IAAI,CAAC,EAAE;QAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAC,GAAG,OAAO,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC,CAAC,CAAA;CACtE,CAAA;AA0CD,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,EAAE,YAAY,GACpB,IAAI,CAoDN"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* history 命令(2026-10-17,Task 6):undo/redo。
|
|
3
|
+
*
|
|
4
|
+
* 直接调用 Studio 真实 undo()/redo();revision 等一个 core tick 再读
|
|
5
|
+
* (F2 修复:historic 指针通知经 prism.onChange 排到 ticker 下一 tick,
|
|
6
|
+
* undo/redo 后同步读拿到的是操作前的值),绝不伪造 canUndo/canRedo,
|
|
7
|
+
* 也不把它们塞进结果。
|
|
8
|
+
* 历史恢复的是项目状态,但 undo 本身不再产生可撤销步骤:undoable:none。
|
|
9
|
+
* 写命令的 expectedRevision 乐观并发对 undo/redo 一致生效:revision 匹配
|
|
10
|
+
* 检查先于 Studio 调用,冲突时不产生任何副作用。
|
|
11
|
+
*/
|
|
12
|
+
import { AgentApiError } from '../errors';
|
|
13
|
+
import { requireFiniteNumber, requireObject } from '../validation';
|
|
14
|
+
const historyInput = {
|
|
15
|
+
type: 'object',
|
|
16
|
+
properties: {
|
|
17
|
+
expectedRevision: {
|
|
18
|
+
type: 'number',
|
|
19
|
+
description: '乐观并发:读取场景时的 revision',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
additionalProperties: false,
|
|
23
|
+
};
|
|
24
|
+
const revisionOutput = {
|
|
25
|
+
type: 'object',
|
|
26
|
+
properties: { revision: { type: 'number' } },
|
|
27
|
+
required: ['revision'],
|
|
28
|
+
};
|
|
29
|
+
/** 无参/可选 expectedRevision 命令的运行时校验:允许省略参数或空对象 */
|
|
30
|
+
function validateHistoryArgs(value) {
|
|
31
|
+
const args = value === undefined || value === null ? {} : requireObject(value);
|
|
32
|
+
let expectedRevision;
|
|
33
|
+
if (args.expectedRevision !== undefined) {
|
|
34
|
+
expectedRevision = requireFiniteNumber(args.expectedRevision, 'expectedRevision');
|
|
35
|
+
}
|
|
36
|
+
return { expectedRevision };
|
|
37
|
+
}
|
|
38
|
+
function requireStudio(runtime) {
|
|
39
|
+
const studio = runtime.getStudio();
|
|
40
|
+
if (!studio) {
|
|
41
|
+
throw new AgentApiError('SCENE_UNAVAILABLE', 'Studio 不可用');
|
|
42
|
+
}
|
|
43
|
+
return studio;
|
|
44
|
+
}
|
|
45
|
+
export function registerHistoryCommands(registry, runtime) {
|
|
46
|
+
registry.register({
|
|
47
|
+
name: 'history.undo',
|
|
48
|
+
kind: 'mutation',
|
|
49
|
+
stateDomain: 'project',
|
|
50
|
+
undoable: 'none',
|
|
51
|
+
completion: 'committed',
|
|
52
|
+
inputSchema: historyInput,
|
|
53
|
+
outputSchema: revisionOutput,
|
|
54
|
+
errorCodes: [
|
|
55
|
+
'API_DISPOSED',
|
|
56
|
+
'INVALID_ARGUMENT',
|
|
57
|
+
'REVISION_CONFLICT',
|
|
58
|
+
'SCENE_UNAVAILABLE',
|
|
59
|
+
],
|
|
60
|
+
validate: validateHistoryArgs,
|
|
61
|
+
execute: async (args) => {
|
|
62
|
+
runtime.assertActive();
|
|
63
|
+
// 乐观并发先于 Studio 调用;冲突时不产生任何副作用
|
|
64
|
+
if (args.expectedRevision !== undefined) {
|
|
65
|
+
runtime.assertRevision(args.expectedRevision);
|
|
66
|
+
}
|
|
67
|
+
requireStudio(runtime).undo();
|
|
68
|
+
// historic 通知 tick 调度:等一个 tick,返回 undo 后的真实 revision
|
|
69
|
+
return { revision: await runtime.nextRevision() };
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
registry.register({
|
|
73
|
+
name: 'history.redo',
|
|
74
|
+
kind: 'mutation',
|
|
75
|
+
stateDomain: 'project',
|
|
76
|
+
undoable: 'none',
|
|
77
|
+
completion: 'committed',
|
|
78
|
+
inputSchema: historyInput,
|
|
79
|
+
outputSchema: revisionOutput,
|
|
80
|
+
errorCodes: [
|
|
81
|
+
'API_DISPOSED',
|
|
82
|
+
'INVALID_ARGUMENT',
|
|
83
|
+
'REVISION_CONFLICT',
|
|
84
|
+
'SCENE_UNAVAILABLE',
|
|
85
|
+
],
|
|
86
|
+
validate: validateHistoryArgs,
|
|
87
|
+
execute: async (args) => {
|
|
88
|
+
runtime.assertActive();
|
|
89
|
+
if (args.expectedRevision !== undefined) {
|
|
90
|
+
runtime.assertRevision(args.expectedRevision);
|
|
91
|
+
}
|
|
92
|
+
requireStudio(runtime).redo();
|
|
93
|
+
return { revision: await runtime.nextRevision() };
|
|
94
|
+
},
|
|
95
|
+
});
|
|
96
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history.test.d.ts","sourceRoot":"","sources":["../../../src/agent/commands/history.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
let projectSeq = 0;
|
|
2
|
+
const cleanups = [];
|
|
3
|
+
afterEach(() => {
|
|
4
|
+
while (cleanups.length)
|
|
5
|
+
cleanups.pop()();
|
|
6
|
+
});
|
|
7
|
+
const ctx = () => ({
|
|
8
|
+
requestId: 'test',
|
|
9
|
+
signal: new AbortController().signal,
|
|
10
|
+
});
|
|
11
|
+
function setup() {
|
|
12
|
+
const core = require('@dreamerbird/core');
|
|
13
|
+
const { globals } = require('@dreamerbird/core/globals');
|
|
14
|
+
const { AgentCommandRegistry } = require('../registry');
|
|
15
|
+
const { createAgentRuntime } = require('../runtime');
|
|
16
|
+
const { registerHistoryCommands } = require('./history');
|
|
17
|
+
const project = core.getProject(`agent-history-${++projectSeq}`, {
|
|
18
|
+
state: {
|
|
19
|
+
definitionVersion: globals.currentProjectStateDefinitionVersion,
|
|
20
|
+
sheetsById: {},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
const sheet = project.sheet('Scene');
|
|
24
|
+
let notifyHistoric = () => { };
|
|
25
|
+
// undo/redo 内同步触发 historic 通知:与生产通知时序一致
|
|
26
|
+
const undoRedoStudio = {
|
|
27
|
+
undo: jest.fn(() => notifyHistoric()),
|
|
28
|
+
redo: jest.fn(() => notifyHistoric()),
|
|
29
|
+
};
|
|
30
|
+
let studioAvailable = true;
|
|
31
|
+
const runtime = createAgentRuntime({
|
|
32
|
+
project,
|
|
33
|
+
sheet,
|
|
34
|
+
library: {},
|
|
35
|
+
getStudio: () => (studioAvailable ? undoRedoStudio : undefined),
|
|
36
|
+
subscribeHistoric: (listener) => {
|
|
37
|
+
notifyHistoric = listener;
|
|
38
|
+
return () => { };
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
const registry = new AgentCommandRegistry();
|
|
42
|
+
registerHistoryCommands(registry, runtime);
|
|
43
|
+
return {
|
|
44
|
+
registry,
|
|
45
|
+
runtime,
|
|
46
|
+
undoRedoStudio,
|
|
47
|
+
setStudioAvailable: (available) => {
|
|
48
|
+
studioAvailable = available;
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
describe('history.undo', () => {
|
|
53
|
+
test('调用 studio.undo 并返回当前 revision', async () => {
|
|
54
|
+
const { registry, undoRedoStudio } = setup();
|
|
55
|
+
const result = await registry.execute('history.undo', {}, ctx());
|
|
56
|
+
expect(undoRedoStudio.undo).toHaveBeenCalledTimes(1);
|
|
57
|
+
expect(undoRedoStudio.redo).not.toHaveBeenCalled();
|
|
58
|
+
// 通知同步递增后返回实时 revision(1 → 2),不手工加一也不伪造
|
|
59
|
+
expect(result).toEqual({ revision: 2 });
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
describe('history.redo', () => {
|
|
63
|
+
test('调用 studio.redo 并返回当前 revision', async () => {
|
|
64
|
+
const { registry, undoRedoStudio } = setup();
|
|
65
|
+
const result = await registry.execute('history.redo', {}, ctx());
|
|
66
|
+
expect(undoRedoStudio.redo).toHaveBeenCalledTimes(1);
|
|
67
|
+
expect(undoRedoStudio.undo).not.toHaveBeenCalled();
|
|
68
|
+
expect(result).toEqual({ revision: 2 });
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
describe('history 可用性', () => {
|
|
72
|
+
test('结果不携带 canUndo/canRedo', async () => {
|
|
73
|
+
const { registry } = setup();
|
|
74
|
+
const undoResult = await registry.execute('history.undo', {}, ctx());
|
|
75
|
+
const redoResult = await registry.execute('history.redo', {}, ctx());
|
|
76
|
+
expect(Object.keys(undoResult)).toEqual(['revision']);
|
|
77
|
+
expect(Object.keys(redoResult)).toEqual(['revision']);
|
|
78
|
+
});
|
|
79
|
+
test('expectedRevision 匹配时正常执行并返回当前 revision', async () => {
|
|
80
|
+
const { registry, undoRedoStudio } = setup();
|
|
81
|
+
const undoResult = await registry.execute('history.undo', { expectedRevision: 1 }, ctx());
|
|
82
|
+
const redoResult = await registry.execute('history.redo', { expectedRevision: 2 }, ctx());
|
|
83
|
+
expect(undoRedoStudio.undo).toHaveBeenCalledTimes(1);
|
|
84
|
+
expect(undoRedoStudio.redo).toHaveBeenCalledTimes(1);
|
|
85
|
+
expect(undoResult).toEqual({ revision: 2 });
|
|
86
|
+
expect(redoResult).toEqual({ revision: 3 });
|
|
87
|
+
});
|
|
88
|
+
test('expectedRevision 冲突返回 REVISION_CONFLICT 且不调用 Studio', async () => {
|
|
89
|
+
const { registry, undoRedoStudio } = setup();
|
|
90
|
+
await expect(registry.execute('history.undo', { expectedRevision: 99 }, ctx())).rejects.toMatchObject({ code: 'REVISION_CONFLICT' });
|
|
91
|
+
await expect(registry.execute('history.redo', { expectedRevision: 99 }, ctx())).rejects.toMatchObject({ code: 'REVISION_CONFLICT' });
|
|
92
|
+
expect(undoRedoStudio.undo).not.toHaveBeenCalled();
|
|
93
|
+
expect(undoRedoStudio.redo).not.toHaveBeenCalled();
|
|
94
|
+
});
|
|
95
|
+
test('expectedRevision 非有限数返回 INVALID_ARGUMENT', async () => {
|
|
96
|
+
const { registry, undoRedoStudio } = setup();
|
|
97
|
+
for (const bad of [NaN, Infinity, '1']) {
|
|
98
|
+
await expect(registry.execute('history.undo', { expectedRevision: bad }, ctx())).rejects.toMatchObject({ code: 'INVALID_ARGUMENT' });
|
|
99
|
+
}
|
|
100
|
+
expect(undoRedoStudio.undo).not.toHaveBeenCalled();
|
|
101
|
+
});
|
|
102
|
+
test('describe 元数据声明接受 expectedRevision 且真实生效', () => {
|
|
103
|
+
const { registry } = setup();
|
|
104
|
+
for (const name of ['history.undo', 'history.redo']) {
|
|
105
|
+
const described = registry
|
|
106
|
+
.describe()
|
|
107
|
+
.commands.find((c) => c.name === name);
|
|
108
|
+
expect(described).toMatchObject({
|
|
109
|
+
acceptsExpectedRevision: true,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
test('Studio 不可用返回 SCENE_UNAVAILABLE', async () => {
|
|
114
|
+
const { registry, setStudioAvailable } = setup();
|
|
115
|
+
setStudioAvailable(false);
|
|
116
|
+
await expect(registry.execute('history.undo', {}, ctx())).rejects.toMatchObject({ code: 'SCENE_UNAVAILABLE' });
|
|
117
|
+
await expect(registry.execute('history.redo', {}, ctx())).rejects.toMatchObject({ code: 'SCENE_UNAVAILABLE' });
|
|
118
|
+
});
|
|
119
|
+
test('dispose 后命令拒绝 API_DISPOSED', async () => {
|
|
120
|
+
const { registry, runtime } = setup();
|
|
121
|
+
runtime.dispose();
|
|
122
|
+
await expect(registry.execute('history.undo', {}, ctx())).rejects.toMatchObject({ code: 'API_DISPOSED' });
|
|
123
|
+
});
|
|
124
|
+
test('命令注册且元数据为项目命令', () => {
|
|
125
|
+
const { registry } = setup();
|
|
126
|
+
for (const name of ['history.undo', 'history.redo']) {
|
|
127
|
+
expect(registry.has(name)).toBe(true);
|
|
128
|
+
const described = registry
|
|
129
|
+
.describe()
|
|
130
|
+
.commands.find((c) => c.name === name);
|
|
131
|
+
expect(described).toMatchObject({
|
|
132
|
+
kind: 'mutation',
|
|
133
|
+
stateDomain: 'project',
|
|
134
|
+
undoable: 'none',
|
|
135
|
+
completion: 'committed',
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
export {};
|