@clockgrove/assetgrove 0.0.0-stage → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +277 -2
- package/dist/animation/commands.d.ts +180 -0
- package/dist/animation/commands.js +515 -0
- package/dist/animation/facing.d.ts +44 -0
- package/dist/animation/facing.js +100 -0
- package/dist/animation/fix.d.ts +136 -0
- package/dist/animation/fix.js +529 -0
- package/dist/animation/flicker.d.ts +44 -0
- package/dist/animation/flicker.js +117 -0
- package/dist/animation/halo.d.ts +72 -0
- package/dist/animation/halo.js +253 -0
- package/dist/animation/holes.d.ts +122 -0
- package/dist/animation/holes.js +262 -0
- package/dist/animation/preview.d.ts +38 -0
- package/dist/animation/preview.js +161 -0
- package/dist/animation/qa.d.ts +57 -0
- package/dist/animation/qa.js +418 -0
- package/dist/animation/run.d.ts +109 -0
- package/dist/animation/run.js +182 -0
- package/dist/animation/strip.d.ts +13 -0
- package/dist/animation/strip.js +41 -0
- package/dist/animation/template-choice.d.ts +75 -0
- package/dist/animation/template-choice.js +153 -0
- package/dist/animation/templates.d.ts +39 -0
- package/dist/animation/templates.js +333 -0
- package/dist/animation/types.d.ts +257 -0
- package/dist/animation/types.js +1 -0
- package/dist/approvals.d.ts +156 -0
- package/dist/approvals.js +369 -0
- package/dist/audio/aac.d.ts +61 -0
- package/dist/audio/aac.js +152 -0
- package/dist/audio/checks.d.ts +38 -0
- package/dist/audio/checks.js +254 -0
- package/dist/audio/delivery.d.ts +52 -0
- package/dist/audio/delivery.js +105 -0
- package/dist/audio/engine.d.ts +65 -0
- package/dist/audio/engine.js +164 -0
- package/dist/audio/handoff.d.ts +75 -0
- package/dist/audio/handoff.js +185 -0
- package/dist/audio/kinds.d.ts +6 -0
- package/dist/audio/kinds.js +315 -0
- package/dist/audio/loudness.d.ts +22 -0
- package/dist/audio/loudness.js +72 -0
- package/dist/audio/ogg.d.ts +27 -0
- package/dist/audio/ogg.js +65 -0
- package/dist/audio/operations.d.ts +20 -0
- package/dist/audio/operations.js +335 -0
- package/dist/audio/opus.d.ts +40 -0
- package/dist/audio/opus.js +108 -0
- package/dist/audio/profile.d.ts +200 -0
- package/dist/audio/profile.js +126 -0
- package/dist/audio/run.d.ts +83 -0
- package/dist/audio/run.js +192 -0
- package/dist/audio/vorbis-comments.d.ts +25 -0
- package/dist/audio/vorbis-comments.js +243 -0
- package/dist/audio/waveform.d.ts +13 -0
- package/dist/audio/waveform.js +52 -0
- package/dist/audio-parameters.d.ts +17 -0
- package/dist/audio-parameters.js +45 -0
- package/dist/audit/bar.d.ts +65 -0
- package/dist/audit/bar.js +97 -0
- package/dist/audit/members.d.ts +40 -0
- package/dist/audit/members.js +119 -0
- package/dist/bible-view.d.ts +10 -0
- package/dist/bible-view.js +122 -0
- package/dist/bible.d.ts +272 -0
- package/dist/bible.js +641 -0
- package/dist/budget.d.ts +119 -0
- package/dist/budget.js +227 -0
- package/dist/call-parameters.d.ts +71 -0
- package/dist/call-parameters.js +90 -0
- package/dist/calls.d.ts +145 -0
- package/dist/calls.js +788 -0
- package/dist/cli/main.d.ts +22 -0
- package/dist/cli/main.js +137 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +5 -0
- package/dist/commands/animation-qa.d.ts +1 -0
- package/dist/commands/animation-qa.js +240 -0
- package/dist/commands/apply.d.ts +12 -0
- package/dist/commands/apply.js +181 -0
- package/dist/commands/audit.d.ts +92 -0
- package/dist/commands/audit.js +555 -0
- package/dist/commands/bible.d.ts +1 -0
- package/dist/commands/bible.js +39 -0
- package/dist/commands/browse.d.ts +12 -0
- package/dist/commands/browse.js +113 -0
- package/dist/commands/card.d.ts +3 -0
- package/dist/commands/card.js +445 -0
- package/dist/commands/compare.d.ts +1 -0
- package/dist/commands/compare.js +90 -0
- package/dist/commands/confirm.d.ts +1 -0
- package/dist/commands/confirm.js +267 -0
- package/dist/commands/context.d.ts +43 -0
- package/dist/commands/context.js +115 -0
- package/dist/commands/deliver.d.ts +1 -0
- package/dist/commands/deliver.js +99 -0
- package/dist/commands/disclosure.d.ts +1 -0
- package/dist/commands/disclosure.js +80 -0
- package/dist/commands/doctor.d.ts +1 -0
- package/dist/commands/doctor.js +112 -0
- package/dist/commands/estimate.d.ts +2 -0
- package/dist/commands/estimate.js +80 -0
- package/dist/commands/extensions.d.ts +2 -0
- package/dist/commands/extensions.js +70 -0
- package/dist/commands/fix-frame.d.ts +1 -0
- package/dist/commands/fix-frame.js +206 -0
- package/dist/commands/generate-sheet.d.ts +1 -0
- package/dist/commands/generate-sheet.js +245 -0
- package/dist/commands/identity-check.d.ts +1 -0
- package/dist/commands/identity-check.js +110 -0
- package/dist/commands/identity-eval.d.ts +1 -0
- package/dist/commands/identity-eval.js +197 -0
- package/dist/commands/import.d.ts +7 -0
- package/dist/commands/import.js +472 -0
- package/dist/commands/init.d.ts +1 -0
- package/dist/commands/init.js +117 -0
- package/dist/commands/intake.d.ts +1 -0
- package/dist/commands/intake.js +56 -0
- package/dist/commands/labels.d.ts +1 -0
- package/dist/commands/labels.js +101 -0
- package/dist/commands/library.d.ts +9 -0
- package/dist/commands/library.js +711 -0
- package/dist/commands/lod.d.ts +1 -0
- package/dist/commands/lod.js +93 -0
- package/dist/commands/look-dev.d.ts +1 -0
- package/dist/commands/look-dev.js +148 -0
- package/dist/commands/materials.d.ts +1 -0
- package/dist/commands/materials.js +223 -0
- package/dist/commands/mcp.d.ts +1 -0
- package/dist/commands/mcp.js +53 -0
- package/dist/commands/migrate.d.ts +1 -0
- package/dist/commands/migrate.js +123 -0
- package/dist/commands/op.d.ts +5 -0
- package/dist/commands/op.js +114 -0
- package/dist/commands/ops.d.ts +1 -0
- package/dist/commands/ops.js +17 -0
- package/dist/commands/pick-batch.d.ts +24 -0
- package/dist/commands/pick-batch.js +343 -0
- package/dist/commands/pick.d.ts +48 -0
- package/dist/commands/pick.js +469 -0
- package/dist/commands/plan.d.ts +3 -0
- package/dist/commands/plan.js +156 -0
- package/dist/commands/recipe.d.ts +1 -0
- package/dist/commands/recipe.js +52 -0
- package/dist/commands/registry.d.ts +5 -0
- package/dist/commands/registry.js +121 -0
- package/dist/commands/render-sprite.d.ts +1 -0
- package/dist/commands/render-sprite.js +67 -0
- package/dist/commands/rendition.d.ts +1 -0
- package/dist/commands/rendition.js +56 -0
- package/dist/commands/request-change.d.ts +2 -0
- package/dist/commands/request-change.js +950 -0
- package/dist/commands/result.d.ts +34 -0
- package/dist/commands/result.js +237 -0
- package/dist/commands/review.d.ts +28 -0
- package/dist/commands/review.js +444 -0
- package/dist/commands/rig.d.ts +1 -0
- package/dist/commands/rig.js +74 -0
- package/dist/commands/runner.d.ts +45 -0
- package/dist/commands/runner.js +297 -0
- package/dist/commands/runs.d.ts +22 -0
- package/dist/commands/runs.js +159 -0
- package/dist/commands/search.d.ts +69 -0
- package/dist/commands/search.js +638 -0
- package/dist/commands/settings.d.ts +2 -0
- package/dist/commands/settings.js +284 -0
- package/dist/commands/spend.d.ts +2 -0
- package/dist/commands/spend.js +159 -0
- package/dist/commands/stage-source.d.ts +1 -0
- package/dist/commands/stage-source.js +58 -0
- package/dist/commands/stage.d.ts +9 -0
- package/dist/commands/stage.js +229 -0
- package/dist/commands/storage.d.ts +3 -0
- package/dist/commands/storage.js +200 -0
- package/dist/commands/turnaround.d.ts +1 -0
- package/dist/commands/turnaround.js +171 -0
- package/dist/commands/types.d.ts +195 -0
- package/dist/commands/types.js +7 -0
- package/dist/commands/vary.d.ts +2 -0
- package/dist/commands/vary.js +222 -0
- package/dist/commands/write-families.d.ts +14 -0
- package/dist/commands/write-families.js +158 -0
- package/dist/compare.d.ts +87 -0
- package/dist/compare.js +306 -0
- package/dist/confirm/delegation.d.ts +30 -0
- package/dist/confirm/delegation.js +31 -0
- package/dist/confirm/index.d.ts +84 -0
- package/dist/confirm/index.js +176 -0
- package/dist/confirm/mcp.d.ts +60 -0
- package/dist/confirm/mcp.js +253 -0
- package/dist/confirm/pending.d.ts +11 -0
- package/dist/confirm/pending.js +40 -0
- package/dist/confirm/prompt.d.ts +65 -0
- package/dist/confirm/prompt.js +68 -0
- package/dist/confirm/records.d.ts +17 -0
- package/dist/confirm/records.js +63 -0
- package/dist/contact.d.ts +80 -0
- package/dist/contact.js +224 -0
- package/dist/credentials.d.ts +170 -0
- package/dist/credentials.js +598 -0
- package/dist/dataflows.d.ts +32 -0
- package/dist/dataflows.js +42 -0
- package/dist/delivery.d.ts +89 -0
- package/dist/delivery.js +355 -0
- package/dist/disclosure.d.ts +84 -0
- package/dist/disclosure.js +397 -0
- package/dist/env.d.ts +90 -0
- package/dist/env.js +236 -0
- package/dist/errors.d.ts +90 -0
- package/dist/errors.js +105 -0
- package/dist/extension/api.d.ts +389 -0
- package/dist/extension/api.js +20 -0
- package/dist/extension/context.d.ts +9 -0
- package/dist/extension/context.js +60 -0
- package/dist/extension/helpers.d.ts +75 -0
- package/dist/extension/helpers.js +107 -0
- package/dist/extension/http.d.ts +32 -0
- package/dist/extension/http.js +104 -0
- package/dist/extension/setup.d.ts +53 -0
- package/dist/extension/setup.js +162 -0
- package/dist/extension/tools.d.ts +97 -0
- package/dist/extension/tools.js +235 -0
- package/dist/extensions/core.d.ts +7 -0
- package/dist/extensions/core.js +18 -0
- package/dist/extensions/errors.d.ts +22 -0
- package/dist/extensions/errors.js +34 -0
- package/dist/extensions/registry.d.ts +119 -0
- package/dist/extensions/registry.js +535 -0
- package/dist/extensions/version.d.ts +9 -0
- package/dist/extensions/version.js +57 -0
- package/dist/formats.d.ts +46 -0
- package/dist/formats.js +81 -0
- package/dist/frames.d.ts +58 -0
- package/dist/frames.js +80 -0
- package/dist/gateway/anthropic.d.ts +22 -0
- package/dist/gateway/anthropic.js +65 -0
- package/dist/gateway/elevenlabs.d.ts +36 -0
- package/dist/gateway/elevenlabs.js +192 -0
- package/dist/gateway/failure.d.ts +29 -0
- package/dist/gateway/failure.js +70 -0
- package/dist/gateway/openai-compatible.d.ts +20 -0
- package/dist/gateway/openai-compatible.js +76 -0
- package/dist/gateway/openai.d.ts +28 -0
- package/dist/gateway/openai.js +101 -0
- package/dist/gateway/provider.d.ts +380 -0
- package/dist/gateway/provider.js +5 -0
- package/dist/gateway/scripted.d.ts +252 -0
- package/dist/gateway/scripted.js +244 -0
- package/dist/gateway/stability.d.ts +38 -0
- package/dist/gateway/stability.js +232 -0
- package/dist/gateway/structured.d.ts +31 -0
- package/dist/gateway/structured.js +83 -0
- package/dist/gateway/tripo.d.ts +48 -0
- package/dist/gateway/tripo.js +374 -0
- package/dist/gateway/vercel.d.ts +52 -0
- package/dist/gateway/vercel.js +298 -0
- package/dist/generators/generator.d.ts +236 -0
- package/dist/generators/generator.js +12 -0
- package/dist/generators/image.d.ts +21 -0
- package/dist/generators/image.js +286 -0
- package/dist/generators/spec-schema.d.ts +29 -0
- package/dist/generators/spec-schema.js +21 -0
- package/dist/git-marker.d.ts +3 -0
- package/dist/git-marker.js +13 -0
- package/dist/gitlfs.d.ts +38 -0
- package/dist/gitlfs.js +171 -0
- package/dist/guard.d.ts +55 -0
- package/dist/guard.js +323 -0
- package/dist/handoff/current-profile.d.ts +48 -0
- package/dist/handoff/current-profile.js +127 -0
- package/dist/handoff/doctor.d.ts +26 -0
- package/dist/handoff/doctor.js +249 -0
- package/dist/handoff/mark-check.d.ts +17 -0
- package/dist/handoff/mark-check.js +66 -0
- package/dist/handoff/presets/aseprite-json.d.ts +5 -0
- package/dist/handoff/presets/aseprite-json.js +45 -0
- package/dist/handoff/presets/atlas-json.d.ts +44 -0
- package/dist/handoff/presets/atlas-json.js +195 -0
- package/dist/handoff/presets/atlas-pack.d.ts +14 -0
- package/dist/handoff/presets/atlas-pack.js +431 -0
- package/dist/handoff/presets/index.d.ts +273 -0
- package/dist/handoff/presets/index.js +58 -0
- package/dist/handoff/presets/manifest.d.ts +2 -0
- package/dist/handoff/presets/manifest.js +49 -0
- package/dist/handoff/usage.d.ts +27 -0
- package/dist/handoff/usage.js +159 -0
- package/dist/handoff.d.ts +345 -0
- package/dist/handoff.js +1221 -0
- package/dist/identity-eval.d.ts +156 -0
- package/dist/identity-eval.js +321 -0
- package/dist/identity.d.ts +293 -0
- package/dist/identity.js +675 -0
- package/dist/image/apply-style.d.ts +4 -0
- package/dist/image/apply-style.js +37 -0
- package/dist/image/digits.d.ts +5 -0
- package/dist/image/digits.js +40 -0
- package/dist/image/ktx2.d.ts +83 -0
- package/dist/image/ktx2.js +196 -0
- package/dist/image/raster.d.ts +23 -0
- package/dist/image/raster.js +77 -0
- package/dist/image/resample.d.ts +10 -0
- package/dist/image/resample.js +82 -0
- package/dist/image/webp.d.ts +17 -0
- package/dist/image/webp.js +323 -0
- package/dist/init.d.ts +132 -0
- package/dist/init.js +425 -0
- package/dist/inputs.d.ts +67 -0
- package/dist/inputs.js +151 -0
- package/dist/json.d.ts +7 -0
- package/dist/json.js +27 -0
- package/dist/keys.d.ts +34 -0
- package/dist/keys.js +198 -0
- package/dist/kind-schemas.d.ts +17 -0
- package/dist/kind-schemas.js +205 -0
- package/dist/library/actions.d.ts +76 -0
- package/dist/library/actions.js +212 -0
- package/dist/library/adopt.d.ts +177 -0
- package/dist/library/adopt.js +624 -0
- package/dist/library/canonical.d.ts +7 -0
- package/dist/library/canonical.js +29 -0
- package/dist/library/card.d.ts +138 -0
- package/dist/library/card.js +532 -0
- package/dist/library/credits.d.ts +70 -0
- package/dist/library/credits.js +222 -0
- package/dist/library/describe.d.ts +48 -0
- package/dist/library/describe.js +199 -0
- package/dist/library/diff.d.ts +26 -0
- package/dist/library/diff.js +208 -0
- package/dist/library/exact.d.ts +15 -0
- package/dist/library/exact.js +47 -0
- package/dist/library/extent.d.ts +56 -0
- package/dist/library/extent.js +205 -0
- package/dist/library/folder.d.ts +85 -0
- package/dist/library/folder.js +291 -0
- package/dist/library/labels.d.ts +29 -0
- package/dist/library/labels.js +112 -0
- package/dist/library/lfs.d.ts +42 -0
- package/dist/library/lfs.js +140 -0
- package/dist/library/maintain.d.ts +100 -0
- package/dist/library/maintain.js +750 -0
- package/dist/library/media-metadata.d.ts +19 -0
- package/dist/library/media-metadata.js +92 -0
- package/dist/library/paths.d.ts +7 -0
- package/dist/library/paths.js +65 -0
- package/dist/library/relations.d.ts +59 -0
- package/dist/library/relations.js +176 -0
- package/dist/library/review.d.ts +204 -0
- package/dist/library/review.js +545 -0
- package/dist/library/stale.d.ts +88 -0
- package/dist/library/stale.js +229 -0
- package/dist/library/suggestions.d.ts +37 -0
- package/dist/library/suggestions.js +146 -0
- package/dist/library/summary.d.ts +65 -0
- package/dist/library/summary.js +138 -0
- package/dist/library/undo.d.ts +18 -0
- package/dist/library/undo.js +141 -0
- package/dist/library/worklist.d.ts +42 -0
- package/dist/library/worklist.js +91 -0
- package/dist/library/write.d.ts +282 -0
- package/dist/library/write.js +790 -0
- package/dist/license.d.ts +67 -0
- package/dist/license.js +205 -0
- package/dist/limits.d.ts +51 -0
- package/dist/limits.js +100 -0
- package/dist/loop.d.ts +244 -0
- package/dist/loop.js +377 -0
- package/dist/material/core.d.ts +70 -0
- package/dist/material/core.js +238 -0
- package/dist/material/engine.d.ts +15 -0
- package/dist/material/engine.js +141 -0
- package/dist/material/flicker.d.ts +26 -0
- package/dist/material/flicker.js +71 -0
- package/dist/material/operations.d.ts +2 -0
- package/dist/material/operations.js +48 -0
- package/dist/material/pipeline.d.ts +51 -0
- package/dist/material/pipeline.js +431 -0
- package/dist/material/profile.d.ts +29 -0
- package/dist/material/profile.js +97 -0
- package/dist/material/rendition.d.ts +5 -0
- package/dist/material/rendition.js +76 -0
- package/dist/mcp.d.ts +72 -0
- package/dist/mcp.js +514 -0
- package/dist/media.d.ts +36 -0
- package/dist/media.js +46 -0
- package/dist/metadata.d.ts +61 -0
- package/dist/metadata.js +748 -0
- package/dist/model-declarations.d.ts +28 -0
- package/dist/model-declarations.js +14 -0
- package/dist/model3d/clip-map.d.ts +49 -0
- package/dist/model3d/clip-map.js +129 -0
- package/dist/model3d/core-checks.d.ts +61 -0
- package/dist/model3d/core-checks.js +278 -0
- package/dist/model3d/facing.d.ts +49 -0
- package/dist/model3d/facing.js +125 -0
- package/dist/model3d/generator.d.ts +19 -0
- package/dist/model3d/generator.js +482 -0
- package/dist/model3d/glb.d.ts +120 -0
- package/dist/model3d/glb.js +155 -0
- package/dist/model3d/handoff.d.ts +37 -0
- package/dist/model3d/handoff.js +131 -0
- package/dist/model3d/lod/chain.d.ts +50 -0
- package/dist/model3d/lod/chain.js +447 -0
- package/dist/model3d/lod/command.d.ts +38 -0
- package/dist/model3d/lod/command.js +377 -0
- package/dist/model3d/lod/qa.d.ts +36 -0
- package/dist/model3d/lod/qa.js +189 -0
- package/dist/model3d/lod/settings.d.ts +36 -0
- package/dist/model3d/lod/settings.js +137 -0
- package/dist/model3d/lod/simplify.d.ts +35 -0
- package/dist/model3d/lod/simplify.js +337 -0
- package/dist/model3d/lod/textures.d.ts +46 -0
- package/dist/model3d/lod/textures.js +190 -0
- package/dist/model3d/lookdev/command.d.ts +219 -0
- package/dist/model3d/lookdev/command.js +1795 -0
- package/dist/model3d/lookdev/edit.d.ts +44 -0
- package/dist/model3d/lookdev/edit.js +241 -0
- package/dist/model3d/lookdev/groom.d.ts +86 -0
- package/dist/model3d/lookdev/groom.js +462 -0
- package/dist/model3d/lookdev/markings.d.ts +98 -0
- package/dist/model3d/lookdev/markings.js +319 -0
- package/dist/model3d/lookdev/project.d.ts +100 -0
- package/dist/model3d/lookdev/project.js +721 -0
- package/dist/model3d/lookdev/settings.d.ts +65 -0
- package/dist/model3d/lookdev/settings.js +103 -0
- package/dist/model3d/lookdev/texels.d.ts +32 -0
- package/dist/model3d/lookdev/texels.js +192 -0
- package/dist/model3d/profile.d.ts +101 -0
- package/dist/model3d/profile.js +132 -0
- package/dist/model3d/prop.d.ts +29 -0
- package/dist/model3d/prop.js +317 -0
- package/dist/model3d/qa.d.ts +27 -0
- package/dist/model3d/qa.js +105 -0
- package/dist/model3d/render.d.ts +172 -0
- package/dist/model3d/render.js +791 -0
- package/dist/model3d/rig/build.d.ts +14 -0
- package/dist/model3d/rig/build.js +210 -0
- package/dist/model3d/rig/candidate.d.ts +50 -0
- package/dist/model3d/rig/candidate.js +132 -0
- package/dist/model3d/rig/command.d.ts +50 -0
- package/dist/model3d/rig/command.js +229 -0
- package/dist/model3d/rig/fit.d.ts +88 -0
- package/dist/model3d/rig/fit.js +568 -0
- package/dist/model3d/rig/gait.d.ts +105 -0
- package/dist/model3d/rig/gait.js +334 -0
- package/dist/model3d/rig/math.d.ts +27 -0
- package/dist/model3d/rig/math.js +92 -0
- package/dist/model3d/rig/motion.d.ts +26 -0
- package/dist/model3d/rig/motion.js +223 -0
- package/dist/model3d/rig/qa.d.ts +76 -0
- package/dist/model3d/rig/qa.js +357 -0
- package/dist/model3d/rig/rig.d.ts +55 -0
- package/dist/model3d/rig/rig.js +213 -0
- package/dist/model3d/rig/template.d.ts +195 -0
- package/dist/model3d/rig/template.js +456 -0
- package/dist/model3d/scene.d.ts +115 -0
- package/dist/model3d/scene.js +684 -0
- package/dist/model3d/views.d.ts +77 -0
- package/dist/model3d/views.js +190 -0
- package/dist/origin.d.ts +162 -0
- package/dist/origin.js +134 -0
- package/dist/paths.d.ts +53 -0
- package/dist/paths.js +240 -0
- package/dist/planning.d.ts +261 -0
- package/dist/planning.js +1470 -0
- package/dist/policy/blocklist.d.ts +28 -0
- package/dist/policy/blocklist.js +58 -0
- package/dist/policy/brief.d.ts +67 -0
- package/dist/policy/brief.js +110 -0
- package/dist/policy/cuts.d.ts +26 -0
- package/dist/policy/cuts.js +80 -0
- package/dist/policy/model.d.ts +69 -0
- package/dist/policy/model.js +202 -0
- package/dist/policy/text.d.ts +183 -0
- package/dist/policy/text.js +285 -0
- package/dist/postprocess.d.ts +68 -0
- package/dist/postprocess.js +302 -0
- package/dist/profile.d.ts +5 -0
- package/dist/profile.js +98 -0
- package/dist/project-rules.d.ts +54 -0
- package/dist/project-rules.js +105 -0
- package/dist/provenance-binding.d.ts +55 -0
- package/dist/provenance-binding.js +352 -0
- package/dist/providers/adapter.d.ts +176 -0
- package/dist/providers/adapter.js +418 -0
- package/dist/providers/index.d.ts +33 -0
- package/dist/providers/index.js +49 -0
- package/dist/providers/script.d.ts +13 -0
- package/dist/providers/script.js +65 -0
- package/dist/providers/set.d.ts +76 -0
- package/dist/providers/set.js +134 -0
- package/dist/pure-cbor.d.ts +1 -0
- package/dist/pure-cbor.js +8 -0
- package/dist/qa/stability.d.ts +215 -0
- package/dist/qa/stability.js +393 -0
- package/dist/qa/stability.json +32 -0
- package/dist/qa.d.ts +36 -0
- package/dist/qa.js +148 -0
- package/dist/reconcile.d.ts +111 -0
- package/dist/reconcile.js +416 -0
- package/dist/redact.d.ts +29 -0
- package/dist/redact.js +74 -0
- package/dist/regions.d.ts +49 -0
- package/dist/regions.js +113 -0
- package/dist/release-policy.d.ts +99 -0
- package/dist/release-policy.js +266 -0
- package/dist/request.d.ts +74 -0
- package/dist/request.js +249 -0
- package/dist/routes.d.ts +327 -0
- package/dist/routes.js +1166 -0
- package/dist/runs/dir.d.ts +33 -0
- package/dist/runs/dir.js +30 -0
- package/dist/runs/execute.d.ts +86 -0
- package/dist/runs/execute.js +422 -0
- package/dist/runs/journal.d.ts +150 -0
- package/dist/runs/journal.js +216 -0
- package/dist/runs/lock.d.ts +57 -0
- package/dist/runs/lock.js +322 -0
- package/dist/runs/plan.d.ts +261 -0
- package/dist/runs/plan.js +404 -0
- package/dist/search/near-match.d.ts +32 -0
- package/dist/search/near-match.js +86 -0
- package/dist/search/reader.d.ts +17 -0
- package/dist/search/reader.js +334 -0
- package/dist/search/sheet.d.ts +4 -0
- package/dist/search/sheet.js +28 -0
- package/dist/search/style-outliers.d.ts +77 -0
- package/dist/search/style-outliers.js +166 -0
- package/dist/settings-write.d.ts +78 -0
- package/dist/settings-write.js +374 -0
- package/dist/settings.d.ts +436 -0
- package/dist/settings.js +622 -0
- package/dist/shared-settings.d.ts +4 -0
- package/dist/shared-settings.js +24 -0
- package/dist/sheet/blobs.d.ts +33 -0
- package/dist/sheet/blobs.js +145 -0
- package/dist/sheet/generate.d.ts +71 -0
- package/dist/sheet/generate.js +278 -0
- package/dist/sheet/group.d.ts +20 -0
- package/dist/sheet/group.js +191 -0
- package/dist/sheet/import.d.ts +315 -0
- package/dist/sheet/import.js +832 -0
- package/dist/sheet/matte.d.ts +25 -0
- package/dist/sheet/matte.js +508 -0
- package/dist/sheet/media-import.d.ts +41 -0
- package/dist/sheet/media-import.js +118 -0
- package/dist/sheet/register.d.ts +17 -0
- package/dist/sheet/register.js +176 -0
- package/dist/sheet/slice.d.ts +73 -0
- package/dist/sheet/slice.js +912 -0
- package/dist/sheet/types.d.ts +225 -0
- package/dist/sheet/types.js +1 -0
- package/dist/source/aseprite.d.ts +14 -0
- package/dist/source/aseprite.js +124 -0
- package/dist/source/stage.d.ts +24 -0
- package/dist/source/stage.js +172 -0
- package/dist/spend.d.ts +220 -0
- package/dist/spend.js +436 -0
- package/dist/sprite/render.d.ts +22 -0
- package/dist/sprite/render.js +272 -0
- package/dist/storage.d.ts +135 -0
- package/dist/storage.js +405 -0
- package/dist/style.d.ts +19 -0
- package/dist/style.js +26 -0
- package/dist/template.d.ts +29 -0
- package/dist/template.js +98 -0
- package/dist/testing/aseprite.d.ts +54 -0
- package/dist/testing/aseprite.js +191 -0
- package/dist/testing/cli.d.ts +24 -0
- package/dist/testing/cli.js +91 -0
- package/dist/testing/conformance.d.ts +61 -0
- package/dist/testing/conformance.js +455 -0
- package/dist/testing/index.d.ts +23 -0
- package/dist/testing/index.js +15 -0
- package/dist/testing/mcp.d.ts +25 -0
- package/dist/testing/mcp.js +80 -0
- package/dist/testing/project.d.ts +81 -0
- package/dist/testing/project.js +215 -0
- package/dist/testing/samples.d.ts +42 -0
- package/dist/testing/samples.js +122 -0
- package/dist/transform/operations.d.ts +5 -0
- package/dist/transform/operations.js +320 -0
- package/dist/transform/raster-engine.d.ts +9 -0
- package/dist/transform/raster-engine.js +329 -0
- package/dist/transform/rendition.d.ts +65 -0
- package/dist/transform/rendition.js +317 -0
- package/dist/transform/run.d.ts +138 -0
- package/dist/transform/run.js +442 -0
- package/dist/transform/schema.d.ts +33 -0
- package/dist/transform/schema.js +73 -0
- package/dist/transform/types.d.ts +101 -0
- package/dist/transform/types.js +1 -0
- package/dist/tree/address.d.ts +18 -0
- package/dist/tree/address.js +59 -0
- package/dist/tree/list.d.ts +18 -0
- package/dist/tree/list.js +101 -0
- package/dist/tree/project.d.ts +61 -0
- package/dist/tree/project.js +145 -0
- package/dist/tree/read.d.ts +43 -0
- package/dist/tree/read.js +715 -0
- package/dist/tree/search.d.ts +20 -0
- package/dist/tree/search.js +44 -0
- package/dist/tree/serve.d.ts +79 -0
- package/dist/tree/serve.js +415 -0
- package/dist/tree/thumbs.d.ts +26 -0
- package/dist/tree/thumbs.js +134 -0
- package/dist/turnaround.d.ts +195 -0
- package/dist/turnaround.js +622 -0
- package/dist/types.d.ts +595 -0
- package/dist/types.js +1 -0
- package/package.json +112 -3
- package/policy/blocklist.json +47 -0
- package/policy/prompt-policy-cuts.json +15 -0
- package/skills/art-direction/SKILL.md +16 -0
- package/skills/art-direction/default.md +14 -0
- package/skills/art-direction/presets/cozy-storybook.md +121 -0
- package/skills/art-direction/presets/dark-gritty-isometric.md +121 -0
- package/skills/art-direction/presets/flat-cartoon-kids.md +121 -0
- package/skills/art-direction/references/bible-format.md +47 -0
- package/skills/assetgrove/SKILL.md +109 -0
- package/skills/assetgrove/references/commands.md +723 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Glb } from "../glb.ts";
|
|
2
|
+
import type { BakedMesh, Skeleton, SkinWeights } from "./fit.ts";
|
|
3
|
+
import type { GeneratedClip } from "./gait.ts";
|
|
4
|
+
export declare const RIG_ROOT_NAME = "assetgrove-root";
|
|
5
|
+
/** Node indices in the rigged file: the root, the mesh node, then one per joint in template order. */
|
|
6
|
+
export declare const jointNode: (joint: number) => number;
|
|
7
|
+
export declare function buildRiggedGlb(source: Glb, mesh: BakedMesh, skeleton: Skeleton, skin: SkinWeights, clips: GeneratedClip[],
|
|
8
|
+
/** The shared-rig identity the target compares (`asset.extras.rig`), as the manifest records it. */
|
|
9
|
+
rig: {
|
|
10
|
+
template: string;
|
|
11
|
+
sha256: string;
|
|
12
|
+
},
|
|
13
|
+
/** Keep the source's own `asset.extras` (re-rigging a look-dev'd model keeps its groom record). */
|
|
14
|
+
keepAssetExtras?: boolean): Glb;
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Writes the re-rigged character: the baked mesh with the template's skeleton, smooth skin weights
|
|
3
|
+
* and the generated clips. Materials, textures and images carry over from the source model; its own
|
|
4
|
+
* skins, animations and nodes do not.
|
|
5
|
+
*/
|
|
6
|
+
import { bufferViewBytes } from "../glb.js";
|
|
7
|
+
import { rotY } from "./math.js";
|
|
8
|
+
const FLOAT = 5126;
|
|
9
|
+
const UINT = 5125;
|
|
10
|
+
const USHORT = 5123;
|
|
11
|
+
const ARRAY_BUFFER = 34962;
|
|
12
|
+
const ELEMENT_ARRAY_BUFFER = 34963;
|
|
13
|
+
class BinWriter {
|
|
14
|
+
chunks = [];
|
|
15
|
+
length = 0;
|
|
16
|
+
bufferViews = [];
|
|
17
|
+
accessors = [];
|
|
18
|
+
view(bytes, target) {
|
|
19
|
+
const padded = new Uint8Array(Math.ceil(bytes.byteLength / 4) * 4);
|
|
20
|
+
padded.set(bytes);
|
|
21
|
+
this.bufferViews.push({
|
|
22
|
+
buffer: 0,
|
|
23
|
+
byteOffset: this.length,
|
|
24
|
+
byteLength: bytes.byteLength,
|
|
25
|
+
...(target !== undefined && { target }),
|
|
26
|
+
});
|
|
27
|
+
this.chunks.push(padded);
|
|
28
|
+
this.length += padded.byteLength;
|
|
29
|
+
return this.bufferViews.length - 1;
|
|
30
|
+
}
|
|
31
|
+
accessor(data, type, width, target, withBounds = false) {
|
|
32
|
+
const componentType = data instanceof Float32Array ? FLOAT : data instanceof Uint32Array ? UINT : USHORT;
|
|
33
|
+
const bytes = new Uint8Array(data.buffer, data.byteOffset, data.byteLength);
|
|
34
|
+
const bufferView = this.view(bytes, target);
|
|
35
|
+
const count = data.length / width;
|
|
36
|
+
let bounds;
|
|
37
|
+
if (withBounds) {
|
|
38
|
+
const min = Array(width).fill(Infinity);
|
|
39
|
+
const max = Array(width).fill(-Infinity);
|
|
40
|
+
for (let i = 0; i < data.length; i++) {
|
|
41
|
+
min[i % width] = Math.min(min[i % width], data[i]);
|
|
42
|
+
max[i % width] = Math.max(max[i % width], data[i]);
|
|
43
|
+
}
|
|
44
|
+
bounds = { min, max };
|
|
45
|
+
}
|
|
46
|
+
this.accessors.push({ bufferView, componentType, count, type, ...bounds });
|
|
47
|
+
return this.accessors.length - 1;
|
|
48
|
+
}
|
|
49
|
+
bin() {
|
|
50
|
+
const out = new Uint8Array(this.length);
|
|
51
|
+
let at = 0;
|
|
52
|
+
for (const chunk of this.chunks) {
|
|
53
|
+
out.set(chunk, at);
|
|
54
|
+
at += chunk.byteLength;
|
|
55
|
+
}
|
|
56
|
+
return out;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/** Extension names used anywhere inside a JSON value. */
|
|
60
|
+
function extensionsIn(value, out) {
|
|
61
|
+
if (Array.isArray(value))
|
|
62
|
+
value.forEach((v) => extensionsIn(v, out));
|
|
63
|
+
else if (value !== null && typeof value === "object") {
|
|
64
|
+
for (const [k, v] of Object.entries(value)) {
|
|
65
|
+
if (k === "extensions" && v !== null && typeof v === "object") {
|
|
66
|
+
Object.keys(v).forEach((name) => out.add(name));
|
|
67
|
+
}
|
|
68
|
+
extensionsIn(v, out);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export const RIG_ROOT_NAME = "assetgrove-root";
|
|
73
|
+
/** Node indices in the rigged file: the root, the mesh node, then one per joint in template order. */
|
|
74
|
+
export const jointNode = (joint) => 2 + joint;
|
|
75
|
+
export function buildRiggedGlb(source, mesh, skeleton, skin, clips,
|
|
76
|
+
/** The shared-rig identity the target compares (`asset.extras.rig`), as the manifest records it. */
|
|
77
|
+
rig,
|
|
78
|
+
/** Keep the source's own `asset.extras` (re-rigging a look-dev'd model keeps its groom record). */
|
|
79
|
+
keepAssetExtras = false) {
|
|
80
|
+
const out = new BinWriter();
|
|
81
|
+
const json = {
|
|
82
|
+
// Only a re-rig keeps the source's asset extras (look-dev's groom record); `stage` writes the
|
|
83
|
+
// rig's alone, so a provider's own extras never ship. The rig's replaces any.
|
|
84
|
+
asset: {
|
|
85
|
+
version: "2.0",
|
|
86
|
+
generator: "assetgrove shared rig",
|
|
87
|
+
extras: {
|
|
88
|
+
...(keepAssetExtras && source.json.asset.extras),
|
|
89
|
+
rig,
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
scene: 0,
|
|
93
|
+
scenes: [{ nodes: [0] }],
|
|
94
|
+
};
|
|
95
|
+
// Images, textures, samplers and materials carry over in order, so indices stay valid.
|
|
96
|
+
const images = (source.json.images ?? []).map((image) => {
|
|
97
|
+
if (image.bufferView === undefined)
|
|
98
|
+
return { ...image };
|
|
99
|
+
const bufferView = out.view(new Uint8Array(bufferViewBytes(source, image.bufferView)));
|
|
100
|
+
return { bufferView, ...(image.mimeType && { mimeType: image.mimeType }) };
|
|
101
|
+
});
|
|
102
|
+
if (images.length)
|
|
103
|
+
json.images = images;
|
|
104
|
+
for (const key of ["textures", "samplers", "materials"]) {
|
|
105
|
+
const value = source.json[key];
|
|
106
|
+
if (Array.isArray(value) && value.length)
|
|
107
|
+
json[key] = structuredClone(value);
|
|
108
|
+
}
|
|
109
|
+
const used = new Set();
|
|
110
|
+
extensionsIn([json.images, json.textures, json.samplers, json.materials], used);
|
|
111
|
+
if (used.size)
|
|
112
|
+
json.extensionsUsed = [...used].sort();
|
|
113
|
+
const required = source.json.extensionsRequired?.filter((e) => used.has(e));
|
|
114
|
+
if (required?.length)
|
|
115
|
+
json["extensionsRequired"] = required;
|
|
116
|
+
const primitives = mesh.primitives.map((prim) => {
|
|
117
|
+
const n = prim.positions.length / 3;
|
|
118
|
+
const attributes = {
|
|
119
|
+
POSITION: out.accessor(Float32Array.from(prim.positions), "VEC3", 3, ARRAY_BUFFER, true),
|
|
120
|
+
};
|
|
121
|
+
if (prim.normals) {
|
|
122
|
+
attributes["NORMAL"] = out.accessor(Float32Array.from(prim.normals), "VEC3", 3, ARRAY_BUFFER);
|
|
123
|
+
}
|
|
124
|
+
if (prim.uvs) {
|
|
125
|
+
attributes["TEXCOORD_0"] = out.accessor(Float32Array.from(prim.uvs), "VEC2", 2, ARRAY_BUFFER);
|
|
126
|
+
}
|
|
127
|
+
attributes["JOINTS_0"] = out.accessor(skin.joints.slice(prim.first * 4, (prim.first + n) * 4), "VEC4", 4, ARRAY_BUFFER);
|
|
128
|
+
attributes["WEIGHTS_0"] = out.accessor(skin.weights.slice(prim.first * 4, (prim.first + n) * 4), "VEC4", 4, ARRAY_BUFFER);
|
|
129
|
+
const indices = out.accessor(Uint32Array.from(prim.indices), "SCALAR", 1, ELEMENT_ARRAY_BUFFER);
|
|
130
|
+
return {
|
|
131
|
+
attributes,
|
|
132
|
+
indices,
|
|
133
|
+
mode: 4,
|
|
134
|
+
...(prim.material !== undefined && { material: prim.material }),
|
|
135
|
+
};
|
|
136
|
+
});
|
|
137
|
+
json.meshes = [{ name: "character", primitives }];
|
|
138
|
+
const J = skeleton.names.length;
|
|
139
|
+
const root = skeleton.parent.indexOf(-1);
|
|
140
|
+
const yawQ = rotY(mesh.yaw);
|
|
141
|
+
json.nodes = [
|
|
142
|
+
{
|
|
143
|
+
name: RIG_ROOT_NAME,
|
|
144
|
+
children: [1, jointNode(root)],
|
|
145
|
+
...(Math.abs(mesh.yaw) > 1e-9 && { rotation: [...yawQ] }),
|
|
146
|
+
},
|
|
147
|
+
{ name: "character", mesh: 0, skin: 0 },
|
|
148
|
+
...skeleton.names.map((name, j) => {
|
|
149
|
+
const p = skeleton.parent[j];
|
|
150
|
+
const local = p < 0 ? skeleton.rest[j] : skeleton.rest[j].map((v, c) => v - skeleton.rest[p][c]);
|
|
151
|
+
const children = skeleton.parent.flatMap((q, c) => (q === j ? [jointNode(c)] : []));
|
|
152
|
+
return {
|
|
153
|
+
name,
|
|
154
|
+
translation: local.map((v) => (Math.abs(v) < 1e-12 ? 0 : v)),
|
|
155
|
+
...(children.length && { children }),
|
|
156
|
+
};
|
|
157
|
+
}),
|
|
158
|
+
];
|
|
159
|
+
// Inverse bind matrices: the inverse of each joint's world transform at rest (yaw, then the
|
|
160
|
+
// facing-frame position), column-major.
|
|
161
|
+
const ibm = new Float32Array(J * 16);
|
|
162
|
+
const c = Math.cos(mesh.yaw);
|
|
163
|
+
const s = Math.sin(mesh.yaw);
|
|
164
|
+
skeleton.rest.forEach(([x, y, z], j) => {
|
|
165
|
+
// World = Ry(yaw) · T(p); inverse = T(-p) · Ry(-yaw).
|
|
166
|
+
const m = [c, 0, s, 0, 0, 1, 0, 0, -s, 0, c, 0, -x, -y, -z, 1];
|
|
167
|
+
ibm.set(m, j * 16);
|
|
168
|
+
});
|
|
169
|
+
json.skins = [
|
|
170
|
+
{
|
|
171
|
+
joints: skeleton.names.map((_, j) => jointNode(j)),
|
|
172
|
+
inverseBindMatrices: out.accessor(ibm, "MAT4", 16),
|
|
173
|
+
skeleton: jointNode(root),
|
|
174
|
+
},
|
|
175
|
+
];
|
|
176
|
+
if (clips.length) {
|
|
177
|
+
json.animations = clips.map((clip) => {
|
|
178
|
+
const input = out.accessor(Float32Array.from(clip.times), "SCALAR", 1, undefined, true);
|
|
179
|
+
const samplers = [];
|
|
180
|
+
const channels = [];
|
|
181
|
+
for (let j = 0; j < J; j++) {
|
|
182
|
+
const values = new Float32Array(clip.times.length * 4);
|
|
183
|
+
clip.rotations.forEach((pose, k) => values.set(pose[j], k * 4));
|
|
184
|
+
samplers.push({ input, output: out.accessor(values, "VEC4", 4), interpolation: "LINEAR" });
|
|
185
|
+
channels.push({
|
|
186
|
+
sampler: samplers.length - 1,
|
|
187
|
+
target: { node: jointNode(j), path: "rotation" },
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
const t = new Float32Array(clip.times.length * 3);
|
|
191
|
+
clip.rootTranslation.forEach((v, k) => t.set(v, k * 3));
|
|
192
|
+
samplers.push({ input, output: out.accessor(t, "VEC3", 3), interpolation: "LINEAR" });
|
|
193
|
+
channels.push({
|
|
194
|
+
sampler: samplers.length - 1,
|
|
195
|
+
target: { node: jointNode(root), path: "translation" },
|
|
196
|
+
});
|
|
197
|
+
// glTF has no playback-loop flag; targets read it, and whether the clip was generated, here.
|
|
198
|
+
return {
|
|
199
|
+
name: clip.family,
|
|
200
|
+
channels,
|
|
201
|
+
samplers,
|
|
202
|
+
extras: { loop: clip.loop, generated: true },
|
|
203
|
+
};
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
json.accessors = out.accessors;
|
|
207
|
+
json.bufferViews = out.bufferViews;
|
|
208
|
+
json.buffers = [{ byteLength: out.length }];
|
|
209
|
+
return { json, bin: out.bin() };
|
|
210
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A 3D character candidate on the target's shared rig: the source model normalised, re-rigged with
|
|
3
|
+
* generated clips, and checked (the wave 0 checks plus contact, joint limits and skinning per clip),
|
|
4
|
+
* with its turntable and walk renders. Shared by `stage` and `assetgrove rig`.
|
|
5
|
+
*/
|
|
6
|
+
import type { AssetSpec, Reason, TargetProfile } from "../../types.ts";
|
|
7
|
+
import type { Glb } from "../glb.ts";
|
|
8
|
+
import type { CharacterSpec, ResolvedModel3d } from "../profile.ts";
|
|
9
|
+
import type { TurntableFrame } from "../render.ts";
|
|
10
|
+
import type { Axis, Bounds, Measures } from "../scene.ts";
|
|
11
|
+
import type { LoadedRig } from "./template.ts";
|
|
12
|
+
export interface RiggedCandidate {
|
|
13
|
+
bytes: Uint8Array;
|
|
14
|
+
written: Glb;
|
|
15
|
+
measures: Measures;
|
|
16
|
+
bounds: Bounds;
|
|
17
|
+
reasons: Reason[];
|
|
18
|
+
/** Turntable views and clip frames, from the shared camera and light. */
|
|
19
|
+
renders: TurntableFrame[];
|
|
20
|
+
/** Every render for the person: the turntable, then the side-view walk frames and comparisons. */
|
|
21
|
+
artifacts: Array<{
|
|
22
|
+
name: string;
|
|
23
|
+
bytes: Uint8Array;
|
|
24
|
+
}>;
|
|
25
|
+
/** Template output fields: clips (generated), rig, missing clips. */
|
|
26
|
+
fields: Record<string, unknown>;
|
|
27
|
+
/** Provenance parameters for the rig. */
|
|
28
|
+
parameters: Record<string, unknown>;
|
|
29
|
+
}
|
|
30
|
+
export declare function riggedCandidate(options: {
|
|
31
|
+
/** The source model as parsed; normalised here. */
|
|
32
|
+
source: Glb;
|
|
33
|
+
sourceSha256: string;
|
|
34
|
+
sourceForward: Axis;
|
|
35
|
+
settings: ResolvedModel3d;
|
|
36
|
+
character: CharacterSpec;
|
|
37
|
+
rig: LoadedRig;
|
|
38
|
+
/** The target profile and the spec, for core's model checks (src/model3d/core-checks.ts). */
|
|
39
|
+
profile: TargetProfile;
|
|
40
|
+
spec: AssetSpec;
|
|
41
|
+
/**
|
|
42
|
+
* The source's external images by `uri` (a look-dev'd model's groom maps, beside it), so the
|
|
43
|
+
* validator can resolve them and the texture budget can measure them.
|
|
44
|
+
*/
|
|
45
|
+
resources?: Record<string, Uint8Array>;
|
|
46
|
+
/** Keep the source's `asset.extras`: `rig` re-rigging a handed-off model, never `stage`. */
|
|
47
|
+
keepAssetExtras?: boolean;
|
|
48
|
+
}): Promise<RiggedCandidate>;
|
|
49
|
+
/** SHA-256 of a target profile's canonical JSON, recorded with the rig. */
|
|
50
|
+
export declare function profileSha256(profile: unknown): string;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { sha256 } from "../../request.js";
|
|
2
|
+
import { FRAMES_PER_CLIP } from "../profile.js";
|
|
3
|
+
import { coreModelChecks } from "../core-checks.js";
|
|
4
|
+
import { clipChecks, hierarchyCheck, skeletonCheck, validatorCheck } from "../qa.js";
|
|
5
|
+
import { endsCheck } from "./qa.js";
|
|
6
|
+
import { renderTurntable } from "../render.js";
|
|
7
|
+
import { boundsOf, imageSize, measure, normalize, posedPrimitives, yawBetween } from "../scene.js";
|
|
8
|
+
import { rigCharacter } from "./rig.js";
|
|
9
|
+
import { canonicalJson } from "./template.js";
|
|
10
|
+
const round = (v) => Math.round(v * 1e6) / 1e6;
|
|
11
|
+
export async function riggedCandidate(options) {
|
|
12
|
+
const { source, settings, character, rig } = options;
|
|
13
|
+
// Normalise first, so fitting sees the model facing the target's forward at its height.
|
|
14
|
+
normalize(source, {
|
|
15
|
+
sourceForward: options.sourceForward,
|
|
16
|
+
forward: settings.forward,
|
|
17
|
+
...(character.heightM !== undefined && { heightM: character.heightM }),
|
|
18
|
+
});
|
|
19
|
+
const yaw = yawBetween("+z", settings.forward);
|
|
20
|
+
const rigged = await rigCharacter({
|
|
21
|
+
source,
|
|
22
|
+
yaw,
|
|
23
|
+
rig,
|
|
24
|
+
families: character.clips,
|
|
25
|
+
sizePx: settings.turntablePx,
|
|
26
|
+
...(options.keepAssetExtras && { keepAssetExtras: true }),
|
|
27
|
+
});
|
|
28
|
+
const written = rigged.glb;
|
|
29
|
+
const measures = measure(written);
|
|
30
|
+
// External images are measured from their files, when given.
|
|
31
|
+
measures.unmeasuredImages = measures.unmeasuredImages.filter((index) => {
|
|
32
|
+
const uri = written.json.images?.[index]?.uri;
|
|
33
|
+
const bytes = uri === undefined ? undefined : options.resources?.[decodeURIComponent(uri)];
|
|
34
|
+
const size = bytes && imageSize(bytes);
|
|
35
|
+
if (!size)
|
|
36
|
+
return true;
|
|
37
|
+
measures.textureMaxPx = Math.max(measures.textureMaxPx, size.width, size.height);
|
|
38
|
+
return false;
|
|
39
|
+
});
|
|
40
|
+
const bounds = measures.bounds ?? boundsOf(posedPrimitives(written));
|
|
41
|
+
const height = bounds.max[1] - bounds.min[1];
|
|
42
|
+
const planned = rigged.clips.map((c) => ({ family: c.family, loop: c.loop }));
|
|
43
|
+
const reasons = [
|
|
44
|
+
await validatorCheck(rigged.bytes, options.resources),
|
|
45
|
+
hierarchyCheck(written, measures),
|
|
46
|
+
...(await coreModelChecks({
|
|
47
|
+
bytes: rigged.bytes,
|
|
48
|
+
profile: options.profile,
|
|
49
|
+
spec: options.spec,
|
|
50
|
+
...(options.resources && { resources: options.resources }),
|
|
51
|
+
rig,
|
|
52
|
+
missing: rigged.missing,
|
|
53
|
+
// clipChecks below checks each clip, and more strictly.
|
|
54
|
+
clips: false,
|
|
55
|
+
})),
|
|
56
|
+
skeletonCheck(measures),
|
|
57
|
+
...clipChecks(written, planned, rigged.missing, settings, height),
|
|
58
|
+
// A one-shot starts and ends on its idle's pose, held to the loop tolerance.
|
|
59
|
+
...rigged.clips.flatMap((clip, index) => {
|
|
60
|
+
const reason = endsCheck(written, index, clip, rigged.skeleton, {
|
|
61
|
+
rotationDeg: settings.loopTolerance.rotationDeg,
|
|
62
|
+
translationM: settings.loopTolerance.translationFraction * height,
|
|
63
|
+
});
|
|
64
|
+
return reason ? [reason] : [];
|
|
65
|
+
}),
|
|
66
|
+
...rigged.reasons,
|
|
67
|
+
];
|
|
68
|
+
const renders = renderTurntable(written, {
|
|
69
|
+
sizePx: settings.turntablePx,
|
|
70
|
+
framesPerClip: FRAMES_PER_CLIP,
|
|
71
|
+
forwardYawDeg: (yaw * 180) / Math.PI,
|
|
72
|
+
});
|
|
73
|
+
reasons.push({
|
|
74
|
+
check: "turntable",
|
|
75
|
+
passed: renders.length >= 4,
|
|
76
|
+
reason: `${renders.length} render(s) from a fixed camera and light: ${renders.map((r) => r.name).join(", ")}; ` +
|
|
77
|
+
`clip renders and previews: ${rigged.artifacts.map((a) => a.name).join(", ") || "none"}`,
|
|
78
|
+
source: "deterministic",
|
|
79
|
+
});
|
|
80
|
+
const gaits = Object.fromEntries(rigged.clips
|
|
81
|
+
.filter((c) => rig.gaits[c.family])
|
|
82
|
+
.map((c) => [c.family, { sha256: rig.gaitSha256[c.family], profile: rig.gaits[c.family] }]));
|
|
83
|
+
const motions = Object.fromEntries(rigged.clips
|
|
84
|
+
.filter((c) => rig.motions[c.family])
|
|
85
|
+
.map((c) => [
|
|
86
|
+
c.family,
|
|
87
|
+
{ sha256: rig.motionSha256[c.family], profile: rig.motions[c.family] },
|
|
88
|
+
]));
|
|
89
|
+
return {
|
|
90
|
+
bytes: rigged.bytes,
|
|
91
|
+
written,
|
|
92
|
+
measures,
|
|
93
|
+
bounds,
|
|
94
|
+
reasons,
|
|
95
|
+
renders,
|
|
96
|
+
artifacts: [...renders.map((r) => ({ name: r.name, bytes: r.png })), ...rigged.artifacts],
|
|
97
|
+
fields: {
|
|
98
|
+
clips: rigged.clips.map((c) => ({
|
|
99
|
+
name: c.family,
|
|
100
|
+
durationMs: Math.round(c.durationS * 1000),
|
|
101
|
+
loop: c.loop,
|
|
102
|
+
generated: true,
|
|
103
|
+
speedMps: round(c.speedMps),
|
|
104
|
+
})),
|
|
105
|
+
rig: { template: rig.templatePath, sha256: rig.templateSha256 },
|
|
106
|
+
missingClips: rigged.missing,
|
|
107
|
+
bounds: { min: bounds.min.map(round), max: bounds.max.map(round) },
|
|
108
|
+
},
|
|
109
|
+
parameters: {
|
|
110
|
+
rig: {
|
|
111
|
+
kind: rig.kind,
|
|
112
|
+
template: rig.templatePath,
|
|
113
|
+
templateSha256: rig.templateSha256,
|
|
114
|
+
gaits,
|
|
115
|
+
...(Object.keys(motions).length > 0 && { motions }),
|
|
116
|
+
sourceModelSha256: options.sourceSha256,
|
|
117
|
+
qa: rig.qa,
|
|
118
|
+
fit: {
|
|
119
|
+
bodyLengthM: round(rigged.fit.bodyLengthM),
|
|
120
|
+
joints: rigged.fit.joints,
|
|
121
|
+
maxMovedBodyLengths: round(rigged.fit.maxMovedBodyLengths),
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
clips: rigged.clips.map((c) => ({ family: c.family, generated: true, loop: c.loop })),
|
|
125
|
+
missingClips: rigged.missing,
|
|
126
|
+
},
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
/** SHA-256 of a target profile's canonical JSON, recorded with the rig. */
|
|
130
|
+
export function profileSha256(profile) {
|
|
131
|
+
return sha256(Buffer.from(canonicalJson(profile)));
|
|
132
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { RunRecord } from "../../loop.ts";
|
|
2
|
+
import type { AssetSpec, Provenance, TargetProfile } from "../../types.ts";
|
|
3
|
+
export interface RerigOptions {
|
|
4
|
+
/** The source `.glb` and the provenance it was handed off with. */
|
|
5
|
+
model: {
|
|
6
|
+
bytes: Uint8Array;
|
|
7
|
+
path: string;
|
|
8
|
+
};
|
|
9
|
+
provenance: Provenance;
|
|
10
|
+
spec: AssetSpec;
|
|
11
|
+
specDir: string;
|
|
12
|
+
profile: TargetProfile;
|
|
13
|
+
profileDir: string;
|
|
14
|
+
runsDir: string;
|
|
15
|
+
runId?: string;
|
|
16
|
+
now?: () => Date;
|
|
17
|
+
}
|
|
18
|
+
export declare const RIG_STEP = "rig-generated-gait";
|
|
19
|
+
export declare function rerig(options: RerigOptions): Promise<{
|
|
20
|
+
run: RunRecord;
|
|
21
|
+
runDir: string;
|
|
22
|
+
passed: boolean;
|
|
23
|
+
}>;
|
|
24
|
+
/**
|
|
25
|
+
* The checks a re-rig can change: the rig and the clips. A candidate rejected by these alone can be
|
|
26
|
+
* re-rigged; one rejected by any other check (the mesh, say) would fail the same way again.
|
|
27
|
+
*/
|
|
28
|
+
export declare const RIG_CHECKS: readonly ["rig-template", "skeleton", "budget-bones", RegExp];
|
|
29
|
+
/**
|
|
30
|
+
* Refuses (InputError) a model that the run record beside it keeps as a rejected candidate whose
|
|
31
|
+
* reasons fail a check outside the rig and clip checks, naming each. Anything else (no run record,
|
|
32
|
+
* a staged candidate, a model the run does not list) passes.
|
|
33
|
+
*/
|
|
34
|
+
export declare function rejectedSource(model: {
|
|
35
|
+
bytes: Uint8Array;
|
|
36
|
+
path: string;
|
|
37
|
+
}): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Reads the provenance file named with a `.glb` and checks it is that model's record
|
|
40
|
+
* (src/provenance-binding.ts): exit 2 `provenance_mismatch` naming both files when it is not. With
|
|
41
|
+
* `rejected` (only `rig` passes it), a rejected candidate's model is also accepted by its record in
|
|
42
|
+
* the run, and `rejectedSource` then refuses one a re-rig cannot fix; `lod` and `look-dev` take
|
|
43
|
+
* staged candidates only.
|
|
44
|
+
*/
|
|
45
|
+
export declare function readProvenance(path: string, model: {
|
|
46
|
+
bytes: Uint8Array;
|
|
47
|
+
path: string;
|
|
48
|
+
}, options?: {
|
|
49
|
+
rejected?: boolean;
|
|
50
|
+
}): Promise<Provenance>;
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `assetgrove rig`: re-rigs an existing character model (a picked candidate such as a wave 0 pick)
|
|
3
|
+
* on the target's shared rig with generated clips, and stages the result as a one-candidate run
|
|
4
|
+
* that `pick` hands off unchanged. No provider call is made and nothing is spent.
|
|
5
|
+
*/
|
|
6
|
+
import { randomBytes } from "node:crypto";
|
|
7
|
+
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
8
|
+
import { basename, dirname, isAbsolute, join, posix, resolve } from "node:path";
|
|
9
|
+
import { InputError } from "../../errors.js";
|
|
10
|
+
import { checkWrites } from "../../paths.js";
|
|
11
|
+
import { DIGITAL_SOURCE_TYPES, embedDigitalSourceType, metadataStep, readDigitalSourceType, } from "../../metadata.js";
|
|
12
|
+
import { readRun, writeRun } from "../../loop.js";
|
|
13
|
+
import { readNamedProvenance } from "../../provenance-binding.js";
|
|
14
|
+
import { sha256 } from "../../request.js";
|
|
15
|
+
import { GLB_MEDIA_TYPE, parseGlb } from "../glb.js";
|
|
16
|
+
import { CHARACTER_3D_KIND, characterSpec, model3dSettings } from "../profile.js";
|
|
17
|
+
import { qaPassed } from "../qa.js";
|
|
18
|
+
import { profileSha256, riggedCandidate } from "./candidate.js";
|
|
19
|
+
import { declaresRig, loadRig } from "./template.js";
|
|
20
|
+
export const RIG_STEP = "rig-generated-gait";
|
|
21
|
+
export async function rerig(options) {
|
|
22
|
+
const { spec, profile, provenance } = options;
|
|
23
|
+
if (spec.kind !== CHARACTER_3D_KIND) {
|
|
24
|
+
throw new InputError(`rig needs a ${CHARACTER_3D_KIND} spec, not "${spec.kind}"`);
|
|
25
|
+
}
|
|
26
|
+
const character = characterSpec(spec);
|
|
27
|
+
const settings = model3dSettings(profile);
|
|
28
|
+
if (!declaresRig(profile)) {
|
|
29
|
+
throw new InputError(`the target profile "${profile.name}" declares no rig template (model3d.rig)`);
|
|
30
|
+
}
|
|
31
|
+
if (!provenance || typeof provenance !== "object" || !Array.isArray(provenance.calls)) {
|
|
32
|
+
throw new InputError("the provenance file is not an Assetgrove provenance record");
|
|
33
|
+
}
|
|
34
|
+
const rig = await loadRig(profile, options.profileDir);
|
|
35
|
+
const sourceSha256 = sha256(options.model.bytes);
|
|
36
|
+
const source = parseGlb(options.model.bytes);
|
|
37
|
+
const resources = await externalImages(source, dirname(resolve(options.model.path)));
|
|
38
|
+
const candidate = await riggedCandidate({
|
|
39
|
+
source,
|
|
40
|
+
sourceSha256,
|
|
41
|
+
...(Object.keys(resources).length > 0 && { resources }),
|
|
42
|
+
// A handed-off model already faces the target's forward.
|
|
43
|
+
sourceForward: settings.forward,
|
|
44
|
+
settings,
|
|
45
|
+
character,
|
|
46
|
+
rig,
|
|
47
|
+
profile,
|
|
48
|
+
spec,
|
|
49
|
+
// A re-rig keeps the handed-off model's own record (look-dev's groom, say).
|
|
50
|
+
keepAssetExtras: true,
|
|
51
|
+
});
|
|
52
|
+
const now = options.now ?? (() => new Date());
|
|
53
|
+
const runId = options.runId ??
|
|
54
|
+
`${now().toISOString().replace(/[:.]/g, "-")}-${randomBytes(3).toString("hex")}`;
|
|
55
|
+
const runDir = resolve(options.runsDir, runId);
|
|
56
|
+
const id = "c1";
|
|
57
|
+
// The candidate's whole write set is checked before the first write.
|
|
58
|
+
checkWrites([
|
|
59
|
+
...candidate.artifacts.map((artifact) => posix.join(`${id}-${CHARACTER_3D_KIND}`, basename(artifact.name))),
|
|
60
|
+
`${id}.glb`,
|
|
61
|
+
]);
|
|
62
|
+
await mkdir(runDir, { recursive: true });
|
|
63
|
+
const artifacts = [];
|
|
64
|
+
for (const artifact of candidate.artifacts) {
|
|
65
|
+
const name = posix.join(`${id}-${CHARACTER_3D_KIND}`, basename(artifact.name));
|
|
66
|
+
await mkdir(join(runDir, `${id}-${CHARACTER_3D_KIND}`), { recursive: true });
|
|
67
|
+
await writeFile(join(runDir, name), artifact.bytes);
|
|
68
|
+
artifacts.push(name);
|
|
69
|
+
}
|
|
70
|
+
const digitalSourceType = provenance.digitalSourceType && provenance.digitalSourceType !== "undeclared"
|
|
71
|
+
? provenance.digitalSourceType
|
|
72
|
+
: (readDigitalSourceType(options.model.bytes, GLB_MEDIA_TYPE) ??
|
|
73
|
+
DIGITAL_SOURCE_TYPES.generated);
|
|
74
|
+
const bytes = embedDigitalSourceType(candidate.bytes, GLB_MEDIA_TYPE, digitalSourceType);
|
|
75
|
+
const parameters = {
|
|
76
|
+
...provenance.parameters,
|
|
77
|
+
...candidate.parameters,
|
|
78
|
+
targetProfileSha256: profileSha256(profile),
|
|
79
|
+
// The file name only: a local absolute path would leak into the target's public provenance,
|
|
80
|
+
// and the hash already identifies the model.
|
|
81
|
+
rerig: { sourceModel: basename(options.model.path), sourceModelSha256: sourceSha256 },
|
|
82
|
+
};
|
|
83
|
+
delete parameters["rigType"];
|
|
84
|
+
delete parameters["loopClosedChannels"];
|
|
85
|
+
const rigStep = {
|
|
86
|
+
op: RIG_STEP,
|
|
87
|
+
params: {
|
|
88
|
+
template: rig.templatePath,
|
|
89
|
+
templateSha256: rig.templateSha256,
|
|
90
|
+
gaitSha256: rig.gaitSha256,
|
|
91
|
+
...(Object.keys(rig.motionSha256).length > 0 && { motionSha256: rig.motionSha256 }),
|
|
92
|
+
targetProfileSha256: profileSha256(profile),
|
|
93
|
+
},
|
|
94
|
+
engine: { name: "assetgrove-rig", version: "1" },
|
|
95
|
+
inputs: [sourceSha256],
|
|
96
|
+
outputs: [sha256(candidate.bytes)],
|
|
97
|
+
};
|
|
98
|
+
const record = {
|
|
99
|
+
...provenance,
|
|
100
|
+
parameters,
|
|
101
|
+
digitalSourceType,
|
|
102
|
+
steps: [...(provenance.steps ?? []), rigStep, metadataStep(digitalSourceType, [])],
|
|
103
|
+
};
|
|
104
|
+
const { measures } = candidate;
|
|
105
|
+
const fields = {
|
|
106
|
+
triangles: measures.triangles,
|
|
107
|
+
textureMaxPx: measures.textureMaxPx,
|
|
108
|
+
materials: measures.materials,
|
|
109
|
+
bones: measures.bones,
|
|
110
|
+
lods: measures.lods,
|
|
111
|
+
...candidate.fields,
|
|
112
|
+
gait: character.gait,
|
|
113
|
+
...(provenance.identity && { identity: provenance.identity }),
|
|
114
|
+
};
|
|
115
|
+
const passed = qaPassed(candidate.reasons);
|
|
116
|
+
const run = {
|
|
117
|
+
runId,
|
|
118
|
+
createdAt: now().toISOString(),
|
|
119
|
+
spec,
|
|
120
|
+
specDir: resolve(options.specDir),
|
|
121
|
+
profile,
|
|
122
|
+
profileDir: resolve(options.profileDir),
|
|
123
|
+
bibleVersion: provenance.bibleVersion,
|
|
124
|
+
capUsd: 0,
|
|
125
|
+
estimateUsd: 0,
|
|
126
|
+
spentUsd: 0,
|
|
127
|
+
requested: 1,
|
|
128
|
+
candidates: [],
|
|
129
|
+
filtered: passed ? 0 : 1,
|
|
130
|
+
errors: [],
|
|
131
|
+
};
|
|
132
|
+
if (passed) {
|
|
133
|
+
const file = `${id}.glb`;
|
|
134
|
+
await writeFile(join(runDir, file), bytes);
|
|
135
|
+
const staged = {
|
|
136
|
+
id,
|
|
137
|
+
file,
|
|
138
|
+
mediaType: GLB_MEDIA_TYPE,
|
|
139
|
+
extension: "glb",
|
|
140
|
+
sha256: sha256(bytes),
|
|
141
|
+
reasons: candidate.reasons,
|
|
142
|
+
fields,
|
|
143
|
+
provenance: record,
|
|
144
|
+
artifacts,
|
|
145
|
+
};
|
|
146
|
+
run.candidates.push(staged);
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
run.rejections = [{ candidate: 1, reasons: candidate.reasons, costUsd: 0, artifacts }];
|
|
150
|
+
}
|
|
151
|
+
await writeRun(runDir, run);
|
|
152
|
+
return { run, runDir, passed };
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* The source's external images (a look-dev'd model's groom maps, tint and eye mask) read from
|
|
156
|
+
* beside the model, by `uri`. Only plain relative paths inside the model's directory are read; an
|
|
157
|
+
* image that cannot be read is left out, and the validator then names it.
|
|
158
|
+
*/
|
|
159
|
+
async function externalImages(source, dir) {
|
|
160
|
+
const out = {};
|
|
161
|
+
for (const image of source.json.images ?? []) {
|
|
162
|
+
const uri = image.uri;
|
|
163
|
+
if (uri === undefined || /^[a-z][a-z0-9+.-]*:/i.test(uri))
|
|
164
|
+
continue;
|
|
165
|
+
const path = decodeURIComponent(uri);
|
|
166
|
+
if (isAbsolute(path) || path.split(/[\\/]/).includes(".."))
|
|
167
|
+
continue;
|
|
168
|
+
try {
|
|
169
|
+
out[path] = new Uint8Array(await readFile(join(dir, path)));
|
|
170
|
+
}
|
|
171
|
+
catch {
|
|
172
|
+
// Left out: the validator reports the image it cannot load.
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return out;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* The checks a re-rig can change: the rig and the clips. A candidate rejected by these alone can be
|
|
179
|
+
* re-rigged; one rejected by any other check (the mesh, say) would fail the same way again.
|
|
180
|
+
*/
|
|
181
|
+
export const RIG_CHECKS = [
|
|
182
|
+
"rig-template",
|
|
183
|
+
"skeleton",
|
|
184
|
+
"budget-bones",
|
|
185
|
+
/^(clip|loop|ends|contact|joint-limits|skinning|compare|reference)-/,
|
|
186
|
+
];
|
|
187
|
+
const isRigCheck = (check) => RIG_CHECKS.some((c) => (typeof c === "string" ? c === check : c.test(check)));
|
|
188
|
+
/**
|
|
189
|
+
* Refuses (InputError) a model that the run record beside it keeps as a rejected candidate whose
|
|
190
|
+
* reasons fail a check outside the rig and clip checks, naming each. Anything else (no run record,
|
|
191
|
+
* a staged candidate, a model the run does not list) passes.
|
|
192
|
+
*/
|
|
193
|
+
export async function rejectedSource(model) {
|
|
194
|
+
const dir = dirname(resolve(model.path));
|
|
195
|
+
let run;
|
|
196
|
+
try {
|
|
197
|
+
run = await readRun(dir);
|
|
198
|
+
}
|
|
199
|
+
catch {
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
const digest = sha256(model.bytes);
|
|
203
|
+
if ((run.candidates ?? []).some((c) => c?.sha256 === digest))
|
|
204
|
+
return;
|
|
205
|
+
for (const kept of run.rejections ?? []) {
|
|
206
|
+
if (kept.sha256 !== digest)
|
|
207
|
+
continue;
|
|
208
|
+
const failed = (kept.reasons ?? []).filter((reason) => !reason.passed && reason.shadow !== true && !isRigCheck(reason.check));
|
|
209
|
+
if (failed.length === 0)
|
|
210
|
+
return;
|
|
211
|
+
throw new InputError(`refused: candidate ${kept.id ?? `c${kept.candidate}`} of ${dir} failed ` +
|
|
212
|
+
`${failed.map((f) => `${f.check} (${f.reason})`).join(", ")}, which a new rig cannot change; ` +
|
|
213
|
+
"only a candidate rejected by rig or clip checks alone can be re-rigged");
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Reads the provenance file named with a `.glb` and checks it is that model's record
|
|
218
|
+
* (src/provenance-binding.ts): exit 2 `provenance_mismatch` naming both files when it is not. With
|
|
219
|
+
* `rejected` (only `rig` passes it), a rejected candidate's model is also accepted by its record in
|
|
220
|
+
* the run, and `rejectedSource` then refuses one a re-rig cannot fix; `lod` and `look-dev` take
|
|
221
|
+
* staged candidates only.
|
|
222
|
+
*/
|
|
223
|
+
export async function readProvenance(path, model, options = {}) {
|
|
224
|
+
if (!options.rejected)
|
|
225
|
+
return readNamedProvenance(path, { ...model, mediaType: GLB_MEDIA_TYPE });
|
|
226
|
+
const provenance = await readNamedProvenance(path, { ...model, mediaType: GLB_MEDIA_TYPE }, { rejected: true });
|
|
227
|
+
await rejectedSource(model);
|
|
228
|
+
return provenance;
|
|
229
|
+
}
|