@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,723 @@
|
|
|
1
|
+
# Assetgrove commands
|
|
2
|
+
|
|
3
|
+
One section per command: its usage, its flags, and the MCP tool that serves it and that tool's arguments. Every command takes `--help`; every command except `mcp` takes `--json`. Paid commands reserve every call against their `--cap` (USD) and against the spend ledger; `--cap`, a run options file's `capUsd` and a command's own lower default may only lower the settings' `caps.runUsd` (see [Environment](../SKILL.md#environment)). Commands that stage write under `.assetgrove/` in the working directory by default; only `init`, `bible preset`, `migrate`, `pick` and `write-families` write into the target (`pick` of a turnaround run writes beside the bible).
|
|
4
|
+
|
|
5
|
+
### `init`
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
init --directory <target> --profile-preset <id> --style-preset <id> --world <name> [--harness claude-code] [--providers <adapterId,...>] [--overwrite] [--json]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Sets up a target repository and returns the steps a person takes next. Never interactive. Writes the target profile (`.assetgrove/profile.json`, from profile preset `sprite-32` or `sprite-64`), the style bible (`.assetgrove/art-direction/BIBLE.md`, from style preset `cozy-storybook`, `flat-cartoon-kids` or `dark-gritty-isometric`, with `referenceLicense: NOASSERTION`) and its presets, the prompt template (`.assetgrove/prompts/default.md`), the `art-direction` skill in `.claude/skills/` and `.agents/skills/`, and `.gitignore` rules for `.assetgrove/runs/`, `.assetgrove/imports/` and `.assetgrove/animation/`. Idempotent: an identical file is left alone, `.gitignore` gains only the rules it lacks, and a differing file exits 2 `invalid_input` with `conflicts` and nothing written, unless `--overwrite`. First the tracked-key guard runs on the target: a tracked key exits 2 `key_tracked` with the refused `guard` step and nothing written. Needs a Git work tree (else exit 2 `git_required`, nothing written) and writes one marked block of Git LFS, `text eol=lf` and union-merge rules in `<library.root>/.gitattributes`; its steps cover Git LFS (`git-lfs`, `git-lfs-install`) and the LFS metering notice. Never commits, runs `git lfs install`, writes a key, the settings file or a project-scope harness config.
|
|
12
|
+
|
|
13
|
+
Returns `{steps: [{id, status, detail}], adapters, bibleQuestions, audioQuestions, providers, files}`. `status` is `done`, `refused`, `needs-person`, `to-run` or `notice`. The steps: `guard`; `files`; each step of the key recipe for `--harness` (`claude-code`, `claude-code-cloud`, `copilot-cli`, `codex` or `other`; default `claude-code`), under the recipe's own id with its `rules`; `settings` (`needs-person`, `tool` `settings_change`: the agent calls it so the person declares the caps and the provider limit; endpoints and roles are hand edits, and with `--providers` it carries `suggestedRoles`); `spend-check` (`to-run`, `spend check`); and the notices `notice.auto-answer` (a harness can answer prompts automatically) and `notice.retention` (providers may retain what they receive). `bibleQuestions` are `{field, question}` to draft the bible with the developer; `audioQuestions` are `{field, question, offered, source}` asking for the target profile's `audio.loudness` (or the developer settings' for a headless setup), which has no default: `offered` is the EBU R128 reference (`target` -23 LUFS, `truePeakCeiling` -1 dBTP) and `source` says where it comes from; `providers` is each route's data flow (`{operation, providerId, host, upstream, providerTerms, retention}`), a route to a listed pack's adapter among them; `adapters` is each adapter of a pack the settings' `extensions` list loads (`{adapter, extension, package, hosts, endpointFromSettings, keyEnv}`), whose hosts and key variable the key recipe also names, and whose ids `--providers` accepts; `files` are `{path, role, status}` with `status` `written`, `unchanged` or `overwritten`. Calls no model and spends nothing.
|
|
14
|
+
|
|
15
|
+
MCP tool: `init`, arguments `directory`, `profilePreset`, `stylePreset`, `world`, `harness`, `providers`, `overwrite`.
|
|
16
|
+
|
|
17
|
+
### `bible`
|
|
18
|
+
|
|
19
|
+
```text
|
|
20
|
+
bible describe --bible <BIBLE.md> [--json]
|
|
21
|
+
bible preset --bible <BIBLE.md> --preset <preset> [--json]
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
`describe` reads a world's art constitution (art direction, bounds, anchors, presets, identity locks) as JSON. `preset` rewrites the bible's look and tone from one of its presets and keeps the world's palette, anchors and identity locks; `apply` then refuses plans made from the earlier bible. The presets are `cozy-storybook`, `flat-cartoon-kids` and `dark-gritty-isometric`. `init` writes the bible; there is no `bible init`, and any other action exits 2. Calls no model and spends nothing. The MCP tool is one tool whose `action` argument (`describe` or `preset`) picks the subcommand.
|
|
25
|
+
|
|
26
|
+
MCP tool: `bible`, arguments `action`, `bible`, `preset`.
|
|
27
|
+
|
|
28
|
+
### `plan`
|
|
29
|
+
|
|
30
|
+
```text
|
|
31
|
+
plan --spec <spec.json> --bible <BIBLE.md> --profile <profile.json> --out <plan.json> [--brief <brief.json>] [--run-options <run-options.json>] [--template <template.md>] [--identity-mode <off|shadow|enforce>] [--work-item <label>] [--provider-script <module>] [--runs .assetgrove/runs] [--round 1] [--dry-run] [--json]
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Compiles a reviewable generation plan into `--out` and never generates images. With a provider (`AI_GATEWAY_API_KEY` or `--provider-script`), the configured compiler LLM writes the prompt and negatives from the repository's templates in one model call; without one for the planning role, a marked deterministic template fallback is recorded. The run's first call is still the prompt policy's model check on the decisions role, which fails closed: with no callable provider for it the plan exits 4, or 2 `route_unavailable` when nothing serves the role. `--identity-mode` overrides the profile's identity mode for a character with an identity lock, and the forecast includes the scoring calls. `--run-options` names a JSON file holding only `candidates`, `seed`, `strictness`, `exploration` and `capUsd`; any other field (a route) exits 2 `invalid_input`, as does a `capUsd` that is not a nonnegative number. `capUsd` can only lower the cap below the developer settings' `caps.runUsd`; editing it after planning makes `apply` refuse the plan. The routes come from the developer settings' routes and roles. The saved plan (`assetgrove-plan/1`) holds operation names, compiled prompts, input paths and hashes, the request digest and a hash of the planning-time resolution, and nothing else. Show the plan's prompts, clamps and cost forecast to the human. Writes only the plan file and its run directory; the run directory's `compiler.json` keeps the compiler call's record (model, route, request ID, cost), and the saved plan's `requestDigest` names that directory. A name in the compiler's text never refuses the plan after its spend: the plan falls back to the template's prompt and records why (`compiler.fallbackReason`, `promptPolicy.fallback`); a phrase in it is saved and decided by `apply`'s model check. Its forecast is the prompt-policy check and the planning call plus every generation, QA and identity call the later `apply` runs, with `apply`'s prompt-policy calls (two when the compiler can run, else one).
|
|
35
|
+
|
|
36
|
+
Plan step: `--dry-run` prints the request's WorkPlan (`jobs`, `candidates`, `forecastUsd`, `capUsd`, `capSource`, `paid`, `inputs` hashes, `options`, the 64-hex request `digest` and `runDir`) with no provider call, no ledger entry and nothing written; the `estimate` tool returns the same document. A real run first writes `request.json` in its run directory `r-<first 16 hex of the digest>` under `--runs`, takes its `lock` (one a live process holds exits 2 `run_in_progress`), journals every call as `calls/<callKey>.json`, and writes `state.json` and `run.json` there. Repeating a request that finished returns its run with `reused: true` and no provider call; repeating an interrupted one pays only for the calls its journal lacks. `--round` (default 1) is part of the digest: a new round is a new run.
|
|
37
|
+
|
|
38
|
+
MCP tool: `plan`, arguments `spec`, `bible`, `profile`, `out`, `brief`, `runOptions`, `template`, `identityMode`, `workItem`, `runs`, `round`.
|
|
39
|
+
|
|
40
|
+
### `apply`
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
apply <plan.json> [--out <runs directory>] [--note <text>] [--work-item <label>] [--provider-script <module>] [--round 1] [--dry-run] [--json]
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Generates exactly a saved plan. It re-reads every input the plan names and refuses a changed one (exit 2), re-resolves the routes, estimates, output grants and run cap from the developer settings and exits 2 `plan_changed` when they differ from planning time or the plan carries any field outside its format, runs the prompt policy on the plan's prompts (exit 9 `prompt_refused` on a name, before spend). Its first call is the model check, with the plan's input files labelled as `plan` labels them and only the compiler's own text labelled model-written; when that check refuses a compiled plan, a second call decides on the person's text alone, and when that allows, `apply` generates from the template's prompt in place of the compiler's and records why in `promptPolicy.fallback` (two prompt-policy calls in its forecast; one for a plan the template wrote, whose refusal exits 9). A person confirms the spend: headless settings, a record at `<configDir>/confirmations/<hex>.json`, an MCP client's form (method `elicitation`), the inline prompt on a TTY, or exit 8 `confirmation_required` with `error.confirmation` and `assetgrove confirm <hex>`. The plan's own spend confirmation covers one `apply` run of the plan file it saved, the default round, while every input hash it confirmed still matches the plan's and `apply`'s forecast is at or under the confirmed one; `--round n` (n > 1), another `--out` once that run started, or any other `apply` asks under its own digest. The confirmation authorizes the generation spend only; the outputs stay pending review. Paid gateway calls; needs `AI_GATEWAY_API_KEY` or `--provider-script` (exit 4 without either). Stages the run under `--out` (default `.assetgrove/runs`), never in the target.
|
|
47
|
+
|
|
48
|
+
Plan step: `--dry-run` prints the request's WorkPlan (`jobs`, `candidates`, `forecastUsd`, `capUsd`, `capSource`, `paid`, `inputs` hashes, `options`, the 64-hex request `digest` and `runDir`) with no provider call, no ledger entry and nothing written; the `estimate` tool returns the same document. A real run first writes `request.json` in its run directory `r-<first 16 hex of the digest>` under `--out`, takes its `lock` (one a live process holds exits 2 `run_in_progress`), journals every call as `calls/<callKey>.json`, and writes `state.json` and `run.json` there. Repeating a request that finished returns its run with `reused: true` and no provider call; repeating an interrupted one pays only for the calls its journal lacks. `--round` (default 1) is part of the digest: a new round is a new run.
|
|
49
|
+
|
|
50
|
+
MCP tool: `apply`, arguments `plan`, `out`, `note`, `workItem`, `round`.
|
|
51
|
+
|
|
52
|
+
### `mcp`
|
|
53
|
+
|
|
54
|
+
```text
|
|
55
|
+
mcp [--read-only] [--target <dir>] [--work-item <label>] [--provider-script <module>]
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Serves one MCP tool per command other than `mcp` over MCP stdio with the official MCP SDK; each tool takes its command's arguments and returns the same result document as the command's JSON output (as `structuredContent`, with `isError` set when the result is not ok; `cat` lists its contents there and carries them as content, see `cat`), and file paths are local to the server. A paid tool call runs in the server's process; while its client is connected, a call that carries a `progressToken` gets `notifications/progress` at least once per job. If the client drops, the run goes on until it ends or the server stops; repeating the request resumes it from its journal. Stdout carries the protocol, so it prints no JSON document; logs go to stderr. Spends and writes as the commands it serves do. Like every paid command, it exits 2 `settings_invalid` when a TLS or proxy variable is set that the settings' `environment.allow` does not list.
|
|
59
|
+
|
|
60
|
+
It also serves the library of the project at `--target` (default: the working directory's Git top level) as `asset://<game>/` resources, the tree `ls` and `cat` read: `resources/list` (the game root, every folder and card address, 200 per cursor page), `resources/templates/list`, `resources/read` and `resources/subscribe`. After each of its own tool calls it sends `notifications/resources/updated` for a subscribed asset or run folder that changed (a new version or annotation, a staged candidate) and `notifications/resources/list_changed` after a pick or write it served. A refused read answers JSON-RPC `-32602` with `data.code` `invalid_input`. Other changes show at the next read.
|
|
61
|
+
|
|
62
|
+
Use `--read-only` to browse the library and inspect candidate resources with tools that cannot edit, pick or spend.
|
|
63
|
+
|
|
64
|
+
### `materials`
|
|
65
|
+
|
|
66
|
+
```text
|
|
67
|
+
materials --albedo <painted.png> --spec <spec.json> --profile <profile.json> --derivation <derivation.json> --out <directory> [--cap <usd>] [--work-item <label>] [--digital-source-type <IPTC code or URI>] [--provider-script <module>] [--runs .assetgrove/runs] [--round 1] [--dry-run] [--json]
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Derives the material channels the profile's `style.materials` requests from a painted albedo, checks alignment and temporal stability, writes native-resolution renditions into `--out`, runs the target's compression and lit previews, and judges the flat and lit images with vision QA. The compression and preview commands run only with an approval tied to each command's hash, exactly as `pick`'s validator does (cwd: the profile's directory); every one is checked before the first model call, exit 8 `confirmation_required` otherwise, and each output's provenance records the command's `hash` and approval `method`. Paid gateway calls (vision QA and any model-assisted channel). Rejected materials exit 5 and stay unapproved. Never writes into the target.
|
|
71
|
+
|
|
72
|
+
Plan step: `--dry-run` prints the request's WorkPlan (`jobs`, `candidates`, `forecastUsd`, `capUsd`, `capSource`, `paid`, `inputs` hashes, `options`, the 64-hex request `digest` and `runDir`) with no provider call, no ledger entry and nothing written; the `estimate` tool returns the same document. A real run first writes `request.json` in its run directory `r-<first 16 hex of the digest>` under `--runs`, takes its `lock` (one a live process holds exits 2 `run_in_progress`), journals every call as `calls/<callKey>.json`, and writes `state.json` and `run.json` there. Repeating a request that finished returns its run with `reused: true` and no provider call; repeating an interrupted one pays only for the calls its journal lacks. `--round` (default 1) is part of the digest: a new round is a new run.
|
|
73
|
+
|
|
74
|
+
MCP tool: `materials`, arguments `albedo`, `spec`, `profile`, `derivation`, `out`, `cap`, `workItem`, `digitalSourceType`, `runs`, `round`.
|
|
75
|
+
|
|
76
|
+
### `stage`
|
|
77
|
+
|
|
78
|
+
```text
|
|
79
|
+
stage --spec <spec.json> --bible <BIBLE.md> --profile <profile.json> [--candidates 4] [--note <text>] [--cap <usd>] [--runs .assetgrove/runs] [--work-item <label>] [--provider-script <module>] [--round 1] [--dry-run] [--json]
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Generates candidates within the cap and stages only those that pass QA, with reasons and provenance, in a run directory under `--runs`. `--dry-run` prints the planned calls, the cost forecast and the spend left under the ledger's limits, writes nothing and needs no key. Image kinds make paid gateway calls. A `character-3d` spec makes rigged, animated `.glb` candidates from the subject's approved turnaround: its 3D calls go to Tripo (`TRIPO_API_KEY`) and its identity call to the gateway. Every `.glb` candidate, here and from `rig`, `lod` and `look-dev`, gets core's model checks before it is staged, each its own exact reason naming the field, the measured value and the limit, read through glTF-Transform with no model call: `glb-container` (a binary glTF 2.0), `budget-<name>` (`triangles`, `textureMaxPx`, `materials`, `bones` and `lods` within `model3d.budgets`, or the limits of the spec's `tier` under its `tierClass`, `character` or `prop`), `bounds` (the height within `model3d.boundsTolerance`, default 1%, of the spec's `heightM`), `rig-template` (with a profile rig template, every skin's bones are its joints by name and in order) and `clip-<family>` (each spec family is in the model by name and lasts more than 0 ms; a reported missing family passes, and a target that needs every spec clip checks that in its own validator). A target's validator runs only at `pick`, after these, and is left with what its game owns: its manifest, licences, paths and engine rules (docs/characters-3d.md). A `prop-3d` spec makes static `.glb` candidates the same way (Tripo, `TRIPO_API_KEY`; no rig or clip call), sized by `heightM` or by a `bounds` box (`widthM`, `heightM`, `depthM`) that the model is scaled to fit inside; `gait` and `clips` are refused (exit 2). For a prop, core's `bounds` check also takes the spec's `bounds` box, and `tierClass` defaults to `prop` (docs/props-3d.md). A sprite-strip spec needs an approved `keyPose`. Never writes into the target.
|
|
83
|
+
|
|
84
|
+
Plan step: `--dry-run` prints the request's WorkPlan (`jobs`, `candidates`, `forecastUsd`, `capUsd`, `capSource`, `paid`, `inputs` hashes, `options`, the 64-hex request `digest` and `runDir`) with no provider call, no ledger entry and nothing written; the `estimate` tool returns the same document. A real run first writes `request.json` in its run directory `r-<first 16 hex of the digest>` under `--runs`, takes its `lock` (one a live process holds exits 2 `run_in_progress`), journals every call as `calls/<callKey>.json`, and writes `state.json` and `run.json` there. Repeating a request that finished returns its run with `reused: true` and no provider call; repeating an interrupted one pays only for the calls its journal lacks. `--round` (default 1) is part of the digest: a new round is a new run.
|
|
85
|
+
|
|
86
|
+
MCP tool: `stage`, arguments `spec`, `bible`, `profile`, `candidates`, `note`, `cap`, `runs`, `workItem`, `round`.
|
|
87
|
+
|
|
88
|
+
### `stage-source`
|
|
89
|
+
|
|
90
|
+
```text
|
|
91
|
+
stage-source --source <file.aseprite> --spec <spec.json> --profile <profile.json> [--runs .assetgrove/runs] [--digital-source-type <IPTC code or URI>] [--json]
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Renders an editable Aseprite file as a staged strip, with no model call: the frames of the tag named the spec's `animationFamily` (every frame when the file has no tags; a file with other tags exits 2 naming them), layers composited with the normal blend, side by side as candidate `c1` of a run directory under `--runs`. The spec must be a `sprite-strip` with an `assetId` and `animationFamily`, and the file's canvas must be the profile's frame size (exit 2 otherwise). The candidate's provenance records `editableSource`: the file's path and sha256, the tag, the source frames and their durations; `pick` keeps that lineage. An `.aseprite` file embeds no source type, so declare it with `--digital-source-type` or it stays undeclared. The run is named from the file's bytes, spec, profile and source type: staging the same bytes again rewrites the same run, an edited source is a new run. Spends nothing. The existing `import` and Aseprite JSON hand-off are unchanged.
|
|
95
|
+
|
|
96
|
+
MCP tool: `stage_source`, arguments `source`, `spec`, `profile`, `runs`, `digitalSourceType`.
|
|
97
|
+
|
|
98
|
+
### `render-sprite`
|
|
99
|
+
|
|
100
|
+
```text
|
|
101
|
+
render-sprite --model <model.glb> --spec <spec.json> --profile <profile.json> [--runs .assetgrove/runs] [--digital-source-type <IPTC code or URI>] [--json]
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Renders a `.glb` with Assetgrove's own renderer at the camera the target profile's `camera` declares (parallel projection, `yawDeg`, `elevationDeg`, `pixelsPerUnit`, a fixed `light`), with no model call: a `still` spec gives the rest pose, a `sprite-strip` spec the clip named its `animationFamily` (a model without it exits 2 naming its clips), `frames.count` frames sampled evenly over the clip (else the clip's length over `frames.durationMs`). The profile's `style` applies (palette, crisp edges, binary alpha). The result is candidate `c1` of a run directory under `--runs`. A profile without a camera, or a model that does not fit the frame at the profile's scale, exits 2; the scale is never changed. The model's ground point (the centre of the base of its rest-pose bounds) falls at the spec's `anchor`, else where the model is centred in the frame, and is recorded as `fields.groundPoint` and `fields.anchor`. The provenance records `editableSource` (the model's path, sha256 and clip) and `pick` keeps that lineage. The source type is `--digital-source-type`, else the one the `.glb` embeds, else undeclared. The run is named from the model's bytes, spec, profile and source type. Spends nothing. See docs/rendered-sprites.md.
|
|
105
|
+
|
|
106
|
+
MCP tool: `render_sprite`, arguments `model`, `spec`, `profile`, `runs`, `digitalSourceType`.
|
|
107
|
+
|
|
108
|
+
### `pick`
|
|
109
|
+
|
|
110
|
+
```text
|
|
111
|
+
pick --run <run directory> --target <target directory> [--candidate <id>] [--profile <profile.json>] [--duplicate <existing-version|keep-separate|exit>] [--existing-version <assetId>@<version>] [--json]
|
|
112
|
+
pick --run <turnaround run> [--candidate <id>] [--json]
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
A person confirms the pick: headless settings record it unattended and must name `--candidate` (exit 2 `invalid_input` without one); otherwise a record at `<configDir>/confirmations/<hex>.json` for the pick's digest, an MCP client's form (`{candidate, note?}`, method `elicitation`), the inline prompt on a TTY (which asks for the candidate when none is named), or exit 8 `confirmation_required` and `assetgrove confirm <hex>`. The record goes into the pick's provenance. When a candidate's media is marked as model-made by another tool and came with a record of no calls (`modelMadeOutsideAssetgrove` in its provenance), the confirmation's summary warns that Assetgrove checked no licence grant for it and its details list it under `licenceGrantUnchecked`. Writes the chosen candidate and its manifest into the target with review pending, then runs the target profile's validator command locally when it declares one (exit 6 when it rejects). The validator is a command a file names, so it runs only with an approval tied to its exact command hash (kind, argv template, cwd relative to the target's Git top level, and the bytes of each argv file under it): listed in the settings' `commands.approved`, or a record at `<configDir>/approvals/<hash>.json`. Otherwise pick asks in an MCP client's form or at a TTY and records the accept, or exits 8 `confirmation_required` before writing anything, with `error.confirmation` carrying `id` (the hash), `confirmCommand` and `command` (`kind`, `hash`, `argv`, `cwd`, `files`); `confirm` approves it. Under headless settings only `commands.approved` counts. On Windows a validator whose program resolves to a `.cmd` or `.bat` file exits 2 `command_refused`. The provenance's `commands` records the validator's hash and approval `method` (`settings`, `elicitation`, `tty` or `terminal`). Refuses, before writing, an output the target's licence cannot declare, or whose third-party origin's terms do not allow commercial use and modification, or reference use when a model made it from that media (exit 7). Before writing, a candidate whose complete bytes match another asset's version or an older version (including historical versions) is reported with its `assetId` and `version` under `duplicates`, and pick exits 2 `invalid_input` with `outcome` `decision-required` until `--candidate` and `--duplicate` choose an outcome: `existing-version` with `--existing-version <assetId>@<version>` returns that reference and writes nothing; `keep-separate` admits the candidate as its own asset; `exit` writes nothing. Both `existing-version` and `keep-separate` require a person even under headless settings, and the confirmation is bound to the candidate, the outcome and the complete match set; if the match set or staged input changes after confirming, pick exits 2 `plan_changed` before admission. Declining leaves the library unchanged. Names and visual similarity never make a duplicate. Calls no model and spends nothing. Only a person runs it.
|
|
116
|
+
|
|
117
|
+
The run hands off with the profile snapshot taken at stage time unless the target's current profile (`--profile`, else `<target>/.assetgrove/profile.json` when it exists) differs from it. When it differs only in hand-off fields (the `manifest` and `layout` templates, a kind's `layout` override and the `validator`), pick uses the current profile's values: its path and sha256 enter the digest, and the provenance's `currentProfile` records the fields taken, the file's `sha256` and its path relative to the target when it is inside it. Any other difference exits 2 `plan_changed` naming every differing field in `fields`. The QA verdict stays the staged one; the validator runs at pick. A template value that is undefined and not marked optional exits 2 `invalid_input` before any write, with `error.template` naming the template (`name`), the `field` and, for a whole value, the `optional` form (`{{field?}}`).
|
|
118
|
+
|
|
119
|
+
On a `turnaround` run `--target` is not needed (every other run exits 2 without it): a person confirms the candidate, and pick writes its views to `turnarounds/<subject>/<view>.png` beside the bible, each with a `<view>.provenance.json`, then rewrites the bible with one positive anchor per view and the subject's approved identity lock. A rejected candidate cannot be picked. YAML comments in the front matter are not kept.
|
|
120
|
+
|
|
121
|
+
MCP tool: `pick`, arguments `run`, `candidate`, `target`, `profile`, `duplicate`, `existingVersion`.
|
|
122
|
+
|
|
123
|
+
### `pick --batch`
|
|
124
|
+
|
|
125
|
+
```text
|
|
126
|
+
pick --batch <file.json> [--json]
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Picks one candidate of each of several runs with one confirmation. The file is a JSON list of `{run, candidate?, target?, profile?}`, one entry per run, under pick's rules (a turnaround run takes no target or profile; an entry's `profile` is pick's current profile). Every entry is planned and checked as pick checks it, then one form lists each entry on its own line: subject, run, candidate and whether it approves an identity lock. Accepting confirms exactly that list; changed bytes or a changed list exit 2 `plan_changed`. Headless settings answer only where they would answer every entry's pick alone, so a batch with a turnaround pick needs a person. One failing entry writes nothing for the whole batch and is named in `error.message` and `entry`. After the write each entry gets pick's records (card, review record, index, log, hand-off), and the confirmation its review record and provenance carry is the batch's, by its digest: the record's `choices` lists each entry's candidate, and each entry's own `choice` is its candidate. `entries` lists each entry's outcome in order. The MCP result and `--json` have the same shape. The MCP form is `{approve, entry<N>?}`, with an `entry<N>` enum for an entry that names no candidate. Only a person confirms it.
|
|
130
|
+
|
|
131
|
+
MCP tool: `pick_batch`, arguments `entries`.
|
|
132
|
+
|
|
133
|
+
### `intake`
|
|
134
|
+
|
|
135
|
+
```text
|
|
136
|
+
intake <file> --target <target directory> [--profile <profile>] [--json]
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Hashes the complete bytes of an incoming media file (SHA-256) and reports every exact match in the target's library under `matches` (`assetId`, `version`, `sha256`, `card`), including historical versions whose media is no longer local and cards without a review record (by their lock hash). `outcome` is `distinct` with no match, otherwise `decision-required` with `outcomes` `existing-version`, `keep-separate` and `exit`, which pick selects for a staged candidate. Files with the same name or similar appearance but different bytes are distinct. An unfetched Git LFS pointer exits 2 `invalid_input`. `--profile` defaults to the target's profile. Read-only: writes nothing, calls no model and spends nothing.
|
|
140
|
+
|
|
141
|
+
MCP tool: `intake`, arguments `file`, `target`, `profile`.
|
|
142
|
+
|
|
143
|
+
### `review`
|
|
144
|
+
|
|
145
|
+
```text
|
|
146
|
+
review <address> [--candidate <id>] [--version <n|sha256>] [--comment <text>] [--reply <id>] [--resolve <id>] [--reject <reason>] [--placeholder] [--frames <from-to>] [--cell <column,row>] [--time <start,end>] [--json]
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Appends one annotation to a review record, never changing an existing line. The address is an asset's card, media or review record, or, with `--candidate`, a run directory. `--version` names the version by number or sha256 (the current one by default; not with `--candidate`). `--comment` comments; `--reply` with `--comment` replies to the annotation it names; `--resolve` closes a request, with `--comment` as its note; `--reject` rejects with its reason and takes no `--comment`. Give one of `--reply`, `--resolve` or `--reject`. `--placeholder` marks the exact version, and only that version, as a placeholder (a `tagging` annotation; `--comment` is an optional note) so a release `deliver` refuses it; it takes no `--candidate`, `--reply`, `--resolve`, `--reject` or anchor. A new `--comment` on a version may anchor the note to part of it: `--frames` a frame range of a strip, `--cell` a cell of an atlas, `--time` a time range of a track in seconds; each is checked against that exact version, and one outside it exits 2 naming the selector and the valid range. For a version it then rewrites the card's state, the folder indexes and `log.md`. No confirmation, no model call and no spend. The annotation's text is returned only under `sharedText`.
|
|
150
|
+
|
|
151
|
+
MCP tool: `review`, arguments `address`, `candidate`, `version`, `comment`, `reply`, `resolve`, `reject`, `placeholder`, `frames`, `cell`, `time`.
|
|
152
|
+
|
|
153
|
+
### `approve`
|
|
154
|
+
|
|
155
|
+
```text
|
|
156
|
+
approve <address> [--version <n|sha256>] [--json]
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
The only way to approve a version. The address is the asset's card, media or review record; `--version` names the version by number or sha256, the current one by default. A person confirms it like a pick (a record at `<configDir>/confirmations/<hex>.json`, an MCP client's form, the inline prompt on a TTY, or exit 8 `confirmation_required` and `assetgrove confirm <hex>`). The digest covers the asset id, the version's sha256 and the record's head, so a confirmation no longer applies once the record gains a line. Under headless settings it exits 8 `confirmation_required` and writes nothing; if the record changes between confirming and writing it exits 2 `plan_changed`. Appends an assessing annotation carrying the confirmation, sets the card's state to approved, rewrites its lock and logs a line. The manifest's review stays pending. Calls no model and spends nothing. Only a person runs it.
|
|
160
|
+
|
|
161
|
+
MCP tool: `approve`, arguments `address`, `version`.
|
|
162
|
+
|
|
163
|
+
### `library adopt`
|
|
164
|
+
|
|
165
|
+
```text
|
|
166
|
+
library adopt (<address> | --asset <id>) --original <file> [--target <dir>] [--profile <profile.json>] [--bible <BIBLE.md>] [--json]
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Hands off a person's edit of a picked asset's file as its next version, the way `pick` hands off. The address is the asset's card, media or review record; `--asset <id>` names it in the library of `--target`'s profile instead. `--original` is the AI-made version the card locks (its sha256 must equal `lock.sha256`). Runs the free QA checks again on the edited file (transparency, the frame count its provenance records, and the palette of `--bible` when given); on an audio asset, whose edit must be a WAV, the kind's exact checks that judge a master (`audio:format`, `audio:duration`, `audio:true-peak`, `audio:loudness`, `audio:silence`, `audio:fake-stereo`) with the run's spec and profile, and `notRun` names `audio:fade` and `audio:loop`, which judge a recipe a hand edit does not have; a failure exits 5 `qa_found_nothing`. A person then confirms it like a pick, over the asset id, the file's sha256, the version it replaces, the original, the run that made the asset, its profile's sha256 and the review record's head; under headless settings it exits 8 `confirmation_required` and writes nothing. The hand-off is rendered from the run that made the asset (`<target>/.assetgrove/runs/<run>`, or the import `<target>/.assetgrove/imports/<run>` of a family `write-families` handed off; the target is `--target`, else the Git top level of the asset's folder; a run id that is not one path segment, a missing run or a run without the version's candidate exits 2) in the version's media type (edited bytes of another type exit 2): the file is marked `compositeWithTrainedAlgorithmicMedia` and signed with C2PA credentials that name the original as a `parentOf` ingredient, its provenance gets a `human-edit` step (an audio edit's inputs and outputs are sample hashes) and the confirmation, and every file the profile's hand-off presets write, the manifest included (review pending), is rendered again and read back. The profile's validator runs under pick's rules: an unapproved one exits 8 before any write, and pick's licence and origin-terms refusals apply (exit 7). A failed read-back (6 `handoff_check_failed`) or a rejecting validator (6 `validator_rejected`) records no version and puts back every file it wrote. Otherwise it appends the version and an adopt annotation and rewrites the card, its lock, the indexes and `log.md`. A Git LFS pointer exits 2; a file equal to the current version or to an older one exits 2 `version_exists`. Calls no model and spends nothing. Only a person runs it.
|
|
170
|
+
|
|
171
|
+
MCP tool: `library_adopt`, arguments `address`, `asset`, `original`, `target`, `profile`, `bible`.
|
|
172
|
+
|
|
173
|
+
### `card edit`
|
|
174
|
+
|
|
175
|
+
```text
|
|
176
|
+
card edit <address> [--title <text>] [--description <text>] [--tag <tag>]... [--label <label>]... [--body <markdown>] [--field <name=value>]... [--json]
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
Changes the person fields of a picked asset's card. `--label` or `--tag` is repeatable and replaces the card's tags. Both resolve aliases when the project has a vocabulary; `--body` replaces the Markdown after the front matter; `--field` is repeatable and sets a field Assetgrove does not own. Naming a machine field exits 2 `card_field_owned` before anything is written. Appends a describing annotation (tagging when only the tags change) that names the changed fields, rewrites the card and the folder indexes, and logs a line. No confirmation, no model call and no spend. The card's text is returned only under `sharedText`.
|
|
180
|
+
|
|
181
|
+
MCP tool: `card_edit`, arguments `address`, `title`, `description`, `tag`, `label`, `body`, `field`.
|
|
182
|
+
|
|
183
|
+
### `card describe`
|
|
184
|
+
|
|
185
|
+
```text
|
|
186
|
+
card describe [<address>] [--propose] [--missing] [--target <dir>] [--profile <profile.json>] [--cap <usd>] [--work-item <label>] [--provider-script <module>] [--runs .assetgrove/runs] [--round 1] [--dry-run] [--json]
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Has a vision model write a card's `description` and `tags` from the asset's image (a 3D asset's turntable renders). Give one asset's card, media or review record, or `--missing` for every card with no description in the library of `--target`'s profile. The summary is recorded in the card's `verified` list as `process:assetgrove-summary:vision:<model>`. A card whose description or tags a person wrote is never overwritten; it is listed under `skipped` with the reason, as is an asset with no image view (audio, a Git LFS pointer, an undecodable file) and a reply with no summary. A paid command: a plan step, a forecast with `--dry-run`, a person's confirmation and the spend caps. The written text is returned only under `sharedText`.
|
|
190
|
+
|
|
191
|
+
With `--propose`, writes a proposal JSON file in the paid run directory instead of changing the card, and returns its path. This mode can suggest replacements for person-written text. It records proposed fields, baseline values, source version and media, and model. Labels are restricted to the project vocabulary; without one, no labels are proposed. Spending still follows the same forecast, confirmation and caps. `--dry-run` makes no proposal. A person applies selected fields with `card accept`.
|
|
192
|
+
|
|
193
|
+
MCP tool: `card_describe`, arguments `address`, `propose`, `missing`, `target`, `profile`, `cap`, `workItem`, `runs`, `round`.
|
|
194
|
+
|
|
195
|
+
### `card accept`
|
|
196
|
+
|
|
197
|
+
```text
|
|
198
|
+
card accept <proposal> --field <description|labels>... [--json]
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
Applies only the named fields of a proposal created by `card describe` in proposal mode; repeat `--field` to accept both. Unselected fields remain unchanged. A person must confirm the selected changes through the existing pick confirmation path. Acceptance calls no model and spends nothing. Under the library write lock it checks the source version and media, detects edits to selected fields since the proposal, and validates accepted labels against the current vocabulary. A stale source, overlapping edit or label outside the vocabulary refuses the write. Edits to unselected fields do not block acceptance. Each accepted field carries process attribution for its model; retained human text is not attributed to the model. Only a person runs this command.
|
|
202
|
+
|
|
203
|
+
MCP tool: `card_accept`, arguments `proposal`, `field`.
|
|
204
|
+
|
|
205
|
+
### `rig`
|
|
206
|
+
|
|
207
|
+
```text
|
|
208
|
+
rig --model <model.glb> --provenance <provenance.json> --spec <spec.json> --profile <profile.json> [--runs .assetgrove/runs] [--json]
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Re-rigs an existing 3D character, such as a picked candidate, on the target's shared skeleton (`model3d.rig`), generates the clips its gait profiles and motions declare, checks each clip and the model (core's model checks, as `stage`), and stages a one-candidate run with renders under `--runs` for a person to pick. Calls no model and spends nothing. Exits 5 when the result fails QA.
|
|
212
|
+
|
|
213
|
+
MCP tool: `rig`, arguments `model`, `provenance`, `spec`, `profile`, `runs`.
|
|
214
|
+
|
|
215
|
+
### `lod`
|
|
216
|
+
|
|
217
|
+
```text
|
|
218
|
+
lod --run <run dir> --candidate <id> [--profile <profile.json>] [--runs .assetgrove/runs] [--json]
|
|
219
|
+
lod --model <model.glb> --provenance <provenance.json> --spec <spec.json> --profile <profile.json> [--runs .assetgrove/runs] [--json]
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Makes the detail-level chain the profile declares (`model3d.lods`) and a rendition per quality tier (`model3d.tiers`) from a staged candidate or a given `.glb`. Each lower level keeps the skeleton, skin weights, clips and UVs, is checked against the full model, and is left out with a reason when it fails. The main file gets core's model checks, as `stage`; for `rig-template` the template is read from the given profile's directory, or the one the run records, and a run that records none is refused (exit 2) without `--profile`. Stages a one-candidate run under `--runs` for a person to pick. Calls no model and spends nothing. Exits 5 when the chain fails QA.
|
|
223
|
+
|
|
224
|
+
MCP tool: `lod`, arguments `run`, `candidate`, `model`, `provenance`, `spec`, `profile`, `runs`.
|
|
225
|
+
|
|
226
|
+
### `look-dev`
|
|
227
|
+
|
|
228
|
+
```text
|
|
229
|
+
look-dev --model <model.glb> --provenance <provenance.json> --spec <spec.json> --bible <BIBLE.md> --profile <profile.json> [--cap <usd>] [--runs .assetgrove/runs] [--work-item <label>] [--provider-script <module>] [--round 1] [--dry-run] [--json]
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
Repaints a picked 3D character's base colour on its own UVs in the look the bible's approved references define, writes fur groom maps and tint textures per season the profile declares (`model3d.groom`), gives the eyes a glossy material and mask, and checks them and the model (core's model checks, as `stage`). Stages a one-candidate run with before-and-after renders under `--runs` for a person to pick. Paid gateway calls; the cap defaults to the profile's `model3d.lookdev.capUsd` or $3. Exits 5 when the result fails its checks.
|
|
233
|
+
|
|
234
|
+
Plan step: `--dry-run` prints the request's WorkPlan (`jobs`, `candidates`, `forecastUsd`, `capUsd`, `capSource`, `paid`, `inputs` hashes, `options`, the 64-hex request `digest` and `runDir`) with no provider call, no ledger entry and nothing written; the `estimate` tool returns the same document. A real run first writes `request.json` in its run directory `r-<first 16 hex of the digest>` under `--runs`, takes its `lock` (one a live process holds exits 2 `run_in_progress`), journals every call as `calls/<callKey>.json`, and writes `state.json` and `run.json` there. Repeating a request that finished returns its run with `reused: true` and no provider call; repeating an interrupted one pays only for the calls its journal lacks. `--round` (default 1) is part of the digest: a new round is a new run.
|
|
235
|
+
|
|
236
|
+
MCP tool: `look_dev`, arguments `model`, `provenance`, `spec`, `bible`, `profile`, `cap`, `runs`, `workItem`, `round`.
|
|
237
|
+
|
|
238
|
+
### `import`
|
|
239
|
+
|
|
240
|
+
```text
|
|
241
|
+
import --sheet <sheet.png> --profile <profile.json> --asset <id> --tool <name> [--origin <origin.json>] [--spec <spec.json>] [--bible <BIBLE.md>] [--subject <name>] [--hints idle,walk-right,...] [--frames <count>] [--grid <columns>] [--components] [--max-halo <fraction>] [--no-propose] [--propose-labels] [--cap <usd>] [--work-item <label>] [--imports .assetgrove/imports] [--digital-source-type <IPTC code or URI>] [--provider-script <module>] [--lock-bible <BIBLE.md>] [--identity-mode <off|shadow|enforce>] [--runs .assetgrove/runs] [--round 1] [--dry-run] [--json]
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
Slices a contact sheet from any tool (`--tool` names it) into frames under `--imports`, removes the background to the profile's style, and has a vision model propose animation families in `<import>/grouping.json` with status `proposed`, each with its `action` and `facing` (`north`, `east`, `south`, `west` or a diagonal) where it faces one way, a mirror the opposite side of its source; the person confirms or edits them, and `write-families` writes them into each family's spec and card. `--no-propose` skips that paid call. With `--bible`, the bible's prompt text makes the run's first call the prompt policy's model check on the decisions role, `--no-propose` or not; it fails closed (exit 4, or 2 `route_unavailable` when nothing serves the role). Without `--bible` there is no prompt text and no check. With `--lock-bible`, a locked subject's sheet is also scored against its identity lock, one paid call unless `--identity-mode off`. With `--frames`, a sheet that does not slice into exactly that many figures is refused (exit 2) before any model call. `--max-halo` sets the matte checks' limit on halo and leftover background (default 0.005 of edge pixels). Never writes into the target.
|
|
245
|
+
|
|
246
|
+
The optional `--origin <origin.json>` records a human-made or third-party declaration and its evidence, including any supplied source and licence. A third-party origin may record the supplier's `terms`: `commercial`, `modification`, `redistribution` and `reference` (use as a reference for generation), each `yes`, `no` or `not-stated`, and the supplier's `wording` verbatim; a person reads the wording and writes the answers, and confirms them in each hand-off's confirmation, which shows them under `terms` and whose digest covers them. Assetgrove never reads a licence. Without `terms` nothing is stated. Every hand-off of the import (`write-families`, `pick`, `library adopt`) refuses, exit 7 `license_refused`, unless commercial use and modification are `yes` (`not-stated` asks the developer to record an answer and import again), and reference use too when a model made media from it (`not-stated` counts as no); a release `deliver` also needs redistribution `yes` (`not-stated` counts as no), and fails a card whose origin does not parse. `error.terms` lists each refused permission's `answer` and `outcome` (`forbidden`, `unstated-no`, `question`). `op`, `recipe` and `fix-frame` keep a source's third-party origin (from `<source>.provenance.json`). Its contents are included in the request digest.
|
|
247
|
+
|
|
248
|
+
Plan step: `--dry-run` prints the request's WorkPlan (`jobs`, `candidates`, `forecastUsd`, `capUsd`, `capSource`, `paid`, `inputs` hashes, `options`, the 64-hex request `digest` and `runDir`) with no provider call, no ledger entry and nothing written; the `estimate` tool returns the same document. A real run first writes `request.json` in its run directory `r-<first 16 hex of the digest>` under `--runs`, takes its `lock` (one a live process holds exits 2 `run_in_progress`), journals every call as `calls/<callKey>.json`, and writes `state.json` and `run.json` there. Repeating a request that finished returns its run with `reused: true` and no provider call; repeating an interrupted one pays only for the calls its journal lacks. `--round` (default 1) is part of the digest: a new round is a new run.
|
|
249
|
+
|
|
250
|
+
With `--spec <spec.json>`, the file is imported as the asset of the spec's kind, which must be one that imports (the tiles pack's `tiles:sheet`: a bought or hand-drawn tile sheet, by cell; see the `assetgrove-tiles` skill). Its bytes are kept as given: no slicing, no background removal, no model call, no spend. `--origin` is then required and third-party, with the supplier (`source`), the evidence of purchase (`evidence`) and the licence `terms`. The kind's exact checks run on it, and a failing one refuses it (exit 2 `invalid_input`, the failed reasons in `fields.failed`); `--asset` must be the spec's `assetId`; otherwise it is staged as candidate `c1` of the request's run under `--runs` for a person to `pick`. When the spec leaves out what the kind can read from the file (a tile sheet's grid), nothing is staged: exit 2 `invalid_input` with what was read in `fields.read`; show it to the person, and once they confirm it, state it in the spec and import again. With `--spec --propose-labels`, once the file imports cleanly by the spec, the kind has a model propose what it reads from the file: for a `tiles:sheet`, one vision call proposing each drawn cell's label (kind from the project's `tileKinds` in `.assetgrove/labels.json`, else ground, wall, object, water; walkable; draw above or below characters). It is a paid call, planned and capped as any. Nothing is staged: exit 0 with the proposal in `fields.read`; show it to the person, and once they confirm it, state it in the spec (`fields.cellLabels`) and import again without `--propose-labels`. `--spec` refuses the contact-sheet options (`--frames`, `--grid`, `--components`, `--hints`, `--max-halo`, `--no-propose`, `--lock-bible`, `--identity-mode`, `--subject`, `--bible`).
|
|
251
|
+
|
|
252
|
+
MCP tool: `import`, arguments `sheet`, `spec`, `profile`, `asset`, `tool`, `origin`, `digitalSourceType`, `bible`, `subject`, `hints`, `frames`, `grid`, `components`, `maxHalo`, `noPropose`, `proposeLabels`, `lockBible`, `identityMode`, `cap`, `imports`, `workItem`, `runs`, `round`.
|
|
253
|
+
|
|
254
|
+
### `generate-sheet`
|
|
255
|
+
|
|
256
|
+
```text
|
|
257
|
+
generate-sheet --spec <spec.json> --bible <BIBLE.md> --profile <profile.json> [--cap <usd>] [--imports .assetgrove/imports] [--lock-bible <BIBLE.md>] [--identity-mode <off|shadow|enforce>] [--brief <brief.json>] [--note <text>] [--max-halo <fraction>] [--work-item <label>] [--provider-script <module>] [--runs .assetgrove/runs] [--round 1] [--dry-run] [--json]
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
Has the model draw a whole animation cycle as one sheet within the cap, then imports it as `import` does, with a proposed grouping for a person to confirm. A sheet that does not slice into the spec's `frames.count` figures exits 5; the sheet and its record are kept in the import directory. `--brief` adds the author's brief to the prompt; `--lock-bible` and `--identity-mode` score the sheet as `import` does, inside the forecast and the cap; `--max-halo` sets the matte limit as for `import`. Paid gateway calls. Never writes into the target.
|
|
261
|
+
|
|
262
|
+
Plan step: `--dry-run` prints the request's WorkPlan (`jobs`, `candidates`, `forecastUsd`, `capUsd`, `capSource`, `paid`, `inputs` hashes, `options`, the 64-hex request `digest` and `runDir`) with no provider call, no ledger entry and nothing written; the `estimate` tool returns the same document. A real run first writes `request.json` in its run directory `r-<first 16 hex of the digest>` under `--runs`, takes its `lock` (one a live process holds exits 2 `run_in_progress`), journals every call as `calls/<callKey>.json`, and writes `state.json` and `run.json` there. Repeating a request that finished returns its run with `reused: true` and no provider call; repeating an interrupted one pays only for the calls its journal lacks. `--round` (default 1) is part of the digest: a new round is a new run.
|
|
263
|
+
|
|
264
|
+
MCP tool: `generate_sheet`, arguments `spec`, `bible`, `profile`, `brief`, `note`, `maxHalo`, `cap`, `imports`, `lockBible`, `identityMode`, `workItem`, `runs`, `round`.
|
|
265
|
+
|
|
266
|
+
### `turnaround`
|
|
267
|
+
|
|
268
|
+
```text
|
|
269
|
+
turnaround --subject <id> --photo <file>... --bible <BIBLE.md> --profile <profile.json> [--candidates 3] [--cap <usd>] [--max-halo <fraction>] [--work-item <label>] [--provider-script <module>] [--runs .assetgrove/runs] [--round 1] [--dry-run] [--json]
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
Turns a subject's photos, scene photos included, into turnaround candidates: one image call per `--candidates` (default 3) on the `turnaround` route (default `openai/gpt-image-2`), each drawing one sheet of four views (front, three-quarter, side, back; a flat subject's sheet leaves out the side) of the named subject alone in the bible's look, with the photos sent as references in order. The sheet is 2 x 2 unless the bible declares the subject's `bounds`, whose shape the cells follow; a prop's or structure's (`kind`) request leaves out the bible's character notes. Each sheet is cut on its exact grid into its views and each view is matted. A candidate is rejected, with its reasons kept, when a cell is empty, a figure touches its cell's edge, a matte leaves a background edge (`--max-halo`, default 0.005), or a view shows something besides the subject (`turnaround:not-subject`, one decision per view, advisory until measured). Writes `c<n>/sheet.png`, `front.png`, `three-quarter.png`, `side.png`, `back.png`, `turnaround.json` and `contact.png` in the run directory. Exits 5 `qa_found_nothing` when no candidate passes. Paid gateway calls. A photo is read where it is and goes only to the turnaround route's provider; records name it by a label, sha256 and media type, never its path. The prompt policy checks the text only and cannot judge a photo. Never writes into the target; `pick` does. See [turnaround](https://github.com/clockgrove/assetgrove/blob/main/docs/turnaround.md).
|
|
273
|
+
|
|
274
|
+
Plan step: `--dry-run` prints the request's WorkPlan (`jobs`, `candidates`, `forecastUsd`, `capUsd`, `paid`, `inputs` hashes, `options`, the 64-hex request `digest` and `runDir`) with no provider call, no ledger entry and nothing written; the `estimate` tool returns the same document. A real run first writes `request.json` in its run directory `r-<first 16 hex of the digest>` under `--runs`, takes its `lock` (one a live process holds exits 2 `run_in_progress`), journals every call as `calls/<callKey>.json`, and writes `state.json` and `run.json` there. Repeating a request that finished returns its run with `reused: true` and no provider call; repeating an interrupted one pays only for the calls its journal lacks. `--round` (default 1) is part of the digest: a new round is a new run.
|
|
275
|
+
|
|
276
|
+
MCP tool: `turnaround`, arguments `subject`, `photo` (array of paths), `bible`, `profile`, `candidates`, `cap`, `maxHalo`, `workItem`, `runs`, `round`.
|
|
277
|
+
|
|
278
|
+
### `write-families`
|
|
279
|
+
|
|
280
|
+
```text
|
|
281
|
+
write-families --import <import directory> --target <target directory> [--grouping <import>/grouping.json] [--jitter-bound 1] [--json]
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
Writes one strip and manifest per family of a grouping whose status is `confirmed` into the target with review pending, registered within the jitter bound in pixels. The status grants nothing: a person confirms the write of these families and this grouping's digest through headless settings, a record at `<configDir>/confirmations/<hex>.json`, an MCP client's form, the inline prompt on a TTY, or exit 8 `confirmation_required` and `assetgrove confirm <hex>`. Runs the target's validator (exit 6 when it rejects), and refuses an output the target's licence cannot declare or a third-party sheet whose origin terms do not allow it (exit 7), or a sheet the identity lock filtered. Calls no model and spends nothing. Only a person runs it.
|
|
285
|
+
|
|
286
|
+
MCP tool: `write_families`, arguments `import`, `target`, `grouping`, `jitterBound`.
|
|
287
|
+
|
|
288
|
+
### `identity-eval`
|
|
289
|
+
|
|
290
|
+
```text
|
|
291
|
+
identity-eval [--bible <BIBLE.md>] --cases <cases.json> [--profile <profile.json>] [--log <identity-eval.jsonl>] [--record] [--cap <usd>] [--work-item <label>] [--provider-script <module>] [--runs .assetgrove/runs] [--round 1] [--dry-run] [--json]
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
Scores every case of a local labelled image set against its subject's identity lock and reports accuracy per threshold, the recommended threshold (among those whose false-accept rate is within the enforce bar, the one with the fewest false rejects; "none meets the bar" otherwise), accuracy at the profile's threshold and agreement with the cases' QA verdicts. Paid gateway calls. Writes one JSON line per case to `--log`; `--record` writes the recommended threshold, with the eval that produced it, to `identity-thresholds.json` beside `--bible`, keyed by question and decision model, which enforce mode requires (refused before any call without `--bible` or when a case names another bible, and after the eval when the recommended threshold does not meet the whole enforce bar). Writes nothing else beside its run directory; never filters or approves. Keep the set and the log local.
|
|
295
|
+
|
|
296
|
+
Plan step: `--dry-run` prints the request's WorkPlan (`jobs`, `candidates`, `forecastUsd`, `capUsd`, `capSource`, `paid`, `inputs` hashes, `options`, the 64-hex request `digest` and `runDir`) with no provider call, no ledger entry and nothing written; the `estimate` tool returns the same document. A real run first writes `request.json` in its run directory `r-<first 16 hex of the digest>` under `--runs`, takes its `lock` (one a live process holds exits 2 `run_in_progress`), journals every call as `calls/<callKey>.json`, and writes `state.json` and `run.json` there. Repeating a request that finished returns its run with `reused: true` and no provider call; repeating an interrupted one pays only for the calls its journal lacks. `--round` (default 1) is part of the digest: a new round is a new run.
|
|
297
|
+
|
|
298
|
+
MCP tool: `identity_eval`, arguments `bible`, `cases`, `profile`, `log`, `record`, `cap`, `workItem`, `runs`, `round`.
|
|
299
|
+
|
|
300
|
+
### `identity-check`
|
|
301
|
+
|
|
302
|
+
```text
|
|
303
|
+
identity-check --bible <BIBLE.md> [--subject <name>]... [--cap <usd>] [--work-item <label>] [--provider-script <module>] [--runs .assetgrove/runs] [--round 1] [--dry-run] [--json]
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
Asks whether each identity record's written features, proportions and palette agree with the record's own approved reference images, for every identity in the bible or each named subject. Paid gateway calls; writes nothing beside its run directory. Exits 1 when any record disagrees or could not be checked; enforce mode does not filter with that record until a person fixes its text or references.
|
|
307
|
+
|
|
308
|
+
Plan step: `--dry-run` prints the request's WorkPlan (`jobs`, `candidates`, `forecastUsd`, `capUsd`, `capSource`, `paid`, `inputs` hashes, `options`, the 64-hex request `digest` and `runDir`) with no provider call, no ledger entry and nothing written; the `estimate` tool returns the same document. A real run first writes `request.json` in its run directory `r-<first 16 hex of the digest>` under `--runs`, takes its `lock` (one a live process holds exits 2 `run_in_progress`), journals every call as `calls/<callKey>.json`, and writes `state.json` and `run.json` there. Repeating a request that finished returns its run with `reused: true` and no provider call; repeating an interrupted one pays only for the calls its journal lacks. `--round` (default 1) is part of the digest: a new round is a new run.
|
|
309
|
+
|
|
310
|
+
MCP tool: `identity_check`, arguments `bible`, `subject`, `cap`, `workItem`, `runs`, `round`.
|
|
311
|
+
|
|
312
|
+
### `animation-qa`
|
|
313
|
+
|
|
314
|
+
```text
|
|
315
|
+
animation-qa (--strip <strip.png> --family <name> --profile <profile.json> | --import <import directory>) [--out .assetgrove/animation] [--subject <name>] [--spec <spec.json>] [--anchor x,y] [--no-vision] [--cap <usd>] [--work-item <label>] [--provider-script <module>] [--runs .assetgrove/runs] [--round 1] [--dry-run] [--json]
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
Checks one strip, or every family `write-families` wrote from an import, against its motion template and for loop and continuity on pixels. Within the cap, vision calls judge identity flicker between consecutive frames and holes inside the figure; `--no-vision` skips both and spends nothing. Writes a QA report, an onion-skin sheet and a looping preview per family into `--out`, never into the target. Exits 5 when any check fails; each failure names its frame.
|
|
319
|
+
|
|
320
|
+
Plan step: `--dry-run` prints the request's WorkPlan (`jobs`, `candidates`, `forecastUsd`, `capUsd`, `capSource`, `paid`, `inputs` hashes, `options`, the 64-hex request `digest` and `runDir`) with no provider call, no ledger entry and nothing written; the `estimate` tool returns the same document. A real run first writes `request.json` in its run directory `r-<first 16 hex of the digest>` under `--runs`, takes its `lock` (one a live process holds exits 2 `run_in_progress`), journals every call as `calls/<callKey>.json`, and writes `state.json` and `run.json` there. Repeating a request that finished returns its run with `reused: true` and no provider call; repeating an interrupted one pays only for the calls its journal lacks. `--round` (default 1) is part of the digest: a new round is a new run.
|
|
321
|
+
|
|
322
|
+
MCP tool: `animation_qa`, arguments `strip`, `family`, `profile`, `import`, `out`, `subject`, `spec`, `anchor`, `noVision`, `cap`, `workItem`, `runs`, `round`.
|
|
323
|
+
|
|
324
|
+
### `fix-frame`
|
|
325
|
+
|
|
326
|
+
```text
|
|
327
|
+
fix-frame --strip <strip.png> --family <name> --profile <profile.json> --frame <n> (--from <n> | --key-pose <image>) --out <directory> [--subject <name>] [--spec <spec.json>] [--note <text>] [--provenance <strip>.provenance.json] [--bible <BIBLE.md>] [--anchor x,y] [--cap 2] [--work-item <label>] [--provider-script <module>] [--runs .assetgrove/runs] [--round 1] [--dry-run] [--json]
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
Regenerates one frame (1-based) of a strip with one paid reference-guided edit call, from an approved neighbour frame or the approved key pose, then, when its candidate scales (area, height, head box) register to different pixels and the strip has another frame to draw beside it, one paid `fix-scale` decision call that picks the scale at which the character matches the surrounding frames. Only that frame changes. Writes the fixed strip, its provenance with a fixes entry, and its QA report and previews into `--out`; never writes into the target or sets a review value. A provenance file that is not the strip's own record is refused (exit 2) before the call.
|
|
331
|
+
|
|
332
|
+
Plan step: `--dry-run` prints the request's WorkPlan (`jobs`, `candidates`, `forecastUsd`, `capUsd`, `capSource`, `paid`, `inputs` hashes, `options`, the 64-hex request `digest` and `runDir`) with no provider call, no ledger entry and nothing written; the `estimate` tool returns the same document. A real run first writes `request.json` in its run directory `r-<first 16 hex of the digest>` under `--runs`, takes its `lock` (one a live process holds exits 2 `run_in_progress`), journals every call as `calls/<callKey>.json`, and writes `state.json` and `run.json` there. Repeating a request that finished returns its run with `reused: true` and no provider call; repeating an interrupted one pays only for the calls its journal lacks. `--round` (default 1) is part of the digest: a new round is a new run.
|
|
333
|
+
|
|
334
|
+
MCP tool: `fix_frame`, arguments `strip`, `family`, `profile`, `frame`, `from`, `keyPose`, `out`, `subject`, `spec`, `note`, `provenance`, `bible`, `anchor`, `cap`, `workItem`, `runs`, `round`.
|
|
335
|
+
|
|
336
|
+
### `compare`
|
|
337
|
+
|
|
338
|
+
```text
|
|
339
|
+
compare <before> <candidate> [--region "<region>"]... [--frame <n>] [--view <n>] [--frame-width <px>] [--out .assetgrove/compare] [--json]
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
Free. Writes `<out>/compare.png`: a row with the version before, the candidate and a difference map (black where pixels are equal), region outlines drawn on all three, numbers only, so the sheet is pixel-identical when only card or bible text changes. Reports `identical`, `changed` (the share of all pixels) and `outsideChange`, the share of the figure's pixels changed outside every region, the figure being every pixel not fully transparent in the version before or in the candidate, less, when the version before has a one-colour opaque border such as a turntable render's grey backdrop, every pixel within 8 of that backdrop colour in both images (a pixel changed when a channel moves by more than 8 of 255); above 0.05, with regions given, it adds the advisory reason `changed_outside_region`. `--frame` names a strip's frame (frames are as wide as the strip is high unless `--frame-width`), `--view` a 3D asset's turntable view (give its `.glb`, or the directory of its renders). A region is `<x,y,w,h|mask=PATH> [frame N|view N] [ref PATH]... : <note>`; a box is pixels, or percent when every value ends in `%`; the note is optional here. A malformed region, or a path outside the project root, exits 2 `invalid_input`.
|
|
343
|
+
|
|
344
|
+
MCP tool: `compare`, arguments `before`, `candidate`, `region`, `frame`, `view`, `frameWidth`, `out`.
|
|
345
|
+
|
|
346
|
+
### `vary`
|
|
347
|
+
|
|
348
|
+
```text
|
|
349
|
+
vary --run <run> --candidate <id> [--count 4] [--cap <usd>] [--runs .assetgrove/runs] [--work-item <label>] [--provider-script <module>] [--round 1] [--dry-run] [--json]
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
Makes variations of one still candidate of a staged run: one reference-guided edit call each, with fresh seeds, after one spend confirmation. Writes `v<n>.<ext>` with provenance, `contact.png` and `compare.png` (each variation against the candidate) into its own run directory, and reports each variation's `outsideChange`. Variations are not QA-filtered and stay pending review. A repeat returns the finished run (`reused: true`) with no provider call; the plan step, run directory and `--round` work as for `stage`.
|
|
353
|
+
|
|
354
|
+
MCP tool: `vary`, arguments `run`, `candidate`, `count`, `cap`, `workItem`, `runs`, `round`.
|
|
355
|
+
|
|
356
|
+
### `audit`
|
|
357
|
+
|
|
358
|
+
```text
|
|
359
|
+
audit <set address> [--checks style,identity,loudness] [--bible <BIBLE.md>] [--target <dir>] [--cap <usd>] [--runs .assetgrove/runs] [--work-item <label>] [--provider-script <module>] [--round 1] [--dry-run] [--json]
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
The set-level audit. A set is any `asset://` folder of the tree; its members are the assets and run candidates it lists, over every page. Each member with a local image is scored from 0 to 1 for style (one `vision` call: the member against the bible's positive anchors and up to 4 other members) and, where its subject has an identity lock, for identity (one identity decision, which never filters). Its WAV members are grouped by subject, each group a variant set, and checked by `loudness` (`audio:set-loudness`): every member within the profile's `audio.setSpreadLu` (default 2 LU) of the set's median loudness (an `sfx` by maximum momentary loudness, others integrated), free, with no model call; `loudness` in `audit.json` lists each set's `subject`, `spreadLu`, `median`, `members` in asset-id order and `reasons`, and the human output names each member outside. `--checks` takes `style`, `identity` and `loudness`, comma-separated or repeated; by default the images get style and identity and the audio loudness; `--bible` defaults to the project's `.assetgrove/art-direction/BIBLE.md`. It asks for spend once; a repeat returns the finished run (`reused: true`) with no provider call, and an interrupted run resumes from its journal.
|
|
363
|
+
|
|
364
|
+
It writes `audit.json` and `audit-sheet.png` into its run directory and nothing into the project. `audit.json` holds each member's scores (`members[].style`, `members[].identity`, each with `advisory`), each score's `spread` (`n`, `mean`, `median`, `stdDev`, `min`, `max`, `range`), the set-consistency `bar` docs/decisions.md records, its `judgement` per score (`judged`, `consistent`, `beyond`) and `beyond`, the members more than the bar's distance below a score's median. Under the bar's set size of 5, or with no bar, nothing is judged. Each score is advisory (`filtering`) until its check (`audit-style`, `audit-identity`) has a qualifying stability entry. With the search package loaded, `outliers` is the set's embedding ranking at no cost, `{members, ranking: [{address, distance}], unranked}`, every member with an indexed image most distant first and uncut, and `unranked` the members with no indexed image yet (`search index` brings them in), and the human output names the five most distant and lists any not ranked; the audit judges no style from it (the search package's `find` does that, paid, with its outliers option); without the package `outliers` is `null`. The sheet numbers the members weakest first, numbers only, and `sheet` maps each number to its address. The audit informs a person: it never rejects or approves.
|
|
365
|
+
|
|
366
|
+
MCP tool: `audit`, arguments `set`, `checks`, `bible`, `target`, `cap`, `workItem`, `runs`, `round`.
|
|
367
|
+
|
|
368
|
+
### `request-change`
|
|
369
|
+
|
|
370
|
+
```text
|
|
371
|
+
request-change <address> --region "<x,y,w,h|mask=PATH|t=START,END> [frame N|view N] [ref PATH]... : <note>" [--region ...] [--keep-rest] [--candidates 2] [--bible <path>] [--cap <usd>] [--runs .assetgrove/runs] [--work-item <label>] [--provider-script <module>] [--round 1] [--dry-run] [--json]
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
Asks for a change to the current version of an asset. Each region is a box (pixels, or percent when every value ends in `%`) or `mask=PATH`, with an optional `frame N` or `view N`, `ref PATH` references and a note; paths resolve inside the project root. The job is a masked edit when the `edit` route's adapter declares the `mask` capability (core: `openai` and `scripted`; a single `mask=PATH` region sends that file), else an edit of the whole image with the notes. Regions that all name a `frame` go through `fix-frame`'s path, one edit per frame plus, when its candidate scales differ, one `fix-scale` decision per frame, both counted in the confirmed spend; `view` regions on a 3D asset (`.glb`) make another round of the 3D kind with the note and need `--bible`. On an audio asset (its kind's media is `audio`) every region is a time range `t=START,END` in seconds (`t=npt:` too, within the version's duration) with a note, and the job is another round of the kind from its brief with `From START s to END s: <note>` added per region; it reads `--bible` or the project's BIBLE.md, and writes no `compare.png`. A box or mask on audio, or a time range on an image, exits 2. Mixing frame and non-frame regions, a view on an image, or a region without a view on a 3D asset exits 2. Notes pass the prompt policy (a blocklisted note exits 9 before the confirmation), and the spend form shows each region and note. Each region is recorded as an `editing` annotation on the current version, so it turns changes-requested; masks and references are copied to `<assetId>.review/<sha256>.<ext>`. The working file must equal the current version, else exit 2 (adopt the hand edit first); the run that made the asset is read from `--runs`. Writes `c<n>.<ext>` with provenance, `contact.png`, `compare.png` and `run.json` with `changeRequest: {asset, version, answers}`, and reports each candidate's `outsideChange` (above 0.05 adds `changed_outside_region`). A repeat resumes from the journal or returns the finished run (`reused: true`). `pick` of a candidate answers the request; a candidate made on an older version exits 2 `version_changed`.
|
|
375
|
+
|
|
376
|
+
MCP tool: `request_change`, arguments `address`, `region`, `keepRest`, `candidates`, `bible`, `cap`, `workItem`, `runs`, `round`.
|
|
377
|
+
|
|
378
|
+
### `op`
|
|
379
|
+
|
|
380
|
+
```text
|
|
381
|
+
op <operation> <input...> --out <path> [--params <json object>] [--profile <profile.json>] [--digital-source-type <IPTC code or URI>] [--json]
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
Runs one image operation (`ops` lists them) over the inputs and writes the outputs and a provenance record to `--out`: a file for one output, otherwise a directory. The profile supplies the style and frame size. Local: no model call, no spend.
|
|
385
|
+
|
|
386
|
+
MCP tool: `op`, arguments `operation`, `inputs`, `out`, `params`, `profile`, `digitalSourceType`.
|
|
387
|
+
|
|
388
|
+
### `recipe`
|
|
389
|
+
|
|
390
|
+
```text
|
|
391
|
+
recipe <recipe.json> <input...> --out <path> [--profile <profile.json>] [--digital-source-type <IPTC code or URI>] [--json]
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
Runs a recipe file's operations in order over the inputs and writes the outputs and a provenance record to `--out`. Deterministic: the same input, recipe and engine versions give the same bytes. Local: no model call, no spend.
|
|
395
|
+
|
|
396
|
+
MCP tool: `recipe`, arguments `recipe`, `inputs`, `out`, `profile`, `digitalSourceType`.
|
|
397
|
+
|
|
398
|
+
### `rendition`
|
|
399
|
+
|
|
400
|
+
```text
|
|
401
|
+
rendition --recipes <directory> --recipe <name> --source <image> --source-sha256 <64-hex-sha256> --out <directory> [--source-provenance <record.json>] [--profile <profile.json>] [--digital-source-type <IPTC code or URI>] [--preview] [--json]
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
Selects `<name>.json` from the project's recipe directory and builds deterministic image
|
|
405
|
+
renditions from the exact mezzanine bytes named by `--source-sha256`. Outputs and provenance go
|
|
406
|
+
under `<out>/<digest>/`; resolved recipe parameters and tool versions participate in the digest.
|
|
407
|
+
`--preview` is a write-free dry run showing exact output paths and hashes, also available over
|
|
408
|
+
MCP. Existing source provenance is retained when supplied explicitly or found at
|
|
409
|
+
`<source>.provenance.json`. Known disclosure survives; writing an undeclared source requires
|
|
410
|
+
`--digital-source-type`. Local raster operations only: no model call, external tool or spend.
|
|
411
|
+
Does not approve assets or add library versions.
|
|
412
|
+
|
|
413
|
+
MCP tool: `rendition`, arguments `recipes`, `recipe`, `source`, `sourceSha256`, `out`, `sourceProvenance`, `profile`, `digitalSourceType`, `preview`.
|
|
414
|
+
|
|
415
|
+
### `deliver`
|
|
416
|
+
|
|
417
|
+
```text
|
|
418
|
+
deliver --selection <delivery.json> --out <directory> [--profile <profile.json>] [--preview] [--draft] [--json]
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
Delivers an explicit set of exact library versions. The selection file lists items of asset card,
|
|
422
|
+
version (stack number or sha256), recipe name and destination folder; each version's mezzanine
|
|
423
|
+
bytes come from the library media or the local Git LFS store, never fetched. Writes the
|
|
424
|
+
renditions and a `delivery.json` manifest under `--out`, all or nothing. `--preview` is a dry run
|
|
425
|
+
that resolves content hashes and destination paths and writes nothing, also available over MCP.
|
|
426
|
+
A missing object, version, asset or recipe, or an output collision, is reported for every item
|
|
427
|
+
before any write: exit 2 `invalid_input` with `error.problems [{file, code, problem}]`. An existing
|
|
428
|
+
identical file is accepted; a differing one is a collision. A release delivery (no `--preview`, no
|
|
429
|
+
`--draft`) is also the release gate: a version a person marked as a placeholder (with `review`) is refused
|
|
430
|
+
(`placeholder_selected`), so is a third-party asset whose card's origin terms do not say `yes` to
|
|
431
|
+
commercial use, modification and redistribution (`origin_terms`), and when the `--profile`'s `release` policy enables them, a version that
|
|
432
|
+
is not approved (`version_unapproved`, `requireApproval`) or whose card licence is outside a
|
|
433
|
+
`licenseWindows` entry on the delivery date in the policy's `timeZone`, read as an SPDX expression
|
|
434
|
+
that fails closed on a missing or unparsable licence (`license_window`); each problem names the asset,
|
|
435
|
+
version, sha256 and evidence, and `policy` lists every check with its evidence. `--preview` and
|
|
436
|
+
`--draft` (which writes the delivery with `"draft": true` in `delivery.json`) report the same
|
|
437
|
+
`policy` findings without refusing on them; `release` is true only for a written release delivery.
|
|
438
|
+
Local raster operations only: no model call or spend. Does not approve assets, add library
|
|
439
|
+
versions or change the current pick.
|
|
440
|
+
|
|
441
|
+
MCP tool: `deliver`, arguments `selection`, `out`, `profile`, `preview`, `draft`.
|
|
442
|
+
|
|
443
|
+
### `ops`
|
|
444
|
+
|
|
445
|
+
```text
|
|
446
|
+
ops [--json]
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
Lists every operation with its summary, parameters and engines. Local.
|
|
450
|
+
|
|
451
|
+
MCP tool: `ops`, no arguments.
|
|
452
|
+
|
|
453
|
+
### `migrate`
|
|
454
|
+
|
|
455
|
+
```text
|
|
456
|
+
migrate <file> --kind <kind> [--json]
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
Adds the format line of `--kind` (`target-profile`, `style-bible`, `style-preset` or `recipe`) to a file that has none, and moves a file with an older format forward, rewriting it in place. JSON files are rewritten with two-space indentation; Markdown files keep their front matter comments, key order and prose. A file already current is not written. A newer or mismatched format is refused (exit 2). The result names the `file`, `kind`, `status` (`added`, `migrated` or `current`), `from` (the old version, or null) and `format`. Local: no model call, no spend.
|
|
460
|
+
|
|
461
|
+
MCP tool: `migrate`, arguments `file`, `kind`.
|
|
462
|
+
|
|
463
|
+
### `library check`
|
|
464
|
+
|
|
465
|
+
```text
|
|
466
|
+
library check [--target <dir>] [--profile <profile.json>] [--json]
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
Checks the library under the profile's `library.root` (default profile `<target>/.assetgrove/profile.json`): every pick has a card and a review record, each card's machine fields match the records, and media is mapped to Git LFS (`git check-attr filter`; skipped outside a Git repository). Indexes, logs and review records are compared after normalising order and duplicate headings, so a union merge passes; a file that differs only in layout is listed under `needsRebuild`. Exit 6 `library_check_failed` with `error.problems` `[{file, code}]` (codes `card_missing`, `card_invalid`, `review_missing`, `review_invalid`, `media_missing`, `media_not_lfs`, `machine_field_mismatch`, `credits_stale`, `credits_invalid`, `index_*` and `log_*` with `missing`, `mismatch` or `invalid`, and, when the profile sets `animation.facings`, `facing_missing` for each facing of its set a character lacks for a required action, its `message` naming the subject, action and facing). The credits report (`credits.report.json` and `credits.report.md` at the library root) is checked entry by entry: a missing report is listed under `needsRebuild`, and an asset whose entry differs is `credits_stale` with its id as `reference`. Read-only.
|
|
470
|
+
|
|
471
|
+
MCP tool: `library_check`, arguments `target`, `profile`.
|
|
472
|
+
|
|
473
|
+
### `library rebuild`
|
|
474
|
+
|
|
475
|
+
```text
|
|
476
|
+
library rebuild [--target <dir>] [--profile <profile.json>] [--json]
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
Rewrites every card's machine fields, every `index.md` and `log.md`, the credits report and the canonical layout of review records from the records, under the library write lock; the root log keeps its style bible lines. A second run changes nothing. `rebuilt` lists the files written; problems the records cannot fix still exit 6 `library_check_failed`.
|
|
480
|
+
|
|
481
|
+
MCP tool: `library_rebuild`, arguments `target`, `profile`.
|
|
482
|
+
|
|
483
|
+
### `library labels`
|
|
484
|
+
|
|
485
|
+
```text
|
|
486
|
+
library labels [--target <dir>] [--dry-run] [--apply] [--json]
|
|
487
|
+
```
|
|
488
|
+
|
|
489
|
+
Previews mappings, collisions, unknown labels and affected cards using the project's `.assetgrove/labels.json`. The default is a dry run. Use `--apply` to normalize known labels and update indexes while preserving unknown values and summary attribution. Resolve collisions before applying.
|
|
490
|
+
|
|
491
|
+
MCP tool: `library_labels`, arguments `target`, `apply`.
|
|
492
|
+
|
|
493
|
+
### `library stats`
|
|
494
|
+
|
|
495
|
+
```text
|
|
496
|
+
library stats [--target <dir>] [--profile <profile.json>] [--json]
|
|
497
|
+
```
|
|
498
|
+
|
|
499
|
+
Counts assets by `kind` and `state`, and reports `changeRequests` `{total, approvedWithinTwoVersions, share}`: a change request counts when one of the next two versions after the one it targets is approved. Read-only.
|
|
500
|
+
|
|
501
|
+
MCP tool: `library_stats`, arguments `target`, `profile`.
|
|
502
|
+
|
|
503
|
+
### `library worklist`
|
|
504
|
+
|
|
505
|
+
```text
|
|
506
|
+
library worklist [--target <dir>] [--profile <profile.json>] [--open] [--json]
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
Lists every review note of the library (each `editing` or `commenting` annotation on a version) with its `state` (`open` or `resolved`), its anchor, `source` (the version it was written on, with its `asset://<game>/<asset>/versions/<n>` link) and, when one is recorded, `resolution` (the answering version and its confirmation, or the `resolve` annotation). `--open` lists only open notes. Note text is returned only under `sharedText`. Read-only.
|
|
510
|
+
|
|
511
|
+
MCP tool: `library_worklist`, arguments `target`, `profile`, `open`.
|
|
512
|
+
|
|
513
|
+
### `library relations`
|
|
514
|
+
|
|
515
|
+
```text
|
|
516
|
+
library relations [--target <dir>] [--profile <profile.json>] [--asset <id>] [--sha256 <hash>] [--json]
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
Browse recorded `derived-from`, `variant-of` and `part-of` links in both directions. Use `--asset` to select a library-relative asset id and add `--sha256` to select a specific version. The report includes recorded and current hashes for changed sources and the exact downstream versions that depend on them, directly or indirectly. Read-only.
|
|
520
|
+
|
|
521
|
+
MCP tool: `library_relations`, arguments `target`, `profile`, `asset`, `sha256`.
|
|
522
|
+
|
|
523
|
+
### `library diff`
|
|
524
|
+
|
|
525
|
+
```text
|
|
526
|
+
library diff [--target <dir>] --base <ref> --head <ref> [--json]
|
|
527
|
+
```
|
|
528
|
+
|
|
529
|
+
Compare committed asset versions, labels, reviews and tracked renditions in the target Git repository (default current directory). Print Markdown for a pull request or structured JSON. Available previews identify a commit and path, and missing or corrupt local LFS objects are reported without previews. Read-only.
|
|
530
|
+
|
|
531
|
+
MCP tool: `library_diff`, arguments `target`, `base`, `head`.
|
|
532
|
+
|
|
533
|
+
### `library drift`
|
|
534
|
+
|
|
535
|
+
```text
|
|
536
|
+
library drift [--target <dir>] [--profile <profile.json>] [--bible <bible>] [--json]
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
Lists `otherVersion`: every asset whose card's bible differs from the style bible's version (compared for equality, not order, so a rollback or a renamed version counts; default bible `<target>/.assetgrove/art-direction/BIBLE.md`), each with `bible`, `sha256` and its cached `judgement` (`redo`, `keep`, or `unjudged` until `library judge-stale` answers); `stale`: those judged to need redoing; and `modified` ones (the file's sha256, or a Git LFS pointer's oid, differs from the card's `lock.sha256`; a matching pointer is not modified). Computed from the cards and the cached judgements; no model call, nothing stored or logged. Read-only.
|
|
540
|
+
|
|
541
|
+
MCP tool: `library_drift`, arguments `target`, `profile`, `bible`.
|
|
542
|
+
|
|
543
|
+
### `library judge-stale`
|
|
544
|
+
|
|
545
|
+
```text
|
|
546
|
+
library judge-stale [--target <dir>] [--profile <profile.json>] [--bible <bible>] [--asset <id>]... [--cap <usd>] [--work-item <label>] [--provider-script <module>] [--runs .assetgrove/runs] [--round 1] [--dry-run] [--json]
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
For each asset made under another bible version whose answer is not cached (or each named `--asset`), makes one `bible-staleness` decision ($0.001 estimate on the default route): given the bible's diff between the two versions (from the bible file's Git history), the asset's kind, subject and tags, and its thumbnail, should it be redone? Each answer is cached by the asset's sha256 and the version pair in `<stateDir>/staleness/`, where `library drift` and `asset://<game>/stale/` read it. An asset with no thumbnail on this machine (a Git LFS pointer, an undecodable file, a GLB with no turntable renders) is not judged and stays unjudged. Returns `bibleVersion`, `otherVersion` (the count of every asset made under another version, as `library drift` counts it, whatever `--asset` names), `judged` (`asset`, `bible`, `sha256`, `redo`, `probability`, `history`, `cached`), `stale` (the asset ids judged to need redoing), `noThumbnail` (the asset ids left unjudged for want of a thumbnail) and `spentUsd`. Paid gateway calls; writes nothing beside its run directory and the cache. A style bible with no version exits 2.
|
|
550
|
+
|
|
551
|
+
Plan step: `--dry-run` prints the request's WorkPlan with no provider call, no ledger entry and nothing written; the forecast counts one call per asset not yet judged for its version pair that has a thumbnail. A real run is confirmed and journaled as for `identity-check`, but a finished run is not returned as it ended: the same request runs again in its run directory, its journal answering every call it holds, so a lost cache is refilled with nothing paid twice.
|
|
552
|
+
|
|
553
|
+
MCP tool: `library_judge_stale`, arguments `target`, `profile`, `bible`, `asset`, `cap`, `workItem`, `runs`, `round`.
|
|
554
|
+
|
|
555
|
+
### `settings`
|
|
556
|
+
|
|
557
|
+
```text
|
|
558
|
+
settings <path|show|check> [--json]
|
|
559
|
+
```
|
|
560
|
+
|
|
561
|
+
Reads the developer settings and changes nothing. `path` gives the settings file, whether it exists, and the config and state directories. `show` gives the settings with every default filled; per provider, the key variable's name and whether it is set, never a key. `check` reports per provider whether a key is present and a limit is declared and verified against the provider's reading, where a call's cost comes from (`settle`: `reported` or `declared`) and whether it can be looked up later (`reconcile`: `lookup` or `unavailable`), and any refused environment variable; with one refused, it reads no provider. Local: no model call, no spend.
|
|
562
|
+
|
|
563
|
+
MCP tool: `settings`, argument `action`.
|
|
564
|
+
|
|
565
|
+
### `settings change`
|
|
566
|
+
|
|
567
|
+
```text
|
|
568
|
+
settings change [--run-usd <usd>] [--daily-usd <usd>] [--work-item-usd <usd>] [--provider <id> --limit-kind <kind> [--limit-usd <usd>] [--limit-period <period>] [--accept-unlimited]] [--acknowledge-holds <hold>...] [--acknowledge-blobs <blob>...] [--json]
|
|
569
|
+
```
|
|
570
|
+
|
|
571
|
+
Proposes a change that only a person's confirmation writes: the caps (`caps.runUsd`, `caps.dailyUsd`, `caps.workItemUsd`), one provider's `limit` (`--limit-kind` is `key-budget`, `team-budget`, `project-hard-limit`, `workspace-limit`, `prepaid` or `unlimited`) spend holds to acknowledge (`spend.acknowledgedHolds`) and tracked file contents whose by-name key assignment a person has checked is not a live key, by Git blob id (`keyGuard.acknowledgedBlobs`; the id the `key_tracked` refusal names). It takes no other field. An MCP client with form elicitation shows the person a flat form with the proposed values filled in and `acceptUnlimited` as its own Boolean; on accept, the values the person submitted are written (method `elicitation`). Without such a client it exits 8 `confirmation_required` with `error.confirmation` (`kind` `settings`) and saves the request to `<stateDir>/pending/<hex>.json`; `assetgrove confirm <hex>` at a terminal writes it (method `terminal`). A write changes only those fields and adds one `confirmedBy` entry per field path (`{method, at, client?}`); every other byte of the file stays as it was. A limit for a core adapter id that has no provider entry creates the entry with only `limit`. `unlimited` is written only with `acceptUnlimited` true; otherwise the result lists it under `notWritten` and the provider stays undeclared. Headless settings exit 8 `confirmation_required` and write nothing. A provider that is neither in the settings nor a core adapter id, or a hold id `<stateDir>/holds.jsonl` does not list, exits 2 `invalid_input` before anything is asked. A decline exits 8 `confirmation_declined`. Returns `{id, method, path, written, notWritten}`. Local: no model call, no spend.
|
|
572
|
+
|
|
573
|
+
MCP tool: `settings_change` (marked as requiring the person), arguments `runUsd`, `dailyUsd`, `workItemUsd`, `provider`, `limitKind`, `limitUsd`, `limitPeriod`, `acceptUnlimited`, `acknowledgeHolds`, `acknowledgeBlobs`.
|
|
574
|
+
|
|
575
|
+
### `doctor`
|
|
576
|
+
|
|
577
|
+
```text
|
|
578
|
+
doctor --profile <profile.json> [--target <target directory>] [--json]
|
|
579
|
+
```
|
|
580
|
+
|
|
581
|
+
Asks each hand-off preset of the profile that has a `doctor` (the Godot pack's presets do) to check the target, and lists every finding under `findings`: `{code, path, line?, problem, correction, presets}`, the exact path relative to the target and a safe correction for the developer to make; a preset whose doctor fails is listed under `errors` and does not stop the others. Core adds `lfs-rules-outdated` (presets `core`) when the library root's `.gitattributes` holds init's managed block but Git does not send every media type it names (`.wav` and `.ogg` among them) to LFS; running `init` again fixes it. Core also adds `provider-account` (presets `core`) for each configured provider whose adapter reads its account's plan (ElevenLabs' tier, from its subscription endpoint) when that plan is one Assetgrove refuses, such as ElevenLabs' free tier, or cannot be read; its `path` is the settings file as given, not a target path. Findings are sorted by path, line and code. `--target` defaults to the current directory. Read-only: it writes nothing in the target, its settings or `.git`, and exits 0 with or without findings. No model call, no spend; the only network call is that account read. Where the settings' `storage.repositories` call the repository public, it adds `restricted-media-tracked` for each file of a private or local asset (its card's `storage.files`) that Git tracks; removing it from Git's index takes it out.
|
|
582
|
+
|
|
583
|
+
MCP tool: `doctor`, arguments `profile`, `target`.
|
|
584
|
+
|
|
585
|
+
### `storage set`
|
|
586
|
+
|
|
587
|
+
```text
|
|
588
|
+
storage set <asset> --level <level> [--target <target directory>] [--profile <profile.json>] [--json]
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
Sets the storage level of the picked asset `<asset>` (its id): `public`, `private` or `local`, never looser than the card's (exit 2 `storage_level_looser`, nothing written). A restricted level lists the asset's media in the card's `storage.files` with its sha256 and adds it to the managed block of `<target>/.gitignore`. Media Git already tracks stays tracked and is listed under `tracked`. Returns `asset`, `level`, `previous` and `tracked`. No model call, no spend.
|
|
592
|
+
|
|
593
|
+
MCP tool: `storage_set`, arguments `asset`, `level`, `target`, `profile`.
|
|
594
|
+
|
|
595
|
+
### `storage push`
|
|
596
|
+
|
|
597
|
+
```text
|
|
598
|
+
storage push [--target <target directory>] [--profile <profile.json>] [--json]
|
|
599
|
+
```
|
|
600
|
+
|
|
601
|
+
Copies each private asset's media to the store the settings' `storage.store` name, as `sha256/<hex>` on its `main` branch, after checking each file against the card's sha256. Local assets are never copied. Files to copy or fetch with no store named exit 2 `storage_unset`; a missing file exits 6 `storage_missing`, differing bytes exit 6 `storage_checksum`, a failed git step exits 2 `storage_failed`. Returns `pushed` and `assets`. No model call, no spend.
|
|
602
|
+
|
|
603
|
+
MCP tool: `storage_push`, arguments `target`, `profile`.
|
|
604
|
+
|
|
605
|
+
### `storage fetch`
|
|
606
|
+
|
|
607
|
+
```text
|
|
608
|
+
storage fetch [--target <target directory>] [--profile <profile.json>] [--json]
|
|
609
|
+
```
|
|
610
|
+
|
|
611
|
+
Writes each private asset's media that is missing here, or differs from the card, from the store, after checking the store's copy against the card's sha256 (exit 6 `storage_checksum` or `storage_missing`, writing nothing). Local assets are listed under `local` and not fetched. Returns `fetched`, `present` and `local`. A build that needs the media runs it first. No model call, no spend.
|
|
612
|
+
|
|
613
|
+
MCP tool: `storage_fetch`, arguments `target`, `profile`.
|
|
614
|
+
|
|
615
|
+
### `extensions`
|
|
616
|
+
|
|
617
|
+
```text
|
|
618
|
+
extensions [--json]
|
|
619
|
+
```
|
|
620
|
+
|
|
621
|
+
Lists what loaded: core first, then each extension the developer settings' `extensions` list names, as `{name, package, version, entry, kinds, presets, adapters}` under `extensions`. An extension loads only when the settings list its package, it resolves from the project, its declared `api` matches (checked before import) and no Git work tree at or above its entry file tracks it; otherwise every command exits 2 with `extension_unavailable`, `extension_refused` or `extension_conflict` (see docs/extensions.md). A shared file naming an `<ext>:<name>` kind or preset of an extension that did not load exits 2 `extension_unavailable`. Local: no model call, no spend.
|
|
622
|
+
|
|
623
|
+
MCP tool: `extensions`, no arguments.
|
|
624
|
+
|
|
625
|
+
### `extensions setup`
|
|
626
|
+
|
|
627
|
+
```text
|
|
628
|
+
extensions setup <name> [--json]
|
|
629
|
+
```
|
|
630
|
+
|
|
631
|
+
Runs the `setup` of the loaded extension `<name>` (a name from `extensions`; the search package's is its model download). Every file it downloads is pinned to a version and a sha256 the extension ships and is checked before use, landing under `<stateDir>/models`; a mismatch deletes the file and exits 4 `provider_error` (`hash_mismatch`), and when every host fails it exits 4 (`setup_failed`). An unknown name, or an extension that declares no setup, exits 2. Returns `extension` and what the setup returned. Free; writes only under the state directory.
|
|
632
|
+
|
|
633
|
+
MCP tool: `extensions_setup`, argument `name`.
|
|
634
|
+
|
|
635
|
+
### `spend`
|
|
636
|
+
|
|
637
|
+
```text
|
|
638
|
+
spend <status|check> [--provider <id>] [--work-item <label>] [--provider-script <module>] [--json]
|
|
639
|
+
```
|
|
640
|
+
|
|
641
|
+
`status` gives the ledger (`<stateDir>/spend.jsonl`), the caps from the settings, the last 24 hours' spend, the work item (`--work-item` or `ASSETGROVE_WORK_ITEM`) with its spend, and `holds`, each spend hold (`<stateDir>/holds.jsonl`) with whether the settings' `spend.acknowledgedHolds` lists it, and `expiredLookups`, each per-call cost lookup that went unanswered past `reconcile.pendingMaxAgeHours` and was resolved as failed with nothing compared (`{id, provider, runId, at, resolvedAt}`). `check` reports per configured provider (`--provider` narrows it) `{provider, adapter, paid, declared, limit, verified, reading, mismatch, note}`: whether a limit is declared, the provider's reading where it gives one to an ordinary key (gateway credits balance, Tripo balance), and whether the reading verifies the limit. A reading verifies only a `prepaid` limit with `usd` (balance at or below it); a balance above it exits 3 with `provider_limit_mismatch`. Anthropic and OpenAI limits are declared only. `--provider-script` names the scripted provider's module, whose `limitReading` check reads. No spend, nothing written.
|
|
642
|
+
|
|
643
|
+
MCP tool: `spend`, arguments `action`, `provider`, `workItem`. The provider script flag is CLI-only.
|
|
644
|
+
|
|
645
|
+
### `spend reconcile`
|
|
646
|
+
|
|
647
|
+
```text
|
|
648
|
+
spend reconcile [--provider-script <module>] [--json]
|
|
649
|
+
```
|
|
650
|
+
|
|
651
|
+
Retries each pending reconcile lookup (`<stateDir>/reconcile.jsonl`): a paid run whose per-call costs the provider had not reported when the run ended. Returns `reconciled`, one `{provider, status, method, runId, ledgerUsd, providerUsd, gapUsd, marginUsd, holdId, pendingId, unmatched, settled, note}` per lookup, with `status` `pending` (not reported yet), `reconciled`, `held` or `failed` (none of its calls could be looked up, or still unreported `reconcile.pendingMaxAgeHours`, default 24, after its run; it is not retried again, and `spend status` lists it under `expiredLookups`). Only calls whose ledger cost came from the provider are compared; a call the ledger settled at the route's estimate is settled to the looked-up cost and never holds. A gap above max(`reconcile.marginUsd`, `reconcile.marginPct`% of the ledger spend) appends a hold, and every paid command then exits 3 `spend_hold` until the hold's id is in the settings' `spend.acknowledgedHolds`. A paid run also retries pending lookups at its start. `--provider-script` names the scripted provider's module, whose `callCost` the lookups read. Reads the providers' usage; no spend; writes only under the state directory.
|
|
652
|
+
|
|
653
|
+
MCP tool: `spend_reconcile`, no arguments. The provider script flag is CLI-only.
|
|
654
|
+
|
|
655
|
+
### `runs list`
|
|
656
|
+
|
|
657
|
+
```text
|
|
658
|
+
runs list [--runs <dir>] [--json]
|
|
659
|
+
```
|
|
660
|
+
|
|
661
|
+
Lists every run directory (`r-<16 hex of the request digest>`) under `--runs` (default `.assetgrove/runs`): `{runId, runDir, command, digest, status, startedAt, finishedAt, exitCode, attempts, calls, forecastUsd, capUsd}`. `status` is `running`, `finished`, `failed`, or `interrupted` when the process running it is gone; `calls` counts the run's journal. Local: no model call, no spend, nothing written.
|
|
662
|
+
|
|
663
|
+
MCP tool: `runs_list`, argument `runs`.
|
|
664
|
+
|
|
665
|
+
### `runs show`
|
|
666
|
+
|
|
667
|
+
```text
|
|
668
|
+
runs show <r-16hex> [--runs <dir>] [--json]
|
|
669
|
+
```
|
|
670
|
+
|
|
671
|
+
Shows one run: the fields `runs list` gives, its `request` (`request.json`, the WorkPlan), `state` (`state.json`), `record` (`run.json`) and `journal`, each journaled call's `{callKey, operation, provider, model, costUsd, costSource, requestId}`. An unknown run id exits 2. Local: no model call, no spend, nothing written.
|
|
672
|
+
|
|
673
|
+
MCP tool: `runs_show`, arguments `run`, `runs`.
|
|
674
|
+
|
|
675
|
+
### `ls`
|
|
676
|
+
|
|
677
|
+
```text
|
|
678
|
+
ls <address> [--target <dir>] [--json]
|
|
679
|
+
```
|
|
680
|
+
|
|
681
|
+
Lists a folder of the library's `asset://<game>/` tree (the project at `--target`, default the working directory's Git top level, whose `.assetgrove/profile.json` names the game and library root): the game root, `by-kind/<kind>/`, `by-subject/<subject>/`, `by-tag/<tag>/`, `stale/`, `runs/`, `runs/<run>/`, `<asset>/` or `<asset>/versions/`. Returns the folder's JSON document `{address, kind: "folder", children: [{address, name, kind, state?}], next?}`, the same one `resources/read` returns: at most 200 children per read, `next` the address of the next page. Card text appears only under `sharedText`. A file address, an unknown address or a card naming a path outside the library root exits 2 `invalid_input`. Local: no model call, no spend, nothing written.
|
|
682
|
+
|
|
683
|
+
MCP tool: `ls`, arguments `address`, `target` (default: the server's project).
|
|
684
|
+
|
|
685
|
+
### `cat`
|
|
686
|
+
|
|
687
|
+
```text
|
|
688
|
+
cat <address> [--target <dir>] [--out <file>] [--json]
|
|
689
|
+
```
|
|
690
|
+
|
|
691
|
+
Reads any address of the tree and returns `{address, contents}`, the contents `resources/read` returns (each `{uri, mimeType, text}` or `{uri, mimeType, blob}`): a folder's JSON document (and the root's `index.md`); `<asset>/card` and `log` as Markdown; `provenance` and `review` as JSON; `image` a PNG thumbnail of at most 512 px (a strip's key-frame row; a 3D asset's path and turntable frames); `image/full` the file; `versions/<n>` the version record with its image while the bytes are in the working file, a run folder or the local LFS store; `runs/<run>/<candidate>` the candidate's QA reasons and cost. No read's encoded content exceeds 64 KB: what would is replaced by a pointer `{path, mediaType, bytes, tooLarge: true}`. `--out` (CLI only) writes the file the address names (the whole file for `image/full`). Thumbnails are cached in `<stateDir>/thumbs/`. No model call, no spend. The tool is read-only and writes no file. Its result carries the read once: the result document's `contents` lists each `{uri, mimeType}`, and the content follows in the same order, an image as image content and anything else as an embedded resource.
|
|
692
|
+
|
|
693
|
+
MCP tool: `cat`, arguments `address`, `target` (default: the server's project).
|
|
694
|
+
|
|
695
|
+
### `estimate`
|
|
696
|
+
|
|
697
|
+
```text
|
|
698
|
+
estimate <command> [--args <json>] [--work-item <label>] [--provider-script <module>] [--json]
|
|
699
|
+
```
|
|
700
|
+
|
|
701
|
+
Runs a paid command's free plan step (`plan`, `apply`, `stage`, `generate-sheet`, `turnaround`, `import`, `materials`, `look-dev`, `animation-qa`, `fix-frame`, `identity-eval`, `identity-check`) and returns what that command prints with its dry-run flag and `--json`, its `command` field naming that command: the WorkPlan's `jobs` (operation, provider, model, count and per-call estimate), `candidates`, `forecastUsd`, `capUsd`, `paid`, `inputs` (sha256 of each input file), `options`, the request `digest` and the `runDir` it would run in, with the spend left under the ledger's limits; exit 3 when the forecast is over the cap or a limit. `--args` is a JSON object of the command's tool arguments (no CLI-only option). The digest is the sha256 of the canonical JSON of the command, round, inputs, options, jobs, forecast and cap: the same request gives the same digest. A free or unknown command exits 2, as does a call that spends nothing under these settings: `find` and `search index` with the local model (`search.embedder` not `"route"`), except `find` with `outliers`, which asks paid `style-outlier` decisions under every embedder. No provider call, no ledger entry, nothing written.
|
|
702
|
+
|
|
703
|
+
MCP tool: `estimate`, arguments `command`, `args`, `workItem`.
|
|
704
|
+
|
|
705
|
+
### `confirm`
|
|
706
|
+
|
|
707
|
+
```text
|
|
708
|
+
confirm <hex> [--json]
|
|
709
|
+
```
|
|
710
|
+
|
|
711
|
+
Confirms a pending spend, pick, write, policy, command or settings request at a terminal. A policy request is a borderline prompt-policy answer (from the route's `confirmAt` up to its `refuseAt`); it shows the command, the request digest, the policy text hash, the deciding model and its probability, and only a person clears it (headless settings do not). A settings change (from `settings change`) writes its fields and their `confirmedBy` entries into the settings file it names (method `terminal`). A spend, pick or write request (id its digest) writes `<configDir>/confirmations/<hex>.json` (method `terminal`); a pick that names no candidate asks which one, and `none` declines. What it shows is rebuilt from what the id hashes, never from the saved file's text: a spend's command, jobs, forecast, cap, providers and digest from its digest body, and a pick's run, contact sheet and candidates or a write's families from the run or the import and grouping, which must make the same id (exit 2 when they no longer do). A command that exits 8 `confirmation_required` because a command a file names (a profile's validator, a profile style's material compression or preview command, or the CLI's provider script module) has no approval saves the request to `<stateDir>/pending/<hex>.json`; `confirm <hex>` shows its kind, argv, cwd and file hashes and asks. An accept writes `<configDir>/approvals/<hex>.json` (method `terminal`) and the command runs on the next try; a decline exits 8 `confirmation_declined`. Without a TTY on stdin and stderr, with no pending request of that id, or with one whose kind, argv, cwd and files do not hash to that id (an edited or corrupted file), it exits 2 before asking. Headless settings ignore these records: list the hash in `commands.approved` instead. Local: no model call, no spend. CLI only; no MCP tool serves it.
|
|
712
|
+
|
|
713
|
+
### `disclosure`
|
|
714
|
+
|
|
715
|
+
```text
|
|
716
|
+
disclosure [<root>] [--selected <media-path>]... [--out <file>] [--json]
|
|
717
|
+
```
|
|
718
|
+
|
|
719
|
+
Reads the cards under `<root>` (the current directory by default) and the provenance each names, and reports assets by kind and source type, models, providers, and provider terms with their dates, then text for Steam's AI content survey and itch.io's AI tags. No prompt text is read or shown. `--out` also writes the summary there as Markdown, to a path inside the current directory. The marks and the summary help users and stores; they make no claim of compliance with any law. Spends nothing; read-only.
|
|
720
|
+
|
|
721
|
+
Repeat `--selected` for each release media file, using exact paths relative to the library root with forward slashes. Omit it to report on the whole library. The Godot and Playdate sections name media with AI evidence and media with unresolved evidence.
|
|
722
|
+
|
|
723
|
+
MCP tool: `disclosure`, arguments `root`, `out`, `selected` (array of media paths).
|