@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,80 @@
|
|
|
1
|
+
import { mkdirSync, writeFileSync } from "node:fs";
|
|
2
|
+
import { dirname, isAbsolute, resolve } from "node:path";
|
|
3
|
+
import { disclose, disclosureMarkdown } from "../disclosure.js";
|
|
4
|
+
import { InputError } from "../errors.js";
|
|
5
|
+
import { CORE_REGISTRY } from "../extensions/registry.js";
|
|
6
|
+
import { defineCommand } from "./types.js";
|
|
7
|
+
export const disclosureCommand = defineCommand({
|
|
8
|
+
name: "disclosure",
|
|
9
|
+
tool: "disclosure",
|
|
10
|
+
summary: "summarise the library's AI use for Steam's AI content survey and itch.io's AI tags",
|
|
11
|
+
details: `Reads the cards under <root> (the current directory by default) and the provenance each names.
|
|
12
|
+
Reports assets by kind and source type, models, providers, and provider terms with their dates,
|
|
13
|
+
then text for Steam's AI content survey and itch.io's AI tags. No prompt text is read or shown.
|
|
14
|
+
--out <file> also writes the summary there as Markdown. The marks in the files and this summary
|
|
15
|
+
help users and stores; they make no claim that the game complies with any law.
|
|
16
|
+
Spends nothing; nothing is written without --out.`,
|
|
17
|
+
input: {
|
|
18
|
+
type: "object",
|
|
19
|
+
properties: {
|
|
20
|
+
root: { type: "string", description: "the library root to read", default: "." },
|
|
21
|
+
selected: {
|
|
22
|
+
type: "array",
|
|
23
|
+
items: { type: "string" },
|
|
24
|
+
description: "exact root-relative media paths selected for release",
|
|
25
|
+
},
|
|
26
|
+
out: {
|
|
27
|
+
type: "string",
|
|
28
|
+
description: "write the summary here as Markdown",
|
|
29
|
+
placeholder: "<file>",
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
additionalProperties: false,
|
|
33
|
+
},
|
|
34
|
+
positionals: [{ name: "root" }],
|
|
35
|
+
effect: { readOnly: false, spends: "never", writes: "out" },
|
|
36
|
+
async run(args, ctx) {
|
|
37
|
+
const root = resolve(args.root ?? ".");
|
|
38
|
+
const summary = await disclose(root, {
|
|
39
|
+
settings: ctx.settings,
|
|
40
|
+
kinds: ctx.extensions ?? CORE_REGISTRY,
|
|
41
|
+
...(args.selected !== undefined && { selected: args.selected }),
|
|
42
|
+
});
|
|
43
|
+
if (args.out !== undefined) {
|
|
44
|
+
if (args.out === "")
|
|
45
|
+
throw new InputError("--out needs a file");
|
|
46
|
+
if (isAbsolute(args.out) || args.out.split(/[\\/]/).includes(".."))
|
|
47
|
+
throw new InputError("--out must be a path inside the current directory");
|
|
48
|
+
const file = resolve(args.out);
|
|
49
|
+
mkdirSync(dirname(file), { recursive: true });
|
|
50
|
+
writeFileSync(file, disclosureMarkdown(summary));
|
|
51
|
+
}
|
|
52
|
+
const human = [
|
|
53
|
+
`${summary.assets} assets`,
|
|
54
|
+
...summary.bySourceType.map((s) => ` ${s.name}: ${s.assets}`),
|
|
55
|
+
`models: ${summary.models.map((m) => m.name).join(", ") || "none"}`,
|
|
56
|
+
`providers: ${summary.providers.map((m) => m.name).join(", ") || "none"}`,
|
|
57
|
+
...(summary.vendors.length > 0
|
|
58
|
+
? [`vendors: ${summary.vendors.map((m) => m.name).join(", ")}`]
|
|
59
|
+
: []),
|
|
60
|
+
...summary.terms.map((t) => `terms: ${t.terms}`),
|
|
61
|
+
...(summary.contentCredentials.signed > 0 || summary.contentCredentials.note
|
|
62
|
+
? [
|
|
63
|
+
`content credentials: ${summary.contentCredentials.signed} signed` +
|
|
64
|
+
(summary.contentCredentials.note ? `. ${summary.contentCredentials.note}` : ""),
|
|
65
|
+
]
|
|
66
|
+
: []),
|
|
67
|
+
"",
|
|
68
|
+
`Godot: ${summary.godot.status}: ${summary.godot.what} ${summary.godot.how}`,
|
|
69
|
+
`Playdate: ${summary.playdate.status}: ${summary.playdate.what}`,
|
|
70
|
+
`Unresolved: ${summary.godot.unresolvedAssets.join(", ") || "none"}`,
|
|
71
|
+
`Steam: ${summary.steam}`,
|
|
72
|
+
`itch.io: ${summary.itch.text}`,
|
|
73
|
+
].join("\n");
|
|
74
|
+
return {
|
|
75
|
+
exitCode: 0,
|
|
76
|
+
fields: { root, ...summary, ...(args.out !== undefined && { out: resolve(args.out) }) },
|
|
77
|
+
human,
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const doctorCommand: import("./types.ts").CommandSpec<Record<string, unknown>>;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { resolve } from "node:path";
|
|
2
|
+
import { PRESETS } from "../handoff/presets/index.js";
|
|
3
|
+
import { projectDoctor, sortFindings } from "../handoff/doctor.js";
|
|
4
|
+
import { loadProfile } from "../inputs.js";
|
|
5
|
+
import { createProviders } from "../providers/adapter.js";
|
|
6
|
+
import { redact } from "../redact.js";
|
|
7
|
+
import { defineCommand } from "./types.js";
|
|
8
|
+
import { delegationLine } from "../confirm/delegation.js";
|
|
9
|
+
export const doctorCommand = defineCommand({
|
|
10
|
+
name: "doctor",
|
|
11
|
+
tool: "doctor",
|
|
12
|
+
summary: "report hygiene problems of the target the profile's hand-off presets know of",
|
|
13
|
+
details: `Asks each hand-off preset of the profile that has a doctor to check the target and lists
|
|
14
|
+
what it finds: each finding has the exact path (and line), what is wrong and a safe correction.
|
|
15
|
+
Core also checks that Git sends every media type of the library's managed .gitattributes block
|
|
16
|
+
(init's) to LFS, .wav and .ogg included, and names the types it does not (lfs-rules-outdated).
|
|
17
|
+
When the developer settings call the target's repository public (storage.repositories, matched
|
|
18
|
+
against its remotes' addresses), each private or local asset's media Git tracks there is a
|
|
19
|
+
restricted-media-tracked finding.
|
|
20
|
+
Each configured provider whose adapter reads its account's plan (ElevenLabs' tier) is read, and a
|
|
21
|
+
plan it refuses, or a reading that fails, is a provider-account finding.
|
|
22
|
+
Read-only: it never writes the target, the settings or Git, and reads nothing in .git or the
|
|
23
|
+
settings and state directories. A report is not a failure: exit 0 with or without findings. A preset
|
|
24
|
+
whose doctor fails is listed as unknown and does not stop the others. A provider-account finding's
|
|
25
|
+
path is the settings file as given, not a target path. No model call, no spend: the account read is
|
|
26
|
+
the vendor's free subscription endpoint.`,
|
|
27
|
+
input: {
|
|
28
|
+
type: "object",
|
|
29
|
+
properties: {
|
|
30
|
+
profile: {
|
|
31
|
+
type: "string",
|
|
32
|
+
description: "the target profile",
|
|
33
|
+
placeholder: "<profile.json>",
|
|
34
|
+
},
|
|
35
|
+
target: {
|
|
36
|
+
type: "string",
|
|
37
|
+
description: "the target directory (default: the current directory)",
|
|
38
|
+
placeholder: "<target directory>",
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
required: ["profile"],
|
|
42
|
+
additionalProperties: false,
|
|
43
|
+
},
|
|
44
|
+
effect: { readOnly: true, spends: "never", writes: "none" },
|
|
45
|
+
async run(args, ctx) {
|
|
46
|
+
const profile = (await loadProfile(resolve(args.profile))).value;
|
|
47
|
+
const report = await projectDoctor({
|
|
48
|
+
profile,
|
|
49
|
+
targetDir: resolve(args.target ?? "."),
|
|
50
|
+
registry: ctx.extensions ?? { presets: PRESETS },
|
|
51
|
+
stateDir: ctx.settings.stateDir,
|
|
52
|
+
configDir: ctx.settings.configDir,
|
|
53
|
+
...(ctx.settings.storage !== undefined && { storage: ctx.settings.storage }),
|
|
54
|
+
});
|
|
55
|
+
report.findings.push(...(await accountFindings(ctx)));
|
|
56
|
+
sortFindings(report.findings);
|
|
57
|
+
const blocks = report.findings.map((f) => `${f.path}${f.line !== undefined ? `:${f.line}` : ""} ${f.code}\n problem: ${f.problem}\n correction: ${f.correction}`);
|
|
58
|
+
const lines = report.errors.map((e) => `${e.preset}: doctor unknown: ${e.error}`);
|
|
59
|
+
const delegation = ctx.settings.delegation;
|
|
60
|
+
const human = [...blocks, ...lines].join("\n") || "no findings";
|
|
61
|
+
return {
|
|
62
|
+
exitCode: 0,
|
|
63
|
+
fields: {
|
|
64
|
+
findings: report.findings,
|
|
65
|
+
errors: report.errors,
|
|
66
|
+
...(delegation && { delegation }),
|
|
67
|
+
},
|
|
68
|
+
human: delegation ? `${human}\n${delegationLine(delegation)}` : human,
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
/**
|
|
73
|
+
* A finding for each configured provider whose account check (`GenerationProvider.checkAccount`)
|
|
74
|
+
* refuses its plan or cannot read it; spends nothing. The path is the settings file.
|
|
75
|
+
*/
|
|
76
|
+
async function accountFindings(ctx) {
|
|
77
|
+
// A context built without providers (a preset's own doctor run) has no account to read.
|
|
78
|
+
const providers = ctx.settings.providers;
|
|
79
|
+
if (providers === undefined)
|
|
80
|
+
return [];
|
|
81
|
+
const configured = createProviders(ctx.settings, {
|
|
82
|
+
...(ctx.env && { env: ctx.env }),
|
|
83
|
+
...(ctx.extensions && { adapters: ctx.extensions.adapters }),
|
|
84
|
+
});
|
|
85
|
+
const path = ctx.settings.path ?? "settings";
|
|
86
|
+
const findings = [];
|
|
87
|
+
for (const { id, provider } of configured) {
|
|
88
|
+
if (provider.checkAccount === undefined)
|
|
89
|
+
continue;
|
|
90
|
+
try {
|
|
91
|
+
const reading = await provider.checkAccount();
|
|
92
|
+
if (reading.refused !== undefined)
|
|
93
|
+
findings.push({
|
|
94
|
+
code: "provider-account",
|
|
95
|
+
presets: ["core"],
|
|
96
|
+
path,
|
|
97
|
+
problem: `provider "${id}" is on the ${reading.plan} plan (${reading.source}), which Assetgrove refuses: ${reading.refused}`,
|
|
98
|
+
correction: `move the account of providers.${id} to a plan it allows, or remove providers.${id} from the settings`,
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
catch (error) {
|
|
102
|
+
findings.push({
|
|
103
|
+
code: "provider-account",
|
|
104
|
+
presets: ["core"],
|
|
105
|
+
path,
|
|
106
|
+
problem: `provider "${id}"'s account plan cannot be read: ${redact(error instanceof Error ? error.message : String(error))}`,
|
|
107
|
+
correction: `check that providers.${id}'s key is set and valid, then run doctor again`,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return findings;
|
|
112
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { InputError } from "../errors.js";
|
|
2
|
+
import { canSpend } from "./context.js";
|
|
3
|
+
import { commands } from "./registry.js";
|
|
4
|
+
import { runCommand, toolInputSchema, validateArgs } from "./runner.js";
|
|
5
|
+
import { defineCommand } from "./types.js";
|
|
6
|
+
/**
|
|
7
|
+
* The paid command an estimate names; a free or unknown command, or one that spends nothing under
|
|
8
|
+
* these settings (find and search index with the local model), is invalid input.
|
|
9
|
+
*/
|
|
10
|
+
function paidCommand(name, ctx) {
|
|
11
|
+
const spec = commands.find((c) => c.name === name || (c.tool !== null && c.tool === name));
|
|
12
|
+
if (spec === undefined)
|
|
13
|
+
throw new InputError(`unknown command "${name}"`);
|
|
14
|
+
if (!canSpend(spec, ctx) || spec.plan === undefined)
|
|
15
|
+
throw new InputError(`${spec.name} spends nothing, so it has no estimate`);
|
|
16
|
+
return spec;
|
|
17
|
+
}
|
|
18
|
+
export const estimateCommand = defineCommand({
|
|
19
|
+
name: "estimate",
|
|
20
|
+
tool: "estimate",
|
|
21
|
+
summary: "run a paid command's free plan step and return what its --dry-run prints",
|
|
22
|
+
details: `Runs the plan step of a paid command with its arguments (--args, a JSON object of the
|
|
23
|
+
command's tool arguments) and returns the same document as that command's --dry-run: its jobs,
|
|
24
|
+
forecast, cap, whether it is paid, input hashes, request digest and run directory, under that
|
|
25
|
+
command's name. Makes no
|
|
26
|
+
provider call, adds no ledger entry and writes nothing. A call that spends nothing under these
|
|
27
|
+
settings has no estimate and exits 2: a free or unknown command, find and search index with the
|
|
28
|
+
local model, except find with --outliers, which asks paid style-outlier decisions.`,
|
|
29
|
+
input: {
|
|
30
|
+
type: "object",
|
|
31
|
+
properties: {
|
|
32
|
+
command: {
|
|
33
|
+
type: "string",
|
|
34
|
+
description: "the paid command to estimate",
|
|
35
|
+
placeholder: "<command>",
|
|
36
|
+
},
|
|
37
|
+
args: {
|
|
38
|
+
type: "object",
|
|
39
|
+
description: "the command's arguments, as its tool takes them",
|
|
40
|
+
placeholder: "<json>",
|
|
41
|
+
},
|
|
42
|
+
workItem: {
|
|
43
|
+
type: "string",
|
|
44
|
+
description: "the work item the spend ledger counts against",
|
|
45
|
+
placeholder: "<label>",
|
|
46
|
+
},
|
|
47
|
+
providerScript: {
|
|
48
|
+
type: "string",
|
|
49
|
+
description: "answer every model call from this module instead of a provider",
|
|
50
|
+
placeholder: "<module>",
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
required: ["command"],
|
|
54
|
+
additionalProperties: false,
|
|
55
|
+
},
|
|
56
|
+
positionals: [{ name: "command" }],
|
|
57
|
+
effect: { readOnly: true, spends: "never", writes: "none" },
|
|
58
|
+
async run(args, ctx) {
|
|
59
|
+
const spec = paidCommand(args.command, ctx);
|
|
60
|
+
const given = args.args ?? {};
|
|
61
|
+
if (typeof given !== "object" || Array.isArray(given))
|
|
62
|
+
throw new InputError("--args must be a JSON object");
|
|
63
|
+
// The arguments are the command's tool arguments: no CLI-only option such as --dry-run.
|
|
64
|
+
await validateArgs({ ...spec, input: toolInputSchema(spec) }, given);
|
|
65
|
+
// A call that takes no plan step spends nothing (find without --outliers, local model).
|
|
66
|
+
if (spec.planned?.(given, ctx) === false)
|
|
67
|
+
throw new InputError(`${spec.name} spends nothing, so it has no estimate`);
|
|
68
|
+
const workItem = args.workItem ?? ctx.workItem;
|
|
69
|
+
const providerScript = args.providerScript ?? ctx.providerScript;
|
|
70
|
+
const properties = spec.input.properties;
|
|
71
|
+
// The document is that command's --dry-run document, its name included (design section 5).
|
|
72
|
+
const outcome = await runCommand(spec, {
|
|
73
|
+
...(providerScript !== undefined && "providerScript" in properties && { providerScript }),
|
|
74
|
+
...(workItem !== undefined && "workItem" in properties && { workItem }),
|
|
75
|
+
...given,
|
|
76
|
+
dryRun: true,
|
|
77
|
+
}, ctx);
|
|
78
|
+
return { ...outcome, command: spec.name };
|
|
79
|
+
},
|
|
80
|
+
});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { CORE_REGISTRY } from "../extensions/registry.js";
|
|
2
|
+
import { InputError } from "../errors.js";
|
|
3
|
+
import { setupContext } from "../extension/setup.js";
|
|
4
|
+
import { calling, searchSettings } from "./search.js";
|
|
5
|
+
import { defineCommand } from "./types.js";
|
|
6
|
+
export const extensionsCommand = defineCommand({
|
|
7
|
+
name: "extensions",
|
|
8
|
+
tool: "extensions",
|
|
9
|
+
summary: "list the extensions that loaded, core first, with their kinds, presets and adapters",
|
|
10
|
+
details: `Lists core and every extension the developer settings' extensions list loaded: its name,
|
|
11
|
+
package, version, entry file and the asset kinds, hand-off presets and provider adapters it
|
|
12
|
+
registered, the tools it declares and whether it has a setup. An extension loads only when the
|
|
13
|
+
settings list its package, the package resolves from the project, its declared api matches and the
|
|
14
|
+
project's Git does not track its entry (docs/extensions.md). Local: no model call, no spend.`,
|
|
15
|
+
input: { type: "object", properties: {}, additionalProperties: false },
|
|
16
|
+
effect: { readOnly: true, spends: "never", writes: "none" },
|
|
17
|
+
async run(_args, ctx) {
|
|
18
|
+
const loaded = (ctx.extensions ?? CORE_REGISTRY).loaded;
|
|
19
|
+
const lines = loaded.flatMap((e) => [
|
|
20
|
+
`${e.name} ${e.package}${e.version !== null ? `@${e.version}` : ""}${e.entry !== null ? ` ${e.entry}` : ""}`,
|
|
21
|
+
...[
|
|
22
|
+
["kinds", e.kinds],
|
|
23
|
+
["presets", e.presets],
|
|
24
|
+
["adapters", e.adapters],
|
|
25
|
+
["tools", e.tools ?? []],
|
|
26
|
+
]
|
|
27
|
+
.filter(([, ids]) => ids.length > 0)
|
|
28
|
+
.map(([what, ids]) => ` ${what}: ${ids.join(", ")}`),
|
|
29
|
+
...(e.setup ? [` setup: assetgrove extensions setup ${e.name}`] : []),
|
|
30
|
+
]);
|
|
31
|
+
return { exitCode: 0, fields: { extensions: loaded }, human: lines.join("\n") };
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
export const extensionsSetupCommand = defineCommand({
|
|
35
|
+
name: "extensions setup",
|
|
36
|
+
tool: "extensions_setup",
|
|
37
|
+
summary: "run a loaded extension's setup, such as the search model download",
|
|
38
|
+
details: `Runs the setup of the loaded extension <name> (see assetgrove extensions): the files it
|
|
39
|
+
downloads are each pinned to a version and a sha256 the extension ships, checked before the file
|
|
40
|
+
is used, and land under <stateDir>/models; a mismatch deletes the file and exits 4. An extension
|
|
41
|
+
that declares no setup exits 2. Free; writes only under the state directory.`,
|
|
42
|
+
input: {
|
|
43
|
+
type: "object",
|
|
44
|
+
properties: {
|
|
45
|
+
name: { type: "string", description: "the extension's name", placeholder: "<name>" },
|
|
46
|
+
},
|
|
47
|
+
required: ["name"],
|
|
48
|
+
additionalProperties: false,
|
|
49
|
+
},
|
|
50
|
+
positionals: [{ name: "name" }],
|
|
51
|
+
effect: { readOnly: false, spends: "never", writes: "state" },
|
|
52
|
+
async run(args, ctx) {
|
|
53
|
+
const loaded = (ctx.extensions ?? CORE_REGISTRY).extensions;
|
|
54
|
+
const found = loaded.get(args.name);
|
|
55
|
+
if (found === undefined)
|
|
56
|
+
throw new InputError(`no loaded extension is named "${args.name}"; loaded: ${[...loaded.keys()].join(", ")}`);
|
|
57
|
+
const setup = found.extension.setup;
|
|
58
|
+
if (setup === undefined)
|
|
59
|
+
throw new InputError(`extension "${args.name}" declares no setup`);
|
|
60
|
+
// A pack's own error code is mapped as a search slot's is: a code core's table lacks is exit 2.
|
|
61
|
+
const result = await calling(() => setup.call(found.extension, setupContext({
|
|
62
|
+
stateDir: ctx.settings.stateDir,
|
|
63
|
+
search: searchSettings(ctx.settings),
|
|
64
|
+
name: args.name,
|
|
65
|
+
log: ctx.log,
|
|
66
|
+
})));
|
|
67
|
+
const fields = { extension: args.name, ...result };
|
|
68
|
+
return { exitCode: 0, fields, human: JSON.stringify(fields, null, 2) };
|
|
69
|
+
},
|
|
70
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fixFrameCommand: import("./types.ts").CommandSpec<Record<string, unknown>>;
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { runCapParts } from "../budget.js";
|
|
2
|
+
import { resolve } from "node:path";
|
|
3
|
+
import { DEFAULT_FIX_CAP_USD, parseAnchor, planFrameFix, runFixFrame, stripTarget, } from "../animation/commands.js";
|
|
4
|
+
import { formatReport } from "../animation/run.js";
|
|
5
|
+
import { InputError } from "../errors.js";
|
|
6
|
+
import { specForQa, loadProfile, loadStyleBible } from "../inputs.js";
|
|
7
|
+
import { providerSet, spendLedger } from "../providers/index.js";
|
|
8
|
+
import { dryRunOutcome, usd } from "./result.js";
|
|
9
|
+
import { defineCommand } from "./types.js";
|
|
10
|
+
import { DRY_RUN_PROPERTY, ROUND_PROPERTY, RUNS_PROPERTY, buildWorkPlan, jobsOf, paidBy, } from "../runs/plan.js";
|
|
11
|
+
/** The plan step: the strip's inputs, the one edit call and the WorkPlan, with no call made. */
|
|
12
|
+
async function prepare(args, ctx) {
|
|
13
|
+
if ((args.from === undefined) === (args.keyPose === undefined)) {
|
|
14
|
+
throw new InputError("give exactly one of --from <frame> or --key-pose <image>");
|
|
15
|
+
}
|
|
16
|
+
const { capUsd, capSource } = runCapParts(args.cap, ctx.settings, DEFAULT_FIX_CAP_USD);
|
|
17
|
+
const providers = await providerSet(args.providerScript, ctx);
|
|
18
|
+
const routes = providers.routes;
|
|
19
|
+
const profile = await loadProfile(args.profile);
|
|
20
|
+
const anchor = parseAnchor(args.anchor);
|
|
21
|
+
const spec = await specForQa(args.spec);
|
|
22
|
+
const subject = args.subject ?? spec.subject;
|
|
23
|
+
const target = stripTarget({
|
|
24
|
+
path: args.strip,
|
|
25
|
+
family: args.family,
|
|
26
|
+
profile: profile.value,
|
|
27
|
+
...(subject !== undefined && { subject }),
|
|
28
|
+
...(anchor !== undefined && { anchor }),
|
|
29
|
+
...(spec.gait !== undefined && { gait: spec.gait }),
|
|
30
|
+
// The spec's template is its own family's.
|
|
31
|
+
...(spec.template !== undefined &&
|
|
32
|
+
(spec.family === undefined || spec.family === args.family) && {
|
|
33
|
+
template: spec.template,
|
|
34
|
+
}),
|
|
35
|
+
});
|
|
36
|
+
const plan = planFrameFix(routes, capUsd, target);
|
|
37
|
+
const jobs = jobsOf(plan.perCall, routes);
|
|
38
|
+
const work = await buildWorkPlan(fixFrameCommand, args, {
|
|
39
|
+
promptAllow: ctx.settings.promptPolicy.allow,
|
|
40
|
+
inputs: ["strip", "profile", "spec", "keyPose", "provenance", "bible"],
|
|
41
|
+
// Without --provenance the fix reads the strip's sidecar when it exists.
|
|
42
|
+
reads: { provenance: `${args.strip}.provenance.json` },
|
|
43
|
+
// The edit prompt names the family and the subject and carries the note.
|
|
44
|
+
promptText: [args.family, args.subject, args.note].filter((t) => t !== undefined),
|
|
45
|
+
jobs,
|
|
46
|
+
capUsd,
|
|
47
|
+
capSource,
|
|
48
|
+
paid: paidBy(providers, jobs),
|
|
49
|
+
providers,
|
|
50
|
+
candidates: 1,
|
|
51
|
+
});
|
|
52
|
+
return { capUsd, providers, routes, profile, target, plan, work };
|
|
53
|
+
}
|
|
54
|
+
export const fixFrameCommand = defineCommand({
|
|
55
|
+
name: "fix-frame",
|
|
56
|
+
tool: "fix_frame",
|
|
57
|
+
summary: "regenerate one bad frame of a strip by a reference-guided edit within a cost cap",
|
|
58
|
+
details: `Edits frame <n> (1-based) with one reference-guided edit call, from an approved neighbour
|
|
59
|
+
frame (--from) or the approved key pose (--key-pose), within the cost cap in USD. When the edited
|
|
60
|
+
figure's candidate scales (area, height, head box) register to different pixels and the strip has
|
|
61
|
+
another frame to draw beside it, one fix-scale decision call then picks the scale at which the
|
|
62
|
+
character matches the surrounding frames; the edit and that decision are reserved against the cap
|
|
63
|
+
together before the first call. Only that frame changes. Writes the fixed strip, its provenance
|
|
64
|
+
(the strip's own, with the calls and a fixes entry added) and its QA report and previews into
|
|
65
|
+
--out. --provenance (default <strip>.provenance.json when it exists) is the strip's own provenance
|
|
66
|
+
or the record recipe or op wrote for it; any other file is refused (exit 2) before the call. Never
|
|
67
|
+
writes into a target and never sets a review value. --spec reads the asset spec's gait, template
|
|
68
|
+
(and subject) for that QA. A family whose spec declares no template and that no template is named
|
|
69
|
+
for first costs one motion-template decision, which picks the registration pin and the QA's
|
|
70
|
+
template.
|
|
71
|
+
Give exactly one of --from and --key-pose.
|
|
72
|
+
--dry-run prints the planned calls (the edit, the fix-scale decision and any motion-template
|
|
73
|
+
decision), the forecast and the spend left under the daily and work-item
|
|
74
|
+
limits, and needs no key.`,
|
|
75
|
+
input: {
|
|
76
|
+
type: "object",
|
|
77
|
+
properties: {
|
|
78
|
+
strip: {
|
|
79
|
+
type: "string",
|
|
80
|
+
description: "the sprite strip holding the bad frame",
|
|
81
|
+
placeholder: "<strip.png>",
|
|
82
|
+
},
|
|
83
|
+
family: {
|
|
84
|
+
type: "string",
|
|
85
|
+
description: "the animation family of the strip",
|
|
86
|
+
placeholder: "<name>",
|
|
87
|
+
},
|
|
88
|
+
profile: { type: "string", description: "the target profile", placeholder: "<profile.json>" },
|
|
89
|
+
frame: {
|
|
90
|
+
type: "integer",
|
|
91
|
+
minimum: 1,
|
|
92
|
+
description: "the frame to regenerate, counted from 1",
|
|
93
|
+
placeholder: "<n>",
|
|
94
|
+
},
|
|
95
|
+
from: {
|
|
96
|
+
type: "integer",
|
|
97
|
+
minimum: 1,
|
|
98
|
+
description: "the approved neighbour frame to edit from",
|
|
99
|
+
placeholder: "<n>",
|
|
100
|
+
},
|
|
101
|
+
keyPose: {
|
|
102
|
+
type: "string",
|
|
103
|
+
description: "the approved key pose to edit from",
|
|
104
|
+
placeholder: "<image>",
|
|
105
|
+
},
|
|
106
|
+
out: {
|
|
107
|
+
type: "string",
|
|
108
|
+
description: "where the fixed strip and reports are written",
|
|
109
|
+
placeholder: "<directory>",
|
|
110
|
+
},
|
|
111
|
+
subject: {
|
|
112
|
+
type: "string",
|
|
113
|
+
description: "the subject the strip shows",
|
|
114
|
+
placeholder: "<name>",
|
|
115
|
+
},
|
|
116
|
+
spec: {
|
|
117
|
+
type: "string",
|
|
118
|
+
description: "the asset spec; supplies the gait, template and subject",
|
|
119
|
+
placeholder: "<spec.json>",
|
|
120
|
+
},
|
|
121
|
+
note: { type: "string", description: "a note for the edit call", placeholder: "<text>" },
|
|
122
|
+
provenance: {
|
|
123
|
+
type: "string",
|
|
124
|
+
description: "the strip's own provenance record",
|
|
125
|
+
placeholder: "<strip>.provenance.json",
|
|
126
|
+
},
|
|
127
|
+
bible: {
|
|
128
|
+
type: "string",
|
|
129
|
+
description: "the style bible (BIBLE.md)",
|
|
130
|
+
placeholder: "<BIBLE.md>",
|
|
131
|
+
},
|
|
132
|
+
anchor: { type: "string", description: "the anchor point of the frames", placeholder: "x,y" },
|
|
133
|
+
cap: {
|
|
134
|
+
type: "number",
|
|
135
|
+
description: "the run's cost cap in USD",
|
|
136
|
+
default: DEFAULT_FIX_CAP_USD,
|
|
137
|
+
},
|
|
138
|
+
workItem: {
|
|
139
|
+
type: "string",
|
|
140
|
+
description: "the work item the spend ledger counts against",
|
|
141
|
+
placeholder: "<label>",
|
|
142
|
+
},
|
|
143
|
+
providerScript: {
|
|
144
|
+
type: "string",
|
|
145
|
+
description: "answer every model call from this module instead of a provider",
|
|
146
|
+
placeholder: "<module>",
|
|
147
|
+
},
|
|
148
|
+
round: ROUND_PROPERTY,
|
|
149
|
+
runs: RUNS_PROPERTY,
|
|
150
|
+
dryRun: DRY_RUN_PROPERTY,
|
|
151
|
+
},
|
|
152
|
+
required: ["strip", "family", "profile", "frame", "out"],
|
|
153
|
+
additionalProperties: false,
|
|
154
|
+
},
|
|
155
|
+
effect: { readOnly: false, spends: "conditional", writes: "out" },
|
|
156
|
+
confirm: "spend",
|
|
157
|
+
plan: async (args, ctx) => (await prepare(args, ctx)).work,
|
|
158
|
+
async run(args, ctx) {
|
|
159
|
+
const index = args.frame;
|
|
160
|
+
const neighbour = args.from;
|
|
161
|
+
const keyPose = args.keyPose;
|
|
162
|
+
const { capUsd, providers, routes, profile, target, plan, work } = await prepare(args, ctx);
|
|
163
|
+
if (args.dryRun) {
|
|
164
|
+
const human = [
|
|
165
|
+
`dry run: fix frame ${index}, ${plan.calls} planned call(s), nothing spent`,
|
|
166
|
+
...plan.perCall.map((c) => ` ${c.operation} ${c.model} ~${usd(c.estimatedCostUsd)}`),
|
|
167
|
+
`forecast ${usd(plan.estimateUsd)} against a $${capUsd.toFixed(2)} cap` +
|
|
168
|
+
(plan.withinCap ? "" : " (over the cap)"),
|
|
169
|
+
].join("\n");
|
|
170
|
+
return dryRunOutcome(work, human, spendLedger(ctx, args.workItem).forProfile(profile.value), plan);
|
|
171
|
+
}
|
|
172
|
+
const bible = args.bible !== undefined ? (await loadStyleBible(args.bible)).value : undefined;
|
|
173
|
+
const result = await runFixFrame({
|
|
174
|
+
target,
|
|
175
|
+
index,
|
|
176
|
+
from: keyPose !== undefined ? { keyPose } : { neighbour: neighbour },
|
|
177
|
+
...(args.note !== undefined && { note: args.note }),
|
|
178
|
+
...(args.provenance !== undefined && { provenancePath: args.provenance }),
|
|
179
|
+
...(bible !== undefined && { bible: { version: bible.version, palette: bible.palette } }),
|
|
180
|
+
outDir: resolve(args.out),
|
|
181
|
+
routes,
|
|
182
|
+
capUsd,
|
|
183
|
+
ledger: spendLedger(ctx, args.workItem),
|
|
184
|
+
provider: { provider: providers, name: providers.billing.providerId },
|
|
185
|
+
});
|
|
186
|
+
const human = [
|
|
187
|
+
`fixed frame ${index} of ${target.family} with ${result.fix.model} (request ${result.fix.requestId}), $${result.spentUsd.toFixed(4)} spent`,
|
|
188
|
+
`wrote ${result.stripPath}`,
|
|
189
|
+
`wrote ${result.provenancePath}`,
|
|
190
|
+
...formatReport(result.qa.report),
|
|
191
|
+
` onion skin ${result.qa.files.onion}`,
|
|
192
|
+
` preview ${result.qa.files.preview}`,
|
|
193
|
+
].join("\n");
|
|
194
|
+
return {
|
|
195
|
+
exitCode: 0,
|
|
196
|
+
fields: {
|
|
197
|
+
stripPath: result.stripPath,
|
|
198
|
+
provenancePath: result.provenancePath,
|
|
199
|
+
fix: result.fix,
|
|
200
|
+
spentUsd: result.spentUsd,
|
|
201
|
+
qa: { ...result.qa.report, files: result.qa.files },
|
|
202
|
+
},
|
|
203
|
+
human,
|
|
204
|
+
};
|
|
205
|
+
},
|
|
206
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const generateSheetCommand: import("./types.ts").CommandSpec<Record<string, unknown>>;
|