@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
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Clockgrove
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,278 @@
|
|
|
1
|
-
|
|
1
|
+
<img src="docs/img/icon.png" alt="Assetgrove logo: a palette cut from a log slice" width="96">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# Assetgrove
|
|
4
|
+
|
|
5
|
+
Assetgrove is a command-line tool and MCP server that generates game art (stills, sprite strips and animation sheets, material maps, rigged 3D characters) through image and 3D generation models you hold the keys for. It filters the results against your game's spec, shows a person the candidates, and writes the one they pick into the game's repository with a record of how it was made.
|
|
6
|
+
|
|
7
|
+
It is for solo developers and small teams who have chosen AI-made art and want it consistent, traceable and bounded in cost, working from a terminal or from a coding agent (Claude Code, Codex, GitHub Copilot CLI). It is a development tool: a game never depends on it at runtime.
|
|
8
|
+
|
|
9
|
+
Before you go further:
|
|
10
|
+
|
|
11
|
+
- **It is not on npm yet.** It is at 0.3.2. Until 1.0.0 is published to npm, each version is a [GitHub release](https://github.com/clockgrove/assetgrove/releases) with its packages attached ([Status](#status)).
|
|
12
|
+
- **Generation costs money, billed by the provider to your own account.** Assetgrove has no hosted service, sells no credits and takes no payment. Its spend caps are local estimates that refuse a call before it is made; the hard limit is the one you set with the provider ([Cost and control](#cost-and-control)).
|
|
13
|
+
- **Model-backed QA is advisory.** Deterministic checks filter candidates. A vision model's verdict is recorded and shown beside each candidate but filters nothing in this version ([why](docs/decisions.md#model-backed-checks-advisory-at-01)).
|
|
14
|
+
|
|
15
|
+
## Is it a fit?
|
|
16
|
+
|
|
17
|
+
A good fit when:
|
|
18
|
+
|
|
19
|
+
- you want many assets in one style, described once in a style bible, with each request built from a spec, not a freehand prompt;
|
|
20
|
+
- you want every file traceable: model, route, prompt, parameters, reference hashes, request IDs, time, cost and the provider's terms;
|
|
21
|
+
- you bring your own keys: the Vercel AI Gateway, Anthropic, OpenAI, Tripo, or a local OpenAI-compatible server;
|
|
22
|
+
- an agent does the generating and a person keeps the decisions: picking, approving and raising spend limits.
|
|
23
|
+
|
|
24
|
+
A poor fit when:
|
|
25
|
+
|
|
26
|
+
- you want a hosted product with accounts, credits or an editor. There is none ([non-goals](docs/PRD.md#non-goals));
|
|
27
|
+
- you want art accepted automatically because a check passed. Nothing is picked or approved without a person;
|
|
28
|
+
- you need engine import files for an engine other than Godot. Hand-off writes a manifest from your own template, or sprite-atlas JSON ([docs/handoff.md](docs/handoff.md)); the optional Godot pack builds SpriteFrames with Godot itself, and its `godot:tile-set` export turns any tile sheet into a Godot tile set;
|
|
29
|
+
- you need video. It isn't generated;
|
|
30
|
+
- you want to hide that art is AI-made. Hand-off marks each file as AI-made where its format allows, and stripping that is a [non-goal](docs/PRD.md#non-goals) ([docs/disclosure.md](docs/disclosure.md)).
|
|
31
|
+
|
|
32
|
+
## What a run looks like
|
|
33
|
+
|
|
34
|
+
A request for one still, forecast for free and then generated. The first block is the forecast on the default gateway routes. The second is the end of the same request run offline with a scripted provider that returns synthetic images, as the test suite does, so its figures are route estimates and not a bill:
|
|
35
|
+
|
|
36
|
+
```text
|
|
37
|
+
dry run: plan, 10 planned call(s), nothing spent
|
|
38
|
+
prompt-policy perplexity/pplx-decider-v1.2 2 x ~$0.0010
|
|
39
|
+
still openai/gpt-image-2 4 x ~$0.2500
|
|
40
|
+
style-verdict perplexity/pplx-decider-v1.2 4 x ~$0.0010
|
|
41
|
+
forecast $1.0060 against a $5.00 cap
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
```text
|
|
45
|
+
run r-f27aed8d07625dce: 4 of 4 candidates passed QA ($1.0000 spent of a $5.00 cap)
|
|
46
|
+
staged in .assetgrove/runs/r-f27aed8d07625dce
|
|
47
|
+
c1 .assetgrove/runs/r-f27aed8d07625dce/c1.png (image/png, $0.2500)
|
|
48
|
+
style-score [decision; passed, not filtered]: no constitution or spec violation (violation probability 0.00)
|
|
49
|
+
...
|
|
50
|
+
pick one with: assetgrove pick --run .assetgrove/runs/r-f27aed8d07625dce --candidate <id> --target <dir>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
`pick` then writes the image, your game's manifest, a provenance record and a library card into the game repository, with review pending.
|
|
54
|
+
|
|
55
|
+
## Quick start
|
|
56
|
+
|
|
57
|
+
One path from nothing to a first picked asset, at a terminal. Steps 1 to 4 are free and need no key. To work through a coding agent instead, follow [docs/quick-start.md](docs/quick-start.md).
|
|
58
|
+
|
|
59
|
+
You need Node 24, Git with Git LFS, and a game repository (any Git work tree). For step 5 you also need a [Vercel AI Gateway](https://vercel.com/docs/ai-gateway) API key, with a budget or prepaid credits set on the Vercel side.
|
|
60
|
+
|
|
61
|
+
**1. Check out Assetgrove** and give the CLI a name for this shell:
|
|
62
|
+
|
|
63
|
+
```sh
|
|
64
|
+
git clone https://github.com/clockgrove/assetgrove.git && cd assetgrove
|
|
65
|
+
corepack enable && pnpm install --frozen-lockfile
|
|
66
|
+
alias assetgrove="node $PWD/src/cli.ts"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
The alias is for a POSIX shell. In another shell, run `node <checkout>/src/cli.ts` wherever a step says `assetgrove`.
|
|
70
|
+
|
|
71
|
+
**2. Create the developer settings.** They are one file per user, outside every repository, and the only place that names providers and spend limits. `assetgrove settings path` prints where the file goes (`~/.config/assetgrove/settings.json` by default). The smallest file for the gateway names the provider and declares the limit you set with it:
|
|
72
|
+
|
|
73
|
+
```json
|
|
74
|
+
{
|
|
75
|
+
"format": "assetgrove-settings/2",
|
|
76
|
+
"providers": {
|
|
77
|
+
"gateway": {
|
|
78
|
+
"adapter": "vercel-ai-gateway",
|
|
79
|
+
"limit": { "kind": "key-budget", "usd": 20, "period": "monthly" }
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
`assetgrove settings check` then prints `limit declared` for `gateway`.
|
|
86
|
+
|
|
87
|
+
**3. Set up the game repository.** In its root:
|
|
88
|
+
|
|
89
|
+
```sh
|
|
90
|
+
assetgrove init --directory . --profile-preset sprite-32 --style-preset cozy-storybook --world "My World"
|
|
91
|
+
git lfs install
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
`init` writes the target profile (`.assetgrove/profile.json`), a starter style bible (`.assetgrove/art-direction/BIBLE.md`), a prompt template, an `art-direction` skill for your agent, Git LFS rules for `assets/source/` and `.gitignore` rules for the run folders. It writes no key and no settings, and lists the steps left to a person.
|
|
95
|
+
|
|
96
|
+
**4. Describe one asset and forecast it.** Save this as `specs/fern.json`:
|
|
97
|
+
|
|
98
|
+
```json
|
|
99
|
+
{ "kind": "still", "assetId": "fern", "animationFamily": "idle" }
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
```sh
|
|
103
|
+
assetgrove plan --spec specs/fern.json --bible .assetgrove/art-direction/BIBLE.md \
|
|
104
|
+
--profile .assetgrove/profile.json --out .assetgrove/runs/fern-plan.json --dry-run
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
It prints the forecast shown above and the spend left under each cap, and writes nothing. If you see that, the setup works.
|
|
108
|
+
|
|
109
|
+
**5. Generate (paid; the forecast is about $1 on the default routes).** Put the key in this shell's environment only, never in a file in a repository:
|
|
110
|
+
|
|
111
|
+
```sh
|
|
112
|
+
export AI_GATEWAY_API_KEY=...
|
|
113
|
+
assetgrove plan --spec specs/fern.json --bible .assetgrove/art-direction/BIBLE.md \
|
|
114
|
+
--profile .assetgrove/profile.json --out .assetgrove/runs/fern-plan.json
|
|
115
|
+
assetgrove apply .assetgrove/runs/fern-plan.json
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
`plan` asks you to confirm the spend, then compiles the prompts into `fern-plan.json` for you to read; it makes no image. `apply` generates exactly that plan and lists the candidates that passed QA, each with its reasons. Open `contact.png` in the run directory to see them side by side.
|
|
119
|
+
|
|
120
|
+
**6. Pick one.**
|
|
121
|
+
|
|
122
|
+
```sh
|
|
123
|
+
assetgrove pick --run .assetgrove/runs/<run> --candidate c1 --target .
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Success is these files in the game repository, ready to commit:
|
|
127
|
+
|
|
128
|
+
```text
|
|
129
|
+
assets/source/fern/idle.png the image, with content credentials
|
|
130
|
+
assets/source/fern/idle.png.provenance.json how it was made
|
|
131
|
+
assets/manifests/fern/idle.json your manifest, review status "pending"
|
|
132
|
+
assets/source/fern/fern-idle.md the asset's card
|
|
133
|
+
assets/source/fern/fern-idle.review.json its review record
|
|
134
|
+
assets/source/index.md, fern/index.md, fern/log.md
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Why it works: the prompt is composed from the spec, the style bible and the profile's frame size, so the next asset you ask for is drawn to the same rules. To go one step further, ask for another round with a note (`assetgrove apply .assetgrove/runs/fern-plan.json --round 2 --note "larger ears"`), or give `BIBLE.md` your own reference images and palette ([docs/generation-knobs.md](docs/generation-knobs.md#start-a-world)).
|
|
138
|
+
|
|
139
|
+
## How it works
|
|
140
|
+
|
|
141
|
+
Three files in the game repository describe a request, and one file outside it holds everything about money and keys:
|
|
142
|
+
|
|
143
|
+
- **Asset spec**: one asset. Its kind (`still`, `sprite-strip`, `character-3d` or `prop-3d`), id, animation family, frames and anchor.
|
|
144
|
+
- **Style bible**: the world's look. Palette, tone, reference images, things to avoid.
|
|
145
|
+
- **Target profile**: the game's side. Frame size, where files go, the manifest template, an optional validator command.
|
|
146
|
+
- **Developer settings**: per user, never in a repository. Providers, routes, caps and limits.
|
|
147
|
+
|
|
148
|
+
A **run** is one request's directory under `.assetgrove/runs/`. It holds **candidates**. A **pick** hands one candidate off to the game.
|
|
149
|
+
|
|
150
|
+
| Who | Does what |
|
|
151
|
+
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
152
|
+
| Models | Propose candidates, through provider adapters, within the run's cap. |
|
|
153
|
+
| Post-processing | Brings each candidate to spec: true alpha, crop and scale to the frame grid, palette, pivot. |
|
|
154
|
+
| QA | Deterministic checks drop a failing candidate. Model-backed checks are recorded beside it as advisory. |
|
|
155
|
+
| The prompt policy | Refuses a prompt that names a real artist, studio, game, character or person, before any spend. |
|
|
156
|
+
| An agent, if used | Plans, dry-runs, generates and stages. It never picks, approves or raises a limit. |
|
|
157
|
+
| A person | Confirms spend, picks, and approves (`assetgrove approve`). |
|
|
158
|
+
| The game | Its own validator, run by `pick`, and its own review decide what ships. Media is stored as the game's `.gitattributes` says. |
|
|
159
|
+
|
|
160
|
+
Two ways to generate lead to the same `pick`, both from the one style bible, the `BIBLE.md` that `init` writes: `plan` then `apply` (a plan you can read first), and `stage` (one step). `stage`, sheets and 3D also need reference images of the subject and a perspective sample in the bible ([docs/target-profile.md](docs/target-profile.md#style-bible)).
|
|
161
|
+
|
|
162
|
+
## What it records, and where to look
|
|
163
|
+
|
|
164
|
+
| Where | What |
|
|
165
|
+
| ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------- |
|
|
166
|
+
| `.assetgrove/runs/<run>/` | `request.json`, `run.json` (candidates, QA reasons, cost), `contact.png`, each candidate with its provenance, the journaled calls. |
|
|
167
|
+
| `<media>.provenance.json` | Model, route, prompt, parameters, reference hashes, request IDs, times, cost, provider terms, output grant, how the pick was confirmed. |
|
|
168
|
+
| The card, review record and `log.md` | The asset's state, versions, comments and history ([docs/library.md](docs/library.md)). |
|
|
169
|
+
| `<stateDir>/spend.jsonl` | The spend ledger across runs. `stateDir` is `~/.local/state/assetgrove` by default, outside every repository. |
|
|
170
|
+
|
|
171
|
+
`assetgrove runs list`, `runs show`, `spend status`, and `ls` and `cat` on the `asset://` tree read these and spend nothing ([docs/library.md](docs/library.md#the-asset-tree)). `assetgrove disclosure` summarises the library's AI use for store surveys.
|
|
172
|
+
|
|
173
|
+
## Cost and control
|
|
174
|
+
|
|
175
|
+
- **Who bills:** the provider, on your key. A dry run forecasts from route estimates and spends nothing.
|
|
176
|
+
- **Local caps** refuse a paid call before it is made (exit 3): one run (`caps.runUsd`, $5; `--cap` may only lower it), the last 24 hours (`caps.dailyUsd`, $10) and one work item (`caps.workItemUsd`, $5, named by `--work-item` or `ASSETGROVE_WORK_ITEM`).
|
|
177
|
+
- **The ledger is an estimate.** Where a provider reports per-call cost (the gateway, Tripo), a run reconciles against it, and an unexplained gap holds further paid runs until a person acknowledges it. Anthropic and OpenAI report no usage to an ordinary key, so their calls count at the route estimate.
|
|
178
|
+
- **The provider's limit is the hard one.** A paid call to a provider with no declared `limit` is refused, but the declaration is yours: Assetgrove can check it only against a prepaid balance (`assetgrove spend check`).
|
|
179
|
+
- **A person confirms every paid run.** At a terminal the command asks. Anywhere else it exits 8 with an id for `assetgrove confirm <id>`.
|
|
180
|
+
- **What the caps do not stop:** spending outside Assetgrove, or an agent set on getting round its harness ([what the controls stop](docs/PRD.md#what-the-controls-stop-and-what-they-dont)).
|
|
181
|
+
|
|
182
|
+
Details: [docs/settings.md](docs/settings.md#caps-and-ledger).
|
|
183
|
+
|
|
184
|
+
## Keys and providers
|
|
185
|
+
|
|
186
|
+
Keys are read from environment variables, never from a file, and never printed. A paid command refuses to run in a repository that tracks a live key. Each provider is an entry in the developer settings with its own declared `limit`. Several can be configured at once, and `roles` and `routes` there choose which serves each operation ([docs/settings.md](docs/settings.md#roles-and-routes)).
|
|
187
|
+
|
|
188
|
+
| Provider (adapter) | Key variable | Serves |
|
|
189
|
+
| --------------------------------------- | -------------------- | -------------------------------------------------------------------------------- |
|
|
190
|
+
| Vercel AI Gateway (`vercel-ai-gateway`) | `AI_GATEWAY_API_KEY` | Every 2D operation by default ([default routes](docs/models.md#default-routes)). |
|
|
191
|
+
| OpenAI (`openai`) | `OPENAI_API_KEY` | Image, edit, vision, decisions, planning. |
|
|
192
|
+
| Anthropic (`anthropic`) | `ANTHROPIC_API_KEY` | Vision, decisions, planning. No image models: pair it with another provider. |
|
|
193
|
+
| Tripo (`tripo`) | `TRIPO_API_KEY` | 3D models, rigs and clips. |
|
|
194
|
+
| Local server (`openai-compatible`) | none unless `keyEnv` | What you route to it. Free only on a loopback address. |
|
|
195
|
+
|
|
196
|
+
Get each key from that provider's own console and set its budget there. `keyEnv` on an entry names another variable. A setup with no network at all is in [docs/models.md](docs/models.md#local-only-recipe). With a coding agent, keep the key in the MCP server's environment at user scope, not in the agent's shell or the project; the per-harness steps and their limits are in [docs/keys.md](docs/keys.md). Providers may retain the prompts and reference images they receive, and `init` lists where each route sends data.
|
|
197
|
+
|
|
198
|
+
## When a command refuses
|
|
199
|
+
|
|
200
|
+
Decide on the exit code and, with `--json`, on `error.code`, never on the message.
|
|
201
|
+
|
|
202
|
+
| Exit | Situation | What you do |
|
|
203
|
+
| ---- | ------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------- |
|
|
204
|
+
| 2 | `route_unavailable`: no configured provider serves the operation | Add a provider, or a role, to the developer settings. |
|
|
205
|
+
| 2 | `settings_invalid` naming `HTTPS_PROXY` or another proxy or TLS variable | Unset it, or list it under `environment.allow` ([docs/settings.md](docs/settings.md#environment)). |
|
|
206
|
+
| 2 | `key_tracked`, `git_required` or `lfs_required` | Remove the key from the tracked file; work in a Git work tree; run `init` to map media to LFS. |
|
|
207
|
+
| 2 | A reference image does not decode | It is an unfetched Git LFS pointer: run `git lfs pull`. |
|
|
208
|
+
| 3 | `cap_refused`, `provider_limit_undeclared` or `spend_hold` | Ask for less, declare the provider's limit, or review the hold in `assetgrove spend status`. |
|
|
209
|
+
| 4 | Provider error: the key variable is not set, or every candidate failed | Set the key; read the reason given for each candidate. |
|
|
210
|
+
| 5 | QA found nothing: no candidate passed, or a check failed | Read the reasons in `run.json`; change the spec, the bible or the note and run again. |
|
|
211
|
+
| 6 | The target's validator or a hand-off check rejected what was written | Fix what the validator or `error.problems` names, then pick again. |
|
|
212
|
+
| 7 | Licence refused: the provider's output grant does not fit the target | Nothing was written. Use a route whose grant fits the licence the profile declares. |
|
|
213
|
+
| 8 | `confirmation_required` | A person runs `assetgrove confirm <id>` at a terminal, then the same command again. |
|
|
214
|
+
| 9 | `prompt_refused` | Describe the look in plain visual words, not by a name. |
|
|
215
|
+
|
|
216
|
+
Exit 1 is an unexpected internal error; please [report it](https://github.com/clockgrove/assetgrove/issues/new?template=bug.yml). An interrupted paid run resumes from its journal when you run the same command again, and does not pay twice for a finished call. Every code is listed in the [skill](skills/assetgrove/SKILL.md#exit-codes).
|
|
217
|
+
|
|
218
|
+
## Beyond a first still
|
|
219
|
+
|
|
220
|
+
- **Animation.** `import` slices a contact sheet from any tool into frames and proposes families; `generate-sheet` has a model draw a whole cycle as one sheet first. A person confirms the grouping and `write-families` writes one strip per family. `animation-qa` checks motion templates, loops and continuity and writes onion-skin and looping previews; `fix-frame` regenerates one bad frame. See [docs/sheet-import.md](docs/sheet-import.md) and [docs/animation.md](docs/animation.md).
|
|
221
|
+
- **3D props.** A `prop-3d` spec stages static `.glb` candidates (furniture, plants, fences, small buildings) from approved references, scaled to a height or fitted inside a size box and checked against the target's budgets. See [docs/props-3d.md](docs/props-3d.md).
|
|
222
|
+
- **3D characters.** A `character-3d` spec stages rigged, animated `.glb` candidates from an approved turnaround (Tripo by default), checked with the Khronos glTF validator and the target's budgets. `rig`, `lod` and `look-dev` refine a picked model. See [docs/characters-3d.md](docs/characters-3d.md) and [docs/look-dev.md](docs/look-dev.md).
|
|
223
|
+
- **Changes and variations.** `request-change` edits marked regions of a picked asset, `vary` makes variations of a candidate, `compare` measures a candidate against the version before, and `audit` scores a set for style and identity.
|
|
224
|
+
- **Local image operations.** `op` and `recipe` matte, trim, scale, slice and convert any image, generated or not, with a provenance record and no model call ([docs/transform.md](docs/transform.md)).
|
|
225
|
+
- **Sound.** `sfx`, `ambience` and `music` specs stage audio candidates that a person listens to and picks, with loudness checks and renditions for any engine. See [docs/audio.md](docs/audio.md) and [docs/PRD-audio.md](docs/PRD-audio.md).
|
|
226
|
+
- **Tiles.** The optional [`@clockgrove/assetgrove-tiles`](packages/assetgrove-tiles/README.md) pack makes a corner-16 terrain tile set between two terrains as one atlas, checked for its grid and its seams, and a sheet of nine object tiles held to its grid and the palette.
|
|
227
|
+
- **Icons.** The optional [`@clockgrove/assetgrove-icons`](packages/assetgrove-icons/README.md) pack makes an icon family, one icon per asset at one size, checked against the backgrounds it will sit on.
|
|
228
|
+
- **Search.** The optional [`@clockgrove/assetgrove-search`](packages/assetgrove-search/README.md) package finds picked assets and lists near matches before a paid run.
|
|
229
|
+
- **Godot.** The optional [`@clockgrove/assetgrove-godot`](packages/assetgrove-godot/README.md) pack hands strips off to a Godot project as one SpriteFrames per character, every animation family in it, built, saved and reloaded by a pinned headless Godot 4.7.2 so its UIDs match the project's imports. The [launch guide](docs/launch-guide.md) walks a whole Godot workflow, from generated, hand-drawn and third-party art to review, provenance and disclosure.
|
|
230
|
+
|
|
231
|
+
`assetgrove --help` lists every command and `assetgrove <command> --help` its options. The [command reference](skills/assetgrove/references/commands.md) says what each one spends and writes.
|
|
232
|
+
|
|
233
|
+
## Use from a coding agent
|
|
234
|
+
|
|
235
|
+
`assetgrove mcp` serves every command as an MCP tool and the library as `asset://` resources. The skills under `skills/` teach an agent the contract: install them with `npx skills add clockgrove/assetgrove`, or copy `skills/assetgrove/` to `.claude/skills/assetgrove/` (Claude Code, Copilot) or `.agents/skills/assetgrove/` (Codex, Copilot).
|
|
236
|
+
|
|
237
|
+
- Agents pass `--json`: stdout is one JSON document and logs go to stderr. Assetgrove prompts only when stdin and stderr are a terminal, which an agent's shell is not, so a step that needs a person exits 8.
|
|
238
|
+
- Agents dry-run first, name the work item, and hand the run directory and candidate ids to a person. They never run `pick`, `write-families`, `approve` or `confirm`.
|
|
239
|
+
- Assetgrove reaches only the configured providers' hosts: `ai-gateway.vercel.sh`, `api.openai.com`, `api.anthropic.com`, `api.tripo3d.ai`, or a provider's `baseURL`. Keep those hosts out of the agent's shell sandbox; only the MCP server process needs them ([docs/keys.md](docs/keys.md)).
|
|
240
|
+
|
|
241
|
+
## Documentation
|
|
242
|
+
|
|
243
|
+
| To | Read |
|
|
244
|
+
| ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
|
245
|
+
| Follow one workflow from mixed-origin art into Godot | [docs/launch-guide.md](docs/launch-guide.md) |
|
|
246
|
+
| Set up through Claude Code or another harness | [docs/quick-start.md](docs/quick-start.md), [docs/keys.md](docs/keys.md) |
|
|
247
|
+
| Write a spec, a style bible or a target profile | [docs/target-profile.md](docs/target-profile.md), [docs/generation-knobs.md](docs/generation-knobs.md) |
|
|
248
|
+
| Configure providers, routes, caps and limits | [docs/settings.md](docs/settings.md), [docs/models.md](docs/models.md) |
|
|
249
|
+
| Hand off to an engine or an atlas format | [docs/handoff.md](docs/handoff.md) |
|
|
250
|
+
| Browse, review, approve and change picked assets | [docs/library.md](docs/library.md) |
|
|
251
|
+
| Animate, build 3D characters, derive material maps | [docs/animation.md](docs/animation.md), [docs/characters-3d.md](docs/characters-3d.md), [docs/materials.md](docs/materials.md) |
|
|
252
|
+
| Know what the prompt policy refuses | [docs/prompt-policy.md](docs/prompt-policy.md) |
|
|
253
|
+
| Understand AI marks, content credentials, disclosure | [docs/disclosure.md](docs/disclosure.md) |
|
|
254
|
+
| Extend Assetgrove with a package (a pack, and its test kit) | [docs/extensions.md](docs/extensions.md) |
|
|
255
|
+
| See why it is built this way, and what is planned | [docs/decisions.md](docs/decisions.md), [docs/PRD.md](docs/PRD.md), [docs/PLAN.md](docs/PLAN.md) |
|
|
256
|
+
|
|
257
|
+
## Status
|
|
258
|
+
|
|
259
|
+
Core and its packs are at 0.3.2. Each 0.x version is a [GitHub release](https://github.com/clockgrove/assetgrove/releases) whose tarballs a release run built, attested and tested on three systems ([docs/release.md](docs/release.md)). 1.0.0 is the first npm release, published from the 1.0 gate that `pnpm gate` checks. Once it is, a game pins it as a dev dependency (`pnpm add -D --save-exact @clockgrove/assetgrove@<version>`, then `pnpm exec assetgrove`) or runs it once with `npx @clockgrove/assetgrove@<version> --help`. Until then, install a release's tarballs, as the quick start does. It runs on Node 24, and its test suite runs on Linux, macOS and Windows. Until 1.0, pull requests from outside are not taken: report a bug or ask for a feature with the issue forms, and bring questions and feedback to [Discussions](https://github.com/clockgrove/assetgrove/discussions) ([Getting help](#getting-help)).
|
|
260
|
+
|
|
261
|
+
## Develop
|
|
262
|
+
|
|
263
|
+
Node 24 with pnpm ([docs/decisions.md](docs/decisions.md#language-and-tooling)). `pnpm install`, then:
|
|
264
|
+
|
|
265
|
+
- `pnpm assetgrove …` runs the TypeScript sources directly; `pnpm build` compiles to `dist/` for the package.
|
|
266
|
+
- `pnpm check` runs Biome (format and lint) and the type check; `pnpm format` applies Biome's formatting.
|
|
267
|
+
- `pnpm test` runs the change suite offline with a scripted provider and calls no real model. `pnpm test:release` runs the release files under `test/release/`, and `pnpm test:all` runs both, as the release suite does.
|
|
268
|
+
- `pnpm test:real` runs the opt-in real-provider checks, which skip without a key.
|
|
269
|
+
|
|
270
|
+
## Getting help
|
|
271
|
+
|
|
272
|
+
- **Questions and feedback:** [GitHub Discussions](https://github.com/clockgrove/assetgrove/discussions).
|
|
273
|
+
- **Bugs:** [open a bug report](https://github.com/clockgrove/assetgrove/issues/new?template=bug.yml), with the output of `assetgrove doctor --profile <your profile> --json`.
|
|
274
|
+
- **Feature requests:** [open a feature request](https://github.com/clockgrove/assetgrove/issues/new?template=feature.yml).
|
|
275
|
+
- Never paste a key, a token or private art in an issue or a discussion.
|
|
276
|
+
- **Security:** report privately, as [SECURITY.md](SECURITY.md) describes.
|
|
277
|
+
- **Contributing:** until 1.0, pull requests from outside contributors are not taken. See [CONTRIBUTING.md](CONTRIBUTING.md) and the repository rules in [AGENTS.md](AGENTS.md).
|
|
278
|
+
- **Licence:** [MIT](LICENSE).
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import type { SpendLedger } from "../spend.ts";
|
|
2
|
+
import type { GenerationProvider } from "../gateway/provider.ts";
|
|
3
|
+
import type { PlannedCall } from "../generators/generator.ts";
|
|
4
|
+
import type { Routes } from "../routes.ts";
|
|
5
|
+
import type { ResolvedStyle } from "../style.ts";
|
|
6
|
+
import type { Point, Provenance, Size, TargetProfile } from "../types.ts";
|
|
7
|
+
import { DEFAULT_FIX_CAP_USD } from "./fix.ts";
|
|
8
|
+
import type { FrameFix } from "./fix.ts";
|
|
9
|
+
import type { StripQaResult } from "./run.ts";
|
|
10
|
+
/**
|
|
11
|
+
* Per frame of a fixed strip, the background its matte removed: from the frames' own transforms (a
|
|
12
|
+
* sheet import's strip), else from a staged strip's `parameters.matteBackgrounds`, then each fix in
|
|
13
|
+
* order (a fix's edited frame is a new image, with the background its own matte removed or none).
|
|
14
|
+
*/
|
|
15
|
+
export declare function fixedBackgrounds(provenance: Provenance & {
|
|
16
|
+
fixes?: FrameFix[];
|
|
17
|
+
}, count: number): Array<string | undefined>;
|
|
18
|
+
/** One strip to check: where it is and how to read it. */
|
|
19
|
+
export interface StripTarget {
|
|
20
|
+
family: string;
|
|
21
|
+
path: string;
|
|
22
|
+
frame: Size;
|
|
23
|
+
anchor: Point;
|
|
24
|
+
durationMs?: number;
|
|
25
|
+
style: ResolvedStyle;
|
|
26
|
+
profile: TargetProfile;
|
|
27
|
+
subject: string;
|
|
28
|
+
/** The subject's gait from its asset spec; the profile's `animation.gait` applies when unset. */
|
|
29
|
+
gait?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Per strip frame, the files of its image before background removal and the same crop after it,
|
|
32
|
+
* where they exist (a sheet import's frames); the holes decision is asked on each such frame.
|
|
33
|
+
*/
|
|
34
|
+
holeSources?: Array<{
|
|
35
|
+
before: string;
|
|
36
|
+
after: string;
|
|
37
|
+
} | undefined>;
|
|
38
|
+
/** The motion template its spec or grouping declares for the family (`none`: no template). */
|
|
39
|
+
template?: string;
|
|
40
|
+
/** The template a recorded motion-template decision (generate-sheet's) chose for the family. */
|
|
41
|
+
judgedTemplate?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Per strip frame, the background colour its matte removed ("#rrggbb"), read from the frame's
|
|
44
|
+
* provenance (a sheet import's frames); the edge-halo check measures the fringe against it.
|
|
45
|
+
*/
|
|
46
|
+
backgrounds?: Array<string | undefined>;
|
|
47
|
+
}
|
|
48
|
+
/** QA measures alpha only, so a palette rule needs no palette here. */
|
|
49
|
+
export declare function qaStyle(profile: TargetProfile): ResolvedStyle;
|
|
50
|
+
export declare function parseAnchor(text: string | undefined): Point | undefined;
|
|
51
|
+
/** The strips of every family an import wrote (`preview/<family>.png` in the import directory). */
|
|
52
|
+
export declare function importTargets(importDir: string): Promise<StripTarget[]>;
|
|
53
|
+
/** One strip given on the command line. */
|
|
54
|
+
export declare function stripTarget(options: {
|
|
55
|
+
path: string;
|
|
56
|
+
family: string;
|
|
57
|
+
profile: TargetProfile;
|
|
58
|
+
subject?: string;
|
|
59
|
+
anchor?: Point;
|
|
60
|
+
gait?: string;
|
|
61
|
+
template?: string;
|
|
62
|
+
}): StripTarget;
|
|
63
|
+
export interface QaPlan {
|
|
64
|
+
calls: number;
|
|
65
|
+
perFamily: Array<{
|
|
66
|
+
family: string;
|
|
67
|
+
calls: number;
|
|
68
|
+
flickerCalls: number;
|
|
69
|
+
holeCalls: number;
|
|
70
|
+
/** 1 when this family's motion template is decided by a call (once per family and subject). */
|
|
71
|
+
templateCalls: number;
|
|
72
|
+
}>;
|
|
73
|
+
model: string;
|
|
74
|
+
/** The motion-template route's model. */
|
|
75
|
+
templateModel: string;
|
|
76
|
+
/** The holes route's model (one call per frame with a see-through area inside its outline). */
|
|
77
|
+
holesModel: string;
|
|
78
|
+
estimateUsd: number;
|
|
79
|
+
capUsd: number;
|
|
80
|
+
withinCap: boolean;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The calls a QA run would make: one motion-template decision per family (and subject) with no
|
|
84
|
+
* declared template and no template of its name, when `decide`; and with `vision`, identity
|
|
85
|
+
* flicker per frame pair (the seam pair counted while the template is undecided), and holes per
|
|
86
|
+
* frame with a see-through area inside its outline (found on pixels, so that count is exact).
|
|
87
|
+
*/
|
|
88
|
+
export declare function planAnimationQa(targets: StripTarget[], routes: Routes, capUsd: number, vision: boolean, decide?: boolean): Promise<QaPlan>;
|
|
89
|
+
/**
|
|
90
|
+
* Runs animation QA on each strip. With a provider, each family's motion template is decided when
|
|
91
|
+
* nothing declares or names it, and (unless `vision` is false) identity flicker and holes are
|
|
92
|
+
* checked; every call of every strip is checked against the cap before the first one is made.
|
|
93
|
+
*/
|
|
94
|
+
export declare function runAnimationQa(options: {
|
|
95
|
+
targets: StripTarget[];
|
|
96
|
+
outDir: string;
|
|
97
|
+
routes: Routes;
|
|
98
|
+
capUsd: number;
|
|
99
|
+
provider?: {
|
|
100
|
+
provider: GenerationProvider;
|
|
101
|
+
name: string;
|
|
102
|
+
};
|
|
103
|
+
/** Run the identity-flicker and holes checks. Default: when a provider is given. */
|
|
104
|
+
vision?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Decide an undeclared family's motion template by a call. Default: when a provider is given.
|
|
107
|
+
* When false, such a family stays undecided and its template checks are pending.
|
|
108
|
+
*/
|
|
109
|
+
decide?: boolean;
|
|
110
|
+
/** The cross-run spend ledger every paid call also reserves against (src/spend.ts). */
|
|
111
|
+
ledger?: SpendLedger;
|
|
112
|
+
now?: () => Date;
|
|
113
|
+
}): Promise<{
|
|
114
|
+
results: StripQaResult[];
|
|
115
|
+
spentUsd: number;
|
|
116
|
+
/** The motion-template decisions this run made, as logged to `motion-template.jsonl`. */
|
|
117
|
+
templateDecisions: TemplateDecisionLine[];
|
|
118
|
+
}>;
|
|
119
|
+
/** The motion-template decision log beside the reports, one JSON line per call. */
|
|
120
|
+
export declare const TEMPLATE_LOG = "motion-template.jsonl";
|
|
121
|
+
/** One logged motion-template decision: which call, for which family, and what it chose. */
|
|
122
|
+
export interface TemplateDecisionLine {
|
|
123
|
+
family: string;
|
|
124
|
+
subject: string;
|
|
125
|
+
/** The chosen template, or `none`. */
|
|
126
|
+
template: string;
|
|
127
|
+
probability?: number;
|
|
128
|
+
model: string;
|
|
129
|
+
requestId: string;
|
|
130
|
+
costUsd: number;
|
|
131
|
+
at: string;
|
|
132
|
+
}
|
|
133
|
+
export { DEFAULT_FIX_CAP_USD };
|
|
134
|
+
/**
|
|
135
|
+
* The fix's calls: one motion-template decision first when nothing declares or names the
|
|
136
|
+
* family's template (the fix's registration pin and its QA follow the template), then the edit.
|
|
137
|
+
*/
|
|
138
|
+
export declare function planFrameFix(routes: Routes, capUsd: number, target?: StripTarget): {
|
|
139
|
+
calls: number;
|
|
140
|
+
perCall: PlannedCall[];
|
|
141
|
+
estimateUsd: number;
|
|
142
|
+
capUsd: number;
|
|
143
|
+
withinCap: boolean;
|
|
144
|
+
};
|
|
145
|
+
export interface FixFrameRun {
|
|
146
|
+
stripPath: string;
|
|
147
|
+
provenancePath: string;
|
|
148
|
+
fix: FrameFix;
|
|
149
|
+
qa: StripQaResult;
|
|
150
|
+
spentUsd: number;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Fixes one frame of a strip and writes the fixed strip, its provenance and its QA and previews
|
|
154
|
+
* into the output directory. Never writes into a target and never sets a review value.
|
|
155
|
+
*/
|
|
156
|
+
export declare function runFixFrame(options: {
|
|
157
|
+
target: StripTarget;
|
|
158
|
+
index: number;
|
|
159
|
+
from: {
|
|
160
|
+
neighbour: number;
|
|
161
|
+
} | {
|
|
162
|
+
keyPose: string;
|
|
163
|
+
};
|
|
164
|
+
note?: string;
|
|
165
|
+
provenancePath?: string;
|
|
166
|
+
bible?: {
|
|
167
|
+
version: string;
|
|
168
|
+
palette: string[];
|
|
169
|
+
};
|
|
170
|
+
outDir: string;
|
|
171
|
+
routes: Routes;
|
|
172
|
+
capUsd: number;
|
|
173
|
+
provider: {
|
|
174
|
+
provider: GenerationProvider;
|
|
175
|
+
name: string;
|
|
176
|
+
};
|
|
177
|
+
/** The cross-run spend ledger every paid call also reserves against (src/spend.ts). */
|
|
178
|
+
ledger?: SpendLedger;
|
|
179
|
+
now?: () => Date;
|
|
180
|
+
}): Promise<FixFrameRun>;
|