@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,389 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The extension ("pack") contract (design section 11), published as
|
|
3
|
+
* `@clockgrove/assetgrove/extension`. A package declares `"assetgrove": {"api": 3, "entry": "..."}`
|
|
4
|
+
* in its package.json and a peer range on `@clockgrove/assetgrove`; core loads it only when the
|
|
5
|
+
* developer settings list it, it speaks an api core speaks and the range admits core's version
|
|
6
|
+
* (src/extensions/registry.ts, src/extensions/version.ts). Its entry's default export is an
|
|
7
|
+
* `Extension`, or a function of the `ExtensionContext` that returns one. Runtime helpers reach a
|
|
8
|
+
* pack through the context, never through imports of core by path; this module exports types,
|
|
9
|
+
* `EXTENSION_API`, `EXTENSION_APIS` and zod's `z`.
|
|
10
|
+
*/
|
|
11
|
+
import { z } from "zod";
|
|
12
|
+
import type { ZodType } from "zod";
|
|
13
|
+
import type { HandoffPreset } from "../handoff/presets/index.ts";
|
|
14
|
+
import type { Generator } from "../generators/generator.ts";
|
|
15
|
+
import type { AdapterContext, ProviderAdapter } from "../providers/adapter.ts";
|
|
16
|
+
import type { SearchSettings } from "../settings.ts";
|
|
17
|
+
import type { prompt, qa, raster } from "./helpers.ts";
|
|
18
|
+
import type { SetupContext } from "./setup.ts";
|
|
19
|
+
/**
|
|
20
|
+
* The extension API version this build of Assetgrove speaks. Api 3 added the `audio` call kind
|
|
21
|
+
* (`CallKind`, `Caller.audio`, `GenerationProvider.generateAudio`).
|
|
22
|
+
*/
|
|
23
|
+
export declare const EXTENSION_API = 3;
|
|
24
|
+
/** Every extension API version this build loads; a pack declaring another is refused. */
|
|
25
|
+
export declare const EXTENSION_APIS: readonly number[];
|
|
26
|
+
/** The zod core validates preset options with, the same instance the context hands a pack. */
|
|
27
|
+
export { z };
|
|
28
|
+
export type { FrameLayout, FramesTrait } from "../frames.ts";
|
|
29
|
+
export type { AudioContext, MediaTrait } from "../media.ts";
|
|
30
|
+
/** An asset kind: one spec `kind`, its planned calls and how one candidate is made. */
|
|
31
|
+
export type AssetKind = Generator;
|
|
32
|
+
/**
|
|
33
|
+
* An engine hand-off preset a target profile's `handoff` list names: its async `write` gets `read`
|
|
34
|
+
* for the target, and `scope: "families"` makes it write for every family of an asset so far.
|
|
35
|
+
*/
|
|
36
|
+
export type EnginePreset<Options = unknown> = HandoffPreset<Options>;
|
|
37
|
+
/** What an extension supplies. Every id is `<name>:<id>`. */
|
|
38
|
+
export interface Extension {
|
|
39
|
+
api: typeof EXTENSION_API;
|
|
40
|
+
/** Lower-case letters, digits and hyphens; never `core`. */
|
|
41
|
+
name: string;
|
|
42
|
+
kinds?: AssetKind[];
|
|
43
|
+
presets?: EnginePreset[];
|
|
44
|
+
adapters?: ProviderAdapter[];
|
|
45
|
+
/**
|
|
46
|
+
* The zod schema of the pack's own settings, its block at `extensionSettings.<package>` in the
|
|
47
|
+
* developer settings. Core parses the block (`{}` when the developer wrote none), so the schema's
|
|
48
|
+
* defaults sit under the developer's values, and hands the result over as `context.settings`. An
|
|
49
|
+
* invalid block is refused at load, naming the pack and each field; without a schema, any block
|
|
50
|
+
* for the pack is refused.
|
|
51
|
+
*/
|
|
52
|
+
settingsSchema?: ZodType;
|
|
53
|
+
/**
|
|
54
|
+
* The optional search slot (design section 7.1): filled by the search package, which loads only
|
|
55
|
+
* when the settings list it. Core declares `find` and the `search` commands and calls the slot.
|
|
56
|
+
*/
|
|
57
|
+
search?: SearchSlot;
|
|
58
|
+
/**
|
|
59
|
+
* The programs the pack may run, each `{ id: "<name>:<id>", setting }`: `setting` names the
|
|
60
|
+
* top-level field of the pack's own settings that holds the executable's absolute path, so the
|
|
61
|
+
* program comes from the developer settings, never from a profile. A preset runs one only through
|
|
62
|
+
* its context's `run` (`ToolRunner`), under core's approval rules; an id it does not declare is
|
|
63
|
+
* refused.
|
|
64
|
+
*/
|
|
65
|
+
tools?: ToolDeclaration[];
|
|
66
|
+
/**
|
|
67
|
+
* Installs what the pack needs, when a person runs `assetgrove extensions setup <name>`: every
|
|
68
|
+
* download goes through `ctx.download`, pinned to a version and a sha256 or sha512 the pack ships.
|
|
69
|
+
*/
|
|
70
|
+
setup?(ctx: SetupContext): Promise<Record<string, unknown>>;
|
|
71
|
+
}
|
|
72
|
+
/** A program a pack declares (`Extension.tools`). */
|
|
73
|
+
export interface ToolDeclaration {
|
|
74
|
+
/** `<name>:<id>`. */
|
|
75
|
+
id: string;
|
|
76
|
+
/** The top-level field of the pack's settings holding the executable's absolute path. */
|
|
77
|
+
setting: string;
|
|
78
|
+
}
|
|
79
|
+
/** Where a search row comes from (design section 7.3). */
|
|
80
|
+
export type SearchSource = "pick" | "reference" | "candidate" | "folder";
|
|
81
|
+
/**
|
|
82
|
+
* One indexable file the library reader lists (design section 7.1): cheap to produce, no file
|
|
83
|
+
* contents read. `path` is `/`-separated inside the project, or absolute for a settings folder.
|
|
84
|
+
*/
|
|
85
|
+
export interface SearchLibraryItem {
|
|
86
|
+
path: string;
|
|
87
|
+
size: number;
|
|
88
|
+
mtimeMs: number;
|
|
89
|
+
source: SearchSource;
|
|
90
|
+
id: string;
|
|
91
|
+
address: string;
|
|
92
|
+
game?: string;
|
|
93
|
+
kind?: string;
|
|
94
|
+
subject?: string;
|
|
95
|
+
tags?: string[];
|
|
96
|
+
state?: string;
|
|
97
|
+
bible?: string;
|
|
98
|
+
license?: string;
|
|
99
|
+
origin?: string;
|
|
100
|
+
declaredOrigin?: string;
|
|
101
|
+
originEvidence?: string;
|
|
102
|
+
originSource?: string;
|
|
103
|
+
originLicense?: string;
|
|
104
|
+
digitalSourceType?: string;
|
|
105
|
+
title?: string;
|
|
106
|
+
description?: string;
|
|
107
|
+
width?: number;
|
|
108
|
+
height?: number;
|
|
109
|
+
/** An audio file's measured length, in seconds. */
|
|
110
|
+
durationS?: number;
|
|
111
|
+
/** A music card's `form` (`track` or `cue`). */
|
|
112
|
+
form?: string;
|
|
113
|
+
/** A music card's requested tempo, in beats per minute. */
|
|
114
|
+
tempo?: number;
|
|
115
|
+
mediaType?: string;
|
|
116
|
+
mediaSha256?: string;
|
|
117
|
+
mediaStatus?: "available" | "unavailable";
|
|
118
|
+
mediaReason?: string;
|
|
119
|
+
/** The card fields and body joined: shared text, full-text indexed and embedded. */
|
|
120
|
+
text?: string;
|
|
121
|
+
}
|
|
122
|
+
/** An item loaded on demand: the media's bytes and each image view to embed (none for 3D or a pointer). */
|
|
123
|
+
export interface SearchLoadedItem {
|
|
124
|
+
bytes: Uint8Array;
|
|
125
|
+
views: {
|
|
126
|
+
view: string;
|
|
127
|
+
image: Uint8Array;
|
|
128
|
+
}[];
|
|
129
|
+
}
|
|
130
|
+
/** The library reader core supplies; the path rule and LFS pointer handling apply to every read. */
|
|
131
|
+
export interface SearchLibrary {
|
|
132
|
+
/** Every indexable file; with `sources`, only those sources. */
|
|
133
|
+
list(sources?: readonly SearchSource[]): Promise<SearchLibraryItem[]>;
|
|
134
|
+
load(item: SearchLibraryItem): Promise<SearchLoadedItem>;
|
|
135
|
+
/** The commit the project's work tree is on; empty outside Git or before the first commit. */
|
|
136
|
+
head(): Promise<string>;
|
|
137
|
+
/** Whether nothing under the library root differs from HEAD (no change, staged or not, nor untracked file). */
|
|
138
|
+
clean(): Promise<boolean>;
|
|
139
|
+
/**
|
|
140
|
+
* The repository's identity across its clones: its root commit ids, sorted and space-joined.
|
|
141
|
+
* Empty outside Git, before the first commit, or in a shallow clone, whose roots are not the
|
|
142
|
+
* repository's. A shared index keys its rows by this and the game id.
|
|
143
|
+
*/
|
|
144
|
+
origin(): Promise<string>;
|
|
145
|
+
/**
|
|
146
|
+
* Whether anything the shared index covers (the library root, the style bible and its reference
|
|
147
|
+
* files) differs between `commit` and HEAD: `git diff --quiet <commit> HEAD -- <paths>`. True
|
|
148
|
+
* when Git cannot tell (outside Git, or a commit this clone lacks). Optional in the contract: a
|
|
149
|
+
* library without it leaves a shared index fresh only at the commit it was built from.
|
|
150
|
+
*/
|
|
151
|
+
changedSince?(commit: string): Promise<boolean>;
|
|
152
|
+
}
|
|
153
|
+
/** What core hands each search slot call. */
|
|
154
|
+
export interface SearchContext {
|
|
155
|
+
/** The developer settings' stateDir; the local store is `<stateDir>/search`. */
|
|
156
|
+
stateDir: string;
|
|
157
|
+
/** The project directory: `--target`, else the working directory's Git top level. */
|
|
158
|
+
worktree: string;
|
|
159
|
+
/** The game id, the first segment of every `asset://` address. */
|
|
160
|
+
game: string;
|
|
161
|
+
/** The settings' search block with every default filled. */
|
|
162
|
+
settings: SearchSettings;
|
|
163
|
+
library: SearchLibrary;
|
|
164
|
+
/** The environment the credential variables named by `store.credentialsEnv` are read from. */
|
|
165
|
+
env: Record<string, string | undefined>;
|
|
166
|
+
/**
|
|
167
|
+
* The hosted embedder (design section 7.7), set only when `search.embedder` is `route`: the
|
|
168
|
+
* provider and model the `embeddings` role resolves to.
|
|
169
|
+
*/
|
|
170
|
+
embedder?: SearchRouteEmbedder;
|
|
171
|
+
log(message: string): void;
|
|
172
|
+
}
|
|
173
|
+
/** The hosted embedder core resolved from the `embeddings` role. */
|
|
174
|
+
export interface SearchRouteEmbedder {
|
|
175
|
+
/** The settings id of the provider the route names. */
|
|
176
|
+
route: string;
|
|
177
|
+
/** The route's model. */
|
|
178
|
+
model: string;
|
|
179
|
+
/** The vector width core asks the route for. */
|
|
180
|
+
dimension: number;
|
|
181
|
+
/**
|
|
182
|
+
* Embeds one image (encoded bytes) or one text through core's `Caller`: reserved against the
|
|
183
|
+
* caps, journalled and recorded in the spend ledger. Present only inside a confirmed paid run
|
|
184
|
+
* (`find` with words or an image, `search index`); absent, nothing may call the provider, and
|
|
185
|
+
* the slot answers from vectors already stored.
|
|
186
|
+
*/
|
|
187
|
+
embed?(input: {
|
|
188
|
+
image: Uint8Array;
|
|
189
|
+
} | {
|
|
190
|
+
text: string;
|
|
191
|
+
}): Promise<number[]>;
|
|
192
|
+
}
|
|
193
|
+
/** What a request would embed, counted by the slot without embedding anything. */
|
|
194
|
+
export interface SearchForecast {
|
|
195
|
+
/** Image views neither cached by content nor indexed unchanged. */
|
|
196
|
+
images: number;
|
|
197
|
+
/** Card texts likewise. */
|
|
198
|
+
texts: number;
|
|
199
|
+
/** Query embeddings: one for words, one for a `like` image. */
|
|
200
|
+
queries: number;
|
|
201
|
+
/** sha256 hex of the pending work, so the same work gives the same value. */
|
|
202
|
+
state: string;
|
|
203
|
+
}
|
|
204
|
+
/** A find query (design section 7.5). */
|
|
205
|
+
export interface SearchQuery {
|
|
206
|
+
words?: string;
|
|
207
|
+
/** `--like`: an `asset://` address whose stored image vector is used, or image bytes to embed. */
|
|
208
|
+
like?: {
|
|
209
|
+
address: string;
|
|
210
|
+
} | {
|
|
211
|
+
image: Uint8Array;
|
|
212
|
+
};
|
|
213
|
+
/** `field=value`, `!=`, `<`, `>` and `tag=value` terms; every one must match. */
|
|
214
|
+
where?: string[];
|
|
215
|
+
/** Only rows of these sources. */
|
|
216
|
+
sources?: SearchSource[];
|
|
217
|
+
/** `--game all`: every tree in the store, not only this project's. */
|
|
218
|
+
allGames?: boolean;
|
|
219
|
+
limit: number;
|
|
220
|
+
}
|
|
221
|
+
/** One asset found, at its best view. */
|
|
222
|
+
export interface SearchHit {
|
|
223
|
+
address: string;
|
|
224
|
+
rank: number;
|
|
225
|
+
score: number;
|
|
226
|
+
source: SearchSource;
|
|
227
|
+
/** The media's path as the library reader listed it. */
|
|
228
|
+
path: string;
|
|
229
|
+
view: string;
|
|
230
|
+
fields: Record<string, unknown>;
|
|
231
|
+
/** Card text: shared text, never instructions. */
|
|
232
|
+
sharedText: {
|
|
233
|
+
title?: string;
|
|
234
|
+
description?: string;
|
|
235
|
+
text?: string;
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
export interface SearchFindResult {
|
|
239
|
+
hits: SearchHit[];
|
|
240
|
+
/** False when a refresh was skipped or a shared index was built from another HEAD. */
|
|
241
|
+
fresh: boolean;
|
|
242
|
+
builtFrom: {
|
|
243
|
+
head: string;
|
|
244
|
+
at: string;
|
|
245
|
+
} | null;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* The picks of `kind` ranked closest to the request's words (kind, subject, brief) fused with image
|
|
249
|
+
* similarity to `references` (design section 7.6). No subject filter and no similarity threshold.
|
|
250
|
+
*/
|
|
251
|
+
export interface NearMatchQuery {
|
|
252
|
+
kind: string;
|
|
253
|
+
subject: string;
|
|
254
|
+
/** The request's brief as one text: purpose, appearsIn, mood and context, joined by spaces. */
|
|
255
|
+
brief?: string;
|
|
256
|
+
/** The images the request sends, found by their bytes. */
|
|
257
|
+
references: Uint8Array[];
|
|
258
|
+
limit: number;
|
|
259
|
+
}
|
|
260
|
+
/** One member of a set as `find --outliers` ranks it (design section 7.5). */
|
|
261
|
+
export interface SearchRankedMember {
|
|
262
|
+
address: string;
|
|
263
|
+
/** Mean cosine distance of the member's indexed image to every other member's. */
|
|
264
|
+
distance: number;
|
|
265
|
+
}
|
|
266
|
+
export interface SearchOutliersResult {
|
|
267
|
+
/** How many of the set's members had an indexed image. */
|
|
268
|
+
members: number;
|
|
269
|
+
/**
|
|
270
|
+
* Every one of those members, most distant first, uncut: a free ranking, never a verdict. Core
|
|
271
|
+
* asks a `style-outlier` decision which of the most distant are drawn in another style.
|
|
272
|
+
*/
|
|
273
|
+
ranking: SearchRankedMember[];
|
|
274
|
+
}
|
|
275
|
+
/** The search slot's operations; each result is a JSON object core passes on as the command's fields. */
|
|
276
|
+
export interface SearchSlot {
|
|
277
|
+
/**
|
|
278
|
+
* The picks of the query's kind ranked closest to its words (kind, subject, brief) fused with
|
|
279
|
+
* image similarity to its references; no subject filter, no threshold. Optional: a slot without it gives no near matches.
|
|
280
|
+
*/
|
|
281
|
+
nearMatch?(query: NearMatchQuery, ctx: SearchContext): Promise<SearchFindResult>;
|
|
282
|
+
find(query: SearchQuery, ctx: SearchContext): Promise<SearchFindResult>;
|
|
283
|
+
/** Every member of a set of asset addresses ranked by its indexed image's distance to the rest. */
|
|
284
|
+
outliers(addresses: string[], ctx: SearchContext): Promise<SearchOutliersResult>;
|
|
285
|
+
index(options: {
|
|
286
|
+
rebuild?: boolean;
|
|
287
|
+
}, ctx: SearchContext): Promise<Record<string, unknown>>;
|
|
288
|
+
status(ctx: SearchContext): Promise<Record<string, unknown>>;
|
|
289
|
+
/**
|
|
290
|
+
* The free plan step of a hosted embedder's paid request (design section 7.7): what `index` or
|
|
291
|
+
* `find` would embed, counted from the index and the library without calling the embedder.
|
|
292
|
+
*/
|
|
293
|
+
forecast?(request: {
|
|
294
|
+
index: {
|
|
295
|
+
rebuild?: boolean;
|
|
296
|
+
};
|
|
297
|
+
} | {
|
|
298
|
+
find: SearchQuery;
|
|
299
|
+
}, ctx: SearchContext): Promise<SearchForecast>;
|
|
300
|
+
}
|
|
301
|
+
/** Core's raster functions: decode, encode, crop, scale, palette and grid (src/extension/helpers.ts). */
|
|
302
|
+
export type RasterHelpers = typeof raster;
|
|
303
|
+
/** Core's deterministic QA checks. */
|
|
304
|
+
export type QaHelpers = typeof qa;
|
|
305
|
+
/** The bible-to-prompt compiler. */
|
|
306
|
+
export type PromptHelpers = typeof prompt;
|
|
307
|
+
/** Core's audio helpers (src/extension/helpers.ts). */
|
|
308
|
+
export interface AudioHelpers {
|
|
309
|
+
/** The first forward loop of a WAV's RIFF `smpl` chunk in sample frames, `end` exclusive as Godot reads it; undefined without one. */
|
|
310
|
+
wavLoop(bytes: Uint8Array): {
|
|
311
|
+
start: number;
|
|
312
|
+
end: number;
|
|
313
|
+
} | undefined;
|
|
314
|
+
/**
|
|
315
|
+
* The Ogg Vorbis rendition of a WAV master, as `rendition` builds it with the recipe
|
|
316
|
+
* `[{ op: "encode", params: { quality } }]` (quality default 5): the master's AI mark carried as
|
|
317
|
+
* Vorbis comments. Unsigned: a hand-off signs its C2PA sidecar. Reads no settings, writes nothing
|
|
318
|
+
* the caller sees.
|
|
319
|
+
*/
|
|
320
|
+
oggRendition(master: Uint8Array, options?: {
|
|
321
|
+
quality?: number;
|
|
322
|
+
}): Promise<{
|
|
323
|
+
bytes: Uint8Array;
|
|
324
|
+
/** The rendition's build: source sha256, resolved recipe, encoders (as `rendition`'s `build`). */
|
|
325
|
+
build: Record<string, unknown>;
|
|
326
|
+
digest: string;
|
|
327
|
+
}>;
|
|
328
|
+
}
|
|
329
|
+
/** The run a call is made in, when a paid command's executor opened one. */
|
|
330
|
+
export interface RunInfo {
|
|
331
|
+
/** Whether the run holds a verified confirmation to spend. */
|
|
332
|
+
cleared: boolean;
|
|
333
|
+
/** The run's id and directory, when it has a run directory. */
|
|
334
|
+
id?: string;
|
|
335
|
+
dir?: string;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* What core hands an entry's default export when it is a function: everything a pack needs from
|
|
339
|
+
* core, so it imports none of core's modules by path.
|
|
340
|
+
*/
|
|
341
|
+
export interface ExtensionContext<Settings = Record<string, unknown>> {
|
|
342
|
+
api: typeof EXTENSION_API;
|
|
343
|
+
/**
|
|
344
|
+
* The pack's settings: its `extensionSettings` block parsed by its `settingsSchema`, defaults
|
|
345
|
+
* filled; `{}` when it declares none. Core fills it once the entry has returned the extension and
|
|
346
|
+
* the block has passed, so reading it inside the entry's factory throws: read it when a kind,
|
|
347
|
+
* preset or adapter runs. Optional in the type only so a hand-made context still compiles.
|
|
348
|
+
*/
|
|
349
|
+
readonly settings?: Readonly<Settings>;
|
|
350
|
+
/** The zod core validates preset options with. */
|
|
351
|
+
z: typeof z;
|
|
352
|
+
raster: RasterHelpers;
|
|
353
|
+
qa: QaHelpers;
|
|
354
|
+
prompt: PromptHelpers;
|
|
355
|
+
audio: AudioHelpers;
|
|
356
|
+
/**
|
|
357
|
+
* The guarded `fetch` for one provider instance: it refuses any host outside the adapter's
|
|
358
|
+
* `fixedHosts` and the settings `baseURL` (when `endpointFromSettings`), re-checking every
|
|
359
|
+
* redirect hop. Core hands the same as `AdapterContext.fetch`. It guards provider-steered URLs,
|
|
360
|
+
* not pack code: a pack's SDK must take it as its `fetch`.
|
|
361
|
+
*/
|
|
362
|
+
http(adapter: Pick<ProviderAdapter, "id" | "fixedHosts" | "endpointFromSettings">, c?: Pick<AdapterContext, "baseURL">): typeof fetch;
|
|
363
|
+
run: {
|
|
364
|
+
/** The current run, or undefined outside one. */
|
|
365
|
+
current(): RunInfo | undefined;
|
|
366
|
+
};
|
|
367
|
+
/** One line to stderr, prefixed with the pack's package name. */
|
|
368
|
+
log(message: string): void;
|
|
369
|
+
}
|
|
370
|
+
/** An entry module's default export. */
|
|
371
|
+
export type ExtensionEntry = Extension | ((context: ExtensionContext) => Extension | Promise<Extension>);
|
|
372
|
+
export type { GeneratedCandidate, GeneratorContext, KindCheck, KindCheckInput, KindImport, KindImportInput, KindProposeInput, KindRead, PlannedCall, } from "../generators/generator.ts";
|
|
373
|
+
export type { Caller } from "../calls.ts";
|
|
374
|
+
export type { ToolOutputFile, ToolResult, ToolRunOptions, ToolRunner, ToolStep } from "./tools.ts";
|
|
375
|
+
export type { PinnedDownload, SetupContext } from "./setup.ts";
|
|
376
|
+
export type { FilteringState, StabilityEntry } from "../qa/stability.ts";
|
|
377
|
+
export type { CallParameterName, CallParameters, KeyedCallParameters, PlannedCallParameters, } from "../call-parameters.ts";
|
|
378
|
+
export type { Raster } from "../image/raster.ts";
|
|
379
|
+
export type { DoctorContext, DoctorFinding, FamiliesContext, HandedOffFamily, PresetContext, PresetFile, TargetEntry, TargetRead, UsageCache, UsageContext, UsageReference, UsageReport, } from "../handoff/presets/index.ts";
|
|
380
|
+
export type { AdapterContext, Capability, ProviderAdapter } from "../providers/adapter.ts";
|
|
381
|
+
export type { AccountReading, AccountRoute, AnimateRequest, AudioRequest, AudioResult, Billing, CallKind, CallTypes, DecisionAnswer, DecisionQuestion, DecisionRequest, DecisionResult, DecisionSource, DeclaredLimit, EmbedRequest, EmbedResult, GenerationProvider, ImageInput, ImageOutputParameters, ImageRequest, ImageResult, JobProvider, JobStatus, LimitReading, ModelRequest, ModelResult, ModelView, ProviderJobs, ProviderResult, RigRequest, VisionRequest, VisionResult, } from "../gateway/provider.ts";
|
|
382
|
+
export type { Route, Routes } from "../routes.ts";
|
|
383
|
+
export type { AudioParameterName, AudioParameters } from "../audio-parameters.ts";
|
|
384
|
+
export type { ProviderSettings } from "../settings.ts";
|
|
385
|
+
export type { SearchSettings, SearchStoreSettings } from "../settings.ts";
|
|
386
|
+
export type { AssetSpec, Box, LoadedReference, MediaOutput, Point, QaResult, Reason, Rgb, Size, StyleBible, StyleProfile, TargetProfile, } from "../types.ts";
|
|
387
|
+
export type { ResolvedStyle } from "../style.ts";
|
|
388
|
+
export type { SpecExpectation } from "../qa.ts";
|
|
389
|
+
export type { FrameGrid } from "../request.ts";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The extension ("pack") contract (design section 11), published as
|
|
3
|
+
* `@clockgrove/assetgrove/extension`. A package declares `"assetgrove": {"api": 3, "entry": "..."}`
|
|
4
|
+
* in its package.json and a peer range on `@clockgrove/assetgrove`; core loads it only when the
|
|
5
|
+
* developer settings list it, it speaks an api core speaks and the range admits core's version
|
|
6
|
+
* (src/extensions/registry.ts, src/extensions/version.ts). Its entry's default export is an
|
|
7
|
+
* `Extension`, or a function of the `ExtensionContext` that returns one. Runtime helpers reach a
|
|
8
|
+
* pack through the context, never through imports of core by path; this module exports types,
|
|
9
|
+
* `EXTENSION_API`, `EXTENSION_APIS` and zod's `z`.
|
|
10
|
+
*/
|
|
11
|
+
import { z } from "zod";
|
|
12
|
+
/**
|
|
13
|
+
* The extension API version this build of Assetgrove speaks. Api 3 added the `audio` call kind
|
|
14
|
+
* (`CallKind`, `Caller.audio`, `GenerationProvider.generateAudio`).
|
|
15
|
+
*/
|
|
16
|
+
export const EXTENSION_API = 3;
|
|
17
|
+
/** Every extension API version this build loads; a pack declaring another is refused. */
|
|
18
|
+
export const EXTENSION_APIS = [EXTENSION_API];
|
|
19
|
+
/** The zod core validates preset options with, the same instance the context hands a pack. */
|
|
20
|
+
export { z };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ExtensionContext } from "./api.ts";
|
|
2
|
+
/** Fills `context.settings` with the pack's validated settings (src/extensions/registry.ts). */
|
|
3
|
+
export declare function bindExtensionSettings(context: ExtensionContext, settings: Record<string, unknown>): void;
|
|
4
|
+
/**
|
|
5
|
+
* The context for the pack `name`; `log` writes one line per message to `write` (stderr). With
|
|
6
|
+
* `settings` (the test kit's), `context.settings` holds them from the start; otherwise core fills
|
|
7
|
+
* it after the pack's block passes its schema.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createExtensionContext(name: string, write?: (line: string) => void, settings?: Record<string, unknown>): ExtensionContext;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `ExtensionContext` core hands a pack's entry (design section 11): zod, core's raster, QA and
|
|
3
|
+
* prompt helpers, the host-guarded `http`, the current run, a logger and the pack's settings.
|
|
4
|
+
*/
|
|
5
|
+
import { dirname } from "node:path";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
import { currentRunScope } from "../runs/journal.js";
|
|
8
|
+
import { EXTENSION_API } from "./api.js";
|
|
9
|
+
import { audio, prompt, qa, raster } from "./helpers.js";
|
|
10
|
+
import { allowedHosts, guardedFetch } from "./http.js";
|
|
11
|
+
/** Each context's settings slot, filled once core has validated the pack's block. */
|
|
12
|
+
const SETTINGS = new WeakMap();
|
|
13
|
+
/** Fills `context.settings` with the pack's validated settings (src/extensions/registry.ts). */
|
|
14
|
+
export function bindExtensionSettings(context, settings) {
|
|
15
|
+
const slot = SETTINGS.get(context);
|
|
16
|
+
if (slot === undefined)
|
|
17
|
+
throw new Error("not a context core made");
|
|
18
|
+
slot.value = Object.freeze({ ...settings });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The context for the pack `name`; `log` writes one line per message to `write` (stderr). With
|
|
22
|
+
* `settings` (the test kit's), `context.settings` holds them from the start; otherwise core fills
|
|
23
|
+
* it after the pack's block passes its schema.
|
|
24
|
+
*/
|
|
25
|
+
export function createExtensionContext(name, write = (line) => process.stderr.write(`${line}\n`), settings) {
|
|
26
|
+
const slot = {};
|
|
27
|
+
const context = Object.freeze({
|
|
28
|
+
api: EXTENSION_API,
|
|
29
|
+
z,
|
|
30
|
+
raster,
|
|
31
|
+
qa,
|
|
32
|
+
prompt,
|
|
33
|
+
audio,
|
|
34
|
+
http: (adapter, c) => guardedFetch({ adapter: adapter.id, hosts: allowedHosts(adapter, c?.baseURL) }),
|
|
35
|
+
run: Object.freeze({
|
|
36
|
+
current: () => {
|
|
37
|
+
const scope = currentRunScope();
|
|
38
|
+
if (scope === undefined)
|
|
39
|
+
return undefined;
|
|
40
|
+
return {
|
|
41
|
+
cleared: scope.clearance !== undefined,
|
|
42
|
+
...(scope.journal !== undefined && {
|
|
43
|
+
id: scope.journal.runId,
|
|
44
|
+
dir: dirname(scope.journal.dir),
|
|
45
|
+
}),
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
}),
|
|
49
|
+
log: (message) => write(`[${name}] ${message}`),
|
|
50
|
+
get settings() {
|
|
51
|
+
if (slot.value === undefined)
|
|
52
|
+
throw new Error(`the settings of ${name} are handed over once core has checked them against its settingsSchema, after the entry returns: read context.settings when a kind, preset or adapter runs, not in the entry's factory`);
|
|
53
|
+
return slot.value;
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
SETTINGS.set(context, slot);
|
|
57
|
+
if (settings !== undefined)
|
|
58
|
+
bindExtensionSettings(context, settings);
|
|
59
|
+
return context;
|
|
60
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { readWavLoop } from "../audio/engine.ts";
|
|
2
|
+
import { biblePalette } from "../bible.ts";
|
|
3
|
+
import { applyStyle } from "../image/apply-style.ts";
|
|
4
|
+
import { createRaster, decodeImage, decodePng, encodePng, getPixel, opaqueBox, parseHex, setPixel, toHex } from "../image/raster.ts";
|
|
5
|
+
import { flipHorizontal, resampleTo } from "../image/resample.ts";
|
|
6
|
+
import { isCutOut, sideBySide } from "../postprocess.ts";
|
|
7
|
+
import { combineQa, deterministicChecks } from "../qa.ts";
|
|
8
|
+
import type { Raster } from "../image/raster.ts";
|
|
9
|
+
import type { TargetProfile } from "../types.ts";
|
|
10
|
+
import { buildFramePrompt, buildStillPrompt, frameGrid, paletteSwatch, styleNotes, subjectOf, withNote } from "../request.ts";
|
|
11
|
+
import { resolveStyle } from "../style.ts";
|
|
12
|
+
import { boundsAt, cropRaster } from "../transform/raster-engine.ts";
|
|
13
|
+
/** Decode, encode, crop, scale, palette and grid functions over core's RGBA `Raster`. */
|
|
14
|
+
export declare const raster: Readonly<{
|
|
15
|
+
create: typeof createRaster;
|
|
16
|
+
getPixel: typeof getPixel;
|
|
17
|
+
setPixel: typeof setPixel;
|
|
18
|
+
/** Any image format core decodes, to RGBA. */
|
|
19
|
+
decode: typeof decodeImage;
|
|
20
|
+
decodePng: typeof decodePng;
|
|
21
|
+
encodePng: typeof encodePng;
|
|
22
|
+
crop: typeof cropRaster;
|
|
23
|
+
/** The bounding box of pixels whose alpha is at least `threshold`. */
|
|
24
|
+
bounds: typeof boundsAt;
|
|
25
|
+
opaqueBox: typeof opaqueBox;
|
|
26
|
+
/** Resample by `scale` at `offset` into `size`, antialiased or crisp. */
|
|
27
|
+
scale: typeof resampleTo;
|
|
28
|
+
flipHorizontal: typeof flipHorizontal;
|
|
29
|
+
parseHex: typeof parseHex;
|
|
30
|
+
toHex: typeof toHex;
|
|
31
|
+
/** The style bible's palette, as `#rrggbb` strings. */
|
|
32
|
+
palette: typeof biblePalette;
|
|
33
|
+
/** A PNG swatch of a palette, as a loaded reference image. */
|
|
34
|
+
paletteSwatch: typeof paletteSwatch;
|
|
35
|
+
/** Re-applies a resolved style's alpha and colour rule (palette snap). */
|
|
36
|
+
applyStyle: typeof applyStyle;
|
|
37
|
+
resolveStyle: typeof resolveStyle;
|
|
38
|
+
/** Frames laid side by side in one strip. */
|
|
39
|
+
grid: typeof sideBySide;
|
|
40
|
+
/** A spec's frame size and count, from the spec and the target profile. */
|
|
41
|
+
frameGrid: typeof frameGrid;
|
|
42
|
+
}>;
|
|
43
|
+
/** Core's deterministic QA checks: free, reproducible, no provider call. */
|
|
44
|
+
export declare const qa: Readonly<{
|
|
45
|
+
/** A strip's frame size, count, transparency and palette checks against a spec's expectation. */
|
|
46
|
+
deterministicChecks: typeof deterministicChecks;
|
|
47
|
+
/** Whether an image has a transparent background (a cut-out). */
|
|
48
|
+
isCutOut: typeof isCutOut;
|
|
49
|
+
/** The verdict of a candidate's reasons. */
|
|
50
|
+
combine: typeof combineQa;
|
|
51
|
+
/**
|
|
52
|
+
* Whether frames loop without a visible jump, measured as a character strip's `loop-seam` check:
|
|
53
|
+
* the last → first frame distance against the profile's `animation.thresholds`.
|
|
54
|
+
*/
|
|
55
|
+
loopSeam: (frames: Raster[], threshold: number, profile?: Pick<TargetProfile, "animation">) => import("../animation/qa.ts").LoopSeam;
|
|
56
|
+
}>;
|
|
57
|
+
/** The bible-to-prompt compiler: the prompts core's own kinds send. */
|
|
58
|
+
export declare const prompt: Readonly<{
|
|
59
|
+
still: typeof buildStillPrompt;
|
|
60
|
+
frame: typeof buildFramePrompt;
|
|
61
|
+
styleNotes: typeof styleNotes;
|
|
62
|
+
subjectOf: typeof subjectOf;
|
|
63
|
+
withNote: typeof withNote;
|
|
64
|
+
}>;
|
|
65
|
+
/** Core's audio helpers: a WAV's loop points and the Ogg rendition a hand-off would deliver. */
|
|
66
|
+
export declare const audio: Readonly<{
|
|
67
|
+
wavLoop: typeof readWavLoop;
|
|
68
|
+
oggRendition(master: Uint8Array, options?: {
|
|
69
|
+
quality?: number;
|
|
70
|
+
}): Promise<{
|
|
71
|
+
bytes: Uint8Array<ArrayBufferLike>;
|
|
72
|
+
build: Record<string, unknown>;
|
|
73
|
+
digest: string;
|
|
74
|
+
}>;
|
|
75
|
+
}>;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core's helpers a pack reaches through its `ExtensionContext` (design section 11), so it never
|
|
3
|
+
* copies core's raster, QA or prompt code nor imports core by path. Each is core's own function.
|
|
4
|
+
*/
|
|
5
|
+
import { mkdir, mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
6
|
+
import { tmpdir } from "node:os";
|
|
7
|
+
import { join } from "node:path";
|
|
8
|
+
import { readWavLoop } from "../audio/engine.js";
|
|
9
|
+
import { biblePalette } from "../bible.js";
|
|
10
|
+
import { applyStyle } from "../image/apply-style.js";
|
|
11
|
+
import { createRaster, decodeImage, decodePng, encodePng, getPixel, opaqueBox, parseHex, setPixel, toHex, } from "../image/raster.js";
|
|
12
|
+
import { flipHorizontal, resampleTo } from "../image/resample.js";
|
|
13
|
+
import { isCutOut, sideBySide } from "../postprocess.js";
|
|
14
|
+
import { combineQa, deterministicChecks } from "../qa.js";
|
|
15
|
+
import { loopSeam } from "../animation/qa.js";
|
|
16
|
+
import { thresholdsFor } from "../animation/templates.js";
|
|
17
|
+
import { buildFramePrompt, buildStillPrompt, frameGrid, paletteSwatch, styleNotes, subjectOf, withNote, } from "../request.js";
|
|
18
|
+
import { resolveStyle } from "../style.js";
|
|
19
|
+
import { sha256Hex } from "../library/canonical.js";
|
|
20
|
+
import { boundsAt, cropRaster } from "../transform/raster-engine.js";
|
|
21
|
+
import { buildRendition } from "../transform/rendition.js";
|
|
22
|
+
/** Decode, encode, crop, scale, palette and grid functions over core's RGBA `Raster`. */
|
|
23
|
+
export const raster = Object.freeze({
|
|
24
|
+
create: createRaster,
|
|
25
|
+
getPixel,
|
|
26
|
+
setPixel,
|
|
27
|
+
/** Any image format core decodes, to RGBA. */
|
|
28
|
+
decode: decodeImage,
|
|
29
|
+
decodePng,
|
|
30
|
+
encodePng,
|
|
31
|
+
crop: cropRaster,
|
|
32
|
+
/** The bounding box of pixels whose alpha is at least `threshold`. */
|
|
33
|
+
bounds: boundsAt,
|
|
34
|
+
opaqueBox,
|
|
35
|
+
/** Resample by `scale` at `offset` into `size`, antialiased or crisp. */
|
|
36
|
+
scale: resampleTo,
|
|
37
|
+
flipHorizontal,
|
|
38
|
+
parseHex,
|
|
39
|
+
toHex,
|
|
40
|
+
/** The style bible's palette, as `#rrggbb` strings. */
|
|
41
|
+
palette: biblePalette,
|
|
42
|
+
/** A PNG swatch of a palette, as a loaded reference image. */
|
|
43
|
+
paletteSwatch,
|
|
44
|
+
/** Re-applies a resolved style's alpha and colour rule (palette snap). */
|
|
45
|
+
applyStyle,
|
|
46
|
+
resolveStyle,
|
|
47
|
+
/** Frames laid side by side in one strip. */
|
|
48
|
+
grid: sideBySide,
|
|
49
|
+
/** A spec's frame size and count, from the spec and the target profile. */
|
|
50
|
+
frameGrid,
|
|
51
|
+
});
|
|
52
|
+
/** Core's deterministic QA checks: free, reproducible, no provider call. */
|
|
53
|
+
export const qa = Object.freeze({
|
|
54
|
+
/** A strip's frame size, count, transparency and palette checks against a spec's expectation. */
|
|
55
|
+
deterministicChecks,
|
|
56
|
+
/** Whether an image has a transparent background (a cut-out). */
|
|
57
|
+
isCutOut,
|
|
58
|
+
/** The verdict of a candidate's reasons. */
|
|
59
|
+
combine: combineQa,
|
|
60
|
+
/**
|
|
61
|
+
* Whether frames loop without a visible jump, measured as a character strip's `loop-seam` check:
|
|
62
|
+
* the last → first frame distance against the profile's `animation.thresholds`.
|
|
63
|
+
*/
|
|
64
|
+
loopSeam: (frames, threshold, profile) => loopSeam(frames, threshold, thresholdsFor(profile)),
|
|
65
|
+
});
|
|
66
|
+
/** The bible-to-prompt compiler: the prompts core's own kinds send. */
|
|
67
|
+
export const prompt = Object.freeze({
|
|
68
|
+
still: buildStillPrompt,
|
|
69
|
+
frame: buildFramePrompt,
|
|
70
|
+
styleNotes,
|
|
71
|
+
subjectOf,
|
|
72
|
+
withNote,
|
|
73
|
+
});
|
|
74
|
+
/** Core's audio helpers: a WAV's loop points and the Ogg rendition a hand-off would deliver. */
|
|
75
|
+
export const audio = Object.freeze({
|
|
76
|
+
wavLoop: readWavLoop,
|
|
77
|
+
async oggRendition(master, options = {}) {
|
|
78
|
+
const dir = await mkdtemp(join(tmpdir(), "assetgrove-ogg-"));
|
|
79
|
+
try {
|
|
80
|
+
const recipes = join(dir, "recipes");
|
|
81
|
+
const source = join(dir, "master.wav");
|
|
82
|
+
await mkdir(recipes);
|
|
83
|
+
await writeFile(source, master);
|
|
84
|
+
await writeFile(join(recipes, "ogg.json"), JSON.stringify({
|
|
85
|
+
format: "assetgrove-recipe/1",
|
|
86
|
+
steps: [{ op: "encode", params: { quality: options.quality ?? 5 } }],
|
|
87
|
+
}));
|
|
88
|
+
const built = await buildRendition({
|
|
89
|
+
recipes,
|
|
90
|
+
recipe: "ogg",
|
|
91
|
+
source,
|
|
92
|
+
sourceSha256: sha256Hex(master),
|
|
93
|
+
out: join(dir, "out"),
|
|
94
|
+
preview: true,
|
|
95
|
+
sidecars: false,
|
|
96
|
+
});
|
|
97
|
+
return {
|
|
98
|
+
bytes: built.files[0].bytes,
|
|
99
|
+
build: built.record.rendition.build,
|
|
100
|
+
digest: built.digest,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
finally {
|
|
104
|
+
await rm(dir, { recursive: true, force: true });
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
});
|